@hyvor/design 0.0.68 → 1.0.5
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/ActionList/ActionList.svelte +22 -9
- package/dist/components/ActionList/ActionList.svelte.d.ts +8 -19
- package/dist/components/ActionList/ActionListGroup.svelte +18 -8
- package/dist/components/ActionList/ActionListGroup.svelte.d.ts +8 -19
- package/dist/components/ActionList/ActionListItem.svelte +49 -25
- package/dist/components/ActionList/ActionListItem.svelte.d.ts +28 -25
- package/dist/components/ActionList/Selected.svelte +10 -4
- package/dist/components/ActionList/Selected.svelte.d.ts +6 -16
- package/dist/components/Avatar/Avatar.svelte +16 -9
- package/dist/components/Avatar/Avatar.svelte.d.ts +7 -17
- package/dist/components/Avatar/AvatarStack.svelte +14 -8
- package/dist/components/Avatar/AvatarStack.svelte.d.ts +6 -17
- package/dist/components/Base/Base.svelte +14 -6
- package/dist/components/Base/Base.svelte.d.ts +6 -17
- package/dist/components/Box/Box.svelte +10 -3
- package/dist/components/Box/Box.svelte.d.ts +7 -18
- package/dist/components/Button/Button.svelte +52 -25
- package/dist/components/Button/Button.svelte.d.ts +16 -38
- package/dist/components/Button/ButtonGroup.svelte +9 -1
- package/dist/components/Button/ButtonGroup.svelte.d.ts +5 -26
- package/dist/components/Callout/Callout.svelte +41 -20
- package/dist/components/Callout/Callout.svelte.d.ts +11 -22
- package/dist/components/Checkbox/Checkbox.svelte +58 -38
- package/dist/components/Checkbox/Checkbox.svelte.d.ts +11 -34
- package/dist/components/CodeBlock/CodeBlock.svelte +21 -11
- package/dist/components/CodeBlock/CodeBlock.svelte.d.ts +7 -16
- package/dist/components/CodeBlock/getCode.js +2 -0
- package/dist/components/ColorPicker/ColorPicker.svelte +34 -15
- package/dist/components/ColorPicker/ColorPicker.svelte.d.ts +26 -19
- package/dist/components/Dark/DarkProvider.svelte +7 -5
- package/dist/components/Dark/DarkProvider.svelte.d.ts +16 -12
- package/dist/components/Dark/DarkToggle.svelte +8 -6
- package/dist/components/Dark/DarkToggle.svelte.d.ts +16 -12
- package/dist/components/Divider/Divider.svelte +17 -6
- package/dist/components/Divider/Divider.svelte.d.ts +9 -19
- package/dist/components/Dropdown/Dropdown.svelte +33 -14
- package/dist/components/Dropdown/Dropdown.svelte.d.ts +13 -23
- package/dist/components/Dropdown/DropdownContent.svelte +124 -92
- package/dist/components/Dropdown/DropdownContent.svelte.d.ts +12 -24
- package/dist/components/FormControl/Caption.svelte +10 -3
- package/dist/components/FormControl/Caption.svelte.d.ts +7 -18
- package/dist/components/FormControl/FormControl.svelte +11 -2
- package/dist/components/FormControl/FormControl.svelte.d.ts +6 -26
- package/dist/components/FormControl/InputGroup.svelte +17 -9
- package/dist/components/FormControl/InputGroup.svelte.d.ts +7 -18
- package/dist/components/FormControl/Label.svelte +11 -2
- package/dist/components/FormControl/Label.svelte.d.ts +6 -26
- package/dist/components/FormControl/Validation.svelte +18 -9
- package/dist/components/FormControl/Validation.svelte.d.ts +8 -19
- package/dist/components/HyvorBar/BarProducts.svelte +44 -25
- package/dist/components/HyvorBar/BarSupport.svelte +165 -101
- package/dist/components/HyvorBar/BarSupport.svelte.d.ts +7 -17
- package/dist/components/HyvorBar/BarUpdates.svelte +25 -15
- package/dist/components/HyvorBar/BarUpdates.svelte.d.ts +6 -16
- package/dist/components/HyvorBar/BarUpdatesList.svelte +73 -48
- package/dist/components/HyvorBar/BarUpdatesList.svelte.d.ts +6 -16
- package/dist/components/HyvorBar/BarUser.svelte +36 -24
- package/dist/components/HyvorBar/BarUser.svelte.d.ts +5 -15
- package/dist/components/HyvorBar/BarUserPreview.svelte +2 -1
- package/dist/components/HyvorBar/BarUserPreview.svelte.d.ts +16 -12
- package/dist/components/HyvorBar/HyvorBar.svelte +69 -36
- package/dist/components/HyvorBar/HyvorBar.svelte.d.ts +7 -18
- package/dist/components/HyvorBar/bar.d.ts +2 -2
- package/dist/components/HyvorBar/img/G2.svelte.d.ts +22 -19
- package/dist/components/HyvorBar/img/Trustpilot.svelte.d.ts +22 -19
- package/dist/components/IconButton/IconButton.svelte +43 -22
- package/dist/components/IconButton/IconButton.svelte.d.ts +10 -32
- package/dist/components/IconMessage/IconMessage.svelte +111 -56
- package/dist/components/IconMessage/IconMessage.svelte.d.ts +19 -35
- package/dist/components/Internationalization/InternationalizationProvider.svelte +14 -7
- package/dist/components/Internationalization/InternationalizationProvider.svelte.d.ts +6 -17
- package/dist/components/Internationalization/LanguageToggle.svelte +73 -47
- package/dist/components/Internationalization/LanguageToggle.svelte.d.ts +10 -20
- package/dist/components/Internationalization/T.svelte +158 -114
- package/dist/components/Internationalization/T.svelte.d.ts +17 -15
- package/dist/components/Internationalization/i18n.d.ts +1 -3
- package/dist/components/Internationalization/t.d.ts +1 -2
- package/dist/components/Internationalization/types.d.ts +1 -0
- package/dist/components/Link/Link.svelte +31 -19
- package/dist/components/Link/Link.svelte.d.ts +11 -33
- package/dist/components/Loader/LoadButton.svelte +24 -9
- package/dist/components/Loader/LoadButton.svelte.d.ts +29 -42
- package/dist/components/Loader/Loader.svelte +69 -42
- package/dist/components/Loader/Loader.svelte.d.ts +15 -26
- package/dist/components/Modal/ConfirmModalProvider.svelte +28 -20
- package/dist/components/Modal/ConfirmModalProvider.svelte.d.ts +3 -14
- package/dist/components/Modal/Modal.svelte +76 -47
- package/dist/components/Modal/Modal.svelte.d.ts +32 -29
- package/dist/components/Modal/ModalFooter.svelte +14 -6
- package/dist/components/Modal/ModalFooter.svelte.d.ts +23 -18
- package/dist/components/Modal/confirm.d.ts +2 -2
- package/dist/components/Modal/modal-types.d.ts +2 -2
- package/dist/components/NavLink/NavLink.svelte +31 -18
- package/dist/components/NavLink/NavLink.svelte.d.ts +11 -32
- package/dist/components/Radio/Radio.svelte +35 -16
- package/dist/components/Radio/Radio.svelte.d.ts +10 -32
- package/dist/components/Slider/Slider.svelte +86 -36
- package/dist/components/Slider/Slider.svelte.d.ts +25 -20
- package/dist/components/SplitControl/SplitControl.svelte +27 -18
- package/dist/components/SplitControl/SplitControl.svelte.d.ts +11 -23
- package/dist/components/Switch/Switch.svelte +30 -15
- package/dist/components/Switch/Switch.svelte.d.ts +8 -30
- package/dist/components/TabNav/TabNav.svelte +29 -15
- package/dist/components/TabNav/TabNav.svelte.d.ts +7 -18
- package/dist/components/TabNav/TabNavItem.svelte +36 -15
- package/dist/components/TabNav/TabNavItem.svelte.d.ts +10 -23
- package/dist/components/Table/Table.svelte +11 -4
- package/dist/components/Table/Table.svelte.d.ts +7 -18
- package/dist/components/Table/TableRow.svelte +11 -3
- package/dist/components/Table/TableRow.svelte.d.ts +7 -18
- package/dist/components/Tag/Tag.svelte +65 -31
- package/dist/components/Tag/Tag.svelte.d.ts +16 -38
- package/dist/components/Text/Text.svelte +20 -6
- package/dist/components/Text/Text.svelte.d.ts +10 -21
- package/dist/components/TextInput/TextInput.svelte +81 -28
- package/dist/components/TextInput/TextInput.svelte.d.ts +14 -36
- package/dist/components/Textarea/Textarea.svelte +46 -24
- package/dist/components/Textarea/Textarea.svelte.d.ts +13 -37
- package/dist/components/Toast/ToastIcon.svelte +26 -15
- package/dist/components/Toast/ToastIcon.svelte.d.ts +5 -15
- package/dist/components/Toast/ToastMessage.svelte +11 -4
- package/dist/components/Toast/ToastMessage.svelte.d.ts +5 -15
- package/dist/components/Toast/ToastProvider.svelte +6 -4
- package/dist/components/Toast/ToastProvider.svelte.d.ts +16 -12
- package/dist/components/Toast/toast.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.svelte +71 -55
- package/dist/components/Tooltip/Tooltip.svelte.d.ts +35 -23
- package/dist/marketing/Container/Container.svelte +8 -2
- package/dist/marketing/Container/Container.svelte.d.ts +6 -17
- package/dist/marketing/Docs/Content/Content.svelte +41 -29
- package/dist/marketing/Docs/Content/Content.svelte.d.ts +5 -15
- package/dist/marketing/Docs/Content/DocsImage.svelte +17 -9
- package/dist/marketing/Docs/Content/DocsImage.svelte.d.ts +9 -19
- package/dist/marketing/Docs/Docs.svelte +9 -3
- package/dist/marketing/Docs/Docs.svelte.d.ts +6 -28
- package/dist/marketing/Docs/Nav/Nav.svelte +77 -50
- package/dist/marketing/Docs/Nav/Nav.svelte.d.ts +5 -15
- package/dist/marketing/Docs/Nav/NavCategory.svelte +16 -6
- package/dist/marketing/Docs/Nav/NavCategory.svelte.d.ts +8 -19
- package/dist/marketing/Docs/Nav/NavItem.svelte +10 -3
- package/dist/marketing/Docs/Nav/NavItem.svelte.d.ts +6 -17
- package/dist/marketing/Docs/Sidebar/Sidebar.svelte.d.ts +22 -19
- package/dist/marketing/Docs/Toc.svelte +49 -39
- package/dist/marketing/Docs/Toc.svelte.d.ts +3 -14
- package/dist/marketing/Document/Document.svelte +11 -4
- package/dist/marketing/Document/Document.svelte.d.ts +7 -18
- package/dist/marketing/Document/DocumentTitle.svelte +16 -5
- package/dist/marketing/Document/DocumentTitle.svelte.d.ts +9 -19
- package/dist/marketing/Footer/Footer.svelte +55 -38
- package/dist/marketing/Footer/Footer.svelte.d.ts +8 -19
- package/dist/marketing/Footer/FooterLinkList.svelte +8 -2
- package/dist/marketing/Footer/FooterLinkList.svelte.d.ts +6 -17
- package/dist/marketing/Header/Header.svelte +41 -23
- package/dist/marketing/Header/Header.svelte.d.ts +10 -21
- package/dist/marketing/Logo/LogoBlogs.svelte +6 -1
- package/dist/marketing/Logo/LogoBlogs.svelte.d.ts +5 -15
- package/dist/marketing/Logo/LogoCore.svelte +6 -1
- package/dist/marketing/Logo/LogoCore.svelte.d.ts +5 -15
- package/dist/marketing/Logo/LogoFortguard.svelte +7 -2
- package/dist/marketing/Logo/LogoFortguard.svelte.d.ts +5 -15
- package/dist/marketing/Logo/LogoTalk.svelte +6 -1
- package/dist/marketing/Logo/LogoTalk.svelte.d.ts +5 -15
- package/dist/stores/dark.d.ts +0 -1
- package/package.json +10 -10
- package/dist/components/HyvorBar/BarProducts.svelte.d.ts +0 -39
|
@@ -1,8 +1,19 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
interface Props {
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle?: string | undefined;
|
|
5
|
+
icon?: null | string;
|
|
6
|
+
h2Style?: string | undefined;
|
|
7
|
+
wrapStyle?: string | undefined;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
let {
|
|
11
|
+
title,
|
|
12
|
+
subtitle = undefined,
|
|
13
|
+
icon = null,
|
|
14
|
+
h2Style = undefined,
|
|
15
|
+
wrapStyle = undefined
|
|
16
|
+
}: Props = $props();
|
|
6
17
|
</script>
|
|
7
18
|
|
|
8
19
|
<div class="wrap document-title" style={wrapStyle}>
|
|
@@ -1,20 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
h2Style?: string | undefined;
|
|
8
|
-
wrapStyle?: string | undefined;
|
|
9
|
-
};
|
|
10
|
-
events: {
|
|
11
|
-
[evt: string]: CustomEvent<any>;
|
|
12
|
-
};
|
|
13
|
-
slots: {};
|
|
14
|
-
};
|
|
15
|
-
export type DocumentTitleProps = typeof __propDef.props;
|
|
16
|
-
export type DocumentTitleEvents = typeof __propDef.events;
|
|
17
|
-
export type DocumentTitleSlots = typeof __propDef.slots;
|
|
18
|
-
export default class DocumentTitle extends SvelteComponent<DocumentTitleProps, DocumentTitleEvents, DocumentTitleSlots> {
|
|
1
|
+
interface Props {
|
|
2
|
+
title: string;
|
|
3
|
+
subtitle?: string | undefined;
|
|
4
|
+
icon?: null | string;
|
|
5
|
+
h2Style?: string | undefined;
|
|
6
|
+
wrapStyle?: string | undefined;
|
|
19
7
|
}
|
|
20
|
-
|
|
8
|
+
declare const DocumentTitle: import("svelte").Component<Props, {}, "">;
|
|
9
|
+
type DocumentTitle = ReturnType<typeof DocumentTitle>;
|
|
10
|
+
export default DocumentTitle;
|
|
@@ -1,38 +1,53 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Container from '../Container/Container.svelte';
|
|
3
|
+
import {
|
|
4
|
+
IconCopy,
|
|
5
|
+
IconDiscord,
|
|
6
|
+
IconEnvelope,
|
|
7
|
+
IconGithub,
|
|
8
|
+
IconLinkedin,
|
|
9
|
+
IconTwitterX,
|
|
10
|
+
IconYoutube
|
|
11
|
+
} from '@hyvor/icons';
|
|
12
|
+
import Link from '../../components/Link/Link.svelte';
|
|
13
|
+
import IconButton from '../../components/IconButton/IconButton.svelte';
|
|
14
|
+
import Tooltip from '../../components/Tooltip/Tooltip.svelte';
|
|
15
|
+
import LanguageToggle from '../../components/Internationalization/LanguageToggle.svelte';
|
|
16
|
+
|
|
17
|
+
const year = new Date().getFullYear();
|
|
18
|
+
|
|
19
|
+
interface Props {
|
|
20
|
+
email?: string | null;
|
|
21
|
+
social?: any;
|
|
22
|
+
emailCopied?: boolean;
|
|
23
|
+
center?: import('svelte').Snippet;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
let {
|
|
27
|
+
email = null,
|
|
28
|
+
social = $bindable({} as Record<string, string | null>),
|
|
29
|
+
emailCopied = $bindable(false),
|
|
30
|
+
center
|
|
31
|
+
}: Props = $props();
|
|
32
|
+
|
|
33
|
+
social = {
|
|
34
|
+
...{
|
|
35
|
+
x: null,
|
|
36
|
+
discord: 'https://discord.com/invite/2WRJxQB',
|
|
37
|
+
github: 'https://github.com/hyvor',
|
|
38
|
+
youtube: 'https://www.youtube.com/@HYVOR',
|
|
39
|
+
linkedin: 'https://www.linkedin.com/company/30240435'
|
|
40
|
+
},
|
|
41
|
+
...social
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
function handleCopy() {
|
|
45
|
+
navigator.clipboard.writeText(email!);
|
|
46
|
+
emailCopied = true;
|
|
47
|
+
setTimeout(() => {
|
|
48
|
+
emailCopied = false;
|
|
49
|
+
}, 1000);
|
|
50
|
+
}
|
|
36
51
|
</script>
|
|
37
52
|
|
|
38
53
|
<footer>
|
|
@@ -42,7 +57,9 @@ function handleCopy() {
|
|
|
42
57
|
{#if email}
|
|
43
58
|
<div class="email-wrap">
|
|
44
59
|
<Link href="mailto:{email}" underline={false} color="text" rel="nofollow">
|
|
45
|
-
|
|
60
|
+
{#snippet start()}
|
|
61
|
+
<IconEnvelope />
|
|
62
|
+
{/snippet}
|
|
46
63
|
{email}
|
|
47
64
|
</Link>
|
|
48
65
|
<Tooltip text={emailCopied ? 'Copied!' : 'Copy email'} position="top">
|
|
@@ -69,7 +86,7 @@ function handleCopy() {
|
|
|
69
86
|
<a href={social.discord} target="_blank" rel="nofollow"><IconDiscord /></a>
|
|
70
87
|
{/if}
|
|
71
88
|
{#if social.youtube}
|
|
72
|
-
<a href={social.
|
|
89
|
+
<a href={social.youtube} target="_blank" rel="nofollow"><IconYoutube /></a>
|
|
73
90
|
{/if}
|
|
74
91
|
{#if social.linkedin}
|
|
75
92
|
<a href={social.linkedin} target="_blank" rel="nofollow"><IconLinkedin /></a>
|
|
@@ -85,7 +102,7 @@ function handleCopy() {
|
|
|
85
102
|
</div>
|
|
86
103
|
|
|
87
104
|
<div class="footer-center">
|
|
88
|
-
|
|
105
|
+
{@render center?.()}
|
|
89
106
|
</div>
|
|
90
107
|
|
|
91
108
|
<div class="footer-bottom">
|
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
emailCopied?: boolean | undefined;
|
|
7
|
-
};
|
|
8
|
-
events: {
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {
|
|
12
|
-
center: {};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export type FooterProps = typeof __propDef.props;
|
|
16
|
-
export type FooterEvents = typeof __propDef.events;
|
|
17
|
-
export type FooterSlots = typeof __propDef.slots;
|
|
18
|
-
export default class Footer extends SvelteComponent<FooterProps, FooterEvents, FooterSlots> {
|
|
1
|
+
interface Props {
|
|
2
|
+
email?: string | null;
|
|
3
|
+
social?: any;
|
|
4
|
+
emailCopied?: boolean;
|
|
5
|
+
center?: import('svelte').Snippet;
|
|
19
6
|
}
|
|
20
|
-
|
|
7
|
+
declare const Footer: import("svelte").Component<Props, {}, "social" | "emailCopied">;
|
|
8
|
+
type Footer = ReturnType<typeof Footer>;
|
|
9
|
+
export default Footer;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
<script>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
interface Props {
|
|
3
|
+
title: string;
|
|
4
|
+
children?: import('svelte').Snippet;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
let { title, children }: Props = $props();
|
|
2
8
|
</script>
|
|
3
9
|
|
|
4
10
|
<div class="link-list">
|
|
5
11
|
<div class="title">{title}</div>
|
|
6
12
|
<div class="links">
|
|
7
|
-
|
|
13
|
+
{@render children?.()}
|
|
8
14
|
</div>
|
|
9
15
|
</div>
|
|
10
16
|
|
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
title: string;
|
|
5
|
-
};
|
|
6
|
-
events: {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
};
|
|
9
|
-
slots: {
|
|
10
|
-
default: {};
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export type FooterLinkListProps = typeof __propDef.props;
|
|
14
|
-
export type FooterLinkListEvents = typeof __propDef.events;
|
|
15
|
-
export type FooterLinkListSlots = typeof __propDef.slots;
|
|
16
|
-
export default class FooterLinkList extends SvelteComponent<FooterLinkListProps, FooterLinkListEvents, FooterLinkListSlots> {
|
|
1
|
+
interface Props {
|
|
2
|
+
title: string;
|
|
3
|
+
children?: import('svelte').Snippet;
|
|
17
4
|
}
|
|
18
|
-
|
|
5
|
+
declare const FooterLinkList: import("svelte").Component<Props, {}, "">;
|
|
6
|
+
type FooterLinkList = ReturnType<typeof FooterLinkList>;
|
|
7
|
+
export default FooterLinkList;
|
|
@@ -1,13 +1,27 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { IconList } from
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Container from './../Container/Container.svelte';
|
|
3
|
+
import DarkToggle from '../../components/Dark/DarkToggle.svelte';
|
|
4
|
+
import IconButton from '../../components/IconButton/IconButton.svelte';
|
|
5
|
+
import Dropdown from '../../components/Dropdown/Dropdown.svelte';
|
|
6
|
+
import { IconList } from '@hyvor/icons';
|
|
7
|
+
|
|
8
|
+
interface Props {
|
|
9
|
+
logo: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
subName?: undefined | string;
|
|
12
|
+
darkToggle?: boolean;
|
|
13
|
+
center?: import('svelte').Snippet;
|
|
14
|
+
end?: import('svelte').Snippet;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
let {
|
|
18
|
+
logo,
|
|
19
|
+
name = 'HYVOR',
|
|
20
|
+
subName = undefined,
|
|
21
|
+
darkToggle = true,
|
|
22
|
+
center,
|
|
23
|
+
end
|
|
24
|
+
}: Props = $props();
|
|
11
25
|
</script>
|
|
12
26
|
|
|
13
27
|
<header>
|
|
@@ -25,11 +39,11 @@ export let darkToggle = true;
|
|
|
25
39
|
</div>
|
|
26
40
|
|
|
27
41
|
<div class="nav-center">
|
|
28
|
-
|
|
42
|
+
{@render center?.()}
|
|
29
43
|
</div>
|
|
30
44
|
|
|
31
45
|
<div class="nav-end">
|
|
32
|
-
|
|
46
|
+
{@render end?.()}
|
|
33
47
|
</div>
|
|
34
48
|
|
|
35
49
|
<div class="dark-mobile">
|
|
@@ -61,23 +75,27 @@ export let darkToggle = true;
|
|
|
61
75
|
|
|
62
76
|
<span class="mobile-nav-wrap">
|
|
63
77
|
<Dropdown align="end" width={300}>
|
|
64
|
-
|
|
65
|
-
<
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
78
|
+
{#snippet trigger()}
|
|
79
|
+
<IconButton variant="invisible">
|
|
80
|
+
<IconList size={18} />
|
|
81
|
+
</IconButton>
|
|
82
|
+
{/snippet}
|
|
83
|
+
{#snippet content()}
|
|
84
|
+
<div class="mobile-content">
|
|
85
|
+
<div class="mobile-inner center">
|
|
86
|
+
{@render center?.()}
|
|
87
|
+
</div>
|
|
88
|
+
<div class="mobile-inner end">
|
|
89
|
+
{@render end?.()}
|
|
90
|
+
</div>
|
|
73
91
|
</div>
|
|
74
|
-
|
|
92
|
+
{/snippet}
|
|
75
93
|
</Dropdown>
|
|
76
94
|
</span>
|
|
77
95
|
</Container>
|
|
78
96
|
</header>
|
|
79
97
|
|
|
80
|
-
<div class="header-space"
|
|
98
|
+
<div class="header-space"></div>
|
|
81
99
|
|
|
82
100
|
<style>.header-space {
|
|
83
101
|
height: var(--header-height);
|
|
@@ -1,22 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
events: {
|
|
10
|
-
[evt: string]: CustomEvent<any>;
|
|
11
|
-
};
|
|
12
|
-
slots: {
|
|
13
|
-
center: {};
|
|
14
|
-
end: {};
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export type HeaderProps = typeof __propDef.props;
|
|
18
|
-
export type HeaderEvents = typeof __propDef.events;
|
|
19
|
-
export type HeaderSlots = typeof __propDef.slots;
|
|
20
|
-
export default class Header extends SvelteComponent<HeaderProps, HeaderEvents, HeaderSlots> {
|
|
1
|
+
interface Props {
|
|
2
|
+
logo: string;
|
|
3
|
+
name?: string;
|
|
4
|
+
subName?: undefined | string;
|
|
5
|
+
darkToggle?: boolean;
|
|
6
|
+
center?: import('svelte').Snippet;
|
|
7
|
+
end?: import('svelte').Snippet;
|
|
21
8
|
}
|
|
22
|
-
|
|
9
|
+
declare const Header: import("svelte").Component<Props, {}, "">;
|
|
10
|
+
type Header = ReturnType<typeof Header>;
|
|
11
|
+
export default Header;
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
props: {
|
|
4
|
-
size?: number | undefined;
|
|
5
|
-
};
|
|
6
|
-
events: {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
};
|
|
9
|
-
slots: {};
|
|
10
|
-
};
|
|
11
|
-
export type LogoBlogsProps = typeof __propDef.props;
|
|
12
|
-
export type LogoBlogsEvents = typeof __propDef.events;
|
|
13
|
-
export type LogoBlogsSlots = typeof __propDef.slots;
|
|
14
|
-
export default class LogoBlogs extends SvelteComponent<LogoBlogsProps, LogoBlogsEvents, LogoBlogsSlots> {
|
|
1
|
+
interface Props {
|
|
2
|
+
size?: number;
|
|
15
3
|
}
|
|
16
|
-
|
|
4
|
+
declare const LogoBlogs: import("svelte").Component<Props, {}, "">;
|
|
5
|
+
type LogoBlogs = ReturnType<typeof LogoBlogs>;
|
|
6
|
+
export default LogoBlogs;
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
props: {
|
|
4
|
-
size?: number | undefined;
|
|
5
|
-
};
|
|
6
|
-
events: {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
};
|
|
9
|
-
slots: {};
|
|
10
|
-
};
|
|
11
|
-
export type LogoCoreProps = typeof __propDef.props;
|
|
12
|
-
export type LogoCoreEvents = typeof __propDef.events;
|
|
13
|
-
export type LogoCoreSlots = typeof __propDef.slots;
|
|
14
|
-
export default class LogoCore extends SvelteComponent<LogoCoreProps, LogoCoreEvents, LogoCoreSlots> {
|
|
1
|
+
interface Props {
|
|
2
|
+
size?: number;
|
|
15
3
|
}
|
|
16
|
-
|
|
4
|
+
declare const LogoCore: import("svelte").Component<Props, {}, "">;
|
|
5
|
+
type LogoCore = ReturnType<typeof LogoCore>;
|
|
6
|
+
export default LogoCore;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
<script
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
interface Props {
|
|
3
|
+
size?: number;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
let { size = 40 }: Props = $props();
|
|
2
7
|
</script>
|
|
3
8
|
|
|
4
9
|
<svg width={size} height={size} viewBox="0 0 132.29166 132.29167" version="1.1">
|
|
@@ -9,7 +14,7 @@
|
|
|
9
14
|
bordercolor="#666666"
|
|
10
15
|
borderopacity="1.0"
|
|
11
16
|
units="px"
|
|
12
|
-
|
|
17
|
+
></sodipodi:namedview>
|
|
13
18
|
<g id="layer1">
|
|
14
19
|
<g id="g1067">
|
|
15
20
|
<rect
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
props: {
|
|
4
|
-
size?: number | undefined;
|
|
5
|
-
};
|
|
6
|
-
events: {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
};
|
|
9
|
-
slots: {};
|
|
10
|
-
};
|
|
11
|
-
export type LogoFortguardProps = typeof __propDef.props;
|
|
12
|
-
export type LogoFortguardEvents = typeof __propDef.events;
|
|
13
|
-
export type LogoFortguardSlots = typeof __propDef.slots;
|
|
14
|
-
export default class LogoFortguard extends SvelteComponent<LogoFortguardProps, LogoFortguardEvents, LogoFortguardSlots> {
|
|
1
|
+
interface Props {
|
|
2
|
+
size?: number;
|
|
15
3
|
}
|
|
16
|
-
|
|
4
|
+
declare const LogoFortguard: import("svelte").Component<Props, {}, "">;
|
|
5
|
+
type LogoFortguard = ReturnType<typeof LogoFortguard>;
|
|
6
|
+
export default LogoFortguard;
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
props: {
|
|
4
|
-
size?: number | undefined;
|
|
5
|
-
};
|
|
6
|
-
events: {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
};
|
|
9
|
-
slots: {};
|
|
10
|
-
};
|
|
11
|
-
export type LogoTalkProps = typeof __propDef.props;
|
|
12
|
-
export type LogoTalkEvents = typeof __propDef.events;
|
|
13
|
-
export type LogoTalkSlots = typeof __propDef.slots;
|
|
14
|
-
export default class LogoTalk extends SvelteComponent<LogoTalkProps, LogoTalkEvents, LogoTalkSlots> {
|
|
1
|
+
interface Props {
|
|
2
|
+
size?: number;
|
|
15
3
|
}
|
|
16
|
-
|
|
4
|
+
declare const LogoTalk: import("svelte").Component<Props, {}, "">;
|
|
5
|
+
type LogoTalk = ReturnType<typeof LogoTalk>;
|
|
6
|
+
export default LogoTalk;
|
package/dist/stores/dark.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyvor/design",
|
|
3
|
-
"version": "0.0.68",
|
|
4
3
|
"license": "MIT",
|
|
5
4
|
"private": false,
|
|
6
5
|
"scripts": {
|
|
@@ -30,24 +29,24 @@
|
|
|
30
29
|
"peerDependencies": {
|
|
31
30
|
"@sveltejs/kit": "^2.0.0",
|
|
32
31
|
"sass": "^1.68.0",
|
|
33
|
-
"svelte": "^
|
|
32
|
+
"svelte": "^5.0.0"
|
|
34
33
|
},
|
|
35
34
|
"devDependencies": {
|
|
36
35
|
"@sveltejs/adapter-static": "^3.0.0",
|
|
37
|
-
"@sveltejs/package": "^2.
|
|
38
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
36
|
+
"@sveltejs/package": "^2.3.7",
|
|
37
|
+
"@sveltejs/vite-plugin-svelte": "^4.0.0",
|
|
39
38
|
"prettier": "^3.3.3",
|
|
40
39
|
"prettier-plugin-svelte": "^3.2.7",
|
|
41
40
|
"publint": "^0.1.9",
|
|
42
|
-
"svelte": "^
|
|
43
|
-
"svelte-check": "^
|
|
41
|
+
"svelte": "^5.0.0",
|
|
42
|
+
"svelte-check": "^4.0.0",
|
|
44
43
|
"tslib": "^2.4.1",
|
|
45
|
-
"typescript": "^5.
|
|
46
|
-
"vite": "^5.
|
|
44
|
+
"typescript": "^5.5.0",
|
|
45
|
+
"vite": "^5.4.4"
|
|
47
46
|
},
|
|
48
47
|
"dependencies": {
|
|
49
48
|
"@fontsource/readex-pro": "^5.0.8",
|
|
50
|
-
"@hyvor/icons": "^0.0
|
|
49
|
+
"@hyvor/icons": "^1.0.0",
|
|
51
50
|
"deepmerge-ts": "^5.1.0",
|
|
52
51
|
"highlight.js": "^11.9.0",
|
|
53
52
|
"intl-messageformat": "^10.5.11",
|
|
@@ -57,5 +56,6 @@
|
|
|
57
56
|
"type": "module",
|
|
58
57
|
"publishConfig": {
|
|
59
58
|
"access": "public"
|
|
60
|
-
}
|
|
59
|
+
},
|
|
60
|
+
"version": "1.0.5"
|
|
61
61
|
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
|
-
declare const PRODUCTS: {
|
|
3
|
-
talk: {
|
|
4
|
-
name: string;
|
|
5
|
-
logo: typeof LogoTalk;
|
|
6
|
-
url: string;
|
|
7
|
-
description: string;
|
|
8
|
-
};
|
|
9
|
-
blogs: {
|
|
10
|
-
name: string;
|
|
11
|
-
logo: typeof LogoBlogs;
|
|
12
|
-
url: string;
|
|
13
|
-
description: string;
|
|
14
|
-
};
|
|
15
|
-
fortguard: {
|
|
16
|
-
name: string;
|
|
17
|
-
logo: typeof LogoFortguard;
|
|
18
|
-
url: string;
|
|
19
|
-
description: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export { PRODUCTS };
|
|
23
|
-
import LogoBlogs from '../../marketing/Logo/LogoBlogs.svelte';
|
|
24
|
-
import LogoFortguard from '../../marketing/Logo/LogoFortguard.svelte';
|
|
25
|
-
import LogoTalk from '../../marketing/Logo/LogoTalk.svelte';
|
|
26
|
-
declare const __propDef: {
|
|
27
|
-
props: {
|
|
28
|
-
mobile?: boolean | undefined;
|
|
29
|
-
};
|
|
30
|
-
events: {
|
|
31
|
-
[evt: string]: CustomEvent<any>;
|
|
32
|
-
};
|
|
33
|
-
slots: {};
|
|
34
|
-
};
|
|
35
|
-
export type BarProductsProps = typeof __propDef.props;
|
|
36
|
-
export type BarProductsEvents = typeof __propDef.events;
|
|
37
|
-
export type BarProductsSlots = typeof __propDef.slots;
|
|
38
|
-
export default class BarProducts extends SvelteComponent<BarProductsProps, BarProductsEvents, BarProductsSlots> {
|
|
39
|
-
}
|