@tscircuit/props 0.0.521 → 0.0.523
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 +16 -0
- package/dist/index.d.ts +124 -4
- package/dist/index.js +127 -113
- package/dist/index.js.map +1 -1
- package/lib/common/layout.ts +10 -0
- package/lib/components/port.ts +1 -1
- package/lib/components/schematic-section.ts +20 -0
- package/lib/index.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -89,6 +89,7 @@ resistorProps.parse({ resistance: "10k" } as ResistorPropsInput);
|
|
|
89
89
|
| `<schematicpath />` | [`SchematicPathProps`](#schematicpathprops-schematicpath) |
|
|
90
90
|
| `<schematicrect />` | [`SchematicRectProps`](#schematicrectprops-schematicrect) |
|
|
91
91
|
| `<schematicrow />` | [`SchematicRowProps`](#schematicrowprops-schematicrow) |
|
|
92
|
+
| `<schematicsection />` | [`SchematicSectionProps`](#schematicsectionprops-schematicsection) |
|
|
92
93
|
| `<schematictable />` | [`SchematicTableProps`](#schematictableprops-schematictable) |
|
|
93
94
|
| `<schematictext />` | [`SchematicTextProps`](#schematictextprops-schematictext) |
|
|
94
95
|
| `<silkscreencircle />` | [`SilkscreenCircleProps`](#silkscreencircleprops-silkscreencircle) |
|
|
@@ -154,6 +155,10 @@ export interface CommonComponentProps extends CommonLayoutProps {
|
|
|
154
155
|
children?: any;
|
|
155
156
|
symbolName?: string;
|
|
156
157
|
doNotPlace?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* This component will be drawn as part of this section e.g. "Power"
|
|
160
|
+
*/
|
|
161
|
+
schSectionName?: string;
|
|
157
162
|
}
|
|
158
163
|
```
|
|
159
164
|
|
|
@@ -1555,6 +1560,17 @@ export interface SchematicRowProps {
|
|
|
1555
1560
|
|
|
1556
1561
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/schematic-row.ts)
|
|
1557
1562
|
|
|
1563
|
+
### SchematicSectionProps `<schematicsection />`
|
|
1564
|
+
|
|
1565
|
+
```ts
|
|
1566
|
+
export interface SchematicSectionProps {
|
|
1567
|
+
displayName?: string;
|
|
1568
|
+
name: string;
|
|
1569
|
+
}
|
|
1570
|
+
```
|
|
1571
|
+
|
|
1572
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/schematic-section.ts)
|
|
1573
|
+
|
|
1558
1574
|
### SchematicTableProps `<schematictable />`
|
|
1559
1575
|
|
|
1560
1576
|
```ts
|