@veladent/booking-widget 0.0.0-stage → 1.0.4-dev.11
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 +38 -2
- package/index.js +5888 -0
- package/package.json +51 -4
- package/styles.css +1 -0
- package/types/booking/core/src/client.d.ts +21 -0
- package/types/booking/core/src/index.d.ts +5 -0
- package/types/booking/core/src/locale.d.ts +113 -0
- package/types/booking/core/src/timezone.d.ts +10 -0
- package/types/booking/core/src/types.d.ts +135 -0
- package/types/booking/core/src/validation.d.ts +9 -0
- package/types/booking/react/src/booking-context.d.ts +70 -0
- package/types/booking/react/src/booking-parts-context.d.ts +7 -0
- package/types/booking/react/src/booking-parts.d.ts +148 -0
- package/types/booking/react/src/booking-widget.d.ts +19 -0
- package/types/booking/react/src/component-types.d.ts +33 -0
- package/types/booking/react/src/components/card-arrow.d.ts +4 -0
- package/types/booking/react/src/components/date-step.d.ts +2 -0
- package/types/booking/react/src/components/details-step.d.ts +2 -0
- package/types/booking/react/src/components/doctor-step.d.ts +2 -0
- package/types/booking/react/src/components/existing-phone-step.d.ts +2 -0
- package/types/booking/react/src/components/existing-record-step.d.ts +4 -0
- package/types/booking/react/src/components/gate-step.d.ts +2 -0
- package/types/booking/react/src/components/index.d.ts +15 -0
- package/types/booking/react/src/components/option-card.d.ts +8 -0
- package/types/booking/react/src/components/otp-step.d.ts +2 -0
- package/types/booking/react/src/components/payment-step.d.ts +2 -0
- package/types/booking/react/src/components/phone-input.d.ts +16 -0
- package/types/booking/react/src/components/service-step.d.ts +2 -0
- package/types/booking/react/src/components/step-header.d.ts +2 -0
- package/types/booking/react/src/components/summary-modal.d.ts +2 -0
- package/types/booking/react/src/components/treatment-step.d.ts +2 -0
- package/types/booking/react/src/components/utils.d.ts +8 -0
- package/types/booking/react/src/environment.d.ts +16 -0
- package/types/booking/react/src/index.d.ts +6 -0
- package/types/booking/react/src/verification-session.d.ts +12 -0
- package/types/ui/src/components/application/date-picker/calendar.d.ts +14 -0
- package/types/ui/src/components/application/date-picker/cell.d.ts +11 -0
- package/types/ui/src/components/application/date-picker/date-picker.d.ts +20 -0
- package/types/ui/src/components/base/avatar/avatar.d.ts +64 -0
- package/types/ui/src/components/base/avatar/base-components/avatar-add-button.d.ts +8 -0
- package/types/ui/src/components/base/avatar/base-components/avatar-company-icon.d.ts +7 -0
- package/types/ui/src/components/base/avatar/base-components/avatar-count.d.ts +6 -0
- package/types/ui/src/components/base/avatar/base-components/avatar-online-indicator.d.ts +7 -0
- package/types/ui/src/components/base/avatar/base-components/index.d.ts +4 -0
- package/types/ui/src/components/base/avatar/base-components/verified-tick.d.ts +6 -0
- package/types/ui/src/components/base/buttons/button.d.ts +104 -0
- package/types/ui/src/components/base/checkbox/checkbox.d.ts +26 -0
- package/types/ui/src/components/base/input/hint-text.d.ts +14 -0
- package/types/ui/src/components/base/input/input-date.d.ts +41 -0
- package/types/ui/src/components/base/input/input.d.ts +63 -0
- package/types/ui/src/components/base/input/label.d.ts +15 -0
- package/types/ui/src/components/base/input/pin-input.d.ts +55 -0
- package/types/ui/src/components/base/select/combobox.d.ts +14 -0
- package/types/ui/src/components/base/select/popover.d.ts +7 -0
- package/types/ui/src/components/base/select/select-item.d.ts +10 -0
- package/types/ui/src/components/base/select/select-shared.d.ts +58 -0
- package/types/ui/src/components/base/select/select.d.ts +19 -0
- package/types/ui/src/components/base/tooltip/tooltip.d.ts +29 -0
- package/types/ui/src/utils/cx.d.ts +11 -0
- package/types/ui/src/utils/is-react-component.d.ts +19 -0
package/README.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Veladent booking widget
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The Veladent booking flow for React 19. Includes the complete widget, composable
|
|
4
|
+
booking parts, a provider, hooks, and individual step components.
|
|
5
|
+
|
|
6
|
+
```sh
|
|
7
|
+
npm install @veladent/booking-widget
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
```tsx
|
|
11
|
+
import { BookingWidget } from "@veladent/booking-widget";
|
|
12
|
+
import "@veladent/booking-widget/styles.css";
|
|
13
|
+
|
|
14
|
+
export function BookingPage() {
|
|
15
|
+
return (
|
|
16
|
+
<BookingWidget
|
|
17
|
+
baseUrl="YOUR_API_BASE_URL"
|
|
18
|
+
publishableKey="YOUR_SITE_PUBLISHABLE_KEY"
|
|
19
|
+
/>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
React and React DOM 19 are peer dependencies. JavaScript, TypeScript declarations,
|
|
25
|
+
and compiled CSS are included; no Tailwind configuration or monorepo checkout is
|
|
26
|
+
required. For Next.js, render the widget from a client component and import the
|
|
27
|
+
stylesheet from the application layout. The stylesheet includes Tailwind base
|
|
28
|
+
styles and shared theme tokens; review its interaction with your application's
|
|
29
|
+
existing styles.
|
|
30
|
+
|
|
31
|
+
Use `@veladent/booking-widget@dev` or `@veladent/booking-widget@sandbox` for public
|
|
32
|
+
prereleases. Without a channel, npm installs the stable (`latest`) release.
|
|
33
|
+
|
|
34
|
+
All channels accept the API URL and site publishable key at runtime. Enable
|
|
35
|
+
online booking for the site and allow the application's origin in booking
|
|
36
|
+
settings. Never supply a server secret or npm token to this component.
|
|
37
|
+
|
|
38
|
+
Use the `locale`, `timeZone`, and `theme` props for the site's settings. The
|
|
39
|
+
widget preserves the booking flow's locale, timezone, and RTL behavior.
|