@byyuurin/ui 0.0.3 → 0.0.5

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 (142) hide show
  1. package/README.md +15 -24
  2. package/dist/index.d.ts +25 -2
  3. package/dist/index.mjs +25 -2
  4. package/dist/nuxt.d.mts +1 -1
  5. package/dist/nuxt.d.ts +1 -1
  6. package/dist/nuxt.mjs +14 -10
  7. package/dist/nuxt.mjs.map +1 -0
  8. package/dist/runtime/components/Accordion.vue +1 -1
  9. package/dist/runtime/components/Alert.vue +120 -0
  10. package/dist/runtime/components/App.vue +5 -1
  11. package/dist/runtime/components/Badge.vue +71 -0
  12. package/dist/runtime/components/Button.vue +3 -3
  13. package/dist/runtime/components/Card.vue +4 -4
  14. package/dist/runtime/components/Checkbox.vue +3 -6
  15. package/dist/runtime/components/Chip.vue +59 -0
  16. package/dist/runtime/components/Drawer.vue +2 -2
  17. package/dist/runtime/components/Input.vue +7 -2
  18. package/dist/runtime/components/Link.vue +1 -1
  19. package/dist/runtime/components/Modal.vue +2 -2
  20. package/dist/runtime/components/ModalProvider.vue +1 -1
  21. package/dist/runtime/components/PinInput.vue +86 -0
  22. package/dist/runtime/components/Popover.vue +1 -1
  23. package/dist/runtime/components/RadioGroup.vue +2 -8
  24. package/dist/runtime/components/ScrollArea.vue +72 -0
  25. package/dist/runtime/components/Select.vue +2 -1
  26. package/dist/runtime/components/Slider.vue +97 -0
  27. package/dist/runtime/components/Switch.vue +1 -2
  28. package/dist/runtime/components/Tabs.vue +6 -6
  29. package/dist/runtime/components/Textarea.vue +172 -0
  30. package/dist/runtime/components/Toast.vue +2 -2
  31. package/dist/runtime/components/Toaster.vue +2 -1
  32. package/dist/runtime/components/Tooltip.vue +1 -1
  33. package/dist/runtime/composables/defineInjection.d.ts +11 -0
  34. package/dist/runtime/composables/defineInjection.mjs +9 -0
  35. package/dist/runtime/composables/useModal.d.ts +1 -1
  36. package/dist/runtime/composables/useModal.mjs +3 -2
  37. package/dist/runtime/composables/useTheme.d.ts +3 -1
  38. package/dist/runtime/composables/useTheme.mjs +14 -6
  39. package/dist/runtime/theme/accordion.mjs +24 -21
  40. package/dist/runtime/theme/alert.d.ts +85 -0
  41. package/dist/runtime/theme/alert.mjs +47 -0
  42. package/dist/runtime/theme/app.mjs +1 -0
  43. package/dist/runtime/theme/badge.d.ts +79 -0
  44. package/dist/runtime/theme/badge.mjs +89 -0
  45. package/dist/runtime/theme/button.d.ts +4 -9
  46. package/dist/runtime/theme/button.mjs +130 -127
  47. package/dist/runtime/theme/card.d.ts +2 -2
  48. package/dist/runtime/theme/card.mjs +12 -9
  49. package/dist/runtime/theme/checkbox.d.ts +0 -12
  50. package/dist/runtime/theme/checkbox.mjs +45 -47
  51. package/dist/runtime/theme/chip.d.ts +56 -0
  52. package/dist/runtime/theme/chip.mjs +63 -0
  53. package/dist/runtime/theme/drawer.mjs +69 -66
  54. package/dist/runtime/theme/index.d.ts +7 -0
  55. package/dist/runtime/theme/index.mjs +7 -0
  56. package/dist/runtime/theme/input.d.ts +13 -5
  57. package/dist/runtime/theme/input.mjs +135 -122
  58. package/dist/runtime/theme/link.d.ts +1 -1
  59. package/dist/runtime/theme/link.mjs +23 -20
  60. package/dist/runtime/theme/modal.mjs +51 -48
  61. package/dist/runtime/theme/pinInput.d.ts +97 -0
  62. package/dist/runtime/theme/pinInput.mjs +108 -0
  63. package/dist/runtime/theme/popover.mjs +11 -8
  64. package/dist/runtime/theme/radioGroup.d.ts +0 -24
  65. package/dist/runtime/theme/radioGroup.mjs +50 -59
  66. package/dist/runtime/theme/scrollArea.d.ts +51 -0
  67. package/dist/runtime/theme/scrollArea.mjs +33 -0
  68. package/dist/runtime/theme/select.d.ts +5 -2
  69. package/dist/runtime/theme/select.mjs +156 -143
  70. package/dist/runtime/theme/slider.d.ts +73 -0
  71. package/dist/runtime/theme/slider.mjs +49 -0
  72. package/dist/runtime/theme/switch.d.ts +0 -12
  73. package/dist/runtime/theme/switch.mjs +66 -69
  74. package/dist/runtime/theme/tabs.d.ts +44 -13
  75. package/dist/runtime/theme/tabs.mjs +132 -106
  76. package/dist/runtime/theme/textarea.d.ts +93 -0
  77. package/dist/runtime/theme/textarea.mjs +113 -0
  78. package/dist/runtime/theme/toast.mjs +26 -23
  79. package/dist/runtime/theme/toaster.d.ts +2 -2
  80. package/dist/runtime/theme/toaster.mjs +84 -81
  81. package/dist/runtime/theme/tooltip.mjs +9 -6
  82. package/dist/runtime/types/components.d.ts +7 -0
  83. package/dist/runtime/types/index.d.ts +1 -3
  84. package/dist/runtime/utils/extend-theme.mjs +1 -1
  85. package/dist/runtime/utils/index.d.ts +0 -11
  86. package/dist/runtime/utils/index.mjs +0 -11
  87. package/dist/runtime/utils/link.d.ts +1 -1
  88. package/dist/shared/ui.CzDyI29e.mjs +8 -0
  89. package/dist/shared/ui.CzDyI29e.mjs.map +1 -0
  90. package/dist/unocss-preset.d.mts +15 -7
  91. package/dist/unocss-preset.d.ts +15 -7
  92. package/dist/unocss-preset.mjs +97 -384
  93. package/dist/unocss-preset.mjs.map +1 -0
  94. package/dist/unplugin.d.mts +25 -0
  95. package/dist/unplugin.d.ts +25 -0
  96. package/dist/unplugin.mjs +64 -0
  97. package/dist/unplugin.mjs.map +1 -0
  98. package/dist/vite.d.mts +9 -0
  99. package/dist/vite.d.ts +9 -0
  100. package/dist/vite.mjs +14 -0
  101. package/dist/vite.mjs.map +1 -0
  102. package/package.json +22 -14
  103. package/dist/index.cjs +0 -38
  104. package/dist/resolver.d.mts +0 -13
  105. package/dist/resolver.d.ts +0 -13
  106. package/dist/resolver.mjs +0 -21
  107. package/dist/runtime/components/index.cjs +0 -132
  108. package/dist/runtime/components/index.d.ts +0 -18
  109. package/dist/runtime/components/index.mjs +0 -18
  110. package/dist/runtime/composables/index.cjs +0 -33
  111. package/dist/runtime/composables/index.d.ts +0 -4
  112. package/dist/runtime/composables/index.mjs +0 -4
  113. package/dist/runtime/composables/useComponentIcons.cjs +0 -30
  114. package/dist/runtime/composables/useModal.cjs +0 -55
  115. package/dist/runtime/composables/useTheme.cjs +0 -30
  116. package/dist/runtime/composables/useToast.cjs +0 -51
  117. package/dist/runtime/theme/accordion.cjs +0 -27
  118. package/dist/runtime/theme/app.cjs +0 -15
  119. package/dist/runtime/theme/button.cjs +0 -127
  120. package/dist/runtime/theme/card.cjs +0 -17
  121. package/dist/runtime/theme/checkbox.cjs +0 -56
  122. package/dist/runtime/theme/drawer.cjs +0 -73
  123. package/dist/runtime/theme/index.cjs +0 -125
  124. package/dist/runtime/theme/input.cjs +0 -115
  125. package/dist/runtime/theme/link.cjs +0 -23
  126. package/dist/runtime/theme/modal.cjs +0 -55
  127. package/dist/runtime/theme/popover.cjs +0 -13
  128. package/dist/runtime/theme/radioGroup.cjs +0 -73
  129. package/dist/runtime/theme/select.cjs +0 -128
  130. package/dist/runtime/theme/switch.cjs +0 -73
  131. package/dist/runtime/theme/tabs.cjs +0 -105
  132. package/dist/runtime/theme/toast.cjs +0 -33
  133. package/dist/runtime/theme/toaster.cjs +0 -72
  134. package/dist/runtime/theme/tooltip.cjs +0 -14
  135. package/dist/runtime/types/components.cjs +0 -1
  136. package/dist/runtime/types/index.cjs +0 -27
  137. package/dist/runtime/types/utils.cjs +0 -1
  138. package/dist/runtime/utils/extend-theme.cjs +0 -24
  139. package/dist/runtime/utils/index.cjs +0 -119
  140. package/dist/runtime/utils/link.cjs +0 -10
  141. package/dist/runtime/utils/styler.cjs +0 -18
  142. package/dist/shared/ui.CPXA9QoM.mjs +0 -23
@@ -1,72 +1,75 @@
1
1
  import { ct } from "@byyuurin/ui-kit";
2
- export default ct({
3
- slots: {
4
- overlay: "fixed inset-0 bg-ui-c3/75",
5
- content: "fixed bg-ui-c1 ring ring-ui-cb/5 flex focus:outline-none",
6
- handle: "shrink-0 rounded-full bg-ui-cb/17.5",
7
- container: "w-full flex flex-col overflow-hidden overflow-y-auto",
8
- header: "p-4 sm:px-6 sibling:pt-0",
9
- title: "color-ui-cb text-xl font-semibold",
10
- description: "mt-1 color-ui-cb/80",
11
- body: "p-4 sm:px-6 flex-1 sibling:pt-0",
12
- footer: "p-4 sm:px-6 flex flex-col gap-1.5"
13
- },
14
- variants: {
15
- direction: {
16
- top: {
17
- content: "top-0 mb-24 flex-col-reverse rounded-b-ui-box",
18
- handle: "mb-4"
19
- },
20
- right: {
21
- content: "right-4 flex-row rounded-l-ui-box",
22
- handle: "ml-4"
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ slots: {
6
+ overlay: "fixed inset-0 bg-ui-c3/75",
7
+ content: "fixed bg-ui-c1 ring ring-ui-cb/5 flex focus:outline-none",
8
+ handle: "shrink-0 rounded-full bg-ui-cb/17.5",
9
+ container: "w-full flex flex-col overflow-hidden overflow-y-auto",
10
+ header: "p-4 sm:px-6 sibling:pt-0",
11
+ title: "color-ui-cb text-xl font-semibold",
12
+ description: "mt-1 color-ui-cb/80",
13
+ body: "p-4 sm:px-6 flex-1 sibling:pt-0",
14
+ footer: "p-4 sm:px-6 flex flex-col gap-1.5"
15
+ },
16
+ variants: {
17
+ direction: {
18
+ top: {
19
+ content: "top-0 mb-24 flex-col-reverse rounded-b-ui-box",
20
+ handle: "mb-4"
21
+ },
22
+ right: {
23
+ content: "right-4 flex-row rounded-l-ui-box",
24
+ handle: "ml-4"
25
+ },
26
+ bottom: {
27
+ content: "bottom-0 mt-24 flex-col rounded-t-ui-box",
28
+ handle: "mt-4"
29
+ },
30
+ left: {
31
+ content: "left-4 flex-row-reverse rounded-r-ui-box",
32
+ handle: "mr-4"
33
+ }
23
34
  },
24
- bottom: {
25
- content: "bottom-0 mt-24 flex-col rounded-t-ui-box",
26
- handle: "mt-4"
35
+ blur: {
36
+ true: {
37
+ overlay: "backdrop-blur-sm"
38
+ }
27
39
  },
28
- left: {
29
- content: "left-4 flex-row-reverse rounded-r-ui-box",
30
- handle: "mr-4"
31
- }
32
- },
33
- blur: {
34
- true: {
35
- overlay: "backdrop-blur-sm"
40
+ full: {
41
+ true: ""
36
42
  }
37
43
  },
38
- full: {
39
- true: ""
40
- }
41
- },
42
- compoundVariants: [
43
- {
44
- direction: ["top", "bottom"],
45
- class: {
46
- content: "inset-x-0 h-auto max-h-[96%]",
47
- handle: "w-12 h-1.5 mx-auto"
48
- }
49
- },
50
- {
51
- direction: ["top", "bottom"],
52
- full: false,
53
- class: {
54
- content: "inset-x-4 my-4 rounded-ui-box after:hidden"
55
- }
56
- },
57
- {
58
- direction: ["right", "left"],
59
- class: {
60
- content: "inset-y-0 w-auto max-w-[calc(100%-2rem)]",
61
- handle: "h-12 w-1.5 my-auto"
62
- }
63
- },
64
- {
65
- direction: ["right", "left"],
66
- full: false,
67
- class: {
68
- content: "inset-y-4 rounded-ui-box after:hidden"
44
+ compoundVariants: [
45
+ {
46
+ direction: ["top", "bottom"],
47
+ class: {
48
+ content: "inset-x-0 h-auto max-h-[96%]",
49
+ handle: "w-12 h-1.5 mx-auto"
50
+ }
51
+ },
52
+ {
53
+ direction: ["top", "bottom"],
54
+ full: false,
55
+ class: {
56
+ content: "inset-x-4 my-4 rounded-ui-box after:hidden"
57
+ }
58
+ },
59
+ {
60
+ direction: ["right", "left"],
61
+ class: {
62
+ content: "inset-y-0 w-auto max-w-[calc(100%-2rem)]",
63
+ handle: "h-12 w-1.5 my-auto"
64
+ }
65
+ },
66
+ {
67
+ direction: ["right", "left"],
68
+ full: false,
69
+ class: {
70
+ content: "inset-y-4 rounded-ui-box after:hidden"
71
+ }
69
72
  }
70
- }
71
- ]
72
- });
73
+ ]
74
+ }
75
+ );
@@ -1,17 +1,24 @@
1
1
  export { default as accordion } from './accordion';
2
+ export { default as alert } from './alert';
2
3
  export { default as app } from './app';
4
+ export { default as badge } from './badge';
3
5
  export { default as button } from './button';
4
6
  export { default as card } from './card';
5
7
  export { default as checkbox } from './checkbox';
8
+ export { default as chip } from './chip';
6
9
  export { default as drawer } from './drawer';
7
10
  export { default as input } from './input';
8
11
  export { default as link } from './link';
9
12
  export { default as modal } from './modal';
13
+ export { default as pinInput } from './pinInput';
10
14
  export { default as popover } from './popover';
11
15
  export { default as radioGroup } from './radioGroup';
16
+ export { default as scrollArea } from './scrollArea';
12
17
  export { default as select } from './select';
18
+ export { default as slider } from './slider';
13
19
  export { default as switch } from './switch';
14
20
  export { default as tabs } from './tabs';
21
+ export { default as textarea } from './textarea';
15
22
  export { default as toast } from './toast';
16
23
  export { default as toaster } from './toaster';
17
24
  export { default as tooltip } from './tooltip';
@@ -1,17 +1,24 @@
1
1
  export { default as accordion } from "./accordion.mjs";
2
+ export { default as alert } from "./alert.mjs";
2
3
  export { default as app } from "./app.mjs";
4
+ export { default as badge } from "./badge.mjs";
3
5
  export { default as button } from "./button.mjs";
4
6
  export { default as card } from "./card.mjs";
5
7
  export { default as checkbox } from "./checkbox.mjs";
8
+ export { default as chip } from "./chip.mjs";
6
9
  export { default as drawer } from "./drawer.mjs";
7
10
  export { default as input } from "./input.mjs";
8
11
  export { default as link } from "./link.mjs";
9
12
  export { default as modal } from "./modal.mjs";
13
+ export { default as pinInput } from "./pinInput.mjs";
10
14
  export { default as popover } from "./popover.mjs";
11
15
  export { default as radioGroup } from "./radioGroup.mjs";
16
+ export { default as scrollArea } from "./scrollArea.mjs";
12
17
  export { default as select } from "./select.mjs";
18
+ export { default as slider } from "./slider.mjs";
13
19
  export { default as switch } from "./switch.mjs";
14
20
  export { default as tabs } from "./tabs.mjs";
21
+ export { default as textarea } from "./textarea.mjs";
15
22
  export { default as toast } from "./toast.mjs";
16
23
  export { default as toaster } from "./toaster.mjs";
17
24
  export { default as tooltip } from "./tooltip.mjs";
@@ -33,6 +33,9 @@ declare const _default: {
33
33
  soft: {
34
34
  root: string[];
35
35
  };
36
+ 'soft-outline': {
37
+ root: string[];
38
+ };
36
39
  ghost: {
37
40
  root: string[];
38
41
  };
@@ -53,9 +56,7 @@ declare const _default: {
53
56
  true: "";
54
57
  };
55
58
  highlight: {
56
- true: {
57
- base: string;
58
- };
59
+ true: "";
59
60
  };
60
61
  type: {
61
62
  file: {
@@ -68,7 +69,8 @@ declare const _default: {
68
69
  highlight: false;
69
70
  underline: true;
70
71
  class: {
71
- root: string;
72
+ root: string[];
73
+ base?: undefined;
72
74
  prefixIcon?: undefined;
73
75
  suffixIcon?: undefined;
74
76
  };
@@ -80,6 +82,7 @@ declare const _default: {
80
82
  size: ("xs" | "sm" | "md")[];
81
83
  class: {
82
84
  root: string;
85
+ base: string;
83
86
  prefixIcon?: undefined;
84
87
  suffixIcon?: undefined;
85
88
  };
@@ -93,6 +96,7 @@ declare const _default: {
93
96
  size: ("lg" | "xl")[];
94
97
  class: {
95
98
  root: string;
99
+ base: string;
96
100
  prefixIcon?: undefined;
97
101
  suffixIcon?: undefined;
98
102
  };
@@ -103,10 +107,11 @@ declare const _default: {
103
107
  prefix?: undefined;
104
108
  suffix?: undefined;
105
109
  } | {
106
- variant: ("soft" | "ghost" | "none")[];
110
+ variant: ("soft" | "soft-outline" | "ghost" | "none")[];
107
111
  highlight: true;
108
112
  class: {
109
113
  root: string;
114
+ base?: undefined;
110
115
  prefixIcon?: undefined;
111
116
  suffixIcon?: undefined;
112
117
  };
@@ -120,6 +125,7 @@ declare const _default: {
120
125
  highlight: true;
121
126
  class: {
122
127
  root: string;
128
+ base?: undefined;
123
129
  prefixIcon?: undefined;
124
130
  suffixIcon?: undefined;
125
131
  };
@@ -134,6 +140,7 @@ declare const _default: {
134
140
  class: {
135
141
  prefixIcon: string;
136
142
  root?: undefined;
143
+ base?: undefined;
137
144
  suffixIcon?: undefined;
138
145
  };
139
146
  variant?: undefined;
@@ -148,6 +155,7 @@ declare const _default: {
148
155
  class: {
149
156
  suffixIcon: string;
150
157
  root?: undefined;
158
+ base?: undefined;
151
159
  prefixIcon?: undefined;
152
160
  };
153
161
  variant?: undefined;
@@ -1,133 +1,146 @@
1
1
  import { ct } from "@byyuurin/ui-kit";
2
- export default ct({
3
- slots: {
4
- root: "inline-flex items-center gap-x-2 rounded-ui-base transition-colors aria-disabled:opacity-50",
5
- base: [
6
- "w-full color-inherit bg-transparent border-0 placeholder:color-ui-cb/50",
7
- "focus:outline-none",
8
- "disabled:cursor-not-allowed"
9
- ],
10
- prefix: "flex items-center",
11
- prefixIcon: "shrink-0 size-1.25em",
12
- suffix: "flex items-center",
13
- suffixIcon: "shrink-0 size-1.25em"
14
- },
15
- variants: {
16
- size: {
17
- xs: {
18
- root: "text-xs"
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ slots: {
6
+ root: "inline-flex items-center rounded-ui-base transition-colors aria-disabled:opacity-50",
7
+ base: [
8
+ "w-full color-inherit bg-transparent border-0 placeholder:color-ui-cb/50",
9
+ "focus:outline-none",
10
+ "disabled:cursor-not-allowed"
11
+ ],
12
+ prefix: "flex items-center",
13
+ prefixIcon: "shrink-0 size-1.25em",
14
+ suffix: "flex items-center",
15
+ suffixIcon: "shrink-0 size-1.25em"
16
+ },
17
+ variants: {
18
+ size: {
19
+ xs: {
20
+ root: "text-xs"
21
+ },
22
+ sm: {
23
+ root: "text-sm"
24
+ },
25
+ md: {
26
+ root: "text-base"
27
+ },
28
+ lg: {
29
+ root: "text-lg"
30
+ },
31
+ xl: {
32
+ root: "text-xl"
33
+ }
19
34
  },
20
- sm: {
21
- root: "text-sm"
35
+ variant: {
36
+ "outline": {
37
+ root: [
38
+ "color-ui-cb/80 bg-ui-c1 ring ring-inset ring-ui-cb/50",
39
+ "focus-within:ring-2 focus-within:ring-ui-cb/50",
40
+ "aria-disabled:ring-ui-cb/80 hover:aria-disabled:ring-ui-cb/80"
41
+ ]
42
+ },
43
+ "soft": {
44
+ root: [
45
+ "color-ui-cb/80 bg-ui-cb/4",
46
+ "hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
47
+ "aria-disabled:color-ui-cb/80 aria-disabled:bg-ui-cb/5 hover:aria-disabled:color-ui-cb/80 hover:aria-disabled:bg-ui-cb/5"
48
+ ]
49
+ },
50
+ "soft-outline": {
51
+ root: [
52
+ "color-ui-cb/80 bg-ui-cb/4 ring ring-inset ring-ui-cb/10",
53
+ "hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
54
+ "aria-disabled:color-ui-cb/80 aria-disabled:bg-ui-cb/5 hover:aria-disabled:color-ui-cb/80 hover:aria-disabled:bg-ui-cb/5"
55
+ ]
56
+ },
57
+ "ghost": {
58
+ root: [
59
+ "color-ui-cb/80 bg-transparent",
60
+ "hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
61
+ "aria-disabled:color-ui-fill/80 aria-disabled:bg-transparent hover:aria-disabled:color-ui-fill/80 hover:aria-disabled:bg-transparent"
62
+ ]
63
+ },
64
+ "none": {
65
+ root: "color-ui-cb bg-transparent"
66
+ }
22
67
  },
23
- md: {
24
- root: "text-base"
68
+ prefix: {
69
+ true: ""
25
70
  },
26
- lg: {
27
- root: "text-lg"
71
+ suffix: {
72
+ true: ""
28
73
  },
29
- xl: {
30
- root: "text-xl"
31
- }
32
- },
33
- variant: {
34
- outline: {
35
- root: [
36
- "color-ui-cb/80 bg-ui-c1 ring ring-inset ring-ui-cb/50",
37
- "focus-within:ring-2 focus-within:ring-ui-cb/50",
38
- "aria-disabled:ring-ui-cb/80 hover:aria-disabled:ring-ui-cb/80"
39
- ]
74
+ loading: {
75
+ true: ""
40
76
  },
41
- soft: {
42
- root: [
43
- "color-ui-cb/80 bg-ui-cb/4",
44
- "hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
45
- "aria-disabled:color-ui-content/80 aria-disabled:bg-ui-fill/5 hover:aria-disabled:color-ui-content/80 hover:aria-disabled:bg-ui-fill/5"
46
- ]
77
+ underline: {
78
+ true: ""
47
79
  },
48
- ghost: {
49
- root: [
50
- "color-ui-cb/80 bg-transparent",
51
- "hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
52
- "aria-disabled:color-ui-fill/80 aria-disabled:bg-transparent hover:aria-disabled:color-ui-fill/80 hover:aria-disabled:bg-transparent"
53
- ]
80
+ highlight: {
81
+ true: ""
54
82
  },
55
- none: {
56
- root: "color-ui-cb bg-transparent"
57
- }
58
- },
59
- prefix: {
60
- true: ""
61
- },
62
- suffix: {
63
- true: ""
64
- },
65
- loading: {
66
- true: ""
67
- },
68
- underline: {
69
- true: ""
70
- },
71
- highlight: {
72
- true: {
73
- base: ""
74
- }
75
- },
76
- type: {
77
- file: {
78
- base: "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-ui-cb/80"
79
- }
80
- }
81
- },
82
- compoundVariants: [
83
- {
84
- variant: ["soft", "ghost", "none"],
85
- highlight: false,
86
- underline: true,
87
- class: {
88
- root: "relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-ui-cb/40"
89
- }
90
- },
91
- {
92
- size: ["xs", "sm", "md"],
93
- class: {
94
- root: "p-1.5 px-2.5"
83
+ type: {
84
+ file: {
85
+ base: "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-ui-cb/80"
86
+ }
95
87
  }
96
88
  },
97
- {
98
- size: ["lg", "xl"],
99
- class: {
100
- root: "p-2.5 px-3.5"
101
- }
102
- },
103
- {
104
- variant: ["soft", "ghost", "none"],
105
- highlight: true,
106
- class: {
107
- root: "ring ring-inset ring-ui-fill/80"
108
- }
109
- },
110
- {
111
- variant: ["outline"],
112
- highlight: true,
113
- class: {
114
- root: "ring-2 ring-ui-fill/80 focus-within:ring-ui-fill/80"
115
- }
116
- },
117
- {
118
- loading: true,
119
- prefix: true,
120
- class: {
121
- prefixIcon: "animate-spin"
122
- }
123
- },
124
- {
125
- loading: true,
126
- prefix: false,
127
- suffix: true,
128
- class: {
129
- suffixIcon: "animate-spin"
89
+ compoundVariants: [
90
+ {
91
+ variant: ["soft", "ghost", "none"],
92
+ highlight: false,
93
+ underline: true,
94
+ class: {
95
+ root: [
96
+ "relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-ui-cb/40",
97
+ "focus-within:after:h-2px focus-within:after:bg-ui-fill/60"
98
+ ]
99
+ }
100
+ },
101
+ {
102
+ size: ["xs", "sm", "md"],
103
+ class: {
104
+ root: "p-1.5",
105
+ base: "px-1"
106
+ }
107
+ },
108
+ {
109
+ size: ["lg", "xl"],
110
+ class: {
111
+ root: "p-2.5",
112
+ base: "px-1.5"
113
+ }
114
+ },
115
+ {
116
+ variant: ["soft", "soft-outline", "ghost", "none"],
117
+ highlight: true,
118
+ class: {
119
+ root: "ring ring-inset ring-ui-fill/80"
120
+ }
121
+ },
122
+ {
123
+ variant: ["outline"],
124
+ highlight: true,
125
+ class: {
126
+ root: "ring-2 ring-ui-fill/80 focus-within:ring-ui-fill/80"
127
+ }
128
+ },
129
+ {
130
+ loading: true,
131
+ prefix: true,
132
+ class: {
133
+ prefixIcon: "animate-spin"
134
+ }
135
+ },
136
+ {
137
+ loading: true,
138
+ prefix: false,
139
+ suffix: true,
140
+ class: {
141
+ suffixIcon: "animate-spin"
142
+ }
130
143
  }
131
- }
132
- ]
133
- });
144
+ ]
145
+ }
146
+ );
@@ -26,6 +26,6 @@ declare const _default: {
26
26
  disabled: {
27
27
  true: "cursor-not-allowed opacity-50";
28
28
  };
29
- }, undefined, "border-y border-t-transparent focus-visible:outline-ui-cb">;
29
+ }, undefined, "border-y border-t-transparent outline-none focus-visible:outline-ui-cb/80">;
30
30
  };
31
31
  export default _default;
@@ -1,23 +1,26 @@
1
1
  import { ct } from "@byyuurin/ui-kit";
2
- export default ct({
3
- base: "border-y border-t-transparent focus-visible:outline-ui-cb",
4
- variants: {
5
- underline: {
6
- true: "border-current",
7
- false: "border-transparent"
8
- },
9
- active: {
10
- true: [
11
- "color-ui-fill",
12
- "disabled:color-ui-fill aria-disabled:color-ui-fill"
13
- ],
14
- false: [
15
- "color-ui-cb hover:color-ui-cb/80 transition-colors",
16
- "disabled:hover:color-ui-cb aria-disabled:hover:color-ui-cb"
17
- ]
18
- },
19
- disabled: {
20
- true: "cursor-not-allowed opacity-50"
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ base: "border-y border-t-transparent outline-none focus-visible:outline-ui-cb/80",
6
+ variants: {
7
+ underline: {
8
+ true: "border-current",
9
+ false: "border-transparent"
10
+ },
11
+ active: {
12
+ true: [
13
+ "color-ui-fill",
14
+ "disabled:color-ui-fill aria-disabled:color-ui-fill"
15
+ ],
16
+ false: [
17
+ "color-ui-cb hover:color-ui-cb/80 transition-colors",
18
+ "disabled:hover:color-ui-cb aria-disabled:hover:color-ui-cb"
19
+ ]
20
+ },
21
+ disabled: {
22
+ true: "cursor-not-allowed opacity-50"
23
+ }
21
24
  }
22
25
  }
23
- });
26
+ );