@colisweb/rescript-toolkit 3.0.1 → 3.1.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/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -11,6 +11,16 @@ module String = {
|
|
|
11
11
|
->Js.String2.normalizeByForm("NFD")
|
|
12
12
|
->Js.String2.includes(str2->Js.String2.toLowerCase->Js.String2.normalizeByForm("NFD"))
|
|
13
13
|
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* normalize nfd -> replace by re remove split by commponents the accent letters and deletes the accent component only, leaving the un-accented letter
|
|
17
|
+
*/
|
|
18
|
+
let normalizeForSearch = str => {
|
|
19
|
+
str
|
|
20
|
+
->Js.String2.toLowerCase
|
|
21
|
+
->Js.String2.normalizeByForm("NFD")
|
|
22
|
+
->Js.String2.replaceByRe(%re("/[\u0300-\u036f]/g"), "")
|
|
23
|
+
}
|
|
14
24
|
}
|
|
15
25
|
|
|
16
26
|
module Option = {
|
|
@@ -33,6 +33,8 @@ module.exports = {
|
|
|
33
33
|
sans: ["Open Sans", "sans-serif"],
|
|
34
34
|
mono: ["Roboto Mono", "monospace"],
|
|
35
35
|
code: ["Fira Code", "monospace"],
|
|
36
|
+
title: ["Paytone One", "sans-serif"],
|
|
37
|
+
text: ["Public Sans", "sans-serif"],
|
|
36
38
|
},
|
|
37
39
|
fontSize: {
|
|
38
40
|
xxs: "0.625rem",
|
|
@@ -64,7 +66,8 @@ module.exports = {
|
|
|
64
66
|
},
|
|
65
67
|
colors: {
|
|
66
68
|
white: "#fff",
|
|
67
|
-
|
|
69
|
+
cream: "#F9F7F2",
|
|
70
|
+
black: "#131626",
|
|
68
71
|
transparent: "transparent",
|
|
69
72
|
routeWithdraw: "#176693",
|
|
70
73
|
gray: {
|