@tscircuit/props 0.0.577 → 0.0.578
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 +1 -17
- package/dist/index.js +1 -7
- package/dist/index.js.map +1 -1
- package/lib/components/netlabel.ts +9 -17
- package/package.json +1 -1
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.
|
|
115559
|
+
declare const netLabelProps: 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,22 +115580,6 @@ declare const netLabelProps: z.ZodEffects<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;
|
|
115599
115583
|
}>;
|
|
115600
115584
|
|
|
115601
115585
|
type PushButtonProps<T extends PinLabelsProp | string = string> = ChipProps<T>;
|
package/dist/index.js
CHANGED
|
@@ -17402,13 +17402,7 @@ var netLabelProps = z73.object({
|
|
|
17402
17402
|
schY: distance.optional(),
|
|
17403
17403
|
schRotation: rotation4.optional(),
|
|
17404
17404
|
anchorSide: z73.enum(["left", "top", "right", "bottom"]).optional()
|
|
17405
|
-
})
|
|
17406
|
-
(props) => props.net === void 0 || props.connection === void 0,
|
|
17407
|
-
{
|
|
17408
|
-
message: "net and connection cannot be provided together",
|
|
17409
|
-
path: ["connection"]
|
|
17410
|
-
}
|
|
17411
|
-
);
|
|
17405
|
+
});
|
|
17412
17406
|
expectTypesMatch(true);
|
|
17413
17407
|
|
|
17414
17408
|
// lib/components/push-button.ts
|