@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
@@ -12,14 +12,14 @@ declare const _default: {
12
12
  label: string;
13
13
  separator: string;
14
14
  item: string[];
15
- itemPrefixIcon: string;
16
- itemSuffix: string;
17
- itemSuffixIcon: string;
15
+ itemLeadingIcon: string;
16
+ itemTrailing: string;
17
+ itemTrailingIcon: string;
18
18
  itemLabel: string;
19
- prefix: string;
20
- prefixIcon: string;
21
- suffix: string;
22
- suffixIcon: string;
19
+ leading: string;
20
+ leadingIcon: string;
21
+ trailing: string;
22
+ trailingIcon: string;
23
23
  };
24
24
  variants: {
25
25
  variant: {
@@ -61,10 +61,10 @@ declare const _default: {
61
61
  item: string;
62
62
  };
63
63
  };
64
- prefix: {
64
+ leading: {
65
65
  true: "";
66
66
  };
67
- suffix: {
67
+ trailing: {
68
68
  true: "";
69
69
  };
70
70
  loading: {
@@ -85,105 +85,90 @@ declare const _default: {
85
85
  };
86
86
  };
87
87
  };
88
- compoundVariants: ({
89
- variant: ("soft" | "ghost" | "none")[];
90
- highlight: false;
91
- underline: true;
92
- class: {
93
- base: string[];
94
- item?: undefined;
95
- prefixIcon?: undefined;
96
- suffixIcon?: undefined;
97
- };
98
- size?: undefined;
99
- loading?: undefined;
100
- prefix?: undefined;
101
- suffix?: undefined;
102
- } | {
103
- size: ("xs" | "sm" | "md")[];
104
- class: {
105
- base: string;
106
- item: string;
107
- prefixIcon?: undefined;
108
- suffixIcon?: undefined;
109
- };
110
- variant?: undefined;
111
- highlight?: undefined;
112
- underline?: undefined;
113
- loading?: undefined;
114
- prefix?: undefined;
115
- suffix?: undefined;
116
- } | {
117
- size: ("lg" | "xl")[];
118
- class: {
119
- base: string;
120
- item: string;
121
- prefixIcon?: undefined;
122
- suffixIcon?: undefined;
123
- };
124
- variant?: undefined;
125
- highlight?: undefined;
126
- underline?: undefined;
127
- loading?: undefined;
128
- prefix?: undefined;
129
- suffix?: undefined;
130
- } | {
131
- variant: ("soft" | "soft-outline" | "ghost" | "none")[];
132
- highlight: true;
133
- class: {
134
- base: string;
135
- item?: undefined;
136
- prefixIcon?: undefined;
137
- suffixIcon?: undefined;
138
- };
139
- underline?: undefined;
140
- size?: undefined;
141
- loading?: undefined;
142
- prefix?: undefined;
143
- suffix?: undefined;
144
- } | {
145
- variant: "outline"[];
146
- highlight: true;
147
- class: {
148
- base: string;
149
- item?: undefined;
150
- prefixIcon?: undefined;
151
- suffixIcon?: undefined;
152
- };
153
- underline?: undefined;
154
- size?: undefined;
155
- loading?: undefined;
156
- prefix?: undefined;
157
- suffix?: undefined;
158
- } | {
159
- loading: true;
160
- prefix: true;
161
- class: {
162
- prefixIcon: string;
163
- base?: undefined;
164
- item?: undefined;
165
- suffixIcon?: undefined;
166
- };
167
- variant?: undefined;
168
- highlight?: undefined;
169
- underline?: undefined;
170
- size?: undefined;
171
- suffix?: undefined;
172
- } | {
173
- loading: true;
174
- prefix: false;
175
- suffix: true;
176
- class: {
177
- suffixIcon: string;
178
- base?: undefined;
179
- item?: undefined;
180
- prefixIcon?: undefined;
181
- };
182
- variant?: undefined;
183
- highlight?: undefined;
184
- underline?: undefined;
185
- size?: undefined;
186
- })[];
88
+ compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
89
+ variant: {
90
+ outline: {
91
+ base: string[];
92
+ };
93
+ soft: {
94
+ base: string[];
95
+ };
96
+ 'soft-outline': {
97
+ base: string[];
98
+ };
99
+ ghost: {
100
+ base: string[];
101
+ };
102
+ none: {
103
+ base: string;
104
+ };
105
+ };
106
+ size: {
107
+ xs: {
108
+ base: string;
109
+ item: string;
110
+ };
111
+ sm: {
112
+ base: string;
113
+ item: string;
114
+ };
115
+ md: {
116
+ base: string;
117
+ item: string;
118
+ };
119
+ lg: {
120
+ base: string;
121
+ item: string;
122
+ };
123
+ xl: {
124
+ base: string;
125
+ item: string;
126
+ };
127
+ };
128
+ leading: {
129
+ true: "";
130
+ };
131
+ trailing: {
132
+ true: "";
133
+ };
134
+ loading: {
135
+ true: "";
136
+ };
137
+ underline: {
138
+ true: "";
139
+ };
140
+ highlight: {
141
+ true: "";
142
+ };
143
+ groupOrientation: {
144
+ horizontal: {
145
+ base: string;
146
+ };
147
+ vertical: {
148
+ base: string;
149
+ };
150
+ };
151
+ }, {
152
+ base: string[];
153
+ value: string;
154
+ placeholder: string;
155
+ arrow: string;
156
+ content: string[];
157
+ viewport: string;
158
+ group: string;
159
+ empty: string;
160
+ label: string;
161
+ separator: string;
162
+ item: string[];
163
+ itemLeadingIcon: string;
164
+ itemTrailing: string;
165
+ itemTrailingIcon: string;
166
+ itemLabel: string;
167
+ leading: string;
168
+ leadingIcon: string;
169
+ trailing: string;
170
+ trailingIcon: string;
171
+ }, undefined>;
187
172
  defaultVariants: {
188
173
  size: "md";
189
174
  };
@@ -1,69 +1,69 @@
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
  {
6
6
  slots: {
7
7
  base: [
8
- "bg-solid-ui-c1 relative group rounded-ui-base inline-flex items-center gap-x-2 focus:outline-none transition-colors",
8
+ "group inline-flex items-center gap-x-2 rounded-ui-base focus:outline-none transition-colors",
9
9
  "disabled:cursor-not-allowed disabled:opacity-50"
10
10
  ],
11
11
  value: "me-auto truncate pointer-events-none",
12
12
  placeholder: "me-auto truncate color-ui-cb/50",
13
- arrow: "fill-ui-c1 stroke-ui-cb/10",
13
+ arrow: "fill-ui-cx stroke-ui-cb/20",
14
14
  content: [
15
- "max-h-60 w-[var(--reka-popper-anchor-width)] bg-solid-ui-c1 shadow-lg rounded-[calc(var(--ui-radius-tabs)*0.66)] ring ring-ui-cb/10 overflow-hidden pointer-events-auto",
15
+ "z-1 max-h-60 w-[var(--reka-popper-anchor-width)] bg-ui-cx shadow-lg rounded-[calc(var(--ui-radius-tabs)*0.66)] ring ring-ui-cb/20 overflow-hidden pointer-events-auto",
16
16
  "data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]"
17
17
  ],
18
18
  viewport: "divide-y divide-ui-cb/10 scroll-py-1",
19
19
  group: "p-1 isolate",
20
20
  empty: "py-2 text-center text-sm color-ui-cb/50",
21
21
  label: "font-semibold color-ui-cb cursor-pointer",
22
- separator: "-mx-1 my-1 h-px bg-solid-ui-cb/10",
22
+ separator: "-mx-1 my-1 h-px bg-soft-ui-cb/10",
23
23
  item: [
24
24
  "group relative w-full flex gap-2 items-center select-none outline-none color-ui-cb/50 transition-colors cursor-pointer",
25
25
  "aria-disabled:cursor-not-allowed aria-disabled:opacity-50",
26
26
  "before:content-empty before:absolute before:z-[-1] before:inset-px before:rounded-ui-base before:transition-colors",
27
- "data-[highlighted]:color-ui-cb data-[highlighted]:before:bg-solid-ui-cb/3",
27
+ "data-[highlighted]:color-ui-cb data-[highlighted]:before:bg-soft-ui-cb/3",
28
28
  "data-[state=checked]:color-ui-base"
29
29
  ],
30
- itemPrefixIcon: "shrink-0 color-ui-cb/80 group-data-[highlighted]:color-ui-cb/80 transition-colors",
31
- itemSuffix: "ms-auto inline-flex gap-1.5 items-center",
32
- itemSuffixIcon: "shrink-0",
30
+ itemLeadingIcon: "shrink-0 color-ui-cb/80 group-data-[highlighted]:color-ui-cb/80 transition-colors",
31
+ itemTrailing: "ms-auto inline-flex gap-1.5 items-center",
32
+ itemTrailingIcon: "shrink-0",
33
33
  itemLabel: "truncate",
34
- prefix: "flex items-center",
35
- prefixIcon: "shrink-0 size-1.25em",
36
- suffix: "flex items-center",
37
- suffixIcon: "shrink-0 size-1.25em"
34
+ leading: "flex items-center",
35
+ leadingIcon: "shrink-0 size-1.25em",
36
+ trailing: "flex items-center",
37
+ trailingIcon: "shrink-0 size-1.25em"
38
38
  },
39
39
  variants: {
40
40
  ...buttonGroupVariant,
41
41
  variant: {
42
42
  "outline": {
43
43
  base: [
44
- "color-ui-cb/80 bg-solid-ui-c1 ring ring-inset ring-ui-cb/50",
44
+ "color-ui-cb/80 bg-ui-cx ring ring-inset ring-ui-cb/30 data-[state=open]:ring-2 data-[state=open]:ring-ui-cb/50",
45
45
  "focus-within:ring-2 focus-within:ring-ui-cb/50",
46
46
  "disabled:ring-ui-cb/80 hover:disabled:ring-ui-cb/80"
47
47
  ]
48
48
  },
49
49
  "soft": {
50
50
  base: [
51
- "color-ui-cb/80 bg-solid-ui-cb/4",
52
- "hover:bg-solid-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-solid-ui-cb/8 focus-within:color-ui-cb/85",
53
- "disabled:color-ui-content/80 disabled:bg-solid-ui-fill/5 hover:disabled:color-ui-content/80 hover:disabled:bg-solid-ui-fill/5"
51
+ "color-ui-cb/80 bg-soft-ui-cb/5 data-[state=open]:bg-soft-ui-cb/5",
52
+ "hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 focus-within:color-ui-cb/85",
53
+ "disabled:color-ui-content/80 disabled:bg-soft-ui-fill/5 hover:disabled:color-ui-content/80 hover:disabled:bg-soft-ui-fill/5"
54
54
  ]
55
55
  },
56
56
  "soft-outline": {
57
57
  base: [
58
- "color-ui-cb/80 bg-solid-ui-cb/4 ring ring-inset ring-ui-cb/10",
59
- "hover:bg-solid-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-solid-ui-cb/8 focus-within:color-ui-cb/85",
60
- "disabled:color-ui-content/80 disabled:bg-solid-ui-fill/5 hover:disabled:color-ui-content/80 hover:disabled:bg-solid-ui-fill/5"
58
+ "color-ui-cb/80 bg-soft-ui-cb/5 ring ring-inset ring-ui-cb/10 data-[state=open]:bg-soft-ui-cb/5 data-[state=open]:ring-ui-cb/25",
59
+ "hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 focus-within:color-ui-cb/85",
60
+ "disabled:color-ui-content/80 disabled:bg-soft-ui-fill/5 hover:disabled:color-ui-content/80 hover:disabled:bg-soft-ui-fill/5"
61
61
  ]
62
62
  },
63
63
  "ghost": {
64
64
  base: [
65
- "color-ui-cb/80 bg-transparent",
66
- "hover:bg-solid-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-solid-ui-cb/8 focus-within:color-ui-cb/85",
65
+ "color-ui-cb/80 bg-transparent data-[state=open]:bg-soft-ui-cb/8",
66
+ "hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 focus-within:color-ui-cb/85",
67
67
  "disabled:color-ui-fill/80 disabled:bg-transparent hover:disabled:color-ui-fill/80 hover:disabled:bg-transparent"
68
68
  ]
69
69
  },
@@ -93,10 +93,10 @@ export default ct(
93
93
  item: "text-xl"
94
94
  }
95
95
  },
96
- prefix: {
96
+ leading: {
97
97
  true: ""
98
98
  },
99
- suffix: {
99
+ trailing: {
100
100
  true: ""
101
101
  },
102
102
  loading: {
@@ -116,8 +116,8 @@ export default ct(
116
116
  underline: true,
117
117
  class: {
118
118
  base: [
119
- "relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-solid-ui-cb/40",
120
- "data-[state=open]:after:h-2px data-[state=open]:after:bg-solid-ui-fill/60"
119
+ "relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-soft-ui-cb/40",
120
+ "data-[state=open]:after:h-2px data-[state=open]:after:bg-soft-ui-fill/60"
121
121
  ]
122
122
  }
123
123
  },
@@ -151,17 +151,17 @@ export default ct(
151
151
  },
152
152
  {
153
153
  loading: true,
154
- prefix: true,
154
+ leading: true,
155
155
  class: {
156
- prefixIcon: "animate-spin"
156
+ leadingIcon: "animate-spin"
157
157
  }
158
158
  },
159
159
  {
160
160
  loading: true,
161
- prefix: false,
162
- suffix: true,
161
+ leading: false,
162
+ trailing: true,
163
163
  class: {
164
- suffixIcon: "animate-spin"
164
+ trailingIcon: "animate-spin"
165
165
  }
166
166
  }
167
167
  ],
@@ -0,0 +1,95 @@
1
+ declare const _default: {
2
+ base: undefined;
3
+ slots: {
4
+ root: string;
5
+ line: string;
6
+ container: string;
7
+ icon: string;
8
+ label: string;
9
+ };
10
+ variants: {
11
+ orientation: {
12
+ horizontal: {
13
+ root: string;
14
+ line: string;
15
+ container: string;
16
+ };
17
+ vertical: {
18
+ root: string;
19
+ line: string;
20
+ container: string;
21
+ };
22
+ };
23
+ start: {
24
+ true: {
25
+ line: string;
26
+ };
27
+ };
28
+ end: {
29
+ true: {
30
+ line: string;
31
+ };
32
+ };
33
+ };
34
+ compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
35
+ orientation: {
36
+ horizontal: {
37
+ root: string;
38
+ line: string;
39
+ container: string;
40
+ };
41
+ vertical: {
42
+ root: string;
43
+ line: string;
44
+ container: string;
45
+ };
46
+ };
47
+ start: {
48
+ true: {
49
+ line: string;
50
+ };
51
+ };
52
+ end: {
53
+ true: {
54
+ line: string;
55
+ };
56
+ };
57
+ }, {
58
+ root: string;
59
+ line: string;
60
+ container: string;
61
+ icon: string;
62
+ label: string;
63
+ }, undefined>;
64
+ defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
65
+ orientation: {
66
+ horizontal: {
67
+ root: string;
68
+ line: string;
69
+ container: string;
70
+ };
71
+ vertical: {
72
+ root: string;
73
+ line: string;
74
+ container: string;
75
+ };
76
+ };
77
+ start: {
78
+ true: {
79
+ line: string;
80
+ };
81
+ };
82
+ end: {
83
+ true: {
84
+ line: string;
85
+ };
86
+ };
87
+ }, {
88
+ root: string;
89
+ line: string;
90
+ container: string;
91
+ icon: string;
92
+ label: string;
93
+ }>;
94
+ };
95
+ export default _default;
@@ -0,0 +1,53 @@
1
+ import { ct } from "@byyuurin/ui-kit";
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ slots: {
6
+ root: "flex items-center justify-center text-center",
7
+ line: "border-solid border-ui-fill/20",
8
+ container: "color-ui-cb/80 flex",
9
+ icon: "shrink-0 size-5",
10
+ label: ""
11
+ },
12
+ variants: {
13
+ orientation: {
14
+ horizontal: {
15
+ root: "w-full flex-row",
16
+ line: "min-w-3 w-full border-t",
17
+ container: "px-3 whitespace-nowrap"
18
+ },
19
+ vertical: {
20
+ root: "h-full flex-col",
21
+ line: "min-h-3 h-full border-s",
22
+ container: "py-2"
23
+ }
24
+ },
25
+ start: {
26
+ true: {
27
+ line: "w-auto flex-grow"
28
+ }
29
+ },
30
+ end: {
31
+ true: {
32
+ line: "w-auto flex-grow"
33
+ }
34
+ }
35
+ },
36
+ compoundVariants: [
37
+ {
38
+ orientation: "vertical",
39
+ start: true,
40
+ class: {
41
+ line: "h-auto"
42
+ }
43
+ },
44
+ {
45
+ orientation: "vertical",
46
+ end: true,
47
+ class: {
48
+ line: "h-auto"
49
+ }
50
+ }
51
+ ]
52
+ }
53
+ );
@@ -0,0 +1,8 @@
1
+ declare const _default: {
2
+ base: string;
3
+ slots: undefined;
4
+ variants: {};
5
+ compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{}, undefined, "animate-pulse rounded-ui-base bg-soft-ui-fill/10">;
6
+ defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{}, undefined>;
7
+ };
8
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { ct } from "@byyuurin/ui-kit";
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ base: "animate-pulse rounded-ui-base bg-soft-ui-fill/10"
6
+ }
7
+ );
@@ -35,7 +35,7 @@ declare const _default: {
35
35
  };
36
36
  };
37
37
  };
38
- compoundVariants: import("@byyuurin/ui-kit/index").CVCompoundVariants<{
38
+ compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
39
39
  size: {
40
40
  xs: {
41
41
  root: string;
@@ -5,13 +5,13 @@ export default ct(
5
5
  slots: {
6
6
  root: "relative flex items-center select-none touch-none aria-disabled:opacity-50",
7
7
  track: [
8
- "relative bg-solid-ui-cb/10 overflow-hidden rounded-full flex-grow cursor-pointer",
8
+ "relative bg-soft-ui-cb/10 overflow-hidden rounded-full flex-grow cursor-pointer",
9
9
  "data-[disabled]:cursor-not-allowed",
10
10
  "data-[orientation=horizontal]:h-0.6em data-[orientation=vertical]:w-0.6em"
11
11
  ],
12
- range: "absolute rounded-full bg-solid-ui-fill",
12
+ range: "absolute rounded-full bg-soft-ui-fill",
13
13
  thumb: [
14
- "size-1em rounded-full bg-solid-ui-c1 ring-0.2em cursor-pointer focus-visible:outline-0.2em focus-visible:outline-offset-0.2em",
14
+ "size-1em rounded-full bg-ui-cx ring-0.2em cursor-pointer focus-visible:outline-0.2em focus-visible:outline-offset-0.2em",
15
15
  "data-[disabled]:cursor-not-allowed",
16
16
  "ring-ui-fill outline-none focus-visible:outline-ui-fill/50"
17
17
  ]
@@ -58,7 +58,7 @@ declare const _default: {
58
58
  };
59
59
  };
60
60
  };
61
- compoundVariants: import("@byyuurin/ui-kit/index").CVCompoundVariants<{
61
+ compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
62
62
  size: {
63
63
  xs: {
64
64
  root: string;
@@ -3,16 +3,16 @@ export default ct(
3
3
  /* @unocss-include */
4
4
  {
5
5
  slots: {
6
- root: "relative flex items-start",
6
+ root: "relative inline-flex items-start",
7
7
  base: [
8
8
  "inline-flex items-center shrink-0 rounded-ui-switch border-2 border-transparent transition-colors duration-200",
9
9
  "outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-cb/80",
10
- "data-[state=unchecked]:bg-solid-ui-cb/10 data-[state=checked]:bg-solid-ui-fill/80",
10
+ "data-[state=unchecked]:bg-soft-ui-cb/10 data-[state=checked]:bg-soft-ui-fill/80",
11
11
  "w-2.7em"
12
12
  ],
13
13
  container: "flex items-center h-1.5em",
14
14
  thumb: [
15
- "group pointer-events-none rounded-ui-switch size-1.25em bg-solid-ui-c1 shadow-lg ring-0 transition-transform duration-200 flex items-center justify-center",
15
+ "group pointer-events-none rounded-ui-switch size-1.25em bg-ui-cx shadow-lg ring-0 transition-transform duration-200 flex items-center justify-center",
16
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
17
  ],
18
18
  icon: [