@tscircuit/props 0.0.425 → 0.0.427

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.
@@ -32,6 +32,7 @@ export interface BoardProps
32
32
  borderRadius?: Distance
33
33
  thickness?: Distance
34
34
  boardAnchorPosition?: Point
35
+ anchorAlignment?: z.infer<typeof ninePointAnchor>
35
36
  boardAnchorAlignment?: z.infer<typeof ninePointAnchor>
36
37
  /** Color applied to both top and bottom solder masks */
37
38
  solderMaskColor?: BoardColor
@@ -67,7 +68,10 @@ export const boardProps = subcircuitGroupProps
67
68
  borderRadius: distance.optional(),
68
69
  thickness: distance.optional(),
69
70
  boardAnchorPosition: point.optional(),
70
- boardAnchorAlignment: ninePointAnchor.optional(),
71
+ anchorAlignment: ninePointAnchor.optional(),
72
+ boardAnchorAlignment: ninePointAnchor
73
+ .optional()
74
+ .describe("Prefer using anchorAlignment when possible"),
71
75
  title: z.string().optional(),
72
76
  solderMaskColor: boardColor.optional(),
73
77
  topSolderMaskColor: boardColor.optional(),
@@ -1,4 +1,5 @@
1
1
  import { distance, type Distance } from "lib/common/distance"
2
+ import { ninePointAnchor } from "lib/common/ninePointAnchor"
2
3
  import { expectTypesMatch } from "lib/typecheck"
3
4
  import { z } from "zod"
4
5
  import { baseGroupProps, type BaseGroupProps } from "./group"
@@ -8,6 +9,7 @@ export interface PanelProps
8
9
  width?: Distance
9
10
  height?: Distance
10
11
  children?: BaseGroupProps["children"]
12
+ anchorAlignment?: z.infer<typeof ninePointAnchor>
11
13
  /**
12
14
  * If true, prevent a solder mask from being applied to this panel.
13
15
  */
@@ -24,6 +26,11 @@ export interface PanelProps
24
26
  tabWidth?: Distance
25
27
  tabLength?: Distance
26
28
  mouseBites?: boolean
29
+ edgePadding?: Distance
30
+ edgePaddingLeft?: Distance
31
+ edgePaddingRight?: Distance
32
+ edgePaddingTop?: Distance
33
+ edgePaddingBottom?: Distance
27
34
  }
28
35
 
29
36
  export const panelProps = baseGroupProps
@@ -37,6 +44,7 @@ export const panelProps = baseGroupProps
37
44
  width: distance.optional(),
38
45
  height: distance.optional(),
39
46
  children: z.any().optional(),
47
+ anchorAlignment: ninePointAnchor.optional(),
40
48
  noSolderMask: z.boolean().optional(),
41
49
  panelizationMethod: z.enum(["tab-routing", "none"]).optional(),
42
50
  boardGap: distance.optional(),
@@ -48,6 +56,11 @@ export const panelProps = baseGroupProps
48
56
  tabWidth: distance.optional(),
49
57
  tabLength: distance.optional(),
50
58
  mouseBites: z.boolean().optional(),
59
+ edgePadding: distance.optional(),
60
+ edgePaddingLeft: distance.optional(),
61
+ edgePaddingRight: distance.optional(),
62
+ edgePaddingTop: distance.optional(),
63
+ edgePaddingBottom: distance.optional(),
51
64
  })
52
65
 
53
66
  type InferredPanelProps = z.input<typeof panelProps>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.425",
3
+ "version": "0.0.427",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",