@sierra-95/svelte-scaffold 1.2.22 → 1.2.23
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/Core/components/{Form/Button → Button}/default/button.svelte +1 -1
- package/dist/Core/components/{Form/Button → Button}/theme/theme.svelte +1 -1
- package/dist/Core/components/Form/Form/form.svelte +0 -6
- package/dist/Core/components/Form/Form/form.svelte.d.ts +0 -3
- package/dist/Core/components/{others → Form/Input}/Previews/Audio/audio.svelte +1 -1
- package/dist/Core/components/{others → Form/Input}/Previews/Document/documents.svelte +1 -1
- package/dist/Core/components/{others → Form/Input}/Previews/GenericFile/genericFile.svelte +1 -1
- package/dist/Core/components/{others → Form/Input}/Previews/Image/image.svelte +1 -1
- package/dist/Core/components/{others → Form/Input}/Previews/Video/video.svelte +1 -1
- package/dist/Core/components/Form/Table/table.svelte +118 -0
- package/dist/Core/components/Form/Table/table.svelte.d.ts +28 -0
- package/dist/Core/components/Menus/DropdownContainer/dropdown.svelte +2 -1
- package/dist/Core/components/Menus/DropdownContainer/dropdown.svelte.d.ts +1 -0
- package/dist/Core/components/Menus/{Hamburger → HamburgerMenu}/hamburger.svelte +6 -6
- package/dist/Core/components/Menus/{Hamburger → HamburgerMenu}/hamburger.svelte.d.ts +4 -4
- package/dist/Core/components/Menus/MenuItem/menuItem.svelte +7 -2
- package/dist/Core/components/Menus/MenuItem/menuItem.svelte.d.ts +1 -0
- package/dist/Core/components/others/{Modal → popups/Modal}/modal.svelte +1 -1
- package/dist/Modules/Layout/Header/header.svelte +33 -12
- package/dist/index.d.ts +23 -22
- package/dist/index.js +24 -22
- package/dist/stores/modules/layout.d.ts +2 -0
- package/dist/stores/modules/layout.js +3 -1
- package/package.json +1 -1
- /package/dist/Core/components/{Form/Button → Button}/Hamburger/hamburger.svelte +0 -0
- /package/dist/Core/components/{Form/Button → Button}/Hamburger/hamburger.svelte.d.ts +0 -0
- /package/dist/Core/components/{others → Button}/WhatsappShare/whatsapp.svelte +0 -0
- /package/dist/Core/components/{others → Button}/WhatsappShare/whatsapp.svelte.d.ts +0 -0
- /package/dist/Core/components/{Form/Button → Button/custom}/Flip/button.css +0 -0
- /package/dist/Core/components/{Form/Button → Button/custom}/Flip/button.svelte +0 -0
- /package/dist/Core/components/{Form/Button → Button/custom}/Flip/button.svelte.d.ts +0 -0
- /package/dist/Core/components/{Form/Button → Button/custom}/Marquee/button.css +0 -0
- /package/dist/Core/components/{Form/Button → Button/custom}/Marquee/button.svelte +0 -0
- /package/dist/Core/components/{Form/Button → Button/custom}/Marquee/button.svelte.d.ts +0 -0
- /package/dist/Core/components/{Form/Button → Button/custom}/Swipe/button.css +0 -0
- /package/dist/Core/components/{Form/Button → Button/custom}/Swipe/button.svelte +0 -0
- /package/dist/Core/components/{Form/Button → Button/custom}/Swipe/button.svelte.d.ts +0 -0
- /package/dist/Core/components/{Form/Button → Button}/default/button.css +0 -0
- /package/dist/Core/components/{Form/Button → Button}/default/button.svelte.d.ts +0 -0
- /package/dist/Core/components/{Form/Button → Button/iconType}/select/select.svelte +0 -0
- /package/dist/Core/components/{Form/Button → Button/iconType}/select/select.svelte.d.ts +0 -0
- /package/dist/Core/components/{Form/Button → Button/iconType}/times/times.svelte +0 -0
- /package/dist/Core/components/{Form/Button → Button/iconType}/times/times.svelte.d.ts +0 -0
- /package/dist/Core/components/{Form/Button → Button}/theme/theme.css +0 -0
- /package/dist/Core/components/{Form/Button → Button}/theme/theme.svelte.d.ts +0 -0
- /package/dist/Core/components/{others/Hr → Form/HorizontalRule}/Hr/hr.svelte +0 -0
- /package/dist/Core/components/{others/Hr → Form/HorizontalRule}/Hr/hr.svelte.d.ts +0 -0
- /package/dist/Core/components/{others/Hr → Form/HorizontalRule}/HrSplit/hrsplit.svelte +0 -0
- /package/dist/Core/components/{others/Hr → Form/HorizontalRule}/HrSplit/hrsplit.svelte.d.ts +0 -0
- /package/dist/Core/components/{others → Form/Input}/Previews/Audio/audio.svelte.d.ts +0 -0
- /package/dist/Core/components/{others → Form/Input}/Previews/Document/documents.svelte.d.ts +0 -0
- /package/dist/Core/components/{others → Form/Input}/Previews/GenericFile/genericFile.svelte.d.ts +0 -0
- /package/dist/Core/components/{others → Form/Input}/Previews/Image/image.svelte.d.ts +0 -0
- /package/dist/Core/components/{others → Form/Input}/Previews/Video/video.svelte.d.ts +0 -0
- /package/dist/Core/components/{others → Form/Input}/Previews/generic.svelte +0 -0
- /package/dist/Core/components/{others → Form/Input}/Previews/generic.svelte.d.ts +0 -0
- /package/dist/Core/components/others/{Backdrop → popups/Backdrop}/backdrop.svelte +0 -0
- /package/dist/Core/components/others/{Backdrop → popups/Backdrop}/backdrop.svelte.d.ts +0 -0
- /package/dist/Core/components/others/{Modal → popups/Modal}/modal.svelte.d.ts +0 -0
- /package/dist/Core/components/others/{Wrapper → popups/Wrapper}/wrapper.svelte +0 -0
- /package/dist/Core/components/others/{Wrapper → popups/Wrapper}/wrapper.svelte.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { CircularProgress, buttonRipple } from '
|
|
2
|
+
import { CircularProgress, buttonRipple } from '../../../../index.js';
|
|
3
3
|
|
|
4
4
|
type _variant = 'contained' | 'outlined';
|
|
5
5
|
type _color = 'primary' | 'warning' | 'error' | 'none';
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {Carousel} from '../../../../index.js';
|
|
3
|
-
|
|
4
2
|
const {
|
|
5
3
|
children,
|
|
6
4
|
maxWidth = '500px',
|
|
7
5
|
formBackground = 'white',
|
|
8
6
|
pageBackground = 'var(--primary-bg)',
|
|
9
|
-
images = [],
|
|
10
|
-
period = 5000,
|
|
11
|
-
carouselButtonColor = 'white',
|
|
12
7
|
tailwindCss = '',
|
|
13
8
|
} = $props();
|
|
14
9
|
|
|
@@ -16,7 +11,6 @@
|
|
|
16
11
|
</script>
|
|
17
12
|
|
|
18
13
|
<main id="karakal-form" style="background-color: {pageBackground};">
|
|
19
|
-
<Carousel images={images} period={period} buttonColor={carouselButtonColor}/>
|
|
20
14
|
<div class={`form-container ${tailwindCss}`} style="background-color: {formBackground}; max-width: {maxWidth};">
|
|
21
15
|
{@render children()}
|
|
22
16
|
</div>
|
|
@@ -3,9 +3,6 @@ declare const Form: import("svelte").Component<{
|
|
|
3
3
|
maxWidth?: string;
|
|
4
4
|
formBackground?: string;
|
|
5
5
|
pageBackground?: string;
|
|
6
|
-
images?: any[];
|
|
7
|
-
period?: number;
|
|
8
|
-
carouselButtonColor?: string;
|
|
9
6
|
tailwindCss?: string;
|
|
10
7
|
}, {}, "">;
|
|
11
8
|
type Form = ReturnType<typeof Form>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {ButtonTimes, fileInputStore, ButtonSelect, removeFileForMedia, toggleSelectForMedia} from '
|
|
2
|
+
import {ButtonTimes, fileInputStore, ButtonSelect, removeFileForMedia, toggleSelectForMedia} from '../../../../../../index.js'
|
|
3
3
|
export let media;
|
|
4
4
|
export let buttonTimes = false;
|
|
5
5
|
export let urlsOnly = true;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {ButtonTimes,ButtonSelect, fileInputStore, removeFileForMedia, toggleSelectForMedia} from '
|
|
2
|
+
import {ButtonTimes,ButtonSelect, fileInputStore, removeFileForMedia, toggleSelectForMedia} from '../../../../../../index.js'
|
|
3
3
|
export let media;
|
|
4
4
|
export let buttonTimes = false;
|
|
5
5
|
export let urlsOnly = true;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {ButtonTimes,ButtonSelect, fileInputStore, removeFileForMedia, toggleSelectForMedia} from '
|
|
2
|
+
import {ButtonTimes,ButtonSelect, fileInputStore, removeFileForMedia, toggleSelectForMedia} from '../../../../../../index.js'
|
|
3
3
|
import Generic from '../generic.svelte';
|
|
4
4
|
export let media;
|
|
5
5
|
export let buttonTimes = false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {ButtonTimes, fileInputStore, ButtonSelect, getPreviewUrlForMedia, toggleSelectForMedia, removeFileForMedia, IMAGE_MIME_TYPES_PREVIEW} from '
|
|
2
|
+
import {ButtonTimes, fileInputStore, ButtonSelect, getPreviewUrlForMedia, toggleSelectForMedia, removeFileForMedia, IMAGE_MIME_TYPES_PREVIEW} from '../../../../../../index.js'
|
|
3
3
|
import Generic from '../generic.svelte';
|
|
4
4
|
|
|
5
5
|
export let media;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {ButtonTimes, fileInputStore, ButtonSelect, getPreviewUrlForMedia, toggleSelectForMedia, removeFileForMedia} from '
|
|
2
|
+
import {ButtonTimes, fileInputStore, ButtonSelect, getPreviewUrlForMedia, toggleSelectForMedia, removeFileForMedia} from '../../../../../../index.js'
|
|
3
3
|
|
|
4
4
|
export let media;
|
|
5
5
|
export let buttonTimes = false;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { SvelteComponent } from "svelte";
|
|
3
|
+
|
|
4
|
+
type TableCell = {
|
|
5
|
+
content: string | (() => string) | SvelteComponent;
|
|
6
|
+
colspan?: number;
|
|
7
|
+
rowspan?: number;
|
|
8
|
+
class?: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
type TableRow = TableCell[];
|
|
12
|
+
|
|
13
|
+
type TableProps = {
|
|
14
|
+
title?: {
|
|
15
|
+
name: string;
|
|
16
|
+
fontSize?: string;
|
|
17
|
+
fontWeight?: string;
|
|
18
|
+
color?: string;
|
|
19
|
+
};
|
|
20
|
+
table:{
|
|
21
|
+
headers: string[];
|
|
22
|
+
rows: TableRow[];
|
|
23
|
+
striped?: boolean;
|
|
24
|
+
stripeColor?: string;
|
|
25
|
+
fontSize?: string;
|
|
26
|
+
borderSize?: string;
|
|
27
|
+
borderColor?: string;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const defaultTitle = {
|
|
32
|
+
name: '',
|
|
33
|
+
fontSize: "1.25rem",
|
|
34
|
+
fontWeight: "bold",
|
|
35
|
+
color: "var(--text-primary)"
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const defaultTable = {
|
|
39
|
+
headers: [],
|
|
40
|
+
rows: [],
|
|
41
|
+
striped: true,
|
|
42
|
+
fontSize: "0.875rem",
|
|
43
|
+
borderSize: "1px",
|
|
44
|
+
borderColor: "var(--border)"
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
const props: TableProps = $props();
|
|
48
|
+
|
|
49
|
+
const title = $derived({
|
|
50
|
+
...defaultTitle,
|
|
51
|
+
...props.title
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
const table = $derived({
|
|
55
|
+
...defaultTable,
|
|
56
|
+
...props.table
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
const stripeColor = "var(--background-secondary)";
|
|
60
|
+
</script>
|
|
61
|
+
|
|
62
|
+
<style>
|
|
63
|
+
#sierra-table table {
|
|
64
|
+
table-layout: auto;
|
|
65
|
+
width: 100%;
|
|
66
|
+
text-align: left;
|
|
67
|
+
}
|
|
68
|
+
#sierra-table thead {
|
|
69
|
+
font-size: 0.75rem;
|
|
70
|
+
text-transform: uppercase;
|
|
71
|
+
}
|
|
72
|
+
#sierra-table th,
|
|
73
|
+
#sierra-table td {
|
|
74
|
+
padding: 0.75rem;
|
|
75
|
+
}
|
|
76
|
+
#sierra-table h2{
|
|
77
|
+
margin-bottom: 1rem;
|
|
78
|
+
|
|
79
|
+
}
|
|
80
|
+
</style>
|
|
81
|
+
|
|
82
|
+
<main id="sierra-table" style="width: 100%;">
|
|
83
|
+
{#if title.name}
|
|
84
|
+
<h2>{title.name}</h2>
|
|
85
|
+
{/if}
|
|
86
|
+
<table style="font-size: {table.fontSize};">
|
|
87
|
+
<thead>
|
|
88
|
+
<tr>
|
|
89
|
+
{#each table.headers as header}
|
|
90
|
+
<th style="border: {table.borderSize} solid {table.borderColor};">{header}</th>
|
|
91
|
+
{/each}
|
|
92
|
+
</tr>
|
|
93
|
+
</thead>
|
|
94
|
+
|
|
95
|
+
<tbody>
|
|
96
|
+
{#each table.rows as row, i}
|
|
97
|
+
<tr
|
|
98
|
+
style="{table.striped && i % 2 === 1 ? `background-color: ${stripeColor}` : ''}"
|
|
99
|
+
>
|
|
100
|
+
{#each row as cell}
|
|
101
|
+
<td
|
|
102
|
+
class={`${cell.class || ''}`}
|
|
103
|
+
style="border: {table.borderSize} solid {table.borderColor};"
|
|
104
|
+
colspan={cell.colspan || 1}
|
|
105
|
+
rowspan={cell.rowspan || 1}
|
|
106
|
+
>
|
|
107
|
+
{#if typeof cell.content === 'function'}
|
|
108
|
+
{@html cell.content()}
|
|
109
|
+
{:else}
|
|
110
|
+
{@html cell.content}
|
|
111
|
+
{/if}
|
|
112
|
+
</td>
|
|
113
|
+
{/each}
|
|
114
|
+
</tr>
|
|
115
|
+
{/each}
|
|
116
|
+
</tbody>
|
|
117
|
+
</table>
|
|
118
|
+
</main>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
type TableCell = {
|
|
3
|
+
content: string | (() => string) | SvelteComponent;
|
|
4
|
+
colspan?: number;
|
|
5
|
+
rowspan?: number;
|
|
6
|
+
class?: string;
|
|
7
|
+
};
|
|
8
|
+
type TableRow = TableCell[];
|
|
9
|
+
type TableProps = {
|
|
10
|
+
title?: {
|
|
11
|
+
name: string;
|
|
12
|
+
fontSize?: string;
|
|
13
|
+
fontWeight?: string;
|
|
14
|
+
color?: string;
|
|
15
|
+
};
|
|
16
|
+
table: {
|
|
17
|
+
headers: string[];
|
|
18
|
+
rows: TableRow[];
|
|
19
|
+
striped?: boolean;
|
|
20
|
+
stripeColor?: string;
|
|
21
|
+
fontSize?: string;
|
|
22
|
+
borderSize?: string;
|
|
23
|
+
borderColor?: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
declare const Table: import("svelte").Component<TableProps, {}, "">;
|
|
27
|
+
type Table = ReturnType<typeof Table>;
|
|
28
|
+
export default Table;
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
width = 'auto',
|
|
11
11
|
open = $bindable(true),
|
|
12
12
|
dropdownTrigger = null,
|
|
13
|
+
zIndex = 5,
|
|
13
14
|
children = null,
|
|
14
15
|
} = $props();
|
|
15
16
|
|
|
@@ -75,7 +76,6 @@
|
|
|
75
76
|
box-shadow: var(--box-shadow);
|
|
76
77
|
min-width: 5px;
|
|
77
78
|
min-height: 5px;
|
|
78
|
-
z-index: 5;
|
|
79
79
|
}
|
|
80
80
|
</style>
|
|
81
81
|
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
style="
|
|
95
95
|
transform-origin: top; top: {top}; width: {width};
|
|
96
96
|
left: {dropdownStyle.left}; right: {dropdownStyle.right};
|
|
97
|
+
z-index: {zIndex};
|
|
97
98
|
"
|
|
98
99
|
>{@render children?.()}
|
|
99
100
|
</div>
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
let {
|
|
7
|
-
zIndex = 40,
|
|
8
7
|
barWidth = "30px",
|
|
9
8
|
barHeight = "3px",
|
|
10
9
|
barColor = "black",
|
|
11
10
|
barBorderRadius = "5px",
|
|
12
11
|
barSpacing = "5px",
|
|
12
|
+
menuZIndex = 40,
|
|
13
13
|
menuTextColor = "black",
|
|
14
14
|
menuBackgroundColor = "white",
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
companyLogo = "",
|
|
15
|
+
menuLogoUrl = "",
|
|
16
|
+
menuLogoWidth = "100px",
|
|
18
17
|
menuOpen = $bindable(false),
|
|
18
|
+
buttonTimesColor = "currentColor",
|
|
19
19
|
children = null,
|
|
20
20
|
} = $props();
|
|
21
21
|
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
id="sierra-hamburger-menu"
|
|
39
39
|
in:fly={{ y: -100, duration: 300 }}
|
|
40
40
|
out:fly={{ y: -100, duration: 300 }}
|
|
41
|
-
style="background-color: {menuBackgroundColor}; color: {menuTextColor}; z-index: {
|
|
41
|
+
style="background-color: {menuBackgroundColor}; color: {menuTextColor}; z-index: {menuZIndex};"
|
|
42
42
|
>
|
|
43
43
|
<div style="height: 40px; justify-content: space-between; align-items: center; display: flex; padding: 0 20px; margin-top: 20px;">
|
|
44
|
-
<img src={
|
|
44
|
+
<img src={menuLogoUrl} alt="Logo" style="width: {menuLogoWidth};"/>
|
|
45
45
|
<ButtonTimes width="50px" height="100%" absolute={false} iconSize="18px" onclick={toggleMenu} iconColor={buttonTimesColor}/>
|
|
46
46
|
</div>
|
|
47
47
|
{@render children?.()}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
declare const Hamburger: import("svelte").Component<{
|
|
2
|
-
zIndex?: number;
|
|
3
2
|
barWidth?: string;
|
|
4
3
|
barHeight?: string;
|
|
5
4
|
barColor?: string;
|
|
6
5
|
barBorderRadius?: string;
|
|
7
6
|
barSpacing?: string;
|
|
7
|
+
menuZIndex?: number;
|
|
8
8
|
menuTextColor?: string;
|
|
9
9
|
menuBackgroundColor?: string;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
companyLogo?: string;
|
|
10
|
+
menuLogoUrl?: string;
|
|
11
|
+
menuLogoWidth?: string;
|
|
13
12
|
menuOpen?: boolean;
|
|
13
|
+
buttonTimesColor?: string;
|
|
14
14
|
children?: any;
|
|
15
15
|
}, {}, "menuOpen">;
|
|
16
16
|
type Hamburger = ReturnType<typeof Hamburger>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
const {
|
|
3
3
|
icon = '',
|
|
4
|
+
url = '',
|
|
4
5
|
active = false,
|
|
5
6
|
disabled = false,
|
|
6
7
|
iconSize = '20px',
|
|
7
|
-
iconGap = '
|
|
8
|
+
iconGap = '15px',
|
|
8
9
|
iconBg = 'var(--primary-bg)',
|
|
9
10
|
rounded = '0px',
|
|
10
11
|
children = null,
|
|
@@ -42,5 +43,9 @@
|
|
|
42
43
|
<i style="font-size: {iconSize}; color: {iconBg}"
|
|
43
44
|
class="fa {icon}"></i>
|
|
44
45
|
{/if}
|
|
45
|
-
|
|
46
|
+
|
|
47
|
+
{#if url}
|
|
48
|
+
<img style="width: {iconSize};" src={url} alt="Logo"/>
|
|
49
|
+
{/if}
|
|
50
|
+
<h4 style="margin-left: {icon || url ? iconGap : '0'};">{@render children?.()}</h4>
|
|
46
51
|
</div>
|
|
@@ -1,27 +1,48 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {layoutStore, ButtonHamburger} from '../../../index.js';
|
|
2
|
+
import {layoutStore, ButtonHamburger, DropdownContainer, MenuItem} from '../../../index.js';
|
|
3
3
|
import './header.css';
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
const {
|
|
5
6
|
toggleMenu = (() => {}),
|
|
6
7
|
} = $props();
|
|
8
|
+
let openMenu = $state(false);
|
|
7
9
|
|
|
8
10
|
</script>
|
|
9
11
|
<header id='sierra-header'>
|
|
10
12
|
<div style="display: flex; align-items: center; gap: 1rem;">
|
|
13
|
+
|
|
11
14
|
<a href={$layoutStore.headerLink} style="display: flex; align-items: center; gap: 0.5rem; color: inherit; margin-left: 1rem;'}">
|
|
12
15
|
{#if $layoutStore.headerImage}
|
|
13
|
-
|
|
14
|
-
{/if}
|
|
15
|
-
{#if $layoutStore.headerTitle}
|
|
16
|
-
<h2
|
|
17
|
-
style="
|
|
18
|
-
color: {$layoutStore.headerTitleColor};
|
|
19
|
-
font-family: {$layoutStore.headerTitleFont};
|
|
20
|
-
font-size: {$layoutStore.headerTitleFontSize};
|
|
21
|
-
font-weight: {$layoutStore.headerTitleFontWeight};
|
|
22
|
-
">{$layoutStore.headerTitle}</h2>
|
|
16
|
+
<img style="--header-image-size : {$layoutStore.headerImageSize}" src={$layoutStore.headerImage} alt="Logo"/>
|
|
23
17
|
{/if}
|
|
24
18
|
</a>
|
|
19
|
+
|
|
20
|
+
<div style="display: flex; align-items: center; gap: 5px">
|
|
21
|
+
|
|
22
|
+
<!--More header options-->
|
|
23
|
+
{#if $layoutStore.dropdownContent}
|
|
24
|
+
{#snippet TriggerMenu()}
|
|
25
|
+
<button aria-label="Ellipsis" onclick={() => (openMenu = !openMenu)}>
|
|
26
|
+
<i class="fa-solid fa-chevron-down {openMenu? 'active':''}"></i>
|
|
27
|
+
</button>
|
|
28
|
+
{/snippet}
|
|
29
|
+
<DropdownContainer zIndex={15} bind:open={openMenu} dropdownTrigger={TriggerMenu}>
|
|
30
|
+
{@render $layoutStore.dropdownContent?.()}
|
|
31
|
+
</DropdownContainer>
|
|
32
|
+
{/if}
|
|
33
|
+
|
|
34
|
+
<!-- Header Title -->
|
|
35
|
+
{#if $layoutStore.headerTitle}
|
|
36
|
+
<a href={$layoutStore.headerLink}
|
|
37
|
+
style="
|
|
38
|
+
color: {$layoutStore.headerTitleColor};
|
|
39
|
+
font-family: {$layoutStore.headerTitleFont};
|
|
40
|
+
font-size: {$layoutStore.headerTitleFontSize};
|
|
41
|
+
font-weight: {$layoutStore.headerTitleFontWeight};
|
|
42
|
+
">{$layoutStore.headerTitle}</a>
|
|
43
|
+
{/if}
|
|
44
|
+
</div>
|
|
45
|
+
|
|
25
46
|
</div>
|
|
26
47
|
<div>{@render $layoutStore.headerCenterContent?.()}</div>
|
|
27
48
|
<div style="display: flex; gap: 1rem; align-items: center;">
|
package/dist/index.d.ts
CHANGED
|
@@ -3,14 +3,20 @@ export { default as CircularProgress } from './Core/components/others/Progress/C
|
|
|
3
3
|
export { default as LinearProgress } from './Core/components/others/Progress/LinearProgress/LinearProgress.svelte';
|
|
4
4
|
export { default as CustomProgress } from './Core/components/others/Progress/CustomProgress/customProgress.svelte';
|
|
5
5
|
export { default as StorageGauge } from './Core/components/others/Progress/StorageGauge/storagegauge.svelte';
|
|
6
|
-
export { default as Button } from './Core/components/
|
|
7
|
-
export { default as ButtonFlip } from './Core/components/
|
|
8
|
-
export { default as ButtonMarquee } from './Core/components/
|
|
9
|
-
export { default as ButtonSwipe } from './Core/components/
|
|
10
|
-
export { default as ButtonTheme } from './Core/components/
|
|
11
|
-
export { default as ButtonTimes } from './Core/components/
|
|
12
|
-
export { default as ButtonSelect } from './Core/components/
|
|
13
|
-
export { default as ButtonHamburger } from './Core/components/
|
|
6
|
+
export { default as Button } from './Core/components/Button/default/button.svelte';
|
|
7
|
+
export { default as ButtonFlip } from './Core/components/Button/custom/Flip/button.svelte';
|
|
8
|
+
export { default as ButtonMarquee } from './Core/components/Button/custom/Marquee/button.svelte';
|
|
9
|
+
export { default as ButtonSwipe } from './Core/components/Button/custom/Swipe/button.svelte';
|
|
10
|
+
export { default as ButtonTheme } from './Core/components/Button/theme/theme.svelte';
|
|
11
|
+
export { default as ButtonTimes } from './Core/components/Button/iconType/times/times.svelte';
|
|
12
|
+
export { default as ButtonSelect } from './Core/components/Button/iconType/select/select.svelte';
|
|
13
|
+
export { default as ButtonHamburger } from './Core/components/Button/Hamburger/hamburger.svelte';
|
|
14
|
+
export { default as ButtonWhatsappShare } from './Core/components/Button/WhatsappShare/whatsapp.svelte';
|
|
15
|
+
export { default as Form } from './Core/components/Form/Form/form.svelte';
|
|
16
|
+
export { default as Hr } from './Core/components/Form/HorizontalRule/Hr/hr.svelte';
|
|
17
|
+
export { default as HrSplit } from './Core/components/Form/HorizontalRule/HrSplit/hrsplit.svelte';
|
|
18
|
+
export { default as Checkbox } from './Core/components/Form/Checkbox/checkbox.svelte';
|
|
19
|
+
export { default as Table } from './Core/components/Form/Table/table.svelte';
|
|
14
20
|
export { default as Input } from './Core/components/Form/Input/input/input.svelte';
|
|
15
21
|
export { default as PasswordInput } from './Core/components/Form/Input/password/password.svelte';
|
|
16
22
|
export { default as Select } from './Core/components/Form/Input/select/select.svelte';
|
|
@@ -20,29 +26,24 @@ export { default as TextArea } from './Core/components/Form/Input/TextArea/texta
|
|
|
20
26
|
export { default as DateInput } from './Core/components/Form/Input/Date/date.svelte';
|
|
21
27
|
export { default as TimeInput } from './Core/components/Form/Input/Time/time.svelte';
|
|
22
28
|
export { default as PasswordStrength } from './Core/components/Form/Input/PasswordStrength/passwordStrength.svelte';
|
|
23
|
-
export { default as PreviewAudio } from './Core/components/
|
|
24
|
-
export { default as PreviewImage } from './Core/components/
|
|
25
|
-
export { default as PreviewVideo } from './Core/components/
|
|
26
|
-
export { default as PreviewDocument } from './Core/components/
|
|
27
|
-
export { default as PreviewGenericFile } from './Core/components/
|
|
29
|
+
export { default as PreviewAudio } from './Core/components/Form/Input/Previews/Audio/audio.svelte';
|
|
30
|
+
export { default as PreviewImage } from './Core/components/Form/Input/Previews/Image/image.svelte';
|
|
31
|
+
export { default as PreviewVideo } from './Core/components/Form/Input/Previews/Video/video.svelte';
|
|
32
|
+
export { default as PreviewDocument } from './Core/components/Form/Input/Previews/Document/documents.svelte';
|
|
33
|
+
export { default as PreviewGenericFile } from './Core/components/Form/Input/Previews/GenericFile/genericFile.svelte';
|
|
28
34
|
export { default as MenuItem } from './Core/components/Menus/MenuItem/menuItem.svelte';
|
|
29
35
|
export { default as DropdownContainer } from './Core/components/Menus/DropdownContainer/dropdown.svelte';
|
|
30
36
|
export { default as Tabs } from './Core/components/Menus/Tabs/main.svelte';
|
|
31
|
-
export { default as HamburgerMenu } from './Core/components/Menus/
|
|
37
|
+
export { default as HamburgerMenu } from './Core/components/Menus/HamburgerMenu/hamburger.svelte';
|
|
32
38
|
export { default as ContentSwitcher } from './Core/components/Menus/ContentSwitcher/contentSwitcher.svelte';
|
|
33
|
-
export { default as Modal } from './Core/components/others/Modal/modal.svelte';
|
|
34
|
-
export { default as Backdrop } from './Core/components/others/Backdrop/backdrop.svelte';
|
|
35
|
-
export { default as Wrapper } from './Core/components/others/Wrapper/wrapper.svelte';
|
|
39
|
+
export { default as Modal } from './Core/components/others/popups/Modal/modal.svelte';
|
|
40
|
+
export { default as Backdrop } from './Core/components/others/popups/Backdrop/backdrop.svelte';
|
|
41
|
+
export { default as Wrapper } from './Core/components/others/popups/Wrapper/wrapper.svelte';
|
|
36
42
|
export { default as Time } from './Core/components/others/Calender/Time/time.svelte';
|
|
37
43
|
export { default as Date } from './Core/components/others/Calender/Date/date.svelte';
|
|
38
|
-
export { default as Hr } from './Core/components/others/Hr/Hr/hr.svelte';
|
|
39
|
-
export { default as HrSplit } from './Core/components/others/Hr/HrSplit/hrsplit.svelte';
|
|
40
|
-
export { default as Checkbox } from './Core/components/Form/Checkbox/checkbox.svelte';
|
|
41
|
-
export { default as Form } from './Core/components/Form/Form/form.svelte';
|
|
42
44
|
export { default as Carousel } from './Core/components/others/Carousel/carousel.svelte';
|
|
43
45
|
export { default as Avatar } from './Core/components/others/Avatar/avatar.svelte';
|
|
44
46
|
export { default as ColorPicker } from './Core/components/others/ColorPicker/main.svelte';
|
|
45
|
-
export { default as WhatsappShare } from './Core/components/others/WhatsappShare/whatsapp.svelte';
|
|
46
47
|
export { default as GlobalSearch } from './Core/features/GlobalSearch/main.svelte';
|
|
47
48
|
export { default as ToastManager } from './Core/features/ToastManager/toastManager.svelte';
|
|
48
49
|
export { default as Editor } from './Modules/Editor/main.svelte';
|
package/dist/index.js
CHANGED
|
@@ -6,14 +6,21 @@ export { default as LinearProgress } from './Core/components/others/Progress/Lin
|
|
|
6
6
|
export { default as CustomProgress } from './Core/components/others/Progress/CustomProgress/customProgress.svelte';
|
|
7
7
|
export { default as StorageGauge } from './Core/components/others/Progress/StorageGauge/storagegauge.svelte';
|
|
8
8
|
//Buttons
|
|
9
|
-
export { default as Button } from './Core/components/
|
|
10
|
-
export { default as ButtonFlip } from './Core/components/
|
|
11
|
-
export { default as ButtonMarquee } from './Core/components/
|
|
12
|
-
export { default as ButtonSwipe } from './Core/components/
|
|
13
|
-
export { default as ButtonTheme } from './Core/components/
|
|
14
|
-
export { default as ButtonTimes } from './Core/components/
|
|
15
|
-
export { default as ButtonSelect } from './Core/components/
|
|
16
|
-
export { default as ButtonHamburger } from './Core/components/
|
|
9
|
+
export { default as Button } from './Core/components/Button/default/button.svelte';
|
|
10
|
+
export { default as ButtonFlip } from './Core/components/Button/custom/Flip/button.svelte';
|
|
11
|
+
export { default as ButtonMarquee } from './Core/components/Button/custom/Marquee/button.svelte';
|
|
12
|
+
export { default as ButtonSwipe } from './Core/components/Button/custom/Swipe/button.svelte';
|
|
13
|
+
export { default as ButtonTheme } from './Core/components/Button/theme/theme.svelte';
|
|
14
|
+
export { default as ButtonTimes } from './Core/components/Button/iconType/times/times.svelte';
|
|
15
|
+
export { default as ButtonSelect } from './Core/components/Button/iconType/select/select.svelte';
|
|
16
|
+
export { default as ButtonHamburger } from './Core/components/Button/Hamburger/hamburger.svelte';
|
|
17
|
+
export { default as ButtonWhatsappShare } from './Core/components/Button/WhatsappShare/whatsapp.svelte';
|
|
18
|
+
//Form
|
|
19
|
+
export { default as Form } from './Core/components/Form/Form/form.svelte';
|
|
20
|
+
export { default as Hr } from './Core/components/Form/HorizontalRule/Hr/hr.svelte';
|
|
21
|
+
export { default as HrSplit } from './Core/components/Form/HorizontalRule/HrSplit/hrsplit.svelte';
|
|
22
|
+
export { default as Checkbox } from './Core/components/Form/Checkbox/checkbox.svelte';
|
|
23
|
+
export { default as Table } from './Core/components/Form/Table/table.svelte';
|
|
17
24
|
//Inputs
|
|
18
25
|
export { default as Input } from './Core/components/Form/Input/input/input.svelte';
|
|
19
26
|
export { default as PasswordInput } from './Core/components/Form/Input/password/password.svelte';
|
|
@@ -25,31 +32,26 @@ export { default as DateInput } from './Core/components/Form/Input/Date/date.sve
|
|
|
25
32
|
export { default as TimeInput } from './Core/components/Form/Input/Time/time.svelte';
|
|
26
33
|
export { default as PasswordStrength } from './Core/components/Form/Input/PasswordStrength/passwordStrength.svelte';
|
|
27
34
|
//Previews
|
|
28
|
-
export { default as PreviewAudio } from './Core/components/
|
|
29
|
-
export { default as PreviewImage } from './Core/components/
|
|
30
|
-
export { default as PreviewVideo } from './Core/components/
|
|
31
|
-
export { default as PreviewDocument } from './Core/components/
|
|
32
|
-
export { default as PreviewGenericFile } from './Core/components/
|
|
35
|
+
export { default as PreviewAudio } from './Core/components/Form/Input/Previews/Audio/audio.svelte';
|
|
36
|
+
export { default as PreviewImage } from './Core/components/Form/Input/Previews/Image/image.svelte';
|
|
37
|
+
export { default as PreviewVideo } from './Core/components/Form/Input/Previews/Video/video.svelte';
|
|
38
|
+
export { default as PreviewDocument } from './Core/components/Form/Input/Previews/Document/documents.svelte';
|
|
39
|
+
export { default as PreviewGenericFile } from './Core/components/Form/Input/Previews/GenericFile/genericFile.svelte';
|
|
33
40
|
//Menus
|
|
34
41
|
export { default as MenuItem } from './Core/components/Menus/MenuItem/menuItem.svelte';
|
|
35
42
|
export { default as DropdownContainer } from './Core/components/Menus/DropdownContainer/dropdown.svelte';
|
|
36
43
|
export { default as Tabs } from './Core/components/Menus/Tabs/main.svelte';
|
|
37
|
-
export { default as HamburgerMenu } from './Core/components/Menus/
|
|
44
|
+
export { default as HamburgerMenu } from './Core/components/Menus/HamburgerMenu/hamburger.svelte';
|
|
38
45
|
export { default as ContentSwitcher } from './Core/components/Menus/ContentSwitcher/contentSwitcher.svelte';
|
|
39
46
|
//others
|
|
40
|
-
export { default as Modal } from './Core/components/others/Modal/modal.svelte';
|
|
41
|
-
export { default as Backdrop } from './Core/components/others/Backdrop/backdrop.svelte';
|
|
42
|
-
export { default as Wrapper } from './Core/components/others/Wrapper/wrapper.svelte';
|
|
47
|
+
export { default as Modal } from './Core/components/others/popups/Modal/modal.svelte';
|
|
48
|
+
export { default as Backdrop } from './Core/components/others/popups/Backdrop/backdrop.svelte';
|
|
49
|
+
export { default as Wrapper } from './Core/components/others/popups/Wrapper/wrapper.svelte';
|
|
43
50
|
export { default as Time } from './Core/components/others/Calender/Time/time.svelte';
|
|
44
51
|
export { default as Date } from './Core/components/others/Calender/Date/date.svelte';
|
|
45
|
-
export { default as Hr } from './Core/components/others/Hr/Hr/hr.svelte';
|
|
46
|
-
export { default as HrSplit } from './Core/components/others/Hr/HrSplit/hrsplit.svelte';
|
|
47
|
-
export { default as Checkbox } from './Core/components/Form/Checkbox/checkbox.svelte';
|
|
48
|
-
export { default as Form } from './Core/components/Form/Form/form.svelte';
|
|
49
52
|
export { default as Carousel } from './Core/components/others/Carousel/carousel.svelte';
|
|
50
53
|
export { default as Avatar } from './Core/components/others/Avatar/avatar.svelte';
|
|
51
54
|
export { default as ColorPicker } from './Core/components/others/ColorPicker/main.svelte';
|
|
52
|
-
export { default as WhatsappShare } from './Core/components/others/WhatsappShare/whatsapp.svelte';
|
|
53
55
|
//####################Features##################################
|
|
54
56
|
export { default as GlobalSearch } from './Core/features/GlobalSearch/main.svelte';
|
|
55
57
|
export { default as ToastManager } from './Core/features/ToastManager/toastManager.svelte';
|
|
@@ -35,6 +35,8 @@ export type LayoutState = {
|
|
|
35
35
|
backgroundColor: string;
|
|
36
36
|
userRole?: string;
|
|
37
37
|
ROLE_LEVELS: Record<any, number>;
|
|
38
|
+
dropdown?: boolean;
|
|
39
|
+
dropdownContent?: any;
|
|
38
40
|
};
|
|
39
41
|
export declare const layoutStore: import("svelte/store").Writable<LayoutState>;
|
|
40
42
|
export declare function resetLayoutStore(): void;
|
|
@@ -19,7 +19,9 @@ const defaultLayoutState = {
|
|
|
19
19
|
menuActiveIconColor: 'var(--primary-bg)',
|
|
20
20
|
backgroundColor: '',
|
|
21
21
|
userRole: 'user',
|
|
22
|
-
ROLE_LEVELS: { user: 1 }
|
|
22
|
+
ROLE_LEVELS: { user: 1 },
|
|
23
|
+
dropdown: false,
|
|
24
|
+
dropdownContent: null
|
|
23
25
|
};
|
|
24
26
|
export const layoutStore = writable({
|
|
25
27
|
...defaultLayoutState
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/Core/components/{others → Form/Input}/Previews/GenericFile/genericFile.svelte.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|