sve-ui 0.0.9 → 0.1.1

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 (43) hide show
  1. package/LICENCE +21 -0
  2. package/README.md +91 -2
  3. package/dist/components/Box/Box.svelte +48 -0
  4. package/dist/components/Box/Box.svelte.d.ts +152 -15
  5. package/dist/components/Center/Center.svelte +15 -0
  6. package/dist/components/Center/Center.svelte.d.ts +25 -0
  7. package/dist/components/Circle/Circle.svelte +9 -0
  8. package/dist/components/Circle/Circle.svelte.d.ts +34 -0
  9. package/dist/components/CodeExample/CodeExample.svelte +43 -38
  10. package/dist/components/CodeExample/CodeExample.svelte.d.ts +11 -1
  11. package/dist/components/Flex/Flex.svelte +26 -0
  12. package/dist/components/Flex/Flex.svelte.d.ts +34 -0
  13. package/dist/components/Grid/Grid.svelte +16 -0
  14. package/dist/components/Grid/Grid.svelte.d.ts +44 -0
  15. package/dist/components/GridItem/GridItem.svelte +22 -0
  16. package/dist/components/GridItem/GridItem.svelte.d.ts +29 -0
  17. package/dist/components/Loaders/DotPulse.svelte +62 -0
  18. package/dist/components/Loaders/DotPulse.svelte.d.ts +40 -0
  19. package/dist/components/Loaders/DotSpinner.svelte +121 -0
  20. package/dist/components/Loaders/DotSpinner.svelte.d.ts +40 -0
  21. package/dist/components/Loaders/DotWave.svelte +67 -0
  22. package/dist/components/Loaders/DotWave.svelte.d.ts +40 -0
  23. package/dist/components/Spacer/Spacer.svelte +5 -0
  24. package/dist/components/Spacer/Spacer.svelte.d.ts +21 -0
  25. package/dist/components/Square/Square.svelte +17 -0
  26. package/dist/components/Square/Square.svelte.d.ts +34 -0
  27. package/dist/components/Text/Text.svelte +51 -0
  28. package/dist/components/Text/Text.svelte.d.ts +45 -0
  29. package/dist/index.d.ts +20 -2
  30. package/dist/index.js +8 -0
  31. package/dist/theme/breakpoints.d.ts +8 -0
  32. package/dist/theme/breakpoints.js +8 -0
  33. package/dist/theme/index.d.ts +183 -0
  34. package/dist/theme/index.js +19 -0
  35. package/dist/theme/radius.d.ts +10 -0
  36. package/dist/theme/radius.js +10 -0
  37. package/dist/theme/sizes.d.ts +60 -0
  38. package/dist/theme/sizes.js +33 -0
  39. package/dist/theme/spacing.d.ts +35 -0
  40. package/dist/theme/spacing.js +35 -0
  41. package/dist/theme/typography.d.ts +63 -0
  42. package/dist/theme/typography.js +63 -0
  43. package/package.json +1 -1
package/LICENCE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Rodrigo Abregu / Alcino
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,5 +1,94 @@
1
1
  # Sve-UI
2
+ ## _Best UI components library for Svelte_
2
3
 
3
- Sve-UI is a collection of reusable Svelte components that provide an easy and customizable way to build user interfaces for web applications [`sve-ui`](https://github.com/rodriabregu/sve-ui).
4
+ Sve-UI is a UI component library for Svelte that provides the best collection of components for building modern web applications and fast.
4
5
 
5
- #### to do list of components.
6
+ <br />
7
+
8
+ ---
9
+
10
+ <br />
11
+
12
+ ## Features
13
+
14
+ - Responsive components that work seamlessly across all devices and screen sizes
15
+ - Easy to use and highly customizable components
16
+ - Well-documented API and usage examples
17
+ - Regularly updated with new components and features
18
+
19
+ <br />
20
+
21
+ ---
22
+
23
+ <br />
24
+
25
+ ## Installation
26
+
27
+ > You can install Sve-UI using pnpm, npm or yarn.
28
+
29
+ ```sh
30
+ pnpm add sve-ui
31
+ npm install sve-ui
32
+ yarn add sve-ui
33
+ ```
34
+
35
+ To use:
36
+
37
+ ```sh
38
+ <script>
39
+ import { Button } from 'sve-ui';
40
+
41
+ function handleClick() {
42
+ alert('Button clicked!');
43
+ }
44
+ </script>
45
+
46
+ <Button onClick={handleClick}>Click me!</Button>
47
+ ```
48
+
49
+ ---
50
+
51
+ <br />
52
+
53
+ ## Showcase & docs
54
+
55
+ <br />
56
+
57
+
58
+ | Showcase | Link |
59
+ | ------ | ------ |
60
+ | Docs | [/docs][docs] |
61
+ | Github page | [/sve-ui][Gp] |
62
+ | GitHub issues | [/sve-ui/issues][Gpi] |
63
+ | Github PR | [/sve-ui/pulls][Gppr] |
64
+ | Npmjs | [/package/sve-ui][LSjs] |
65
+
66
+ <br />
67
+
68
+ ---
69
+
70
+ <br />
71
+
72
+ ## List of components
73
+
74
+ - Box, Center, Spacer, Flex, Grid, GridItem
75
+ - Button, Text
76
+ - CodeExample
77
+ - Square, Circle
78
+
79
+ <br />
80
+
81
+ ---
82
+
83
+ <br />
84
+
85
+ ## License
86
+
87
+ MIT
88
+
89
+
90
+ [Gp]: <https://github.com/rodriabregu/sve-ui>
91
+ [Gpi]: <https://github.com/rodriabregu/sve-ui/issues>
92
+ [Gppr]: <https://github.com/rodriabregu/sve-ui/pulls>
93
+ [LSjs]: <https://www.npmjs.com/package/sve-ui>
94
+ [docs]: <https://sveui.org/>
@@ -0,0 +1,48 @@
1
+ <script>export let as = "div";
2
+ export let p = 0;
3
+ export let padding = 0;
4
+ export let m = 0;
5
+ export let margin = 0;
6
+ export let w = "";
7
+ export let width = "";
8
+ export let h = "";
9
+ export let height = "";
10
+ export let bg = "transparent";
11
+ export let backgroundColor = "transparent";
12
+ export let color = "inherit";
13
+ export let border = "none";
14
+ export let br = "";
15
+ export let borderRadius = "";
16
+ export let d = "";
17
+ export let display = "";
18
+ export let fontSize = 1;
19
+ export let style = "";
20
+ export let textAlign = "";
21
+ export let alignItems = "";
22
+ export let justifyContent = "";
23
+ export let justifyItems = "";
24
+ </script>
25
+
26
+ <svelte:element
27
+ this={as}
28
+ style={`
29
+ padding: ${p || padding}rem;
30
+ margin: ${m || margin}rem;
31
+ width: ${w || width || 'auto'};
32
+ height: ${h || height || 'auto'};
33
+ background-color: ${bg || backgroundColor};
34
+ color: ${color};
35
+ border: ${border};
36
+ border-radius: ${br || borderRadius || 'none'};
37
+ display: ${d || display};
38
+ font-size: ${fontSize}rem;
39
+ text-align: ${textAlign};
40
+ align-items: ${alignItems};
41
+ justify-content: ${justifyContent};
42
+ justify-items: ${justifyItems};
43
+ ${style}
44
+ `}
45
+ {...$$restProps}
46
+ >
47
+ <slot />
48
+ </svelte:element>
@@ -1,23 +1,160 @@
1
- /** @typedef {typeof __propDef.props} BoxProps */
2
- /** @typedef {typeof __propDef.events} BoxEvents */
3
- /** @typedef {typeof __propDef.slots} BoxSlots */
4
- export default class Box extends SvelteComponentTyped<{
5
- [x: string]: never;
6
- }, {
7
- [evt: string]: CustomEvent<any>;
8
- }, {}> {
9
- }
10
- export type BoxProps = typeof __propDef.props;
11
- export type BoxEvents = typeof __propDef.events;
12
- export type BoxSlots = typeof __propDef.slots;
13
1
  import { SvelteComponentTyped } from "svelte";
14
2
  declare const __propDef: {
15
3
  props: {
16
- [x: string]: never;
4
+ /**
5
+ * @default 0
6
+ * @description The padding around the box.
7
+ * @type number | undefined
8
+ */
9
+ p?: number | undefined;
10
+ /**
11
+ * @default 0
12
+ * @description The padding around the box.
13
+ * @type number | undefined
14
+ */
15
+ padding?: number | undefined;
16
+ /**
17
+ * @default 0
18
+ * @description The margin around the box.
19
+ * @type number | undefined
20
+ */
21
+ m?: number | undefined;
22
+ /**
23
+ * @default 0
24
+ * @description The margin around the box.
25
+ * @type number | undefined
26
+ */
27
+ margin?: number | undefined;
28
+ /**
29
+ * @default undefined
30
+ * @description The width of the box.
31
+ * @type string | undefined
32
+ */
33
+ w?: string | undefined;
34
+ /**
35
+ * @default undefined
36
+ * @description The width of the box.
37
+ * @type string | undefined
38
+ */
39
+ width?: string | undefined;
40
+ /**
41
+ * @default undefined
42
+ * @description The height of the box.
43
+ * @type string | undefined
44
+ */
45
+ h?: string | undefined;
46
+ /**
47
+ * @default undefined
48
+ * @description The height of the box.
49
+ * @type string | undefined
50
+ */
51
+ height?: string | undefined;
52
+ /**
53
+ * @default undefined
54
+ * @description The background color of the box.
55
+ * @type string | undefined
56
+ */
57
+ bg?: string | undefined;
58
+ /**
59
+ * @default undefined
60
+ * @description The background color of the box.
61
+ * @type string | undefined
62
+ */
63
+ backgroundColor?: string | undefined;
64
+ /**
65
+ * @default 'white'
66
+ * @description The color of the text.
67
+ * @type string | undefined
68
+ */
69
+ color?: string | undefined;
70
+ /**
71
+ * @default undefined
72
+ * @description The border of the box.
73
+ * @type string | undefined
74
+ */
75
+ border?: string | undefined;
76
+ /**
77
+ * @default undefined
78
+ * @description The border radius of the box.
79
+ * @type string | undefined
80
+ */
81
+ br?: string | undefined;
82
+ /**
83
+ * @default undefined
84
+ * @description The border radius of the box.
85
+ * @type string | undefined
86
+ */
87
+ borderRadius?: string | undefined;
88
+ /**
89
+ * @default undefined
90
+ * @description The display of the box.
91
+ * @type string | undefined
92
+ */
93
+ d?: string | undefined;
94
+ /**
95
+ * @default undefined
96
+ * @description The display of the box.
97
+ * @type string | undefined
98
+ */
99
+ display?: string | undefined;
100
+
101
+ /**
102
+ * @default undefined
103
+ * @description The position of the text in the box.
104
+ * @type string | undefined
105
+ */
106
+ textAlign?: string | undefined;
107
+
108
+ /**
109
+ * @default undefined
110
+ * @description The align items of the box.
111
+ * @type string | undefined
112
+ */
113
+ alignItems?: string | undefined;
114
+
115
+ /**
116
+ * @default undefined
117
+ * @description The justify content of the box.
118
+ * @type string | undefined
119
+ */
120
+ justifyContent?: string | undefined;
121
+
122
+ /**
123
+ * @default undefined
124
+ * @description The justify items of the box.
125
+ * @type string | undefined
126
+ */
127
+ justifyItems?: string | undefined;
128
+
129
+ /**
130
+ * @default undefined
131
+ * @description The font size of the text.
132
+ * @type string | undefined
133
+ */
134
+ fontSize?: string | undefined;
135
+
136
+ /**
137
+ * @default undefined
138
+ * @description Style of the box.
139
+ * @type string | undefined
140
+ */
141
+ style?: string | undefined;
17
142
  };
18
143
  events: {
19
144
  [evt: string]: CustomEvent<any>;
20
145
  };
21
- slots: {};
146
+ slots: {
147
+ default: {};
148
+ };
22
149
  };
23
- export {};
150
+ export type BoxProps = typeof __propDef.props;
151
+ export type BoxEvents = typeof __propDef.events;
152
+ export type BoxSlots = typeof __propDef.slots;
153
+
154
+ /**
155
+ * A box component is used to create a container for other components. Is a wrapper for the HTML div element.
156
+ * @see Docs https://sveui.org/components/box
157
+ */
158
+ export default class Box extends SvelteComponentTyped<BoxProps, BoxEvents, BoxSlots> {
159
+ }
160
+ export { Box, BoxProps };
@@ -0,0 +1,15 @@
1
+ <script>import Box from "../Box/Box.svelte";
2
+ export let width = "100%";
3
+ export let height = "100%";
4
+ </script>
5
+
6
+ <Box
7
+ display={'flex'}
8
+ justifyContent={'center'}
9
+ alignItems={'center'}
10
+ {width}
11
+ {height}
12
+ {...$$restProps}
13
+ >
14
+ <slot />
15
+ </Box>
@@ -0,0 +1,25 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ import type { BoxProps } from "../Box/Box.svelte";
3
+ declare const __propDef: {
4
+ props: {
5
+ [x: string]: any;
6
+ width?: string | undefined;
7
+ height?: string | undefined;
8
+ } & BoxProps
9
+ events: {
10
+ [evt: string]: CustomEvent<any>;
11
+ };
12
+ slots: {
13
+ default: {};
14
+ };
15
+ };
16
+ export type CenterProps = typeof __propDef.props;
17
+ export type CenterEvents = typeof __propDef.events;
18
+ export type CenterSlots = typeof __propDef.slots;
19
+ /**
20
+ * A box component that can be used to center its children.
21
+ * @see Docs https://sveui.org/components/center
22
+ */
23
+ export default class Center extends SvelteComponentTyped<CenterProps, CenterEvents, CenterSlots> {
24
+ }
25
+ export { Center, CenterProps };
@@ -0,0 +1,9 @@
1
+ <script>
2
+ import Square from '../Square/Square.svelte';
3
+
4
+ export let size = '1rem';
5
+ </script>
6
+
7
+ <Square {size} borderRadius="100%" {...$$restProps}>
8
+ <slot />
9
+ </Square>
@@ -0,0 +1,34 @@
1
+ /** @typedef {typeof __propDef.props} CircleProps */
2
+ /** @typedef {typeof __propDef.events} CircleEvents */
3
+ /** @typedef {typeof __propDef.slots} CircleSlots */
4
+ /**
5
+ * A square flex component with full border radius apply.
6
+ * @see Docs https://sveui.org/components/circle
7
+ */
8
+ export default class Circle extends SvelteComponentTyped<{
9
+ [x: string]: any;
10
+ size?: string | undefined;
11
+ }, {
12
+ [evt: string]: CustomEvent<any>;
13
+ }, {
14
+ default: {};
15
+ }> {
16
+ }
17
+ export type CircleProps = typeof __propDef.props;
18
+ export type CircleEvents = typeof __propDef.events;
19
+ export type CircleSlots = typeof __propDef.slots;
20
+ import { SvelteComponentTyped } from "svelte";
21
+ import type { SquareProps } from "../Square/Square.svelte";
22
+ declare const __propDef: {
23
+ props: {
24
+ [x: string]: any;
25
+ size?: string | undefined;
26
+ } & SquareProps
27
+ events: {
28
+ [evt: string]: CustomEvent<any>;
29
+ };
30
+ slots: {
31
+ default: {};
32
+ };
33
+ };
34
+ export { Circle, CircleProps };
@@ -1,54 +1,59 @@
1
- <script>
2
- export let typeCodeLabel = 'Sve-UI';
3
-
4
- let copied = false;
5
- const copyToClipboard = async () => {
6
- try {
7
- const codeElement = document.querySelector('.code-box code');
8
- if (codeElement) {
9
- const text = codeElement.textContent;
10
- text && (await navigator.clipboard.writeText(text));
11
- copied = true;
12
- setTimeout(() => {
13
- copied = false;
14
- }, 1500);
15
- }
16
- } catch (err) {
17
- console.error('Failed to copy: ', err);
18
- }
19
- };
1
+ <script>export let typeCodeLabel = "Sve-UI";
2
+ export let basic = false;
3
+ let copied = false;
4
+ const copyToClipboard = async () => {
5
+ try {
6
+ const codeElement = document.querySelector(".code-box code");
7
+ if (codeElement) {
8
+ const text = codeElement.textContent;
9
+ text && await navigator.clipboard.writeText(text);
10
+ copied = true;
11
+ setTimeout(() => {
12
+ copied = false;
13
+ }, 1500);
14
+ }
15
+ } catch (err) {
16
+ console.error("Failed to copy: ", err);
17
+ }
18
+ };
20
19
  </script>
21
20
 
22
21
  <pre class="code-box">
23
- <article class="button-copy">
22
+ {#if basic}
23
+ <code>
24
+ <slot />
25
+ </code>
26
+ {:else}
27
+ <article class="button-copy">
24
28
  <span>{typeCodeLabel}</span>
25
29
  <button on:click={copyToClipboard}>
26
30
  {#if copied}
27
- <span>Copied</span>
28
- {:else}
29
- <svg
30
- stroke="currentColor"
31
- fill="none"
32
- stroke-width="2"
33
- viewBox="0 0 24 24"
34
- stroke-linecap="round"
35
- stroke-linejoin="round"
36
- class="h-4 w-4"
37
- height="1em"
38
- width="1em"
39
- xmlns="http://www.w3.org/2000/svg"
40
- ><path
41
- d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"
42
- /><rect x="8" y="2" width="8" height="4" rx="1" ry="1" /></svg
43
- >
31
+ <span>Copied</span>
32
+ {:else}
33
+ <svg
34
+ stroke="currentColor"
35
+ fill="none"
36
+ stroke-width="2"
37
+ viewBox="0 0 24 24"
38
+ stroke-linecap="round"
39
+ stroke-linejoin="round"
40
+ class="h-4 w-4"
41
+ height="1em"
42
+ width="1em"
43
+ xmlns="http://www.w3.org/2000/svg"
44
+ ><path
45
+ d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"
46
+ /><rect x="8" y="2" width="8" height="4" rx="1" ry="1" /></svg
47
+ >
44
48
  <span>Copy</span>
45
- {/if}
49
+ {/if}
46
50
  </button>
47
51
  </article>
48
52
 
49
53
  <code id="textCode" class={copied ? 'textCode' : ''}>
50
54
  <slot />
51
55
  </code>
56
+ {/if}
52
57
  </pre>
53
58
 
54
59
  <style>
@@ -9,9 +9,18 @@
9
9
  export default class CodeExample extends SvelteComponentTyped<{
10
10
  /**
11
11
  * The type code label text, show in the top of the code example component.
12
- * @default 'Sve-UI'
12
+ * @default 'Sve-UI'
13
+ * @type {string}
14
+ * @example <CodeExample typeCodeLabel="Svelte">
13
15
  */
14
16
  typeCodeLabel?: string | undefined;
17
+ /**
18
+ * If you want a more compact and simpler version, without the top copy button, you can use the basic option of the component with this property set to true.
19
+ * @default false
20
+ * @type {boolean}
21
+ * @example <CodeExample isBasic={true}>
22
+ */
23
+ basic?: boolean | undefined;
15
24
  }, {
16
25
  [evt: string]: CustomEvent<any>;
17
26
  }, {
@@ -25,6 +34,7 @@ import { SvelteComponentTyped } from "svelte";
25
34
  declare const __propDef: {
26
35
  props: {
27
36
  typeCodeLabel?: string | undefined;
37
+ basic?: boolean | undefined;
28
38
  };
29
39
  events: {
30
40
  [evt: string]: CustomEvent<any>;
@@ -0,0 +1,26 @@
1
+ <script>import Box from "../Box/Box.svelte";
2
+ export let dir = "row";
3
+ export let direction = "row";
4
+ export let justify = "flex-start";
5
+ export let align = "stretch";
6
+ export let wrap = "nowrap";
7
+ export let gap = 0;
8
+ export let d = "";
9
+ export let display = "";
10
+ export let style = "";
11
+ </script>
12
+
13
+ <Box
14
+ style={`
15
+ display: ${d || display || 'flex'};
16
+ flex-direction: ${dir || direction};
17
+ justify-content: ${justify};
18
+ align-items: ${align};
19
+ flex-wrap: ${wrap};
20
+ gap: ${gap}rem;
21
+ ${style}
22
+ `}
23
+ {...$$restProps}
24
+ >
25
+ <slot />
26
+ </Box>
@@ -0,0 +1,34 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ import type { BoxProps } from '../Box/Box.svelte';
3
+
4
+ declare const __propDef: {
5
+ props: {
6
+ [x: string]: any;
7
+ dir?: string | undefined;
8
+ direction?: string | undefined;
9
+ justify?: string | undefined;
10
+ align?: string | undefined;
11
+ wrap?: string | undefined;
12
+ gap?: number | undefined;
13
+ d?: string | undefined;
14
+ display?: string | undefined;
15
+ style?: string | undefined;
16
+ } & BoxProps;
17
+ events: {
18
+ [evt: string]: CustomEvent<any>;
19
+ };
20
+ slots: {
21
+ // eslint-disable-next-line @typescript-eslint/ban-types
22
+ default: {};
23
+ };
24
+ };
25
+ export type FlexProps = typeof __propDef.props;
26
+ export type FlexEvents = typeof __propDef.events;
27
+ export type FlexSlots = typeof __propDef.slots;
28
+ /**
29
+ * A flex box component that can be used to create layouts.
30
+ * @see Docs https://sveui.org/components/flex
31
+ */
32
+ export default class Flex extends SvelteComponentTyped<FlexProps, FlexEvents, FlexSlots> {
33
+ }
34
+ export { Flex, FlexProps };
@@ -0,0 +1,16 @@
1
+ <script>export let columns = 1;
2
+ export let gap = 1;
3
+ export let flow = "row";
4
+ </script>
5
+
6
+ <div
7
+ style="
8
+ display: grid;
9
+ grid-template-columns: repeat({columns}, 1fr);
10
+ grid-gap: {gap}rem;
11
+ grid-auto-flow: {flow};
12
+ "
13
+ {...$$restProps}
14
+ >
15
+ <slot />
16
+ </div>
@@ -0,0 +1,44 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ import type { BoxProps } from "../Box/Box.svelte";
3
+ declare const __propDef: {
4
+ props: {
5
+ [x: string]: any;
6
+ /**
7
+ * The number of columns in the grid.
8
+ * @default 1
9
+ * @type {number}
10
+ * @example <Grid columns={2}>
11
+ */
12
+ columns?: number | undefined;
13
+ /**
14
+ * The number of gap in the grid, expressed in rem.
15
+ * @default 1
16
+ * @type {number}
17
+ * @example <Grid gap={2}>
18
+ */
19
+ gap?: string | undefined;
20
+ /**
21
+ * The grid-auto-flow CSS property controls how the auto-placement algorithm works, specifying exactly how auto-placed items get flowed into the grid.
22
+ * @default 'row'
23
+ * @type {string}
24
+ * @example <Grid flow={'column'}>
25
+ */
26
+ flow?: string | undefined;
27
+ } & BoxProps
28
+ events: {
29
+ [evt: string]: CustomEvent<any>;
30
+ };
31
+ slots: {
32
+ default: {};
33
+ };
34
+ };
35
+ export type GridProps = typeof __propDef.props;
36
+ export type GridEvents = typeof __propDef.events;
37
+ export type GridSlots = typeof __propDef.slots;
38
+ /**
39
+ * A grid component that can be used to create layouts.
40
+ * @see Docs https://sveui.org/components/grid
41
+ */
42
+ export default class Grid extends SvelteComponentTyped<GridProps, GridEvents, GridSlots> {
43
+ }
44
+ export { Grid, GridProps };