@byyuurin/ui 0.0.11 → 0.1.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 (289) hide show
  1. package/README.md +170 -58
  2. package/dist/module.d.mts +4 -13
  3. package/dist/module.json +4 -4
  4. package/dist/module.mjs +54 -20
  5. package/dist/runtime/components/Accordion.vue +28 -23
  6. package/dist/runtime/components/Accordion.vue.d.ts +51 -29
  7. package/dist/runtime/components/Alert.vue +47 -27
  8. package/dist/runtime/components/Alert.vue.d.ts +37 -25
  9. package/dist/runtime/components/App.vue +9 -8
  10. package/dist/runtime/components/App.vue.d.ts +22 -20
  11. package/dist/runtime/components/Avatar.vue +65 -21
  12. package/dist/runtime/components/Avatar.vue.d.ts +27 -13
  13. package/dist/runtime/components/AvatarGroup.vue +14 -10
  14. package/dist/runtime/components/AvatarGroup.vue.d.ts +12 -9
  15. package/dist/runtime/components/Badge.vue +64 -32
  16. package/dist/runtime/components/Badge.vue.d.ts +30 -29
  17. package/dist/runtime/components/Breadcrumb.vue +40 -22
  18. package/dist/runtime/components/Breadcrumb.vue.d.ts +48 -21
  19. package/dist/runtime/components/Button.vue +113 -52
  20. package/dist/runtime/components/Button.vue.d.ts +36 -20
  21. package/dist/runtime/components/Calendar.vue +48 -39
  22. package/dist/runtime/components/Calendar.vue.d.ts +58 -31
  23. package/dist/runtime/components/Card.vue +18 -14
  24. package/dist/runtime/components/Card.vue.d.ts +18 -14
  25. package/dist/runtime/components/Carousel.vue +80 -46
  26. package/dist/runtime/components/Carousel.vue.d.ts +46 -25
  27. package/dist/runtime/components/Checkbox.vue +60 -35
  28. package/dist/runtime/components/Checkbox.vue.d.ts +35 -28
  29. package/dist/runtime/components/Chip.vue +35 -32
  30. package/dist/runtime/components/Chip.vue.d.ts +33 -15
  31. package/dist/runtime/components/Collapsible.vue +13 -9
  32. package/dist/runtime/components/Collapsible.vue.d.ts +16 -8
  33. package/dist/runtime/components/Drawer.vue +80 -70
  34. package/dist/runtime/components/Drawer.vue.d.ts +51 -28
  35. package/dist/runtime/components/DropdownMenu.vue +23 -16
  36. package/dist/runtime/components/DropdownMenu.vue.d.ts +77 -36
  37. package/dist/runtime/components/DropdownMenuContent.vue +133 -103
  38. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +38 -26
  39. package/dist/runtime/components/FieldGroup.vue +33 -0
  40. package/dist/runtime/components/FieldGroup.vue.d.ts +33 -0
  41. package/dist/runtime/components/Form.vue +172 -88
  42. package/dist/runtime/components/Form.vue.d.ts +69 -44
  43. package/dist/runtime/components/FormField.vue +108 -0
  44. package/dist/runtime/components/FormField.vue.d.ts +63 -0
  45. package/dist/runtime/components/Icon.vue +20 -0
  46. package/dist/runtime/components/Icon.vue.d.ts +9 -0
  47. package/dist/runtime/components/Input.vue +82 -77
  48. package/dist/runtime/components/Input.vue.d.ts +55 -43
  49. package/dist/runtime/components/InputNumber.vue +65 -49
  50. package/dist/runtime/components/InputNumber.vue.d.ts +51 -105
  51. package/dist/runtime/components/Kbd.vue +11 -5
  52. package/dist/runtime/components/Kbd.vue.d.ts +17 -11
  53. package/dist/runtime/components/Link.vue +54 -197
  54. package/dist/runtime/components/Link.vue.d.ts +17 -17
  55. package/dist/runtime/components/LinkBase.vue +11 -33
  56. package/dist/runtime/components/LinkBase.vue.d.ts +8 -3
  57. package/dist/runtime/components/Modal.vue +53 -39
  58. package/dist/runtime/components/Modal.vue.d.ts +64 -34
  59. package/dist/runtime/components/NavigationMenu.vue +336 -0
  60. package/dist/runtime/components/NavigationMenu.vue.d.ts +181 -0
  61. package/dist/runtime/components/OverlayProvider.vue +3 -3
  62. package/dist/runtime/components/OverlayProvider.vue.d.ts +2 -1
  63. package/dist/runtime/components/Pagination.vue +39 -47
  64. package/dist/runtime/components/Pagination.vue.d.ts +54 -31
  65. package/dist/runtime/components/PinInput.vue +46 -32
  66. package/dist/runtime/components/PinInput.vue.d.ts +40 -21
  67. package/dist/runtime/components/Popover.vue +33 -19
  68. package/dist/runtime/components/Popover.vue.d.ts +57 -32
  69. package/dist/runtime/components/Progress.vue +31 -26
  70. package/dist/runtime/components/Progress.vue.d.ts +32 -23
  71. package/dist/runtime/components/RadioGroup.vue +75 -48
  72. package/dist/runtime/components/RadioGroup.vue.d.ts +58 -36
  73. package/dist/runtime/components/ScrollArea.vue +33 -31
  74. package/dist/runtime/components/ScrollArea.vue.d.ts +9 -5
  75. package/dist/runtime/components/Select.vue +166 -76
  76. package/dist/runtime/components/Select.vue.d.ts +206 -65
  77. package/dist/runtime/components/Separator.vue +42 -16
  78. package/dist/runtime/components/Separator.vue.d.ts +35 -14
  79. package/dist/runtime/components/Skeleton.vue +18 -6
  80. package/dist/runtime/components/Skeleton.vue.d.ts +4 -4
  81. package/dist/runtime/components/Slider.vue +42 -24
  82. package/dist/runtime/components/Slider.vue.d.ts +43 -27
  83. package/dist/runtime/components/Switch.vue +40 -31
  84. package/dist/runtime/components/Switch.vue.d.ts +36 -27
  85. package/dist/runtime/components/Table.vue +279 -51
  86. package/dist/runtime/components/Table.vue.d.ts +151 -65
  87. package/dist/runtime/components/Tabs.vue +70 -23
  88. package/dist/runtime/components/Tabs.vue.d.ts +61 -29
  89. package/dist/runtime/components/Textarea.vue +102 -54
  90. package/dist/runtime/components/Textarea.vue.d.ts +57 -41
  91. package/dist/runtime/components/Toast.vue +84 -38
  92. package/dist/runtime/components/Toast.vue.d.ts +48 -27
  93. package/dist/runtime/components/ToastProvider.vue +31 -22
  94. package/dist/runtime/components/ToastProvider.vue.d.ts +30 -17
  95. package/dist/runtime/components/Tooltip.vue +33 -21
  96. package/dist/runtime/components/Tooltip.vue.d.ts +37 -15
  97. package/dist/runtime/composables/defineShortcuts.d.ts +16 -0
  98. package/dist/runtime/composables/defineShortcuts.js +129 -0
  99. package/dist/runtime/composables/useAvatarGroup.d.ts +8 -3
  100. package/dist/runtime/composables/useAvatarGroup.js +10 -3
  101. package/dist/runtime/composables/useComponentIcons.d.ts +9 -6
  102. package/dist/runtime/composables/useComponentIcons.js +4 -4
  103. package/dist/runtime/composables/useFieldGroup.d.ts +8 -0
  104. package/dist/runtime/composables/useFieldGroup.js +14 -0
  105. package/dist/runtime/composables/useFormField.d.ts +62 -0
  106. package/dist/runtime/composables/useFormField.js +99 -0
  107. package/dist/runtime/composables/useKbd.d.ts +3 -2
  108. package/dist/runtime/composables/useKbd.js +3 -2
  109. package/dist/runtime/composables/useLocale.d.ts +68 -5
  110. package/dist/runtime/composables/useLocale.js +11 -11
  111. package/dist/runtime/composables/useOverlay.d.ts +51 -15
  112. package/dist/runtime/composables/useOverlay.js +44 -30
  113. package/dist/runtime/composables/usePortal.d.ts +6 -0
  114. package/dist/runtime/composables/usePortal.js +17 -0
  115. package/dist/runtime/composables/useToast.d.ts +12 -5
  116. package/dist/runtime/composables/useToast.js +12 -7
  117. package/dist/runtime/locale/en.d.ts +30 -1
  118. package/dist/runtime/locale/en.js +2 -1
  119. package/dist/runtime/locale/index.d.ts +2 -2
  120. package/dist/runtime/locale/index.js +1 -1
  121. package/dist/runtime/locale/zh_tw.d.ts +31 -0
  122. package/dist/runtime/locale/{zh-tw.js → zh_tw.js} +2 -1
  123. package/dist/runtime/plugins/colors.d.ts +2 -0
  124. package/dist/runtime/plugins/colors.js +50 -0
  125. package/dist/runtime/types/app.config.d.ts +6 -0
  126. package/dist/runtime/types/form.d.ts +58 -17
  127. package/dist/runtime/types/form.js +11 -0
  128. package/dist/runtime/types/index.d.ts +51 -8
  129. package/dist/runtime/types/index.js +45 -2
  130. package/dist/runtime/types/input.d.ts +8 -0
  131. package/dist/runtime/types/locale.d.ts +5 -0
  132. package/dist/runtime/types/style.d.ts +33 -0
  133. package/dist/runtime/types/style.js +0 -0
  134. package/dist/runtime/types/unocss.d.ts +4 -0
  135. package/dist/runtime/types/utils.d.ts +38 -37
  136. package/dist/runtime/utils/form.d.ts +5 -1
  137. package/dist/runtime/utils/form.js +49 -0
  138. package/dist/runtime/utils/index.d.ts +10 -13
  139. package/dist/runtime/utils/index.js +41 -48
  140. package/dist/runtime/utils/link.d.ts +3 -2
  141. package/dist/runtime/utils/link.js +16 -2
  142. package/dist/runtime/utils/locale.d.ts +5 -0
  143. package/dist/runtime/utils/locale.js +10 -0
  144. package/dist/runtime/utils/style.d.ts +94 -0
  145. package/dist/runtime/utils/style.js +37 -0
  146. package/dist/runtime/vue/components/Icon.vue +15 -0
  147. package/dist/runtime/vue/components/Icon.vue.d.ts +7 -0
  148. package/dist/runtime/vue/components/Link.vue +163 -0
  149. package/dist/runtime/vue/components/Link.vue.d.ts +95 -0
  150. package/dist/runtime/vue/composables/useAppConfig.d.ts +1 -0
  151. package/dist/runtime/vue/composables/useAppConfig.js +4 -0
  152. package/dist/runtime/vue/plugins/color-mode.d.ts +4 -0
  153. package/dist/runtime/vue/plugins/color-mode.js +6 -0
  154. package/dist/runtime/vue/plugins/head.d.ts +4 -0
  155. package/dist/runtime/vue/plugins/head.js +9 -0
  156. package/dist/runtime/vue/stubs.d.ts +16 -1
  157. package/dist/runtime/vue/stubs.js +32 -1
  158. package/dist/setup.d.mts +13 -0
  159. package/dist/setup.mjs +12 -0
  160. package/dist/shared/ui.CzIlLITK.mjs +51 -0
  161. package/dist/shared/ui.DSyJHSTk.mjs +3787 -0
  162. package/dist/shared/ui.DpbffTXs.d.mts +84 -0
  163. package/dist/shared/ui.IulR-OYx.d.mts +64 -0
  164. package/dist/types.d.mts +3 -1
  165. package/dist/unocss.d.mts +12 -52
  166. package/dist/unocss.mjs +144 -254
  167. package/dist/unplugin.d.mts +13 -26
  168. package/dist/unplugin.mjs +193 -18
  169. package/dist/vite.d.mts +10 -1
  170. package/dist/vite.mjs +12 -3
  171. package/package.json +154 -87
  172. package/vue-plugin.d.ts +5 -0
  173. package/dist/module.d.ts +0 -13
  174. package/dist/module.mjs.map +0 -1
  175. package/dist/runtime/app/injections.d.ts +0 -9331
  176. package/dist/runtime/app/injections.js +0 -61
  177. package/dist/runtime/components/ButtonGroup.vue +0 -26
  178. package/dist/runtime/components/ButtonGroup.vue.d.ts +0 -26
  179. package/dist/runtime/components/FormItem.vue +0 -90
  180. package/dist/runtime/components/FormItem.vue.d.ts +0 -60
  181. package/dist/runtime/composables/useButtonGroup.d.ts +0 -5
  182. package/dist/runtime/composables/useButtonGroup.js +0 -9
  183. package/dist/runtime/composables/useFormItem.d.ts +0 -27
  184. package/dist/runtime/composables/useFormItem.js +0 -64
  185. package/dist/runtime/composables/useTheme.d.ts +0 -9
  186. package/dist/runtime/composables/useTheme.js +0 -23
  187. package/dist/runtime/index.d.ts +0 -44
  188. package/dist/runtime/index.js +0 -44
  189. package/dist/runtime/locale/zh-tw.d.ts +0 -2
  190. package/dist/runtime/theme/accordion.d.ts +0 -50
  191. package/dist/runtime/theme/accordion.js +0 -28
  192. package/dist/runtime/theme/alert.d.ts +0 -119
  193. package/dist/runtime/theme/alert.js +0 -47
  194. package/dist/runtime/theme/app.d.ts +0 -19
  195. package/dist/runtime/theme/app.js +0 -19
  196. package/dist/runtime/theme/avatar-group.d.ts +0 -46
  197. package/dist/runtime/theme/avatar-group.js +0 -32
  198. package/dist/runtime/theme/avatar.d.ts +0 -50
  199. package/dist/runtime/theme/avatar.js +0 -34
  200. package/dist/runtime/theme/badge.d.ts +0 -76
  201. package/dist/runtime/theme/badge.js +0 -92
  202. package/dist/runtime/theme/breadcrumb.d.ts +0 -61
  203. package/dist/runtime/theme/breadcrumb.js +0 -44
  204. package/dist/runtime/theme/button-group.d.ts +0 -60
  205. package/dist/runtime/theme/button-group.js +0 -42
  206. package/dist/runtime/theme/button.d.ts +0 -184
  207. package/dist/runtime/theme/button.js +0 -164
  208. package/dist/runtime/theme/calendar.d.ts +0 -58
  209. package/dist/runtime/theme/calendar.js +0 -86
  210. package/dist/runtime/theme/card.d.ts +0 -56
  211. package/dist/runtime/theme/card.js +0 -37
  212. package/dist/runtime/theme/carousel.d.ts +0 -107
  213. package/dist/runtime/theme/carousel.js +0 -43
  214. package/dist/runtime/theme/checkbox.d.ts +0 -82
  215. package/dist/runtime/theme/checkbox.js +0 -54
  216. package/dist/runtime/theme/chip.d.ts +0 -61
  217. package/dist/runtime/theme/chip.js +0 -66
  218. package/dist/runtime/theme/collapsible.d.ts +0 -32
  219. package/dist/runtime/theme/collapsible.js +0 -10
  220. package/dist/runtime/theme/drawer.d.ts +0 -142
  221. package/dist/runtime/theme/drawer.js +0 -113
  222. package/dist/runtime/theme/dropdown-menu.d.ts +0 -65
  223. package/dist/runtime/theme/dropdown-menu.js +0 -83
  224. package/dist/runtime/theme/form-item.d.ts +0 -70
  225. package/dist/runtime/theme/form-item.js +0 -34
  226. package/dist/runtime/theme/form.d.ts +0 -2
  227. package/dist/runtime/theme/form.js +0 -7
  228. package/dist/runtime/theme/index.d.ts +0 -41
  229. package/dist/runtime/theme/index.js +0 -41
  230. package/dist/runtime/theme/input-number.d.ts +0 -115
  231. package/dist/runtime/theme/input-number.js +0 -95
  232. package/dist/runtime/theme/input.d.ts +0 -172
  233. package/dist/runtime/theme/input.js +0 -151
  234. package/dist/runtime/theme/kbd.d.ts +0 -33
  235. package/dist/runtime/theme/kbd.js +0 -26
  236. package/dist/runtime/theme/link.d.ts +0 -38
  237. package/dist/runtime/theme/link.js +0 -26
  238. package/dist/runtime/theme/modal.d.ts +0 -42
  239. package/dist/runtime/theme/modal.js +0 -55
  240. package/dist/runtime/theme/pagination.d.ts +0 -74
  241. package/dist/runtime/theme/pagination.js +0 -17
  242. package/dist/runtime/theme/pinInput.d.ts +0 -94
  243. package/dist/runtime/theme/pinInput.js +0 -111
  244. package/dist/runtime/theme/popover.d.ts +0 -32
  245. package/dist/runtime/theme/popover.js +0 -13
  246. package/dist/runtime/theme/progress.d.ts +0 -180
  247. package/dist/runtime/theme/progress.js +0 -95
  248. package/dist/runtime/theme/radio-group.d.ts +0 -104
  249. package/dist/runtime/theme/radio-group.js +0 -61
  250. package/dist/runtime/theme/scroll-area.d.ts +0 -67
  251. package/dist/runtime/theme/scroll-area.js +0 -33
  252. package/dist/runtime/theme/select.d.ts +0 -186
  253. package/dist/runtime/theme/select.js +0 -173
  254. package/dist/runtime/theme/separator.d.ts +0 -74
  255. package/dist/runtime/theme/separator.js +0 -53
  256. package/dist/runtime/theme/skeleton.d.ts +0 -2
  257. package/dist/runtime/theme/skeleton.js +0 -7
  258. package/dist/runtime/theme/slider.d.ts +0 -70
  259. package/dist/runtime/theme/slider.js +0 -52
  260. package/dist/runtime/theme/switch.d.ts +0 -116
  261. package/dist/runtime/theme/switch.js +0 -78
  262. package/dist/runtime/theme/table.d.ts +0 -86
  263. package/dist/runtime/theme/table.js +0 -36
  264. package/dist/runtime/theme/tabs.d.ts +0 -129
  265. package/dist/runtime/theme/tabs.js +0 -146
  266. package/dist/runtime/theme/textarea.d.ts +0 -90
  267. package/dist/runtime/theme/textarea.js +0 -116
  268. package/dist/runtime/theme/toast-provider.d.ts +0 -116
  269. package/dist/runtime/theme/toast-provider.js +0 -97
  270. package/dist/runtime/theme/toast.d.ts +0 -83
  271. package/dist/runtime/theme/toast.js +0 -35
  272. package/dist/runtime/theme/tooltip.d.ts +0 -38
  273. package/dist/runtime/theme/tooltip.js +0 -11
  274. package/dist/runtime/types/components.d.ts +0 -42
  275. package/dist/runtime/utils/extend-theme.d.ts +0 -9
  276. package/dist/runtime/utils/extend-theme.js +0 -27
  277. package/dist/runtime/utils/styler.d.ts +0 -4
  278. package/dist/runtime/utils/styler.js +0 -10
  279. package/dist/runtime/utils/translator.d.ts +0 -18
  280. package/dist/runtime/utils/translator.js +0 -8
  281. package/dist/shared/ui.D1BTWZFB.mjs +0 -5
  282. package/dist/shared/ui.D1BTWZFB.mjs.map +0 -1
  283. package/dist/unocss.d.ts +0 -52
  284. package/dist/unocss.mjs.map +0 -1
  285. package/dist/unplugin.d.ts +0 -26
  286. package/dist/unplugin.mjs.map +0 -1
  287. package/dist/vite.d.ts +0 -9
  288. package/dist/vite.mjs.map +0 -1
  289. /package/dist/runtime/types/{components.js → input.js} +0 -0
@@ -1,52 +0,0 @@
1
- import { ct } from "@byyuurin/ui-kit";
2
- export default ct(
3
- /* @unocss-include */
4
- {
5
- parts: {
6
- root: "relative flex items-center select-none touch-none aria-disabled:opacity-50",
7
- track: [
8
- "relative bg-soft-ui-cb/10 overflow-hidden rounded-full flex-grow cursor-pointer",
9
- "data-[disabled]:cursor-not-allowed",
10
- "data-[orientation=horizontal]:h-0.6em data-[orientation=vertical]:w-0.6em"
11
- ],
12
- range: "absolute rounded-full bg-soft-ui-fill",
13
- thumb: [
14
- "size-1em rounded-full bg-ui-base ring-0.2em cursor-pointer focus-visible:outline-0.2em focus-visible:outline-offset-0.2em",
15
- "data-[disabled]:cursor-not-allowed",
16
- "ring-ui-fill outline-none focus-visible:outline-ui-fill/50"
17
- ]
18
- },
19
- variants: {
20
- size: {
21
- xs: {
22
- root: "text-xs"
23
- },
24
- sm: {
25
- root: "text-sm"
26
- },
27
- md: {
28
- root: "text-base"
29
- },
30
- lg: {
31
- root: "text-lg"
32
- },
33
- xl: {
34
- root: "text-xl"
35
- }
36
- },
37
- orientation: {
38
- horizontal: {
39
- root: "w-full",
40
- range: "h-full"
41
- },
42
- vertical: {
43
- root: "flex-col h-full",
44
- range: "w-full"
45
- }
46
- }
47
- },
48
- defaultVariants: {
49
- size: "md"
50
- }
51
- }
52
- );
@@ -1,116 +0,0 @@
1
- declare const _default: import("@byyuurin/ui-kit").CVScopeMeta<{
2
- size: {
3
- xs: {
4
- root: string;
5
- };
6
- sm: {
7
- root: string;
8
- };
9
- md: {
10
- root: string;
11
- };
12
- lg: {
13
- root: string;
14
- };
15
- xl: {
16
- root: string;
17
- };
18
- };
19
- checked: {
20
- true: {
21
- icon: string;
22
- };
23
- };
24
- unchecked: {
25
- true: {
26
- icon: string;
27
- };
28
- };
29
- loading: {
30
- true: {
31
- root: string;
32
- icon: string;
33
- };
34
- };
35
- required: {
36
- true: {
37
- label: string;
38
- };
39
- };
40
- disabled: {
41
- true: {
42
- root: string;
43
- };
44
- false: {
45
- label: string;
46
- };
47
- };
48
- }, import("@byyuurin/ui-kit").CVCompoundVariants<{
49
- size: {
50
- xs: {
51
- root: string;
52
- };
53
- sm: {
54
- root: string;
55
- };
56
- md: {
57
- root: string;
58
- };
59
- lg: {
60
- root: string;
61
- };
62
- xl: {
63
- root: string;
64
- };
65
- };
66
- checked: {
67
- true: {
68
- icon: string;
69
- };
70
- };
71
- unchecked: {
72
- true: {
73
- icon: string;
74
- };
75
- };
76
- loading: {
77
- true: {
78
- root: string;
79
- icon: string;
80
- };
81
- };
82
- required: {
83
- true: {
84
- label: string;
85
- };
86
- };
87
- disabled: {
88
- true: {
89
- root: string;
90
- };
91
- false: {
92
- label: string;
93
- };
94
- };
95
- }, {
96
- root: string;
97
- base: string[];
98
- container: string;
99
- thumb: string[];
100
- icon: string[];
101
- wrapper: string;
102
- label: string;
103
- description: string;
104
- }, undefined>, {
105
- size: "md";
106
- }, undefined, {
107
- root: string;
108
- base: string[];
109
- container: string;
110
- thumb: string[];
111
- icon: string[];
112
- wrapper: string;
113
- label: string;
114
- description: string;
115
- }>;
116
- export default _default;
@@ -1,78 +0,0 @@
1
- import { ct } from "@byyuurin/ui-kit";
2
- export default ct(
3
- /* @unocss-include */
4
- {
5
- parts: {
6
- root: "relative inline-flex items-start",
7
- base: [
8
- "inline-flex items-center shrink-0 rounded-ui-switch border-2 border-transparent transition-colors duration-200",
9
- "outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-base/80",
10
- "data-[state=unchecked]:bg-soft-ui-cb/10 data-[state=checked]:bg-soft-ui-fill/80",
11
- "w-2.7em"
12
- ],
13
- container: "flex items-center h-1.5em",
14
- thumb: [
15
- "group pointer-events-none rounded-ui-switch size-1.25em bg-ui-base shadow-lg ring-0 transition-transform duration-200 flex items-center justify-center",
16
- "data-[state=unchecked]:translate-x-0 data-[state=unchecked]:rtl:translate-x-0 data-[state=checked]:translate-x-1.25em data-[state=checked]:rtl:-translate-x-1.25em"
17
- ],
18
- icon: [
19
- "absolute shrink-0 opacity-0 size-10/12 transition-[color,opacity] duration-200",
20
- "group-data-[state=unchecked]:color-ui-base/50 group-data-[state=checked]:color-ui-base"
21
- ],
22
- wrapper: "ms-2",
23
- label: "flex color-ui-base/80",
24
- description: "color-ui-base/60"
25
- },
26
- variants: {
27
- size: {
28
- xs: {
29
- root: "text-xs"
30
- },
31
- sm: {
32
- root: "text-sm"
33
- },
34
- md: {
35
- root: "text-base"
36
- },
37
- lg: {
38
- root: "text-lg"
39
- },
40
- xl: {
41
- root: "text-xl"
42
- }
43
- },
44
- checked: {
45
- true: {
46
- icon: "group-data-[state=checked]:opacity-100"
47
- }
48
- },
49
- unchecked: {
50
- true: {
51
- icon: "group-data-[state=unchecked]:opacity-100"
52
- }
53
- },
54
- loading: {
55
- true: {
56
- root: "opacity-50 after:content-empty after:absolute after:inset-0 after:cursor-not-allowed",
57
- icon: "animate-spin"
58
- }
59
- },
60
- required: {
61
- true: {
62
- label: `after:content-['*'] after:ms-0.5`
63
- }
64
- },
65
- disabled: {
66
- true: {
67
- root: "opacity-50 after:content-empty after:absolute after:inset-0 after:cursor-not-allowed"
68
- },
69
- false: {
70
- label: "cursor-pointer"
71
- }
72
- }
73
- },
74
- defaultVariants: {
75
- size: "md"
76
- }
77
- }
78
- );
@@ -1,86 +0,0 @@
1
- declare const _default: import("@byyuurin/ui-kit").CVScopeMeta<{
2
- sticky: {
3
- true: {
4
- thead: string;
5
- };
6
- };
7
- pinned: {
8
- true: {
9
- th: string;
10
- td: string;
11
- };
12
- };
13
- expanded: {
14
- true: {
15
- tr: string;
16
- };
17
- };
18
- }, import("@byyuurin/ui-kit").CVCompoundVariants<{
19
- sticky: {
20
- true: {
21
- thead: string;
22
- };
23
- };
24
- pinned: {
25
- true: {
26
- th: string;
27
- td: string;
28
- };
29
- };
30
- expanded: {
31
- true: {
32
- tr: string;
33
- };
34
- };
35
- }, {
36
- root: string;
37
- base: string;
38
- caption: string;
39
- thead: string;
40
- tbody: string;
41
- tr: string;
42
- th: string;
43
- td: string;
44
- empty: string;
45
- loading: string;
46
- }, undefined>, import("@byyuurin/ui-kit").CVDefaultVariants<{
47
- sticky: {
48
- true: {
49
- thead: string;
50
- };
51
- };
52
- pinned: {
53
- true: {
54
- th: string;
55
- td: string;
56
- };
57
- };
58
- expanded: {
59
- true: {
60
- tr: string;
61
- };
62
- };
63
- }, {
64
- root: string;
65
- base: string;
66
- caption: string;
67
- thead: string;
68
- tbody: string;
69
- tr: string;
70
- th: string;
71
- td: string;
72
- empty: string;
73
- loading: string;
74
- }>, undefined, {
75
- root: string;
76
- base: string;
77
- caption: string;
78
- thead: string;
79
- tbody: string;
80
- tr: string;
81
- th: string;
82
- td: string;
83
- empty: string;
84
- loading: string;
85
- }>;
86
- export default _default;
@@ -1,36 +0,0 @@
1
- import { ct } from "@byyuurin/ui-kit";
2
- export default ct(
3
- /* @unocss-include */
4
- {
5
- parts: {
6
- root: "relative overflow-auto",
7
- base: "min-w-full overflow-clip",
8
- caption: "sr-only",
9
- thead: "relative [&>tr]:after:absolute [&>tr]:after:inset-x-0 [&>tr]:after:bottom-0 [&>tr]:after:h-px [&>tr]:after:bg-ui-cb/20",
10
- tbody: "divide-y divide-ui-base/10",
11
- tr: "data-[selected=true]:bg-soft-ui-cb/50",
12
- th: "px-4 py-3.5 text-sm color-ui-base text-left rtl:text-right font-semibold [&:has([role=checkbox])]:pe-0",
13
- td: "p-4 text-sm color-ui-base/80 whitespace-nowrap [&:has([role=checkbox])]:pe-0",
14
- empty: "py-6 text-center text-sm color-ui-base/80",
15
- loading: ""
16
- },
17
- variants: {
18
- sticky: {
19
- true: {
20
- thead: "sticky z-1 top-0 inset-x-0 bg-ui-base/90 backdrop-blur"
21
- }
22
- },
23
- pinned: {
24
- true: {
25
- th: "sticky bg-ui-base/90 data-[pinned=left]:left-0 data-[pinned=right]:right-0",
26
- td: "sticky bg-ui-base/90 data-[pinned=left]:left-0 data-[pinned=right]:right-0"
27
- }
28
- },
29
- expanded: {
30
- true: {
31
- tr: "animate-[fade-in_200ms_ease-out]"
32
- }
33
- }
34
- }
35
- }
36
- );
@@ -1,129 +0,0 @@
1
- declare const _default: import("@byyuurin/ui-kit").CVScopeMeta<{
2
- variant: {
3
- solid: {
4
- list: string;
5
- trigger: string[];
6
- indicator: string;
7
- };
8
- outline: {
9
- list: string;
10
- trigger: string[];
11
- indicator: string;
12
- };
13
- soft: {
14
- list: string;
15
- trigger: string[];
16
- indicator: string;
17
- };
18
- 'soft-outline': {
19
- list: string;
20
- trigger: string[];
21
- indicator: string;
22
- };
23
- link: {
24
- list: string;
25
- indicator: string;
26
- trigger: string[];
27
- };
28
- };
29
- orientation: {
30
- horizontal: {
31
- root: string;
32
- list: string;
33
- indicator: string;
34
- trigger: string;
35
- };
36
- vertical: {
37
- list: string;
38
- indicator: string;
39
- trigger: string;
40
- };
41
- };
42
- size: {
43
- xs: {
44
- root: string;
45
- };
46
- sm: {
47
- root: string;
48
- };
49
- md: {
50
- root: string;
51
- };
52
- lg: {
53
- root: string;
54
- };
55
- xl: {
56
- root: string;
57
- };
58
- };
59
- evenly: {
60
- true: {
61
- trigger: string;
62
- };
63
- };
64
- }, ({
65
- size: ("xs" | "sm" | "md")[];
66
- class: {
67
- trigger: string;
68
- indicator?: undefined;
69
- list?: undefined;
70
- };
71
- orientation?: undefined;
72
- variant?: undefined;
73
- } | {
74
- size: ("lg" | "xl")[];
75
- class: {
76
- trigger: string;
77
- indicator?: undefined;
78
- list?: undefined;
79
- };
80
- orientation?: undefined;
81
- variant?: undefined;
82
- } | {
83
- orientation: "horizontal";
84
- variant: ("solid" | "outline" | "soft" | "soft-outline")[];
85
- class: {
86
- indicator: string;
87
- trigger?: undefined;
88
- list?: undefined;
89
- };
90
- size?: undefined;
91
- } | {
92
- orientation: "horizontal";
93
- variant: "link";
94
- class: {
95
- list: string;
96
- indicator: string;
97
- trigger?: undefined;
98
- };
99
- size?: undefined;
100
- } | {
101
- orientation: "vertical";
102
- variant: ("solid" | "outline" | "soft" | "soft-outline")[];
103
- class: {
104
- indicator: string;
105
- list: string;
106
- trigger?: undefined;
107
- };
108
- size?: undefined;
109
- } | {
110
- orientation: "vertical";
111
- variant: "link";
112
- class: {
113
- list: string;
114
- indicator: string;
115
- trigger?: undefined;
116
- };
117
- size?: undefined;
118
- })[], {
119
- size: "md";
120
- }, undefined, {
121
- root: string;
122
- list: string;
123
- indicator: string;
124
- trigger: string[];
125
- content: string;
126
- leadingIcon: string;
127
- label: string;
128
- }>;
129
- export default _default;
@@ -1,146 +0,0 @@
1
- import { ct } from "@byyuurin/ui-kit";
2
- export default ct(
3
- /* @unocss-include */
4
- {
5
- parts: {
6
- root: "flex items-center gap-2",
7
- list: "relative flex p-1 group",
8
- indicator: "absolute transition-all duration-200",
9
- trigger: [
10
- "group relative inline-flex items-center gap-0.25em shrink-0 min-w-0 font-medium rounded-ui-tabs transition-colors",
11
- "outline-none",
12
- "disabled:cursor-not-allowed disabled:opacity-50"
13
- ],
14
- content: "w-full focus:outline-none",
15
- leadingIcon: "shrink-0 size-1.5em",
16
- label: "truncate"
17
- },
18
- variants: {
19
- variant: {
20
- "solid": {
21
- list: "bg-soft-ui-cb/5 rounded-ui-tabs",
22
- trigger: [
23
- "data-[state=active]:color-ui-cx focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-base/80",
24
- "data-[state=inactive]:color-ui-base/80 hover:data-[state=inactive]:not-disabled:color-ui-base"
25
- ],
26
- indicator: "bg-soft-ui-fill/90 rounded-ui-tabs shadow-sm"
27
- },
28
- "outline": {
29
- list: "bg-soft-ui-cb/5 rounded-ui-tabs",
30
- trigger: [
31
- "data-[state=active]:color-ui-fill focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-fill/80",
32
- "data-[state=inactive]:color-ui-base/80 hover:data-[state=inactive]:not-disabled:color-ui-base"
33
- ],
34
- indicator: "rounded-ui-tabs ring ring-inset ring-ui-fill"
35
- },
36
- "soft": {
37
- list: "bg-soft-ui-cb/5 rounded-ui-tabs",
38
- trigger: [
39
- "data-[state=active]:color-ui-fill focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-fill",
40
- "data-[state=inactive]:color-ui-base/80 hover:data-[state=inactive]:not-disabled:color-ui-base"
41
- ],
42
- indicator: "bg-soft-ui-fill/10 rounded-ui-tabs shadow-sm"
43
- },
44
- "soft-outline": {
45
- list: "bg-soft-ui-cb/5 rounded-ui-tabs",
46
- trigger: [
47
- "data-[state=active]:color-ui-fill focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-fill",
48
- "data-[state=inactive]:color-ui-base/80 hover:data-[state=inactive]:not-disabled:color-ui-base"
49
- ],
50
- indicator: "bg-soft-ui-fill/10 rounded-ui-tabs shadow-sm ring ring-inset ring-ui-fill/30"
51
- },
52
- "link": {
53
- list: "bg-soft-ui-cb/5 border-ui-base/10",
54
- indicator: "bg-soft-ui-fill rounded-full",
55
- trigger: [
56
- "data-[state=active]:color-ui-base focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ui-base",
57
- "data-[state=inactive]:color-ui-base/80 hover:data-[state=inactive]:not-disabled:color-ui-base"
58
- ]
59
- }
60
- },
61
- orientation: {
62
- horizontal: {
63
- root: "flex-col",
64
- list: "w-full",
65
- indicator: "left-0 w-[var(--reka-tabs-indicator-size)] translate-x-[var(--reka-tabs-indicator-position)]",
66
- trigger: "justify-center"
67
- },
68
- vertical: {
69
- list: "flex-col",
70
- indicator: "top-0 h-[var(--reka-tabs-indicator-size)] translate-y-[var(--reka-tabs-indicator-position)]",
71
- trigger: "flex-1 w-full"
72
- }
73
- },
74
- size: {
75
- xs: {
76
- root: "text-sm"
77
- },
78
- sm: {
79
- root: "tex-tsm"
80
- },
81
- md: {
82
- root: "text-base"
83
- },
84
- lg: {
85
- root: "text-lg"
86
- },
87
- xl: {
88
- root: "text-xl"
89
- }
90
- },
91
- evenly: {
92
- true: {
93
- trigger: "w-full flex-1"
94
- }
95
- }
96
- },
97
- compoundVariants: [
98
- {
99
- size: ["xs", "sm", "md"],
100
- class: {
101
- trigger: "p-1.5 px-2.5"
102
- }
103
- },
104
- {
105
- size: ["lg", "xl"],
106
- class: {
107
- trigger: "p-2.5 px-4.5"
108
- }
109
- },
110
- {
111
- orientation: "horizontal",
112
- variant: ["solid", "soft", "outline", "soft-outline"],
113
- class: {
114
- indicator: "inset-y-1"
115
- }
116
- },
117
- {
118
- orientation: "horizontal",
119
- variant: "link",
120
- class: {
121
- list: "border-b -mb-px",
122
- indicator: "-bottom-px h-px"
123
- }
124
- },
125
- {
126
- orientation: "vertical",
127
- variant: ["solid", "soft", "outline", "soft-outline"],
128
- class: {
129
- indicator: "inset-x-1",
130
- list: "items-center rounded-[calc(var(--ui-radius-tabs)*0.66)]"
131
- }
132
- },
133
- {
134
- orientation: "vertical",
135
- variant: "link",
136
- class: {
137
- list: "border-s -ms-px",
138
- indicator: "-start-px w-px"
139
- }
140
- }
141
- ],
142
- defaultVariants: {
143
- size: "md"
144
- }
145
- }
146
- );