@astryxdesign/cli 0.7.1-canary.f11eb6d → 0.7.1-canary.f15a900

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.
@@ -21,6 +21,9 @@ export const docs = {
21
21
  'Dialog',
22
22
  'BottomSheet',
23
23
  'contract',
24
+ 'Grid',
25
+ 'columns',
26
+ 'minWidth',
24
27
  ],
25
28
 
26
29
  sections: [
@@ -94,5 +97,39 @@ const isNarrow = useMediaQuery('(max-width: 1024px)');
94
97
  },
95
98
  ],
96
99
  },
100
+ {
101
+ id: 'columns-that-reflow',
102
+ title: 'Columns that reflow',
103
+ content: [
104
+ {
105
+ type: 'prose',
106
+ text: 'For columns that reflow on small screens, use `Grid columns={{minWidth, max}}`. A numeric `columns` is exactly N columns at every width and never reflows: `columns={4}` on a 390px phone renders four tracks under 100px wide, and the row overflows the page as soon as their content cannot shrink to fit. `{minWidth: 240, max: 4}` renders at most four columns, each at least 240px, and drops to one full-width column when the container is narrow; `max` is what lets that last column shrink to the container, and `gap` counts toward the room the columns need.',
107
+ },
108
+ {
109
+ type: 'code',
110
+ lang: 'tsx',
111
+ label: 'Reflowing stat row versus a fixed week row',
112
+ code: `// Reflows: 4 columns on desktop, 3 in a 768px-wide grid, 1 on a phone.
113
+ <Grid columns={{minWidth: 240, max: 4}} gap={3}>
114
+ {stats.map(stat => <StatCard key={stat.id} {...stat} />)}
115
+ </Grid>
116
+
117
+ // Fixed: exactly 7 columns at every width (a number never reflows).
118
+ <Grid columns={7} gap={1}>
119
+ {days.map(day => <DayCell key={day} day={day} />)}
120
+ </Grid>`,
121
+ },
122
+ {
123
+ type: 'list',
124
+ style: 'unordered',
125
+ items: [
126
+ '`{minWidth}` alone: as many columns as fit at the floor, no cap; a container narrower than `minWidth` overflows, so add `max` for anything that reaches a phone',
127
+ "`{minWidth, repeat: 'fit'}`: empty tracks collapse so present items stretch",
128
+ "A numeric `GridSpan` wider than the grid's current columns adds implicit columns to the whole grid; items placed before and after the span flow into them, and `columns='full'` then covers only the explicit columns. In a reflowing grid keep spans within the smallest count it can reach, or use `'full'`, which adds none",
129
+ 'Styling that changes the room columns have to fit changes the count a reflowing shape reaches: a `columnGap` or `gap` step, inline padding on the grid, or `grid-auto-flow: column` through `xstyle`, which places items into extra implicit columns. A `className` rule replaces the computed track list only when it wins the cascade against the generated styles; prefer `xstyle` for overrides',
130
+ ],
131
+ },
132
+ ],
133
+ },
97
134
  ],
98
135
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/cli",
3
- "version": "0.7.1-canary.f11eb6d",
3
+ "version": "0.7.1-canary.f15a900",
4
4
  "displayName": "CLI",
5
5
  "description": "Scaffold projects, browse templates, generate themes, and get agent-ready docs from the command line.",
6
6
  "author": "Meta Open Source",
@@ -101,10 +101,10 @@
101
101
  "zod": "^4.4.3"
102
102
  },
103
103
  "peerDependencies": {
104
- "@astryxdesign/charts": "0.7.1-canary.f11eb6d",
105
- "@astryxdesign/core": "0.7.1-canary.f11eb6d",
106
- "@astryxdesign/lab": "0.7.1-canary.f11eb6d",
107
- "@astryxdesign/theme-neutral": "0.7.1-canary.f11eb6d"
104
+ "@astryxdesign/charts": "0.7.1-canary.f15a900",
105
+ "@astryxdesign/core": "0.7.1-canary.f15a900",
106
+ "@astryxdesign/lab": "0.7.1-canary.f15a900",
107
+ "@astryxdesign/theme-neutral": "0.7.1-canary.f15a900"
108
108
  },
109
109
  "peerDependenciesMeta": {
110
110
  "@astryxdesign/charts": {
@@ -121,10 +121,10 @@
121
121
  }
122
122
  },
123
123
  "devDependencies": {
124
- "@astryxdesign/charts": "0.7.1-canary.f11eb6d",
125
- "@astryxdesign/core": "0.7.1-canary.f11eb6d",
126
- "@astryxdesign/lab": "0.7.1-canary.f11eb6d",
127
- "@astryxdesign/theme-neutral": "0.7.1-canary.f11eb6d",
124
+ "@astryxdesign/charts": "0.7.1-canary.f15a900",
125
+ "@astryxdesign/core": "0.7.1-canary.f15a900",
126
+ "@astryxdesign/lab": "0.7.1-canary.f15a900",
127
+ "@astryxdesign/theme-neutral": "0.7.1-canary.f15a900",
128
128
  "@heroicons/react": "^2.2.0",
129
129
  "@stylexjs/stylex": "^0.19.0",
130
130
  "@types/babel__core": "^7.20.5",