@getmicdrop/svelte-components 2.2.0 → 2.4.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.
- package/dist/components/Accordion/Accordion.svelte +44 -0
- package/dist/components/Accordion/Accordion.svelte.d.ts +42 -0
- package/dist/components/Accordion/Accordion.svelte.d.ts.map +1 -0
- package/dist/components/Accordion/AccordionItem.svelte +141 -0
- package/dist/components/Accordion/AccordionItem.svelte.d.ts +50 -0
- package/dist/components/Accordion/AccordionItem.svelte.d.ts.map +1 -0
- package/dist/components/Badges/Badge.svelte +129 -3
- package/dist/components/Badges/Badge.svelte.d.ts +8 -2
- package/dist/components/Badges/Badge.svelte.d.ts.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.svelte +65 -36
- package/dist/components/Breadcrumb/Breadcrumb.svelte.d.ts +16 -2
- package/dist/components/Breadcrumb/Breadcrumb.svelte.d.ts.map +1 -1
- package/dist/components/Button/Button.svelte +1 -0
- package/dist/components/Checkbox/Checkbox.svelte +116 -0
- package/dist/components/Checkbox/Checkbox.svelte.d.ts +52 -0
- package/dist/components/Checkbox/Checkbox.svelte.d.ts.map +1 -0
- package/dist/components/Drawer/Drawer.svelte +207 -0
- package/dist/components/Drawer/Drawer.svelte.d.ts +74 -0
- package/dist/components/Drawer/Drawer.svelte.d.ts.map +1 -0
- package/dist/components/Dropdown/Dropdown.svelte +129 -0
- package/dist/components/Dropdown/Dropdown.svelte.d.ts +48 -0
- package/dist/components/Dropdown/Dropdown.svelte.d.ts.map +1 -0
- package/dist/components/Dropdown/DropdownItem.svelte +111 -0
- package/dist/components/Dropdown/DropdownItem.svelte.d.ts +48 -0
- package/dist/components/Dropdown/DropdownItem.svelte.d.ts.map +1 -0
- package/dist/components/Input/Input.svelte.d.ts +6 -6
- package/dist/components/Input/MultiSelect.svelte +4 -5
- 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/Search.svelte +173 -0
- package/dist/components/Input/Search.svelte.d.ts +68 -0
- package/dist/components/Input/Search.svelte.d.ts.map +1 -0
- package/dist/components/Input/Select.svelte +4 -5
- package/dist/components/Input/Select.svelte.d.ts +6 -6
- package/dist/components/Input/Select.svelte.d.ts.map +1 -1
- package/dist/components/Input/Textarea.svelte +160 -0
- package/dist/components/Input/Textarea.svelte.d.ts +69 -0
- package/dist/components/Input/Textarea.svelte.d.ts.map +1 -0
- package/dist/components/Label/Label.svelte +60 -0
- package/dist/components/Label/Label.svelte.d.ts +48 -0
- package/dist/components/Label/Label.svelte.d.ts.map +1 -0
- package/dist/components/Layout/Header.svelte +14 -4
- package/dist/components/Modal/ConfirmationModal.svelte +69 -17
- package/dist/components/Modal/ConfirmationModal.svelte.d.ts +22 -0
- package/dist/components/Modal/ConfirmationModal.svelte.d.ts.map +1 -1
- package/dist/components/Modal/InputModal.svelte +180 -0
- package/dist/components/Modal/InputModal.svelte.d.ts +77 -0
- package/dist/components/Modal/InputModal.svelte.d.ts.map +1 -0
- package/dist/components/Modal/Modal.svelte +34 -8
- package/dist/components/Modal/Modal.svelte.d.ts +2 -0
- package/dist/components/Modal/Modal.svelte.d.ts.map +1 -1
- package/dist/components/Modal/StatusModal.svelte +221 -0
- package/dist/components/Modal/StatusModal.svelte.d.ts +59 -0
- package/dist/components/Modal/StatusModal.svelte.d.ts.map +1 -0
- package/dist/components/OrderSummary/OrderSummary.svelte +2 -2
- package/dist/components/OrderSummary/OrderSummary.svelte.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.svelte +197 -0
- package/dist/components/Pagination/Pagination.svelte.d.ts +53 -0
- package/dist/components/Pagination/Pagination.svelte.d.ts.map +1 -0
- package/dist/components/PasswordStrengthIndicator/PasswordStrengthIndicator.svelte.d.ts +2 -2
- package/dist/components/Radio/Radio.svelte +119 -0
- package/dist/components/Radio/Radio.svelte.d.ts +54 -0
- package/dist/components/Radio/Radio.svelte.d.ts.map +1 -0
- package/dist/components/Skeleton/Skeleton.svelte +68 -0
- package/dist/components/Skeleton/Skeleton.svelte.d.ts +37 -0
- package/dist/components/Skeleton/Skeleton.svelte.d.ts.map +1 -0
- package/dist/components/Tabs/TabItem.svelte +39 -0
- package/dist/components/Tabs/TabItem.svelte.d.ts +52 -0
- package/dist/components/Tabs/TabItem.svelte.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.svelte +181 -0
- package/dist/components/Tabs/Tabs.svelte.d.ts +46 -0
- package/dist/components/Tabs/Tabs.svelte.d.ts.map +1 -0
- package/dist/components/pages/performers/ShowItemCard.svelte.d.ts +2 -2
- 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 +2 -2
- package/dist/components/pages/profile/profile-form.svelte +1 -1
- package/dist/constants/formOptions.d.ts +5 -2
- package/dist/constants/formOptions.d.ts.map +1 -1
- package/dist/constants/formOptions.js +2 -1
- package/dist/index.d.ts +16 -0
- package/dist/index.js +18 -0
- package/package.json +1 -1
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import { setContext, onMount } from "svelte";
|
|
3
|
+
import { writable } from "svelte/store";
|
|
4
|
+
|
|
5
|
+
/** @type {'underline' | 'pill' | 'full'} Tab style variant */
|
|
6
|
+
export let tabStyle = "underline";
|
|
7
|
+
/** @type {string} CSS classes for the content area (flowbite API) */
|
|
8
|
+
export let contentClass = "";
|
|
9
|
+
/** @type {string|number|undefined} Currently active tab value (bindable) */
|
|
10
|
+
export let activeTabValue = undefined;
|
|
11
|
+
/** @type {string} Additional CSS classes */
|
|
12
|
+
let className = "";
|
|
13
|
+
export { className as class };
|
|
14
|
+
|
|
15
|
+
// Create a store for the active tab
|
|
16
|
+
const activeTab = writable(activeTabValue);
|
|
17
|
+
const tabItems = writable([]);
|
|
18
|
+
|
|
19
|
+
// Keep activeTabValue in sync with store
|
|
20
|
+
$: if (activeTabValue !== undefined) {
|
|
21
|
+
activeTab.set(activeTabValue);
|
|
22
|
+
}
|
|
23
|
+
$: activeTabValue = $activeTab;
|
|
24
|
+
|
|
25
|
+
// Provide context to TabItem children
|
|
26
|
+
setContext("tabs", {
|
|
27
|
+
activeTab,
|
|
28
|
+
tabItems,
|
|
29
|
+
tabStyle,
|
|
30
|
+
registerTab: (id, title, open) => {
|
|
31
|
+
tabItems.update(items => {
|
|
32
|
+
// Avoid duplicates
|
|
33
|
+
if (items.find(item => item.id === id)) return items;
|
|
34
|
+
return [...items, { id, title }];
|
|
35
|
+
});
|
|
36
|
+
// If this tab has open prop and no active tab set, make it active
|
|
37
|
+
if (open && $activeTab === undefined) {
|
|
38
|
+
activeTab.set(id);
|
|
39
|
+
}
|
|
40
|
+
return id;
|
|
41
|
+
},
|
|
42
|
+
setActiveTab: (id) => {
|
|
43
|
+
activeTab.set(id);
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
// Ensure first tab is selected if none selected
|
|
48
|
+
$: if ($tabItems.length > 0 && $activeTab === undefined) {
|
|
49
|
+
activeTab.set($tabItems[0].id);
|
|
50
|
+
}
|
|
51
|
+
</script>
|
|
52
|
+
|
|
53
|
+
<div class="tabs tabs--{tabStyle} {className}">
|
|
54
|
+
<div class="tabs__list" role="tablist">
|
|
55
|
+
{#each $tabItems as tab (tab.id)}
|
|
56
|
+
<button
|
|
57
|
+
type="button"
|
|
58
|
+
role="tab"
|
|
59
|
+
class="tabs__tab"
|
|
60
|
+
class:tabs__tab--active={$activeTab === tab.id}
|
|
61
|
+
aria-selected={$activeTab === tab.id}
|
|
62
|
+
tabindex={$activeTab === tab.id ? 0 : -1}
|
|
63
|
+
on:click={() => activeTab.set(tab.id)}
|
|
64
|
+
>
|
|
65
|
+
{tab.title}
|
|
66
|
+
</button>
|
|
67
|
+
{/each}
|
|
68
|
+
</div>
|
|
69
|
+
<div class="tabs__content {contentClass}">
|
|
70
|
+
<slot />
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
<style>
|
|
75
|
+
.tabs {
|
|
76
|
+
display: flex;
|
|
77
|
+
flex-direction: column;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.tabs__list {
|
|
81
|
+
display: flex;
|
|
82
|
+
gap: 0;
|
|
83
|
+
border-bottom: 1px solid hsl(var(--Stroke-Primary, 220 13% 85%));
|
|
84
|
+
overflow-x: auto;
|
|
85
|
+
-webkit-overflow-scrolling: touch;
|
|
86
|
+
scrollbar-width: none;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.tabs__list::-webkit-scrollbar {
|
|
90
|
+
display: none;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.tabs--pill .tabs__list {
|
|
94
|
+
border-bottom: none;
|
|
95
|
+
gap: 0.5rem;
|
|
96
|
+
background-color: hsl(var(--BG-Secondary, 220 14% 96%));
|
|
97
|
+
padding: 0.25rem;
|
|
98
|
+
border-radius: 0.5rem;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.tabs--full .tabs__list {
|
|
102
|
+
border-bottom: none;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.tabs__tab {
|
|
106
|
+
padding: 0.75rem 1rem;
|
|
107
|
+
font-size: 0.875rem;
|
|
108
|
+
font-weight: 500;
|
|
109
|
+
color: hsl(var(--Text-Secondary, 220 9% 46%));
|
|
110
|
+
background: transparent;
|
|
111
|
+
border: none;
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
position: relative;
|
|
114
|
+
transition: all 0.15s ease;
|
|
115
|
+
white-space: nowrap;
|
|
116
|
+
flex-shrink: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.tabs__tab:hover {
|
|
120
|
+
color: hsl(var(--Text-Primary, 220 13% 13%));
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.tabs__tab--active {
|
|
124
|
+
color: hsl(var(--Brand-Primary, 221 83% 53%));
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* Underline style (default) */
|
|
128
|
+
.tabs--underline .tabs__tab--active::after {
|
|
129
|
+
content: "";
|
|
130
|
+
position: absolute;
|
|
131
|
+
bottom: -1px;
|
|
132
|
+
left: 0;
|
|
133
|
+
right: 0;
|
|
134
|
+
height: 2px;
|
|
135
|
+
background-color: hsl(var(--Brand-Primary, 221 83% 53%));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* Pill style */
|
|
139
|
+
.tabs--pill .tabs__tab {
|
|
140
|
+
border-radius: 0.375rem;
|
|
141
|
+
padding: 0.5rem 0.75rem;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.tabs--pill .tabs__tab--active {
|
|
145
|
+
background-color: hsl(var(--BG-Primary, 0 0% 100%));
|
|
146
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.tabs--pill .tabs__tab--active::after {
|
|
150
|
+
display: none;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.tabs__content {
|
|
154
|
+
padding-top: 1rem;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* Dark mode */
|
|
158
|
+
:global(.dark) .tabs__list {
|
|
159
|
+
border-bottom-color: hsl(var(--Stroke-Primary, 220 13% 30%));
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
:global(.dark) .tabs__tab {
|
|
163
|
+
color: hsl(var(--Text-Secondary, 220 9% 70%));
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
:global(.dark) .tabs__tab:hover {
|
|
167
|
+
color: hsl(var(--Text-Primary, 0 0% 95%));
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
:global(.dark) .tabs__tab--active {
|
|
171
|
+
color: hsl(var(--Brand-Primary, 221 83% 60%));
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
:global(.dark) .tabs--pill .tabs__list {
|
|
175
|
+
background-color: hsl(var(--BG-Secondary, 220 13% 20%));
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
:global(.dark) .tabs--pill .tabs__tab--active {
|
|
179
|
+
background-color: hsl(var(--BG-Primary, 220 13% 15%));
|
|
180
|
+
}
|
|
181
|
+
</style>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export default Tabs;
|
|
2
|
+
type Tabs = SvelteComponent<$$__sveltets_2_PropsWithChildren<{
|
|
3
|
+
class?: string | undefined;
|
|
4
|
+
tabStyle?: "full" | "underline" | "pill" | undefined;
|
|
5
|
+
contentClass?: string | undefined;
|
|
6
|
+
activeTabValue?: string | number | undefined;
|
|
7
|
+
}, {
|
|
8
|
+
default: {};
|
|
9
|
+
}>, {
|
|
10
|
+
[evt: string]: CustomEvent<any>;
|
|
11
|
+
}, {
|
|
12
|
+
default: {};
|
|
13
|
+
}> & {
|
|
14
|
+
$$bindings?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
declare const Tabs: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
17
|
+
class?: string | undefined;
|
|
18
|
+
tabStyle?: "full" | "underline" | "pill" | undefined;
|
|
19
|
+
contentClass?: string | undefined;
|
|
20
|
+
activeTabValue?: string | number | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
default: {};
|
|
23
|
+
}>, {
|
|
24
|
+
[evt: string]: CustomEvent<any>;
|
|
25
|
+
}, {
|
|
26
|
+
default: {};
|
|
27
|
+
}, {}, string>;
|
|
28
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
29
|
+
default: any;
|
|
30
|
+
} ? Props extends Record<string, never> ? any : {
|
|
31
|
+
children?: any;
|
|
32
|
+
} : {});
|
|
33
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
34
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
35
|
+
$$bindings?: Bindings;
|
|
36
|
+
} & Exports;
|
|
37
|
+
(internal: unknown, props: Props & {
|
|
38
|
+
$$events?: Events;
|
|
39
|
+
$$slots?: Slots;
|
|
40
|
+
}): Exports & {
|
|
41
|
+
$set?: any;
|
|
42
|
+
$on?: any;
|
|
43
|
+
};
|
|
44
|
+
z_$$bindings?: Bindings;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=Tabs.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/Tabs/Tabs.svelte.js"],"names":[],"mappings":";;;;;;;;;;;;;;;AA6FA;;;;qBAhBW,MAAM,GAAC,MAAM,GAAC,SAAS;;;;;;;eAgB0I;sCATtI,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"}
|
|
@@ -3,8 +3,8 @@ type ShowItemCard = SvelteComponent<{
|
|
|
3
3
|
title: any;
|
|
4
4
|
details: any;
|
|
5
5
|
image: any;
|
|
6
|
-
status: any;
|
|
7
6
|
id: any;
|
|
7
|
+
status: any;
|
|
8
8
|
location: any;
|
|
9
9
|
role: any;
|
|
10
10
|
startDateTime: any;
|
|
@@ -24,8 +24,8 @@ declare const ShowItemCard: $$__sveltets_2_IsomorphicComponent<{
|
|
|
24
24
|
title: any;
|
|
25
25
|
details: any;
|
|
26
26
|
image: any;
|
|
27
|
-
status: any;
|
|
28
27
|
id: any;
|
|
28
|
+
status: any;
|
|
29
29
|
location: any;
|
|
30
30
|
role: any;
|
|
31
31
|
startDateTime: any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export default SwitchOption;
|
|
2
2
|
type SwitchOption = SvelteComponent<{
|
|
3
3
|
onToggle: any;
|
|
4
|
-
label?: string | undefined;
|
|
5
4
|
checked?: boolean | undefined;
|
|
5
|
+
label?: string | 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
|
-
label?: string | undefined;
|
|
14
13
|
checked?: boolean | undefined;
|
|
14
|
+
label?: string | 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
|
-
image?: string | undefined;
|
|
5
4
|
name?: string | undefined;
|
|
5
|
+
image?: 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
|
-
image?: string | undefined;
|
|
15
14
|
name?: string | undefined;
|
|
15
|
+
image?: 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 border border-primary-700 rounded-lg h-auto w-9 px-1.5 hover:bg-primary-50 cursor-pointer transition-colors"
|
|
99
|
+
class="more-menu text-primary-700 dark:text-primary-400 border border-primary-700 dark:border-primary-500 rounded-lg h-auto w-9 px-1.5 hover:bg-primary-50 dark:hover:bg-primary-900/30 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 border border-gray-300 rounded-lg h-10 w-10 p-2 hover:bg-gray-50 cursor-pointer transition-colors"
|
|
128
|
+
class="more-menu text-gray-800 dark:text-gray-200 border border-gray-300 dark:border-gray-600 rounded-lg h-10 w-10 p-2 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer transition-colors"
|
|
129
129
|
/>
|
|
130
130
|
<Dropdown
|
|
131
131
|
class="shadow-none min-w-[200px]"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default VenueItemCard;
|
|
2
2
|
type VenueItemCard = SvelteComponent<{
|
|
3
|
-
image: any;
|
|
4
3
|
name: any;
|
|
4
|
+
image: any;
|
|
5
5
|
end: any;
|
|
6
6
|
start: any;
|
|
7
7
|
status: any;
|
|
@@ -27,8 +27,8 @@ type VenueItemCard = SvelteComponent<{
|
|
|
27
27
|
$$bindings?: string | undefined;
|
|
28
28
|
};
|
|
29
29
|
declare const VenueItemCard: $$__sveltets_2_IsomorphicComponent<{
|
|
30
|
-
image: any;
|
|
31
30
|
name: any;
|
|
31
|
+
image: any;
|
|
32
32
|
end: any;
|
|
33
33
|
start: any;
|
|
34
34
|
status: any;
|
|
@@ -7,10 +7,13 @@
|
|
|
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
|
-
}
|
|
13
|
+
} | {
|
|
14
|
+
name: string;
|
|
15
|
+
value: null;
|
|
16
|
+
})[];
|
|
14
17
|
export const ETHNICITY_OPTIONS: {
|
|
15
18
|
name: string;
|
|
16
19
|
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;;;;;;KAKE;AAEF;;;IAQE"}
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
export const GENDER_OPTIONS = [
|
|
12
12
|
{ name: "Male", value: 1 },
|
|
13
13
|
{ name: "Female", value: 2 },
|
|
14
|
-
{ name: "Non-
|
|
14
|
+
{ name: "Non-binary", value: 3 },
|
|
15
|
+
{ name: "Rather not say", value: null },
|
|
15
16
|
];
|
|
16
17
|
|
|
17
18
|
export const ETHNICITY_OPTIONS = [
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,26 @@
|
|
|
1
|
+
export { default as Accordion } from "./components/Accordion/Accordion.svelte";
|
|
2
|
+
export { default as AccordionItem } from "./components/Accordion/AccordionItem.svelte";
|
|
1
3
|
export { default as Alert } from "./components/Alert/Alert.svelte";
|
|
2
4
|
export { default as Badge } from "./components/Badges/Badge.svelte";
|
|
3
5
|
export { default as BottomSheet } from "./components/BottomSheet/BottomSheet.svelte";
|
|
4
6
|
export { default as Breadcrumb } from "./components/Breadcrumb/Breadcrumb.svelte";
|
|
5
7
|
export { default as Button } from "./components/Button/Button.svelte";
|
|
8
|
+
export { default as Checkbox } from "./components/Checkbox/Checkbox.svelte";
|
|
6
9
|
export { default as ButtonSaveDemo } from "./components/Button/ButtonSaveDemo.svelte";
|
|
7
10
|
export { default as Card } from "./components/Card.svelte";
|
|
8
11
|
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";
|
|
9
15
|
export { default as ErrorDisplay } from "./components/ErrorDisplay.svelte";
|
|
10
16
|
export { default as FormActions } from "./components/FormActions.svelte";
|
|
11
17
|
export { default as FormValidationSummary } from "./components/FormValidationSummary.svelte";
|
|
12
18
|
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";
|
|
13
24
|
export { default as Toggle } from "./components/Toggle.svelte";
|
|
14
25
|
export { default as ValidationError } from "./components/ValidationError.svelte";
|
|
15
26
|
export { default as CropImage } from "./components/CropImage/CropImage.svelte";
|
|
@@ -47,11 +58,16 @@ export { default as WarningIcon } from "./components/Icons/WarningIcon.svelte";
|
|
|
47
58
|
export { default as Input } from "./components/Input/Input.svelte";
|
|
48
59
|
export { default as MultiSelect } from "./components/Input/MultiSelect.svelte";
|
|
49
60
|
export { default as OTPInput } from "./components/Input/OTPInput.svelte";
|
|
61
|
+
export { default as Search } from "./components/Input/Search.svelte";
|
|
50
62
|
export { default as Select } from "./components/Input/Select.svelte";
|
|
63
|
+
export { default as Textarea } from "./components/Input/Textarea.svelte";
|
|
64
|
+
export { default as Label } from "./components/Label/Label.svelte";
|
|
51
65
|
export { default as BottomNav } from "./components/Layout/BottomNav.svelte";
|
|
52
66
|
export { default as Header } from "./components/Layout/Header.svelte";
|
|
53
67
|
export { default as Modal } from "./components/Modal/Modal.svelte";
|
|
54
68
|
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";
|
|
55
71
|
export { default as ModalStateManager } from "./components/Modal/ModalStateManager.svelte";
|
|
56
72
|
export { default as ModalTestWrapper } from "./components/Modal/ModalTestWrapper.svelte";
|
|
57
73
|
export { default as PlaceAutocomplete } from "./components/PlaceAutocomplete/PlaceAutocomplete.svelte";
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
// Core Components
|
|
2
|
+
export { default as Accordion } from './components/Accordion/Accordion.svelte';
|
|
3
|
+
export { default as AccordionItem } from './components/Accordion/AccordionItem.svelte';
|
|
2
4
|
export { default as Alert } from './components/Alert/Alert.svelte';
|
|
3
5
|
export { default as Badge } from './components/Badges/Badge.svelte';
|
|
4
6
|
export { default as BottomSheet } from './components/BottomSheet/BottomSheet.svelte';
|
|
5
7
|
export { default as Breadcrumb } from './components/Breadcrumb/Breadcrumb.svelte';
|
|
6
8
|
export { default as Button } from './components/Button/Button.svelte';
|
|
9
|
+
export { default as Checkbox } from './components/Checkbox/Checkbox.svelte';
|
|
7
10
|
export { default as ButtonSaveDemo } from './components/Button/ButtonSaveDemo.svelte';
|
|
8
11
|
export { default as Card } from './components/Card.svelte';
|
|
9
12
|
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';
|
|
10
16
|
export { default as ErrorDisplay } from './components/ErrorDisplay.svelte';
|
|
11
17
|
export { default as FormActions } from './components/FormActions.svelte';
|
|
12
18
|
export { default as FormValidationSummary } from './components/FormValidationSummary.svelte';
|
|
13
19
|
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';
|
|
14
25
|
export { default as Toggle } from './components/Toggle.svelte';
|
|
15
26
|
export { default as ValidationError } from './components/ValidationError.svelte';
|
|
16
27
|
|
|
@@ -59,7 +70,12 @@ export { default as WarningIcon } from './components/Icons/WarningIcon.svelte';
|
|
|
59
70
|
export { default as Input } from './components/Input/Input.svelte';
|
|
60
71
|
export { default as MultiSelect } from './components/Input/MultiSelect.svelte';
|
|
61
72
|
export { default as OTPInput } from './components/Input/OTPInput.svelte';
|
|
73
|
+
export { default as Search } from './components/Input/Search.svelte';
|
|
62
74
|
export { default as Select } from './components/Input/Select.svelte';
|
|
75
|
+
export { default as Textarea } from './components/Input/Textarea.svelte';
|
|
76
|
+
|
|
77
|
+
// Label Component
|
|
78
|
+
export { default as Label } from './components/Label/Label.svelte';
|
|
63
79
|
|
|
64
80
|
// Layout Components
|
|
65
81
|
export { default as BottomNav } from './components/Layout/BottomNav.svelte';
|
|
@@ -68,6 +84,8 @@ export { default as Header } from './components/Layout/Header.svelte';
|
|
|
68
84
|
// Modal Components
|
|
69
85
|
export { default as Modal } from './components/Modal/Modal.svelte';
|
|
70
86
|
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';
|
|
71
89
|
export { default as ModalStateManager } from './components/Modal/ModalStateManager.svelte';
|
|
72
90
|
export { default as ModalTestWrapper } from './components/Modal/ModalTestWrapper.svelte';
|
|
73
91
|
|