@colisweb/rescript-toolkit 4.1.2 → 4.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colisweb/rescript-toolkit",
3
- "version": "4.1.2",
3
+ "version": "4.2.0",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "clean": "rescript clean",
@@ -13,6 +13,7 @@ module Header = {
13
13
  ~actionDisabled: option<bool>=?,
14
14
  ~containerClassName="",
15
15
  ~buttonTestId="",
16
+ ~buttonColor=#info,
16
17
  ) =>
17
18
  <div className={cx(["flex flex-row items-center mb-4", containerClassName])}>
18
19
  <div
@@ -26,7 +27,7 @@ module Header = {
26
27
  <Toolkit__Ui_Button
27
28
  variant=#pill
28
29
  size=#xs
29
- color=#info
30
+ color=buttonColor
30
31
  onClick={_ => event()}
31
32
  testId={buttonTestId}
32
33
  disabled={actionDisabled->Option.getWithDefault(false)}
@@ -12,6 +12,7 @@ module Header: {
12
12
  ~actionDisabled: bool=?,
13
13
  ~containerClassName: string=?,
14
14
  ~buttonTestId: string=?,
15
+ ~buttonColor: Toolkit__Ui_Button.color=?,
15
16
  ) => React.element
16
17
  }
17
18