@byyuurin/ui 0.0.9 → 0.0.11

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 (215) hide show
  1. package/README.md +2 -5
  2. package/dist/module.json +3 -3
  3. package/dist/module.mjs +1 -1
  4. package/dist/module.mjs.map +1 -1
  5. package/dist/runtime/app/injections.d.ts +9323 -3
  6. package/dist/runtime/app/injections.js +35 -0
  7. package/dist/runtime/components/Accordion.vue +36 -69
  8. package/dist/runtime/components/Accordion.vue.d.ts +52 -0
  9. package/dist/runtime/components/Alert.vue +37 -75
  10. package/dist/runtime/components/Alert.vue.d.ts +59 -0
  11. package/dist/runtime/components/App.vue +25 -40
  12. package/dist/runtime/components/App.vue.d.ts +24 -0
  13. package/dist/runtime/components/Avatar.vue +31 -51
  14. package/dist/runtime/components/Avatar.vue.d.ts +25 -0
  15. package/dist/runtime/components/AvatarGroup.vue +38 -69
  16. package/dist/runtime/components/AvatarGroup.vue.d.ts +27 -0
  17. package/dist/runtime/components/Badge.vue +25 -51
  18. package/dist/runtime/components/Badge.vue.d.ts +44 -0
  19. package/dist/runtime/components/Breadcrumb.vue +35 -77
  20. package/dist/runtime/components/Breadcrumb.vue.d.ts +52 -0
  21. package/dist/runtime/components/Button.vue +62 -51
  22. package/dist/runtime/components/Button.vue.d.ts +29 -0
  23. package/dist/runtime/components/ButtonGroup.vue +17 -37
  24. package/dist/runtime/components/ButtonGroup.vue.d.ts +26 -0
  25. package/dist/runtime/components/Calendar.vue +75 -101
  26. package/dist/runtime/components/Calendar.vue.d.ts +75 -0
  27. package/dist/runtime/components/Card.vue +25 -42
  28. package/dist/runtime/components/Card.vue.d.ts +30 -0
  29. package/dist/runtime/components/Carousel.vue +118 -223
  30. package/dist/runtime/components/Carousel.vue.d.ts +104 -0
  31. package/dist/runtime/components/Checkbox.vue +49 -71
  32. package/dist/runtime/components/Checkbox.vue.d.ts +56 -0
  33. package/dist/runtime/components/Chip.vue +31 -48
  34. package/dist/runtime/components/Chip.vue.d.ts +30 -0
  35. package/dist/runtime/components/Collapsible.vue +22 -30
  36. package/dist/runtime/components/Collapsible.vue.d.ts +26 -0
  37. package/dist/runtime/components/Drawer.vue +52 -102
  38. package/dist/runtime/components/Drawer.vue.d.ts +80 -0
  39. package/dist/runtime/components/DropdownMenu.vue +65 -0
  40. package/dist/runtime/components/DropdownMenu.vue.d.ts +99 -0
  41. package/dist/runtime/components/DropdownMenuContent.vue +192 -0
  42. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +39 -0
  43. package/dist/runtime/components/Form.vue +197 -0
  44. package/dist/runtime/components/Form.vue.d.ts +78 -0
  45. package/dist/runtime/components/FormItem.vue +90 -0
  46. package/dist/runtime/components/FormItem.vue.d.ts +60 -0
  47. package/dist/runtime/components/Input.vue +93 -115
  48. package/dist/runtime/components/Input.vue.d.ts +64 -0
  49. package/dist/runtime/components/InputNumber.vue +81 -116
  50. package/dist/runtime/components/InputNumber.vue.d.ts +245 -0
  51. package/dist/runtime/components/Kbd.vue +18 -39
  52. package/dist/runtime/components/Kbd.vue.d.ts +28 -0
  53. package/dist/runtime/components/Link.vue +170 -244
  54. package/dist/runtime/components/Link.vue.d.ts +95 -0
  55. package/dist/runtime/components/LinkBase.vue +36 -54
  56. package/dist/runtime/components/LinkBase.vue.d.ts +28 -0
  57. package/dist/runtime/components/Modal.vue +50 -85
  58. package/dist/runtime/components/Modal.vue.d.ts +66 -0
  59. package/dist/runtime/components/OverlayProvider.vue +10 -14
  60. package/dist/runtime/components/OverlayProvider.vue.d.ts +2 -0
  61. package/dist/runtime/components/Pagination.vue +55 -121
  62. package/dist/runtime/components/Pagination.vue.d.ts +93 -0
  63. package/dist/runtime/components/PinInput.vue +57 -57
  64. package/dist/runtime/components/PinInput.vue.d.ts +35 -0
  65. package/dist/runtime/components/Popover.vue +39 -68
  66. package/dist/runtime/components/Popover.vue.d.ts +45 -0
  67. package/dist/runtime/components/Progress.vue +68 -120
  68. package/dist/runtime/components/Progress.vue.d.ts +54 -0
  69. package/dist/runtime/components/RadioGroup.vue +75 -129
  70. package/dist/runtime/components/RadioGroup.vue.d.ts +74 -0
  71. package/dist/runtime/components/ScrollArea.vue +31 -31
  72. package/dist/runtime/components/ScrollArea.vue.d.ts +17 -0
  73. package/dist/runtime/components/Select.vue +119 -199
  74. package/dist/runtime/components/Select.vue.d.ts +119 -0
  75. package/dist/runtime/components/Separator.vue +26 -44
  76. package/dist/runtime/components/Separator.vue.d.ts +27 -0
  77. package/dist/runtime/components/Skeleton.vue +12 -21
  78. package/dist/runtime/components/Skeleton.vue.d.ts +19 -0
  79. package/dist/runtime/components/Slider.vue +54 -71
  80. package/dist/runtime/components/Slider.vue.d.ts +36 -0
  81. package/dist/runtime/components/Switch.vue +54 -68
  82. package/dist/runtime/components/Switch.vue.d.ts +49 -0
  83. package/dist/runtime/components/Table.vue +113 -186
  84. package/dist/runtime/components/Table.vue.d.ts +148 -0
  85. package/dist/runtime/components/Tabs.vue +35 -79
  86. package/dist/runtime/components/Tabs.vue.d.ts +65 -0
  87. package/dist/runtime/components/Textarea.vue +82 -123
  88. package/dist/runtime/components/Textarea.vue.d.ts +60 -0
  89. package/dist/runtime/components/Toast.vue +51 -76
  90. package/dist/runtime/components/Toast.vue.d.ts +131 -0
  91. package/dist/runtime/components/ToastProvider.vue +65 -101
  92. package/dist/runtime/components/ToastProvider.vue.d.ts +38 -0
  93. package/dist/runtime/components/Tooltip.vue +36 -47
  94. package/dist/runtime/components/Tooltip.vue.d.ts +31 -0
  95. package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
  96. package/dist/runtime/composables/useButtonGroup.d.ts +2 -2
  97. package/dist/runtime/composables/useFormItem.d.ts +27 -0
  98. package/dist/runtime/composables/useFormItem.js +64 -0
  99. package/dist/runtime/composables/useKbd.d.ts +1 -1
  100. package/dist/runtime/composables/useLocale.d.ts +3 -3
  101. package/dist/runtime/composables/useTheme.d.ts +1 -1
  102. package/dist/runtime/composables/useTheme.js +2 -1
  103. package/dist/runtime/composables/useToast.d.ts +1 -1
  104. package/dist/runtime/index.d.ts +3 -0
  105. package/dist/runtime/index.js +3 -0
  106. package/dist/runtime/locale/en.d.ts +1 -1
  107. package/dist/runtime/locale/zh-tw.d.ts +1 -1
  108. package/dist/runtime/theme/accordion.d.ts +45 -51
  109. package/dist/runtime/theme/accordion.js +1 -1
  110. package/dist/runtime/theme/alert.d.ts +115 -121
  111. package/dist/runtime/theme/alert.js +1 -1
  112. package/dist/runtime/theme/app.d.ts +1 -0
  113. package/dist/runtime/theme/app.js +2 -1
  114. package/dist/runtime/theme/avatar-group.d.ts +42 -48
  115. package/dist/runtime/theme/avatar-group.js +1 -1
  116. package/dist/runtime/theme/avatar.d.ts +46 -52
  117. package/dist/runtime/theme/avatar.js +1 -1
  118. package/dist/runtime/theme/badge.d.ts +63 -93
  119. package/dist/runtime/theme/badge.js +1 -1
  120. package/dist/runtime/theme/breadcrumb.d.ts +52 -58
  121. package/dist/runtime/theme/breadcrumb.js +1 -1
  122. package/dist/runtime/theme/button-group.d.ts +36 -42
  123. package/dist/runtime/theme/button.d.ts +165 -117
  124. package/dist/runtime/theme/button.js +1 -1
  125. package/dist/runtime/theme/calendar.d.ts +52 -50
  126. package/dist/runtime/theme/calendar.js +20 -3
  127. package/dist/runtime/theme/card.d.ts +52 -58
  128. package/dist/runtime/theme/card.js +1 -1
  129. package/dist/runtime/theme/carousel.d.ts +98 -104
  130. package/dist/runtime/theme/carousel.js +1 -1
  131. package/dist/runtime/theme/checkbox.d.ts +77 -83
  132. package/dist/runtime/theme/checkbox.js +1 -1
  133. package/dist/runtime/theme/chip.d.ts +50 -89
  134. package/dist/runtime/theme/chip.js +1 -1
  135. package/dist/runtime/theme/collapsible.d.ts +29 -35
  136. package/dist/runtime/theme/collapsible.js +1 -1
  137. package/dist/runtime/theme/drawer.d.ts +131 -102
  138. package/dist/runtime/theme/drawer.js +1 -1
  139. package/dist/runtime/theme/dropdown-menu.d.ts +65 -0
  140. package/dist/runtime/theme/dropdown-menu.js +83 -0
  141. package/dist/runtime/theme/form-item.d.ts +70 -0
  142. package/dist/runtime/theme/form-item.js +34 -0
  143. package/dist/runtime/theme/form.d.ts +2 -0
  144. package/dist/runtime/theme/form.js +7 -0
  145. package/dist/runtime/theme/index.d.ts +3 -0
  146. package/dist/runtime/theme/index.js +3 -0
  147. package/dist/runtime/theme/input-number.d.ts +100 -126
  148. package/dist/runtime/theme/input-number.js +1 -1
  149. package/dist/runtime/theme/input.d.ts +153 -131
  150. package/dist/runtime/theme/input.js +3 -3
  151. package/dist/runtime/theme/kbd.d.ts +30 -36
  152. package/dist/runtime/theme/link.d.ts +37 -43
  153. package/dist/runtime/theme/modal.d.ts +35 -69
  154. package/dist/runtime/theme/modal.js +1 -1
  155. package/dist/runtime/theme/pagination.d.ts +71 -77
  156. package/dist/runtime/theme/pagination.js +1 -1
  157. package/dist/runtime/theme/pinInput.d.ts +82 -88
  158. package/dist/runtime/theme/pinInput.js +2 -2
  159. package/dist/runtime/theme/popover.d.ts +29 -35
  160. package/dist/runtime/theme/popover.js +1 -1
  161. package/dist/runtime/theme/progress.d.ts +167 -109
  162. package/dist/runtime/theme/progress.js +1 -1
  163. package/dist/runtime/theme/radio-group.d.ts +99 -105
  164. package/dist/runtime/theme/radio-group.js +1 -1
  165. package/dist/runtime/theme/scroll-area.d.ts +62 -68
  166. package/dist/runtime/theme/scroll-area.js +1 -1
  167. package/dist/runtime/theme/select.d.ts +168 -158
  168. package/dist/runtime/theme/select.js +3 -2
  169. package/dist/runtime/theme/separator.d.ts +64 -85
  170. package/dist/runtime/theme/separator.js +1 -1
  171. package/dist/runtime/theme/skeleton.d.ts +1 -7
  172. package/dist/runtime/theme/slider.d.ts +62 -68
  173. package/dist/runtime/theme/slider.js +1 -1
  174. package/dist/runtime/theme/switch.d.ts +111 -117
  175. package/dist/runtime/theme/switch.js +1 -1
  176. package/dist/runtime/theme/table.d.ts +75 -78
  177. package/dist/runtime/theme/table.js +3 -2
  178. package/dist/runtime/theme/tabs.d.ts +116 -139
  179. package/dist/runtime/theme/tabs.js +1 -1
  180. package/dist/runtime/theme/textarea.d.ts +78 -90
  181. package/dist/runtime/theme/textarea.js +2 -2
  182. package/dist/runtime/theme/toast-provider.d.ts +110 -131
  183. package/dist/runtime/theme/toast-provider.js +1 -1
  184. package/dist/runtime/theme/toast.d.ts +74 -80
  185. package/dist/runtime/theme/toast.js +1 -1
  186. package/dist/runtime/theme/tooltip.d.ts +35 -41
  187. package/dist/runtime/theme/tooltip.js +1 -1
  188. package/dist/runtime/types/components.d.ts +3 -0
  189. package/dist/runtime/types/form.d.ts +45 -0
  190. package/dist/runtime/types/form.js +0 -0
  191. package/dist/runtime/types/index.d.ts +5 -2
  192. package/dist/runtime/types/index.js +1 -0
  193. package/dist/runtime/types/utils.d.ts +37 -16
  194. package/dist/runtime/utils/extend-theme.js +15 -4
  195. package/dist/runtime/utils/form.d.ts +5 -0
  196. package/dist/runtime/utils/form.js +24 -0
  197. package/dist/runtime/utils/index.d.ts +2 -0
  198. package/dist/runtime/utils/index.js +4 -0
  199. package/dist/runtime/utils/link.d.ts +4 -28
  200. package/dist/runtime/utils/link.js +10 -3
  201. package/dist/runtime/utils/styler.d.ts +2 -2
  202. package/dist/runtime/utils/styler.js +2 -2
  203. package/dist/shared/ui.D1BTWZFB.mjs +5 -0
  204. package/dist/shared/ui.D1BTWZFB.mjs.map +1 -0
  205. package/dist/types.d.mts +1 -1
  206. package/dist/unocss.mjs +7 -6
  207. package/dist/unocss.mjs.map +1 -1
  208. package/dist/unplugin.mjs +1 -1
  209. package/dist/unplugin.mjs.map +1 -1
  210. package/dist/vite.mjs +1 -1
  211. package/package.json +78 -74
  212. package/dist/module.cjs +0 -5
  213. package/dist/shared/ui.1a1f119c.mjs +0 -5
  214. package/dist/shared/ui.1a1f119c.mjs.map +0 -1
  215. package/dist/types.d.ts +0 -1
@@ -1,113 +1,142 @@
1
- declare const _default: {
2
- base: undefined;
3
- slots: {
4
- overlay: string;
5
- content: string;
6
- container: string;
7
- header: string;
8
- body: string;
9
- footer: string;
10
- title: string;
11
- description: string;
12
- close: string;
13
- };
14
- variants: {
15
- direction: {
16
- top: {
17
- content: string;
18
- };
19
- bottom: {
20
- content: string;
21
- };
22
- left: {
23
- content: string;
24
- };
25
- right: {
26
- content: string;
27
- };
1
+ declare const _default: import("@byyuurin/ui-kit").CVScopeMeta<{
2
+ direction: {
3
+ top: {
4
+ content: string;
28
5
  };
29
- transition: {
30
- true: {
31
- overlay: string;
32
- };
6
+ bottom: {
7
+ content: string;
33
8
  };
34
- inset: {
35
- true: {
36
- content: string;
37
- };
9
+ left: {
10
+ content: string;
38
11
  };
39
- };
40
- compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
41
- direction: {
42
- top: {
43
- content: string;
44
- };
45
- bottom: {
46
- content: string;
47
- };
48
- left: {
49
- content: string;
50
- };
51
- right: {
52
- content: string;
53
- };
12
+ right: {
13
+ content: string;
54
14
  };
55
- transition: {
56
- true: {
57
- overlay: string;
58
- };
15
+ };
16
+ transition: {
17
+ true: {
18
+ overlay: string;
59
19
  };
60
- inset: {
61
- true: {
62
- content: string;
63
- };
20
+ };
21
+ inset: {
22
+ true: {
23
+ content: string;
64
24
  };
65
- }, {
66
- overlay: string;
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: {
67
65
  content: string;
68
- container: string;
69
- header: string;
70
- body: string;
71
- footer: string;
72
- title: string;
73
- description: string;
74
- close: string;
75
- }, undefined>;
76
- defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
77
- direction: {
78
- top: {
79
- content: string;
80
- };
81
- bottom: {
82
- content: string;
83
- };
84
- left: {
85
- content: string;
86
- };
87
- right: {
88
- content: string;
89
- };
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;
90
100
  };
91
- transition: {
92
- true: {
93
- overlay: string;
94
- };
101
+ bottom: {
102
+ content: string;
95
103
  };
96
- inset: {
97
- true: {
98
- content: string;
99
- };
104
+ left: {
105
+ content: string;
100
106
  };
101
- }, {
102
- overlay: string;
103
- content: string;
104
- container: string;
105
- header: string;
106
- body: string;
107
- footer: string;
108
- title: string;
109
- description: string;
110
- close: string;
111
- }>;
112
- };
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
+ }>;
113
142
  export default _default;
@@ -2,7 +2,7 @@ import { ct } from "@byyuurin/ui-kit";
2
2
  export default ct(
3
3
  /* @unocss-include */
4
4
  {
5
- slots: {
5
+ parts: {
6
6
  overlay: "fixed z-1 inset-0 bg-black/40",
7
7
  content: "fixed z-1 bg-ui-base ring ring-ui-base/5 flex focus:outline-none",
8
8
  container: "w-full flex flex-col overflow-hidden overflow-y-auto",
@@ -0,0 +1,65 @@
1
+ declare const _default: import("@byyuurin/ui-kit").CVScopeMeta<{
2
+ size: {
3
+ xs: {
4
+ content: string;
5
+ };
6
+ sm: {
7
+ content: string;
8
+ };
9
+ md: {
10
+ content: string;
11
+ };
12
+ lg: {
13
+ content: string;
14
+ };
15
+ xl: {
16
+ content: string;
17
+ };
18
+ };
19
+ active: {
20
+ true: {
21
+ item: string;
22
+ itemLeadingIcon: string;
23
+ };
24
+ false: {
25
+ item: string;
26
+ itemLeadingIcon: string;
27
+ };
28
+ };
29
+ loading: {
30
+ true: {
31
+ itemLeadingIcon: string;
32
+ };
33
+ };
34
+ }, ({
35
+ size: ("xs" | "sm" | "md")[];
36
+ class: {
37
+ label: string;
38
+ item: string;
39
+ itemTrailingKbds: string;
40
+ };
41
+ } | {
42
+ size: ("lg" | "xl")[];
43
+ class: {
44
+ label: string;
45
+ item: string;
46
+ itemTrailingKbds: string;
47
+ };
48
+ })[], {
49
+ size: "md";
50
+ }, undefined, {
51
+ content: string[];
52
+ arrow: string;
53
+ group: string;
54
+ label: string;
55
+ separator: string;
56
+ item: string[];
57
+ itemLeadingIcon: string;
58
+ itemLeadingAvatar: string;
59
+ itemTrailing: string;
60
+ itemTrailingIcon: string;
61
+ itemTrailingKbds: string;
62
+ itemLabel: string;
63
+ itemLabelExternalIcon: string;
64
+ }>;
65
+ export default _default;
@@ -0,0 +1,83 @@
1
+ import { ct } from "@byyuurin/ui-kit";
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ parts: {
6
+ content: [
7
+ "bg-ui-base shadow-lg rounded-ui-base ring ring-ui-base/10 divide-y divide-ui-base/10 overflow-y-auto scroll-py-1",
8
+ "data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]"
9
+ ],
10
+ arrow: "-mt-px fill-ui-cx stroke-ui-base/10",
11
+ group: "p-1 isolate",
12
+ label: "w-full flex items-center font-semibold color-ui-base",
13
+ separator: "-mx-1 my-1 h-px bg-ui-cb/10",
14
+ item: [
15
+ "group relative w-full flex items-center select-none outline-none",
16
+ "before:content-empty before:absolute before:z-[-1] before:inset-px before:rounded-ui-base",
17
+ "data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50"
18
+ ],
19
+ itemLeadingIcon: "shrink-0",
20
+ itemLeadingAvatar: "shrink-0",
21
+ itemTrailing: "ms-auto inline-flex gap-1.5 items-center",
22
+ itemTrailingIcon: "shrink-0",
23
+ itemTrailingKbds: "hidden lg:inline-flex items-center shrink-0",
24
+ itemLabel: "truncate",
25
+ itemLabelExternalIcon: "inline-block size-3 align-top color-ui-base/50"
26
+ },
27
+ variants: {
28
+ size: {
29
+ xs: {
30
+ content: "text-xs"
31
+ },
32
+ sm: {
33
+ content: "text-sm"
34
+ },
35
+ md: {
36
+ content: "text-base"
37
+ },
38
+ lg: {
39
+ content: "text-lg"
40
+ },
41
+ xl: {
42
+ content: "text-xl"
43
+ }
44
+ },
45
+ active: {
46
+ true: {
47
+ item: "color-ui-base before:bg-ui-cb/10",
48
+ itemLeadingIcon: "color-ui-base/80"
49
+ },
50
+ false: {
51
+ item: "color-ui-base/80 data-[highlighted]:color-ui-base data-[state=open]:color-ui-base data-[highlighted]:before:bg-ui-cb/5 data-[state=open]:before:bg-ui-cb/5 transition-colors before:transition-colors",
52
+ itemLeadingIcon: "color-ui-base/50 group-data-[highlighted]:color-ui-base/80 group-data-[state=open]:color-ui-base/80 transition-colors"
53
+ }
54
+ },
55
+ loading: {
56
+ true: {
57
+ itemLeadingIcon: "animate-spin"
58
+ }
59
+ }
60
+ },
61
+ compoundVariants: [
62
+ {
63
+ size: ["xs", "sm", "md"],
64
+ class: {
65
+ label: "p-0.25em gap-0.25em",
66
+ item: "p-0.25em gap-0.25em",
67
+ itemTrailingKbds: "gap-0.125em"
68
+ }
69
+ },
70
+ {
71
+ size: ["lg", "xl"],
72
+ class: {
73
+ label: "p-0.5em gap-0.5em",
74
+ item: "p-0.5em gap-0.5em",
75
+ itemTrailingKbds: "gap-0.25em"
76
+ }
77
+ }
78
+ ],
79
+ defaultVariants: {
80
+ size: "md"
81
+ }
82
+ }
83
+ );
@@ -0,0 +1,70 @@
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
+ }, import("@byyuurin/ui-kit").CVCompoundVariants<{
25
+ size: {
26
+ xs: {
27
+ root: string;
28
+ };
29
+ sm: {
30
+ root: string;
31
+ };
32
+ md: {
33
+ root: string;
34
+ };
35
+ lg: {
36
+ root: string;
37
+ };
38
+ xl: {
39
+ root: string;
40
+ };
41
+ };
42
+ required: {
43
+ true: {
44
+ label: string;
45
+ };
46
+ };
47
+ }, {
48
+ root: string;
49
+ wrapper: string;
50
+ labelWrapper: string;
51
+ label: string;
52
+ container: string;
53
+ description: string;
54
+ error: string;
55
+ hint: string;
56
+ help: string;
57
+ }, undefined>, {
58
+ size: "md";
59
+ }, undefined, {
60
+ root: string;
61
+ wrapper: string;
62
+ labelWrapper: string;
63
+ label: string;
64
+ container: string;
65
+ description: string;
66
+ error: string;
67
+ hint: string;
68
+ help: string;
69
+ }>;
70
+ export default _default;
@@ -0,0 +1,34 @@
1
+ import { ct } from "@byyuurin/ui-kit";
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ parts: {
6
+ root: "",
7
+ wrapper: "",
8
+ labelWrapper: "flex content-center items-center justify-between",
9
+ label: "block font-medium color-ui-base/80",
10
+ container: "mt-0.25em relative",
11
+ description: "color-ui-base/60",
12
+ error: "mt-0.25em color-ui-fill",
13
+ hint: "color-ui-base/60",
14
+ help: "mt-0.25em color-ui-base/60"
15
+ },
16
+ variants: {
17
+ size: {
18
+ xs: { root: "text-xs" },
19
+ sm: { root: "text-sm" },
20
+ md: { root: "text-base" },
21
+ lg: { root: "text-lg" },
22
+ xl: { root: "text-xl" }
23
+ },
24
+ required: {
25
+ true: {
26
+ label: `after:content-['*'] after:ms-0.5 after:color-ui-fill`
27
+ }
28
+ }
29
+ },
30
+ defaultVariants: {
31
+ size: "md"
32
+ }
33
+ }
34
+ );
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@byyuurin/ui-kit").CVScopeMeta<{}, import("@byyuurin/ui-kit").CVCompoundVariants<{}, undefined, "">, import("@byyuurin/ui-kit").CVDefaultVariants<{}, undefined>, "", undefined>;
2
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { ct } from "@byyuurin/ui-kit";
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ base: ""
6
+ }
7
+ );
@@ -14,6 +14,9 @@ export { default as checkbox } from './checkbox.js';
14
14
  export { default as chip } from './chip.js';
15
15
  export { default as collapsible } from './collapsible.js';
16
16
  export { default as drawer } from './drawer.js';
17
+ export { default as dropdownMenu } from './dropdown-menu.js';
18
+ export { default as form } from './form.js';
19
+ export { default as formItem } from './form-item.js';
17
20
  export { default as input } from './input.js';
18
21
  export { default as inputNumber } from './input-number.js';
19
22
  export { default as kbd } from './kbd.js';
@@ -14,6 +14,9 @@ export { default as checkbox } from "./checkbox.js";
14
14
  export { default as chip } from "./chip.js";
15
15
  export { default as collapsible } from "./collapsible.js";
16
16
  export { default as drawer } from "./drawer.js";
17
+ export { default as dropdownMenu } from "./dropdown-menu.js";
18
+ export { default as form } from "./form.js";
19
+ export { default as formItem } from "./form-item.js";
17
20
  export { default as input } from "./input.js";
18
21
  export { default as inputNumber } from "./input-number.js";
19
22
  export { default as kbd } from "./kbd.js";