@forgebuild/hotal-ui 0.3.4 → 0.4.3
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/dist/hotal-ui.js +1742 -1428
- package/dist/index.d.ts +40 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -50,10 +50,50 @@ export interface BookingFlowElement extends HTMLElement {
|
|
|
50
50
|
stripeAppearance?: Record<string, unknown>;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
export interface MenuItem {
|
|
54
|
+
name: string;
|
|
55
|
+
description?: string;
|
|
56
|
+
price?: string;
|
|
57
|
+
tagline?: string;
|
|
58
|
+
group?: string;
|
|
59
|
+
country?: string;
|
|
60
|
+
allergens?: string[];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface MenuCategory {
|
|
64
|
+
label: string;
|
|
65
|
+
items: MenuItem[];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface MenuInfoItem {
|
|
69
|
+
label: string;
|
|
70
|
+
value: string;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface Allergen {
|
|
74
|
+
id: string;
|
|
75
|
+
label: string;
|
|
76
|
+
icon: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface MenuSectionElement extends HTMLElement {
|
|
80
|
+
eyebrow?: string;
|
|
81
|
+
categories?: MenuCategory[];
|
|
82
|
+
info?: MenuInfoItem[];
|
|
83
|
+
allergens?: Allergen[];
|
|
84
|
+
pdfUrl?: string;
|
|
85
|
+
pdfLabel?: string;
|
|
86
|
+
topFlourishSrc?: string;
|
|
87
|
+
tailFlourishSrc?: string;
|
|
88
|
+
headingCircleColor?: string;
|
|
89
|
+
headingAlign?: 'center' | 'left';
|
|
90
|
+
}
|
|
91
|
+
|
|
53
92
|
declare global {
|
|
54
93
|
interface HTMLElementTagNameMap {
|
|
55
94
|
'reservation-bar': ReservationBarElement;
|
|
56
95
|
'booking-flow': BookingFlowElement;
|
|
96
|
+
'menu-section': MenuSectionElement;
|
|
57
97
|
}
|
|
58
98
|
|
|
59
99
|
interface HTMLElementEventMap {
|