@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.
Files changed (87) hide show
  1. package/dist/classes/svelte/audio/AudioScene.svelte.js +1 -1
  2. package/dist/classes/svelte/image/ImageLoader.svelte.js +1 -1
  3. package/dist/classes/svelte/image/ImageScene.svelte.js +1 -1
  4. package/dist/classes/svelte/network-loader/NetworkLoader.svelte.js +1 -1
  5. package/dist/components/area/HkArea.svelte +1 -1
  6. package/dist/components/area/HkArea.svelte.d.ts +14 -0
  7. package/dist/components/area/HkGridArea.svelte +1 -1
  8. package/dist/components/area/HkGridArea.svelte.d.ts +22 -0
  9. package/dist/components/boxes/game-box/GameBox.svelte +112 -0
  10. package/dist/components/boxes/game-box/GameBox.svelte.d.ts +28 -0
  11. package/dist/components/boxes/game-box/gamebox.util.d.ts +32 -0
  12. package/dist/components/boxes/game-box/gamebox.util.js +83 -0
  13. package/dist/components/boxes/index.d.ts +2 -0
  14. package/dist/components/boxes/index.js +2 -0
  15. package/dist/components/boxes/virtual-viewport/VirtualViewport.svelte +199 -0
  16. package/dist/components/boxes/virtual-viewport/VirtualViewport.svelte.d.ts +42 -0
  17. package/dist/components/buttons/button/Button.svelte +75 -0
  18. package/dist/components/buttons/button/Button.svelte.d.ts +40 -0
  19. package/dist/components/buttons/button-text/TextButton.svelte +21 -0
  20. package/dist/components/buttons/button-text/TextButton.svelte.d.ts +12 -0
  21. package/dist/components/buttons/index.d.ts +2 -1
  22. package/dist/components/buttons/index.js +2 -1
  23. package/dist/components/hkdev/blocks/TextBlock.svelte +47 -0
  24. package/dist/components/hkdev/blocks/TextBlock.svelte.d.ts +24 -0
  25. package/dist/components/hkdev/buttons/CheckButton.svelte +63 -0
  26. package/dist/components/hkdev/buttons/CheckButton.svelte.d.ts +34 -0
  27. package/dist/components/icon/HkIcon.svelte +1 -1
  28. package/dist/components/icon/HkIcon.svelte.d.ts +12 -0
  29. package/dist/components/icon/HkTabIcon.svelte +6 -2
  30. package/dist/components/icon/HkTabIcon.svelte.d.ts +21 -0
  31. package/dist/components/image/EnhancedImage.svelte__ +1 -1
  32. package/dist/components/image/ImageBox.svelte.d.ts +19 -0
  33. package/dist/components/image/ResponsiveImage.svelte +1 -1
  34. package/dist/components/image/ResponsiveImage.svelte.d.ts +16 -0
  35. package/dist/components/image/ResponsiveImage.svelte__ +1 -1
  36. package/dist/components/inputs/text-input/TestTextInput.svelte__ +2 -2
  37. package/dist/components/inputs/text-input/TextInput.svelte +1 -1
  38. package/dist/components/inputs/text-input/TextInput.svelte.d.ts +28 -0
  39. package/dist/components/inputs/text-input/TextInput.svelte___ +1 -1
  40. package/dist/components/layout/HkAppLayout.svelte.d.ts +11 -0
  41. package/dist/components/layout/HkGridLayers.svelte +1 -1
  42. package/dist/components/layout/HkGridLayers.svelte.d.ts +23 -0
  43. package/dist/components/panels/plain-panel/PlainPanel.svelte +1 -1
  44. package/dist/components/panels/plain-panel/PlainPanel.svelte.d.ts +12 -0
  45. package/dist/components/rows/panel-grid-row/PanelGridRow.svelte +1 -1
  46. package/dist/components/rows/panel-grid-row/PanelGridRow.svelte.d.ts +14 -0
  47. package/dist/components/rows/panel-row-2/PanelRow2.svelte +1 -1
  48. package/dist/components/rows/panel-row-2/PanelRow2.svelte.d.ts +14 -0
  49. package/dist/components/tab-bar/HkTabBar.svelte +1 -1
  50. package/dist/components/tab-bar/HkTabBar.svelte.d.ts +18 -0
  51. package/dist/components/tab-bar/HkTabBarSelector.svelte +1 -1
  52. package/dist/components/tab-bar/HkTabBarSelector.svelte.d.ts +19 -0
  53. package/dist/components/widgets/compare-left-right/CompareLeftRight.svelte.d.ts +10 -0
  54. package/dist/design-system/design-config.d.ts +156 -0
  55. package/dist/design-system/design-config.js +73 -0
  56. package/dist/design-system/tailwind-theme-extend.d.ts +23 -0
  57. package/dist/design-system/tailwind-theme-extend.js +151 -0
  58. package/dist/themes/hkdev/components/blocks/text-block.postcss +41 -0
  59. package/dist/themes/hkdev/components/buttons/button-text.postcss +34 -0
  60. package/dist/themes/hkdev/components/buttons/button.postcss +138 -0
  61. package/dist/themes/hkdev/components/buttons/button.postcss__ +40 -0
  62. package/dist/themes/hkdev/components/buttons/button.postcss___ +91 -0
  63. package/dist/themes/hkdev/components.postcss +8 -2
  64. package/dist/themes/hkdev/globals.postcss +5 -6
  65. package/dist/util/css/css-vars.d.ts +24 -0
  66. package/dist/util/css/css-vars.js +83 -0
  67. package/dist/util/css/index.d.ts +1 -0
  68. package/dist/util/css/index.js +1 -0
  69. package/dist/util/design-system/components/states.d.ts +15 -0
  70. package/dist/util/design-system/components/states.js +22 -0
  71. package/dist/util/design-system/css/clamp.d.ts +17 -0
  72. package/dist/util/design-system/css/clamp.js +66 -0
  73. package/dist/util/design-system/css/root-design-vars.d.ts +77 -0
  74. package/dist/util/design-system/css/root-design-vars.js +100 -0
  75. package/dist/util/design-system/index.d.ts +5 -0
  76. package/dist/util/design-system/index.js +5 -0
  77. package/dist/util/design-system/layout/scaling.d.ts +44 -0
  78. package/dist/util/design-system/layout/scaling.js +97 -0
  79. package/dist/util/design-system/tailwind.d.ts +176 -0
  80. package/dist/util/design-system/tailwind.js +289 -0
  81. package/dist/util/http/index.js +1 -1
  82. package/package.json +18 -18
  83. package/dist/components/buttons/plain-button/PlainButton.svelte +0 -37
  84. package/dist/components/buttons/plain-button/PlainButton.svelte.d.ts +0 -10
  85. package/dist/config/tailwind.extend.d.ts +0 -56
  86. package/dist/config/tailwind.extend.js +0 -64
  87. 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 PlainButton } from "./plain-button/PlainButton.svelte";
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 PlainButton } from './plain-button/PlainButton.svelte';
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">;
@@ -27,7 +27,7 @@
27
27
  * theme?: string,
28
28
  * base?: string,
29
29
  * classes?: string
30
- * } & { [attr: string]: * }}
30
+ * } & { [attr: string]: any }}
31
31
  */
32
32
  let {
33
33
  src,
@@ -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 data-hk--icon-box class="flex aspect-square w-full justify-center" bind:this={iconBoxElem}>
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;
@@ -12,7 +12,7 @@
12
12
  * boxAttrs?: { [attr: string]: * },
13
13
  * images: ImageMeta[],
14
14
  * alt?: string
15
- * } & { [attr: string]: * }}
15
+ * } & { [attr: string]: any }}
16
16
  */
17
17
  const {
18
18
  base,
@@ -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;
@@ -12,7 +12,7 @@
12
12
  * boxAttrs?: { [attr: string]: * },
13
13
  * images: ImageMeta[],
14
14
  * alt?: string
15
- * } & { [attr: string]: * }}
15
+ * } & { [attr: string]: any }}
16
16
  */
17
17
  const {
18
18
  base,
@@ -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-16p px-8p',
30
+ legendBase = 'ml-16tp px-8tp',
31
31
  legendClasses,
32
32
  legendError,
33
33
 
@@ -40,7 +40,7 @@
40
40
  * iconRequired?: import('svelte').Snippet,
41
41
  * iconValid?: import('svelte').Snippet,
42
42
  * iconInvalid?: import('svelte').Snippet
43
- * } & { [attr: string]: * }}
43
+ * } & { [attr: string]: any }}
44
44
  */
45
45
  let {
46
46
  value = $bindable(''),
@@ -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;
@@ -10,7 +10,7 @@
10
10
  * placeholder: string,
11
11
  * required: boolean,
12
12
  * snippetWarning?: import('svelte').Snippet,
13
- * } & { [attr: string]: * }}
13
+ * } & { [attr: string]: any }}
14
14
  */
15
15
  let {
16
16
  // Style
@@ -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
+ };
@@ -28,7 +28,7 @@
28
28
  * boxClasses?: string,
29
29
  * boxAttrs?: { [attr: string]: * },
30
30
  * children: import('svelte').Snippet
31
- * } & { [attr: string]: * }}
31
+ * } & { [attr: string]: any }}
32
32
  */
33
33
  const {
34
34
  // Style
@@ -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;
@@ -12,7 +12,7 @@
12
12
  * width?: string,
13
13
  * classes?: string
14
14
  * children?: import('svelte').Snippet,
15
- * } & { [attr: string]: * }}
15
+ * } & { [attr: string]: any }}
16
16
  */
17
17
  const {
18
18
  // Style
@@ -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;
@@ -13,7 +13,7 @@
13
13
  * gap?: string,
14
14
  * classes?: string,
15
15
  * children?: import('svelte').Snippet,
16
- * } & { [attr: string]: * }}
16
+ * } & { [attr: string]: any }}
17
17
  */
18
18
  const {
19
19
  // Style
@@ -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;
@@ -14,7 +14,7 @@
14
14
  * gap?: string,
15
15
  * classes?: string,
16
16
  * children?: import('svelte').Snippet,
17
- * } & { [attr: string]: * }}
17
+ * } & { [attr: string]: any }}
18
18
  */
19
19
  const {
20
20
  // Style
@@ -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;
@@ -23,7 +23,7 @@
23
23
  * children: import('svelte').Snippet,
24
24
  * onmount?: function,
25
25
  * domElem?: HTMLElement
26
- * } & { [attr: string]: * }}
26
+ * } & { [attr: string]: any }}
27
27
  */
28
28
  let {
29
29
  // Functional
@@ -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;
@@ -18,7 +18,7 @@
18
18
  * boxClasses?: string,
19
19
  * boxAttrs?: { [attr: string]: * },
20
20
  * instanceKey?: Symbol | string
21
- * } & { [attr: string]: * }}
21
+ * } & { [attr: string]: any }}
22
22
  */
23
23
  let {
24
24
  // Style