@tscircuit/props 0.0.460 → 0.0.462

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.
@@ -0,0 +1,9 @@
1
+ import { distance } from "circuit-json"
2
+ import { pcbLayoutProps } from "lib/common/layout"
3
+ import { z } from "zod"
4
+ export const courtyardCircleProps = pcbLayoutProps
5
+ .omit({ pcbRotation: true })
6
+ .extend({
7
+ radius: distance,
8
+ })
9
+ export type CourtyardCircleProps = z.input<typeof courtyardCircleProps>
@@ -0,0 +1,11 @@
1
+ import { distance } from "circuit-json"
2
+ import { pcbLayoutProps } from "lib/common/layout"
3
+ import { z } from "zod"
4
+ export const courtyardPillProps = pcbLayoutProps
5
+ .omit({ pcbRotation: true })
6
+ .extend({
7
+ width: distance,
8
+ height: distance,
9
+ radius: distance,
10
+ })
11
+ export type CourtyardPillProps = z.input<typeof courtyardPillProps>
@@ -0,0 +1,17 @@
1
+ import { distance, type Distance } from "lib/common/distance"
2
+ import { expectTypesMatch } from "lib/typecheck"
3
+ import { z } from "zod"
4
+ import { subcircuitGroupProps, type SubcircuitGroupProps } from "./group"
5
+
6
+ export interface MountedBoardProps extends SubcircuitGroupProps {
7
+ boardToBoardDistance?: Distance
8
+ mountOrientation?: "faceDown" | "faceUp"
9
+ }
10
+
11
+ export const mountedboardProps = subcircuitGroupProps.extend({
12
+ boardToBoardDistance: distance.optional(),
13
+ mountOrientation: z.enum(["faceDown", "faceUp"]).optional(),
14
+ })
15
+
16
+ type InferredMountedBoardProps = z.input<typeof mountedboardProps>
17
+ expectTypesMatch<MountedBoardProps, InferredMountedBoardProps>(true)
package/lib/index.ts CHANGED
@@ -52,6 +52,7 @@ export * from "./components/trace"
52
52
  export * from "./components/footprint"
53
53
  export * from "./components/symbol"
54
54
  export * from "./components/battery"
55
+ export * from "./components/mountedboard"
55
56
  export * from "./components/pin-header"
56
57
  export * from "./components/netalias"
57
58
  export * from "./components/netlabel"
@@ -77,6 +78,8 @@ export * from "./components/breakoutpoint"
77
78
  export * from "./components/pcb-keepout"
78
79
  export * from "./components/courtyard-rect"
79
80
  export * from "./components/courtyard-outline"
81
+ export * from "./components/courtyard-circle"
82
+ export * from "./components/courtyard-pill"
80
83
  export * from "./components/copper-pour"
81
84
  export * from "./components/cadassembly"
82
85
  export * from "./components/cadmodel"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.460",
3
+ "version": "0.0.462",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",