@tscircuit/props 0.0.263 → 0.0.265

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.
@@ -30,11 +30,30 @@ export const layoutConfig = z.object({
30
30
  flex: z.boolean().or(z.string()).optional(),
31
31
  flexDirection: z.enum(["row", "column"]).optional(),
32
32
  alignItems: z.enum(["start", "center", "end", "stretch"]).optional(),
33
- justifyContent: z.enum(["start", "center", "end", "stretch"]).optional(),
33
+ justifyContent: z
34
+ .enum([
35
+ "start",
36
+ "center",
37
+ "end",
38
+ "stretch",
39
+ "space-between",
40
+ "space-around",
41
+ "space-evenly",
42
+ ])
43
+ .optional(),
34
44
  flexRow: z.boolean().optional(),
35
45
  flexColumn: z.boolean().optional(),
36
46
  gap: z.number().or(z.string()).optional(),
37
47
 
48
+ pack: z
49
+ .boolean()
50
+ .optional()
51
+ .describe("Pack the contents of this group using a packing strategy"),
52
+ packOrderStrategy: z.enum(["largest_to_smallest"]).optional(),
53
+ packPlacementStrategy: z
54
+ .enum(["shortest_connection_along_outline"])
55
+ .optional(),
56
+
38
57
  padding: length.optional(),
39
58
  paddingLeft: length.optional(),
40
59
  paddingRight: length.optional(),
@@ -65,11 +84,22 @@ export interface LayoutConfig {
65
84
  flex?: boolean | string
66
85
  flexDirection?: "row" | "column"
67
86
  alignItems?: "start" | "center" | "end" | "stretch"
68
- justifyContent?: "start" | "center" | "end" | "stretch"
87
+ justifyContent?:
88
+ | "start"
89
+ | "center"
90
+ | "end"
91
+ | "stretch"
92
+ | "space-between"
93
+ | "space-around"
94
+ | "space-evenly"
69
95
  flexRow?: boolean
70
96
  flexColumn?: boolean
71
97
  gap?: number | string
72
98
 
99
+ pack?: boolean
100
+ packOrderStrategy?: "largest_to_smallest"
101
+ packPlacementStrategy?: "shortest_connection_along_outline"
102
+
73
103
  padding?: Distance
74
104
  paddingLeft?: Distance
75
105
  paddingRight?: Distance
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.263",
3
+ "version": "0.0.265",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",