@tscircuit/props 0.0.530 → 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 +4541 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/lib/components/resistor.ts +33 -29
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16803,8 +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({
|
|
16807
|
-
footprint:
|
|
16808
|
+
footprint: resistorFootprintProp,
|
|
16808
16809
|
resistance,
|
|
16809
16810
|
tolerance: z48.union([z48.string(), z48.number()]).transform((val) => {
|
|
16810
16811
|
if (typeof val === "string") {
|