@colisweb/rescript-toolkit 4.5.0 → 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/.secure_files/ci-functions-v1.4.1-alpha +2547 -0
- package/.secure_files/ci-functions-v17.4.0 +2547 -0
- package/.secure_files/ci-functions-v17.4.1 +2547 -0
- package/.secure_files/ci-functions-v17.4.1-alpha +2547 -0
- package/package.json +25 -28
- package/src/intl/Toolkit__LocalesHelpers.res +12 -12
- package/src/router/Toolkit__Router.res +1 -1
- package/src/tailwind/tailwind.config.cjs +1 -4
- package/src/ui/Toolkit__Ui_Dropdown.res +2 -2
- package/src/ui/Toolkit__Ui_Layout.res +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colisweb/rescript-toolkit",
|
|
3
|
-
"version": "4.
|
|
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.
|
|
34
|
-
"@headlessui/react": "1.7.
|
|
35
|
-
"@headlessui/tailwindcss": "
|
|
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
|
-
"
|
|
39
|
-
"
|
|
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.
|
|
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.
|
|
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": "
|
|
57
|
+
"react-error-boundary": "4.0.10",
|
|
59
58
|
"react-helmet": "6.1.0",
|
|
60
|
-
"react-icons": "4.
|
|
61
|
-
"react-intl": "6.
|
|
59
|
+
"react-icons": "4.10.1",
|
|
60
|
+
"react-intl": "6.4.4",
|
|
62
61
|
"react-portal": "4.2.2",
|
|
63
|
-
"react-select": "5.7.
|
|
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.
|
|
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.
|
|
74
|
-
"tailwindcss": "3.2
|
|
75
|
-
"use-local-storage-state": "18.
|
|
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.
|
|
79
|
-
"@jihchi/vite-plugin-rescript": "5.
|
|
80
|
-
"@mdx-js/mdx": "2.
|
|
81
|
-
"@mdx-js/react": "2.
|
|
82
|
-
"@mdx-js/rollup": "2.
|
|
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
|
-
"@
|
|
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.
|
|
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.
|
|
98
|
-
"vite": "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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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={
|
|
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
|
-
(
|
|
18
|
+
(`© Colisweb ` ++ Js.Date.make()->Js.Date.getFullYear->Js.Float.toString)->React.string
|
|
19
19
|
| Some(children) => children
|
|
20
20
|
}}
|
|
21
21
|
</footer>
|