@colisweb/rescript-toolkit 5.40.1 → 5.40.2

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": "5.40.1",
3
+ "version": "5.40.2",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "clean": "rescript clean",
@@ -13,6 +13,7 @@ let make = (
13
13
  ~options: options,
14
14
  ~placeholder: option<React.element>=?,
15
15
  ~buttonClassName="",
16
+ ~placeholderClassName="",
16
17
  ~dropdownClassName="",
17
18
  ~itemClassName="",
18
19
  ~searchPlaceholder: option<string>=?,
@@ -60,7 +61,7 @@ let make = (
60
61
  | [] =>
61
62
  <p className="flex flex-row gap-2 w-full items-center relative">
62
63
  {placeholder->Option.mapWithDefault(React.null, placeholder => {
63
- <span className="ml-1"> {placeholder} </span>
64
+ <span className={cx(["ml-1", placeholderClassName])}> {placeholder} </span>
64
65
  })}
65
66
  <span className="absolute inset-y-0 right-0 flex items-center">
66
67
  <ReactIcons.FaAngleDown />
@@ -11,6 +11,7 @@ let make: (
11
11
  ~options: array<item>,
12
12
  ~placeholder: React.element=?,
13
13
  ~buttonClassName: string=?,
14
+ ~placeholderClassName: string=?,
14
15
  ~dropdownClassName: string=?,
15
16
  ~itemClassName: string=?,
16
17
  ~searchPlaceholder: string=?,