@tscircuit/props 0.0.437 → 0.0.439
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 +32 -0
- package/dist/index.d.ts +6110 -3826
- package/dist/index.js +319 -269
- package/dist/index.js.map +1 -1
- package/lib/components/currentsource.ts +58 -0
- package/lib/components/group.ts +4 -0
- package/lib/components/opamp.ts +42 -0
- package/lib/index.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,6 +39,7 @@ resistorProps.parse({ resistance: "10k" } as ResistorPropsInput);
|
|
|
39
39
|
| `<courtyardoutline />` | [`CourtyardOutlineProps`](#courtyardoutlineprops-courtyardoutline) |
|
|
40
40
|
| `<courtyardrect />` | [`CourtyardRectProps`](#courtyardrectprops-courtyardrect) |
|
|
41
41
|
| `<crystal />` | [`CrystalProps`](#crystalprops-crystal) |
|
|
42
|
+
| `<currentsource />` | [`CurrentSourceProps`](#currentsourceprops-currentsource) |
|
|
42
43
|
| `<cutout />` | [`RectCutoutProps`](#rectcutoutprops-cutout) |
|
|
43
44
|
| `<diode />` | [`DiodeProps`](#diodeprops-diode) |
|
|
44
45
|
| `<fabricationnotedimension />` | [`FabricationNoteDimensionProps`](#fabricationnotedimensionprops-fabricationnotedimension) |
|
|
@@ -58,6 +59,7 @@ resistorProps.parse({ resistance: "10k" } as ResistorPropsInput);
|
|
|
58
59
|
| `<net />` | [`NetProps`](#netprops-net) |
|
|
59
60
|
| `<netalias />` | [`NetAliasProps`](#netaliasprops-netalias) |
|
|
60
61
|
| `<netlabel />` | [`NetLabelProps`](#netlabelprops-netlabel) |
|
|
62
|
+
| `<opamp />` | [`OpAmpProps`](#opampprops-opamp) |
|
|
61
63
|
| `<panel />` | [`PanelProps`](#panelprops-panel) |
|
|
62
64
|
| `<pcbkeepout />` | [`PcbKeepoutProps`](#pcbkeepoutprops-pcbkeepout) |
|
|
63
65
|
| `<pcbnotedimension />` | [`PcbNoteDimensionProps`](#pcbnotedimensionprops-pcbnotedimension) |
|
|
@@ -496,6 +498,24 @@ export interface CrystalProps<
|
|
|
496
498
|
|
|
497
499
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/crystal.ts)
|
|
498
500
|
|
|
501
|
+
### CurrentSourceProps `<currentsource />`
|
|
502
|
+
|
|
503
|
+
```ts
|
|
504
|
+
export interface CurrentSourceProps<
|
|
505
|
+
PinLabel extends string = string,
|
|
506
|
+
> extends CommonComponentProps<PinLabel> {
|
|
507
|
+
current?: number | string;
|
|
508
|
+
frequency?: number | string;
|
|
509
|
+
peakToPeakCurrent?: number | string;
|
|
510
|
+
waveShape?: WaveShape;
|
|
511
|
+
phase?: number | string;
|
|
512
|
+
dutyCycle?: number | string;
|
|
513
|
+
connections?: Connections<CurrentSourcePinLabels>;
|
|
514
|
+
}
|
|
515
|
+
```
|
|
516
|
+
|
|
517
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/currentsource.ts)
|
|
518
|
+
|
|
499
519
|
### RectCutoutProps `<cutout />`
|
|
500
520
|
|
|
501
521
|
```ts
|
|
@@ -961,6 +981,18 @@ export interface NetLabelProps {
|
|
|
961
981
|
|
|
962
982
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/netlabel.ts)
|
|
963
983
|
|
|
984
|
+
### OpAmpProps `<opamp />`
|
|
985
|
+
|
|
986
|
+
```ts
|
|
987
|
+
export interface OpAmpProps<
|
|
988
|
+
PinLabel extends string = string,
|
|
989
|
+
> extends CommonComponentProps<PinLabel> {
|
|
990
|
+
connections?: Connections<OpAmpPinLabels>;
|
|
991
|
+
}
|
|
992
|
+
```
|
|
993
|
+
|
|
994
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/opamp.ts)
|
|
995
|
+
|
|
964
996
|
### PanelProps `<panel />`
|
|
965
997
|
|
|
966
998
|
```ts
|