paintcannon-react 0.0.47 → 0.0.49

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 (2) hide show
  1. package/README.md +25 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -240,6 +240,31 @@ both supported:
240
240
  - `font-weight`/`fontWeight` (accepts `"bold"` or `"normal"`)
241
241
  - `text-decoration`/`textDecoration` (accepts `"underline"`, `"line-through"`, or `"none"`)
242
242
 
243
+ Grid template and automatic track props accept the same strings as core: cell lengths,
244
+ percentages, `fr`, `auto`, `min-content`, `max-content`, and `minmax(min, max)`.
245
+ The minimum accepts any of those except `fr`; the maximum accepts all of them.
246
+ Whitespace is allowed inside `minmax()`. For example:
247
+
248
+ ```tsx
249
+ <Div
250
+ style={{
251
+ display: "grid",
252
+ width: "100%",
253
+ gridTemplateColumns: "minmax(0, max-content) minmax(0, max-content)",
254
+ justifyContent: "flex-start",
255
+ }}
256
+ >
257
+ <Div style={{ minWidth: 0, overflowWrap: "anywhere" }}>#</Div>
258
+ <Div style={{ minWidth: 0, overflowWrap: "anywhere" }}>
259
+ A longer cell that can wrap in a narrow terminal.
260
+ </Div>
261
+ </Div>
262
+ ```
263
+
264
+ `minmax(0, 1fr)` uses a zero minimum, unlike bare `1fr`'s automatic minimum.
265
+ Sizes must be non-negative; `repeat()` is not supported.
266
+ See the [full grid track grammar](../paintcannon/README.md#grid-track-sizing).
267
+
243
268
  ### Per-component props:
244
269
 
245
270
  - `Div`: shared props, plus `scrollLeft?: number` and `scrollTop?: number`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paintcannon-react",
3
- "version": "0.0.47",
3
+ "version": "0.0.49",
4
4
  "license": "ISC",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,7 +37,7 @@
37
37
  "scheduler": "^0.25.0"
38
38
  },
39
39
  "peerDependencies": {
40
- "paintcannon": "^0.0.47",
40
+ "paintcannon": "^0.0.49",
41
41
  "react": "^19.0.0"
42
42
  },
43
43
  "devDependencies": {
@@ -46,6 +46,6 @@
46
46
  "@types/react-reconciler": "^0.33.0",
47
47
  "@types/scheduler": "^0.26.0",
48
48
  "typescript": "^6.0.3",
49
- "vitest": "^4.1.7"
49
+ "vitest": "^4.1.12"
50
50
  }
51
51
  }