@tscircuit/props 0.0.272 → 0.0.274
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 -0
- package/dist/index.d.ts +310 -2
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/lib/components/group.ts +8 -0
- package/lib/components/platedhole.ts +4 -3
- package/package.json +1 -1
package/lib/components/group.ts
CHANGED
|
@@ -28,6 +28,8 @@ export const layoutConfig = z.object({
|
|
|
28
28
|
gridTemplateColumns: z.string().optional(),
|
|
29
29
|
gridTemplate: z.string().optional(),
|
|
30
30
|
gridGap: z.number().or(z.string()).optional(),
|
|
31
|
+
gridRowGap: z.number().or(z.string()).optional(),
|
|
32
|
+
gridColumnGap: z.number().or(z.string()).optional(),
|
|
31
33
|
|
|
32
34
|
flex: z.boolean().or(z.string()).optional(),
|
|
33
35
|
flexDirection: z.enum(["row", "column"]).optional(),
|
|
@@ -88,6 +90,8 @@ export interface LayoutConfig {
|
|
|
88
90
|
gridTemplateColumns?: string
|
|
89
91
|
gridTemplate?: string
|
|
90
92
|
gridGap?: number | string
|
|
93
|
+
gridRowGap?: number | string
|
|
94
|
+
gridColumnGap?: number | string
|
|
91
95
|
|
|
92
96
|
flex?: boolean | string
|
|
93
97
|
flexDirection?: "row" | "column"
|
|
@@ -177,6 +181,8 @@ export interface BaseGroupProps extends CommonLayoutProps, LayoutConfig {
|
|
|
177
181
|
pcbGridTemplateColumns?: string
|
|
178
182
|
pcbGridTemplate?: string
|
|
179
183
|
pcbGridGap?: number | string
|
|
184
|
+
pcbGridRowGap?: number | string
|
|
185
|
+
pcbGridColumnGap?: number | string
|
|
180
186
|
|
|
181
187
|
pcbFlex?: boolean | string
|
|
182
188
|
pcbFlexDirection?: "row" | "column"
|
|
@@ -329,6 +335,8 @@ export const baseGroupProps = commonLayoutProps.extend({
|
|
|
329
335
|
pcbGridTemplateColumns: z.string().optional(),
|
|
330
336
|
pcbGridTemplate: z.string().optional(),
|
|
331
337
|
pcbGridGap: z.number().or(z.string()).optional(),
|
|
338
|
+
pcbGridRowGap: z.number().or(z.string()).optional(),
|
|
339
|
+
pcbGridColumnGap: z.number().or(z.string()).optional(),
|
|
332
340
|
pcbFlex: z.boolean().or(z.string()).optional(),
|
|
333
341
|
pcbFlexDirection: z.enum(["row", "column"]).optional(),
|
|
334
342
|
pcbAlignItems: z.enum(["start", "center", "end", "stretch"]).optional(),
|
|
@@ -32,9 +32,9 @@ export interface OvalPlatedHoleProps
|
|
|
32
32
|
innerHeight?: number | string
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export interface PillPlatedHoleProps
|
|
36
|
-
extends Omit<PcbLayoutProps, "pcbRotation" | "layer"> {
|
|
35
|
+
export interface PillPlatedHoleProps extends Omit<PcbLayoutProps, "layer"> {
|
|
37
36
|
name?: string
|
|
37
|
+
rectPad?: boolean
|
|
38
38
|
connectsTo?: string | string[]
|
|
39
39
|
shape: "pill"
|
|
40
40
|
outerWidth: number | string
|
|
@@ -113,10 +113,11 @@ export const platedHoleProps = z
|
|
|
113
113
|
innerHeight: distance.optional().describe("DEPRECATED use holeHeight"),
|
|
114
114
|
portHints: portHints.optional(),
|
|
115
115
|
}),
|
|
116
|
-
pcbLayoutProps.omit({
|
|
116
|
+
pcbLayoutProps.omit({ layer: true }).extend({
|
|
117
117
|
name: z.string().optional(),
|
|
118
118
|
connectsTo: z.string().or(z.array(z.string())).optional(),
|
|
119
119
|
shape: z.literal("pill"),
|
|
120
|
+
rectPad: z.boolean().optional(),
|
|
120
121
|
outerWidth: distance,
|
|
121
122
|
outerHeight: distance,
|
|
122
123
|
holeWidth: distanceHiddenUndefined,
|