@nuxt/ui 2.11.0 → 2.12.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 (159) hide show
  1. package/dist/module.d.mts +294 -48
  2. package/dist/module.d.ts +294 -48
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +6 -4
  5. package/dist/runtime/components/data/Table.vue +29 -21
  6. package/dist/runtime/components/data/Table.vue.d.ts +28 -19
  7. package/dist/runtime/components/elements/Accordion.vue +10 -6
  8. package/dist/runtime/components/elements/Accordion.vue.d.ts +11 -11
  9. package/dist/runtime/components/elements/Alert.vue +12 -6
  10. package/dist/runtime/components/elements/Alert.vue.d.ts +12 -17
  11. package/dist/runtime/components/elements/Avatar.vue +2 -2
  12. package/dist/runtime/components/elements/Avatar.vue.d.ts +7 -7
  13. package/dist/runtime/components/elements/AvatarGroup.d.ts +7 -7
  14. package/dist/runtime/components/elements/AvatarGroup.mjs +2 -2
  15. package/dist/runtime/components/elements/Badge.vue +2 -2
  16. package/dist/runtime/components/elements/Badge.vue.d.ts +7 -7
  17. package/dist/runtime/components/elements/Button.vue +8 -6
  18. package/dist/runtime/components/elements/Button.vue.d.ts +9 -8
  19. package/dist/runtime/components/elements/ButtonGroup.d.ts +7 -7
  20. package/dist/runtime/components/elements/ButtonGroup.mjs +3 -16
  21. package/dist/runtime/components/elements/Chip.vue +2 -2
  22. package/dist/runtime/components/elements/Chip.vue.d.ts +9 -9
  23. package/dist/runtime/components/elements/Dropdown.vue +68 -19
  24. package/dist/runtime/components/elements/Dropdown.vue.d.ts +37 -9
  25. package/dist/runtime/components/elements/Kbd.vue +2 -2
  26. package/dist/runtime/components/elements/Kbd.vue.d.ts +7 -7
  27. package/dist/runtime/components/elements/Link.vue +2 -2
  28. package/dist/runtime/components/elements/Meter.vue +2 -2
  29. package/dist/runtime/components/elements/Meter.vue.d.ts +7 -7
  30. package/dist/runtime/components/elements/MeterGroup.d.ts +9 -9
  31. package/dist/runtime/components/elements/MeterGroup.mjs +8 -21
  32. package/dist/runtime/components/elements/Progress.vue +5 -94
  33. package/dist/runtime/components/elements/Progress.vue.d.ts +123 -1
  34. package/dist/runtime/components/forms/Checkbox.vue +7 -7
  35. package/dist/runtime/components/forms/Checkbox.vue.d.ts +8 -8
  36. package/dist/runtime/components/forms/Form.vue +17 -8
  37. package/dist/runtime/components/forms/Form.vue.d.ts +1 -1
  38. package/dist/runtime/components/forms/FormGroup.vue +2 -2
  39. package/dist/runtime/components/forms/FormGroup.vue.d.ts +7 -7
  40. package/dist/runtime/components/forms/Input.vue +8 -8
  41. package/dist/runtime/components/forms/Input.vue.d.ts +11 -11
  42. package/dist/runtime/components/forms/InputMenu.vue +410 -0
  43. package/dist/runtime/components/forms/InputMenu.vue.d.ts +331 -0
  44. package/dist/runtime/components/forms/Radio.vue +7 -7
  45. package/dist/runtime/components/forms/Radio.vue.d.ts +7 -7
  46. package/dist/runtime/components/forms/RadioGroup.vue +5 -5
  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 +8 -8
  50. package/dist/runtime/components/forms/Select.vue +8 -8
  51. package/dist/runtime/components/forms/Select.vue.d.ts +10 -10
  52. package/dist/runtime/components/forms/SelectMenu.vue +69 -36
  53. package/dist/runtime/components/forms/SelectMenu.vue.d.ts +40 -20
  54. package/dist/runtime/components/forms/Textarea.vue +3 -3
  55. package/dist/runtime/components/forms/Textarea.vue.d.ts +10 -10
  56. package/dist/runtime/components/forms/Toggle.vue +10 -10
  57. package/dist/runtime/components/forms/Toggle.vue.d.ts +16 -15
  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 +7 -7
  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 +9 -6
  67. package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +10 -7
  68. package/dist/runtime/components/navigation/CommandPalette.vue +42 -33
  69. package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +16 -9
  70. package/dist/runtime/components/navigation/CommandPaletteGroup.vue +1 -3
  71. package/dist/runtime/components/navigation/Pagination.vue +16 -11
  72. package/dist/runtime/components/navigation/Pagination.vue.d.ts +16 -7
  73. package/dist/runtime/components/navigation/Tabs.vue +8 -5
  74. package/dist/runtime/components/navigation/Tabs.vue.d.ts +9 -9
  75. package/dist/runtime/components/navigation/VerticalNavigation.vue +56 -39
  76. package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +14 -10
  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 +8 -8
  81. package/dist/runtime/components/overlays/Notification.vue +7 -7
  82. package/dist/runtime/components/overlays/Notification.vue.d.ts +7 -7
  83. package/dist/runtime/components/overlays/Notifications.vue +2 -2
  84. package/dist/runtime/components/overlays/Notifications.vue.d.ts +7 -7
  85. package/dist/runtime/components/overlays/Popover.vue +54 -17
  86. package/dist/runtime/components/overlays/Popover.vue.d.ts +21 -11
  87. package/dist/runtime/components/overlays/Slideover.vue +6 -6
  88. package/dist/runtime/components/overlays/Slideover.vue.d.ts +8 -8
  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/useFormGroup.d.ts +3 -3
  92. package/dist/runtime/composables/useFormGroup.mjs +1 -1
  93. package/dist/runtime/composables/useShortcuts.mjs +3 -1
  94. package/dist/runtime/composables/useUI.d.ts +3 -3
  95. package/dist/runtime/types/alert.d.ts +5 -0
  96. package/dist/runtime/types/breadcrumb.d.ts +3 -0
  97. package/dist/runtime/types/dropdown.d.ts +2 -0
  98. package/dist/runtime/types/form.d.ts +2 -1
  99. package/dist/runtime/types/popper.d.ts +2 -0
  100. package/dist/runtime/types/utils.d.ts +4 -4
  101. package/dist/runtime/types/vertical-navigation.d.ts +1 -0
  102. package/dist/runtime/ui.config/data/table.d.ts +2 -2
  103. package/dist/runtime/ui.config/elements/accordion.d.ts +1 -1
  104. package/dist/runtime/ui.config/elements/alert.d.ts +5 -4
  105. package/dist/runtime/ui.config/elements/alert.mjs +1 -0
  106. package/dist/runtime/ui.config/elements/button.d.ts +4 -0
  107. package/dist/runtime/ui.config/elements/button.mjs +4 -0
  108. package/dist/runtime/ui.config/elements/buttonGroup.d.ts +92 -0
  109. package/dist/runtime/ui.config/elements/buttonGroup.mjs +12 -1
  110. package/dist/runtime/ui.config/elements/dropdown.d.ts +3 -1
  111. package/dist/runtime/ui.config/elements/dropdown.mjs +4 -2
  112. package/dist/runtime/ui.config/elements/meterGroup.d.ts +40 -0
  113. package/dist/runtime/ui.config/elements/meterGroup.mjs +14 -1
  114. package/dist/runtime/ui.config/forms/checkbox.d.ts +3 -0
  115. package/dist/runtime/ui.config/forms/checkbox.mjs +3 -0
  116. package/dist/runtime/ui.config/forms/input.d.ts +2 -0
  117. package/dist/runtime/ui.config/forms/input.mjs +14 -12
  118. package/dist/runtime/ui.config/forms/inputMenu.d.ts +64 -0
  119. package/dist/runtime/ui.config/forms/inputMenu.mjs +62 -0
  120. package/dist/runtime/ui.config/forms/radio.d.ts +3 -0
  121. package/dist/runtime/ui.config/forms/radio.mjs +3 -0
  122. package/dist/runtime/ui.config/forms/select.d.ts +2 -0
  123. package/dist/runtime/ui.config/forms/select.mjs +1 -0
  124. package/dist/runtime/ui.config/forms/selectMenu.d.ts +18 -11
  125. package/dist/runtime/ui.config/forms/selectMenu.mjs +12 -41
  126. package/dist/runtime/ui.config/forms/textarea.d.ts +2 -0
  127. package/dist/runtime/ui.config/forms/textarea.mjs +1 -0
  128. package/dist/runtime/ui.config/index.d.ts +1 -0
  129. package/dist/runtime/ui.config/index.mjs +1 -0
  130. package/dist/runtime/ui.config/layout/card.mjs +1 -1
  131. package/dist/runtime/ui.config/layout/divider.d.ts +6 -1
  132. package/dist/runtime/ui.config/layout/divider.mjs +5 -0
  133. package/dist/runtime/ui.config/navigation/breadcrumb.d.ts +1 -0
  134. package/dist/runtime/ui.config/navigation/breadcrumb.mjs +2 -1
  135. package/dist/runtime/ui.config/navigation/commandPalette.d.ts +5 -1
  136. package/dist/runtime/ui.config/navigation/commandPalette.mjs +5 -1
  137. package/dist/runtime/ui.config/navigation/pagination.d.ts +6 -6
  138. package/dist/runtime/ui.config/navigation/verticalNavigation.d.ts +6 -1
  139. package/dist/runtime/ui.config/navigation/verticalNavigation.mjs +5 -0
  140. package/dist/runtime/ui.config/overlays/contextMenu.mjs +1 -1
  141. package/dist/runtime/ui.config/overlays/modal.d.ts +1 -0
  142. package/dist/runtime/ui.config/overlays/modal.mjs +3 -2
  143. package/dist/runtime/ui.config/overlays/notification.d.ts +5 -4
  144. package/dist/runtime/ui.config/overlays/notification.mjs +1 -0
  145. package/dist/runtime/ui.config/overlays/popover.d.ts +1 -0
  146. package/dist/runtime/ui.config/overlays/popover.mjs +2 -1
  147. package/dist/runtime/ui.config/overlays/slideover.d.ts +5 -0
  148. package/dist/runtime/ui.config/overlays/slideover.mjs +5 -0
  149. package/dist/runtime/ui.config/overlays/tooltip.d.ts +1 -0
  150. package/dist/runtime/ui.config/overlays/tooltip.mjs +2 -1
  151. package/dist/runtime/ui.config/{_popperArrow.d.ts → popper.d.ts} +1 -2
  152. package/dist/runtime/ui.config/popper.mjs +9 -0
  153. package/dist/runtime/ui.css +1 -13
  154. package/dist/runtime/utils/index.mjs +11 -3
  155. package/dist/runtime/utils/uid.mjs +2 -1
  156. package/dist/types.d.mts +2 -2
  157. package/dist/types.d.ts +1 -1
  158. package/package.json +29 -28
  159. package/dist/runtime/ui.config/_popperArrow.mjs +0 -8
@@ -5,5 +5,97 @@ declare const _default: {
5
5
  };
6
6
  rounded: string;
7
7
  shadow: string;
8
+ orientation: {
9
+ 'rounded-none': {
10
+ horizontal: {
11
+ start: string;
12
+ end: string;
13
+ };
14
+ vertical: {
15
+ start: string;
16
+ end: string;
17
+ };
18
+ };
19
+ 'rounded-sm': {
20
+ horizontal: {
21
+ start: string;
22
+ end: string;
23
+ };
24
+ vertical: {
25
+ start: string;
26
+ end: string;
27
+ };
28
+ };
29
+ rounded: {
30
+ horizontal: {
31
+ start: string;
32
+ end: string;
33
+ };
34
+ vertical: {
35
+ start: string;
36
+ end: string;
37
+ };
38
+ };
39
+ 'rounded-md': {
40
+ horizontal: {
41
+ start: string;
42
+ end: string;
43
+ };
44
+ vertical: {
45
+ start: string;
46
+ end: string;
47
+ };
48
+ };
49
+ 'rounded-lg': {
50
+ horizontal: {
51
+ start: string;
52
+ end: string;
53
+ };
54
+ vertical: {
55
+ start: string;
56
+ end: string;
57
+ };
58
+ };
59
+ 'rounded-xl': {
60
+ horizontal: {
61
+ start: string;
62
+ end: string;
63
+ };
64
+ vertical: {
65
+ start: string;
66
+ end: string;
67
+ };
68
+ };
69
+ 'rounded-2xl': {
70
+ horizontal: {
71
+ start: string;
72
+ end: string;
73
+ };
74
+ vertical: {
75
+ start: string;
76
+ end: string;
77
+ };
78
+ };
79
+ 'rounded-3xl': {
80
+ horizontal: {
81
+ start: string;
82
+ end: string;
83
+ };
84
+ vertical: {
85
+ start: string;
86
+ end: string;
87
+ };
88
+ };
89
+ 'rounded-full': {
90
+ horizontal: {
91
+ start: string;
92
+ end: string;
93
+ };
94
+ vertical: {
95
+ start: string;
96
+ end: string;
97
+ };
98
+ };
99
+ };
8
100
  };
9
101
  export default _default;
@@ -4,5 +4,16 @@ export default {
4
4
  vertical: "inline-flex flex-col -space-y-px"
5
5
  },
6
6
  rounded: "rounded-md",
7
- shadow: "shadow-sm"
7
+ shadow: "shadow-sm",
8
+ orientation: {
9
+ "rounded-none": { horizontal: { start: "rounded-s-none", end: "rounded-e-none" }, vertical: { start: "rounded-t-none", end: "rounded-b-none" } },
10
+ "rounded-sm": { horizontal: { start: "rounded-s-sm", end: "rounded-e-sm" }, vertical: { start: "rounded-t-sm", end: "rounded-b-sm" } },
11
+ rounded: { horizontal: { start: "rounded-s", end: "rounded-e" }, vertical: { start: "rounded-t", end: "rounded-b" } },
12
+ "rounded-md": { horizontal: { start: "rounded-s-md", end: "rounded-e-md" }, vertical: { start: "rounded-t-md", end: "rounded-b-md" } },
13
+ "rounded-lg": { horizontal: { start: "rounded-s-lg", end: "rounded-e-lg" }, vertical: { start: "rounded-t-lg", end: "rounded-b-lg" } },
14
+ "rounded-xl": { horizontal: { start: "rounded-s-xl", end: "rounded-e-xl" }, vertical: { start: "rounded-t-xl", end: "rounded-b-xl" } },
15
+ "rounded-2xl": { horizontal: { start: "rounded-s-2xl", end: "rounded-e-2xl" }, vertical: { start: "rounded-t-2xl", end: "rounded-b-2xl" } },
16
+ "rounded-3xl": { horizontal: { start: "rounded-s-3xl", end: "rounded-e-3xl" }, vertical: { start: "rounded-t-3xl", end: "rounded-b-3xl" } },
17
+ "rounded-full": { horizontal: { start: "rounded-s-full", end: "rounded-e-full" }, vertical: { start: "rounded-t-full", end: "rounded-b-full" } }
18
+ }
8
19
  };
@@ -1,6 +1,7 @@
1
1
  declare const _default: {
2
2
  wrapper: string;
3
3
  container: string;
4
+ trigger: string;
4
5
  width: string;
5
6
  height: string;
6
7
  background: string;
@@ -25,8 +26,9 @@ declare const _default: {
25
26
  };
26
27
  avatar: {
27
28
  base: string;
28
- size: string;
29
+ size: "3xs";
29
30
  };
31
+ label: string;
30
32
  shortcuts: string;
31
33
  };
32
34
  transition: {
@@ -1,7 +1,8 @@
1
- import _popperArrow from "../_popperArrow.mjs";
1
+ import { arrow } from "../popper.mjs";
2
2
  export default {
3
3
  wrapper: "relative inline-flex text-left rtl:text-right",
4
4
  container: "z-20 group",
5
+ trigger: "inline-flex w-full",
5
6
  width: "w-48",
6
7
  height: "",
7
8
  background: "bg-white dark:bg-gray-800",
@@ -28,6 +29,7 @@ export default {
28
29
  base: "flex-shrink-0",
29
30
  size: "3xs"
30
31
  },
32
+ label: "truncate",
31
33
  shortcuts: "hidden md:inline-flex flex-shrink-0 gap-0.5 ms-auto"
32
34
  },
33
35
  // Syntax for `<Transition>` component https://vuejs.org/guide/built-ins/transition.html#css-based-transitions
@@ -44,7 +46,7 @@ export default {
44
46
  strategy: "fixed"
45
47
  },
46
48
  arrow: {
47
- ..._popperArrow,
49
+ ...arrow,
48
50
  ring: "before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",
49
51
  background: "before:bg-white dark:before:bg-gray-700"
50
52
  }
@@ -5,8 +5,48 @@ declare const _default: {
5
5
  transition: string;
6
6
  rounded: string;
7
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
+ };
8
47
  default: {
9
48
  size: string;
49
+ icon: string;
10
50
  };
11
51
  };
12
52
  export default _default;
@@ -5,7 +5,20 @@ export default {
5
5
  transition: "transition-all",
6
6
  rounded: "rounded-full",
7
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
+ },
8
20
  default: {
9
- size: "md"
21
+ size: "md",
22
+ icon: "i-heroicons-minus-20-solid"
10
23
  }
11
24
  };
@@ -1,11 +1,14 @@
1
1
  declare const _default: {
2
2
  wrapper: string;
3
+ container: string;
3
4
  base: string;
5
+ form: string;
4
6
  rounded: string;
5
7
  color: string;
6
8
  background: string;
7
9
  border: string;
8
10
  ring: string;
11
+ inner: string;
9
12
  label: string;
10
13
  required: string;
11
14
  help: string;
@@ -1,11 +1,14 @@
1
1
  export default {
2
2
  wrapper: "relative flex items-start",
3
+ container: "flex items-center h-5",
3
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",
4
6
  rounded: "rounded",
5
7
  color: "text-{color}-500 dark:text-{color}-400",
6
8
  background: "bg-white dark:bg-gray-900",
7
9
  border: "border border-gray-300 dark:border-gray-700",
8
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",
9
12
  label: "text-sm font-medium text-gray-700 dark:text-gray-200",
10
13
  required: "text-sm text-red-500 dark:text-red-400",
11
14
  help: "text-sm text-gray-500 dark:text-gray-400",
@@ -1,6 +1,7 @@
1
1
  declare const _default: {
2
2
  wrapper: string;
3
3
  base: string;
4
+ form: string;
4
5
  rounded: string;
5
6
  placeholder: string;
6
7
  size: {
@@ -62,6 +63,7 @@ declare const _default: {
62
63
  icon: {
63
64
  base: string;
64
65
  color: string;
66
+ loading: string;
65
67
  size: {
66
68
  '2xs': string;
67
69
  xs: string;
@@ -1,6 +1,7 @@
1
1
  export default {
2
2
  wrapper: "relative",
3
3
  base: "relative block w-full disabled:cursor-not-allowed disabled:opacity-75 focus:outline-none border-0",
4
+ form: "form-input",
4
5
  rounded: "rounded-md",
5
6
  placeholder: "placeholder-gray-400 dark:placeholder-gray-500",
6
7
  size: {
@@ -62,6 +63,7 @@ export default {
62
63
  icon: {
63
64
  base: "flex-shrink-0 text-gray-400 dark:text-gray-500",
64
65
  color: "text-{color}-500 dark:text-{color}-400",
66
+ loading: "animate-spin",
65
67
  size: {
66
68
  "2xs": "h-4 w-4",
67
69
  xs: "h-4 w-4",
@@ -74,24 +76,24 @@ export default {
74
76
  wrapper: "absolute inset-y-0 start-0 flex items-center",
75
77
  pointer: "pointer-events-none",
76
78
  padding: {
77
- "2xs": "ps-2",
78
- xs: "ps-2.5",
79
- sm: "ps-2.5",
80
- md: "ps-3",
81
- lg: "ps-3.5",
82
- xl: "ps-3.5"
79
+ "2xs": "px-2",
80
+ xs: "px-2.5",
81
+ sm: "px-2.5",
82
+ md: "px-3",
83
+ lg: "px-3.5",
84
+ xl: "px-3.5"
83
85
  }
84
86
  },
85
87
  trailing: {
86
88
  wrapper: "absolute inset-y-0 end-0 flex items-center",
87
89
  pointer: "pointer-events-none",
88
90
  padding: {
89
- "2xs": "pe-2",
90
- xs: "pe-2.5",
91
- sm: "pe-2.5",
92
- md: "pe-3",
93
- lg: "pe-3.5",
94
- xl: "pe-3.5"
91
+ "2xs": "px-2",
92
+ xs: "px-2.5",
93
+ sm: "px-2.5",
94
+ md: "px-3",
95
+ lg: "px-3.5",
96
+ xl: "px-3.5"
95
97
  }
96
98
  }
97
99
  },
@@ -0,0 +1,64 @@
1
+ declare const _default: {
2
+ container: string;
3
+ trigger: string;
4
+ width: string;
5
+ height: string;
6
+ base: string;
7
+ background: string;
8
+ shadow: string;
9
+ rounded: string;
10
+ padding: string;
11
+ ring: string;
12
+ empty: string;
13
+ option: {
14
+ base: string;
15
+ rounded: string;
16
+ padding: string;
17
+ size: string;
18
+ color: string;
19
+ container: string;
20
+ active: string;
21
+ inactive: string;
22
+ selected: string;
23
+ disabled: string;
24
+ empty: string;
25
+ icon: {
26
+ base: string;
27
+ active: string;
28
+ inactive: string;
29
+ };
30
+ selectedIcon: {
31
+ wrapper: string;
32
+ padding: string;
33
+ base: string;
34
+ };
35
+ avatar: {
36
+ base: string;
37
+ size: "3xs";
38
+ };
39
+ chip: {
40
+ base: string;
41
+ };
42
+ };
43
+ transition: {
44
+ leaveActiveClass: string;
45
+ leaveFromClass: string;
46
+ leaveToClass: string;
47
+ };
48
+ popper: {
49
+ placement: string;
50
+ };
51
+ default: {
52
+ selectedIcon: string;
53
+ trailingIcon: string;
54
+ };
55
+ arrow: {
56
+ ring: string;
57
+ background: string;
58
+ base: string;
59
+ rounded: string;
60
+ shadow: string;
61
+ placement: string;
62
+ };
63
+ };
64
+ export default _default;
@@ -0,0 +1,62 @@
1
+ import { arrow } from "../popper.mjs";
2
+ export default {
3
+ container: "z-20 group",
4
+ trigger: "inline-flex w-full",
5
+ width: "w-full",
6
+ height: "max-h-60",
7
+ base: "relative focus:outline-none overflow-y-auto scroll-py-1",
8
+ background: "bg-white dark:bg-gray-800",
9
+ shadow: "shadow-lg",
10
+ rounded: "rounded-md",
11
+ padding: "p-1",
12
+ ring: "ring-1 ring-gray-200 dark:ring-gray-700",
13
+ empty: "text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",
14
+ option: {
15
+ base: "cursor-default select-none relative flex items-center justify-between gap-1",
16
+ rounded: "rounded-md",
17
+ padding: "px-2 py-1.5",
18
+ size: "text-sm",
19
+ color: "text-gray-900 dark:text-white",
20
+ container: "flex items-center gap-2 min-w-0",
21
+ active: "bg-gray-100 dark:bg-gray-900",
22
+ inactive: "",
23
+ selected: "pe-7",
24
+ disabled: "cursor-not-allowed opacity-50",
25
+ empty: "text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",
26
+ icon: {
27
+ base: "flex-shrink-0 h-4 w-4",
28
+ active: "text-gray-900 dark:text-white",
29
+ inactive: "text-gray-400 dark:text-gray-500"
30
+ },
31
+ selectedIcon: {
32
+ wrapper: "absolute inset-y-0 end-0 flex items-center",
33
+ padding: "pe-2",
34
+ base: "h-4 w-4 text-gray-900 dark:text-white flex-shrink-0"
35
+ },
36
+ avatar: {
37
+ base: "flex-shrink-0",
38
+ size: "3xs"
39
+ },
40
+ chip: {
41
+ base: "flex-shrink-0 w-2 h-2 mx-1 rounded-full"
42
+ }
43
+ },
44
+ // Syntax for `<Transition>` component https://vuejs.org/guide/built-ins/transition.html#css-based-transitions
45
+ transition: {
46
+ leaveActiveClass: "transition ease-in duration-100",
47
+ leaveFromClass: "opacity-100",
48
+ leaveToClass: "opacity-0"
49
+ },
50
+ popper: {
51
+ placement: "bottom-end"
52
+ },
53
+ default: {
54
+ selectedIcon: "i-heroicons-check-20-solid",
55
+ trailingIcon: "i-heroicons-chevron-down-20-solid"
56
+ },
57
+ arrow: {
58
+ ...arrow,
59
+ ring: "before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",
60
+ background: "before:bg-white dark:before:bg-gray-700"
61
+ }
62
+ };
@@ -1,10 +1,13 @@
1
1
  declare const _default: {
2
2
  wrapper: string;
3
+ container: string;
3
4
  base: string;
5
+ form: string;
4
6
  color: string;
5
7
  background: string;
6
8
  border: string;
7
9
  ring: string;
10
+ inner: string;
8
11
  label: string;
9
12
  required: string;
10
13
  help: string;
@@ -1,10 +1,13 @@
1
1
  export default {
2
2
  wrapper: "relative flex items-start",
3
+ container: "flex items-center h-5",
3
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",
4
6
  color: "text-{color}-500 dark:text-{color}-400",
5
7
  background: "bg-white dark:bg-gray-900",
6
8
  border: "border border-gray-300 dark:border-gray-700",
7
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",
8
11
  label: "text-sm font-medium text-gray-700 dark:text-gray-200",
9
12
  required: "text-sm text-red-500 dark:text-red-400",
10
13
  help: "text-sm text-gray-500 dark:text-gray-400",
@@ -1,4 +1,5 @@
1
1
  declare const _default: {
2
+ form: string;
2
3
  placeholder: string;
3
4
  default: {
4
5
  size: string;
@@ -69,6 +70,7 @@ declare const _default: {
69
70
  icon: {
70
71
  base: string;
71
72
  color: string;
73
+ loading: string;
72
74
  size: {
73
75
  '2xs': string;
74
76
  xs: string;
@@ -1,6 +1,7 @@
1
1
  import input from "./input.mjs";
2
2
  export default {
3
3
  ...input,
4
+ form: "form-select",
4
5
  placeholder: "text-gray-900 dark:text-white",
5
6
  default: {
6
7
  size: "sm",
@@ -1,15 +1,10 @@
1
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;
2
+ select: string;
11
3
  input: string;
4
+ required: string;
5
+ label: string;
12
6
  option: {
7
+ create: string;
13
8
  base: string;
14
9
  rounded: string;
15
10
  padding: string;
@@ -33,7 +28,7 @@ declare const _default: {
33
28
  };
34
29
  avatar: {
35
30
  base: string;
36
- size: string;
31
+ size: "3xs";
37
32
  };
38
33
  chip: {
39
34
  base: string;
@@ -49,7 +44,8 @@ declare const _default: {
49
44
  };
50
45
  default: {
51
46
  selectedIcon: string;
52
- clearOnClose: boolean;
47
+ clearSearchOnClose: boolean;
48
+ showCreateOptionWhen: string;
53
49
  };
54
50
  arrow: {
55
51
  ring: string;
@@ -59,5 +55,16 @@ declare const _default: {
59
55
  shadow: string;
60
56
  placement: string;
61
57
  };
58
+ container: string;
59
+ trigger: string;
60
+ width: string;
61
+ height: string;
62
+ base: string;
63
+ background: string;
64
+ shadow: string;
65
+ rounded: string;
66
+ padding: string;
67
+ ring: string;
68
+ empty: string;
62
69
  };
63
70
  export default _default;
@@ -1,44 +1,14 @@
1
- import _popperArrow from "../_popperArrow.mjs";
1
+ import { arrow } from "../popper.mjs";
2
+ import inputMenu from "./inputMenu.mjs";
2
3
  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",
4
+ ...inputMenu,
5
+ select: "inline-flex items-center text-left cursor-default",
6
+ 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 sticky -top-1 -mt-1 mb-1 -mx-1 z-10 placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none",
7
+ required: "absolute inset-0 w-px opacity-0 cursor-default",
8
+ label: "block truncate",
13
9
  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
- }
10
+ ...inputMenu.option,
11
+ create: "block truncate"
42
12
  },
43
13
  // Syntax for `<Transition>` component https://vuejs.org/guide/built-ins/transition.html#css-based-transitions
44
14
  transition: {
@@ -51,10 +21,11 @@ export default {
51
21
  },
52
22
  default: {
53
23
  selectedIcon: "i-heroicons-check-20-solid",
54
- clearOnClose: false
24
+ clearSearchOnClose: false,
25
+ showCreateOptionWhen: "empty"
55
26
  },
56
27
  arrow: {
57
- ..._popperArrow,
28
+ ...arrow,
58
29
  ring: "before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",
59
30
  background: "before:bg-white dark:before:bg-gray-700"
60
31
  }
@@ -1,4 +1,5 @@
1
1
  declare const _default: {
2
+ form: string;
2
3
  default: {
3
4
  size: string;
4
5
  color: string;
@@ -67,6 +68,7 @@ declare const _default: {
67
68
  icon: {
68
69
  base: string;
69
70
  color: string;
71
+ loading: string;
70
72
  size: {
71
73
  '2xs': string;
72
74
  xs: string;
@@ -1,6 +1,7 @@
1
1
  import input from "./input.mjs";
2
2
  export default {
3
3
  ...input,
4
+ form: "form-textarea",
4
5
  default: {
5
6
  size: "sm",
6
7
  color: "white",
@@ -13,6 +13,7 @@ export { default as progress } from './elements/progress';
13
13
  export { default as meter } from './elements/meter';
14
14
  export { default as meterGroup } from './elements/meterGroup';
15
15
  export { default as input } from './forms/input';
16
+ export { default as inputMenu } from './forms/inputMenu';
16
17
  export { default as formGroup } from './forms/formGroup';
17
18
  export { default as textarea } from './forms/textarea';
18
19
  export { default as select } from './forms/select';