@byyuurin/ui 0.0.6 → 0.0.8

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 (198) hide show
  1. package/README.md +4 -5
  2. package/dist/module.cjs +5 -0
  3. package/dist/module.json +12 -0
  4. package/dist/{nuxt.mjs → module.mjs} +8 -8
  5. package/dist/module.mjs.map +1 -0
  6. package/dist/runtime/app/injections.d.ts +16 -0
  7. package/dist/runtime/app/injections.js +31 -0
  8. package/dist/runtime/components/Accordion.vue +27 -38
  9. package/dist/runtime/components/Alert.vue +23 -16
  10. package/dist/runtime/components/App.vue +15 -15
  11. package/dist/runtime/components/Avatar.vue +73 -0
  12. package/dist/runtime/components/AvatarGroup.vue +90 -0
  13. package/dist/runtime/components/Badge.vue +15 -10
  14. package/dist/runtime/components/Breadcrumb.vue +105 -0
  15. package/dist/runtime/components/Button.vue +22 -23
  16. package/dist/runtime/components/ButtonGroup.vue +12 -10
  17. package/dist/runtime/components/Card.vue +16 -8
  18. package/dist/runtime/components/Carousel.vue +19 -12
  19. package/dist/runtime/components/Checkbox.vue +16 -12
  20. package/dist/runtime/components/Chip.vue +17 -12
  21. package/dist/runtime/components/Collapsible.vue +56 -0
  22. package/dist/runtime/components/Drawer.vue +18 -17
  23. package/dist/runtime/components/Input.vue +28 -28
  24. package/dist/runtime/components/InputNumber.vue +169 -0
  25. package/dist/runtime/components/Kbd.vue +51 -0
  26. package/dist/runtime/components/Link.vue +301 -72
  27. package/dist/runtime/components/LinkBase.vue +88 -0
  28. package/dist/runtime/components/Modal.vue +11 -9
  29. package/dist/runtime/components/ModalProvider.vue +2 -1
  30. package/dist/runtime/components/Pagination.vue +30 -30
  31. package/dist/runtime/components/PinInput.vue +7 -7
  32. package/dist/runtime/components/Popover.vue +7 -7
  33. package/dist/runtime/components/Progress.vue +165 -0
  34. package/dist/runtime/components/RadioGroup.vue +33 -29
  35. package/dist/runtime/components/Select.vue +40 -40
  36. package/dist/runtime/components/Separator.vue +63 -0
  37. package/dist/runtime/components/Skeleton.vue +33 -0
  38. package/dist/runtime/components/Slider.vue +6 -6
  39. package/dist/runtime/components/Switch.vue +14 -15
  40. package/dist/runtime/components/Table.vue +300 -0
  41. package/dist/runtime/components/Tabs.vue +25 -21
  42. package/dist/runtime/components/Textarea.vue +11 -11
  43. package/dist/runtime/components/Toast.vue +15 -14
  44. package/dist/runtime/components/Toaster.vue +5 -39
  45. package/dist/runtime/components/Tooltip.vue +7 -7
  46. package/dist/runtime/composables/useAvatarGroup.d.ts +4 -0
  47. package/dist/runtime/composables/useAvatarGroup.js +8 -0
  48. package/dist/runtime/composables/useButtonGroup.d.ts +4 -12
  49. package/dist/runtime/composables/{useButtonGroup.mjs → useButtonGroup.js} +1 -6
  50. package/dist/runtime/composables/useComponentIcons.d.ts +9 -9
  51. package/dist/runtime/composables/useComponentIcons.js +24 -0
  52. package/dist/runtime/composables/useKbd.d.ts +35 -0
  53. package/dist/runtime/composables/useKbd.js +49 -0
  54. package/dist/runtime/composables/useLocale.d.ts +8 -0
  55. package/dist/runtime/composables/useLocale.js +22 -0
  56. package/dist/runtime/composables/useModal.d.ts +2 -7
  57. package/dist/runtime/composables/{useModal.mjs → useModal.js} +1 -6
  58. package/dist/runtime/composables/useTheme.d.ts +2 -6
  59. package/dist/runtime/composables/useTheme.js +16 -0
  60. package/dist/runtime/composables/useToast.d.ts +1 -1
  61. package/dist/runtime/index.d.ts +40 -0
  62. package/dist/runtime/index.js +40 -0
  63. package/dist/runtime/locale/en.d.ts +2 -0
  64. package/dist/runtime/locale/en.js +28 -0
  65. package/dist/runtime/locale/index.d.ts +2 -0
  66. package/dist/runtime/locale/index.js +2 -0
  67. package/dist/runtime/locale/zh-tw.d.ts +2 -0
  68. package/dist/runtime/locale/zh-tw.js +28 -0
  69. package/dist/runtime/theme/accordion.d.ts +5 -5
  70. package/dist/runtime/theme/{accordion.mjs → accordion.js} +2 -2
  71. package/dist/runtime/theme/alert.d.ts +2 -2
  72. package/dist/runtime/theme/{alert.mjs → alert.js} +4 -4
  73. package/dist/runtime/theme/app.d.ts +8 -5
  74. package/dist/runtime/theme/app.js +18 -0
  75. package/dist/runtime/theme/avatar-group.d.ts +52 -0
  76. package/dist/runtime/theme/avatar-group.js +32 -0
  77. package/dist/runtime/theme/avatar.d.ts +56 -0
  78. package/dist/runtime/theme/avatar.js +34 -0
  79. package/dist/runtime/theme/badge.d.ts +45 -21
  80. package/dist/runtime/theme/{badge.mjs → badge.js} +2 -2
  81. package/dist/runtime/theme/breadcrumb.d.ts +67 -0
  82. package/dist/runtime/theme/breadcrumb.js +44 -0
  83. package/dist/runtime/theme/button-group.d.ts +2 -2
  84. package/dist/runtime/theme/button.d.ts +61 -115
  85. package/dist/runtime/theme/button.js +164 -0
  86. package/dist/runtime/theme/card.d.ts +38 -38
  87. package/dist/runtime/theme/card.js +37 -0
  88. package/dist/runtime/theme/carousel.d.ts +2 -2
  89. package/dist/runtime/theme/{carousel.mjs → carousel.js} +2 -2
  90. package/dist/runtime/theme/checkbox.d.ts +1 -1
  91. package/dist/runtime/theme/{checkbox.mjs → checkbox.js} +3 -3
  92. package/dist/runtime/theme/chip.d.ts +47 -14
  93. package/dist/runtime/theme/{chip.mjs → chip.js} +7 -9
  94. package/dist/runtime/theme/collapsible.d.ts +38 -0
  95. package/dist/runtime/theme/collapsible.js +10 -0
  96. package/dist/runtime/theme/drawer.d.ts +43 -43
  97. package/dist/runtime/theme/{drawer.mjs → drawer.js} +33 -22
  98. package/dist/runtime/theme/index.d.ts +37 -27
  99. package/dist/runtime/theme/index.js +37 -0
  100. package/dist/runtime/theme/input-number.d.ts +141 -0
  101. package/dist/runtime/theme/input-number.js +95 -0
  102. package/dist/runtime/theme/input.d.ts +77 -105
  103. package/dist/runtime/theme/{input.mjs → input.js} +25 -25
  104. package/dist/runtime/theme/kbd.d.ts +39 -0
  105. package/dist/runtime/theme/kbd.js +26 -0
  106. package/dist/runtime/theme/link.d.ts +2 -2
  107. package/dist/runtime/theme/{link.mjs → link.js} +1 -1
  108. package/dist/runtime/theme/modal.d.ts +31 -8
  109. package/dist/runtime/theme/{modal.mjs → modal.js} +4 -9
  110. package/dist/runtime/theme/pagination.d.ts +17 -17
  111. package/dist/runtime/theme/pinInput.d.ts +42 -42
  112. package/dist/runtime/theme/{pinInput.mjs → pinInput.js} +10 -10
  113. package/dist/runtime/theme/popover.d.ts +8 -8
  114. package/dist/runtime/theme/{popover.mjs → popover.js} +1 -1
  115. package/dist/runtime/theme/progress.d.ts +122 -0
  116. package/dist/runtime/theme/progress.js +95 -0
  117. package/dist/runtime/theme/radio-group.d.ts +1 -1
  118. package/dist/runtime/theme/{radio-group.mjs → radio-group.js} +1 -1
  119. package/dist/runtime/theme/scroll-area.d.ts +17 -17
  120. package/dist/runtime/theme/{scroll-area.mjs → scroll-area.js} +2 -2
  121. package/dist/runtime/theme/select.d.ts +93 -108
  122. package/dist/runtime/theme/{select.mjs → select.js} +31 -31
  123. package/dist/runtime/theme/separator.d.ts +95 -0
  124. package/dist/runtime/theme/separator.js +53 -0
  125. package/dist/runtime/theme/skeleton.d.ts +8 -0
  126. package/dist/runtime/theme/skeleton.js +7 -0
  127. package/dist/runtime/theme/slider.d.ts +1 -1
  128. package/dist/runtime/theme/{slider.mjs → slider.js} +3 -3
  129. package/dist/runtime/theme/switch.d.ts +1 -1
  130. package/dist/runtime/theme/{switch.mjs → switch.js} +3 -3
  131. package/dist/runtime/theme/table.d.ts +89 -0
  132. package/dist/runtime/theme/table.js +35 -0
  133. package/dist/runtime/theme/tabs.d.ts +70 -53
  134. package/dist/runtime/theme/{tabs.mjs → tabs.js} +12 -12
  135. package/dist/runtime/theme/textarea.d.ts +43 -37
  136. package/dist/runtime/theme/{textarea.mjs → textarea.js} +10 -10
  137. package/dist/runtime/theme/toast.d.ts +2 -2
  138. package/dist/runtime/theme/{toast.mjs → toast.js} +3 -3
  139. package/dist/runtime/theme/toaster.d.ts +42 -27
  140. package/dist/runtime/theme/tooltip.d.ts +11 -11
  141. package/dist/runtime/theme/tooltip.js +11 -0
  142. package/dist/runtime/types/components.d.ts +37 -27
  143. package/dist/runtime/types/index.d.ts +5 -4
  144. package/dist/runtime/types/index.js +3 -0
  145. package/dist/runtime/types/locale.d.ts +23 -0
  146. package/dist/runtime/types/locale.js +0 -0
  147. package/dist/runtime/types/utils.d.ts +1 -1
  148. package/dist/runtime/types/utils.js +0 -0
  149. package/dist/runtime/utils/index.d.ts +9 -4
  150. package/dist/runtime/utils/{index.mjs → index.js} +9 -7
  151. package/dist/runtime/utils/link.d.ts +22 -7
  152. package/dist/runtime/utils/link.js +30 -0
  153. package/dist/runtime/utils/styler.d.ts +1 -1
  154. package/dist/runtime/utils/translator.d.ts +18 -0
  155. package/dist/runtime/utils/translator.js +8 -0
  156. package/dist/runtime/vue/stubs.d.ts +9 -0
  157. package/dist/runtime/vue/stubs.js +16 -0
  158. package/dist/shared/ui.ba24b380.mjs +4 -0
  159. package/dist/shared/ui.ba24b380.mjs.map +1 -0
  160. package/dist/types.d.mts +1 -0
  161. package/dist/types.d.ts +1 -0
  162. package/dist/unocss.d.mts +6 -11
  163. package/dist/unocss.d.ts +6 -11
  164. package/dist/unocss.mjs +40 -21
  165. package/dist/unocss.mjs.map +1 -1
  166. package/dist/unplugin.mjs +35 -8
  167. package/dist/unplugin.mjs.map +1 -1
  168. package/dist/vite.d.mts +0 -1
  169. package/dist/vite.d.ts +0 -1
  170. package/dist/vite.mjs +3 -1
  171. package/dist/vite.mjs.map +1 -1
  172. package/package.json +50 -38
  173. package/dist/index.d.ts +0 -29
  174. package/dist/index.mjs +0 -29
  175. package/dist/nuxt.mjs.map +0 -1
  176. package/dist/runtime/composables/useComponentIcons.mjs +0 -24
  177. package/dist/runtime/composables/useTheme.mjs +0 -26
  178. package/dist/runtime/theme/app.mjs +0 -15
  179. package/dist/runtime/theme/button.mjs +0 -148
  180. package/dist/runtime/theme/card.mjs +0 -14
  181. package/dist/runtime/theme/index.mjs +0 -27
  182. package/dist/runtime/theme/tooltip.mjs +0 -11
  183. package/dist/runtime/types/components.mjs +0 -27
  184. package/dist/runtime/types/index.mjs +0 -2
  185. package/dist/runtime/utils/link.mjs +0 -4
  186. package/dist/shared/ui.D4zm1r0C.mjs +0 -4
  187. package/dist/shared/ui.D4zm1r0C.mjs.map +0 -1
  188. /package/dist/{nuxt.d.mts → module.d.mts} +0 -0
  189. /package/dist/{nuxt.d.ts → module.d.ts} +0 -0
  190. /package/dist/runtime/composables/{useToast.mjs → useToast.js} +0 -0
  191. /package/dist/runtime/theme/{button-group.mjs → button-group.js} +0 -0
  192. /package/dist/runtime/theme/{pagination.mjs → pagination.js} +0 -0
  193. /package/dist/runtime/theme/{toaster.mjs → toaster.js} +0 -0
  194. /package/dist/runtime/types/{utils.mjs → components.js} +0 -0
  195. /package/dist/runtime/utils/{extend-theme.mjs → extend-theme.js} +0 -0
  196. /package/dist/runtime/utils/{styler.mjs → styler.js} +0 -0
  197. /package/dist/runtime/{composables/defineInjection.d.ts → utils/vue.d.ts} +0 -0
  198. /package/dist/runtime/{composables/defineInjection.mjs → utils/vue.js} +0 -0
@@ -0,0 +1,37 @@
1
+ export { default as accordion } from "./accordion.js";
2
+ export { default as alert } from "./alert.js";
3
+ export { default as app } from "./app.js";
4
+ export { default as avatar } from "./avatar.js";
5
+ export { default as avatarGroup } from "./avatar-group.js";
6
+ export { default as badge } from "./badge.js";
7
+ export { default as breadcrumb } from "./breadcrumb.js";
8
+ export { default as button } from "./button.js";
9
+ export { default as buttonGroup } from "./button-group.js";
10
+ export { default as card } from "./card.js";
11
+ export { default as carousel } from "./carousel.js";
12
+ export { default as checkbox } from "./checkbox.js";
13
+ export { default as chip } from "./chip.js";
14
+ export { default as collapsible } from "./collapsible.js";
15
+ export { default as drawer } from "./drawer.js";
16
+ export { default as input } from "./input.js";
17
+ export { default as inputNumber } from "./input-number.js";
18
+ export { default as kbd } from "./kbd.js";
19
+ export { default as link } from "./link.js";
20
+ export { default as modal } from "./modal.js";
21
+ export { default as pagination } from "./pagination.js";
22
+ export { default as pinInput } from "./pinInput.js";
23
+ export { default as popover } from "./popover.js";
24
+ export { default as progress } from "./progress.js";
25
+ export { default as radioGroup } from "./radio-group.js";
26
+ export { default as scrollArea } from "./scroll-area.js";
27
+ export { default as select } from "./select.js";
28
+ export { default as separator } from "./separator.js";
29
+ export { default as skeleton } from "./skeleton.js";
30
+ export { default as slider } from "./slider.js";
31
+ export { default as switch } from "./switch.js";
32
+ export { default as table } from "./table.js";
33
+ export { default as tabs } from "./tabs.js";
34
+ export { default as textarea } from "./textarea.js";
35
+ export { default as toast } from "./toast.js";
36
+ export { default as toaster } from "./toaster.js";
37
+ export { default as tooltip } from "./tooltip.js";
@@ -0,0 +1,141 @@
1
+ declare const _default: {
2
+ base: undefined;
3
+ slots: {
4
+ base: string;
5
+ input: string[];
6
+ increment: string;
7
+ decrement: string;
8
+ };
9
+ variants: {
10
+ size: {
11
+ xs: {
12
+ base: string;
13
+ };
14
+ sm: {
15
+ base: string;
16
+ };
17
+ md: {
18
+ base: string;
19
+ };
20
+ lg: {
21
+ base: string;
22
+ };
23
+ xl: {
24
+ base: string;
25
+ };
26
+ };
27
+ variant: {
28
+ outline: {
29
+ base: string[];
30
+ };
31
+ soft: {
32
+ base: string[];
33
+ };
34
+ 'soft-outline': {
35
+ base: string[];
36
+ };
37
+ ghost: {
38
+ base: string[];
39
+ };
40
+ none: {
41
+ base: string;
42
+ };
43
+ };
44
+ disabled: {
45
+ true: {
46
+ increment: string;
47
+ decrement: string;
48
+ };
49
+ };
50
+ orientation: {
51
+ horizontal: {
52
+ input: string;
53
+ increment: string;
54
+ decrement: string;
55
+ };
56
+ vertical: {
57
+ increment: string;
58
+ decrement: string;
59
+ };
60
+ };
61
+ underline: {
62
+ true: "";
63
+ };
64
+ highlight: {
65
+ true: {
66
+ base: string;
67
+ };
68
+ };
69
+ };
70
+ compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
71
+ size: {
72
+ xs: {
73
+ base: string;
74
+ };
75
+ sm: {
76
+ base: string;
77
+ };
78
+ md: {
79
+ base: string;
80
+ };
81
+ lg: {
82
+ base: string;
83
+ };
84
+ xl: {
85
+ base: string;
86
+ };
87
+ };
88
+ variant: {
89
+ outline: {
90
+ base: string[];
91
+ };
92
+ soft: {
93
+ base: string[];
94
+ };
95
+ 'soft-outline': {
96
+ base: string[];
97
+ };
98
+ ghost: {
99
+ base: string[];
100
+ };
101
+ none: {
102
+ base: string;
103
+ };
104
+ };
105
+ disabled: {
106
+ true: {
107
+ increment: string;
108
+ decrement: string;
109
+ };
110
+ };
111
+ orientation: {
112
+ horizontal: {
113
+ input: string;
114
+ increment: string;
115
+ decrement: string;
116
+ };
117
+ vertical: {
118
+ increment: string;
119
+ decrement: string;
120
+ };
121
+ };
122
+ underline: {
123
+ true: "";
124
+ };
125
+ highlight: {
126
+ true: {
127
+ base: string;
128
+ };
129
+ };
130
+ }, {
131
+ base: string;
132
+ input: string[];
133
+ increment: string;
134
+ decrement: string;
135
+ }, undefined>;
136
+ defaultVariants: {
137
+ size: "md";
138
+ variant: "outline";
139
+ };
140
+ };
141
+ export default _default;
@@ -0,0 +1,95 @@
1
+ import { ct } from "@byyuurin/ui-kit";
2
+ import inputTheme from "./input.js";
3
+ export default ct(
4
+ /* @unocss-include */
5
+ {
6
+ slots: {
7
+ base: "relative inline-flex items-center rounded-ui-base transition-colors aria-disabled:opacity-50",
8
+ input: [
9
+ "w-full color-inherit bg-transparent border-0 placeholder:color-ui-cb/50",
10
+ "focus:outline-none",
11
+ "disabled:cursor-not-allowed"
12
+ ],
13
+ increment: "absolute flex items-center ui-base",
14
+ decrement: "absolute flex items-center ui-base"
15
+ },
16
+ variants: {
17
+ size: {
18
+ ...inputTheme.variants.size
19
+ },
20
+ variant: {
21
+ ...inputTheme.variants.variant
22
+ },
23
+ disabled: {
24
+ true: {
25
+ increment: "opacity-50 cursor-not-allowed",
26
+ decrement: "opacity-50 cursor-not-allowed"
27
+ }
28
+ },
29
+ orientation: {
30
+ horizontal: {
31
+ input: "text-center",
32
+ increment: "inset-y-0 end-0 pe-0.5",
33
+ decrement: "inset-y-0 start-0 ps-0.5"
34
+ },
35
+ vertical: {
36
+ increment: "top-0 end-0 pe-0.5 [&>button]:py-0 scale-80",
37
+ decrement: "bottom-0 end-0 pe-0.5 [&>button]:py-0 scale-80"
38
+ }
39
+ },
40
+ underline: {
41
+ true: ""
42
+ },
43
+ highlight: {
44
+ true: {
45
+ base: "ring ring-inset ring-ui-fill"
46
+ }
47
+ }
48
+ },
49
+ compoundVariants: [
50
+ {
51
+ variant: ["soft", "ghost", "none"],
52
+ highlight: false,
53
+ underline: true,
54
+ class: {
55
+ base: [
56
+ "relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-soft-ui-cb/40",
57
+ "focus-within:after:h-2px focus-within:after:bg-soft-ui-fill/60"
58
+ ]
59
+ }
60
+ },
61
+ {
62
+ size: ["xs", "sm", "md"],
63
+ class: {
64
+ base: "p-1.5",
65
+ input: "px-1"
66
+ }
67
+ },
68
+ {
69
+ size: ["lg", "xl"],
70
+ class: {
71
+ base: "p-2.5",
72
+ input: "px-1.5"
73
+ }
74
+ },
75
+ {
76
+ variant: ["soft", "soft-outline", "ghost", "none"],
77
+ highlight: true,
78
+ class: {
79
+ base: "ring ring-inset ring-ui-fill/80"
80
+ }
81
+ },
82
+ {
83
+ variant: ["outline"],
84
+ highlight: true,
85
+ class: {
86
+ base: "ring-2 ring-ui-fill/80 focus-within:ring-ui-fill/80"
87
+ }
88
+ }
89
+ ],
90
+ defaultVariants: {
91
+ size: "md",
92
+ variant: "outline"
93
+ }
94
+ }
95
+ );
@@ -3,10 +3,10 @@ declare const _default: {
3
3
  slots: {
4
4
  base: string;
5
5
  input: string[];
6
- prefix: string;
7
- prefixIcon: string;
8
- suffix: string;
9
- suffixIcon: string;
6
+ leading: string;
7
+ leadingIcon: string;
8
+ trailing: string;
9
+ trailingIcon: string;
10
10
  };
11
11
  variants: {
12
12
  size: {
@@ -43,10 +43,10 @@ declare const _default: {
43
43
  base: string;
44
44
  };
45
45
  };
46
- prefix: {
46
+ leading: {
47
47
  true: "";
48
48
  };
49
- suffix: {
49
+ trailing: {
50
50
  true: "";
51
51
  };
52
52
  loading: {
@@ -72,105 +72,77 @@ declare const _default: {
72
72
  };
73
73
  };
74
74
  };
75
- compoundVariants: ({
76
- variant: ("soft" | "ghost" | "none")[];
77
- highlight: false;
78
- underline: true;
79
- class: {
80
- base: string[];
81
- input?: undefined;
82
- prefixIcon?: undefined;
83
- suffixIcon?: undefined;
84
- };
85
- size?: undefined;
86
- loading?: undefined;
87
- prefix?: undefined;
88
- suffix?: undefined;
89
- } | {
90
- size: ("xs" | "sm" | "md")[];
91
- class: {
92
- base: string;
93
- input: string;
94
- prefixIcon?: undefined;
95
- suffixIcon?: undefined;
96
- };
97
- variant?: undefined;
98
- highlight?: undefined;
99
- underline?: undefined;
100
- loading?: undefined;
101
- prefix?: undefined;
102
- suffix?: undefined;
103
- } | {
104
- size: ("lg" | "xl")[];
105
- class: {
106
- base: string;
107
- input: string;
108
- prefixIcon?: undefined;
109
- suffixIcon?: undefined;
110
- };
111
- variant?: undefined;
112
- highlight?: undefined;
113
- underline?: undefined;
114
- loading?: undefined;
115
- prefix?: undefined;
116
- suffix?: undefined;
117
- } | {
118
- variant: ("soft" | "soft-outline" | "ghost" | "none")[];
119
- highlight: true;
120
- class: {
121
- base: string;
122
- input?: undefined;
123
- prefixIcon?: undefined;
124
- suffixIcon?: undefined;
125
- };
126
- underline?: undefined;
127
- size?: undefined;
128
- loading?: undefined;
129
- prefix?: undefined;
130
- suffix?: undefined;
131
- } | {
132
- variant: "outline"[];
133
- highlight: true;
134
- class: {
135
- base: string;
136
- input?: undefined;
137
- prefixIcon?: undefined;
138
- suffixIcon?: undefined;
139
- };
140
- underline?: undefined;
141
- size?: undefined;
142
- loading?: undefined;
143
- prefix?: undefined;
144
- suffix?: undefined;
145
- } | {
146
- loading: true;
147
- prefix: true;
148
- class: {
149
- prefixIcon: string;
150
- base?: undefined;
151
- input?: undefined;
152
- suffixIcon?: undefined;
153
- };
154
- variant?: undefined;
155
- highlight?: undefined;
156
- underline?: undefined;
157
- size?: undefined;
158
- suffix?: undefined;
159
- } | {
160
- loading: true;
161
- prefix: false;
162
- suffix: true;
163
- class: {
164
- suffixIcon: string;
165
- base?: undefined;
166
- input?: undefined;
167
- prefixIcon?: undefined;
168
- };
169
- variant?: undefined;
170
- highlight?: undefined;
171
- underline?: undefined;
172
- size?: undefined;
173
- })[];
75
+ compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
76
+ size: {
77
+ xs: {
78
+ base: string;
79
+ };
80
+ sm: {
81
+ base: string;
82
+ };
83
+ md: {
84
+ base: string;
85
+ };
86
+ lg: {
87
+ base: string;
88
+ };
89
+ xl: {
90
+ base: string;
91
+ };
92
+ };
93
+ variant: {
94
+ outline: {
95
+ base: string[];
96
+ };
97
+ soft: {
98
+ base: string[];
99
+ };
100
+ 'soft-outline': {
101
+ base: string[];
102
+ };
103
+ ghost: {
104
+ base: string[];
105
+ };
106
+ none: {
107
+ base: string;
108
+ };
109
+ };
110
+ leading: {
111
+ true: "";
112
+ };
113
+ trailing: {
114
+ true: "";
115
+ };
116
+ loading: {
117
+ true: "";
118
+ };
119
+ underline: {
120
+ true: "";
121
+ };
122
+ highlight: {
123
+ true: "";
124
+ };
125
+ type: {
126
+ file: {
127
+ input: string;
128
+ };
129
+ };
130
+ groupOrientation: {
131
+ horizontal: {
132
+ base: string;
133
+ };
134
+ vertical: {
135
+ base: string;
136
+ };
137
+ };
138
+ }, {
139
+ base: string;
140
+ input: string[];
141
+ leading: string;
142
+ leadingIcon: string;
143
+ trailing: string;
144
+ trailingIcon: string;
145
+ }, undefined>;
174
146
  defaultVariants: {
175
147
  size: "md";
176
148
  };
@@ -1,5 +1,5 @@
1
1
  import { ct } from "@byyuurin/ui-kit";
2
- import { buttonGroupVariant } from "./button-group.mjs";
2
+ import { buttonGroupVariant } from "./button-group.js";
3
3
  export default ct(
4
4
  /* @unocss-include */
5
5
  {
@@ -10,10 +10,10 @@ export default ct(
10
10
  "focus:outline-none",
11
11
  "disabled:cursor-not-allowed"
12
12
  ],
13
- prefix: "flex items-center",
14
- prefixIcon: "shrink-0 size-1.25em",
15
- suffix: "flex items-center",
16
- suffixIcon: "shrink-0 size-1.25em"
13
+ leading: "flex items-center",
14
+ leadingIcon: "shrink-0 size-1.25em",
15
+ trailing: "flex items-center",
16
+ trailingIcon: "shrink-0 size-1.25em"
17
17
  },
18
18
  variants: {
19
19
  ...buttonGroupVariant,
@@ -37,29 +37,29 @@ export default ct(
37
37
  variant: {
38
38
  "outline": {
39
39
  base: [
40
- "color-ui-cb/80 bg-solid-ui-c1 ring ring-inset ring-ui-cb/50",
41
- "focus-within:ring-2 focus-within:ring-ui-cb/50",
42
- "aria-disabled:ring-ui-cb/80 hover:aria-disabled:ring-ui-cb/80"
40
+ "color-ui-cb/80 bg-ui-cx ring ring-inset ring-ui-cb/30",
41
+ "focus-within:ring-2 focus-within:ring-ui-cb/50 hover:focus-within:ring-ui-cb/50",
42
+ "aria-disabled:ring-ui-cb/20 hover:aria-disabled:ring-ui-cb/20"
43
43
  ]
44
44
  },
45
45
  "soft": {
46
46
  base: [
47
- "color-ui-cb/80 bg-solid-ui-cb/4",
48
- "hover:bg-solid-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-solid-ui-cb/8 focus-within:color-ui-cb/85",
49
- "aria-disabled:color-ui-cb/80 aria-disabled:bg-solid-ui-cb/5 hover:aria-disabled:color-ui-cb/80 hover:aria-disabled:bg-solid-ui-cb/5"
47
+ "color-ui-cb/80 bg-soft-ui-cb/4",
48
+ "hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 hover:focus-within:bg-soft-ui-cb/8 focus-within:color-ui-cb/85 hover:focus-within:color-ui-cb/85",
49
+ "aria-disabled:color-ui-cb/80 aria-disabled:bg-soft-ui-cb/5 hover:aria-disabled:color-ui-cb/80 hover:aria-disabled:bg-soft-ui-cb/5"
50
50
  ]
51
51
  },
52
52
  "soft-outline": {
53
53
  base: [
54
- "color-ui-cb/80 bg-solid-ui-cb/4 ring ring-inset ring-ui-cb/10",
55
- "hover:bg-solid-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-solid-ui-cb/8 focus-within:color-ui-cb/85",
56
- "aria-disabled:color-ui-cb/80 aria-disabled:bg-solid-ui-cb/5 hover:aria-disabled:color-ui-cb/80 hover:aria-disabled:bg-solid-ui-cb/5"
54
+ "color-ui-cb/80 bg-soft-ui-cb/4 ring ring-inset ring-ui-cb/30",
55
+ "hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 hover:focus-within:bg-soft-ui-cb/8 focus-within:color-ui-cb/85 hover:focus-within:color-ui-cb/85",
56
+ "aria-disabled:color-ui-cb/80 aria-disabled:bg-soft-ui-cb/5 hover:aria-disabled:color-ui-cb/80 hover:aria-disabled:bg-soft-ui-cb/5"
57
57
  ]
58
58
  },
59
59
  "ghost": {
60
60
  base: [
61
61
  "color-ui-cb/80 bg-transparent",
62
- "hover:bg-solid-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-solid-ui-cb/8 focus-within:color-ui-cb/85",
62
+ "hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 hover:focus-within:bg-soft-ui-cb/8 focus-within:color-ui-cb/85 hover:focus-within:color-ui-cb/85",
63
63
  "aria-disabled:color-ui-fill/80 aria-disabled:bg-transparent hover:aria-disabled:color-ui-fill/80 hover:aria-disabled:bg-transparent"
64
64
  ]
65
65
  },
@@ -67,10 +67,10 @@ export default ct(
67
67
  base: "color-ui-cb bg-transparent"
68
68
  }
69
69
  },
70
- prefix: {
70
+ leading: {
71
71
  true: ""
72
72
  },
73
- suffix: {
73
+ trailing: {
74
74
  true: ""
75
75
  },
76
76
  loading: {
@@ -84,7 +84,7 @@ export default ct(
84
84
  },
85
85
  type: {
86
86
  file: {
87
- input: "prefix-normal not-disabled:cursor-pointer file:pointer-events-none file:py-0 file:font-size-0.875em file:rounded-ui-button file:border-none file:color-ui-c1 file:bg-solid-ui-cb/80"
87
+ input: "leading-normal not-disabled:cursor-pointer file:pointer-events-none file:py-0 file:font-size-0.875em file:rounded-ui-button file:border-none file:color-ui-cx file:bg-soft-ui-cb/80"
88
88
  }
89
89
  }
90
90
  },
@@ -95,8 +95,8 @@ export default ct(
95
95
  underline: true,
96
96
  class: {
97
97
  base: [
98
- "relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-solid-ui-cb/40",
99
- "focus-within:after:h-2px focus-within:after:bg-solid-ui-fill/60"
98
+ "relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-soft-ui-cb/40",
99
+ "focus-within:after:h-2px focus-within:after:bg-soft-ui-fill/60"
100
100
  ]
101
101
  }
102
102
  },
@@ -130,17 +130,17 @@ export default ct(
130
130
  },
131
131
  {
132
132
  loading: true,
133
- prefix: true,
133
+ leading: true,
134
134
  class: {
135
- prefixIcon: "animate-spin"
135
+ leadingIcon: "animate-spin"
136
136
  }
137
137
  },
138
138
  {
139
139
  loading: true,
140
- prefix: false,
141
- suffix: true,
140
+ leading: false,
141
+ trailing: true,
142
142
  class: {
143
- suffixIcon: "animate-spin"
143
+ trailingIcon: "animate-spin"
144
144
  }
145
145
  }
146
146
  ],
@@ -0,0 +1,39 @@
1
+ declare const _default: {
2
+ base: string;
3
+ slots: undefined;
4
+ variants: {
5
+ variant: {
6
+ solid: "color-ui-cx bg-soft-ui-fill/90";
7
+ outline: "color-ui-fill ring bg-ui-cx/90 ring-inset ring-ui-fill/30";
8
+ soft: "color-ui-fill/80 bg-soft-ui-fill/20";
9
+ 'soft-outline': "color-ui-fill/80 bg-soft-ui-fill/20 ring ring-inset ring-ui-fill/30";
10
+ };
11
+ size: {
12
+ xs: "text-xs";
13
+ sm: "text-sm";
14
+ md: "text-base";
15
+ lg: "text-lg";
16
+ xl: "text-xl";
17
+ };
18
+ };
19
+ compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
20
+ variant: {
21
+ solid: "color-ui-cx bg-soft-ui-fill/90";
22
+ outline: "color-ui-fill ring bg-ui-cx/90 ring-inset ring-ui-fill/30";
23
+ soft: "color-ui-fill/80 bg-soft-ui-fill/20";
24
+ 'soft-outline': "color-ui-fill/80 bg-soft-ui-fill/20 ring ring-inset ring-ui-fill/30";
25
+ };
26
+ size: {
27
+ xs: "text-xs";
28
+ sm: "text-sm";
29
+ md: "text-base";
30
+ lg: "text-lg";
31
+ xl: "text-xl";
32
+ };
33
+ }, undefined, "inline-flex items-center justify-center px-0.25em rounded-ui-base leading-normal min-w-1.5em font-medium font-sans select-none">;
34
+ defaultVariants: {
35
+ variant: "outline";
36
+ size: "md";
37
+ };
38
+ };
39
+ export default _default;
@@ -0,0 +1,26 @@
1
+ import { ct } from "@byyuurin/ui-kit";
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ base: "inline-flex items-center justify-center px-0.25em rounded-ui-base leading-normal min-w-1.5em font-medium font-sans select-none",
6
+ variants: {
7
+ variant: {
8
+ "solid": "color-ui-cx bg-soft-ui-fill/90",
9
+ "outline": "color-ui-fill ring bg-ui-cx/90 ring-inset ring-ui-fill/30",
10
+ "soft": "color-ui-fill/80 bg-soft-ui-fill/20",
11
+ "soft-outline": "color-ui-fill/80 bg-soft-ui-fill/20 ring ring-inset ring-ui-fill/30"
12
+ },
13
+ size: {
14
+ xs: "text-xs",
15
+ sm: "text-sm",
16
+ md: "text-base",
17
+ lg: "text-lg",
18
+ xl: "text-xl"
19
+ }
20
+ },
21
+ defaultVariants: {
22
+ variant: "outline",
23
+ size: "md"
24
+ }
25
+ }
26
+ );
@@ -14,7 +14,7 @@ declare const _default: {
14
14
  true: "cursor-not-allowed opacity-50";
15
15
  };
16
16
  };
17
- compoundVariants: import("@byyuurin/ui-kit/index").CVCompoundVariants<{
17
+ compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
18
18
  underline: {
19
19
  true: "border-current";
20
20
  false: "border-transparent";
@@ -27,7 +27,7 @@ declare const _default: {
27
27
  true: "cursor-not-allowed opacity-50";
28
28
  };
29
29
  }, undefined, "border-y border-t-transparent outline-none focus-visible:outline-ui-cb/80">;
30
- defaultVariants: import("@byyuurin/ui-kit/index").CVDefaultVariants<{
30
+ defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
31
31
  underline: {
32
32
  true: "border-current";
33
33
  false: "border-transparent";