uisv 0.0.1 → 0.0.3

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 (317) hide show
  1. package/package.json +15 -3
  2. package/dist/components/alert.svelte +0 -244
  3. package/dist/components/alert.svelte.d.ts +0 -25
  4. package/dist/components/badge.svelte +0 -227
  5. package/dist/components/badge.svelte.d.ts +0 -19
  6. package/dist/components/button.svelte +0 -383
  7. package/dist/components/button.svelte.d.ts +0 -51
  8. package/dist/components/index.d.ts +0 -6
  9. package/dist/components/index.js +0 -6
  10. package/dist/index.d.ts +0 -2
  11. package/dist/index.js +0 -2
  12. package/dist/theme/accordion.d.ts +0 -21
  13. package/dist/theme/accordion.js +0 -20
  14. package/dist/theme/alert.d.ts +0 -45
  15. package/dist/theme/alert.js +0 -102
  16. package/dist/theme/auth-form.d.ts +0 -21
  17. package/dist/theme/auth-form.js +0 -20
  18. package/dist/theme/avatar-group.d.ts +0 -41
  19. package/dist/theme/avatar-group.js +0 -40
  20. package/dist/theme/avatar.d.ts +0 -43
  21. package/dist/theme/avatar.js +0 -42
  22. package/dist/theme/badge.d.ts +0 -18
  23. package/dist/theme/badge.js +0 -131
  24. package/dist/theme/banner.d.ts +0 -29
  25. package/dist/theme/banner.js +0 -42
  26. package/dist/theme/blog-post.d.ts +0 -112
  27. package/dist/theme/blog-post.js +0 -116
  28. package/dist/theme/blog-posts.d.ts +0 -10
  29. package/dist/theme/blog-posts.js +0 -9
  30. package/dist/theme/breadcrumb.d.ts +0 -41
  31. package/dist/theme/breadcrumb.js +0 -42
  32. package/dist/theme/button.d.ts +0 -19
  33. package/dist/theme/button.js +0 -194
  34. package/dist/theme/calendar.d.ts +0 -59
  35. package/dist/theme/calendar.js +0 -68
  36. package/dist/theme/card.d.ts +0 -28
  37. package/dist/theme/card.js +0 -27
  38. package/dist/theme/carousel.d.ts +0 -36
  39. package/dist/theme/carousel.js +0 -38
  40. package/dist/theme/changelog-version.d.ts +0 -42
  41. package/dist/theme/changelog-version.js +0 -41
  42. package/dist/theme/changelog-versions.d.ts +0 -9
  43. package/dist/theme/changelog-versions.js +0 -8
  44. package/dist/theme/chat-message.d.ts +0 -101
  45. package/dist/theme/chat-message.js +0 -97
  46. package/dist/theme/chat-messages.d.ts +0 -15
  47. package/dist/theme/chat-messages.js +0 -14
  48. package/dist/theme/chat-palette.d.ts +0 -9
  49. package/dist/theme/chat-palette.js +0 -8
  50. package/dist/theme/chat-prompt-submit.d.ts +0 -6
  51. package/dist/theme/chat-prompt-submit.js +0 -5
  52. package/dist/theme/chat-prompt.d.ts +0 -29
  53. package/dist/theme/chat-prompt.js +0 -28
  54. package/dist/theme/checkbox-group.d.ts +0 -62
  55. package/dist/theme/checkbox-group.js +0 -105
  56. package/dist/theme/checkbox.d.ts +0 -92
  57. package/dist/theme/checkbox.js +0 -125
  58. package/dist/theme/chip.d.ts +0 -45
  59. package/dist/theme/chip.js +0 -62
  60. package/dist/theme/collapsible.d.ts +0 -7
  61. package/dist/theme/collapsible.js +0 -6
  62. package/dist/theme/color-picker.d.ts +0 -40
  63. package/dist/theme/color-picker.js +0 -39
  64. package/dist/theme/command-palette.d.ts +0 -47
  65. package/dist/theme/command-palette.js +0 -52
  66. package/dist/theme/container.d.ts +0 -4
  67. package/dist/theme/container.js +0 -3
  68. package/dist/theme/content/content-navigation.d.ts +0 -65
  69. package/dist/theme/content/content-navigation.js +0 -153
  70. package/dist/theme/content/content-search-button.d.ts +0 -7
  71. package/dist/theme/content/content-search-button.js +0 -6
  72. package/dist/theme/content/content-search.d.ts +0 -7
  73. package/dist/theme/content/content-search.js +0 -6
  74. package/dist/theme/content/content-surround.d.ts +0 -23
  75. package/dist/theme/content/content-surround.js +0 -21
  76. package/dist/theme/content/content-toc.d.ts +0 -53
  77. package/dist/theme/content/content-toc.js +0 -69
  78. package/dist/theme/content/index.d.ts +0 -5
  79. package/dist/theme/content/index.js +0 -5
  80. package/dist/theme/context-menu.d.ts +0 -91
  81. package/dist/theme/context-menu.js +0 -114
  82. package/dist/theme/dashboard-group.d.ts +0 -4
  83. package/dist/theme/dashboard-group.js +0 -3
  84. package/dist/theme/dashboard-navbar.d.ts +0 -22
  85. package/dist/theme/dashboard-navbar.js +0 -21
  86. package/dist/theme/dashboard-panel.d.ts +0 -18
  87. package/dist/theme/dashboard-panel.js +0 -17
  88. package/dist/theme/dashboard-resize-handle.d.ts +0 -4
  89. package/dist/theme/dashboard-resize-handle.js +0 -3
  90. package/dist/theme/dashboard-search-button.d.ts +0 -7
  91. package/dist/theme/dashboard-search-button.js +0 -6
  92. package/dist/theme/dashboard-search.d.ts +0 -7
  93. package/dist/theme/dashboard-search.js +0 -6
  94. package/dist/theme/dashboard-sidebar-collapse.d.ts +0 -10
  95. package/dist/theme/dashboard-sidebar-collapse.js +0 -9
  96. package/dist/theme/dashboard-sidebar-toggle.d.ts +0 -10
  97. package/dist/theme/dashboard-sidebar-toggle.js +0 -9
  98. package/dist/theme/dashboard-sidebar.d.ts +0 -38
  99. package/dist/theme/dashboard-sidebar.js +0 -37
  100. package/dist/theme/dashboard-toolbar.d.ts +0 -8
  101. package/dist/theme/dashboard-toolbar.js +0 -7
  102. package/dist/theme/drawer.d.ts +0 -54
  103. package/dist/theme/drawer.js +0 -110
  104. package/dist/theme/dropdown-menu.d.ts +0 -92
  105. package/dist/theme/dropdown-menu.js +0 -115
  106. package/dist/theme/error.d.ts +0 -10
  107. package/dist/theme/error.js +0 -9
  108. package/dist/theme/file-upload.d.ts +0 -100
  109. package/dist/theme/file-upload.js +0 -212
  110. package/dist/theme/footer-columns.d.ts +0 -27
  111. package/dist/theme/footer-columns.js +0 -25
  112. package/dist/theme/footer.d.ts +0 -12
  113. package/dist/theme/footer.js +0 -11
  114. package/dist/theme/form-field.d.ts +0 -41
  115. package/dist/theme/form-field.js +0 -30
  116. package/dist/theme/form.d.ts +0 -4
  117. package/dist/theme/form.js +0 -3
  118. package/dist/theme/header.d.ts +0 -26
  119. package/dist/theme/header.js +0 -25
  120. package/dist/theme/icons.d.ts +0 -44
  121. package/dist/theme/icons.js +0 -43
  122. package/dist/theme/index.d.ts +0 -99
  123. package/dist/theme/index.js +0 -99
  124. package/dist/theme/input-menu.d.ts +0 -159
  125. package/dist/theme/input-menu.js +0 -136
  126. package/dist/theme/input-number.d.ts +0 -16
  127. package/dist/theme/input-number.js +0 -130
  128. package/dist/theme/input-tags.d.ts +0 -86
  129. package/dist/theme/input-tags.js +0 -50
  130. package/dist/theme/input.d.ts +0 -20
  131. package/dist/theme/input.js +0 -179
  132. package/dist/theme/kbd.d.ts +0 -26
  133. package/dist/theme/kbd.js +0 -67
  134. package/dist/theme/link.d.ts +0 -18
  135. package/dist/theme/link.js +0 -19
  136. package/dist/theme/main.d.ts +0 -4
  137. package/dist/theme/main.js +0 -3
  138. package/dist/theme/marquee.d.ts +0 -47
  139. package/dist/theme/marquee.js +0 -56
  140. package/dist/theme/modal.d.ts +0 -30
  141. package/dist/theme/modal.js +0 -29
  142. package/dist/theme/navigation-menu.d.ts +0 -108
  143. package/dist/theme/navigation-menu.js +0 -315
  144. package/dist/theme/page-anchors.d.ts +0 -26
  145. package/dist/theme/page-anchors.js +0 -24
  146. package/dist/theme/page-aside.d.ts +0 -11
  147. package/dist/theme/page-aside.js +0 -10
  148. package/dist/theme/page-body.d.ts +0 -4
  149. package/dist/theme/page-body.js +0 -3
  150. package/dist/theme/page-card.d.ts +0 -90
  151. package/dist/theme/page-card.js +0 -156
  152. package/dist/theme/page-columns.d.ts +0 -4
  153. package/dist/theme/page-columns.js +0 -3
  154. package/dist/theme/page-cta.d.ts +0 -63
  155. package/dist/theme/page-cta.js +0 -62
  156. package/dist/theme/page-feature.d.ts +0 -27
  157. package/dist/theme/page-feature.js +0 -26
  158. package/dist/theme/page-grid.d.ts +0 -4
  159. package/dist/theme/page-grid.js +0 -3
  160. package/dist/theme/page-header.d.ts +0 -19
  161. package/dist/theme/page-header.js +0 -18
  162. package/dist/theme/page-hero.d.ts +0 -45
  163. package/dist/theme/page-hero.js +0 -44
  164. package/dist/theme/page-links.d.ts +0 -24
  165. package/dist/theme/page-links.js +0 -22
  166. package/dist/theme/page-list.d.ts +0 -9
  167. package/dist/theme/page-list.js +0 -8
  168. package/dist/theme/page-logos.d.ts +0 -16
  169. package/dist/theme/page-logos.js +0 -15
  170. package/dist/theme/page-section.d.ts +0 -85
  171. package/dist/theme/page-section.js +0 -75
  172. package/dist/theme/page.d.ts +0 -24
  173. package/dist/theme/page.js +0 -29
  174. package/dist/theme/pagination.d.ts +0 -14
  175. package/dist/theme/pagination.js +0 -13
  176. package/dist/theme/pin-input.d.ts +0 -45
  177. package/dist/theme/pin-input.js +0 -69
  178. package/dist/theme/popover.d.ts +0 -7
  179. package/dist/theme/popover.js +0 -6
  180. package/dist/theme/pricing-plan.d.ts +0 -81
  181. package/dist/theme/pricing-plan.js +0 -86
  182. package/dist/theme/pricing-plans.d.ts +0 -21
  183. package/dist/theme/pricing-plans.js +0 -20
  184. package/dist/theme/pricing-table.d.ts +0 -52
  185. package/dist/theme/pricing-table.js +0 -51
  186. package/dist/theme/progress.d.ts +0 -131
  187. package/dist/theme/progress.js +0 -241
  188. package/dist/theme/prose/a.d.ts +0 -5
  189. package/dist/theme/prose/a.js +0 -3
  190. package/dist/theme/prose/accordion-item.d.ts +0 -4
  191. package/dist/theme/prose/accordion-item.js +0 -3
  192. package/dist/theme/prose/accordion.d.ts +0 -7
  193. package/dist/theme/prose/accordion.js +0 -6
  194. package/dist/theme/prose/badge.d.ts +0 -4
  195. package/dist/theme/prose/badge.js +0 -3
  196. package/dist/theme/prose/blockquote.d.ts +0 -4
  197. package/dist/theme/prose/blockquote.js +0 -3
  198. package/dist/theme/prose/callout.d.ts +0 -25
  199. package/dist/theme/prose/callout.js +0 -42
  200. package/dist/theme/prose/card-group.d.ts +0 -4
  201. package/dist/theme/prose/card-group.js +0 -3
  202. package/dist/theme/prose/card.d.ts +0 -30
  203. package/dist/theme/prose/card.js +0 -45
  204. package/dist/theme/prose/code-collapse.d.ts +0 -20
  205. package/dist/theme/prose/code-collapse.js +0 -19
  206. package/dist/theme/prose/code-group.d.ts +0 -12
  207. package/dist/theme/prose/code-group.js +0 -10
  208. package/dist/theme/prose/code-icon.d.ts +0 -67
  209. package/dist/theme/prose/code-icon.js +0 -66
  210. package/dist/theme/prose/code-preview.d.ts +0 -15
  211. package/dist/theme/prose/code-preview.js +0 -14
  212. package/dist/theme/prose/code-tree.d.ts +0 -27
  213. package/dist/theme/prose/code-tree.js +0 -25
  214. package/dist/theme/prose/code.d.ts +0 -13
  215. package/dist/theme/prose/code.js +0 -12
  216. package/dist/theme/prose/collapsible.d.ts +0 -11
  217. package/dist/theme/prose/collapsible.js +0 -9
  218. package/dist/theme/prose/em.d.ts +0 -4
  219. package/dist/theme/prose/em.js +0 -3
  220. package/dist/theme/prose/field-group.d.ts +0 -4
  221. package/dist/theme/prose/field-group.js +0 -3
  222. package/dist/theme/prose/field.d.ts +0 -12
  223. package/dist/theme/prose/field.js +0 -11
  224. package/dist/theme/prose/h1.d.ts +0 -7
  225. package/dist/theme/prose/h1.js +0 -6
  226. package/dist/theme/prose/h2.d.ts +0 -10
  227. package/dist/theme/prose/h2.js +0 -8
  228. package/dist/theme/prose/h3.d.ts +0 -10
  229. package/dist/theme/prose/h3.js +0 -8
  230. package/dist/theme/prose/h4.d.ts +0 -7
  231. package/dist/theme/prose/h4.js +0 -6
  232. package/dist/theme/prose/hr.d.ts +0 -4
  233. package/dist/theme/prose/hr.js +0 -3
  234. package/dist/theme/prose/icon.d.ts +0 -4
  235. package/dist/theme/prose/icon.js +0 -3
  236. package/dist/theme/prose/img.d.ts +0 -21
  237. package/dist/theme/prose/img.js +0 -20
  238. package/dist/theme/prose/index.d.ts +0 -41
  239. package/dist/theme/prose/index.js +0 -41
  240. package/dist/theme/prose/kbd.d.ts +0 -4
  241. package/dist/theme/prose/kbd.js +0 -3
  242. package/dist/theme/prose/li.d.ts +0 -4
  243. package/dist/theme/prose/li.js +0 -3
  244. package/dist/theme/prose/ol.d.ts +0 -4
  245. package/dist/theme/prose/ol.js +0 -3
  246. package/dist/theme/prose/p.d.ts +0 -4
  247. package/dist/theme/prose/p.js +0 -3
  248. package/dist/theme/prose/pre.d.ts +0 -18
  249. package/dist/theme/prose/pre.js +0 -17
  250. package/dist/theme/prose/steps.d.ts +0 -14
  251. package/dist/theme/prose/steps.js +0 -13
  252. package/dist/theme/prose/strong.d.ts +0 -4
  253. package/dist/theme/prose/strong.js +0 -3
  254. package/dist/theme/prose/table.d.ts +0 -7
  255. package/dist/theme/prose/table.js +0 -6
  256. package/dist/theme/prose/tabs-item.d.ts +0 -4
  257. package/dist/theme/prose/tabs-item.js +0 -3
  258. package/dist/theme/prose/tabs.d.ts +0 -6
  259. package/dist/theme/prose/tabs.js +0 -5
  260. package/dist/theme/prose/tbody.d.ts +0 -4
  261. package/dist/theme/prose/tbody.js +0 -3
  262. package/dist/theme/prose/td.d.ts +0 -4
  263. package/dist/theme/prose/td.js +0 -3
  264. package/dist/theme/prose/th.d.ts +0 -4
  265. package/dist/theme/prose/th.js +0 -3
  266. package/dist/theme/prose/thead.d.ts +0 -4
  267. package/dist/theme/prose/thead.js +0 -3
  268. package/dist/theme/prose/tr.d.ts +0 -4
  269. package/dist/theme/prose/tr.js +0 -3
  270. package/dist/theme/prose/ul.d.ts +0 -4
  271. package/dist/theme/prose/ul.js +0 -3
  272. package/dist/theme/radio-group.d.ts +0 -117
  273. package/dist/theme/radio-group.js +0 -180
  274. package/dist/theme/select-menu.d.ts +0 -141
  275. package/dist/theme/select-menu.js +0 -21
  276. package/dist/theme/select.d.ts +0 -86
  277. package/dist/theme/select.js +0 -100
  278. package/dist/theme/separator.d.ts +0 -61
  279. package/dist/theme/separator.js +0 -104
  280. package/dist/theme/skeleton.d.ts +0 -4
  281. package/dist/theme/skeleton.js +0 -3
  282. package/dist/theme/slideover.d.ts +0 -42
  283. package/dist/theme/slideover.js +0 -59
  284. package/dist/theme/slider.d.ts +0 -60
  285. package/dist/theme/slider.js +0 -131
  286. package/dist/theme/stepper.d.ts +0 -94
  287. package/dist/theme/stepper.js +0 -137
  288. package/dist/theme/switch.d.ts +0 -84
  289. package/dist/theme/switch.js +0 -96
  290. package/dist/theme/table.d.ts +0 -56
  291. package/dist/theme/table.js +0 -99
  292. package/dist/theme/tabs.d.ts +0 -78
  293. package/dist/theme/tabs.js +0 -145
  294. package/dist/theme/textarea.d.ts +0 -72
  295. package/dist/theme/textarea.js +0 -39
  296. package/dist/theme/timeline.d.ts +0 -52
  297. package/dist/theme/timeline.js +0 -212
  298. package/dist/theme/toast.d.ts +0 -41
  299. package/dist/theme/toast.js +0 -47
  300. package/dist/theme/toaster.d.ts +0 -50
  301. package/dist/theme/toaster.js +0 -56
  302. package/dist/theme/tooltip.d.ts +0 -10
  303. package/dist/theme/tooltip.js +0 -9
  304. package/dist/theme/tree.d.ts +0 -66
  305. package/dist/theme/tree.js +0 -89
  306. package/dist/theme/user.d.ts +0 -85
  307. package/dist/theme/user.js +0 -83
  308. package/dist/types.d.ts +0 -7
  309. package/dist/types.js +0 -1
  310. package/dist/utils/common.d.ts +0 -14
  311. package/dist/utils/common.js +0 -18
  312. package/dist/utils/keys.d.ts +0 -8
  313. package/dist/utils/keys.js +0 -8
  314. package/dist/utils/types.d.ts +0 -1
  315. package/dist/utils/types.js +0 -1
  316. package/dist/vite.d.ts +0 -34
  317. package/dist/vite.js +0 -73
@@ -1,117 +0,0 @@
1
- declare const _default: (options: Required<ModuleOptions>) => {
2
- slots: {
3
- root: string;
4
- fieldset: string;
5
- legend: string;
6
- item: string;
7
- container: string;
8
- base: string;
9
- indicator: string;
10
- wrapper: string;
11
- label: string;
12
- description: string;
13
- };
14
- variants: {
15
- color: {
16
- neutral: {
17
- base: string;
18
- indicator: string;
19
- };
20
- };
21
- variant: {
22
- list: {
23
- item: string;
24
- };
25
- card: {
26
- item: string;
27
- };
28
- table: {
29
- item: string;
30
- };
31
- };
32
- orientation: {
33
- horizontal: {
34
- fieldset: string;
35
- };
36
- vertical: {
37
- fieldset: string;
38
- };
39
- };
40
- indicator: {
41
- start: {
42
- item: string;
43
- wrapper: string;
44
- };
45
- end: {
46
- item: string;
47
- wrapper: string;
48
- };
49
- hidden: {
50
- base: string;
51
- wrapper: string;
52
- };
53
- };
54
- size: {
55
- xs: {
56
- fieldset: string;
57
- legend: string;
58
- base: string;
59
- item: string;
60
- container: string;
61
- indicator: string;
62
- };
63
- sm: {
64
- fieldset: string;
65
- legend: string;
66
- base: string;
67
- item: string;
68
- container: string;
69
- indicator: string;
70
- };
71
- md: {
72
- fieldset: string;
73
- legend: string;
74
- base: string;
75
- item: string;
76
- container: string;
77
- indicator: string;
78
- };
79
- lg: {
80
- fieldset: string;
81
- legend: string;
82
- base: string;
83
- item: string;
84
- container: string;
85
- indicator: string;
86
- };
87
- xl: {
88
- fieldset: string;
89
- legend: string;
90
- base: string;
91
- item: string;
92
- container: string;
93
- indicator: string;
94
- };
95
- };
96
- disabled: {
97
- true: {
98
- base: string;
99
- label: string;
100
- };
101
- };
102
- required: {
103
- true: {
104
- legend: string;
105
- };
106
- };
107
- };
108
- compoundVariants: any[];
109
- defaultVariants: {
110
- size: string;
111
- color: string;
112
- variant: string;
113
- orientation: string;
114
- indicator: string;
115
- };
116
- };
117
- export default _default;
@@ -1,180 +0,0 @@
1
- export default (options) => ({
2
- slots: {
3
- root: 'relative',
4
- fieldset: 'flex gap-x-2',
5
- legend: 'mb-1 block font-medium text-default',
6
- item: 'flex items-start',
7
- container: 'flex items-center',
8
- base: 'rounded-full ring ring-inset ring-accented overflow-hidden focus-visible:outline-2 focus-visible:outline-offset-2',
9
- indicator: 'flex items-center justify-center size-full after:bg-default after:rounded-full',
10
- wrapper: 'w-full',
11
- label: 'block font-medium text-default',
12
- description: 'text-muted'
13
- },
14
- variants: {
15
- color: {
16
- ...Object.fromEntries((options.theme.colors || []).map((color) => [
17
- color,
18
- {
19
- base: `focus-visible:outline-${color}`,
20
- indicator: `bg-${color}`
21
- }
22
- ])),
23
- neutral: {
24
- base: 'focus-visible:outline-inverted',
25
- indicator: 'bg-inverted'
26
- }
27
- },
28
- variant: {
29
- list: {
30
- item: ''
31
- },
32
- card: {
33
- item: 'border border-muted rounded-lg'
34
- },
35
- table: {
36
- item: 'border border-muted'
37
- }
38
- },
39
- orientation: {
40
- horizontal: {
41
- fieldset: 'flex-row'
42
- },
43
- vertical: {
44
- fieldset: 'flex-col'
45
- }
46
- },
47
- indicator: {
48
- start: {
49
- item: 'flex-row',
50
- wrapper: 'ms-2'
51
- },
52
- end: {
53
- item: 'flex-row-reverse',
54
- wrapper: 'me-2'
55
- },
56
- hidden: {
57
- base: 'sr-only',
58
- wrapper: 'text-center'
59
- }
60
- },
61
- size: {
62
- xs: {
63
- fieldset: 'gap-y-0.5',
64
- legend: 'text-xs',
65
- base: 'size-3',
66
- item: 'text-xs',
67
- container: 'h-4',
68
- indicator: 'after:size-1'
69
- },
70
- sm: {
71
- fieldset: 'gap-y-0.5',
72
- legend: 'text-xs',
73
- base: 'size-3.5',
74
- item: 'text-xs',
75
- container: 'h-4',
76
- indicator: 'after:size-1'
77
- },
78
- md: {
79
- fieldset: 'gap-y-1',
80
- legend: 'text-sm',
81
- base: 'size-4',
82
- item: 'text-sm',
83
- container: 'h-5',
84
- indicator: 'after:size-1.5'
85
- },
86
- lg: {
87
- fieldset: 'gap-y-1',
88
- legend: 'text-sm',
89
- base: 'size-4.5',
90
- item: 'text-sm',
91
- container: 'h-5',
92
- indicator: 'after:size-1.5'
93
- },
94
- xl: {
95
- fieldset: 'gap-y-1.5',
96
- legend: 'text-base',
97
- base: 'size-5',
98
- item: 'text-base',
99
- container: 'h-6',
100
- indicator: 'after:size-2'
101
- }
102
- },
103
- disabled: {
104
- true: {
105
- base: 'cursor-not-allowed opacity-75',
106
- label: 'cursor-not-allowed opacity-75'
107
- }
108
- },
109
- required: {
110
- true: {
111
- legend: "after:content-['*'] after:ms-0.5 after:text-error"
112
- }
113
- }
114
- },
115
- compoundVariants: [
116
- { size: 'xs', variant: ['card', 'table'], class: { item: 'p-2.5' } },
117
- { size: 'sm', variant: ['card', 'table'], class: { item: 'p-3' } },
118
- { size: 'md', variant: ['card', 'table'], class: { item: 'p-3.5' } },
119
- { size: 'lg', variant: ['card', 'table'], class: { item: 'p-4' } },
120
- { size: 'xl', variant: ['card', 'table'], class: { item: 'p-4.5' } },
121
- {
122
- orientation: 'horizontal',
123
- variant: 'table',
124
- class: {
125
- item: 'first-of-type:rounded-s-lg last-of-type:rounded-e-lg',
126
- fieldset: 'gap-0 -space-x-px'
127
- }
128
- },
129
- {
130
- orientation: 'vertical',
131
- variant: 'table',
132
- class: {
133
- item: 'first-of-type:rounded-t-lg last-of-type:rounded-b-lg',
134
- fieldset: 'gap-0 -space-y-px'
135
- }
136
- },
137
- ...(options.theme.colors || []).map((color) => ({
138
- color,
139
- variant: 'card',
140
- class: {
141
- item: `has-data-[state=checked]:border-${color}`
142
- }
143
- })),
144
- {
145
- color: 'neutral',
146
- variant: 'card',
147
- class: {
148
- item: 'has-data-[state=checked]:border-inverted'
149
- }
150
- },
151
- ...(options.theme.colors || []).map((color) => ({
152
- color,
153
- variant: 'table',
154
- class: {
155
- item: `has-data-[state=checked]:bg-${color}/10 has-data-[state=checked]:border-${color}/50 has-data-[state=checked]:z-[1]`
156
- }
157
- })),
158
- {
159
- color: 'neutral',
160
- variant: 'table',
161
- class: {
162
- item: 'has-data-[state=checked]:bg-elevated has-data-[state=checked]:border-inverted/50 has-data-[state=checked]:z-[1]'
163
- }
164
- },
165
- {
166
- variant: ['card', 'table'],
167
- disabled: true,
168
- class: {
169
- item: 'cursor-not-allowed opacity-75'
170
- }
171
- }
172
- ],
173
- defaultVariants: {
174
- size: 'md',
175
- color: 'primary',
176
- variant: 'list',
177
- orientation: 'vertical',
178
- indicator: 'start'
179
- }
180
- });
@@ -1,141 +0,0 @@
1
- declare const _default: (options: Required<ModuleOptions>) => Omit<{
2
- slots: {
3
- input: string;
4
- focusScope: string;
5
- content: (content: string) => string[];
6
- };
7
- compoundVariants: (prev: Record<string, any>[]) => {
8
- class: any;
9
- }[];
10
- }, "slots" | "compoundVariants"> & Omit<Omit<{
11
- slots: {
12
- root: () => undefined;
13
- base: () => any[];
14
- value: string;
15
- placeholder: string;
16
- arrow: string;
17
- content: string;
18
- viewport: string;
19
- group: string;
20
- empty: string;
21
- label: string;
22
- separator: string;
23
- item: any[];
24
- itemLeadingIcon: any[];
25
- itemLeadingAvatar: string;
26
- itemLeadingAvatarSize: string;
27
- itemLeadingChip: string;
28
- itemLeadingChipSize: string;
29
- itemTrailing: string;
30
- itemTrailingIcon: string;
31
- itemLabel: string;
32
- };
33
- variants: any;
34
- compoundVariants: (prev: Record<string, any>[]) => {
35
- class: any;
36
- }[];
37
- }, "variants" | "slots" | "compoundVariants"> & Omit<{
38
- slots: {
39
- root: string;
40
- base: any[];
41
- leading: string;
42
- leadingIcon: string;
43
- leadingAvatar: string;
44
- leadingAvatarSize: string;
45
- trailing: string;
46
- trailingIcon: string;
47
- };
48
- variants: any;
49
- compoundVariants: any[];
50
- defaultVariants: {
51
- size: string;
52
- color: string;
53
- variant: string;
54
- };
55
- }, "variants" | "slots" | "compoundVariants"> & {
56
- variants: any;
57
- slots: Omit<{
58
- root: () => undefined;
59
- base: () => any[];
60
- value: string;
61
- placeholder: string;
62
- arrow: string;
63
- content: string;
64
- viewport: string;
65
- group: string;
66
- empty: string;
67
- label: string;
68
- separator: string;
69
- item: any[];
70
- itemLeadingIcon: any[];
71
- itemLeadingAvatar: string;
72
- itemLeadingAvatarSize: string;
73
- itemLeadingChip: string;
74
- itemLeadingChipSize: string;
75
- itemTrailing: string;
76
- itemTrailingIcon: string;
77
- itemLabel: string;
78
- }, "base" | "root"> & Omit<{
79
- root: string;
80
- base: any[];
81
- leading: string;
82
- leadingIcon: string;
83
- leadingAvatar: string;
84
- leadingAvatarSize: string;
85
- trailing: string;
86
- trailingIcon: string;
87
- }, "base" | "root"> & {
88
- base: any[] | (() => any[]);
89
- root: string | (() => undefined);
90
- };
91
- compoundVariants: any[] | ((prev: Record<string, any>[]) => {
92
- class: any;
93
- }[]);
94
- }, "slots" | "compoundVariants"> & {
95
- slots: Omit<{
96
- input: string;
97
- focusScope: string;
98
- content: (content: string) => string[];
99
- }, "content"> & Omit<Omit<{
100
- root: () => undefined;
101
- base: () => any[];
102
- value: string;
103
- placeholder: string;
104
- arrow: string;
105
- content: string;
106
- viewport: string;
107
- group: string;
108
- empty: string;
109
- label: string;
110
- separator: string;
111
- item: any[];
112
- itemLeadingIcon: any[];
113
- itemLeadingAvatar: string;
114
- itemLeadingAvatarSize: string;
115
- itemLeadingChip: string;
116
- itemLeadingChipSize: string;
117
- itemTrailing: string;
118
- itemTrailingIcon: string;
119
- itemLabel: string;
120
- }, "base" | "root"> & Omit<{
121
- root: string;
122
- base: any[];
123
- leading: string;
124
- leadingIcon: string;
125
- leadingAvatar: string;
126
- leadingAvatarSize: string;
127
- trailing: string;
128
- trailingIcon: string;
129
- }, "base" | "root"> & {
130
- base: any[] | (() => any[]);
131
- root: string | (() => undefined);
132
- }, "content"> & {
133
- content: string | ((content: string) => string[]);
134
- };
135
- compoundVariants: any[] | ((prev: Record<string, any>[]) => {
136
- class: any;
137
- }[]) | ((prev: Record<string, any>[]) => {
138
- class: any;
139
- }[]);
140
- };
141
- export default _default;
@@ -1,21 +0,0 @@
1
- import { defuFn } from 'defu';
2
- import select from './select';
3
- export default (options) => {
4
- return defuFn({
5
- slots: {
6
- input: 'border-b border-default',
7
- focusScope: 'flex flex-col min-h-0',
8
- content: (content) => [
9
- content,
10
- 'origin-(--reka-combobox-content-transform-origin) w-(--reka-combobox-trigger-width)'
11
- ]
12
- },
13
- compoundVariants: (prev) => prev.map((item) => ({
14
- ...item,
15
- class: typeof item.class === 'string' ? replaceFocus(item.class) : item.class
16
- }))
17
- }, select(options));
18
- };
19
- function replaceFocus(str) {
20
- return str.replace(/focus:/g, 'focus-visible:');
21
- }
@@ -1,86 +0,0 @@
1
- declare const _default: (options: Required<ModuleOptions>) => Omit<{
2
- slots: {
3
- root: () => undefined;
4
- base: () => any[];
5
- value: string;
6
- placeholder: string;
7
- arrow: string;
8
- content: string;
9
- viewport: string;
10
- group: string;
11
- empty: string;
12
- label: string;
13
- separator: string;
14
- item: any[];
15
- itemLeadingIcon: any[];
16
- itemLeadingAvatar: string;
17
- itemLeadingAvatarSize: string;
18
- itemLeadingChip: string;
19
- itemLeadingChipSize: string;
20
- itemTrailing: string;
21
- itemTrailingIcon: string;
22
- itemLabel: string;
23
- };
24
- variants: any;
25
- compoundVariants: (prev: Record<string, any>[]) => {
26
- class: any;
27
- }[];
28
- }, "variants" | "slots" | "compoundVariants"> & Omit<{
29
- slots: {
30
- root: string;
31
- base: any[];
32
- leading: string;
33
- leadingIcon: string;
34
- leadingAvatar: string;
35
- leadingAvatarSize: string;
36
- trailing: string;
37
- trailingIcon: string;
38
- };
39
- variants: any;
40
- compoundVariants: any[];
41
- defaultVariants: {
42
- size: string;
43
- color: string;
44
- variant: string;
45
- };
46
- }, "variants" | "slots" | "compoundVariants"> & {
47
- variants: any;
48
- slots: Omit<{
49
- root: () => undefined;
50
- base: () => any[];
51
- value: string;
52
- placeholder: string;
53
- arrow: string;
54
- content: string;
55
- viewport: string;
56
- group: string;
57
- empty: string;
58
- label: string;
59
- separator: string;
60
- item: any[];
61
- itemLeadingIcon: any[];
62
- itemLeadingAvatar: string;
63
- itemLeadingAvatarSize: string;
64
- itemLeadingChip: string;
65
- itemLeadingChipSize: string;
66
- itemTrailing: string;
67
- itemTrailingIcon: string;
68
- itemLabel: string;
69
- }, "base" | "root"> & Omit<{
70
- root: string;
71
- base: any[];
72
- leading: string;
73
- leadingIcon: string;
74
- leadingAvatar: string;
75
- leadingAvatarSize: string;
76
- trailing: string;
77
- trailingIcon: string;
78
- }, "base" | "root"> & {
79
- base: any[] | (() => any[]);
80
- root: string | (() => undefined);
81
- };
82
- compoundVariants: any[] | ((prev: Record<string, any>[]) => {
83
- class: any;
84
- }[]);
85
- };
86
- export default _default;
@@ -1,100 +0,0 @@
1
- import { defuFn } from 'defu';
2
- import input from './input';
3
- import { fieldGroupVariant } from './field-group';
4
- export default (options) => {
5
- return defuFn({
6
- slots: {
7
- root: () => undefined,
8
- base: () => [
9
- 'relative group rounded-md inline-flex items-center focus:outline-none disabled:cursor-not-allowed disabled:opacity-75',
10
- options.theme.transitions && 'transition-colors'
11
- ],
12
- value: 'truncate pointer-events-none',
13
- placeholder: 'truncate text-dimmed',
14
- arrow: 'fill-default',
15
- content: 'max-h-60 w-(--reka-select-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-select-content-transform-origin) pointer-events-auto flex flex-col',
16
- viewport: 'relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1',
17
- group: 'p-1 isolate',
18
- empty: 'text-center text-muted',
19
- label: 'font-semibold text-highlighted',
20
- separator: '-mx-1 my-1 h-px bg-border',
21
- item: [
22
- 'group relative w-full flex items-center select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50',
23
- options.theme.transitions && 'transition-colors before:transition-colors'
24
- ],
25
- itemLeadingIcon: [
26
- 'shrink-0 text-dimmed group-data-highlighted:not-group-data-disabled:text-default',
27
- options.theme.transitions && 'transition-colors'
28
- ],
29
- itemLeadingAvatar: 'shrink-0',
30
- itemLeadingAvatarSize: '',
31
- itemLeadingChip: 'shrink-0',
32
- itemLeadingChipSize: '',
33
- itemTrailing: 'ms-auto inline-flex gap-1.5 items-center',
34
- itemTrailingIcon: 'shrink-0',
35
- itemLabel: 'truncate'
36
- },
37
- variants: {
38
- ...fieldGroupVariant,
39
- size: {
40
- xs: {
41
- label: 'p-1 text-[10px]/3 gap-1',
42
- item: 'p-1 text-xs gap-1',
43
- itemLeadingIcon: 'size-4',
44
- itemLeadingAvatarSize: '3xs',
45
- itemLeadingChip: 'size-4',
46
- itemLeadingChipSize: 'sm',
47
- itemTrailingIcon: 'size-4',
48
- empty: 'p-1 text-xs'
49
- },
50
- sm: {
51
- label: 'p-1.5 text-[10px]/3 gap-1.5',
52
- item: 'p-1.5 text-xs gap-1.5',
53
- itemLeadingIcon: 'size-4',
54
- itemLeadingAvatarSize: '3xs',
55
- itemLeadingChip: 'size-4',
56
- itemLeadingChipSize: 'sm',
57
- itemTrailingIcon: 'size-4',
58
- empty: 'p-1.5 text-xs'
59
- },
60
- md: {
61
- label: 'p-1.5 text-xs gap-1.5',
62
- item: 'p-1.5 text-sm gap-1.5',
63
- itemLeadingIcon: 'size-5',
64
- itemLeadingAvatarSize: '2xs',
65
- itemLeadingChip: 'size-5',
66
- itemLeadingChipSize: 'md',
67
- itemTrailingIcon: 'size-5',
68
- empty: 'p-1.5 text-sm'
69
- },
70
- lg: {
71
- label: 'p-2 text-xs gap-2',
72
- item: 'p-2 text-sm gap-2',
73
- itemLeadingIcon: 'size-5',
74
- itemLeadingAvatarSize: '2xs',
75
- itemLeadingChip: 'size-5',
76
- itemLeadingChipSize: 'md',
77
- itemTrailingIcon: 'size-5',
78
- empty: 'p-2 text-sm'
79
- },
80
- xl: {
81
- label: 'p-2 text-sm gap-2',
82
- item: 'p-2 text-base gap-2',
83
- itemLeadingIcon: 'size-6',
84
- itemLeadingAvatarSize: 'xs',
85
- itemLeadingChip: 'size-6',
86
- itemLeadingChipSize: 'lg',
87
- itemTrailingIcon: 'size-6',
88
- empty: 'p-2 text-base'
89
- }
90
- }
91
- },
92
- compoundVariants: (prev) => prev.map((item) => ({
93
- ...item,
94
- class: typeof item.class === 'string' ? replaceFocus(item.class) : item.class
95
- }))
96
- }, input(options));
97
- };
98
- function replaceFocus(str) {
99
- return str.replace(/focus-visible:/g, 'focus:');
100
- }