@forgebuild/hotal-ui 0.23.15 → 0.23.18

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/README.md CHANGED
@@ -52,8 +52,9 @@ A date / guests / time picker bar with a Reserve link, popovers positioned via F
52
52
  | `defaultGuests` | `default-guests` | `number` | `2` | Initial party size |
53
53
  | `timeSlots` | `time-slots` (JSON array) | `string[]` | `'7:00 PM'`–`'11:00 PM'` in 30-min steps | Selectable time options |
54
54
  | `defaultTime` | `default-time` | `string` | `'7:00 PM'` | Initial time |
55
- | `showReserveButton` | `show-reserve-button` | `boolean` | `true` | When `false`, selecting any value auto-navigates instead of showing a Reserve link. **Set as a JS property to get `false`** — see note above. |
55
+ | `showReserveButton` | `show-reserve-button` | `boolean` | `true` | Whether the Reserve link is rendered. **Set as a JS property to get `false`** — see note above. |
56
56
  | `reserveHref` | `reserve-href` | `string` | `'/reservations'` | Base URL the built query string is appended to |
57
+ | `applyOnSelect` | `apply-on-select` | `boolean` | `!showReserveButton` | Whether selecting a date/guests/time navigates to `reserveHref` immediately. Defaults to the inverse of `showReserveButton` (hiding the button makes the bar auto-navigate, its historical behavior); set explicitly to decouple the two — e.g. hide the button but keep `applyOnSelect={false}` when a host page syncs an inline booking flow itself off `reservationchange` and no navigation should happen. **Set as a JS property to get `false`.** |
57
58
  | `syncWithUrl` | `sync-with-url` | `boolean` | `false` | Read initial date/guests/time from `location.search` on mount |
58
59
  | `closedWeekdays` | `closed-weekdays` (JSON array) | `number[]` | `[]` | Weekdays (`0`=Sun–`6`=Sat) to disable in the calendar |
59
60
  | `fetchAvailableDates` | — (property only) | `(partySize: number) => Promise<string[]>` | `undefined` | Drives which calendar dates are selectable |