@tscircuit/props 0.0.351 → 0.0.353

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
@@ -1088,7 +1088,8 @@ export interface ViaProps extends CommonLayoutProps {
1088
1088
  ### VoltageProbeProps `<voltageprobe />`
1089
1089
 
1090
1090
  ```ts
1091
- export interface VoltageProbeProps extends CommonComponentProps {
1091
+ export interface VoltageProbeProps extends Omit<CommonComponentProps, "name"> {
1092
+ name?: string;
1092
1093
  connectsTo: string | string[];
1093
1094
  }
1094
1095
  ```
package/dist/index.d.ts CHANGED
@@ -10746,6 +10746,7 @@ declare const boardColorPresets: readonly ["not_specified", "green", "red", "blu
10746
10746
  type BoardColorPreset = (typeof boardColorPresets)[number];
10747
10747
  type BoardColor = AutocompleteString<BoardColorPreset>;
10748
10748
  interface BoardProps extends Omit<SubcircuitGroupProps, "subcircuit"> {
10749
+ title?: string;
10749
10750
  material?: "fr4" | "fr1";
10750
10751
  /** Number of layers for the PCB */
10751
10752
  layers?: 2 | 4;
@@ -11450,6 +11451,7 @@ declare const boardProps: z.ZodObject<{
11450
11451
  y: string | number;
11451
11452
  }>>;
11452
11453
  boardAnchorAlignment: z.ZodOptional<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
11454
+ title: z.ZodOptional<z.ZodString>;
11453
11455
  solderMaskColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
11454
11456
  topSolderMaskColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
11455
11457
  bottomSolderMaskColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
@@ -11735,6 +11737,7 @@ declare const boardProps: z.ZodObject<{
11735
11737
  }[] | undefined;
11736
11738
  outlineOffsetX?: number | undefined;
11737
11739
  outlineOffsetY?: number | undefined;
11740
+ title?: string | undefined;
11738
11741
  borderRadius?: number | undefined;
11739
11742
  boardAnchorPosition?: {
11740
11743
  x: number;
@@ -12028,6 +12031,7 @@ declare const boardProps: z.ZodObject<{
12028
12031
  }[] | undefined;
12029
12032
  outlineOffsetX?: string | number | undefined;
12030
12033
  outlineOffsetY?: string | number | undefined;
12034
+ title?: string | undefined;
12031
12035
  material?: "fr4" | "fr1" | undefined;
12032
12036
  layers?: 2 | 4 | undefined;
12033
12037
  borderRadius?: string | number | undefined;
@@ -27931,6 +27935,7 @@ declare const stampboardProps: z.ZodObject<{
27931
27935
  y: string | number;
27932
27936
  }>>;
27933
27937
  boardAnchorAlignment: z.ZodOptional<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
27938
+ title: z.ZodOptional<z.ZodString>;
27934
27939
  solderMaskColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
27935
27940
  topSolderMaskColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
27936
27941
  bottomSolderMaskColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
@@ -28231,6 +28236,7 @@ declare const stampboardProps: z.ZodObject<{
28231
28236
  }[] | undefined;
28232
28237
  outlineOffsetX?: number | undefined;
28233
28238
  outlineOffsetY?: number | undefined;
28239
+ title?: string | undefined;
28234
28240
  borderRadius?: number | undefined;
28235
28241
  boardAnchorPosition?: {
28236
28242
  x: number;
@@ -28534,6 +28540,7 @@ declare const stampboardProps: z.ZodObject<{
28534
28540
  }[] | undefined;
28535
28541
  outlineOffsetX?: string | number | undefined;
28536
28542
  outlineOffsetY?: string | number | undefined;
28543
+ title?: string | undefined;
28537
28544
  material?: "fr4" | "fr1" | undefined;
28538
28545
  layers?: 2 | 4 | undefined;
28539
28546
  borderRadius?: string | number | undefined;
@@ -47775,10 +47782,11 @@ declare const voltageSourceProps: z.ZodObject<{
47775
47782
  }>;
47776
47783
  declare const voltageSourcePins: readonly ["pin1", "left", "anode", "pos", "pin2", "right", "cathode", "neg"];
47777
47784
 
47778
- interface VoltageProbeProps extends CommonComponentProps {
47785
+ interface VoltageProbeProps extends Omit<CommonComponentProps, "name"> {
47786
+ name?: string;
47779
47787
  connectsTo: string | string[];
47780
47788
  }
47781
- declare const voltageProbeProps: z.ZodObject<{
47789
+ declare const voltageProbeProps: z.ZodObject<Omit<{
47782
47790
  pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
47783
47791
  pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
47784
47792
  pcbRotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -48409,10 +48417,10 @@ declare const voltageProbeProps: z.ZodObject<{
48409
48417
  includeInBoardPinout?: boolean | undefined;
48410
48418
  highlightColor?: string | undefined;
48411
48419
  }>>>;
48412
- } & {
48420
+ }, "name"> & {
48421
+ name: z.ZodOptional<z.ZodString>;
48413
48422
  connectsTo: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
48414
48423
  }, "strip", z.ZodTypeAny, {
48415
- name: string;
48416
48424
  connectsTo: string | string[];
48417
48425
  symbol?: SymbolProp | undefined;
48418
48426
  key?: any;
@@ -48441,6 +48449,7 @@ declare const voltageProbeProps: z.ZodObject<{
48441
48449
  footprint?: FootprintProp | undefined;
48442
48450
  schRelative?: boolean | undefined;
48443
48451
  supplierPartNumbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
48452
+ name?: string | undefined;
48444
48453
  pinAttributes?: Record<string, {
48445
48454
  providesPower?: boolean | undefined;
48446
48455
  requiresPower?: boolean | undefined;
@@ -48585,7 +48594,6 @@ declare const voltageProbeProps: z.ZodObject<{
48585
48594
  doNotPlace?: boolean | undefined;
48586
48595
  obstructsWithinBounds?: boolean | undefined;
48587
48596
  }, {
48588
- name: string;
48589
48597
  connectsTo: string | string[];
48590
48598
  symbol?: SymbolProp | undefined;
48591
48599
  key?: any;
@@ -48616,6 +48624,7 @@ declare const voltageProbeProps: z.ZodObject<{
48616
48624
  footprint?: FootprintProp | undefined;
48617
48625
  schRelative?: boolean | undefined;
48618
48626
  supplierPartNumbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
48627
+ name?: string | undefined;
48619
48628
  pinAttributes?: Record<string, {
48620
48629
  providesPower?: boolean | undefined;
48621
48630
  requiresPower?: boolean | undefined;
@@ -48836,8 +48845,8 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
48836
48845
  paddingBottom?: number | undefined;
48837
48846
  width?: number | undefined;
48838
48847
  height?: number | undefined;
48839
- overlay?: string[] | undefined;
48840
48848
  title?: string | undefined;
48849
+ overlay?: string[] | undefined;
48841
48850
  titleColor?: string | undefined;
48842
48851
  titleFontSize?: number | undefined;
48843
48852
  }, {
@@ -48850,8 +48859,8 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
48850
48859
  paddingBottom?: string | number | undefined;
48851
48860
  width?: string | number | undefined;
48852
48861
  height?: string | number | undefined;
48853
- overlay?: string[] | undefined;
48854
48862
  title?: string | undefined;
48863
+ overlay?: string[] | undefined;
48855
48864
  titleAlignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
48856
48865
  titleColor?: string | undefined;
48857
48866
  titleFontSize?: string | number | undefined;
@@ -48870,8 +48879,8 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
48870
48879
  paddingBottom?: number | undefined;
48871
48880
  width?: number | undefined;
48872
48881
  height?: number | undefined;
48873
- overlay?: string[] | undefined;
48874
48882
  title?: string | undefined;
48883
+ overlay?: string[] | undefined;
48875
48884
  titleColor?: string | undefined;
48876
48885
  titleFontSize?: number | undefined;
48877
48886
  }, {
@@ -48884,8 +48893,8 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
48884
48893
  paddingBottom?: string | number | undefined;
48885
48894
  width?: string | number | undefined;
48886
48895
  height?: string | number | undefined;
48887
- overlay?: string[] | undefined;
48888
48896
  title?: string | undefined;
48897
+ overlay?: string[] | undefined;
48889
48898
  titleAlignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
48890
48899
  titleColor?: string | undefined;
48891
48900
  titleFontSize?: string | number | undefined;
@@ -48904,8 +48913,8 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
48904
48913
  paddingBottom?: number | undefined;
48905
48914
  width?: number | undefined;
48906
48915
  height?: number | undefined;
48907
- overlay?: string[] | undefined;
48908
48916
  title?: string | undefined;
48917
+ overlay?: string[] | undefined;
48909
48918
  titleColor?: string | undefined;
48910
48919
  titleFontSize?: number | undefined;
48911
48920
  }, {
@@ -48918,8 +48927,8 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
48918
48927
  paddingBottom?: string | number | undefined;
48919
48928
  width?: string | number | undefined;
48920
48929
  height?: string | number | undefined;
48921
- overlay?: string[] | undefined;
48922
48930
  title?: string | undefined;
48931
+ overlay?: string[] | undefined;
48923
48932
  titleAlignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
48924
48933
  titleColor?: string | undefined;
48925
48934
  titleFontSize?: string | number | undefined;
package/dist/index.js CHANGED
@@ -640,6 +640,7 @@ var boardProps = subcircuitGroupProps.extend({
640
640
  borderRadius: distance.optional(),
641
641
  boardAnchorPosition: point.optional(),
642
642
  boardAnchorAlignment: ninePointAnchor.optional(),
643
+ title: z28.string().optional(),
643
644
  solderMaskColor: boardColor.optional(),
644
645
  topSolderMaskColor: boardColor.optional(),
645
646
  bottomSolderMaskColor: boardColor.optional(),
@@ -1642,7 +1643,8 @@ expectTypesMatch(true);
1642
1643
 
1643
1644
  // lib/components/voltageprobe.ts
1644
1645
  import { z as z76 } from "zod";
1645
- var voltageProbeProps = commonComponentProps.extend({
1646
+ var voltageProbeProps = commonComponentProps.omit({ name: true }).extend({
1647
+ name: z76.string().optional(),
1646
1648
  connectsTo: z76.string().or(z76.array(z76.string()))
1647
1649
  });
1648
1650
  expectTypesMatch(true);