@mylikita/booking-widget 1.25.3 → 1.51.2
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 +23 -0
- package/dist/mylikita-booking-widget.cjs +1361 -31
- package/dist/mylikita-booking-widget.esm.js +1361 -31
- package/dist/mylikita-booking-widget.js +1361 -31
- package/dist/mylikita-booking-widget.min.js +396 -8
- package/package.json +1 -1
- package/src/client.js +98 -0
- package/src/styles.js +391 -5
- package/src/theme.js +15 -1
- package/src/widget.js +1025 -33
package/README.md
CHANGED
|
@@ -126,6 +126,7 @@ specificity fights:
|
|
|
126
126
|
--mlw-primary: #0d9488; /* buttons, focus rings, accents */
|
|
127
127
|
--mlw-primary-dark: #0f766e; /* hover state */
|
|
128
128
|
--mlw-primary-text: #ffffff; /* button label */
|
|
129
|
+
--mlw-accent: #0d9488; /* second tone of the two-tone brand */
|
|
129
130
|
--mlw-bg: #ffffff; /* widget background */
|
|
130
131
|
--mlw-text: #1e293b; /* labels + values */
|
|
131
132
|
--mlw-muted: #64748b; /* secondary text */
|
|
@@ -146,6 +147,28 @@ createBookingWidget(el, {
|
|
|
146
147
|
});
|
|
147
148
|
```
|
|
148
149
|
|
|
150
|
+
### Two-tone branding (matching the hosted booking page)
|
|
151
|
+
|
|
152
|
+
MyLikita's hosted booking page themes itself with the clinic's two-tone brand
|
|
153
|
+
— a brand→accent gradient strip and avatar. The widget mirrors that on its
|
|
154
|
+
**confirmation / status screen**: a brand→accent gradient bar sits at the top
|
|
155
|
+
of the status view and the pending (">…") icon is a brand→accent gradient
|
|
156
|
+
badge, so an embed reads as the same branded page. Semantic results keep
|
|
157
|
+
semantic colours (green ✓ = confirmed, red = cancelled/missed/expired).
|
|
158
|
+
|
|
159
|
+
Pass the second tone as `accent` (or `secondary` — the alias the hosted page
|
|
160
|
+
and the facility settings snippet use):
|
|
161
|
+
|
|
162
|
+
```js
|
|
163
|
+
createBookingWidget(el, {
|
|
164
|
+
relayUrl, websiteKey, facilityId,
|
|
165
|
+
theme: {
|
|
166
|
+
primary: '#7C3AED', // brand — buttons, focus, links
|
|
167
|
+
secondary: '#F59E0B', // accent — gradient bar + pending icon
|
|
168
|
+
},
|
|
169
|
+
});
|
|
170
|
+
```
|
|
171
|
+
|
|
149
172
|
## Support
|
|
150
173
|
|
|
151
174
|
- **Issues:** report through your MyLikita account manager or the MyLikita
|