@tscircuit/props 0.0.456 → 0.0.457
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 +12 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/lib/components/symbol.ts +8 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -93921,12 +93921,24 @@ interface SymbolProps {
|
|
|
93921
93921
|
* because you have a complex symbol. Default is "right" and this is most intuitive.
|
|
93922
93922
|
*/
|
|
93923
93923
|
originalFacingDirection?: "up" | "down" | "left" | "right";
|
|
93924
|
+
width?: string | number;
|
|
93925
|
+
height?: string | number;
|
|
93926
|
+
name?: string;
|
|
93924
93927
|
}
|
|
93925
93928
|
declare const symbolProps: z.ZodObject<{
|
|
93926
93929
|
originalFacingDirection: z.ZodOptional<z.ZodDefault<z.ZodEnum<["up", "down", "left", "right"]>>>;
|
|
93930
|
+
width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
93931
|
+
height: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
93932
|
+
name: z.ZodOptional<z.ZodString>;
|
|
93927
93933
|
}, "strip", z.ZodTypeAny, {
|
|
93934
|
+
name?: string | undefined;
|
|
93935
|
+
width?: number | undefined;
|
|
93936
|
+
height?: number | undefined;
|
|
93928
93937
|
originalFacingDirection?: "up" | "down" | "left" | "right" | undefined;
|
|
93929
93938
|
}, {
|
|
93939
|
+
name?: string | undefined;
|
|
93940
|
+
width?: string | number | undefined;
|
|
93941
|
+
height?: string | number | undefined;
|
|
93930
93942
|
originalFacingDirection?: "up" | "down" | "left" | "right" | undefined;
|
|
93931
93943
|
}>;
|
|
93932
93944
|
type SymbolPropsInput = z.input<typeof symbolProps>;
|
package/dist/index.js
CHANGED
|
@@ -1567,7 +1567,10 @@ expectTypesMatch(true);
|
|
|
1567
1567
|
// lib/components/symbol.ts
|
|
1568
1568
|
import { z as z60 } from "zod";
|
|
1569
1569
|
var symbolProps = z60.object({
|
|
1570
|
-
originalFacingDirection: z60.enum(["up", "down", "left", "right"]).default("right").optional()
|
|
1570
|
+
originalFacingDirection: z60.enum(["up", "down", "left", "right"]).default("right").optional(),
|
|
1571
|
+
width: distance.optional(),
|
|
1572
|
+
height: distance.optional(),
|
|
1573
|
+
name: z60.string().optional()
|
|
1571
1574
|
});
|
|
1572
1575
|
expectTypesMatch(true);
|
|
1573
1576
|
|