@getmicdrop/svelte-components 2.4.0 → 2.6.1
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 +3 -129
- package/dist/components/Badges/Badge.svelte.d.ts +2 -8
- 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 +0 -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/{Checkbox/Checkbox.svelte.d.ts.map → Calendar/Calendar.svelte.d.ts.map} +1 -1
- 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/{PublicCard/PublicCard.svelte.d.ts → Calendar/QuarterView.stories.svelte.d.ts} +21 -15
- 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/DarkModeToggle.svelte +0 -2
- package/dist/components/DarkModeToggle.svelte.d.ts.map +1 -1
- package/dist/components/Input/Input.svelte +12 -100
- package/dist/components/Input/Input.svelte.d.ts +6 -18
- 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 +6 -6
- 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 +6 -6
- 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/{ShowTimeCard/ShowTimeCard.svelte.d.ts → pages/performers/AvailabilityCalendarModal.svelte.d.ts} +14 -14
- package/dist/components/pages/performers/AvailabilityCalendarModal.svelte.d.ts.map +1 -0
- package/dist/components/pages/performers/ShowDetails.svelte.d.ts +2 -2
- 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/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 -24
- package/dist/index.js +4 -30
- 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 -116
- package/dist/components/Checkbox/Checkbox.svelte.d.ts +0 -52
- 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 -129
- package/dist/components/Dropdown/Dropdown.svelte.d.ts +0 -48
- 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/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/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
|
@@ -3,16 +3,16 @@ type ShowItemCard = SvelteComponent<{
|
|
|
3
3
|
title: any;
|
|
4
4
|
details: any;
|
|
5
5
|
image: any;
|
|
6
|
-
id: any;
|
|
7
6
|
status: any;
|
|
7
|
+
id: any;
|
|
8
8
|
location: any;
|
|
9
|
+
lastUpdated: any;
|
|
10
|
+
venueName: any;
|
|
9
11
|
role: any;
|
|
12
|
+
venueId: any;
|
|
10
13
|
startDateTime: any;
|
|
11
14
|
doorsOpenTime: any;
|
|
12
|
-
venueName: any;
|
|
13
|
-
venueId: any;
|
|
14
15
|
spotDuration: any;
|
|
15
|
-
lastUpdated: any;
|
|
16
16
|
invitationAccepted?: boolean | undefined;
|
|
17
17
|
hasAvailability?: boolean | undefined;
|
|
18
18
|
}, {
|
|
@@ -24,16 +24,16 @@ declare const ShowItemCard: $$__sveltets_2_IsomorphicComponent<{
|
|
|
24
24
|
title: any;
|
|
25
25
|
details: any;
|
|
26
26
|
image: any;
|
|
27
|
-
id: any;
|
|
28
27
|
status: any;
|
|
28
|
+
id: any;
|
|
29
29
|
location: any;
|
|
30
|
+
lastUpdated: any;
|
|
31
|
+
venueName: any;
|
|
30
32
|
role: any;
|
|
33
|
+
venueId: any;
|
|
31
34
|
startDateTime: any;
|
|
32
35
|
doorsOpenTime: any;
|
|
33
|
-
venueName: any;
|
|
34
|
-
venueId: any;
|
|
35
36
|
spotDuration: any;
|
|
36
|
-
lastUpdated: any;
|
|
37
37
|
invitationAccepted?: boolean | undefined;
|
|
38
38
|
hasAvailability?: boolean | undefined;
|
|
39
39
|
}, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export default SwitchOption;
|
|
2
2
|
type SwitchOption = SvelteComponent<{
|
|
3
3
|
onToggle: any;
|
|
4
|
-
checked?: boolean | undefined;
|
|
5
4
|
label?: string | undefined;
|
|
5
|
+
checked?: boolean | undefined;
|
|
6
6
|
}, {
|
|
7
7
|
[evt: string]: CustomEvent<any>;
|
|
8
8
|
}, {}> & {
|
|
@@ -10,8 +10,8 @@ type SwitchOption = SvelteComponent<{
|
|
|
10
10
|
};
|
|
11
11
|
declare const SwitchOption: $$__sveltets_2_IsomorphicComponent<{
|
|
12
12
|
onToggle: any;
|
|
13
|
-
checked?: boolean | undefined;
|
|
14
13
|
label?: string | undefined;
|
|
14
|
+
checked?: boolean | undefined;
|
|
15
15
|
}, {
|
|
16
16
|
[evt: string]: CustomEvent<any>;
|
|
17
17
|
}, {}, {}, string>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export default VenueInfo;
|
|
2
2
|
type VenueInfo = SvelteComponent<{
|
|
3
3
|
size?: string | undefined;
|
|
4
|
-
name?: string | undefined;
|
|
5
4
|
image?: string | undefined;
|
|
5
|
+
name?: string | undefined;
|
|
6
6
|
location?: string | undefined;
|
|
7
7
|
}, {
|
|
8
8
|
[evt: string]: CustomEvent<any>;
|
|
@@ -11,8 +11,8 @@ type VenueInfo = SvelteComponent<{
|
|
|
11
11
|
};
|
|
12
12
|
declare const VenueInfo: $$__sveltets_2_IsomorphicComponent<{
|
|
13
13
|
size?: string | undefined;
|
|
14
|
-
name?: string | undefined;
|
|
15
14
|
image?: string | undefined;
|
|
15
|
+
name?: string | undefined;
|
|
16
16
|
location?: string | undefined;
|
|
17
17
|
}, {
|
|
18
18
|
[evt: string]: CustomEvent<any>;
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
<DotsHorizontalOutline
|
|
97
97
|
data-testid="dropdown-menu"
|
|
98
98
|
triggeredBy=".more-menu"
|
|
99
|
-
class="more-menu text-primary-700
|
|
99
|
+
class="more-menu text-primary-700 border border-primary-700 rounded-lg h-auto w-9 px-1.5 hover:bg-primary-50 cursor-pointer transition-colors"
|
|
100
100
|
/>
|
|
101
101
|
|
|
102
102
|
<Dropdown class="shadow-none min-w-[200px]" triggeredBy=".more-menu">
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
<DotsHorizontalOutline
|
|
126
126
|
data-testid="dropdown-menu"
|
|
127
127
|
triggeredBy=".more-menu"
|
|
128
|
-
class="more-menu text-gray-800
|
|
128
|
+
class="more-menu text-gray-800 border border-gray-300 rounded-lg h-10 w-10 p-2 hover:bg-gray-50 cursor-pointer transition-colors"
|
|
129
129
|
/>
|
|
130
130
|
<Dropdown
|
|
131
131
|
class="shadow-none min-w-[200px]"
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export default VenueItemCard;
|
|
2
2
|
type VenueItemCard = SvelteComponent<{
|
|
3
|
-
name: any;
|
|
4
3
|
image: any;
|
|
4
|
+
name: any;
|
|
5
5
|
end: any;
|
|
6
6
|
start: any;
|
|
7
7
|
status: any;
|
|
8
8
|
email: any;
|
|
9
9
|
description: any;
|
|
10
10
|
location: any;
|
|
11
|
+
lastUpdated: any;
|
|
11
12
|
invitationAccepted: any;
|
|
12
13
|
hasAvailability: any;
|
|
13
14
|
venueId: any;
|
|
14
|
-
lastUpdated: any;
|
|
15
15
|
doorOpen: any;
|
|
16
16
|
phone: any;
|
|
17
17
|
instagram: any;
|
|
@@ -27,18 +27,18 @@ type VenueItemCard = SvelteComponent<{
|
|
|
27
27
|
$$bindings?: string | undefined;
|
|
28
28
|
};
|
|
29
29
|
declare const VenueItemCard: $$__sveltets_2_IsomorphicComponent<{
|
|
30
|
-
name: any;
|
|
31
30
|
image: any;
|
|
31
|
+
name: any;
|
|
32
32
|
end: any;
|
|
33
33
|
start: any;
|
|
34
34
|
status: any;
|
|
35
35
|
email: any;
|
|
36
36
|
description: any;
|
|
37
37
|
location: any;
|
|
38
|
+
lastUpdated: any;
|
|
38
39
|
invitationAccepted: any;
|
|
39
40
|
hasAvailability: any;
|
|
40
41
|
venueId: any;
|
|
41
|
-
lastUpdated: any;
|
|
42
42
|
doorOpen: any;
|
|
43
43
|
phone: any;
|
|
44
44
|
instagram: any;
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
align-items: center;
|
|
38
38
|
justify-content: center;
|
|
39
39
|
border-bottom-width: 1px;
|
|
40
|
+
border-color: hsl(var(--Stroke-Secondary));
|
|
40
41
|
padding-left: 0px;
|
|
41
42
|
padding-right: 0px;
|
|
42
43
|
padding-top: 1rem;
|
|
@@ -44,20 +45,20 @@
|
|
|
44
45
|
font-size: 0.875rem;
|
|
45
46
|
line-height: 1.25rem;
|
|
46
47
|
font-weight: 500;
|
|
48
|
+
--tw-text-opacity: 1;
|
|
49
|
+
color: rgb(102 108 121 / var(--tw-text-opacity, 1))
|
|
47
50
|
}
|
|
48
51
|
@media (min-width: 640px) {
|
|
49
52
|
.tab {
|
|
50
53
|
padding-left: 0.75rem;
|
|
51
|
-
padding-right: 0.75rem
|
|
54
|
+
padding-right: 0.75rem
|
|
52
55
|
}
|
|
53
56
|
}
|
|
54
|
-
.tab {
|
|
55
|
-
color: hsl(var(--Text-Tartiary));
|
|
56
|
-
border-color: hsl(var(--Stroke-Secondary));
|
|
57
|
-
}
|
|
58
57
|
.tab.active {
|
|
58
|
+
--tw-border-opacity: 1;
|
|
59
|
+
border-color: rgb(2 132 254 / var(--tw-border-opacity, 1));
|
|
59
60
|
font-weight: 600;
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
--tw-text-opacity: 1;
|
|
62
|
+
color: rgb(29 78 216 / var(--tw-text-opacity, 1))
|
|
62
63
|
}
|
|
63
64
|
</style>
|
|
@@ -7,13 +7,10 @@
|
|
|
7
7
|
* import { GENDER_OPTIONS } from './formOptions';
|
|
8
8
|
* <Select items={GENDER_OPTIONS} label="Gender" />
|
|
9
9
|
*/
|
|
10
|
-
export const GENDER_OPTIONS:
|
|
10
|
+
export const GENDER_OPTIONS: {
|
|
11
11
|
name: string;
|
|
12
12
|
value: number;
|
|
13
|
-
}
|
|
14
|
-
name: string;
|
|
15
|
-
value: null;
|
|
16
|
-
})[];
|
|
13
|
+
}[];
|
|
17
14
|
export const ETHNICITY_OPTIONS: {
|
|
18
15
|
name: string;
|
|
19
16
|
value: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formOptions.d.ts","sourceRoot":"","sources":["../../src/lib/constants/formOptions.js"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH
|
|
1
|
+
{"version":3,"file":"formOptions.d.ts","sourceRoot":"","sources":["../../src/lib/constants/formOptions.js"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;IAIE;AAEF;;;IAQE"}
|
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
export const GENDER_OPTIONS = [
|
|
12
12
|
{ name: "Male", value: 1 },
|
|
13
13
|
{ name: "Female", value: 2 },
|
|
14
|
-
{ name: "Non-
|
|
15
|
-
{ name: "Rather not say", value: null },
|
|
14
|
+
{ name: "Non-Binary", value: 3 },
|
|
16
15
|
];
|
|
17
16
|
|
|
18
17
|
export const ETHNICITY_OPTIONS = [
|
package/dist/index.d.ts
CHANGED
|
@@ -1,28 +1,19 @@
|
|
|
1
|
-
export { default as Accordion } from "./components/Accordion/Accordion.svelte";
|
|
2
|
-
export { default as AccordionItem } from "./components/Accordion/AccordionItem.svelte";
|
|
3
1
|
export { default as Alert } from "./components/Alert/Alert.svelte";
|
|
4
2
|
export { default as Badge } from "./components/Badges/Badge.svelte";
|
|
5
3
|
export { default as BottomSheet } from "./components/BottomSheet/BottomSheet.svelte";
|
|
6
4
|
export { default as Breadcrumb } from "./components/Breadcrumb/Breadcrumb.svelte";
|
|
7
5
|
export { default as Button } from "./components/Button/Button.svelte";
|
|
8
|
-
export { default as Checkbox } from "./components/Checkbox/Checkbox.svelte";
|
|
9
6
|
export { default as ButtonSaveDemo } from "./components/Button/ButtonSaveDemo.svelte";
|
|
10
7
|
export { default as Card } from "./components/Card.svelte";
|
|
11
8
|
export { default as DarkModeToggle } from "./components/DarkModeToggle.svelte";
|
|
12
|
-
export { default as Drawer } from "./components/Drawer/Drawer.svelte";
|
|
13
|
-
export { default as Dropdown } from "./components/Dropdown/Dropdown.svelte";
|
|
14
|
-
export { default as DropdownItem } from "./components/Dropdown/DropdownItem.svelte";
|
|
15
9
|
export { default as ErrorDisplay } from "./components/ErrorDisplay.svelte";
|
|
16
10
|
export { default as FormActions } from "./components/FormActions.svelte";
|
|
17
11
|
export { default as FormValidationSummary } from "./components/FormValidationSummary.svelte";
|
|
18
12
|
export { default as PageLoader } from "./components/PageLoader.svelte";
|
|
19
|
-
export { default as Pagination } from "./components/Pagination/Pagination.svelte";
|
|
20
|
-
export { default as Radio } from "./components/Radio/Radio.svelte";
|
|
21
|
-
export { default as Skeleton } from "./components/Skeleton/Skeleton.svelte";
|
|
22
|
-
export { default as Tabs } from "./components/Tabs/Tabs.svelte";
|
|
23
|
-
export { default as TabItem } from "./components/Tabs/TabItem.svelte";
|
|
24
13
|
export { default as Toggle } from "./components/Toggle.svelte";
|
|
25
14
|
export { default as ValidationError } from "./components/ValidationError.svelte";
|
|
15
|
+
export { default as Calendar } from "./components/Calendar/Calendar.svelte";
|
|
16
|
+
export { default as QuarterView } from "./components/Calendar/QuarterView.svelte";
|
|
26
17
|
export { default as CropImage } from "./components/CropImage/CropImage.svelte";
|
|
27
18
|
export { default as Icon } from "./components/Icons/Icon.svelte";
|
|
28
19
|
export { default as ArrowLeft } from "./components/Icons/ArrowLeft.svelte";
|
|
@@ -58,29 +49,19 @@ export { default as WarningIcon } from "./components/Icons/WarningIcon.svelte";
|
|
|
58
49
|
export { default as Input } from "./components/Input/Input.svelte";
|
|
59
50
|
export { default as MultiSelect } from "./components/Input/MultiSelect.svelte";
|
|
60
51
|
export { default as OTPInput } from "./components/Input/OTPInput.svelte";
|
|
61
|
-
export { default as Search } from "./components/Input/Search.svelte";
|
|
62
52
|
export { default as Select } from "./components/Input/Select.svelte";
|
|
63
|
-
export {
|
|
64
|
-
export { default as Label } from "./components/Label/Label.svelte";
|
|
53
|
+
export { Checkbox } from "flowbite-svelte";
|
|
65
54
|
export { default as BottomNav } from "./components/Layout/BottomNav.svelte";
|
|
66
55
|
export { default as Header } from "./components/Layout/Header.svelte";
|
|
67
56
|
export { default as Modal } from "./components/Modal/Modal.svelte";
|
|
68
57
|
export { default as ConfirmationModal } from "./components/Modal/ConfirmationModal.svelte";
|
|
69
|
-
export { default as StatusModal } from "./components/Modal/StatusModal.svelte";
|
|
70
|
-
export { default as InputModal } from "./components/Modal/InputModal.svelte";
|
|
71
58
|
export { default as ModalStateManager } from "./components/Modal/ModalStateManager.svelte";
|
|
72
59
|
export { default as ModalTestWrapper } from "./components/Modal/ModalTestWrapper.svelte";
|
|
73
60
|
export { default as PlaceAutocomplete } from "./components/PlaceAutocomplete/PlaceAutocomplete.svelte";
|
|
74
61
|
export { default as Spinner } from "./components/Spinner/Spinner.svelte";
|
|
75
|
-
export { default as PublicCard } from "./components/PublicCard/PublicCard.svelte";
|
|
76
|
-
export { default as MonthSwitcher } from "./components/MonthSwitcher/MonthSwitcher.svelte";
|
|
77
|
-
export { default as OrderSummary } from "./components/OrderSummary/OrderSummary.svelte";
|
|
78
|
-
export { default as ShowCard } from "./components/ShowCard/ShowCard.svelte";
|
|
79
|
-
export { default as AboutShow } from "./components/AboutShow/AboutShow.svelte";
|
|
80
|
-
export { default as FAQs } from "./components/FAQs/FAQs.svelte";
|
|
81
|
-
export { default as ShowTimeCard } from "./components/ShowTimeCard/ShowTimeCard.svelte";
|
|
82
62
|
export { default as PasswordStrengthIndicator } from "./components/PasswordStrengthIndicator/PasswordStrengthIndicator.svelte";
|
|
83
63
|
export { default as StatusIndicator } from "./components/StatusIndicator/StatusIndicator.svelte";
|
|
64
|
+
export { default as AvailabilityCalendarModal } from "./components/pages/performers/AvailabilityCalendarModal.svelte";
|
|
84
65
|
export { default as ModalShowInfo } from "./components/pages/performers/ModalShowInfo.svelte";
|
|
85
66
|
export { default as PageBackButton } from "./components/pages/performers/PageBackButton.svelte";
|
|
86
67
|
export { default as SectionHeader } from "./components/pages/performers/SectionHeader.svelte";
|
|
@@ -98,5 +79,4 @@ export { default as TabNavigation } from "./components/pages/shows/TabNavigation
|
|
|
98
79
|
export * from "./config.js";
|
|
99
80
|
export * from "./telemetry.js";
|
|
100
81
|
export * from "./constants/formOptions.js";
|
|
101
|
-
export { default as MiniMonthCalendar, default as Calendar } from "./components/Calendar/MiniMonthCalendar.svelte";
|
|
102
82
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,34 +1,22 @@
|
|
|
1
1
|
// Core Components
|
|
2
|
-
export { default as Accordion } from './components/Accordion/Accordion.svelte';
|
|
3
|
-
export { default as AccordionItem } from './components/Accordion/AccordionItem.svelte';
|
|
4
2
|
export { default as Alert } from './components/Alert/Alert.svelte';
|
|
5
3
|
export { default as Badge } from './components/Badges/Badge.svelte';
|
|
6
4
|
export { default as BottomSheet } from './components/BottomSheet/BottomSheet.svelte';
|
|
7
5
|
export { default as Breadcrumb } from './components/Breadcrumb/Breadcrumb.svelte';
|
|
8
6
|
export { default as Button } from './components/Button/Button.svelte';
|
|
9
|
-
export { default as Checkbox } from './components/Checkbox/Checkbox.svelte';
|
|
10
7
|
export { default as ButtonSaveDemo } from './components/Button/ButtonSaveDemo.svelte';
|
|
11
8
|
export { default as Card } from './components/Card.svelte';
|
|
12
9
|
export { default as DarkModeToggle } from './components/DarkModeToggle.svelte';
|
|
13
|
-
export { default as Drawer } from './components/Drawer/Drawer.svelte';
|
|
14
|
-
export { default as Dropdown } from './components/Dropdown/Dropdown.svelte';
|
|
15
|
-
export { default as DropdownItem } from './components/Dropdown/DropdownItem.svelte';
|
|
16
10
|
export { default as ErrorDisplay } from './components/ErrorDisplay.svelte';
|
|
17
11
|
export { default as FormActions } from './components/FormActions.svelte';
|
|
18
12
|
export { default as FormValidationSummary } from './components/FormValidationSummary.svelte';
|
|
19
13
|
export { default as PageLoader } from './components/PageLoader.svelte';
|
|
20
|
-
export { default as Pagination } from './components/Pagination/Pagination.svelte';
|
|
21
|
-
export { default as Radio } from './components/Radio/Radio.svelte';
|
|
22
|
-
export { default as Skeleton } from './components/Skeleton/Skeleton.svelte';
|
|
23
|
-
export { default as Tabs } from './components/Tabs/Tabs.svelte';
|
|
24
|
-
export { default as TabItem } from './components/Tabs/TabItem.svelte';
|
|
25
14
|
export { default as Toggle } from './components/Toggle.svelte';
|
|
26
15
|
export { default as ValidationError } from './components/ValidationError.svelte';
|
|
27
16
|
|
|
28
17
|
// Calendar Components
|
|
29
|
-
export { default as
|
|
30
|
-
|
|
31
|
-
export { default as Calendar } from './components/Calendar/MiniMonthCalendar.svelte';
|
|
18
|
+
export { default as Calendar } from './components/Calendar/Calendar.svelte';
|
|
19
|
+
export { default as QuarterView } from './components/Calendar/QuarterView.svelte';
|
|
32
20
|
|
|
33
21
|
// CropImage
|
|
34
22
|
export { default as CropImage } from './components/CropImage/CropImage.svelte';
|
|
@@ -70,12 +58,8 @@ export { default as WarningIcon } from './components/Icons/WarningIcon.svelte';
|
|
|
70
58
|
export { default as Input } from './components/Input/Input.svelte';
|
|
71
59
|
export { default as MultiSelect } from './components/Input/MultiSelect.svelte';
|
|
72
60
|
export { default as OTPInput } from './components/Input/OTPInput.svelte';
|
|
73
|
-
export { default as Search } from './components/Input/Search.svelte';
|
|
74
61
|
export { default as Select } from './components/Input/Select.svelte';
|
|
75
|
-
export {
|
|
76
|
-
|
|
77
|
-
// Label Component
|
|
78
|
-
export { default as Label } from './components/Label/Label.svelte';
|
|
62
|
+
export { Checkbox } from 'flowbite-svelte';
|
|
79
63
|
|
|
80
64
|
// Layout Components
|
|
81
65
|
export { default as BottomNav } from './components/Layout/BottomNav.svelte';
|
|
@@ -84,8 +68,6 @@ export { default as Header } from './components/Layout/Header.svelte';
|
|
|
84
68
|
// Modal Components
|
|
85
69
|
export { default as Modal } from './components/Modal/Modal.svelte';
|
|
86
70
|
export { default as ConfirmationModal } from './components/Modal/ConfirmationModal.svelte';
|
|
87
|
-
export { default as StatusModal } from './components/Modal/StatusModal.svelte';
|
|
88
|
-
export { default as InputModal } from './components/Modal/InputModal.svelte';
|
|
89
71
|
export { default as ModalStateManager } from './components/Modal/ModalStateManager.svelte';
|
|
90
72
|
export { default as ModalTestWrapper } from './components/Modal/ModalTestWrapper.svelte';
|
|
91
73
|
|
|
@@ -95,15 +77,6 @@ export { default as PlaceAutocomplete } from './components/PlaceAutocomplete/Pla
|
|
|
95
77
|
// Spinner
|
|
96
78
|
export { default as Spinner } from './components/Spinner/Spinner.svelte';
|
|
97
79
|
|
|
98
|
-
// Public Calendar Components (shared between venue-calendar and micdrop-frontend)
|
|
99
|
-
export { default as PublicCard } from './components/PublicCard/PublicCard.svelte';
|
|
100
|
-
export { default as MonthSwitcher } from './components/MonthSwitcher/MonthSwitcher.svelte';
|
|
101
|
-
export { default as OrderSummary } from './components/OrderSummary/OrderSummary.svelte';
|
|
102
|
-
export { default as ShowCard } from './components/ShowCard/ShowCard.svelte';
|
|
103
|
-
export { default as AboutShow } from './components/AboutShow/AboutShow.svelte';
|
|
104
|
-
export { default as FAQs } from './components/FAQs/FAQs.svelte';
|
|
105
|
-
export { default as ShowTimeCard } from './components/ShowTimeCard/ShowTimeCard.svelte';
|
|
106
|
-
|
|
107
80
|
// Password Strength Indicator
|
|
108
81
|
export { default as PasswordStrengthIndicator } from './components/PasswordStrengthIndicator/PasswordStrengthIndicator.svelte';
|
|
109
82
|
|
|
@@ -111,6 +84,7 @@ export { default as PasswordStrengthIndicator } from './components/PasswordStren
|
|
|
111
84
|
export { default as StatusIndicator } from './components/StatusIndicator/StatusIndicator.svelte';
|
|
112
85
|
|
|
113
86
|
// Page-specific Components - Performers
|
|
87
|
+
export { default as AvailabilityCalendarModal } from './components/pages/performers/AvailabilityCalendarModal.svelte';
|
|
114
88
|
export { default as ModalShowInfo } from './components/pages/performers/ModalShowInfo.svelte';
|
|
115
89
|
export { default as PageBackButton } from './components/pages/performers/PageBackButton.svelte';
|
|
116
90
|
export { default as SectionHeader } from './components/pages/performers/SectionHeader.svelte';
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
import { addDays, startOfWeek } from "date-fns";
|
|
2
|
-
|
|
3
|
-
let mockEvents = [];
|
|
4
|
-
|
|
5
|
-
export async function fetchEventsFromAPI() {
|
|
6
|
-
try {
|
|
7
|
-
const response = await fetch("https://get-micdrop.com/api/public/getEventsForVenue");
|
|
8
|
-
if (response.ok) {
|
|
9
|
-
const events = await response.json();
|
|
10
|
-
return events.map((event) => ({
|
|
11
|
-
id: event.ID,
|
|
12
|
-
date: event.startDateTime,
|
|
13
|
-
title: event.title,
|
|
14
|
-
}));
|
|
15
|
-
} else {
|
|
16
|
-
console.error("Failed to load events:", response.status);
|
|
17
|
-
return [];
|
|
18
|
-
}
|
|
19
|
-
} catch (error) {
|
|
20
|
-
console.error("Error fetching events:", error);
|
|
21
|
-
return [];
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export async function fetchEventsForMonth(year, month) {
|
|
26
|
-
mockEvents = await fetchEventsFromAPI();
|
|
27
|
-
|
|
28
|
-
return new Promise((resolve) => {
|
|
29
|
-
setTimeout(() => {
|
|
30
|
-
resolve(
|
|
31
|
-
mockEvents.filter((event) =>
|
|
32
|
-
event.date.startsWith(`${year}-${String(month).padStart(2, "0")}`)
|
|
33
|
-
)
|
|
34
|
-
);
|
|
35
|
-
}, 500);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export async function fetchEventsForWeek(date) {
|
|
40
|
-
mockEvents = await fetchEventsFromAPI();
|
|
41
|
-
|
|
42
|
-
const startOfWeekDate = startOfWeek(date, { weekStartsOn: 1 });
|
|
43
|
-
const endOfWeekDate = addDays(startOfWeekDate, 6);
|
|
44
|
-
|
|
45
|
-
return new Promise((resolve) => {
|
|
46
|
-
setTimeout(() => {
|
|
47
|
-
const filteredEvents = mockEvents.filter((event) => {
|
|
48
|
-
const eventDate = new Date(event.date).getTime();
|
|
49
|
-
return (
|
|
50
|
-
eventDate >= startOfWeekDate.getTime() &&
|
|
51
|
-
eventDate <= endOfWeekDate.getTime()
|
|
52
|
-
);
|
|
53
|
-
});
|
|
54
|
-
resolve(filteredEvents);
|
|
55
|
-
}, 500);
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export async function fetchEventsForDay(date) {
|
|
60
|
-
mockEvents = await fetchEventsFromAPI();
|
|
61
|
-
|
|
62
|
-
return new Promise((resolve) => {
|
|
63
|
-
setTimeout(() => {
|
|
64
|
-
const filteredEvents = mockEvents.filter((event) => {
|
|
65
|
-
const eventDate = new Date(event.date);
|
|
66
|
-
return (
|
|
67
|
-
eventDate.getUTCDate() === date.getUTCDate() &&
|
|
68
|
-
eventDate.getUTCMonth() === date.getUTCMonth() &&
|
|
69
|
-
eventDate.getUTCFullYear() === date.getUTCFullYear()
|
|
70
|
-
);
|
|
71
|
-
});
|
|
72
|
-
resolve(filteredEvents);
|
|
73
|
-
}, 500);
|
|
74
|
-
});
|
|
75
|
-
}
|
|
1
|
+
import { addDays, startOfWeek } from "date-fns";
|
|
2
|
+
|
|
3
|
+
let mockEvents = [];
|
|
4
|
+
|
|
5
|
+
export async function fetchEventsFromAPI() {
|
|
6
|
+
try {
|
|
7
|
+
const response = await fetch("https://get-micdrop.com/api/public/getEventsForVenue");
|
|
8
|
+
if (response.ok) {
|
|
9
|
+
const events = await response.json();
|
|
10
|
+
return events.map((event) => ({
|
|
11
|
+
id: event.ID,
|
|
12
|
+
date: event.startDateTime,
|
|
13
|
+
title: event.title,
|
|
14
|
+
}));
|
|
15
|
+
} else {
|
|
16
|
+
console.error("Failed to load events:", response.status);
|
|
17
|
+
return [];
|
|
18
|
+
}
|
|
19
|
+
} catch (error) {
|
|
20
|
+
console.error("Error fetching events:", error);
|
|
21
|
+
return [];
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export async function fetchEventsForMonth(year, month) {
|
|
26
|
+
mockEvents = await fetchEventsFromAPI();
|
|
27
|
+
|
|
28
|
+
return new Promise((resolve) => {
|
|
29
|
+
setTimeout(() => {
|
|
30
|
+
resolve(
|
|
31
|
+
mockEvents.filter((event) =>
|
|
32
|
+
event.date.startsWith(`${year}-${String(month).padStart(2, "0")}`)
|
|
33
|
+
)
|
|
34
|
+
);
|
|
35
|
+
}, 500);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export async function fetchEventsForWeek(date) {
|
|
40
|
+
mockEvents = await fetchEventsFromAPI();
|
|
41
|
+
|
|
42
|
+
const startOfWeekDate = startOfWeek(date, { weekStartsOn: 1 });
|
|
43
|
+
const endOfWeekDate = addDays(startOfWeekDate, 6);
|
|
44
|
+
|
|
45
|
+
return new Promise((resolve) => {
|
|
46
|
+
setTimeout(() => {
|
|
47
|
+
const filteredEvents = mockEvents.filter((event) => {
|
|
48
|
+
const eventDate = new Date(event.date).getTime();
|
|
49
|
+
return (
|
|
50
|
+
eventDate >= startOfWeekDate.getTime() &&
|
|
51
|
+
eventDate <= endOfWeekDate.getTime()
|
|
52
|
+
);
|
|
53
|
+
});
|
|
54
|
+
resolve(filteredEvents);
|
|
55
|
+
}, 500);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export async function fetchEventsForDay(date) {
|
|
60
|
+
mockEvents = await fetchEventsFromAPI();
|
|
61
|
+
|
|
62
|
+
return new Promise((resolve) => {
|
|
63
|
+
setTimeout(() => {
|
|
64
|
+
const filteredEvents = mockEvents.filter((event) => {
|
|
65
|
+
const eventDate = new Date(event.date);
|
|
66
|
+
return (
|
|
67
|
+
eventDate.getUTCDate() === date.getUTCDate() &&
|
|
68
|
+
eventDate.getUTCMonth() === date.getUTCMonth() &&
|
|
69
|
+
eventDate.getUTCFullYear() === date.getUTCFullYear()
|
|
70
|
+
);
|
|
71
|
+
});
|
|
72
|
+
resolve(filteredEvents);
|
|
73
|
+
}, 500);
|
|
74
|
+
});
|
|
75
|
+
}
|