@byyuurin/ui 0.0.8 → 0.0.10

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