@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
@@ -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;
@@ -8,6 +8,7 @@ import { RadioGroupRoot, useForwardPropsEmits } from "reka-ui";
8
8
  import { cn } from "../../../utils";
9
9
  import RadioGroupItem from "./RadioGroupItem.vue";
10
10
  const props = defineProps({
11
+ modelValue: { type: null, required: true },
11
12
  items: { type: Array, required: false },
12
13
  labelKey: { type: null, required: false },
13
14
  valueKey: { type: null, required: false },
@@ -20,7 +21,6 @@ const props = defineProps({
20
21
  square: { type: null, required: false, default: "1em" },
21
22
  rounded: { type: null, required: false },
22
23
  icon: { type: null, required: false },
23
- modelValue: { type: null, required: false },
24
24
  defaultValue: { type: null, required: false },
25
25
  disabled: { type: Boolean, required: false },
26
26
  orientation: { type: String, required: false },
@@ -71,7 +71,6 @@ function getItemDescription(item) {
71
71
 
72
72
  <template>
73
73
  <RadioGroupRoot
74
- v-slot="{ modelValue }"
75
74
  :class="cn(
76
75
  'radio-group',
77
76
  orientation === 'horizontal' ? 'radio-group-orientation-horizontal' : 'radio-group-orientation-vertical',
@@ -1,22 +1,22 @@
1
1
  import type { AcceptableValue } from 'reka-ui';
2
2
  import type { NRadioGroupItemProps, NRadioGroupProps } 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<{
3
+ declare const _default: <T extends AcceptableValue, Item extends T | NRadioGroupItemProps<T>>(__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"?: ((payload: string) => any) | undefined;
6
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & NRadioGroupProps<T> & Partial<{}>> & import("vue").PublicProps;
6
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & NRadioGroupProps<T, Item> & Partial<{}>> & import("vue").PublicProps;
7
7
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
8
8
  attrs: any;
9
9
  slots: {
10
10
  default?: (props: {
11
- modelValue: AcceptableValue | undefined;
11
+ modelValue: any;
12
12
  }) => any;
13
13
  } & {
14
14
  label?: (props: {
15
- item: NRadioGroupItemProps | T;
15
+ item: any;
16
16
  }) => any;
17
17
  } & {
18
18
  description?: (props: {
19
- item: NRadioGroupItemProps | T;
19
+ item: any;
20
20
  }) => any;
21
21
  };
22
22
  emit: (evt: "update:modelValue", payload: string) => void;
@@ -12,6 +12,7 @@ defineOptions({
12
12
  inheritAttrs: false
13
13
  });
14
14
  const props = defineProps({
15
+ value: { type: null, required: true },
15
16
  label: { type: String, required: false },
16
17
  radioGroup: { type: null, required: false, default: "primary" },
17
18
  description: { type: String, required: false },
@@ -22,7 +23,6 @@ const props = defineProps({
22
23
  rounded: { type: null, required: false },
23
24
  icon: { type: null, required: false, default: "radio-group-indicator-icon" },
24
25
  id: { type: String, required: false },
25
- value: { type: null, required: false },
26
26
  disabled: { type: Boolean, required: false },
27
27
  asChild: { type: Boolean, required: false },
28
28
  as: { type: null, required: false },
@@ -1,4 +1,5 @@
1
1
  import type { NRadioGroupItemProps } from '../../../types/index.js';
2
+ type __VLS_Props = NRadioGroupItemProps;
2
3
  declare var __VLS_9: {}, __VLS_17: {}, __VLS_19: {};
3
4
  type __VLS_Slots = {} & {
4
5
  icon?: (props: typeof __VLS_9) => any;
@@ -7,7 +8,7 @@ type __VLS_Slots = {} & {
7
8
  } & {
8
9
  description?: (props: typeof __VLS_19) => any;
9
10
  };
10
- declare const __VLS_component: import("vue").DefineComponent<NRadioGroupItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NRadioGroupItemProps> & Readonly<{}>, {
11
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
11
12
  icon: import("vue").HTMLAttributes["class"];
12
13
  size: import("vue").HTMLAttributes["class"];
13
14
  square: import("vue").HTMLAttributes["class"];
@@ -13,11 +13,14 @@ import SelectSeparator from "./SelectSeparator.vue";
13
13
  import SelectTrigger from "./SelectTrigger.vue";
14
14
  import SelectValue from "./SelectValue.vue";
15
15
  const props = defineProps({
16
- items: { type: Array, required: true },
16
+ items: { type: null, required: true },
17
17
  itemKey: { type: null, required: false },
18
18
  valueKey: { type: null, required: false },
19
19
  label: { type: String, required: false },
20
20
  groupSeparator: { type: Boolean, required: false },
21
+ defaultValue: { type: null, required: false },
22
+ modelValue: { type: null, required: false },
23
+ multiple: { type: null, required: false },
21
24
  _selectScrollUpButton: { type: Object, required: false },
22
25
  _selectItemText: { type: Object, required: false },
23
26
  _selectScrollDownButton: { type: Object, required: false },
@@ -31,11 +34,8 @@ const props = defineProps({
31
34
  una: { type: Object, required: false },
32
35
  open: { type: Boolean, required: false },
33
36
  defaultOpen: { type: Boolean, required: false },
34
- defaultValue: { type: null, required: false },
35
- modelValue: { type: null, required: false },
36
37
  by: { type: [String, Function], required: false },
37
38
  dir: { type: String, required: false },
38
- multiple: { type: Boolean, required: false },
39
39
  autocomplete: { type: String, required: false },
40
40
  disabled: { type: Boolean, required: false },
41
41
  name: { type: String, required: false },
@@ -87,7 +87,6 @@ function isItemSelected(item, modelValue) {
87
87
 
88
88
  <template>
89
89
  <SelectRoot
90
- v-slot="{ modelValue, open }"
91
90
  :class="cn(
92
91
  props.una?.select,
93
92
  props.class
@@ -211,7 +210,6 @@ function isItemSelected(item, modelValue) {
211
210
  </slot>
212
211
  </SelectGroup>
213
212
  </template>
214
- <slot />
215
213
  </slot>
216
214
  </SelectContent>
217
215
  </slot>
@@ -1,66 +1,64 @@
1
1
  import type { AcceptableValue } from 'reka-ui';
2
2
  import type { NSelectProps, SelectGroup as SelectGroupType } 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<{
3
+ declare const _default: <T extends AcceptableValue, I extends Array<T | SelectGroupType<T>>, 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: T) => any) | undefined;
6
6
  readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
7
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:open"> & NSelectProps<T> & Partial<{}>> & import("vue").PublicProps;
7
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:open"> & NSelectProps<T, I, M> & Partial<{}>> & import("vue").PublicProps;
8
8
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
9
9
  attrs: any;
10
10
  slots: {
11
11
  default?: (props: {
12
- modelValue: AcceptableValue | AcceptableValue[] | undefined;
13
- open: boolean;
12
+ modelValue: any;
13
+ open: any;
14
14
  }) => any;
15
15
  } & {
16
16
  'trigger-wrapper'?: (props: {
17
- modelValue: AcceptableValue | AcceptableValue[] | undefined;
18
- open: boolean;
17
+ modelValue: any;
18
+ open: any;
19
19
  }) => any;
20
20
  } & {
21
21
  trigger?: (props: {
22
- modelValue: AcceptableValue | AcceptableValue[] | undefined;
23
- open: boolean;
22
+ modelValue: any;
23
+ open: any;
24
24
  }) => any;
25
25
  } & {
26
26
  value?: (props: {
27
- modelValue: AcceptableValue | AcceptableValue[] | undefined;
28
- open: boolean;
27
+ modelValue: any;
28
+ open: any;
29
29
  }) => any;
30
30
  } & {
31
31
  content?: (props: {
32
- items: T[] | SelectGroupType<T>[];
32
+ items: any;
33
33
  }) => any;
34
34
  } & {
35
35
  label?: (props: {
36
- label: string;
36
+ label: any;
37
37
  }) => any;
38
38
  } & {
39
39
  item?: (props: {
40
- item: T | SelectGroupType<T>;
40
+ item: any;
41
41
  }) => any;
42
42
  } & {
43
43
  indicator?: (props: {
44
- item: T | SelectGroupType<T>;
44
+ item: any;
45
45
  }) => any;
46
46
  } & {
47
47
  group?: (props: {
48
- items: SelectGroupType<T>;
48
+ items: any;
49
49
  }) => any;
50
50
  } & {
51
51
  label?: (props: {
52
- label: string;
52
+ label: any;
53
53
  }) => any;
54
54
  } & {
55
55
  item?: (props: {
56
- item: T;
56
+ item: any;
57
57
  }) => any;
58
58
  } & {
59
59
  indicator?: (props: {
60
- item: T;
60
+ item: any;
61
61
  }) => any;
62
- } & {
63
- default?: (props: {}) => any;
64
62
  };
65
63
  emit: ((evt: "update:modelValue", value: T) => void) & ((evt: "update:open", value: boolean) => void);
66
64
  }>) => import("vue").VNode & {
@@ -22,8 +22,10 @@ const props = defineProps({
22
22
  bodyLock: { type: Boolean, required: false },
23
23
  side: { type: null, required: false },
24
24
  sideOffset: { type: Number, required: false },
25
+ sideFlip: { type: Boolean, required: false },
25
26
  align: { type: null, required: false },
26
27
  alignOffset: { type: Number, required: false },
28
+ alignFlip: { type: Boolean, required: false },
27
29
  avoidCollisions: { type: Boolean, required: false },
28
30
  collisionBoundary: { type: null, required: false },
29
31
  collisionPadding: { type: [Number, Object], required: false },
@@ -51,6 +53,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
51
53
  v-bind="{ ...forwarded, ...$attrs }"
52
54
  :class="
53
55
  cn(
56
+ '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',
54
57
  'select-content',
55
58
  position === 'popper' && 'select-content-popper',
56
59
  props.class
@@ -1,6 +1,6 @@
1
1
  import type { NHoverCardProps } from '../../types/index.js';
2
2
  declare var __VLS_6: {}, __VLS_11: {
3
- open: boolean;
3
+ open: any;
4
4
  }, __VLS_16: {};
5
5
  type __VLS_Slots = {} & {
6
6
  default?: (props: typeof __VLS_6) => any;
@@ -14,8 +14,10 @@ const props = defineProps({
14
14
  forceMount: { type: Boolean, required: false },
15
15
  side: { type: null, required: false },
16
16
  sideOffset: { type: Number, required: false, default: 4 },
17
+ sideFlip: { type: Boolean, required: false },
17
18
  align: { type: null, required: false },
18
19
  alignOffset: { type: Number, required: false },
20
+ alignFlip: { type: Boolean, required: false },
19
21
  avoidCollisions: { type: Boolean, required: false },
20
22
  collisionBoundary: { type: null, required: false },
21
23
  collisionPadding: { type: [Number, Object], required: false },
@@ -44,6 +46,7 @@ const forwarded = useForwardProps(delegatedProps);
44
46
  v-bind="{ ...forwarded, ...$attrs }"
45
47
  :class="
46
48
  cn(
49
+ 'data-[state=hidden]:opacity-0 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',
47
50
  'hover-card-content',
48
51
  props.una?.hoverCardContent,
49
52
  props.class
@@ -25,23 +25,23 @@ const currentPrimaryThemeName = computed(() => {
25
25
  });
26
26
  const currentGrayThemeHex = computed(() => settings.value.grayColors?.["--una-gray-hex"]);
27
27
  const currentGrayThemeName = computed(() => {
28
- if (settings.value.theme !== null) {
29
- return false;
28
+ if (settings.value.theme) {
29
+ return settings.value.theme;
30
30
  }
31
31
  const theme = grayThemes.find(([, theme2]) => theme2["--una-gray-hex"] === currentGrayThemeHex.value);
32
32
  return theme ? theme[0] : "";
33
33
  });
34
- function updateColor(theme) {
34
+ function updateTheme(theme) {
35
35
  settings.value.theme = theme;
36
- settings.value.primary = "";
37
- settings.value.gray = "";
36
+ settings.value.primary = false;
37
+ settings.value.gray = false;
38
38
  }
39
39
  function updatePrimaryTheme(theme) {
40
- settings.value.theme = null;
40
+ settings.value.theme = false;
41
41
  settings.value.primary = theme;
42
42
  }
43
43
  function updateGrayTheme(theme) {
44
- settings.value.theme = null;
44
+ settings.value.theme = false;
45
45
  settings.value.gray = theme;
46
46
  }
47
47
  function shuffleTheme() {
@@ -114,7 +114,7 @@ function shuffleTheme() {
114
114
  class="justify-start gap-2 ring-primary"
115
115
  :aria-label="`Theme: ${theme.name}`"
116
116
  :class="currentPrimaryThemeName === theme?.name && 'ring-2'"
117
- @click="updateColor(theme.name)"
117
+ @click="updateTheme(theme.name)"
118
118
  >
119
119
  <template #leading>
120
120
  <Icon
@@ -169,19 +169,25 @@ function shuffleTheme() {
169
169
  <div class="space-y-2">
170
170
  <Label for="color" class="text-xs"> Gray Color </Label>
171
171
  <div class="grid grid-cols-7 gap-3">
172
- <button
172
+ <template
173
173
  v-for="[key, theme] in grayThemes"
174
174
  :key="key"
175
- :title="capitalize(key)"
176
- :style="{ background: theme['--una-gray-hex'] }"
177
- :class="currentGrayThemeName === key ? 'ring-2' : 'scale-93'"
178
- class="transition-all"
179
- rounded="full"
180
- square="6.5"
181
- :aria-label="`Gray Color: ${key}`"
182
- ring="gray offset-4 offset-background"
183
- @click="updateGrayTheme(key)"
184
- />
175
+ >
176
+ <button
177
+ :title="capitalize(key)"
178
+ :style="{
179
+ '--c-gray': `oklch(${theme['--una-gray-600']})`,
180
+ '--c-gray-foreground': `oklch(${theme['--una-gray-500']})`
181
+ }"
182
+ class="bg-$c-gray transition-all dark:bg-$c-gray-foreground"
183
+ rounded="full"
184
+ square="6.5"
185
+ :class="[currentGrayThemeName === key ? 'ring-2' : 'scale-93']"
186
+ ring="gray offset-4 offset-background"
187
+ :aria-label="`Gray Color: ${key}`"
188
+ @click="updateGrayTheme(key)"
189
+ />
190
+ </template>
185
191
  </div>
186
192
  </div>
187
193
 
@@ -1,5 +1,5 @@
1
1
  declare var __VLS_5: {
2
- open: boolean;
2
+ open: any;
3
3
  }, __VLS_10: {};
4
4
  type __VLS_Slots = {} & {
5
5
  trigger?: (props: typeof __VLS_5) => any;
@@ -1,26 +1,16 @@
1
1
  import type { NBreadcrumbProps } from '../../../types/index.js';
2
2
  declare var __VLS_5: {
3
- items: Partial<import("../../../types/index.js").NButtonProps & {
4
- children?: import("../../../types/index.js").NButtonProps[];
5
- }>[];
3
+ items: any;
6
4
  }, __VLS_10: {
7
- item: Partial<import("../../../types/index.js").NButtonProps & {
8
- children?: import("../../../types/index.js").NButtonProps[];
9
- }>;
5
+ item: any;
10
6
  }, __VLS_15: {
11
- item: Partial<import("../../../types/index.js").NButtonProps & {
12
- children?: import("../../../types/index.js").NButtonProps[];
13
- }>;
7
+ item: any;
14
8
  }, __VLS_20: {
15
- item: Partial<import("../../../types/index.js").NButtonProps & {
16
- children?: import("../../../types/index.js").NButtonProps[];
17
- }>;
18
- index: number;
9
+ item: any;
10
+ index: any;
19
11
  isActive: boolean;
20
12
  }, __VLS_22: {
21
- item: Partial<import("../../../types/index.js").NButtonProps & {
22
- children?: import("../../../types/index.js").NButtonProps[];
23
- }>;
13
+ item: any;
24
14
  }, __VLS_33: {};
25
15
  type __VLS_Slots = {} & {
26
16
  root?: (props: typeof __VLS_5) => any;
@@ -7,31 +7,31 @@ declare const _default: <T extends U[], U extends NNavigationMenuItemProps>(__VL
7
7
  attrs: any;
8
8
  slots: {
9
9
  [x: string]: ((props: {
10
- item: T extends number ? number : T extends string ? string : T extends any[] ? T[number] : T extends Iterable<infer T1> ? T1 : any;
11
- active: boolean | undefined;
10
+ item: any;
11
+ active: any;
12
12
  }) => any) | undefined;
13
13
  } & {
14
- [x: `${string}-content`]: ((props: {
15
- items: import("../../types/index.js").NNavigationMenuLinkProps[];
16
- item: T extends number ? number : T extends string ? string : T extends any[] ? T[number] : T extends Iterable<infer T1> ? T1 : any;
14
+ [x: string]: ((props: {
15
+ items: any;
16
+ item: any;
17
17
  }) => any) | undefined;
18
18
  } & {
19
19
  [x: string]: ((props: {
20
- item: T extends number ? number : T extends string ? string : T extends any[] ? T[number] : T extends Iterable<infer T1> ? T1 : any;
20
+ item: any;
21
21
  }) => any) | undefined;
22
22
  } & {
23
23
  default?: (props: {
24
- items: T | undefined;
24
+ items: any;
25
25
  }) => any;
26
26
  } & {
27
27
  list?: (props: {
28
- items: T | undefined;
28
+ items: any;
29
29
  }) => any;
30
30
  } & {
31
31
  trigger?: (props: {
32
- modelValue: string;
33
- item: T extends number ? number : T extends string ? string : T extends any[] ? T[number] : T extends Iterable<infer T1> ? T1 : any;
34
- index: number;
32
+ modelValue: any;
33
+ item: any;
34
+ index: any;
35
35
  }) => any;
36
36
  } & {
37
37
  viewport?: (props: {}) => any;
@@ -18,6 +18,7 @@ const forwardedProps = useForwardProps(delegatedProps);
18
18
  <NavigationMenuIndicator
19
19
  v-bind="forwardedProps"
20
20
  :class="cn(
21
+ 'data-[state=hidden]:opacity-0 data-[state=visible]:animate-fadeIn data-[state=hidden]:animate-fadeOut',
21
22
  'navigation-menu-indicator',
22
23
  props.una?.navigationMenuIndicator,
23
24
  props.class
@@ -1,6 +1,6 @@
1
1
  import type { NNavigationMenuLinkProps } from '../../types/index.js';
2
2
  declare var __VLS_6: {
3
- active: boolean | undefined;
3
+ active: any;
4
4
  };
5
5
  type __VLS_Slots = {} & {
6
6
  default?: (props: typeof __VLS_6) => any;
@@ -34,6 +34,7 @@ const forwardedProps = useForwardProps(delegatedProps);
34
34
  cn(
35
35
  'navigation-menu-viewport',
36
36
  'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90',
37
+ 'data-[state=closed]:fade-out data-[state=open]:fade-in',
37
38
  props.una?.navigationMenuViewport
38
39
  )
39
40
  "
@@ -19,6 +19,7 @@ const props = defineProps({
19
19
  formatOptions: { type: null, required: false },
20
20
  locale: { type: String, required: false },
21
21
  disabled: { type: Boolean, required: false },
22
+ readonly: { type: Boolean, required: false },
22
23
  disableWheelChange: { type: Boolean, required: false },
23
24
  invertWheelChange: { type: Boolean, required: false },
24
25
  id: { type: String, required: false },
@@ -1,5 +1,5 @@
1
1
  import type { NToasterProps } from '../../types/index.js';
2
- declare var __VLS_9: string | number, __VLS_10: any;
2
+ declare var __VLS_9: any, __VLS_10: any;
3
3
  type __VLS_Slots = {} & {
4
4
  [K in NonNullable<typeof __VLS_9>]?: (props: typeof __VLS_10) => any;
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import type { NToastProps } from '../../../types/index.js';
2
2
  declare var __VLS_10: {}, __VLS_15: {}, __VLS_20: {}, __VLS_25: {}, __VLS_30: {}, __VLS_32: {
3
- actions: import("reka-ui").ToastActionProps[];
3
+ actions: any;
4
4
  }, __VLS_40: {};
5
5
  type __VLS_Slots = {} & {
6
6
  leading?: (props: typeof __VLS_10) => any;
@@ -1,5 +1,5 @@
1
1
  import type { NToastActionProps } 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
  };