@tscircuit/props 0.0.566 → 0.0.567

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.
@@ -4,6 +4,8 @@ import {
4
4
  commonComponentProps,
5
5
  } from "lib/common/layout"
6
6
  import { connectionTarget } from "lib/common/connectionsProp"
7
+ import type { SchematicPinLabel } from "lib/common/schematicPinLabel"
8
+ import { type PinLabelsProp, pinLabelsProp } from "lib/components/chip"
7
9
  import type { Connections } from "lib/utility-types/connections-and-selectors"
8
10
  import { expectTypesMatch } from "lib/typecheck"
9
11
 
@@ -11,6 +13,7 @@ import { z } from "zod"
11
13
 
12
14
  export interface SwitchProps extends CommonComponentProps {
13
15
  type?: "spst" | "spdt" | "dpst" | "dpdt"
16
+ pinLabels?: PinLabelsProp<SchematicPinLabel>
14
17
  isNormallyClosed?: boolean
15
18
  spdt?: boolean
16
19
  spst?: boolean
@@ -32,6 +35,7 @@ export const switchProps = commonComponentProps
32
35
  spdt: z.boolean().optional(),
33
36
  dpst: z.boolean().optional(),
34
37
  dpdt: z.boolean().optional(),
38
+ pinLabels: pinLabelsProp.optional(),
35
39
  simSwitchFrequency: frequency.optional(),
36
40
  simCloseAt: ms.optional(),
37
41
  simOpenAt: ms.optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.566",
3
+ "version": "0.0.567",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",