@una-ui/nuxt 0.18.0-beta.1 → 0.19.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/README.md +1 -1
  2. package/dist/module.d.mts +4 -1
  3. package/dist/module.d.ts +4 -1
  4. package/dist/module.json +1 -1
  5. package/dist/module.mjs +4 -4
  6. package/dist/runtime/components/data/table/Table.vue +6 -6
  7. package/dist/runtime/components/data/table/TableBody.vue +1 -1
  8. package/dist/runtime/components/data/table/TableCaption.vue +1 -1
  9. package/dist/runtime/components/data/table/TableCell.vue +1 -1
  10. package/dist/runtime/components/data/table/TableEmpty.vue +2 -2
  11. package/dist/runtime/components/data/table/TableHead.vue +1 -1
  12. package/dist/runtime/components/data/table/TableHeader.vue +1 -1
  13. package/dist/runtime/components/data/table/TableLoading.vue +1 -1
  14. package/dist/runtime/components/data/table/TableRoot.vue +1 -1
  15. package/dist/runtime/components/data/table/TableRow.vue +1 -1
  16. package/dist/runtime/components/elements/Accordion.vue +9 -8
  17. package/dist/runtime/components/elements/Alert.vue +2 -2
  18. package/dist/runtime/components/elements/Avatar.vue +1 -1
  19. package/dist/runtime/components/elements/Badge.vue +2 -2
  20. package/dist/runtime/components/elements/Button.vue +3 -3
  21. package/dist/runtime/components/elements/Indicator.vue +2 -2
  22. package/dist/runtime/components/elements/Kbd.vue +1 -1
  23. package/dist/runtime/components/elements/Label.vue +2 -2
  24. package/dist/runtime/components/elements/Link.vue +2 -1
  25. package/dist/runtime/components/elements/Link.vue.d.ts +3 -3
  26. package/dist/runtime/components/elements/Progress.vue +2 -2
  27. package/dist/runtime/components/elements/Separator.vue +2 -2
  28. package/dist/runtime/components/elements/card/Card.vue +4 -4
  29. package/dist/runtime/components/elements/dropdown-menu/DropdownMenu.vue +7 -7
  30. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuContent.vue +2 -2
  31. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuGroup.vue +1 -1
  32. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuItem.vue +2 -2
  33. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuLabel.vue +2 -2
  34. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuRoot.vue +1 -1
  35. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSeparator.vue +2 -2
  36. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuShortcut.vue +1 -1
  37. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSub.vue +5 -5
  38. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubContent.vue +2 -2
  39. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubTrigger.vue +2 -2
  40. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuTrigger.vue +2 -2
  41. package/dist/runtime/components/elements/popover/Popover.vue +2 -2
  42. package/dist/runtime/components/elements/popover/PopoverContent.vue +1 -1
  43. package/dist/runtime/components/elements/tabs/Tabs.vue +5 -5
  44. package/dist/runtime/components/elements/tabs/TabsContent.vue +2 -2
  45. package/dist/runtime/components/elements/tabs/TabsList.vue +2 -2
  46. package/dist/runtime/components/elements/tabs/TabsRoot.vue +2 -2
  47. package/dist/runtime/components/elements/tabs/TabsTrigger.vue +2 -2
  48. package/dist/runtime/components/elements/tooltip/Tooltip.vue +1 -1
  49. package/dist/runtime/components/elements/tooltip/TooltipContent.vue +3 -3
  50. package/dist/runtime/components/elements/tooltip/TooltipProvider.vue +1 -1
  51. package/dist/runtime/components/elements/tooltip/TooltipRoot.vue +1 -1
  52. package/dist/runtime/components/elements/tooltip/TooltipTrigger.vue +1 -1
  53. package/dist/runtime/components/forms/Checkbox.vue +2 -2
  54. package/dist/runtime/components/forms/FormGroup.vue +2 -2
  55. package/dist/runtime/components/forms/Input.vue +4 -4
  56. package/dist/runtime/components/forms/Radio.vue +1 -1
  57. package/dist/runtime/components/forms/Slider.vue +2 -2
  58. package/dist/runtime/components/forms/Switch.vue +2 -2
  59. package/dist/runtime/components/forms/select/Select.vue +6 -6
  60. package/dist/runtime/components/forms/select/SelectContent.vue +2 -2
  61. package/dist/runtime/components/forms/select/SelectGroup.vue +2 -2
  62. package/dist/runtime/components/forms/select/SelectItem.vue +3 -3
  63. package/dist/runtime/components/forms/select/SelectItemIndicator.vue +1 -1
  64. package/dist/runtime/components/forms/select/SelectItemText.vue +1 -1
  65. package/dist/runtime/components/forms/select/SelectLabel.vue +1 -1
  66. package/dist/runtime/components/forms/select/SelectRoot.vue +1 -1
  67. package/dist/runtime/components/forms/select/SelectScrollDownButton.vue +3 -3
  68. package/dist/runtime/components/forms/select/SelectScrollUpButton.vue +3 -3
  69. package/dist/runtime/components/forms/select/SelectSeparator.vue +2 -2
  70. package/dist/runtime/components/forms/select/SelectTrigger.vue +2 -2
  71. package/dist/runtime/components/forms/select/SelectValue.vue +1 -1
  72. package/dist/runtime/components/misc/ThemeSwitcher.vue +14 -24
  73. package/dist/runtime/components/navigation/NavLink.vue +2 -2
  74. package/dist/runtime/components/navigation/NavLinkGroup.vue +1 -1
  75. package/dist/runtime/components/navigation/breadcrumb/Breadcrumb.vue +2 -2
  76. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbEllipsis.vue +1 -1
  77. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbLink.vue +1 -1
  78. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbList.vue +1 -1
  79. package/dist/runtime/composables/useUnaSettings.d.ts +5 -3
  80. package/dist/runtime/composables/useUnaSettings.js +5 -2
  81. package/dist/runtime/composables/useUnaThemes.d.ts +3 -2
  82. package/dist/runtime/plugins/theme.client.js +3 -3
  83. package/dist/runtime/plugins/theme.server.js +1 -1
  84. package/dist/runtime/types/dropdown-menu.d.ts +1 -1
  85. package/dist/runtime/types/index.d.ts +23 -23
  86. package/dist/runtime/types/index.js +17 -17
  87. package/dist/runtime/types/link.d.ts +2 -1
  88. package/dist/runtime/types/separator.d.ts +1 -1
  89. package/dist/runtime/types/table.d.ts +1 -1
  90. package/dist/runtime/types/tooltip.d.ts +1 -1
  91. package/dist/runtime/utils/cn.d.ts +1 -1
  92. package/dist/una.config.mjs +3 -3
  93. package/package.json +3 -3
  94. package/playground/.nuxt/components.d.ts +1578 -1578
  95. package/playground/.nuxt/imports.d.ts +33 -33
  96. package/playground/.nuxt/types/app-defaults.d.ts +2 -1
  97. package/playground/.nuxt/types/app.config.d.ts +13 -12
  98. package/playground/.nuxt/types/build.d.ts +22 -22
  99. package/playground/.nuxt/types/imports.d.ts +777 -772
  100. package/playground/.nuxt/types/middleware.d.ts +1 -1
  101. package/playground/.nuxt/types/nitro-config.d.ts +3 -3
  102. package/playground/.nuxt/types/nitro-imports.d.ts +7 -7
  103. package/playground/.nuxt/types/nitro-nuxt.d.ts +3 -2
  104. package/playground/.nuxt/types/nitro-routes.d.ts +2 -3
  105. package/playground/.nuxt/types/nitro.d.ts +1 -1
  106. package/playground/.nuxt/types/plugins.d.ts +16 -16
  107. package/playground/.nuxt/types/schema.d.ts +44 -45
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ✨ Una UI
2
2
 
3
- > [!WARNING]
3
+ > [!WARNING]
4
4
  > This project is heavily working in progress.
5
5
 
6
6
  ## 🏗️ Release Status
package/dist/module.d.mts CHANGED
@@ -3,7 +3,10 @@ import { UnaSettings } from '../dist/runtime/types/index.js';
3
3
 
4
4
  declare module '@nuxt/schema' {
5
5
  interface AppConfigInput {
6
- una?: UnaSettings;
6
+ una?: Partial<Omit<UnaSettings, 'primaryColors' | 'grayColors'>>;
7
+ }
8
+ interface AppConfig {
9
+ una: Omit<UnaSettings, 'primaryColors' | 'grayColors'>;
7
10
  }
8
11
  }
9
12
  interface ModuleOptions {
package/dist/module.d.ts CHANGED
@@ -3,7 +3,10 @@ import { UnaSettings } from '../dist/runtime/types/index.js';
3
3
 
4
4
  declare module '@nuxt/schema' {
5
5
  interface AppConfigInput {
6
- una?: UnaSettings;
6
+ una?: Partial<Omit<UnaSettings, 'primaryColors' | 'grayColors'>>;
7
+ }
8
+ interface AppConfig {
9
+ una: Omit<UnaSettings, 'primaryColors' | 'grayColors'>;
7
10
  }
8
11
  }
9
12
  interface ModuleOptions {
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@una-ui/nuxt",
3
3
  "configKey": "una",
4
- "version": "0.18.0-beta.1",
4
+ "version": "0.19.0-beta.1",
5
5
  "compatibility": {
6
6
  "nuxt": ">=3.0.0"
7
7
  },
package/dist/module.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineNuxtModule, createResolver, addComponentsDir, addPlugin, addImportsDir, installModule } from '@nuxt/kit';
2
2
  import extendUnocssOptions from './una.config.mjs';
3
- import 'unocss';
4
- import 'unocss-preset-animations';
3
+ import '@una-ui/extractor-vue-script';
5
4
  import '@una-ui/preset';
6
5
  import '@una-ui/preset/prefixes';
7
- import '@una-ui/extractor-vue-script';
6
+ import 'unocss';
7
+ import 'unocss-preset-animations';
8
8
 
9
9
  const name = "@una-ui/nuxt";
10
- const version = "0.18.0-beta.1";
10
+ const version = "0.19.0-beta.1";
11
11
 
12
12
  const module = defineNuxtModule({
13
13
  meta: {
@@ -1,6 +1,4 @@
1
1
  <script setup lang="ts" generic="TData, TValue">
2
- import type { Ref } from 'vue'
3
- import { computed, h } from 'vue'
4
2
  import type {
5
3
  ColumnFiltersState,
6
4
  ColumnOrderState,
@@ -12,6 +10,8 @@ import type {
12
10
  SortingState,
13
11
  VisibilityState,
14
12
  } from '@tanstack/vue-table'
13
+ import type { Ref } from 'vue'
14
+ import type { NTableProps } from '../../../types'
15
15
 
16
16
  import {
17
17
  FlexRender,
@@ -22,22 +22,22 @@ import {
22
22
  getSortedRowModel,
23
23
  useVueTable,
24
24
  } from '@tanstack/vue-table'
25
+ import { computed, h } from 'vue'
25
26
 
26
27
  import { cn, pickProps, valueUpdater } from '../../../utils'
27
28
 
28
- import Checkbox from '../../forms/Checkbox.vue'
29
29
  import Button from '../../elements/Button.vue'
30
+ import Checkbox from '../../forms/Checkbox.vue'
30
31
  import Input from '../../forms/Input.vue'
31
- import type { NTableProps } from '../../../types'
32
32
  import TableBody from './TableBody.vue'
33
33
  import TableCell from './TableCell.vue'
34
34
  import TableEmpty from './TableEmpty.vue'
35
35
  import TableFooter from './TableFooter.vue'
36
36
  import TableHead from './TableHead.vue'
37
37
  import TableHeader from './TableHeader.vue'
38
+ import TableLoading from './TableLoading.vue'
38
39
  import TableRoot from './TableRoot.vue'
39
40
  import TableRow from './TableRow.vue'
40
- import TableLoading from './TableLoading.vue'
41
41
 
42
42
  const props = withDefaults(defineProps <NTableProps<TData, TValue>>(), {
43
43
  enableMultiRowSelection: true,
@@ -187,7 +187,7 @@ const table = computed(() => {
187
187
  })
188
188
  }) as Ref<ReturnType<typeof useVueTable>>
189
189
 
190
- function getHeaderColumnFiltersCount(headers: Header<unknown, unknown>[]) {
190
+ function getHeaderColumnFiltersCount(headers: Header<unknown, unknown>[]): number {
191
191
  let count = 0
192
192
  headers.forEach((header) => {
193
193
  if (header.column.columnDef.enableColumnFilter)
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
- import { cn } from '../../../utils'
3
2
  import type { NTableBodyProps } from '../../../types'
3
+ import { cn } from '../../../utils'
4
4
 
5
5
  const props = defineProps<NTableBodyProps>()
6
6
  </script>
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
- import { cn } from '../../../utils'
3
2
  import type { NTableCaptionProps } from '../../../types'
3
+ import { cn } from '../../../utils'
4
4
 
5
5
  const props = defineProps<NTableCaptionProps>()
6
6
  </script>
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
- import { cn } from '../../../utils'
3
2
  import type { NTableCellProps } from '../../../types'
3
+ import { cn } from '../../../utils'
4
4
 
5
5
  const props = defineProps<NTableCellProps>()
6
6
  </script>
@@ -1,9 +1,9 @@
1
1
  <script setup lang="ts">
2
+ import type { NTableEmptyProps } from '../../../types'
2
3
  import { computed } from 'vue'
3
4
  import { cn, omitProps } from '../../../utils'
4
- import type { NTableEmptyProps } from '../../../types'
5
- import TableRow from './TableRow.vue'
6
5
  import TableCell from './TableCell.vue'
6
+ import TableRow from './TableRow.vue'
7
7
 
8
8
  const props = withDefaults(defineProps<NTableEmptyProps>(), {
9
9
  colspan: 1,
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
- import { cn } from '../../../utils'
3
2
  import type { NTableHeadProps } from '../../../types'
3
+ import { cn } from '../../../utils'
4
4
 
5
5
  const props = defineProps<NTableHeadProps>()
6
6
  </script>
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
- import { cn } from '../../../utils'
3
2
  import type { NTableHeaderProps } from '../../../types'
3
+ import { cn } from '../../../utils'
4
4
 
5
5
  const props = defineProps<NTableHeaderProps>()
6
6
  </script>
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
+ import type { NTableLoadingProps } from '../../../types'
2
3
  import { computed } from 'vue'
3
4
  import { cn } from '../../../utils'
4
- import type { NTableLoadingProps } from '../../../types'
5
5
  import Progress from '../../elements/Progress.vue'
6
6
  import TableRow from './TableRow.vue'
7
7
 
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
- import { cn } from '../../../utils'
3
2
  import type { NTableRootProps } from '../../../types'
3
+ import { cn } from '../../../utils'
4
4
 
5
5
  const props = defineProps<NTableRootProps>()
6
6
  </script>
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
- import { cn } from '../../../utils'
3
2
  import type { NTableRowProps } from '../../../types'
3
+ import { cn } from '../../../utils'
4
4
 
5
5
  const props = defineProps<NTableRowProps>()
6
6
  </script>
@@ -1,4 +1,6 @@
1
1
  <script setup lang="ts">
2
+ import type { NAccordionItemProps, NAccordionProps } from '../../types'
3
+
2
4
  import {
3
5
  Disclosure,
4
6
  DisclosureButton,
@@ -7,10 +9,9 @@ import {
7
9
  import { createReusableTemplate } from '@vueuse/core'
8
10
  import { computed, ref } from 'vue'
9
11
 
10
- import type { NAccordionItemProps, NAccordionProps } from '../../types'
11
12
  import { pickProps } from '../../utils'
12
- import NIcon from './Icon.vue'
13
13
  import NButton from './Button.vue'
14
+ import NIcon from './Icon.vue'
14
15
 
15
16
  const props = withDefaults(defineProps<NAccordionProps>(), {
16
17
  trailingOpen: 'accordion-trailing-icon',
@@ -19,7 +20,7 @@ const props = withDefaults(defineProps<NAccordionProps>(), {
19
20
 
20
21
  const buttonRefs = ref<(() => void)[]>([])
21
22
 
22
- function closeOthers(index: number) {
23
+ function closeOthers(index: number): void {
23
24
  if (props.multiple && !props.items[index].closeOthers)
24
25
  return
25
26
 
@@ -28,24 +29,24 @@ function closeOthers(index: number) {
28
29
  .forEach(close => close())
29
30
  }
30
31
 
31
- function onEnter(element: Element, done: () => void) {
32
+ function onEnter(element: Element, done: () => void): void {
32
33
  const el = element as HTMLElement
33
34
  el.style.height = '0'
34
35
  el.style.height = `${element.scrollHeight}px`
35
36
  el.addEventListener('transitionend', done, { once: true })
36
37
  }
37
38
 
38
- function onAfterEnter(element: Element) {
39
+ function onAfterEnter(element: Element): void {
39
40
  const el = element as HTMLElement
40
41
  el.style.height = 'auto'
41
42
  }
42
43
 
43
- function onBeforeLeave(element: Element) {
44
+ function onBeforeLeave(element: Element): void {
44
45
  const el = element as HTMLElement
45
46
  el.style.height = `${el.scrollHeight}px`
46
47
  }
47
48
 
48
- function onLeave(element: Element, done: () => void) {
49
+ function onLeave(element: Element, done: () => void): void {
49
50
  const el = element as HTMLElement
50
51
  el.style.height = '0'
51
52
 
@@ -61,7 +62,7 @@ const [DefineTemplate, ReuseTemplate] = createReusableTemplate<{
61
62
 
62
63
  const pickedProps = pickProps(props, ['reverse', 'icon', 'btn', 'label', 'leading', 'loading', 'loadingPlacement', 'una', 'trailing', 'leading', 'to', 'type', 'disabled'])
63
64
 
64
- function mergedProps(itemProps: NAccordionItemProps) {
65
+ function mergedProps(itemProps: NAccordionItemProps): NAccordionItemProps {
65
66
  return Object.assign(pickedProps, itemProps)
66
67
  }
67
68
 
@@ -1,8 +1,8 @@
1
1
  <script setup lang="ts">
2
- import { computed } from 'vue'
3
2
  import type { NAlertProps } from '../../types'
4
- import NIcon from '../elements/Icon.vue'
3
+ import { computed } from 'vue'
5
4
  import NButton from '../elements/Button.vue'
5
+ import NIcon from '../elements/Icon.vue'
6
6
 
7
7
  defineOptions({
8
8
  inheritAttrs: false,
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
+ import type { NAvatarProps } from '../../types'
2
3
  import { useImage } from '@vueuse/core'
3
4
  import { computed } from 'vue'
4
- import type { NAvatarProps } from '../../types'
5
5
  import NIcon from './Icon.vue'
6
6
 
7
7
  const props = withDefaults(defineProps<NAvatarProps>(), {
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
- import { computed } from 'vue'
3
-
4
2
  import type { NBadgeProps } from '../../types'
3
+
4
+ import { computed } from 'vue'
5
5
  import NIcon from './Icon.vue'
6
6
 
7
7
  const props = withDefaults(defineProps<NBadgeProps>(), {
@@ -1,10 +1,10 @@
1
1
  <script setup lang="ts">
2
- import { computed } from 'vue'
2
+ import type { NButtonProps } from '../../types'
3
3
  import { createReusableTemplate } from '@vueuse/core'
4
+ import { computed } from 'vue'
5
+ import { cn } from '../../utils'
4
6
  import NIcon from '../elements/Icon.vue'
5
- import type { NButtonProps } from '../../types'
6
7
  import NLink from '../elements/Link.vue'
7
- import { cn } from '../../utils'
8
8
 
9
9
  const props = withDefaults(defineProps<NButtonProps>(), {
10
10
  type: 'button',
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
- import { computed } from 'vue'
3
- import { createReusableTemplate } from '@vueuse/core'
4
2
  import type { NIndicatorProps } from '../../types'
3
+ import { createReusableTemplate } from '@vueuse/core'
4
+ import { computed } from 'vue'
5
5
 
6
6
  defineOptions({
7
7
  inheritAttrs: false,
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
- import { computed } from 'vue'
3
2
  import type { NKbdProps } from '../../types'
3
+ import { computed } from 'vue'
4
4
 
5
5
  const props = defineProps<NKbdProps>()
6
6
 
@@ -1,8 +1,8 @@
1
1
  <script setup lang="ts">
2
- import { computed } from 'vue'
2
+ import type { NLabelProps } from '../../types'
3
3
  import { Label } from 'radix-vue'
4
+ import { computed } from 'vue'
4
5
  import { cn } from '../../utils'
5
- import type { NLabelProps } from '../../types'
6
6
 
7
7
  const props = defineProps<NLabelProps>()
8
8
 
@@ -1,6 +1,6 @@
1
1
  <script>
2
- import { defineComponent } from "vue";
3
2
  import { isEqual } from "ohash";
3
+ import { defineComponent } from "vue";
4
4
  import { NuxtLink } from "#components";
5
5
  export default defineComponent({
6
6
  inheritAttrs: false,
@@ -76,6 +76,7 @@ export default defineComponent({
76
76
  </script>
77
77
 
78
78
  <template>
79
+ <!-- eslint-disable vue/no-template-shadow -->
79
80
  <NuxtLink
80
81
  v-slot="{ route, href, target, rel, navigate, isActive, isExactActive, isExternal, exact }"
81
82
  v-bind="$props"
@@ -2,15 +2,15 @@ declare const _default: import("vue").DefineComponent<{}, {
2
2
  resolveLinkClass: (route: any, $route: any, { isActive, isExactActive }: {
3
3
  isActive: boolean;
4
4
  isExactActive: boolean;
5
- }) => any;
5
+ }) => string | null;
6
6
  resolveNavLinkActive: (route: any, $route: any, { isActive, isExactActive }: {
7
7
  isActive: boolean;
8
8
  isExactActive: boolean;
9
- }) => any;
9
+ }) => string | null;
10
10
  resolveNavLinkInactive: (route: any, $route: any, { isActive, isExactActive }: {
11
11
  isActive: boolean;
12
12
  isExactActive: boolean;
13
- }) => any;
13
+ }) => string | null;
14
14
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {} | {
15
15
  [x: string]: any;
16
16
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}>;
@@ -1,11 +1,11 @@
1
1
  <script setup lang="ts">
2
- import { computed } from 'vue'
2
+ import type { NProgressProps } from '../../types'
3
3
  import {
4
4
  ProgressIndicator,
5
5
  ProgressRoot,
6
6
  } from 'radix-vue'
7
+ import { computed } from 'vue'
7
8
  import { cn } from '../../utils'
8
- import type { NProgressProps } from '../../types'
9
9
 
10
10
  const props = withDefaults(
11
11
  defineProps<NProgressProps>(),
@@ -1,8 +1,8 @@
1
1
  <script setup lang="ts">
2
- import { computed } from 'vue'
2
+ import type { NSeparatorProps } from '../../types'
3
3
  import { Separator } from 'radix-vue'
4
+ import { computed } from 'vue'
4
5
  import { cn, omitProps } from '../../utils'
5
- import type { NSeparatorProps } from '../../types'
6
6
 
7
7
  const props = withDefaults(defineProps<NSeparatorProps>(), {
8
8
  orientation: 'horizontal',
@@ -1,13 +1,13 @@
1
1
  <script setup lang="ts">
2
- import { computed } from 'vue'
3
2
  import type { NCardProps } from '../../../types/card'
3
+ import { computed } from 'vue'
4
4
  import { cn } from '../../../utils'
5
- import CardContent from './CardContent.vue'
6
- import CardHeader from './CardHeader.vue'
7
5
  import CardAbout from './CardAbout.vue'
6
+ import CardContent from './CardContent.vue'
7
+ import CardDescription from './CardDescription.vue'
8
8
  import CardFooter from './CardFooter.vue'
9
+ import CardHeader from './CardHeader.vue'
9
10
  import CardTitle from './CardTitle.vue'
10
- import CardDescription from './CardDescription.vue'
11
11
 
12
12
  defineOptions({
13
13
  inheritAttrs: false,
@@ -1,19 +1,19 @@
1
1
  <script setup lang="ts">
2
2
  import type { DropdownMenuContentEmits, DropdownMenuRootEmits } from 'radix-vue'
3
- import { DropdownMenuPortal, useForwardPropsEmits } from 'radix-vue'
3
+ import type { NDropdownMenuProps } from '../../../types'
4
4
  import { createReusableTemplate } from '@vueuse/core'
5
+ import { DropdownMenuPortal, useForwardPropsEmits } from 'radix-vue'
5
6
  import { omitProps, pickProps } from '../../../utils'
6
- import type { NDropdownMenuProps } from '../../../types'
7
7
  import DropdownMenuContent from './DropdownMenuContent.vue'
8
- import DropdownMenuRoot from './DropdownMenuRoot.vue'
9
- import DropdownMenuTrigger from './DropdownMenuTrigger.vue'
8
+ import DropdownMenuGroup from './DropdownMenuGroup.vue'
9
+ import DropdownMenuItem from './DropdownMenuItem.vue'
10
10
  import DropdownMenuLabel from './DropdownMenuLabel.vue'
11
+ import DropdownMenuRoot from './DropdownMenuRoot.vue'
11
12
  import DropdownMenuSeparator from './DropdownMenuSeparator.vue'
12
- import DropdownMenuItem from './DropdownMenuItem.vue'
13
- import DropdownMenuGroup from './DropdownMenuGroup.vue'
14
13
  import DropdownMenuSub from './DropdownMenuSub.vue'
15
- import DropdownMenuSubTrigger from './DropdownMenuSubTrigger.vue'
16
14
  import DropdownMenuSubContent from './DropdownMenuSubContent.vue'
15
+ import DropdownMenuSubTrigger from './DropdownMenuSubTrigger.vue'
16
+ import DropdownMenuTrigger from './DropdownMenuTrigger.vue'
17
17
 
18
18
  const props = defineProps<NDropdownMenuProps>()
19
19
  const emits = defineEmits<DropdownMenuRootEmits & DropdownMenuContentEmits>()
@@ -1,12 +1,12 @@
1
1
  <script setup lang="ts">
2
- import { computed } from 'vue'
2
+ import type { NDropdownMenuContentProps } from '../../../types'
3
3
  import {
4
4
  DropdownMenuContent,
5
5
  type DropdownMenuContentEmits,
6
6
  DropdownMenuPortal,
7
7
  useForwardPropsEmits,
8
8
  } from 'radix-vue'
9
- import type { NDropdownMenuContentProps } from '../../../types'
9
+ import { computed } from 'vue'
10
10
  import { cn } from '../../../utils'
11
11
 
12
12
  const props = withDefaults(
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
- import { DropdownMenuGroup } from 'radix-vue'
3
2
  import type { NDropdownMenuGroupProps } from '../../../types'
3
+ import { DropdownMenuGroup } from 'radix-vue'
4
4
  import { cn } from '../../../utils'
5
5
 
6
6
  const props = defineProps<NDropdownMenuGroupProps>()
@@ -1,8 +1,8 @@
1
1
  <script setup lang="ts">
2
- import { computed } from 'vue'
2
+ import type { NDropdownMenuItemProps } from '../../../types'
3
3
  import { DropdownMenuItem, useForwardProps } from 'radix-vue'
4
+ import { computed } from 'vue'
4
5
  import { cn } from '../../../utils'
5
- import type { NDropdownMenuItemProps } from '../../../types'
6
6
  import Button from '../Button.vue'
7
7
  import DropdownMenuShortcut from './DropdownMenuShortcut.vue'
8
8
 
@@ -1,8 +1,8 @@
1
1
  <script setup lang="ts">
2
- import { computed } from 'vue'
2
+ import type { NDropdownMenuLabelProps } from '../../../types'
3
3
  import { DropdownMenuLabel, useForwardProps } from 'radix-vue'
4
+ import { computed } from 'vue'
4
5
  import { cn } from '../../../utils'
5
- import type { NDropdownMenuLabelProps } from '../../../types'
6
6
 
7
7
  const props = withDefaults(defineProps<NDropdownMenuLabelProps>(), {
8
8
  size: 'sm',
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
- import { DropdownMenuRoot, type DropdownMenuRootEmits, useForwardPropsEmits } from 'radix-vue'
3
2
  import type { NDropdownMenuRootProps } from '../../../types'
3
+ import { DropdownMenuRoot, type DropdownMenuRootEmits, useForwardPropsEmits } from 'radix-vue'
4
4
 
5
5
  const props = defineProps<NDropdownMenuRootProps>()
6
6
  const emits = defineEmits<DropdownMenuRootEmits>()
@@ -1,10 +1,10 @@
1
1
  <script setup lang="ts">
2
- import { computed } from 'vue'
2
+ import type { NDropdownMenuSeparatorProps } from '../../../types'
3
3
  import {
4
4
  DropdownMenuSeparator,
5
5
  } from 'radix-vue'
6
+ import { computed } from 'vue'
6
7
  import { cn } from '../../../utils'
7
- import type { NDropdownMenuSeparatorProps } from '../../../types'
8
8
  import Separator from '../Separator.vue'
9
9
 
10
10
  const props = defineProps<NDropdownMenuSeparatorProps>()
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
- import { cn } from '../../../utils'
3
2
  import type { NDropdownMenuShortcutProps } from '../../../types/dropdown-menu'
3
+ import { cn } from '../../../utils'
4
4
 
5
5
  const props = withDefaults(defineProps<NDropdownMenuShortcutProps>(), {
6
6
  size: 'sm',
@@ -1,14 +1,14 @@
1
1
  <script setup lang="ts">
2
- import {
3
- DropdownMenuSub,
4
- useForwardPropsEmits,
5
- } from 'radix-vue'
6
-
7
2
  import type {
8
3
  DropdownMenuSubEmits,
9
4
  DropdownMenuSubProps,
10
5
  } from 'radix-vue'
11
6
 
7
+ import {
8
+ DropdownMenuSub,
9
+ useForwardPropsEmits,
10
+ } from 'radix-vue'
11
+
12
12
  const props = defineProps<DropdownMenuSubProps>()
13
13
  const emits = defineEmits<DropdownMenuSubEmits>()
14
14
 
@@ -1,12 +1,12 @@
1
1
  <script setup lang="ts">
2
- import { computed } from 'vue'
2
+ import type { NDropdownMenuSubContentProps } from '../../../types'
3
3
  import {
4
4
  DropdownMenuSubContent,
5
5
  type DropdownMenuSubContentEmits,
6
6
  useForwardPropsEmits,
7
7
  } from 'radix-vue'
8
+ import { computed } from 'vue'
8
9
  import { cn } from '../../../utils'
9
- import type { NDropdownMenuSubContentProps } from '../../../types'
10
10
 
11
11
  const props = defineProps<NDropdownMenuSubContentProps>()
12
12
  const emits = defineEmits<DropdownMenuSubContentEmits>()
@@ -1,12 +1,12 @@
1
1
  <script setup lang="ts">
2
- import { computed } from 'vue'
2
+ import type { NDropdownMenuSubTriggerProps } from '../../../types'
3
3
  import {
4
4
  DropdownMenuSubTrigger,
5
5
  useForwardProps,
6
6
  } from 'radix-vue'
7
+ import { computed } from 'vue'
7
8
  import { cn } from '../../../utils'
8
9
  import Button from '../Button.vue'
9
- import type { NDropdownMenuSubTriggerProps } from '../../../types'
10
10
 
11
11
  const props = withDefaults(defineProps<NDropdownMenuSubTriggerProps>(), {
12
12
  dropdownMenuItem: '~',
@@ -1,8 +1,8 @@
1
1
  <script setup lang="ts">
2
+ import type { NDropdownMenuTriggerProps } from '../../../types'
2
3
  import { DropdownMenuTrigger, useForwardProps } from 'radix-vue'
3
- import Button from '../Button.vue'
4
4
  import { cn, randomId } from '../../../utils'
5
- import type { NDropdownMenuTriggerProps } from '../../../types'
5
+ import Button from '../Button.vue'
6
6
 
7
7
  const props = defineProps<NDropdownMenuTriggerProps>()
8
8
 
@@ -1,8 +1,8 @@
1
1
  <script setup lang="ts">
2
- import { PopoverRoot, PopoverTrigger, useForwardPropsEmits } from 'radix-vue'
3
- import { computed } from 'vue'
4
2
  import type { PopoverRootEmits } from 'radix-vue'
5
3
  import type { NPopoverProps } from '../../../types'
4
+ import { PopoverRoot, PopoverTrigger, useForwardPropsEmits } from 'radix-vue'
5
+ import { computed } from 'vue'
6
6
  import NPopoverContent from './PopoverContent.vue'
7
7
 
8
8
  const props = defineProps<NPopoverProps>()
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import type { NPopoverContentProps } from '../../../types'
2
3
  import {
3
4
  PopoverContent,
4
5
  type PopoverContentEmits,
@@ -7,7 +8,6 @@ import {
7
8
  } from 'radix-vue'
8
9
  import { computed } from 'vue'
9
10
  import { cn } from '../../../utils'
10
- import type { NPopoverContentProps } from '../../../types'
11
11
 
12
12
  defineOptions({
13
13
  inheritAttrs: false,