@una-ui/nuxt-edge 0.61.0-29182246.bc2c328 → 1.0.0-alpha.0-29173950.b6a8c03

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 (49) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +2 -2
  3. package/dist/runtime/components/alert-dialog/AlertDialogCancel.vue +1 -1
  4. package/dist/runtime/components/combobox/Combobox.vue +2 -1
  5. package/dist/runtime/components/combobox/ComboboxTrigger.vue +1 -1
  6. package/dist/runtime/components/data/table/Table.vue +0 -1
  7. package/dist/runtime/components/elements/Skeleton.vue +1 -1
  8. package/dist/runtime/components/elements/Skeleton.vue.d.ts +3 -1
  9. package/dist/runtime/components/elements/tabs/TabsTrigger.vue +1 -1
  10. package/dist/runtime/components/forms/Checkbox.vue +2 -2
  11. package/dist/runtime/components/forms/Checkbox.vue.d.ts +2 -0
  12. package/dist/runtime/components/forms/FormGroup.vue +1 -1
  13. package/dist/runtime/components/forms/Slider.vue +13 -11
  14. package/dist/runtime/components/forms/Slider.vue.d.ts +1 -0
  15. package/dist/runtime/components/forms/form/FormField.vue +1 -1
  16. package/dist/runtime/components/forms/select/SelectTrigger.vue +1 -1
  17. package/dist/runtime/components/misc/ThemeSwitcher.vue +75 -17
  18. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbPage.vue +1 -1
  19. package/dist/runtime/components/sidebar/SidebarMenuSubButton.vue +2 -1
  20. package/dist/runtime/composables/useUnaSettings.js +11 -7
  21. package/dist/runtime/composables/useUnaThemes.d.ts +77 -5
  22. package/dist/runtime/composables/useUnaThemes.js +414 -98
  23. package/dist/runtime/plugins/theme.client.js +12 -0
  24. package/dist/runtime/plugins/theme.server.js +9 -0
  25. package/dist/runtime/types/index.d.ts +7 -2
  26. package/dist/runtime/types/index.js +0 -2
  27. package/package.json +10 -10
  28. package/dist/runtime/components/number-field/NumberField.vue +0 -73
  29. package/dist/runtime/components/number-field/NumberField.vue.d.ts +0 -28
  30. package/dist/runtime/components/number-field/NumberFieldContent.vue +0 -20
  31. package/dist/runtime/components/number-field/NumberFieldContent.vue.d.ts +0 -13
  32. package/dist/runtime/components/number-field/NumberFieldDecrement.vue +0 -33
  33. package/dist/runtime/components/number-field/NumberFieldDecrement.vue.d.ts +0 -16
  34. package/dist/runtime/components/number-field/NumberFieldIncrement.vue +0 -33
  35. package/dist/runtime/components/number-field/NumberFieldIncrement.vue.d.ts +0 -16
  36. package/dist/runtime/components/number-field/NumberFieldInput.vue +0 -24
  37. package/dist/runtime/components/number-field/NumberFieldInput.vue.d.ts +0 -5
  38. package/dist/runtime/components/pin-input/PinInput.vue +0 -139
  39. package/dist/runtime/components/pin-input/PinInput.vue.d.ts +0 -33
  40. package/dist/runtime/components/pin-input/PinInputGroup.vue +0 -28
  41. package/dist/runtime/components/pin-input/PinInputGroup.vue.d.ts +0 -13
  42. package/dist/runtime/components/pin-input/PinInputSeparator.vue +0 -30
  43. package/dist/runtime/components/pin-input/PinInputSeparator.vue.d.ts +0 -15
  44. package/dist/runtime/components/pin-input/PinInputSlot.vue +0 -46
  45. package/dist/runtime/components/pin-input/PinInputSlot.vue.d.ts +0 -5
  46. package/dist/runtime/types/number-field.d.ts +0 -48
  47. package/dist/runtime/types/number-field.js +0 -0
  48. package/dist/runtime/types/pin-input.d.ts +0 -88
  49. package/dist/runtime/types/pin-input.js +0 -0
@@ -1,88 +0,0 @@
1
- import type { PinInputInputProps, PinInputRootProps, PrimitiveProps } from 'reka-ui';
2
- import type { HTMLAttributes } from 'vue';
3
- interface BaseExtensions {
4
- /** CSS class for the component */
5
- class?: HTMLAttributes['class'];
6
- /** Size of the component */
7
- size?: HTMLAttributes['class'];
8
- }
9
- export type PinInputType = 'text' | 'number';
10
- export type PinInputValueType<T extends PinInputType> = T extends 'text' ? string : number;
11
- export interface NPinInputProps<T extends PinInputType = 'text'> extends Omit<PinInputRootProps<T>, 'defaultValue'>, Pick<NPinInputSlotProps, 'pinInput' | 'status'>, BaseExtensions {
12
- /**
13
- * The default value of the pin input.
14
- * @default []
15
- */
16
- defaultValue?: PinInputValueType<T>[];
17
- /**
18
- * The maximum number of slots to render.
19
- */
20
- maxLength?: number;
21
- /**
22
- * The icon to use as a separator between pin-input groups.
23
- */
24
- separator?: boolean | string;
25
- /**
26
- * The number of slots to group together.
27
- *
28
- * @default 0
29
- */
30
- groupBy?: number;
31
- /** Props for the pin input group */
32
- _pinInputGroup?: Partial<NPinInputGroupProps>;
33
- /** Props for the pin input separator */
34
- _pinInputSeparator?: Partial<NPinInputSeparatorProps>;
35
- /** Props for the pin input slots */
36
- _pinInputSlot?: Partial<NPinInputSlotProps>;
37
- /**
38
- * `UnaUI` preset configuration
39
- *
40
- * @see https://github.com/una-ui/una-ui/blob/main/packages/preset/src/_shortcuts/pin-input.ts
41
- */
42
- una?: NPinInputUnaProps;
43
- }
44
- export interface NPinInputGroupProps extends PrimitiveProps, BaseExtensions {
45
- /** Additional properties for the una component */
46
- una?: Pick<NPinInputUnaProps, 'pinInputGroup'>;
47
- }
48
- export interface NPinInputSlotProps extends PinInputInputProps, Pick<NPinInputSeparatorProps, 'icon'>, BaseExtensions {
49
- /**
50
- * Allows you to add `UnaUI` pin-input preset properties,
51
- * Think of it as a shortcut for adding options or variants to the preset if available.
52
- *
53
- * @see https://github.com/una-ui/una-ui/blob/main/packages/preset/src/_shortcuts/pin-input.ts
54
- * @example
55
- * pin-input="outline-indigo"
56
- */
57
- pinInput?: HTMLAttributes['class'];
58
- /**
59
- * Update the pin input status.
60
- * Useful for validations.
61
- *
62
- * @default null
63
- */
64
- status?: 'info' | 'success' | 'warning' | 'error';
65
- /** Additional properties for the una component */
66
- una?: Pick<NPinInputUnaProps, 'pinInputSlot'>;
67
- }
68
- export interface NPinInputSeparatorProps extends PrimitiveProps, BaseExtensions {
69
- /**
70
- * The separator to use between pin input fields.
71
- *@example
72
- * 'i-lucide:dot'
73
- */
74
- icon?: string;
75
- /** Additional properties for the una component */
76
- una?: Pick<NPinInputUnaProps, 'pinInputSeparator'>;
77
- }
78
- interface NPinInputUnaProps {
79
- /** CSS class for the pin input root */
80
- pinInput?: HTMLAttributes['class'];
81
- /** CSS class for the pin input group */
82
- pinInputGroup?: HTMLAttributes['class'];
83
- /** CSS class for the pin input separator */
84
- pinInputSeparator?: HTMLAttributes['class'];
85
- /** CSS class for the pin input slots */
86
- pinInputSlot?: HTMLAttributes['class'];
87
- }
88
- export {};
File without changes