@byyuurin/ui 0.0.9 → 0.0.11

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 (215) hide show
  1. package/README.md +2 -5
  2. package/dist/module.json +3 -3
  3. package/dist/module.mjs +1 -1
  4. package/dist/module.mjs.map +1 -1
  5. package/dist/runtime/app/injections.d.ts +9323 -3
  6. package/dist/runtime/app/injections.js +35 -0
  7. package/dist/runtime/components/Accordion.vue +36 -69
  8. package/dist/runtime/components/Accordion.vue.d.ts +52 -0
  9. package/dist/runtime/components/Alert.vue +37 -75
  10. package/dist/runtime/components/Alert.vue.d.ts +59 -0
  11. package/dist/runtime/components/App.vue +25 -40
  12. package/dist/runtime/components/App.vue.d.ts +24 -0
  13. package/dist/runtime/components/Avatar.vue +31 -51
  14. package/dist/runtime/components/Avatar.vue.d.ts +25 -0
  15. package/dist/runtime/components/AvatarGroup.vue +38 -69
  16. package/dist/runtime/components/AvatarGroup.vue.d.ts +27 -0
  17. package/dist/runtime/components/Badge.vue +25 -51
  18. package/dist/runtime/components/Badge.vue.d.ts +44 -0
  19. package/dist/runtime/components/Breadcrumb.vue +35 -77
  20. package/dist/runtime/components/Breadcrumb.vue.d.ts +52 -0
  21. package/dist/runtime/components/Button.vue +62 -51
  22. package/dist/runtime/components/Button.vue.d.ts +29 -0
  23. package/dist/runtime/components/ButtonGroup.vue +17 -37
  24. package/dist/runtime/components/ButtonGroup.vue.d.ts +26 -0
  25. package/dist/runtime/components/Calendar.vue +75 -101
  26. package/dist/runtime/components/Calendar.vue.d.ts +75 -0
  27. package/dist/runtime/components/Card.vue +25 -42
  28. package/dist/runtime/components/Card.vue.d.ts +30 -0
  29. package/dist/runtime/components/Carousel.vue +118 -223
  30. package/dist/runtime/components/Carousel.vue.d.ts +104 -0
  31. package/dist/runtime/components/Checkbox.vue +49 -71
  32. package/dist/runtime/components/Checkbox.vue.d.ts +56 -0
  33. package/dist/runtime/components/Chip.vue +31 -48
  34. package/dist/runtime/components/Chip.vue.d.ts +30 -0
  35. package/dist/runtime/components/Collapsible.vue +22 -30
  36. package/dist/runtime/components/Collapsible.vue.d.ts +26 -0
  37. package/dist/runtime/components/Drawer.vue +52 -102
  38. package/dist/runtime/components/Drawer.vue.d.ts +80 -0
  39. package/dist/runtime/components/DropdownMenu.vue +65 -0
  40. package/dist/runtime/components/DropdownMenu.vue.d.ts +99 -0
  41. package/dist/runtime/components/DropdownMenuContent.vue +192 -0
  42. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +39 -0
  43. package/dist/runtime/components/Form.vue +197 -0
  44. package/dist/runtime/components/Form.vue.d.ts +78 -0
  45. package/dist/runtime/components/FormItem.vue +90 -0
  46. package/dist/runtime/components/FormItem.vue.d.ts +60 -0
  47. package/dist/runtime/components/Input.vue +93 -115
  48. package/dist/runtime/components/Input.vue.d.ts +64 -0
  49. package/dist/runtime/components/InputNumber.vue +81 -116
  50. package/dist/runtime/components/InputNumber.vue.d.ts +245 -0
  51. package/dist/runtime/components/Kbd.vue +18 -39
  52. package/dist/runtime/components/Kbd.vue.d.ts +28 -0
  53. package/dist/runtime/components/Link.vue +170 -244
  54. package/dist/runtime/components/Link.vue.d.ts +95 -0
  55. package/dist/runtime/components/LinkBase.vue +36 -54
  56. package/dist/runtime/components/LinkBase.vue.d.ts +28 -0
  57. package/dist/runtime/components/Modal.vue +50 -85
  58. package/dist/runtime/components/Modal.vue.d.ts +66 -0
  59. package/dist/runtime/components/OverlayProvider.vue +10 -14
  60. package/dist/runtime/components/OverlayProvider.vue.d.ts +2 -0
  61. package/dist/runtime/components/Pagination.vue +55 -121
  62. package/dist/runtime/components/Pagination.vue.d.ts +93 -0
  63. package/dist/runtime/components/PinInput.vue +57 -57
  64. package/dist/runtime/components/PinInput.vue.d.ts +35 -0
  65. package/dist/runtime/components/Popover.vue +39 -68
  66. package/dist/runtime/components/Popover.vue.d.ts +45 -0
  67. package/dist/runtime/components/Progress.vue +68 -120
  68. package/dist/runtime/components/Progress.vue.d.ts +54 -0
  69. package/dist/runtime/components/RadioGroup.vue +75 -129
  70. package/dist/runtime/components/RadioGroup.vue.d.ts +74 -0
  71. package/dist/runtime/components/ScrollArea.vue +31 -31
  72. package/dist/runtime/components/ScrollArea.vue.d.ts +17 -0
  73. package/dist/runtime/components/Select.vue +119 -199
  74. package/dist/runtime/components/Select.vue.d.ts +119 -0
  75. package/dist/runtime/components/Separator.vue +26 -44
  76. package/dist/runtime/components/Separator.vue.d.ts +27 -0
  77. package/dist/runtime/components/Skeleton.vue +12 -21
  78. package/dist/runtime/components/Skeleton.vue.d.ts +19 -0
  79. package/dist/runtime/components/Slider.vue +54 -71
  80. package/dist/runtime/components/Slider.vue.d.ts +36 -0
  81. package/dist/runtime/components/Switch.vue +54 -68
  82. package/dist/runtime/components/Switch.vue.d.ts +49 -0
  83. package/dist/runtime/components/Table.vue +113 -186
  84. package/dist/runtime/components/Table.vue.d.ts +148 -0
  85. package/dist/runtime/components/Tabs.vue +35 -79
  86. package/dist/runtime/components/Tabs.vue.d.ts +65 -0
  87. package/dist/runtime/components/Textarea.vue +82 -123
  88. package/dist/runtime/components/Textarea.vue.d.ts +60 -0
  89. package/dist/runtime/components/Toast.vue +51 -76
  90. package/dist/runtime/components/Toast.vue.d.ts +131 -0
  91. package/dist/runtime/components/ToastProvider.vue +65 -101
  92. package/dist/runtime/components/ToastProvider.vue.d.ts +38 -0
  93. package/dist/runtime/components/Tooltip.vue +36 -47
  94. package/dist/runtime/components/Tooltip.vue.d.ts +31 -0
  95. package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
  96. package/dist/runtime/composables/useButtonGroup.d.ts +2 -2
  97. package/dist/runtime/composables/useFormItem.d.ts +27 -0
  98. package/dist/runtime/composables/useFormItem.js +64 -0
  99. package/dist/runtime/composables/useKbd.d.ts +1 -1
  100. package/dist/runtime/composables/useLocale.d.ts +3 -3
  101. package/dist/runtime/composables/useTheme.d.ts +1 -1
  102. package/dist/runtime/composables/useTheme.js +2 -1
  103. package/dist/runtime/composables/useToast.d.ts +1 -1
  104. package/dist/runtime/index.d.ts +3 -0
  105. package/dist/runtime/index.js +3 -0
  106. package/dist/runtime/locale/en.d.ts +1 -1
  107. package/dist/runtime/locale/zh-tw.d.ts +1 -1
  108. package/dist/runtime/theme/accordion.d.ts +45 -51
  109. package/dist/runtime/theme/accordion.js +1 -1
  110. package/dist/runtime/theme/alert.d.ts +115 -121
  111. package/dist/runtime/theme/alert.js +1 -1
  112. package/dist/runtime/theme/app.d.ts +1 -0
  113. package/dist/runtime/theme/app.js +2 -1
  114. package/dist/runtime/theme/avatar-group.d.ts +42 -48
  115. package/dist/runtime/theme/avatar-group.js +1 -1
  116. package/dist/runtime/theme/avatar.d.ts +46 -52
  117. package/dist/runtime/theme/avatar.js +1 -1
  118. package/dist/runtime/theme/badge.d.ts +63 -93
  119. package/dist/runtime/theme/badge.js +1 -1
  120. package/dist/runtime/theme/breadcrumb.d.ts +52 -58
  121. package/dist/runtime/theme/breadcrumb.js +1 -1
  122. package/dist/runtime/theme/button-group.d.ts +36 -42
  123. package/dist/runtime/theme/button.d.ts +165 -117
  124. package/dist/runtime/theme/button.js +1 -1
  125. package/dist/runtime/theme/calendar.d.ts +52 -50
  126. package/dist/runtime/theme/calendar.js +20 -3
  127. package/dist/runtime/theme/card.d.ts +52 -58
  128. package/dist/runtime/theme/card.js +1 -1
  129. package/dist/runtime/theme/carousel.d.ts +98 -104
  130. package/dist/runtime/theme/carousel.js +1 -1
  131. package/dist/runtime/theme/checkbox.d.ts +77 -83
  132. package/dist/runtime/theme/checkbox.js +1 -1
  133. package/dist/runtime/theme/chip.d.ts +50 -89
  134. package/dist/runtime/theme/chip.js +1 -1
  135. package/dist/runtime/theme/collapsible.d.ts +29 -35
  136. package/dist/runtime/theme/collapsible.js +1 -1
  137. package/dist/runtime/theme/drawer.d.ts +131 -102
  138. package/dist/runtime/theme/drawer.js +1 -1
  139. package/dist/runtime/theme/dropdown-menu.d.ts +65 -0
  140. package/dist/runtime/theme/dropdown-menu.js +83 -0
  141. package/dist/runtime/theme/form-item.d.ts +70 -0
  142. package/dist/runtime/theme/form-item.js +34 -0
  143. package/dist/runtime/theme/form.d.ts +2 -0
  144. package/dist/runtime/theme/form.js +7 -0
  145. package/dist/runtime/theme/index.d.ts +3 -0
  146. package/dist/runtime/theme/index.js +3 -0
  147. package/dist/runtime/theme/input-number.d.ts +100 -126
  148. package/dist/runtime/theme/input-number.js +1 -1
  149. package/dist/runtime/theme/input.d.ts +153 -131
  150. package/dist/runtime/theme/input.js +3 -3
  151. package/dist/runtime/theme/kbd.d.ts +30 -36
  152. package/dist/runtime/theme/link.d.ts +37 -43
  153. package/dist/runtime/theme/modal.d.ts +35 -69
  154. package/dist/runtime/theme/modal.js +1 -1
  155. package/dist/runtime/theme/pagination.d.ts +71 -77
  156. package/dist/runtime/theme/pagination.js +1 -1
  157. package/dist/runtime/theme/pinInput.d.ts +82 -88
  158. package/dist/runtime/theme/pinInput.js +2 -2
  159. package/dist/runtime/theme/popover.d.ts +29 -35
  160. package/dist/runtime/theme/popover.js +1 -1
  161. package/dist/runtime/theme/progress.d.ts +167 -109
  162. package/dist/runtime/theme/progress.js +1 -1
  163. package/dist/runtime/theme/radio-group.d.ts +99 -105
  164. package/dist/runtime/theme/radio-group.js +1 -1
  165. package/dist/runtime/theme/scroll-area.d.ts +62 -68
  166. package/dist/runtime/theme/scroll-area.js +1 -1
  167. package/dist/runtime/theme/select.d.ts +168 -158
  168. package/dist/runtime/theme/select.js +3 -2
  169. package/dist/runtime/theme/separator.d.ts +64 -85
  170. package/dist/runtime/theme/separator.js +1 -1
  171. package/dist/runtime/theme/skeleton.d.ts +1 -7
  172. package/dist/runtime/theme/slider.d.ts +62 -68
  173. package/dist/runtime/theme/slider.js +1 -1
  174. package/dist/runtime/theme/switch.d.ts +111 -117
  175. package/dist/runtime/theme/switch.js +1 -1
  176. package/dist/runtime/theme/table.d.ts +75 -78
  177. package/dist/runtime/theme/table.js +3 -2
  178. package/dist/runtime/theme/tabs.d.ts +116 -139
  179. package/dist/runtime/theme/tabs.js +1 -1
  180. package/dist/runtime/theme/textarea.d.ts +78 -90
  181. package/dist/runtime/theme/textarea.js +2 -2
  182. package/dist/runtime/theme/toast-provider.d.ts +110 -131
  183. package/dist/runtime/theme/toast-provider.js +1 -1
  184. package/dist/runtime/theme/toast.d.ts +74 -80
  185. package/dist/runtime/theme/toast.js +1 -1
  186. package/dist/runtime/theme/tooltip.d.ts +35 -41
  187. package/dist/runtime/theme/tooltip.js +1 -1
  188. package/dist/runtime/types/components.d.ts +3 -0
  189. package/dist/runtime/types/form.d.ts +45 -0
  190. package/dist/runtime/types/form.js +0 -0
  191. package/dist/runtime/types/index.d.ts +5 -2
  192. package/dist/runtime/types/index.js +1 -0
  193. package/dist/runtime/types/utils.d.ts +37 -16
  194. package/dist/runtime/utils/extend-theme.js +15 -4
  195. package/dist/runtime/utils/form.d.ts +5 -0
  196. package/dist/runtime/utils/form.js +24 -0
  197. package/dist/runtime/utils/index.d.ts +2 -0
  198. package/dist/runtime/utils/index.js +4 -0
  199. package/dist/runtime/utils/link.d.ts +4 -28
  200. package/dist/runtime/utils/link.js +10 -3
  201. package/dist/runtime/utils/styler.d.ts +2 -2
  202. package/dist/runtime/utils/styler.js +2 -2
  203. package/dist/shared/ui.D1BTWZFB.mjs +5 -0
  204. package/dist/shared/ui.D1BTWZFB.mjs.map +1 -0
  205. package/dist/types.d.mts +1 -1
  206. package/dist/unocss.mjs +7 -6
  207. package/dist/unocss.mjs.map +1 -1
  208. package/dist/unplugin.mjs +1 -1
  209. package/dist/unplugin.mjs.map +1 -1
  210. package/dist/vite.mjs +1 -1
  211. package/package.json +78 -74
  212. package/dist/module.cjs +0 -5
  213. package/dist/shared/ui.1a1f119c.mjs +0 -5
  214. package/dist/shared/ui.1a1f119c.mjs.map +0 -1
  215. package/dist/types.d.ts +0 -1
@@ -1,136 +1,184 @@
1
- declare const _default: {
2
- base: undefined;
3
- slots: {
4
- base: string[];
5
- label: string;
6
- leadingIcon: string;
7
- trailingIcon: string;
8
- };
9
- variants: {
10
- variant: {
11
- solid: {
12
- base: string[];
13
- };
14
- outline: {
15
- base: string[];
16
- };
17
- soft: {
18
- base: string[];
19
- };
20
- 'soft-outline': {
21
- base: string[];
22
- };
23
- ghost: {
24
- base: string[];
25
- };
26
- link: {
27
- base: string[];
28
- };
29
- };
30
- size: {
31
- xs: {
32
- base: string;
33
- };
34
- sm: {
35
- base: string;
36
- };
37
- md: {
38
- base: string;
39
- };
40
- lg: {
41
- base: string;
42
- };
43
- xl: {
44
- base: string;
45
- };
1
+ declare const _default: import("@byyuurin/ui-kit").CVScopeMeta<{
2
+ variant: {
3
+ solid: {
4
+ base: string[];
46
5
  };
47
- active: {
48
- true: "";
6
+ outline: {
7
+ base: string[];
49
8
  };
50
- leading: {
51
- true: "";
9
+ soft: {
10
+ base: string[];
52
11
  };
53
- trailing: {
54
- true: "";
12
+ 'soft-outline': {
13
+ base: string[];
55
14
  };
56
- loading: {
57
- true: "";
15
+ ghost: {
16
+ base: string[];
58
17
  };
59
- groupOrientation: {
60
- horizontal: {
61
- base: string;
62
- };
63
- vertical: {
64
- base: string;
65
- };
18
+ link: {
19
+ base: string[];
66
20
  };
67
21
  };
68
- compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
69
- variant: {
70
- solid: {
71
- base: string[];
72
- };
73
- outline: {
74
- base: string[];
75
- };
76
- soft: {
77
- base: string[];
78
- };
79
- 'soft-outline': {
80
- base: string[];
81
- };
82
- ghost: {
83
- base: string[];
84
- };
85
- link: {
86
- base: string[];
87
- };
22
+ size: {
23
+ xs: {
24
+ base: string;
88
25
  };
89
- size: {
90
- xs: {
91
- base: string;
92
- };
93
- sm: {
94
- base: string;
95
- };
96
- md: {
97
- base: string;
98
- };
99
- lg: {
100
- base: string;
101
- };
102
- xl: {
103
- base: string;
104
- };
26
+ sm: {
27
+ base: string;
105
28
  };
106
- active: {
107
- true: "";
29
+ md: {
30
+ base: string;
108
31
  };
109
- leading: {
110
- true: "";
32
+ lg: {
33
+ base: string;
111
34
  };
112
- trailing: {
113
- true: "";
35
+ xl: {
36
+ base: string;
114
37
  };
115
- loading: {
116
- true: "";
38
+ };
39
+ active: {
40
+ true: "";
41
+ };
42
+ leading: {
43
+ true: "";
44
+ };
45
+ trailing: {
46
+ true: "";
47
+ };
48
+ loading: {
49
+ true: "";
50
+ };
51
+ groupOrientation: {
52
+ horizontal: {
53
+ base: string;
117
54
  };
118
- groupOrientation: {
119
- horizontal: {
120
- base: string;
121
- };
122
- vertical: {
123
- base: string;
124
- };
55
+ vertical: {
56
+ base: string;
125
57
  };
126
- }, {
127
- base: string[];
58
+ };
59
+ }, ({
60
+ size: ("xs" | "sm" | "md")[];
61
+ class: {
62
+ base: string;
63
+ label: string;
64
+ leadingIcon?: undefined;
65
+ trailingIcon?: undefined;
66
+ };
67
+ active?: undefined;
68
+ variant?: undefined;
69
+ loading?: undefined;
70
+ leading?: undefined;
71
+ trailing?: undefined;
72
+ } | {
73
+ size: ("lg" | "xl")[];
74
+ class: {
75
+ base: string;
128
76
  label: string;
77
+ leadingIcon?: undefined;
78
+ trailingIcon?: undefined;
79
+ };
80
+ active?: undefined;
81
+ variant?: undefined;
82
+ loading?: undefined;
83
+ leading?: undefined;
84
+ trailing?: undefined;
85
+ } | {
86
+ active: true;
87
+ variant: "solid";
88
+ class: {
89
+ base: string;
90
+ label?: undefined;
91
+ leadingIcon?: undefined;
92
+ trailingIcon?: undefined;
93
+ };
94
+ size?: undefined;
95
+ loading?: undefined;
96
+ leading?: undefined;
97
+ trailing?: undefined;
98
+ } | {
99
+ active: true;
100
+ variant: "outline";
101
+ class: {
102
+ base: string;
103
+ label?: undefined;
104
+ leadingIcon?: undefined;
105
+ trailingIcon?: undefined;
106
+ };
107
+ size?: undefined;
108
+ loading?: undefined;
109
+ leading?: undefined;
110
+ trailing?: undefined;
111
+ } | {
112
+ active: true;
113
+ variant: ("soft" | "soft-outline")[];
114
+ class: {
115
+ base: string;
116
+ label?: undefined;
117
+ leadingIcon?: undefined;
118
+ trailingIcon?: undefined;
119
+ };
120
+ size?: undefined;
121
+ loading?: undefined;
122
+ leading?: undefined;
123
+ trailing?: undefined;
124
+ } | {
125
+ active: true;
126
+ variant: "ghost";
127
+ class: {
128
+ base: string;
129
+ label?: undefined;
130
+ leadingIcon?: undefined;
131
+ trailingIcon?: undefined;
132
+ };
133
+ size?: undefined;
134
+ loading?: undefined;
135
+ leading?: undefined;
136
+ trailing?: undefined;
137
+ } | {
138
+ active: true;
139
+ variant: "link";
140
+ class: {
141
+ base: string;
142
+ label?: undefined;
143
+ leadingIcon?: undefined;
144
+ trailingIcon?: undefined;
145
+ };
146
+ size?: undefined;
147
+ loading?: undefined;
148
+ leading?: undefined;
149
+ trailing?: undefined;
150
+ } | {
151
+ loading: true;
152
+ leading: true;
153
+ class: {
129
154
  leadingIcon: string;
155
+ base?: undefined;
156
+ label?: undefined;
157
+ trailingIcon?: undefined;
158
+ };
159
+ size?: undefined;
160
+ active?: undefined;
161
+ variant?: undefined;
162
+ trailing?: undefined;
163
+ } | {
164
+ loading: true;
165
+ leading: false;
166
+ trailing: true;
167
+ class: {
130
168
  trailingIcon: string;
131
- }, undefined>;
132
- defaultVariants: {
133
- size: "md";
169
+ base?: undefined;
170
+ label?: undefined;
171
+ leadingIcon?: undefined;
134
172
  };
135
- };
173
+ size?: undefined;
174
+ active?: undefined;
175
+ variant?: undefined;
176
+ })[], {
177
+ size: "md";
178
+ }, undefined, {
179
+ base: string[];
180
+ label: string;
181
+ leadingIcon: string;
182
+ trailingIcon: string;
183
+ }>;
136
184
  export default _default;
@@ -3,7 +3,7 @@ import { buttonGroupVariant } from "./button-group.js";
3
3
  export default ct(
4
4
  /* @unocss-include */
5
5
  {
6
- slots: {
6
+ parts: {
7
7
  base: [
8
8
  "relative inline-flex items-center rounded-ui-button leading-normal transition-colors",
9
9
  "outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-base/80",
@@ -1,56 +1,58 @@
1
- declare const _default: {
2
- base: undefined;
3
- slots: {
4
- root: string;
5
- header: string;
6
- body: string;
7
- heading: string;
8
- grid: string;
9
- gridRow: string;
10
- gridWeekDaysRow: string;
11
- gridBody: string;
12
- headCell: string;
13
- cell: string;
14
- cellTrigger: string[];
15
- };
16
- variants: {
17
- size: {
18
- xs: {
19
- root: string;
20
- };
21
- sm: {
22
- root: string;
23
- };
24
- md: {
25
- root: string;
26
- };
27
- lg: {
28
- root: string;
29
- };
30
- xl: {
31
- root: string;
32
- };
33
- };
34
- readonly: {
35
- true: {
36
- cellTrigger: string;
37
- };
38
- };
39
- disabled: {
40
- true: {
41
- cellTrigger: string;
42
- };
1
+ declare const _default: import("@byyuurin/ui-kit").CVScopeMeta<{
2
+ size: {
3
+ xs: {
4
+ root: string;
5
+ };
6
+ sm: {
7
+ root: string;
8
+ };
9
+ md: {
10
+ root: string;
11
+ };
12
+ lg: {
13
+ root: string;
14
+ };
15
+ xl: {
16
+ root: string;
43
17
  };
44
18
  };
45
- compoundVariants: {
46
- readonly: boolean;
47
- disabled: boolean;
48
- class: {
19
+ multipleMonths: {
20
+ true: {
21
+ cellTrigger: string[];
22
+ };
23
+ false: {
49
24
  cellTrigger: string;
50
25
  };
51
- }[];
52
- defaultVariants: {
53
- size: "md";
54
26
  };
55
- };
27
+ readonly: {
28
+ true: {
29
+ cellTrigger: string[];
30
+ };
31
+ };
32
+ disabled: {
33
+ true: {
34
+ cellTrigger: string[];
35
+ };
36
+ };
37
+ }, {
38
+ readonly: false;
39
+ disabled: false;
40
+ class: {
41
+ cellTrigger: string;
42
+ };
43
+ }[], {
44
+ size: "md";
45
+ }, undefined, {
46
+ root: string;
47
+ header: string;
48
+ body: string;
49
+ heading: string;
50
+ grid: string;
51
+ gridRow: string;
52
+ gridWeekDaysRow: string;
53
+ gridBody: string;
54
+ headCell: string;
55
+ cell: string;
56
+ cellTrigger: string[];
57
+ }>;
56
58
  export default _default;
@@ -2,7 +2,7 @@ import { ct } from "@byyuurin/ui-kit";
2
2
  export default ct(
3
3
  /* @unocss-include */
4
4
  {
5
- slots: {
5
+ parts: {
6
6
  root: "",
7
7
  header: "flex items-center justify-between",
8
8
  body: "flex flex-col space-y-4 pt-4 sm:flex-row sm:space-x-4 sm:space-y-0",
@@ -42,14 +42,31 @@ export default ct(
42
42
  root: "text-xl"
43
43
  }
44
44
  },
45
+ multipleMonths: {
46
+ true: {
47
+ cellTrigger: [
48
+ "data-[outside-view]:data-[selected]:not-hover:bg-inherit data-[outside-view]:data-[selected]:not-hover:color-ui-base/20",
49
+ "data-[outside-view]:data-[selected]:hover:bg-soft-ui-fill/10 data-[outside-view]:data-[selected]:hover:color-ui-base/20"
50
+ ]
51
+ },
52
+ false: {
53
+ cellTrigger: "data-[outside-view]:data-[selected]:color-ui-cx"
54
+ }
55
+ },
45
56
  readonly: {
46
57
  true: {
47
- cellTrigger: "cursor-default data-[today]:not-[[data-selected]]:color-ui-fill/60"
58
+ cellTrigger: [
59
+ "cursor-default data-[today]:not-[[data-selected]]:color-ui-fill/60",
60
+ "data-[outside-view]:data-[selected]:hover:bg-inherit"
61
+ ]
48
62
  }
49
63
  },
50
64
  disabled: {
51
65
  true: {
52
- cellTrigger: "data-[today]:not-[[data-selected]]:color-ui-fill/60 data-[selected]:bg-soft-ui-fill/50"
66
+ cellTrigger: [
67
+ "data-[today]:not-[[data-selected]]:color-ui-fill/60 data-[selected]:bg-soft-ui-fill/50",
68
+ "data-[outside-view]:data-[selected]:hover:bg-inherit"
69
+ ]
53
70
  }
54
71
  }
55
72
  },
@@ -1,62 +1,56 @@
1
- declare const _default: {
2
- base: undefined;
3
- slots: {
4
- root: string;
5
- header: string;
6
- body: string;
7
- footer: string;
8
- title: string;
9
- description: string;
10
- };
11
- variants: {
12
- variant: {
13
- solid: {
14
- root: string;
15
- description: string;
16
- };
17
- outline: {
18
- root: string;
19
- description: string;
20
- };
21
- soft: {
22
- root: string;
23
- description: string;
24
- };
25
- 'soft-outline': {
26
- root: string;
27
- description: string;
28
- };
1
+ declare const _default: import("@byyuurin/ui-kit").CVScopeMeta<{
2
+ variant: {
3
+ solid: {
4
+ root: string;
5
+ description: string;
6
+ };
7
+ outline: {
8
+ root: string;
9
+ description: string;
10
+ };
11
+ soft: {
12
+ root: string;
13
+ description: string;
14
+ };
15
+ 'soft-outline': {
16
+ root: string;
17
+ description: string;
29
18
  };
30
19
  };
31
- compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
32
- variant: {
33
- solid: {
34
- root: string;
35
- description: string;
36
- };
37
- outline: {
38
- root: string;
39
- description: string;
40
- };
41
- soft: {
42
- root: string;
43
- description: string;
44
- };
45
- 'soft-outline': {
46
- root: string;
47
- description: string;
48
- };
49
- };
50
- }, {
51
- root: string;
52
- header: string;
53
- body: string;
54
- footer: string;
55
- title: string;
56
- description: string;
57
- }, undefined>;
58
- defaultVariants: {
59
- variant: "outline";
20
+ }, import("@byyuurin/ui-kit").CVCompoundVariants<{
21
+ variant: {
22
+ solid: {
23
+ root: string;
24
+ description: string;
25
+ };
26
+ outline: {
27
+ root: string;
28
+ description: string;
29
+ };
30
+ soft: {
31
+ root: string;
32
+ description: string;
33
+ };
34
+ 'soft-outline': {
35
+ root: string;
36
+ description: string;
37
+ };
60
38
  };
61
- };
39
+ }, {
40
+ root: string;
41
+ header: string;
42
+ body: string;
43
+ footer: string;
44
+ title: string;
45
+ description: string;
46
+ }, undefined>, {
47
+ variant: "outline";
48
+ }, undefined, {
49
+ root: string;
50
+ header: string;
51
+ body: string;
52
+ footer: string;
53
+ title: string;
54
+ description: string;
55
+ }>;
62
56
  export default _default;
@@ -2,7 +2,7 @@ import { ct } from "@byyuurin/ui-kit";
2
2
  export default ct(
3
3
  /* @unocss-include */
4
4
  {
5
- slots: {
5
+ parts: {
6
6
  root: "rounded-ui-box divide-y",
7
7
  header: "flex flex-wrap items-center gap-1 px-4 py-5 sm:px-6",
8
8
  body: "flex-1 overflow-y-auto p-4 sm:p-6 empty:hidden",