@nuxt/ui 2.10.0 → 2.11.1

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 (208) hide show
  1. package/README.md +11 -0
  2. package/dist/module.d.mts +387 -104
  3. package/dist/module.d.ts +387 -104
  4. package/dist/module.json +1 -1
  5. package/dist/module.mjs +16 -7
  6. package/dist/runtime/components/data/Table.vue +3 -3
  7. package/dist/runtime/components/data/Table.vue.d.ts +7 -7
  8. package/dist/runtime/components/elements/Accordion.vue +2 -2
  9. package/dist/runtime/components/elements/Accordion.vue.d.ts +7 -7
  10. package/dist/runtime/components/elements/Alert.vue +13 -12
  11. package/dist/runtime/components/elements/Alert.vue.d.ts +12 -11
  12. package/dist/runtime/components/elements/Avatar.vue +2 -2
  13. package/dist/runtime/components/elements/Avatar.vue.d.ts +11 -10
  14. package/dist/runtime/components/elements/AvatarGroup.d.ts +11 -10
  15. package/dist/runtime/components/elements/AvatarGroup.mjs +2 -2
  16. package/dist/runtime/components/elements/Badge.vue +6 -4
  17. package/dist/runtime/components/elements/Badge.vue.d.ts +11 -11
  18. package/dist/runtime/components/elements/Button.vue +16 -12
  19. package/dist/runtime/components/elements/Button.vue.d.ts +13 -12
  20. package/dist/runtime/components/elements/ButtonGroup.d.ts +12 -11
  21. package/dist/runtime/components/elements/ButtonGroup.mjs +8 -34
  22. package/dist/runtime/components/elements/Chip.vue +85 -0
  23. package/dist/runtime/components/elements/Chip.vue.d.ts +90 -0
  24. package/dist/runtime/components/elements/Dropdown.vue +35 -21
  25. package/dist/runtime/components/elements/Dropdown.vue.d.ts +13 -7
  26. package/dist/runtime/components/elements/Icon.vue +16 -2
  27. package/dist/runtime/components/elements/Icon.vue.d.ts +14 -2
  28. package/dist/runtime/components/elements/Kbd.vue +2 -2
  29. package/dist/runtime/components/elements/Kbd.vue.d.ts +12 -11
  30. package/dist/runtime/components/elements/Link.vue +2 -5
  31. package/dist/runtime/components/elements/Meter.vue +2 -2
  32. package/dist/runtime/components/elements/Meter.vue.d.ts +9 -9
  33. package/dist/runtime/components/elements/MeterGroup.d.ts +10 -10
  34. package/dist/runtime/components/elements/MeterGroup.mjs +8 -21
  35. package/dist/runtime/components/elements/Progress.vue +6 -95
  36. package/dist/runtime/components/elements/Progress.vue.d.ts +123 -1
  37. package/dist/runtime/components/forms/Checkbox.vue +8 -10
  38. package/dist/runtime/components/forms/Checkbox.vue.d.ts +10 -10
  39. package/dist/runtime/components/forms/Form.vue +1 -1
  40. package/dist/runtime/components/forms/FormGroup.vue +9 -5
  41. package/dist/runtime/components/forms/FormGroup.vue.d.ts +21 -11
  42. package/dist/runtime/components/forms/Input.vue +43 -12
  43. package/dist/runtime/components/forms/Input.vue.d.ts +38 -15
  44. package/dist/runtime/components/forms/Radio.vue +18 -12
  45. package/dist/runtime/components/forms/Radio.vue.d.ts +11 -10
  46. package/dist/runtime/components/forms/RadioGroup.vue +3 -3
  47. package/dist/runtime/components/forms/RadioGroup.vue.d.ts +13 -13
  48. package/dist/runtime/components/forms/Range.vue +5 -5
  49. package/dist/runtime/components/forms/Range.vue.d.ts +11 -10
  50. package/dist/runtime/components/forms/Select.vue +12 -9
  51. package/dist/runtime/components/forms/Select.vue.d.ts +15 -14
  52. package/dist/runtime/components/forms/SelectMenu.vue +42 -25
  53. package/dist/runtime/components/forms/SelectMenu.vue.d.ts +28 -19
  54. package/dist/runtime/components/forms/Textarea.vue +36 -6
  55. package/dist/runtime/components/forms/Textarea.vue.d.ts +37 -14
  56. package/dist/runtime/components/forms/Toggle.vue +25 -7
  57. package/dist/runtime/components/forms/Toggle.vue.d.ts +20 -7
  58. package/dist/runtime/components/layout/Card.vue +2 -2
  59. package/dist/runtime/components/layout/Card.vue.d.ts +7 -7
  60. package/dist/runtime/components/layout/Container.vue +2 -2
  61. package/dist/runtime/components/layout/Container.vue.d.ts +7 -7
  62. package/dist/runtime/components/layout/Divider.vue +3 -8
  63. package/dist/runtime/components/layout/Divider.vue.d.ts +9 -9
  64. package/dist/runtime/components/layout/Skeleton.vue +2 -2
  65. package/dist/runtime/components/layout/Skeleton.vue.d.ts +7 -7
  66. package/dist/runtime/components/navigation/Breadcrumb.vue +78 -0
  67. package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +50 -0
  68. package/dist/runtime/components/navigation/CommandPalette.vue +50 -37
  69. package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +15 -8
  70. package/dist/runtime/components/navigation/CommandPaletteGroup.vue +1 -3
  71. package/dist/runtime/components/navigation/Pagination.vue +7 -7
  72. package/dist/runtime/components/navigation/Pagination.vue.d.ts +11 -11
  73. package/dist/runtime/components/navigation/Tabs.vue +8 -5
  74. package/dist/runtime/components/navigation/Tabs.vue.d.ts +10 -10
  75. package/dist/runtime/components/navigation/VerticalNavigation.vue +2 -2
  76. package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +7 -7
  77. package/dist/runtime/components/overlays/ContextMenu.vue +4 -3
  78. package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +7 -7
  79. package/dist/runtime/components/overlays/Modal.vue +3 -6
  80. package/dist/runtime/components/overlays/Modal.vue.d.ts +7 -7
  81. package/dist/runtime/components/overlays/Notification.vue +30 -31
  82. package/dist/runtime/components/overlays/Notification.vue.d.ts +10 -9
  83. package/dist/runtime/components/overlays/Notifications.vue +18 -16
  84. package/dist/runtime/components/overlays/Notifications.vue.d.ts +7 -7
  85. package/dist/runtime/components/overlays/Popover.vue +14 -4
  86. package/dist/runtime/components/overlays/Popover.vue.d.ts +20 -9
  87. package/dist/runtime/components/overlays/Slideover.vue +6 -6
  88. package/dist/runtime/components/overlays/Slideover.vue.d.ts +7 -7
  89. package/dist/runtime/components/overlays/Tooltip.vue +6 -5
  90. package/dist/runtime/components/overlays/Tooltip.vue.d.ts +7 -7
  91. package/dist/runtime/composables/defineShortcuts.d.ts +1 -1
  92. package/dist/runtime/composables/defineShortcuts.mjs +8 -4
  93. package/dist/runtime/composables/useButtonGroup.d.ts +20 -0
  94. package/dist/runtime/composables/useButtonGroup.mjs +52 -0
  95. package/dist/runtime/composables/useFormGroup.d.ts +2 -0
  96. package/dist/runtime/composables/useFormGroup.mjs +3 -2
  97. package/dist/runtime/composables/useShortcuts.d.ts +2 -2
  98. package/dist/runtime/composables/useUI.d.ts +3 -3
  99. package/dist/runtime/types/alert.d.ts +7 -0
  100. package/dist/runtime/types/avatar.d.ts +3 -1
  101. package/dist/runtime/types/badge.d.ts +5 -4
  102. package/dist/runtime/types/breadcrumb.d.ts +9 -0
  103. package/dist/runtime/types/button.d.ts +5 -4
  104. package/dist/runtime/types/chip.d.ts +11 -0
  105. package/dist/runtime/types/dropdown.d.ts +2 -2
  106. package/dist/runtime/types/form-group.d.ts +5 -0
  107. package/dist/runtime/types/form.d.ts +3 -2
  108. package/dist/runtime/types/index.d.ts +10 -0
  109. package/dist/runtime/types/input.d.ts +8 -0
  110. package/dist/runtime/types/kbd.d.ts +5 -0
  111. package/dist/runtime/types/popper.d.ts +2 -0
  112. package/dist/runtime/types/range.d.ts +5 -0
  113. package/dist/runtime/types/select.d.ts +8 -0
  114. package/dist/runtime/types/textarea.d.ts +8 -0
  115. package/dist/runtime/types/toggle.d.ts +5 -0
  116. package/dist/runtime/types/utils.d.ts +24 -7
  117. package/dist/runtime/ui.config/data/table.d.ts +60 -0
  118. package/dist/runtime/ui.config/data/table.mjs +59 -0
  119. package/dist/runtime/ui.config/elements/accordion.d.ts +21 -0
  120. package/dist/runtime/ui.config/elements/accordion.mjs +20 -0
  121. package/dist/runtime/ui.config/elements/alert.d.ts +41 -0
  122. package/dist/runtime/ui.config/elements/alert.mjs +40 -0
  123. package/dist/runtime/ui.config/elements/avatar.d.ts +60 -0
  124. package/dist/runtime/ui.config/elements/avatar.mjs +59 -0
  125. package/dist/runtime/ui.config/elements/avatarGroup.d.ts +6 -0
  126. package/dist/runtime/ui.config/elements/avatarGroup.mjs +5 -0
  127. package/dist/runtime/ui.config/elements/badge.d.ts +34 -0
  128. package/dist/runtime/ui.config/elements/badge.mjs +33 -0
  129. package/dist/runtime/ui.config/elements/button.d.ts +81 -0
  130. package/dist/runtime/ui.config/elements/button.mjs +80 -0
  131. package/dist/runtime/ui.config/elements/buttonGroup.d.ts +101 -0
  132. package/dist/runtime/ui.config/elements/buttonGroup.mjs +19 -0
  133. package/dist/runtime/ui.config/elements/chip.d.ts +35 -0
  134. package/dist/runtime/ui.config/elements/chip.mjs +34 -0
  135. package/dist/runtime/ui.config/elements/dropdown.d.ts +55 -0
  136. package/dist/runtime/ui.config/elements/dropdown.mjs +53 -0
  137. package/dist/runtime/ui.config/elements/kbd.d.ts +17 -0
  138. package/dist/runtime/ui.config/elements/kbd.mjs +16 -0
  139. package/dist/runtime/ui.config/elements/meter.d.ts +77 -0
  140. package/dist/runtime/ui.config/elements/meter.mjs +76 -0
  141. package/dist/runtime/ui.config/elements/meterGroup.d.ts +52 -0
  142. package/dist/runtime/ui.config/elements/meterGroup.mjs +24 -0
  143. package/dist/runtime/ui.config/elements/progress.d.ts +75 -0
  144. package/dist/runtime/ui.config/elements/progress.mjs +74 -0
  145. package/dist/runtime/ui.config/forms/checkbox.d.ts +19 -0
  146. package/dist/runtime/ui.config/forms/checkbox.mjs +18 -0
  147. package/dist/runtime/ui.config/forms/formGroup.d.ts +25 -0
  148. package/dist/runtime/ui.config/forms/formGroup.mjs +25 -0
  149. package/dist/runtime/ui.config/forms/input.d.ts +107 -0
  150. package/dist/runtime/ui.config/forms/input.mjs +106 -0
  151. package/dist/runtime/ui.config/forms/radio.d.ts +18 -0
  152. package/dist/runtime/ui.config/forms/radio.mjs +17 -0
  153. package/dist/runtime/ui.config/forms/radioGroup.d.ts +8 -0
  154. package/dist/runtime/ui.config/forms/radioGroup.mjs +7 -0
  155. package/dist/runtime/ui.config/forms/range.d.ts +64 -0
  156. package/dist/runtime/ui.config/forms/range.mjs +63 -0
  157. package/dist/runtime/ui.config/forms/select.d.ts +108 -0
  158. package/dist/runtime/ui.config/forms/select.mjs +13 -0
  159. package/dist/runtime/ui.config/forms/selectMenu.d.ts +68 -0
  160. package/dist/runtime/ui.config/forms/selectMenu.mjs +66 -0
  161. package/dist/runtime/ui.config/forms/textarea.d.ts +106 -0
  162. package/dist/runtime/ui.config/forms/textarea.mjs +10 -0
  163. package/dist/runtime/ui.config/forms/toggle.d.ts +61 -0
  164. package/dist/runtime/ui.config/forms/toggle.mjs +60 -0
  165. package/dist/runtime/ui.config/index.d.ts +40 -0
  166. package/dist/runtime/ui.config/index.mjs +40 -0
  167. package/dist/runtime/ui.config/layout/card.d.ts +24 -0
  168. package/dist/runtime/ui.config/layout/card.mjs +23 -0
  169. package/dist/runtime/ui.config/layout/container.d.ts +6 -0
  170. package/dist/runtime/ui.config/layout/container.mjs +5 -0
  171. package/dist/runtime/ui.config/layout/divider.d.ts +35 -0
  172. package/dist/runtime/ui.config/layout/divider.mjs +34 -0
  173. package/dist/runtime/ui.config/layout/skeleton.d.ts +6 -0
  174. package/dist/runtime/ui.config/layout/skeleton.mjs +5 -0
  175. package/dist/runtime/ui.config/navigation/breadcrumb.d.ts +20 -0
  176. package/dist/runtime/ui.config/navigation/breadcrumb.mjs +19 -0
  177. package/dist/runtime/ui.config/navigation/commandPalette.d.ts +72 -0
  178. package/dist/runtime/ui.config/navigation/commandPalette.mjs +71 -0
  179. package/dist/runtime/ui.config/navigation/pagination.d.ts +35 -0
  180. package/dist/runtime/ui.config/navigation/pagination.mjs +34 -0
  181. package/dist/runtime/ui.config/navigation/tabs.d.ts +34 -0
  182. package/dist/runtime/ui.config/navigation/tabs.mjs +33 -0
  183. package/dist/runtime/ui.config/navigation/verticalNavigation.d.ts +28 -0
  184. package/dist/runtime/ui.config/navigation/verticalNavigation.mjs +27 -0
  185. package/dist/runtime/ui.config/overlays/contextMenu.d.ts +31 -0
  186. package/dist/runtime/ui.config/overlays/contextMenu.mjs +25 -0
  187. package/dist/runtime/ui.config/overlays/modal.d.ts +36 -0
  188. package/dist/runtime/ui.config/overlays/modal.mjs +37 -0
  189. package/dist/runtime/ui.config/overlays/notification.d.ts +50 -0
  190. package/dist/runtime/ui.config/overlays/notification.mjs +50 -0
  191. package/dist/runtime/ui.config/overlays/notifications.d.ts +7 -0
  192. package/dist/runtime/ui.config/overlays/notifications.mjs +6 -0
  193. package/dist/runtime/ui.config/overlays/popover.d.ts +43 -0
  194. package/dist/runtime/ui.config/overlays/popover.mjs +37 -0
  195. package/dist/runtime/ui.config/overlays/slideover.d.ts +32 -0
  196. package/dist/runtime/ui.config/overlays/slideover.mjs +33 -0
  197. package/dist/runtime/ui.config/overlays/tooltip.d.ts +33 -0
  198. package/dist/runtime/ui.config/overlays/tooltip.mjs +27 -0
  199. package/dist/runtime/ui.config/popper.d.ts +8 -0
  200. package/dist/runtime/ui.config/popper.mjs +8 -0
  201. package/dist/runtime/ui.css +1 -13
  202. package/dist/runtime/utils/index.d.ts +5 -0
  203. package/dist/runtime/utils/index.mjs +7 -3
  204. package/dist/types.d.mts +3 -2
  205. package/dist/types.d.ts +3 -2
  206. package/package.json +32 -21
  207. package/dist/runtime/ui.config.d.ts +0 -1470
  208. package/dist/runtime/ui.config.mjs +0 -1273
@@ -0,0 +1,76 @@
1
+ export default {
2
+ wrapper: "w-full flex flex-col gap-2",
3
+ indicator: {
4
+ container: "min-w-fit transition-all",
5
+ text: "text-gray-400 dark:text-gray-500 text-end",
6
+ size: {
7
+ "2xs": "text-xs",
8
+ xs: "text-xs",
9
+ sm: "text-sm",
10
+ md: "text-sm",
11
+ lg: "text-sm",
12
+ xl: "text-base",
13
+ "2xl": "text-base"
14
+ }
15
+ },
16
+ meter: {
17
+ base: "appearance-none block w-full bg-none overflow-y-hidden",
18
+ background: "bg-gray-200 dark:bg-gray-700",
19
+ color: "text-{color}-500 dark:text-{color}-400",
20
+ ring: "",
21
+ rounded: "rounded-full",
22
+ shadow: "",
23
+ size: {
24
+ "2xs": "h-px",
25
+ xs: "h-0.5",
26
+ sm: "h-1",
27
+ md: "h-2",
28
+ lg: "h-3",
29
+ xl: "h-4",
30
+ "2xl": "h-5"
31
+ },
32
+ appearance: {
33
+ inner: "[&::-webkit-meter-inner-element]:block [&::-webkit-meter-inner-element]:relative [&::-webkit-meter-inner-element]:border-none [&::-webkit-meter-inner-element]:bg-none [&::-webkit-meter-inner-element]:bg-transparent",
34
+ meter: "[&::-webkit-meter-bar]:border-none [&::-webkit-meter-bar]:bg-none [&::-webkit-meter-bar]:bg-transparent",
35
+ bar: "[&::-webkit-meter-optimum-value]:border-none [&::-webkit-meter-optimum-value]:bg-none [&::-webkit-meter-optimum-value]:bg-current",
36
+ value: "[&::-moz-meter-bar]:border-none [&::-moz-meter-bar]:bg-none [&::-moz-meter-bar]:bg-current"
37
+ },
38
+ bar: {
39
+ transition: "[&::-webkit-meter-optimum-value]:transition-all [&::-moz-meter-bar]:transition-all",
40
+ ring: "",
41
+ rounded: "[&::-webkit-meter-optimum-value]:rounded-full [&::-moz-meter-bar]:rounded-full",
42
+ size: {
43
+ "2xs": "[&::-webkit-meter-optimum-value]:h-px [&::-moz-meter-bar]:h-px",
44
+ xs: "[&::-webkit-meter-optimum-value]:h-0.5 [&::-moz-meter-bar]:h-0.5",
45
+ sm: "[&::-webkit-meter-optimum-value]:h-1 [&::-moz-meter-bar]:h-1",
46
+ md: "[&::-webkit-meter-optimum-value]:h-2 [&::-moz-meter-bar]:h-2",
47
+ lg: "[&::-webkit-meter-optimum-value]:h-3 [&::-moz-meter-bar]:h-3",
48
+ xl: "[&::-webkit-meter-optimum-value]:h-4 [&::-moz-meter-bar]:h-4",
49
+ "2xl": "[&::-webkit-meter-optimum-value]:h-5 [&::-moz-meter-bar]:h-5"
50
+ }
51
+ }
52
+ },
53
+ label: {
54
+ base: "flex gap-2 items-center",
55
+ text: "truncate",
56
+ color: "text-{color}-500 dark:text-{color}-400",
57
+ size: {
58
+ "2xs": "text-xs",
59
+ xs: "text-xs",
60
+ sm: "text-sm",
61
+ md: "text-sm",
62
+ lg: "text-sm",
63
+ xl: "text-base",
64
+ "2xl": "text-base"
65
+ }
66
+ },
67
+ color: {
68
+ white: "text-white dark:text-black",
69
+ black: "text-black dark:text-white",
70
+ gray: "text-gray-500 dark:text-gray-400"
71
+ },
72
+ default: {
73
+ size: "md",
74
+ color: "primary"
75
+ }
76
+ };
@@ -0,0 +1,52 @@
1
+ declare const _default: {
2
+ wrapper: string;
3
+ base: string;
4
+ background: string;
5
+ transition: string;
6
+ rounded: string;
7
+ shadow: string;
8
+ list: string;
9
+ orientation: {
10
+ 'rounded-none': {
11
+ left: string;
12
+ right: string;
13
+ };
14
+ 'rounded-sm': {
15
+ left: string;
16
+ right: string;
17
+ };
18
+ rounded: {
19
+ left: string;
20
+ right: string;
21
+ };
22
+ 'rounded-md': {
23
+ left: string;
24
+ right: string;
25
+ };
26
+ 'rounded-lg': {
27
+ left: string;
28
+ right: string;
29
+ };
30
+ 'rounded-xl': {
31
+ left: string;
32
+ right: string;
33
+ };
34
+ 'rounded-2xl': {
35
+ left: string;
36
+ right: string;
37
+ };
38
+ 'rounded-3xl': {
39
+ left: string;
40
+ right: string;
41
+ };
42
+ 'rounded-full': {
43
+ left: string;
44
+ right: string;
45
+ };
46
+ };
47
+ default: {
48
+ size: string;
49
+ icon: string;
50
+ };
51
+ };
52
+ export default _default;
@@ -0,0 +1,24 @@
1
+ export default {
2
+ wrapper: "flex flex-col gap-2 w-full",
3
+ base: "flex flex-row flex-nowrap flex-shrink overflow-hidden",
4
+ background: "bg-gray-200 dark:bg-gray-700",
5
+ transition: "transition-all",
6
+ rounded: "rounded-full",
7
+ shadow: "",
8
+ list: "list-disc list-inside",
9
+ orientation: {
10
+ "rounded-none": { left: "rounded-s-none", right: "rounded-e-none" },
11
+ "rounded-sm": { left: "rounded-s-sm", right: "rounded-e-sm" },
12
+ rounded: { left: "rounded-s", right: "rounded-e" },
13
+ "rounded-md": { left: "rounded-s-md", right: "rounded-e-md" },
14
+ "rounded-lg": { left: "rounded-s-lg", right: "rounded-e-lg" },
15
+ "rounded-xl": { left: "rounded-s-xl", right: "rounded-e-xl" },
16
+ "rounded-2xl": { left: "rounded-s-2xl", right: "rounded-e-2xl" },
17
+ "rounded-3xl": { left: "rounded-s-3xl", right: "rounded-e-3xl" },
18
+ "rounded-full": { left: "rounded-s-full", right: "rounded-e-full" }
19
+ },
20
+ default: {
21
+ size: "md",
22
+ icon: "i-heroicons-minus-20-solid"
23
+ }
24
+ };
@@ -0,0 +1,75 @@
1
+ declare const _default: {
2
+ wrapper: string;
3
+ indicator: {
4
+ container: {
5
+ base: string;
6
+ width: string;
7
+ transition: string;
8
+ };
9
+ align: string;
10
+ width: string;
11
+ color: string;
12
+ size: {
13
+ '2xs': string;
14
+ xs: string;
15
+ sm: string;
16
+ md: string;
17
+ lg: string;
18
+ xl: string;
19
+ '2xl': string;
20
+ };
21
+ };
22
+ progress: {
23
+ base: string;
24
+ width: string;
25
+ size: {
26
+ '2xs': string;
27
+ xs: string;
28
+ sm: string;
29
+ md: string;
30
+ lg: string;
31
+ xl: string;
32
+ '2xl': string;
33
+ };
34
+ rounded: string;
35
+ track: string;
36
+ bar: string;
37
+ color: string;
38
+ background: string;
39
+ indeterminate: {
40
+ base: string;
41
+ rounded: string;
42
+ };
43
+ };
44
+ steps: {
45
+ base: string;
46
+ color: string;
47
+ size: {
48
+ '2xs': string;
49
+ xs: string;
50
+ sm: string;
51
+ md: string;
52
+ lg: string;
53
+ xl: string;
54
+ '2xl': string;
55
+ };
56
+ };
57
+ step: {
58
+ base: string;
59
+ align: string;
60
+ active: string;
61
+ first: string;
62
+ };
63
+ animation: {
64
+ carousel: string;
65
+ 'carousel-inverse': string;
66
+ swing: string;
67
+ elastic: string;
68
+ };
69
+ default: {
70
+ color: string;
71
+ size: string;
72
+ animation: string;
73
+ };
74
+ };
75
+ export default _default;
@@ -0,0 +1,74 @@
1
+ export default {
2
+ wrapper: "w-full flex flex-col gap-2",
3
+ indicator: {
4
+ container: {
5
+ base: "flex flex-row justify-end",
6
+ width: "min-w-fit",
7
+ transition: "transition-all"
8
+ },
9
+ align: "text-end",
10
+ width: "w-fit",
11
+ color: "text-gray-400 dark:text-gray-500",
12
+ size: {
13
+ "2xs": "text-xs",
14
+ xs: "text-xs",
15
+ sm: "text-sm",
16
+ md: "text-sm",
17
+ lg: "text-sm",
18
+ xl: "text-base",
19
+ "2xl": "text-base"
20
+ }
21
+ },
22
+ progress: {
23
+ base: "block appearance-none border-none overflow-hidden",
24
+ width: "w-full [&::-webkit-progress-bar]:w-full",
25
+ size: {
26
+ "2xs": "h-px",
27
+ xs: "h-0.5",
28
+ sm: "h-1",
29
+ md: "h-2",
30
+ lg: "h-3",
31
+ xl: "h-4",
32
+ "2xl": "h-5"
33
+ },
34
+ rounded: "rounded-full [&::-webkit-progress-bar]:rounded-full",
35
+ track: "[&::-webkit-progress-bar]:bg-gray-200 [&::-webkit-progress-bar]:dark:bg-gray-700 [@supports(selector(&::-moz-progress-bar))]:bg-gray-200 [@supports(selector(&::-moz-progress-bar))]:dark:bg-gray-700",
36
+ bar: "[&::-webkit-progress-value]:rounded-full [&::-webkit-progress-value]:transition-all [&::-webkit-progress-value]:ease-in-out [&::-moz-progress-bar]:rounded-full",
37
+ color: "text-{color}-500 dark:text-{color}-400",
38
+ background: "[&::-webkit-progress-value]:bg-current [&::-moz-progress-bar]:bg-current",
39
+ indeterminate: {
40
+ base: "indeterminate:relative",
41
+ rounded: "indeterminate:after:rounded-full [&:indeterminate::-webkit-progress-value]:rounded-full [&:indeterminate::-moz-progress-bar]:rounded-full"
42
+ }
43
+ },
44
+ steps: {
45
+ base: "grid grid-cols-1",
46
+ color: "text-{color}-500 dark:text-{color}-400",
47
+ size: {
48
+ "2xs": "text-xs",
49
+ xs: "text-xs",
50
+ sm: "text-sm",
51
+ md: "text-sm",
52
+ lg: "text-sm",
53
+ xl: "text-base",
54
+ "2xl": "text-base"
55
+ }
56
+ },
57
+ step: {
58
+ base: "transition-all opacity-0 truncate row-start-1 col-start-1",
59
+ align: "text-end",
60
+ active: "opacity-100",
61
+ first: "text-gray-500 dark:text-gray-400"
62
+ },
63
+ animation: {
64
+ carousel: "bar-animation-carousel",
65
+ "carousel-inverse": "bar-animation-carousel-inverse",
66
+ swing: "bar-animation-swing",
67
+ elastic: "bar-animation-elastic"
68
+ },
69
+ default: {
70
+ color: "primary",
71
+ size: "md",
72
+ animation: "carousel"
73
+ }
74
+ };
@@ -0,0 +1,19 @@
1
+ declare const _default: {
2
+ wrapper: string;
3
+ container: string;
4
+ base: string;
5
+ form: string;
6
+ rounded: string;
7
+ color: string;
8
+ background: string;
9
+ border: string;
10
+ ring: string;
11
+ inner: string;
12
+ label: string;
13
+ required: string;
14
+ help: string;
15
+ default: {
16
+ color: string;
17
+ };
18
+ };
19
+ export default _default;
@@ -0,0 +1,18 @@
1
+ export default {
2
+ wrapper: "relative flex items-start",
3
+ container: "flex items-center h-5",
4
+ base: "h-4 w-4 dark:checked:bg-current dark:checked:border-transparent dark:indeterminate:bg-current dark:indeterminate:border-transparent disabled:opacity-50 disabled:cursor-not-allowed focus:ring-0 focus:ring-transparent focus:ring-offset-transparent",
5
+ form: "form-checkbox",
6
+ rounded: "rounded",
7
+ color: "text-{color}-500 dark:text-{color}-400",
8
+ background: "bg-white dark:bg-gray-900",
9
+ border: "border border-gray-300 dark:border-gray-700",
10
+ ring: "focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-gray-900",
11
+ inner: "ms-3 flex flex-col",
12
+ label: "text-sm font-medium text-gray-700 dark:text-gray-200",
13
+ required: "text-sm text-red-500 dark:text-red-400",
14
+ help: "text-sm text-gray-500 dark:text-gray-400",
15
+ default: {
16
+ color: "primary"
17
+ }
18
+ };
@@ -0,0 +1,25 @@
1
+ declare const _default: {
2
+ wrapper: string;
3
+ label: {
4
+ wrapper: string;
5
+ base: string;
6
+ required: string;
7
+ };
8
+ size: {
9
+ '2xs': string;
10
+ xs: string;
11
+ sm: string;
12
+ md: string;
13
+ lg: string;
14
+ xl: string;
15
+ };
16
+ container: string;
17
+ description: string;
18
+ hint: string;
19
+ help: string;
20
+ error: string;
21
+ default: {
22
+ size: string;
23
+ };
24
+ };
25
+ export default _default;
@@ -0,0 +1,25 @@
1
+ export default {
2
+ wrapper: "",
3
+ label: {
4
+ wrapper: "flex content-center items-center justify-between",
5
+ base: "block font-medium text-gray-700 dark:text-gray-200",
6
+ // eslint-disable-next-line quotes
7
+ required: `after:content-['*'] after:ms-0.5 after:text-red-500 dark:after:text-red-400`
8
+ },
9
+ size: {
10
+ "2xs": "text-xs",
11
+ xs: "text-xs",
12
+ sm: "text-sm",
13
+ md: "text-sm",
14
+ lg: "text-sm",
15
+ xl: "text-base"
16
+ },
17
+ container: "mt-1 relative",
18
+ description: "text-gray-500 dark:text-gray-400",
19
+ hint: "text-gray-500 dark:text-gray-400",
20
+ help: "mt-2 text-gray-500 dark:text-gray-400",
21
+ error: "mt-2 text-red-500 dark:text-red-400",
22
+ default: {
23
+ size: "sm"
24
+ }
25
+ };
@@ -0,0 +1,107 @@
1
+ declare const _default: {
2
+ wrapper: string;
3
+ base: string;
4
+ form: string;
5
+ rounded: string;
6
+ placeholder: string;
7
+ size: {
8
+ '2xs': string;
9
+ xs: string;
10
+ sm: string;
11
+ md: string;
12
+ lg: string;
13
+ xl: string;
14
+ };
15
+ gap: {
16
+ '2xs': string;
17
+ xs: string;
18
+ sm: string;
19
+ md: string;
20
+ lg: string;
21
+ xl: string;
22
+ };
23
+ padding: {
24
+ '2xs': string;
25
+ xs: string;
26
+ sm: string;
27
+ md: string;
28
+ lg: string;
29
+ xl: string;
30
+ };
31
+ leading: {
32
+ padding: {
33
+ '2xs': string;
34
+ xs: string;
35
+ sm: string;
36
+ md: string;
37
+ lg: string;
38
+ xl: string;
39
+ };
40
+ };
41
+ trailing: {
42
+ padding: {
43
+ '2xs': string;
44
+ xs: string;
45
+ sm: string;
46
+ md: string;
47
+ lg: string;
48
+ xl: string;
49
+ };
50
+ };
51
+ color: {
52
+ white: {
53
+ outline: string;
54
+ };
55
+ gray: {
56
+ outline: string;
57
+ };
58
+ };
59
+ variant: {
60
+ outline: string;
61
+ none: string;
62
+ };
63
+ icon: {
64
+ base: string;
65
+ color: string;
66
+ loading: string;
67
+ size: {
68
+ '2xs': string;
69
+ xs: string;
70
+ sm: string;
71
+ md: string;
72
+ lg: string;
73
+ xl: string;
74
+ };
75
+ leading: {
76
+ wrapper: string;
77
+ pointer: string;
78
+ padding: {
79
+ '2xs': string;
80
+ xs: string;
81
+ sm: string;
82
+ md: string;
83
+ lg: string;
84
+ xl: string;
85
+ };
86
+ };
87
+ trailing: {
88
+ wrapper: string;
89
+ pointer: string;
90
+ padding: {
91
+ '2xs': string;
92
+ xs: string;
93
+ sm: string;
94
+ md: string;
95
+ lg: string;
96
+ xl: string;
97
+ };
98
+ };
99
+ };
100
+ default: {
101
+ size: string;
102
+ color: string;
103
+ variant: string;
104
+ loadingIcon: string;
105
+ };
106
+ };
107
+ export default _default;
@@ -0,0 +1,106 @@
1
+ export default {
2
+ wrapper: "relative",
3
+ base: "relative block w-full disabled:cursor-not-allowed disabled:opacity-75 focus:outline-none border-0",
4
+ form: "form-input",
5
+ rounded: "rounded-md",
6
+ placeholder: "placeholder-gray-400 dark:placeholder-gray-500",
7
+ size: {
8
+ "2xs": "text-xs",
9
+ xs: "text-xs",
10
+ sm: "text-sm",
11
+ md: "text-sm",
12
+ lg: "text-sm",
13
+ xl: "text-base"
14
+ },
15
+ gap: {
16
+ "2xs": "gap-x-1",
17
+ xs: "gap-x-1.5",
18
+ sm: "gap-x-1.5",
19
+ md: "gap-x-2",
20
+ lg: "gap-x-2.5",
21
+ xl: "gap-x-2.5"
22
+ },
23
+ padding: {
24
+ "2xs": "px-2 py-1",
25
+ xs: "px-2.5 py-1.5",
26
+ sm: "px-2.5 py-1.5",
27
+ md: "px-3 py-2",
28
+ lg: "px-3.5 py-2.5",
29
+ xl: "px-3.5 py-2.5"
30
+ },
31
+ leading: {
32
+ padding: {
33
+ "2xs": "ps-7",
34
+ xs: "ps-8",
35
+ sm: "ps-9",
36
+ md: "ps-10",
37
+ lg: "ps-11",
38
+ xl: "ps-12"
39
+ }
40
+ },
41
+ trailing: {
42
+ padding: {
43
+ "2xs": "pe-7",
44
+ xs: "pe-8",
45
+ sm: "pe-9",
46
+ md: "pe-10",
47
+ lg: "pe-11",
48
+ xl: "pe-12"
49
+ }
50
+ },
51
+ color: {
52
+ white: {
53
+ outline: "shadow-sm bg-white dark:bg-gray-900 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-primary-500 dark:focus:ring-primary-400"
54
+ },
55
+ gray: {
56
+ outline: "shadow-sm bg-gray-50 dark:bg-gray-800 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-primary-500 dark:focus:ring-primary-400"
57
+ }
58
+ },
59
+ variant: {
60
+ outline: "shadow-sm bg-transparent text-gray-900 dark:text-white ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400 focus:ring-2 focus:ring-{color}-500 dark:focus:ring-{color}-400",
61
+ none: "bg-transparent focus:ring-0 focus:shadow-none"
62
+ },
63
+ icon: {
64
+ base: "flex-shrink-0 text-gray-400 dark:text-gray-500",
65
+ color: "text-{color}-500 dark:text-{color}-400",
66
+ loading: "animate-spin",
67
+ size: {
68
+ "2xs": "h-4 w-4",
69
+ xs: "h-4 w-4",
70
+ sm: "h-5 w-5",
71
+ md: "h-5 w-5",
72
+ lg: "h-5 w-5",
73
+ xl: "h-6 w-6"
74
+ },
75
+ leading: {
76
+ wrapper: "absolute inset-y-0 start-0 flex items-center",
77
+ pointer: "pointer-events-none",
78
+ padding: {
79
+ "2xs": "ps-2",
80
+ xs: "ps-2.5",
81
+ sm: "ps-2.5",
82
+ md: "ps-3",
83
+ lg: "ps-3.5",
84
+ xl: "ps-3.5"
85
+ }
86
+ },
87
+ trailing: {
88
+ wrapper: "absolute inset-y-0 end-0 flex items-center",
89
+ pointer: "pointer-events-none",
90
+ padding: {
91
+ "2xs": "pe-2",
92
+ xs: "pe-2.5",
93
+ sm: "pe-2.5",
94
+ md: "pe-3",
95
+ lg: "pe-3.5",
96
+ xl: "pe-3.5"
97
+ }
98
+ }
99
+ },
100
+ default: {
101
+ size: "sm",
102
+ color: "white",
103
+ variant: "outline",
104
+ loadingIcon: "i-heroicons-arrow-path-20-solid"
105
+ }
106
+ };
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ wrapper: string;
3
+ container: string;
4
+ base: string;
5
+ form: string;
6
+ color: string;
7
+ background: string;
8
+ border: string;
9
+ ring: string;
10
+ inner: string;
11
+ label: string;
12
+ required: string;
13
+ help: string;
14
+ default: {
15
+ color: string;
16
+ };
17
+ };
18
+ export default _default;
@@ -0,0 +1,17 @@
1
+ export default {
2
+ wrapper: "relative flex items-start",
3
+ container: "flex items-center h-5",
4
+ base: "h-4 w-4 dark:checked:bg-current dark:checked:border-transparent disabled:opacity-50 disabled:cursor-not-allowed focus:ring-0 focus:ring-transparent focus:ring-offset-transparent",
5
+ form: "form-radio",
6
+ color: "text-{color}-500 dark:text-{color}-400",
7
+ background: "bg-white dark:bg-gray-900",
8
+ border: "border border-gray-300 dark:border-gray-700",
9
+ ring: "focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-gray-900",
10
+ inner: "ms-3 flex flex-col",
11
+ label: "text-sm font-medium text-gray-700 dark:text-gray-200",
12
+ required: "text-sm text-red-500 dark:text-red-400",
13
+ help: "text-sm text-gray-500 dark:text-gray-400",
14
+ default: {
15
+ color: "primary"
16
+ }
17
+ };
@@ -0,0 +1,8 @@
1
+ declare const _default: {
2
+ wrapper: string;
3
+ legend: string;
4
+ default: {
5
+ color: string;
6
+ };
7
+ };
8
+ export default _default;
@@ -0,0 +1,7 @@
1
+ export default {
2
+ wrapper: "relative flex items-start",
3
+ legend: "text-sm font-medium text-gray-700 dark:text-gray-200 mb-1",
4
+ default: {
5
+ color: "primary"
6
+ }
7
+ };