@tscircuit/props 0.0.263 → 0.0.264

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.
@@ -35,6 +35,15 @@ export const layoutConfig = z.object({
35
35
  flexColumn: z.boolean().optional(),
36
36
  gap: z.number().or(z.string()).optional(),
37
37
 
38
+ pack: z
39
+ .boolean()
40
+ .optional()
41
+ .describe("Pack the contents of this group using a packing strategy"),
42
+ packOrderStrategy: z.enum(["largest_to_smallest"]).optional(),
43
+ packPlacementStrategy: z
44
+ .enum(["shortest_connection_along_outline"])
45
+ .optional(),
46
+
38
47
  padding: length.optional(),
39
48
  paddingLeft: length.optional(),
40
49
  paddingRight: length.optional(),
@@ -70,6 +79,10 @@ export interface LayoutConfig {
70
79
  flexColumn?: boolean
71
80
  gap?: number | string
72
81
 
82
+ pack?: boolean
83
+ packOrderStrategy?: "largest_to_smallest"
84
+ packPlacementStrategy?: "shortest_connection_along_outline"
85
+
73
86
  padding?: Distance
74
87
  paddingLeft?: Distance
75
88
  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.264",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",