@vinyasa/layout 1.0.24 → 1.0.25

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/dist/cjs/grid.cjs CHANGED
@@ -250,21 +250,23 @@ var __webpack_exports__ = {};
250
250
  start: 'w86wcg7',
251
251
  center: 'w86wcg8',
252
252
  end: 'w86wcg9',
253
- stretch: 'w86wcga'
253
+ stretch: 'w86wcga',
254
+ baseline: 'w86wcgb'
254
255
  },
255
256
  justify: {
256
- start: 'w86wcgb',
257
- center: 'w86wcgc',
258
- end: 'w86wcgd',
259
- between: 'w86wcge',
260
- around: 'w86wcgf'
257
+ start: 'w86wcgc',
258
+ center: 'w86wcgd',
259
+ end: 'w86wcge',
260
+ between: 'w86wcgf',
261
+ around: 'w86wcgg',
262
+ evenly: 'w86wcgh'
261
263
  },
262
264
  flow: {
263
- row: 'w86wcgg',
264
- column: 'w86wcgh',
265
- dense: 'w86wcgi',
266
- 'row-dense': 'w86wcgj',
267
- 'column-dense': 'w86wcgk'
265
+ row: 'w86wcgi',
266
+ column: 'w86wcgj',
267
+ dense: 'w86wcgk',
268
+ 'row-dense': 'w86wcgl',
269
+ 'column-dense': 'w86wcgm'
268
270
  }
269
271
  },
270
272
  defaultVariants: {},
package/dist/cjs/grid.css CHANGED
@@ -43,42 +43,50 @@
43
43
  }
44
44
 
45
45
  .w86wcgb {
46
- justify-content: flex-start;
46
+ align-items: baseline;
47
47
  }
48
48
 
49
49
  .w86wcgc {
50
- justify-content: center;
50
+ justify-content: flex-start;
51
51
  }
52
52
 
53
53
  .w86wcgd {
54
- justify-content: flex-end;
54
+ justify-content: center;
55
55
  }
56
56
 
57
57
  .w86wcge {
58
- justify-content: space-between;
58
+ justify-content: flex-end;
59
59
  }
60
60
 
61
61
  .w86wcgf {
62
- justify-content: space-around;
62
+ justify-content: space-between;
63
63
  }
64
64
 
65
65
  .w86wcgg {
66
- grid-auto-flow: row;
66
+ justify-content: space-around;
67
67
  }
68
68
 
69
69
  .w86wcgh {
70
- grid-auto-flow: column;
70
+ justify-content: space-evenly;
71
71
  }
72
72
 
73
73
  .w86wcgi {
74
- grid-auto-flow: dense;
74
+ grid-auto-flow: row;
75
75
  }
76
76
 
77
77
  .w86wcgj {
78
- grid-auto-flow: row dense;
78
+ grid-auto-flow: column;
79
79
  }
80
80
 
81
81
  .w86wcgk {
82
+ grid-auto-flow: dense;
83
+ }
84
+
85
+ .w86wcgl {
86
+ grid-auto-flow: row dense;
87
+ }
88
+
89
+ .w86wcgm {
82
90
  grid-auto-flow: column dense;
83
91
  }
84
92
 
@@ -915,7 +915,7 @@ var __webpack_modules__ = {
915
915
  default: __rspack_default_export
916
916
  });
917
917
  },
918
- 13 (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
918
+ 52 (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
919
919
  __webpack_require__.d(__webpack_exports__, {
920
920
  default: ()=>components_grid
921
921
  });
@@ -938,21 +938,23 @@ var __webpack_modules__ = {
938
938
  start: 'w86wcg7',
939
939
  center: 'w86wcg8',
940
940
  end: 'w86wcg9',
941
- stretch: 'w86wcga'
941
+ stretch: 'w86wcga',
942
+ baseline: 'w86wcgb'
942
943
  },
943
944
  justify: {
944
- start: 'w86wcgb',
945
- center: 'w86wcgc',
946
- end: 'w86wcgd',
947
- between: 'w86wcge',
948
- around: 'w86wcgf'
945
+ start: 'w86wcgc',
946
+ center: 'w86wcgd',
947
+ end: 'w86wcge',
948
+ between: 'w86wcgf',
949
+ around: 'w86wcgg',
950
+ evenly: 'w86wcgh'
949
951
  },
950
952
  flow: {
951
- row: 'w86wcgg',
952
- column: 'w86wcgh',
953
- dense: 'w86wcgi',
954
- 'row-dense': 'w86wcgj',
955
- 'column-dense': 'w86wcgk'
953
+ row: 'w86wcgi',
954
+ column: 'w86wcgj',
955
+ dense: 'w86wcgk',
956
+ 'row-dense': 'w86wcgl',
957
+ 'column-dense': 'w86wcgm'
956
958
  }
957
959
  },
958
960
  defaultVariants: {},
@@ -1766,7 +1768,7 @@ var __webpack_exports__ = {};
1766
1768
  var _components_container__rspack_import_3 = __webpack_require__(445);
1767
1769
  var _components_divider__rspack_import_4 = __webpack_require__(635);
1768
1770
  var _components_flex__rspack_import_5 = __webpack_require__(205);
1769
- var _components_grid__rspack_import_6 = __webpack_require__(13);
1771
+ var _components_grid__rspack_import_6 = __webpack_require__(52);
1770
1772
  var _components_inline__rspack_import_7 = __webpack_require__(685);
1771
1773
  var _components_portal__rspack_import_8 = __webpack_require__(4);
1772
1774
  var _components_scroll_area__rspack_import_9 = __webpack_require__(778);
@@ -178,42 +178,50 @@
178
178
  }
179
179
 
180
180
  .w86wcgb {
181
- justify-content: flex-start;
181
+ align-items: baseline;
182
182
  }
183
183
 
184
184
  .w86wcgc {
185
- justify-content: center;
185
+ justify-content: flex-start;
186
186
  }
187
187
 
188
188
  .w86wcgd {
189
- justify-content: flex-end;
189
+ justify-content: center;
190
190
  }
191
191
 
192
192
  .w86wcge {
193
- justify-content: space-between;
193
+ justify-content: flex-end;
194
194
  }
195
195
 
196
196
  .w86wcgf {
197
- justify-content: space-around;
197
+ justify-content: space-between;
198
198
  }
199
199
 
200
200
  .w86wcgg {
201
- grid-auto-flow: row;
201
+ justify-content: space-around;
202
202
  }
203
203
 
204
204
  .w86wcgh {
205
- grid-auto-flow: column;
205
+ justify-content: space-evenly;
206
206
  }
207
207
 
208
208
  .w86wcgi {
209
- grid-auto-flow: dense;
209
+ grid-auto-flow: row;
210
210
  }
211
211
 
212
212
  .w86wcgj {
213
- grid-auto-flow: row dense;
213
+ grid-auto-flow: column;
214
214
  }
215
215
 
216
216
  .w86wcgk {
217
+ grid-auto-flow: dense;
218
+ }
219
+
220
+ .w86wcgl {
221
+ grid-auto-flow: row dense;
222
+ }
223
+
224
+ .w86wcgm {
217
225
  grid-auto-flow: column dense;
218
226
  }
219
227
 
@@ -8,40 +8,40 @@ export declare const flex: import("@vanilla-extract/recipes").RuntimeFn<{
8
8
  };
9
9
  };
10
10
  align: {
11
- start: {
12
- alignItems: "flex-start";
11
+ readonly start: {
12
+ readonly alignItems: "flex-start";
13
13
  };
14
- center: {
15
- alignItems: "center";
14
+ readonly center: {
15
+ readonly alignItems: "center";
16
16
  };
17
- end: {
18
- alignItems: "flex-end";
17
+ readonly end: {
18
+ readonly alignItems: "flex-end";
19
19
  };
20
- stretch: {
21
- alignItems: "stretch";
20
+ readonly stretch: {
21
+ readonly alignItems: "stretch";
22
22
  };
23
- baseline: {
24
- alignItems: "baseline";
23
+ readonly baseline: {
24
+ readonly alignItems: "baseline";
25
25
  };
26
26
  };
27
27
  justify: {
28
- start: {
29
- justifyContent: "flex-start";
28
+ readonly start: {
29
+ readonly justifyContent: "flex-start";
30
30
  };
31
- center: {
32
- justifyContent: "center";
31
+ readonly center: {
32
+ readonly justifyContent: "center";
33
33
  };
34
- end: {
35
- justifyContent: "flex-end";
34
+ readonly end: {
35
+ readonly justifyContent: "flex-end";
36
36
  };
37
- between: {
38
- justifyContent: "space-between";
37
+ readonly between: {
38
+ readonly justifyContent: "space-between";
39
39
  };
40
- around: {
41
- justifyContent: "space-around";
40
+ readonly around: {
41
+ readonly justifyContent: "space-around";
42
42
  };
43
- evenly: {
44
- justifyContent: "space-evenly";
43
+ readonly evenly: {
44
+ readonly justifyContent: "space-evenly";
45
45
  };
46
46
  };
47
47
  wrap: {
@@ -53,23 +53,23 @@ export declare const flex: import("@vanilla-extract/recipes").RuntimeFn<{
53
53
  };
54
54
  };
55
55
  gap: {
56
- 1: {
57
- gap: `var(--${string})`;
56
+ readonly 1: {
57
+ readonly gap: `var(--${string})`;
58
58
  };
59
- 2: {
60
- gap: `var(--${string})`;
59
+ readonly 2: {
60
+ readonly gap: `var(--${string})`;
61
61
  };
62
- 3: {
63
- gap: `var(--${string})`;
62
+ readonly 3: {
63
+ readonly gap: `var(--${string})`;
64
64
  };
65
- 4: {
66
- gap: `var(--${string})`;
65
+ readonly 4: {
66
+ readonly gap: `var(--${string})`;
67
67
  };
68
- 5: {
69
- gap: `var(--${string})`;
68
+ readonly 5: {
69
+ readonly gap: `var(--${string})`;
70
70
  };
71
- 6: {
72
- gap: `var(--${string})`;
71
+ readonly 6: {
72
+ readonly gap: `var(--${string})`;
73
73
  };
74
74
  };
75
75
  }>;
@@ -6,7 +6,7 @@ type FlexVariants = RecipeVariants<typeof flex>;
6
6
  export type FlexProps = PolymorphicProps & FlexVariants & SpacingProps;
7
7
  declare const Flex: import("react").ForwardRefExoticComponent<PolymorphicProps & {
8
8
  direction?: "column" | "row" | undefined;
9
- align?: "center" | "stretch" | "end" | "start" | "baseline" | undefined;
9
+ align?: "center" | "stretch" | "baseline" | "end" | "start" | undefined;
10
10
  justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | undefined;
11
11
  wrap?: "nowrap" | "wrap" | undefined;
12
12
  gap?: 1 | 2 | 3 | 4 | 5 | 6 | undefined;
@@ -1,53 +1,59 @@
1
1
  export declare const grid: import("@vanilla-extract/recipes").RuntimeFn<{
2
2
  gap: {
3
- 1: {
4
- gap: `var(--${string})`;
3
+ readonly 1: {
4
+ readonly gap: `var(--${string})`;
5
5
  };
6
- 2: {
7
- gap: `var(--${string})`;
6
+ readonly 2: {
7
+ readonly gap: `var(--${string})`;
8
8
  };
9
- 3: {
10
- gap: `var(--${string})`;
9
+ readonly 3: {
10
+ readonly gap: `var(--${string})`;
11
11
  };
12
- 4: {
13
- gap: `var(--${string})`;
12
+ readonly 4: {
13
+ readonly gap: `var(--${string})`;
14
14
  };
15
- 5: {
16
- gap: `var(--${string})`;
15
+ readonly 5: {
16
+ readonly gap: `var(--${string})`;
17
17
  };
18
- 6: {
19
- gap: `var(--${string})`;
18
+ readonly 6: {
19
+ readonly gap: `var(--${string})`;
20
20
  };
21
21
  };
22
22
  align: {
23
- start: {
24
- alignItems: "flex-start";
23
+ readonly start: {
24
+ readonly alignItems: "flex-start";
25
25
  };
26
- center: {
27
- alignItems: "center";
26
+ readonly center: {
27
+ readonly alignItems: "center";
28
28
  };
29
- end: {
30
- alignItems: "flex-end";
29
+ readonly end: {
30
+ readonly alignItems: "flex-end";
31
31
  };
32
- stretch: {
33
- alignItems: "stretch";
32
+ readonly stretch: {
33
+ readonly alignItems: "stretch";
34
+ };
35
+ readonly baseline: {
36
+ readonly alignItems: "baseline";
34
37
  };
35
38
  };
36
39
  justify: {
37
- start: {
38
- justifyContent: "flex-start";
40
+ readonly start: {
41
+ readonly justifyContent: "flex-start";
42
+ };
43
+ readonly center: {
44
+ readonly justifyContent: "center";
39
45
  };
40
- center: {
41
- justifyContent: "center";
46
+ readonly end: {
47
+ readonly justifyContent: "flex-end";
42
48
  };
43
- end: {
44
- justifyContent: "flex-end";
49
+ readonly between: {
50
+ readonly justifyContent: "space-between";
45
51
  };
46
- between: {
47
- justifyContent: "space-between";
52
+ readonly around: {
53
+ readonly justifyContent: "space-around";
48
54
  };
49
- around: {
50
- justifyContent: "space-around";
55
+ readonly evenly: {
56
+ readonly justifyContent: "space-evenly";
51
57
  };
52
58
  };
53
59
  flow: {
@@ -11,8 +11,8 @@ export type GridProps = PolymorphicProps & GridVariants & SpacingProps & {
11
11
  };
12
12
  declare const Grid: import("react").ForwardRefExoticComponent<PolymorphicProps & {
13
13
  gap?: 1 | 2 | 3 | 4 | 5 | 6 | undefined;
14
- align?: "center" | "stretch" | "end" | "start" | undefined;
15
- justify?: "center" | "end" | "start" | "between" | "around" | undefined;
14
+ align?: "center" | "stretch" | "baseline" | "end" | "start" | undefined;
15
+ justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | undefined;
16
16
  flow?: "column" | "row" | "dense" | "row-dense" | "column-dense" | undefined;
17
17
  } & SpacingProps & {
18
18
  /** Number of equal-width columns, or a raw `grid-template-columns` value for advanced layouts. */
@@ -0,0 +1,57 @@
1
+ export declare const gapVariants: {
2
+ readonly 1: {
3
+ readonly gap: `var(--${string})`;
4
+ };
5
+ readonly 2: {
6
+ readonly gap: `var(--${string})`;
7
+ };
8
+ readonly 3: {
9
+ readonly gap: `var(--${string})`;
10
+ };
11
+ readonly 4: {
12
+ readonly gap: `var(--${string})`;
13
+ };
14
+ readonly 5: {
15
+ readonly gap: `var(--${string})`;
16
+ };
17
+ readonly 6: {
18
+ readonly gap: `var(--${string})`;
19
+ };
20
+ };
21
+ export declare const alignItemsVariants: {
22
+ readonly start: {
23
+ readonly alignItems: "flex-start";
24
+ };
25
+ readonly center: {
26
+ readonly alignItems: "center";
27
+ };
28
+ readonly end: {
29
+ readonly alignItems: "flex-end";
30
+ };
31
+ readonly stretch: {
32
+ readonly alignItems: "stretch";
33
+ };
34
+ readonly baseline: {
35
+ readonly alignItems: "baseline";
36
+ };
37
+ };
38
+ export declare const justifyContentVariants: {
39
+ readonly start: {
40
+ readonly justifyContent: "flex-start";
41
+ };
42
+ readonly center: {
43
+ readonly justifyContent: "center";
44
+ };
45
+ readonly end: {
46
+ readonly justifyContent: "flex-end";
47
+ };
48
+ readonly between: {
49
+ readonly justifyContent: "space-between";
50
+ };
51
+ readonly around: {
52
+ readonly justifyContent: "space-around";
53
+ };
54
+ readonly evenly: {
55
+ readonly justifyContent: "space-evenly";
56
+ };
57
+ };
package/dist/esm/grid.css CHANGED
@@ -43,42 +43,50 @@
43
43
  }
44
44
 
45
45
  .w86wcgb {
46
- justify-content: flex-start;
46
+ align-items: baseline;
47
47
  }
48
48
 
49
49
  .w86wcgc {
50
- justify-content: center;
50
+ justify-content: flex-start;
51
51
  }
52
52
 
53
53
  .w86wcgd {
54
- justify-content: flex-end;
54
+ justify-content: center;
55
55
  }
56
56
 
57
57
  .w86wcge {
58
- justify-content: space-between;
58
+ justify-content: flex-end;
59
59
  }
60
60
 
61
61
  .w86wcgf {
62
- justify-content: space-around;
62
+ justify-content: space-between;
63
63
  }
64
64
 
65
65
  .w86wcgg {
66
- grid-auto-flow: row;
66
+ justify-content: space-around;
67
67
  }
68
68
 
69
69
  .w86wcgh {
70
- grid-auto-flow: column;
70
+ justify-content: space-evenly;
71
71
  }
72
72
 
73
73
  .w86wcgi {
74
- grid-auto-flow: dense;
74
+ grid-auto-flow: row;
75
75
  }
76
76
 
77
77
  .w86wcgj {
78
- grid-auto-flow: row dense;
78
+ grid-auto-flow: column;
79
79
  }
80
80
 
81
81
  .w86wcgk {
82
+ grid-auto-flow: dense;
83
+ }
84
+
85
+ .w86wcgl {
86
+ grid-auto-flow: row dense;
87
+ }
88
+
89
+ .w86wcgm {
82
90
  grid-auto-flow: column dense;
83
91
  }
84
92
 
package/dist/esm/grid.js CHANGED
@@ -18,21 +18,23 @@ var grid = createRuntimeFn({
18
18
  start: 'w86wcg7',
19
19
  center: 'w86wcg8',
20
20
  end: 'w86wcg9',
21
- stretch: 'w86wcga'
21
+ stretch: 'w86wcga',
22
+ baseline: 'w86wcgb'
22
23
  },
23
24
  justify: {
24
- start: 'w86wcgb',
25
- center: 'w86wcgc',
26
- end: 'w86wcgd',
27
- between: 'w86wcge',
28
- around: 'w86wcgf'
25
+ start: 'w86wcgc',
26
+ center: 'w86wcgd',
27
+ end: 'w86wcge',
28
+ between: 'w86wcgf',
29
+ around: 'w86wcgg',
30
+ evenly: 'w86wcgh'
29
31
  },
30
32
  flow: {
31
- row: 'w86wcgg',
32
- column: 'w86wcgh',
33
- dense: 'w86wcgi',
34
- 'row-dense': 'w86wcgj',
35
- 'column-dense': 'w86wcgk'
33
+ row: 'w86wcgi',
34
+ column: 'w86wcgj',
35
+ dense: 'w86wcgk',
36
+ 'row-dense': 'w86wcgl',
37
+ 'column-dense': 'w86wcgm'
36
38
  }
37
39
  },
38
40
  defaultVariants: {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vinyasa/layout",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -119,7 +119,7 @@
119
119
  "peerDependencies": {
120
120
  "react": "^18.0.0 || ^19.0.0",
121
121
  "react-dom": "^18.0.0 || ^19.0.0",
122
- "@vinyasa/tokens": "^1.0.24"
122
+ "@vinyasa/tokens": "^1.0.25"
123
123
  },
124
124
  "dependencies": {
125
125
  "@radix-ui/react-scroll-area": "^1.2.18"
@@ -136,7 +136,7 @@
136
136
  "@vanilla-extract/vite-plugin": "^5.2.3",
137
137
  "@vanilla-extract/webpack-plugin": "^2.3.27",
138
138
  "typescript": "^5.7.3",
139
- "@vinyasa/tokens": "1.0.24"
139
+ "@vinyasa/tokens": "1.0.25"
140
140
  },
141
141
  "scripts": {
142
142
  "build": "rslib build && node ../../scripts/postbuild-package.mjs",