@colisweb/rescript-toolkit 2.65.2 → 2.65.4

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.65.2",
3
+ "version": "2.65.4",
4
4
  "scripts": {
5
5
  "clean": "rescript clean",
6
6
  "build": "rescript build -with-deps",
@@ -36,13 +36,13 @@ let show = (~title, ~content=?, ~closable=true, ~variant, ~timeout=5000, ()) =>
36
36
  let id: id = Js.Math.random()->Js.Float.toString->Obj.magic
37
37
  store.dispatch(
38
38
  Show({
39
- id: id,
39
+ id,
40
40
  isVisible: true,
41
- title: title,
42
- content: content,
43
- closable: closable,
44
- variant: variant,
45
- timeout: timeout,
41
+ title,
42
+ content,
43
+ closable,
44
+ variant,
45
+ timeout,
46
46
  }),
47
47
  )
48
48
  }
@@ -74,7 +74,7 @@ module Item = {
74
74
  <div
75
75
  style={ReactDOM.Style.make(~pointerEvents="all", ())}
76
76
  className={cx([
77
- "rounded shadow transition duration-500 ease-in-out mt-3 p-3 pl-3 pr-10 transform",
77
+ "rounded shadow transition duration-500 ease-in-out mt-3 p-3 pl-3 pr-10 transform cw-snackbar",
78
78
  mounted ? "-translate-y-14" : "!opacity-0",
79
79
  isVisible ? "opacity-100" : "opacity-0 translate-x-[200px]",
80
80
  {
@@ -112,7 +112,7 @@ module Item = {
112
112
  <div>
113
113
  <p
114
114
  className={cx([
115
- "text-lg",
115
+ "text-lg cw-snackbar-title",
116
116
  switch variant {
117
117
  | #success => "text-neutral-700"
118
118
  | #warning => "text-warning-700"
@@ -60,7 +60,7 @@ let make = (
60
60
  className={cx([
61
61
  "flex flex-row items-center gap-2 cursor-pointer flex-shrink-0",
62
62
  className,
63
- isChecked ? checkedClassName : "",
63
+ isChecked ? `${checkedClassName} cw-switch--checked` : "",
64
64
  disabled->Option.getWithDefault(false) ? disabledClassName : "",
65
65
  ])}>
66
66
  <span