@tscircuit/props 0.0.229 → 0.0.231
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.
- package/dist/index.d.ts +119 -119
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/lib/common/footprintProp.ts +2 -2
- package/lib/common/layout.ts +2 -2
- package/lib/components/schematic-box.ts +1 -1
- package/package.json +1 -1
|
@@ -19,5 +19,5 @@ export type FootprintSoupElements = {
|
|
|
19
19
|
portHints?: string[]
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
export type
|
|
23
|
-
export const footprintProp = z.custom<
|
|
22
|
+
export type FootprintProp = string | ReactElement | FootprintSoupElements[]
|
|
23
|
+
export const footprintProp = z.custom<FootprintProp>((v) => true)
|
package/lib/common/layout.ts
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import { expectTypesMatch } from "lib/typecheck"
|
|
9
9
|
import { z } from "zod"
|
|
10
10
|
import { type CadModelProp, cadModelProp } from "./cadModel"
|
|
11
|
-
import { type
|
|
11
|
+
import { type FootprintProp, footprintProp } from "./footprintProp"
|
|
12
12
|
|
|
13
13
|
export interface PcbLayoutProps {
|
|
14
14
|
pcbX?: string | number
|
|
@@ -27,7 +27,7 @@ export interface CommonLayoutProps {
|
|
|
27
27
|
schRotation?: string | number
|
|
28
28
|
|
|
29
29
|
layer?: LayerRefInput
|
|
30
|
-
footprint?:
|
|
30
|
+
footprint?: FootprintProp
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
export const pcbLayoutProps = z.object({
|
|
@@ -17,7 +17,7 @@ export const schematicBoxProps = z
|
|
|
17
17
|
paddingBottom: distance.optional(),
|
|
18
18
|
|
|
19
19
|
title: z.string().optional(),
|
|
20
|
-
titleAlignment: ninePointAnchor.default("
|
|
20
|
+
titleAlignment: ninePointAnchor.default("top_left"),
|
|
21
21
|
titleColor: z.string().optional(),
|
|
22
22
|
titleFontSize: distance.optional(),
|
|
23
23
|
titleInside: z.boolean().default(false),
|