@tscircuit/props 0.0.274 → 0.0.276
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 +283 -281
- package/dist/index.d.ts +56 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/lib/components/group.ts +4 -0
- package/package.json +3 -2
package/lib/components/group.ts
CHANGED
|
@@ -185,6 +185,7 @@ export interface BaseGroupProps extends CommonLayoutProps, LayoutConfig {
|
|
|
185
185
|
pcbGridColumnGap?: number | string
|
|
186
186
|
|
|
187
187
|
pcbFlex?: boolean | string
|
|
188
|
+
pcbFlexGap?: number | string
|
|
188
189
|
pcbFlexDirection?: "row" | "column"
|
|
189
190
|
pcbAlignItems?: "start" | "center" | "end" | "stretch"
|
|
190
191
|
pcbJustifyContent?:
|
|
@@ -198,6 +199,7 @@ export interface BaseGroupProps extends CommonLayoutProps, LayoutConfig {
|
|
|
198
199
|
pcbFlexRow?: boolean
|
|
199
200
|
pcbFlexColumn?: boolean
|
|
200
201
|
pcbGap?: number | string
|
|
202
|
+
pcbPack?: boolean
|
|
201
203
|
}
|
|
202
204
|
|
|
203
205
|
export type PartsEngine = {
|
|
@@ -338,6 +340,7 @@ export const baseGroupProps = commonLayoutProps.extend({
|
|
|
338
340
|
pcbGridRowGap: z.number().or(z.string()).optional(),
|
|
339
341
|
pcbGridColumnGap: z.number().or(z.string()).optional(),
|
|
340
342
|
pcbFlex: z.boolean().or(z.string()).optional(),
|
|
343
|
+
pcbFlexGap: z.number().or(z.string()).optional(),
|
|
341
344
|
pcbFlexDirection: z.enum(["row", "column"]).optional(),
|
|
342
345
|
pcbAlignItems: z.enum(["start", "center", "end", "stretch"]).optional(),
|
|
343
346
|
pcbJustifyContent: z
|
|
@@ -354,6 +357,7 @@ export const baseGroupProps = commonLayoutProps.extend({
|
|
|
354
357
|
pcbFlexRow: z.boolean().optional(),
|
|
355
358
|
pcbFlexColumn: z.boolean().optional(),
|
|
356
359
|
pcbGap: z.number().or(z.string()).optional(),
|
|
360
|
+
pcbPack: z.boolean().optional(),
|
|
357
361
|
pcbWidth: length.optional(),
|
|
358
362
|
pcbHeight: length.optional(),
|
|
359
363
|
schWidth: length.optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/props",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.276",
|
|
4
4
|
"description": "Props for tscircuit builtin component types",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "tsup lib/index.ts --format esm --dts --sourcemap",
|
|
13
13
|
"check-circular-deps": "madge --circular --extensions ts ./lib",
|
|
14
|
+
"typecheck": "bunx tsc --noEmit",
|
|
14
15
|
"format": "biome format . --write",
|
|
15
16
|
"format:check": "biome format .",
|
|
16
17
|
"generate:manual-edits-docs": "tsx scripts/generate-manual-edits-docs.ts",
|
|
@@ -40,7 +41,7 @@
|
|
|
40
41
|
"tsup": "^8.0.2",
|
|
41
42
|
"tsx": "^4.10.2",
|
|
42
43
|
"typescript": "^5.4.5",
|
|
43
|
-
"zod": "
|
|
44
|
+
"zod": "3"
|
|
44
45
|
},
|
|
45
46
|
"peerDependencies": {
|
|
46
47
|
"circuit-json": "*",
|