@hkdigital/lib-sveltekit 0.1.0 → 0.1.2
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/classes/svelte/audio/AudioScene.svelte.js +1 -1
- package/dist/classes/svelte/image/ImageLoader.svelte.js +1 -1
- package/dist/classes/svelte/image/ImageScene.svelte.js +1 -1
- package/dist/classes/svelte/network-loader/NetworkLoader.svelte.js +1 -1
- package/dist/components/area/HkArea.svelte +1 -1
- package/dist/components/area/HkArea.svelte.d.ts +14 -0
- package/dist/components/area/HkGridArea.svelte +1 -1
- package/dist/components/area/HkGridArea.svelte.d.ts +22 -0
- package/dist/components/boxes/game-box/GameBox.svelte +112 -0
- package/dist/components/boxes/game-box/GameBox.svelte.d.ts +28 -0
- package/dist/components/boxes/game-box/gamebox.util.d.ts +32 -0
- package/dist/components/boxes/game-box/gamebox.util.js +83 -0
- package/dist/components/boxes/index.d.ts +2 -0
- package/dist/components/boxes/index.js +2 -0
- package/dist/components/boxes/virtual-viewport/VirtualViewport.svelte +199 -0
- package/dist/components/boxes/virtual-viewport/VirtualViewport.svelte.d.ts +42 -0
- package/dist/components/buttons/button/Button.svelte +75 -0
- package/dist/components/buttons/button/Button.svelte.d.ts +40 -0
- package/dist/components/buttons/button-text/TextButton.svelte +21 -0
- package/dist/components/buttons/button-text/TextButton.svelte.d.ts +12 -0
- package/dist/components/buttons/index.d.ts +2 -1
- package/dist/components/buttons/index.js +2 -1
- package/dist/components/hkdev/blocks/TextBlock.svelte +47 -0
- package/dist/components/hkdev/blocks/TextBlock.svelte.d.ts +24 -0
- package/dist/components/hkdev/buttons/CheckButton.svelte +63 -0
- package/dist/components/hkdev/buttons/CheckButton.svelte.d.ts +34 -0
- package/dist/components/icon/HkIcon.svelte +1 -1
- package/dist/components/icon/HkIcon.svelte.d.ts +12 -0
- package/dist/components/icon/HkTabIcon.svelte +6 -2
- package/dist/components/icon/HkTabIcon.svelte.d.ts +21 -0
- package/dist/components/image/EnhancedImage.svelte__ +1 -1
- package/dist/components/image/ImageBox.svelte.d.ts +19 -0
- package/dist/components/image/ResponsiveImage.svelte +1 -1
- package/dist/components/image/ResponsiveImage.svelte.d.ts +16 -0
- package/dist/components/image/ResponsiveImage.svelte__ +1 -1
- package/dist/components/inputs/text-input/TestTextInput.svelte__ +2 -2
- package/dist/components/inputs/text-input/TextInput.svelte +1 -1
- package/dist/components/inputs/text-input/TextInput.svelte.d.ts +28 -0
- package/dist/components/inputs/text-input/TextInput.svelte___ +1 -1
- package/dist/components/layout/HkAppLayout.svelte.d.ts +11 -0
- package/dist/components/layout/HkGridLayers.svelte +1 -1
- package/dist/components/layout/HkGridLayers.svelte.d.ts +23 -0
- package/dist/components/panels/plain-panel/PlainPanel.svelte +1 -1
- package/dist/components/panels/plain-panel/PlainPanel.svelte.d.ts +12 -0
- package/dist/components/rows/panel-grid-row/PanelGridRow.svelte +1 -1
- package/dist/components/rows/panel-grid-row/PanelGridRow.svelte.d.ts +14 -0
- package/dist/components/rows/panel-row-2/PanelRow2.svelte +1 -1
- package/dist/components/rows/panel-row-2/PanelRow2.svelte.d.ts +14 -0
- package/dist/components/tab-bar/HkTabBar.svelte +1 -1
- package/dist/components/tab-bar/HkTabBar.svelte.d.ts +18 -0
- package/dist/components/tab-bar/HkTabBarSelector.svelte +1 -1
- package/dist/components/tab-bar/HkTabBarSelector.svelte.d.ts +19 -0
- package/dist/components/widgets/compare-left-right/CompareLeftRight.svelte.d.ts +10 -0
- package/dist/design-system/design-config.d.ts +156 -0
- package/dist/design-system/design-config.js +73 -0
- package/dist/design-system/tailwind-theme-extend.d.ts +23 -0
- package/dist/design-system/tailwind-theme-extend.js +151 -0
- package/dist/themes/hkdev/components/blocks/text-block.postcss +41 -0
- package/dist/themes/hkdev/components/buttons/button-text.postcss +34 -0
- package/dist/themes/hkdev/components/buttons/button.postcss +138 -0
- package/dist/themes/hkdev/components/buttons/button.postcss__ +40 -0
- package/dist/themes/hkdev/components/buttons/button.postcss___ +91 -0
- package/dist/themes/hkdev/components.postcss +8 -2
- package/dist/themes/hkdev/globals.postcss +5 -6
- package/dist/util/css/css-vars.d.ts +24 -0
- package/dist/util/css/css-vars.js +83 -0
- package/dist/util/css/index.d.ts +1 -0
- package/dist/util/css/index.js +1 -0
- package/dist/util/design-system/components/states.d.ts +15 -0
- package/dist/util/design-system/components/states.js +22 -0
- package/dist/util/design-system/css/clamp.d.ts +17 -0
- package/dist/util/design-system/css/clamp.js +66 -0
- package/dist/util/design-system/css/root-design-vars.d.ts +77 -0
- package/dist/util/design-system/css/root-design-vars.js +100 -0
- package/dist/util/design-system/index.d.ts +5 -0
- package/dist/util/design-system/index.js +5 -0
- package/dist/util/design-system/layout/scaling.d.ts +44 -0
- package/dist/util/design-system/layout/scaling.js +97 -0
- package/dist/util/design-system/tailwind.d.ts +176 -0
- package/dist/util/design-system/tailwind.js +289 -0
- package/dist/util/http/index.js +1 -1
- package/package.json +18 -18
- package/dist/components/buttons/plain-button/PlainButton.svelte +0 -37
- package/dist/components/buttons/plain-button/PlainButton.svelte.d.ts +0 -10
- package/dist/config/tailwind.extend.d.ts +0 -56
- package/dist/config/tailwind.extend.js +0 -64
- package/dist/themes/hkdev/components/buttons/plain-button.postcss +0 -73
@@ -0,0 +1,40 @@
|
|
1
|
+
export default Button;
|
2
|
+
type Button = {
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
4
|
+
$set?(props: Partial<{
|
5
|
+
[key: string]: any;
|
6
|
+
base?: string;
|
7
|
+
bg?: string;
|
8
|
+
classes?: string;
|
9
|
+
type?: string;
|
10
|
+
role?: "primary" | "secondary";
|
11
|
+
size?: "sm" | "md" | "lg";
|
12
|
+
variant?: string;
|
13
|
+
active?: boolean;
|
14
|
+
selected?: boolean;
|
15
|
+
loading?: boolean;
|
16
|
+
error?: boolean;
|
17
|
+
disabled?: boolean;
|
18
|
+
snippetLoading?: Snippet<[]>;
|
19
|
+
snippetError?: Snippet<[]>;
|
20
|
+
children: Snippet<[]>;
|
21
|
+
}>): void;
|
22
|
+
};
|
23
|
+
declare const Button: import("svelte").Component<{
|
24
|
+
[key: string]: any;
|
25
|
+
base?: string;
|
26
|
+
bg?: string;
|
27
|
+
classes?: string;
|
28
|
+
type?: string;
|
29
|
+
role?: "primary" | "secondary";
|
30
|
+
size?: "sm" | "md" | "lg";
|
31
|
+
variant?: string;
|
32
|
+
active?: boolean;
|
33
|
+
selected?: boolean;
|
34
|
+
loading?: boolean;
|
35
|
+
error?: boolean;
|
36
|
+
disabled?: boolean;
|
37
|
+
snippetLoading?: import("svelte").Snippet;
|
38
|
+
snippetError?: import("svelte").Snippet;
|
39
|
+
children: import("svelte").Snippet;
|
40
|
+
}, {}, "error" | "loading" | "active" | "selected" | "disabled">;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<script>
|
2
|
+
import Button from '../button/Button.svelte';
|
3
|
+
|
4
|
+
/**
|
5
|
+
* @type {{
|
6
|
+
* children: import('svelte').Snippet,
|
7
|
+
* [key: string]: any
|
8
|
+
* }}
|
9
|
+
*/
|
10
|
+
const {
|
11
|
+
// Snippets
|
12
|
+
children,
|
13
|
+
|
14
|
+
// Attributes
|
15
|
+
...attrs
|
16
|
+
} = $props();
|
17
|
+
</script>
|
18
|
+
|
19
|
+
<Button type="text" {...attrs}>
|
20
|
+
{@render children()}
|
21
|
+
</Button>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export default TextButton;
|
2
|
+
type TextButton = {
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
4
|
+
$set?(props: Partial<{
|
5
|
+
[key: string]: any;
|
6
|
+
children: Snippet<[]>;
|
7
|
+
}>): void;
|
8
|
+
};
|
9
|
+
declare const TextButton: import("svelte").Component<{
|
10
|
+
[key: string]: any;
|
11
|
+
children: import("svelte").Snippet;
|
12
|
+
}, {}, "">;
|
@@ -1 +1,2 @@
|
|
1
|
-
export { default as
|
1
|
+
export { default as Button } from "./button/Button.svelte";
|
2
|
+
export { default as TextButton } from "./button-text/TextButton.svelte";
|
@@ -1 +1,2 @@
|
|
1
|
-
export { default as
|
1
|
+
export { default as Button } from './button/Button.svelte';
|
2
|
+
export { default as TextButton } from './button-text/TextButton.svelte';
|
@@ -0,0 +1,47 @@
|
|
1
|
+
<script>
|
2
|
+
/**
|
3
|
+
* @type {{
|
4
|
+
* base?: string,
|
5
|
+
* bg?: string,
|
6
|
+
* classes?: string,
|
7
|
+
* title?: import('svelte').Snippet,
|
8
|
+
* content?: import('svelte').Snippet,
|
9
|
+
* footer?: import('svelte').Snippet
|
10
|
+
* } & { [attr: string]: * }}
|
11
|
+
*/
|
12
|
+
let {
|
13
|
+
// Style
|
14
|
+
base,
|
15
|
+
bg,
|
16
|
+
classes,
|
17
|
+
|
18
|
+
// Content
|
19
|
+
title,
|
20
|
+
content,
|
21
|
+
footer,
|
22
|
+
|
23
|
+
// Attributes
|
24
|
+
...attrs
|
25
|
+
} = $props();
|
26
|
+
</script>
|
27
|
+
|
28
|
+
<div data-title-text-button-block class="{base} {bg} {classes}" {...attrs}>
|
29
|
+
{#if title}
|
30
|
+
<h1 class="title-box h1">
|
31
|
+
{@render title()}
|
32
|
+
</h1>
|
33
|
+
{/if}
|
34
|
+
|
35
|
+
{#if content}
|
36
|
+
<div class="content-box">
|
37
|
+
{@render content()}
|
38
|
+
</div>
|
39
|
+
{/if}
|
40
|
+
|
41
|
+
{#if footer}
|
42
|
+
<div class="footer-box">
|
43
|
+
{@render footer()}
|
44
|
+
</div>
|
45
|
+
{/if}
|
46
|
+
</div>
|
47
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
export default TextBlock;
|
2
|
+
type TextBlock = {
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
4
|
+
$set?(props: Partial<{
|
5
|
+
base?: string;
|
6
|
+
bg?: string;
|
7
|
+
classes?: string;
|
8
|
+
title?: Snippet<[]>;
|
9
|
+
content?: Snippet<[]>;
|
10
|
+
footer?: Snippet<[]>;
|
11
|
+
} & {
|
12
|
+
[attr: string]: any;
|
13
|
+
}>): void;
|
14
|
+
};
|
15
|
+
declare const TextBlock: import("svelte").Component<{
|
16
|
+
base?: string;
|
17
|
+
bg?: string;
|
18
|
+
classes?: string;
|
19
|
+
title?: import("svelte").Snippet;
|
20
|
+
content?: import("svelte").Snippet;
|
21
|
+
footer?: import("svelte").Snippet;
|
22
|
+
} & {
|
23
|
+
[attr: string]: any;
|
24
|
+
}, {}, "">;
|
@@ -0,0 +1,63 @@
|
|
1
|
+
<script>
|
2
|
+
/**
|
3
|
+
*
|
4
|
+
* @type {{
|
5
|
+
* checked?: boolean,
|
6
|
+
* activeChild?: boolean,
|
7
|
+
* inactiveChild?: boolean,
|
8
|
+
* iconActiveBase?: string,
|
9
|
+
* classes?: string
|
10
|
+
* disabled?: boolean,
|
11
|
+
* title: string,
|
12
|
+
* iconInactiveBase?: string,
|
13
|
+
* inactiveClasses?: string,
|
14
|
+
* activeClasses: string,
|
15
|
+
* onclick?: () => void,
|
16
|
+
* onchange?: () => void,
|
17
|
+
* topic?: string,
|
18
|
+
* }}
|
19
|
+
*/
|
20
|
+
let {
|
21
|
+
classes,
|
22
|
+
checked = $bindable(false),
|
23
|
+
iconInactiveBase = 'pointer-events-none',
|
24
|
+
iconActiveBase = 'pointer-events-none',
|
25
|
+
disabled = false,
|
26
|
+
topic,
|
27
|
+
title,
|
28
|
+
onchange = () => {},
|
29
|
+
inactiveChild,
|
30
|
+
activeChild,
|
31
|
+
activeClasses,
|
32
|
+
inactiveClasses,
|
33
|
+
onclick = () => {}
|
34
|
+
} = $props();
|
35
|
+
|
36
|
+
|
37
|
+
</script>
|
38
|
+
|
39
|
+
<button
|
40
|
+
class="variant-filled btn {classes} {checked
|
41
|
+
? activeClasses
|
42
|
+
: inactiveClasses}"
|
43
|
+
>
|
44
|
+
{title}
|
45
|
+
{#if checked && activeChild}
|
46
|
+
<svg
|
47
|
+
width="10"
|
48
|
+
height="10"
|
49
|
+
viewBox="0 0 10 10"
|
50
|
+
fill="none"
|
51
|
+
xmlns="http://www.w3.org/2000/svg"
|
52
|
+
>
|
53
|
+
<path
|
54
|
+
d="M1 9L9 1M1 1L9 9"
|
55
|
+
stroke="white"
|
56
|
+
stroke-width="1.5"
|
57
|
+
stroke-linecap="round"
|
58
|
+
stroke-linejoin="round"
|
59
|
+
/>
|
60
|
+
</svg>
|
61
|
+
{/if}
|
62
|
+
</button>
|
63
|
+
|
@@ -0,0 +1,34 @@
|
|
1
|
+
export default CheckButton;
|
2
|
+
type CheckButton = {
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
4
|
+
$set?(props: Partial<{
|
5
|
+
checked?: boolean;
|
6
|
+
activeChild?: boolean;
|
7
|
+
inactiveChild?: boolean;
|
8
|
+
iconActiveBase?: string;
|
9
|
+
classes?: string;
|
10
|
+
disabled?: boolean;
|
11
|
+
title: string;
|
12
|
+
iconInactiveBase?: string;
|
13
|
+
inactiveClasses?: string;
|
14
|
+
activeClasses: string;
|
15
|
+
onclick?: () => void;
|
16
|
+
onchange?: () => void;
|
17
|
+
topic?: string;
|
18
|
+
}>): void;
|
19
|
+
};
|
20
|
+
declare const CheckButton: import("svelte").Component<{
|
21
|
+
checked?: boolean;
|
22
|
+
activeChild?: boolean;
|
23
|
+
inactiveChild?: boolean;
|
24
|
+
iconActiveBase?: string;
|
25
|
+
classes?: string;
|
26
|
+
disabled?: boolean;
|
27
|
+
title: string;
|
28
|
+
iconInactiveBase?: string;
|
29
|
+
inactiveClasses?: string;
|
30
|
+
activeClasses: string;
|
31
|
+
onclick?: () => void;
|
32
|
+
onchange?: () => void;
|
33
|
+
topic?: string;
|
34
|
+
}, {}, "checked">;
|
@@ -1,4 +1,16 @@
|
|
1
1
|
export default HkIcon;
|
2
|
+
type HkIcon = {
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
4
|
+
$set?(props: Partial<{
|
5
|
+
src: IconSource;
|
6
|
+
size?: string;
|
7
|
+
theme?: string;
|
8
|
+
base?: string;
|
9
|
+
classes?: string;
|
10
|
+
} & {
|
11
|
+
[attr: string]: any;
|
12
|
+
}>): void;
|
13
|
+
};
|
2
14
|
declare const HkIcon: import("svelte").Component<{
|
3
15
|
src: import("./typedef.js").IconSource;
|
4
16
|
size?: string;
|
@@ -36,7 +36,7 @@
|
|
36
36
|
* iconHeight?: string,
|
37
37
|
* labelClasses? : string,
|
38
38
|
* rect?: DOMRect,
|
39
|
-
* } & { [attr: string]:
|
39
|
+
* } & { [attr: string]: any }}
|
40
40
|
*
|
41
41
|
*
|
42
42
|
*/
|
@@ -74,7 +74,11 @@
|
|
74
74
|
</script>
|
75
75
|
|
76
76
|
{#snippet contents()}
|
77
|
-
<div
|
77
|
+
<div
|
78
|
+
data-hk--icon-box
|
79
|
+
class="flex aspect-square w-full justify-center"
|
80
|
+
bind:this={iconBoxElem}
|
81
|
+
>
|
78
82
|
<HkIcon {src} size="100%" theme={iconTheme} classes={iconClasses} />
|
79
83
|
</div>
|
80
84
|
|
@@ -1,4 +1,25 @@
|
|
1
1
|
export default HkTabIcon;
|
2
|
+
type HkTabIcon = {
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
4
|
+
$set?(props: Partial<{
|
5
|
+
src: IconSource;
|
6
|
+
iconTheme?: string;
|
7
|
+
label?: string;
|
8
|
+
route?: string;
|
9
|
+
active?: boolean;
|
10
|
+
base?: string;
|
11
|
+
bg?: string;
|
12
|
+
padding?: string;
|
13
|
+
margin?: string;
|
14
|
+
classes?: string;
|
15
|
+
iconClasses?: string;
|
16
|
+
iconHeight?: string;
|
17
|
+
labelClasses?: string;
|
18
|
+
rect?: DOMRect;
|
19
|
+
} & {
|
20
|
+
[attr: string]: any;
|
21
|
+
}>): void;
|
22
|
+
};
|
2
23
|
declare const HkTabIcon: import("svelte").Component<{
|
3
24
|
src: import("./typedef.js").IconSource;
|
4
25
|
iconTheme?: string;
|
@@ -29,7 +29,7 @@
|
|
29
29
|
* onload?: ( e: (Event|{ type: string, target: HTMLImageElement }) ) => void,
|
30
30
|
* onerror?: ( e: (Event|{ type: string, target: HTMLImageElement }) ) => void,
|
31
31
|
* loading?: string
|
32
|
-
* } & { [attr: string]:
|
32
|
+
* } & { [attr: string]: any }}
|
33
33
|
*/
|
34
34
|
let {
|
35
35
|
// Style
|
@@ -1,4 +1,23 @@
|
|
1
1
|
export default ImageBox;
|
2
|
+
type ImageBox = {
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
4
|
+
$set?(props: Partial<{
|
5
|
+
[attr: string]: any;
|
6
|
+
base?: string;
|
7
|
+
bg?: string;
|
8
|
+
classes?: string;
|
9
|
+
width?: string;
|
10
|
+
height?: string;
|
11
|
+
aspect?: string;
|
12
|
+
overflow?: string;
|
13
|
+
fit?: "fill" | "contain" | "cover";
|
14
|
+
position?: string;
|
15
|
+
imageMeta: ImageMeta | ImageMeta[];
|
16
|
+
imageLoader?: ImageLoader;
|
17
|
+
alt?: string;
|
18
|
+
onProgress?: (progress: LoadingProgress) => void;
|
19
|
+
}>): void;
|
20
|
+
};
|
2
21
|
declare const ImageBox: import("svelte").Component<{
|
3
22
|
[attr: string]: any;
|
4
23
|
base?: string;
|
@@ -1,5 +1,21 @@
|
|
1
1
|
export default ResponsiveImage;
|
2
2
|
export type ImageMeta = import("../../config/typedef.js").ImageMeta;
|
3
|
+
type ResponsiveImage = {
|
4
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
5
|
+
$set?(props: Partial<{
|
6
|
+
base?: string;
|
7
|
+
classes?: string;
|
8
|
+
boxBase?: string;
|
9
|
+
boxClasses?: string;
|
10
|
+
boxAttrs?: {
|
11
|
+
[attr: string]: any;
|
12
|
+
};
|
13
|
+
images: ImageMeta[];
|
14
|
+
alt?: string;
|
15
|
+
} & {
|
16
|
+
[attr: string]: any;
|
17
|
+
}>): void;
|
18
|
+
};
|
3
19
|
declare const ResponsiveImage: import("svelte").Component<{
|
4
20
|
base?: string;
|
5
21
|
classes?: string;
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* valid?: boolean,
|
18
18
|
* pristine?: boolean,
|
19
19
|
* validate?: (value: string) => string | undefined,
|
20
|
-
* } & { [attr: string]:
|
20
|
+
* } & { [attr: string]: any }}
|
21
21
|
*/
|
22
22
|
let {
|
23
23
|
base = '',
|
@@ -27,7 +27,7 @@
|
|
27
27
|
fieldClasses,
|
28
28
|
fieldError,
|
29
29
|
|
30
|
-
legendBase = 'ml-
|
30
|
+
legendBase = 'ml-16tp px-8tp',
|
31
31
|
legendClasses,
|
32
32
|
legendError,
|
33
33
|
|
@@ -1,4 +1,32 @@
|
|
1
1
|
export default TextInput;
|
2
|
+
type TextInput = {
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
4
|
+
$set?(props: Partial<{
|
5
|
+
base?: string;
|
6
|
+
borderShape?: string;
|
7
|
+
classes?: string;
|
8
|
+
inputBase?: string;
|
9
|
+
inputClasses?: string;
|
10
|
+
legendBase?: string;
|
11
|
+
legendClasses?: string;
|
12
|
+
iconClasses?: string;
|
13
|
+
value?: string;
|
14
|
+
type?: "number" | "url" | "text" | "email";
|
15
|
+
pattern?: string;
|
16
|
+
required?: boolean;
|
17
|
+
title?: string;
|
18
|
+
placeholder?: string;
|
19
|
+
isValid?: boolean;
|
20
|
+
isPristine?: boolean;
|
21
|
+
hasFocus?: boolean;
|
22
|
+
validate?: (value: string) => string;
|
23
|
+
iconRequired?: Snippet<[]>;
|
24
|
+
iconValid?: Snippet<[]>;
|
25
|
+
iconInvalid?: Snippet<[]>;
|
26
|
+
} & {
|
27
|
+
[attr: string]: any;
|
28
|
+
}>): void;
|
29
|
+
};
|
2
30
|
declare const TextInput: import("svelte").Component<{
|
3
31
|
base?: string;
|
4
32
|
borderShape?: string;
|
@@ -1,4 +1,8 @@
|
|
1
1
|
export default HkAppLayout;
|
2
|
+
type HkAppLayout = {
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
4
|
+
$set?(props: Partial<AppLayoutProps>): void;
|
5
|
+
};
|
2
6
|
declare const HkAppLayout: import("svelte").Component<{
|
3
7
|
bgPageSnippet?: import("svelte").Snippet | undefined;
|
4
8
|
bgSnippet?: import("svelte").Snippet | undefined;
|
@@ -6,3 +10,10 @@ declare const HkAppLayout: import("svelte").Component<{
|
|
6
10
|
bottomSnippet?: import("svelte").Snippet | undefined;
|
7
11
|
children: import("svelte").Snippet;
|
8
12
|
}, {}, "">;
|
13
|
+
type AppLayoutProps = {
|
14
|
+
bgPageSnippet?: import("svelte").Snippet | undefined;
|
15
|
+
bgSnippet?: import("svelte").Snippet | undefined;
|
16
|
+
topSnippet?: import("svelte").Snippet | undefined;
|
17
|
+
bottomSnippet?: import("svelte").Snippet | undefined;
|
18
|
+
children: import("svelte").Snippet;
|
19
|
+
};
|
@@ -1,4 +1,27 @@
|
|
1
1
|
export default HkGridLayers;
|
2
|
+
type HkGridLayers = {
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
4
|
+
$set?(props: Partial<{
|
5
|
+
base?: string;
|
6
|
+
bg?: string;
|
7
|
+
padding?: string;
|
8
|
+
margin?: string;
|
9
|
+
height?: string;
|
10
|
+
classes?: string;
|
11
|
+
style?: string;
|
12
|
+
boxBase?: string;
|
13
|
+
boxBg?: string;
|
14
|
+
boxPadding?: string;
|
15
|
+
boxMargin?: string;
|
16
|
+
boxClasses?: string;
|
17
|
+
boxAttrs?: {
|
18
|
+
[attr: string]: any;
|
19
|
+
};
|
20
|
+
children: Snippet<[]>;
|
21
|
+
} & {
|
22
|
+
[attr: string]: any;
|
23
|
+
}>): void;
|
24
|
+
};
|
2
25
|
declare const HkGridLayers: import("svelte").Component<{
|
3
26
|
base?: string;
|
4
27
|
bg?: string;
|
@@ -1,4 +1,16 @@
|
|
1
1
|
export default PlainPanel;
|
2
|
+
type PlainPanel = {
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
4
|
+
$set?(props: Partial<{
|
5
|
+
base?: string;
|
6
|
+
bg?: string;
|
7
|
+
width?: string;
|
8
|
+
classes?: string;
|
9
|
+
children?: Snippet<[]>;
|
10
|
+
} & {
|
11
|
+
[attr: string]: any;
|
12
|
+
}>): void;
|
13
|
+
};
|
2
14
|
declare const PlainPanel: import("svelte").Component<{
|
3
15
|
base?: string;
|
4
16
|
bg?: string;
|
@@ -1,4 +1,18 @@
|
|
1
1
|
export default PanelGridRow;
|
2
|
+
type PanelGridRow = {
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
4
|
+
$set?(props: Partial<{
|
5
|
+
base?: string;
|
6
|
+
bg?: string;
|
7
|
+
justify?: "center" | "start" | "end" | "between" | "around" | "evenly" | "stretch" | "normal";
|
8
|
+
justifyItems?: "center" | "start" | "end" | "stretch";
|
9
|
+
gap?: string;
|
10
|
+
classes?: string;
|
11
|
+
children?: Snippet<[]>;
|
12
|
+
} & {
|
13
|
+
[attr: string]: any;
|
14
|
+
}>): void;
|
15
|
+
};
|
2
16
|
declare const PanelGridRow: import("svelte").Component<{
|
3
17
|
base?: string;
|
4
18
|
bg?: string;
|
@@ -1,4 +1,18 @@
|
|
1
1
|
export default PanelRow2;
|
2
|
+
type PanelRow2 = {
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
4
|
+
$set?(props: Partial<{
|
5
|
+
base?: string;
|
6
|
+
bg?: string;
|
7
|
+
justify?: "center" | "start" | "end" | "between" | "around" | "evenly" | "stretch" | "normal";
|
8
|
+
justifyItems?: "center" | "start" | "end" | "stretch";
|
9
|
+
gap?: string;
|
10
|
+
classes?: string;
|
11
|
+
children?: Snippet<[]>;
|
12
|
+
} & {
|
13
|
+
[attr: string]: any;
|
14
|
+
}>): void;
|
15
|
+
};
|
2
16
|
declare const PanelRow2: import("svelte").Component<{
|
3
17
|
base?: string;
|
4
18
|
bg?: string;
|
@@ -1,4 +1,22 @@
|
|
1
1
|
export default HkTabBar;
|
2
|
+
type HkTabBar = {
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
4
|
+
$set?(props: Partial<{
|
5
|
+
cols?: number;
|
6
|
+
base?: string;
|
7
|
+
bg?: string;
|
8
|
+
padding?: string;
|
9
|
+
margin?: string;
|
10
|
+
classes?: string;
|
11
|
+
style?: string;
|
12
|
+
instanceKey?: string | Symbol;
|
13
|
+
children: Snippet<[]>;
|
14
|
+
onmount?: Function;
|
15
|
+
domElem?: HTMLElement;
|
16
|
+
} & {
|
17
|
+
[attr: string]: any;
|
18
|
+
}>): void;
|
19
|
+
};
|
2
20
|
declare const HkTabBar: import("svelte").Component<{
|
3
21
|
cols?: number;
|
4
22
|
base?: string;
|