@vitus-labs/coolgrid 1.2.2 → 1.2.3-alpha.56
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/LICENSE +1 -1
- package/README.md +186 -141
- package/lib/analysis/index.js.html +1 -1
- package/lib/analysis/vitus-labs-coolgrid.native.js.html +1 -1
- package/lib/index.d.ts +75 -94
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +358 -232
- package/lib/index.js.map +1 -1
- package/lib/vitus-labs-coolgrid.native.js +355 -227
- package/lib/vitus-labs-coolgrid.native.js.map +1 -1
- package/package.json +21 -21
- package/lib/types/Col/component.d.ts +0 -15
- package/lib/types/Col/component.d.ts.map +0 -1
- package/lib/types/Col/index.d.ts +0 -3
- package/lib/types/Col/index.d.ts.map +0 -1
- package/lib/types/Col/styled.d.ts +0 -3
- package/lib/types/Col/styled.d.ts.map +0 -1
- package/lib/types/Container/component.d.ts +0 -4
- package/lib/types/Container/component.d.ts.map +0 -1
- package/lib/types/Container/index.d.ts +0 -3
- package/lib/types/Container/index.d.ts.map +0 -1
- package/lib/types/Container/styled.d.ts +0 -3
- package/lib/types/Container/styled.d.ts.map +0 -1
- package/lib/types/Container/utils.d.ts +0 -5
- package/lib/types/Container/utils.d.ts.map +0 -1
- package/lib/types/Row/component.d.ts +0 -9
- package/lib/types/Row/component.d.ts.map +0 -1
- package/lib/types/Row/index.d.ts +0 -3
- package/lib/types/Row/index.d.ts.map +0 -1
- package/lib/types/Row/styled.d.ts +0 -3
- package/lib/types/Row/styled.d.ts.map +0 -1
- package/lib/types/constants.d.ts +0 -3
- package/lib/types/constants.d.ts.map +0 -1
- package/lib/types/context/ContainerContext.d.ts +0 -16
- package/lib/types/context/ContainerContext.d.ts.map +0 -1
- package/lib/types/context/RowContext.d.ts +0 -16
- package/lib/types/context/RowContext.d.ts.map +0 -1
- package/lib/types/context/index.d.ts +0 -4
- package/lib/types/context/index.d.ts.map +0 -1
- package/lib/types/index.d.ts +0 -7
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/theme.d.ts +0 -22
- package/lib/types/theme.d.ts.map +0 -1
- package/lib/types/types.d.ts +0 -52
- package/lib/types/types.d.ts.map +0 -1
- package/lib/types/useContext.d.ts +0 -12
- package/lib/types/useContext.d.ts.map +0 -1
- package/lib/types/utils.d.ts +0 -11
- package/lib/types/utils.d.ts.map +0 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,182 +1,227 @@
|
|
|
1
|
-
|
|
2
|
-
<a href="https://vitus-labs.com/docs/ui-system/coolgrid">
|
|
3
|
-
<img src="https://github.com/vitus-labs/ui-system/blob/master/packages/coolgrid/logo.png" alt="Coolgrid" height="150" />
|
|
4
|
-
</a>
|
|
5
|
-
</div>
|
|
1
|
+
# @vitus-labs/coolgrid
|
|
6
2
|
|
|
7
|
-
|
|
3
|
+
Responsive grid system for React and styled-components.
|
|
8
4
|
|
|
9
|
-
|
|
5
|
+
[](https://www.npmjs.com/package/@vitus-labs/coolgrid)
|
|
6
|
+
[](https://github.com/vitus-labs/ui-system/blob/main/LICENSE)
|
|
10
7
|
|
|
11
|
-
|
|
8
|
+
Bootstrap-inspired Container / Row / Col grid with context-cascading configuration. Define breakpoints, column count, gaps, and gutters at any level — children inherit automatically. Every value is responsive.
|
|
12
9
|
|
|
13
|
-
|
|
10
|
+
## Features
|
|
14
11
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
- **Familiar mental model** — Container, Row, Col just like Bootstrap
|
|
13
|
+
- **Context cascading** — set columns, gaps, and gutters at Container level, inherited by all Rows and Cols
|
|
14
|
+
- **Responsive values** — single value, mobile-first array, or breakpoint object on every prop
|
|
15
|
+
- **Custom breakpoints** — name and size them however you want
|
|
16
|
+
- **Custom column counts** — 12, 24, 5 — any number
|
|
17
|
+
- **Custom components** — swap Container, Row, or Col underlying elements
|
|
18
|
+
- **Default Bootstrap theme** — included and ready to use
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
## Installation
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
```bash
|
|
23
|
+
npm install @vitus-labs/coolgrid @vitus-labs/core @vitus-labs/unistyle styled-components
|
|
24
|
+
```
|
|
22
25
|
|
|
23
|
-
|
|
24
|
-
needs so far. They were not enough extensible. With Coolgrid
|
|
25
|
-
you can do basically whatever you want while writing less code
|
|
26
|
-
and have fewer DOM elements in your application.
|
|
26
|
+
## Quick Start
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
```tsx
|
|
29
|
+
import { Container, Row, Col, Provider, theme } from '@vitus-labs/coolgrid'
|
|
29
30
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
const App = () => (
|
|
32
|
+
<Provider theme={theme}>
|
|
33
|
+
<Container>
|
|
34
|
+
<Row>
|
|
35
|
+
<Col size={8}>Main content</Col>
|
|
36
|
+
<Col size={4}>Sidebar</Col>
|
|
37
|
+
</Row>
|
|
38
|
+
</Container>
|
|
39
|
+
</Provider>
|
|
40
|
+
)
|
|
41
|
+
```
|
|
35
42
|
|
|
36
|
-
|
|
37
|
-
free to define as many breakpoints as you like. And that's not
|
|
38
|
-
all. Feel free to name them the way you like. Do you prefer
|
|
39
|
-
Bootstrap like naming xs, sm, md, lg, and xl? Or do you rather
|
|
40
|
-
prefer more descriptive names like phone, tablet, desktop (or xsmall,
|
|
41
|
-
small, medium, large, xlarge)?
|
|
43
|
+
## Components
|
|
42
44
|
|
|
43
|
-
|
|
44
|
-
you can use any value. Just a number, you can use pixels,
|
|
45
|
-
percentages, whatever you like. You should just know that
|
|
46
|
-
number automatically converts to em units calculated from
|
|
47
|
-
rootSize defined in theme (and fallbacks to the value of 16).
|
|
48
|
-
The same applies to pixels.
|
|
45
|
+
### Container
|
|
49
46
|
|
|
50
|
-
|
|
51
|
-
breakpoints. There is just one more requirement. The keys defined
|
|
52
|
-
for Container must be the same as the names of breakpoints.
|
|
47
|
+
Outermost grid boundary. Sets max-width and provides configuration context to descendants.
|
|
53
48
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
```tsx
|
|
50
|
+
<Container
|
|
51
|
+
columns={12}
|
|
52
|
+
gap={16}
|
|
53
|
+
gutter={24}
|
|
54
|
+
padding={16}
|
|
55
|
+
>
|
|
56
|
+
<Row>...</Row>
|
|
57
|
+
</Container>
|
|
58
|
+
```
|
|
57
59
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
| Prop | Type | Description |
|
|
61
|
+
| ---- | ---- | ----------- |
|
|
62
|
+
| columns | `number` | Number of grid columns (default: 12) |
|
|
63
|
+
| gap | `number` | Space between columns |
|
|
64
|
+
| gutter | `number` | Outer gutter (negative margin offset on Row) |
|
|
65
|
+
| padding | `number` | Column inner padding |
|
|
66
|
+
| width | `value \| function` | Override container max-width |
|
|
67
|
+
| component | `ComponentType` | Custom root element |
|
|
68
|
+
| css | `ExtendCss` | Extend container styling |
|
|
69
|
+
| contentAlignX | `AlignX` | Horizontal alignment of columns |
|
|
62
70
|
|
|
63
|
-
|
|
64
|
-
the size of gaps for your grid. No gaps, normal gaps, whatever
|
|
65
|
-
your design needs.
|
|
71
|
+
All configuration props cascade to Row and Col through context.
|
|
66
72
|
|
|
67
|
-
|
|
73
|
+
### Row
|
|
68
74
|
|
|
69
|
-
|
|
75
|
+
Flex wrapper with column management. Inherits Container config and can override it.
|
|
70
76
|
|
|
71
|
-
|
|
77
|
+
```tsx
|
|
78
|
+
<Row
|
|
79
|
+
size={{ xs: 12, md: 6 }}
|
|
80
|
+
contentAlignX="center"
|
|
81
|
+
>
|
|
82
|
+
<Col>Column 1</Col>
|
|
83
|
+
<Col>Column 2</Col>
|
|
84
|
+
</Row>
|
|
85
|
+
```
|
|
72
86
|
|
|
73
|
-
|
|
74
|
-
# with yarn
|
|
75
|
-
yarn add @vitus-labs/coolgrid
|
|
87
|
+
Setting `size` on Row applies it to all Cols inside:
|
|
76
88
|
|
|
77
|
-
|
|
78
|
-
|
|
89
|
+
```tsx
|
|
90
|
+
// All columns are 6 of 12
|
|
91
|
+
<Row size={6}>
|
|
92
|
+
<Col>Half</Col>
|
|
93
|
+
<Col>Half</Col>
|
|
94
|
+
</Row>
|
|
79
95
|
```
|
|
80
96
|
|
|
81
|
-
|
|
97
|
+
| Prop | Type | Description |
|
|
98
|
+
| ---- | ---- | ----------- |
|
|
99
|
+
| size | `number` | Default column size for all Cols inside |
|
|
100
|
+
| component | `ComponentType` | Custom row element |
|
|
101
|
+
| css | `ExtendCss` | Extend row styling |
|
|
102
|
+
| contentAlignX | `AlignX` | Override horizontal alignment |
|
|
82
103
|
|
|
83
|
-
|
|
104
|
+
### Col
|
|
84
105
|
|
|
85
|
-
|
|
86
|
-
| ----------------- | ------- |
|
|
87
|
-
| react | >= 16.7 |
|
|
88
|
-
| @vitus-labs/core | >= 0.2 |
|
|
89
|
-
| styled-components | >= 4.0 |
|
|
106
|
+
Individual column. Width is calculated as a fraction of total columns.
|
|
90
107
|
|
|
91
|
-
|
|
108
|
+
```tsx
|
|
109
|
+
// Fixed size
|
|
110
|
+
<Col size={4}>1/3 width</Col>
|
|
92
111
|
|
|
93
|
-
|
|
112
|
+
// Responsive size
|
|
113
|
+
<Col size={{ xs: 12, sm: 6, lg: 4 }}>
|
|
114
|
+
Full on mobile, half on small, third on large
|
|
115
|
+
</Col>
|
|
94
116
|
|
|
95
|
-
|
|
117
|
+
// Hidden on mobile
|
|
118
|
+
<Col size={{ xs: 0, md: 6 }}>Hidden on xs</Col>
|
|
119
|
+
```
|
|
96
120
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
121
|
+
| Prop | Type | Description |
|
|
122
|
+
| ---- | ---- | ----------- |
|
|
123
|
+
| size | `number` | Column span (e.g. 4 of 12) |
|
|
124
|
+
| padding | `number` | Override column inner padding |
|
|
125
|
+
| component | `ComponentType` | Custom column element |
|
|
126
|
+
| css | `ExtendCss` | Extend column styling |
|
|
127
|
+
|
|
128
|
+
## Configuration
|
|
129
|
+
|
|
130
|
+
### Custom Breakpoints
|
|
131
|
+
|
|
132
|
+
```tsx
|
|
133
|
+
<Provider theme={{
|
|
134
|
+
rootSize: 16,
|
|
135
|
+
breakpoints: {
|
|
136
|
+
phone: 0,
|
|
137
|
+
tablet: 600,
|
|
138
|
+
desktop: 1024,
|
|
139
|
+
wide: 1440,
|
|
140
|
+
},
|
|
141
|
+
}}>
|
|
109
142
|
```
|
|
110
143
|
|
|
111
|
-
|
|
144
|
+
### Custom Column Count
|
|
145
|
+
|
|
146
|
+
```tsx
|
|
147
|
+
<Container columns={24}>
|
|
148
|
+
<Row>
|
|
149
|
+
<Col size={16}>Two thirds</Col>
|
|
150
|
+
<Col size={8}>One third</Col>
|
|
151
|
+
</Row>
|
|
152
|
+
</Container>
|
|
153
|
+
```
|
|
112
154
|
|
|
113
|
-
|
|
114
|
-
// you can import default bootstrap theme settings or create yours.
|
|
155
|
+
### Custom Container Widths
|
|
115
156
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
157
|
+
```tsx
|
|
158
|
+
<Provider theme={{
|
|
159
|
+
rootSize: 16,
|
|
160
|
+
breakpoints: { xs: 0, sm: 576, md: 768, lg: 992, xl: 1200 },
|
|
161
|
+
grid: {
|
|
120
162
|
columns: 12,
|
|
121
|
-
|
|
122
|
-
xs:
|
|
123
|
-
sm:
|
|
124
|
-
md:
|
|
125
|
-
lg:
|
|
126
|
-
xl:
|
|
163
|
+
container: {
|
|
164
|
+
xs: '100%',
|
|
165
|
+
sm: 540,
|
|
166
|
+
md: 720,
|
|
167
|
+
lg: 960,
|
|
168
|
+
xl: 1140,
|
|
127
169
|
},
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
xs: '100%',
|
|
131
|
-
sm: 540,
|
|
132
|
-
md: 720,
|
|
133
|
-
lg: 960,
|
|
134
|
-
xl: 1140
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
/* ...your theme */
|
|
138
|
-
}}
|
|
139
|
-
>
|
|
140
|
-
{/* ...your components */}
|
|
141
|
-
</ThemeProvider>
|
|
170
|
+
},
|
|
171
|
+
}}>
|
|
142
172
|
```
|
|
143
173
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
<Row>
|
|
153
|
-
<Col size={3}>Column 1</Col>
|
|
154
|
-
<Col size={{ xs: 12, sm: 6, md: 3 }}>Column 2</Col>
|
|
155
|
-
<Col size={{ xs: 9, md: 3 }}>Column 3</Col>
|
|
156
|
-
<Col size={3}>Column 4</Col>
|
|
157
|
-
</Row>
|
|
158
|
-
</Container>
|
|
159
|
-
)
|
|
174
|
+
### Context Cascading
|
|
175
|
+
|
|
176
|
+
Configuration flows from Container through Row to Col via React context:
|
|
177
|
+
|
|
178
|
+
```text
|
|
179
|
+
Container (columns: 12, gap: 16)
|
|
180
|
+
└─ Row (inherits columns, gap)
|
|
181
|
+
└─ Col (inherits columns, gap, calculates width)
|
|
160
182
|
```
|
|
161
183
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
</Row>
|
|
178
|
-
</Container>
|
|
179
|
-
)
|
|
184
|
+
Props set on a child override the inherited value for that level and below.
|
|
185
|
+
|
|
186
|
+
## Default Theme
|
|
187
|
+
|
|
188
|
+
The included `theme` export provides Bootstrap 4 defaults:
|
|
189
|
+
|
|
190
|
+
```tsx
|
|
191
|
+
{
|
|
192
|
+
rootSize: 16,
|
|
193
|
+
breakpoints: { xs: 0, sm: 576, md: 768, lg: 992, xl: 1200 },
|
|
194
|
+
grid: {
|
|
195
|
+
columns: 12,
|
|
196
|
+
container: { xs: '100%', sm: 540, md: 720, lg: 960, xl: 1140 },
|
|
197
|
+
},
|
|
198
|
+
}
|
|
180
199
|
```
|
|
181
200
|
|
|
182
|
-
|
|
201
|
+
## Responsive Values
|
|
202
|
+
|
|
203
|
+
All numeric props support three formats:
|
|
204
|
+
|
|
205
|
+
```tsx
|
|
206
|
+
// Single value
|
|
207
|
+
<Col size={6} />
|
|
208
|
+
|
|
209
|
+
// Array (mobile-first, by breakpoint position)
|
|
210
|
+
<Col size={[12, 6, 4]} />
|
|
211
|
+
|
|
212
|
+
// Object (explicit breakpoints)
|
|
213
|
+
<Col size={{ xs: 12, md: 6, lg: 4 }} />
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
## Peer Dependencies
|
|
217
|
+
|
|
218
|
+
| Package | Version |
|
|
219
|
+
| ------- | ------- |
|
|
220
|
+
| react | >= 19 |
|
|
221
|
+
| @vitus-labs/core | * |
|
|
222
|
+
| @vitus-labs/unistyle | * |
|
|
223
|
+
| styled-components | >= 6 |
|
|
224
|
+
|
|
225
|
+
## License
|
|
226
|
+
|
|
227
|
+
MIT
|
|
@@ -5386,7 +5386,7 @@ var drawChart = (function (exports) {
|
|
|
5386
5386
|
</script>
|
|
5387
5387
|
<script>
|
|
5388
5388
|
/*<!--*/
|
|
5389
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src","children":[{"uid":"
|
|
5389
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src","children":[{"uid":"d3ff3e47-1","name":"constants.ts"},{"name":"context","children":[{"uid":"d3ff3e47-3","name":"ContainerContext.ts"},{"uid":"d3ff3e47-5","name":"RowContext.ts"},{"uid":"d3ff3e47-7","name":"index.ts"}]},{"uid":"d3ff3e47-9","name":"useContext.tsx"},{"uid":"d3ff3e47-11","name":"utils.ts"},{"name":"Col","children":[{"uid":"d3ff3e47-13","name":"styled.ts"},{"uid":"d3ff3e47-15","name":"component.tsx"},{"uid":"d3ff3e47-17","name":"index.ts"}]},{"name":"Container","children":[{"uid":"d3ff3e47-19","name":"styled.ts"},{"uid":"d3ff3e47-21","name":"component.tsx"},{"uid":"d3ff3e47-23","name":"index.ts"}]},{"name":"Row","children":[{"uid":"d3ff3e47-25","name":"styled.ts"},{"uid":"d3ff3e47-27","name":"component.tsx"},{"uid":"d3ff3e47-29","name":"index.ts"}]},{"uid":"d3ff3e47-31","name":"theme.ts"},{"uid":"d3ff3e47-33","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"d3ff3e47-1":{"renderedLength":359,"gzipLength":261,"brotliLength":0,"metaUid":"d3ff3e47-0"},"d3ff3e47-3":{"renderedLength":295,"gzipLength":213,"brotliLength":0,"metaUid":"d3ff3e47-2"},"d3ff3e47-5":{"renderedLength":281,"gzipLength":216,"brotliLength":0,"metaUid":"d3ff3e47-4"},"d3ff3e47-7":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"d3ff3e47-6"},"d3ff3e47-9":{"renderedLength":569,"gzipLength":277,"brotliLength":0,"metaUid":"d3ff3e47-8"},"d3ff3e47-11":{"renderedLength":557,"gzipLength":309,"brotliLength":0,"metaUid":"d3ff3e47-10"},"d3ff3e47-13":{"renderedLength":2131,"gzipLength":995,"brotliLength":0,"metaUid":"d3ff3e47-12"},"d3ff3e47-15":{"renderedLength":1040,"gzipLength":591,"brotliLength":0,"metaUid":"d3ff3e47-14"},"d3ff3e47-17":{"renderedLength":71,"gzipLength":87,"brotliLength":0,"metaUid":"d3ff3e47-16"},"d3ff3e47-19":{"renderedLength":730,"gzipLength":432,"brotliLength":0,"metaUid":"d3ff3e47-18"},"d3ff3e47-21":{"renderedLength":1570,"gzipLength":748,"brotliLength":0,"metaUid":"d3ff3e47-20"},"d3ff3e47-23":{"renderedLength":83,"gzipLength":92,"brotliLength":0,"metaUid":"d3ff3e47-22"},"d3ff3e47-25":{"renderedLength":1175,"gzipLength":607,"brotliLength":0,"metaUid":"d3ff3e47-24"},"d3ff3e47-27":{"renderedLength":1551,"gzipLength":726,"brotliLength":0,"metaUid":"d3ff3e47-26"},"d3ff3e47-29":{"renderedLength":69,"gzipLength":85,"brotliLength":0,"metaUid":"d3ff3e47-28"},"d3ff3e47-31":{"renderedLength":420,"gzipLength":295,"brotliLength":0,"metaUid":"d3ff3e47-30"},"d3ff3e47-33":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"d3ff3e47-32"}},"nodeMetas":{"d3ff3e47-0":{"id":"/src/constants.ts","moduleParts":{"index.js":"d3ff3e47-1"},"imported":[],"importedBy":[{"uid":"d3ff3e47-14"},{"uid":"d3ff3e47-20"},{"uid":"d3ff3e47-26"},{"uid":"d3ff3e47-8"},{"uid":"d3ff3e47-10"}]},"d3ff3e47-2":{"id":"/src/context/ContainerContext.ts","moduleParts":{"index.js":"d3ff3e47-3"},"imported":[{"uid":"d3ff3e47-35"}],"importedBy":[{"uid":"d3ff3e47-20"},{"uid":"d3ff3e47-6"}]},"d3ff3e47-4":{"id":"/src/context/RowContext.ts","moduleParts":{"index.js":"d3ff3e47-5"},"imported":[{"uid":"d3ff3e47-35"}],"importedBy":[{"uid":"d3ff3e47-6"}]},"d3ff3e47-6":{"id":"/src/context/index.ts","moduleParts":{"index.js":"d3ff3e47-7"},"imported":[{"uid":"d3ff3e47-2"},{"uid":"d3ff3e47-4"}],"importedBy":[{"uid":"d3ff3e47-14"},{"uid":"d3ff3e47-26"}]},"d3ff3e47-8":{"id":"/src/useContext.tsx","moduleParts":{"index.js":"d3ff3e47-9"},"imported":[{"uid":"d3ff3e47-37"},{"uid":"d3ff3e47-34"},{"uid":"d3ff3e47-35"},{"uid":"d3ff3e47-0"}],"importedBy":[{"uid":"d3ff3e47-14"},{"uid":"d3ff3e47-20"},{"uid":"d3ff3e47-26"}]},"d3ff3e47-10":{"id":"/src/utils.ts","moduleParts":{"index.js":"d3ff3e47-11"},"imported":[{"uid":"d3ff3e47-37"},{"uid":"d3ff3e47-0"}],"importedBy":[{"uid":"d3ff3e47-14"},{"uid":"d3ff3e47-20"},{"uid":"d3ff3e47-26"},{"uid":"d3ff3e47-12"},{"uid":"d3ff3e47-24"}]},"d3ff3e47-12":{"id":"/src/Col/styled.ts","moduleParts":{"index.js":"d3ff3e47-13"},"imported":[{"uid":"d3ff3e47-37"},{"uid":"d3ff3e47-34"},{"uid":"d3ff3e47-10"}],"importedBy":[{"uid":"d3ff3e47-14"}]},"d3ff3e47-14":{"id":"/src/Col/component.tsx","moduleParts":{"index.js":"d3ff3e47-15"},"imported":[{"uid":"d3ff3e47-35"},{"uid":"d3ff3e47-0"},{"uid":"d3ff3e47-6"},{"uid":"d3ff3e47-8"},{"uid":"d3ff3e47-10"},{"uid":"d3ff3e47-12"},{"uid":"d3ff3e47-36"}],"importedBy":[{"uid":"d3ff3e47-16"}]},"d3ff3e47-16":{"id":"/src/Col/index.ts","moduleParts":{"index.js":"d3ff3e47-17"},"imported":[{"uid":"d3ff3e47-14"}],"importedBy":[{"uid":"d3ff3e47-32"}]},"d3ff3e47-18":{"id":"/src/Container/styled.ts","moduleParts":{"index.js":"d3ff3e47-19"},"imported":[{"uid":"d3ff3e47-37"},{"uid":"d3ff3e47-34"}],"importedBy":[{"uid":"d3ff3e47-20"}]},"d3ff3e47-20":{"id":"/src/Container/component.tsx","moduleParts":{"index.js":"d3ff3e47-21"},"imported":[{"uid":"d3ff3e47-35"},{"uid":"d3ff3e47-0"},{"uid":"d3ff3e47-2"},{"uid":"d3ff3e47-8"},{"uid":"d3ff3e47-10"},{"uid":"d3ff3e47-18"},{"uid":"d3ff3e47-36"}],"importedBy":[{"uid":"d3ff3e47-22"}]},"d3ff3e47-22":{"id":"/src/Container/index.ts","moduleParts":{"index.js":"d3ff3e47-23"},"imported":[{"uid":"d3ff3e47-20"}],"importedBy":[{"uid":"d3ff3e47-32"}]},"d3ff3e47-24":{"id":"/src/Row/styled.ts","moduleParts":{"index.js":"d3ff3e47-25"},"imported":[{"uid":"d3ff3e47-37"},{"uid":"d3ff3e47-34"},{"uid":"d3ff3e47-10"}],"importedBy":[{"uid":"d3ff3e47-26"}]},"d3ff3e47-26":{"id":"/src/Row/component.tsx","moduleParts":{"index.js":"d3ff3e47-27"},"imported":[{"uid":"d3ff3e47-35"},{"uid":"d3ff3e47-0"},{"uid":"d3ff3e47-6"},{"uid":"d3ff3e47-8"},{"uid":"d3ff3e47-10"},{"uid":"d3ff3e47-24"},{"uid":"d3ff3e47-36"}],"importedBy":[{"uid":"d3ff3e47-28"}]},"d3ff3e47-28":{"id":"/src/Row/index.ts","moduleParts":{"index.js":"d3ff3e47-29"},"imported":[{"uid":"d3ff3e47-26"}],"importedBy":[{"uid":"d3ff3e47-32"}]},"d3ff3e47-30":{"id":"/src/theme.ts","moduleParts":{"index.js":"d3ff3e47-31"},"imported":[],"importedBy":[{"uid":"d3ff3e47-32"}]},"d3ff3e47-32":{"id":"/src/index.ts","moduleParts":{"index.js":"d3ff3e47-33"},"imported":[{"uid":"d3ff3e47-34"},{"uid":"d3ff3e47-16"},{"uid":"d3ff3e47-22"},{"uid":"d3ff3e47-28"},{"uid":"d3ff3e47-30"}],"importedBy":[],"isEntry":true},"d3ff3e47-34":{"id":"@vitus-labs/unistyle","moduleParts":{},"imported":[],"importedBy":[{"uid":"d3ff3e47-32"},{"uid":"d3ff3e47-8"},{"uid":"d3ff3e47-12"},{"uid":"d3ff3e47-18"},{"uid":"d3ff3e47-24"}]},"d3ff3e47-35":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"d3ff3e47-14"},{"uid":"d3ff3e47-20"},{"uid":"d3ff3e47-26"},{"uid":"d3ff3e47-8"},{"uid":"d3ff3e47-2"},{"uid":"d3ff3e47-4"}]},"d3ff3e47-36":{"id":"react/jsx-runtime","moduleParts":{},"imported":[],"importedBy":[{"uid":"d3ff3e47-14"},{"uid":"d3ff3e47-20"},{"uid":"d3ff3e47-26"}]},"d3ff3e47-37":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"d3ff3e47-8"},{"uid":"d3ff3e47-10"},{"uid":"d3ff3e47-12"},{"uid":"d3ff3e47-18"},{"uid":"d3ff3e47-24"}]}},"env":{"rollup":"4.23.0"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
5390
5390
|
|
|
5391
5391
|
const run = () => {
|
|
5392
5392
|
const width = window.innerWidth;
|
|
@@ -5386,7 +5386,7 @@ var drawChart = (function (exports) {
|
|
|
5386
5386
|
</script>
|
|
5387
5387
|
<script>
|
|
5388
5388
|
/*<!--*/
|
|
5389
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-coolgrid.native.js","children":[{"name":"src","children":[{"uid":"
|
|
5389
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-coolgrid.native.js","children":[{"name":"src","children":[{"uid":"b094f6ad-1","name":"constants.ts"},{"name":"context","children":[{"uid":"b094f6ad-3","name":"ContainerContext.ts"},{"uid":"b094f6ad-5","name":"RowContext.ts"},{"uid":"b094f6ad-7","name":"index.ts"}]},{"uid":"b094f6ad-9","name":"useContext.tsx"},{"uid":"b094f6ad-11","name":"utils.ts"},{"name":"Col","children":[{"uid":"b094f6ad-13","name":"styled.ts"},{"uid":"b094f6ad-15","name":"component.tsx"},{"uid":"b094f6ad-17","name":"index.ts"}]},{"name":"Container","children":[{"uid":"b094f6ad-19","name":"styled.ts"},{"uid":"b094f6ad-21","name":"component.tsx"},{"uid":"b094f6ad-23","name":"index.ts"}]},{"name":"Row","children":[{"uid":"b094f6ad-25","name":"styled.ts"},{"uid":"b094f6ad-27","name":"component.tsx"},{"uid":"b094f6ad-29","name":"index.ts"}]},{"uid":"b094f6ad-31","name":"theme.ts"},{"uid":"b094f6ad-33","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"b094f6ad-1":{"renderedLength":359,"gzipLength":261,"brotliLength":0,"metaUid":"b094f6ad-0"},"b094f6ad-3":{"renderedLength":295,"gzipLength":213,"brotliLength":0,"metaUid":"b094f6ad-2"},"b094f6ad-5":{"renderedLength":281,"gzipLength":216,"brotliLength":0,"metaUid":"b094f6ad-4"},"b094f6ad-7":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"b094f6ad-6"},"b094f6ad-9":{"renderedLength":569,"gzipLength":277,"brotliLength":0,"metaUid":"b094f6ad-8"},"b094f6ad-11":{"renderedLength":557,"gzipLength":309,"brotliLength":0,"metaUid":"b094f6ad-10"},"b094f6ad-13":{"renderedLength":2085,"gzipLength":965,"brotliLength":0,"metaUid":"b094f6ad-12"},"b094f6ad-15":{"renderedLength":1040,"gzipLength":591,"brotliLength":0,"metaUid":"b094f6ad-14"},"b094f6ad-17":{"renderedLength":71,"gzipLength":87,"brotliLength":0,"metaUid":"b094f6ad-16"},"b094f6ad-19":{"renderedLength":697,"gzipLength":414,"brotliLength":0,"metaUid":"b094f6ad-18"},"b094f6ad-21":{"renderedLength":1570,"gzipLength":748,"brotliLength":0,"metaUid":"b094f6ad-20"},"b094f6ad-23":{"renderedLength":83,"gzipLength":92,"brotliLength":0,"metaUid":"b094f6ad-22"},"b094f6ad-25":{"renderedLength":1144,"gzipLength":591,"brotliLength":0,"metaUid":"b094f6ad-24"},"b094f6ad-27":{"renderedLength":1551,"gzipLength":726,"brotliLength":0,"metaUid":"b094f6ad-26"},"b094f6ad-29":{"renderedLength":69,"gzipLength":85,"brotliLength":0,"metaUid":"b094f6ad-28"},"b094f6ad-31":{"renderedLength":420,"gzipLength":295,"brotliLength":0,"metaUid":"b094f6ad-30"},"b094f6ad-33":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"b094f6ad-32"}},"nodeMetas":{"b094f6ad-0":{"id":"/src/constants.ts","moduleParts":{"vitus-labs-coolgrid.native.js":"b094f6ad-1"},"imported":[],"importedBy":[{"uid":"b094f6ad-14"},{"uid":"b094f6ad-20"},{"uid":"b094f6ad-26"},{"uid":"b094f6ad-8"},{"uid":"b094f6ad-10"}]},"b094f6ad-2":{"id":"/src/context/ContainerContext.ts","moduleParts":{"vitus-labs-coolgrid.native.js":"b094f6ad-3"},"imported":[{"uid":"b094f6ad-35"}],"importedBy":[{"uid":"b094f6ad-20"},{"uid":"b094f6ad-6"}]},"b094f6ad-4":{"id":"/src/context/RowContext.ts","moduleParts":{"vitus-labs-coolgrid.native.js":"b094f6ad-5"},"imported":[{"uid":"b094f6ad-35"}],"importedBy":[{"uid":"b094f6ad-6"}]},"b094f6ad-6":{"id":"/src/context/index.ts","moduleParts":{"vitus-labs-coolgrid.native.js":"b094f6ad-7"},"imported":[{"uid":"b094f6ad-2"},{"uid":"b094f6ad-4"}],"importedBy":[{"uid":"b094f6ad-14"},{"uid":"b094f6ad-26"}]},"b094f6ad-8":{"id":"/src/useContext.tsx","moduleParts":{"vitus-labs-coolgrid.native.js":"b094f6ad-9"},"imported":[{"uid":"b094f6ad-37"},{"uid":"b094f6ad-34"},{"uid":"b094f6ad-35"},{"uid":"b094f6ad-0"}],"importedBy":[{"uid":"b094f6ad-14"},{"uid":"b094f6ad-20"},{"uid":"b094f6ad-26"}]},"b094f6ad-10":{"id":"/src/utils.ts","moduleParts":{"vitus-labs-coolgrid.native.js":"b094f6ad-11"},"imported":[{"uid":"b094f6ad-37"},{"uid":"b094f6ad-0"}],"importedBy":[{"uid":"b094f6ad-14"},{"uid":"b094f6ad-20"},{"uid":"b094f6ad-26"},{"uid":"b094f6ad-12"},{"uid":"b094f6ad-24"}]},"b094f6ad-12":{"id":"/src/Col/styled.ts","moduleParts":{"vitus-labs-coolgrid.native.js":"b094f6ad-13"},"imported":[{"uid":"b094f6ad-37"},{"uid":"b094f6ad-34"},{"uid":"b094f6ad-10"}],"importedBy":[{"uid":"b094f6ad-14"}]},"b094f6ad-14":{"id":"/src/Col/component.tsx","moduleParts":{"vitus-labs-coolgrid.native.js":"b094f6ad-15"},"imported":[{"uid":"b094f6ad-35"},{"uid":"b094f6ad-0"},{"uid":"b094f6ad-6"},{"uid":"b094f6ad-8"},{"uid":"b094f6ad-10"},{"uid":"b094f6ad-12"},{"uid":"b094f6ad-36"}],"importedBy":[{"uid":"b094f6ad-16"}]},"b094f6ad-16":{"id":"/src/Col/index.ts","moduleParts":{"vitus-labs-coolgrid.native.js":"b094f6ad-17"},"imported":[{"uid":"b094f6ad-14"}],"importedBy":[{"uid":"b094f6ad-32"}]},"b094f6ad-18":{"id":"/src/Container/styled.ts","moduleParts":{"vitus-labs-coolgrid.native.js":"b094f6ad-19"},"imported":[{"uid":"b094f6ad-37"},{"uid":"b094f6ad-34"}],"importedBy":[{"uid":"b094f6ad-20"}]},"b094f6ad-20":{"id":"/src/Container/component.tsx","moduleParts":{"vitus-labs-coolgrid.native.js":"b094f6ad-21"},"imported":[{"uid":"b094f6ad-35"},{"uid":"b094f6ad-0"},{"uid":"b094f6ad-2"},{"uid":"b094f6ad-8"},{"uid":"b094f6ad-10"},{"uid":"b094f6ad-18"},{"uid":"b094f6ad-36"}],"importedBy":[{"uid":"b094f6ad-22"}]},"b094f6ad-22":{"id":"/src/Container/index.ts","moduleParts":{"vitus-labs-coolgrid.native.js":"b094f6ad-23"},"imported":[{"uid":"b094f6ad-20"}],"importedBy":[{"uid":"b094f6ad-32"}]},"b094f6ad-24":{"id":"/src/Row/styled.ts","moduleParts":{"vitus-labs-coolgrid.native.js":"b094f6ad-25"},"imported":[{"uid":"b094f6ad-37"},{"uid":"b094f6ad-34"},{"uid":"b094f6ad-10"}],"importedBy":[{"uid":"b094f6ad-26"}]},"b094f6ad-26":{"id":"/src/Row/component.tsx","moduleParts":{"vitus-labs-coolgrid.native.js":"b094f6ad-27"},"imported":[{"uid":"b094f6ad-35"},{"uid":"b094f6ad-0"},{"uid":"b094f6ad-6"},{"uid":"b094f6ad-8"},{"uid":"b094f6ad-10"},{"uid":"b094f6ad-24"},{"uid":"b094f6ad-36"}],"importedBy":[{"uid":"b094f6ad-28"}]},"b094f6ad-28":{"id":"/src/Row/index.ts","moduleParts":{"vitus-labs-coolgrid.native.js":"b094f6ad-29"},"imported":[{"uid":"b094f6ad-26"}],"importedBy":[{"uid":"b094f6ad-32"}]},"b094f6ad-30":{"id":"/src/theme.ts","moduleParts":{"vitus-labs-coolgrid.native.js":"b094f6ad-31"},"imported":[],"importedBy":[{"uid":"b094f6ad-32"}]},"b094f6ad-32":{"id":"/src/index.ts","moduleParts":{"vitus-labs-coolgrid.native.js":"b094f6ad-33"},"imported":[{"uid":"b094f6ad-34"},{"uid":"b094f6ad-16"},{"uid":"b094f6ad-22"},{"uid":"b094f6ad-28"},{"uid":"b094f6ad-30"}],"importedBy":[],"isEntry":true},"b094f6ad-34":{"id":"@vitus-labs/unistyle","moduleParts":{},"imported":[],"importedBy":[{"uid":"b094f6ad-32"},{"uid":"b094f6ad-8"},{"uid":"b094f6ad-12"},{"uid":"b094f6ad-18"},{"uid":"b094f6ad-24"}]},"b094f6ad-35":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"b094f6ad-14"},{"uid":"b094f6ad-20"},{"uid":"b094f6ad-26"},{"uid":"b094f6ad-8"},{"uid":"b094f6ad-2"},{"uid":"b094f6ad-4"}]},"b094f6ad-36":{"id":"react/jsx-runtime","moduleParts":{},"imported":[],"importedBy":[{"uid":"b094f6ad-14"},{"uid":"b094f6ad-20"},{"uid":"b094f6ad-26"}]},"b094f6ad-37":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"b094f6ad-8"},{"uid":"b094f6ad-10"},{"uid":"b094f6ad-12"},{"uid":"b094f6ad-18"},{"uid":"b094f6ad-24"}]}},"env":{"rollup":"4.23.0"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
5390
5390
|
|
|
5391
5391
|
const run = () => {
|
|
5392
5392
|
const width = window.innerWidth;
|