@una-ui/nuxt 1.0.0-alpha.1 → 1.0.0-alpha.11

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 (140) hide show
  1. package/dist/module.json +3 -3
  2. package/dist/module.mjs +10 -8
  3. package/dist/runtime/components/alert-dialog/AlertDialog.vue.d.ts +1 -1
  4. package/dist/runtime/components/alert-dialog/AlertDialogAction.vue.d.ts +1 -1
  5. package/dist/runtime/components/alert-dialog/AlertDialogCancel.vue.d.ts +1 -1
  6. package/dist/runtime/components/alert-dialog/AlertDialogContent.vue +0 -1
  7. package/dist/runtime/components/aspect-ratio/AspectRatio.vue.d.ts +1 -1
  8. package/dist/runtime/components/combobox/Combobox.vue +4 -2
  9. package/dist/runtime/components/combobox/Combobox.vue.d.ts +19 -19
  10. package/dist/runtime/components/combobox/ComboboxInput.vue.d.ts +1 -1
  11. package/dist/runtime/components/combobox/ComboboxList.vue +3 -0
  12. package/dist/runtime/components/combobox/ComboboxTrigger.vue.d.ts +1 -1
  13. package/dist/runtime/components/data/table/Table.vue +6 -1
  14. package/dist/runtime/components/data/table/TableEmpty.vue +17 -9
  15. package/dist/runtime/components/data/table/TableEmpty.vue.d.ts +4 -0
  16. package/dist/runtime/components/drawer/Drawer.vue.d.ts +1 -1
  17. package/dist/runtime/components/drawer/DrawerContent.vue +0 -1
  18. package/dist/runtime/components/drawer/DrawerOverlay.vue +1 -0
  19. package/dist/runtime/components/elements/Badge.vue.d.ts +1 -5
  20. package/dist/runtime/components/elements/Progress.vue.d.ts +1 -1
  21. package/dist/runtime/components/elements/Toggle.vue.d.ts +1 -1
  22. package/dist/runtime/components/elements/accordion/Accordion.vue +86 -0
  23. package/dist/runtime/components/elements/accordion/Accordion.vue.d.ts +71 -0
  24. package/dist/runtime/components/elements/accordion/AccordionContent.vue +24 -0
  25. package/dist/runtime/components/elements/accordion/AccordionContent.vue.d.ts +13 -0
  26. package/dist/runtime/components/elements/accordion/AccordionHeader.vue +17 -0
  27. package/dist/runtime/components/elements/accordion/AccordionHeader.vue.d.ts +13 -0
  28. package/dist/runtime/components/elements/accordion/AccordionItem.vue +59 -0
  29. package/dist/runtime/components/elements/accordion/AccordionItem.vue.d.ts +27 -0
  30. package/dist/runtime/components/elements/accordion/AccordionTrigger.vue +56 -0
  31. package/dist/runtime/components/elements/accordion/AccordionTrigger.vue.d.ts +16 -0
  32. package/dist/runtime/components/elements/avatar/Avatar.vue.d.ts +1 -1
  33. package/dist/runtime/components/elements/collapsible/Collapsible.vue.d.ts +2 -2
  34. package/dist/runtime/components/elements/collapsible/CollapsibleContent.vue +1 -0
  35. package/dist/runtime/components/elements/dialog/Dialog.vue.d.ts +1 -1
  36. package/dist/runtime/components/elements/dialog/DialogContent.vue +0 -1
  37. package/dist/runtime/components/elements/dialog/DialogDescription.vue +2 -1
  38. package/dist/runtime/components/elements/dialog/DialogScrollContent.vue +0 -1
  39. package/dist/runtime/components/elements/dropdown-menu/DropdownMenu.vue.d.ts +4 -4
  40. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuContent.vue +3 -1
  41. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubContent.vue +3 -1
  42. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +1 -1
  43. package/dist/runtime/components/elements/pagination/Pagination.vue.d.ts +2 -5
  44. package/dist/runtime/components/elements/pagination/PaginationListItem.vue.d.ts +1 -1
  45. package/dist/runtime/components/elements/popover/Popover.vue.d.ts +1 -1
  46. package/dist/runtime/components/elements/popover/PopoverContent.vue +3 -0
  47. package/dist/runtime/components/elements/tabs/Tabs.vue.d.ts +1 -1
  48. package/dist/runtime/components/elements/tabs/TabsTrigger.vue.d.ts +1 -1
  49. package/dist/runtime/components/elements/tooltip/TooltipContent.vue +1 -0
  50. package/dist/runtime/components/forms/Input.vue.d.ts +1 -13
  51. package/dist/runtime/components/forms/Switch.vue.d.ts +2 -2
  52. package/dist/runtime/components/forms/radio-group/RadioGroup.vue +1 -2
  53. package/dist/runtime/components/forms/radio-group/RadioGroup.vue.d.ts +5 -5
  54. package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue +1 -1
  55. package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue.d.ts +2 -1
  56. package/dist/runtime/components/forms/select/Select.vue +5 -23
  57. package/dist/runtime/components/forms/select/Select.vue.d.ts +18 -20
  58. package/dist/runtime/components/forms/select/SelectContent.vue +3 -0
  59. package/dist/runtime/components/forms/select/SelectItem.vue +0 -2
  60. package/dist/runtime/components/forms/select/SelectItemIndicator.vue +7 -6
  61. package/dist/runtime/components/forms/select/SelectItemIndicator.vue.d.ts +1 -3
  62. package/dist/runtime/components/hover-card/HoverCard.vue.d.ts +1 -1
  63. package/dist/runtime/components/hover-card/HoverCardContent.vue +3 -0
  64. package/dist/runtime/components/misc/ThemeSwitcher.vue +25 -19
  65. package/dist/runtime/components/misc/ThemeSwitcher.vue.d.ts +1 -1
  66. package/dist/runtime/components/navigation/breadcrumb/Breadcrumb.vue.d.ts +6 -16
  67. package/dist/runtime/components/navigation-menu/NavigationMenu.vue.d.ts +11 -11
  68. package/dist/runtime/components/navigation-menu/NavigationMenuIndicator.vue +1 -0
  69. package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue.d.ts +2 -2
  70. package/dist/runtime/components/navigation-menu/NavigationMenuTrigger.vue.d.ts +1 -1
  71. package/dist/runtime/components/navigation-menu/NavigationMenuViewport.vue +1 -0
  72. package/dist/runtime/components/number-field/NumberField.vue +1 -0
  73. package/dist/runtime/components/overlays/Toaster.vue +1 -0
  74. package/dist/runtime/components/overlays/Toaster.vue.d.ts +1 -1
  75. package/dist/runtime/components/overlays/toast/Toast.vue.d.ts +1 -1
  76. package/dist/runtime/components/overlays/toast/ToastAction.vue.d.ts +1 -1
  77. package/dist/runtime/components/overlays/toast/ToastProvider.vue +1 -0
  78. package/dist/runtime/components/pin-input/PinInput.vue +139 -0
  79. package/dist/runtime/components/pin-input/PinInput.vue.d.ts +33 -0
  80. package/dist/runtime/components/pin-input/PinInputGroup.vue +28 -0
  81. package/dist/runtime/components/pin-input/PinInputGroup.vue.d.ts +13 -0
  82. package/dist/runtime/components/pin-input/PinInputSeparator.vue +30 -0
  83. package/dist/runtime/components/pin-input/PinInputSeparator.vue.d.ts +15 -0
  84. package/dist/runtime/components/pin-input/PinInputSlot.vue +46 -0
  85. package/dist/runtime/components/pin-input/PinInputSlot.vue.d.ts +5 -0
  86. package/dist/runtime/components/resizable/ResizableHandle.vue +1 -0
  87. package/dist/runtime/components/resizable/ResizablePanel.vue.d.ts +1 -7
  88. package/dist/runtime/components/resizable/ResizablePanelGroup.vue.d.ts +1 -3
  89. package/dist/runtime/components/sheet/Sheet.vue.d.ts +1 -1
  90. package/dist/runtime/components/sheet/SheetContent.vue +6 -2
  91. package/dist/runtime/components/sheet/SheetOverlay.vue +6 -1
  92. package/dist/runtime/components/sidebar/SidebarMenu.vue.d.ts +1 -1
  93. package/dist/runtime/components/sidebar/SidebarProvider.vue +7 -2
  94. package/dist/runtime/components/sidebar/SidebarProvider.vue.d.ts +1 -1
  95. package/dist/runtime/components/stepper/Stepper.vue +163 -0
  96. package/dist/runtime/components/stepper/Stepper.vue.d.ts +62 -0
  97. package/dist/runtime/components/stepper/StepperContainer.vue +21 -0
  98. package/dist/runtime/components/stepper/StepperContainer.vue.d.ts +15 -0
  99. package/dist/runtime/components/stepper/StepperDescription.vue +28 -0
  100. package/dist/runtime/components/stepper/StepperDescription.vue.d.ts +13 -0
  101. package/dist/runtime/components/stepper/StepperHeader.vue +21 -0
  102. package/dist/runtime/components/stepper/StepperHeader.vue.d.ts +15 -0
  103. package/dist/runtime/components/stepper/StepperIndicator.vue +34 -0
  104. package/dist/runtime/components/stepper/StepperIndicator.vue.d.ts +15 -0
  105. package/dist/runtime/components/stepper/StepperItem.vue +44 -0
  106. package/dist/runtime/components/stepper/StepperItem.vue.d.ts +15 -0
  107. package/dist/runtime/components/stepper/StepperSeparator.vue +29 -0
  108. package/dist/runtime/components/stepper/StepperSeparator.vue.d.ts +6 -0
  109. package/dist/runtime/components/stepper/StepperTitle.vue +27 -0
  110. package/dist/runtime/components/stepper/StepperTitle.vue.d.ts +13 -0
  111. package/dist/runtime/components/stepper/StepperTrigger.vue +29 -0
  112. package/dist/runtime/components/stepper/StepperTrigger.vue.d.ts +15 -0
  113. package/dist/runtime/components/stepper/StepperWrapper.vue +21 -0
  114. package/dist/runtime/components/stepper/StepperWrapper.vue.d.ts +15 -0
  115. package/dist/runtime/components/toggle-group/ToggleGroup.vue +70 -0
  116. package/dist/runtime/components/toggle-group/ToggleGroup.vue.d.ts +23 -0
  117. package/dist/runtime/components/toggle-group/ToggleGroupItem.vue +75 -0
  118. package/dist/runtime/components/toggle-group/ToggleGroupItem.vue.d.ts +18 -0
  119. package/dist/runtime/composables/useUnaSettings.d.ts +2 -2
  120. package/dist/runtime/composables/useUnaSettings.js +7 -6
  121. package/dist/runtime/plugins/theme.client.js +3 -2
  122. package/dist/runtime/plugins/theme.server.js +4 -2
  123. package/dist/runtime/types/accordion.d.ts +36 -91
  124. package/dist/runtime/types/combobox.d.ts +3 -2
  125. package/dist/runtime/types/index.d.ts +6 -3
  126. package/dist/runtime/types/index.js +3 -0
  127. package/dist/runtime/types/pin-input.d.ts +88 -0
  128. package/dist/runtime/types/pin-input.js +0 -0
  129. package/dist/runtime/types/radio-group.d.ts +5 -3
  130. package/dist/runtime/types/select.d.ts +6 -4
  131. package/dist/runtime/types/sidebar.d.ts +5 -0
  132. package/dist/runtime/types/stepper.d.ts +129 -0
  133. package/dist/runtime/types/stepper.js +0 -0
  134. package/dist/runtime/types/table.d.ts +16 -3
  135. package/dist/runtime/types/toggle-group.d.ts +39 -0
  136. package/dist/runtime/types/toggle-group.js +0 -0
  137. package/dist/runtime/utils/index.d.ts +1 -1
  138. package/package.json +20 -20
  139. package/dist/runtime/components/elements/Accordion.vue +0 -212
  140. package/dist/runtime/components/elements/Accordion.vue.d.ts +0 -28
package/dist/module.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@una-ui/nuxt",
3
3
  "configKey": "una",
4
- "version": "1.0.0-alpha.1",
4
+ "version": "1.0.0-alpha.11",
5
5
  "compatibility": {
6
6
  "nuxt": ">=3.0.0"
7
7
  },
8
8
  "builder": {
9
- "@nuxt/module-builder": "1.0.1",
10
- "unbuild": "3.5.0"
9
+ "@nuxt/module-builder": "1.0.2",
10
+ "unbuild": "3.6.1"
11
11
  }
12
12
  }
package/dist/module.mjs CHANGED
@@ -8,7 +8,7 @@ import 'unocss';
8
8
  import 'unocss-preset-animations';
9
9
 
10
10
  const name = "@una-ui/nuxt";
11
- const version = "1.0.0-alpha.1";
11
+ const version = "1.0.0-alpha.11";
12
12
 
13
13
  const module = defineNuxtModule({
14
14
  meta: {
@@ -27,7 +27,10 @@ const module = defineNuxtModule({
27
27
  },
28
28
  async setup(options, nuxt) {
29
29
  const { resolve } = createResolver(import.meta.url);
30
- nuxt.options.css.unshift("@una-ui/preset/una.css");
30
+ nuxt.options.css.unshift(
31
+ import.meta.resolve("@unocss/reset/tailwind.css"),
32
+ import.meta.resolve("@una-ui/preset/una.css")
33
+ );
31
34
  nuxt.options.alias["#una"] = resolve("./runtime");
32
35
  nuxt.options.appConfig.una = {
33
36
  ...{
@@ -44,17 +47,16 @@ const module = defineNuxtModule({
44
47
  nuxt.options.app.rootAttrs.class = [nuxt.options.app.rootAttrs.class, "isolate"].filter(Boolean).join(" ");
45
48
  const runtimeDir = resolve("./runtime");
46
49
  nuxt.options.build.transpile.push(runtimeDir);
47
- nuxt.options.build.transpile.push("@headlessui/vue");
48
- await installModule("@unocss/nuxt", extendUnocssOptions(nuxt.options.unocss));
49
- await installModule("@nuxtjs/color-mode", {
50
+ await installModule(import.meta.resolve("@unocss/nuxt"), extendUnocssOptions(nuxt.options.unocss));
51
+ await installModule(import.meta.resolve("@nuxtjs/color-mode"), {
50
52
  classSuffix: "",
51
53
  disableTransition: true
52
54
  });
53
- await installModule("@vueuse/nuxt");
54
- await installModule("reka-ui/nuxt", {
55
+ await installModule(import.meta.resolve("@vueuse/nuxt"));
56
+ await installModule(import.meta.resolve("reka-ui/nuxt"), {
55
57
  prefix: options.prefix
56
58
  });
57
- await installModule("@vee-validate/nuxt", {
59
+ await installModule(import.meta.resolve("@vee-validate/nuxt"), {
58
60
  componentNames: {
59
61
  Form: `${options.prefix}Form`,
60
62
  // Field: `${options.prefix}FormField`,
@@ -1,6 +1,6 @@
1
1
  import type { NAlertDialogProps } from '../../types/index.js';
2
2
  declare var __VLS_6: {}, __VLS_11: {
3
- open: boolean;
3
+ open: any;
4
4
  }, __VLS_26: {}, __VLS_31: {}, __VLS_36: {}, __VLS_41: {}, __VLS_46: {}, __VLS_48: {}, __VLS_57: {}, __VLS_59: {}, __VLS_68: {};
5
5
  type __VLS_Slots = {} & {
6
6
  default?: (props: typeof __VLS_6) => any;
@@ -1,5 +1,5 @@
1
1
  import type { NAlertDialogActionProps } from '../../types/index.js';
2
- declare var __VLS_10: string | number, __VLS_11: any;
2
+ declare var __VLS_10: any, __VLS_11: any;
3
3
  type __VLS_Slots = {} & {
4
4
  [K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import type { NAlertDialogCancelProps } from '../../types/index.js';
2
- declare var __VLS_10: string | number, __VLS_11: any;
2
+ declare var __VLS_10: any, __VLS_11: any;
3
3
  type __VLS_Slots = {} & {
4
4
  [K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
5
5
  };
@@ -19,7 +19,6 @@ const props = defineProps({
19
19
  _alertDialogOverlay: { type: Object, required: false },
20
20
  una: { type: Object, required: false },
21
21
  forceMount: { type: Boolean, required: false },
22
- trapFocus: { type: Boolean, required: false },
23
22
  disableOutsidePointerEvents: { type: Boolean, required: false },
24
23
  asChild: { type: Boolean, required: false },
25
24
  as: { type: null, required: false },
@@ -1,6 +1,6 @@
1
1
  import type { NAspectRatioProps } from '../../types/aspect-ratio.js';
2
2
  declare var __VLS_6: {
3
- aspect: number;
3
+ aspect: any;
4
4
  };
5
5
  type __VLS_Slots = {} & {
6
6
  default?: (props: typeof __VLS_6) => any;
@@ -25,6 +25,7 @@ const props = defineProps({
25
25
  groupSeparator: { type: Boolean, required: false },
26
26
  textEmpty: { type: String, required: false, default: "No items found." },
27
27
  label: { type: String, required: false },
28
+ multiple: { type: null, required: false },
28
29
  _comboboxAnchor: { type: Object, required: false },
29
30
  _comboboxEmpty: { type: Object, required: false },
30
31
  _comboboxGroup: { type: Object, required: false },
@@ -44,9 +45,11 @@ const props = defineProps({
44
45
  defaultOpen: { type: Boolean, required: false },
45
46
  resetSearchTermOnBlur: { type: Boolean, required: false },
46
47
  resetSearchTermOnSelect: { type: Boolean, required: false },
48
+ openOnFocus: { type: Boolean, required: false },
49
+ openOnClick: { type: Boolean, required: false },
47
50
  ignoreFilter: { type: Boolean, required: false },
51
+ resetModelValueOnClear: { type: Boolean, required: false },
48
52
  defaultValue: { type: null, required: false },
49
- multiple: { type: Boolean, required: false },
50
53
  dir: { type: String, required: false },
51
54
  disabled: { type: Boolean, required: false },
52
55
  highlightOnHover: { type: Boolean, required: false },
@@ -139,7 +142,6 @@ function isItemSelected(item) {
139
142
 
140
143
  <template>
141
144
  <ComboboxRoot
142
- v-slot="{ modelValue, open }"
143
145
  data-slot="combobox"
144
146
  :class="cn(
145
147
  'combobox',
@@ -1,6 +1,6 @@
1
1
  import type { AcceptableValue } from 'reka-ui';
2
- import type { ExtractItemType, NComboboxGroupProps, NComboboxProps } from '../../types/index.js';
3
- declare const _default: <T extends AcceptableValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ import type { ExtractItemType, NComboboxProps } from '../../types/index.js';
3
+ declare const _default: <T extends AcceptableValue, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
5
  readonly "onUpdate:modelValue"?: ((value: ExtractItemType<T>) => any) | undefined;
6
6
  readonly onHighlight?: ((payload: {
@@ -8,7 +8,7 @@ declare const _default: <T extends AcceptableValue>(__VLS_props: NonNullable<Awa
8
8
  value: ExtractItemType<T>;
9
9
  } | undefined) => any) | undefined;
10
10
  readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
11
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onHighlight" | "onUpdate:open"> & NComboboxProps<T> & Partial<{}>> & import("vue").PublicProps;
11
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onHighlight" | "onUpdate:open"> & NComboboxProps<T, M> & Partial<{}>> & import("vue").PublicProps;
12
12
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
13
13
  attrs: any;
14
14
  slots: {
@@ -19,20 +19,20 @@ declare const _default: <T extends AcceptableValue>(__VLS_props: NonNullable<Awa
19
19
  'trigger-wrapper'?: (props: {}) => any;
20
20
  } & {
21
21
  trigger?: (props: {
22
- modelValue: ExtractItemType<T> | ExtractItemType<T>[];
23
- open: boolean;
22
+ modelValue: any;
23
+ open: any;
24
24
  }) => any;
25
25
  } & {
26
26
  'input-wrapper'?: (props: {
27
- modelValue: ExtractItemType<T> | ExtractItemType<T>[];
28
- open: boolean;
27
+ modelValue: any;
28
+ open: any;
29
29
  }) => any;
30
30
  } & {
31
31
  list?: (props: {}) => any;
32
32
  } & {
33
33
  'input-wrapper'?: (props: {
34
- modelValue: ExtractItemType<T> | ExtractItemType<T>[];
35
- open: boolean;
34
+ modelValue: any;
35
+ open: any;
36
36
  }) => any;
37
37
  } & {
38
38
  header?: (props: {}) => any;
@@ -44,34 +44,34 @@ declare const _default: <T extends AcceptableValue>(__VLS_props: NonNullable<Awa
44
44
  group?: (props: {}) => any;
45
45
  } & {
46
46
  item?: (props: {
47
- item: ExtractItemType<T>;
48
- selected: boolean;
47
+ item: any;
48
+ selected: any;
49
49
  }) => any;
50
50
  } & {
51
51
  label?: (props: {
52
- item: ExtractItemType<T>;
52
+ item: any;
53
53
  }) => any;
54
54
  } & {
55
55
  'item-indicator'?: (props: {
56
- item: ExtractItemType<T>;
56
+ item: any;
57
57
  }) => any;
58
58
  } & {
59
59
  group?: (props: {
60
- group: NComboboxGroupProps<ExtractItemType<T>>;
60
+ group: any;
61
61
  }) => any;
62
62
  } & {
63
63
  item?: (props: {
64
- item: ExtractItemType<T>;
65
- group: NComboboxGroupProps<ExtractItemType<T>>;
66
- selected: boolean;
64
+ item: any;
65
+ group: any;
66
+ selected: any;
67
67
  }) => any;
68
68
  } & {
69
69
  label?: (props: {
70
- item: ExtractItemType<T>;
70
+ item: any;
71
71
  }) => any;
72
72
  } & {
73
73
  indicator?: (props: {
74
- item: ExtractItemType<T>;
74
+ item: any;
75
75
  }) => any;
76
76
  } & {
77
77
  footer?: (props: {}) => any;
@@ -1,4 +1,4 @@
1
- declare var __VLS_12: string | number, __VLS_13: any;
1
+ declare var __VLS_12: any, __VLS_13: any;
2
2
  type __VLS_Slots = {} & {
3
3
  [K in NonNullable<typeof __VLS_12>]?: (props: typeof __VLS_13) => any;
4
4
  };
@@ -13,8 +13,10 @@ const props = defineProps({
13
13
  bodyLock: { type: Boolean, required: false },
14
14
  side: { type: null, required: false },
15
15
  sideOffset: { type: Number, required: false, default: 4 },
16
+ sideFlip: { type: Boolean, required: false },
16
17
  align: { type: null, required: false, default: "center" },
17
18
  alignOffset: { type: Number, required: false },
19
+ alignFlip: { type: Boolean, required: false },
18
20
  avoidCollisions: { type: Boolean, required: false },
19
21
  collisionBoundary: { type: null, required: false },
20
22
  collisionPadding: { type: [Number, Object], required: false },
@@ -47,6 +49,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
47
49
  v-bind="forwarded"
48
50
  :class="cn(
49
51
  'origin-(--reka-combobox-content-transform-origin)',
52
+ 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95',
50
53
  'combobox-list',
51
54
  props.una?.comboboxList,
52
55
  props.class
@@ -1,5 +1,5 @@
1
1
  import type { NComboboxTriggerProps } from '../../types/index.js';
2
- declare var __VLS_6: {}, __VLS_12: string | number, __VLS_13: any;
2
+ declare var __VLS_6: {}, __VLS_12: any, __VLS_13: any;
3
3
  type __VLS_Slots = {} & {
4
4
  [K in NonNullable<typeof __VLS_12>]?: (props: typeof __VLS_13) => any;
5
5
  } & {
@@ -73,7 +73,9 @@ const props = defineProps({
73
73
  getSubRows: { type: Function, required: false },
74
74
  initialState: { type: Object, required: false },
75
75
  mergeOptions: { type: Function, required: false },
76
- meta: { type: Object, required: false }
76
+ meta: { type: Object, required: false },
77
+ emptyText: { type: String, required: false },
78
+ emptyIcon: { type: String, required: false }
77
79
  });
78
80
  const emit = defineEmits(["select", "selectAll", "expand", "row"]);
79
81
  const slots = defineSlots();
@@ -213,6 +215,7 @@ const table = useVueTable({
213
215
  getFilteredRowModel: getFilteredRowModel(),
214
216
  getPaginationRowModel: getPaginationRowModel(),
215
217
  getRowId: (row) => props.rowId ? row[props.rowId] : row.id,
218
+ getSubRows: (row) => row.subRows,
216
219
  getExpandedRowModel: getExpandedRowModel(),
217
220
  onSortingChange: (updaterOrValue) => valueUpdater(updaterOrValue, sorting),
218
221
  onRowSelectionChange: (updaterOrValue) => valueUpdater(updaterOrValue, rowSelection),
@@ -428,6 +431,8 @@ defineExpose({
428
431
  v-else
429
432
  :colspan="table.getAllLeafColumns().length"
430
433
  :una
434
+ :empty-text="props.emptyText"
435
+ :empty-icon="props.emptyIcon"
431
436
  v-bind="props._tableEmpty"
432
437
  >
433
438
  <slot name="empty" />
@@ -6,6 +6,8 @@ import TableRow from "./TableRow.vue";
6
6
  const props = defineProps({
7
7
  class: { type: null, required: false },
8
8
  colspan: { type: Number, required: false, default: 1 },
9
+ emptyText: { type: String, required: false, default: "No results." },
10
+ emptyIcon: { type: String, required: false, default: "table-empty-icon-name" },
9
11
  _tableCell: { type: Object, required: false },
10
12
  _tableRow: { type: Object, required: false },
11
13
  una: { type: Object, required: false }
@@ -40,16 +42,22 @@ const delegatedProps = reactiveOmit(props, ["class"]);
40
42
  v-bind="omitProps(delegatedProps, ['_tableRow', '_tableCell', 'colspan'])"
41
43
  >
42
44
  <slot>
43
- <div class="grid place-items-center gap-4">
44
- <NIcon
45
- name="i-tabler-database-x"
46
- size="2xl"
47
- />
45
+ <NIcon
46
+ :name="props.emptyIcon"
47
+ :class="cn(
48
+ 'table-empty-icon',
49
+ props.una?.tableEmptyIcon
50
+ )"
51
+ />
48
52
 
49
- <span>
50
- No results.
51
- </span>
52
- </div>
53
+ <span
54
+ :class="cn(
55
+ 'table-empty-text',
56
+ props.una?.tableEmptyText
57
+ )"
58
+ >
59
+ {{ props.emptyText }}
60
+ </span>
53
61
  </slot>
54
62
  </div>
55
63
  </TableCell>
@@ -5,8 +5,12 @@ type __VLS_Slots = {} & {
5
5
  };
6
6
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NTableEmptyProps>, {
7
7
  colspan: number;
8
+ emptyText: string;
9
+ emptyIcon: string;
8
10
  }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NTableEmptyProps>, {
9
11
  colspan: number;
12
+ emptyText: string;
13
+ emptyIcon: string;
10
14
  }>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
15
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
12
16
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import type { NDrawerProps } from '../../types/index.js';
2
2
  declare var __VLS_6: {}, __VLS_11: {
3
- open: boolean;
3
+ open: any;
4
4
  }, __VLS_26: {}, __VLS_31: {}, __VLS_36: {}, __VLS_41: {}, __VLS_43: {}, __VLS_48: {}, __VLS_53: {};
5
5
  type __VLS_Slots = {} & {
6
6
  default?: (props: typeof __VLS_6) => any;
@@ -14,7 +14,6 @@ const props = defineProps({
14
14
  _drawerOverlay: { type: Object, required: false },
15
15
  una: { type: Object, required: false },
16
16
  forceMount: { type: Boolean, required: false },
17
- trapFocus: { type: Boolean, required: false },
18
17
  disableOutsidePointerEvents: { type: Boolean, required: false },
19
18
  asChild: { type: Boolean, required: false },
20
19
  as: { type: null, required: false },
@@ -18,6 +18,7 @@ const delegatedProps = reactiveOmit(props, ["class"]);
18
18
  v-bind="delegatedProps"
19
19
  :class="cn(
20
20
  'drawer-overlay',
21
+ 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
21
22
  props.una?.drawerOverlay,
22
23
  props.class
23
24
  )"
@@ -3,11 +3,7 @@ declare var __VLS_4: {};
3
3
  type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_4) => any;
5
5
  };
6
- declare const __VLS_component: import("vue").DefineComponent<NBadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
- close: (...args: any[]) => void;
8
- }, string, import("vue").PublicProps, Readonly<NBadgeProps> & Readonly<{
9
- onClose?: ((...args: any[]) => any) | undefined;
10
- }>, {
6
+ declare const __VLS_component: import("vue").DefineComponent<NBadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
11
7
  una: {
12
8
  badgeDefaultVariant?: string;
13
9
  badge?: string;
@@ -1,6 +1,6 @@
1
1
  import type { NProgressProps } from '../../types/index.js';
2
2
  declare var __VLS_6: {
3
- modelValue: number | null | undefined;
3
+ modelValue: any;
4
4
  };
5
5
  type __VLS_Slots = {} & {
6
6
  default?: (props: typeof __VLS_6) => any;
@@ -1,5 +1,5 @@
1
1
  import type { NToggleProps } from '../../types/index.js';
2
- declare var __VLS_7: string | number, __VLS_8: any;
2
+ declare var __VLS_7: any, __VLS_8: any;
3
3
  type __VLS_Slots = {} & {
4
4
  [K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any;
5
5
  };
@@ -0,0 +1,86 @@
1
+ <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
3
+ import { defu } from "defu";
4
+ import { AccordionRoot, useForwardPropsEmits } from "reka-ui";
5
+ import { computed } from "vue";
6
+ import { cn } from "../../../utils";
7
+ import NAccordionItem from "./AccordionItem.vue";
8
+ const props = defineProps({
9
+ accordion: { type: String, required: false, default: "divider border" },
10
+ items: { type: Array, required: false },
11
+ una: { type: Object, required: false },
12
+ _accordionItem: { type: Object, required: false },
13
+ _accordionHeader: { type: Object, required: false },
14
+ _accordionTrigger: { type: Object, required: false },
15
+ _accordionContent: { type: Object, required: false },
16
+ collapsible: { type: Boolean, required: false, default: true },
17
+ disabled: { type: Boolean, required: false },
18
+ dir: { type: String, required: false },
19
+ orientation: { type: String, required: false },
20
+ unmountOnHide: { type: Boolean, required: false },
21
+ asChild: { type: Boolean, required: false },
22
+ as: { type: null, required: false },
23
+ type: { type: String, required: false, default: "single" },
24
+ modelValue: { type: null, required: false },
25
+ defaultValue: { type: null, required: false }
26
+ });
27
+ const emits = defineEmits(["update:modelValue"]);
28
+ const rootProps = useForwardPropsEmits(reactiveOmit(props, ["una", "items", "_accordionTrigger", "_accordionContent", "_accordionHeader", "_accordionItem"]), emits);
29
+ const items = computed(() => {
30
+ if (import.meta.dev) {
31
+ const reservedValues = ["header", "trigger", "content", "item", "default"];
32
+ for (const item of props.items ?? []) {
33
+ if (reservedValues.includes(item.value)) {
34
+ console.warn(`[AccordionItem]: The value '${item.value}' is reserved and may cause unexpected behavior. Please choose a different value.`);
35
+ }
36
+ }
37
+ }
38
+ return props.items;
39
+ });
40
+ </script>
41
+
42
+ <template>
43
+ <AccordionRoot
44
+ v-slot="{ modelValue }"
45
+ v-bind="rootProps"
46
+ :class="cn(
47
+ una?.accordion
48
+ )"
49
+ >
50
+ <slot :model-value>
51
+ <NAccordionItem
52
+ v-for="(item, index) in items"
53
+ :key="item.value"
54
+ v-bind="defu(item, _accordionItem)"
55
+ :_accordion-trigger="defu(item._accordionTrigger, _accordionTrigger)"
56
+ :_accordion-content="defu(item._accordionContent, _accordionContent)"
57
+ :_accordion-header="defu(item._accordionHeader, _accordionHeader)"
58
+ :una="defu(item.una, una)"
59
+ >
60
+ <template #default="{ open }">
61
+ <slot :name="`${item.value}-item`" :open :item :index>
62
+ <slot name="item" :open :item :index />
63
+ </slot>
64
+ </template>
65
+
66
+ <template #header="{ open }">
67
+ <slot :name="`${item.value}-header`" :open :item :index>
68
+ <slot name="header" :open :item :index />
69
+ </slot>
70
+ </template>
71
+
72
+ <template #trigger="{ open }">
73
+ <slot :name="`${item.value}-trigger`" :open :item :index>
74
+ <slot name="trigger" :open :item :index />
75
+ </slot>
76
+ </template>
77
+
78
+ <template #content="{ open }">
79
+ <slot :name="`${item.value}-content`" :open :item :index>
80
+ <slot name="content" :open :item :index />
81
+ </slot>
82
+ </template>
83
+ </NAccordionItem>
84
+ </slot>
85
+ </AccordionRoot>
86
+ </template>
@@ -0,0 +1,71 @@
1
+ import type { NAccordionProps } from '../../../types/index.js';
2
+ declare var __VLS_6: {
3
+ modelValue: any;
4
+ }, __VLS_12: any, __VLS_13: {
5
+ open: any;
6
+ item: any;
7
+ index: any;
8
+ }, __VLS_15: {
9
+ open: any;
10
+ item: any;
11
+ index: any;
12
+ }, __VLS_18: any, __VLS_19: {
13
+ open: any;
14
+ item: any;
15
+ index: any;
16
+ }, __VLS_21: {
17
+ open: any;
18
+ item: any;
19
+ index: any;
20
+ }, __VLS_24: any, __VLS_25: {
21
+ open: any;
22
+ item: any;
23
+ index: any;
24
+ }, __VLS_27: {
25
+ open: any;
26
+ item: any;
27
+ index: any;
28
+ }, __VLS_30: any, __VLS_31: {
29
+ open: any;
30
+ item: any;
31
+ index: any;
32
+ }, __VLS_33: {
33
+ open: any;
34
+ item: any;
35
+ index: any;
36
+ };
37
+ type __VLS_Slots = {} & {
38
+ [K in NonNullable<typeof __VLS_12>]?: (props: typeof __VLS_13) => any;
39
+ } & {
40
+ [K in NonNullable<typeof __VLS_18>]?: (props: typeof __VLS_19) => any;
41
+ } & {
42
+ [K in NonNullable<typeof __VLS_24>]?: (props: typeof __VLS_25) => any;
43
+ } & {
44
+ [K in NonNullable<typeof __VLS_30>]?: (props: typeof __VLS_31) => any;
45
+ } & {
46
+ default?: (props: typeof __VLS_6) => any;
47
+ } & {
48
+ item?: (props: typeof __VLS_15) => any;
49
+ } & {
50
+ header?: (props: typeof __VLS_21) => any;
51
+ } & {
52
+ trigger?: (props: typeof __VLS_27) => any;
53
+ } & {
54
+ content?: (props: typeof __VLS_33) => any;
55
+ };
56
+ declare const __VLS_component: import("vue").DefineComponent<NAccordionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
57
+ "update:modelValue": (value: string | string[] | undefined) => any;
58
+ }, string, import("vue").PublicProps, Readonly<NAccordionProps> & Readonly<{
59
+ "onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
60
+ }>, {
61
+ type: "multiple" | "single";
62
+ accordion: string;
63
+ collapsible: boolean;
64
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
65
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
66
+ export default _default;
67
+ type __VLS_WithSlots<T, S> = T & {
68
+ new (): {
69
+ $slots: S;
70
+ };
71
+ };
@@ -0,0 +1,24 @@
1
+ <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
3
+ import { AccordionContent, useForwardProps } from "reka-ui";
4
+ import { cn } from "../../../utils";
5
+ const props = defineProps({
6
+ una: { type: Object, required: false },
7
+ forceMount: { type: Boolean, required: false },
8
+ asChild: { type: Boolean, required: false },
9
+ as: { type: null, required: false }
10
+ });
11
+ const forwardProps = useForwardProps(reactiveOmit(props, ["una"]));
12
+ </script>
13
+
14
+ <template>
15
+ <AccordionContent v-bind="forwardProps" :class="cn('accordion-content group/accordion-content', una?.accordionContent)">
16
+ <div :class="cn('accordion-panel', una?.accordionPanel)">
17
+ <slot />
18
+ </div>
19
+ </AccordionContent>
20
+ </template>
21
+
22
+ <style scoped>
23
+ .accordion-content[data-state=open]{animation:accordionIn .3s cubic-bezier(.86,0,.07,1)}.accordion-content[data-state=closed]{animation:accordionOut .3s cubic-bezier(.86,0,.07,1)}@keyframes accordionIn{0%{height:0}to{height:var(--reka-accordion-content-height)}}@keyframes accordionOut{0%{height:var(--reka-accordion-content-height)}to{height:0}}
24
+ </style>
@@ -0,0 +1,13 @@
1
+ import type { NAccordionContentProps } from '../../../types/accordion.js';
2
+ declare var __VLS_6: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_6) => any;
5
+ };
6
+ declare const __VLS_component: import("vue").DefineComponent<NAccordionContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NAccordionContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,17 @@
1
+ <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
3
+ import { AccordionHeader, useForwardProps } from "reka-ui";
4
+ import { cn } from "../../../utils";
5
+ const props = defineProps({
6
+ una: { type: Object, required: false },
7
+ asChild: { type: Boolean, required: false },
8
+ as: { type: null, required: false }
9
+ });
10
+ const forwardProps = useForwardProps(reactiveOmit(props, ["una"]));
11
+ </script>
12
+
13
+ <template>
14
+ <AccordionHeader v-bind="forwardProps" :class="cn('accordion-header', una?.accordionHeader)">
15
+ <slot />
16
+ </AccordionHeader>
17
+ </template>
@@ -0,0 +1,13 @@
1
+ import type { NAccordionHeaderProps } from '../../../types/accordion.js';
2
+ declare var __VLS_6: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_6) => any;
5
+ };
6
+ declare const __VLS_component: import("vue").DefineComponent<NAccordionHeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NAccordionHeaderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };