@tscircuit/props 0.0.573 → 0.0.574

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
@@ -1033,6 +1033,12 @@ export interface MosfetProps<
1033
1033
  > extends CommonComponentProps<PinLabel> {
1034
1034
  channelType: "n" | "p";
1035
1035
  mosfetMode: "enhancement" | "depletion";
1036
+ /** The side of the schematic symbol where the drain port is placed. */
1037
+ symbolDrainSide?: "left" | "right" | "top" | "bottom";
1038
+ /** The side of the schematic symbol where the source port is placed. */
1039
+ symbolSourceSide?: "left" | "right" | "top" | "bottom";
1040
+ /** The side of the schematic symbol where the gate port is placed. */
1041
+ symbolGateSide?: "left" | "right" | "top" | "bottom";
1036
1042
  connections?: Connections<MosfetPinLabels>;
1037
1043
  }
1038
1044
  ```
package/dist/index.d.ts CHANGED
@@ -126692,6 +126692,12 @@ type MosfetPinLabels = (typeof mosfetPins)[number];
126692
126692
  interface MosfetProps<PinLabel extends string = string> extends CommonComponentProps<PinLabel> {
126693
126693
  channelType: "n" | "p";
126694
126694
  mosfetMode: "enhancement" | "depletion";
126695
+ /** The side of the schematic symbol where the drain port is placed. */
126696
+ symbolDrainSide?: "left" | "right" | "top" | "bottom";
126697
+ /** The side of the schematic symbol where the source port is placed. */
126698
+ symbolSourceSide?: "left" | "right" | "top" | "bottom";
126699
+ /** The side of the schematic symbol where the gate port is placed. */
126700
+ symbolGateSide?: "left" | "right" | "top" | "bottom";
126695
126701
  connections?: Connections<MosfetPinLabels>;
126696
126702
  }
126697
126703
  declare const mosfetProps: z.ZodObject<{
@@ -130056,6 +130062,9 @@ declare const mosfetProps: z.ZodObject<{
130056
130062
  } & {
130057
130063
  channelType: z.ZodEnum<["n", "p"]>;
130058
130064
  mosfetMode: z.ZodEnum<["enhancement", "depletion"]>;
130065
+ symbolDrainSide: z.ZodOptional<z.ZodEnum<["left", "right", "top", "bottom"]>>;
130066
+ symbolSourceSide: z.ZodOptional<z.ZodEnum<["left", "right", "top", "bottom"]>>;
130067
+ symbolGateSide: z.ZodOptional<z.ZodEnum<["left", "right", "top", "bottom"]>>;
130059
130068
  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">]>>>;
130060
130069
  }, "strip", z.ZodTypeAny, {
130061
130070
  name: string;
@@ -130638,6 +130647,9 @@ declare const mosfetProps: z.ZodObject<{
130638
130647
  schSectionName?: string | undefined;
130639
130648
  schSheetName?: string | undefined;
130640
130649
  connections?: Partial<Record<"pin1" | "pin2" | "source" | "pin3" | "gate" | "drain", string | readonly string[] | string[]>> | undefined;
130650
+ symbolDrainSide?: "left" | "right" | "top" | "bottom" | undefined;
130651
+ symbolSourceSide?: "left" | "right" | "top" | "bottom" | undefined;
130652
+ symbolGateSide?: "left" | "right" | "top" | "bottom" | undefined;
130641
130653
  }, {
130642
130654
  name: string;
130643
130655
  channelType: "n" | "p";
@@ -131221,6 +131233,9 @@ declare const mosfetProps: z.ZodObject<{
131221
131233
  schSectionName?: string | undefined;
131222
131234
  schSheetName?: string | undefined;
131223
131235
  connections?: Partial<Record<"pin1" | "pin2" | "source" | "pin3" | "gate" | "drain", string | readonly string[] | string[]>> | undefined;
131236
+ symbolDrainSide?: "left" | "right" | "top" | "bottom" | undefined;
131237
+ symbolSourceSide?: "left" | "right" | "top" | "bottom" | undefined;
131238
+ symbolGateSide?: "left" | "right" | "top" | "bottom" | undefined;
131224
131239
  }>;
131225
131240
 
131226
131241
  declare const opampPinLabels: readonly ["inverting_input", "non_inverting_input", "output", "positive_supply", "negative_supply"];
package/dist/index.js CHANGED
@@ -17500,6 +17500,9 @@ var mosfetPins = [
17500
17500
  var mosfetProps = commonComponentProps.extend({
17501
17501
  channelType: z78.enum(["n", "p"]),
17502
17502
  mosfetMode: z78.enum(["enhancement", "depletion"]),
17503
+ symbolDrainSide: z78.enum(["left", "right", "top", "bottom"]).optional(),
17504
+ symbolSourceSide: z78.enum(["left", "right", "top", "bottom"]).optional(),
17505
+ symbolGateSide: z78.enum(["left", "right", "top", "bottom"]).optional(),
17503
17506
  connections: createConnectionsProp(mosfetPins).optional()
17504
17507
  });
17505
17508
  expectTypesMatch(true);