@tscircuit/props 0.0.269 → 0.0.271

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.
@@ -164,6 +164,34 @@ export interface BaseGroupProps extends CommonLayoutProps, LayoutConfig {
164
164
  schPaddingRight?: Distance
165
165
  schPaddingTop?: Distance
166
166
  schPaddingBottom?: Distance
167
+
168
+ /** @deprecated Use `pcbGrid` */
169
+ grid?: boolean
170
+ /** @deprecated Use `pcbFlex` */
171
+ flex?: boolean | string
172
+
173
+ pcbGrid?: boolean
174
+ pcbGridCols?: number | string
175
+ pcbGridRows?: number | string
176
+ pcbGridTemplateRows?: string
177
+ pcbGridTemplateColumns?: string
178
+ pcbGridTemplate?: string
179
+ pcbGridGap?: number | string
180
+
181
+ pcbFlex?: boolean | string
182
+ pcbFlexDirection?: "row" | "column"
183
+ pcbAlignItems?: "start" | "center" | "end" | "stretch"
184
+ pcbJustifyContent?:
185
+ | "start"
186
+ | "center"
187
+ | "end"
188
+ | "stretch"
189
+ | "space-between"
190
+ | "space-around"
191
+ | "space-evenly"
192
+ pcbFlexRow?: boolean
193
+ pcbFlexColumn?: boolean
194
+ pcbGap?: number | string
167
195
  }
168
196
 
169
197
  export type PartsEngine = {
@@ -292,6 +320,32 @@ export const baseGroupProps = commonLayoutProps.extend({
292
320
  key: z.any().optional(),
293
321
 
294
322
  ...layoutConfig.shape,
323
+ grid: layoutConfig.shape.grid.describe("@deprecated use pcbGrid"),
324
+ flex: layoutConfig.shape.flex.describe("@deprecated use pcbFlex"),
325
+ pcbGrid: z.boolean().optional(),
326
+ pcbGridCols: z.number().or(z.string()).optional(),
327
+ pcbGridRows: z.number().or(z.string()).optional(),
328
+ pcbGridTemplateRows: z.string().optional(),
329
+ pcbGridTemplateColumns: z.string().optional(),
330
+ pcbGridTemplate: z.string().optional(),
331
+ pcbGridGap: z.number().or(z.string()).optional(),
332
+ pcbFlex: z.boolean().or(z.string()).optional(),
333
+ pcbFlexDirection: z.enum(["row", "column"]).optional(),
334
+ pcbAlignItems: z.enum(["start", "center", "end", "stretch"]).optional(),
335
+ pcbJustifyContent: z
336
+ .enum([
337
+ "start",
338
+ "center",
339
+ "end",
340
+ "stretch",
341
+ "space-between",
342
+ "space-around",
343
+ "space-evenly",
344
+ ])
345
+ .optional(),
346
+ pcbFlexRow: z.boolean().optional(),
347
+ pcbFlexColumn: z.boolean().optional(),
348
+ pcbGap: z.number().or(z.string()).optional(),
295
349
  pcbWidth: length.optional(),
296
350
  pcbHeight: length.optional(),
297
351
  schWidth: length.optional(),
@@ -37,9 +37,9 @@ export interface PinHeaderProps extends CommonComponentProps {
37
37
  schFacingDirection?: "up" | "down" | "left" | "right"
38
38
 
39
39
  /**
40
- * Whether the header is male or female
40
+ * Whether the header is male, female, or unpopulated
41
41
  */
42
- gender?: "male" | "female"
42
+ gender?: "male" | "female" | "unpopulated"
43
43
 
44
44
  /**
45
45
  * Whether to show pin labels in silkscreen
@@ -111,7 +111,7 @@ export const pinHeaderProps = commonComponentProps.extend({
111
111
  pinCount: z.number(),
112
112
  pitch: distance.optional(),
113
113
  schFacingDirection: z.enum(["up", "down", "left", "right"]).optional(),
114
- gender: z.enum(["male", "female"]).optional().default("male"),
114
+ gender: z.enum(["male", "female", "unpopulated"]).optional().default("male"),
115
115
  showSilkscreenPinLabels: z.boolean().optional(),
116
116
  pcbPinLabels: z.record(z.string(), z.string()).optional(),
117
117
  doubleRow: z.boolean().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.269",
3
+ "version": "0.0.271",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",