@colisweb/rescript-toolkit 5.37.1 → 5.37.3
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/.gitlab-ci.yml +1 -1
- package/.secure_files/{ci-functions-v17.11.0 → ci-functions-v20.2.1} +451 -90
- package/.secure_files/{ci-functions-v17.12.0-feat-add-mysql-service-1.0.1beta → ci-functions-v20.2.2} +451 -90
- package/.secure_files/{ci-functions-v17.10.0 → ci-functions-v20.3.0} +478 -137
- package/package.json +1 -1
- package/src/ui/Toolkit__Ui_Dropdown.res +19 -19
- package/src/vendors/ReactIcons.res +25 -0
package/package.json
CHANGED
|
@@ -36,7 +36,7 @@ let make = (
|
|
|
36
36
|
let (position, setPosition) = React.useState(() => position)
|
|
37
37
|
let {isOpen, hide, toggle} = Toolkit__Hooks.useDisclosure(~defaultIsOpen, ())
|
|
38
38
|
|
|
39
|
-
Toolkit__Hooks.useOnClickOutside(
|
|
39
|
+
Toolkit__Hooks.useOnClickOutside(dropDownRef, _ => {
|
|
40
40
|
hide()
|
|
41
41
|
onClose->Option.forEach(fn => fn())
|
|
42
42
|
})
|
|
@@ -95,24 +95,24 @@ let make = (
|
|
|
95
95
|
}}
|
|
96
96
|
className={cx([buttonClassName, "dropdown-button"])}>
|
|
97
97
|
label
|
|
98
|
-
{isOpen
|
|
99
|
-
? <div
|
|
100
|
-
ref={ReactDOM.Ref.domRef(dropDownRef)}
|
|
101
|
-
className={cx([
|
|
102
|
-
"dropdown",
|
|
103
|
-
"absolute z-20 bg-white p-2 transform shadow rounded text-base font-normal text-neutral-700 opacity-0",
|
|
104
|
-
switch position {
|
|
105
|
-
| #bottom => "left-1/2 top-full -translate-x-1/2 mt-2"
|
|
106
|
-
| #top => "left-1/2 bottom-full -translate-x-1/2 mb-2"
|
|
107
|
-
| #left => "right-full top-1/2 -translate-y-1/2 ml-2"
|
|
108
|
-
| #right => "left-full top-1/2 -translate-y-1/2 ml-2"
|
|
109
|
-
},
|
|
110
|
-
dropdownClassName,
|
|
111
|
-
])}
|
|
112
|
-
style={adjustmentStyle->Option.getWithDefault(ReactDOM.Style.make())}>
|
|
113
|
-
<Provider value={{hide: hide}}> children </Provider>
|
|
114
|
-
</div>
|
|
115
|
-
: React.null}
|
|
116
98
|
</Toolkit__Ui_Button>
|
|
99
|
+
{isOpen
|
|
100
|
+
? <div
|
|
101
|
+
ref={ReactDOM.Ref.domRef(dropDownRef)}
|
|
102
|
+
className={cx([
|
|
103
|
+
"dropdown",
|
|
104
|
+
"absolute z-20 bg-white p-2 transform shadow rounded text-base font-normal text-neutral-700 opacity-0",
|
|
105
|
+
switch position {
|
|
106
|
+
| #bottom => "top-full mt-2"
|
|
107
|
+
| #top => "bottom-full mb-2"
|
|
108
|
+
| #left => "right-full ml-2"
|
|
109
|
+
| #right => "left-full ml-2"
|
|
110
|
+
},
|
|
111
|
+
dropdownClassName,
|
|
112
|
+
])}
|
|
113
|
+
style={adjustmentStyle->Option.getWithDefault(ReactDOM.Style.make())}>
|
|
114
|
+
<Provider value={{hide: hide}}> children </Provider>
|
|
115
|
+
</div>
|
|
116
|
+
: React.null}
|
|
117
117
|
</div>
|
|
118
118
|
}
|
|
@@ -6239,3 +6239,28 @@ module FaSync = {
|
|
|
6239
6239
|
@module("react-icons/fa") @react.component
|
|
6240
6240
|
external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element = "FaSync"
|
|
6241
6241
|
}
|
|
6242
|
+
module FaInstagram = {
|
|
6243
|
+
@module("react-icons/fa6") @react.component
|
|
6244
|
+
external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
|
|
6245
|
+
"FaInstagram"
|
|
6246
|
+
}
|
|
6247
|
+
module FaFacebook = {
|
|
6248
|
+
@module("react-icons/fa6") @react.component
|
|
6249
|
+
external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
|
|
6250
|
+
"FaFacebook"
|
|
6251
|
+
}
|
|
6252
|
+
module FaXTwitter = {
|
|
6253
|
+
@module("react-icons/fa6") @react.component
|
|
6254
|
+
external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
|
|
6255
|
+
"FaXTwitter"
|
|
6256
|
+
}
|
|
6257
|
+
module FaYoutube = {
|
|
6258
|
+
@module("react-icons/fa6") @react.component
|
|
6259
|
+
external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
|
|
6260
|
+
"FaYoutube"
|
|
6261
|
+
}
|
|
6262
|
+
module FaLinkedin = {
|
|
6263
|
+
@module("react-icons/fa6") @react.component
|
|
6264
|
+
external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
|
|
6265
|
+
"FaLinkedin"
|
|
6266
|
+
}
|