@colisweb/rescript-toolkit 4.4.1 → 4.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colisweb/rescript-toolkit",
3
- "version": "4.4.1",
3
+ "version": "4.6.0",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "clean": "rescript clean",
@@ -30,62 +30,59 @@
30
30
  "@colisweb/bs-react-intl-extractor-bin": "0.12.2",
31
31
  "@colisweb/react-day-picker": "7.4.16",
32
32
  "@colisweb/restorative": "1.0.0",
33
- "@datadog/browser-rum": "4.26.0",
34
- "@headlessui/react": "1.7.14",
35
- "@headlessui/tailwindcss": "^0.1.3",
33
+ "@datadog/browser-rum": "4.44.0",
34
+ "@headlessui/react": "1.7.15",
35
+ "@headlessui/tailwindcss": "0.1.3",
36
36
  "@reach/auto-id": "0.18.0",
37
37
  "@rescript/react": "0.11.0",
38
- "@tailwindcss/line-clamp": "0.4.2",
39
- "autoprefixer": "10.4.13",
40
- "axios": "0.24.0",
38
+ "autoprefixer": "10.4.14",
39
+ "axios": "1.4.0",
41
40
  "bs-axios": "0.0.43",
42
41
  "case": "1.6.3",
43
42
  "click-outside-hook": "1.1.0",
44
43
  "copy-to-clipboard": "3.3.3",
45
- "date-fns": "2.29.3",
44
+ "date-fns": "2.30.0",
46
45
  "decco": "1.6.0",
47
46
  "dedent": "0.7.0",
48
47
  "lenses-ppx": "6.1.10",
49
48
  "list-selectors": "2.0.1",
50
49
  "lodash": "4.17.21",
51
- "postcss": "8.4.21",
50
+ "postcss": "8.4.24",
52
51
  "postcss-preset-env": "8.0.1",
53
52
  "prismjs": "1.29.0",
54
53
  "react": "18.2.0",
55
54
  "react-big-calendar": "1.5.2",
56
55
  "react-datepicker": "3.8.0",
57
56
  "react-dom": "18.2.0",
58
- "react-error-boundary": "3.1.4",
57
+ "react-error-boundary": "4.0.10",
59
58
  "react-helmet": "6.1.0",
60
- "react-icons": "4.7.1",
61
- "react-intl": "6.2.5",
59
+ "react-icons": "4.10.1",
60
+ "react-intl": "6.4.4",
62
61
  "react-portal": "4.2.2",
63
- "react-select": "5.7.0",
62
+ "react-select": "5.7.3",
64
63
  "react-table": "7.8.0",
65
64
  "react-use": "17.4.0",
66
65
  "reason-promise": "1.1.5",
67
66
  "res-react-intl": "3.1.2",
68
67
  "reschema": "1.3.1",
69
- "rescript": "10.1.2",
68
+ "rescript": "10.1.4",
70
69
  "rescript-classnames": "6.0.0",
71
70
  "rescript-react-update": "5.0.0",
72
71
  "sanitize-html": "1.27.4",
73
- "swr": "2.0.0",
74
- "tailwindcss": "3.2.4",
75
- "use-local-storage-state": "18.1.2"
72
+ "swr": "2.2.0",
73
+ "tailwindcss": "3.3.2",
74
+ "use-local-storage-state": "18.3.3"
76
75
  },
77
76
  "devDependencies": {
78
- "@babel/core": "7.20.5",
79
- "@jihchi/vite-plugin-rescript": "5.0.0",
80
- "@mdx-js/mdx": "2.2.1",
81
- "@mdx-js/react": "2.2.1",
82
- "@mdx-js/rollup": "2.2.1",
77
+ "@babel/core": "7.22.6",
78
+ "@jihchi/vite-plugin-rescript": "5.3.0",
79
+ "@mdx-js/mdx": "2.3.0",
80
+ "@mdx-js/react": "2.3.0",
81
+ "@mdx-js/rollup": "2.3.0",
83
82
  "@originjs/vite-plugin-commonjs": "^1.0.3",
84
- "@types/react": "^18.0.26",
85
- "@types/react-dom": "^18.0.9",
86
- "@vitejs/plugin-react": "^3.0.0",
83
+ "@vitejs/plugin-react": "4.0.1",
87
84
  "babel-loader": "8.2.5",
88
- "highlight.js": "11.7.0",
85
+ "highlight.js": "11.8.0",
89
86
  "husky": "8.0.3",
90
87
  "is-ci": "3.0.1",
91
88
  "raw-loader": "4.0.2",
@@ -94,8 +91,8 @@
94
91
  "rehype-autolink-headings": "^6.1.1",
95
92
  "rehype-highlight": "^6.0.0",
96
93
  "rehype-slug": "^5.1.0",
97
- "sass": "1.56.1",
98
- "vite": "4.0.4"
94
+ "sass": "1.63.6",
95
+ "vite": "4.3.9"
99
96
  },
100
97
  "packageManager": "yarn@3.3.1"
101
98
  }
@@ -5,18 +5,18 @@ module DatePicker = {
5
5
  let weekdaysShort = ["Di", "Lun", "Ma", "Me", "Je", "Ve", "Sa"]
6
6
 
7
7
  let months = [
8
- j`Janvier`,
9
- j`Février`,
10
- j`Mars`,
11
- j`Avril`,
12
- j`Mai`,
13
- j`Juin`,
14
- j`Juillet`,
15
- j`Août`,
16
- j`Septembre`,
17
- j`Octobre`,
18
- j`Novembre`,
19
- j`Décembre`,
8
+ `Janvier`,
9
+ `Février`,
10
+ `Mars`,
11
+ `Avril`,
12
+ `Mai`,
13
+ `Juin`,
14
+ `Juillet`,
15
+ `Août`,
16
+ `Septembre`,
17
+ `Octobre`,
18
+ `Novembre`,
19
+ `Décembre`,
20
20
  ]
21
21
 
22
22
  let firstDayOfWeek = 1
@@ -103,7 +103,7 @@ module Make = (Config: RouterConfig) => {
103
103
  <a
104
104
  href={route->Config.toString}
105
105
  target={isExternal ? "_blank" : ""}
106
- className={j`$className $activeClassName`}
106
+ className={cx([className, activeClassName])}
107
107
  onClick={event =>
108
108
  if (
109
109
  !(event->ReactEvent.Mouse.defaultPrevented) &&
@@ -151,10 +151,7 @@ module.exports = {
151
151
  },
152
152
  },
153
153
  },
154
- plugins: [
155
- require("@tailwindcss/line-clamp"),
156
- require("@headlessui/tailwindcss")({ prefix: "ui" }),
157
- ],
154
+ plugins: [require("@headlessui/tailwindcss")({ prefix: "ui" })],
158
155
  content: [
159
156
  "public/index.html",
160
157
  "lib/es6_global/src/**/**.(c)?js",
@@ -17,8 +17,8 @@ let make = (
17
17
  ~buttonSize: Toolkit__Ui_Button.size=#md,
18
18
  ~buttonVariant: Toolkit__Ui_Button.variant=#default,
19
19
  ~position=#bottom,
20
- ~disabled: bool=?,
21
- ~onClose: unit => unit=?,
20
+ ~disabled: option<bool>=?,
21
+ ~onClose: option<unit => unit>=?,
22
22
  ) => {
23
23
  let dropDownRef = React.useRef(Js.Nullable.null)
24
24
  let buttonRef = React.useRef(Js.Nullable.null)
@@ -15,7 +15,7 @@ module Footer = {
15
15
  ])}>
16
16
  {switch children {
17
17
  | None =>
18
- (j`© Colisweb ` ++ Js.Date.make()->Js.Date.getFullYear->Js.Float.toString)->React.string
18
+ (`© Colisweb ` ++ Js.Date.make()->Js.Date.getFullYear->Js.Float.toString)->React.string
19
19
  | Some(children) => children
20
20
  }}
21
21
  </footer>
@@ -6086,3 +6086,28 @@ module FaCalculator = {
6086
6086
  external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
6087
6087
  "FaCalculator"
6088
6088
  }
6089
+ module FaBatteryEmpty = {
6090
+ @module("react-icons/fa") @react.component
6091
+ external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
6092
+ "FaBatteryEmpty"
6093
+ }
6094
+ module FaBatteryFull = {
6095
+ @module("react-icons/fa") @react.component
6096
+ external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
6097
+ "FaBatteryFull"
6098
+ }
6099
+ module FaBatteryHalf = {
6100
+ @module("react-icons/fa") @react.component
6101
+ external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
6102
+ "FaBatteryHalf"
6103
+ }
6104
+ module FaBatteryQuarter = {
6105
+ @module("react-icons/fa") @react.component
6106
+ external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
6107
+ "FaBatteryQuarter"
6108
+ }
6109
+ module FaBatteryThreeQuarters = {
6110
+ @module("react-icons/fa") @react.component
6111
+ external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
6112
+ "FaBatteryThreeQuarters"
6113
+ }