@hyvor/design 1.0.3 → 1.0.6
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.d.ts +6 -5
- package/dist/components/ActionList/ActionListGroup.svelte.d.ts +5 -4
- package/dist/components/ActionList/ActionListItem.svelte.d.ts +11 -10
- package/dist/components/ActionList/Selected.svelte +1 -1
- package/dist/components/ActionList/Selected.svelte.d.ts +4 -3
- package/dist/components/Avatar/Avatar.svelte.d.ts +5 -4
- package/dist/components/Avatar/AvatarStack.svelte.d.ts +5 -4
- package/dist/components/Base/Base.svelte.d.ts +4 -3
- package/dist/components/Box/Box.svelte.d.ts +5 -4
- package/dist/components/Button/Button.svelte.d.ts +13 -12
- package/dist/components/Button/ButtonGroup.svelte.d.ts +4 -3
- package/dist/components/Callout/Callout.svelte.d.ts +5 -4
- package/dist/components/CodeBlock/CodeBlock.svelte.d.ts +5 -3
- package/dist/components/ColorPicker/ColorPicker.svelte.d.ts +7 -6
- package/dist/components/Dark/DarkToggle.svelte +2 -1
- package/dist/components/Divider/Divider.svelte.d.ts +4 -3
- package/dist/components/Dropdown/Dropdown.svelte.d.ts +5 -4
- package/dist/components/FormControl/Caption.svelte.d.ts +5 -4
- package/dist/components/FormControl/FormControl.svelte.d.ts +4 -3
- package/dist/components/FormControl/InputGroup.svelte.d.ts +5 -4
- package/dist/components/FormControl/Label.svelte.d.ts +4 -3
- package/dist/components/FormControl/Validation.svelte +3 -5
- package/dist/components/FormControl/Validation.svelte.d.ts +6 -5
- package/dist/components/HyvorBar/BarProducts.svelte +2 -2
- package/dist/components/HyvorBar/BarSupport.svelte +10 -11
- package/dist/components/HyvorBar/BarSupport.svelte.d.ts +3 -2
- package/dist/components/HyvorBar/BarUpdates.svelte +1 -1
- package/dist/components/HyvorBar/BarUpdates.svelte.d.ts +3 -2
- package/dist/components/HyvorBar/BarUpdatesList.svelte +1 -1
- package/dist/components/HyvorBar/BarUpdatesList.svelte.d.ts +3 -2
- package/dist/components/HyvorBar/BarUser.svelte +1 -1
- package/dist/components/HyvorBar/BarUser.svelte.d.ts +3 -2
- package/dist/components/HyvorBar/HyvorBar.svelte +1 -1
- package/dist/components/IconButton/IconButton.svelte.d.ts +8 -7
- package/dist/components/IconMessage/IconMessage.svelte +2 -1
- package/dist/components/Internationalization/InternationalizationProvider.svelte.d.ts +4 -3
- package/dist/components/Internationalization/LanguageToggle.svelte +1 -1
- package/dist/components/Internationalization/LanguageToggle.svelte.d.ts +6 -5
- package/dist/components/Link/Link.svelte.d.ts +8 -7
- package/dist/components/Loader/Loader.svelte +2 -1
- package/dist/components/Loader/Loader.svelte.d.ts +8 -7
- package/dist/components/Modal/Modal.svelte +1 -1
- package/dist/components/Modal/Modal.svelte.d.ts +13 -12
- package/dist/components/Modal/ModalFooter.svelte.d.ts +5 -4
- package/dist/components/NavLink/NavLink.svelte.d.ts +7 -6
- package/dist/components/Radio/Radio.svelte.d.ts +5 -4
- package/dist/components/Slider/Slider.svelte +40 -7
- package/dist/components/Slider/Slider.svelte.d.ts +8 -7
- package/dist/components/SplitControl/SplitControl.svelte.d.ts +3 -2
- package/dist/components/Switch/Switch.svelte.d.ts +5 -4
- package/dist/components/TabNav/TabNav.svelte.d.ts +5 -4
- package/dist/components/TabNav/TabNavItem.svelte.d.ts +7 -6
- package/dist/components/Table/Table.svelte.d.ts +4 -3
- package/dist/components/Table/TableRow.svelte.d.ts +3 -2
- package/dist/components/Tag/Tag.svelte.d.ts +10 -9
- package/dist/components/Text/Text.svelte.d.ts +5 -4
- package/dist/components/TextInput/TextInput.svelte +50 -18
- package/dist/components/TextInput/TextInput.svelte.d.ts +3 -1
- package/dist/components/Toast/ToastIcon.svelte +5 -6
- package/dist/components/Toast/ToastIcon.svelte.d.ts +3 -2
- package/dist/components/Toast/ToastMessage.svelte.d.ts +3 -2
- package/dist/components/Tooltip/Tooltip.svelte.d.ts +2 -2
- package/dist/marketing/Container/Container.svelte.d.ts +4 -3
- package/dist/marketing/Docs/Content/Content.svelte.d.ts +4 -3
- package/dist/marketing/Docs/Content/DocsImage.svelte.d.ts +4 -3
- package/dist/marketing/Docs/Docs.svelte.d.ts +5 -4
- package/dist/marketing/Docs/Nav/Nav.svelte +2 -3
- package/dist/marketing/Docs/Nav/Nav.svelte.d.ts +4 -3
- package/dist/marketing/Docs/Nav/NavCategory.svelte.d.ts +6 -5
- package/dist/marketing/Docs/Nav/NavItem.svelte.d.ts +4 -3
- package/dist/marketing/Docs/Toc.svelte +4 -1
- package/dist/marketing/Document/Document.svelte +56 -7
- package/dist/marketing/Document/Document.svelte.d.ts +4 -3
- package/dist/marketing/Document/DocumentTitle.svelte +1 -0
- package/dist/marketing/Document/DocumentTitle.svelte.d.ts +3 -2
- package/dist/marketing/Footer/Footer.svelte +9 -9
- package/dist/marketing/Footer/Footer.svelte.d.ts +4 -3
- package/dist/marketing/Footer/FooterLinkList.svelte.d.ts +4 -3
- package/dist/marketing/Header/Header.svelte +1 -1
- package/dist/marketing/Header/Header.svelte.d.ts +5 -4
- package/dist/marketing/Logo/LogoBlogs.svelte.d.ts +3 -2
- package/dist/marketing/Logo/LogoCore.svelte.d.ts +3 -2
- package/dist/marketing/Logo/LogoFortguard.svelte.d.ts +3 -2
- package/dist/marketing/Logo/LogoTalk.svelte.d.ts +3 -2
- package/package.json +4 -4
- package/dist/components/HyvorBar/BarProducts.svelte.d.ts +0 -32
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { onMount } from 'svelte';
|
|
2
3
|
import FeatureSectionTitle from './DocumentTitle.svelte';
|
|
4
|
+
import { page } from '$app/stores';
|
|
5
|
+
import DocumentTitle from './DocumentTitle.svelte';
|
|
3
6
|
|
|
4
7
|
interface Props {
|
|
5
8
|
title: string;
|
|
@@ -8,12 +11,42 @@
|
|
|
8
11
|
}
|
|
9
12
|
|
|
10
13
|
let { title, subtitle, children }: Props = $props();
|
|
14
|
+
|
|
15
|
+
function linkifyHeadings() {
|
|
16
|
+
var hs = document.querySelectorAll('h2[id],h3[id],h4[id]');
|
|
17
|
+
for (var i = 0; i < hs.length; i++) {
|
|
18
|
+
var h = hs[i];
|
|
19
|
+
|
|
20
|
+
var icon = document.createElement('a');
|
|
21
|
+
icon.className = 'heading-anchor-link';
|
|
22
|
+
icon.innerHTML =
|
|
23
|
+
'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="bi bi-link-45deg" viewBox="0 0 16 16"><path d="M4.715 6.542 3.343 7.914a3 3 0 1 0 4.243 4.243l1.828-1.829A3 3 0 0 0 8.586 5.5L8 6.086a1.002 1.002 0 0 0-.154.199 2 2 0 0 1 .861 3.337L6.88 11.45a2 2 0 1 1-2.83-2.83l.793-.792a4.018 4.018 0 0 1-.128-1.287z"/><path d="M6.586 4.672A3 3 0 0 0 7.414 9.5l.775-.776a2 2 0 0 1-.896-3.346L9.12 3.55a2 2 0 1 1 2.83 2.83l-.793.792c.112.42.155.855.128 1.287l1.372-1.372a3 3 0 1 0-4.243-4.243L6.586 4.672z"/></svg>';
|
|
24
|
+
icon.tabIndex = -1;
|
|
25
|
+
h.appendChild(icon);
|
|
26
|
+
|
|
27
|
+
var id = h.getAttribute('id');
|
|
28
|
+
var link = document.createElement('a');
|
|
29
|
+
link.className = 'heading-anchor';
|
|
30
|
+
link.setAttribute('href', '#' + id);
|
|
31
|
+
link.innerHTML = h.innerHTML;
|
|
32
|
+
h.innerHTML = link.outerHTML;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
onMount(() => {
|
|
37
|
+
const unsubscribe = page.subscribe(() => {
|
|
38
|
+
linkifyHeadings();
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
return () => {
|
|
42
|
+
unsubscribe();
|
|
43
|
+
};
|
|
44
|
+
});
|
|
11
45
|
</script>
|
|
12
46
|
|
|
13
47
|
<section>
|
|
14
48
|
<div class="hds-container container">
|
|
15
|
-
<
|
|
16
|
-
<div class="date">{subtitle}</div>
|
|
49
|
+
<DocumentTitle {title} {subtitle} />
|
|
17
50
|
<content>{@render children?.()}</content>
|
|
18
51
|
</div>
|
|
19
52
|
</section>
|
|
@@ -29,11 +62,6 @@
|
|
|
29
62
|
.container :global(.wrap) {
|
|
30
63
|
margin-top: 0 !important;
|
|
31
64
|
}
|
|
32
|
-
.container .date {
|
|
33
|
-
text-align: center;
|
|
34
|
-
margin: 15px 0 60px 0;
|
|
35
|
-
color: var(--text-light);
|
|
36
|
-
}
|
|
37
65
|
.container content :global(h2) {
|
|
38
66
|
font-size: 32px !important;
|
|
39
67
|
font-weight: 600;
|
|
@@ -63,4 +91,25 @@
|
|
|
63
91
|
.container content :global(a) {
|
|
64
92
|
color: var(--link);
|
|
65
93
|
text-decoration: underline;
|
|
94
|
+
}
|
|
95
|
+
.container content :global(a.heading-anchor-link) {
|
|
96
|
+
position: absolute;
|
|
97
|
+
right: 100%;
|
|
98
|
+
margin-right: 7px;
|
|
99
|
+
opacity: 0;
|
|
100
|
+
top: 50%;
|
|
101
|
+
transform: translateY(-50%);
|
|
102
|
+
display: inline-flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
}
|
|
105
|
+
.container content :global(.heading-anchor:hover + .heading-anchor-link) {
|
|
106
|
+
opacity: 1;
|
|
107
|
+
}
|
|
108
|
+
.container content :global(h2 a:not(.heading-anchor-link)),
|
|
109
|
+
.container content :global(h3 a:not(.heading-anchor-link)),
|
|
110
|
+
.container content :global(h4 a:not(.heading-anchor-link)),
|
|
111
|
+
.container content :global(h5 a:not(.heading-anchor-link)),
|
|
112
|
+
.container content :global(h6 a:not(.heading-anchor-link)) {
|
|
113
|
+
text-decoration: none;
|
|
114
|
+
color: inherit;
|
|
66
115
|
}</style>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
interface Props {
|
|
2
2
|
title: string;
|
|
3
3
|
subtitle: string;
|
|
4
|
-
children?: import(
|
|
5
|
-
}
|
|
4
|
+
children?: import('svelte').Snippet;
|
|
5
|
+
}
|
|
6
|
+
declare const Document: import("svelte").Component<Props, {}, "">;
|
|
6
7
|
type Document = ReturnType<typeof Document>;
|
|
7
8
|
export default Document;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
interface Props {
|
|
2
2
|
title: string;
|
|
3
3
|
subtitle?: string | undefined;
|
|
4
4
|
icon?: null | string;
|
|
5
5
|
h2Style?: string | undefined;
|
|
6
6
|
wrapStyle?: string | undefined;
|
|
7
|
-
}
|
|
7
|
+
}
|
|
8
|
+
declare const DocumentTitle: import("svelte").Component<Props, {}, "">;
|
|
8
9
|
type DocumentTitle = ReturnType<typeof DocumentTitle>;
|
|
9
10
|
export default DocumentTitle;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import Container from '../Container/Container.svelte';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
|
|
4
|
+
import IconCopy from '@hyvor/icons/IconCopy';
|
|
5
|
+
import IconDiscord from '@hyvor/icons/IconDiscord';
|
|
6
|
+
import IconEnvelope from '@hyvor/icons/IconEnvelope';
|
|
7
|
+
import IconGithub from '@hyvor/icons/IconGithub';
|
|
8
|
+
import IconLinkedin from '@hyvor/icons/IconLinkedin';
|
|
9
|
+
import IconTwitterX from '@hyvor/icons/IconTwitterX';
|
|
10
|
+
import IconYoutube from '@hyvor/icons/IconYoutube';
|
|
11
|
+
|
|
12
12
|
import Link from '../../components/Link/Link.svelte';
|
|
13
13
|
import IconButton from '../../components/IconButton/IconButton.svelte';
|
|
14
14
|
import Tooltip from '../../components/Tooltip/Tooltip.svelte';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
interface Props {
|
|
2
2
|
email?: string | null;
|
|
3
3
|
social?: any;
|
|
4
4
|
emailCopied?: boolean;
|
|
5
|
-
center?: import(
|
|
6
|
-
}
|
|
5
|
+
center?: import('svelte').Snippet;
|
|
6
|
+
}
|
|
7
|
+
declare const Footer: import("svelte").Component<Props, {}, "social" | "emailCopied">;
|
|
7
8
|
type Footer = ReturnType<typeof Footer>;
|
|
8
9
|
export default Footer;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
interface Props {
|
|
2
2
|
title: string;
|
|
3
|
-
children?: import(
|
|
4
|
-
}
|
|
3
|
+
children?: import('svelte').Snippet;
|
|
4
|
+
}
|
|
5
|
+
declare const FooterLinkList: import("svelte").Component<Props, {}, "">;
|
|
5
6
|
type FooterLinkList = ReturnType<typeof FooterLinkList>;
|
|
6
7
|
export default FooterLinkList;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import DarkToggle from '../../components/Dark/DarkToggle.svelte';
|
|
4
4
|
import IconButton from '../../components/IconButton/IconButton.svelte';
|
|
5
5
|
import Dropdown from '../../components/Dropdown/Dropdown.svelte';
|
|
6
|
-
import
|
|
6
|
+
import IconList from '@hyvor/icons/IconList';
|
|
7
7
|
|
|
8
8
|
interface Props {
|
|
9
9
|
logo: string;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
interface Props {
|
|
2
2
|
logo: string;
|
|
3
3
|
name?: string;
|
|
4
4
|
subName?: undefined | string;
|
|
5
5
|
darkToggle?: boolean;
|
|
6
|
-
center?: import(
|
|
7
|
-
end?: import(
|
|
8
|
-
}
|
|
6
|
+
center?: import('svelte').Snippet;
|
|
7
|
+
end?: import('svelte').Snippet;
|
|
8
|
+
}
|
|
9
|
+
declare const Header: import("svelte").Component<Props, {}, "">;
|
|
9
10
|
type Header = ReturnType<typeof Header>;
|
|
10
11
|
export default Header;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
interface Props {
|
|
2
2
|
size?: number;
|
|
3
|
-
}
|
|
3
|
+
}
|
|
4
|
+
declare const LogoFortguard: import("svelte").Component<Props, {}, "">;
|
|
4
5
|
type LogoFortguard = ReturnType<typeof LogoFortguard>;
|
|
5
6
|
export default LogoFortguard;
|
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyvor/design",
|
|
3
|
-
"version": "1.0.3",
|
|
4
3
|
"license": "MIT",
|
|
5
4
|
"private": false,
|
|
6
5
|
"scripts": {
|
|
@@ -30,7 +29,7 @@
|
|
|
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",
|
|
@@ -47,7 +46,7 @@
|
|
|
47
46
|
},
|
|
48
47
|
"dependencies": {
|
|
49
48
|
"@fontsource/readex-pro": "^5.0.8",
|
|
50
|
-
"@hyvor/icons": "^1.
|
|
49
|
+
"@hyvor/icons": "^1.1.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.6"
|
|
61
61
|
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
declare const PRODUCTS: {
|
|
2
|
-
talk: {
|
|
3
|
-
name: string;
|
|
4
|
-
logo: import("svelte").Component<{
|
|
5
|
-
size?: number;
|
|
6
|
-
}, {}, "">;
|
|
7
|
-
url: string;
|
|
8
|
-
description: string;
|
|
9
|
-
};
|
|
10
|
-
blogs: {
|
|
11
|
-
name: string;
|
|
12
|
-
logo: import("svelte").Component<{
|
|
13
|
-
size?: number;
|
|
14
|
-
}, {}, "">;
|
|
15
|
-
url: string;
|
|
16
|
-
description: string;
|
|
17
|
-
};
|
|
18
|
-
fortguard: {
|
|
19
|
-
name: string;
|
|
20
|
-
logo: import("svelte").Component<{
|
|
21
|
-
size?: number;
|
|
22
|
-
}, {}, "">;
|
|
23
|
-
url: string;
|
|
24
|
-
description: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export { PRODUCTS };
|
|
28
|
-
declare const BarProducts: import("svelte").Component<{
|
|
29
|
-
mobile?: boolean;
|
|
30
|
-
}, {}, "">;
|
|
31
|
-
type BarProducts = ReturnType<typeof BarProducts>;
|
|
32
|
-
export default BarProducts;
|