@getmicdrop/svelte-components 2.6.0 → 2.6.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/__LIB_STORES__.js +2 -30
- package/dist/components/Badges/Badge.svelte +17 -268
- package/dist/components/Badges/Badge.svelte.d.ts +2 -18
- package/dist/components/Badges/Badge.svelte.d.ts.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.svelte +36 -65
- package/dist/components/Breadcrumb/Breadcrumb.svelte.d.ts +2 -16
- package/dist/components/Breadcrumb/Breadcrumb.svelte.d.ts.map +1 -1
- package/dist/components/Button/Button.svelte +3 -136
- package/dist/components/Button/Button.svelte.d.ts +0 -2
- package/dist/components/Button/Button.svelte.d.ts.map +1 -1
- package/dist/components/Calendar/Calendar.spec.d.ts +2 -0
- package/dist/components/Calendar/Calendar.spec.d.ts.map +1 -0
- package/dist/components/Calendar/Calendar.spec.js +131 -0
- package/dist/components/Calendar/Calendar.svelte +1115 -0
- package/dist/components/Calendar/{MiniMonthCalendar.svelte.d.ts → Calendar.svelte.d.ts} +21 -20
- package/dist/components/Calendar/Calendar.svelte.d.ts.map +1 -0
- package/dist/components/Calendar/QuarterView.spec.d.ts +2 -0
- package/dist/components/Calendar/QuarterView.spec.d.ts.map +1 -0
- package/dist/components/Calendar/QuarterView.spec.js +394 -0
- package/dist/components/Calendar/QuarterView.stories.svelte +134 -0
- package/dist/components/{ShowTimeCard/ShowTimeCard.svelte.d.ts → Calendar/QuarterView.stories.svelte.d.ts} +21 -17
- package/dist/components/Calendar/QuarterView.stories.svelte.d.ts.map +1 -0
- package/dist/components/Calendar/QuarterView.svelte +736 -0
- package/dist/components/{FAQs/FAQs.svelte.d.ts → Calendar/QuarterView.svelte.d.ts} +10 -10
- package/dist/components/{Skeleton/Skeleton.svelte.d.ts.map → Calendar/QuarterView.svelte.d.ts.map} +1 -1
- package/dist/components/Card.svelte +2 -2
- package/dist/components/Card.svelte.d.ts +2 -2
- package/dist/components/Card.svelte.d.ts.map +1 -1
- package/dist/components/DarkModeToggle.svelte +0 -2
- package/dist/components/DarkModeToggle.svelte.d.ts.map +1 -1
- package/dist/components/ErrorDisplay.svelte.d.ts +2 -2
- package/dist/components/Input/Input.svelte +12 -105
- package/dist/components/Input/Input.svelte.d.ts +12 -28
- package/dist/components/Input/Input.svelte.d.ts.map +1 -1
- package/dist/components/Input/MultiSelect.svelte +5 -4
- package/dist/components/Input/MultiSelect.svelte.d.ts +8 -8
- package/dist/components/Input/MultiSelect.svelte.d.ts.map +1 -1
- package/dist/components/Input/OTPInput.svelte +1 -1
- package/dist/components/Input/Select.svelte +5 -4
- package/dist/components/Input/Select.svelte.d.ts +8 -8
- package/dist/components/Input/Select.svelte.d.ts.map +1 -1
- package/dist/components/Layout/Header.svelte +4 -14
- package/dist/components/Modal/ConfirmationModal.svelte +17 -69
- package/dist/components/Modal/ConfirmationModal.svelte.d.ts +0 -22
- package/dist/components/Modal/ConfirmationModal.svelte.d.ts.map +1 -1
- package/dist/components/Modal/Modal.svelte +8 -34
- package/dist/components/Modal/Modal.svelte.d.ts +0 -2
- package/dist/components/Modal/Modal.svelte.d.ts.map +1 -1
- package/dist/components/PasswordStrengthIndicator/PasswordStrengthIndicator.svelte.d.ts +2 -2
- package/dist/components/Spinner/Spinner.svelte +17 -73
- package/dist/components/Spinner/Spinner.svelte.d.ts +3 -5
- package/dist/components/Spinner/Spinner.svelte.d.ts.map +1 -1
- package/dist/components/pages/performers/AvailabilityCalendarModal.svelte +632 -0
- package/dist/components/{PublicCard/PublicCard.svelte.d.ts → pages/performers/AvailabilityCalendarModal.svelte.d.ts} +14 -12
- package/dist/components/pages/performers/AvailabilityCalendarModal.svelte.d.ts.map +1 -0
- package/dist/components/pages/performers/ShowDetails.svelte.d.ts +4 -4
- package/dist/components/pages/performers/ShowItemCard.svelte.d.ts +8 -8
- package/dist/components/pages/performers/SwitchOption.svelte.d.ts +2 -2
- package/dist/components/pages/performers/VenueInfo.svelte.d.ts +2 -2
- package/dist/components/pages/performers/VenueItemCard.svelte +2 -2
- package/dist/components/pages/performers/VenueItemCard.svelte.d.ts +4 -4
- package/dist/components/pages/profile/profile-form.svelte +1 -1
- package/dist/components/pages/settings/tabs/CustomImageDropzone.svelte.d.ts +2 -2
- package/dist/components/pages/shows/TabNavigation.svelte +8 -7
- package/dist/constants/formOptions.d.ts +2 -5
- package/dist/constants/formOptions.d.ts.map +1 -1
- package/dist/constants/formOptions.js +1 -2
- package/dist/index.d.ts +4 -28
- package/dist/index.js +29 -33
- package/dist/services/EventService.js +75 -75
- package/dist/services/EventService.spec.js +217 -217
- package/dist/services/ShowService.spec.js +342 -342
- package/package.json +160 -160
- package/dist/components/AboutShow/AboutShow.svelte +0 -278
- package/dist/components/AboutShow/AboutShow.svelte.d.ts +0 -43
- package/dist/components/AboutShow/AboutShow.svelte.d.ts.map +0 -1
- package/dist/components/Accordion/Accordion.svelte +0 -44
- package/dist/components/Accordion/Accordion.svelte.d.ts +0 -42
- package/dist/components/Accordion/Accordion.svelte.d.ts.map +0 -1
- package/dist/components/Accordion/AccordionItem.svelte +0 -141
- package/dist/components/Accordion/AccordionItem.svelte.d.ts +0 -50
- package/dist/components/Accordion/AccordionItem.svelte.d.ts.map +0 -1
- package/dist/components/Calendar/MiniMonthCalendar.svelte +0 -1446
- package/dist/components/Calendar/MiniMonthCalendar.svelte.d.ts.map +0 -1
- package/dist/components/Checkbox/Checkbox.svelte +0 -90
- package/dist/components/Checkbox/Checkbox.svelte.d.ts +0 -64
- package/dist/components/Checkbox/Checkbox.svelte.d.ts.map +0 -1
- package/dist/components/Drawer/Drawer.svelte +0 -207
- package/dist/components/Drawer/Drawer.svelte.d.ts +0 -74
- package/dist/components/Drawer/Drawer.svelte.d.ts.map +0 -1
- package/dist/components/Dropdown/Dropdown.svelte +0 -193
- package/dist/components/Dropdown/Dropdown.svelte.d.ts +0 -50
- package/dist/components/Dropdown/Dropdown.svelte.d.ts.map +0 -1
- package/dist/components/Dropdown/DropdownItem.svelte +0 -111
- package/dist/components/Dropdown/DropdownItem.svelte.d.ts +0 -48
- package/dist/components/Dropdown/DropdownItem.svelte.d.ts.map +0 -1
- package/dist/components/Dropdown/SelectDropdown.svelte +0 -301
- package/dist/components/Dropdown/SelectDropdown.svelte.d.ts +0 -51
- package/dist/components/Dropdown/SelectDropdown.svelte.d.ts.map +0 -1
- package/dist/components/EmptyState/EmptyState.svelte +0 -80
- package/dist/components/EmptyState/EmptyState.svelte.d.ts +0 -37
- package/dist/components/EmptyState/EmptyState.svelte.d.ts.map +0 -1
- package/dist/components/FAQs/FAQs.svelte +0 -49
- package/dist/components/FAQs/FAQs.svelte.d.ts.map +0 -1
- package/dist/components/Input/Search.svelte +0 -173
- package/dist/components/Input/Search.svelte.d.ts +0 -68
- package/dist/components/Input/Search.svelte.d.ts.map +0 -1
- package/dist/components/Input/Textarea.svelte +0 -160
- package/dist/components/Input/Textarea.svelte.d.ts +0 -69
- package/dist/components/Input/Textarea.svelte.d.ts.map +0 -1
- package/dist/components/Label/Label.svelte +0 -60
- package/dist/components/Label/Label.svelte.d.ts +0 -48
- package/dist/components/Label/Label.svelte.d.ts.map +0 -1
- package/dist/components/Layout/PageLayout.svelte +0 -64
- package/dist/components/Layout/PageLayout.svelte.d.ts +0 -58
- package/dist/components/Layout/PageLayout.svelte.d.ts.map +0 -1
- package/dist/components/Modal/InputModal.svelte +0 -180
- package/dist/components/Modal/InputModal.svelte.d.ts +0 -77
- package/dist/components/Modal/InputModal.svelte.d.ts.map +0 -1
- package/dist/components/Modal/StatusModal.svelte +0 -221
- package/dist/components/Modal/StatusModal.svelte.d.ts +0 -59
- package/dist/components/Modal/StatusModal.svelte.d.ts.map +0 -1
- package/dist/components/MonthSwitcher/MonthSwitcher.svelte +0 -206
- package/dist/components/MonthSwitcher/MonthSwitcher.svelte.d.ts +0 -37
- package/dist/components/MonthSwitcher/MonthSwitcher.svelte.d.ts.map +0 -1
- package/dist/components/OrderSummary/OrderSummary.svelte +0 -553
- package/dist/components/OrderSummary/OrderSummary.svelte.d.ts +0 -65
- package/dist/components/OrderSummary/OrderSummary.svelte.d.ts.map +0 -1
- package/dist/components/Pagination/Pagination.svelte +0 -197
- package/dist/components/Pagination/Pagination.svelte.d.ts +0 -53
- package/dist/components/Pagination/Pagination.svelte.d.ts.map +0 -1
- package/dist/components/PublicCard/PublicCard.svelte +0 -267
- package/dist/components/PublicCard/PublicCard.svelte.d.ts.map +0 -1
- package/dist/components/Radio/Radio.svelte +0 -119
- package/dist/components/Radio/Radio.svelte.d.ts +0 -54
- package/dist/components/Radio/Radio.svelte.d.ts.map +0 -1
- package/dist/components/ShowCard/ShowCard.svelte +0 -240
- package/dist/components/ShowCard/ShowCard.svelte.d.ts +0 -39
- package/dist/components/ShowCard/ShowCard.svelte.d.ts.map +0 -1
- package/dist/components/ShowTimeCard/ShowTimeCard.svelte +0 -92
- package/dist/components/ShowTimeCard/ShowTimeCard.svelte.d.ts.map +0 -1
- package/dist/components/Skeleton/Skeleton.svelte +0 -68
- package/dist/components/Skeleton/Skeleton.svelte.d.ts +0 -37
- package/dist/components/Tabs/TabItem.svelte +0 -39
- package/dist/components/Tabs/TabItem.svelte.d.ts +0 -52
- package/dist/components/Tabs/TabItem.svelte.d.ts.map +0 -1
- package/dist/components/Tabs/Tabs.svelte +0 -181
- package/dist/components/Tabs/Tabs.svelte.d.ts +0 -46
- package/dist/components/Tabs/Tabs.svelte.d.ts.map +0 -1
- package/dist/components/Typography/Typography.svelte +0 -50
- package/dist/components/Typography/Typography.svelte.d.ts +0 -48
- package/dist/components/Typography/Typography.svelte.d.ts.map +0 -1
package/dist/__LIB_STORES__.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { writable } from 'svelte/store';
|
|
2
2
|
|
|
3
|
-
// Create a
|
|
3
|
+
// Create a minimal page store for library builds
|
|
4
4
|
const createPageStore = () => {
|
|
5
|
-
const
|
|
5
|
+
const { subscribe, set } = writable({
|
|
6
6
|
url: typeof window !== 'undefined' ? new URL(window.location.href) : new URL('http://localhost'),
|
|
7
7
|
params: {},
|
|
8
8
|
route: { id: null },
|
|
@@ -13,34 +13,6 @@ const createPageStore = () => {
|
|
|
13
13
|
state: {}
|
|
14
14
|
});
|
|
15
15
|
|
|
16
|
-
const { subscribe, set } = writable(getPageState());
|
|
17
|
-
|
|
18
|
-
// Listen for navigation events in the browser
|
|
19
|
-
if (typeof window !== 'undefined') {
|
|
20
|
-
// Update on popstate (back/forward navigation)
|
|
21
|
-
window.addEventListener('popstate', () => set(getPageState()));
|
|
22
|
-
|
|
23
|
-
// Intercept pushState and replaceState to detect programmatic navigation
|
|
24
|
-
const originalPushState = history.pushState;
|
|
25
|
-
const originalReplaceState = history.replaceState;
|
|
26
|
-
|
|
27
|
-
history.pushState = function(...args) {
|
|
28
|
-
originalPushState.apply(this, args);
|
|
29
|
-
set(getPageState());
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
history.replaceState = function(...args) {
|
|
33
|
-
originalReplaceState.apply(this, args);
|
|
34
|
-
set(getPageState());
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
// Also listen for click events on links to catch SvelteKit navigation
|
|
38
|
-
window.addEventListener('click', (e) => {
|
|
39
|
-
// Small delay to let the navigation complete
|
|
40
|
-
setTimeout(() => set(getPageState()), 0);
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
|
|
44
16
|
return { subscribe };
|
|
45
17
|
};
|
|
46
18
|
|
|
@@ -6,25 +6,11 @@
|
|
|
6
6
|
|
|
7
7
|
export let size = "medium";
|
|
8
8
|
export let className = "";
|
|
9
|
-
/** @type {string
|
|
9
|
+
/** @type {string} Semantic variant (required) */
|
|
10
10
|
export let variant = "neutral";
|
|
11
|
-
/** @type {string|null} Event display type: "square" or "circle" */
|
|
12
|
-
export let event = null;
|
|
13
|
-
/** @type {string|null} Custom text color (hex) */
|
|
14
|
-
export let textColor = null;
|
|
15
|
-
/** @type {string|null} Custom background color (hex or rgba) */
|
|
16
|
-
export let bgColor = null;
|
|
17
|
-
/** @type {boolean} Show status dot before text (uses variant color) */
|
|
18
|
-
export let showDot = false;
|
|
19
|
-
/** @type {boolean} Pill mode for counts/notifications (circular, minimal padding) */
|
|
20
|
-
export let pill = false;
|
|
21
|
-
/** @type {"rounded"|"pill"} Border radius style - rounded-rect or full pill */
|
|
22
|
-
export let shape = "rounded";
|
|
23
11
|
|
|
24
12
|
$: sizeClass = (() => {
|
|
25
13
|
switch (size) {
|
|
26
|
-
case "xs":
|
|
27
|
-
return "badge-xs";
|
|
28
14
|
case "small":
|
|
29
15
|
return "badge-sm";
|
|
30
16
|
case "medium":
|
|
@@ -36,26 +22,8 @@
|
|
|
36
22
|
}
|
|
37
23
|
})();
|
|
38
24
|
|
|
39
|
-
$: shapeClass = pill ? "badge-pill" : (shape === "pill" ? "badge-shape-pill" : "badge-shape-rounded");
|
|
40
|
-
|
|
41
|
-
// Handle tier numbers (1-5) as variants
|
|
42
|
-
$: normalizedVariant = (() => {
|
|
43
|
-
if (typeof variant === "number" || !isNaN(Number(variant))) {
|
|
44
|
-
const tierNum = Number(variant);
|
|
45
|
-
switch (tierNum) {
|
|
46
|
-
case 1: return "tier-1";
|
|
47
|
-
case 2: return "tier-2";
|
|
48
|
-
case 3: return "tier-3";
|
|
49
|
-
case 4: return "tier-4";
|
|
50
|
-
case 5: return "tier-5";
|
|
51
|
-
default: return "neutral";
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return String(variant).toLowerCase();
|
|
55
|
-
})();
|
|
56
|
-
|
|
57
25
|
$: variantClass = (() => {
|
|
58
|
-
switch (
|
|
26
|
+
switch (variant.toLowerCase()) {
|
|
59
27
|
// Role variants
|
|
60
28
|
case "host":
|
|
61
29
|
return "badge-host";
|
|
@@ -79,60 +47,14 @@
|
|
|
79
47
|
case "warning":
|
|
80
48
|
return "badge-warning";
|
|
81
49
|
case "error":
|
|
82
|
-
case "danger":
|
|
83
50
|
return "badge-error";
|
|
84
51
|
case "info":
|
|
85
52
|
return "badge-info";
|
|
86
|
-
// Search result type variants
|
|
87
|
-
case "event":
|
|
88
|
-
return "badge-event-type";
|
|
89
|
-
case "venue":
|
|
90
|
-
return "badge-venue";
|
|
91
|
-
case "user":
|
|
92
|
-
return "badge-user";
|
|
93
|
-
case "order":
|
|
94
|
-
return "badge-order";
|
|
95
|
-
case "performer":
|
|
96
|
-
return "badge-performer";
|
|
97
|
-
// Notification count
|
|
98
|
-
case "notification":
|
|
99
|
-
return "badge-notification";
|
|
100
|
-
// Tier variants (for lineup position badges)
|
|
101
|
-
case "tier-1":
|
|
102
|
-
return "badge-tier-1";
|
|
103
|
-
case "tier-2":
|
|
104
|
-
return "badge-tier-2";
|
|
105
|
-
case "tier-3":
|
|
106
|
-
return "badge-tier-3";
|
|
107
|
-
case "tier-4":
|
|
108
|
-
return "badge-tier-4";
|
|
109
|
-
case "tier-5":
|
|
110
|
-
return "badge-tier-5";
|
|
111
53
|
case "neutral":
|
|
112
54
|
default:
|
|
113
55
|
return "badge-neutral";
|
|
114
56
|
}
|
|
115
57
|
})();
|
|
116
|
-
|
|
117
|
-
$: eventClass = (() => {
|
|
118
|
-
if (!event) return "";
|
|
119
|
-
switch (event) {
|
|
120
|
-
case "square":
|
|
121
|
-
return "badge-event-square";
|
|
122
|
-
case "circle":
|
|
123
|
-
return "badge-event-circle";
|
|
124
|
-
default:
|
|
125
|
-
return "";
|
|
126
|
-
}
|
|
127
|
-
})();
|
|
128
|
-
|
|
129
|
-
// Custom style for text/bg color overrides
|
|
130
|
-
$: customStyle = (() => {
|
|
131
|
-
const styles = [];
|
|
132
|
-
if (textColor) styles.push(`color: ${textColor}`);
|
|
133
|
-
if (bgColor) styles.push(`background-color: ${bgColor}`);
|
|
134
|
-
return styles.length > 0 ? styles.join("; ") : null;
|
|
135
|
-
})();
|
|
136
58
|
</script>
|
|
137
59
|
|
|
138
60
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
@@ -142,129 +64,55 @@
|
|
|
142
64
|
"badge",
|
|
143
65
|
sizeClass,
|
|
144
66
|
variantClass,
|
|
145
|
-
eventClass,
|
|
146
|
-
shapeClass,
|
|
147
67
|
className
|
|
148
68
|
)}
|
|
149
|
-
|
|
150
|
-
on:click={(e) => dispatch("click", e)}
|
|
69
|
+
on:click={(event) => dispatch("click", event)}
|
|
151
70
|
>
|
|
152
|
-
{#if showDot}
|
|
153
|
-
<span class="badge-dot"></span>
|
|
154
|
-
{/if}
|
|
155
|
-
<slot name="leftIcon" />
|
|
156
71
|
<slot />
|
|
157
72
|
</div>
|
|
158
73
|
|
|
159
74
|
<!--
|
|
160
75
|
Usage: <Badge variant="host">Host</Badge>
|
|
161
76
|
|
|
162
|
-
With icon: <Badge variant="success"><CheckIcon slot="leftIcon" />Verified</Badge>
|
|
163
|
-
With dot: <Badge variant="success" showDot>On Sale</Badge>
|
|
164
|
-
|
|
165
77
|
Role variants: host, headliner, feature, special-guest, opener, guest, teacher, assistant
|
|
166
78
|
Status variants: success, warning, error, info, neutral
|
|
167
|
-
Tier variants: 1, 2, 3, 4, 5 (pass as number or string)
|
|
168
|
-
Event types: event="square" or event="circle"
|
|
169
|
-
Sizes: xs, small, medium, large
|
|
170
|
-
Shape: shape="rounded" (default, rounded-rect) or shape="pill" (full pill)
|
|
171
|
-
Pill mode: pill={true} for notification counts (circular, minimal padding)
|
|
172
|
-
Custom colors: textColor="#hex" bgColor="rgba(...)"
|
|
173
79
|
-->
|
|
174
80
|
|
|
175
81
|
<style>
|
|
176
82
|
/* Base badge styles */
|
|
177
83
|
.badge {
|
|
178
84
|
cursor: pointer;
|
|
179
|
-
gap: 0.
|
|
85
|
+
gap: 0.25rem;
|
|
180
86
|
display: inline-flex;
|
|
181
87
|
align-items: center;
|
|
182
88
|
}
|
|
183
89
|
|
|
184
|
-
/* Status dot */
|
|
185
|
-
.badge-dot {
|
|
186
|
-
width: 6px;
|
|
187
|
-
height: 6px;
|
|
188
|
-
border-radius: 9999px;
|
|
189
|
-
background-color: currentColor;
|
|
190
|
-
flex-shrink: 0;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
90
|
/* Size variants */
|
|
194
|
-
.badge-xs {
|
|
195
|
-
padding: 2px 6px;
|
|
196
|
-
font-size: 10px;
|
|
197
|
-
line-height: 12px;
|
|
198
|
-
font-weight: 500;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
91
|
.badge-sm {
|
|
202
|
-
padding: 2px
|
|
203
|
-
|
|
204
|
-
|
|
92
|
+
padding-left: 2px;
|
|
93
|
+
padding-right: 2px;
|
|
94
|
+
font-size: 7px;
|
|
95
|
+
line-height: 7px;
|
|
96
|
+
border-radius: 4px;
|
|
205
97
|
font-weight: 500;
|
|
206
98
|
}
|
|
207
99
|
|
|
208
100
|
.badge-md {
|
|
209
|
-
padding:
|
|
210
|
-
font-size:
|
|
211
|
-
line-height:
|
|
101
|
+
padding: 2px 8.5px;
|
|
102
|
+
font-size: 10px;
|
|
103
|
+
line-height: 14px;
|
|
104
|
+
border-radius: 6px;
|
|
212
105
|
font-weight: 600;
|
|
213
106
|
}
|
|
214
107
|
|
|
215
108
|
.badge-lg {
|
|
216
|
-
padding: 6px
|
|
217
|
-
font-size:
|
|
218
|
-
line-height:
|
|
109
|
+
padding: 6px 15.5px;
|
|
110
|
+
font-size: 0.875rem;
|
|
111
|
+
line-height: 14px;
|
|
112
|
+
border-radius: 6px;
|
|
219
113
|
font-weight: 500;
|
|
220
114
|
}
|
|
221
115
|
|
|
222
|
-
/* Shape variants - rounded-rect is default */
|
|
223
|
-
.badge-shape-rounded {
|
|
224
|
-
border-radius: 4px;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
/* Full pill shape */
|
|
228
|
-
.badge-shape-pill {
|
|
229
|
-
border-radius: 9999px;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
/* Pill mode for counts/notifications */
|
|
233
|
-
.badge-pill {
|
|
234
|
-
border-radius: 9999px;
|
|
235
|
-
min-width: 20px;
|
|
236
|
-
height: 20px;
|
|
237
|
-
padding: 0 6px;
|
|
238
|
-
font-size: 11px;
|
|
239
|
-
line-height: 20px;
|
|
240
|
-
font-weight: 600;
|
|
241
|
-
justify-content: center;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
.badge-pill.badge-xs {
|
|
245
|
-
min-width: 16px;
|
|
246
|
-
height: 16px;
|
|
247
|
-
padding: 0 4px;
|
|
248
|
-
font-size: 10px;
|
|
249
|
-
line-height: 16px;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
.badge-pill.badge-sm {
|
|
253
|
-
min-width: 18px;
|
|
254
|
-
height: 18px;
|
|
255
|
-
padding: 0 5px;
|
|
256
|
-
font-size: 10px;
|
|
257
|
-
line-height: 18px;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
.badge-pill.badge-lg {
|
|
261
|
-
min-width: 24px;
|
|
262
|
-
height: 24px;
|
|
263
|
-
padding: 0 8px;
|
|
264
|
-
font-size: 12px;
|
|
265
|
-
line-height: 24px;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
116
|
/* Role variants */
|
|
269
117
|
.badge-host {
|
|
270
118
|
color: #dc2626;
|
|
@@ -331,103 +179,4 @@
|
|
|
331
179
|
color: #4b5563;
|
|
332
180
|
background-color: #f9fafb;
|
|
333
181
|
}
|
|
334
|
-
|
|
335
|
-
/* Search result type variants */
|
|
336
|
-
.badge-event-type {
|
|
337
|
-
color: #1e40af;
|
|
338
|
-
background-color: #dbeafe;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
.badge-venue {
|
|
342
|
-
color: #166534;
|
|
343
|
-
background-color: #dcfce7;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
.badge-user {
|
|
347
|
-
color: #7e22ce;
|
|
348
|
-
background-color: #f3e8ff;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
.badge-order {
|
|
352
|
-
color: #c2410c;
|
|
353
|
-
background-color: #ffedd5;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
.badge-performer {
|
|
357
|
-
color: #be185d;
|
|
358
|
-
background-color: #fce7f3;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
/* Notification count variant */
|
|
362
|
-
.badge-notification {
|
|
363
|
-
color: #ffffff;
|
|
364
|
-
background-color: #ef4444;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
/* Tier variants (lineup position badges) - colors match local frontend implementation */
|
|
368
|
-
.badge-tier-1 {
|
|
369
|
-
color: rgba(108, 43, 217, 1);
|
|
370
|
-
background-color: rgba(108, 43, 217, 0.15);
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
.badge-tier-2 {
|
|
374
|
-
color: rgba(255, 146, 46, 1);
|
|
375
|
-
background-color: rgba(255, 146, 46, 0.15);
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
.badge-tier-3 {
|
|
379
|
-
color: rgba(2, 132, 254, 1);
|
|
380
|
-
background-color: rgba(2, 132, 254, 0.15);
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
.badge-tier-4 {
|
|
384
|
-
color: rgba(21, 160, 51, 1);
|
|
385
|
-
background-color: rgba(21, 160, 51, 0.15);
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
.badge-tier-5 {
|
|
389
|
-
color: rgba(255, 102, 102, 1);
|
|
390
|
-
background-color: rgba(255, 102, 102, 0.15);
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
/* Event display types */
|
|
394
|
-
.badge-event-square {
|
|
395
|
-
padding: 4px;
|
|
396
|
-
border-radius: 4px;
|
|
397
|
-
border: 0.8px solid rgba(2, 132, 254, 0.5);
|
|
398
|
-
box-shadow:
|
|
399
|
-
0px 20px 6px 0px rgba(0, 0, 0, 0),
|
|
400
|
-
0px 13px 5px 0px rgba(0, 0, 0, 0.02),
|
|
401
|
-
0px 7px 4px 0px rgba(0, 0, 0, 0.08),
|
|
402
|
-
0px 3px 3px 0px rgba(0, 0, 0, 0.14),
|
|
403
|
-
0px 1px 2px 0px rgba(0, 0, 0, 0.16);
|
|
404
|
-
font-size: 14px;
|
|
405
|
-
font-weight: 400;
|
|
406
|
-
line-height: 14px;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
.badge-event-circle {
|
|
410
|
-
padding: 4px;
|
|
411
|
-
border-radius: 9999px;
|
|
412
|
-
font-size: 14px;
|
|
413
|
-
font-weight: 600;
|
|
414
|
-
line-height: 14px;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
@media only screen and (max-width: 640px) {
|
|
418
|
-
.badge-event-square {
|
|
419
|
-
padding: 2px;
|
|
420
|
-
font-size: 8px;
|
|
421
|
-
line-height: 10px;
|
|
422
|
-
font-weight: 200;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
.badge-event-circle {
|
|
426
|
-
padding: 2px;
|
|
427
|
-
font-size: 8px;
|
|
428
|
-
gap: 0px;
|
|
429
|
-
font-weight: 500;
|
|
430
|
-
line-height: 8px;
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
182
|
</style>
|
|
@@ -1,46 +1,30 @@
|
|
|
1
1
|
export default Badge;
|
|
2
2
|
type Badge = SvelteComponent<$$__sveltets_2_PropsWithChildren<{
|
|
3
|
-
pill?: boolean | undefined;
|
|
4
3
|
size?: string | undefined;
|
|
5
4
|
className?: string | undefined;
|
|
6
|
-
variant?: string |
|
|
7
|
-
event?: string | null | undefined;
|
|
8
|
-
textColor?: string | null | undefined;
|
|
9
|
-
bgColor?: string | null | undefined;
|
|
10
|
-
showDot?: boolean | undefined;
|
|
11
|
-
shape?: "rounded" | "pill" | undefined;
|
|
5
|
+
variant?: string | undefined;
|
|
12
6
|
}, {
|
|
13
|
-
leftIcon: {};
|
|
14
7
|
default: {};
|
|
15
8
|
}>, {
|
|
16
9
|
click: CustomEvent<any>;
|
|
17
10
|
} & {
|
|
18
11
|
[evt: string]: CustomEvent<any>;
|
|
19
12
|
}, {
|
|
20
|
-
leftIcon: {};
|
|
21
13
|
default: {};
|
|
22
14
|
}> & {
|
|
23
15
|
$$bindings?: string | undefined;
|
|
24
16
|
};
|
|
25
17
|
declare const Badge: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
26
|
-
pill?: boolean | undefined;
|
|
27
18
|
size?: string | undefined;
|
|
28
19
|
className?: string | undefined;
|
|
29
|
-
variant?: string |
|
|
30
|
-
event?: string | null | undefined;
|
|
31
|
-
textColor?: string | null | undefined;
|
|
32
|
-
bgColor?: string | null | undefined;
|
|
33
|
-
showDot?: boolean | undefined;
|
|
34
|
-
shape?: "rounded" | "pill" | undefined;
|
|
20
|
+
variant?: string | undefined;
|
|
35
21
|
}, {
|
|
36
|
-
leftIcon: {};
|
|
37
22
|
default: {};
|
|
38
23
|
}>, {
|
|
39
24
|
click: CustomEvent<any>;
|
|
40
25
|
} & {
|
|
41
26
|
[evt: string]: CustomEvent<any>;
|
|
42
27
|
}, {
|
|
43
|
-
leftIcon: {};
|
|
44
28
|
default: {};
|
|
45
29
|
}, {}, string>;
|
|
46
30
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/Badges/Badge.svelte.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Badge.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/Badges/Badge.svelte.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAiGA;;;;;;;;;;;;eAAuJ;sCATjH,KAAK,EAAE,KAAK;;;;;6CALL,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,OAAO,OAAO,QAAQ;IAC3L,cAAc,OAAO,QAAQ,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAAG,OAAO,QAAQ,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC;IACjK,WAAW,OAAO,SAAS,KAAK,GAAG;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,KAAK,CAAA;KAAC,GAAG,OAAO,GAAG;QAAE,IAAI,CAAC,EAAE,GAAG,CAAC;QAAC,GAAG,CAAC,EAAE,GAAG,CAAA;KAAE,CAAC;IAC9G,eAAe,QAAQ,CAAC"}
|
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { createEventDispatcher } from "svelte";
|
|
3
|
-
import
|
|
4
|
-
import Home from "../Icons/Home.svelte";
|
|
3
|
+
import BreadcrumbArrow from "../../assets/svg/arrow-up.svg";
|
|
5
4
|
|
|
6
|
-
/** @type {Array<{name: string, href: string}>} */
|
|
7
5
|
export let data = [];
|
|
8
|
-
/** @type {string} Additional CSS classes */
|
|
9
|
-
export let className = "";
|
|
10
|
-
/** @type {boolean} Show built-in home icon for first item */
|
|
11
|
-
export let showHomeIcon = true;
|
|
12
|
-
/** @type {string} Page title displayed below breadcrumb */
|
|
13
|
-
export let title = "";
|
|
14
|
-
/** @type {string} Subtitle displayed below title */
|
|
15
|
-
export let subtitle = "";
|
|
16
6
|
|
|
17
7
|
const dispatch = createEventDispatcher();
|
|
18
8
|
|
|
@@ -21,59 +11,40 @@
|
|
|
21
11
|
}
|
|
22
12
|
</script>
|
|
23
13
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
14
|
+
{#if data.length > 0}
|
|
15
|
+
<nav class="inline-flex text-sm leading-[14px] font-medium">
|
|
16
|
+
{#each data as crumb, index}
|
|
17
|
+
<div class="flex items-center">
|
|
18
|
+
{#if index > 0}
|
|
19
|
+
<img
|
|
20
|
+
src={BreadcrumbArrow}
|
|
21
|
+
alt=""
|
|
22
|
+
class="w-2.5 sm:w-3 h-2.5 sm:h-3 mx-2 sm:mx-2.5"
|
|
23
|
+
/>
|
|
24
|
+
{/if}
|
|
25
|
+
{#if index === 0}
|
|
26
|
+
<img
|
|
27
|
+
src={crumb.icon}
|
|
28
|
+
alt=""
|
|
29
|
+
class="w-3 sm:w-4 h-3 sm:h-4 mx-2 sm:mx-2.5"
|
|
30
|
+
/>
|
|
31
|
+
{/if}
|
|
32
|
+
{#if index === data.length - 1}
|
|
33
|
+
<span class="text-Text-Tartiary cursor-default">{crumb.name}</span>
|
|
34
|
+
{:else}
|
|
35
|
+
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
36
|
+
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
37
|
+
<span class="text-Text-Secondary no-underline cursor-pointer">
|
|
38
|
+
<a
|
|
39
|
+
href={crumb.href}
|
|
40
|
+
on:click={() => handleClick(crumb)}
|
|
41
|
+
class="hover:no-underline"
|
|
43
42
|
>
|
|
44
43
|
{crumb.name}
|
|
45
|
-
</
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
>
|
|
53
|
-
<a
|
|
54
|
-
href={crumb.href}
|
|
55
|
-
on:click={() => handleClick(crumb)}
|
|
56
|
-
class="hover:no-underline"
|
|
57
|
-
>
|
|
58
|
-
{crumb.name}
|
|
59
|
-
</a>
|
|
60
|
-
</span>
|
|
61
|
-
{/if}
|
|
62
|
-
</div>
|
|
63
|
-
{/each}
|
|
64
|
-
</nav>
|
|
65
|
-
{/if}
|
|
66
|
-
|
|
67
|
-
{#if title || subtitle}
|
|
68
|
-
<div class="pl-1 mb-4 md:pl-6 flex flex-col gap-1">
|
|
69
|
-
{#if title}
|
|
70
|
-
<h1 class="text-[32px] font-semibold text-text-primary text-start">
|
|
71
|
-
{title}
|
|
72
|
-
</h1>
|
|
73
|
-
{/if}
|
|
74
|
-
{#if subtitle}
|
|
75
|
-
<p class="text-sm text-text-secondary">{subtitle}</p>
|
|
76
|
-
{/if}
|
|
77
|
-
</div>
|
|
78
|
-
{/if}
|
|
79
|
-
</div>
|
|
44
|
+
</a>
|
|
45
|
+
</span>
|
|
46
|
+
{/if}
|
|
47
|
+
</div>
|
|
48
|
+
{/each}
|
|
49
|
+
</nav>
|
|
50
|
+
{/if}
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
export default Breadcrumb;
|
|
2
2
|
type Breadcrumb = SvelteComponent<{
|
|
3
|
-
|
|
4
|
-
className?: string | undefined;
|
|
5
|
-
data?: {
|
|
6
|
-
name: string;
|
|
7
|
-
href: string;
|
|
8
|
-
}[] | undefined;
|
|
9
|
-
showHomeIcon?: boolean | undefined;
|
|
10
|
-
subtitle?: string | undefined;
|
|
3
|
+
data?: any[] | undefined;
|
|
11
4
|
}, {
|
|
12
5
|
click: CustomEvent<any>;
|
|
13
6
|
} & {
|
|
@@ -16,14 +9,7 @@ type Breadcrumb = SvelteComponent<{
|
|
|
16
9
|
$$bindings?: string | undefined;
|
|
17
10
|
};
|
|
18
11
|
declare const Breadcrumb: $$__sveltets_2_IsomorphicComponent<{
|
|
19
|
-
|
|
20
|
-
className?: string | undefined;
|
|
21
|
-
data?: {
|
|
22
|
-
name: string;
|
|
23
|
-
href: string;
|
|
24
|
-
}[] | undefined;
|
|
25
|
-
showHomeIcon?: boolean | undefined;
|
|
26
|
-
subtitle?: string | undefined;
|
|
12
|
+
data?: any[] | undefined;
|
|
27
13
|
}, {
|
|
28
14
|
click: CustomEvent<any>;
|
|
29
15
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumb.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/Breadcrumb/Breadcrumb.svelte.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Breadcrumb.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/Breadcrumb/Breadcrumb.svelte.js"],"names":[],"mappings":";;;;;;;;;;AAwDA;;;;;;mBAAgI;6CATnF,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,OAAO,OAAO,QAAQ;IAC3L,cAAc,OAAO,QAAQ,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAAG,OAAO,QAAQ,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC;IACjK,WAAW,OAAO,SAAS,KAAK,GAAG;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,KAAK,CAAA;KAAC,GAAG,OAAO,GAAG;QAAE,IAAI,CAAC,EAAE,GAAG,CAAC;QAAC,GAAG,CAAC,EAAE,GAAG,CAAA;KAAE,CAAC;IAC9G,eAAe,QAAQ,CAAC"}
|