@tscircuit/props 0.0.529 → 0.0.531
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 +134 -108
- package/dist/index.d.ts +2 -1178
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/lib/components/resistor.ts +34 -32
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16803,7 +16803,9 @@ var mapResistorFootprint = (footprint) => {
|
|
|
16803
16803
|
if (!resistorImperialFootprintNames.has(footprint)) return footprint;
|
|
16804
16804
|
return `res${footprint}`;
|
|
16805
16805
|
};
|
|
16806
|
+
var resistorFootprintProp = footprintProp.optional().transform(mapResistorFootprint);
|
|
16806
16807
|
var resistorProps = commonComponentProps.extend({
|
|
16808
|
+
footprint: resistorFootprintProp,
|
|
16807
16809
|
resistance,
|
|
16808
16810
|
tolerance: z48.union([z48.string(), z48.number()]).transform((val) => {
|
|
16809
16811
|
if (typeof val === "string") {
|
|
@@ -16823,10 +16825,7 @@ var resistorProps = commonComponentProps.extend({
|
|
|
16823
16825
|
schOrientation: schematicOrientation.optional(),
|
|
16824
16826
|
schSize: schematicSymbolSize.optional(),
|
|
16825
16827
|
connections: createConnectionsProp(resistorPinLabels).optional()
|
|
16826
|
-
})
|
|
16827
|
-
...props,
|
|
16828
|
-
footprint: mapResistorFootprint(props.footprint)
|
|
16829
|
-
}));
|
|
16828
|
+
});
|
|
16830
16829
|
var resistorPins = lrPins;
|
|
16831
16830
|
expectTypesMatch(true);
|
|
16832
16831
|
|