@byyuurin/ui 0.0.11 → 0.2.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 (297) 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 +50 -43
  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 +99 -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/CheckboxGroup.vue +131 -0
  30. package/dist/runtime/components/CheckboxGroup.vue.d.ts +89 -0
  31. package/dist/runtime/components/Chip.vue +35 -32
  32. package/dist/runtime/components/Chip.vue.d.ts +33 -15
  33. package/dist/runtime/components/Collapsible.vue +13 -9
  34. package/dist/runtime/components/Collapsible.vue.d.ts +16 -8
  35. package/dist/runtime/components/Drawer.vue +80 -70
  36. package/dist/runtime/components/Drawer.vue.d.ts +51 -28
  37. package/dist/runtime/components/DropdownMenu.vue +23 -16
  38. package/dist/runtime/components/DropdownMenu.vue.d.ts +77 -36
  39. package/dist/runtime/components/DropdownMenuContent.vue +136 -106
  40. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +38 -26
  41. package/dist/runtime/components/FieldGroup.vue +33 -0
  42. package/dist/runtime/components/FieldGroup.vue.d.ts +33 -0
  43. package/dist/runtime/components/Form.vue +172 -88
  44. package/dist/runtime/components/Form.vue.d.ts +69 -44
  45. package/dist/runtime/components/FormField.vue +108 -0
  46. package/dist/runtime/components/FormField.vue.d.ts +63 -0
  47. package/dist/runtime/components/Icon.vue +20 -0
  48. package/dist/runtime/components/Icon.vue.d.ts +9 -0
  49. package/dist/runtime/components/Input.vue +84 -79
  50. package/dist/runtime/components/Input.vue.d.ts +55 -43
  51. package/dist/runtime/components/InputNumber.vue +66 -52
  52. package/dist/runtime/components/InputNumber.vue.d.ts +50 -109
  53. package/dist/runtime/components/InputTags.vue +155 -0
  54. package/dist/runtime/components/InputTags.vue.d.ts +85 -0
  55. package/dist/runtime/components/Kbd.vue +11 -5
  56. package/dist/runtime/components/Kbd.vue.d.ts +17 -11
  57. package/dist/runtime/components/Link.vue +54 -197
  58. package/dist/runtime/components/Link.vue.d.ts +17 -17
  59. package/dist/runtime/components/LinkBase.vue +11 -33
  60. package/dist/runtime/components/LinkBase.vue.d.ts +8 -3
  61. package/dist/runtime/components/Marquee.vue +38 -0
  62. package/dist/runtime/components/Marquee.vue.d.ts +54 -0
  63. package/dist/runtime/components/Modal.vue +53 -39
  64. package/dist/runtime/components/Modal.vue.d.ts +64 -34
  65. package/dist/runtime/components/NavigationMenu.vue +345 -0
  66. package/dist/runtime/components/NavigationMenu.vue.d.ts +216 -0
  67. package/dist/runtime/components/OverlayProvider.vue +3 -3
  68. package/dist/runtime/components/OverlayProvider.vue.d.ts +2 -1
  69. package/dist/runtime/components/Pagination.vue +39 -47
  70. package/dist/runtime/components/Pagination.vue.d.ts +54 -31
  71. package/dist/runtime/components/PinInput.vue +46 -32
  72. package/dist/runtime/components/PinInput.vue.d.ts +40 -21
  73. package/dist/runtime/components/Popover.vue +33 -19
  74. package/dist/runtime/components/Popover.vue.d.ts +57 -32
  75. package/dist/runtime/components/Progress.vue +31 -26
  76. package/dist/runtime/components/Progress.vue.d.ts +32 -23
  77. package/dist/runtime/components/RadioGroup.vue +75 -48
  78. package/dist/runtime/components/RadioGroup.vue.d.ts +58 -36
  79. package/dist/runtime/components/ScrollArea.vue +33 -31
  80. package/dist/runtime/components/ScrollArea.vue.d.ts +9 -5
  81. package/dist/runtime/components/Select.vue +166 -76
  82. package/dist/runtime/components/Select.vue.d.ts +206 -65
  83. package/dist/runtime/components/Separator.vue +42 -16
  84. package/dist/runtime/components/Separator.vue.d.ts +35 -14
  85. package/dist/runtime/components/Skeleton.vue +18 -6
  86. package/dist/runtime/components/Skeleton.vue.d.ts +4 -4
  87. package/dist/runtime/components/Slider.vue +42 -24
  88. package/dist/runtime/components/Slider.vue.d.ts +43 -27
  89. package/dist/runtime/components/Switch.vue +40 -31
  90. package/dist/runtime/components/Switch.vue.d.ts +36 -27
  91. package/dist/runtime/components/Table.vue +329 -79
  92. package/dist/runtime/components/Table.vue.d.ts +152 -66
  93. package/dist/runtime/components/Tabs.vue +70 -23
  94. package/dist/runtime/components/Tabs.vue.d.ts +61 -29
  95. package/dist/runtime/components/Textarea.vue +102 -54
  96. package/dist/runtime/components/Textarea.vue.d.ts +57 -41
  97. package/dist/runtime/components/Timeline.vue +102 -0
  98. package/dist/runtime/components/Timeline.vue.d.ts +74 -0
  99. package/dist/runtime/components/Toast.vue +84 -38
  100. package/dist/runtime/components/Toast.vue.d.ts +48 -27
  101. package/dist/runtime/components/ToastProvider.vue +31 -22
  102. package/dist/runtime/components/ToastProvider.vue.d.ts +30 -17
  103. package/dist/runtime/components/Tooltip.vue +33 -21
  104. package/dist/runtime/components/Tooltip.vue.d.ts +37 -15
  105. package/dist/runtime/composables/defineShortcuts.d.ts +16 -0
  106. package/dist/runtime/composables/defineShortcuts.js +129 -0
  107. package/dist/runtime/composables/useAvatarGroup.d.ts +8 -3
  108. package/dist/runtime/composables/useAvatarGroup.js +10 -3
  109. package/dist/runtime/composables/useComponentIcons.d.ts +9 -6
  110. package/dist/runtime/composables/useComponentIcons.js +4 -4
  111. package/dist/runtime/composables/useFieldGroup.d.ts +8 -0
  112. package/dist/runtime/composables/useFieldGroup.js +14 -0
  113. package/dist/runtime/composables/useFormField.d.ts +62 -0
  114. package/dist/runtime/composables/useFormField.js +99 -0
  115. package/dist/runtime/composables/useKbd.d.ts +3 -2
  116. package/dist/runtime/composables/useKbd.js +3 -2
  117. package/dist/runtime/composables/useLocale.d.ts +68 -5
  118. package/dist/runtime/composables/useLocale.js +11 -11
  119. package/dist/runtime/composables/useOverlay.d.ts +51 -15
  120. package/dist/runtime/composables/useOverlay.js +44 -30
  121. package/dist/runtime/composables/usePortal.d.ts +6 -0
  122. package/dist/runtime/composables/usePortal.js +17 -0
  123. package/dist/runtime/composables/useToast.d.ts +12 -5
  124. package/dist/runtime/composables/useToast.js +12 -7
  125. package/dist/runtime/locale/en.d.ts +30 -1
  126. package/dist/runtime/locale/en.js +2 -1
  127. package/dist/runtime/locale/index.d.ts +2 -2
  128. package/dist/runtime/locale/index.js +1 -1
  129. package/dist/runtime/locale/zh_tw.d.ts +31 -0
  130. package/dist/runtime/locale/{zh-tw.js → zh_tw.js} +2 -1
  131. package/dist/runtime/plugins/colors.d.ts +2 -0
  132. package/dist/runtime/plugins/colors.js +50 -0
  133. package/dist/runtime/types/app.config.d.ts +6 -0
  134. package/dist/runtime/types/form.d.ts +58 -17
  135. package/dist/runtime/types/form.js +11 -0
  136. package/dist/runtime/types/index.d.ts +56 -8
  137. package/dist/runtime/types/index.js +49 -1
  138. package/dist/runtime/types/input.d.ts +8 -0
  139. package/dist/runtime/types/locale.d.ts +5 -0
  140. package/dist/runtime/types/style.d.ts +33 -0
  141. package/dist/runtime/types/style.js +0 -0
  142. package/dist/runtime/types/unocss.d.ts +4 -0
  143. package/dist/runtime/types/utils.d.ts +41 -37
  144. package/dist/runtime/utils/form.d.ts +5 -1
  145. package/dist/runtime/utils/form.js +49 -0
  146. package/dist/runtime/utils/index.d.ts +10 -13
  147. package/dist/runtime/utils/index.js +41 -48
  148. package/dist/runtime/utils/link.d.ts +3 -2
  149. package/dist/runtime/utils/link.js +16 -2
  150. package/dist/runtime/utils/locale.d.ts +5 -0
  151. package/dist/runtime/utils/locale.js +10 -0
  152. package/dist/runtime/utils/style.d.ts +94 -0
  153. package/dist/runtime/utils/style.js +37 -0
  154. package/dist/runtime/vue/components/Icon.vue +15 -0
  155. package/dist/runtime/vue/components/Icon.vue.d.ts +7 -0
  156. package/dist/runtime/vue/components/Link.vue +163 -0
  157. package/dist/runtime/vue/components/Link.vue.d.ts +95 -0
  158. package/dist/runtime/vue/composables/useAppConfig.d.ts +1 -0
  159. package/dist/runtime/vue/composables/useAppConfig.js +4 -0
  160. package/dist/runtime/vue/plugins/color-mode.d.ts +4 -0
  161. package/dist/runtime/vue/plugins/color-mode.js +6 -0
  162. package/dist/runtime/vue/plugins/head.d.ts +4 -0
  163. package/dist/runtime/vue/plugins/head.js +9 -0
  164. package/dist/runtime/vue/stubs.d.ts +16 -1
  165. package/dist/runtime/vue/stubs.js +32 -1
  166. package/dist/setup.d.mts +13 -0
  167. package/dist/setup.mjs +12 -0
  168. package/dist/shared/ui.CzIlLITK.mjs +51 -0
  169. package/dist/shared/ui.DLOxhmP0.mjs +4242 -0
  170. package/dist/shared/ui.DpbffTXs.d.mts +84 -0
  171. package/dist/shared/ui.IulR-OYx.d.mts +64 -0
  172. package/dist/types.d.mts +3 -1
  173. package/dist/unocss.d.mts +12 -52
  174. package/dist/unocss.mjs +144 -254
  175. package/dist/unplugin.d.mts +13 -26
  176. package/dist/unplugin.mjs +193 -18
  177. package/dist/vite.d.mts +10 -1
  178. package/dist/vite.mjs +12 -3
  179. package/package.json +154 -87
  180. package/vue-plugin.d.ts +5 -0
  181. package/dist/module.d.ts +0 -13
  182. package/dist/module.mjs.map +0 -1
  183. package/dist/runtime/app/injections.d.ts +0 -9331
  184. package/dist/runtime/app/injections.js +0 -61
  185. package/dist/runtime/components/ButtonGroup.vue +0 -26
  186. package/dist/runtime/components/ButtonGroup.vue.d.ts +0 -26
  187. package/dist/runtime/components/FormItem.vue +0 -90
  188. package/dist/runtime/components/FormItem.vue.d.ts +0 -60
  189. package/dist/runtime/composables/useButtonGroup.d.ts +0 -5
  190. package/dist/runtime/composables/useButtonGroup.js +0 -9
  191. package/dist/runtime/composables/useFormItem.d.ts +0 -27
  192. package/dist/runtime/composables/useFormItem.js +0 -64
  193. package/dist/runtime/composables/useTheme.d.ts +0 -9
  194. package/dist/runtime/composables/useTheme.js +0 -23
  195. package/dist/runtime/index.d.ts +0 -44
  196. package/dist/runtime/index.js +0 -44
  197. package/dist/runtime/locale/zh-tw.d.ts +0 -2
  198. package/dist/runtime/theme/accordion.d.ts +0 -50
  199. package/dist/runtime/theme/accordion.js +0 -28
  200. package/dist/runtime/theme/alert.d.ts +0 -119
  201. package/dist/runtime/theme/alert.js +0 -47
  202. package/dist/runtime/theme/app.d.ts +0 -19
  203. package/dist/runtime/theme/app.js +0 -19
  204. package/dist/runtime/theme/avatar-group.d.ts +0 -46
  205. package/dist/runtime/theme/avatar-group.js +0 -32
  206. package/dist/runtime/theme/avatar.d.ts +0 -50
  207. package/dist/runtime/theme/avatar.js +0 -34
  208. package/dist/runtime/theme/badge.d.ts +0 -76
  209. package/dist/runtime/theme/badge.js +0 -92
  210. package/dist/runtime/theme/breadcrumb.d.ts +0 -61
  211. package/dist/runtime/theme/breadcrumb.js +0 -44
  212. package/dist/runtime/theme/button-group.d.ts +0 -60
  213. package/dist/runtime/theme/button-group.js +0 -42
  214. package/dist/runtime/theme/button.d.ts +0 -184
  215. package/dist/runtime/theme/button.js +0 -164
  216. package/dist/runtime/theme/calendar.d.ts +0 -58
  217. package/dist/runtime/theme/calendar.js +0 -86
  218. package/dist/runtime/theme/card.d.ts +0 -56
  219. package/dist/runtime/theme/card.js +0 -37
  220. package/dist/runtime/theme/carousel.d.ts +0 -107
  221. package/dist/runtime/theme/carousel.js +0 -43
  222. package/dist/runtime/theme/checkbox.d.ts +0 -82
  223. package/dist/runtime/theme/checkbox.js +0 -54
  224. package/dist/runtime/theme/chip.d.ts +0 -61
  225. package/dist/runtime/theme/chip.js +0 -66
  226. package/dist/runtime/theme/collapsible.d.ts +0 -32
  227. package/dist/runtime/theme/collapsible.js +0 -10
  228. package/dist/runtime/theme/drawer.d.ts +0 -142
  229. package/dist/runtime/theme/drawer.js +0 -113
  230. package/dist/runtime/theme/dropdown-menu.d.ts +0 -65
  231. package/dist/runtime/theme/dropdown-menu.js +0 -83
  232. package/dist/runtime/theme/form-item.d.ts +0 -70
  233. package/dist/runtime/theme/form-item.js +0 -34
  234. package/dist/runtime/theme/form.d.ts +0 -2
  235. package/dist/runtime/theme/form.js +0 -7
  236. package/dist/runtime/theme/index.d.ts +0 -41
  237. package/dist/runtime/theme/index.js +0 -41
  238. package/dist/runtime/theme/input-number.d.ts +0 -115
  239. package/dist/runtime/theme/input-number.js +0 -95
  240. package/dist/runtime/theme/input.d.ts +0 -172
  241. package/dist/runtime/theme/input.js +0 -151
  242. package/dist/runtime/theme/kbd.d.ts +0 -33
  243. package/dist/runtime/theme/kbd.js +0 -26
  244. package/dist/runtime/theme/link.d.ts +0 -38
  245. package/dist/runtime/theme/link.js +0 -26
  246. package/dist/runtime/theme/modal.d.ts +0 -42
  247. package/dist/runtime/theme/modal.js +0 -55
  248. package/dist/runtime/theme/pagination.d.ts +0 -74
  249. package/dist/runtime/theme/pagination.js +0 -17
  250. package/dist/runtime/theme/pinInput.d.ts +0 -94
  251. package/dist/runtime/theme/pinInput.js +0 -111
  252. package/dist/runtime/theme/popover.d.ts +0 -32
  253. package/dist/runtime/theme/popover.js +0 -13
  254. package/dist/runtime/theme/progress.d.ts +0 -180
  255. package/dist/runtime/theme/progress.js +0 -95
  256. package/dist/runtime/theme/radio-group.d.ts +0 -104
  257. package/dist/runtime/theme/radio-group.js +0 -61
  258. package/dist/runtime/theme/scroll-area.d.ts +0 -67
  259. package/dist/runtime/theme/scroll-area.js +0 -33
  260. package/dist/runtime/theme/select.d.ts +0 -186
  261. package/dist/runtime/theme/select.js +0 -173
  262. package/dist/runtime/theme/separator.d.ts +0 -74
  263. package/dist/runtime/theme/separator.js +0 -53
  264. package/dist/runtime/theme/skeleton.d.ts +0 -2
  265. package/dist/runtime/theme/skeleton.js +0 -7
  266. package/dist/runtime/theme/slider.d.ts +0 -70
  267. package/dist/runtime/theme/slider.js +0 -52
  268. package/dist/runtime/theme/switch.d.ts +0 -116
  269. package/dist/runtime/theme/switch.js +0 -78
  270. package/dist/runtime/theme/table.d.ts +0 -86
  271. package/dist/runtime/theme/table.js +0 -36
  272. package/dist/runtime/theme/tabs.d.ts +0 -129
  273. package/dist/runtime/theme/tabs.js +0 -146
  274. package/dist/runtime/theme/textarea.d.ts +0 -90
  275. package/dist/runtime/theme/textarea.js +0 -116
  276. package/dist/runtime/theme/toast-provider.d.ts +0 -116
  277. package/dist/runtime/theme/toast-provider.js +0 -97
  278. package/dist/runtime/theme/toast.d.ts +0 -83
  279. package/dist/runtime/theme/toast.js +0 -35
  280. package/dist/runtime/theme/tooltip.d.ts +0 -38
  281. package/dist/runtime/theme/tooltip.js +0 -11
  282. package/dist/runtime/types/components.d.ts +0 -42
  283. package/dist/runtime/utils/extend-theme.d.ts +0 -9
  284. package/dist/runtime/utils/extend-theme.js +0 -27
  285. package/dist/runtime/utils/styler.d.ts +0 -4
  286. package/dist/runtime/utils/styler.js +0 -10
  287. package/dist/runtime/utils/translator.d.ts +0 -18
  288. package/dist/runtime/utils/translator.js +0 -8
  289. package/dist/shared/ui.D1BTWZFB.mjs +0 -5
  290. package/dist/shared/ui.D1BTWZFB.mjs.map +0 -1
  291. package/dist/unocss.d.ts +0 -52
  292. package/dist/unocss.mjs.map +0 -1
  293. package/dist/unplugin.d.ts +0 -26
  294. package/dist/unplugin.mjs.map +0 -1
  295. package/dist/vite.d.ts +0 -9
  296. package/dist/vite.mjs.map +0 -1
  297. /package/dist/runtime/types/{components.js → input.js} +0 -0
@@ -1,107 +0,0 @@
1
- declare const _default: import("@byyuurin/ui-kit").CVScopeMeta<{
2
- orientation: {
3
- vertical: {
4
- container: string;
5
- item: string;
6
- controls: string;
7
- arrows: string;
8
- dots: string;
9
- prev: string;
10
- next: string;
11
- };
12
- horizontal: {
13
- container: string;
14
- item: string;
15
- prev: string;
16
- next: string;
17
- dots: string;
18
- };
19
- };
20
- active: {
21
- true: {
22
- dot: string;
23
- };
24
- };
25
- }, import("@byyuurin/ui-kit").CVCompoundVariants<{
26
- orientation: {
27
- vertical: {
28
- container: string;
29
- item: string;
30
- controls: string;
31
- arrows: string;
32
- dots: string;
33
- prev: string;
34
- next: string;
35
- };
36
- horizontal: {
37
- container: string;
38
- item: string;
39
- prev: string;
40
- next: string;
41
- dots: string;
42
- };
43
- };
44
- active: {
45
- true: {
46
- dot: string;
47
- };
48
- };
49
- }, {
50
- root: string;
51
- viewport: string;
52
- container: string;
53
- item: string;
54
- controls: string;
55
- arrows: string;
56
- prev: string;
57
- next: string;
58
- dots: string;
59
- dot: string;
60
- }, undefined>, import("@byyuurin/ui-kit").CVDefaultVariants<{
61
- orientation: {
62
- vertical: {
63
- container: string;
64
- item: string;
65
- controls: string;
66
- arrows: string;
67
- dots: string;
68
- prev: string;
69
- next: string;
70
- };
71
- horizontal: {
72
- container: string;
73
- item: string;
74
- prev: string;
75
- next: string;
76
- dots: string;
77
- };
78
- };
79
- active: {
80
- true: {
81
- dot: string;
82
- };
83
- };
84
- }, {
85
- root: string;
86
- viewport: string;
87
- container: string;
88
- item: string;
89
- controls: string;
90
- arrows: string;
91
- prev: string;
92
- next: string;
93
- dots: string;
94
- dot: string;
95
- }>, undefined, {
96
- root: string;
97
- viewport: string;
98
- container: string;
99
- item: string;
100
- controls: string;
101
- arrows: string;
102
- prev: string;
103
- next: string;
104
- dots: string;
105
- dot: string;
106
- }>;
107
- export default _default;
@@ -1,43 +0,0 @@
1
- import { ct } from "@byyuurin/ui-kit";
2
- export default ct(
3
- /* @unocss-include */
4
- {
5
- parts: {
6
- root: "relative focus:outline-none",
7
- viewport: "overflow-hidden",
8
- container: "flex items-start",
9
- item: "min-w-0 shrink-0 basis-full",
10
- controls: "",
11
- arrows: "",
12
- prev: "rounded-full",
13
- next: "rounded-full",
14
- dots: "flex flex-wrap items-center justify-center gap-3",
15
- dot: "cursor-pointer size-3 bg-soft-ui-cb/10 rounded-full transition"
16
- },
17
- variants: {
18
- orientation: {
19
- vertical: {
20
- container: "flex-col -mt-4",
21
- item: "pt-4",
22
- controls: "flex gap-4 justify-between py-2",
23
- arrows: "flex gap-1 only-child:mx-auto",
24
- dots: "only-child:mx-auto only-child:my-2",
25
- prev: "rotate-90 rtl:-rotate-90",
26
- next: "rotate-90 rtl:-rotate-90"
27
- },
28
- horizontal: {
29
- container: "flex-row -ms-4",
30
- item: "ps-4",
31
- prev: "absolute -start-12 top-1/2 [translate:0_-50%]",
32
- next: "absolute -end-12 top-1/2 [translate:0_-50%]",
33
- dots: "absolute inset-x-0 -bottom-7"
34
- }
35
- },
36
- active: {
37
- true: {
38
- dot: "bg-ui-fill"
39
- }
40
- }
41
- }
42
- }
43
- );
@@ -1,82 +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
- required: {
20
- true: {
21
- label: string;
22
- };
23
- };
24
- disabled: {
25
- true: {
26
- root: string;
27
- };
28
- false: {
29
- label: string;
30
- };
31
- };
32
- }, import("@byyuurin/ui-kit").CVCompoundVariants<{
33
- size: {
34
- xs: {
35
- root: string;
36
- };
37
- sm: {
38
- root: string;
39
- };
40
- md: {
41
- root: string;
42
- };
43
- lg: {
44
- root: string;
45
- };
46
- xl: {
47
- root: string;
48
- };
49
- };
50
- required: {
51
- true: {
52
- label: string;
53
- };
54
- };
55
- disabled: {
56
- true: {
57
- root: string;
58
- };
59
- false: {
60
- label: string;
61
- };
62
- };
63
- }, {
64
- root: string;
65
- base: string[];
66
- container: string;
67
- wrapper: string;
68
- icon: string;
69
- label: string;
70
- description: string;
71
- }, undefined>, {
72
- size: "md";
73
- }, undefined, {
74
- root: string;
75
- base: string[];
76
- container: string;
77
- wrapper: string;
78
- icon: string;
79
- label: string;
80
- description: string;
81
- }>;
82
- export default _default;
@@ -1,54 +0,0 @@
1
- import { ct } from "@byyuurin/ui-kit";
2
- export default ct(
3
- /* @unocss-include */
4
- {
5
- parts: {
6
- root: "relative flex items-start",
7
- base: [
8
- "size-1.25em shrink-0 flex items-center justify-center rounded-ui-checkbox color-ui-cx ring-2 ring-ui-fill ring-inset bg-ui-fill",
9
- "outline-none focus-visible:outline-ui-base/80 focus-visible:outline-2 focus-visible:outline-offset-2",
10
- "aria-[checked=false]:ring-1 aria-[checked=false]:ring-ui-base aria-[checked=false]:bg-ui-base"
11
- ],
12
- container: "flex items-center h-1.25em overflow-hidden",
13
- wrapper: "text-inherit ms-2",
14
- icon: "color-ui-cx shrink-0 size-1em transition data-[state=unchecked]:translate-y-full",
15
- label: "flex color-ui-base after:content-empty",
16
- description: "color-ui-base/60"
17
- },
18
- variants: {
19
- size: {
20
- xs: {
21
- root: "text-xs"
22
- },
23
- sm: {
24
- root: "text-sm"
25
- },
26
- md: {
27
- root: "text-base"
28
- },
29
- lg: {
30
- root: "text-lg"
31
- },
32
- xl: {
33
- root: "text-xl"
34
- }
35
- },
36
- required: {
37
- true: {
38
- label: `after:content-['*'] after:ms-0.5`
39
- }
40
- },
41
- disabled: {
42
- true: {
43
- root: "opacity-50 after:content-empty after:absolute after:inset-0 after:cursor-not-allowed"
44
- },
45
- false: {
46
- label: "cursor-pointer"
47
- }
48
- }
49
- },
50
- defaultVariants: {
51
- size: "md"
52
- }
53
- }
54
- );
@@ -1,61 +0,0 @@
1
- declare const _default: import("@byyuurin/ui-kit").CVScopeMeta<{
2
- variant: {
3
- solid: {
4
- base: string;
5
- };
6
- outline: {
7
- base: string;
8
- };
9
- soft: {
10
- base: string;
11
- };
12
- 'soft-outline': {
13
- base: string;
14
- };
15
- };
16
- size: {
17
- xs: {
18
- base: string;
19
- };
20
- sm: {
21
- base: string;
22
- };
23
- md: {
24
- base: string;
25
- };
26
- lg: {
27
- base: string;
28
- };
29
- xl: {
30
- base: string;
31
- };
32
- };
33
- groupOrientation: {
34
- horizontal: {
35
- base: string;
36
- };
37
- vertical: {
38
- base: string;
39
- };
40
- };
41
- }, ({
42
- size: ("xs" | "sm" | "md")[];
43
- class: {
44
- base: string;
45
- label: string;
46
- };
47
- } | {
48
- size: ("lg" | "xl")[];
49
- class: {
50
- base: string;
51
- label: string;
52
- };
53
- })[], {
54
- size: "md";
55
- }, undefined, {
56
- base: string;
57
- label: string;
58
- leadingIcon: string;
59
- trailingIcon: string;
60
- }>;
61
- export default _default;
@@ -1,66 +0,0 @@
1
- import { ct } from "@byyuurin/ui-kit";
2
- import { buttonGroupVariant } from "./button-group.js";
3
- export default ct(
4
- /* @unocss-include */
5
- {
6
- parts: {
7
- base: "inline-flex items-center rounded-ui-base leading-normal transition-colors",
8
- label: "",
9
- leadingIcon: "shrink-0 size-1.5em not-only-child:ml-1.5",
10
- trailingIcon: "shrink-0 size-1.5em not-only-child:mr-1.5"
11
- },
12
- variants: {
13
- ...buttonGroupVariant,
14
- variant: {
15
- "solid": {
16
- base: "color-ui-cx bg-soft-ui-fill/90"
17
- },
18
- "outline": {
19
- base: "color-ui-fill bg-ui-base ring ring-inset ring-ui-fill/30"
20
- },
21
- "soft": {
22
- base: "color-ui-fill/80 bg-soft-ui-fill/10"
23
- },
24
- "soft-outline": {
25
- base: "color-ui-fill/80 bg-soft-ui-fill/10 ring ring-inset ring-ui-fill/30"
26
- }
27
- },
28
- size: {
29
- xs: {
30
- base: "text-xs"
31
- },
32
- sm: {
33
- base: "text-sm"
34
- },
35
- md: {
36
- base: "text-base"
37
- },
38
- lg: {
39
- base: "text-lg"
40
- },
41
- xl: {
42
- base: "text-xl"
43
- }
44
- }
45
- },
46
- compoundVariants: [
47
- {
48
- size: ["xs", "sm", "md"],
49
- class: {
50
- base: "p-0.5",
51
- label: "px-1"
52
- }
53
- },
54
- {
55
- size: ["lg", "xl"],
56
- class: {
57
- base: "p-1",
58
- label: "px-2"
59
- }
60
- }
61
- ],
62
- defaultVariants: {
63
- size: "md"
64
- }
65
- }
66
- );
@@ -1,32 +0,0 @@
1
- declare const _default: import("@byyuurin/ui-kit").CVScopeMeta<{
2
- [variantName: string]: {
3
- [variantValue: string]: "" | {
4
- root?: import("@byyuurin/ui-kit").ClassValue;
5
- content?: import("@byyuurin/ui-kit").ClassValue;
6
- } | null;
7
- };
8
- }, import("@byyuurin/ui-kit").CVCompoundVariants<{
9
- [variantName: string]: {
10
- [variantValue: string]: "" | {
11
- root?: import("@byyuurin/ui-kit").ClassValue;
12
- content?: import("@byyuurin/ui-kit").ClassValue;
13
- } | null;
14
- };
15
- }, {
16
- root: string;
17
- content: string;
18
- }, undefined>, import("@byyuurin/ui-kit").CVDefaultVariants<{
19
- [variantName: string]: {
20
- [variantValue: string]: "" | {
21
- root?: import("@byyuurin/ui-kit").ClassValue;
22
- content?: import("@byyuurin/ui-kit").ClassValue;
23
- } | null;
24
- };
25
- }, {
26
- root: string;
27
- content: string;
28
- }>, undefined, {
29
- root: string;
30
- content: string;
31
- }>;
32
- export default _default;
@@ -1,10 +0,0 @@
1
- import { ct } from "@byyuurin/ui-kit";
2
- export default ct(
3
- /* @unocss-include */
4
- {
5
- parts: {
6
- root: "",
7
- content: "data-[state=open]:animate-[collapsible-down_200ms_ease-out] data-[state=closed]:animate-[collapsible-up_200ms_ease-in] overflow-hidden"
8
- }
9
- }
10
- );
@@ -1,142 +0,0 @@
1
- declare const _default: import("@byyuurin/ui-kit").CVScopeMeta<{
2
- direction: {
3
- top: {
4
- content: string;
5
- };
6
- bottom: {
7
- content: string;
8
- };
9
- left: {
10
- content: string;
11
- };
12
- right: {
13
- content: string;
14
- };
15
- };
16
- transition: {
17
- true: {
18
- overlay: string;
19
- };
20
- };
21
- inset: {
22
- true: {
23
- content: string;
24
- };
25
- };
26
- }, ({
27
- direction: ("top" | "bottom")[];
28
- class: {
29
- content: string;
30
- };
31
- inset?: undefined;
32
- transition?: undefined;
33
- } | {
34
- direction: ("left" | "right")[];
35
- class: {
36
- content: string;
37
- };
38
- inset?: undefined;
39
- transition?: undefined;
40
- } | {
41
- direction: "top"[];
42
- inset: true;
43
- class: {
44
- content: string;
45
- };
46
- transition?: undefined;
47
- } | {
48
- direction: "top"[];
49
- transition: true;
50
- class: {
51
- content: string;
52
- };
53
- inset?: undefined;
54
- } | {
55
- direction: "bottom"[];
56
- inset: true;
57
- class: {
58
- content: string;
59
- };
60
- transition?: undefined;
61
- } | {
62
- direction: "bottom"[];
63
- transition: true;
64
- class: {
65
- content: string;
66
- };
67
- inset?: undefined;
68
- } | {
69
- direction: "left"[];
70
- inset: true;
71
- class: {
72
- content: string;
73
- };
74
- transition?: undefined;
75
- } | {
76
- direction: "left"[];
77
- transition: true;
78
- class: {
79
- content: string;
80
- };
81
- inset?: undefined;
82
- } | {
83
- direction: "right"[];
84
- inset: true;
85
- class: {
86
- content: string;
87
- };
88
- transition?: undefined;
89
- } | {
90
- direction: "right"[];
91
- transition: true;
92
- class: {
93
- content: string;
94
- };
95
- inset?: undefined;
96
- })[], import("@byyuurin/ui-kit").CVDefaultVariants<{
97
- direction: {
98
- top: {
99
- content: string;
100
- };
101
- bottom: {
102
- content: string;
103
- };
104
- left: {
105
- content: string;
106
- };
107
- right: {
108
- content: string;
109
- };
110
- };
111
- transition: {
112
- true: {
113
- overlay: string;
114
- };
115
- };
116
- inset: {
117
- true: {
118
- content: string;
119
- };
120
- };
121
- }, {
122
- overlay: string;
123
- content: string;
124
- container: string;
125
- header: string;
126
- body: string;
127
- footer: string;
128
- title: string;
129
- description: string;
130
- close: string;
131
- }>, undefined, {
132
- overlay: string;
133
- content: string;
134
- container: string;
135
- header: string;
136
- body: string;
137
- footer: string;
138
- title: string;
139
- description: string;
140
- close: string;
141
- }>;
142
- export default _default;
@@ -1,113 +0,0 @@
1
- import { ct } from "@byyuurin/ui-kit";
2
- export default ct(
3
- /* @unocss-include */
4
- {
5
- parts: {
6
- overlay: "fixed z-1 inset-0 bg-black/40",
7
- content: "fixed z-1 bg-ui-base ring ring-ui-base/5 flex focus:outline-none",
8
- container: "w-full flex flex-col overflow-hidden overflow-y-auto",
9
- header: "flex flex-wrap items-center gap-1 px-4 py-5 pb-0 sm:px-6",
10
- body: "flex-1 overflow-y-auto p-4 sm:p-6",
11
- footer: "flex items-center gap-1.5 p-4 pt-0 sm:px-6",
12
- title: "flex-grow color-ui-base text-xl font-semibold",
13
- description: "w-full color-ui-base/80",
14
- close: "ms-auto"
15
- },
16
- variants: {
17
- direction: {
18
- top: {
19
- content: "top-0 mb-24 flex-col-reverse rounded-b-ui-box"
20
- },
21
- bottom: {
22
- content: "bottom-0 mt-24 flex-col rounded-t-ui-box"
23
- },
24
- left: {
25
- content: "left-0 flex-row-reverse rounded-r-ui-box"
26
- },
27
- right: {
28
- content: "right-0 flex-row rounded-l-ui-box"
29
- }
30
- },
31
- transition: {
32
- true: {
33
- overlay: "data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]"
34
- }
35
- },
36
- inset: {
37
- true: {
38
- content: "rounded-ui-box after:hidden"
39
- }
40
- }
41
- },
42
- compoundVariants: [
43
- {
44
- direction: ["top", "bottom"],
45
- class: {
46
- content: "inset-x-0 h-auto max-h-[96%]"
47
- }
48
- },
49
- {
50
- direction: ["left", "right"],
51
- class: {
52
- content: "inset-y-0 w-auto max-w-[calc(100%-2rem)]"
53
- }
54
- },
55
- {
56
- direction: ["top"],
57
- inset: true,
58
- class: {
59
- content: "inset-x-4 top-4"
60
- }
61
- },
62
- {
63
- direction: ["top"],
64
- transition: true,
65
- class: {
66
- content: "data-[state=open]:animate-[slide-in-from-top_500ms_cubic-bezier(0.32,0.72,0,1)] data-[state=closed]:animate-[slide-out-to-top_500ms_cubic-bezier(0.32,0.72,0,1)]"
67
- }
68
- },
69
- {
70
- direction: ["bottom"],
71
- inset: true,
72
- class: {
73
- content: "inset-x-4 bottom-4"
74
- }
75
- },
76
- {
77
- direction: ["bottom"],
78
- transition: true,
79
- class: {
80
- content: "data-[state=open]:animate-[slide-in-from-bottom_500ms_cubic-bezier(0.32,0.72,0,1)] data-[state=closed]:animate-[slide-out-to-bottom_500ms_cubic-bezier(0.32,0.72,0,1)]"
81
- }
82
- },
83
- {
84
- direction: ["left"],
85
- inset: true,
86
- class: {
87
- content: "inset-y-4 left-4"
88
- }
89
- },
90
- {
91
- direction: ["left"],
92
- transition: true,
93
- class: {
94
- content: "data-[state=open]:animate-[slide-in-from-left_500ms_cubic-bezier(0.32,0.72,0,1)] data-[state=closed]:animate-[slide-out-to-left_500ms_cubic-bezier(0.32,0.72,0,1)]"
95
- }
96
- },
97
- {
98
- direction: ["right"],
99
- inset: true,
100
- class: {
101
- content: "inset-y-4 right-4"
102
- }
103
- },
104
- {
105
- direction: ["right"],
106
- transition: true,
107
- class: {
108
- content: "data-[state=open]:animate-[slide-in-from-right_500ms_cubic-bezier(0.32,0.72,0,1)] data-[state=closed]:animate-[slide-out-to-right_500ms_cubic-bezier(0.32,0.72,0,1)]"
109
- }
110
- }
111
- ]
112
- }
113
- );