@tscircuit/props 0.0.555 → 0.0.556
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 +17 -0
- package/dist/index.d.ts +129 -2
- package/dist/index.js +125 -112
- package/dist/index.js.map +1 -1
- package/lib/common/layout.ts +11 -1
- package/lib/components/schematic-sheet.ts +18 -0
- package/lib/index.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -92,6 +92,7 @@ resistorProps.parse({ resistance: "10k" } as ResistorPropsInput);
|
|
|
92
92
|
| `<schematicrect />` | [`SchematicRectProps`](#schematicrectprops-schematicrect) |
|
|
93
93
|
| `<schematicrow />` | [`SchematicRowProps`](#schematicrowprops-schematicrow) |
|
|
94
94
|
| `<schematicsection />` | [`SchematicSectionProps`](#schematicsectionprops-schematicsection) |
|
|
95
|
+
| `<schematicsheet />` | [`SchematicSheetProps`](#schematicsheetprops-schematicsheet) |
|
|
95
96
|
| `<schematictable />` | [`SchematicTableProps`](#schematictableprops-schematictable) |
|
|
96
97
|
| `<schematictext />` | [`SchematicTextProps`](#schematictextprops-schematictext) |
|
|
97
98
|
| `<silkscreencircle />` | [`SilkscreenCircleProps`](#silkscreencircleprops-silkscreencircle) |
|
|
@@ -163,6 +164,10 @@ export interface CommonComponentProps extends CommonLayoutProps {
|
|
|
163
164
|
* This component will be drawn as part of this section e.g. "Power"
|
|
164
165
|
*/
|
|
165
166
|
schSectionName?: string;
|
|
167
|
+
/**
|
|
168
|
+
* This component will be drawn as part of this sheet e.g. "Main"
|
|
169
|
+
*/
|
|
170
|
+
schSheetName?: string;
|
|
166
171
|
}
|
|
167
172
|
```
|
|
168
173
|
|
|
@@ -1615,6 +1620,18 @@ export interface SchematicSectionProps {
|
|
|
1615
1620
|
|
|
1616
1621
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/schematic-section.ts)
|
|
1617
1622
|
|
|
1623
|
+
### SchematicSheetProps `<schematicsheet />`
|
|
1624
|
+
|
|
1625
|
+
```ts
|
|
1626
|
+
export interface SchematicSheetProps {
|
|
1627
|
+
name: string;
|
|
1628
|
+
displayName: string;
|
|
1629
|
+
children?: any;
|
|
1630
|
+
}
|
|
1631
|
+
```
|
|
1632
|
+
|
|
1633
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/schematic-sheet.ts)
|
|
1634
|
+
|
|
1618
1635
|
### SchematicTableProps `<schematictable />`
|
|
1619
1636
|
|
|
1620
1637
|
```ts
|