@una-ui/nuxt 0.66.0 → 0.67.0

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 (55) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +1 -1
  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/aspect-ratio/AspectRatio.vue.d.ts +1 -1
  7. package/dist/runtime/components/combobox/Combobox.vue +35 -39
  8. package/dist/runtime/components/combobox/Combobox.vue.d.ts +17 -17
  9. package/dist/runtime/components/combobox/ComboboxInput.vue +1 -1
  10. package/dist/runtime/components/combobox/ComboboxInput.vue.d.ts +25 -3
  11. package/dist/runtime/components/combobox/ComboboxTrigger.vue.d.ts +1 -1
  12. package/dist/runtime/components/drawer/Drawer.vue.d.ts +1 -1
  13. package/dist/runtime/components/elements/Alert.vue.d.ts +1 -5
  14. package/dist/runtime/components/elements/Badge.vue.d.ts +1 -5
  15. package/dist/runtime/components/elements/Progress.vue.d.ts +1 -1
  16. package/dist/runtime/components/elements/Toggle.vue.d.ts +1 -1
  17. package/dist/runtime/components/elements/accordion/Accordion.vue.d.ts +29 -29
  18. package/dist/runtime/components/elements/accordion/AccordionItem.vue.d.ts +4 -4
  19. package/dist/runtime/components/elements/collapsible/Collapsible.vue.d.ts +2 -2
  20. package/dist/runtime/components/elements/dialog/Dialog.vue.d.ts +1 -1
  21. package/dist/runtime/components/elements/dropdown-menu/DropdownMenu.vue.d.ts +4 -4
  22. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +1 -1
  23. package/dist/runtime/components/elements/pagination/Pagination.vue.d.ts +2 -5
  24. package/dist/runtime/components/elements/pagination/PaginationListItem.vue.d.ts +1 -1
  25. package/dist/runtime/components/elements/popover/Popover.vue.d.ts +1 -1
  26. package/dist/runtime/components/elements/tabs/Tabs.vue.d.ts +1 -1
  27. package/dist/runtime/components/elements/tabs/TabsTrigger.vue.d.ts +1 -1
  28. package/dist/runtime/components/forms/Checkbox.vue +5 -3
  29. package/dist/runtime/components/forms/Checkbox.vue.d.ts +1 -1
  30. package/dist/runtime/components/forms/Input.vue.d.ts +1 -13
  31. package/dist/runtime/components/forms/Switch.vue.d.ts +2 -2
  32. package/dist/runtime/components/forms/radio-group/RadioGroup.vue.d.ts +3 -3
  33. package/dist/runtime/components/forms/select/Select.vue +21 -11
  34. package/dist/runtime/components/forms/select/Select.vue.d.ts +16 -16
  35. package/dist/runtime/components/hover-card/HoverCard.vue.d.ts +1 -1
  36. package/dist/runtime/components/misc/ThemeSwitcher.vue.d.ts +1 -1
  37. package/dist/runtime/components/navigation/breadcrumb/Breadcrumb.vue.d.ts +6 -16
  38. package/dist/runtime/components/navigation-menu/NavigationMenu.vue.d.ts +11 -11
  39. package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue.d.ts +1 -1
  40. package/dist/runtime/components/overlays/Toaster.vue.d.ts +1 -1
  41. package/dist/runtime/components/overlays/toast/Toast.vue.d.ts +1 -1
  42. package/dist/runtime/components/overlays/toast/ToastAction.vue.d.ts +1 -1
  43. package/dist/runtime/components/resizable/ResizablePanel.vue.d.ts +1 -7
  44. package/dist/runtime/components/resizable/ResizablePanelGroup.vue.d.ts +1 -3
  45. package/dist/runtime/components/sheet/Sheet.vue.d.ts +1 -1
  46. package/dist/runtime/components/sidebar/SidebarMenu.vue.d.ts +1 -1
  47. package/dist/runtime/components/stepper/Stepper.vue.d.ts +11 -23
  48. package/dist/runtime/components/stepper/StepperDescription.vue.d.ts +1 -1
  49. package/dist/runtime/components/stepper/StepperIndicator.vue.d.ts +1 -3
  50. package/dist/runtime/components/stepper/StepperItem.vue.d.ts +1 -3
  51. package/dist/runtime/components/toggle-group/ToggleGroup.vue.d.ts +3 -5
  52. package/dist/runtime/components/toggle-group/ToggleGroupItem.vue.d.ts +1 -6
  53. package/dist/runtime/types/combobox.d.ts +12 -7
  54. package/dist/runtime/types/select.d.ts +5 -5
  55. package/package.json +12 -12
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@una-ui/nuxt",
3
3
  "configKey": "una",
4
- "version": "0.66.0",
4
+ "version": "0.67.0",
5
5
  "compatibility": {
6
6
  "nuxt": ">=3.0.0"
7
7
  },
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 = "0.66.0";
11
+ const version = "0.67.0";
12
12
 
13
13
  const module = defineNuxtModule({
14
14
  meta: {
@@ -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
  };
@@ -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;
@@ -19,9 +19,10 @@ import ComboboxTrigger from "./ComboboxTrigger.vue";
19
19
  import ComboboxViewport from "./ComboboxViewport.vue";
20
20
  const props = defineProps({
21
21
  modelValue: { type: null, required: false },
22
+ defaultValue: { type: null, required: false },
22
23
  items: { type: Array, required: false },
23
- labelKey: { type: null, required: false },
24
- valueKey: { type: null, required: false },
24
+ labelKey: { type: null, required: false, default: "label" },
25
+ valueKey: { type: null, required: false, default: "value" },
25
26
  groupSeparator: { type: Boolean, required: false },
26
27
  textEmpty: { type: String, required: false, default: "No items found." },
27
28
  label: { type: String, required: false },
@@ -49,7 +50,6 @@ const props = defineProps({
49
50
  openOnClick: { type: Boolean, required: false },
50
51
  ignoreFilter: { type: Boolean, required: false },
51
52
  resetModelValueOnClear: { type: Boolean, required: false },
52
- defaultValue: { type: null, required: false },
53
53
  dir: { type: String, required: false },
54
54
  disabled: { type: Boolean, required: false },
55
55
  highlightOnHover: { type: Boolean, required: false },
@@ -87,8 +87,6 @@ const rootProps = reactiveOmit(props, [
87
87
  "_comboboxCheckbox"
88
88
  ]);
89
89
  const forwarded = useForwardPropsEmits(rootProps, emits);
90
- const labelKey = computed(() => props.labelKey?.toString() ?? "label");
91
- const valueKey = computed(() => props.valueKey?.toString() ?? "value");
92
90
  const hasGroups = computed(() => {
93
91
  return Array.isArray(props.items) && props.items.length > 0 && typeof props.items[0] === "object" && "items" in props.items[0];
94
92
  });
@@ -97,46 +95,44 @@ function getItemProperty(item, key) {
97
95
  return "";
98
96
  return typeof item !== "object" ? item : item[key];
99
97
  }
100
- function findItemByValue(value) {
101
- if (!props.items)
102
- return void 0;
103
- if (hasGroups.value) {
104
- for (const group of props.items) {
105
- const found = group.items?.find((item) => getItemProperty(item, valueKey.value) === value);
106
- if (found)
107
- return found;
108
- }
109
- return void 0;
110
- } else {
111
- return props.items.find((item) => getItemProperty(item, valueKey.value) === value);
112
- }
113
- }
114
98
  function getDisplayValue(val) {
115
- if (!val || Array.isArray(val) && val.length === 0)
99
+ if (val == null || Array.isArray(val) && val.length === 0)
116
100
  return "";
117
- if (props.multiple && Array.isArray(val)) {
101
+ if (Array.isArray(val)) {
118
102
  return val.map((v) => {
119
103
  if (typeof v !== "object" || v === null) {
120
- const item = findItemByValue(v);
121
- return item ? getItemProperty(item, labelKey.value) : v;
104
+ return String(v);
122
105
  }
123
- return getItemProperty(v, labelKey.value) || getItemProperty(v, valueKey.value) || "";
124
- }).filter(Boolean).join(", ");
106
+ return getItemProperty(v, props.labelKey) || getItemProperty(v, props.valueKey) || "";
107
+ }).filter((v) => v !== null && v !== void 0).join(", ");
125
108
  }
126
109
  if (typeof val !== "object" || val === null) {
127
- const item = findItemByValue(val);
128
- return item ? getItemProperty(item, labelKey.value) : String(val || "");
110
+ return String(val);
129
111
  }
130
- return getItemProperty(val, labelKey.value) || getItemProperty(val, valueKey.value) || "";
112
+ return getItemProperty(val, props.labelKey) || getItemProperty(val, props.valueKey) || "";
131
113
  }
132
114
  function isItemSelected(item) {
133
- if (item == null)
115
+ if (item == null || !props.modelValue)
134
116
  return false;
135
- const itemValue = getItemProperty(item, valueKey.value);
136
- if (props.multiple && Array.isArray(props.modelValue)) {
137
- return props.modelValue.includes(itemValue);
117
+ if (typeof item !== "object") {
118
+ if (Array.isArray(props.modelValue)) {
119
+ return props.modelValue.includes(item);
120
+ }
121
+ return props.modelValue === item;
122
+ }
123
+ const itemValue = getItemProperty(item, props.valueKey);
124
+ if (Array.isArray(props.modelValue)) {
125
+ return props.modelValue.some((v) => {
126
+ if (typeof v !== "object" || v === null) {
127
+ return v === itemValue;
128
+ }
129
+ return getItemProperty(v, props.valueKey) === itemValue;
130
+ });
131
+ }
132
+ if (typeof props.modelValue !== "object" || props.modelValue === null) {
133
+ return props.modelValue === itemValue;
138
134
  }
139
- return typeof props.modelValue === "object" && props.modelValue !== null ? getItemProperty(props.modelValue, valueKey.value) === itemValue : props.modelValue === itemValue;
135
+ return getItemProperty(props.modelValue, props.valueKey) === itemValue;
140
136
  }
141
137
  </script>
142
138
 
@@ -253,8 +249,8 @@ function isItemSelected(item) {
253
249
  <slot name="group">
254
250
  <ComboboxItem
255
251
  v-for="item in items"
256
- :key="getItemProperty(item, valueKey)"
257
- :value="props.multiple ? getItemProperty(item, valueKey) : item"
252
+ :key="getItemProperty(item, props.valueKey)"
253
+ :value="item"
258
254
  :size
259
255
  v-bind="props._comboboxItem"
260
256
  :class="cn(
@@ -264,7 +260,7 @@ function isItemSelected(item) {
264
260
  >
265
261
  <slot name="item" :item="item" :selected="isItemSelected(item)">
266
262
  <slot name="label" :item="item">
267
- {{ getItemProperty(item, labelKey) }}
263
+ {{ getItemProperty(item, props.labelKey) }}
268
264
  </slot>
269
265
 
270
266
  <ComboboxItemIndicator
@@ -299,8 +295,8 @@ function isItemSelected(item) {
299
295
  <slot name="group" :group="group">
300
296
  <ComboboxItem
301
297
  v-for="item in group.items"
302
- :key="getItemProperty(item, valueKey)"
303
- :value="props.multiple ? getItemProperty(item, valueKey) : item"
298
+ :key="getItemProperty(item, props.valueKey)"
299
+ :value="item"
304
300
  :size
305
301
  v-bind="{ ...props._comboboxItem, ...group._comboboxItem }"
306
302
  :class="cn(
@@ -310,7 +306,7 @@ function isItemSelected(item) {
310
306
  >
311
307
  <slot name="item" :item="item" :group="group" :selected="isItemSelected(item)">
312
308
  <slot name="label" :item="item">
313
- {{ getItemProperty(item, labelKey) }}
309
+ {{ getItemProperty(item, props.labelKey) }}
314
310
  </slot>
315
311
 
316
312
  <ComboboxItemIndicator
@@ -1,5 +1,5 @@
1
1
  import type { AcceptableValue } from 'reka-ui';
2
- import type { ExtractItemType, NComboboxGroupProps, NComboboxProps } from '../../types/index.js';
2
+ import type { ExtractItemType, NComboboxProps } from '../../types/index.js';
3
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;
@@ -19,20 +19,20 @@ declare const _default: <T extends AcceptableValue, M extends boolean = false>(_
19
19
  'trigger-wrapper'?: (props: {}) => any;
20
20
  } & {
21
21
  trigger?: (props: {
22
- modelValue: (M extends true ? ExtractItemType<T>[] : ExtractItemType<T>) | null | undefined;
23
- open: boolean | undefined;
22
+ modelValue: any;
23
+ open: any;
24
24
  }) => any;
25
25
  } & {
26
26
  'input-wrapper'?: (props: {
27
- modelValue: (M extends true ? ExtractItemType<T>[] : ExtractItemType<T>) | null | undefined;
28
- open: boolean | undefined;
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: (M extends true ? ExtractItemType<T>[] : ExtractItemType<T>) | null | undefined;
35
- open: boolean | undefined;
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, M extends boolean = false>(_
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;
@@ -7,7 +7,7 @@ defineOptions({
7
7
  inheritAttrs: false
8
8
  });
9
9
  const props = defineProps({
10
- displayValue: { type: Function, required: false },
10
+ displayValue: { type: Function, required: false, default: () => "" },
11
11
  modelValue: { type: String, required: false },
12
12
  autoFocus: { type: Boolean, required: false },
13
13
  disabled: { type: Boolean, required: false },
@@ -1,16 +1,38 @@
1
- declare var __VLS_12: string | number, __VLS_13: any;
1
+ import type { NComboboxInputProps } from '../../types/index.js';
2
+ declare var __VLS_12: any, __VLS_13: any;
2
3
  type __VLS_Slots = {} & {
3
4
  [K in NonNullable<typeof __VLS_12>]?: (props: typeof __VLS_13) => any;
4
5
  };
5
- declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NComboboxInputProps>, {
7
+ displayValue: () => "";
8
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
9
  "update:modelValue": (args_0: string) => any;
7
- }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
10
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NComboboxInputProps>, {
11
+ displayValue: () => "";
12
+ }>>> & Readonly<{
8
13
  "onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
9
14
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
15
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
11
16
  export default _default;
17
+ type __VLS_WithDefaults<P, D> = {
18
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
19
+ default: D[K];
20
+ }> : P[K];
21
+ };
22
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
+ type __VLS_TypePropsToOption<T> = {
24
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
25
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
26
+ } : {
27
+ type: import('vue').PropType<T[K]>;
28
+ required: true;
29
+ };
30
+ };
12
31
  type __VLS_WithSlots<T, S> = T & {
13
32
  new (): {
14
33
  $slots: S;
15
34
  };
16
35
  };
36
+ type __VLS_PrettifyLocal<T> = {
37
+ [K in keyof T]: T[K];
38
+ } & {};
@@ -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
  } & {
@@ -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;
@@ -6,11 +6,7 @@ type __VLS_Slots = {
6
6
  icon?: any;
7
7
  closeIcon?: any;
8
8
  };
9
- declare const __VLS_component: import("vue").DefineComponent<NAlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
- close: (...args: any[]) => void;
11
- }, string, import("vue").PublicProps, Readonly<NAlertProps> & Readonly<{
12
- onClose?: ((...args: any[]) => any) | undefined;
13
- }>, {
9
+ declare const __VLS_component: import("vue").DefineComponent<NAlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
14
10
  icon: string | boolean;
15
11
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
12
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -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,38 +1,38 @@
1
1
  import type { NAccordionProps } from '../../../types/index.js';
2
2
  declare var __VLS_6: {
3
- modelValue: import("reka-ui").AcceptableValue | import("reka-ui").AcceptableValue[] | undefined;
4
- }, __VLS_12: `${string}-item`, __VLS_13: {
5
- open: boolean;
6
- item: import("../../../types/index.js").NAccordionItemProps;
7
- index: number;
3
+ modelValue: any;
4
+ }, __VLS_12: any, __VLS_13: {
5
+ open: any;
6
+ item: any;
7
+ index: any;
8
8
  }, __VLS_15: {
9
- open: boolean;
10
- item: import("../../../types/index.js").NAccordionItemProps;
11
- index: number;
12
- }, __VLS_18: `${string}-header`, __VLS_19: {
13
- open: boolean;
14
- item: import("../../../types/index.js").NAccordionItemProps;
15
- index: number;
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
16
  }, __VLS_21: {
17
- open: boolean;
18
- item: import("../../../types/index.js").NAccordionItemProps;
19
- index: number;
20
- }, __VLS_24: `${string}-trigger`, __VLS_25: {
21
- open: boolean;
22
- item: import("../../../types/index.js").NAccordionItemProps;
23
- index: number;
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
24
  }, __VLS_27: {
25
- open: boolean;
26
- item: import("../../../types/index.js").NAccordionItemProps;
27
- index: number;
28
- }, __VLS_30: `${string}-content`, __VLS_31: {
29
- open: boolean;
30
- item: import("../../../types/index.js").NAccordionItemProps;
31
- index: number;
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
32
  }, __VLS_33: {
33
- open: boolean;
34
- item: import("../../../types/index.js").NAccordionItemProps;
35
- index: number;
33
+ open: any;
34
+ item: any;
35
+ index: any;
36
36
  };
37
37
  type __VLS_Slots = {} & {
38
38
  [K in NonNullable<typeof __VLS_12>]?: (props: typeof __VLS_13) => any;
@@ -1,12 +1,12 @@
1
1
  import type { NAccordionItemProps } from '../../../types/accordion.js';
2
2
  declare var __VLS_6: {
3
- open: boolean;
3
+ open: any;
4
4
  }, __VLS_15: {
5
- open: boolean;
5
+ open: any;
6
6
  }, __VLS_20: {
7
- open: boolean;
7
+ open: any;
8
8
  }, __VLS_25: {
9
- open: boolean;
9
+ open: any;
10
10
  };
11
11
  type __VLS_Slots = {} & {
12
12
  default?: (props: typeof __VLS_6) => any;
@@ -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;
@@ -1,6 +1,6 @@
1
1
  import type { NDialogProps } from '../../../types/index.js';
2
2
  declare var __VLS_10: {
3
- open: boolean;
3
+ open: any;
4
4
  }, __VLS_26: {}, __VLS_31: {}, __VLS_36: {}, __VLS_41: {}, __VLS_43: {}, __VLS_48: {};
5
5
  type __VLS_Slots = {} & {
6
6
  trigger?: (props: typeof __VLS_10) => any;
@@ -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;
@@ -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;
@@ -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
  };
@@ -52,7 +52,7 @@ const id = computed(() => props.id ?? randomId("checkbox"));
52
52
  <CheckboxRoot
53
53
  v-bind="{ ...forwarded, ...$attrs }"
54
54
  :id="id"
55
- v-slot="{ ...slotProps }"
55
+ v-slot="slotProps"
56
56
  :class="
57
57
  cn(
58
58
  'peer checkbox',
@@ -68,9 +68,11 @@ const id = computed(() => props.id ?? randomId("checkbox"));
68
68
  :class="cn('checkbox-indicator', una?.checkboxIndicator)"
69
69
  v-bind="props._checkboxIndicator"
70
70
  >
71
- <slot name="icon">
71
+ <slot
72
+ name="icon" v-bind="slotProps"
73
+ >
72
74
  <Icon
73
- :name="slotProps.modelValue === 'indeterminate' ? props.una?.checkboxIndeterminateIcon ?? 'checkbox-indeterminate-icon' : slotProps.modelValue ? props.una?.checkboxCheckedIcon ?? 'checkbox-checked-icon' : props.una?.checkboxUncheckedIcon ?? 'checkbox-unchecked-icon'"
75
+ :name="slotProps.state === 'indeterminate' ? props.una?.checkboxIndeterminateIcon ?? 'checkbox-indeterminate-icon' : slotProps.state ? props.una?.checkboxCheckedIcon ?? 'checkbox-checked-icon' : props.una?.checkboxUncheckedIcon ?? 'checkbox-unchecked-icon'"
74
76
  :class="cn('checkbox-icon-base', una?.checkboxIconBase)"
75
77
  />
76
78
  </slot>
@@ -1,5 +1,5 @@
1
1
  import type { NCheckboxProps } from '../../types/index.js';
2
- declare var __VLS_9: {}, __VLS_17: {};
2
+ declare var __VLS_9: any, __VLS_17: {};
3
3
  type __VLS_Slots = {} & {
4
4
  icon?: (props: typeof __VLS_9) => any;
5
5
  } & {
@@ -12,19 +12,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
12
12
  blur: () => void | undefined;
13
13
  select: () => void | undefined;
14
14
  inputRef: import("vue").Ref<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
15
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
- leading: (...args: any[]) => void;
17
- trailing: (...args: any[]) => void;
18
- blur: (...args: any[]) => void;
19
- change: (...args: any[]) => void;
20
- "update:modelValue": (...args: any[]) => void;
21
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
22
- onLeading?: ((...args: any[]) => any) | undefined;
23
- onTrailing?: ((...args: any[]) => any) | undefined;
24
- onBlur?: ((...args: any[]) => any) | undefined;
25
- onChange?: ((...args: any[]) => any) | undefined;
26
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
27
- }>, {
15
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {
28
16
  type: HTMLInputElement["type"] | "textarea";
29
17
  size: string;
30
18
  autofocusDelay: number;
@@ -1,8 +1,8 @@
1
1
  import type { NSwitchProps } from '../../types/index.js';
2
2
  declare var __VLS_10: {
3
- modelValue: boolean;
3
+ modelValue: any;
4
4
  }, __VLS_15: {
5
- modelValue: boolean;
5
+ modelValue: any;
6
6
  };
7
7
  type __VLS_Slots = {} & {
8
8
  icon?: (props: typeof __VLS_10) => any;