@tscircuit/props 0.0.624 → 0.0.627

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
@@ -17599,7 +17599,19 @@ var pinHeaderProps = commonComponentProps.extend({
17599
17599
  schPinStyle: schematicPinStyle.optional(),
17600
17600
  schPinSpacing: distance22.optional(),
17601
17601
  schWidth: distance22.optional(),
17602
- schHeight: distance22.optional()
17602
+ schHeight: distance22.optional(),
17603
+ connectsFromAbove: z78.boolean().optional(),
17604
+ connectsFromBelow: z78.boolean().optional()
17605
+ }).superRefine((props, ctx) => {
17606
+ if (props.connectsFromAbove && props.connectsFromBelow) {
17607
+ ctx.addIssue({
17608
+ code: z78.ZodIssueCode.custom,
17609
+ message: "connectsFromAbove and connectsFromBelow are opposites; set at most one"
17610
+ });
17611
+ }
17612
+ }).transform((props) => {
17613
+ const layer = props.layer ?? (props.connectsFromBelow ? "bottom" : props.connectsFromAbove ? "top" : void 0);
17614
+ return layer === void 0 ? props : { ...props, layer };
17603
17615
  });
17604
17616
  expectTypesMatch(true);
17605
17617