@pyreon/coolgrid 0.38.0 → 0.41.0
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/README.md +2 -2
- package/package.json +9 -8
package/README.md
CHANGED
|
@@ -79,7 +79,7 @@ Width is calculated as `(size / columns)` of the parent Row.
|
|
|
79
79
|
```tsx
|
|
80
80
|
<Col size={4}>1/3 width on every breakpoint</Col>
|
|
81
81
|
<Col size={{ xs: 12, sm: 6, lg: 4 }}>Responsive</Col>
|
|
82
|
-
<Col size={{ xs: 0, md: 6 }}>Hidden on xs (size 0 →
|
|
82
|
+
<Col size={{ xs: 0, md: 6 }}>Hidden on xs (size 0 → moved off-screen)</Col>
|
|
83
83
|
```
|
|
84
84
|
|
|
85
85
|
| Prop | Type | Description |
|
|
@@ -168,7 +168,7 @@ Swap any layer's root element via `component`:
|
|
|
168
168
|
## Gotchas
|
|
169
169
|
|
|
170
170
|
- **`Provider` is the unistyle provider** under the hood. If you already render `<PyreonUI>` (from `@pyreon/ui-core`) at your app root, it sets up unistyle context — you only need a fresh `<Provider>` if you want different breakpoints in a subtree.
|
|
171
|
-
- **`size: 0` is meaningful** — it
|
|
171
|
+
- **`size: 0` is meaningful** — it hides the column at that breakpoint by moving it off-screen (`position: fixed; left: -9999px` — not `display: none`), not "zero-width but still in flow".
|
|
172
172
|
- **`gutter` is negative-margin on the Row** + matching padding on each Col. Setting `gutter` and `padding` independently is fine but be aware of the visual offset.
|
|
173
173
|
- **`columns` MUST be set on a Container** if you want a non-default count. Setting it on a Row works for that Row only, but the visual cascade is harder to reason about — keep it at Container level.
|
|
174
174
|
- **Context is per-Provider.** If you nest two `<Provider>` blocks, the inner one starts fresh from its own theme — not from the outer Provider's overrides.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pyreon/coolgrid",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.41.0",
|
|
4
4
|
"description": "Responsive grid system for Pyreon",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/pyreon/pyreon/tree/main/packages/ui-system/coolgrid#readme",
|
|
@@ -40,17 +40,18 @@
|
|
|
40
40
|
"typecheck": "tsc --noEmit"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@pyreon/core": "^0.
|
|
44
|
-
"@pyreon/reactivity": "^0.
|
|
43
|
+
"@pyreon/core": "^0.41.0",
|
|
44
|
+
"@pyreon/reactivity": "^0.41.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@pyreon/styler": "^0.
|
|
48
|
-
"@pyreon/ui-core": "^0.
|
|
49
|
-
"@pyreon/unistyle": "^0.
|
|
47
|
+
"@pyreon/styler": "^0.41.0",
|
|
48
|
+
"@pyreon/ui-core": "^0.41.0",
|
|
49
|
+
"@pyreon/unistyle": "^0.41.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@pyreon/
|
|
53
|
-
"@pyreon/
|
|
52
|
+
"@pyreon/manifest": "0.13.2",
|
|
53
|
+
"@pyreon/test-utils": "^0.13.29",
|
|
54
|
+
"@pyreon/typescript": "^0.41.0",
|
|
54
55
|
"@pyreon/vitest-config": "0.13.3",
|
|
55
56
|
"@vitest/browser-playwright": "^4.1.8",
|
|
56
57
|
"@vitus-labs/tools-rolldown": "^2.5.0"
|