@vinyasa/layout 1.0.23 → 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.
@@ -8,34 +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
+ };
23
+ readonly baseline: {
24
+ readonly alignItems: "baseline";
22
25
  };
23
26
  };
24
27
  justify: {
25
- start: {
26
- justifyContent: "flex-start";
28
+ readonly start: {
29
+ readonly justifyContent: "flex-start";
30
+ };
31
+ readonly center: {
32
+ readonly justifyContent: "center";
27
33
  };
28
- center: {
29
- justifyContent: "center";
34
+ readonly end: {
35
+ readonly justifyContent: "flex-end";
30
36
  };
31
- end: {
32
- justifyContent: "flex-end";
37
+ readonly between: {
38
+ readonly justifyContent: "space-between";
33
39
  };
34
- between: {
35
- justifyContent: "space-between";
40
+ readonly around: {
41
+ readonly justifyContent: "space-around";
36
42
  };
37
- around: {
38
- justifyContent: "space-around";
43
+ readonly evenly: {
44
+ readonly justifyContent: "space-evenly";
39
45
  };
40
46
  };
41
47
  wrap: {
@@ -47,23 +53,23 @@ export declare const flex: import("@vanilla-extract/recipes").RuntimeFn<{
47
53
  };
48
54
  };
49
55
  gap: {
50
- 1: {
51
- gap: `var(--${string})`;
56
+ readonly 1: {
57
+ readonly gap: `var(--${string})`;
52
58
  };
53
- 2: {
54
- gap: `var(--${string})`;
59
+ readonly 2: {
60
+ readonly gap: `var(--${string})`;
55
61
  };
56
- 3: {
57
- gap: `var(--${string})`;
62
+ readonly 3: {
63
+ readonly gap: `var(--${string})`;
58
64
  };
59
- 4: {
60
- gap: `var(--${string})`;
65
+ readonly 4: {
66
+ readonly gap: `var(--${string})`;
61
67
  };
62
- 5: {
63
- gap: `var(--${string})`;
68
+ readonly 5: {
69
+ readonly gap: `var(--${string})`;
64
70
  };
65
- 6: {
66
- gap: `var(--${string})`;
71
+ readonly 6: {
72
+ readonly gap: `var(--${string})`;
67
73
  };
68
74
  };
69
75
  }>;
@@ -6,8 +6,8 @@ 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" | undefined;
10
- justify?: "center" | "end" | "start" | "between" | "around" | undefined;
9
+ align?: "center" | "stretch" | "baseline" | "end" | "start" | undefined;
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;
13
13
  } & SpacingProps & import("react").RefAttributes<HTMLElement>>;
@@ -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.23",
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.23"
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.23"
139
+ "@vinyasa/tokens": "1.0.25"
140
140
  },
141
141
  "scripts": {
142
142
  "build": "rslib build && node ../../scripts/postbuild-package.mjs",