@tscircuit/props 0.0.575 → 0.0.576

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.d.ts CHANGED
@@ -115556,7 +115556,7 @@ interface NetLabelProps {
115556
115556
  schRotation?: number | string;
115557
115557
  anchorSide?: "left" | "top" | "right" | "bottom";
115558
115558
  }
115559
- declare const netLabelProps: z.ZodObject<{
115559
+ declare const netLabelProps: z.ZodEffects<z.ZodObject<{
115560
115560
  net: z.ZodOptional<z.ZodString>;
115561
115561
  connection: z.ZodOptional<z.ZodString>;
115562
115562
  connectsTo: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -115580,6 +115580,22 @@ declare const netLabelProps: z.ZodObject<{
115580
115580
  net?: string | undefined;
115581
115581
  connection?: string | undefined;
115582
115582
  anchorSide?: "left" | "right" | "top" | "bottom" | undefined;
115583
+ }>, {
115584
+ schX?: number | undefined;
115585
+ schY?: number | undefined;
115586
+ schRotation?: number | undefined;
115587
+ connectsTo?: string | string[] | undefined;
115588
+ net?: string | undefined;
115589
+ connection?: string | undefined;
115590
+ anchorSide?: "left" | "right" | "top" | "bottom" | undefined;
115591
+ }, {
115592
+ schX?: string | number | undefined;
115593
+ schY?: string | number | undefined;
115594
+ schRotation?: string | number | undefined;
115595
+ connectsTo?: string | string[] | undefined;
115596
+ net?: string | undefined;
115597
+ connection?: string | undefined;
115598
+ anchorSide?: "left" | "right" | "top" | "bottom" | undefined;
115583
115599
  }>;
115584
115600
 
115585
115601
  type PushButtonProps<T extends PinLabelsProp | string = string> = ChipProps<T>;
package/dist/index.js CHANGED
@@ -17395,7 +17395,13 @@ var netLabelProps = z73.object({
17395
17395
  schY: distance.optional(),
17396
17396
  schRotation: rotation4.optional(),
17397
17397
  anchorSide: z73.enum(["left", "top", "right", "bottom"]).optional()
17398
- });
17398
+ }).refine(
17399
+ (props) => props.net === void 0 || props.connection === void 0,
17400
+ {
17401
+ message: "net and connection cannot be provided together",
17402
+ path: ["connection"]
17403
+ }
17404
+ );
17399
17405
  expectTypesMatch(true);
17400
17406
 
17401
17407
  // lib/components/push-button.ts