From 2b2e9622cb5a3a156d1071e4c424538c9c8e306b Mon Sep 17 00:00:00 2001 From: selemondev Date: Thu, 21 Sep 2023 13:38:14 +0300 Subject: [PATCH] chore (app): refactor --- packages/nuxt-ui-vue/package.json | 3 +- packages/nuxt-ui-vue/src/App.vue | 4 +- packages/nuxt-ui-vue/src/components/Hello.vue | 13 ---- .../src/components/data/Table/UTable.vue | 18 ++++- .../elements/Accordion/UAccordion.vue | 14 ++-- .../src/components/elements/Alert/UAlert.vue | 21 +++--- .../components/elements/Avatar/UAvatar.vue | 15 ++--- .../src/components/elements/Badge/UBadge.vue | 14 ++-- .../components/elements/Button/UButton.vue | 14 ++-- .../elements/Button/UButtonGroup.vue | 14 ++-- .../elements/Dropdown/UDropdown.vue | 16 ++--- .../src/components/elements/Icon/UIcon.vue | 17 ++--- .../src/components/elements/Kbd/UKbd.vue | 14 ++-- .../src/components/elements/Link/ULink.vue | 15 ++--- .../components/forms/Checkbox/UCheckbox.vue | 14 ++-- .../components/forms/FormGroup/UFormGroup.vue | 2 +- .../src/components/forms/Input/UInput.vue | 14 ++-- .../src/components/forms/Radio/URadio.vue | 14 ++-- .../src/components/forms/Range/URange.vue | 16 ++--- .../src/components/forms/Select/USelect.vue | 16 ++--- .../forms/SelectMenu/USelectMenu.vue | 3 +- .../components/forms/Textarea/UTextarea.vue | 16 ++--- .../src/components/forms/Toggle/UToggle.vue | 16 ++--- .../src/components/layouts/Card/UCard.vue | 16 ++--- .../layouts/Container/UContainer.vue | 18 +++-- .../components/layouts/Skeleton/USkeleton.vue | 16 ++--- .../Command-Palette/CommandPalette.vue | 49 +++++++++----- .../Command-Palette/CommandPaletteGroup.vue | 12 ++-- .../navigation/Pagination/UPagination.vue | 16 ++--- .../src/components/navigation/Tabs/UTabs.vue | 16 ++--- .../UVerticalNavigation.vue | 16 ++--- .../overlays/ContextMenu/UContextMenu.vue | 16 ++--- .../src/components/overlays/Modal/UModal.vue | 16 ++--- .../overlays/Notification/UNotification.vue | 16 ++--- .../overlays/Notification/UNotifications.vue | 16 ++--- .../components/overlays/Popover/UPopover.vue | 16 ++--- .../overlays/Slideover/USlideover.vue | 14 ++-- .../components/overlays/Tooltip/UTooltip.vue | 16 ++--- .../nuxt-ui-vue/src/composables/usePopper.ts | 65 +++++++++++-------- packages/nuxt-ui-vue/src/lodash-es.d.ts | 1 - packages/nuxt-ui-vue/src/plugin.ts | 3 +- packages/nuxt-ui-vue/src/utils/lodash.ts | 31 +++++++++ 42 files changed, 332 insertions(+), 340 deletions(-) delete mode 100644 packages/nuxt-ui-vue/src/components/Hello.vue delete mode 100755 packages/nuxt-ui-vue/src/lodash-es.d.ts create mode 100644 packages/nuxt-ui-vue/src/utils/lodash.ts diff --git a/packages/nuxt-ui-vue/package.json b/packages/nuxt-ui-vue/package.json index b4cd5d4..a6a0aca 100755 --- a/packages/nuxt-ui-vue/package.json +++ b/packages/nuxt-ui-vue/package.json @@ -43,7 +43,8 @@ "defu": "^6.1.2", "esno": "^0.17.0", "fuse.js": "^6.6.2", - "lodash-es": "^4.17.21", + "ohash": "^1.1.3", + "scule": "^1.0.0", "tailwind-merge": "^1.14.0", "vue": "^3.3.4", "vue-router": "^4.2.4" diff --git a/packages/nuxt-ui-vue/src/App.vue b/packages/nuxt-ui-vue/src/App.vue index 04d85e1..7770572 100755 --- a/packages/nuxt-ui-vue/src/App.vue +++ b/packages/nuxt-ui-vue/src/App.vue @@ -1,3 +1,5 @@ diff --git a/packages/nuxt-ui-vue/src/components/Hello.vue b/packages/nuxt-ui-vue/src/components/Hello.vue deleted file mode 100644 index 9091f41..0000000 --- a/packages/nuxt-ui-vue/src/components/Hello.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - diff --git a/packages/nuxt-ui-vue/src/components/data/Table/UTable.vue b/packages/nuxt-ui-vue/src/components/data/Table/UTable.vue index cb47dda..cd3eaae 100755 --- a/packages/nuxt-ui-vue/src/components/data/Table/UTable.vue +++ b/packages/nuxt-ui-vue/src/components/data/Table/UTable.vue @@ -1,9 +1,10 @@ - -