@tscircuit/props 0.0.566 → 0.0.568

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/README.md CHANGED
@@ -1848,6 +1848,7 @@ export type SubcircuitProps = SubcircuitGroupProps;
1848
1848
  ```ts
1849
1849
  export interface SwitchProps extends CommonComponentProps {
1850
1850
  type?: "spst" | "spdt" | "dpst" | "dpdt";
1851
+ pinLabels?: PinLabelsProp<SchematicPinLabel>;
1851
1852
  isNormallyClosed?: boolean;
1852
1853
  spdt?: boolean;
1853
1854
  spst?: boolean;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import * as react from 'react';
3
3
  import { ReactElement } from 'react';
4
- import { LayerRef, LayerRefInput, SourceNet, PcbPort, SourcePort, PcbComponent, SourceComponentBase, AnyCircuitElement, CircuitJsonError, Point as Point$1, RouteHintPoint, PcbTrace, AnySourceComponent, VisibleLayer, RouteHintPointInput } from 'circuit-json';
4
+ import { LayerRef, AnyCircuitElement, LayerRefInput, SourceNet, PcbPort, SourcePort, PcbComponent, SourceComponentBase, CircuitJsonError, Point as Point$1, RouteHintPoint, PcbTrace, AnySourceComponent, VisibleLayer, RouteHintPointInput } from 'circuit-json';
5
5
 
6
6
  declare const direction: z.ZodEnum<["up", "down", "left", "right"]>;
7
7
  type Direction = "up" | "down" | "left" | "right";
@@ -6658,7 +6658,7 @@ declare const schStyle: z.ZodObject<{
6658
6658
  defaultCapacitorOrientation?: "none" | "vertical" | undefined;
6659
6659
  }>;
6660
6660
 
6661
- type SymbolProp = string | ReactElement;
6661
+ type SymbolProp = string | ReactElement | AnyCircuitElement[];
6662
6662
  declare const symbolProp: z.ZodType<SymbolProp, z.ZodTypeDef, SymbolProp>;
6663
6663
 
6664
6664
  type PcbPositionMode = "relative_to_group_anchor" | "auto" | "relative_to_board_anchor" | "relative_to_component_anchor";
@@ -151759,6 +151759,7 @@ type LedProps = z.input<typeof ledProps>;
151759
151759
 
151760
151760
  interface SwitchProps extends CommonComponentProps {
151761
151761
  type?: "spst" | "spdt" | "dpst" | "dpdt";
151762
+ pinLabels?: PinLabelsProp<SchematicPinLabel>;
151762
151763
  isNormallyClosed?: boolean;
151763
151764
  spdt?: boolean;
151764
151765
  spst?: boolean;
@@ -155137,6 +155138,7 @@ declare const switchProps: z.ZodEffects<z.ZodObject<{
155137
155138
  spdt: z.ZodOptional<z.ZodBoolean>;
155138
155139
  dpst: z.ZodOptional<z.ZodBoolean>;
155139
155140
  dpdt: z.ZodOptional<z.ZodBoolean>;
155141
+ pinLabels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>>;
155140
155142
  simSwitchFrequency: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
155141
155143
  simCloseAt: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
155142
155144
  simOpenAt: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -155724,6 +155726,7 @@ declare const switchProps: z.ZodEffects<z.ZodObject<{
155724
155726
  schSectionName?: string | undefined;
155725
155727
  schSheetName?: string | undefined;
155726
155728
  connections?: Record<string, string | readonly string[] | string[]> | undefined;
155729
+ pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
155727
155730
  spst?: boolean | undefined;
155728
155731
  spdt?: boolean | undefined;
155729
155732
  dpst?: boolean | undefined;
@@ -156315,6 +156318,7 @@ declare const switchProps: z.ZodEffects<z.ZodObject<{
156315
156318
  schSectionName?: string | undefined;
156316
156319
  schSheetName?: string | undefined;
156317
156320
  connections?: Partial<Record<string, string | string[] | readonly string[]>> | undefined;
156321
+ pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
156318
156322
  spst?: boolean | undefined;
156319
156323
  spdt?: boolean | undefined;
156320
156324
  dpst?: boolean | undefined;
@@ -156907,6 +156911,7 @@ declare const switchProps: z.ZodEffects<z.ZodObject<{
156907
156911
  schSectionName?: string | undefined;
156908
156912
  schSheetName?: string | undefined;
156909
156913
  connections?: Partial<Record<string, string | string[] | readonly string[]>> | undefined;
156914
+ pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
156910
156915
  spst?: boolean | undefined;
156911
156916
  spdt?: boolean | undefined;
156912
156917
  dpst?: boolean | undefined;
@@ -173488,7 +173493,7 @@ declare const voltageSourceProps: z.ZodObject<{
173488
173493
  frequency?: number | undefined;
173489
173494
  voltage?: number | undefined;
173490
173495
  peakToPeakVoltage?: number | undefined;
173491
- waveShape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
173496
+ waveShape?: "square" | "triangle" | "sawtooth" | "sinewave" | undefined;
173492
173497
  phase?: number | undefined;
173493
173498
  dutyCycle?: number | undefined;
173494
173499
  pulseDelay?: number | undefined;
@@ -174080,7 +174085,7 @@ declare const voltageSourceProps: z.ZodObject<{
174080
174085
  frequency?: string | number | undefined;
174081
174086
  voltage?: string | number | undefined;
174082
174087
  peakToPeakVoltage?: string | number | undefined;
174083
- waveShape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
174088
+ waveShape?: "square" | "triangle" | "sawtooth" | "sinewave" | undefined;
174084
174089
  phase?: string | number | undefined;
174085
174090
  dutyCycle?: string | number | undefined;
174086
174091
  pulseDelay?: string | number | undefined;
@@ -178049,7 +178054,7 @@ declare const currentSourceProps: z.ZodObject<{
178049
178054
  schSheetName?: string | undefined;
178050
178055
  connections?: Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>> | undefined;
178051
178056
  frequency?: number | undefined;
178052
- waveShape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
178057
+ waveShape?: "square" | "triangle" | "sawtooth" | "sinewave" | undefined;
178053
178058
  phase?: number | undefined;
178054
178059
  dutyCycle?: number | undefined;
178055
178060
  current?: number | undefined;
@@ -178636,7 +178641,7 @@ declare const currentSourceProps: z.ZodObject<{
178636
178641
  schSheetName?: string | undefined;
178637
178642
  connections?: Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>> | undefined;
178638
178643
  frequency?: string | number | undefined;
178639
- waveShape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
178644
+ waveShape?: "square" | "triangle" | "sawtooth" | "sinewave" | undefined;
178640
178645
  phase?: string | number | undefined;
178641
178646
  dutyCycle?: string | number | undefined;
178642
178647
  current?: string | number | undefined;
package/dist/index.js CHANGED
@@ -17646,6 +17646,7 @@ var switchProps = commonComponentProps.extend({
17646
17646
  spdt: z83.boolean().optional(),
17647
17647
  dpst: z83.boolean().optional(),
17648
17648
  dpdt: z83.boolean().optional(),
17649
+ pinLabels: pinLabelsProp.optional(),
17649
17650
  simSwitchFrequency: frequency3.optional(),
17650
17651
  simCloseAt: ms2.optional(),
17651
17652
  simOpenAt: ms2.optional(),