@deepnoid/ui 0.0.87 → 0.0.89

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 (169) hide show
  1. package/dist/{chunk-4DLTBZUQ.mjs → chunk-3DRIHQOM.mjs} +7 -5
  2. package/dist/{chunk-4SWFYTMR.mjs → chunk-6YE26GOI.mjs} +10 -8
  3. package/dist/{chunk-QX6VJLEM.mjs → chunk-7HHFRKJU.mjs} +2 -2
  4. package/dist/{chunk-H2HUJ4N2.mjs → chunk-A3RWT3JJ.mjs} +9 -4
  5. package/dist/{chunk-BE2OG6M4.mjs → chunk-ANYPMQH4.mjs} +28 -21
  6. package/dist/{chunk-5HSZ5AYM.mjs → chunk-B4KZBOGT.mjs} +16 -16
  7. package/dist/{chunk-QIZOXBOY.mjs → chunk-DWROPKZW.mjs} +4 -4
  8. package/dist/{chunk-PHQY5T3E.mjs → chunk-HFVZFUC3.mjs} +7 -14
  9. package/dist/{chunk-IOV7MEPG.mjs → chunk-IOCRFIQF.mjs} +30 -0
  10. package/dist/{chunk-4VIEZ5FT.mjs → chunk-JN7EGKJL.mjs} +8 -7
  11. package/dist/{chunk-SFNR4F3J.mjs → chunk-L6BQA6GI.mjs} +2 -2
  12. package/dist/{chunk-PRUAIZTU.mjs → chunk-LCI6RPWE.mjs} +1 -1
  13. package/dist/{chunk-IZOMH2SL.mjs → chunk-MOINJECK.mjs} +16 -15
  14. package/dist/{chunk-QVGXHUYW.mjs → chunk-N2JULHST.mjs} +9 -9
  15. package/dist/chunk-OJ2OEI5B.mjs +202 -0
  16. package/dist/{chunk-2COCX2VX.mjs → chunk-PXUBPWKU.mjs} +2 -2
  17. package/dist/{chunk-PCIONGEJ.mjs → chunk-QWFOYO3D.mjs} +37 -19
  18. package/dist/{chunk-LY6LJRUX.mjs → chunk-RZZWHI6O.mjs} +1 -1
  19. package/dist/chunk-UR64ZUAU.mjs +671 -0
  20. package/dist/{chunk-PUFNT5LS.mjs → chunk-VG4644BG.mjs} +1 -1
  21. package/dist/components/accordion/accordion.d.mts +1 -1
  22. package/dist/components/accordion/accordion.d.ts +1 -1
  23. package/dist/components/accordion/accordion.test.mjs +3 -3
  24. package/dist/components/accordion/accordionItem.d.mts +1 -1
  25. package/dist/components/accordion/accordionItem.d.ts +1 -1
  26. package/dist/components/accordion/accordionItem.js +31 -1
  27. package/dist/components/accordion/accordionItem.mjs +3 -3
  28. package/dist/components/accordion/index.js +31 -1
  29. package/dist/components/accordion/index.mjs +3 -3
  30. package/dist/components/button/button-group.test.js +4103 -167
  31. package/dist/components/button/button-group.test.mjs +7 -3
  32. package/dist/components/button/button.d.mts +360 -12
  33. package/dist/components/button/button.d.ts +360 -12
  34. package/dist/components/button/button.js +4054 -110
  35. package/dist/components/button/button.mjs +5 -1
  36. package/dist/components/button/button.test.js +4059 -125
  37. package/dist/components/button/button.test.mjs +7 -3
  38. package/dist/components/button/index.d.mts +3 -0
  39. package/dist/components/button/index.d.ts +3 -0
  40. package/dist/components/button/index.js +4046 -112
  41. package/dist/components/button/index.mjs +5 -1
  42. package/dist/components/card/card.d.mts +1 -1
  43. package/dist/components/card/card.d.ts +1 -1
  44. package/dist/components/checkbox/checkbox.d.mts +69 -69
  45. package/dist/components/checkbox/checkbox.d.ts +69 -69
  46. package/dist/components/checkbox/checkbox.js +28 -21
  47. package/dist/components/checkbox/checkbox.mjs +1 -1
  48. package/dist/components/checkbox/checkbox.test.js +28 -21
  49. package/dist/components/checkbox/checkbox.test.mjs +3 -3
  50. package/dist/components/checkbox/index.js +28 -21
  51. package/dist/components/checkbox/index.mjs +1 -1
  52. package/dist/components/icon/Icon.d.mts +4 -0
  53. package/dist/components/icon/Icon.d.ts +4 -0
  54. package/dist/components/icon/Icon.js +30 -0
  55. package/dist/components/icon/Icon.mjs +2 -2
  56. package/dist/components/icon/index.js +30 -0
  57. package/dist/components/icon/index.mjs +2 -2
  58. package/dist/components/icon/template.d.mts +1 -0
  59. package/dist/components/icon/template.d.ts +1 -0
  60. package/dist/components/icon/template.js +30 -0
  61. package/dist/components/icon/template.mjs +1 -1
  62. package/dist/components/input/index.js +36 -4
  63. package/dist/components/input/index.mjs +3 -3
  64. package/dist/components/input/input.d.mts +7 -2
  65. package/dist/components/input/input.d.ts +7 -2
  66. package/dist/components/input/input.js +36 -4
  67. package/dist/components/input/input.mjs +3 -3
  68. package/dist/components/input/input.test.js +36 -4
  69. package/dist/components/input/input.test.mjs +4 -4
  70. package/dist/components/list/list.d.mts +1 -1
  71. package/dist/components/list/list.d.ts +1 -1
  72. package/dist/components/list/listItem.d.mts +1 -1
  73. package/dist/components/list/listItem.d.ts +1 -1
  74. package/dist/components/modal/index.js +505 -127
  75. package/dist/components/modal/index.mjs +5 -4
  76. package/dist/components/modal/modal.js +505 -127
  77. package/dist/components/modal/modal.mjs +5 -4
  78. package/dist/components/modal/modal.test.js +497 -129
  79. package/dist/components/modal/modal.test.mjs +5 -4
  80. package/dist/components/pagination/index.js +16 -16
  81. package/dist/components/pagination/index.mjs +1 -1
  82. package/dist/components/pagination/pagination.js +16 -16
  83. package/dist/components/pagination/pagination.mjs +1 -1
  84. package/dist/components/pagination/pagination.test.js +16 -16
  85. package/dist/components/pagination/pagination.test.mjs +1 -1
  86. package/dist/components/progress/index.js +9 -9
  87. package/dist/components/progress/index.mjs +1 -1
  88. package/dist/components/progress/progress.d.mts +33 -33
  89. package/dist/components/progress/progress.d.ts +33 -33
  90. package/dist/components/progress/progress.js +9 -9
  91. package/dist/components/progress/progress.mjs +1 -1
  92. package/dist/components/progress/progress.test.js +9 -9
  93. package/dist/components/progress/progress.test.mjs +1 -1
  94. package/dist/components/radio/index.js +37 -19
  95. package/dist/components/radio/index.mjs +1 -1
  96. package/dist/components/radio/radio.d.mts +33 -33
  97. package/dist/components/radio/radio.d.ts +33 -33
  98. package/dist/components/radio/radio.js +37 -19
  99. package/dist/components/radio/radio.mjs +1 -1
  100. package/dist/components/radio/radio.test.js +37 -19
  101. package/dist/components/radio/radio.test.mjs +1 -1
  102. package/dist/components/select/index.js +36 -5
  103. package/dist/components/select/index.mjs +4 -4
  104. package/dist/components/select/option.js +30 -0
  105. package/dist/components/select/option.mjs +3 -3
  106. package/dist/components/select/select.d.mts +2 -2
  107. package/dist/components/select/select.d.ts +2 -2
  108. package/dist/components/select/select.js +36 -5
  109. package/dist/components/select/select.mjs +4 -4
  110. package/dist/components/select/select.test.js +36 -5
  111. package/dist/components/select/select.test.mjs +7 -7
  112. package/dist/components/slider/index.js +9 -4
  113. package/dist/components/slider/index.mjs +1 -1
  114. package/dist/components/slider/slider.d.mts +26 -0
  115. package/dist/components/slider/slider.d.ts +26 -0
  116. package/dist/components/slider/slider.js +9 -4
  117. package/dist/components/slider/slider.mjs +1 -1
  118. package/dist/components/slider/slider.test.js +9 -4
  119. package/dist/components/slider/slider.test.mjs +1 -1
  120. package/dist/components/switch/index.js +16 -15
  121. package/dist/components/switch/index.mjs +1 -1
  122. package/dist/components/switch/switch.d.mts +48 -48
  123. package/dist/components/switch/switch.d.ts +48 -48
  124. package/dist/components/switch/switch.js +16 -15
  125. package/dist/components/switch/switch.mjs +1 -1
  126. package/dist/components/switch/switch.test.js +16 -15
  127. package/dist/components/switch/switch.test.mjs +1 -1
  128. package/dist/components/table/index.js +66 -27
  129. package/dist/components/table/index.mjs +6 -6
  130. package/dist/components/table/table-body.js +60 -23
  131. package/dist/components/table/table-body.mjs +4 -4
  132. package/dist/components/table/table-head.js +28 -21
  133. package/dist/components/table/table-head.mjs +2 -2
  134. package/dist/components/table/table.d.mts +21 -7
  135. package/dist/components/table/table.d.ts +21 -7
  136. package/dist/components/table/table.js +66 -27
  137. package/dist/components/table/table.mjs +6 -6
  138. package/dist/components/table/table.test.js +66 -27
  139. package/dist/components/table/table.test.mjs +6 -6
  140. package/dist/components/tabs/tabs.d.mts +1 -1
  141. package/dist/components/tabs/tabs.d.ts +1 -1
  142. package/dist/components/tabs/tabs.test.mjs +3 -3
  143. package/dist/components/textarea/index.d.mts +3 -0
  144. package/dist/components/textarea/index.d.ts +3 -0
  145. package/dist/components/textarea/index.js +89 -30
  146. package/dist/components/textarea/index.mjs +2 -1
  147. package/dist/components/textarea/textarea.d.mts +510 -9
  148. package/dist/components/textarea/textarea.d.ts +510 -9
  149. package/dist/components/textarea/textarea.js +89 -30
  150. package/dist/components/textarea/textarea.mjs +2 -1
  151. package/dist/components/textarea/textarea.test.js +89 -30
  152. package/dist/components/textarea/textarea.test.mjs +3 -2
  153. package/dist/components/toast/index.js +32 -2
  154. package/dist/components/toast/index.mjs +4 -4
  155. package/dist/components/toast/toast.js +31 -1
  156. package/dist/components/toast/toast.mjs +3 -3
  157. package/dist/components/toast/toast.test.js +31 -1
  158. package/dist/components/toast/toast.test.mjs +3 -3
  159. package/dist/components/toast/use-toast.js +32 -2
  160. package/dist/components/toast/use-toast.mjs +4 -4
  161. package/dist/components/tooltip/tooltip.test.js +4034 -118
  162. package/dist/components/tooltip/tooltip.test.mjs +6 -3
  163. package/dist/index.d.mts +1 -1
  164. package/dist/index.d.ts +1 -1
  165. package/dist/index.js +2773 -2334
  166. package/dist/index.mjs +33 -33
  167. package/package.json +1 -1
  168. package/dist/chunk-66WCZEEU.mjs +0 -320
  169. package/dist/chunk-WOX3SLJB.mjs +0 -162
@@ -12968,12 +12968,12 @@ Progress.displayName = "Progress";
12968
12968
  var progress_default = Progress;
12969
12969
  var progress = tv({
12970
12970
  slots: {
12971
- base: "flex flex-col gap-2 w-[200px]",
12972
- labelWrapper: "flex justify-between",
12973
- label: "font-[500]",
12974
- output: "font-[500]",
12975
- track: "relative bg-neutral-soft rounded-full overflow-hidden",
12976
- indicator: "absolute h-full rounded-full"
12971
+ base: ["flex", "flex-col", "gap-2", "w-[200px]"],
12972
+ labelWrapper: ["flex", "justify-between"],
12973
+ label: ["font-[500]"],
12974
+ output: ["font-[500]"],
12975
+ track: ["relative", "bg-neutral-soft", "rounded-full", "overflow-hidden"],
12976
+ indicator: ["absolute", "h-full", "rounded-full"]
12977
12977
  },
12978
12978
  variants: {
12979
12979
  color: {
@@ -13003,7 +13003,7 @@ var progress = tv({
13003
13003
  },
13004
13004
  gradient: {
13005
13005
  true: {
13006
- indicator: "bg-gradient-to-r from-primary-main to-secondary-main"
13006
+ indicator: ["bg-gradient-to-r", "from-primary-main", "to-secondary-main"]
13007
13007
  }
13008
13008
  },
13009
13009
  fullWidth: {
@@ -13013,8 +13013,8 @@ var progress = tv({
13013
13013
  },
13014
13014
  isDisabled: {
13015
13015
  true: {
13016
- base: "opacity-disabled cursor-not-allowed",
13017
- indicator: "bg-neutral-light"
13016
+ base: ["opacity-disabled", "cursor-not-allowed"],
13017
+ indicator: ["bg-neutral-light", "from-none", "to-none"]
13018
13018
  }
13019
13019
  }
13020
13020
  },
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  progress_default
4
- } from "../../chunk-QVGXHUYW.mjs";
4
+ } from "../../chunk-N2JULHST.mjs";
5
5
  import {
6
6
  render
7
7
  } from "../../chunk-FNPWLOGV.mjs";
@@ -112,7 +112,16 @@ Radio.displayName = "Radio";
112
112
  var radio_default = Radio;
113
113
  var radio = tv({
114
114
  slots: {
115
- base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent",
115
+ base: [
116
+ "group/radio",
117
+ "relative",
118
+ "max-w-fit",
119
+ "inline-flex",
120
+ "items-center",
121
+ "justify-start",
122
+ "cursor-pointer",
123
+ "tap-highlight-transparent"
124
+ ],
116
125
  icon: [
117
126
  "relative",
118
127
  "inline-flex",
@@ -141,18 +150,18 @@ var radio = tv({
141
150
  "after:left-1/2",
142
151
  "after:-translate-x-1/2",
143
152
  "after:-translate-y-1/2",
144
- "group-has-[:checked]:after:opacity-100",
145
- "group-has-[:checked]:after:scale-100",
153
+ "group-has-[:checked]/radio:after:opacity-100",
154
+ "group-has-[:checked]/radio:after:scale-100",
146
155
  // hover
147
- "group-hover:before:bg-neutral-soft",
156
+ "group-hover/radio:before:bg-neutral-soft",
148
157
  "before:transition duration-200",
149
158
  // focus ring
150
159
  "outline-none",
151
- "group-focus:z-10",
152
- "group-focus:ring-2",
153
- "group-focus:ring-focus",
154
- "group-focus:ring-offset-2",
155
- "group-focus:ring-offset-background"
160
+ "group-focus/radio:z-10",
161
+ "group-focus/radio:ring-2",
162
+ "group-focus/radio:ring-focus",
163
+ "group-focus/radio:ring-offset-2",
164
+ "group-focus/radio:ring-offset-background"
156
165
  ],
157
166
  labelWrapper: "flex flex-col",
158
167
  label: "text-foreground select-none"
@@ -160,44 +169,53 @@ var radio = tv({
160
169
  variants: {
161
170
  color: {
162
171
  primary: {
163
- icon: "group-has-[:checked]:before:border-primary-main after:bg-primary-main"
172
+ icon: ["group-has-[:checked]/radio:before:border-primary-main", "after:bg-primary-main"]
164
173
  },
165
174
  secondary: {
166
- icon: "group-has-[:checked]:before:border-secondary-main after:bg-secondary-main"
175
+ icon: ["group-has-[:checked]/radio:before:border-secondary-main", "after:bg-secondary-main"]
167
176
  }
168
177
  },
169
178
  size: {
170
179
  sm: {
171
- icon: ["w-[15px] h-[15px] mr-[8px] after:w-[10px] after:h-[10px]"],
180
+ icon: ["w-[15px]", "h-[15px]", "mr-[6px]", "after:w-[9px]", "after:h-[9px]"],
172
181
  label: "text-sm"
173
182
  },
174
183
  md: {
175
- icon: ["w-[17px] h-[17px] mr-[9px] after:w-[11px] after:h-[11px]"],
184
+ icon: ["w-[17px]", "h-[17px]", "mr-[8px]", "after:w-[11px]", "after:h-[11px]"],
176
185
  label: "text-md"
177
186
  },
178
187
  lg: {
179
- icon: ["w-[20px] h-[20px] mr-[10px] after:w-[12px] after:h-[12px]"],
188
+ icon: ["w-[20px]", "h-[20px]", "mr-[10px]", "after:w-[14px]", "after:h-[14px]"],
180
189
  label: "text-lg"
181
190
  }
182
191
  },
183
192
  isInvalid: {
184
193
  true: {
185
- icon: "after:bg-danger-main before:border-danger-main",
194
+ icon: [
195
+ "after:bg-danger-main",
196
+ "before:border-danger-main",
197
+ "group-has-[:checked]/radio:before:border-danger-main"
198
+ ],
186
199
  label: "text-danger-main"
187
200
  }
188
201
  },
189
202
  isDisabled: {
190
203
  true: {
191
- base: "opacity-disabled pointer-events-none",
192
- icon: "before:border-neutral-light before:bg-neutral-soft after:bg-neutral-light",
204
+ base: ["opacity-disabled", "pointer-events-none"],
205
+ icon: [
206
+ "before:border-neutral-light",
207
+ "before:bg-neutral-soft",
208
+ "after:bg-neutral-light",
209
+ "group-has-[:checked]/radio:before:border-neutral-light"
210
+ ],
193
211
  label: "text-neutral-light"
194
212
  }
195
213
  },
196
214
  disableAnimation: {
197
215
  true: {},
198
216
  false: {
199
- icon: ["group-active:scale-95", "transition-transform-colors", "motion-reduce:transition-none"],
200
- label: "transition-colors motion-reduce:transition-none"
217
+ icon: ["group-active/radio:scale-95", "transition-transform-colors", "motion-reduce:transition-none"],
218
+ label: ["transition-colors", "motion-reduce:transition-none"]
201
219
  }
202
220
  }
203
221
  },
@@ -2,7 +2,7 @@
2
2
  import "../../chunk-TPFN22HR.mjs";
3
3
  import {
4
4
  radio_default
5
- } from "../../chunk-PCIONGEJ.mjs";
5
+ } from "../../chunk-QWFOYO3D.mjs";
6
6
  import "../../chunk-E3G5QXSH.mjs";
7
7
  import "../../chunk-J725QONZ.mjs";
8
8
  import "../../chunk-IZ6II3QA.mjs";
@@ -15,10 +15,10 @@ declare const Radio: react.ForwardRefExoticComponent<Props & RadioVariantProps &
15
15
  declare const radio: tailwind_variants.TVReturnType<{
16
16
  color: {
17
17
  primary: {
18
- icon: string;
18
+ icon: string[];
19
19
  };
20
20
  secondary: {
21
- icon: string;
21
+ icon: string[];
22
22
  };
23
23
  };
24
24
  size: {
@@ -37,14 +37,14 @@ declare const radio: tailwind_variants.TVReturnType<{
37
37
  };
38
38
  isInvalid: {
39
39
  true: {
40
- icon: string;
40
+ icon: string[];
41
41
  label: string;
42
42
  };
43
43
  };
44
44
  isDisabled: {
45
45
  true: {
46
- base: string;
47
- icon: string;
46
+ base: string[];
47
+ icon: string[];
48
48
  label: string;
49
49
  };
50
50
  };
@@ -52,11 +52,11 @@ declare const radio: tailwind_variants.TVReturnType<{
52
52
  true: {};
53
53
  false: {
54
54
  icon: string[];
55
- label: string;
55
+ label: string[];
56
56
  };
57
57
  };
58
58
  }, {
59
- base: string;
59
+ base: string[];
60
60
  icon: string[];
61
61
  labelWrapper: string;
62
62
  label: string;
@@ -91,10 +91,10 @@ declare const radio: tailwind_variants.TVReturnType<{
91
91
  }, {
92
92
  color: {
93
93
  primary: {
94
- icon: string;
94
+ icon: string[];
95
95
  };
96
96
  secondary: {
97
- icon: string;
97
+ icon: string[];
98
98
  };
99
99
  };
100
100
  size: {
@@ -113,14 +113,14 @@ declare const radio: tailwind_variants.TVReturnType<{
113
113
  };
114
114
  isInvalid: {
115
115
  true: {
116
- icon: string;
116
+ icon: string[];
117
117
  label: string;
118
118
  };
119
119
  };
120
120
  isDisabled: {
121
121
  true: {
122
- base: string;
123
- icon: string;
122
+ base: string[];
123
+ icon: string[];
124
124
  label: string;
125
125
  };
126
126
  };
@@ -128,21 +128,21 @@ declare const radio: tailwind_variants.TVReturnType<{
128
128
  true: {};
129
129
  false: {
130
130
  icon: string[];
131
- label: string;
131
+ label: string[];
132
132
  };
133
133
  };
134
134
  }, {
135
- base: string;
135
+ base: string[];
136
136
  icon: string[];
137
137
  labelWrapper: string;
138
138
  label: string;
139
139
  }, tailwind_variants.TVReturnType<{
140
140
  color: {
141
141
  primary: {
142
- icon: string;
142
+ icon: string[];
143
143
  };
144
144
  secondary: {
145
- icon: string;
145
+ icon: string[];
146
146
  };
147
147
  };
148
148
  size: {
@@ -161,14 +161,14 @@ declare const radio: tailwind_variants.TVReturnType<{
161
161
  };
162
162
  isInvalid: {
163
163
  true: {
164
- icon: string;
164
+ icon: string[];
165
165
  label: string;
166
166
  };
167
167
  };
168
168
  isDisabled: {
169
169
  true: {
170
- base: string;
171
- icon: string;
170
+ base: string[];
171
+ icon: string[];
172
172
  label: string;
173
173
  };
174
174
  };
@@ -176,21 +176,21 @@ declare const radio: tailwind_variants.TVReturnType<{
176
176
  true: {};
177
177
  false: {
178
178
  icon: string[];
179
- label: string;
179
+ label: string[];
180
180
  };
181
181
  };
182
182
  }, {
183
- base: string;
183
+ base: string[];
184
184
  icon: string[];
185
185
  labelWrapper: string;
186
186
  label: string;
187
187
  }, undefined, tailwind_variants_dist_config.TVConfig<{
188
188
  color: {
189
189
  primary: {
190
- icon: string;
190
+ icon: string[];
191
191
  };
192
192
  secondary: {
193
- icon: string;
193
+ icon: string[];
194
194
  };
195
195
  };
196
196
  size: {
@@ -209,14 +209,14 @@ declare const radio: tailwind_variants.TVReturnType<{
209
209
  };
210
210
  isInvalid: {
211
211
  true: {
212
- icon: string;
212
+ icon: string[];
213
213
  label: string;
214
214
  };
215
215
  };
216
216
  isDisabled: {
217
217
  true: {
218
- base: string;
219
- icon: string;
218
+ base: string[];
219
+ icon: string[];
220
220
  label: string;
221
221
  };
222
222
  };
@@ -224,16 +224,16 @@ declare const radio: tailwind_variants.TVReturnType<{
224
224
  true: {};
225
225
  false: {
226
226
  icon: string[];
227
- label: string;
227
+ label: string[];
228
228
  };
229
229
  };
230
230
  }, {
231
231
  color: {
232
232
  primary: {
233
- icon: string;
233
+ icon: string[];
234
234
  };
235
235
  secondary: {
236
- icon: string;
236
+ icon: string[];
237
237
  };
238
238
  };
239
239
  size: {
@@ -252,14 +252,14 @@ declare const radio: tailwind_variants.TVReturnType<{
252
252
  };
253
253
  isInvalid: {
254
254
  true: {
255
- icon: string;
255
+ icon: string[];
256
256
  label: string;
257
257
  };
258
258
  };
259
259
  isDisabled: {
260
260
  true: {
261
- base: string;
262
- icon: string;
261
+ base: string[];
262
+ icon: string[];
263
263
  label: string;
264
264
  };
265
265
  };
@@ -267,7 +267,7 @@ declare const radio: tailwind_variants.TVReturnType<{
267
267
  true: {};
268
268
  false: {
269
269
  icon: string[];
270
- label: string;
270
+ label: string[];
271
271
  };
272
272
  };
273
273
  }>, unknown, unknown, undefined>>;
@@ -15,10 +15,10 @@ declare const Radio: react.ForwardRefExoticComponent<Props & RadioVariantProps &
15
15
  declare const radio: tailwind_variants.TVReturnType<{
16
16
  color: {
17
17
  primary: {
18
- icon: string;
18
+ icon: string[];
19
19
  };
20
20
  secondary: {
21
- icon: string;
21
+ icon: string[];
22
22
  };
23
23
  };
24
24
  size: {
@@ -37,14 +37,14 @@ declare const radio: tailwind_variants.TVReturnType<{
37
37
  };
38
38
  isInvalid: {
39
39
  true: {
40
- icon: string;
40
+ icon: string[];
41
41
  label: string;
42
42
  };
43
43
  };
44
44
  isDisabled: {
45
45
  true: {
46
- base: string;
47
- icon: string;
46
+ base: string[];
47
+ icon: string[];
48
48
  label: string;
49
49
  };
50
50
  };
@@ -52,11 +52,11 @@ declare const radio: tailwind_variants.TVReturnType<{
52
52
  true: {};
53
53
  false: {
54
54
  icon: string[];
55
- label: string;
55
+ label: string[];
56
56
  };
57
57
  };
58
58
  }, {
59
- base: string;
59
+ base: string[];
60
60
  icon: string[];
61
61
  labelWrapper: string;
62
62
  label: string;
@@ -91,10 +91,10 @@ declare const radio: tailwind_variants.TVReturnType<{
91
91
  }, {
92
92
  color: {
93
93
  primary: {
94
- icon: string;
94
+ icon: string[];
95
95
  };
96
96
  secondary: {
97
- icon: string;
97
+ icon: string[];
98
98
  };
99
99
  };
100
100
  size: {
@@ -113,14 +113,14 @@ declare const radio: tailwind_variants.TVReturnType<{
113
113
  };
114
114
  isInvalid: {
115
115
  true: {
116
- icon: string;
116
+ icon: string[];
117
117
  label: string;
118
118
  };
119
119
  };
120
120
  isDisabled: {
121
121
  true: {
122
- base: string;
123
- icon: string;
122
+ base: string[];
123
+ icon: string[];
124
124
  label: string;
125
125
  };
126
126
  };
@@ -128,21 +128,21 @@ declare const radio: tailwind_variants.TVReturnType<{
128
128
  true: {};
129
129
  false: {
130
130
  icon: string[];
131
- label: string;
131
+ label: string[];
132
132
  };
133
133
  };
134
134
  }, {
135
- base: string;
135
+ base: string[];
136
136
  icon: string[];
137
137
  labelWrapper: string;
138
138
  label: string;
139
139
  }, tailwind_variants.TVReturnType<{
140
140
  color: {
141
141
  primary: {
142
- icon: string;
142
+ icon: string[];
143
143
  };
144
144
  secondary: {
145
- icon: string;
145
+ icon: string[];
146
146
  };
147
147
  };
148
148
  size: {
@@ -161,14 +161,14 @@ declare const radio: tailwind_variants.TVReturnType<{
161
161
  };
162
162
  isInvalid: {
163
163
  true: {
164
- icon: string;
164
+ icon: string[];
165
165
  label: string;
166
166
  };
167
167
  };
168
168
  isDisabled: {
169
169
  true: {
170
- base: string;
171
- icon: string;
170
+ base: string[];
171
+ icon: string[];
172
172
  label: string;
173
173
  };
174
174
  };
@@ -176,21 +176,21 @@ declare const radio: tailwind_variants.TVReturnType<{
176
176
  true: {};
177
177
  false: {
178
178
  icon: string[];
179
- label: string;
179
+ label: string[];
180
180
  };
181
181
  };
182
182
  }, {
183
- base: string;
183
+ base: string[];
184
184
  icon: string[];
185
185
  labelWrapper: string;
186
186
  label: string;
187
187
  }, undefined, tailwind_variants_dist_config.TVConfig<{
188
188
  color: {
189
189
  primary: {
190
- icon: string;
190
+ icon: string[];
191
191
  };
192
192
  secondary: {
193
- icon: string;
193
+ icon: string[];
194
194
  };
195
195
  };
196
196
  size: {
@@ -209,14 +209,14 @@ declare const radio: tailwind_variants.TVReturnType<{
209
209
  };
210
210
  isInvalid: {
211
211
  true: {
212
- icon: string;
212
+ icon: string[];
213
213
  label: string;
214
214
  };
215
215
  };
216
216
  isDisabled: {
217
217
  true: {
218
- base: string;
219
- icon: string;
218
+ base: string[];
219
+ icon: string[];
220
220
  label: string;
221
221
  };
222
222
  };
@@ -224,16 +224,16 @@ declare const radio: tailwind_variants.TVReturnType<{
224
224
  true: {};
225
225
  false: {
226
226
  icon: string[];
227
- label: string;
227
+ label: string[];
228
228
  };
229
229
  };
230
230
  }, {
231
231
  color: {
232
232
  primary: {
233
- icon: string;
233
+ icon: string[];
234
234
  };
235
235
  secondary: {
236
- icon: string;
236
+ icon: string[];
237
237
  };
238
238
  };
239
239
  size: {
@@ -252,14 +252,14 @@ declare const radio: tailwind_variants.TVReturnType<{
252
252
  };
253
253
  isInvalid: {
254
254
  true: {
255
- icon: string;
255
+ icon: string[];
256
256
  label: string;
257
257
  };
258
258
  };
259
259
  isDisabled: {
260
260
  true: {
261
- base: string;
262
- icon: string;
261
+ base: string[];
262
+ icon: string[];
263
263
  label: string;
264
264
  };
265
265
  };
@@ -267,7 +267,7 @@ declare const radio: tailwind_variants.TVReturnType<{
267
267
  true: {};
268
268
  false: {
269
269
  icon: string[];
270
- label: string;
270
+ label: string[];
271
271
  };
272
272
  };
273
273
  }>, unknown, unknown, undefined>>;
@@ -110,7 +110,16 @@ Radio.displayName = "Radio";
110
110
  var radio_default = Radio;
111
111
  var radio = tv({
112
112
  slots: {
113
- base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent",
113
+ base: [
114
+ "group/radio",
115
+ "relative",
116
+ "max-w-fit",
117
+ "inline-flex",
118
+ "items-center",
119
+ "justify-start",
120
+ "cursor-pointer",
121
+ "tap-highlight-transparent"
122
+ ],
114
123
  icon: [
115
124
  "relative",
116
125
  "inline-flex",
@@ -139,18 +148,18 @@ var radio = tv({
139
148
  "after:left-1/2",
140
149
  "after:-translate-x-1/2",
141
150
  "after:-translate-y-1/2",
142
- "group-has-[:checked]:after:opacity-100",
143
- "group-has-[:checked]:after:scale-100",
151
+ "group-has-[:checked]/radio:after:opacity-100",
152
+ "group-has-[:checked]/radio:after:scale-100",
144
153
  // hover
145
- "group-hover:before:bg-neutral-soft",
154
+ "group-hover/radio:before:bg-neutral-soft",
146
155
  "before:transition duration-200",
147
156
  // focus ring
148
157
  "outline-none",
149
- "group-focus:z-10",
150
- "group-focus:ring-2",
151
- "group-focus:ring-focus",
152
- "group-focus:ring-offset-2",
153
- "group-focus:ring-offset-background"
158
+ "group-focus/radio:z-10",
159
+ "group-focus/radio:ring-2",
160
+ "group-focus/radio:ring-focus",
161
+ "group-focus/radio:ring-offset-2",
162
+ "group-focus/radio:ring-offset-background"
154
163
  ],
155
164
  labelWrapper: "flex flex-col",
156
165
  label: "text-foreground select-none"
@@ -158,44 +167,53 @@ var radio = tv({
158
167
  variants: {
159
168
  color: {
160
169
  primary: {
161
- icon: "group-has-[:checked]:before:border-primary-main after:bg-primary-main"
170
+ icon: ["group-has-[:checked]/radio:before:border-primary-main", "after:bg-primary-main"]
162
171
  },
163
172
  secondary: {
164
- icon: "group-has-[:checked]:before:border-secondary-main after:bg-secondary-main"
173
+ icon: ["group-has-[:checked]/radio:before:border-secondary-main", "after:bg-secondary-main"]
165
174
  }
166
175
  },
167
176
  size: {
168
177
  sm: {
169
- icon: ["w-[15px] h-[15px] mr-[8px] after:w-[10px] after:h-[10px]"],
178
+ icon: ["w-[15px]", "h-[15px]", "mr-[6px]", "after:w-[9px]", "after:h-[9px]"],
170
179
  label: "text-sm"
171
180
  },
172
181
  md: {
173
- icon: ["w-[17px] h-[17px] mr-[9px] after:w-[11px] after:h-[11px]"],
182
+ icon: ["w-[17px]", "h-[17px]", "mr-[8px]", "after:w-[11px]", "after:h-[11px]"],
174
183
  label: "text-md"
175
184
  },
176
185
  lg: {
177
- icon: ["w-[20px] h-[20px] mr-[10px] after:w-[12px] after:h-[12px]"],
186
+ icon: ["w-[20px]", "h-[20px]", "mr-[10px]", "after:w-[14px]", "after:h-[14px]"],
178
187
  label: "text-lg"
179
188
  }
180
189
  },
181
190
  isInvalid: {
182
191
  true: {
183
- icon: "after:bg-danger-main before:border-danger-main",
192
+ icon: [
193
+ "after:bg-danger-main",
194
+ "before:border-danger-main",
195
+ "group-has-[:checked]/radio:before:border-danger-main"
196
+ ],
184
197
  label: "text-danger-main"
185
198
  }
186
199
  },
187
200
  isDisabled: {
188
201
  true: {
189
- base: "opacity-disabled pointer-events-none",
190
- icon: "before:border-neutral-light before:bg-neutral-soft after:bg-neutral-light",
202
+ base: ["opacity-disabled", "pointer-events-none"],
203
+ icon: [
204
+ "before:border-neutral-light",
205
+ "before:bg-neutral-soft",
206
+ "after:bg-neutral-light",
207
+ "group-has-[:checked]/radio:before:border-neutral-light"
208
+ ],
191
209
  label: "text-neutral-light"
192
210
  }
193
211
  },
194
212
  disableAnimation: {
195
213
  true: {},
196
214
  false: {
197
- icon: ["group-active:scale-95", "transition-transform-colors", "motion-reduce:transition-none"],
198
- label: "transition-colors motion-reduce:transition-none"
215
+ icon: ["group-active/radio:scale-95", "transition-transform-colors", "motion-reduce:transition-none"],
216
+ label: ["transition-colors", "motion-reduce:transition-none"]
199
217
  }
200
218
  }
201
219
  },