@nuxt/ui 2.9.0 → 2.11.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 (201) hide show
  1. package/README.md +11 -0
  2. package/dist/module.d.mts +449 -72
  3. package/dist/module.d.ts +449 -72
  4. package/dist/module.json +1 -1
  5. package/dist/module.mjs +32 -6
  6. package/dist/runtime/components/data/Table.vue +8 -6
  7. package/dist/runtime/components/data/Table.vue.d.ts +2 -1
  8. package/dist/runtime/components/elements/Accordion.vue +15 -13
  9. package/dist/runtime/components/elements/Accordion.vue.d.ts +5 -2
  10. package/dist/runtime/components/elements/Alert.vue +7 -6
  11. package/dist/runtime/components/elements/Alert.vue.d.ts +6 -5
  12. package/dist/runtime/components/elements/Avatar.vue.d.ts +5 -4
  13. package/dist/runtime/components/elements/AvatarGroup.d.ts +4 -3
  14. package/dist/runtime/components/elements/Badge.vue +4 -2
  15. package/dist/runtime/components/elements/Badge.vue.d.ts +5 -5
  16. package/dist/runtime/components/elements/Button.vue +8 -6
  17. package/dist/runtime/components/elements/Button.vue.d.ts +7 -7
  18. package/dist/runtime/components/elements/ButtonGroup.d.ts +5 -4
  19. package/dist/runtime/components/elements/ButtonGroup.mjs +19 -32
  20. package/dist/runtime/components/elements/Chip.vue +85 -0
  21. package/dist/runtime/components/elements/Chip.vue.d.ts +90 -0
  22. package/dist/runtime/components/elements/Dropdown.vue +45 -25
  23. package/dist/runtime/components/elements/Dropdown.vue.d.ts +8 -0
  24. package/dist/runtime/components/elements/Icon.vue +16 -2
  25. package/dist/runtime/components/elements/Icon.vue.d.ts +14 -2
  26. package/dist/runtime/components/elements/Kbd.vue.d.ts +5 -4
  27. package/dist/runtime/components/elements/Link.vue +2 -5
  28. package/dist/runtime/components/elements/Meter.vue +166 -0
  29. package/dist/runtime/components/elements/Meter.vue.d.ts +123 -0
  30. package/dist/runtime/components/elements/MeterGroup.d.ts +78 -0
  31. package/dist/runtime/components/elements/MeterGroup.mjs +172 -0
  32. package/dist/runtime/components/elements/Progress.vue +284 -0
  33. package/dist/runtime/components/elements/Progress.vue.d.ts +2 -0
  34. package/dist/runtime/components/forms/Checkbox.vue +2 -4
  35. package/dist/runtime/components/forms/Checkbox.vue.d.ts +6 -6
  36. package/dist/runtime/components/forms/Form.vue +32 -7
  37. package/dist/runtime/components/forms/Form.vue.d.ts +2 -1
  38. package/dist/runtime/components/forms/FormGroup.vue +7 -3
  39. package/dist/runtime/components/forms/FormGroup.vue.d.ts +15 -5
  40. package/dist/runtime/components/forms/Input.vue +41 -6
  41. package/dist/runtime/components/forms/Input.vue.d.ts +42 -10
  42. package/dist/runtime/components/forms/Radio.vue +16 -9
  43. package/dist/runtime/components/forms/Radio.vue.d.ts +8 -7
  44. package/dist/runtime/components/forms/RadioGroup.vue +136 -0
  45. package/dist/runtime/components/forms/RadioGroup.vue.d.ts +118 -0
  46. package/dist/runtime/components/forms/Range.vue.d.ts +8 -7
  47. package/dist/runtime/components/forms/Select.vue +5 -2
  48. package/dist/runtime/components/forms/Select.vue.d.ts +10 -9
  49. package/dist/runtime/components/forms/SelectMenu.vue +80 -58
  50. package/dist/runtime/components/forms/SelectMenu.vue.d.ts +23 -13
  51. package/dist/runtime/components/forms/Textarea.vue +38 -4
  52. package/dist/runtime/components/forms/Textarea.vue.d.ts +41 -9
  53. package/dist/runtime/components/forms/Toggle.vue +19 -1
  54. package/dist/runtime/components/forms/Toggle.vue.d.ts +16 -3
  55. package/dist/runtime/components/layout/Divider.vue +107 -0
  56. package/dist/runtime/components/layout/Divider.vue.d.ts +82 -0
  57. package/dist/runtime/components/navigation/Breadcrumb.vue +78 -0
  58. package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +50 -0
  59. package/dist/runtime/components/navigation/CommandPalette.vue +18 -7
  60. package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +2 -2
  61. package/dist/runtime/components/navigation/Pagination.vue +65 -9
  62. package/dist/runtime/components/navigation/Pagination.vue.d.ts +45 -7
  63. package/dist/runtime/components/navigation/Tabs.vue +1 -1
  64. package/dist/runtime/components/navigation/Tabs.vue.d.ts +1 -1
  65. package/dist/runtime/components/overlays/ContextMenu.vue +7 -2
  66. package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +2 -1
  67. package/dist/runtime/components/overlays/Modal.vue +1 -1
  68. package/dist/runtime/components/overlays/Modal.vue.d.ts +1 -1
  69. package/dist/runtime/components/overlays/Notification.vue +32 -27
  70. package/dist/runtime/components/overlays/Notification.vue.d.ts +4 -3
  71. package/dist/runtime/components/overlays/Notifications.vue +16 -14
  72. package/dist/runtime/components/overlays/Popover.vue +31 -7
  73. package/dist/runtime/components/overlays/Popover.vue.d.ts +27 -2
  74. package/dist/runtime/components/overlays/Slideover.vue.d.ts +1 -1
  75. package/dist/runtime/components/overlays/Tooltip.vue +16 -10
  76. package/dist/runtime/components/overlays/Tooltip.vue.d.ts +1 -0
  77. package/dist/runtime/composables/defineShortcuts.d.ts +1 -1
  78. package/dist/runtime/composables/defineShortcuts.mjs +8 -4
  79. package/dist/runtime/composables/useButtonGroup.d.ts +20 -0
  80. package/dist/runtime/composables/useButtonGroup.mjs +52 -0
  81. package/dist/runtime/composables/useFormGroup.d.ts +6 -4
  82. package/dist/runtime/composables/useFormGroup.mjs +19 -7
  83. package/dist/runtime/composables/usePopper.d.ts +3 -3
  84. package/dist/runtime/composables/usePopper.mjs +7 -1
  85. package/dist/runtime/composables/useShortcuts.d.ts +2 -2
  86. package/dist/runtime/composables/useUI.d.ts +2 -2
  87. package/dist/runtime/composables/useUI.mjs +2 -2
  88. package/dist/runtime/types/alert.d.ts +7 -0
  89. package/dist/runtime/types/avatar.d.ts +3 -1
  90. package/dist/runtime/types/badge.d.ts +5 -4
  91. package/dist/runtime/types/breadcrumb.d.ts +7 -0
  92. package/dist/runtime/types/button.d.ts +5 -4
  93. package/dist/runtime/types/chip.d.ts +11 -0
  94. package/dist/runtime/types/command-palette.d.ts +1 -0
  95. package/dist/runtime/types/dropdown.d.ts +2 -2
  96. package/dist/runtime/types/form-group.d.ts +5 -0
  97. package/dist/runtime/types/form.d.ts +14 -6
  98. package/dist/runtime/types/index.d.ts +12 -0
  99. package/dist/runtime/types/input.d.ts +8 -0
  100. package/dist/runtime/types/kbd.d.ts +5 -0
  101. package/dist/runtime/types/meter.d.ts +5 -0
  102. package/dist/runtime/types/popper.d.ts +1 -0
  103. package/dist/runtime/types/progress.d.ts +4 -0
  104. package/dist/runtime/types/range.d.ts +5 -0
  105. package/dist/runtime/types/select.d.ts +8 -0
  106. package/dist/runtime/types/textarea.d.ts +8 -0
  107. package/dist/runtime/types/toggle.d.ts +5 -0
  108. package/dist/runtime/types/utils.d.ts +22 -5
  109. package/dist/runtime/ui.config/_popperArrow.d.ts +9 -0
  110. package/dist/runtime/ui.config/_popperArrow.mjs +8 -0
  111. package/dist/runtime/ui.config/data/table.d.ts +60 -0
  112. package/dist/runtime/ui.config/data/table.mjs +59 -0
  113. package/dist/runtime/ui.config/elements/accordion.d.ts +21 -0
  114. package/dist/runtime/ui.config/elements/accordion.mjs +20 -0
  115. package/dist/runtime/ui.config/elements/alert.d.ts +40 -0
  116. package/dist/runtime/ui.config/elements/alert.mjs +39 -0
  117. package/dist/runtime/ui.config/elements/avatar.d.ts +60 -0
  118. package/dist/runtime/ui.config/elements/avatar.mjs +59 -0
  119. package/dist/runtime/ui.config/elements/avatarGroup.d.ts +6 -0
  120. package/dist/runtime/ui.config/elements/avatarGroup.mjs +5 -0
  121. package/dist/runtime/ui.config/elements/badge.d.ts +34 -0
  122. package/dist/runtime/ui.config/elements/badge.mjs +33 -0
  123. package/dist/runtime/ui.config/elements/button.d.ts +77 -0
  124. package/dist/runtime/ui.config/elements/button.mjs +76 -0
  125. package/dist/runtime/ui.config/elements/buttonGroup.d.ts +9 -0
  126. package/dist/runtime/ui.config/elements/buttonGroup.mjs +8 -0
  127. package/dist/runtime/ui.config/elements/chip.d.ts +35 -0
  128. package/dist/runtime/ui.config/elements/chip.mjs +34 -0
  129. package/dist/runtime/ui.config/elements/dropdown.d.ts +53 -0
  130. package/dist/runtime/ui.config/elements/dropdown.mjs +51 -0
  131. package/dist/runtime/ui.config/elements/kbd.d.ts +17 -0
  132. package/dist/runtime/ui.config/elements/kbd.mjs +16 -0
  133. package/dist/runtime/ui.config/elements/meter.d.ts +77 -0
  134. package/dist/runtime/ui.config/elements/meter.mjs +76 -0
  135. package/dist/runtime/ui.config/elements/meterGroup.d.ts +12 -0
  136. package/dist/runtime/ui.config/elements/meterGroup.mjs +11 -0
  137. package/dist/runtime/ui.config/elements/progress.d.ts +75 -0
  138. package/dist/runtime/ui.config/elements/progress.mjs +74 -0
  139. package/dist/runtime/ui.config/forms/checkbox.d.ts +16 -0
  140. package/dist/runtime/ui.config/forms/checkbox.mjs +15 -0
  141. package/dist/runtime/ui.config/forms/formGroup.d.ts +25 -0
  142. package/dist/runtime/ui.config/forms/formGroup.mjs +25 -0
  143. package/dist/runtime/ui.config/forms/input.d.ts +105 -0
  144. package/dist/runtime/ui.config/forms/input.mjs +104 -0
  145. package/dist/runtime/ui.config/forms/radio.d.ts +15 -0
  146. package/dist/runtime/ui.config/forms/radio.mjs +14 -0
  147. package/dist/runtime/ui.config/forms/radioGroup.d.ts +8 -0
  148. package/dist/runtime/ui.config/forms/radioGroup.mjs +7 -0
  149. package/dist/runtime/ui.config/forms/range.d.ts +64 -0
  150. package/dist/runtime/ui.config/forms/range.mjs +63 -0
  151. package/dist/runtime/ui.config/forms/select.d.ts +106 -0
  152. package/dist/runtime/ui.config/forms/select.mjs +12 -0
  153. package/dist/runtime/ui.config/forms/selectMenu.d.ts +63 -0
  154. package/dist/runtime/ui.config/forms/selectMenu.mjs +61 -0
  155. package/dist/runtime/ui.config/forms/textarea.d.ts +104 -0
  156. package/dist/runtime/ui.config/forms/textarea.mjs +9 -0
  157. package/dist/runtime/ui.config/forms/toggle.d.ts +61 -0
  158. package/dist/runtime/ui.config/forms/toggle.mjs +60 -0
  159. package/dist/runtime/ui.config/index.d.ts +40 -0
  160. package/dist/runtime/ui.config/index.mjs +40 -0
  161. package/dist/runtime/ui.config/layout/card.d.ts +24 -0
  162. package/dist/runtime/ui.config/layout/card.mjs +23 -0
  163. package/dist/runtime/ui.config/layout/container.d.ts +6 -0
  164. package/dist/runtime/ui.config/layout/container.mjs +5 -0
  165. package/dist/runtime/ui.config/layout/divider.d.ts +30 -0
  166. package/dist/runtime/ui.config/layout/divider.mjs +29 -0
  167. package/dist/runtime/ui.config/layout/skeleton.d.ts +6 -0
  168. package/dist/runtime/ui.config/layout/skeleton.mjs +5 -0
  169. package/dist/runtime/ui.config/navigation/breadcrumb.d.ts +20 -0
  170. package/dist/runtime/ui.config/navigation/breadcrumb.mjs +19 -0
  171. package/dist/runtime/ui.config/navigation/commandPalette.d.ts +68 -0
  172. package/dist/runtime/ui.config/navigation/commandPalette.mjs +67 -0
  173. package/dist/runtime/ui.config/navigation/pagination.d.ts +35 -0
  174. package/dist/runtime/ui.config/navigation/pagination.mjs +34 -0
  175. package/dist/runtime/ui.config/navigation/tabs.d.ts +34 -0
  176. package/dist/runtime/ui.config/navigation/tabs.mjs +33 -0
  177. package/dist/runtime/ui.config/navigation/verticalNavigation.d.ts +28 -0
  178. package/dist/runtime/ui.config/navigation/verticalNavigation.mjs +27 -0
  179. package/dist/runtime/ui.config/overlays/contextMenu.d.ts +31 -0
  180. package/dist/runtime/ui.config/overlays/contextMenu.mjs +25 -0
  181. package/dist/runtime/ui.config/overlays/modal.d.ts +35 -0
  182. package/dist/runtime/ui.config/overlays/modal.mjs +36 -0
  183. package/dist/runtime/ui.config/overlays/notification.d.ts +49 -0
  184. package/dist/runtime/ui.config/overlays/notification.mjs +49 -0
  185. package/dist/runtime/ui.config/overlays/notifications.d.ts +7 -0
  186. package/dist/runtime/ui.config/overlays/notifications.mjs +6 -0
  187. package/dist/runtime/ui.config/overlays/popover.d.ts +42 -0
  188. package/dist/runtime/ui.config/overlays/popover.mjs +36 -0
  189. package/dist/runtime/ui.config/overlays/slideover.d.ts +27 -0
  190. package/dist/runtime/ui.config/overlays/slideover.mjs +28 -0
  191. package/dist/runtime/ui.config/overlays/tooltip.d.ts +32 -0
  192. package/dist/runtime/ui.config/overlays/tooltip.mjs +26 -0
  193. package/dist/runtime/utils/index.d.ts +5 -0
  194. package/dist/runtime/utils/index.mjs +6 -2
  195. package/dist/types.d.mts +3 -2
  196. package/dist/types.d.ts +3 -2
  197. package/package.json +41 -28
  198. package/dist/runtime/ui.config.d.ts +0 -1207
  199. package/dist/runtime/ui.config.mjs +0 -1029
  200. package/dist/runtime/utils/StateEmitter.d.ts +0 -17
  201. package/dist/runtime/utils/StateEmitter.mjs +0 -21
@@ -0,0 +1,63 @@
1
+ declare const _default: {
2
+ container: string;
3
+ width: string;
4
+ height: string;
5
+ base: string;
6
+ background: string;
7
+ shadow: string;
8
+ rounded: string;
9
+ padding: string;
10
+ ring: string;
11
+ input: string;
12
+ option: {
13
+ base: string;
14
+ rounded: string;
15
+ padding: string;
16
+ size: string;
17
+ color: string;
18
+ container: string;
19
+ active: string;
20
+ inactive: string;
21
+ selected: string;
22
+ disabled: string;
23
+ empty: string;
24
+ icon: {
25
+ base: string;
26
+ active: string;
27
+ inactive: string;
28
+ };
29
+ selectedIcon: {
30
+ wrapper: string;
31
+ padding: string;
32
+ base: string;
33
+ };
34
+ avatar: {
35
+ base: string;
36
+ size: string;
37
+ };
38
+ chip: {
39
+ base: string;
40
+ };
41
+ };
42
+ transition: {
43
+ leaveActiveClass: string;
44
+ leaveFromClass: string;
45
+ leaveToClass: string;
46
+ };
47
+ popper: {
48
+ placement: string;
49
+ };
50
+ default: {
51
+ selectedIcon: string;
52
+ clearOnClose: boolean;
53
+ };
54
+ arrow: {
55
+ ring: string;
56
+ background: string;
57
+ base: string;
58
+ rounded: string;
59
+ shadow: string;
60
+ placement: string;
61
+ };
62
+ };
63
+ export default _default;
@@ -0,0 +1,61 @@
1
+ import _popperArrow from "../_popperArrow.mjs";
2
+ export default {
3
+ container: "z-20 group",
4
+ width: "w-full",
5
+ height: "max-h-60",
6
+ base: "relative focus:outline-none overflow-y-auto scroll-py-1",
7
+ background: "bg-white dark:bg-gray-800",
8
+ shadow: "shadow-lg",
9
+ rounded: "rounded-md",
10
+ padding: "p-1",
11
+ ring: "ring-1 ring-gray-200 dark:ring-gray-700",
12
+ input: "block w-[calc(100%+0.5rem)] focus:ring-transparent text-sm px-3 py-1.5 text-gray-700 dark:text-gray-200 bg-white dark:bg-gray-800 border-0 border-b border-gray-200 dark:border-gray-700 focus:border-inherit sticky -top-1 -mt-1 mb-1 -mx-1 z-10 placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none",
13
+ option: {
14
+ base: "cursor-default select-none relative flex items-center justify-between gap-1",
15
+ rounded: "rounded-md",
16
+ padding: "px-2 py-1.5",
17
+ size: "text-sm",
18
+ color: "text-gray-900 dark:text-white",
19
+ container: "flex items-center gap-2 min-w-0",
20
+ active: "bg-gray-100 dark:bg-gray-900",
21
+ inactive: "",
22
+ selected: "pe-7",
23
+ disabled: "cursor-not-allowed opacity-50",
24
+ empty: "text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",
25
+ icon: {
26
+ base: "flex-shrink-0 h-4 w-4",
27
+ active: "text-gray-900 dark:text-white",
28
+ inactive: "text-gray-400 dark:text-gray-500"
29
+ },
30
+ selectedIcon: {
31
+ wrapper: "absolute inset-y-0 end-0 flex items-center",
32
+ padding: "pe-2",
33
+ base: "h-4 w-4 text-gray-900 dark:text-white flex-shrink-0"
34
+ },
35
+ avatar: {
36
+ base: "flex-shrink-0",
37
+ size: "3xs"
38
+ },
39
+ chip: {
40
+ base: "flex-shrink-0 w-2 h-2 mx-1 rounded-full"
41
+ }
42
+ },
43
+ // Syntax for `<Transition>` component https://vuejs.org/guide/built-ins/transition.html#css-based-transitions
44
+ transition: {
45
+ leaveActiveClass: "transition ease-in duration-100",
46
+ leaveFromClass: "opacity-100",
47
+ leaveToClass: "opacity-0"
48
+ },
49
+ popper: {
50
+ placement: "bottom-end"
51
+ },
52
+ default: {
53
+ selectedIcon: "i-heroicons-check-20-solid",
54
+ clearOnClose: false
55
+ },
56
+ arrow: {
57
+ ..._popperArrow,
58
+ ring: "before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",
59
+ background: "before:bg-white dark:before:bg-gray-700"
60
+ }
61
+ };
@@ -0,0 +1,104 @@
1
+ declare const _default: {
2
+ default: {
3
+ size: string;
4
+ color: string;
5
+ variant: string;
6
+ };
7
+ wrapper: string;
8
+ base: string;
9
+ rounded: string;
10
+ placeholder: string;
11
+ size: {
12
+ '2xs': string;
13
+ xs: string;
14
+ sm: string;
15
+ md: string;
16
+ lg: string;
17
+ xl: string;
18
+ };
19
+ gap: {
20
+ '2xs': string;
21
+ xs: string;
22
+ sm: string;
23
+ md: string;
24
+ lg: string;
25
+ xl: string;
26
+ };
27
+ padding: {
28
+ '2xs': string;
29
+ xs: string;
30
+ sm: string;
31
+ md: string;
32
+ lg: string;
33
+ xl: string;
34
+ };
35
+ leading: {
36
+ padding: {
37
+ '2xs': string;
38
+ xs: string;
39
+ sm: string;
40
+ md: string;
41
+ lg: string;
42
+ xl: string;
43
+ };
44
+ };
45
+ trailing: {
46
+ padding: {
47
+ '2xs': string;
48
+ xs: string;
49
+ sm: string;
50
+ md: string;
51
+ lg: string;
52
+ xl: string;
53
+ };
54
+ };
55
+ color: {
56
+ white: {
57
+ outline: string;
58
+ };
59
+ gray: {
60
+ outline: string;
61
+ };
62
+ };
63
+ variant: {
64
+ outline: string;
65
+ none: string;
66
+ };
67
+ icon: {
68
+ base: string;
69
+ color: string;
70
+ size: {
71
+ '2xs': string;
72
+ xs: string;
73
+ sm: string;
74
+ md: string;
75
+ lg: string;
76
+ xl: string;
77
+ };
78
+ leading: {
79
+ wrapper: string;
80
+ pointer: string;
81
+ padding: {
82
+ '2xs': string;
83
+ xs: string;
84
+ sm: string;
85
+ md: string;
86
+ lg: string;
87
+ xl: string;
88
+ };
89
+ };
90
+ trailing: {
91
+ wrapper: string;
92
+ pointer: string;
93
+ padding: {
94
+ '2xs': string;
95
+ xs: string;
96
+ sm: string;
97
+ md: string;
98
+ lg: string;
99
+ xl: string;
100
+ };
101
+ };
102
+ };
103
+ };
104
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import input from "./input.mjs";
2
+ export default {
3
+ ...input,
4
+ default: {
5
+ size: "sm",
6
+ color: "white",
7
+ variant: "outline"
8
+ }
9
+ };
@@ -0,0 +1,61 @@
1
+ declare const _default: {
2
+ base: string;
3
+ rounded: string;
4
+ ring: string;
5
+ active: string;
6
+ inactive: string;
7
+ size: {
8
+ '2xs': string;
9
+ xs: string;
10
+ sm: string;
11
+ md: string;
12
+ lg: string;
13
+ xl: string;
14
+ '2xl': string;
15
+ };
16
+ container: {
17
+ base: string;
18
+ active: {
19
+ '2xs': string;
20
+ xs: string;
21
+ sm: string;
22
+ md: string;
23
+ lg: string;
24
+ xl: string;
25
+ '2xl': string;
26
+ };
27
+ inactive: string;
28
+ size: {
29
+ '2xs': string;
30
+ xs: string;
31
+ sm: string;
32
+ md: string;
33
+ lg: string;
34
+ xl: string;
35
+ '2xl': string;
36
+ };
37
+ };
38
+ icon: {
39
+ base: string;
40
+ active: string;
41
+ inactive: string;
42
+ size: {
43
+ '2xs': string;
44
+ xs: string;
45
+ sm: string;
46
+ md: string;
47
+ lg: string;
48
+ xl: string;
49
+ '2xl': string;
50
+ };
51
+ on: string;
52
+ off: string;
53
+ };
54
+ default: {
55
+ onIcon: null;
56
+ offIcon: null;
57
+ color: string;
58
+ size: string;
59
+ };
60
+ };
61
+ export default _default;
@@ -0,0 +1,60 @@
1
+ export default {
2
+ base: "relative inline-flex flex-shrink-0 border-2 border-transparent disabled:cursor-not-allowed disabled:opacity-50 focus:outline-none",
3
+ rounded: "rounded-full",
4
+ 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",
5
+ active: "bg-{color}-500 dark:bg-{color}-400",
6
+ inactive: "bg-gray-200 dark:bg-gray-700",
7
+ size: {
8
+ "2xs": "h-3 w-5",
9
+ xs: "h-3.5 w-6",
10
+ sm: "h-4 w-7",
11
+ md: "h-5 w-9",
12
+ lg: "h-6 w-11",
13
+ xl: "h-7 w-[3.25rem]",
14
+ "2xl": "h-8 w-[3.75rem]"
15
+ },
16
+ container: {
17
+ base: "pointer-events-none relative inline-block rounded-full bg-white dark:bg-gray-900 shadow transform ring-0 transition ease-in-out duration-200",
18
+ active: {
19
+ "2xs": "translate-x-2 rtl:-translate-x-2",
20
+ xs: "translate-x-2.5 rtl:-translate-x-2.5",
21
+ sm: "translate-x-3 rtl:-translate-x-3",
22
+ md: "translate-x-4 rtl:-translate-x-4",
23
+ lg: "translate-x-5 rtl:-translate-x-5",
24
+ xl: "translate-x-6 rtl:-translate-x-6",
25
+ "2xl": "translate-x-7 rtl:-translate-x-7"
26
+ },
27
+ inactive: "translate-x-0 rtl:-translate-x-0",
28
+ size: {
29
+ "2xs": "h-2 w-2",
30
+ xs: "h-2.5 w-2.5",
31
+ sm: "h-3 w-3",
32
+ md: "h-4 w-4",
33
+ lg: "h-5 w-5",
34
+ xl: "h-6 w-6",
35
+ "2xl": "h-7 w-7"
36
+ }
37
+ },
38
+ icon: {
39
+ base: "absolute inset-0 h-full w-full flex items-center justify-center transition-opacity",
40
+ active: "opacity-100 ease-in duration-200",
41
+ inactive: "opacity-0 ease-out duration-100",
42
+ size: {
43
+ "2xs": "h-2 w-2",
44
+ xs: "h-2 w-2",
45
+ sm: "h-2 w-2",
46
+ md: "h-3 w-3",
47
+ lg: "h-4 w-4",
48
+ xl: "h-5 w-5",
49
+ "2xl": "h-6 w-6"
50
+ },
51
+ on: "text-{color}-500 dark:text-{color}-400",
52
+ off: "text-gray-400 dark:text-gray-500"
53
+ },
54
+ default: {
55
+ onIcon: null,
56
+ offIcon: null,
57
+ color: "primary",
58
+ size: "md"
59
+ }
60
+ };
@@ -0,0 +1,40 @@
1
+ export { default as table } from './data/table';
2
+ export { default as avatar } from './elements/avatar';
3
+ export { default as avatarGroup } from './elements/avatarGroup';
4
+ export { default as badge } from './elements/badge';
5
+ export { default as button } from './elements/button';
6
+ export { default as buttonGroup } from './elements/buttonGroup';
7
+ export { default as chip } from './elements/chip';
8
+ export { default as dropdown } from './elements/dropdown';
9
+ export { default as accordion } from './elements/accordion';
10
+ export { default as alert } from './elements/alert';
11
+ export { default as kbd } from './elements/kbd';
12
+ export { default as progress } from './elements/progress';
13
+ export { default as meter } from './elements/meter';
14
+ export { default as meterGroup } from './elements/meterGroup';
15
+ export { default as input } from './forms/input';
16
+ export { default as formGroup } from './forms/formGroup';
17
+ export { default as textarea } from './forms/textarea';
18
+ export { default as select } from './forms/select';
19
+ export { default as selectMenu } from './forms/selectMenu';
20
+ export { default as radioGroup } from './forms/radioGroup';
21
+ export { default as radio } from './forms/radio';
22
+ export { default as checkbox } from './forms/checkbox';
23
+ export { default as toggle } from './forms/toggle';
24
+ export { default as range } from './forms/range';
25
+ export { default as card } from './layout/card';
26
+ export { default as container } from './layout/container';
27
+ export { default as skeleton } from './layout/skeleton';
28
+ export { default as divider } from './layout/divider';
29
+ export { default as verticalNavigation } from './navigation/verticalNavigation';
30
+ export { default as commandPalette } from './navigation/commandPalette';
31
+ export { default as pagination } from './navigation/pagination';
32
+ export { default as tabs } from './navigation/tabs';
33
+ export { default as breadcrumb } from './navigation/breadcrumb';
34
+ export { default as modal } from './overlays/modal';
35
+ export { default as slideover } from './overlays/slideover';
36
+ export { default as tooltip } from './overlays/tooltip';
37
+ export { default as popover } from './overlays/popover';
38
+ export { default as contextMenu } from './overlays/contextMenu';
39
+ export { default as notification } from './overlays/notification';
40
+ export { default as notifications } from './overlays/notifications';
@@ -0,0 +1,40 @@
1
+ export { default as table } from "./data/table.mjs";
2
+ export { default as avatar } from "./elements/avatar.mjs";
3
+ export { default as avatarGroup } from "./elements/avatarGroup.mjs";
4
+ export { default as badge } from "./elements/badge.mjs";
5
+ export { default as button } from "./elements/button.mjs";
6
+ export { default as buttonGroup } from "./elements/buttonGroup.mjs";
7
+ export { default as chip } from "./elements/chip.mjs";
8
+ export { default as dropdown } from "./elements/dropdown.mjs";
9
+ export { default as accordion } from "./elements/accordion.mjs";
10
+ export { default as alert } from "./elements/alert.mjs";
11
+ export { default as kbd } from "./elements/kbd.mjs";
12
+ export { default as progress } from "./elements/progress.mjs";
13
+ export { default as meter } from "./elements/meter.mjs";
14
+ export { default as meterGroup } from "./elements/meterGroup.mjs";
15
+ export { default as input } from "./forms/input.mjs";
16
+ export { default as formGroup } from "./forms/formGroup.mjs";
17
+ export { default as textarea } from "./forms/textarea.mjs";
18
+ export { default as select } from "./forms/select.mjs";
19
+ export { default as selectMenu } from "./forms/selectMenu.mjs";
20
+ export { default as radioGroup } from "./forms/radioGroup.mjs";
21
+ export { default as radio } from "./forms/radio.mjs";
22
+ export { default as checkbox } from "./forms/checkbox.mjs";
23
+ export { default as toggle } from "./forms/toggle.mjs";
24
+ export { default as range } from "./forms/range.mjs";
25
+ export { default as card } from "./layout/card.mjs";
26
+ export { default as container } from "./layout/container.mjs";
27
+ export { default as skeleton } from "./layout/skeleton.mjs";
28
+ export { default as divider } from "./layout/divider.mjs";
29
+ export { default as verticalNavigation } from "./navigation/verticalNavigation.mjs";
30
+ export { default as commandPalette } from "./navigation/commandPalette.mjs";
31
+ export { default as pagination } from "./navigation/pagination.mjs";
32
+ export { default as tabs } from "./navigation/tabs.mjs";
33
+ export { default as breadcrumb } from "./navigation/breadcrumb.mjs";
34
+ export { default as modal } from "./overlays/modal.mjs";
35
+ export { default as slideover } from "./overlays/slideover.mjs";
36
+ export { default as tooltip } from "./overlays/tooltip.mjs";
37
+ export { default as popover } from "./overlays/popover.mjs";
38
+ export { default as contextMenu } from "./overlays/contextMenu.mjs";
39
+ export { default as notification } from "./overlays/notification.mjs";
40
+ export { default as notifications } from "./overlays/notifications.mjs";
@@ -0,0 +1,24 @@
1
+ declare const _default: {
2
+ base: string;
3
+ background: string;
4
+ divide: string;
5
+ ring: string;
6
+ rounded: string;
7
+ shadow: string;
8
+ body: {
9
+ base: string;
10
+ background: string;
11
+ padding: string;
12
+ };
13
+ header: {
14
+ base: string;
15
+ background: string;
16
+ padding: string;
17
+ };
18
+ footer: {
19
+ base: string;
20
+ background: string;
21
+ padding: string;
22
+ };
23
+ };
24
+ export default _default;
@@ -0,0 +1,23 @@
1
+ export default {
2
+ base: "overflow-hidden",
3
+ background: "bg-white dark:bg-gray-900",
4
+ divide: "divide-y divide-gray-200 dark:divide-gray-800",
5
+ ring: "ring-1 ring-gray-200 dark:ring-gray-800",
6
+ rounded: "rounded-lg",
7
+ shadow: "shadow",
8
+ body: {
9
+ base: "",
10
+ background: "",
11
+ padding: "px-4 py-5 sm:p-6"
12
+ },
13
+ header: {
14
+ base: "",
15
+ background: "",
16
+ padding: "px-4 py-5 sm:px-6"
17
+ },
18
+ footer: {
19
+ base: "",
20
+ background: "",
21
+ padding: "px-4 py-4 sm:px-6"
22
+ }
23
+ };
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ base: string;
3
+ padding: string;
4
+ constrained: string;
5
+ };
6
+ export default _default;
@@ -0,0 +1,5 @@
1
+ export default {
2
+ base: "mx-auto",
3
+ padding: "px-4 sm:px-6 lg:px-8",
4
+ constrained: "max-w-7xl"
5
+ };
@@ -0,0 +1,30 @@
1
+ declare const _default: {
2
+ wrapper: {
3
+ base: string;
4
+ horizontal: string;
5
+ vertical: string;
6
+ };
7
+ container: {
8
+ base: string;
9
+ horizontal: string;
10
+ vertical: string;
11
+ };
12
+ border: {
13
+ base: string;
14
+ horizontal: string;
15
+ vertical: string;
16
+ size: {
17
+ horizontal: string;
18
+ vertical: string;
19
+ };
20
+ };
21
+ icon: {
22
+ base: string;
23
+ };
24
+ avatar: {
25
+ base: string;
26
+ size: string;
27
+ };
28
+ label: string;
29
+ };
30
+ export default _default;
@@ -0,0 +1,29 @@
1
+ export default {
2
+ wrapper: {
3
+ base: "flex items-center align-center text-center w-full",
4
+ horizontal: "flex-row",
5
+ vertical: "flex-col"
6
+ },
7
+ container: {
8
+ base: "font-medium text-gray-700 dark:text-gray-200 flex",
9
+ horizontal: "mx-3 whitespace-nowrap",
10
+ vertical: "my-2"
11
+ },
12
+ border: {
13
+ base: "flex border-gray-200 dark:border-gray-800",
14
+ horizontal: "w-full",
15
+ vertical: "h-full",
16
+ size: {
17
+ horizontal: "border-t",
18
+ vertical: "border-s"
19
+ }
20
+ },
21
+ icon: {
22
+ base: "flex-shrink-0 w-5 h-5"
23
+ },
24
+ avatar: {
25
+ base: "flex-shrink-0",
26
+ size: "2xs"
27
+ },
28
+ label: "text-sm"
29
+ };
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ base: string;
3
+ background: string;
4
+ rounded: string;
5
+ };
6
+ export default _default;
@@ -0,0 +1,5 @@
1
+ export default {
2
+ base: "animate-pulse",
3
+ background: "bg-gray-100 dark:bg-gray-800",
4
+ rounded: "rounded-md"
5
+ };
@@ -0,0 +1,20 @@
1
+ declare const _default: {
2
+ wrapper: string;
3
+ ol: string;
4
+ li: string;
5
+ base: string;
6
+ icon: {
7
+ base: string;
8
+ active: string;
9
+ inactive: string;
10
+ };
11
+ divider: {
12
+ base: string;
13
+ };
14
+ active: string;
15
+ inactive: string;
16
+ default: {
17
+ divider: string;
18
+ };
19
+ };
20
+ export default _default;
@@ -0,0 +1,19 @@
1
+ export default {
2
+ wrapper: "relative",
3
+ ol: "flex items-center gap-x-1.5",
4
+ li: "flex items-center gap-x-1.5 text-gray-500 dark:text-gray-400 text-sm",
5
+ base: "flex items-center gap-x-1.5 group font-semibold",
6
+ icon: {
7
+ base: "flex-shrink-0 w-4 h-4",
8
+ active: "",
9
+ inactive: ""
10
+ },
11
+ divider: {
12
+ base: "flex-shrink-0 w-5 h-5"
13
+ },
14
+ active: "text-primary-500 dark:text-primary-400",
15
+ inactive: " hover:text-gray-700 dark:hover:text-gray-200",
16
+ default: {
17
+ divider: "i-heroicons-chevron-right-20-solid"
18
+ }
19
+ };