@tscircuit/props 0.0.293 → 0.0.295
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 +2 -0
- package/dist/index.d.ts +13 -2
- package/dist/index.js +375 -373
- package/dist/index.js.map +1 -1
- package/lib/components/board.ts +3 -0
- package/lib/components/inductor.ts +7 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -161,6 +161,7 @@ export interface BoardProps extends Omit<SubcircuitGroupProps, "subcircuit"> {
|
|
|
161
161
|
material?: "fr4" | "fr1";
|
|
162
162
|
/** Number of layers for the PCB */
|
|
163
163
|
layers?: 2 | 4;
|
|
164
|
+
borderRadius?: Distance;
|
|
164
165
|
}
|
|
165
166
|
```
|
|
166
167
|
|
|
@@ -513,6 +514,7 @@ export interface InductorProps<PinLabel extends string = string>
|
|
|
513
514
|
inductance: number | string;
|
|
514
515
|
maxCurrentRating?: number | string;
|
|
515
516
|
schOrientation?: SchematicOrientation;
|
|
517
|
+
connections?: Connections<InductorPinLabels>;
|
|
516
518
|
}
|
|
517
519
|
```
|
|
518
520
|
|
package/dist/index.d.ts
CHANGED
|
@@ -7742,6 +7742,7 @@ interface BoardProps extends Omit<SubcircuitGroupProps, "subcircuit"> {
|
|
|
7742
7742
|
material?: "fr4" | "fr1";
|
|
7743
7743
|
/** Number of layers for the PCB */
|
|
7744
7744
|
layers?: 2 | 4;
|
|
7745
|
+
borderRadius?: Distance;
|
|
7745
7746
|
}
|
|
7746
7747
|
declare const boardProps: z.ZodObject<{
|
|
7747
7748
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -8303,6 +8304,7 @@ declare const boardProps: z.ZodObject<{
|
|
|
8303
8304
|
} & {
|
|
8304
8305
|
material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
|
|
8305
8306
|
layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
8307
|
+
borderRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
8306
8308
|
}, "strip", z.ZodTypeAny, {
|
|
8307
8309
|
material: "fr4" | "fr1";
|
|
8308
8310
|
layers: 2 | 4;
|
|
@@ -8539,6 +8541,7 @@ declare const boardProps: z.ZodObject<{
|
|
|
8539
8541
|
}[] | undefined;
|
|
8540
8542
|
outlineOffsetX?: number | undefined;
|
|
8541
8543
|
outlineOffsetY?: number | undefined;
|
|
8544
|
+
borderRadius?: number | undefined;
|
|
8542
8545
|
}, {
|
|
8543
8546
|
pcbX?: string | number | undefined;
|
|
8544
8547
|
pcbY?: string | number | undefined;
|
|
@@ -8779,6 +8782,7 @@ declare const boardProps: z.ZodObject<{
|
|
|
8779
8782
|
outlineOffsetY?: string | number | undefined;
|
|
8780
8783
|
material?: "fr4" | "fr1" | undefined;
|
|
8781
8784
|
layers?: 2 | 4 | undefined;
|
|
8785
|
+
borderRadius?: string | number | undefined;
|
|
8782
8786
|
}>;
|
|
8783
8787
|
|
|
8784
8788
|
interface BreakoutProps extends Omit<SubcircuitGroupProps, "subcircuit"> {
|
|
@@ -18365,6 +18369,7 @@ declare const stampboardProps: z.ZodObject<{
|
|
|
18365
18369
|
} & {
|
|
18366
18370
|
material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
|
|
18367
18371
|
layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
18372
|
+
borderRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
18368
18373
|
} & {
|
|
18369
18374
|
leftPinCount: z.ZodOptional<z.ZodNumber>;
|
|
18370
18375
|
rightPinCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -18616,6 +18621,7 @@ declare const stampboardProps: z.ZodObject<{
|
|
|
18616
18621
|
}[] | undefined;
|
|
18617
18622
|
outlineOffsetX?: number | undefined;
|
|
18618
18623
|
outlineOffsetY?: number | undefined;
|
|
18624
|
+
borderRadius?: number | undefined;
|
|
18619
18625
|
leftPins?: string[] | undefined;
|
|
18620
18626
|
rightPins?: string[] | undefined;
|
|
18621
18627
|
topPins?: string[] | undefined;
|
|
@@ -18866,6 +18872,7 @@ declare const stampboardProps: z.ZodObject<{
|
|
|
18866
18872
|
outlineOffsetY?: string | number | undefined;
|
|
18867
18873
|
material?: "fr4" | "fr1" | undefined;
|
|
18868
18874
|
layers?: 2 | 4 | undefined;
|
|
18875
|
+
borderRadius?: string | number | undefined;
|
|
18869
18876
|
leftPins?: string[] | undefined;
|
|
18870
18877
|
rightPins?: string[] | undefined;
|
|
18871
18878
|
topPins?: string[] | undefined;
|
|
@@ -25051,10 +25058,13 @@ declare const mosfetProps: z.ZodObject<{
|
|
|
25051
25058
|
declare const mosfetPins: readonly ["pin1", "drain", "pin2", "source", "pin3", "gate"];
|
|
25052
25059
|
type MosfetPinLabels = (typeof mosfetPins)[number];
|
|
25053
25060
|
|
|
25061
|
+
declare const inductorPins: readonly ["pin1", "left", "pin2", "right"];
|
|
25062
|
+
type InductorPinLabels = (typeof inductorPins)[number];
|
|
25054
25063
|
interface InductorProps<PinLabel extends string = string> extends CommonComponentProps<PinLabel> {
|
|
25055
25064
|
inductance: number | string;
|
|
25056
25065
|
maxCurrentRating?: number | string;
|
|
25057
25066
|
schOrientation?: SchematicOrientation;
|
|
25067
|
+
connections?: Connections<InductorPinLabels>;
|
|
25058
25068
|
}
|
|
25059
25069
|
declare const inductorProps: z.ZodObject<{
|
|
25060
25070
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -25345,6 +25355,7 @@ declare const inductorProps: z.ZodObject<{
|
|
|
25345
25355
|
inductance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
25346
25356
|
maxCurrentRating: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
25347
25357
|
schOrientation: z.ZodOptional<z.ZodEnum<["vertical", "horizontal", "pos_top", "pos_bottom", "pos_left", "pos_right", "neg_top", "neg_bottom", "neg_left", "neg_right"]>>;
|
|
25358
|
+
connections: z.ZodOptional<z.ZodRecord<z.ZodEnum<["pin1", "left", "pin2", "right"]>, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>>;
|
|
25348
25359
|
}, "strip", z.ZodTypeAny, {
|
|
25349
25360
|
name: string;
|
|
25350
25361
|
inductance: number;
|
|
@@ -25426,6 +25437,7 @@ declare const inductorProps: z.ZodObject<{
|
|
|
25426
25437
|
children?: any;
|
|
25427
25438
|
symbolName?: string | undefined;
|
|
25428
25439
|
doNotPlace?: boolean | undefined;
|
|
25440
|
+
connections?: Partial<Record<"left" | "right" | "pin1" | "pin2", string | readonly string[] | string[]>> | undefined;
|
|
25429
25441
|
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
25430
25442
|
maxCurrentRating?: string | number | undefined;
|
|
25431
25443
|
}, {
|
|
@@ -25511,11 +25523,10 @@ declare const inductorProps: z.ZodObject<{
|
|
|
25511
25523
|
children?: any;
|
|
25512
25524
|
symbolName?: string | undefined;
|
|
25513
25525
|
doNotPlace?: boolean | undefined;
|
|
25526
|
+
connections?: Partial<Record<"left" | "right" | "pin1" | "pin2", string | readonly string[] | string[]>> | undefined;
|
|
25514
25527
|
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
25515
25528
|
maxCurrentRating?: string | number | undefined;
|
|
25516
25529
|
}>;
|
|
25517
|
-
declare const inductorPins: readonly ["pin1", "left", "pin2", "right"];
|
|
25518
|
-
type InductorPinLabels = (typeof inductorPins)[number];
|
|
25519
25530
|
|
|
25520
25531
|
declare const diodeProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
25521
25532
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|