@forgebuild/hotal-ui 0.23.10 → 0.23.13
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 +5 -0
- package/dist/hotal-ui.js +7657 -7476
- package/dist/index.d.ts +19 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -141,6 +141,8 @@ Search results, a Stripe payment form, booking submission, and confirmation —
|
|
|
141
141
|
| `createPaymentIntent` | `(date: string, guests: number) => Promise<PaymentIntentResult>` | Creates the Stripe PaymentIntent to hold |
|
|
142
142
|
| `book` | `(details: BookingDetails) => Promise<BookResult>` | Submits the reservation |
|
|
143
143
|
|
|
144
|
+
When `stripePublishableKey` / `createPaymentIntent` are not set, the payment section is not rendered, no card hold is taken, and `stripePaymentIntentId` is omitted from `BookingDetails`.
|
|
145
|
+
|
|
144
146
|
```ts
|
|
145
147
|
interface BookingSlot { time: string; availableTables: number; }
|
|
146
148
|
interface PaymentIntentResult { clientSecret: string; paymentIntentId: string; amountCents: number; }
|
|
@@ -200,6 +202,9 @@ A restaurant menu with category tabs (animated sliding indicator), an info grid,
|
|
|
200
202
|
| `layout` | `layout` | `'stacked' \| 'split'` | `'stacked'` | Classic variant only |
|
|
201
203
|
| `variant` | `variant` | `'default' \| 'panel'` | `'default'` | Visual variant |
|
|
202
204
|
| `theme` | `theme` (JSON) | `object` | `{}` | Color overrides, applied as CSS custom properties |
|
|
205
|
+
| `groupFilter` | `group-filter` | `boolean` | `false` | Pill row filtering the active category by item `group` (e.g. country on a wine list) |
|
|
206
|
+
| `countryFilter` | `country-filter` | `boolean` | `false` | Pill row filtering by item `country` (e.g. region), narrowed to the active group |
|
|
207
|
+
| `groupFilterAllLabel` / `countryFilterAllLabel` | `group-filter-all-label` / `country-filter-all-label` | `string` | `'All'` | Label of the "show everything" pill |
|
|
203
208
|
|
|
204
209
|
The `panel` variant expects the host page to load the Syne and Inter fonts.
|
|
205
210
|
|