@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
@@ -1,10 +1,16 @@
1
- export interface FormError {
2
- path: string
1
+ import type { Ref } from 'vue'
2
+
3
+ export interface FormError<T extends string = string> {
4
+ path: T
3
5
  message: string
4
6
  }
5
7
 
8
+ export interface FormErrorWithId extends FormError {
9
+ id: string
10
+ }
11
+
6
12
  export interface Form<T> {
7
- validate(path?: string, opts: { silent?: boolean }): Promise<T>
13
+ validate(path?: string, opts?: { silent?: boolean }): Promise<T>
8
14
  clear(path?: string): void
9
15
  errors: Ref<FormError[]>
10
16
  setErrors(errs: FormError[], path?: string): void
@@ -12,17 +18,19 @@ export interface Form<T> {
12
18
  }
13
19
 
14
20
  export type FormSubmitEvent<T> = SubmitEvent & { data: T }
21
+ export type FormErrorEvent = SubmitEvent & { errors: FormErrorWithId[] }
15
22
 
16
23
  export type FormEventType = 'blur' | 'input' | 'change' | 'submit'
17
24
 
18
25
  export interface FormEvent {
19
26
  type: FormEventType
20
- path: string
27
+ path?: string
21
28
  }
22
29
 
23
30
  export interface InjectedFormGroupValue {
24
- inputId: Ref<string>
31
+ inputId: Ref<string | undefined>
25
32
  name: Ref<string>
26
- size: Ref<string>
33
+ size: Ref<string | number | symbol>
27
34
  error: Ref<string | boolean>
35
+ eagerValidation: Ref<boolean>
28
36
  }
@@ -1,14 +1,26 @@
1
1
  export * from './accordion'
2
+ export * from './alert'
2
3
  export * from './avatar'
3
4
  export * from './badge'
5
+ export * from './breadcrumb'
4
6
  export * from './button'
7
+ export * from './chip'
5
8
  export * from './clipboard'
6
9
  export * from './command-palette'
7
10
  export * from './dropdown'
11
+ export * from './form-group'
8
12
  export * from './form'
13
+ export * from './input'
14
+ export * from './kbd'
9
15
  export * from './link'
16
+ export * from './meter'
10
17
  export * from './notification'
11
18
  export * from './popper'
19
+ export * from './progress'
20
+ export * from './range'
21
+ export * from './select'
12
22
  export * from './tabs'
23
+ export * from './textarea'
24
+ export * from './toggle'
13
25
  export * from './vertical-navigation'
14
26
  export * from './utils'
@@ -0,0 +1,8 @@
1
+ import { input } from '../ui.config'
2
+ import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.'
3
+ import colors from '#ui-colors'
4
+ import type { AppConfig } from 'nuxt/schema'
5
+
6
+ export type InputSize = keyof typeof input.size | ExtractDeepKey<AppConfig, ['ui', 'input', 'size']>
7
+ export type InputColor = keyof typeof input.color | ExtractDeepKey<AppConfig, ['ui', 'input', 'color']> | typeof colors[number]
8
+ export type InputVariant = keyof typeof input.variant | ExtractDeepKey<AppConfig, ['ui', 'input', 'variant']> | NestedKeyOf<typeof input.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'input', 'color']>>
@@ -0,0 +1,5 @@
1
+ import { kbd } from '../ui.config'
2
+ import type { ExtractDeepKey } from '.'
3
+ import type { AppConfig } from 'nuxt/schema'
4
+
5
+ export type KbdSize = keyof typeof kbd.size | ExtractDeepKey<AppConfig, ['ui', 'kbd', 'size']>
@@ -0,0 +1,5 @@
1
+ import { meter } from '../ui.config'
2
+ import colors from '#ui-colors'
3
+
4
+ export type MeterSize = keyof typeof meter.meter.size
5
+ export type MeterColor = keyof typeof meter.color | typeof colors[number]
@@ -11,4 +11,5 @@ export interface PopperOptions {
11
11
  adaptive?: boolean
12
12
  scroll?: boolean
13
13
  resize?: boolean
14
+ arrow?: boolean
14
15
  }
@@ -0,0 +1,4 @@
1
+ import { progress } from '../ui.config'
2
+
3
+ export type ProgressSize = keyof typeof progress.progress.size
4
+ export type ProgressAnimation = keyof typeof progress.animation
@@ -0,0 +1,5 @@
1
+ import { range } from '../ui.config'
2
+ import type { ExtractDeepKey } from '.'
3
+ import type { AppConfig } from 'nuxt/schema'
4
+
5
+ export type RangeSize = keyof typeof range.size | ExtractDeepKey<AppConfig, ['ui', 'range', 'size']>
@@ -0,0 +1,8 @@
1
+ import { select } from '../ui.config'
2
+ import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.'
3
+ import colors from '#ui-colors'
4
+ import type { AppConfig } from 'nuxt/schema'
5
+
6
+ export type SelectSize = keyof typeof select.size | ExtractDeepKey<AppConfig, ['ui', 'select', 'size']>
7
+ export type SelectColor = keyof typeof select.color | ExtractDeepKey<AppConfig, ['ui', 'select', 'color']> | typeof colors[number]
8
+ export type SelectVariant = keyof typeof select.variant | ExtractDeepKey<AppConfig, ['ui', 'select', 'variant']> | NestedKeyOf<typeof select.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'select', 'color']>>
@@ -0,0 +1,8 @@
1
+ import { textarea } from '../ui.config'
2
+ import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.'
3
+ import colors from '#ui-colors'
4
+ import type { AppConfig } from 'nuxt/schema'
5
+
6
+ export type TextareaSize = keyof typeof textarea.size | ExtractDeepKey<AppConfig, ['ui', 'textarea', 'size']>
7
+ export type TextareaColor = keyof typeof textarea.color | ExtractDeepKey<AppConfig, ['ui', 'textarea', 'color']> | typeof colors[number]
8
+ export type TextareaVariant = keyof typeof textarea.variant | ExtractDeepKey<AppConfig, ['ui', 'textarea', 'variant']> | NestedKeyOf<typeof textarea.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'textarea', 'color']>>
@@ -0,0 +1,5 @@
1
+ import { toggle } from '../ui.config'
2
+ import type { ExtractDeepKey } from '.'
3
+ import type { AppConfig } from 'nuxt/schema'
4
+
5
+ export type ToggleSize = keyof typeof toggle.size | ExtractDeepKey<AppConfig, ['ui', 'toggle', 'size']>
@@ -1,11 +1,28 @@
1
- export type Strategy = 'merge' | 'override';
1
+ export type Strategy = 'merge' | 'override'
2
2
 
3
3
  export type NestedKeyOf<ObjectType extends object> = {
4
4
  [Key in keyof ObjectType]: ObjectType[Key] extends object
5
5
  ? NestedKeyOf<ObjectType[Key]>
6
- : Key;
7
- }[keyof ObjectType];
6
+ : Key
7
+ }[keyof ObjectType]
8
8
 
9
9
  export type DeepPartial<T> = Partial<{
10
- [P in keyof T]: DeepPartial<T[P]> | { [key: string]: string };
11
- }>;
10
+ [P in keyof T]: DeepPartial<T[P]> | { [key: string]: string | object }
11
+ }>
12
+
13
+ type DeepKey<T, Keys extends string[]> =
14
+ Keys extends [infer First, ...infer Rest]
15
+ ? First extends keyof T
16
+ ? Rest extends string[]
17
+ ? DeepKey<T[First], Rest>
18
+ : never
19
+ : never
20
+ : T
21
+
22
+ export type ExtractDeepKey<T, Path extends string[]> = DeepKey<T, Path> extends infer Result
23
+ ? Result extends object ? keyof Result : never
24
+ : never
25
+
26
+ export type ExtractDeepObject<T, Path extends string[]> = DeepKey<T, Path> extends infer Result
27
+ ? Result extends object ? Result : never
28
+ : never
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ base: string;
3
+ ring: string;
4
+ rounded: string;
5
+ background: string;
6
+ shadow: string;
7
+ placement: string;
8
+ };
9
+ export default _default;
@@ -0,0 +1,8 @@
1
+ export default {
2
+ base: "before:w-2 before:h-2",
3
+ ring: "before:ring-1 before:ring-gray-200 dark:before:ring-gray-800",
4
+ rounded: "before:rounded-sm",
5
+ background: "before:bg-gray-200 dark:before:bg-gray-800",
6
+ shadow: "before:shadow",
7
+ placement: 'group-data-[popper-placement*="right"]:-left-1 group-data-[popper-placement*="left"]:-right-1 group-data-[popper-placement*="top"]:-bottom-1 group-data-[popper-placement*="bottom"]:-top-1'
8
+ };
@@ -0,0 +1,60 @@
1
+ declare const _default: {
2
+ wrapper: string;
3
+ base: string;
4
+ divide: string;
5
+ thead: string;
6
+ tbody: string;
7
+ tr: {
8
+ base: string;
9
+ selected: string;
10
+ active: string;
11
+ };
12
+ th: {
13
+ base: string;
14
+ padding: string;
15
+ color: string;
16
+ font: string;
17
+ size: string;
18
+ };
19
+ td: {
20
+ base: string;
21
+ padding: string;
22
+ color: string;
23
+ font: string;
24
+ size: string;
25
+ };
26
+ checkbox: {
27
+ padding: string;
28
+ };
29
+ loadingState: {
30
+ wrapper: string;
31
+ label: string;
32
+ icon: string;
33
+ };
34
+ emptyState: {
35
+ wrapper: string;
36
+ label: string;
37
+ icon: string;
38
+ };
39
+ default: {
40
+ sortAscIcon: string;
41
+ sortDescIcon: string;
42
+ sortButton: {
43
+ icon: string;
44
+ trailing: boolean;
45
+ square: boolean;
46
+ color: string;
47
+ variant: string;
48
+ class: string;
49
+ };
50
+ loadingState: {
51
+ icon: string;
52
+ label: string;
53
+ };
54
+ emptyState: {
55
+ icon: string;
56
+ label: string;
57
+ };
58
+ };
59
+ };
60
+ export default _default;
@@ -0,0 +1,59 @@
1
+ export default {
2
+ wrapper: "relative overflow-x-auto",
3
+ base: "min-w-full table-fixed",
4
+ divide: "divide-y divide-gray-300 dark:divide-gray-700",
5
+ thead: "",
6
+ tbody: "divide-y divide-gray-200 dark:divide-gray-800",
7
+ tr: {
8
+ base: "",
9
+ selected: "bg-gray-50 dark:bg-gray-800/50",
10
+ active: "hover:bg-gray-50 dark:hover:bg-gray-800/50 cursor-pointer"
11
+ },
12
+ th: {
13
+ base: "text-left rtl:text-right",
14
+ padding: "px-3 py-3.5",
15
+ color: "text-gray-900 dark:text-white",
16
+ font: "font-semibold",
17
+ size: "text-sm"
18
+ },
19
+ td: {
20
+ base: "whitespace-nowrap",
21
+ padding: "px-3 py-4",
22
+ color: "text-gray-500 dark:text-gray-400",
23
+ font: "",
24
+ size: "text-sm"
25
+ },
26
+ checkbox: {
27
+ padding: "ps-4"
28
+ },
29
+ loadingState: {
30
+ wrapper: "flex flex-col items-center justify-center flex-1 px-6 py-14 sm:px-14",
31
+ label: "text-sm text-center text-gray-900 dark:text-white",
32
+ icon: "w-6 h-6 mx-auto text-gray-400 dark:text-gray-500 mb-4 animate-spin"
33
+ },
34
+ emptyState: {
35
+ wrapper: "flex flex-col items-center justify-center flex-1 px-6 py-14 sm:px-14",
36
+ label: "text-sm text-center text-gray-900 dark:text-white",
37
+ icon: "w-6 h-6 mx-auto text-gray-400 dark:text-gray-500 mb-4"
38
+ },
39
+ default: {
40
+ sortAscIcon: "i-heroicons-bars-arrow-up-20-solid",
41
+ sortDescIcon: "i-heroicons-bars-arrow-down-20-solid",
42
+ sortButton: {
43
+ icon: "i-heroicons-arrows-up-down-20-solid",
44
+ trailing: true,
45
+ square: true,
46
+ color: "gray",
47
+ variant: "ghost",
48
+ class: "-m-1.5"
49
+ },
50
+ loadingState: {
51
+ icon: "i-heroicons-arrow-path-20-solid",
52
+ label: "Loading..."
53
+ },
54
+ emptyState: {
55
+ icon: "i-heroicons-circle-stack-20-solid",
56
+ label: "No items."
57
+ }
58
+ }
59
+ };
@@ -0,0 +1,21 @@
1
+ declare const _default: {
2
+ wrapper: string;
3
+ item: {
4
+ base: string;
5
+ size: string;
6
+ color: string;
7
+ padding: string;
8
+ icon: string;
9
+ };
10
+ transition: {
11
+ enterActiveClass: string;
12
+ leaveActiveClass: string;
13
+ };
14
+ default: {
15
+ openIcon: string;
16
+ closeIcon: string;
17
+ class: string;
18
+ variant: string;
19
+ };
20
+ };
21
+ export default _default;
@@ -0,0 +1,20 @@
1
+ export default {
2
+ wrapper: "w-full flex flex-col",
3
+ item: {
4
+ base: "",
5
+ size: "text-sm",
6
+ color: "text-gray-500 dark:text-gray-400",
7
+ padding: "pt-1.5 pb-3",
8
+ icon: "ms-auto transform transition-transform duration-200"
9
+ },
10
+ transition: {
11
+ enterActiveClass: "overflow-hidden transition-[height] duration-200 ease-out",
12
+ leaveActiveClass: "overflow-hidden transition-[height] duration-200 ease-out"
13
+ },
14
+ default: {
15
+ openIcon: "i-heroicons-chevron-down-20-solid",
16
+ closeIcon: "",
17
+ class: "mb-1.5 w-full",
18
+ variant: "soft"
19
+ }
20
+ };
@@ -0,0 +1,40 @@
1
+ declare const _default: {
2
+ wrapper: string;
3
+ title: string;
4
+ description: string;
5
+ actions: string;
6
+ shadow: string;
7
+ rounded: string;
8
+ padding: string;
9
+ gap: string;
10
+ icon: {
11
+ base: string;
12
+ };
13
+ avatar: {
14
+ base: string;
15
+ size: string;
16
+ };
17
+ color: {
18
+ white: {
19
+ solid: string;
20
+ };
21
+ };
22
+ variant: {
23
+ solid: string;
24
+ outline: string;
25
+ soft: string;
26
+ subtle: string;
27
+ };
28
+ default: {
29
+ color: string;
30
+ variant: string;
31
+ icon: null;
32
+ closeButton: null;
33
+ actionButton: {
34
+ size: string;
35
+ color: string;
36
+ variant: string;
37
+ };
38
+ };
39
+ };
40
+ export default _default;
@@ -0,0 +1,39 @@
1
+ export default {
2
+ wrapper: "w-full relative overflow-hidden",
3
+ title: "text-sm font-medium",
4
+ description: "mt-1 text-sm leading-4 opacity-90",
5
+ actions: "flex items-center gap-2 mt-3 flex-shrink-0",
6
+ shadow: "",
7
+ rounded: "rounded-lg",
8
+ padding: "p-4",
9
+ gap: "gap-3",
10
+ icon: {
11
+ base: "flex-shrink-0 w-5 h-5"
12
+ },
13
+ avatar: {
14
+ base: "flex-shrink-0 self-center",
15
+ size: "md"
16
+ },
17
+ color: {
18
+ white: {
19
+ solid: "text-gray-900 dark:text-white bg-white dark:bg-gray-900 ring-1 ring-gray-200 dark:ring-gray-800"
20
+ }
21
+ },
22
+ variant: {
23
+ solid: "bg-{color}-500 dark:bg-{color}-400 text-white dark:text-gray-900",
24
+ outline: "text-{color}-500 dark:text-{color}-400 ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400",
25
+ soft: "bg-{color}-50 dark:bg-{color}-400 dark:bg-opacity-10 text-{color}-500 dark:text-{color}-400",
26
+ subtle: "bg-{color}-50 dark:bg-{color}-400 dark:bg-opacity-10 text-{color}-500 dark:text-{color}-400 ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400 ring-opacity-25 dark:ring-opacity-25"
27
+ },
28
+ default: {
29
+ color: "white",
30
+ variant: "solid",
31
+ icon: null,
32
+ closeButton: null,
33
+ actionButton: {
34
+ size: "xs",
35
+ color: "primary",
36
+ variant: "link"
37
+ }
38
+ }
39
+ };
@@ -0,0 +1,60 @@
1
+ declare const _default: {
2
+ wrapper: string;
3
+ background: string;
4
+ rounded: string;
5
+ text: string;
6
+ placeholder: string;
7
+ size: {
8
+ '3xs': string;
9
+ '2xs': string;
10
+ xs: string;
11
+ sm: string;
12
+ md: string;
13
+ lg: string;
14
+ xl: string;
15
+ '2xl': string;
16
+ '3xl': string;
17
+ };
18
+ chip: {
19
+ base: string;
20
+ background: string;
21
+ position: {
22
+ 'top-right': string;
23
+ 'bottom-right': string;
24
+ 'top-left': string;
25
+ 'bottom-left': string;
26
+ };
27
+ size: {
28
+ '3xs': string;
29
+ '2xs': string;
30
+ xs: string;
31
+ sm: string;
32
+ md: string;
33
+ lg: string;
34
+ xl: string;
35
+ '2xl': string;
36
+ '3xl': string;
37
+ };
38
+ };
39
+ icon: {
40
+ base: string;
41
+ size: {
42
+ '3xs': string;
43
+ '2xs': string;
44
+ xs: string;
45
+ sm: string;
46
+ md: string;
47
+ lg: string;
48
+ xl: string;
49
+ '2xl': string;
50
+ '3xl': string;
51
+ };
52
+ };
53
+ default: {
54
+ size: string;
55
+ icon: null;
56
+ chipColor: null;
57
+ chipPosition: string;
58
+ };
59
+ };
60
+ export default _default;
@@ -0,0 +1,59 @@
1
+ export default {
2
+ wrapper: "relative inline-flex items-center justify-center flex-shrink-0",
3
+ background: "bg-gray-100 dark:bg-gray-800",
4
+ rounded: "rounded-full",
5
+ text: "font-medium leading-none text-gray-900 dark:text-white truncate",
6
+ placeholder: "font-medium leading-none text-gray-500 dark:text-gray-400 truncate",
7
+ size: {
8
+ "3xs": "h-4 w-4 text-[8px]",
9
+ "2xs": "h-5 w-5 text-[10px]",
10
+ xs: "h-6 w-6 text-xs",
11
+ sm: "h-8 w-8 text-sm",
12
+ md: "h-10 w-10 text-base",
13
+ lg: "h-12 w-12 text-lg",
14
+ xl: "h-14 w-14 text-xl",
15
+ "2xl": "h-16 w-16 text-2xl",
16
+ "3xl": "h-20 w-20 text-3xl"
17
+ },
18
+ chip: {
19
+ base: "absolute rounded-full ring-1 ring-white dark:ring-gray-900 flex items-center justify-center text-white dark:text-gray-900 font-medium",
20
+ background: "bg-{color}-500 dark:bg-{color}-400",
21
+ position: {
22
+ "top-right": "top-0 right-0",
23
+ "bottom-right": "bottom-0 right-0",
24
+ "top-left": "top-0 left-0",
25
+ "bottom-left": "bottom-0 left-0"
26
+ },
27
+ size: {
28
+ "3xs": "h-[4px] min-w-[4px] text-[4px] p-px",
29
+ "2xs": "h-[5px] min-w-[5px] text-[5px] p-px",
30
+ xs: "h-1.5 min-w-[0.375rem] text-[6px] p-px",
31
+ sm: "h-2 min-w-[0.5rem] text-[7px] p-0.5",
32
+ md: "h-2.5 min-w-[0.625rem] text-[8px] p-0.5",
33
+ lg: "h-3 min-w-[0.75rem] text-[10px] p-0.5",
34
+ xl: "h-3.5 min-w-[0.875rem] text-[11px] p-1",
35
+ "2xl": "h-4 min-w-[1rem] text-[12px] p-1",
36
+ "3xl": "h-5 min-w-[1.25rem] text-[14px] p-1"
37
+ }
38
+ },
39
+ icon: {
40
+ base: "text-gray-500 dark:text-gray-400 flex-shrink-0",
41
+ size: {
42
+ "3xs": "h-2 w-2",
43
+ "2xs": "h-2.5 w-2.5",
44
+ xs: "h-3 w-3",
45
+ sm: "h-4 w-4",
46
+ md: "h-5 w-5",
47
+ lg: "h-6 w-6",
48
+ xl: "h-7 w-7",
49
+ "2xl": "h-8 w-8",
50
+ "3xl": "h-10 w-10"
51
+ }
52
+ },
53
+ default: {
54
+ size: "sm",
55
+ icon: null,
56
+ chipColor: null,
57
+ chipPosition: "top-right"
58
+ }
59
+ };
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ wrapper: string;
3
+ ring: string;
4
+ margin: string;
5
+ };
6
+ export default _default;
@@ -0,0 +1,5 @@
1
+ export default {
2
+ wrapper: "inline-flex flex-row-reverse justify-end",
3
+ ring: "ring-2 ring-white dark:ring-gray-900",
4
+ margin: "-me-1.5 first:me-0"
5
+ };
@@ -0,0 +1,34 @@
1
+ declare const _default: {
2
+ base: string;
3
+ rounded: string;
4
+ font: string;
5
+ size: {
6
+ xs: string;
7
+ sm: string;
8
+ md: string;
9
+ lg: string;
10
+ };
11
+ color: {
12
+ white: {
13
+ solid: string;
14
+ };
15
+ gray: {
16
+ solid: string;
17
+ };
18
+ black: {
19
+ solid: string;
20
+ };
21
+ };
22
+ variant: {
23
+ solid: string;
24
+ outline: string;
25
+ soft: string;
26
+ subtle: string;
27
+ };
28
+ default: {
29
+ size: string;
30
+ variant: string;
31
+ color: string;
32
+ };
33
+ };
34
+ export default _default;
@@ -0,0 +1,33 @@
1
+ export default {
2
+ base: "inline-flex items-center",
3
+ rounded: "rounded-md",
4
+ font: "font-medium",
5
+ size: {
6
+ xs: "text-xs px-1.5 py-0.5",
7
+ sm: "text-xs px-2 py-1",
8
+ md: "text-sm px-2 py-1",
9
+ lg: "text-sm px-2.5 py-1.5"
10
+ },
11
+ color: {
12
+ white: {
13
+ solid: "ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-900 dark:text-white bg-white dark:bg-gray-900"
14
+ },
15
+ gray: {
16
+ solid: "ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-700 dark:text-gray-200 bg-gray-50 dark:bg-gray-800"
17
+ },
18
+ black: {
19
+ solid: "text-white dark:text-gray-900 bg-gray-900 dark:bg-white"
20
+ }
21
+ },
22
+ variant: {
23
+ solid: "bg-{color}-500 dark:bg-{color}-400 text-white dark:text-gray-900",
24
+ outline: "text-{color}-500 dark:text-{color}-400 ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400",
25
+ soft: "bg-{color}-50 dark:bg-{color}-400 dark:bg-opacity-10 text-{color}-500 dark:text-{color}-400",
26
+ subtle: "bg-{color}-50 dark:bg-{color}-400 dark:bg-opacity-10 text-{color}-500 dark:text-{color}-400 ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400 ring-opacity-25 dark:ring-opacity-25"
27
+ },
28
+ default: {
29
+ size: "sm",
30
+ variant: "solid",
31
+ color: "primary"
32
+ }
33
+ };