@colisweb/rescript-toolkit 2.16.0 → 2.17.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@react.component
|
|
2
2
|
let make = (~htmlFor, ~className="", ~optionalMessage=?, ~children) =>
|
|
3
|
-
<label htmlFor className={cx(["block text-
|
|
3
|
+
<label htmlFor className={cx(["block text-neutral-700 font-semibold leading-5 mb-1", className])}>
|
|
4
4
|
children
|
|
5
5
|
{optionalMessage->Option.mapWithDefault(React.null, message =>
|
|
6
6
|
<span className="ml-2 text-neutral-500 italic text-sm"> message </span>
|
|
@@ -20,7 +20,7 @@ let modalStyle = (~type_) =>
|
|
|
20
20
|
| #default => "rounded"
|
|
21
21
|
| #colored(color) =>
|
|
22
22
|
switch color {
|
|
23
|
-
| #primary => "rounded-lg
|
|
23
|
+
| #primary => "rounded-lg"
|
|
24
24
|
| #success => "rounded-lg border-2 border-success-500"
|
|
25
25
|
| #danger => "rounded-lg border-4 border-danger-700"
|
|
26
26
|
| #neutral => "rounded-lg"
|
|
@@ -32,7 +32,7 @@ let headerStyle = (~type_) =>
|
|
|
32
32
|
| #default => ""
|
|
33
33
|
| #colored(color) =>
|
|
34
34
|
switch color {
|
|
35
|
-
| #primary => "bg-primary-
|
|
35
|
+
| #primary => "bg-primary-700 rounded-t"
|
|
36
36
|
| #success => "bg-success-500 rounded-t"
|
|
37
37
|
| #danger => "bg-danger-700"
|
|
38
38
|
| #neutral => "bg-neutral-700 rounded-t-lg"
|