@tscircuit/props 0.0.231 → 0.0.233
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/README.md +2 -2
- package/dist/index.d.ts +867 -30
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/lib/components/group.ts +16 -0
- package/lib/components/netalias.ts +2 -2
- package/lib/components/netlabel.ts +2 -2
- package/package.json +1 -1
package/lib/components/group.ts
CHANGED
|
@@ -35,6 +35,14 @@ export const layoutConfig = z.object({
|
|
|
35
35
|
flexColumn: z.boolean().optional(),
|
|
36
36
|
gap: z.number().or(z.string()).optional(),
|
|
37
37
|
|
|
38
|
+
padding: length.optional(),
|
|
39
|
+
paddingLeft: length.optional(),
|
|
40
|
+
paddingRight: length.optional(),
|
|
41
|
+
paddingTop: length.optional(),
|
|
42
|
+
paddingBottom: length.optional(),
|
|
43
|
+
paddingX: length.optional(),
|
|
44
|
+
paddingY: length.optional(),
|
|
45
|
+
|
|
38
46
|
width: length.optional(),
|
|
39
47
|
height: length.optional(),
|
|
40
48
|
|
|
@@ -62,6 +70,14 @@ export interface LayoutConfig {
|
|
|
62
70
|
flexColumn?: boolean
|
|
63
71
|
gap?: number | string
|
|
64
72
|
|
|
73
|
+
padding?: Distance
|
|
74
|
+
paddingLeft?: Distance
|
|
75
|
+
paddingRight?: Distance
|
|
76
|
+
paddingTop?: Distance
|
|
77
|
+
paddingBottom?: Distance
|
|
78
|
+
paddingX?: Distance
|
|
79
|
+
paddingY?: Distance
|
|
80
|
+
|
|
65
81
|
width?: Distance
|
|
66
82
|
height?: Distance
|
|
67
83
|
|
|
@@ -12,7 +12,7 @@ export interface NetAliasProps {
|
|
|
12
12
|
schX?: number | string
|
|
13
13
|
schY?: number | string
|
|
14
14
|
schRotation?: number | string
|
|
15
|
-
anchorSide?: "left" | "
|
|
15
|
+
anchorSide?: "left" | "top" | "right" | "bottom"
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
/** @deprecated Use netLabelProps instead. */
|
|
@@ -22,7 +22,7 @@ export const netAliasProps = z.object({
|
|
|
22
22
|
schX: distance.optional(),
|
|
23
23
|
schY: distance.optional(),
|
|
24
24
|
schRotation: rotation.optional(),
|
|
25
|
-
anchorSide: z.enum(["left", "
|
|
25
|
+
anchorSide: z.enum(["left", "top", "right", "bottom"]).optional(),
|
|
26
26
|
})
|
|
27
27
|
|
|
28
28
|
type InferredNetAliasProps = z.input<typeof netAliasProps>
|
|
@@ -9,7 +9,7 @@ export interface NetLabelProps {
|
|
|
9
9
|
schX?: number | string
|
|
10
10
|
schY?: number | string
|
|
11
11
|
schRotation?: number | string
|
|
12
|
-
anchorSide?: "left" | "
|
|
12
|
+
anchorSide?: "left" | "top" | "right" | "bottom"
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export const netLabelProps = z.object({
|
|
@@ -18,7 +18,7 @@ export const netLabelProps = z.object({
|
|
|
18
18
|
schX: distance.optional(),
|
|
19
19
|
schY: distance.optional(),
|
|
20
20
|
schRotation: rotation.optional(),
|
|
21
|
-
anchorSide: z.enum(["left", "
|
|
21
|
+
anchorSide: z.enum(["left", "top", "right", "bottom"]).optional(),
|
|
22
22
|
})
|
|
23
23
|
|
|
24
24
|
type InferredNetLabelProps = z.input<typeof netLabelProps>
|