@vitus-labs/unistyle 1.2.1 → 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 +198 -0
- package/lib/analysis/index.js.html +1 -1
- package/lib/analysis/vitus-labs-unistyle.native.js.html +1 -1
- package/lib/index.d.ts +567 -430
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +1868 -732
- package/lib/index.js.map +1 -1
- package/lib/vitus-labs-unistyle.native.js +1854 -719
- package/lib/vitus-labs-unistyle.native.js.map +1 -1
- package/package.json +17 -18
- package/lib/types/context.d.ts +0 -15
- package/lib/types/context.d.ts.map +0 -1
- package/lib/types/index.d.ts +0 -12
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/responsive/breakpoints.d.ts +0 -14
- package/lib/types/responsive/breakpoints.d.ts.map +0 -1
- package/lib/types/responsive/createMediaQueries.d.ts +0 -8
- package/lib/types/responsive/createMediaQueries.d.ts.map +0 -1
- package/lib/types/responsive/index.d.ts +0 -15
- package/lib/types/responsive/index.d.ts.map +0 -1
- package/lib/types/responsive/makeItResponsive.d.ts +0 -30
- package/lib/types/responsive/makeItResponsive.d.ts.map +0 -1
- package/lib/types/responsive/normalizeTheme.d.ts +0 -7
- package/lib/types/responsive/normalizeTheme.d.ts.map +0 -1
- package/lib/types/responsive/optimizeTheme.d.ts +0 -7
- package/lib/types/responsive/optimizeTheme.d.ts.map +0 -1
- package/lib/types/responsive/sortBreakpoints.d.ts +0 -4
- package/lib/types/responsive/sortBreakpoints.d.ts.map +0 -1
- package/lib/types/responsive/transformTheme.d.ts +0 -7
- package/lib/types/responsive/transformTheme.d.ts.map +0 -1
- package/lib/types/styles/alignContent.d.ts +0 -34
- package/lib/types/styles/alignContent.d.ts.map +0 -1
- package/lib/types/styles/extendCss.d.ts +0 -5
- package/lib/types/styles/extendCss.d.ts.map +0 -1
- package/lib/types/styles/index.d.ts +0 -9
- package/lib/types/styles/index.d.ts.map +0 -1
- package/lib/types/styles/shorthands/borderRadius.d.ts +0 -15
- package/lib/types/styles/shorthands/borderRadius.d.ts.map +0 -1
- package/lib/types/styles/shorthands/edge.d.ts +0 -14
- package/lib/types/styles/shorthands/edge.d.ts.map +0 -1
- package/lib/types/styles/shorthands/index.d.ts +0 -7
- package/lib/types/styles/shorthands/index.d.ts.map +0 -1
- package/lib/types/styles/styles/index.d.ts +0 -11
- package/lib/types/styles/styles/index.d.ts.map +0 -1
- package/lib/types/styles/styles/types.d.ts +0 -247
- package/lib/types/styles/styles/types.d.ts.map +0 -1
- package/lib/types/styles/styles/utils.d.ts +0 -12
- package/lib/types/styles/styles/utils.d.ts.map +0 -1
- package/lib/types/types.d.ts +0 -10
- package/lib/types/types.d.ts.map +0 -1
- package/lib/types/units/index.d.ts +0 -9
- package/lib/types/units/index.d.ts.map +0 -1
- package/lib/types/units/stripUnit.d.ts +0 -6
- package/lib/types/units/stripUnit.d.ts.map +0 -1
- package/lib/types/units/value.d.ts +0 -5
- package/lib/types/units/value.d.ts.map +0 -1
- package/lib/types/units/values.d.ts +0 -5
- package/lib/types/units/values.d.ts.map +0 -1
package/LICENSE
CHANGED
package/README.md
ADDED
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
# @vitus-labs/unistyle
|
|
2
|
+
|
|
3
|
+
Responsive CSS engine for React and styled-components.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@vitus-labs/unistyle)
|
|
6
|
+
[](https://github.com/vitus-labs/ui-system/blob/main/LICENSE)
|
|
7
|
+
|
|
8
|
+
Transforms property-centric theme objects into breakpoint-centric CSS with media queries. Automatic px-to-rem conversion, flex alignment helpers, and a data-driven style processor. Powers the responsive system behind `@vitus-labs/elements`, `@vitus-labs/coolgrid`, and `@vitus-labs/rocketstyle`.
|
|
9
|
+
|
|
10
|
+
## Features
|
|
11
|
+
|
|
12
|
+
- **Responsive pipeline** — write theme objects, get media queries automatically
|
|
13
|
+
- **px-to-rem conversion** — configurable rootSize, zero-effort unit handling
|
|
14
|
+
- **Breakpoint deduplication** — identical breakpoints are collapsed, no redundant CSS
|
|
15
|
+
- **Three input formats** — scalar, mobile-first array, or breakpoint object per property
|
|
16
|
+
- **Data-driven styles** — 100+ CSS properties processed from a theme object
|
|
17
|
+
- **Alignment helpers** — flex alignment constants for X and Y axes
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm install @vitus-labs/unistyle
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Quick Start
|
|
26
|
+
|
|
27
|
+
```tsx
|
|
28
|
+
import { Provider } from '@vitus-labs/unistyle'
|
|
29
|
+
|
|
30
|
+
const theme = {
|
|
31
|
+
rootSize: 16,
|
|
32
|
+
breakpoints: { xs: 0, sm: 576, md: 768, lg: 992, xl: 1200 },
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
<Provider theme={theme}>
|
|
36
|
+
{/* your app */}
|
|
37
|
+
</Provider>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## API
|
|
41
|
+
|
|
42
|
+
### makeItResponsive
|
|
43
|
+
|
|
44
|
+
The core responsive engine. Takes a theme object and a styles processor, returns CSS with media query wrappers for each breakpoint.
|
|
45
|
+
|
|
46
|
+
```tsx
|
|
47
|
+
import { makeItResponsive, styles } from '@vitus-labs/unistyle'
|
|
48
|
+
import { config } from '@vitus-labs/core'
|
|
49
|
+
|
|
50
|
+
const { styled, css } = config
|
|
51
|
+
|
|
52
|
+
const Box = styled.div`
|
|
53
|
+
${makeItResponsive({
|
|
54
|
+
key: '$box',
|
|
55
|
+
css,
|
|
56
|
+
styles,
|
|
57
|
+
})}
|
|
58
|
+
`
|
|
59
|
+
|
|
60
|
+
// Single values
|
|
61
|
+
<Box $box={{ padding: 16, fontSize: 14 }} />
|
|
62
|
+
|
|
63
|
+
// Responsive breakpoint object
|
|
64
|
+
<Box $box={{ padding: { xs: 8, md: 16, lg: 24 }, fontSize: 14 }} />
|
|
65
|
+
|
|
66
|
+
// Responsive mobile-first array
|
|
67
|
+
<Box $box={{ padding: [8, 16, 24], fontSize: 14 }} />
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
**Pipeline:**
|
|
71
|
+
|
|
72
|
+
```text
|
|
73
|
+
theme object → normalize (fill gaps) → transform (property → breakpoint pivot)
|
|
74
|
+
→ optimize (deduplicate) → media queries
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
**Parameters:**
|
|
78
|
+
|
|
79
|
+
| Param | Type | Description |
|
|
80
|
+
| ----- | ---- | ----------- |
|
|
81
|
+
| key | `string` | Theme prop name to read from styled-component props |
|
|
82
|
+
| css | `function` | styled-components `css` tagged template function |
|
|
83
|
+
| styles | `function` | Style processor (use the exported `styles`) |
|
|
84
|
+
| normalize | `boolean` | Fill missing breakpoints by inheriting from previous (default: true) |
|
|
85
|
+
|
|
86
|
+
### styles
|
|
87
|
+
|
|
88
|
+
Data-driven CSS property processor. Reads a theme object and outputs CSS for all recognized properties — layout, spacing, typography, borders, backgrounds, transforms, and more.
|
|
89
|
+
|
|
90
|
+
Used internally by `makeItResponsive` but can be called directly:
|
|
91
|
+
|
|
92
|
+
```tsx
|
|
93
|
+
import { styles } from '@vitus-labs/unistyle'
|
|
94
|
+
|
|
95
|
+
// styles({ theme, css, rootSize }) => css``
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Supports shorthand properties (`margin`, `padding`, `borderRadius`) with automatic expansion, and converts numeric values to rem units.
|
|
99
|
+
|
|
100
|
+
### Unit Conversion
|
|
101
|
+
|
|
102
|
+
```tsx
|
|
103
|
+
import { value, values, stripUnit } from '@vitus-labs/unistyle'
|
|
104
|
+
|
|
105
|
+
// value(input, rootSize?, outputUnit?) => string | number | null
|
|
106
|
+
value(16) // => '1rem' (16 / 16)
|
|
107
|
+
value(24) // => '1.5rem' (24 / 16)
|
|
108
|
+
value(0) // => '0' (always unitless)
|
|
109
|
+
value('2em') // => '2em' (string passthrough)
|
|
110
|
+
value(16, 16, 'px') // => '16px'
|
|
111
|
+
|
|
112
|
+
// stripUnit(input, unitReturn?)
|
|
113
|
+
stripUnit('24px') // => 24
|
|
114
|
+
stripUnit('24px', true) // => [24, 'px']
|
|
115
|
+
stripUnit(24) // => 24
|
|
116
|
+
|
|
117
|
+
// values(array, rootSize?, outputUnit?) => string
|
|
118
|
+
// Picks first non-null and converts
|
|
119
|
+
values([null, 16, 24], 16) // => '1rem'
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### Alignment Helpers
|
|
123
|
+
|
|
124
|
+
```tsx
|
|
125
|
+
import { alignContent, ALIGN_CONTENT_MAP_X, ALIGN_CONTENT_MAP_Y } from '@vitus-labs/unistyle'
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Maps alignment keywords to CSS flex values:
|
|
129
|
+
|
|
130
|
+
| Keyword | X-axis CSS | Y-axis CSS |
|
|
131
|
+
| ------- | ---------- | ---------- |
|
|
132
|
+
| `left` / `top` | `flex-start` | `flex-start` |
|
|
133
|
+
| `center` | `center` | `center` |
|
|
134
|
+
| `right` / `bottom` | `flex-end` | `flex-end` |
|
|
135
|
+
| `spaceBetween` | `space-between` | `space-between` |
|
|
136
|
+
| `spaceAround` | `space-around` | `space-around` |
|
|
137
|
+
| `block` | `stretch` | `stretch` |
|
|
138
|
+
|
|
139
|
+
### Default Breakpoints
|
|
140
|
+
|
|
141
|
+
```tsx
|
|
142
|
+
import { breakpoints } from '@vitus-labs/unistyle'
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
```tsx
|
|
146
|
+
{
|
|
147
|
+
rootSize: 16,
|
|
148
|
+
breakpoints: {
|
|
149
|
+
xs: 0, // mobile
|
|
150
|
+
sm: 576, // small
|
|
151
|
+
md: 768, // tablet
|
|
152
|
+
lg: 992, // desktop
|
|
153
|
+
xl: 1200, // large desktop
|
|
154
|
+
xxl: 1440, // extra large
|
|
155
|
+
},
|
|
156
|
+
}
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
Breakpoint values are converted to `em` units in media queries for correct cross-browser behavior.
|
|
160
|
+
|
|
161
|
+
### Other Exports
|
|
162
|
+
|
|
163
|
+
| Export | Description |
|
|
164
|
+
| ------ | ----------- |
|
|
165
|
+
| `createMediaQueries` | Builds breakpoint-name → tagged-template-function map |
|
|
166
|
+
| `transformTheme` | Pivots property-centric theme to breakpoint-centric |
|
|
167
|
+
| `normalizeTheme` | Fills gaps so every breakpoint has a complete set of values |
|
|
168
|
+
| `sortBreakpoints` | Sorts breakpoint definitions by value (ascending) |
|
|
169
|
+
| `extendCss` | Helper for processing ExtendCss props (string, function, callback) |
|
|
170
|
+
| `Provider` / `context` | Theme context provider and consumer |
|
|
171
|
+
|
|
172
|
+
## Responsive Value Formats
|
|
173
|
+
|
|
174
|
+
Every property in the theme object supports three formats:
|
|
175
|
+
|
|
176
|
+
```tsx
|
|
177
|
+
// 1. Scalar — applied to all breakpoints
|
|
178
|
+
{ padding: 16 }
|
|
179
|
+
|
|
180
|
+
// 2. Array — mobile-first, values map to breakpoints by position
|
|
181
|
+
{ padding: [8, 12, 16] } // xs: 8, sm: 12, md: 16
|
|
182
|
+
|
|
183
|
+
// 3. Object — explicit breakpoint keys
|
|
184
|
+
{ padding: { xs: 8, md: 16, xl: 24 } }
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
When using `normalize: true` (default), missing breakpoints inherit from the previous one.
|
|
188
|
+
|
|
189
|
+
## Peer Dependencies
|
|
190
|
+
|
|
191
|
+
| Package | Version |
|
|
192
|
+
| ------- | ------- |
|
|
193
|
+
| react | >= 19 |
|
|
194
|
+
| @vitus-labs/core | * |
|
|
195
|
+
|
|
196
|
+
## License
|
|
197
|
+
|
|
198
|
+
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":[{"name":"responsive","children":[{"uid":"
|
|
5389
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src","children":[{"name":"responsive","children":[{"uid":"0abbe132-1","name":"breakpoints.ts"},{"uid":"0abbe132-3","name":"createMediaQueries.ts"},{"uid":"0abbe132-5","name":"normalizeTheme.ts"},{"uid":"0abbe132-7","name":"optimizeTheme.ts"},{"uid":"0abbe132-9","name":"transformTheme.ts"},{"uid":"0abbe132-11","name":"makeItResponsive.ts"},{"uid":"0abbe132-13","name":"sortBreakpoints.ts"},{"uid":"0abbe132-15","name":"index.ts"}]},{"uid":"0abbe132-17","name":"context.tsx"},{"name":"styles","children":[{"uid":"0abbe132-19","name":"alignContent.ts"},{"uid":"0abbe132-21","name":"extendCss.ts"},{"name":"shorthands","children":[{"uid":"0abbe132-29","name":"borderRadius.ts"},{"uid":"0abbe132-31","name":"edge.ts"}]},{"name":"styles","children":[{"uid":"0abbe132-33","name":"processDescriptor.ts"},{"uid":"0abbe132-35","name":"propertyMap.ts"},{"uid":"0abbe132-37","name":"index.ts"}]},{"uid":"0abbe132-39","name":"index.ts"}]},{"name":"units","children":[{"uid":"0abbe132-23","name":"stripUnit.ts"},{"uid":"0abbe132-25","name":"value.ts"},{"uid":"0abbe132-27","name":"values.ts"}]},{"uid":"0abbe132-41","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"0abbe132-1":{"renderedLength":178,"gzipLength":153,"brotliLength":0,"metaUid":"0abbe132-0"},"0abbe132-3":{"renderedLength":787,"gzipLength":450,"brotliLength":0,"metaUid":"0abbe132-2"},"0abbe132-5":{"renderedLength":1645,"gzipLength":700,"brotliLength":0,"metaUid":"0abbe132-4"},"0abbe132-7":{"renderedLength":862,"gzipLength":442,"brotliLength":0,"metaUid":"0abbe132-6"},"0abbe132-9":{"renderedLength":1318,"gzipLength":621,"brotliLength":0,"metaUid":"0abbe132-8"},"0abbe132-11":{"renderedLength":1652,"gzipLength":720,"brotliLength":0,"metaUid":"0abbe132-10"},"0abbe132-13":{"renderedLength":262,"gzipLength":189,"brotliLength":0,"metaUid":"0abbe132-12"},"0abbe132-15":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"0abbe132-14"},"0abbe132-17":{"renderedLength":818,"gzipLength":440,"brotliLength":0,"metaUid":"0abbe132-16"},"0abbe132-19":{"renderedLength":1243,"gzipLength":582,"brotliLength":0,"metaUid":"0abbe132-18"},"0abbe132-21":{"renderedLength":327,"gzipLength":237,"brotliLength":0,"metaUid":"0abbe132-20"},"0abbe132-23":{"renderedLength":647,"gzipLength":385,"brotliLength":0,"metaUid":"0abbe132-22"},"0abbe132-25":{"renderedLength":1019,"gzipLength":499,"brotliLength":0,"metaUid":"0abbe132-24"},"0abbe132-27":{"renderedLength":615,"gzipLength":354,"brotliLength":0,"metaUid":"0abbe132-26"},"0abbe132-29":{"renderedLength":2448,"gzipLength":811,"brotliLength":0,"metaUid":"0abbe132-28"},"0abbe132-31":{"renderedLength":2640,"gzipLength":914,"brotliLength":0,"metaUid":"0abbe132-30"},"0abbe132-33":{"renderedLength":2437,"gzipLength":945,"brotliLength":0,"metaUid":"0abbe132-32"},"0abbe132-35":{"renderedLength":19464,"gzipLength":2999,"brotliLength":0,"metaUid":"0abbe132-34"},"0abbe132-37":{"renderedLength":613,"gzipLength":364,"brotliLength":0,"metaUid":"0abbe132-36"},"0abbe132-39":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"0abbe132-38"},"0abbe132-41":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"0abbe132-40"}},"nodeMetas":{"0abbe132-0":{"id":"/src/responsive/breakpoints.ts","moduleParts":{"index.js":"0abbe132-1"},"imported":[],"importedBy":[{"uid":"0abbe132-14"}]},"0abbe132-2":{"id":"/src/responsive/createMediaQueries.ts","moduleParts":{"index.js":"0abbe132-3"},"imported":[],"importedBy":[{"uid":"0abbe132-14"}]},"0abbe132-4":{"id":"/src/responsive/normalizeTheme.ts","moduleParts":{"index.js":"0abbe132-5"},"imported":[],"importedBy":[{"uid":"0abbe132-14"},{"uid":"0abbe132-10"}]},"0abbe132-6":{"id":"/src/responsive/optimizeTheme.ts","moduleParts":{"index.js":"0abbe132-7"},"imported":[],"importedBy":[{"uid":"0abbe132-10"}]},"0abbe132-8":{"id":"/src/responsive/transformTheme.ts","moduleParts":{"index.js":"0abbe132-9"},"imported":[{"uid":"0abbe132-43"}],"importedBy":[{"uid":"0abbe132-14"},{"uid":"0abbe132-10"}]},"0abbe132-10":{"id":"/src/responsive/makeItResponsive.ts","moduleParts":{"index.js":"0abbe132-11"},"imported":[{"uid":"0abbe132-43"},{"uid":"0abbe132-4"},{"uid":"0abbe132-6"},{"uid":"0abbe132-8"}],"importedBy":[{"uid":"0abbe132-14"}]},"0abbe132-12":{"id":"/src/responsive/sortBreakpoints.ts","moduleParts":{"index.js":"0abbe132-13"},"imported":[],"importedBy":[{"uid":"0abbe132-14"}]},"0abbe132-14":{"id":"/src/responsive/index.ts","moduleParts":{"index.js":"0abbe132-15"},"imported":[{"uid":"0abbe132-0"},{"uid":"0abbe132-2"},{"uid":"0abbe132-10"},{"uid":"0abbe132-4"},{"uid":"0abbe132-12"},{"uid":"0abbe132-8"}],"importedBy":[{"uid":"0abbe132-40"},{"uid":"0abbe132-16"}]},"0abbe132-16":{"id":"/src/context.tsx","moduleParts":{"index.js":"0abbe132-17"},"imported":[{"uid":"0abbe132-43"},{"uid":"0abbe132-44"},{"uid":"0abbe132-14"},{"uid":"0abbe132-45"}],"importedBy":[{"uid":"0abbe132-40"}]},"0abbe132-18":{"id":"/src/styles/alignContent.ts","moduleParts":{"index.js":"0abbe132-19"},"imported":[{"uid":"0abbe132-43"}],"importedBy":[{"uid":"0abbe132-38"}]},"0abbe132-20":{"id":"/src/styles/extendCss.ts","moduleParts":{"index.js":"0abbe132-21"},"imported":[{"uid":"0abbe132-43"}],"importedBy":[{"uid":"0abbe132-38"}]},"0abbe132-22":{"id":"/src/units/stripUnit.ts","moduleParts":{"index.js":"0abbe132-23"},"imported":[],"importedBy":[{"uid":"0abbe132-42"},{"uid":"0abbe132-24"}]},"0abbe132-24":{"id":"/src/units/value.ts","moduleParts":{"index.js":"0abbe132-25"},"imported":[{"uid":"0abbe132-22"}],"importedBy":[{"uid":"0abbe132-42"},{"uid":"0abbe132-26"}]},"0abbe132-26":{"id":"/src/units/values.ts","moduleParts":{"index.js":"0abbe132-27"},"imported":[{"uid":"0abbe132-24"}],"importedBy":[{"uid":"0abbe132-42"}]},"0abbe132-28":{"id":"/src/styles/shorthands/borderRadius.ts","moduleParts":{"index.js":"0abbe132-29"},"imported":[{"uid":"0abbe132-42"}],"importedBy":[{"uid":"0abbe132-46"}]},"0abbe132-30":{"id":"/src/styles/shorthands/edge.ts","moduleParts":{"index.js":"0abbe132-31"},"imported":[{"uid":"0abbe132-42"}],"importedBy":[{"uid":"0abbe132-46"}]},"0abbe132-32":{"id":"/src/styles/styles/processDescriptor.ts","moduleParts":{"index.js":"0abbe132-33"},"imported":[],"importedBy":[{"uid":"0abbe132-36"}]},"0abbe132-34":{"id":"/src/styles/styles/propertyMap.ts","moduleParts":{"index.js":"0abbe132-35"},"imported":[],"importedBy":[{"uid":"0abbe132-36"}]},"0abbe132-36":{"id":"/src/styles/styles/index.ts","moduleParts":{"index.js":"0abbe132-37"},"imported":[{"uid":"0abbe132-46"},{"uid":"0abbe132-42"},{"uid":"0abbe132-32"},{"uid":"0abbe132-34"}],"importedBy":[{"uid":"0abbe132-38"}]},"0abbe132-38":{"id":"/src/styles/index.ts","moduleParts":{"index.js":"0abbe132-39"},"imported":[{"uid":"0abbe132-18"},{"uid":"0abbe132-20"},{"uid":"0abbe132-36"}],"importedBy":[{"uid":"0abbe132-40"}]},"0abbe132-40":{"id":"/src/index.ts","moduleParts":{"index.js":"0abbe132-41"},"imported":[{"uid":"0abbe132-16"},{"uid":"0abbe132-14"},{"uid":"0abbe132-38"},{"uid":"0abbe132-42"}],"importedBy":[],"isEntry":true},"0abbe132-42":{"id":"/src/units/index.ts","moduleParts":{},"imported":[{"uid":"0abbe132-22"},{"uid":"0abbe132-24"},{"uid":"0abbe132-26"}],"importedBy":[{"uid":"0abbe132-40"},{"uid":"0abbe132-36"},{"uid":"0abbe132-28"},{"uid":"0abbe132-30"}]},"0abbe132-43":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abbe132-16"},{"uid":"0abbe132-10"},{"uid":"0abbe132-8"},{"uid":"0abbe132-18"},{"uid":"0abbe132-20"}]},"0abbe132-44":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abbe132-16"}]},"0abbe132-45":{"id":"react/jsx-runtime","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abbe132-16"}]},"0abbe132-46":{"id":"/src/styles/shorthands/index.ts","moduleParts":{},"imported":[{"uid":"0abbe132-28"},{"uid":"0abbe132-30"}],"importedBy":[{"uid":"0abbe132-36"}]}},"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-unistyle.native.js","children":[{"name":"src","children":[{"name":"responsive","children":[{"uid":"
|
|
5389
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-unistyle.native.js","children":[{"name":"src","children":[{"name":"responsive","children":[{"uid":"2faa43c3-1","name":"breakpoints.ts"},{"uid":"2faa43c3-3","name":"createMediaQueries.ts"},{"uid":"2faa43c3-5","name":"normalizeTheme.ts"},{"uid":"2faa43c3-7","name":"optimizeTheme.ts"},{"uid":"2faa43c3-9","name":"transformTheme.ts"},{"uid":"2faa43c3-11","name":"makeItResponsive.ts"},{"uid":"2faa43c3-13","name":"sortBreakpoints.ts"},{"uid":"2faa43c3-15","name":"index.ts"}]},{"uid":"2faa43c3-17","name":"context.tsx"},{"name":"styles","children":[{"uid":"2faa43c3-19","name":"alignContent.ts"},{"uid":"2faa43c3-21","name":"extendCss.ts"},{"name":"shorthands","children":[{"uid":"2faa43c3-29","name":"borderRadius.ts"},{"uid":"2faa43c3-31","name":"edge.ts"}]},{"name":"styles","children":[{"uid":"2faa43c3-33","name":"processDescriptor.ts"},{"uid":"2faa43c3-35","name":"propertyMap.ts"},{"uid":"2faa43c3-37","name":"index.ts"}]},{"uid":"2faa43c3-39","name":"index.ts"}]},{"name":"units","children":[{"uid":"2faa43c3-23","name":"stripUnit.ts"},{"uid":"2faa43c3-25","name":"value.ts"},{"uid":"2faa43c3-27","name":"values.ts"}]},{"uid":"2faa43c3-41","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"2faa43c3-1":{"renderedLength":178,"gzipLength":153,"brotliLength":0,"metaUid":"2faa43c3-0"},"2faa43c3-3":{"renderedLength":787,"gzipLength":450,"brotliLength":0,"metaUid":"2faa43c3-2"},"2faa43c3-5":{"renderedLength":1645,"gzipLength":700,"brotliLength":0,"metaUid":"2faa43c3-4"},"2faa43c3-7":{"renderedLength":862,"gzipLength":442,"brotliLength":0,"metaUid":"2faa43c3-6"},"2faa43c3-9":{"renderedLength":1318,"gzipLength":621,"brotliLength":0,"metaUid":"2faa43c3-8"},"2faa43c3-11":{"renderedLength":1652,"gzipLength":720,"brotliLength":0,"metaUid":"2faa43c3-10"},"2faa43c3-13":{"renderedLength":262,"gzipLength":189,"brotliLength":0,"metaUid":"2faa43c3-12"},"2faa43c3-15":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"2faa43c3-14"},"2faa43c3-17":{"renderedLength":818,"gzipLength":440,"brotliLength":0,"metaUid":"2faa43c3-16"},"2faa43c3-19":{"renderedLength":1243,"gzipLength":582,"brotliLength":0,"metaUid":"2faa43c3-18"},"2faa43c3-21":{"renderedLength":327,"gzipLength":237,"brotliLength":0,"metaUid":"2faa43c3-20"},"2faa43c3-23":{"renderedLength":647,"gzipLength":385,"brotliLength":0,"metaUid":"2faa43c3-22"},"2faa43c3-25":{"renderedLength":1018,"gzipLength":497,"brotliLength":0,"metaUid":"2faa43c3-24"},"2faa43c3-27":{"renderedLength":615,"gzipLength":354,"brotliLength":0,"metaUid":"2faa43c3-26"},"2faa43c3-29":{"renderedLength":2448,"gzipLength":811,"brotliLength":0,"metaUid":"2faa43c3-28"},"2faa43c3-31":{"renderedLength":2640,"gzipLength":914,"brotliLength":0,"metaUid":"2faa43c3-30"},"2faa43c3-33":{"renderedLength":2194,"gzipLength":883,"brotliLength":0,"metaUid":"2faa43c3-32"},"2faa43c3-35":{"renderedLength":19464,"gzipLength":2999,"brotliLength":0,"metaUid":"2faa43c3-34"},"2faa43c3-37":{"renderedLength":613,"gzipLength":364,"brotliLength":0,"metaUid":"2faa43c3-36"},"2faa43c3-39":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"2faa43c3-38"},"2faa43c3-41":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"2faa43c3-40"}},"nodeMetas":{"2faa43c3-0":{"id":"/src/responsive/breakpoints.ts","moduleParts":{"vitus-labs-unistyle.native.js":"2faa43c3-1"},"imported":[],"importedBy":[{"uid":"2faa43c3-14"}]},"2faa43c3-2":{"id":"/src/responsive/createMediaQueries.ts","moduleParts":{"vitus-labs-unistyle.native.js":"2faa43c3-3"},"imported":[],"importedBy":[{"uid":"2faa43c3-14"}]},"2faa43c3-4":{"id":"/src/responsive/normalizeTheme.ts","moduleParts":{"vitus-labs-unistyle.native.js":"2faa43c3-5"},"imported":[],"importedBy":[{"uid":"2faa43c3-14"},{"uid":"2faa43c3-10"}]},"2faa43c3-6":{"id":"/src/responsive/optimizeTheme.ts","moduleParts":{"vitus-labs-unistyle.native.js":"2faa43c3-7"},"imported":[],"importedBy":[{"uid":"2faa43c3-10"}]},"2faa43c3-8":{"id":"/src/responsive/transformTheme.ts","moduleParts":{"vitus-labs-unistyle.native.js":"2faa43c3-9"},"imported":[{"uid":"2faa43c3-43"}],"importedBy":[{"uid":"2faa43c3-14"},{"uid":"2faa43c3-10"}]},"2faa43c3-10":{"id":"/src/responsive/makeItResponsive.ts","moduleParts":{"vitus-labs-unistyle.native.js":"2faa43c3-11"},"imported":[{"uid":"2faa43c3-43"},{"uid":"2faa43c3-4"},{"uid":"2faa43c3-6"},{"uid":"2faa43c3-8"}],"importedBy":[{"uid":"2faa43c3-14"}]},"2faa43c3-12":{"id":"/src/responsive/sortBreakpoints.ts","moduleParts":{"vitus-labs-unistyle.native.js":"2faa43c3-13"},"imported":[],"importedBy":[{"uid":"2faa43c3-14"}]},"2faa43c3-14":{"id":"/src/responsive/index.ts","moduleParts":{"vitus-labs-unistyle.native.js":"2faa43c3-15"},"imported":[{"uid":"2faa43c3-0"},{"uid":"2faa43c3-2"},{"uid":"2faa43c3-10"},{"uid":"2faa43c3-4"},{"uid":"2faa43c3-12"},{"uid":"2faa43c3-8"}],"importedBy":[{"uid":"2faa43c3-40"},{"uid":"2faa43c3-16"}]},"2faa43c3-16":{"id":"/src/context.tsx","moduleParts":{"vitus-labs-unistyle.native.js":"2faa43c3-17"},"imported":[{"uid":"2faa43c3-43"},{"uid":"2faa43c3-44"},{"uid":"2faa43c3-14"},{"uid":"2faa43c3-45"}],"importedBy":[{"uid":"2faa43c3-40"}]},"2faa43c3-18":{"id":"/src/styles/alignContent.ts","moduleParts":{"vitus-labs-unistyle.native.js":"2faa43c3-19"},"imported":[{"uid":"2faa43c3-43"}],"importedBy":[{"uid":"2faa43c3-38"}]},"2faa43c3-20":{"id":"/src/styles/extendCss.ts","moduleParts":{"vitus-labs-unistyle.native.js":"2faa43c3-21"},"imported":[{"uid":"2faa43c3-43"}],"importedBy":[{"uid":"2faa43c3-38"}]},"2faa43c3-22":{"id":"/src/units/stripUnit.ts","moduleParts":{"vitus-labs-unistyle.native.js":"2faa43c3-23"},"imported":[],"importedBy":[{"uid":"2faa43c3-42"},{"uid":"2faa43c3-24"}]},"2faa43c3-24":{"id":"/src/units/value.ts","moduleParts":{"vitus-labs-unistyle.native.js":"2faa43c3-25"},"imported":[{"uid":"2faa43c3-22"}],"importedBy":[{"uid":"2faa43c3-42"},{"uid":"2faa43c3-26"}]},"2faa43c3-26":{"id":"/src/units/values.ts","moduleParts":{"vitus-labs-unistyle.native.js":"2faa43c3-27"},"imported":[{"uid":"2faa43c3-24"}],"importedBy":[{"uid":"2faa43c3-42"}]},"2faa43c3-28":{"id":"/src/styles/shorthands/borderRadius.ts","moduleParts":{"vitus-labs-unistyle.native.js":"2faa43c3-29"},"imported":[{"uid":"2faa43c3-42"}],"importedBy":[{"uid":"2faa43c3-46"}]},"2faa43c3-30":{"id":"/src/styles/shorthands/edge.ts","moduleParts":{"vitus-labs-unistyle.native.js":"2faa43c3-31"},"imported":[{"uid":"2faa43c3-42"}],"importedBy":[{"uid":"2faa43c3-46"}]},"2faa43c3-32":{"id":"/src/styles/styles/processDescriptor.ts","moduleParts":{"vitus-labs-unistyle.native.js":"2faa43c3-33"},"imported":[],"importedBy":[{"uid":"2faa43c3-36"}]},"2faa43c3-34":{"id":"/src/styles/styles/propertyMap.ts","moduleParts":{"vitus-labs-unistyle.native.js":"2faa43c3-35"},"imported":[],"importedBy":[{"uid":"2faa43c3-36"}]},"2faa43c3-36":{"id":"/src/styles/styles/index.ts","moduleParts":{"vitus-labs-unistyle.native.js":"2faa43c3-37"},"imported":[{"uid":"2faa43c3-46"},{"uid":"2faa43c3-42"},{"uid":"2faa43c3-32"},{"uid":"2faa43c3-34"}],"importedBy":[{"uid":"2faa43c3-38"}]},"2faa43c3-38":{"id":"/src/styles/index.ts","moduleParts":{"vitus-labs-unistyle.native.js":"2faa43c3-39"},"imported":[{"uid":"2faa43c3-18"},{"uid":"2faa43c3-20"},{"uid":"2faa43c3-36"}],"importedBy":[{"uid":"2faa43c3-40"}]},"2faa43c3-40":{"id":"/src/index.ts","moduleParts":{"vitus-labs-unistyle.native.js":"2faa43c3-41"},"imported":[{"uid":"2faa43c3-16"},{"uid":"2faa43c3-14"},{"uid":"2faa43c3-38"},{"uid":"2faa43c3-42"}],"importedBy":[],"isEntry":true},"2faa43c3-42":{"id":"/src/units/index.ts","moduleParts":{},"imported":[{"uid":"2faa43c3-22"},{"uid":"2faa43c3-24"},{"uid":"2faa43c3-26"}],"importedBy":[{"uid":"2faa43c3-40"},{"uid":"2faa43c3-36"},{"uid":"2faa43c3-28"},{"uid":"2faa43c3-30"}]},"2faa43c3-43":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"2faa43c3-16"},{"uid":"2faa43c3-10"},{"uid":"2faa43c3-8"},{"uid":"2faa43c3-18"},{"uid":"2faa43c3-20"}]},"2faa43c3-44":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"2faa43c3-16"}]},"2faa43c3-45":{"id":"react/jsx-runtime","moduleParts":{},"imported":[],"importedBy":[{"uid":"2faa43c3-16"}]},"2faa43c3-46":{"id":"/src/styles/shorthands/index.ts","moduleParts":{},"imported":[{"uid":"2faa43c3-28"},{"uid":"2faa43c3-30"}],"importedBy":[{"uid":"2faa43c3-36"}]}},"env":{"rollup":"4.23.0"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
5390
5390
|
|
|
5391
5391
|
const run = () => {
|
|
5392
5392
|
const width = window.innerWidth;
|