@tscircuit/props 0.0.255 → 0.0.256

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.
@@ -40,6 +40,10 @@ export interface ChipPropsSU<PinLabel extends string = string>
40
40
  * Whether to show pin aliases in the schematic
41
41
  */
42
42
  showPinAliases?: boolean
43
+ /**
44
+ * Labels for PCB pins
45
+ */
46
+ pcbPinLabels?: Record<string, string>
43
47
  schPinArrangement?: SchematicPortArrangement
44
48
  /** @deprecated Use schPinArrangement instead. */
45
49
  schPortArrangement?: SchematicPortArrangement
@@ -126,6 +130,7 @@ export const chipProps = commonComponentProps.extend({
126
130
  manufacturerPartNumber: z.string().optional(),
127
131
  pinLabels: pinLabelsProp.optional(),
128
132
  showPinAliases: z.boolean().optional(),
133
+ pcbPinLabels: z.record(z.string(), z.string()).optional(),
129
134
  internallyConnectedPins: z.array(z.array(z.string())).optional(),
130
135
  externallyConnectedPins: z.array(z.array(z.string())).optional(),
131
136
  schPinArrangement: schematicPinArrangement.optional(),
@@ -25,6 +25,10 @@ export interface JumperProps extends CommonComponentProps {
25
25
  schHeight?: number | string
26
26
  schDirection?: "left" | "right"
27
27
  schPortArrangement?: SchematicPortArrangement
28
+ /**
29
+ * Labels for PCB pins
30
+ */
31
+ pcbPinLabels?: Record<string, string>
28
32
  /**
29
33
  * Number of pins on the jumper (2 or 3)
30
34
  */
@@ -51,6 +55,7 @@ export const jumperProps = commonComponentProps.extend({
51
55
  schHeight: distance.optional(),
52
56
  schDirection: z.enum(["left", "right"]).optional(),
53
57
  schPortArrangement: schematicPortArrangement.optional(),
58
+ pcbPinLabels: z.record(z.string(), z.string()).optional(),
54
59
  pinCount: z.union([z.literal(2), z.literal(3)]).optional(),
55
60
  internallyConnectedPins: z.array(z.array(z.string())).optional(),
56
61
  connections: z
@@ -42,6 +42,11 @@ export interface PinHeaderProps extends CommonComponentProps {
42
42
  */
43
43
  showSilkscreenPinLabels?: boolean
44
44
 
45
+ /**
46
+ * Labels for PCB pins
47
+ */
48
+ pcbPinLabels?: Record<string, string>
49
+
45
50
  /**
46
51
  * Whether the header has two rows of pins
47
52
  */
@@ -104,6 +109,7 @@ export const pinHeaderProps = commonComponentProps.extend({
104
109
  schFacingDirection: z.enum(["up", "down", "left", "right"]).optional(),
105
110
  gender: z.enum(["male", "female"]).optional().default("male"),
106
111
  showSilkscreenPinLabels: z.boolean().optional(),
112
+ pcbPinLabels: z.record(z.string(), z.string()).optional(),
107
113
  doubleRow: z.boolean().optional(),
108
114
  holeDiameter: distance.optional(),
109
115
  platedDiameter: distance.optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.255",
3
+ "version": "0.0.256",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",