@colisweb/rescript-toolkit 4.14.9 → 4.14.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.
package/package.json
CHANGED
|
@@ -10,12 +10,21 @@ type options = array<item>
|
|
|
10
10
|
|
|
11
11
|
module Footer = {
|
|
12
12
|
@react.component
|
|
13
|
-
let make = (
|
|
13
|
+
let make = (
|
|
14
|
+
~onCancel,
|
|
15
|
+
~onValidateClick,
|
|
16
|
+
~validateMessage=?,
|
|
17
|
+
~cancelButtonClassName="",
|
|
18
|
+
~validateButtonClassName="",
|
|
19
|
+
) => {
|
|
14
20
|
let dropdownContext = React.useContext(Toolkit__Ui_Dropdown.dropdownContext)
|
|
15
21
|
|
|
16
22
|
<footer className="bg-white p-1 flex flex-row justify-between">
|
|
17
23
|
<Toolkit__Ui_Button
|
|
18
24
|
type_="button"
|
|
25
|
+
color=#neutralLight
|
|
26
|
+
className={cancelButtonClassName}
|
|
27
|
+
variant=#outline
|
|
19
28
|
onClick={_ => {
|
|
20
29
|
dropdownContext.hide()
|
|
21
30
|
onCancel()
|
|
@@ -25,6 +34,7 @@ module Footer = {
|
|
|
25
34
|
<Toolkit__Ui_Button
|
|
26
35
|
color=#primary
|
|
27
36
|
type_="button"
|
|
37
|
+
className={validateButtonClassName}
|
|
28
38
|
onClick={_ => {
|
|
29
39
|
onValidateClick()
|
|
30
40
|
dropdownContext.hide()
|
|
@@ -78,6 +88,8 @@ let make = (
|
|
|
78
88
|
~placeholder: React.element,
|
|
79
89
|
~buttonClassName="",
|
|
80
90
|
~dropdownClassName="",
|
|
91
|
+
~validateButtonClassName="",
|
|
92
|
+
~cancelButtonClassName="",
|
|
81
93
|
~itemClassName="",
|
|
82
94
|
~searchPlaceholder: option<string>=?,
|
|
83
95
|
~allowFilter=true,
|
|
@@ -152,6 +164,8 @@ let make = (
|
|
|
152
164
|
}}
|
|
153
165
|
?validateMessage
|
|
154
166
|
onValidateClick={() => selectedOption->Option.forEach(onValidate)}
|
|
167
|
+
validateButtonClassName
|
|
168
|
+
cancelButtonClassName
|
|
155
169
|
/>
|
|
156
170
|
</Toolkit__Ui_Dropdown>
|
|
157
171
|
}
|
|
@@ -7,6 +7,8 @@ let make: (
|
|
|
7
7
|
~placeholder: React.element,
|
|
8
8
|
~buttonClassName: string=?,
|
|
9
9
|
~dropdownClassName: string=?,
|
|
10
|
+
~validateButtonClassName: string=?,
|
|
11
|
+
~cancelButtonClassName: string=?,
|
|
10
12
|
~itemClassName: string=?,
|
|
11
13
|
~searchPlaceholder: string=?,
|
|
12
14
|
~allowFilter: bool=?,
|
|
@@ -6126,6 +6126,11 @@ module FaRulerCombined = {
|
|
|
6126
6126
|
external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
|
|
6127
6127
|
"FaRulerCombined"
|
|
6128
6128
|
}
|
|
6129
|
+
module FaWeightHanging = {
|
|
6130
|
+
@module("react-icons/fa") @react.component
|
|
6131
|
+
external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
|
|
6132
|
+
"FaWeightHanging"
|
|
6133
|
+
}
|
|
6129
6134
|
|
|
6130
6135
|
module BiTestTube = {
|
|
6131
6136
|
@module("react-icons/bi") @react.component
|