@tscircuit/props 0.0.432 → 0.0.434

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.
@@ -2,11 +2,19 @@ import {
2
2
  type CommonComponentProps,
3
3
  commonComponentProps,
4
4
  } from "lib/common/layout"
5
+ import {
6
+ schematicPinLabel,
7
+ type SchematicPinLabel,
8
+ } from "lib/common/schematicPinLabel"
5
9
  import { expectTypesMatch } from "lib/typecheck"
6
10
  import { z } from "zod"
7
11
 
8
12
  export interface InterconnectProps extends CommonComponentProps {
9
13
  standard?: "TSC0001_36P_XALT_2025_11" | "0805" | "0603" | "1206"
14
+ pinLabels?: Record<
15
+ number | SchematicPinLabel,
16
+ SchematicPinLabel | SchematicPinLabel[]
17
+ >
10
18
  /**
11
19
  * Groups of pins that are internally connected
12
20
  * e.g., [["1","2"], ["2","3"]]
@@ -18,6 +26,12 @@ export const interconnectProps = commonComponentProps.extend({
18
26
  standard: z
19
27
  .enum(["TSC0001_36P_XALT_2025_11", "0805", "0603", "1206"])
20
28
  .optional(),
29
+ pinLabels: z
30
+ .record(
31
+ z.number().or(schematicPinLabel),
32
+ schematicPinLabel.or(z.array(schematicPinLabel)),
33
+ )
34
+ .optional(),
21
35
  internallyConnectedPins: z
22
36
  .array(z.array(z.union([z.string(), z.number()])))
23
37
  .optional(),
@@ -83,8 +83,8 @@ export interface PillWithRectPadPlatedHoleProps
83
83
  name?: string
84
84
  connectsTo?: string | string[]
85
85
  shape: "pill_hole_with_rect_pad"
86
- holeShape: "pill"
87
- padShape: "rect"
86
+ holeShape?: "pill"
87
+ padShape?: "rect"
88
88
  holeWidth: number | string
89
89
  holeHeight: number | string
90
90
  rectPadWidth: number | string
@@ -192,8 +192,8 @@ export const platedHoleProps = z
192
192
  name: z.string().optional(),
193
193
  connectsTo: z.string().or(z.array(z.string())).optional(),
194
194
  shape: z.literal("pill_hole_with_rect_pad"),
195
- holeShape: z.literal("pill"),
196
- padShape: z.literal("rect"),
195
+ holeShape: z.literal("pill").optional(),
196
+ padShape: z.literal("rect").optional(),
197
197
  holeWidth: distance,
198
198
  holeHeight: distance,
199
199
  rectPadWidth: distance,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.432",
3
+ "version": "0.0.434",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",