uisv 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +26 -0
  3. package/dist/components/alert.svelte +244 -0
  4. package/dist/components/alert.svelte.d.ts +25 -0
  5. package/dist/components/badge.svelte +227 -0
  6. package/dist/components/badge.svelte.d.ts +19 -0
  7. package/dist/components/button.svelte +383 -0
  8. package/dist/components/button.svelte.d.ts +51 -0
  9. package/dist/components/index.d.ts +6 -0
  10. package/dist/components/index.js +6 -0
  11. package/dist/index.d.ts +2 -0
  12. package/dist/index.js +2 -0
  13. package/dist/theme/accordion.d.ts +21 -0
  14. package/dist/theme/accordion.js +20 -0
  15. package/dist/theme/alert.d.ts +45 -0
  16. package/dist/theme/alert.js +102 -0
  17. package/dist/theme/auth-form.d.ts +21 -0
  18. package/dist/theme/auth-form.js +20 -0
  19. package/dist/theme/avatar-group.d.ts +41 -0
  20. package/dist/theme/avatar-group.js +40 -0
  21. package/dist/theme/avatar.d.ts +43 -0
  22. package/dist/theme/avatar.js +42 -0
  23. package/dist/theme/badge.d.ts +18 -0
  24. package/dist/theme/badge.js +131 -0
  25. package/dist/theme/banner.d.ts +29 -0
  26. package/dist/theme/banner.js +42 -0
  27. package/dist/theme/blog-post.d.ts +112 -0
  28. package/dist/theme/blog-post.js +116 -0
  29. package/dist/theme/blog-posts.d.ts +10 -0
  30. package/dist/theme/blog-posts.js +9 -0
  31. package/dist/theme/breadcrumb.d.ts +41 -0
  32. package/dist/theme/breadcrumb.js +42 -0
  33. package/dist/theme/button.d.ts +19 -0
  34. package/dist/theme/button.js +194 -0
  35. package/dist/theme/calendar.d.ts +59 -0
  36. package/dist/theme/calendar.js +68 -0
  37. package/dist/theme/card.d.ts +28 -0
  38. package/dist/theme/card.js +27 -0
  39. package/dist/theme/carousel.d.ts +36 -0
  40. package/dist/theme/carousel.js +38 -0
  41. package/dist/theme/changelog-version.d.ts +42 -0
  42. package/dist/theme/changelog-version.js +41 -0
  43. package/dist/theme/changelog-versions.d.ts +9 -0
  44. package/dist/theme/changelog-versions.js +8 -0
  45. package/dist/theme/chat-message.d.ts +101 -0
  46. package/dist/theme/chat-message.js +97 -0
  47. package/dist/theme/chat-messages.d.ts +15 -0
  48. package/dist/theme/chat-messages.js +14 -0
  49. package/dist/theme/chat-palette.d.ts +9 -0
  50. package/dist/theme/chat-palette.js +8 -0
  51. package/dist/theme/chat-prompt-submit.d.ts +6 -0
  52. package/dist/theme/chat-prompt-submit.js +5 -0
  53. package/dist/theme/chat-prompt.d.ts +29 -0
  54. package/dist/theme/chat-prompt.js +28 -0
  55. package/dist/theme/checkbox-group.d.ts +62 -0
  56. package/dist/theme/checkbox-group.js +105 -0
  57. package/dist/theme/checkbox.d.ts +92 -0
  58. package/dist/theme/checkbox.js +125 -0
  59. package/dist/theme/chip.d.ts +45 -0
  60. package/dist/theme/chip.js +62 -0
  61. package/dist/theme/collapsible.d.ts +7 -0
  62. package/dist/theme/collapsible.js +6 -0
  63. package/dist/theme/color-picker.d.ts +40 -0
  64. package/dist/theme/color-picker.js +39 -0
  65. package/dist/theme/command-palette.d.ts +47 -0
  66. package/dist/theme/command-palette.js +52 -0
  67. package/dist/theme/container.d.ts +4 -0
  68. package/dist/theme/container.js +3 -0
  69. package/dist/theme/content/content-navigation.d.ts +65 -0
  70. package/dist/theme/content/content-navigation.js +153 -0
  71. package/dist/theme/content/content-search-button.d.ts +7 -0
  72. package/dist/theme/content/content-search-button.js +6 -0
  73. package/dist/theme/content/content-search.d.ts +7 -0
  74. package/dist/theme/content/content-search.js +6 -0
  75. package/dist/theme/content/content-surround.d.ts +23 -0
  76. package/dist/theme/content/content-surround.js +21 -0
  77. package/dist/theme/content/content-toc.d.ts +53 -0
  78. package/dist/theme/content/content-toc.js +69 -0
  79. package/dist/theme/content/index.d.ts +5 -0
  80. package/dist/theme/content/index.js +5 -0
  81. package/dist/theme/context-menu.d.ts +91 -0
  82. package/dist/theme/context-menu.js +114 -0
  83. package/dist/theme/dashboard-group.d.ts +4 -0
  84. package/dist/theme/dashboard-group.js +3 -0
  85. package/dist/theme/dashboard-navbar.d.ts +22 -0
  86. package/dist/theme/dashboard-navbar.js +21 -0
  87. package/dist/theme/dashboard-panel.d.ts +18 -0
  88. package/dist/theme/dashboard-panel.js +17 -0
  89. package/dist/theme/dashboard-resize-handle.d.ts +4 -0
  90. package/dist/theme/dashboard-resize-handle.js +3 -0
  91. package/dist/theme/dashboard-search-button.d.ts +7 -0
  92. package/dist/theme/dashboard-search-button.js +6 -0
  93. package/dist/theme/dashboard-search.d.ts +7 -0
  94. package/dist/theme/dashboard-search.js +6 -0
  95. package/dist/theme/dashboard-sidebar-collapse.d.ts +10 -0
  96. package/dist/theme/dashboard-sidebar-collapse.js +9 -0
  97. package/dist/theme/dashboard-sidebar-toggle.d.ts +10 -0
  98. package/dist/theme/dashboard-sidebar-toggle.js +9 -0
  99. package/dist/theme/dashboard-sidebar.d.ts +38 -0
  100. package/dist/theme/dashboard-sidebar.js +37 -0
  101. package/dist/theme/dashboard-toolbar.d.ts +8 -0
  102. package/dist/theme/dashboard-toolbar.js +7 -0
  103. package/dist/theme/drawer.d.ts +54 -0
  104. package/dist/theme/drawer.js +110 -0
  105. package/dist/theme/dropdown-menu.d.ts +92 -0
  106. package/dist/theme/dropdown-menu.js +115 -0
  107. package/dist/theme/error.d.ts +10 -0
  108. package/dist/theme/error.js +9 -0
  109. package/dist/theme/file-upload.d.ts +100 -0
  110. package/dist/theme/file-upload.js +212 -0
  111. package/dist/theme/footer-columns.d.ts +27 -0
  112. package/dist/theme/footer-columns.js +25 -0
  113. package/dist/theme/footer.d.ts +12 -0
  114. package/dist/theme/footer.js +11 -0
  115. package/dist/theme/form-field.d.ts +41 -0
  116. package/dist/theme/form-field.js +30 -0
  117. package/dist/theme/form.d.ts +4 -0
  118. package/dist/theme/form.js +3 -0
  119. package/dist/theme/header.d.ts +26 -0
  120. package/dist/theme/header.js +25 -0
  121. package/dist/theme/icons.d.ts +44 -0
  122. package/dist/theme/icons.js +43 -0
  123. package/dist/theme/index.d.ts +99 -0
  124. package/dist/theme/index.js +99 -0
  125. package/dist/theme/input-menu.d.ts +159 -0
  126. package/dist/theme/input-menu.js +136 -0
  127. package/dist/theme/input-number.d.ts +16 -0
  128. package/dist/theme/input-number.js +130 -0
  129. package/dist/theme/input-tags.d.ts +86 -0
  130. package/dist/theme/input-tags.js +50 -0
  131. package/dist/theme/input.d.ts +20 -0
  132. package/dist/theme/input.js +179 -0
  133. package/dist/theme/kbd.d.ts +26 -0
  134. package/dist/theme/kbd.js +67 -0
  135. package/dist/theme/link.d.ts +18 -0
  136. package/dist/theme/link.js +19 -0
  137. package/dist/theme/main.d.ts +4 -0
  138. package/dist/theme/main.js +3 -0
  139. package/dist/theme/marquee.d.ts +47 -0
  140. package/dist/theme/marquee.js +56 -0
  141. package/dist/theme/modal.d.ts +30 -0
  142. package/dist/theme/modal.js +29 -0
  143. package/dist/theme/navigation-menu.d.ts +108 -0
  144. package/dist/theme/navigation-menu.js +315 -0
  145. package/dist/theme/page-anchors.d.ts +26 -0
  146. package/dist/theme/page-anchors.js +24 -0
  147. package/dist/theme/page-aside.d.ts +11 -0
  148. package/dist/theme/page-aside.js +10 -0
  149. package/dist/theme/page-body.d.ts +4 -0
  150. package/dist/theme/page-body.js +3 -0
  151. package/dist/theme/page-card.d.ts +90 -0
  152. package/dist/theme/page-card.js +156 -0
  153. package/dist/theme/page-columns.d.ts +4 -0
  154. package/dist/theme/page-columns.js +3 -0
  155. package/dist/theme/page-cta.d.ts +63 -0
  156. package/dist/theme/page-cta.js +62 -0
  157. package/dist/theme/page-feature.d.ts +27 -0
  158. package/dist/theme/page-feature.js +26 -0
  159. package/dist/theme/page-grid.d.ts +4 -0
  160. package/dist/theme/page-grid.js +3 -0
  161. package/dist/theme/page-header.d.ts +19 -0
  162. package/dist/theme/page-header.js +18 -0
  163. package/dist/theme/page-hero.d.ts +45 -0
  164. package/dist/theme/page-hero.js +44 -0
  165. package/dist/theme/page-links.d.ts +24 -0
  166. package/dist/theme/page-links.js +22 -0
  167. package/dist/theme/page-list.d.ts +9 -0
  168. package/dist/theme/page-list.js +8 -0
  169. package/dist/theme/page-logos.d.ts +16 -0
  170. package/dist/theme/page-logos.js +15 -0
  171. package/dist/theme/page-section.d.ts +85 -0
  172. package/dist/theme/page-section.js +75 -0
  173. package/dist/theme/page.d.ts +24 -0
  174. package/dist/theme/page.js +29 -0
  175. package/dist/theme/pagination.d.ts +14 -0
  176. package/dist/theme/pagination.js +13 -0
  177. package/dist/theme/pin-input.d.ts +45 -0
  178. package/dist/theme/pin-input.js +69 -0
  179. package/dist/theme/popover.d.ts +7 -0
  180. package/dist/theme/popover.js +6 -0
  181. package/dist/theme/pricing-plan.d.ts +81 -0
  182. package/dist/theme/pricing-plan.js +86 -0
  183. package/dist/theme/pricing-plans.d.ts +21 -0
  184. package/dist/theme/pricing-plans.js +20 -0
  185. package/dist/theme/pricing-table.d.ts +52 -0
  186. package/dist/theme/pricing-table.js +51 -0
  187. package/dist/theme/progress.d.ts +131 -0
  188. package/dist/theme/progress.js +241 -0
  189. package/dist/theme/prose/a.d.ts +5 -0
  190. package/dist/theme/prose/a.js +3 -0
  191. package/dist/theme/prose/accordion-item.d.ts +4 -0
  192. package/dist/theme/prose/accordion-item.js +3 -0
  193. package/dist/theme/prose/accordion.d.ts +7 -0
  194. package/dist/theme/prose/accordion.js +6 -0
  195. package/dist/theme/prose/badge.d.ts +4 -0
  196. package/dist/theme/prose/badge.js +3 -0
  197. package/dist/theme/prose/blockquote.d.ts +4 -0
  198. package/dist/theme/prose/blockquote.js +3 -0
  199. package/dist/theme/prose/callout.d.ts +25 -0
  200. package/dist/theme/prose/callout.js +42 -0
  201. package/dist/theme/prose/card-group.d.ts +4 -0
  202. package/dist/theme/prose/card-group.js +3 -0
  203. package/dist/theme/prose/card.d.ts +30 -0
  204. package/dist/theme/prose/card.js +45 -0
  205. package/dist/theme/prose/code-collapse.d.ts +20 -0
  206. package/dist/theme/prose/code-collapse.js +19 -0
  207. package/dist/theme/prose/code-group.d.ts +12 -0
  208. package/dist/theme/prose/code-group.js +10 -0
  209. package/dist/theme/prose/code-icon.d.ts +67 -0
  210. package/dist/theme/prose/code-icon.js +66 -0
  211. package/dist/theme/prose/code-preview.d.ts +15 -0
  212. package/dist/theme/prose/code-preview.js +14 -0
  213. package/dist/theme/prose/code-tree.d.ts +27 -0
  214. package/dist/theme/prose/code-tree.js +25 -0
  215. package/dist/theme/prose/code.d.ts +13 -0
  216. package/dist/theme/prose/code.js +12 -0
  217. package/dist/theme/prose/collapsible.d.ts +11 -0
  218. package/dist/theme/prose/collapsible.js +9 -0
  219. package/dist/theme/prose/em.d.ts +4 -0
  220. package/dist/theme/prose/em.js +3 -0
  221. package/dist/theme/prose/field-group.d.ts +4 -0
  222. package/dist/theme/prose/field-group.js +3 -0
  223. package/dist/theme/prose/field.d.ts +12 -0
  224. package/dist/theme/prose/field.js +11 -0
  225. package/dist/theme/prose/h1.d.ts +7 -0
  226. package/dist/theme/prose/h1.js +6 -0
  227. package/dist/theme/prose/h2.d.ts +10 -0
  228. package/dist/theme/prose/h2.js +8 -0
  229. package/dist/theme/prose/h3.d.ts +10 -0
  230. package/dist/theme/prose/h3.js +8 -0
  231. package/dist/theme/prose/h4.d.ts +7 -0
  232. package/dist/theme/prose/h4.js +6 -0
  233. package/dist/theme/prose/hr.d.ts +4 -0
  234. package/dist/theme/prose/hr.js +3 -0
  235. package/dist/theme/prose/icon.d.ts +4 -0
  236. package/dist/theme/prose/icon.js +3 -0
  237. package/dist/theme/prose/img.d.ts +21 -0
  238. package/dist/theme/prose/img.js +20 -0
  239. package/dist/theme/prose/index.d.ts +41 -0
  240. package/dist/theme/prose/index.js +41 -0
  241. package/dist/theme/prose/kbd.d.ts +4 -0
  242. package/dist/theme/prose/kbd.js +3 -0
  243. package/dist/theme/prose/li.d.ts +4 -0
  244. package/dist/theme/prose/li.js +3 -0
  245. package/dist/theme/prose/ol.d.ts +4 -0
  246. package/dist/theme/prose/ol.js +3 -0
  247. package/dist/theme/prose/p.d.ts +4 -0
  248. package/dist/theme/prose/p.js +3 -0
  249. package/dist/theme/prose/pre.d.ts +18 -0
  250. package/dist/theme/prose/pre.js +17 -0
  251. package/dist/theme/prose/steps.d.ts +14 -0
  252. package/dist/theme/prose/steps.js +13 -0
  253. package/dist/theme/prose/strong.d.ts +4 -0
  254. package/dist/theme/prose/strong.js +3 -0
  255. package/dist/theme/prose/table.d.ts +7 -0
  256. package/dist/theme/prose/table.js +6 -0
  257. package/dist/theme/prose/tabs-item.d.ts +4 -0
  258. package/dist/theme/prose/tabs-item.js +3 -0
  259. package/dist/theme/prose/tabs.d.ts +6 -0
  260. package/dist/theme/prose/tabs.js +5 -0
  261. package/dist/theme/prose/tbody.d.ts +4 -0
  262. package/dist/theme/prose/tbody.js +3 -0
  263. package/dist/theme/prose/td.d.ts +4 -0
  264. package/dist/theme/prose/td.js +3 -0
  265. package/dist/theme/prose/th.d.ts +4 -0
  266. package/dist/theme/prose/th.js +3 -0
  267. package/dist/theme/prose/thead.d.ts +4 -0
  268. package/dist/theme/prose/thead.js +3 -0
  269. package/dist/theme/prose/tr.d.ts +4 -0
  270. package/dist/theme/prose/tr.js +3 -0
  271. package/dist/theme/prose/ul.d.ts +4 -0
  272. package/dist/theme/prose/ul.js +3 -0
  273. package/dist/theme/radio-group.d.ts +117 -0
  274. package/dist/theme/radio-group.js +180 -0
  275. package/dist/theme/select-menu.d.ts +141 -0
  276. package/dist/theme/select-menu.js +21 -0
  277. package/dist/theme/select.d.ts +86 -0
  278. package/dist/theme/select.js +100 -0
  279. package/dist/theme/separator.d.ts +61 -0
  280. package/dist/theme/separator.js +104 -0
  281. package/dist/theme/skeleton.d.ts +4 -0
  282. package/dist/theme/skeleton.js +3 -0
  283. package/dist/theme/slideover.d.ts +42 -0
  284. package/dist/theme/slideover.js +59 -0
  285. package/dist/theme/slider.d.ts +60 -0
  286. package/dist/theme/slider.js +131 -0
  287. package/dist/theme/stepper.d.ts +94 -0
  288. package/dist/theme/stepper.js +137 -0
  289. package/dist/theme/switch.d.ts +84 -0
  290. package/dist/theme/switch.js +96 -0
  291. package/dist/theme/table.d.ts +56 -0
  292. package/dist/theme/table.js +99 -0
  293. package/dist/theme/tabs.d.ts +78 -0
  294. package/dist/theme/tabs.js +145 -0
  295. package/dist/theme/textarea.d.ts +72 -0
  296. package/dist/theme/textarea.js +39 -0
  297. package/dist/theme/timeline.d.ts +52 -0
  298. package/dist/theme/timeline.js +212 -0
  299. package/dist/theme/toast.d.ts +41 -0
  300. package/dist/theme/toast.js +47 -0
  301. package/dist/theme/toaster.d.ts +50 -0
  302. package/dist/theme/toaster.js +56 -0
  303. package/dist/theme/tooltip.d.ts +10 -0
  304. package/dist/theme/tooltip.js +9 -0
  305. package/dist/theme/tree.d.ts +66 -0
  306. package/dist/theme/tree.js +89 -0
  307. package/dist/theme/user.d.ts +85 -0
  308. package/dist/theme/user.js +83 -0
  309. package/dist/types.d.ts +7 -0
  310. package/dist/types.js +1 -0
  311. package/dist/utils/common.d.ts +14 -0
  312. package/dist/utils/common.js +18 -0
  313. package/dist/utils/keys.d.ts +8 -0
  314. package/dist/utils/keys.js +8 -0
  315. package/dist/utils/types.d.ts +1 -0
  316. package/dist/utils/types.js +1 -0
  317. package/dist/vite.d.ts +34 -0
  318. package/dist/vite.js +73 -0
  319. package/package.json +82 -0
@@ -0,0 +1,42 @@
1
+ export default (options) => ({
2
+ slots: {
3
+ root: 'relative min-w-0',
4
+ list: 'flex items-center gap-1.5',
5
+ item: 'flex min-w-0',
6
+ link: 'group relative flex items-center gap-1.5 text-sm min-w-0 focus-visible:outline-primary',
7
+ linkLeadingIcon: 'shrink-0 size-5',
8
+ linkLeadingAvatar: 'shrink-0',
9
+ linkLeadingAvatarSize: '2xs',
10
+ linkLabel: 'truncate',
11
+ separator: 'flex',
12
+ separatorIcon: 'shrink-0 size-5 text-muted'
13
+ },
14
+ variants: {
15
+ active: {
16
+ true: {
17
+ link: 'text-primary font-semibold'
18
+ },
19
+ false: {
20
+ link: 'text-muted font-medium'
21
+ }
22
+ },
23
+ disabled: {
24
+ true: {
25
+ link: 'cursor-not-allowed opacity-75'
26
+ }
27
+ },
28
+ to: {
29
+ true: ''
30
+ }
31
+ },
32
+ compoundVariants: [
33
+ {
34
+ disabled: false,
35
+ active: false,
36
+ to: true,
37
+ class: {
38
+ link: ['hover:text-default', options.theme.transitions && 'transition-colors']
39
+ }
40
+ }
41
+ ]
42
+ });
@@ -0,0 +1,19 @@
1
+ import type { PluginOptions } from '../vite.js';
2
+ declare const _default: (options: PluginOptions) => {
3
+ slots: {
4
+ base: any[];
5
+ label: string;
6
+ leadingIcon: string;
7
+ leadingAvatar: string;
8
+ leadingAvatarSize: string;
9
+ trailingIcon: string;
10
+ };
11
+ variants: any;
12
+ compoundVariants: any[];
13
+ defaultVariants: {
14
+ color: string;
15
+ variant: string;
16
+ size: string;
17
+ };
18
+ };
19
+ export default _default;
@@ -0,0 +1,194 @@
1
+ import { fieldGroupVariant } from './field-group.js';
2
+ export default (options) => ({
3
+ slots: {
4
+ base: [
5
+ 'rounded-md font-medium inline-flex items-center disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-75 aria-disabled:opacity-75',
6
+ options.transitions && 'transition-colors'
7
+ ],
8
+ label: 'truncate',
9
+ leadingIcon: 'shrink-0',
10
+ leadingAvatar: 'shrink-0',
11
+ leadingAvatarSize: '',
12
+ trailingIcon: 'shrink-0'
13
+ },
14
+ variants: {
15
+ ...fieldGroupVariant,
16
+ color: {
17
+ ...Object.fromEntries((options.colors || []).map((color) => [color, ''])),
18
+ neutral: ''
19
+ },
20
+ variant: {
21
+ solid: '',
22
+ outline: '',
23
+ soft: '',
24
+ subtle: '',
25
+ ghost: '',
26
+ link: ''
27
+ },
28
+ size: {
29
+ xs: {
30
+ base: 'px-2 py-1 text-xs gap-1',
31
+ leadingIcon: 'size-4',
32
+ leadingAvatarSize: '3xs',
33
+ trailingIcon: 'size-4'
34
+ },
35
+ sm: {
36
+ base: 'px-2.5 py-1.5 text-xs gap-1.5',
37
+ leadingIcon: 'size-4',
38
+ leadingAvatarSize: '3xs',
39
+ trailingIcon: 'size-4'
40
+ },
41
+ md: {
42
+ base: 'px-2.5 py-1.5 text-sm gap-1.5',
43
+ leadingIcon: 'size-5',
44
+ leadingAvatarSize: '2xs',
45
+ trailingIcon: 'size-5'
46
+ },
47
+ lg: {
48
+ base: 'px-3 py-2 text-sm gap-2',
49
+ leadingIcon: 'size-5',
50
+ leadingAvatarSize: '2xs',
51
+ trailingIcon: 'size-5'
52
+ },
53
+ xl: {
54
+ base: 'px-3 py-2 text-base gap-2',
55
+ leadingIcon: 'size-6',
56
+ leadingAvatarSize: 'xs',
57
+ trailingIcon: 'size-6'
58
+ }
59
+ },
60
+ block: {
61
+ true: {
62
+ base: 'w-full justify-center',
63
+ trailingIcon: 'ms-auto'
64
+ }
65
+ },
66
+ square: {
67
+ true: ''
68
+ },
69
+ leading: {
70
+ true: ''
71
+ },
72
+ trailing: {
73
+ true: ''
74
+ },
75
+ loading: {
76
+ true: ''
77
+ },
78
+ active: {
79
+ true: {
80
+ base: ''
81
+ },
82
+ false: {
83
+ base: ''
84
+ }
85
+ }
86
+ },
87
+ compoundVariants: [
88
+ ...(options.colors || []).map((color) => ({
89
+ color,
90
+ variant: 'solid',
91
+ class: `text-inverted bg-${color} hover:bg-${color}/75 active:bg-${color}/75 disabled:bg-${color} aria-disabled:bg-${color} focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-${color}`
92
+ })),
93
+ ...(options.colors || []).map((color) => ({
94
+ color,
95
+ variant: 'outline',
96
+ class: `ring ring-inset ring-${color}/50 text-${color} hover:bg-${color}/10 active:bg-${color}/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-${color}`
97
+ })),
98
+ ...(options.colors || []).map((color) => ({
99
+ color,
100
+ variant: 'soft',
101
+ class: `text-${color} bg-${color}/10 hover:bg-${color}/15 active:bg-${color}/15 focus:outline-none focus-visible:bg-${color}/15 disabled:bg-${color}/10 aria-disabled:bg-${color}/10`
102
+ })),
103
+ ...(options.colors || []).map((color) => ({
104
+ color,
105
+ variant: 'subtle',
106
+ class: `text-${color} ring ring-inset ring-${color}/25 bg-${color}/10 hover:bg-${color}/15 active:bg-${color}/15 disabled:bg-${color}/10 aria-disabled:bg-${color}/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-${color}`
107
+ })),
108
+ ...(options.colors || []).map((color) => ({
109
+ color,
110
+ variant: 'ghost',
111
+ class: `text-${color} hover:bg-${color}/10 active:bg-${color}/10 focus:outline-none focus-visible:bg-${color}/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent`
112
+ })),
113
+ ...(options.colors || []).map((color) => ({
114
+ color,
115
+ variant: 'link',
116
+ class: `text-${color} hover:text-${color}/75 active:text-${color}/75 disabled:text-${color} aria-disabled:text-${color} focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-${color}`
117
+ })),
118
+ {
119
+ color: 'neutral',
120
+ variant: 'solid',
121
+ class: 'text-inverted bg-inverted hover:bg-inverted/90 active:bg-inverted/90 disabled:bg-inverted aria-disabled:bg-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-inverted'
122
+ },
123
+ {
124
+ color: 'neutral',
125
+ variant: 'outline',
126
+ class: 'ring ring-inset ring-accented text-default bg-default hover:bg-elevated active:bg-elevated disabled:bg-default aria-disabled:bg-default focus:outline-none focus-visible:ring-2 focus-visible:ring-inverted'
127
+ },
128
+ {
129
+ color: 'neutral',
130
+ variant: 'soft',
131
+ class: 'text-default bg-elevated hover:bg-accented/75 active:bg-accented/75 focus:outline-none focus-visible:bg-accented/75 disabled:bg-elevated aria-disabled:bg-elevated'
132
+ },
133
+ {
134
+ color: 'neutral',
135
+ variant: 'subtle',
136
+ class: 'ring ring-inset ring-accented text-default bg-elevated hover:bg-accented/75 active:bg-accented/75 disabled:bg-elevated aria-disabled:bg-elevated focus:outline-none focus-visible:ring-2 focus-visible:ring-inverted'
137
+ },
138
+ {
139
+ color: 'neutral',
140
+ variant: 'ghost',
141
+ class: 'text-default hover:bg-elevated active:bg-elevated focus:outline-none focus-visible:bg-elevated hover:disabled:bg-transparent dark:hover:disabled:bg-transparent hover:aria-disabled:bg-transparent dark:hover:aria-disabled:bg-transparent'
142
+ },
143
+ {
144
+ color: 'neutral',
145
+ variant: 'link',
146
+ class: 'text-muted hover:text-default active:text-default disabled:text-muted aria-disabled:text-muted focus:outline-none focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-inverted'
147
+ },
148
+ {
149
+ size: 'xs',
150
+ square: true,
151
+ class: 'p-1'
152
+ },
153
+ {
154
+ size: 'sm',
155
+ square: true,
156
+ class: 'p-1.5'
157
+ },
158
+ {
159
+ size: 'md',
160
+ square: true,
161
+ class: 'p-1.5'
162
+ },
163
+ {
164
+ size: 'lg',
165
+ square: true,
166
+ class: 'p-2'
167
+ },
168
+ {
169
+ size: 'xl',
170
+ square: true,
171
+ class: 'p-2'
172
+ },
173
+ {
174
+ loading: true,
175
+ leading: true,
176
+ class: {
177
+ leadingIcon: 'animate-spin'
178
+ }
179
+ },
180
+ {
181
+ loading: true,
182
+ leading: false,
183
+ trailing: true,
184
+ class: {
185
+ trailingIcon: 'animate-spin'
186
+ }
187
+ }
188
+ ],
189
+ defaultVariants: {
190
+ color: 'primary',
191
+ variant: 'solid',
192
+ size: 'md'
193
+ }
194
+ });
@@ -0,0 +1,59 @@
1
+ declare const _default: (options: Required<ModuleOptions>) => {
2
+ slots: {
3
+ root: string;
4
+ header: string;
5
+ body: string;
6
+ heading: string;
7
+ grid: string;
8
+ gridRow: string;
9
+ gridWeekDaysRow: string;
10
+ gridBody: string;
11
+ headCell: string;
12
+ cell: string;
13
+ cellTrigger: any[];
14
+ };
15
+ variants: {
16
+ color: {
17
+ neutral: {
18
+ headCell: string;
19
+ cellTrigger: string;
20
+ };
21
+ };
22
+ size: {
23
+ xs: {
24
+ heading: string;
25
+ cell: string;
26
+ headCell: string;
27
+ cellTrigger: string;
28
+ body: string;
29
+ };
30
+ sm: {
31
+ heading: string;
32
+ headCell: string;
33
+ cell: string;
34
+ cellTrigger: string;
35
+ };
36
+ md: {
37
+ heading: string;
38
+ headCell: string;
39
+ cell: string;
40
+ cellTrigger: string;
41
+ };
42
+ lg: {
43
+ heading: string;
44
+ headCell: string;
45
+ cellTrigger: string;
46
+ };
47
+ xl: {
48
+ heading: string;
49
+ headCell: string;
50
+ cellTrigger: string;
51
+ };
52
+ };
53
+ };
54
+ defaultVariants: {
55
+ size: string;
56
+ color: string;
57
+ };
58
+ };
59
+ export default _default;
@@ -0,0 +1,68 @@
1
+ export default (options) => ({
2
+ slots: {
3
+ root: '',
4
+ header: 'flex items-center justify-between',
5
+ body: 'flex flex-col space-y-4 pt-4 sm:flex-row sm:space-x-4 sm:space-y-0',
6
+ heading: 'text-center font-medium truncate mx-auto',
7
+ grid: 'w-full border-collapse select-none space-y-1 focus:outline-none',
8
+ gridRow: 'grid grid-cols-7 place-items-center',
9
+ gridWeekDaysRow: 'mb-1 grid w-full grid-cols-7',
10
+ gridBody: 'grid',
11
+ headCell: 'rounded-md',
12
+ cell: 'relative text-center',
13
+ cellTrigger: [
14
+ 'm-0.5 relative flex items-center justify-center rounded-full whitespace-nowrap focus-visible:ring-2 focus:outline-none data-disabled:text-muted data-unavailable:line-through data-unavailable:text-muted data-unavailable:pointer-events-none data-[selected]:text-inverted data-today:font-semibold data-[outside-view]:text-muted',
15
+ options.theme.transitions && 'transition'
16
+ ]
17
+ },
18
+ variants: {
19
+ color: {
20
+ ...Object.fromEntries((options.theme.colors || []).map((color) => [
21
+ color,
22
+ {
23
+ headCell: `text-${color}`,
24
+ cellTrigger: `focus-visible:ring-${color} data-[selected]:bg-${color} data-today:not-data-[selected]:text-${color} data-[highlighted]:bg-${color}/20 hover:not-data-[selected]:bg-${color}/20`
25
+ }
26
+ ])),
27
+ neutral: {
28
+ headCell: 'text-highlighted',
29
+ cellTrigger: 'focus-visible:ring-inverted data-[selected]:bg-inverted data-today:not-data-[selected]:text-highlighted data-[highlighted]:bg-inverted/20 hover:not-data-[selected]:bg-inverted/10'
30
+ }
31
+ },
32
+ size: {
33
+ xs: {
34
+ heading: 'text-xs',
35
+ cell: 'text-xs',
36
+ headCell: 'text-[10px]',
37
+ cellTrigger: 'size-7',
38
+ body: 'space-y-2 pt-2'
39
+ },
40
+ sm: {
41
+ heading: 'text-xs',
42
+ headCell: 'text-xs',
43
+ cell: 'text-xs',
44
+ cellTrigger: 'size-7'
45
+ },
46
+ md: {
47
+ heading: 'text-sm',
48
+ headCell: 'text-xs',
49
+ cell: 'text-sm',
50
+ cellTrigger: 'size-8'
51
+ },
52
+ lg: {
53
+ heading: 'text-md',
54
+ headCell: 'text-md',
55
+ cellTrigger: 'size-9 text-md'
56
+ },
57
+ xl: {
58
+ heading: 'text-lg',
59
+ headCell: 'text-lg',
60
+ cellTrigger: 'size-10 text-lg'
61
+ }
62
+ }
63
+ },
64
+ defaultVariants: {
65
+ size: 'md',
66
+ color: 'primary'
67
+ }
68
+ });
@@ -0,0 +1,28 @@
1
+ declare const _default: {
2
+ slots: {
3
+ root: string;
4
+ header: string;
5
+ body: string;
6
+ footer: string;
7
+ };
8
+ variants: {
9
+ variant: {
10
+ solid: {
11
+ root: string;
12
+ };
13
+ outline: {
14
+ root: string;
15
+ };
16
+ soft: {
17
+ root: string;
18
+ };
19
+ subtle: {
20
+ root: string;
21
+ };
22
+ };
23
+ };
24
+ defaultVariants: {
25
+ variant: string;
26
+ };
27
+ };
28
+ export default _default;
@@ -0,0 +1,27 @@
1
+ export default {
2
+ slots: {
3
+ root: 'rounded-lg overflow-hidden',
4
+ header: 'p-4 sm:px-6',
5
+ body: 'p-4 sm:p-6',
6
+ footer: 'p-4 sm:px-6'
7
+ },
8
+ variants: {
9
+ variant: {
10
+ solid: {
11
+ root: 'bg-inverted text-inverted'
12
+ },
13
+ outline: {
14
+ root: 'bg-default ring ring-default divide-y divide-default'
15
+ },
16
+ soft: {
17
+ root: 'bg-elevated/50 divide-y divide-default'
18
+ },
19
+ subtle: {
20
+ root: 'bg-elevated/50 ring ring-default divide-y divide-default'
21
+ }
22
+ }
23
+ },
24
+ defaultVariants: {
25
+ variant: 'outline'
26
+ }
27
+ };
@@ -0,0 +1,36 @@
1
+ declare const _default: (options: Required<ModuleOptions>) => {
2
+ slots: {
3
+ root: string;
4
+ viewport: string;
5
+ container: string;
6
+ item: string;
7
+ controls: string;
8
+ arrows: string;
9
+ prev: string;
10
+ next: string;
11
+ dots: string;
12
+ dot: any[];
13
+ };
14
+ variants: {
15
+ orientation: {
16
+ vertical: {
17
+ container: string;
18
+ item: string;
19
+ prev: string;
20
+ next: string;
21
+ };
22
+ horizontal: {
23
+ container: string;
24
+ item: string;
25
+ prev: string;
26
+ next: string;
27
+ };
28
+ };
29
+ active: {
30
+ true: {
31
+ dot: string;
32
+ };
33
+ };
34
+ };
35
+ };
36
+ export default _default;
@@ -0,0 +1,38 @@
1
+ export default (options) => ({
2
+ slots: {
3
+ root: 'relative focus:outline-none',
4
+ viewport: 'overflow-hidden',
5
+ container: 'flex items-start',
6
+ item: 'min-w-0 shrink-0 basis-full',
7
+ controls: '',
8
+ arrows: '',
9
+ prev: 'absolute rounded-full',
10
+ next: 'absolute rounded-full',
11
+ dots: 'absolute inset-x-0 -bottom-7 flex flex-wrap items-center justify-center gap-3',
12
+ dot: [
13
+ 'cursor-pointer size-3 bg-accented rounded-full',
14
+ options.theme.transitions && 'transition'
15
+ ]
16
+ },
17
+ variants: {
18
+ orientation: {
19
+ vertical: {
20
+ container: 'flex-col -mt-4',
21
+ item: 'pt-4',
22
+ prev: 'top-4 sm:-top-12 left-1/2 -translate-x-1/2 rotate-90 rtl:-rotate-90',
23
+ next: 'bottom-4 sm:-bottom-12 left-1/2 -translate-x-1/2 rotate-90 rtl:-rotate-90'
24
+ },
25
+ horizontal: {
26
+ container: 'flex-row -ms-4',
27
+ item: 'ps-4',
28
+ prev: 'start-4 sm:-start-12 top-1/2 -translate-y-1/2',
29
+ next: 'end-4 sm:-end-12 top-1/2 -translate-y-1/2'
30
+ }
31
+ },
32
+ active: {
33
+ true: {
34
+ dot: 'data-[state=active]:bg-inverted'
35
+ }
36
+ }
37
+ }
38
+ });
@@ -0,0 +1,42 @@
1
+ declare const _default: {
2
+ slots: {
3
+ root: string;
4
+ container: string;
5
+ header: string;
6
+ meta: string;
7
+ date: string;
8
+ badge: string;
9
+ title: string;
10
+ description: string;
11
+ imageWrapper: string;
12
+ image: string;
13
+ authors: string;
14
+ footer: string;
15
+ indicator: string;
16
+ dot: string;
17
+ dotInner: string;
18
+ };
19
+ variants: {
20
+ body: {
21
+ false: {
22
+ footer: string;
23
+ };
24
+ };
25
+ badge: {
26
+ false: {
27
+ meta: string;
28
+ };
29
+ };
30
+ to: {
31
+ true: {
32
+ image: string;
33
+ };
34
+ };
35
+ hidden: {
36
+ true: {
37
+ date: string;
38
+ };
39
+ };
40
+ };
41
+ };
42
+ export default _default;
@@ -0,0 +1,41 @@
1
+ export default {
2
+ slots: {
3
+ root: 'relative',
4
+ container: 'flex flex-col mx-auto max-w-2xl',
5
+ header: '',
6
+ meta: 'flex items-center gap-3 mb-2',
7
+ date: 'text-sm/6 text-toned truncate',
8
+ badge: '',
9
+ title: 'relative text-xl text-pretty font-semibold text-highlighted',
10
+ description: 'text-base text-pretty text-muted mt-1',
11
+ imageWrapper: 'relative overflow-hidden rounded-lg aspect-[16/9] mt-5 group/changelog-version-image',
12
+ image: 'object-cover object-top w-full h-full',
13
+ authors: 'flex flex-wrap gap-x-4 gap-y-1.5',
14
+ footer: 'border-t border-default pt-5 flex items-center justify-between',
15
+ indicator: 'absolute start-0 top-0 w-32 hidden lg:flex items-center justify-end gap-3 min-w-0',
16
+ dot: 'size-4 rounded-full bg-default ring ring-default flex items-center justify-center my-1',
17
+ dotInner: 'size-2 rounded-full bg-primary'
18
+ },
19
+ variants: {
20
+ body: {
21
+ false: {
22
+ footer: 'mt-5'
23
+ }
24
+ },
25
+ badge: {
26
+ false: {
27
+ meta: 'lg:hidden'
28
+ }
29
+ },
30
+ to: {
31
+ true: {
32
+ image: 'transform transition-transform duration-200 group-hover/changelog-version-image:scale-105'
33
+ }
34
+ },
35
+ hidden: {
36
+ true: {
37
+ date: 'lg:hidden'
38
+ }
39
+ }
40
+ }
41
+ };
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ slots: {
3
+ root: string;
4
+ container: string;
5
+ indicator: string;
6
+ beam: string;
7
+ };
8
+ };
9
+ export default _default;
@@ -0,0 +1,8 @@
1
+ export default {
2
+ slots: {
3
+ root: 'relative',
4
+ container: 'flex flex-col gap-y-8 sm:gap-y-12 lg:gap-y-16',
5
+ indicator: 'absolute hidden lg:block overflow-hidden inset-y-3 start-32 h-full w-px bg-border -ms-[8.5px]',
6
+ beam: 'absolute start-0 top-0 w-full bg-primary will-change-[height]'
7
+ }
8
+ };