@ainsleydev/sveltekit-helper 0.1.2 → 0.1.3
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/Grid/Column.svelte +5 -1
- package/dist/components/Grid/Column.svelte.d.ts +22 -34
- package/dist/components/Grid/Column.svelte.d.ts.map +1 -1
- package/dist/components/Grid/Container.svelte +5 -1
- package/dist/components/Grid/Container.svelte.d.ts +22 -34
- package/dist/components/Grid/Container.svelte.d.ts.map +1 -1
- package/dist/components/Grid/Row.svelte +2 -2
- package/package.json +1 -1
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
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
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: Props & {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
11
|
+
};
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
13
|
+
}
|
|
14
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
15
|
+
default: any;
|
|
16
|
+
} ? Props extends Record<string, never> ? any : {
|
|
17
|
+
children?: any;
|
|
18
|
+
} : {});
|
|
13
19
|
/**
|
|
14
20
|
* Responsive column component.
|
|
15
21
|
* Provides base column structure with customisable gap.
|
|
@@ -22,31 +28,13 @@ type Column = SvelteComponent<$$__sveltets_2_PropsWithChildren<{
|
|
|
22
28
|
* </Column>
|
|
23
29
|
* ```
|
|
24
30
|
*/
|
|
25
|
-
declare const Column: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
26
|
-
[x: string]: any;
|
|
27
|
-
}, {
|
|
31
|
+
declare const Column: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<Record<string, any>, {
|
|
28
32
|
default: {};
|
|
29
33
|
}>, {
|
|
30
34
|
[evt: string]: CustomEvent<any>;
|
|
31
35
|
}, {
|
|
32
36
|
default: {};
|
|
33
|
-
}, {},
|
|
34
|
-
type
|
|
35
|
-
|
|
36
|
-
} ? Props extends Record<string, never> ? any : {
|
|
37
|
-
children?: any;
|
|
38
|
-
} : {});
|
|
39
|
-
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> {
|
|
40
|
-
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
41
|
-
$$bindings?: Bindings;
|
|
42
|
-
} & Exports;
|
|
43
|
-
(internal: unknown, props: Props & {
|
|
44
|
-
$$events?: Events;
|
|
45
|
-
$$slots?: Slots;
|
|
46
|
-
}): Exports & {
|
|
47
|
-
$set?: any;
|
|
48
|
-
$on?: any;
|
|
49
|
-
};
|
|
50
|
-
z_$$bindings?: Bindings;
|
|
51
|
-
}
|
|
37
|
+
}, {}, "">;
|
|
38
|
+
type Column = InstanceType<typeof Column>;
|
|
39
|
+
export default Column;
|
|
52
40
|
//# sourceMappingURL=Column.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Column.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/Column.svelte.
|
|
1
|
+
{"version":3,"file":"Column.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/Column.svelte.ts"],"names":[],"mappings":"A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
+
const { ...restProps } = $props();
|
|
3
|
+
</script>
|
|
4
|
+
|
|
1
5
|
<!--
|
|
2
6
|
@component
|
|
3
7
|
|
|
@@ -19,7 +23,7 @@
|
|
|
19
23
|
</Container>
|
|
20
24
|
```
|
|
21
25
|
-->
|
|
22
|
-
<div class="container" {
|
|
26
|
+
<div class="container" {...restProps}>
|
|
23
27
|
<slot />
|
|
24
28
|
</div>
|
|
25
29
|
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
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
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: Props & {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
11
|
+
};
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
13
|
+
}
|
|
14
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
15
|
+
default: any;
|
|
16
|
+
} ? Props extends Record<string, never> ? any : {
|
|
17
|
+
children?: any;
|
|
18
|
+
} : {});
|
|
13
19
|
/**
|
|
14
20
|
* Centre content such as rows & columns horizontally with predefined max-width.
|
|
15
21
|
* Uses CSS Grid to provide breakout and full-width layout options.
|
|
@@ -25,31 +31,13 @@ type Container = SvelteComponent<$$__sveltets_2_PropsWithChildren<{
|
|
|
25
31
|
* ```svelte
|
|
26
32
|
* <!-- Custom max width via CSS variable
|
|
27
33
|
*/
|
|
28
|
-
declare const Container: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
29
|
-
[x: string]: any;
|
|
30
|
-
}, {
|
|
34
|
+
declare const Container: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<Record<string, any>, {
|
|
31
35
|
default: {};
|
|
32
36
|
}>, {
|
|
33
37
|
[evt: string]: CustomEvent<any>;
|
|
34
38
|
}, {
|
|
35
39
|
default: {};
|
|
36
|
-
}, {},
|
|
37
|
-
type
|
|
38
|
-
|
|
39
|
-
} ? Props extends Record<string, never> ? any : {
|
|
40
|
-
children?: any;
|
|
41
|
-
} : {});
|
|
42
|
-
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> {
|
|
43
|
-
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
44
|
-
$$bindings?: Bindings;
|
|
45
|
-
} & Exports;
|
|
46
|
-
(internal: unknown, props: Props & {
|
|
47
|
-
$$events?: Events;
|
|
48
|
-
$$slots?: Slots;
|
|
49
|
-
}): Exports & {
|
|
50
|
-
$set?: any;
|
|
51
|
-
$on?: any;
|
|
52
|
-
};
|
|
53
|
-
z_$$bindings?: Bindings;
|
|
54
|
-
}
|
|
40
|
+
}, {}, "">;
|
|
41
|
+
type Container = InstanceType<typeof Container>;
|
|
42
|
+
export default Container;
|
|
55
43
|
//# sourceMappingURL=Container.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/Container.svelte.
|
|
1
|
+
{"version":3,"file":"Container.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/Container.svelte.ts"],"names":[],"mappings":"AAqBA,UAAU,kCAAkC,CAAC,KAAK,SAAS,MAAM,CAAC,M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ps = false }: RowProps = $props();
|
|
8
|
+
const { noGaps = false, ...restProps }: RowProps = $props();
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
11
|
<!--
|
|
@@ -27,7 +27,7 @@ const { noGaps = false }: RowProps = $props();
|
|
|
27
27
|
</Row>
|
|
28
28
|
```
|
|
29
29
|
-->
|
|
30
|
-
<div class="row" class:row--no-gaps={noGaps} {
|
|
30
|
+
<div class="row" class:row--no-gaps={noGaps} {...restProps}>
|
|
31
31
|
<slot />
|
|
32
32
|
</div>
|
|
33
33
|
|