@hyvor/design 0.0.67 → 0.0.68
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 +2 -7
- package/dist/components/ActionList/ActionListGroup.svelte +24 -29
- package/dist/components/ActionList/ActionListItem.svelte +86 -88
- package/dist/components/ActionList/Selected.svelte +17 -20
- package/dist/components/Avatar/Avatar.svelte +7 -11
- package/dist/components/Avatar/AvatarStack.svelte +16 -20
- package/dist/components/Base/Base.svelte +3 -3
- package/dist/components/Box/Box.svelte +8 -8
- package/dist/components/Button/Button.svelte +33 -42
- package/dist/components/Button/ButtonGroup.svelte +6 -6
- package/dist/components/Callout/Callout.svelte +88 -86
- package/dist/components/Callout/Callout.svelte.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.svelte +113 -121
- package/dist/components/CodeBlock/CodeBlock.svelte +26 -23
- package/dist/components/CodeBlock/getCode.js +6 -6
- package/dist/components/CodeBlock/hljs.scss +189 -191
- package/dist/components/CodeBlock/prism.scss +370 -7
- package/dist/components/ColorPicker/ColorPicker.svelte +42 -42
- package/dist/components/Dark/DarkProvider.svelte +9 -9
- package/dist/components/Dark/DarkToggle.svelte +7 -10
- package/dist/components/Divider/Divider.svelte +6 -7
- package/dist/components/Dropdown/Dropdown.svelte +33 -108
- package/dist/components/Dropdown/DropdownContent.svelte +120 -0
- package/dist/components/Dropdown/DropdownContent.svelte.d.ts +24 -0
- package/dist/components/FormControl/Caption.svelte +9 -9
- package/dist/components/FormControl/FormControl.svelte +18 -18
- package/dist/components/FormControl/InputGroup.svelte +7 -8
- package/dist/components/FormControl/Label.svelte +5 -5
- package/dist/components/FormControl/Validation.svelte +18 -16
- package/dist/components/FormControl/Validation.svelte.d.ts +1 -1
- package/dist/components/HyvorBar/BarProducts.svelte +52 -0
- package/dist/components/HyvorBar/BarProducts.svelte.d.ts +39 -0
- package/dist/components/HyvorBar/BarSupport.svelte +119 -0
- package/dist/components/HyvorBar/BarSupport.svelte.d.ts +19 -0
- package/dist/components/HyvorBar/BarUpdates.svelte +58 -0
- package/dist/components/HyvorBar/BarUpdates.svelte.d.ts +18 -0
- package/dist/components/HyvorBar/BarUpdatesList.svelte +134 -0
- package/dist/components/HyvorBar/BarUpdatesList.svelte.d.ts +18 -0
- package/dist/components/HyvorBar/BarUser.svelte +60 -0
- package/dist/components/HyvorBar/BarUser.svelte.d.ts +16 -0
- package/dist/components/HyvorBar/BarUserPreview.svelte +42 -0
- package/dist/components/HyvorBar/BarUserPreview.svelte.d.ts +14 -0
- package/dist/components/HyvorBar/HyvorBar.svelte +150 -0
- package/dist/components/HyvorBar/HyvorBar.svelte.d.ts +19 -0
- package/dist/components/HyvorBar/bar.d.ts +33 -0
- package/dist/components/HyvorBar/bar.js +74 -0
- package/dist/components/HyvorBar/img/G2.svelte +9 -0
- package/dist/components/HyvorBar/img/G2.svelte.d.ts +23 -0
- package/dist/components/HyvorBar/img/Trustpilot.svelte +11 -0
- package/dist/components/HyvorBar/img/Trustpilot.svelte.d.ts +23 -0
- package/dist/components/IconButton/IconButton.svelte +19 -23
- package/dist/components/IconMessage/IconMessage.svelte +89 -38
- package/dist/components/IconMessage/IconMessage.svelte.d.ts +9 -1
- package/dist/components/Internationalization/InternationalizationProvider.svelte +2 -2
- package/dist/components/Internationalization/InternationalizationProvider.svelte.d.ts +1 -1
- package/dist/components/Internationalization/LanguageToggle.svelte +33 -36
- package/dist/components/Internationalization/LanguageToggle.svelte.d.ts +2 -2
- package/dist/components/Internationalization/T.svelte.d.ts +3 -3
- package/dist/components/Internationalization/i18n.d.ts +4 -4
- package/dist/components/Internationalization/i18n.js +13 -11
- package/dist/components/Internationalization/t.d.ts +3 -3
- package/dist/components/Internationalization/t.js +4 -4
- package/dist/components/Internationalization/types.d.ts +1 -1
- package/dist/components/Link/Link.svelte +53 -58
- package/dist/components/Loader/LoadButton.svelte +15 -29
- package/dist/components/Loader/Loader.svelte +56 -69
- package/dist/components/Modal/ConfirmModalProvider.svelte +18 -36
- package/dist/components/Modal/Modal.svelte +134 -164
- package/dist/components/Modal/ModalFooter.svelte +23 -26
- package/dist/components/Modal/confirm.d.ts +1 -1
- package/dist/components/Modal/confirm.js +4 -4
- package/dist/components/Modal/modal-types.d.ts +2 -2
- package/dist/components/NavLink/NavLink.svelte +78 -86
- package/dist/components/Radio/Radio.svelte +23 -31
- package/dist/components/Slider/Slider.svelte +71 -79
- package/dist/components/SplitControl/SplitControl.svelte +28 -42
- package/dist/components/Switch/Switch.svelte +60 -65
- package/dist/components/TabNav/TabNav.svelte +6 -10
- package/dist/components/TabNav/TabNavItem.svelte +36 -43
- package/dist/components/Table/Table.svelte +7 -4
- package/dist/components/Table/TableRow.svelte +23 -23
- package/dist/components/Tag/Tag.svelte +28 -36
- package/dist/components/Text/Text.svelte +15 -22
- package/dist/components/TextInput/TextInput.svelte +26 -26
- package/dist/components/Textarea/Textarea.svelte +38 -38
- package/dist/components/Toast/ToastIcon.svelte +29 -31
- package/dist/components/Toast/ToastMessage.svelte +33 -39
- package/dist/components/Toast/ToastProvider.svelte +16 -16
- package/dist/components/Toast/cleaner.js +5 -5
- package/dist/components/Toast/toast.d.ts +2 -2
- package/dist/components/Toast/toast.js +10 -10
- package/dist/components/Tooltip/Tooltip.svelte +82 -83
- package/dist/components/directives/clickOutside.js +4 -4
- package/dist/components/directives/debounce.d.ts +1 -0
- package/dist/components/directives/debounce.js +8 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/index.css +31 -33
- package/dist/marketing/Container/Container.svelte +8 -8
- package/dist/marketing/Docs/Content/Content.svelte +8 -7
- package/dist/marketing/Docs/Content/DocsImage.svelte +52 -62
- package/dist/marketing/Docs/Docs.svelte +21 -24
- package/dist/marketing/Docs/Nav/Nav.svelte +21 -22
- package/dist/marketing/Docs/Nav/NavCategory.svelte +28 -28
- package/dist/marketing/Docs/Nav/NavItem.svelte +21 -24
- package/dist/marketing/Docs/Sidebar/Sidebar.svelte +22 -25
- package/dist/marketing/Docs/Toc.svelte +17 -19
- package/dist/marketing/Document/Document.svelte +5 -5
- package/dist/marketing/Document/DocumentTitle.svelte +49 -49
- package/dist/marketing/Footer/Footer.svelte +111 -119
- package/dist/marketing/Footer/FooterLinkList.svelte +24 -26
- package/dist/marketing/Header/Header.svelte +7 -15
- package/dist/marketing/Logo/LogoBlogs.svelte +41 -0
- package/dist/marketing/Logo/LogoBlogs.svelte.d.ts +16 -0
- package/dist/marketing/Logo/LogoCore.svelte +41 -0
- package/dist/marketing/Logo/LogoCore.svelte.d.ts +16 -0
- package/dist/marketing/Logo/LogoFortguard.svelte +49 -0
- package/dist/marketing/Logo/LogoFortguard.svelte.d.ts +16 -0
- package/dist/marketing/Logo/LogoTalk.svelte +27 -0
- package/dist/marketing/Logo/LogoTalk.svelte.d.ts +16 -0
- package/dist/stores/dark.js +8 -8
- package/dist/variables.scss +41 -48
- package/package.json +59 -58
|
@@ -11,20 +11,18 @@ export let darkToggle = true;
|
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
13
|
<header>
|
|
14
|
-
|
|
15
14
|
<Container as="nav">
|
|
16
|
-
|
|
17
15
|
<div class="nav-start">
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
<a class="nav-brand" href="/">
|
|
17
|
+
<img src={logo} alt="Hyvor Logo" width="30" height="30" />
|
|
20
18
|
<span class="brand-product">
|
|
21
19
|
<span class="brand">{name}</span>
|
|
22
20
|
{#if subName}
|
|
23
21
|
<span class="product">{subName}</span>
|
|
24
22
|
{/if}
|
|
25
23
|
</span>
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
</a>
|
|
25
|
+
</div>
|
|
28
26
|
|
|
29
27
|
<div class="nav-center">
|
|
30
28
|
<slot name="center" />
|
|
@@ -35,7 +33,6 @@ export let darkToggle = true;
|
|
|
35
33
|
</div>
|
|
36
34
|
|
|
37
35
|
<div class="dark-mobile">
|
|
38
|
-
|
|
39
36
|
{#if darkToggle}
|
|
40
37
|
<span class="dark-toggle-wrap">
|
|
41
38
|
<DarkToggle />
|
|
@@ -60,15 +57,11 @@ export let darkToggle = true;
|
|
|
60
57
|
</div>
|
|
61
58
|
</Dropdown>
|
|
62
59
|
</span> -->
|
|
63
|
-
|
|
64
60
|
</div>
|
|
65
61
|
|
|
66
62
|
<span class="mobile-nav-wrap">
|
|
67
63
|
<Dropdown align="end" width={300}>
|
|
68
|
-
<IconButton
|
|
69
|
-
variant="invisible"
|
|
70
|
-
slot="trigger"
|
|
71
|
-
>
|
|
64
|
+
<IconButton variant="invisible" slot="trigger">
|
|
72
65
|
<IconList size={18} />
|
|
73
66
|
</IconButton>
|
|
74
67
|
<div slot="content" class="mobile-content">
|
|
@@ -81,9 +74,7 @@ export let darkToggle = true;
|
|
|
81
74
|
</div>
|
|
82
75
|
</Dropdown>
|
|
83
76
|
</span>
|
|
84
|
-
|
|
85
77
|
</Container>
|
|
86
|
-
|
|
87
78
|
</header>
|
|
88
79
|
|
|
89
80
|
<div class="header-space" />
|
|
@@ -184,7 +175,8 @@ header :global(nav) {
|
|
|
184
175
|
display: inline-block;
|
|
185
176
|
}
|
|
186
177
|
}
|
|
187
|
-
.mobile-content,
|
|
178
|
+
.mobile-content,
|
|
179
|
+
.mobile-inner {
|
|
188
180
|
display: flex;
|
|
189
181
|
flex-direction: column;
|
|
190
182
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<script>export let size = 40;
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<svg width={size} height={size} viewBox="0 0 132.29166 132.29167" version="1.1">
|
|
5
|
+
<g id="layer1">
|
|
6
|
+
<g id="g1067">
|
|
7
|
+
<rect
|
|
8
|
+
style="mix-blend-mode:normal;fill:#f1e8e8;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:7.15826;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
9
|
+
id="rect1001"
|
|
10
|
+
width="77.870262"
|
|
11
|
+
height="123.57672"
|
|
12
|
+
x="26.535261"
|
|
13
|
+
y="5.0260782"
|
|
14
|
+
ry="38.935131"
|
|
15
|
+
transform="rotate(-0.58211807)"
|
|
16
|
+
/>
|
|
17
|
+
<path
|
|
18
|
+
id="path1003"
|
|
19
|
+
style="mix-blend-mode:normal;fill:#896c6b;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:7.15826;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
20
|
+
d="m 105.07895,65.75026 0.23219,22.852048 C 105.53028,110.17126 88.342531,127.71185 66.773582,127.931 45.204632,128.15014 27.664036,110.96239 27.44489,89.393446 L 27.212709,66.541399 Z"
|
|
21
|
+
/>
|
|
22
|
+
<g id="g1011" transform="matrix(1.0727824,0,0,1.0727824,-4.7282157,-11.786447)">
|
|
23
|
+
<path
|
|
24
|
+
id="path1005"
|
|
25
|
+
style="fill:none;stroke:#000000;stroke-width:6.19866;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
|
26
|
+
d="m 59.684412,40.713463 c 0,-2.381274 -3.065933,-4.311677 -6.847956,-4.311677 -3.782022,0 -6.847956,1.930403 -6.847956,4.311677"
|
|
27
|
+
/>
|
|
28
|
+
<path
|
|
29
|
+
id="path1007"
|
|
30
|
+
style="fill:none;stroke:#000000;stroke-width:6.19866;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
|
31
|
+
d="m 86.142762,40.713463 c 0,-2.381274 -3.065933,-4.311677 -6.847956,-4.311677 -3.782022,0 -6.847956,1.930403 -6.847956,4.311677"
|
|
32
|
+
/>
|
|
33
|
+
<path
|
|
34
|
+
id="path1009"
|
|
35
|
+
style="fill:none;stroke:#000000;stroke-width:6.19866;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
|
36
|
+
d="m 72.699971,55.496735 c 0,2.381274 -3.065933,4.311677 -6.847956,4.311677 -3.782022,0 -6.847956,-1.930403 -6.847956,-4.311677"
|
|
37
|
+
/>
|
|
38
|
+
</g>
|
|
39
|
+
</g>
|
|
40
|
+
</g>
|
|
41
|
+
</svg>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
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> {
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<script>export let size = 40;
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<svg width={size} height={size} viewBox="0 0 500 500" version="1.1">
|
|
5
|
+
<g id="layer1">
|
|
6
|
+
<g id="g5140" transform="translate(-986.41349,-538.31731)">
|
|
7
|
+
<rect
|
|
8
|
+
style="mix-blend-mode:normal;fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:27.0548;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
9
|
+
id="rect1001"
|
|
10
|
+
width="294.31281"
|
|
11
|
+
height="467.06161"
|
|
12
|
+
x="1081.1842"
|
|
13
|
+
y="567.30737"
|
|
14
|
+
ry="147.1564"
|
|
15
|
+
transform="rotate(-0.582118)"
|
|
16
|
+
/>
|
|
17
|
+
<path
|
|
18
|
+
id="path1003"
|
|
19
|
+
style="mix-blend-mode:normal;fill:#666666;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:27.0548;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
20
|
+
d="m 1383.5623,786.82223 0.8775,86.36995 c 0.8283,81.52045 -64.1333,147.81562 -145.6537,148.64392 -81.5205,0.8282 -147.8157,-64.13337 -148.6439,-145.65379 l -0.8776,-86.36995 z"
|
|
21
|
+
/>
|
|
22
|
+
<g id="g1011" transform="matrix(4.0546107,0,0,4.0546107,968.54304,493.77011)">
|
|
23
|
+
<path
|
|
24
|
+
id="path1005"
|
|
25
|
+
style="fill:none;stroke:#000000;stroke-width:6.19866;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
|
26
|
+
d="m 59.684412,40.713463 c 0,-2.381274 -3.065933,-4.311677 -6.847956,-4.311677 -3.782022,0 -6.847956,1.930403 -6.847956,4.311677"
|
|
27
|
+
/>
|
|
28
|
+
<path
|
|
29
|
+
id="path1007"
|
|
30
|
+
style="fill:none;stroke:#000000;stroke-width:6.19866;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
|
31
|
+
d="m 86.142762,40.713463 c 0,-2.381274 -3.065933,-4.311677 -6.847956,-4.311677 -3.782022,0 -6.847956,1.930403 -6.847956,4.311677"
|
|
32
|
+
/>
|
|
33
|
+
<path
|
|
34
|
+
id="path1009"
|
|
35
|
+
style="fill:none;stroke:#000000;stroke-width:6.19866;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
|
36
|
+
d="m 72.699971,55.496735 c 0,2.381274 -3.065933,4.311677 -6.847956,4.311677 -3.782022,0 -6.847956,-1.930403 -6.847956,-4.311677"
|
|
37
|
+
/>
|
|
38
|
+
</g>
|
|
39
|
+
</g>
|
|
40
|
+
</g>
|
|
41
|
+
</svg>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
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> {
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<script>export let size = 40;
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<svg width={size} height={size} viewBox="0 0 132.29166 132.29167" version="1.1">
|
|
5
|
+
<defs id="defs959" />
|
|
6
|
+
<sodipodi:namedview
|
|
7
|
+
id="base"
|
|
8
|
+
pagecolor="#ffffff"
|
|
9
|
+
bordercolor="#666666"
|
|
10
|
+
borderopacity="1.0"
|
|
11
|
+
units="px"
|
|
12
|
+
/>
|
|
13
|
+
<g id="layer1">
|
|
14
|
+
<g id="g1067">
|
|
15
|
+
<rect
|
|
16
|
+
style="mix-blend-mode:normal;fill:#fbf7ff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:7.15826;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
17
|
+
id="rect1001"
|
|
18
|
+
width="77.870262"
|
|
19
|
+
height="123.57672"
|
|
20
|
+
x="26.535261"
|
|
21
|
+
y="5.0260782"
|
|
22
|
+
ry="38.935131"
|
|
23
|
+
transform="rotate(-0.58211807)"
|
|
24
|
+
/>
|
|
25
|
+
<path
|
|
26
|
+
id="path1003"
|
|
27
|
+
style="mix-blend-mode:normal;fill:#836096;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:7.15826;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
28
|
+
d="m 105.07895,65.75026 0.23219,22.852048 C 105.53028,110.17126 88.342531,127.71185 66.773582,127.931 45.204632,128.15014 27.664036,110.96239 27.44489,89.393446 L 27.212709,66.541399 Z"
|
|
29
|
+
/>
|
|
30
|
+
<g id="g1011" transform="matrix(1.0727824,0,0,1.0727824,-4.7282157,-11.786447)">
|
|
31
|
+
<path
|
|
32
|
+
id="path1005"
|
|
33
|
+
style="fill:none;stroke:#000000;stroke-width:6.19866;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
|
34
|
+
d="m 59.684412,40.713463 c 0,-2.381274 -3.065933,-4.311677 -6.847956,-4.311677 -3.782022,0 -6.847956,1.930403 -6.847956,4.311677"
|
|
35
|
+
/>
|
|
36
|
+
<path
|
|
37
|
+
id="path1007"
|
|
38
|
+
style="fill:none;stroke:#000000;stroke-width:6.19866;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
|
39
|
+
d="m 86.142762,40.713463 c 0,-2.381274 -3.065933,-4.311677 -6.847956,-4.311677 -3.782022,0 -6.847956,1.930403 -6.847956,4.311677"
|
|
40
|
+
/>
|
|
41
|
+
<path
|
|
42
|
+
id="path1009"
|
|
43
|
+
style="fill:none;stroke:#000000;stroke-width:6.19866;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
|
44
|
+
d="m 72.699971,55.496735 c 0,2.381274 -3.065933,4.311677 -6.847956,4.311677 -3.782022,0 -6.847956,-1.930403 -6.847956,-4.311677"
|
|
45
|
+
/>
|
|
46
|
+
</g>
|
|
47
|
+
</g>
|
|
48
|
+
</g>
|
|
49
|
+
</svg>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
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> {
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<script>export let size = 40;
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" width={size} height={size} viewBox="0 0 132.292 132.292"
|
|
5
|
+
><g stroke-width="7.158" stroke="#000" fill-rule="evenodd"
|
|
6
|
+
><rect
|
|
7
|
+
width="77.87"
|
|
8
|
+
height="123.577"
|
|
9
|
+
x="26.535"
|
|
10
|
+
y="5.026"
|
|
11
|
+
ry="38.935"
|
|
12
|
+
transform="rotate(359.418)"
|
|
13
|
+
fill="#fff3d3"
|
|
14
|
+
/><path
|
|
15
|
+
d="M105.079 65.75l.232 22.852c.219 21.569-16.969 39.11-38.538 39.329s-39.11-16.969-39.329-38.538l-.232-22.852z"
|
|
16
|
+
fill="#ffd969"
|
|
17
|
+
/></g
|
|
18
|
+
><path
|
|
19
|
+
d="M59.3 31.89c0-2.555-3.289-4.625-7.346-4.625s-7.346 2.071-7.346 4.625m43.076 0c0-2.555-3.289-4.625-7.346-4.625s-7.346 2.071-7.346 4.625m.271 15.859c0 2.555-3.289 4.625-7.346 4.625s-7.346-2.071-7.346-4.625"
|
|
20
|
+
stroke="#000"
|
|
21
|
+
paint-order="stroke fill markers"
|
|
22
|
+
fill="none"
|
|
23
|
+
stroke-linecap="round"
|
|
24
|
+
stroke-linejoin="round"
|
|
25
|
+
stroke-width="6.65"
|
|
26
|
+
/></svg
|
|
27
|
+
>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
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> {
|
|
15
|
+
}
|
|
16
|
+
export {};
|
package/dist/stores/dark.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { writable } from
|
|
1
|
+
import { writable } from 'svelte/store';
|
|
2
2
|
export const dark = writable(false);
|
|
3
3
|
export function setInitialState() {
|
|
4
4
|
const isDark = isDarkScheme();
|
|
5
5
|
if (isDark) {
|
|
6
6
|
dark.set(true);
|
|
7
7
|
}
|
|
8
|
-
dark.subscribe(isDark => {
|
|
8
|
+
dark.subscribe((isDark) => {
|
|
9
9
|
if (isDark) {
|
|
10
|
-
document.documentElement.classList.add(
|
|
11
|
-
window.localStorage.setItem(
|
|
10
|
+
document.documentElement.classList.add('dark');
|
|
11
|
+
window.localStorage.setItem('scheme-dark', 'true');
|
|
12
12
|
}
|
|
13
13
|
else {
|
|
14
|
-
document.documentElement.classList.remove(
|
|
15
|
-
window.localStorage.removeItem(
|
|
14
|
+
document.documentElement.classList.remove('dark');
|
|
15
|
+
window.localStorage.removeItem('scheme-dark');
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
function isDarkScheme() {
|
|
20
|
-
const localStorageData = window.localStorage.getItem(
|
|
20
|
+
const localStorageData = window.localStorage.getItem('scheme-dark');
|
|
21
21
|
if (localStorageData) {
|
|
22
22
|
return !!localStorageData;
|
|
23
23
|
}
|
|
24
|
-
return window.matchMedia(
|
|
24
|
+
return window.matchMedia('(prefers-color-scheme: dark)').matches;
|
|
25
25
|
}
|
package/dist/variables.scss
CHANGED
|
@@ -1,86 +1,79 @@
|
|
|
1
1
|
/* variables */
|
|
2
2
|
:root {
|
|
3
|
-
|
|
4
|
-
/**
|
|
3
|
+
/**
|
|
5
4
|
* Each app should have its own accent colors
|
|
6
5
|
* --accent should be usable with light text
|
|
7
6
|
* --accent-light and --accent-lightest should be usable with dark text
|
|
8
7
|
*/
|
|
9
|
-
|
|
8
|
+
--accent: #000;
|
|
10
9
|
--accent-light: #bdbdbd;
|
|
11
10
|
--accent-lightest: #fafafa;
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
--accent-text: #fff;
|
|
14
12
|
|
|
15
13
|
--border: #e1e1e1;
|
|
16
14
|
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
--text: #000;
|
|
16
|
+
--text-light: #777;
|
|
19
17
|
--text-white: #fff;
|
|
20
18
|
|
|
21
|
-
|
|
22
|
-
/*
|
|
19
|
+
/*
|
|
23
20
|
* Generally used colors
|
|
24
21
|
* In most cases, no need to extend these colors
|
|
25
22
|
*/
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
--red-dark:#ab2525;
|
|
31
|
-
--red:#db7474;
|
|
32
|
-
--red-light:#ffdfdf;
|
|
23
|
+
--green-light: #cadfca;
|
|
24
|
+
--green: #5d995d;
|
|
25
|
+
--green-dark: #335c33;
|
|
33
26
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
27
|
+
--red-dark: #ab2525;
|
|
28
|
+
--red: #db7474;
|
|
29
|
+
--red-light: #ffdfdf;
|
|
37
30
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
31
|
+
--blue-dark: #334b81;
|
|
32
|
+
--blue: #5875b9;
|
|
33
|
+
--blue-light: #dae5ff;
|
|
41
34
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
35
|
+
--orange-dark: #8b5b04;
|
|
36
|
+
--orange: #e2b500;
|
|
37
|
+
--orange-light: #efe3b4;
|
|
45
38
|
|
|
39
|
+
--gray-light: #ddd;
|
|
40
|
+
--gray: #999;
|
|
41
|
+
--gray-dark: #555;
|
|
46
42
|
|
|
47
|
-
|
|
43
|
+
--hover: #fafafa;
|
|
48
44
|
--link: #1d85d2;
|
|
49
45
|
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
--input: #f3f3f3;
|
|
47
|
+
--input-hover: #ccc; /* checkbox/radio */
|
|
52
48
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
--line-height-content: 26px;
|
|
59
|
-
--header-height: 55px;
|
|
49
|
+
--box-shadow: 0 0 30px #0000000d;
|
|
50
|
+
--box-shadow-light: 0 0 10px 6px rgba(0, 0, 0, 0.06);
|
|
51
|
+
--box-radius: 20px;
|
|
52
|
+
--box-background: #fff;
|
|
60
53
|
|
|
54
|
+
--line-height-content: 26px;
|
|
55
|
+
--header-height: 55px;
|
|
61
56
|
}
|
|
62
57
|
|
|
63
58
|
:root.dark {
|
|
59
|
+
--background: #000;
|
|
64
60
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
--text-light: #999;
|
|
69
|
-
--box-background: #1c1c1c;
|
|
70
|
-
|
|
71
|
-
--accent-light: #555;
|
|
72
|
-
--accent-lightest: #333;
|
|
61
|
+
--text: #fff;
|
|
62
|
+
--text-light: #999;
|
|
63
|
+
--box-background: #1c1c1c;
|
|
73
64
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
--hover: #232323;
|
|
65
|
+
--accent-light: #555;
|
|
66
|
+
--accent-lightest: #333;
|
|
77
67
|
|
|
78
|
-
|
|
68
|
+
--border: #4a4a4a;
|
|
69
|
+
--link: #7cb6e1;
|
|
70
|
+
--hover: #232323;
|
|
79
71
|
|
|
72
|
+
--input: #333;
|
|
80
73
|
}
|
|
81
74
|
|
|
82
75
|
$breakpoint-xs: 320px;
|
|
83
76
|
$breakpoint-sm: 576px;
|
|
84
77
|
$breakpoint-md: 768px;
|
|
85
78
|
$breakpoint-lg: 992px;
|
|
86
|
-
$breakpoint-xl: 1200px;
|
|
79
|
+
$breakpoint-xl: 1200px;
|
package/package.json
CHANGED
|
@@ -1,60 +1,61 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
2
|
+
"name": "@hyvor/design",
|
|
3
|
+
"version": "0.0.68",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"private": false,
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "vite dev",
|
|
8
|
+
"build": "vite build && npm run package",
|
|
9
|
+
"preview": "vite preview",
|
|
10
|
+
"package": "svelte-kit sync && svelte-package && publint",
|
|
11
|
+
"prepublishOnly": "npm run package",
|
|
12
|
+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
13
|
+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
|
|
14
|
+
},
|
|
15
|
+
"exports": {
|
|
16
|
+
"./components": {
|
|
17
|
+
"types": "./dist/components/index.d.ts",
|
|
18
|
+
"svelte": "./dist/components/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./marketing": {
|
|
21
|
+
"types": "./dist/marketing/index.d.ts",
|
|
22
|
+
"svelte": "./dist/marketing/index.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist",
|
|
27
|
+
"!dist/**/*.test.*",
|
|
28
|
+
"!dist/**/*.spec.*"
|
|
29
|
+
],
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"@sveltejs/kit": "^2.0.0",
|
|
32
|
+
"sass": "^1.68.0",
|
|
33
|
+
"svelte": "^4.0.0"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@sveltejs/adapter-static": "^3.0.0",
|
|
37
|
+
"@sveltejs/package": "^2.0.0",
|
|
38
|
+
"@sveltejs/vite-plugin-svelte": "^3.0.0",
|
|
39
|
+
"prettier": "^3.3.3",
|
|
40
|
+
"prettier-plugin-svelte": "^3.2.7",
|
|
41
|
+
"publint": "^0.1.9",
|
|
42
|
+
"svelte": "^4.0.5",
|
|
43
|
+
"svelte-check": "^3.4.3",
|
|
44
|
+
"tslib": "^2.4.1",
|
|
45
|
+
"typescript": "^5.0.0",
|
|
46
|
+
"vite": "^5.0.0"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@fontsource/readex-pro": "^5.0.8",
|
|
50
|
+
"@hyvor/icons": "^0.0.3",
|
|
51
|
+
"deepmerge-ts": "^5.1.0",
|
|
52
|
+
"highlight.js": "^11.9.0",
|
|
53
|
+
"intl-messageformat": "^10.5.11",
|
|
54
|
+
"svelte-awesome-color-picker": "^3.0.4",
|
|
55
|
+
"tocbot": "^4.25.0"
|
|
56
|
+
},
|
|
57
|
+
"type": "module",
|
|
58
|
+
"publishConfig": {
|
|
59
|
+
"access": "public"
|
|
60
|
+
}
|
|
60
61
|
}
|