@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,15 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
[key: string]: any;
|
|
1
|
+
interface Props {
|
|
3
2
|
block?: boolean;
|
|
4
3
|
full?: boolean;
|
|
5
|
-
padding?:
|
|
6
|
-
size?:
|
|
7
|
-
state?:
|
|
4
|
+
padding?: 'none' | 'small' | 'medium' | 'large' | number;
|
|
5
|
+
size?: 'small' | 'medium' | 'large' | number;
|
|
6
|
+
state?: 'loading' | 'success' | 'error' | 'none';
|
|
8
7
|
duration?: null | number;
|
|
9
8
|
color?: string;
|
|
10
9
|
colorTrack?: string;
|
|
11
10
|
invert?: boolean;
|
|
12
|
-
children?: import(
|
|
13
|
-
|
|
11
|
+
children?: import('svelte').Snippet;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
14
|
+
declare const Loader: import("svelte").Component<Props, {}, "size" | "color" | "padding" | "state" | "colorTrack">;
|
|
14
15
|
type Loader = ReturnType<typeof Loader>;
|
|
15
16
|
export default Loader;
|
|
@@ -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,5 +1,17 @@
|
|
|
1
1
|
import type { Footer } from './modal-types.js';
|
|
2
2
|
import { type Snippet } from 'svelte';
|
|
3
|
+
interface Props {
|
|
4
|
+
show?: boolean;
|
|
5
|
+
title?: string | Snippet;
|
|
6
|
+
size?: 'small' | 'medium' | 'large';
|
|
7
|
+
id?: string;
|
|
8
|
+
role?: 'dialog' | 'alertdialog';
|
|
9
|
+
closeOnOutsideClick?: boolean;
|
|
10
|
+
closeOnEscape?: boolean;
|
|
11
|
+
loading?: boolean | string;
|
|
12
|
+
footer?: Footer | Snippet;
|
|
13
|
+
children?: Snippet;
|
|
14
|
+
}
|
|
3
15
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
4
16
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
5
17
|
$$bindings?: Bindings;
|
|
@@ -13,18 +25,7 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
13
25
|
};
|
|
14
26
|
z_$$bindings?: Bindings;
|
|
15
27
|
}
|
|
16
|
-
declare const Modal: $$__sveltets_2_IsomorphicComponent<{
|
|
17
|
-
show?: boolean;
|
|
18
|
-
title?: string | Snippet;
|
|
19
|
-
size?: "small" | "medium" | "large";
|
|
20
|
-
id?: string;
|
|
21
|
-
role?: "dialog" | "alertdialog";
|
|
22
|
-
closeOnOutsideClick?: boolean;
|
|
23
|
-
closeOnEscape?: boolean;
|
|
24
|
-
loading?: boolean | string;
|
|
25
|
-
footer?: Footer | Snippet;
|
|
26
|
-
children?: Snippet;
|
|
27
|
-
}, {
|
|
28
|
+
declare const Modal: $$__sveltets_2_IsomorphicComponent<Props, {
|
|
28
29
|
cancel: CustomEvent<any>;
|
|
29
30
|
confirm: CustomEvent<any>;
|
|
30
31
|
} & {
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { Footer } from './modal-types.ts';
|
|
2
|
+
interface Props {
|
|
3
|
+
show: boolean;
|
|
4
|
+
footer: Footer;
|
|
5
|
+
}
|
|
2
6
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
3
7
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
8
|
$$bindings?: Bindings;
|
|
@@ -12,10 +16,7 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
12
16
|
};
|
|
13
17
|
z_$$bindings?: Bindings;
|
|
14
18
|
}
|
|
15
|
-
declare const ModalFooter: $$__sveltets_2_IsomorphicComponent<{
|
|
16
|
-
show: boolean;
|
|
17
|
-
footer: Footer;
|
|
18
|
-
}, {
|
|
19
|
+
declare const ModalFooter: $$__sveltets_2_IsomorphicComponent<Props, {
|
|
19
20
|
cancel: CustomEvent<any>;
|
|
20
21
|
confirm: CustomEvent<any>;
|
|
21
22
|
} & {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
[key: string]: any;
|
|
1
|
+
type Props = {
|
|
3
2
|
href: string;
|
|
4
3
|
active?: boolean;
|
|
5
4
|
disabled?: boolean;
|
|
6
|
-
start?: import(
|
|
7
|
-
children?: import(
|
|
8
|
-
end?: import(
|
|
9
|
-
|
|
5
|
+
start?: import('svelte').Snippet;
|
|
6
|
+
children?: import('svelte').Snippet;
|
|
7
|
+
end?: import('svelte').Snippet;
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
};
|
|
10
|
+
declare const NavLink: import("svelte").Component<Props, {}, "">;
|
|
10
11
|
type NavLink = ReturnType<typeof NavLink>;
|
|
11
12
|
export default NavLink;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
[key: string]: any;
|
|
1
|
+
interface Props {
|
|
3
2
|
value?: number | string;
|
|
4
3
|
group?: number | string;
|
|
5
4
|
disabled?: boolean;
|
|
6
5
|
input?: any;
|
|
7
|
-
children?: import(
|
|
8
|
-
|
|
6
|
+
children?: import('svelte').Snippet;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}
|
|
9
|
+
declare const Radio: import("svelte").Component<Props, {}, "group" | "input">;
|
|
9
10
|
type Radio = ReturnType<typeof Radio>;
|
|
10
11
|
export default Radio;
|
|
@@ -36,24 +36,57 @@
|
|
|
36
36
|
function handleMouseup() {
|
|
37
37
|
dragging = false;
|
|
38
38
|
window.removeEventListener('mousemove', handleMousemove);
|
|
39
|
+
window.removeEventListener('mouseup', handleMouseup);
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
function handleMousemove(event: MouseEvent) {
|
|
42
43
|
if (!trackEl) return;
|
|
43
44
|
if (dragging) {
|
|
44
|
-
|
|
45
|
-
const x = event.clientX - rect.left;
|
|
46
|
-
const width = rect.width;
|
|
47
|
-
const newValue = min + (x / width) * (max - min);
|
|
48
|
-
value = toStep(newValue);
|
|
49
|
-
dispatch('change', value);
|
|
45
|
+
calcPosUpdateValue(trackEl, event.clientX);
|
|
50
46
|
}
|
|
51
47
|
}
|
|
48
|
+
|
|
49
|
+
// touch events
|
|
50
|
+
function handleTouchstart(event: TouchEvent) {
|
|
51
|
+
dragging = true;
|
|
52
|
+
handleTouchmove(event);
|
|
53
|
+
|
|
54
|
+
window.addEventListener('touchmove', handleTouchmove);
|
|
55
|
+
window.addEventListener('touchend', handleTouchend);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function handleTouchend() {
|
|
59
|
+
dragging = false;
|
|
60
|
+
window.removeEventListener('touchmove', handleTouchmove);
|
|
61
|
+
window.removeEventListener('touchend', handleTouchend);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function handleTouchmove(event: TouchEvent) {
|
|
65
|
+
if (!trackEl) return;
|
|
66
|
+
if (dragging) {
|
|
67
|
+
calcPosUpdateValue(trackEl, event.touches[0].clientX);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function calcPosUpdateValue(trackEl: HTMLDivElement, clientX: number) {
|
|
72
|
+
const rect = trackEl.getBoundingClientRect();
|
|
73
|
+
const x = clientX - rect.left;
|
|
74
|
+
const width = rect.width;
|
|
75
|
+
const newValue = min + (x / width) * (max - min);
|
|
76
|
+
value = toStep(newValue);
|
|
77
|
+
dispatch('change', value);
|
|
78
|
+
}
|
|
52
79
|
</script>
|
|
53
80
|
|
|
54
81
|
<div class="slider">
|
|
55
82
|
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
|
56
|
-
<div
|
|
83
|
+
<div
|
|
84
|
+
class="track"
|
|
85
|
+
bind:this={trackEl}
|
|
86
|
+
class:dragging
|
|
87
|
+
onmousedown={handleMousedown}
|
|
88
|
+
ontouchstart={handleTouchstart}
|
|
89
|
+
>
|
|
57
90
|
<div class="progress" style="width: {progress}%"></div>
|
|
58
91
|
<button class="handle" style="left: {progress}%">
|
|
59
92
|
<span class="tip">
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
min: number;
|
|
3
|
+
max: number;
|
|
4
|
+
value: number;
|
|
5
|
+
step?: number;
|
|
6
|
+
dots?: boolean;
|
|
7
|
+
}
|
|
1
8
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
9
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
10
|
$$bindings?: Bindings;
|
|
@@ -11,13 +18,7 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
11
18
|
};
|
|
12
19
|
z_$$bindings?: Bindings;
|
|
13
20
|
}
|
|
14
|
-
declare const Slider: $$__sveltets_2_IsomorphicComponent<{
|
|
15
|
-
min: number;
|
|
16
|
-
max: number;
|
|
17
|
-
value: number;
|
|
18
|
-
step?: number;
|
|
19
|
-
dots?: boolean;
|
|
20
|
-
}, {
|
|
21
|
+
declare const Slider: $$__sveltets_2_IsomorphicComponent<Props, {
|
|
21
22
|
change: CustomEvent<number>;
|
|
22
23
|
} & {
|
|
23
24
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
|
-
|
|
2
|
+
interface Props {
|
|
3
3
|
label?: string | Snippet;
|
|
4
4
|
caption?: string | Snippet;
|
|
5
5
|
column?: boolean;
|
|
6
6
|
flex?: number[];
|
|
7
7
|
children?: Snippet;
|
|
8
8
|
nested?: Snippet;
|
|
9
|
-
}
|
|
9
|
+
}
|
|
10
|
+
declare const SplitControl: import("svelte").Component<Props, {}, "">;
|
|
10
11
|
type SplitControl = ReturnType<typeof SplitControl>;
|
|
11
12
|
export default SplitControl;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
[key: string]: any;
|
|
1
|
+
interface Props {
|
|
3
2
|
checked?: boolean;
|
|
4
3
|
input?: any;
|
|
5
|
-
children?: import(
|
|
6
|
-
|
|
4
|
+
children?: import('svelte').Snippet;
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}
|
|
7
|
+
declare const Switch: import("svelte").Component<Props, {}, "checked" | "input">;
|
|
7
8
|
type Switch = ReturnType<typeof Switch>;
|
|
8
9
|
export default Switch;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
[key: string]: any;
|
|
1
|
+
interface Props {
|
|
3
2
|
active: string;
|
|
4
|
-
children?: import(
|
|
5
|
-
|
|
3
|
+
children?: import('svelte').Snippet;
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}
|
|
6
|
+
declare const TabNav: import("svelte").Component<Props, {}, "active">;
|
|
6
7
|
type TabNav = ReturnType<typeof TabNav>;
|
|
7
8
|
export default TabNav;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
[key: string]: any;
|
|
1
|
+
interface Props {
|
|
3
2
|
active?: boolean;
|
|
4
3
|
name: string;
|
|
5
|
-
start?: import(
|
|
6
|
-
children?: import(
|
|
7
|
-
end?: import(
|
|
8
|
-
|
|
4
|
+
start?: import('svelte').Snippet;
|
|
5
|
+
children?: import('svelte').Snippet;
|
|
6
|
+
end?: import('svelte').Snippet;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}
|
|
9
|
+
declare const TabNavItem: import("svelte").Component<Props, {}, "">;
|
|
9
10
|
type TabNavItem = ReturnType<typeof TabNavItem>;
|
|
10
11
|
export default TabNavItem;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
interface Props {
|
|
2
2
|
columns: string;
|
|
3
3
|
hover?: boolean;
|
|
4
|
-
children?: import(
|
|
5
|
-
}
|
|
4
|
+
children?: import('svelte').Snippet;
|
|
5
|
+
}
|
|
6
|
+
declare const Table: import("svelte").Component<Props, {}, "">;
|
|
6
7
|
type Table = ReturnType<typeof Table>;
|
|
7
8
|
export default Table;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
|
-
|
|
2
|
+
interface Props {
|
|
3
3
|
head?: boolean;
|
|
4
4
|
children: Snippet;
|
|
5
|
-
}
|
|
5
|
+
}
|
|
6
|
+
declare const TableRow: import("svelte").Component<Props, {}, "">;
|
|
6
7
|
type TableRow = ReturnType<typeof TableRow>;
|
|
7
8
|
export default TableRow;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
color?: "default" | "accent" | "green" | "red" | "blue" | "orange";
|
|
1
|
+
interface Props {
|
|
2
|
+
as?: 'button' | 'a' | 'span';
|
|
3
|
+
size?: 'x-small' | 'small' | 'medium' | 'large';
|
|
4
|
+
color?: 'default' | 'accent' | 'green' | 'red' | 'blue' | 'orange';
|
|
6
5
|
interactive?: boolean;
|
|
7
6
|
outline?: boolean;
|
|
8
7
|
fill?: boolean;
|
|
9
8
|
bg?: string | undefined;
|
|
10
9
|
fg?: string | undefined;
|
|
11
|
-
start?: import(
|
|
12
|
-
end?: import(
|
|
13
|
-
children?: import(
|
|
14
|
-
|
|
10
|
+
start?: import('svelte').Snippet;
|
|
11
|
+
end?: import('svelte').Snippet;
|
|
12
|
+
children?: import('svelte').Snippet;
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}
|
|
15
|
+
declare const Tag: import("svelte").Component<Props, {}, "">;
|
|
15
16
|
type Tag = ReturnType<typeof Tag>;
|
|
16
17
|
export default Tag;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
[key: string]: any;
|
|
1
|
+
interface Props {
|
|
3
2
|
small?: boolean;
|
|
4
3
|
light?: boolean;
|
|
5
4
|
normal?: boolean;
|
|
6
5
|
bold?: boolean;
|
|
7
|
-
children?: import(
|
|
8
|
-
|
|
6
|
+
children?: import('svelte').Snippet;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}
|
|
9
|
+
declare const Text: import("svelte").Component<Props, {}, "">;
|
|
9
10
|
type Text = ReturnType<typeof Text>;
|
|
10
11
|
export default Text;
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
input?: HTMLInputElement;
|
|
12
12
|
start?: import('svelte').Snippet;
|
|
13
13
|
end?: import('svelte').Snippet;
|
|
14
|
+
select?: boolean;
|
|
15
|
+
selectInput?: HTMLSelectElement;
|
|
14
16
|
[key: string]: any;
|
|
15
17
|
}
|
|
16
18
|
|
|
@@ -22,6 +24,8 @@
|
|
|
22
24
|
input = $bindable({} as HTMLInputElement),
|
|
23
25
|
start,
|
|
24
26
|
end,
|
|
27
|
+
select = false,
|
|
28
|
+
selectInput = $bindable({} as HTMLSelectElement),
|
|
25
29
|
...rest
|
|
26
30
|
}: Props = $props();
|
|
27
31
|
</script>
|
|
@@ -33,22 +37,43 @@
|
|
|
33
37
|
</span>
|
|
34
38
|
{/if}
|
|
35
39
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
40
|
+
{#if select}
|
|
41
|
+
<select
|
|
42
|
+
{...rest}
|
|
43
|
+
bind:value
|
|
44
|
+
bind:this={selectInput}
|
|
45
|
+
onkeyup={bubble('keyup')}
|
|
46
|
+
onkeydown={bubble('keydown')}
|
|
47
|
+
onkeypress={bubble('keypress')}
|
|
48
|
+
onfocus={bubble('focus')}
|
|
49
|
+
onblur={bubble('blur')}
|
|
50
|
+
onclick={bubble('click')}
|
|
51
|
+
onmouseover={bubble('mouseover')}
|
|
52
|
+
onmouseenter={bubble('mouseenter')}
|
|
53
|
+
onmouseleave={bubble('mouseleave')}
|
|
54
|
+
onchange={bubble('change')}
|
|
55
|
+
oninput={bubble('input')}
|
|
56
|
+
>
|
|
57
|
+
{@render rest?.children()}
|
|
58
|
+
</select>
|
|
59
|
+
{:else}
|
|
60
|
+
<input
|
|
61
|
+
{...rest}
|
|
62
|
+
bind:value
|
|
63
|
+
bind:this={input}
|
|
64
|
+
onkeyup={bubble('keyup')}
|
|
65
|
+
onkeydown={bubble('keydown')}
|
|
66
|
+
onkeypress={bubble('keypress')}
|
|
67
|
+
onfocus={bubble('focus')}
|
|
68
|
+
onblur={bubble('blur')}
|
|
69
|
+
onclick={bubble('click')}
|
|
70
|
+
onmouseover={bubble('mouseover')}
|
|
71
|
+
onmouseenter={bubble('mouseenter')}
|
|
72
|
+
onmouseleave={bubble('mouseleave')}
|
|
73
|
+
onchange={bubble('change')}
|
|
74
|
+
oninput={bubble('input')}
|
|
75
|
+
/>
|
|
76
|
+
{/if}
|
|
52
77
|
|
|
53
78
|
{#if end}
|
|
54
79
|
<span class="slot end">
|
|
@@ -90,7 +115,8 @@
|
|
|
90
115
|
width: 100%;
|
|
91
116
|
}
|
|
92
117
|
|
|
93
|
-
input
|
|
118
|
+
input,
|
|
119
|
+
select {
|
|
94
120
|
flex: 1;
|
|
95
121
|
width: 100%;
|
|
96
122
|
border: none;
|
|
@@ -100,11 +126,17 @@ input {
|
|
|
100
126
|
padding: 0;
|
|
101
127
|
margin: 0;
|
|
102
128
|
color: inherit;
|
|
129
|
+
height: 100%;
|
|
103
130
|
}
|
|
104
|
-
input:focus
|
|
131
|
+
input:focus,
|
|
132
|
+
select:focus {
|
|
105
133
|
outline: none;
|
|
106
134
|
}
|
|
107
135
|
|
|
136
|
+
select {
|
|
137
|
+
min-width: 180px;
|
|
138
|
+
}
|
|
139
|
+
|
|
108
140
|
.input-wrap.size-x-small {
|
|
109
141
|
padding: 0 15px;
|
|
110
142
|
height: 20px;
|
|
@@ -7,6 +7,8 @@ declare const TextInput: import("svelte").Component<{
|
|
|
7
7
|
input?: HTMLInputElement;
|
|
8
8
|
start?: import("svelte").Snippet;
|
|
9
9
|
end?: import("svelte").Snippet;
|
|
10
|
-
|
|
10
|
+
select?: boolean;
|
|
11
|
+
selectInput?: HTMLSelectElement;
|
|
12
|
+
}, {}, "value" | "input" | "selectInput">;
|
|
11
13
|
type TextInput = ReturnType<typeof TextInput>;
|
|
12
14
|
export default TextInput;
|
|
@@ -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,6 +1,7 @@
|
|
|
1
1
|
import type { Toast } from './toast.ts';
|
|
2
|
-
|
|
2
|
+
interface Props {
|
|
3
3
|
toast: Toast;
|
|
4
|
-
}
|
|
4
|
+
}
|
|
5
|
+
declare const ToastIcon: import("svelte").Component<Props, {}, "">;
|
|
5
6
|
type ToastIcon = ReturnType<typeof ToastIcon>;
|
|
6
7
|
export default ToastIcon;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Toast } from './toast.ts';
|
|
2
|
-
|
|
2
|
+
interface Props {
|
|
3
3
|
toast: Toast;
|
|
4
|
-
}
|
|
4
|
+
}
|
|
5
|
+
declare const ToastMessage: import("svelte").Component<Props, {}, "">;
|
|
5
6
|
type ToastMessage = ReturnType<typeof ToastMessage>;
|
|
6
7
|
export default ToastMessage;
|
|
@@ -19,8 +19,8 @@ type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
|
19
19
|
declare const Tooltip: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
20
20
|
[x: string]: any;
|
|
21
21
|
text?: string | undefined;
|
|
22
|
-
position?:
|
|
23
|
-
color?:
|
|
22
|
+
position?: "top" | "bottom" | "left" | "right" | undefined;
|
|
23
|
+
color?: "black" | "accent" | "soft" | "danger" | undefined;
|
|
24
24
|
show?: boolean | undefined;
|
|
25
25
|
maxWidth?: number | undefined;
|
|
26
26
|
disabled?: boolean | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
interface Props {
|
|
2
2
|
as?: string;
|
|
3
|
-
children?: import(
|
|
4
|
-
}
|
|
3
|
+
children?: import('svelte').Snippet;
|
|
4
|
+
}
|
|
5
|
+
declare const Container: import("svelte").Component<Props, {}, "">;
|
|
5
6
|
type Container = ReturnType<typeof Container>;
|
|
6
7
|
export default Container;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
children?: import(
|
|
3
|
-
}
|
|
1
|
+
interface Props {
|
|
2
|
+
children?: import('svelte').Snippet;
|
|
3
|
+
}
|
|
4
|
+
declare const Content: import("svelte").Component<Props, {}, "">;
|
|
4
5
|
type Content = ReturnType<typeof Content>;
|
|
5
6
|
export default Content;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
[key: string]: any;
|
|
1
|
+
interface Props {
|
|
3
2
|
src: string;
|
|
4
3
|
alt: string;
|
|
5
4
|
width?: undefined | number;
|
|
6
5
|
modalImageProps?: any;
|
|
7
|
-
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
declare const DocsImage: import("svelte").Component<Props, {}, "">;
|
|
8
9
|
type DocsImage = ReturnType<typeof DocsImage>;
|
|
9
10
|
export default DocsImage;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
nav?: import(
|
|
3
|
-
content?: import(
|
|
4
|
-
}
|
|
1
|
+
interface Props {
|
|
2
|
+
nav?: import('svelte').Snippet;
|
|
3
|
+
content?: import('svelte').Snippet;
|
|
4
|
+
}
|
|
5
|
+
declare const Docs: import("svelte").Component<Props, {}, "">;
|
|
5
6
|
type Docs = ReturnType<typeof Docs>;
|
|
6
7
|
export default Docs;
|
|
@@ -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 {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
children?: import(
|
|
3
|
-
}
|
|
1
|
+
interface Props {
|
|
2
|
+
children?: import('svelte').Snippet;
|
|
3
|
+
}
|
|
4
|
+
declare const Nav: import("svelte").Component<Props, {}, "">;
|
|
4
5
|
type Nav = ReturnType<typeof Nav>;
|
|
5
6
|
export default Nav;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
interface Props {
|
|
2
2
|
name: string;
|
|
3
|
-
start?: import(
|
|
4
|
-
end?: import(
|
|
5
|
-
children?: import(
|
|
6
|
-
}
|
|
3
|
+
start?: import('svelte').Snippet;
|
|
4
|
+
end?: import('svelte').Snippet;
|
|
5
|
+
children?: import('svelte').Snippet;
|
|
6
|
+
}
|
|
7
|
+
declare const NavCategory: import("svelte").Component<Props, {}, "">;
|
|
7
8
|
type NavCategory = ReturnType<typeof NavCategory>;
|
|
8
9
|
export default NavCategory;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
interface Props {
|
|
2
2
|
href: string;
|
|
3
|
-
children?: import(
|
|
4
|
-
}
|
|
3
|
+
children?: import('svelte').Snippet;
|
|
4
|
+
}
|
|
5
|
+
declare const NavItem: import("svelte").Component<Props, {}, "">;
|
|
5
6
|
type NavItem = ReturnType<typeof NavItem>;
|
|
6
7
|
export default NavItem;
|
|
@@ -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 {
|