@tscircuit/props 0.0.469 → 0.0.470

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 CHANGED
@@ -678,6 +678,10 @@ export interface FootprintProps {
678
678
  * Serialized circuit JSON describing a precompiled footprint
679
679
  */
680
680
  circuitJson?: any[];
681
+ /**
682
+ * Can be a footprint or kicad string
683
+ */
684
+ src?: FootprintProp;
681
685
  }
682
686
  ```
683
687
 
@@ -1489,7 +1493,7 @@ export interface SchematicPathProps {
1489
1493
  strokeWidth?: Distance;
1490
1494
  strokeColor?: string;
1491
1495
  isFilled?: boolean;
1492
- fillColor?: "red" | "blue";
1496
+ fillColor?: string;
1493
1497
  }
1494
1498
  ```
1495
1499
 
package/dist/index.d.ts CHANGED
@@ -94930,6 +94930,10 @@ interface FootprintProps {
94930
94930
  * Serialized circuit JSON describing a precompiled footprint
94931
94931
  */
94932
94932
  circuitJson?: any[];
94933
+ /**
94934
+ * Can be a footprint or kicad string
94935
+ */
94936
+ src?: FootprintProp;
94933
94937
  }
94934
94938
  declare const footprintProps: z.ZodObject<{
94935
94939
  children: z.ZodOptional<z.ZodAny>;
@@ -94943,16 +94947,19 @@ declare const footprintProps: z.ZodObject<{
94943
94947
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
94944
94948
  }>>>;
94945
94949
  circuitJson: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
94950
+ src: z.ZodOptional<z.ZodType<FootprintProp, z.ZodTypeDef, FootprintProp>>;
94946
94951
  }, "strip", z.ZodTypeAny, {
94947
94952
  children?: any;
94948
94953
  circuitJson?: any[] | undefined;
94949
94954
  originalLayer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
94955
+ src?: FootprintProp | undefined;
94950
94956
  }, {
94951
94957
  children?: any;
94952
94958
  circuitJson?: any[] | undefined;
94953
94959
  originalLayer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
94954
94960
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
94955
94961
  } | undefined;
94962
+ src?: FootprintProp | undefined;
94956
94963
  }>;
94957
94964
  type FootprintPropsInput = z.input<typeof footprintProps>;
94958
94965
 
package/dist/index.js CHANGED
@@ -1661,7 +1661,8 @@ import { z as z62 } from "zod";
1661
1661
  var footprintProps = z62.object({
1662
1662
  children: z62.any().optional(),
1663
1663
  originalLayer: layer_ref5.default("top").optional(),
1664
- circuitJson: z62.array(z62.any()).optional()
1664
+ circuitJson: z62.array(z62.any()).optional(),
1665
+ src: footprintProp.describe("Can be a footprint or kicad string").optional()
1665
1666
  });
1666
1667
  expectTypesMatch(true);
1667
1668