@hyvor/design 1.0.5 → 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/Selected.svelte +1 -1
- package/dist/components/Dark/DarkToggle.svelte +2 -1
- package/dist/components/FormControl/Validation.svelte +3 -5
- package/dist/components/HyvorBar/BarProducts.svelte +2 -2
- package/dist/components/HyvorBar/BarSupport.svelte +10 -11
- package/dist/components/HyvorBar/BarUpdates.svelte +1 -1
- package/dist/components/HyvorBar/BarUpdatesList.svelte +1 -1
- package/dist/components/HyvorBar/BarUser.svelte +1 -1
- package/dist/components/HyvorBar/HyvorBar.svelte +1 -1
- package/dist/components/IconMessage/IconMessage.svelte +2 -1
- package/dist/components/Internationalization/LanguageToggle.svelte +1 -1
- package/dist/components/Loader/Loader.svelte +2 -1
- package/dist/components/Modal/Modal.svelte +1 -1
- package/dist/components/Toast/ToastIcon.svelte +5 -6
- package/dist/marketing/Docs/Nav/Nav.svelte +2 -3
- package/dist/marketing/Docs/Toc.svelte +4 -1
- package/dist/marketing/Document/Document.svelte +56 -7
- package/dist/marketing/Document/DocumentTitle.svelte +1 -0
- package/dist/marketing/Footer/Footer.svelte +9 -9
- package/dist/marketing/Header/Header.svelte +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import
|
|
2
|
+
import IconMoonStarsFill from '@hyvor/icons/IconMoonStarsFill';
|
|
3
|
+
import IconSunFill from '@hyvor/icons/IconSunFill';
|
|
3
4
|
import IconButton from '../IconButton/IconButton.svelte';
|
|
4
5
|
import { dark } from './../../stores/dark.js';
|
|
5
6
|
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
IconInfoCircleFill
|
|
6
|
-
} from '@hyvor/icons';
|
|
2
|
+
import IconCheckCircleFill from '@hyvor/icons/IconCheckCircleFill';
|
|
3
|
+
import IconExclamationTriangleFill from '@hyvor/icons/IconExclamationTriangleFill';
|
|
4
|
+
import IconInfoCircleFill from '@hyvor/icons/IconInfoCircleFill';
|
|
7
5
|
import type { AriaRole } from 'svelte/elements';
|
|
8
6
|
|
|
9
7
|
interface Props {
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
|
|
25
25
|
<script lang="ts">
|
|
26
26
|
import LogoBlogs from '../../marketing/Logo/LogoBlogs.svelte';
|
|
27
|
-
import LogoCore from '../../marketing/Logo/LogoCore.svelte';
|
|
28
27
|
import LogoFortguard from '../../marketing/Logo/LogoFortguard.svelte';
|
|
29
28
|
import LogoTalk from '../../marketing/Logo/LogoTalk.svelte';
|
|
30
29
|
import { ActionList, ActionListItem, Button, Dropdown } from '../index.js';
|
|
31
|
-
import
|
|
30
|
+
import IconCaretDownFill from '@hyvor/icons/IconCaretDownFill';
|
|
31
|
+
import IconBoxArrowUpRight from '@hyvor/icons/IconBoxArrowUpRight';
|
|
32
32
|
|
|
33
33
|
interface Props {
|
|
34
34
|
mobile?: boolean;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { ActionList, ActionListItem, Button, Dropdown } from '../index.js';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from '@hyvor/icons';
|
|
3
|
+
import IconCaretDownFill from '@hyvor/icons/IconCaretDownFill';
|
|
4
|
+
import IconBoxArrowUpRight from '@hyvor/icons/IconBoxArrowUpRight';
|
|
5
|
+
import IconChat from '@hyvor/icons/IconChat';
|
|
6
|
+
import IconDiscord from '@hyvor/icons/IconDiscord';
|
|
7
|
+
import IconInfoCircle from '@hyvor/icons/IconInfoCircle';
|
|
8
|
+
import IconFileEarmark from '@hyvor/icons/IconFileEarmark';
|
|
9
|
+
import IconChatDots from '@hyvor/icons/IconChatDots';
|
|
10
|
+
import IconTwitterX from '@hyvor/icons/IconTwitterX';
|
|
11
|
+
import IconLinkedin from '@hyvor/icons/IconLinkedin';
|
|
12
|
+
|
|
14
13
|
import ActionListGroup from '../ActionList/ActionListGroup.svelte';
|
|
15
14
|
import { PRODUCTS } from './BarProducts.svelte';
|
|
16
15
|
import type { BarConfig, BarProduct } from './bar.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { IconButton, Dropdown } from '../index.js';
|
|
3
|
-
import
|
|
3
|
+
import IconMegaphone from '@hyvor/icons/IconMegaphone';
|
|
4
4
|
import BarUpdatesList from './BarUpdatesList.svelte';
|
|
5
5
|
import { type BarProduct, barUnreadUpdates } from './bar.js';
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
type BarProduct,
|
|
10
10
|
type BarUpdate
|
|
11
11
|
} from './bar.js';
|
|
12
|
-
import
|
|
12
|
+
import IconBoxArrowUpRight from '@hyvor/icons/IconBoxArrowUpRight';
|
|
13
13
|
import Button from '../Button/Button.svelte';
|
|
14
14
|
import Tag from '../Tag/Tag.svelte';
|
|
15
15
|
import IconMessage from '../IconMessage/IconMessage.svelte';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import ActionList from '../ActionList/ActionList.svelte';
|
|
3
3
|
import ActionListItem from '../ActionList/ActionListItem.svelte';
|
|
4
4
|
import Dropdown from '../Dropdown/Dropdown.svelte';
|
|
5
|
-
import
|
|
5
|
+
import IconBoxArrowUpRight from '@hyvor/icons/IconBoxArrowUpRight';
|
|
6
6
|
import { barUser } from './bar.js';
|
|
7
7
|
import BarUserPreview from './BarUserPreview.svelte';
|
|
8
8
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import BarSupport from './BarSupport.svelte';
|
|
6
6
|
import { loadBarUser, type BarConfig, type BarProduct } from './bar.js';
|
|
7
7
|
import BarUpdates from './BarUpdates.svelte';
|
|
8
|
-
import
|
|
8
|
+
import IconCaretDownFill from '@hyvor/icons/IconCaretDownFill';
|
|
9
9
|
import LogoTalk from '../../marketing/Logo/LogoTalk.svelte';
|
|
10
10
|
import LogoBlogs from '../../marketing/Logo/LogoBlogs.svelte';
|
|
11
11
|
import LogoCore from '../../marketing/Logo/LogoCore.svelte';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { type Component, type Snippet } from 'svelte';
|
|
3
|
-
import
|
|
3
|
+
import IconBug from '@hyvor/icons/IconBug';
|
|
4
|
+
import IconInbox from '@hyvor/icons/IconInbox';
|
|
4
5
|
import Button from '../Button/Button.svelte';
|
|
5
6
|
|
|
6
7
|
interface Props {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import ActionList from '../ActionList/ActionList.svelte';
|
|
7
7
|
import ActionListItem from '../ActionList/ActionListItem.svelte';
|
|
8
8
|
import Text from '../Text/Text.svelte';
|
|
9
|
-
import
|
|
9
|
+
import IconCaretDown from '@hyvor/icons/IconCaretDown';
|
|
10
10
|
import IconButton from '../IconButton/IconButton.svelte';
|
|
11
11
|
|
|
12
12
|
interface Props {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { run } from 'svelte/legacy';
|
|
3
3
|
|
|
4
|
-
import
|
|
4
|
+
import IconCheckCircleFill from '@hyvor/icons/IconCheckCircleFill';
|
|
5
|
+
import IconXCircleFill from '@hyvor/icons/IconXCircleFill';
|
|
5
6
|
|
|
6
7
|
interface Props {
|
|
7
8
|
block?: boolean;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import ModalFooter from './ModalFooter.svelte';
|
|
4
4
|
import type { Footer } from './modal-types.js';
|
|
5
5
|
import { clickOutside } from '../directives/clickOutside.js';
|
|
6
|
-
import
|
|
6
|
+
import IconX from '@hyvor/icons/IconX';
|
|
7
7
|
import IconButton from './../IconButton/IconButton.svelte';
|
|
8
8
|
import { fade, scale } from 'svelte/transition';
|
|
9
9
|
import { onMount, tick, type Snippet } from 'svelte';
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { Toast } from './toast.ts';
|
|
3
3
|
import Loader from '../Loader/Loader.svelte';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from '@hyvor/icons';
|
|
4
|
+
|
|
5
|
+
import IconCheckCircleFill from '@hyvor/icons/IconCheckCircleFill';
|
|
6
|
+
import IconXCircleFill from '@hyvor/icons/IconXCircleFill';
|
|
7
|
+
import IconExclamationCircleFill from '@hyvor/icons/IconExclamationCircleFill';
|
|
8
|
+
import IconInfoCircleFill from '@hyvor/icons/IconInfoCircleFill';
|
|
10
9
|
|
|
11
10
|
interface Props {
|
|
12
11
|
toast: Toast;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { afterNavigate
|
|
3
|
-
import
|
|
4
|
-
import { IconList } from '@hyvor/icons';
|
|
2
|
+
import { afterNavigate } from '$app/navigation';
|
|
3
|
+
import IconList from '@hyvor/icons/IconList';
|
|
5
4
|
import { onMount } from 'svelte';
|
|
6
5
|
import { clickOutside } from '../../../components/index.js';
|
|
7
6
|
interface Props {
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
import tocbot from 'tocbot';
|
|
7
7
|
|
|
8
8
|
import Loader from '../../components/Loader/Loader.svelte';
|
|
9
|
-
import
|
|
9
|
+
import IconCaretDown from '@hyvor/icons/IconCaretDown';
|
|
10
|
+
import IconCaretRight from '@hyvor/icons/IconCaretRight';
|
|
10
11
|
import Button from '../../components/Button/Button.svelte';
|
|
11
12
|
|
|
12
13
|
let tocElement: HTMLDivElement | undefined = $state();
|
|
@@ -68,6 +69,8 @@
|
|
|
68
69
|
|
|
69
70
|
<style>.wrap {
|
|
70
71
|
padding: 25px;
|
|
72
|
+
max-height: calc(100vh - var(--header-height) - 50px);
|
|
73
|
+
overflow-y: auto;
|
|
71
74
|
}
|
|
72
75
|
|
|
73
76
|
.toc-wrap {
|
|
@@ -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,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';
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@fontsource/readex-pro": "^5.0.8",
|
|
49
|
-
"@hyvor/icons": "^1.
|
|
49
|
+
"@hyvor/icons": "^1.1.0",
|
|
50
50
|
"deepmerge-ts": "^5.1.0",
|
|
51
51
|
"highlight.js": "^11.9.0",
|
|
52
52
|
"intl-messageformat": "^10.5.11",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
|
-
"version": "1.0.
|
|
60
|
+
"version": "1.0.6"
|
|
61
61
|
}
|