@tscircuit/props 0.0.569 → 0.0.570

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
@@ -1031,6 +1031,7 @@ export interface MosfetProps<
1031
1031
  > extends CommonComponentProps<PinLabel> {
1032
1032
  channelType: "n" | "p";
1033
1033
  mosfetMode: "enhancement" | "depletion";
1034
+ connections?: Connections<MosfetPinLabels>;
1034
1035
  }
1035
1036
  ```
1036
1037
 
package/dist/index.d.ts CHANGED
@@ -126682,9 +126682,12 @@ declare const transistorProps: z.ZodObject<{
126682
126682
  declare const transistorPins: readonly ["pin1", "emitter", "pin2", "collector", "pin3", "base"];
126683
126683
  type TransistorPinLabels = (typeof transistorPins)[number];
126684
126684
 
126685
+ declare const mosfetPins: readonly ["pin1", "drain", "pin2", "source", "pin3", "gate"];
126686
+ type MosfetPinLabels = (typeof mosfetPins)[number];
126685
126687
  interface MosfetProps<PinLabel extends string = string> extends CommonComponentProps<PinLabel> {
126686
126688
  channelType: "n" | "p";
126687
126689
  mosfetMode: "enhancement" | "depletion";
126690
+ connections?: Connections<MosfetPinLabels>;
126688
126691
  }
126689
126692
  declare const mosfetProps: z.ZodObject<{
126690
126693
  pcbX: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
@@ -130048,6 +130051,7 @@ declare const mosfetProps: z.ZodObject<{
130048
130051
  } & {
130049
130052
  channelType: z.ZodEnum<["n", "p"]>;
130050
130053
  mosfetMode: z.ZodEnum<["enhancement", "depletion"]>;
130054
+ 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
130055
  }, "strip", z.ZodTypeAny, {
130052
130056
  name: string;
130053
130057
  channelType: "n" | "p";
@@ -130628,6 +130632,7 @@ declare const mosfetProps: z.ZodObject<{
130628
130632
  manufacturerPartNumber?: string | undefined;
130629
130633
  schSectionName?: string | undefined;
130630
130634
  schSheetName?: string | undefined;
130635
+ connections?: Partial<Record<"pin1" | "pin2" | "source" | "pin3" | "gate" | "drain", string | readonly string[] | string[]>> | undefined;
130631
130636
  }, {
130632
130637
  name: string;
130633
130638
  channelType: "n" | "p";
@@ -131210,9 +131215,8 @@ declare const mosfetProps: z.ZodObject<{
131210
131215
  manufacturerPartNumber?: string | undefined;
131211
131216
  schSectionName?: string | undefined;
131212
131217
  schSheetName?: string | undefined;
131218
+ connections?: Partial<Record<"pin1" | "pin2" | "source" | "pin3" | "gate" | "drain", string | readonly string[] | string[]>> | undefined;
131213
131219
  }>;
131214
- declare const mosfetPins: readonly ["pin1", "drain", "pin2", "source", "pin3", "gate"];
131215
- type MosfetPinLabels = (typeof mosfetPins)[number];
131216
131220
 
131217
131221
  declare const opampPinLabels: readonly ["inverting_input", "non_inverting_input", "output", "positive_supply", "negative_supply"];
131218
131222
  /**
package/dist/index.js CHANGED
@@ -17488,10 +17488,6 @@ expectTypesMatch(true);
17488
17488
 
17489
17489
  // lib/components/mosfet.ts
17490
17490
  import { z as z78 } from "zod";
17491
- var mosfetProps = commonComponentProps.extend({
17492
- channelType: z78.enum(["n", "p"]),
17493
- mosfetMode: z78.enum(["enhancement", "depletion"])
17494
- });
17495
17491
  var mosfetPins = [
17496
17492
  "pin1",
17497
17493
  "drain",
@@ -17500,6 +17496,11 @@ var mosfetPins = [
17500
17496
  "pin3",
17501
17497
  "gate"
17502
17498
  ];
17499
+ var mosfetProps = commonComponentProps.extend({
17500
+ channelType: z78.enum(["n", "p"]),
17501
+ mosfetMode: z78.enum(["enhancement", "depletion"]),
17502
+ connections: createConnectionsProp(mosfetPins).optional()
17503
+ });
17503
17504
  expectTypesMatch(true);
17504
17505
 
17505
17506
  // lib/components/opamp.ts