@byyuurin/ui 0.0.5 → 0.0.7

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 (160) hide show
  1. package/README.md +15 -11
  2. package/dist/module.cjs +5 -0
  3. package/dist/module.json +12 -0
  4. package/dist/{nuxt.mjs → module.mjs} +7 -6
  5. package/dist/module.mjs.map +1 -0
  6. package/dist/runtime/components/Accordion.vue +20 -31
  7. package/dist/runtime/components/Alert.vue +1 -1
  8. package/dist/runtime/components/App.vue +1 -1
  9. package/dist/runtime/components/Badge.vue +0 -1
  10. package/dist/runtime/components/Button.vue +14 -12
  11. package/dist/runtime/components/ButtonGroup.vue +47 -0
  12. package/dist/runtime/components/Card.vue +9 -6
  13. package/dist/runtime/components/Carousel.vue +310 -0
  14. package/dist/runtime/components/Checkbox.vue +3 -4
  15. package/dist/runtime/components/Chip.vue +9 -4
  16. package/dist/runtime/components/Collapsible.vue +56 -0
  17. package/dist/runtime/components/Drawer.vue +4 -2
  18. package/dist/runtime/components/Input.vue +12 -8
  19. package/dist/runtime/components/InputNumber.vue +167 -0
  20. package/dist/runtime/components/Link.vue +301 -72
  21. package/dist/runtime/components/LinkBase.vue +88 -0
  22. package/dist/runtime/components/Modal.vue +2 -4
  23. package/dist/runtime/components/Pagination.vue +167 -0
  24. package/dist/runtime/components/PinInput.vue +0 -1
  25. package/dist/runtime/components/RadioGroup.vue +0 -1
  26. package/dist/runtime/components/ScrollArea.vue +1 -1
  27. package/dist/runtime/components/Select.vue +9 -5
  28. package/dist/runtime/components/Separator.vue +63 -0
  29. package/dist/runtime/components/Slider.vue +0 -1
  30. package/dist/runtime/components/Switch.vue +4 -6
  31. package/dist/runtime/components/Table.vue +292 -0
  32. package/dist/runtime/components/Tabs.vue +17 -18
  33. package/dist/runtime/components/Textarea.vue +0 -1
  34. package/dist/runtime/components/Toast.vue +21 -10
  35. package/dist/runtime/components/Toaster.vue +4 -39
  36. package/dist/runtime/composables/useButtonGroup.d.ts +13 -0
  37. package/dist/runtime/composables/useButtonGroup.js +14 -0
  38. package/dist/runtime/composables/{useComponentIcons.mjs → useComponentIcons.js} +1 -1
  39. package/dist/runtime/composables/useModal.d.ts +1 -1
  40. package/dist/runtime/composables/{useModal.mjs → useModal.js} +1 -1
  41. package/dist/runtime/composables/useTheme.d.ts +4 -4
  42. package/dist/runtime/composables/{useTheme.mjs → useTheme.js} +4 -4
  43. package/dist/runtime/composables/useToast.d.ts +4 -4
  44. package/dist/runtime/composables/{useToast.mjs → useToast.js} +19 -6
  45. package/dist/runtime/index.d.ts +34 -0
  46. package/dist/runtime/index.js +34 -0
  47. package/dist/runtime/theme/accordion.d.ts +22 -5
  48. package/dist/runtime/theme/{accordion.mjs → accordion.js} +2 -2
  49. package/dist/runtime/theme/alert.d.ts +41 -1
  50. package/dist/runtime/theme/{alert.mjs → alert.js} +4 -4
  51. package/dist/runtime/theme/app.d.ts +8 -0
  52. package/dist/runtime/theme/app.js +18 -0
  53. package/dist/runtime/theme/badge.d.ts +48 -21
  54. package/dist/runtime/theme/{badge.mjs → badge.js} +5 -2
  55. package/dist/runtime/theme/button-group.d.ts +66 -0
  56. package/dist/runtime/theme/button-group.js +42 -0
  57. package/dist/runtime/theme/button.d.ts +68 -111
  58. package/dist/runtime/theme/button.js +164 -0
  59. package/dist/runtime/theme/card.d.ts +38 -19
  60. package/dist/runtime/theme/card.js +37 -0
  61. package/dist/runtime/theme/carousel.d.ts +113 -0
  62. package/dist/runtime/theme/carousel.js +43 -0
  63. package/dist/runtime/theme/checkbox.d.ts +4 -1
  64. package/dist/runtime/theme/{checkbox.mjs → checkbox.js} +7 -4
  65. package/dist/runtime/theme/chip.d.ts +56 -12
  66. package/dist/runtime/theme/{chip.mjs → chip.js} +10 -7
  67. package/dist/runtime/theme/collapsible.d.ts +38 -0
  68. package/dist/runtime/theme/collapsible.js +10 -0
  69. package/dist/runtime/theme/drawer.d.ts +71 -33
  70. package/dist/runtime/theme/{drawer.mjs → drawer.js} +33 -22
  71. package/dist/runtime/theme/index.d.ts +31 -24
  72. package/dist/runtime/theme/index.js +31 -0
  73. package/dist/runtime/theme/input-number.d.ts +135 -0
  74. package/dist/runtime/theme/input-number.js +92 -0
  75. package/dist/runtime/theme/input.d.ts +94 -111
  76. package/dist/runtime/theme/input.js +151 -0
  77. package/dist/runtime/theme/link.d.ts +14 -1
  78. package/dist/runtime/theme/{link.mjs → link.js} +1 -1
  79. package/dist/runtime/theme/modal.d.ts +33 -7
  80. package/dist/runtime/theme/{modal.mjs → modal.js} +8 -10
  81. package/dist/runtime/theme/pagination.d.ts +56 -0
  82. package/dist/runtime/theme/pagination.js +13 -0
  83. package/dist/runtime/theme/pinInput.d.ts +45 -42
  84. package/dist/runtime/theme/{pinInput.mjs → pinInput.js} +14 -11
  85. package/dist/runtime/theme/popover.d.ts +16 -5
  86. package/dist/runtime/theme/{radioGroup.d.ts → radio-group.d.ts} +4 -1
  87. package/dist/runtime/theme/{radioGroup.mjs → radio-group.js} +3 -0
  88. package/dist/runtime/theme/scroll-area.d.ts +73 -0
  89. package/dist/runtime/theme/{scrollArea.mjs → scroll-area.js} +2 -2
  90. package/dist/runtime/theme/select.d.ts +95 -99
  91. package/dist/runtime/theme/{select.mjs → select.js} +22 -17
  92. package/dist/runtime/theme/separator.d.ts +95 -0
  93. package/dist/runtime/theme/separator.js +53 -0
  94. package/dist/runtime/theme/slider.d.ts +4 -1
  95. package/dist/runtime/theme/{slider.mjs → slider.js} +6 -3
  96. package/dist/runtime/theme/switch.d.ts +4 -1
  97. package/dist/runtime/theme/{switch.mjs → switch.js} +5 -2
  98. package/dist/runtime/theme/table.d.ts +89 -0
  99. package/dist/runtime/theme/table.js +35 -0
  100. package/dist/runtime/theme/tabs.d.ts +72 -52
  101. package/dist/runtime/theme/{tabs.mjs → tabs.js} +15 -12
  102. package/dist/runtime/theme/textarea.d.ts +46 -37
  103. package/dist/runtime/theme/{textarea.mjs → textarea.js} +14 -11
  104. package/dist/runtime/theme/toast.d.ts +45 -7
  105. package/dist/runtime/theme/{toast.mjs → toast.js} +12 -7
  106. package/dist/runtime/theme/toaster.d.ts +89 -25
  107. package/dist/runtime/theme/{toaster.mjs → toaster.js} +5 -0
  108. package/dist/runtime/theme/tooltip.d.ts +20 -7
  109. package/dist/runtime/theme/{tooltip.mjs → tooltip.js} +2 -2
  110. package/dist/runtime/types/components.d.ts +7 -1
  111. package/dist/runtime/types/index.d.ts +4 -4
  112. package/dist/runtime/types/index.js +2 -0
  113. package/dist/runtime/types/utils.d.ts +1 -1
  114. package/dist/runtime/utils/index.d.ts +3 -3
  115. package/dist/runtime/utils/{index.mjs → index.js} +3 -3
  116. package/dist/runtime/utils/link.d.ts +22 -7
  117. package/dist/runtime/utils/link.js +30 -0
  118. package/dist/runtime/utils/styler.d.ts +2 -2
  119. package/dist/runtime/vue/stubs.d.ts +9 -0
  120. package/dist/runtime/vue/stubs.js +16 -0
  121. package/dist/shared/ui.d1728164.mjs +4 -0
  122. package/dist/shared/ui.d1728164.mjs.map +1 -0
  123. package/dist/types.d.mts +1 -0
  124. package/dist/types.d.ts +1 -0
  125. package/dist/{unocss-preset.d.ts → unocss.d.mts} +10 -15
  126. package/dist/{unocss-preset.d.mts → unocss.d.ts} +10 -15
  127. package/dist/{unocss-preset.mjs → unocss.mjs} +53 -21
  128. package/dist/unocss.mjs.map +1 -0
  129. package/dist/unplugin.d.mts +4 -3
  130. package/dist/unplugin.d.ts +4 -3
  131. package/dist/unplugin.mjs +49 -5
  132. package/dist/unplugin.mjs.map +1 -1
  133. package/dist/vite.d.mts +1 -1
  134. package/dist/vite.d.ts +1 -1
  135. package/dist/vite.mjs +7 -5
  136. package/dist/vite.mjs.map +1 -1
  137. package/package.json +59 -45
  138. package/dist/index.d.ts +0 -26
  139. package/dist/index.mjs +0 -26
  140. package/dist/nuxt.mjs.map +0 -1
  141. package/dist/runtime/theme/app.mjs +0 -10
  142. package/dist/runtime/theme/button.mjs +0 -143
  143. package/dist/runtime/theme/card.mjs +0 -14
  144. package/dist/runtime/theme/index.mjs +0 -24
  145. package/dist/runtime/theme/input.mjs +0 -146
  146. package/dist/runtime/theme/scrollArea.d.ts +0 -51
  147. package/dist/runtime/types/index.mjs +0 -2
  148. package/dist/runtime/utils/link.mjs +0 -4
  149. package/dist/shared/ui.CzDyI29e.mjs +0 -8
  150. package/dist/shared/ui.CzDyI29e.mjs.map +0 -1
  151. package/dist/unocss-preset.mjs.map +0 -1
  152. /package/{LICENSE.md → LICENSE} +0 -0
  153. /package/dist/{nuxt.d.mts → module.d.mts} +0 -0
  154. /package/dist/{nuxt.d.ts → module.d.ts} +0 -0
  155. /package/dist/runtime/composables/{defineInjection.mjs → defineInjection.js} +0 -0
  156. /package/dist/runtime/theme/{popover.mjs → popover.js} +0 -0
  157. /package/dist/runtime/types/{components.mjs → components.js} +0 -0
  158. /package/dist/runtime/types/{utils.mjs → utils.js} +0 -0
  159. /package/dist/runtime/utils/{extend-theme.mjs → extend-theme.js} +0 -0
  160. /package/dist/runtime/utils/{styler.mjs → styler.js} +0 -0
@@ -0,0 +1,31 @@
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 badge } from "./badge.js";
5
+ export { default as button } from "./button.js";
6
+ export { default as buttonGroup } from "./button-group.js";
7
+ export { default as card } from "./card.js";
8
+ export { default as carousel } from "./carousel.js";
9
+ export { default as checkbox } from "./checkbox.js";
10
+ export { default as chip } from "./chip.js";
11
+ export { default as collapsible } from "./collapsible.js";
12
+ export { default as drawer } from "./drawer.js";
13
+ export { default as input } from "./input.js";
14
+ export { default as inputNumber } from "./input-number.js";
15
+ export { default as link } from "./link.js";
16
+ export { default as modal } from "./modal.js";
17
+ export { default as pagination } from "./pagination.js";
18
+ export { default as pinInput } from "./pinInput.js";
19
+ export { default as popover } from "./popover.js";
20
+ export { default as radioGroup } from "./radio-group.js";
21
+ export { default as scrollArea } from "./scroll-area.js";
22
+ export { default as select } from "./select.js";
23
+ export { default as separator } from "./separator.js";
24
+ export { default as slider } from "./slider.js";
25
+ export { default as switch } from "./switch.js";
26
+ export { default as table } from "./table.js";
27
+ export { default as tabs } from "./tabs.js";
28
+ export { default as textarea } from "./textarea.js";
29
+ export { default as toast } from "./toast.js";
30
+ export { default as toaster } from "./toaster.js";
31
+ export { default as tooltip } from "./tooltip.js";
@@ -0,0 +1,135 @@
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
+ highlight: {
62
+ true: {
63
+ base: string;
64
+ };
65
+ };
66
+ };
67
+ compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
68
+ size: {
69
+ xs: {
70
+ base: string;
71
+ };
72
+ sm: {
73
+ base: string;
74
+ };
75
+ md: {
76
+ base: string;
77
+ };
78
+ lg: {
79
+ base: string;
80
+ };
81
+ xl: {
82
+ base: string;
83
+ };
84
+ };
85
+ variant: {
86
+ outline: {
87
+ base: string[];
88
+ };
89
+ soft: {
90
+ base: string[];
91
+ };
92
+ 'soft-outline': {
93
+ base: string[];
94
+ };
95
+ ghost: {
96
+ base: string[];
97
+ };
98
+ none: {
99
+ base: string;
100
+ };
101
+ };
102
+ disabled: {
103
+ true: {
104
+ increment: string;
105
+ decrement: string;
106
+ };
107
+ };
108
+ orientation: {
109
+ horizontal: {
110
+ input: string;
111
+ increment: string;
112
+ decrement: string;
113
+ };
114
+ vertical: {
115
+ increment: string;
116
+ decrement: string;
117
+ };
118
+ };
119
+ highlight: {
120
+ true: {
121
+ base: string;
122
+ };
123
+ };
124
+ }, {
125
+ base: string;
126
+ input: string[];
127
+ increment: string;
128
+ decrement: string;
129
+ }, undefined>;
130
+ defaultVariants: {
131
+ size: "md";
132
+ variant: "outline";
133
+ };
134
+ };
135
+ export default _default;
@@ -0,0 +1,92 @@
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",
14
+ decrement: "absolute flex items-center"
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
+ highlight: {
41
+ true: {
42
+ base: "ring ring-inset ring-ui-fill"
43
+ }
44
+ }
45
+ },
46
+ compoundVariants: [
47
+ {
48
+ variant: ["soft", "ghost", "none"],
49
+ highlight: false,
50
+ underline: true,
51
+ class: {
52
+ base: [
53
+ "relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-soft-ui-cb/40",
54
+ "focus-within:after:h-2px focus-within:after:bg-soft-ui-fill/60"
55
+ ]
56
+ }
57
+ },
58
+ {
59
+ size: ["xs", "sm", "md"],
60
+ class: {
61
+ base: "p-1.5",
62
+ input: "px-1"
63
+ }
64
+ },
65
+ {
66
+ size: ["lg", "xl"],
67
+ class: {
68
+ base: "p-2.5",
69
+ input: "px-1.5"
70
+ }
71
+ },
72
+ {
73
+ variant: ["soft", "soft-outline", "ghost", "none"],
74
+ highlight: true,
75
+ class: {
76
+ base: "ring ring-inset ring-ui-fill/80"
77
+ }
78
+ },
79
+ {
80
+ variant: ["outline"],
81
+ highlight: true,
82
+ class: {
83
+ base: "ring-2 ring-ui-fill/80 focus-within:ring-ui-fill/80"
84
+ }
85
+ }
86
+ ],
87
+ defaultVariants: {
88
+ size: "md",
89
+ variant: "outline"
90
+ }
91
+ }
92
+ );
@@ -1,8 +1,8 @@
1
1
  declare const _default: {
2
2
  base: undefined;
3
3
  slots: {
4
- root: string;
5
- base: string[];
4
+ base: string;
5
+ input: string[];
6
6
  prefix: string;
7
7
  prefixIcon: string;
8
8
  suffix: string;
@@ -11,36 +11,36 @@ declare const _default: {
11
11
  variants: {
12
12
  size: {
13
13
  xs: {
14
- root: string;
14
+ base: string;
15
15
  };
16
16
  sm: {
17
- root: string;
17
+ base: string;
18
18
  };
19
19
  md: {
20
- root: string;
20
+ base: string;
21
21
  };
22
22
  lg: {
23
- root: string;
23
+ base: string;
24
24
  };
25
25
  xl: {
26
- root: string;
26
+ base: string;
27
27
  };
28
28
  };
29
29
  variant: {
30
30
  outline: {
31
- root: string[];
31
+ base: string[];
32
32
  };
33
33
  soft: {
34
- root: string[];
34
+ base: string[];
35
35
  };
36
36
  'soft-outline': {
37
- root: string[];
37
+ base: string[];
38
38
  };
39
39
  ghost: {
40
- root: string[];
40
+ base: string[];
41
41
  };
42
42
  none: {
43
- root: string;
43
+ base: string;
44
44
  };
45
45
  };
46
46
  prefix: {
@@ -60,108 +60,91 @@ declare const _default: {
60
60
  };
61
61
  type: {
62
62
  file: {
63
+ input: string;
64
+ };
65
+ };
66
+ groupOrientation: {
67
+ horizontal: {
68
+ base: string;
69
+ };
70
+ vertical: {
63
71
  base: string;
64
72
  };
65
73
  };
66
74
  };
67
- compoundVariants: ({
68
- variant: ("soft" | "ghost" | "none")[];
69
- highlight: false;
70
- underline: true;
71
- class: {
72
- root: string[];
73
- base?: undefined;
74
- prefixIcon?: undefined;
75
- suffixIcon?: undefined;
76
- };
77
- size?: undefined;
78
- loading?: undefined;
79
- prefix?: undefined;
80
- suffix?: undefined;
81
- } | {
82
- size: ("xs" | "sm" | "md")[];
83
- class: {
84
- root: string;
85
- base: string;
86
- prefixIcon?: undefined;
87
- suffixIcon?: undefined;
88
- };
89
- variant?: undefined;
90
- highlight?: undefined;
91
- underline?: undefined;
92
- loading?: undefined;
93
- prefix?: undefined;
94
- suffix?: undefined;
95
- } | {
96
- size: ("lg" | "xl")[];
97
- class: {
98
- root: string;
99
- base: string;
100
- prefixIcon?: undefined;
101
- suffixIcon?: undefined;
102
- };
103
- variant?: undefined;
104
- highlight?: undefined;
105
- underline?: undefined;
106
- loading?: undefined;
107
- prefix?: undefined;
108
- suffix?: undefined;
109
- } | {
110
- variant: ("soft" | "soft-outline" | "ghost" | "none")[];
111
- highlight: true;
112
- class: {
113
- root: string;
114
- base?: undefined;
115
- prefixIcon?: undefined;
116
- suffixIcon?: undefined;
117
- };
118
- underline?: undefined;
119
- size?: undefined;
120
- loading?: undefined;
121
- prefix?: undefined;
122
- suffix?: undefined;
123
- } | {
124
- variant: "outline"[];
125
- highlight: true;
126
- class: {
127
- root: string;
128
- base?: undefined;
129
- prefixIcon?: undefined;
130
- suffixIcon?: undefined;
131
- };
132
- underline?: undefined;
133
- size?: undefined;
134
- loading?: undefined;
135
- prefix?: undefined;
136
- suffix?: undefined;
137
- } | {
138
- loading: true;
139
- prefix: true;
140
- class: {
141
- prefixIcon: string;
142
- root?: undefined;
143
- base?: undefined;
144
- suffixIcon?: undefined;
145
- };
146
- variant?: undefined;
147
- highlight?: undefined;
148
- underline?: undefined;
149
- size?: undefined;
150
- suffix?: undefined;
151
- } | {
152
- loading: true;
153
- prefix: false;
154
- suffix: true;
155
- class: {
156
- suffixIcon: string;
157
- root?: undefined;
158
- base?: undefined;
159
- prefixIcon?: undefined;
160
- };
161
- variant?: undefined;
162
- highlight?: undefined;
163
- underline?: undefined;
164
- size?: undefined;
165
- })[];
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
+ prefix: {
111
+ true: "";
112
+ };
113
+ suffix: {
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
+ prefix: string;
142
+ prefixIcon: string;
143
+ suffix: string;
144
+ suffixIcon: string;
145
+ }, undefined>;
146
+ defaultVariants: {
147
+ size: "md";
148
+ };
166
149
  };
167
150
  export default _default;
@@ -0,0 +1,151 @@
1
+ import { ct } from "@byyuurin/ui-kit";
2
+ import { buttonGroupVariant } from "./button-group.js";
3
+ export default ct(
4
+ /* @unocss-include */
5
+ {
6
+ slots: {
7
+ base: "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
+ prefix: "flex items-center",
14
+ prefixIcon: "shrink-0 size-1.25em",
15
+ suffix: "flex items-center",
16
+ suffixIcon: "shrink-0 size-1.25em"
17
+ },
18
+ variants: {
19
+ ...buttonGroupVariant,
20
+ size: {
21
+ xs: {
22
+ base: "text-xs"
23
+ },
24
+ sm: {
25
+ base: "text-sm"
26
+ },
27
+ md: {
28
+ base: "text-base"
29
+ },
30
+ lg: {
31
+ base: "text-lg"
32
+ },
33
+ xl: {
34
+ base: "text-xl"
35
+ }
36
+ },
37
+ variant: {
38
+ "outline": {
39
+ base: [
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
+ ]
44
+ },
45
+ "soft": {
46
+ base: [
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
+ ]
51
+ },
52
+ "soft-outline": {
53
+ base: [
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
+ ]
58
+ },
59
+ "ghost": {
60
+ base: [
61
+ "color-ui-cb/80 bg-transparent",
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
+ "aria-disabled:color-ui-fill/80 aria-disabled:bg-transparent hover:aria-disabled:color-ui-fill/80 hover:aria-disabled:bg-transparent"
64
+ ]
65
+ },
66
+ "none": {
67
+ base: "color-ui-cb bg-transparent"
68
+ }
69
+ },
70
+ prefix: {
71
+ true: ""
72
+ },
73
+ suffix: {
74
+ true: ""
75
+ },
76
+ loading: {
77
+ true: ""
78
+ },
79
+ underline: {
80
+ true: ""
81
+ },
82
+ highlight: {
83
+ true: ""
84
+ },
85
+ type: {
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-cx file:bg-soft-ui-cb/80"
88
+ }
89
+ }
90
+ },
91
+ compoundVariants: [
92
+ {
93
+ variant: ["soft", "ghost", "none"],
94
+ highlight: false,
95
+ underline: true,
96
+ class: {
97
+ base: [
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
+ ]
101
+ }
102
+ },
103
+ {
104
+ size: ["xs", "sm", "md"],
105
+ class: {
106
+ base: "p-1.5",
107
+ input: "px-1"
108
+ }
109
+ },
110
+ {
111
+ size: ["lg", "xl"],
112
+ class: {
113
+ base: "p-2.5",
114
+ input: "px-1.5"
115
+ }
116
+ },
117
+ {
118
+ variant: ["soft", "soft-outline", "ghost", "none"],
119
+ highlight: true,
120
+ class: {
121
+ base: "ring ring-inset ring-ui-fill/80"
122
+ }
123
+ },
124
+ {
125
+ variant: ["outline"],
126
+ highlight: true,
127
+ class: {
128
+ base: "ring-2 ring-ui-fill/80 focus-within:ring-ui-fill/80"
129
+ }
130
+ },
131
+ {
132
+ loading: true,
133
+ prefix: true,
134
+ class: {
135
+ prefixIcon: "animate-spin"
136
+ }
137
+ },
138
+ {
139
+ loading: true,
140
+ prefix: false,
141
+ suffix: true,
142
+ class: {
143
+ suffixIcon: "animate-spin"
144
+ }
145
+ }
146
+ ],
147
+ defaultVariants: {
148
+ size: "md"
149
+ }
150
+ }
151
+ );
@@ -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,5 +27,18 @@ 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").CVDefaultVariants<{
31
+ underline: {
32
+ true: "border-current";
33
+ false: "border-transparent";
34
+ };
35
+ active: {
36
+ true: string[];
37
+ false: string[];
38
+ };
39
+ disabled: {
40
+ true: "cursor-not-allowed opacity-50";
41
+ };
42
+ }, undefined>;
30
43
  };
31
44
  export default _default;
@@ -14,7 +14,7 @@ export default ct(
14
14
  "disabled:color-ui-fill aria-disabled:color-ui-fill"
15
15
  ],
16
16
  false: [
17
- "color-ui-cb hover:color-ui-cb/80 transition-colors",
17
+ "color-ui-cb/80 hover:color-ui-cb/60 transition-colors",
18
18
  "disabled:hover:color-ui-cb aria-disabled:hover:color-ui-cb"
19
19
  ]
20
20
  },