@colisweb/rescript-toolkit 2.8.1 → 2.8.5

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": "2.8.1",
3
+ "version": "2.8.5",
4
4
  "scripts": {
5
5
  "clean": "rescript clean",
6
6
  "build": "rescript build",
@@ -54,13 +54,18 @@ let toResult = (
54
54
  | Ok(response) =>
55
55
  switch response["data"]->mapData {
56
56
  | Ok(_) as ok => ok
57
- | Error(error) =>
58
- Error(
59
- #invalidResponseData(
60
- response->castToUndecodedResponse,
61
- "\"" ++ (error.path ++ ("\" " ++ error.message)),
62
- ),
63
- )
57
+ | Error(error) => {
58
+ %log.error(
59
+ "Decoder failure"
60
+ ("err", error)
61
+ )
62
+ Error(
63
+ #invalidResponseData(
64
+ response->castToUndecodedResponse,
65
+ "\"" ++ (error.path ++ ("\" " ++ error.message)),
66
+ ),
67
+ )
68
+ }
64
69
  }
65
70
  | Error(error) =>
66
71
  if (error->castToJs)["response"] {
@@ -11,8 +11,7 @@ module.exports = {
11
11
  },
12
12
  boxShadow: {
13
13
  sidenav: "inset 0 0 1px 2px rgba(0, 0, 0, 0.2)",
14
- sm:
15
- "0px 2px 1px -1px rgba(0,0,0,0.1), 0px 1px 1px 0px rgba(0,0,0,0.1), 0px 1px 3px 0px rgba(0,0,0,0.1)",
14
+ sm: "0px 2px 1px -1px rgba(0,0,0,0.1), 0px 1px 1px 0px rgba(0,0,0,0.1), 0px 1px 3px 0px rgba(0,0,0,0.1)",
16
15
  },
17
16
  borderColor: {
18
17
  currentColor: "currentColor",
@@ -142,7 +141,7 @@ module.exports = {
142
141
  purple: {
143
142
  50: "#F8F1FF",
144
143
  100: "#DDC8F0",
145
- 300: "#8787E0",
144
+ 300: "#B787E0",
146
145
  400: "#9151C9",
147
146
  500: "#6C1CB2",
148
147
  600: "#55158B",
@@ -14,10 +14,10 @@ let make = (~title, ~description=?, ~status, ~className=?) =>
14
14
  className->Option.getWithDefault(""),
15
15
  ])}>
16
16
  {switch status {
17
- | #success => <BsReactIcons.MdCheckCircle size=28 className="text-success-500" />
18
- | #error => <BsReactIcons.MdWarning size=28 className="text-danger-600" />
19
- | #warning => <BsReactIcons.MdWarning size=28 className="text-warning-500" />
20
- | #info => <BsReactIcons.MdInfoOutline size=28 className="text-info-500" />
17
+ | #success => <BsReactIcons.MdCheckCircle size=28 className="text-success-500 flex-shrink-0" />
18
+ | #error => <BsReactIcons.MdWarning size=28 className="text-danger-600 flex-shrink-0" />
19
+ | #warning => <BsReactIcons.MdWarning size=28 className="text-warning-500 flex-shrink-0" />
20
+ | #info => <BsReactIcons.MdInfoOutline size=28 className="text-info-500 flex-shrink-0" />
21
21
  }}
22
22
  <div className="mx-3">
23
23
  <div className={description->Option.isSome ? "font-bold" : ""}> title </div>
@@ -5893,3 +5893,9 @@ module FaFilter = {
5893
5893
  external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
5894
5894
  "FaFilter"
5895
5895
  }
5896
+
5897
+ module IoIosCloseCircle = {
5898
+ @module("react-icons/io") @react.component
5899
+ external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
5900
+ "IoIosCloseCircle"
5901
+ }