@voyantjs/bookings-ui 0.19.0 → 0.21.0

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 (51) hide show
  1. package/dist/components/booking-dialog.d.ts.map +1 -1
  2. package/dist/components/booking-dialog.js +10 -1
  3. package/dist/components/booking-group-section.d.ts +11 -1
  4. package/dist/components/booking-group-section.d.ts.map +1 -1
  5. package/dist/components/booking-group-section.js +16 -2
  6. package/dist/components/booking-item-list.d.ts.map +1 -1
  7. package/dist/components/booking-item-list.js +71 -7
  8. package/dist/components/booking-list.d.ts.map +1 -1
  9. package/dist/components/booking-list.js +11 -3
  10. package/dist/components/booking-payments-summary.d.ts +28 -1
  11. package/dist/components/booking-payments-summary.d.ts.map +1 -1
  12. package/dist/components/booking-payments-summary.js +66 -11
  13. package/dist/components/traveler-list.d.ts +2 -1
  14. package/dist/components/traveler-list.d.ts.map +1 -1
  15. package/dist/components/traveler-list.js +126 -12
  16. package/dist/i18n/en.d.ts +12 -0
  17. package/dist/i18n/en.d.ts.map +1 -1
  18. package/dist/i18n/en.js +13 -1
  19. package/dist/i18n/messages.d.ts +14 -1
  20. package/dist/i18n/messages.d.ts.map +1 -1
  21. package/dist/i18n/provider.d.ts +24 -0
  22. package/dist/i18n/provider.d.ts.map +1 -1
  23. package/dist/i18n/ro.d.ts +12 -0
  24. package/dist/i18n/ro.d.ts.map +1 -1
  25. package/dist/i18n/ro.js +13 -1
  26. package/dist/journey/components/booking-journey.d.ts +3 -0
  27. package/dist/journey/components/booking-journey.d.ts.map +1 -0
  28. package/dist/journey/components/booking-journey.js +376 -0
  29. package/dist/journey/components/contract-preview-dialog.d.ts +47 -0
  30. package/dist/journey/components/contract-preview-dialog.d.ts.map +1 -0
  31. package/dist/journey/components/contract-preview-dialog.js +119 -0
  32. package/dist/journey/components/journey-steps.d.ts +47 -0
  33. package/dist/journey/components/journey-steps.d.ts.map +1 -0
  34. package/dist/journey/components/journey-steps.js +582 -0
  35. package/dist/journey/components/side-panel.d.ts +12 -0
  36. package/dist/journey/components/side-panel.d.ts.map +1 -0
  37. package/dist/journey/components/side-panel.js +172 -0
  38. package/dist/journey/components/step-header.d.ts +7 -0
  39. package/dist/journey/components/step-header.d.ts.map +1 -0
  40. package/dist/journey/components/step-header.js +28 -0
  41. package/dist/journey/index.d.ts +18 -0
  42. package/dist/journey/index.d.ts.map +1 -0
  43. package/dist/journey/index.js +17 -0
  44. package/dist/journey/lib/draft-state.d.ts +34 -0
  45. package/dist/journey/lib/draft-state.d.ts.map +1 -0
  46. package/dist/journey/lib/draft-state.js +54 -0
  47. package/dist/journey/types.d.ts +248 -0
  48. package/dist/journey/types.d.ts.map +1 -0
  49. package/dist/journey/types.js +17 -0
  50. package/package.json +31 -17
  51. package/src/styles.css +11 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/bookings-ui",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,6 +15,9 @@
15
15
  "import": "./dist/index.js",
16
16
  "default": "./dist/index.js"
17
17
  },
18
+ "./styles.css": {
19
+ "default": "./src/styles.css"
20
+ },
18
21
  "./i18n": {
19
22
  "types": "./dist/i18n/index.d.ts",
20
23
  "import": "./dist/i18n/index.js",
@@ -30,6 +33,11 @@
30
33
  "import": "./dist/i18n/ro.js",
31
34
  "default": "./dist/i18n/ro.js"
32
35
  },
36
+ "./journey": {
37
+ "types": "./dist/journey/index.d.ts",
38
+ "import": "./dist/journey/index.js",
39
+ "default": "./dist/journey/index.js"
40
+ },
33
41
  "./components/*": {
34
42
  "types": "./dist/components/*.d.ts",
35
43
  "import": "./dist/components/*.js",
@@ -38,20 +46,23 @@
38
46
  },
39
47
  "peerDependencies": {
40
48
  "@tanstack/react-query": "^5.0.0",
49
+ "lucide-react": "^0.475.0",
41
50
  "react": "^19.0.0",
42
51
  "react-dom": "^19.0.0",
43
52
  "react-hook-form": "^7.60.0",
44
53
  "zod": "^4.3.6",
45
- "@voyantjs/availability-react": "0.19.0",
46
- "@voyantjs/bookings-react": "0.19.0",
47
- "@voyantjs/crm-react": "0.19.0",
48
- "@voyantjs/finance-react": "0.19.0",
49
- "@voyantjs/legal-react": "0.19.0",
50
- "@voyantjs/products-react": "0.19.0",
51
- "@voyantjs/ui": "0.19.0"
54
+ "@voyantjs/availability-react": "0.21.0",
55
+ "@voyantjs/bookings-react": "0.21.0",
56
+ "@voyantjs/catalog": "0.21.0",
57
+ "@voyantjs/catalog-react": "0.21.0",
58
+ "@voyantjs/crm-react": "0.21.0",
59
+ "@voyantjs/finance-react": "0.21.0",
60
+ "@voyantjs/legal-react": "0.21.0",
61
+ "@voyantjs/products-react": "0.21.0",
62
+ "@voyantjs/ui": "0.21.0"
52
63
  },
53
64
  "dependencies": {
54
- "@voyantjs/i18n": "0.19.0"
65
+ "@voyantjs/i18n": "0.21.0"
55
66
  },
56
67
  "devDependencies": {
57
68
  "@tanstack/react-query": "^5.96.2",
@@ -64,17 +75,20 @@
64
75
  "typescript": "^6.0.2",
65
76
  "vitest": "^4.1.2",
66
77
  "zod": "^4.3.6",
67
- "@voyantjs/availability-react": "0.19.0",
68
- "@voyantjs/bookings-react": "0.19.0",
69
- "@voyantjs/crm-react": "0.19.0",
70
- "@voyantjs/finance-react": "0.19.0",
71
- "@voyantjs/legal-react": "0.19.0",
72
- "@voyantjs/products-react": "0.19.0",
78
+ "@voyantjs/availability-react": "0.21.0",
79
+ "@voyantjs/bookings-react": "0.21.0",
80
+ "@voyantjs/catalog": "0.21.0",
81
+ "@voyantjs/catalog-react": "0.21.0",
82
+ "@voyantjs/crm-react": "0.21.0",
83
+ "@voyantjs/finance-react": "0.21.0",
84
+ "@voyantjs/legal-react": "0.21.0",
85
+ "@voyantjs/products-react": "0.21.0",
73
86
  "@voyantjs/voyant-typescript-config": "0.1.0",
74
- "@voyantjs/ui": "0.19.0"
87
+ "@voyantjs/ui": "0.21.0"
75
88
  },
76
89
  "files": [
77
- "dist"
90
+ "dist",
91
+ "src/styles.css"
78
92
  ],
79
93
  "publishConfig": {
80
94
  "access": "public"
package/src/styles.css ADDED
@@ -0,0 +1,11 @@
1
+ /* Tailwind v4 source-detection helper.
2
+ *
3
+ * Templates that consume this package should `@import` this CSS so Tailwind
4
+ * scans these component files for utility classes:
5
+ *
6
+ * @import "@voyantjs/<domain>-ui/styles.css";
7
+ *
8
+ * Without it, classes that only appear inside this package (e.g. data-attr
9
+ * variants on primitives) won't be compiled into the final bundle.
10
+ */
11
+ @source "./components/**/*.{ts,tsx}";