@ainsleydev/sveltekit-helper 0.1.2 → 0.1.4

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.
@@ -1,3 +1,7 @@
1
+ <script lang="ts">
2
+ const { ...restProps } = $props();
3
+ </script>
4
+
1
5
  <!--
2
6
  @component
3
7
 
@@ -12,7 +16,7 @@
12
16
  </Column>
13
17
  ```
14
18
  -->
15
- <div class="col" {...$$restProps}>
19
+ <div class="col" {...restProps}>
16
20
  <slot />
17
21
  </div>
18
22
 
@@ -1,15 +1,21 @@
1
- export default Column;
2
- type Column = SvelteComponent<$$__sveltets_2_PropsWithChildren<{
3
- [x: string]: any;
4
- }, {
5
- default: {};
6
- }>, {
7
- [evt: string]: CustomEvent<any>;
8
- }, {
9
- default: {};
10
- }> & {
11
- $$bindings?: string | undefined;
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
- }, {}, string>;
34
- type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
35
- default: any;
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.js"],"names":[],"mappings":";;;;;;;;;;;;AAyBA;;;;;;;;;;;GAWG;AACH;;;;;;;;eAAiI;sCArB3F,KAAK,EAAE,KAAK;;;;;6CALL,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,OAAO,OAAO,QAAQ;IAC3L,cAAc,OAAO,QAAQ,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAAG,OAAO,QAAQ,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAA;KAAE,GA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,GACzB,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GACnC,GAAG,GACH;IAAE,QAAQ,CAAC,EAAE,GAAG,CAAA;CAAE,GAClB,EAAE,CAAC,CAAC;AAId;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,MAAM;;;;;;UAAqF,CAAC;AAChF,KAAK,MAAM,GAAG,YAAY,CAAC,OAAO,MAAM,CAAC,CAAC;AAC5C,eAAe,MAAM,CAAC"}
@@ -1,25 +1,14 @@
1
+ <script lang="ts">
2
+ const { ...restProps } = $props();
3
+ </script>
4
+
1
5
  <!--
2
6
  @component
3
7
 
4
8
  Centre content such as rows & columns horizontally with predefined max-width.
5
9
  Uses CSS Grid to provide breakout and full-width layout options.
6
-
7
- @example
8
- ```svelte
9
- <Container>
10
- <Row></Row>
11
- </Container>
12
- ```
13
-
14
- @example
15
- ```svelte
16
- <!-- Custom max width via CSS variable -->
17
- <Container style="--container-max-width: 1400px">
18
- <Row></Row>
19
- </Container>
20
- ```
21
10
  -->
22
- <div class="container" {...$$restProps}>
11
+ <div class="container" {...restProps}>
23
12
  <slot />
24
13
  </div>
25
14
 
@@ -1,46 +1,5 @@
1
- export default Container;
2
- type Container = SvelteComponent<$$__sveltets_2_PropsWithChildren<{
3
- [x: string]: any;
4
- }, {
5
- default: {};
6
- }>, {
7
- [evt: string]: CustomEvent<any>;
8
- }, {
9
- default: {};
10
- }> & {
11
- $$bindings?: string | undefined;
12
- };
13
- /**
14
- * Centre content such as rows & columns horizontally with predefined max-width.
15
- * Uses CSS Grid to provide breakout and full-width layout options.
16
- *
17
- * @example
18
- * ```svelte
19
- * <Container>
20
- * <Row></Row>
21
- * </Container>
22
- * ```
23
- *
24
- * @example
25
- * ```svelte
26
- * <!-- Custom max width via CSS variable
27
- */
28
- declare const Container: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
29
- [x: string]: any;
30
- }, {
31
- default: {};
32
- }>, {
33
- [evt: string]: CustomEvent<any>;
34
- }, {
35
- default: {};
36
- }, {}, string>;
37
- type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
38
- default: any;
39
- } ? Props extends Record<string, never> ? any : {
40
- children?: any;
41
- } : {});
42
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> {
43
- new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
2
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
44
3
  $$bindings?: Bindings;
45
4
  } & Exports;
46
5
  (internal: unknown, props: Props & {
@@ -52,4 +11,22 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
52
11
  };
53
12
  z_$$bindings?: Bindings;
54
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
+ } : {});
19
+ /**
20
+ * Centre content such as rows & columns horizontally with predefined max-width.
21
+ * Uses CSS Grid to provide breakout and full-width layout options.
22
+ */
23
+ declare const Container: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<Record<string, any>, {
24
+ default: {};
25
+ }>, {
26
+ [evt: string]: CustomEvent<any>;
27
+ }, {
28
+ default: {};
29
+ }, {}, "">;
30
+ type Container = InstanceType<typeof Container>;
31
+ export default Container;
55
32
  //# sourceMappingURL=Container.svelte.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Container.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/Container.svelte.js"],"names":[],"mappings":";;;;;;;;;;;;AA8BA;;;;;;;;;;;;;;GAcG;AACH;;;;;;;;eAAoI;sCAxB9F,KAAK,EAAE,KAAK;;;;;6CALL,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,MA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,CAAC;QAAC,OAAO,CAAC,EAAE,KAAK,CAAA;KAAC,GAAG,OAAO,GAAG;QAAE,IAAI,CAAC,EAAE,GAAG,CAAC;QAAC,GAAG,CAAC,EAAE,GAAG,CAAA;KAAE,CAAC;IAC9G,YAAY,CAAC,EAAE,QAAQ,CAAC;CAC3B;AACD,KAAK,gCAAgC,CAAC,KAAK,EAAE,KAAK,IAAI,KAAK,GACvD,CAAC,KAAK,SAAS;IAAE,OAAO,EAAE,GAAG,CAAA;CAAE,GACzB,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GACnC,GAAG,GACH;IAAE,QAAQ,CAAC,EAAE,GAAG,CAAA;CAAE,GAClB,EAAE,CAAC,CAAC;AAId;;;GAGG;AACH,QAAA,MAAM,SAAS;;;;;;UAAqF,CAAC;AACnF,KAAK,SAAS,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC;AAClD,eAAe,SAAS,CAAC"}
@@ -5,7 +5,7 @@ export type RowProps = {
5
5
  </script>
6
6
 
7
7
  <script lang="ts">
8
- const { noGaps = 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} {...$$restProps}>
30
+ <div class="row" class:row--no-gaps={noGaps} {...restProps}>
31
31
  <slot />
32
32
  </div>
33
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ainsleydev/sveltekit-helper",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "SvelteKit utilities, components and helpers for ainsley.dev builds",
5
5
  "license": "MIT",
6
6
  "type": "module",