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