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

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 (114) 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 +3 -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/Accordion.vue.d.ts +3 -3
  20. package/dist/runtime/components/elements/Badge.vue.d.ts +1 -5
  21. package/dist/runtime/components/elements/Progress.vue.d.ts +1 -1
  22. package/dist/runtime/components/elements/Toggle.vue.d.ts +1 -1
  23. package/dist/runtime/components/elements/collapsible/Collapsible.vue.d.ts +2 -2
  24. package/dist/runtime/components/elements/collapsible/CollapsibleContent.vue +1 -0
  25. package/dist/runtime/components/elements/dialog/Dialog.vue.d.ts +1 -1
  26. package/dist/runtime/components/elements/dialog/DialogContent.vue +0 -1
  27. package/dist/runtime/components/elements/dialog/DialogDescription.vue +2 -1
  28. package/dist/runtime/components/elements/dialog/DialogScrollContent.vue +0 -1
  29. package/dist/runtime/components/elements/dropdown-menu/DropdownMenu.vue.d.ts +4 -4
  30. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuContent.vue +3 -1
  31. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubContent.vue +3 -1
  32. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +1 -1
  33. package/dist/runtime/components/elements/pagination/Pagination.vue.d.ts +2 -5
  34. package/dist/runtime/components/elements/pagination/PaginationListItem.vue.d.ts +1 -1
  35. package/dist/runtime/components/elements/popover/Popover.vue.d.ts +1 -1
  36. package/dist/runtime/components/elements/popover/PopoverContent.vue +3 -0
  37. package/dist/runtime/components/elements/tabs/Tabs.vue.d.ts +1 -1
  38. package/dist/runtime/components/elements/tabs/TabsTrigger.vue.d.ts +1 -1
  39. package/dist/runtime/components/elements/tooltip/TooltipContent.vue +1 -0
  40. package/dist/runtime/components/forms/Input.vue.d.ts +1 -13
  41. package/dist/runtime/components/forms/Switch.vue.d.ts +2 -2
  42. package/dist/runtime/components/forms/radio-group/RadioGroup.vue +1 -2
  43. package/dist/runtime/components/forms/radio-group/RadioGroup.vue.d.ts +5 -5
  44. package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue +1 -1
  45. package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue.d.ts +2 -1
  46. package/dist/runtime/components/forms/select/Select.vue +4 -6
  47. package/dist/runtime/components/forms/select/Select.vue.d.ts +18 -20
  48. package/dist/runtime/components/forms/select/SelectContent.vue +3 -0
  49. package/dist/runtime/components/hover-card/HoverCard.vue.d.ts +1 -1
  50. package/dist/runtime/components/hover-card/HoverCardContent.vue +3 -0
  51. package/dist/runtime/components/misc/ThemeSwitcher.vue +25 -19
  52. package/dist/runtime/components/misc/ThemeSwitcher.vue.d.ts +1 -1
  53. package/dist/runtime/components/navigation/breadcrumb/Breadcrumb.vue.d.ts +6 -16
  54. package/dist/runtime/components/navigation-menu/NavigationMenu.vue.d.ts +11 -11
  55. package/dist/runtime/components/navigation-menu/NavigationMenuIndicator.vue +1 -0
  56. package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue.d.ts +1 -1
  57. package/dist/runtime/components/navigation-menu/NavigationMenuViewport.vue +1 -0
  58. package/dist/runtime/components/number-field/NumberField.vue +1 -0
  59. package/dist/runtime/components/overlays/Toaster.vue.d.ts +1 -1
  60. package/dist/runtime/components/overlays/toast/Toast.vue.d.ts +1 -1
  61. package/dist/runtime/components/overlays/toast/ToastAction.vue.d.ts +1 -1
  62. package/dist/runtime/components/pin-input/PinInput.vue +139 -0
  63. package/dist/runtime/components/pin-input/PinInput.vue.d.ts +33 -0
  64. package/dist/runtime/components/pin-input/PinInputGroup.vue +28 -0
  65. package/dist/runtime/components/pin-input/PinInputGroup.vue.d.ts +13 -0
  66. package/dist/runtime/components/pin-input/PinInputSeparator.vue +30 -0
  67. package/dist/runtime/components/pin-input/PinInputSeparator.vue.d.ts +15 -0
  68. package/dist/runtime/components/pin-input/PinInputSlot.vue +46 -0
  69. package/dist/runtime/components/pin-input/PinInputSlot.vue.d.ts +5 -0
  70. package/dist/runtime/components/resizable/ResizableHandle.vue +1 -0
  71. package/dist/runtime/components/resizable/ResizablePanel.vue.d.ts +1 -7
  72. package/dist/runtime/components/resizable/ResizablePanelGroup.vue.d.ts +1 -3
  73. package/dist/runtime/components/sheet/Sheet.vue.d.ts +1 -1
  74. package/dist/runtime/components/sheet/SheetContent.vue +6 -2
  75. package/dist/runtime/components/sheet/SheetOverlay.vue +6 -1
  76. package/dist/runtime/components/sidebar/SidebarMenu.vue.d.ts +1 -1
  77. package/dist/runtime/components/stepper/Stepper.vue +163 -0
  78. package/dist/runtime/components/stepper/Stepper.vue.d.ts +62 -0
  79. package/dist/runtime/components/stepper/StepperContainer.vue +21 -0
  80. package/dist/runtime/components/stepper/StepperContainer.vue.d.ts +15 -0
  81. package/dist/runtime/components/stepper/StepperDescription.vue +28 -0
  82. package/dist/runtime/components/stepper/StepperDescription.vue.d.ts +13 -0
  83. package/dist/runtime/components/stepper/StepperHeader.vue +21 -0
  84. package/dist/runtime/components/stepper/StepperHeader.vue.d.ts +15 -0
  85. package/dist/runtime/components/stepper/StepperIndicator.vue +34 -0
  86. package/dist/runtime/components/stepper/StepperIndicator.vue.d.ts +15 -0
  87. package/dist/runtime/components/stepper/StepperItem.vue +44 -0
  88. package/dist/runtime/components/stepper/StepperItem.vue.d.ts +15 -0
  89. package/dist/runtime/components/stepper/StepperSeparator.vue +29 -0
  90. package/dist/runtime/components/stepper/StepperSeparator.vue.d.ts +6 -0
  91. package/dist/runtime/components/stepper/StepperTitle.vue +27 -0
  92. package/dist/runtime/components/stepper/StepperTitle.vue.d.ts +13 -0
  93. package/dist/runtime/components/stepper/StepperTrigger.vue +29 -0
  94. package/dist/runtime/components/stepper/StepperTrigger.vue.d.ts +15 -0
  95. package/dist/runtime/components/stepper/StepperWrapper.vue +21 -0
  96. package/dist/runtime/components/stepper/StepperWrapper.vue.d.ts +15 -0
  97. package/dist/runtime/components/toggle-group/ToggleGroup.vue +70 -0
  98. package/dist/runtime/components/toggle-group/ToggleGroup.vue.d.ts +23 -0
  99. package/dist/runtime/components/toggle-group/ToggleGroupItem.vue +75 -0
  100. package/dist/runtime/components/toggle-group/ToggleGroupItem.vue.d.ts +18 -0
  101. package/dist/runtime/composables/useUnaSettings.js +6 -4
  102. package/dist/runtime/types/combobox.d.ts +3 -2
  103. package/dist/runtime/types/index.d.ts +6 -3
  104. package/dist/runtime/types/index.js +3 -0
  105. package/dist/runtime/types/pin-input.d.ts +88 -0
  106. package/dist/runtime/types/pin-input.js +0 -0
  107. package/dist/runtime/types/radio-group.d.ts +5 -3
  108. package/dist/runtime/types/select.d.ts +6 -3
  109. package/dist/runtime/types/stepper.d.ts +129 -0
  110. package/dist/runtime/types/stepper.js +0 -0
  111. package/dist/runtime/types/table.d.ts +16 -3
  112. package/dist/runtime/types/toggle-group.d.ts +39 -0
  113. package/dist/runtime/types/toggle-group.js +0 -0
  114. package/package.json +18 -17
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.10",
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.10";
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,10 @@ 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 },
48
51
  defaultValue: { type: null, required: false },
49
- multiple: { type: Boolean, required: false },
50
52
  dir: { type: String, required: false },
51
53
  disabled: { type: Boolean, required: false },
52
54
  highlightOnHover: { type: Boolean, required: false },
@@ -139,7 +141,6 @@ function isItemSelected(item) {
139
141
 
140
142
  <template>
141
143
  <ComboboxRoot
142
- v-slot="{ modelValue, open }"
143
144
  data-slot="combobox"
144
145
  :class="cn(
145
146
  '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
  )"
@@ -1,12 +1,12 @@
1
- import type { NAccordionItemProps, NAccordionProps } from '../../types/index.js';
1
+ import type { NAccordionProps } from '../../types/index.js';
2
2
  declare var __VLS_6: any, __VLS_7: {
3
3
  item: any;
4
4
  index: any;
5
5
  open: any;
6
6
  close: any;
7
7
  }, __VLS_21: {
8
- item: NAccordionItemProps;
9
- index: number;
8
+ item: any;
9
+ index: any;
10
10
  open: any;
11
11
  close: any;
12
12
  };
@@ -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
  };
@@ -1,8 +1,8 @@
1
1
  import type { NCollapsibleProps } from '../../../types/index.js';
2
2
  declare var __VLS_6: {
3
- open: boolean;
3
+ open: any;
4
4
  }, __VLS_11: {
5
- open: boolean;
5
+ open: any;
6
6
  }, __VLS_16: {};
7
7
  type __VLS_Slots = {} & {
8
8
  default?: (props: typeof __VLS_6) => any;
@@ -13,6 +13,7 @@ const props = defineProps({
13
13
  <CollapsibleContent
14
14
  v-bind="props"
15
15
  :class="cn(
16
+ 'data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down',
16
17
  'collapsible-content',
17
18
  props.class
18
19
  )"
@@ -1,6 +1,6 @@
1
1
  import type { NDialogProps } from '../../../types/index.js';
2
2
  declare var __VLS_6: {}, __VLS_11: {
3
- open: boolean;
3
+ open: any;
4
4
  }, __VLS_27: {}, __VLS_32: {}, __VLS_37: {}, __VLS_42: {}, __VLS_44: {}, __VLS_49: {};
5
5
  type __VLS_Slots = {} & {
6
6
  default?: (props: typeof __VLS_6) => any;
@@ -20,7 +20,6 @@ const props = defineProps({
20
20
  _dialogOverlay: { type: Object, required: false },
21
21
  una: { type: Object, required: false },
22
22
  forceMount: { type: Boolean, required: false },
23
- trapFocus: { type: Boolean, required: false },
24
23
  disableOutsidePointerEvents: { type: Boolean, required: false },
25
24
  asChild: { type: Boolean, required: false },
26
25
  as: { type: null, required: false },
@@ -17,7 +17,8 @@ const forwardedProps = useForwardProps(delegatedProps);
17
17
  data-slot="dialog-description"
18
18
  v-bind="forwardedProps"
19
19
  :class="cn(
20
- 'dialog-description 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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-48% data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-48%',
20
+ '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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-48% data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-48%',
21
+ 'dialog-description',
21
22
  props.una?.dialogDescription,
22
23
  props.class
23
24
  )"
@@ -20,7 +20,6 @@ const props = defineProps({
20
20
  _dialogOverlay: { type: Object, required: false },
21
21
  una: { type: Object, required: false },
22
22
  forceMount: { type: Boolean, required: false },
23
- trapFocus: { type: Boolean, required: false },
24
23
  disableOutsidePointerEvents: { type: Boolean, required: false },
25
24
  asChild: { type: Boolean, required: false },
26
25
  as: { type: null, required: false },
@@ -1,10 +1,10 @@
1
1
  import type { NDropdownMenuProps } from '../../../types/index.js';
2
2
  declare var __VLS_7: {}, __VLS_12: {}, __VLS_17: {}, __VLS_22: {
3
- items: NDropdownMenuProps[] | undefined;
3
+ items: any;
4
4
  }, __VLS_27: {
5
- items: NDropdownMenuProps[] | undefined;
6
- }, __VLS_30: `item-${string}`, __VLS_31: {}, __VLS_62: {
7
- label: string | undefined;
5
+ items: any;
6
+ }, __VLS_30: any, __VLS_31: {}, __VLS_62: {
7
+ label: any;
8
8
  };
9
9
  type __VLS_Slots = {} & {
10
10
  [K in NonNullable<typeof __VLS_30>]?: (props: typeof __VLS_31) => any;
@@ -19,8 +19,10 @@ const props = defineProps({
19
19
  loop: { type: Boolean, required: false },
20
20
  side: { type: null, required: false },
21
21
  sideOffset: { type: Number, required: false, default: 4 },
22
+ sideFlip: { type: Boolean, required: false },
22
23
  align: { type: null, required: false },
23
24
  alignOffset: { type: Number, required: false },
25
+ alignFlip: { type: Boolean, required: false },
24
26
  avoidCollisions: { type: Boolean, required: false },
25
27
  collisionBoundary: { type: null, required: false },
26
28
  collisionPadding: { type: [Number, Object], required: false },
@@ -45,7 +47,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
45
47
  <DropdownMenuContent
46
48
  v-bind="forwarded"
47
49
  :class="cn(
48
- 'dropdown-menu-content 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
50
+ 'dropdown-menu-content 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',
49
51
  props.una?.dropdownMenuContent,
50
52
  props.class
51
53
  )"
@@ -12,7 +12,9 @@ const props = defineProps({
12
12
  forceMount: { type: Boolean, required: false },
13
13
  loop: { type: Boolean, required: false },
14
14
  sideOffset: { type: Number, required: false },
15
+ sideFlip: { type: Boolean, required: false },
15
16
  alignOffset: { type: Number, required: false },
17
+ alignFlip: { type: Boolean, required: false },
16
18
  avoidCollisions: { type: Boolean, required: false },
17
19
  collisionBoundary: { type: null, required: false },
18
20
  collisionPadding: { type: [Number, Object], required: false },
@@ -36,7 +38,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
36
38
  <DropdownMenuSubContent
37
39
  v-bind="forwarded"
38
40
  :class="cn(
39
- 'dropdown-menu-sub-content 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
41
+ 'dropdown-menu-sub-content 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',
40
42
  forwarded.una?.dropdownMenuSubContent,
41
43
  props.class
42
44
  )"
@@ -1,5 +1,5 @@
1
1
  import type { NDropdownMenuSubTriggerProps } 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,10 +1,7 @@
1
1
  import type { NPaginationProps } from '../../../types/index.js';
2
2
  declare var __VLS_10: {}, __VLS_15: {}, __VLS_20: {}, __VLS_22: {
3
- item: {
4
- type: "page";
5
- value: number;
6
- };
7
- page: number;
3
+ item: any;
4
+ page: any;
8
5
  }, __VLS_30: {}, __VLS_35: {}, __VLS_40: {};
9
6
  type __VLS_Slots = {} & {
10
7
  default?: (props: typeof __VLS_10) => any;
@@ -1,5 +1,5 @@
1
1
  import type { NPaginationListItemProps } 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,6 +1,6 @@
1
1
  import type { NPopoverProps } from '../../../types/index.js';
2
2
  declare var __VLS_10: {
3
- open: boolean;
3
+ open: any;
4
4
  }, __VLS_15: {};
5
5
  type __VLS_Slots = {} & {
6
6
  trigger?: (props: typeof __VLS_10) => any;
@@ -13,8 +13,10 @@ const props = defineProps({
13
13
  forceMount: { 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 },
@@ -42,6 +44,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
42
44
  v-bind="{ ...forwarded, ...$attrs }"
43
45
  :class="
44
46
  cn(
47
+ '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',
45
48
  'popover-content',
46
49
  props.class
47
50
  )
@@ -1,6 +1,6 @@
1
1
  import type { NTabsProps } from '../../../types/tabs.js';
2
2
  declare var __VLS_6: {}, __VLS_11: {
3
- items: any[] | undefined;
3
+ items: any;
4
4
  }, __VLS_16: {
5
5
  item: any;
6
6
  disabled: any;
@@ -1,5 +1,5 @@
1
1
  import type { NTabsTriggerProps } from '../../../types/tabs.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
  };
@@ -37,6 +37,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
37
37
  <TooltipContent
38
38
  v-bind="{ ...forwarded, ...$attrs }"
39
39
  :class="cn(
40
+ 'animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95',
40
41
  'tooltip-content',
41
42
  props.class,
42
43
  props.una?.tooltipContent