@colisweb/rescript-toolkit 5.23.2 → 5.24.0
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.
- package/package.json +1 -1
- package/src/ui/Toolkit__Ui_Radio.res +18 -14
package/package.json
CHANGED
|
@@ -55,11 +55,11 @@ let make = (
|
|
|
55
55
|
"bg-white flex-shrink-0 cw-radio-circle",
|
|
56
56
|
{
|
|
57
57
|
switch variant {
|
|
58
|
-
| Default => "peer-checked:border-primary-700 peer-checked:text-primary-700"
|
|
59
|
-
| Filled => "peer-checked:border-primary-700 peer-checked:text-white"
|
|
58
|
+
| Default => "border peer-checked:border-4 peer-checked:border-primary-700 peer-checked:text-primary-700"
|
|
59
|
+
| Filled => "border-2 peer-checked:border-primary-700 peer-checked:text-white"
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
|
-
"checkmark rounded-full
|
|
62
|
+
"checkmark rounded-full mr-2 border-neutral-700 transform transition-all ease-in-out flex items-center justify-center",
|
|
63
63
|
switch size {
|
|
64
64
|
| #xs => "w-4 h-4"
|
|
65
65
|
| #sm => "w-6 h-6"
|
|
@@ -67,17 +67,21 @@ let make = (
|
|
|
67
67
|
| #lg => "w-10 h-10"
|
|
68
68
|
},
|
|
69
69
|
])}>
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
70
|
+
{switch variant {
|
|
71
|
+
| Default => React.null
|
|
72
|
+
| Filled =>
|
|
73
|
+
<span
|
|
74
|
+
className={cx([
|
|
75
|
+
"transform transition-all ease-in-out cw-radio-circle-content rounded-full",
|
|
76
|
+
switch size {
|
|
77
|
+
| #xs => "w-2 h-2"
|
|
78
|
+
| #sm => "w-3 h-3"
|
|
79
|
+
| #md => "w-4 h-4"
|
|
80
|
+
| #lg => "w-6 h-6"
|
|
81
|
+
},
|
|
82
|
+
])}
|
|
83
|
+
/>
|
|
84
|
+
}}
|
|
81
85
|
</span>
|
|
82
86
|
<span
|
|
83
87
|
className={cx([
|