@colisweb/rescript-toolkit 4.21.1 → 4.21.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": "4.21.1",
3
+ "version": "4.21.3",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "clean": "rescript clean",
@@ -44,6 +44,7 @@ let make = (
44
44
  ~startOfWeek: option<Js.Date.t>=?,
45
45
  ~selectedDay: option<Js.Date.t>=?,
46
46
  ~className="",
47
+ ~containerClassName="",
47
48
  ~counters: option<dayCounter>=?,
48
49
  ~periodLength=7,
49
50
  ~children,
@@ -109,7 +110,7 @@ let make = (
109
110
  {
110
111
  period: startOfWeek->Option.mapWithDefault(defaultPeriod, start => {
111
112
  start,
112
- end_: start->DateFns.addDays(periodLength - 1),
113
+ end_: isSm ? start->DateFns.addDays(periodLength - 1) : start->DateFns.addDays(2),
113
114
  }),
114
115
  selectedDay: selectedDay->Option.getWithDefault(
115
116
  startOfWeek->Option.getWithDefault(defaultPeriod.start),
@@ -119,8 +120,8 @@ let make = (
119
120
  )
120
121
  let intl = useIntl()
121
122
 
122
- <div className>
123
- <div className="border-neutral-300 flex justify-center items-center py-3">
123
+ <div className={containerClassName}>
124
+ <div className={cx(["border-neutral-300 flex justify-center items-center py-3", className])}>
124
125
  <Toolkit__Ui_IconButton
125
126
  size=#xs
126
127
  variant=#outline