@tscircuit/props 0.0.569 → 0.0.571

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
@@ -562,6 +562,8 @@ export interface CrystalProps<
562
562
  > extends CommonComponentProps<PinLabel> {
563
563
  frequency: number | string;
564
564
  loadCapacitance: number | string;
565
+ /** Maximum allowed PCB trace length between the crystal and its connected component */
566
+ maxTraceLength?: number | string;
565
567
  manufacturerPartNumber?: string;
566
568
  mpn?: string;
567
569
  pinVariant?: PinVariant;
@@ -1031,6 +1033,7 @@ export interface MosfetProps<
1031
1033
  > extends CommonComponentProps<PinLabel> {
1032
1034
  channelType: "n" | "p";
1033
1035
  mosfetMode: "enhancement" | "depletion";
1036
+ connections?: Connections<MosfetPinLabels>;
1034
1037
  }
1035
1038
  ```
1036
1039
 
package/dist/index.d.ts CHANGED
@@ -79680,6 +79680,8 @@ type CrystalPinLabels = (typeof crystalPins)[number];
79680
79680
  interface CrystalProps<PinLabel extends string = string> extends CommonComponentProps<PinLabel> {
79681
79681
  frequency: number | string;
79682
79682
  loadCapacitance: number | string;
79683
+ /** Maximum allowed PCB trace length between the crystal and its connected component */
79684
+ maxTraceLength?: number | string;
79683
79685
  manufacturerPartNumber?: string;
79684
79686
  mpn?: string;
79685
79687
  pinVariant?: PinVariant;
@@ -83045,6 +83047,7 @@ declare const crystalProps: z.ZodObject<{
83045
83047
  } & {
83046
83048
  frequency: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
83047
83049
  loadCapacitance: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, number, string | number>;
83050
+ maxTraceLength: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
83048
83051
  manufacturerPartNumber: z.ZodOptional<z.ZodString>;
83049
83052
  mpn: z.ZodOptional<z.ZodString>;
83050
83053
  pinVariant: z.ZodOptional<z.ZodEnum<["two_pin", "four_pin"]>>;
@@ -83633,6 +83636,7 @@ declare const crystalProps: z.ZodObject<{
83633
83636
  connections?: Partial<Record<"left" | "right" | "pin1" | "pin2", string | readonly string[] | string[]>> | undefined;
83634
83637
  schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
83635
83638
  pinVariant?: "two_pin" | "four_pin" | undefined;
83639
+ maxTraceLength?: number | undefined;
83636
83640
  mpn?: string | undefined;
83637
83641
  }, {
83638
83642
  name: string;
@@ -84219,6 +84223,7 @@ declare const crystalProps: z.ZodObject<{
84219
84223
  connections?: Partial<Record<"left" | "right" | "pin1" | "pin2", string | readonly string[] | string[]>> | undefined;
84220
84224
  schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
84221
84225
  pinVariant?: "two_pin" | "four_pin" | undefined;
84226
+ maxTraceLength?: string | number | undefined;
84222
84227
  mpn?: string | undefined;
84223
84228
  }>;
84224
84229
 
@@ -126682,9 +126687,12 @@ declare const transistorProps: z.ZodObject<{
126682
126687
  declare const transistorPins: readonly ["pin1", "emitter", "pin2", "collector", "pin3", "base"];
126683
126688
  type TransistorPinLabels = (typeof transistorPins)[number];
126684
126689
 
126690
+ declare const mosfetPins: readonly ["pin1", "drain", "pin2", "source", "pin3", "gate"];
126691
+ type MosfetPinLabels = (typeof mosfetPins)[number];
126685
126692
  interface MosfetProps<PinLabel extends string = string> extends CommonComponentProps<PinLabel> {
126686
126693
  channelType: "n" | "p";
126687
126694
  mosfetMode: "enhancement" | "depletion";
126695
+ connections?: Connections<MosfetPinLabels>;
126688
126696
  }
126689
126697
  declare const mosfetProps: z.ZodObject<{
126690
126698
  pcbX: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
@@ -130048,6 +130056,7 @@ declare const mosfetProps: z.ZodObject<{
130048
130056
  } & {
130049
130057
  channelType: z.ZodEnum<["n", "p"]>;
130050
130058
  mosfetMode: z.ZodEnum<["enhancement", "depletion"]>;
130059
+ connections: z.ZodOptional<z.ZodRecord<z.ZodEnum<["pin1", "drain", "pin2", "source", "pin3", "gate"]>, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>>;
130051
130060
  }, "strip", z.ZodTypeAny, {
130052
130061
  name: string;
130053
130062
  channelType: "n" | "p";
@@ -130628,6 +130637,7 @@ declare const mosfetProps: z.ZodObject<{
130628
130637
  manufacturerPartNumber?: string | undefined;
130629
130638
  schSectionName?: string | undefined;
130630
130639
  schSheetName?: string | undefined;
130640
+ connections?: Partial<Record<"pin1" | "pin2" | "source" | "pin3" | "gate" | "drain", string | readonly string[] | string[]>> | undefined;
130631
130641
  }, {
130632
130642
  name: string;
130633
130643
  channelType: "n" | "p";
@@ -131210,9 +131220,8 @@ declare const mosfetProps: z.ZodObject<{
131210
131220
  manufacturerPartNumber?: string | undefined;
131211
131221
  schSectionName?: string | undefined;
131212
131222
  schSheetName?: string | undefined;
131223
+ connections?: Partial<Record<"pin1" | "pin2" | "source" | "pin3" | "gate" | "drain", string | readonly string[] | string[]>> | undefined;
131213
131224
  }>;
131214
- declare const mosfetPins: readonly ["pin1", "drain", "pin2", "source", "pin3", "gate"];
131215
- type MosfetPinLabels = (typeof mosfetPins)[number];
131216
131225
 
131217
131226
  declare const opampPinLabels: readonly ["inverting_input", "non_inverting_input", "output", "positive_supply", "negative_supply"];
131218
131227
  /**