@tscircuit/props 0.0.205 → 0.0.207

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
@@ -325,6 +325,8 @@ var layoutConfig = z21.object({
325
325
  flexRow: z21.boolean().optional(),
326
326
  flexColumn: z21.boolean().optional(),
327
327
  gap: z21.number().or(z21.string()).optional(),
328
+ width: length.optional(),
329
+ height: length.optional(),
328
330
  matchAdapt: z21.boolean().optional()
329
331
  });
330
332
  expectTypesMatch(true);
@@ -787,11 +789,18 @@ var pillSmtPadProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
787
789
  portHints: portHints.optional()
788
790
  });
789
791
  expectTypesMatch(true);
792
+ var polygonSmtPadProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
793
+ shape: z40.literal("polygon"),
794
+ points: z40.array(point),
795
+ portHints: portHints.optional()
796
+ });
797
+ expectTypesMatch(true);
790
798
  var smtPadProps = z40.union([
791
799
  circleSmtPadProps,
792
800
  rectSmtPadProps,
793
801
  rotatedRectSmtPadProps,
794
- pillSmtPadProps
802
+ pillSmtPadProps,
803
+ polygonSmtPadProps
795
804
  ]);
796
805
  expectTypesMatch(true);
797
806
 
@@ -1420,6 +1429,7 @@ export {
1420
1429
  platformConfig,
1421
1430
  point3,
1422
1431
  polygonCutoutProps,
1432
+ polygonSmtPadProps,
1423
1433
  portHints,
1424
1434
  portProps,
1425
1435
  portRef,