@colisweb/rescript-toolkit 2.36.2 → 2.36.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
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
open ReactIntl
|
|
2
|
+
|
|
3
|
+
module Msg = {
|
|
4
|
+
@@intl.messages
|
|
5
|
+
let copied = {
|
|
6
|
+
id: "clipboard.copied",
|
|
7
|
+
defaultMessage: "Copied to clipboard",
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@react.component
|
|
12
|
+
let make = (~children, ~textToCopy, ~className="", ~intl) => {
|
|
13
|
+
let ref1Clipboard = Toolkit.Hooks.useClipboard(
|
|
14
|
+
textToCopy,
|
|
15
|
+
~onCopyNotificationMessage=intl->Intl.formatMessage(Msg.copied),
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
<div className={cx(["rounded-md border border-info-500 bg-info-50", className])}>
|
|
19
|
+
<div className="relative w-full">
|
|
20
|
+
<div
|
|
21
|
+
className="absolute -right-2 top-1 p-1 bg-info-50 text-info-500"
|
|
22
|
+
onClick={_ => {
|
|
23
|
+
ref1Clipboard.copy()
|
|
24
|
+
}}>
|
|
25
|
+
<BsReactIcons.MdContentCopy size=10 />
|
|
26
|
+
</div>
|
|
27
|
+
<div className="py-1 px-2 pr-4"> {children} </div>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
}
|
|
@@ -5902,11 +5902,13 @@ module IoIosCloseCircle = {
|
|
|
5902
5902
|
|
|
5903
5903
|
module AiFillEyeInvisible = {
|
|
5904
5904
|
@module("react-icons/ai") @react.component
|
|
5905
|
-
external make: (~size: int=?) => React.element =
|
|
5905
|
+
external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
|
|
5906
|
+
"AiFillEyeInvisible"
|
|
5906
5907
|
}
|
|
5907
5908
|
module AiFillEye = {
|
|
5908
5909
|
@module("react-icons/ai") @react.component
|
|
5909
|
-
external make: (~size: int=?) => React.element =
|
|
5910
|
+
external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
|
|
5911
|
+
"AiFillEye"
|
|
5910
5912
|
}
|
|
5911
5913
|
|
|
5912
5914
|
module FaCalendarCheck = {
|
|
@@ -5920,3 +5922,55 @@ module FaUserCog = {
|
|
|
5920
5922
|
external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
|
|
5921
5923
|
"FaUserCog"
|
|
5922
5924
|
}
|
|
5925
|
+
|
|
5926
|
+
module FaRedo = {
|
|
5927
|
+
@module("react-icons/fa") @react.component
|
|
5928
|
+
external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element = "FaRedo"
|
|
5929
|
+
}
|
|
5930
|
+
|
|
5931
|
+
module FaWarehouse = {
|
|
5932
|
+
@module("react-icons/fa") @react.component
|
|
5933
|
+
external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
|
|
5934
|
+
"FaWarehouse"
|
|
5935
|
+
}
|
|
5936
|
+
|
|
5937
|
+
module FaRecycle = {
|
|
5938
|
+
@module("react-icons/fa") @react.component
|
|
5939
|
+
external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
|
|
5940
|
+
"FaRecycle"
|
|
5941
|
+
}
|
|
5942
|
+
module FaPlug = {
|
|
5943
|
+
@module("react-icons/fa") @react.component
|
|
5944
|
+
external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
|
|
5945
|
+
"FaRecycle"
|
|
5946
|
+
}
|
|
5947
|
+
module FaTools = {
|
|
5948
|
+
@module("react-icons/fa") @react.component
|
|
5949
|
+
external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element = "FaTools"
|
|
5950
|
+
}
|
|
5951
|
+
|
|
5952
|
+
module MdOutlineFileDownload = {
|
|
5953
|
+
@module("react-icons/md") @react.component
|
|
5954
|
+
external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
|
|
5955
|
+
"MdOutlineFileDownload"
|
|
5956
|
+
}
|
|
5957
|
+
|
|
5958
|
+
module FaServer = {
|
|
5959
|
+
@module("react-icons/fa") @react.component
|
|
5960
|
+
external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
|
|
5961
|
+
"FaServer"
|
|
5962
|
+
}
|
|
5963
|
+
module FaLockOpen = {
|
|
5964
|
+
@module("react-icons/fa") @react.component
|
|
5965
|
+
external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
|
|
5966
|
+
"FaLockOpen"
|
|
5967
|
+
}
|
|
5968
|
+
module FaLock = {
|
|
5969
|
+
@module("react-icons/fa") @react.component
|
|
5970
|
+
external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element = "FaLock"
|
|
5971
|
+
}
|
|
5972
|
+
|
|
5973
|
+
module FaCog = {
|
|
5974
|
+
@module("react-icons/fa") @react.component
|
|
5975
|
+
external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element = "FaCog"
|
|
5976
|
+
}
|