@tscircuit/props 0.0.528 → 0.0.530

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/dist/index.js CHANGED
@@ -16804,6 +16804,7 @@ var mapResistorFootprint = (footprint) => {
16804
16804
  return `res${footprint}`;
16805
16805
  };
16806
16806
  var resistorProps = commonComponentProps.extend({
16807
+ footprint: footprintProp.optional().transform(mapResistorFootprint),
16807
16808
  resistance,
16808
16809
  tolerance: z48.union([z48.string(), z48.number()]).transform((val) => {
16809
16810
  if (typeof val === "string") {
@@ -16823,10 +16824,7 @@ var resistorProps = commonComponentProps.extend({
16823
16824
  schOrientation: schematicOrientation.optional(),
16824
16825
  schSize: schematicSymbolSize.optional(),
16825
16826
  connections: createConnectionsProp(resistorPinLabels).optional()
16826
- }).transform((props) => ({
16827
- ...props,
16828
- footprint: mapResistorFootprint(props.footprint)
16829
- }));
16827
+ });
16830
16828
  var resistorPins = lrPins;
16831
16829
  expectTypesMatch(true);
16832
16830