@colisweb/rescript-toolkit 3.0.0 → 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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colisweb/rescript-toolkit",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "clean": "rescript clean",
@@ -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
- black: "#000",
69
+ cream: "#F9F7F2",
70
+ black: "#131626",
68
71
  transparent: "transparent",
69
72
  routeWithdraw: "#176693",
70
73
  gray: {
@@ -6028,6 +6028,12 @@ module BsPalette = {
6028
6028
  external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
6029
6029
  "BsPalette"
6030
6030
  }
6031
+ module BsLightningChargeFill = {
6032
+ @module("react-icons/bs") @react.component
6033
+ external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
6034
+ "BsLightningChargeFill"
6035
+ }
6036
+
6031
6037
  module VscFolderLibrary = {
6032
6038
  @module("react-icons/vsc") @react.component
6033
6039
  external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =