@getmicdrop/svelte-components 2.4.0 → 2.6.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/Badges/Badge.svelte +139 -14
- package/dist/components/Badges/Badge.svelte.d.ts +10 -0
- package/dist/components/Badges/Badge.svelte.d.ts.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.svelte +1 -1
- package/dist/components/Button/Button.svelte +135 -3
- package/dist/components/Button/Button.svelte.d.ts +2 -0
- package/dist/components/Button/Button.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/Checkbox/Checkbox.svelte +32 -58
- package/dist/components/Checkbox/Checkbox.svelte.d.ts +12 -0
- package/dist/components/Checkbox/Checkbox.svelte.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.svelte +78 -14
- package/dist/components/Dropdown/Dropdown.svelte.d.ts +2 -0
- package/dist/components/Dropdown/Dropdown.svelte.d.ts.map +1 -1
- package/dist/components/Dropdown/SelectDropdown.svelte +301 -0
- package/dist/components/Dropdown/SelectDropdown.svelte.d.ts +51 -0
- package/dist/components/Dropdown/SelectDropdown.svelte.d.ts.map +1 -0
- package/dist/components/EmptyState/EmptyState.svelte +80 -0
- package/dist/components/EmptyState/EmptyState.svelte.d.ts +37 -0
- package/dist/components/EmptyState/EmptyState.svelte.d.ts.map +1 -0
- package/dist/components/ErrorDisplay.svelte.d.ts +2 -2
- package/dist/components/Input/Input.svelte +6 -1
- package/dist/components/Input/Input.svelte.d.ts +10 -6
- package/dist/components/Input/Input.svelte.d.ts.map +1 -1
- package/dist/components/Input/MultiSelect.svelte.d.ts +2 -2
- package/dist/components/Input/Select.svelte.d.ts +2 -2
- package/dist/components/Input/Textarea.svelte.d.ts +2 -2
- package/dist/components/Layout/PageLayout.svelte +64 -0
- package/dist/components/Layout/PageLayout.svelte.d.ts +58 -0
- package/dist/components/Layout/PageLayout.svelte.d.ts.map +1 -0
- package/dist/components/Modal/StatusModal.svelte.d.ts +2 -2
- package/dist/components/Tabs/Tabs.svelte.d.ts +2 -2
- package/dist/components/Typography/Typography.svelte +50 -0
- package/dist/components/Typography/Typography.svelte.d.ts +48 -0
- package/dist/components/Typography/Typography.svelte.d.ts.map +1 -0
- package/dist/components/pages/performers/ShowDetails.svelte.d.ts +2 -2
- package/dist/components/pages/settings/tabs/CustomImageDropzone.svelte.d.ts +2 -2
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/package.json +1 -1
|
@@ -457,6 +457,11 @@
|
|
|
457
457
|
{:else}
|
|
458
458
|
<!-- Standard Input Layout -->
|
|
459
459
|
<div class="relative flex items-center w-full">
|
|
460
|
+
{#if $$slots.leftIcon}
|
|
461
|
+
<div class="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 z-10 pointer-events-none">
|
|
462
|
+
<slot name="leftIcon" />
|
|
463
|
+
</div>
|
|
464
|
+
{/if}
|
|
460
465
|
<input
|
|
461
466
|
bind:this={inputElement}
|
|
462
467
|
{id}
|
|
@@ -471,7 +476,7 @@
|
|
|
471
476
|
on:keydown={handleSearchKeyDown}
|
|
472
477
|
{maxlength}
|
|
473
478
|
{minlength}
|
|
474
|
-
class="input-field flex-1 {icon || (showClearButton && inputValue)
|
|
479
|
+
class="input-field flex-1 {$$slots.leftIcon ? 'pl-10' : ''} {icon || (showClearButton && inputValue)
|
|
475
480
|
? 'pr-10'
|
|
476
481
|
: ''} {getContentFloatClass()} {displayErrorText
|
|
477
482
|
? 'input-error'
|
|
@@ -4,18 +4,18 @@ type Input = SvelteComponent<{
|
|
|
4
4
|
size?: string | undefined;
|
|
5
5
|
className?: string | undefined;
|
|
6
6
|
disabled?: boolean | undefined;
|
|
7
|
+
icon?: null | undefined;
|
|
7
8
|
value?: string | undefined;
|
|
8
9
|
name?: string | undefined;
|
|
9
10
|
label?: string | undefined;
|
|
10
11
|
id?: string | undefined;
|
|
11
|
-
|
|
12
|
+
placeholder?: string | undefined;
|
|
12
13
|
required?: boolean | undefined;
|
|
13
14
|
optional?: boolean | undefined;
|
|
14
15
|
buttonIcon?: null | undefined;
|
|
15
16
|
buttonText?: null | undefined;
|
|
16
17
|
maxlength?: null | undefined;
|
|
17
18
|
minlength?: null | undefined;
|
|
18
|
-
placeholder?: string | undefined;
|
|
19
19
|
textareaSize?: string | undefined;
|
|
20
20
|
errorText?: string | undefined;
|
|
21
21
|
helperText?: string | undefined;
|
|
@@ -44,7 +44,9 @@ type Input = SvelteComponent<{
|
|
|
44
44
|
search: CustomEvent<any>;
|
|
45
45
|
} & {
|
|
46
46
|
[evt: string]: CustomEvent<any>;
|
|
47
|
-
}, {
|
|
47
|
+
}, {
|
|
48
|
+
leftIcon: {};
|
|
49
|
+
}> & {
|
|
48
50
|
$$bindings?: string | undefined;
|
|
49
51
|
};
|
|
50
52
|
declare const Input: $$__sveltets_2_IsomorphicComponent<{
|
|
@@ -52,18 +54,18 @@ declare const Input: $$__sveltets_2_IsomorphicComponent<{
|
|
|
52
54
|
size?: string | undefined;
|
|
53
55
|
className?: string | undefined;
|
|
54
56
|
disabled?: boolean | undefined;
|
|
57
|
+
icon?: null | undefined;
|
|
55
58
|
value?: string | undefined;
|
|
56
59
|
name?: string | undefined;
|
|
57
60
|
label?: string | undefined;
|
|
58
61
|
id?: string | undefined;
|
|
59
|
-
|
|
62
|
+
placeholder?: string | undefined;
|
|
60
63
|
required?: boolean | undefined;
|
|
61
64
|
optional?: boolean | undefined;
|
|
62
65
|
buttonIcon?: null | undefined;
|
|
63
66
|
buttonText?: null | undefined;
|
|
64
67
|
maxlength?: null | undefined;
|
|
65
68
|
minlength?: null | undefined;
|
|
66
|
-
placeholder?: string | undefined;
|
|
67
69
|
textareaSize?: string | undefined;
|
|
68
70
|
errorText?: string | undefined;
|
|
69
71
|
helperText?: string | undefined;
|
|
@@ -92,7 +94,9 @@ declare const Input: $$__sveltets_2_IsomorphicComponent<{
|
|
|
92
94
|
search: CustomEvent<any>;
|
|
93
95
|
} & {
|
|
94
96
|
[evt: string]: CustomEvent<any>;
|
|
95
|
-
}, {
|
|
97
|
+
}, {
|
|
98
|
+
leftIcon: {};
|
|
99
|
+
}, {}, string>;
|
|
96
100
|
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> {
|
|
97
101
|
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
98
102
|
$$bindings?: Bindings;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/Input/Input.svelte.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Input.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/Input/Input.svelte.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkdA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAAwnB;6CAd3kB,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"}
|
|
@@ -6,8 +6,8 @@ type MultiSelect = SvelteComponent<{
|
|
|
6
6
|
name?: string | undefined;
|
|
7
7
|
label?: string | undefined;
|
|
8
8
|
id?: string | undefined;
|
|
9
|
-
required?: boolean | undefined;
|
|
10
9
|
placeholder?: string | undefined;
|
|
10
|
+
required?: boolean | undefined;
|
|
11
11
|
animateFocus?: boolean | undefined;
|
|
12
12
|
items?: any[] | undefined;
|
|
13
13
|
hideClear?: boolean | undefined;
|
|
@@ -25,8 +25,8 @@ declare const MultiSelect: $$__sveltets_2_IsomorphicComponent<{
|
|
|
25
25
|
name?: string | undefined;
|
|
26
26
|
label?: string | undefined;
|
|
27
27
|
id?: string | undefined;
|
|
28
|
-
required?: boolean | undefined;
|
|
29
28
|
placeholder?: string | undefined;
|
|
29
|
+
required?: boolean | undefined;
|
|
30
30
|
animateFocus?: boolean | undefined;
|
|
31
31
|
items?: any[] | undefined;
|
|
32
32
|
hideClear?: boolean | undefined;
|
|
@@ -6,8 +6,8 @@ type Select = SvelteComponent<{
|
|
|
6
6
|
name?: string | undefined;
|
|
7
7
|
label?: string | undefined;
|
|
8
8
|
id?: string | undefined;
|
|
9
|
-
required?: boolean | undefined;
|
|
10
9
|
placeholder?: string | undefined;
|
|
10
|
+
required?: boolean | undefined;
|
|
11
11
|
animateFocus?: boolean | undefined;
|
|
12
12
|
items?: any[] | undefined;
|
|
13
13
|
}, {
|
|
@@ -24,8 +24,8 @@ declare const Select: $$__sveltets_2_IsomorphicComponent<{
|
|
|
24
24
|
name?: string | undefined;
|
|
25
25
|
label?: string | undefined;
|
|
26
26
|
id?: string | undefined;
|
|
27
|
-
required?: boolean | undefined;
|
|
28
27
|
placeholder?: string | undefined;
|
|
28
|
+
required?: boolean | undefined;
|
|
29
29
|
animateFocus?: boolean | undefined;
|
|
30
30
|
items?: any[] | undefined;
|
|
31
31
|
}, {
|
|
@@ -8,10 +8,10 @@ type Textarea = SvelteComponent<{
|
|
|
8
8
|
name?: string | undefined;
|
|
9
9
|
label?: string | undefined;
|
|
10
10
|
id?: string | undefined;
|
|
11
|
+
placeholder?: string | undefined;
|
|
11
12
|
required?: boolean | undefined;
|
|
12
13
|
maxlength?: null | undefined;
|
|
13
14
|
minlength?: null | undefined;
|
|
14
|
-
placeholder?: string | undefined;
|
|
15
15
|
readonly?: boolean | undefined;
|
|
16
16
|
rows?: number | undefined;
|
|
17
17
|
}, {
|
|
@@ -36,10 +36,10 @@ declare const Textarea: $$__sveltets_2_IsomorphicComponent<{
|
|
|
36
36
|
name?: string | undefined;
|
|
37
37
|
label?: string | undefined;
|
|
38
38
|
id?: string | undefined;
|
|
39
|
+
placeholder?: string | undefined;
|
|
39
40
|
required?: boolean | undefined;
|
|
40
41
|
maxlength?: null | undefined;
|
|
41
42
|
minlength?: null | undefined;
|
|
42
|
-
placeholder?: string | undefined;
|
|
43
43
|
readonly?: boolean | undefined;
|
|
44
44
|
rows?: number | undefined;
|
|
45
45
|
}, {
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import Breadcrumb from '../Breadcrumb/Breadcrumb.svelte';
|
|
3
|
+
import Card from '../Card.svelte';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Breadcrumb navigation data
|
|
7
|
+
* @type {Array<{name: string, href: string}>}
|
|
8
|
+
*/
|
|
9
|
+
export let breadcrumb = [];
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Page title displayed below breadcrumb
|
|
13
|
+
* @type {string}
|
|
14
|
+
*/
|
|
15
|
+
export let title = '';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Subtitle displayed below title
|
|
19
|
+
* @type {string}
|
|
20
|
+
*/
|
|
21
|
+
export let subtitle = '';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Layout variant
|
|
25
|
+
* - 'default': Content with standard padding, no wrapper
|
|
26
|
+
* - 'card': Content wrapped in Card component with max-width
|
|
27
|
+
* @type {'default' | 'card'}
|
|
28
|
+
*/
|
|
29
|
+
export let variant = 'default';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Max width class for card variant (e.g., 'max-w-4xl', 'max-w-6xl')
|
|
33
|
+
* @type {string}
|
|
34
|
+
*/
|
|
35
|
+
export let maxWidth = 'max-w-4xl';
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Additional CSS classes for the content container
|
|
39
|
+
* @type {string}
|
|
40
|
+
*/
|
|
41
|
+
export let className = '';
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Whether to show the header (breadcrumb, title, subtitle)
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
*/
|
|
47
|
+
export let showHeader = true;
|
|
48
|
+
</script>
|
|
49
|
+
|
|
50
|
+
{#if showHeader}
|
|
51
|
+
<nav class="pt-4 px-4 text-text-primary text-lg font-semibold">
|
|
52
|
+
<Breadcrumb data={breadcrumb} {title} {subtitle} />
|
|
53
|
+
</nav>
|
|
54
|
+
{/if}
|
|
55
|
+
|
|
56
|
+
<div class="px-4 pb-20 md:pb-6 {className}">
|
|
57
|
+
{#if variant === 'card'}
|
|
58
|
+
<Card className="dark:bg-bg-primary {maxWidth}">
|
|
59
|
+
<slot />
|
|
60
|
+
</Card>
|
|
61
|
+
{:else}
|
|
62
|
+
<slot />
|
|
63
|
+
{/if}
|
|
64
|
+
</div>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export default PageLayout;
|
|
2
|
+
type PageLayout = SvelteComponent<$$__sveltets_2_PropsWithChildren<{
|
|
3
|
+
title?: string | undefined;
|
|
4
|
+
className?: string | undefined;
|
|
5
|
+
variant?: "default" | "card" | undefined;
|
|
6
|
+
subtitle?: string | undefined;
|
|
7
|
+
breadcrumb?: {
|
|
8
|
+
name: string;
|
|
9
|
+
href: string;
|
|
10
|
+
}[] | undefined;
|
|
11
|
+
maxWidth?: string | undefined;
|
|
12
|
+
showHeader?: boolean | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
default: {};
|
|
15
|
+
}>, {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
}, {
|
|
18
|
+
default: {};
|
|
19
|
+
}> & {
|
|
20
|
+
$$bindings?: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
declare const PageLayout: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
23
|
+
title?: string | undefined;
|
|
24
|
+
className?: string | undefined;
|
|
25
|
+
variant?: "default" | "card" | undefined;
|
|
26
|
+
subtitle?: string | undefined;
|
|
27
|
+
breadcrumb?: {
|
|
28
|
+
name: string;
|
|
29
|
+
href: string;
|
|
30
|
+
}[] | undefined;
|
|
31
|
+
maxWidth?: string | undefined;
|
|
32
|
+
showHeader?: boolean | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
default: {};
|
|
35
|
+
}>, {
|
|
36
|
+
[evt: string]: CustomEvent<any>;
|
|
37
|
+
}, {
|
|
38
|
+
default: {};
|
|
39
|
+
}, {}, string>;
|
|
40
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
41
|
+
default: any;
|
|
42
|
+
} ? Props extends Record<string, never> ? any : {
|
|
43
|
+
children?: any;
|
|
44
|
+
} : {});
|
|
45
|
+
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> {
|
|
46
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
47
|
+
$$bindings?: Bindings;
|
|
48
|
+
} & Exports;
|
|
49
|
+
(internal: unknown, props: Props & {
|
|
50
|
+
$$events?: Events;
|
|
51
|
+
$$slots?: Slots;
|
|
52
|
+
}): Exports & {
|
|
53
|
+
$set?: any;
|
|
54
|
+
$on?: any;
|
|
55
|
+
};
|
|
56
|
+
z_$$bindings?: Bindings;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=PageLayout.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageLayout.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/Layout/PageLayout.svelte.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqHA;;;;;;cA1CyB,MAAM;cAAQ,MAAM;;;;;;;;;;eA0CgK;sCATvK,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"}
|
|
@@ -9,11 +9,11 @@ type StatusModal = SvelteComponent<{
|
|
|
9
9
|
disabled?: boolean | undefined;
|
|
10
10
|
loading?: boolean | undefined;
|
|
11
11
|
image?: null | undefined;
|
|
12
|
+
iconType?: string | undefined;
|
|
12
13
|
buttonText?: string | undefined;
|
|
13
14
|
description?: string | undefined;
|
|
14
15
|
customIcon?: null | undefined;
|
|
15
16
|
closeBtn?: boolean | undefined;
|
|
16
|
-
iconType?: string | undefined;
|
|
17
17
|
}, {
|
|
18
18
|
confirm: CustomEvent<any>;
|
|
19
19
|
close: CustomEvent<any>;
|
|
@@ -32,11 +32,11 @@ declare const StatusModal: $$__sveltets_2_IsomorphicComponent<{
|
|
|
32
32
|
disabled?: boolean | undefined;
|
|
33
33
|
loading?: boolean | undefined;
|
|
34
34
|
image?: null | undefined;
|
|
35
|
+
iconType?: string | undefined;
|
|
35
36
|
buttonText?: string | undefined;
|
|
36
37
|
description?: string | undefined;
|
|
37
38
|
customIcon?: null | undefined;
|
|
38
39
|
closeBtn?: boolean | undefined;
|
|
39
|
-
iconType?: string | undefined;
|
|
40
40
|
}, {
|
|
41
41
|
confirm: CustomEvent<any>;
|
|
42
42
|
close: CustomEvent<any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default Tabs;
|
|
2
2
|
type Tabs = SvelteComponent<$$__sveltets_2_PropsWithChildren<{
|
|
3
3
|
class?: string | undefined;
|
|
4
|
-
tabStyle?: "
|
|
4
|
+
tabStyle?: "pill" | "full" | "underline" | undefined;
|
|
5
5
|
contentClass?: string | undefined;
|
|
6
6
|
activeTabValue?: string | number | undefined;
|
|
7
7
|
}, {
|
|
@@ -15,7 +15,7 @@ type Tabs = SvelteComponent<$$__sveltets_2_PropsWithChildren<{
|
|
|
15
15
|
};
|
|
16
16
|
declare const Tabs: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
17
17
|
class?: string | undefined;
|
|
18
|
-
tabStyle?: "
|
|
18
|
+
tabStyle?: "pill" | "full" | "underline" | undefined;
|
|
19
19
|
contentClass?: string | undefined;
|
|
20
20
|
activeTabValue?: string | number | undefined;
|
|
21
21
|
}, {
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
/**
|
|
3
|
+
* Typography component for consistent text styling across the application.
|
|
4
|
+
* Renders semantic HTML elements (h1-h6, p) with configurable font weights.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <Typography variant="h1" weight="bold">Page Title</Typography>
|
|
8
|
+
* <Typography variant="p" weight="regular">Body text</Typography>
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/** @type {'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p'} The semantic element to render */
|
|
12
|
+
export let variant = 'p';
|
|
13
|
+
|
|
14
|
+
/** @type {'bold' | 'semibold' | 'medium' | 'regular'} Font weight variant */
|
|
15
|
+
export let weight = 'regular';
|
|
16
|
+
|
|
17
|
+
/** @type {string} Additional CSS classes */
|
|
18
|
+
let className = '';
|
|
19
|
+
export { className as class };
|
|
20
|
+
|
|
21
|
+
/** @type {string} Text content (alternative to slot) */
|
|
22
|
+
export let text = '';
|
|
23
|
+
|
|
24
|
+
const sizeMap = {
|
|
25
|
+
h1: 'text-3xl',
|
|
26
|
+
h2: 'text-2xl',
|
|
27
|
+
h3: 'text-xl',
|
|
28
|
+
h4: 'text-lg',
|
|
29
|
+
h5: 'text-base',
|
|
30
|
+
h6: 'text-xs',
|
|
31
|
+
p: 'text-sm',
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const weightMap = {
|
|
35
|
+
bold: 'font-bold',
|
|
36
|
+
semibold: 'font-semibold',
|
|
37
|
+
medium: 'font-medium',
|
|
38
|
+
regular: 'font-normal',
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
$: computedClass = `${sizeMap[variant]} ${weightMap[weight]} ${className}`.trim();
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<svelte:element this={variant} class={computedClass} {...$$restProps}>
|
|
45
|
+
{#if text}
|
|
46
|
+
{text}
|
|
47
|
+
{:else}
|
|
48
|
+
<slot />
|
|
49
|
+
{/if}
|
|
50
|
+
</svelte:element>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export default Typography;
|
|
2
|
+
type Typography = SvelteComponent<$$__sveltets_2_PropsWithChildren<{
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
class?: string | undefined;
|
|
5
|
+
variant?: "h3" | "h1" | "p" | "h2" | "h4" | "h5" | "h6" | undefined;
|
|
6
|
+
text?: string | undefined;
|
|
7
|
+
weight?: "medium" | "bold" | "semibold" | "regular" | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
default: {};
|
|
10
|
+
}>, {
|
|
11
|
+
[evt: string]: CustomEvent<any>;
|
|
12
|
+
}, {
|
|
13
|
+
default: {};
|
|
14
|
+
}> & {
|
|
15
|
+
$$bindings?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
declare const Typography: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
18
|
+
[x: string]: any;
|
|
19
|
+
class?: string | undefined;
|
|
20
|
+
variant?: "h3" | "h1" | "p" | "h2" | "h4" | "h5" | "h6" | undefined;
|
|
21
|
+
text?: string | undefined;
|
|
22
|
+
weight?: "medium" | "bold" | "semibold" | "regular" | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
default: {};
|
|
25
|
+
}>, {
|
|
26
|
+
[evt: string]: CustomEvent<any>;
|
|
27
|
+
}, {
|
|
28
|
+
default: {};
|
|
29
|
+
}, {}, string>;
|
|
30
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
31
|
+
default: any;
|
|
32
|
+
} ? Props extends Record<string, never> ? any : {
|
|
33
|
+
children?: any;
|
|
34
|
+
} : {});
|
|
35
|
+
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> {
|
|
36
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
37
|
+
$$bindings?: Bindings;
|
|
38
|
+
} & Exports;
|
|
39
|
+
(internal: unknown, props: Props & {
|
|
40
|
+
$$events?: Events;
|
|
41
|
+
$$slots?: Slots;
|
|
42
|
+
}): Exports & {
|
|
43
|
+
$set?: any;
|
|
44
|
+
$on?: any;
|
|
45
|
+
};
|
|
46
|
+
z_$$bindings?: Bindings;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=Typography.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Typography.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/Typography/Typography.svelte.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA0EA;;;;;;;;;;;;eAA0K;sCATpI,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,7 +1,7 @@
|
|
|
1
1
|
export default ShowDetails;
|
|
2
2
|
type ShowDetails = SvelteComponent<{
|
|
3
|
-
status: any;
|
|
4
3
|
venue: any;
|
|
4
|
+
status: any;
|
|
5
5
|
formattedStartTime: any;
|
|
6
6
|
showFullDate: any;
|
|
7
7
|
formattedDoorsOpenTime: any;
|
|
@@ -16,8 +16,8 @@ type ShowDetails = SvelteComponent<{
|
|
|
16
16
|
$$bindings?: string | undefined;
|
|
17
17
|
};
|
|
18
18
|
declare const ShowDetails: $$__sveltets_2_IsomorphicComponent<{
|
|
19
|
-
status: any;
|
|
20
19
|
venue: any;
|
|
20
|
+
status: any;
|
|
21
21
|
formattedStartTime: any;
|
|
22
22
|
showFullDate: any;
|
|
23
23
|
formattedDoorsOpenTime: any;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export default CustomImageDropzone;
|
|
2
2
|
type CustomImageDropzone = SvelteComponent<{
|
|
3
|
+
shape?: string | undefined;
|
|
3
4
|
label?: string | undefined;
|
|
4
5
|
readonly?: boolean | undefined;
|
|
5
6
|
existingImages?: any[] | undefined;
|
|
6
|
-
shape?: string | undefined;
|
|
7
7
|
}, {
|
|
8
8
|
upload: CustomEvent<any>;
|
|
9
9
|
delete: CustomEvent<any>;
|
|
@@ -13,10 +13,10 @@ type CustomImageDropzone = SvelteComponent<{
|
|
|
13
13
|
$$bindings?: string | undefined;
|
|
14
14
|
};
|
|
15
15
|
declare const CustomImageDropzone: $$__sveltets_2_IsomorphicComponent<{
|
|
16
|
+
shape?: string | undefined;
|
|
16
17
|
label?: string | undefined;
|
|
17
18
|
readonly?: boolean | undefined;
|
|
18
19
|
existingImages?: any[] | undefined;
|
|
19
|
-
shape?: string | undefined;
|
|
20
20
|
}, {
|
|
21
21
|
upload: CustomEvent<any>;
|
|
22
22
|
delete: CustomEvent<any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ export { default as DarkModeToggle } from "./components/DarkModeToggle.svelte";
|
|
|
12
12
|
export { default as Drawer } from "./components/Drawer/Drawer.svelte";
|
|
13
13
|
export { default as Dropdown } from "./components/Dropdown/Dropdown.svelte";
|
|
14
14
|
export { default as DropdownItem } from "./components/Dropdown/DropdownItem.svelte";
|
|
15
|
+
export { default as SelectDropdown } from "./components/Dropdown/SelectDropdown.svelte";
|
|
16
|
+
export { default as EmptyState } from "./components/EmptyState/EmptyState.svelte";
|
|
15
17
|
export { default as ErrorDisplay } from "./components/ErrorDisplay.svelte";
|
|
16
18
|
export { default as FormActions } from "./components/FormActions.svelte";
|
|
17
19
|
export { default as FormValidationSummary } from "./components/FormValidationSummary.svelte";
|
|
@@ -22,6 +24,7 @@ export { default as Skeleton } from "./components/Skeleton/Skeleton.svelte";
|
|
|
22
24
|
export { default as Tabs } from "./components/Tabs/Tabs.svelte";
|
|
23
25
|
export { default as TabItem } from "./components/Tabs/TabItem.svelte";
|
|
24
26
|
export { default as Toggle } from "./components/Toggle.svelte";
|
|
27
|
+
export { default as Typography } from "./components/Typography/Typography.svelte";
|
|
25
28
|
export { default as ValidationError } from "./components/ValidationError.svelte";
|
|
26
29
|
export { default as CropImage } from "./components/CropImage/CropImage.svelte";
|
|
27
30
|
export { default as Icon } from "./components/Icons/Icon.svelte";
|
|
@@ -64,6 +67,7 @@ export { default as Textarea } from "./components/Input/Textarea.svelte";
|
|
|
64
67
|
export { default as Label } from "./components/Label/Label.svelte";
|
|
65
68
|
export { default as BottomNav } from "./components/Layout/BottomNav.svelte";
|
|
66
69
|
export { default as Header } from "./components/Layout/Header.svelte";
|
|
70
|
+
export { default as PageLayout } from "./components/Layout/PageLayout.svelte";
|
|
67
71
|
export { default as Modal } from "./components/Modal/Modal.svelte";
|
|
68
72
|
export { default as ConfirmationModal } from "./components/Modal/ConfirmationModal.svelte";
|
|
69
73
|
export { default as StatusModal } from "./components/Modal/StatusModal.svelte";
|
package/dist/index.js
CHANGED
|
@@ -13,6 +13,8 @@ export { default as DarkModeToggle } from './components/DarkModeToggle.svelte';
|
|
|
13
13
|
export { default as Drawer } from './components/Drawer/Drawer.svelte';
|
|
14
14
|
export { default as Dropdown } from './components/Dropdown/Dropdown.svelte';
|
|
15
15
|
export { default as DropdownItem } from './components/Dropdown/DropdownItem.svelte';
|
|
16
|
+
export { default as SelectDropdown } from './components/Dropdown/SelectDropdown.svelte';
|
|
17
|
+
export { default as EmptyState } from './components/EmptyState/EmptyState.svelte';
|
|
16
18
|
export { default as ErrorDisplay } from './components/ErrorDisplay.svelte';
|
|
17
19
|
export { default as FormActions } from './components/FormActions.svelte';
|
|
18
20
|
export { default as FormValidationSummary } from './components/FormValidationSummary.svelte';
|
|
@@ -23,6 +25,7 @@ export { default as Skeleton } from './components/Skeleton/Skeleton.svelte';
|
|
|
23
25
|
export { default as Tabs } from './components/Tabs/Tabs.svelte';
|
|
24
26
|
export { default as TabItem } from './components/Tabs/TabItem.svelte';
|
|
25
27
|
export { default as Toggle } from './components/Toggle.svelte';
|
|
28
|
+
export { default as Typography } from './components/Typography/Typography.svelte';
|
|
26
29
|
export { default as ValidationError } from './components/ValidationError.svelte';
|
|
27
30
|
|
|
28
31
|
// Calendar Components
|
|
@@ -80,6 +83,7 @@ export { default as Label } from './components/Label/Label.svelte';
|
|
|
80
83
|
// Layout Components
|
|
81
84
|
export { default as BottomNav } from './components/Layout/BottomNav.svelte';
|
|
82
85
|
export { default as Header } from './components/Layout/Header.svelte';
|
|
86
|
+
export { default as PageLayout } from './components/Layout/PageLayout.svelte';
|
|
83
87
|
|
|
84
88
|
// Modal Components
|
|
85
89
|
export { default as Modal } from './components/Modal/Modal.svelte';
|