@colisweb/rescript-toolkit 5.6.7 → 5.6.9

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.6.7",
3
+ "version": "5.6.9",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "clean": "rescript clean",
@@ -83,8 +83,7 @@ let make = (
83
83
  }}
84
84
  value={value->Js.Nullable.fromOption}
85
85
  nullable={true}>
86
- <div
87
- className="relative z-0 w-full cursor-default overflow-hidden rounded bg-white text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75 focus-visible:ring-offset-2 focus-visible:ring-offset-teal-300 sm:text-sm">
86
+ <div className="relative z-0 w-full cursor-default rounded bg-white text-left sm:text-sm">
88
87
  <HeadlessUi.Combobox.Input
89
88
  ?placeholder
90
89
  ?autoFocus
@@ -92,7 +91,7 @@ let make = (
92
91
  onChange=onInputChange
93
92
  autocomplete="off"
94
93
  className={cx([
95
- "w-full border py-2 rounded pl-3 pr-10 text-sm leading-5 text-gray-900 focus:ring-0",
94
+ "w-full border py-2 rounded pl-3 pr-10 text-sm leading-5 text-gray-900",
96
95
  isInvalid ? "border-danger-500" : "border-gray-300",
97
96
  inputClassName,
98
97
  ])}
@@ -185,13 +185,13 @@ let make = (
185
185
  className={cx([
186
186
  "flex flex-col items-stretch w-14 sm:w-16 font-display",
187
187
  isDisabled ? "opacity-50 cursor-not-allowed" : "",
188
+ isSelected ? selectedDateClassName : "",
189
+ dateClassName,
188
190
  ])}>
189
191
  <p
190
192
  className={cx([
191
193
  "flex flex-col items-center justify-center uppercase text-xs w-full rounded-sm leading-tight py-1",
192
- isSelected
193
- ? "text-white bg-primary-700 " ++ selectedDateClassName
194
- : "text-primary-700 bg-primary-50 " ++ dateClassName,
194
+ isSelected ? "text-white bg-primary-700 " : "text-primary-700 bg-primary-50 ",
195
195
  ])}>
196
196
  <span>
197
197
  {formattedDay