@colisweb/rescript-toolkit 2.50.1 → 2.50.3

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.50.1",
3
+ "version": "2.50.3",
4
4
  "scripts": {
5
5
  "clean": "rescript clean",
6
6
  "build": "rescript build -with-deps",
@@ -45,8 +45,8 @@ module Make = (Config: RouterConfig) => {
45
45
  }, [setCurrentRoute])
46
46
 
47
47
  let contextValue: contextState = {
48
- previousRoute: previousRoute,
49
- currentRoute: currentRoute,
48
+ previousRoute,
49
+ currentRoute,
50
50
  }
51
51
 
52
52
  <RouterContextProvider value={contextValue}>
@@ -87,7 +87,7 @@ module Make = (Config: RouterConfig) => {
87
87
  <a
88
88
  href={route->Config.toString}
89
89
  target={isExternal ? "_blank" : ""}
90
- className=j`$className $activeClassName`
90
+ className={j`$className $activeClassName`}
91
91
  onClick={event =>
92
92
  if (
93
93
  !(event->ReactEvent.Mouse.defaultPrevented) &&
@@ -276,8 +276,8 @@ module Make = (Config: RouterConfig) => {
276
276
  </button>
277
277
  <div
278
278
  className={cx([
279
- "transition ease-linear duration-300 overflow-hidden",
280
- isOpen ? "h-auto" : "h-0",
279
+ "transition ease-linear duration-300",
280
+ isOpen ? "h-auto" : "h-0 overflow-hidden",
281
281
  ])}>
282
282
  {links
283
283
  ->Array.mapWithIndex((i, link) =>
@@ -13,6 +13,7 @@ type optionMessageCb = {inputValue: string}
13
13
  module ReactSelect = {
14
14
  @module("react-select") @react.component
15
15
  external make: (
16
+ ~defaultMenuIsOpen: option<bool>=?,
16
17
  ~name: string,
17
18
  ~autoFocus: option<bool>=?,
18
19
  ~isMulti: option<bool>=?,
@@ -35,6 +36,7 @@ module ReactSelectMultiple = {
35
36
  @module("react-select") @react.component
36
37
  external make: (
37
38
  ~name: string,
39
+ ~defaultMenuIsOpen: option<bool>=?,
38
40
  ~autoFocus: option<bool>=?,
39
41
  ~isMulti: option<bool>=?,
40
42
  ~isDisabled: option<bool>=?,
@@ -55,6 +57,7 @@ module ReactSelectMultiple = {
55
57
  ~name: string,
56
58
  ~autoFocus: option<bool>=?,
57
59
  ~isSearchable: option<bool>=?,
60
+ ~defaultMenuIsOpen: option<bool>=?,
58
61
  ~isDisabled: option<bool>=?,
59
62
  ~isLoading: option<bool>=?,
60
63
  ~placeholder: option<string>=?,
@@ -73,6 +76,7 @@ module ReactSelectMultiple = {
73
76
  isMulti=true
74
77
  ?isSearchable
75
78
  ?placeholder
79
+ ?defaultMenuIsOpen
76
80
  ?className
77
81
  ?classNamePrefix
78
82
  defaultValue
@@ -178,6 +182,7 @@ module ReactSelectMultipleCreateInput = {
178
182
  onChange(value->Array.concat([inputValue]))
179
183
  e->ReactEvent.Keyboard.preventDefault
180
184
  }
185
+
181
186
  | _ => ()
182
187
  }
183
188
  }