@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.
Files changed (60) hide show
  1. package/README.md +38 -2
  2. package/index.js +5888 -0
  3. package/package.json +51 -4
  4. package/styles.css +1 -0
  5. package/types/booking/core/src/client.d.ts +21 -0
  6. package/types/booking/core/src/index.d.ts +5 -0
  7. package/types/booking/core/src/locale.d.ts +113 -0
  8. package/types/booking/core/src/timezone.d.ts +10 -0
  9. package/types/booking/core/src/types.d.ts +135 -0
  10. package/types/booking/core/src/validation.d.ts +9 -0
  11. package/types/booking/react/src/booking-context.d.ts +70 -0
  12. package/types/booking/react/src/booking-parts-context.d.ts +7 -0
  13. package/types/booking/react/src/booking-parts.d.ts +148 -0
  14. package/types/booking/react/src/booking-widget.d.ts +19 -0
  15. package/types/booking/react/src/component-types.d.ts +33 -0
  16. package/types/booking/react/src/components/card-arrow.d.ts +4 -0
  17. package/types/booking/react/src/components/date-step.d.ts +2 -0
  18. package/types/booking/react/src/components/details-step.d.ts +2 -0
  19. package/types/booking/react/src/components/doctor-step.d.ts +2 -0
  20. package/types/booking/react/src/components/existing-phone-step.d.ts +2 -0
  21. package/types/booking/react/src/components/existing-record-step.d.ts +4 -0
  22. package/types/booking/react/src/components/gate-step.d.ts +2 -0
  23. package/types/booking/react/src/components/index.d.ts +15 -0
  24. package/types/booking/react/src/components/option-card.d.ts +8 -0
  25. package/types/booking/react/src/components/otp-step.d.ts +2 -0
  26. package/types/booking/react/src/components/payment-step.d.ts +2 -0
  27. package/types/booking/react/src/components/phone-input.d.ts +16 -0
  28. package/types/booking/react/src/components/service-step.d.ts +2 -0
  29. package/types/booking/react/src/components/step-header.d.ts +2 -0
  30. package/types/booking/react/src/components/summary-modal.d.ts +2 -0
  31. package/types/booking/react/src/components/treatment-step.d.ts +2 -0
  32. package/types/booking/react/src/components/utils.d.ts +8 -0
  33. package/types/booking/react/src/environment.d.ts +16 -0
  34. package/types/booking/react/src/index.d.ts +6 -0
  35. package/types/booking/react/src/verification-session.d.ts +12 -0
  36. package/types/ui/src/components/application/date-picker/calendar.d.ts +14 -0
  37. package/types/ui/src/components/application/date-picker/cell.d.ts +11 -0
  38. package/types/ui/src/components/application/date-picker/date-picker.d.ts +20 -0
  39. package/types/ui/src/components/base/avatar/avatar.d.ts +64 -0
  40. package/types/ui/src/components/base/avatar/base-components/avatar-add-button.d.ts +8 -0
  41. package/types/ui/src/components/base/avatar/base-components/avatar-company-icon.d.ts +7 -0
  42. package/types/ui/src/components/base/avatar/base-components/avatar-count.d.ts +6 -0
  43. package/types/ui/src/components/base/avatar/base-components/avatar-online-indicator.d.ts +7 -0
  44. package/types/ui/src/components/base/avatar/base-components/index.d.ts +4 -0
  45. package/types/ui/src/components/base/avatar/base-components/verified-tick.d.ts +6 -0
  46. package/types/ui/src/components/base/buttons/button.d.ts +104 -0
  47. package/types/ui/src/components/base/checkbox/checkbox.d.ts +26 -0
  48. package/types/ui/src/components/base/input/hint-text.d.ts +14 -0
  49. package/types/ui/src/components/base/input/input-date.d.ts +41 -0
  50. package/types/ui/src/components/base/input/input.d.ts +63 -0
  51. package/types/ui/src/components/base/input/label.d.ts +15 -0
  52. package/types/ui/src/components/base/input/pin-input.d.ts +55 -0
  53. package/types/ui/src/components/base/select/combobox.d.ts +14 -0
  54. package/types/ui/src/components/base/select/popover.d.ts +7 -0
  55. package/types/ui/src/components/base/select/select-item.d.ts +10 -0
  56. package/types/ui/src/components/base/select/select-shared.d.ts +58 -0
  57. package/types/ui/src/components/base/select/select.d.ts +19 -0
  58. package/types/ui/src/components/base/tooltip/tooltip.d.ts +29 -0
  59. package/types/ui/src/utils/cx.d.ts +11 -0
  60. package/types/ui/src/utils/is-react-component.d.ts +19 -0
package/README.md CHANGED
@@ -1,3 +1,39 @@
1
- # Temporary Holding Version
1
+ # Veladent booking widget
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
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.