@tscircuit/props 0.0.385 → 0.0.387

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/dist/index.d.ts CHANGED
@@ -49308,6 +49308,7 @@ declare const fabricationNoteRectProps: z.ZodObject<Omit<{
49308
49308
  hasStroke: z.ZodOptional<z.ZodBoolean>;
49309
49309
  isStrokeDashed: z.ZodOptional<z.ZodBoolean>;
49310
49310
  color: z.ZodOptional<z.ZodString>;
49311
+ cornerRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
49311
49312
  }, "strip", z.ZodTypeAny, {
49312
49313
  width: number;
49313
49314
  height: number;
@@ -49335,6 +49336,7 @@ declare const fabricationNoteRectProps: z.ZodObject<Omit<{
49335
49336
  pcbRelative?: boolean | undefined;
49336
49337
  relative?: boolean | undefined;
49337
49338
  strokeWidth?: number | undefined;
49339
+ cornerRadius?: number | undefined;
49338
49340
  color?: string | undefined;
49339
49341
  isFilled?: boolean | undefined;
49340
49342
  hasStroke?: boolean | undefined;
@@ -49368,6 +49370,7 @@ declare const fabricationNoteRectProps: z.ZodObject<Omit<{
49368
49370
  pcbRelative?: boolean | undefined;
49369
49371
  relative?: boolean | undefined;
49370
49372
  strokeWidth?: string | number | undefined;
49373
+ cornerRadius?: string | number | undefined;
49371
49374
  color?: string | undefined;
49372
49375
  isFilled?: boolean | undefined;
49373
49376
  hasStroke?: boolean | undefined;
@@ -55739,6 +55742,7 @@ declare const schematicRectProps: z.ZodObject<{
55739
55742
  isFilled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
55740
55743
  fillColor: z.ZodOptional<z.ZodString>;
55741
55744
  isDashed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
55745
+ cornerRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
55742
55746
  }, "strip", z.ZodTypeAny, {
55743
55747
  width: number;
55744
55748
  height: number;
@@ -55748,6 +55752,7 @@ declare const schematicRectProps: z.ZodObject<{
55748
55752
  schX?: number | undefined;
55749
55753
  schY?: number | undefined;
55750
55754
  strokeWidth?: number | undefined;
55755
+ cornerRadius?: number | undefined;
55751
55756
  color?: string | undefined;
55752
55757
  fillColor?: string | undefined;
55753
55758
  }, {
@@ -55756,6 +55761,7 @@ declare const schematicRectProps: z.ZodObject<{
55756
55761
  schX?: string | number | undefined;
55757
55762
  schY?: string | number | undefined;
55758
55763
  strokeWidth?: string | number | undefined;
55764
+ cornerRadius?: string | number | undefined;
55759
55765
  color?: string | undefined;
55760
55766
  isFilled?: boolean | undefined;
55761
55767
  isDashed?: boolean | undefined;
@@ -56546,6 +56552,7 @@ declare const silkscreenRectProps: z.ZodObject<Omit<{
56546
56552
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
56547
56553
  width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
56548
56554
  height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
56555
+ cornerRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
56549
56556
  }, "strip", z.ZodTypeAny, {
56550
56557
  width: number;
56551
56558
  height: number;
@@ -56573,6 +56580,7 @@ declare const silkscreenRectProps: z.ZodObject<Omit<{
56573
56580
  pcbRelative?: boolean | undefined;
56574
56581
  relative?: boolean | undefined;
56575
56582
  strokeWidth?: number | undefined;
56583
+ cornerRadius?: number | undefined;
56576
56584
  filled?: boolean | undefined;
56577
56585
  stroke?: "none" | "dashed" | "solid" | undefined;
56578
56586
  }, {
@@ -56604,6 +56612,7 @@ declare const silkscreenRectProps: z.ZodObject<Omit<{
56604
56612
  pcbRelative?: boolean | undefined;
56605
56613
  relative?: boolean | undefined;
56606
56614
  strokeWidth?: string | number | undefined;
56615
+ cornerRadius?: string | number | undefined;
56607
56616
  filled?: boolean | undefined;
56608
56617
  stroke?: "none" | "dashed" | "solid" | undefined;
56609
56618
  }>;
@@ -57232,6 +57241,7 @@ interface PcbNoteRectProps extends Omit<PcbLayoutProps, "pcbRotation"> {
57232
57241
  hasStroke?: boolean;
57233
57242
  isStrokeDashed?: boolean;
57234
57243
  color?: string;
57244
+ cornerRadius?: string | number;
57235
57245
  }
57236
57246
  declare const pcbNoteRectProps: z.ZodObject<Omit<{
57237
57247
  pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -57294,6 +57304,7 @@ declare const pcbNoteRectProps: z.ZodObject<Omit<{
57294
57304
  hasStroke: z.ZodOptional<z.ZodBoolean>;
57295
57305
  isStrokeDashed: z.ZodOptional<z.ZodBoolean>;
57296
57306
  color: z.ZodOptional<z.ZodString>;
57307
+ cornerRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
57297
57308
  }, "strip", z.ZodTypeAny, {
57298
57309
  width: number;
57299
57310
  height: number;
@@ -57321,6 +57332,7 @@ declare const pcbNoteRectProps: z.ZodObject<Omit<{
57321
57332
  pcbRelative?: boolean | undefined;
57322
57333
  relative?: boolean | undefined;
57323
57334
  strokeWidth?: number | undefined;
57335
+ cornerRadius?: number | undefined;
57324
57336
  color?: string | undefined;
57325
57337
  isFilled?: boolean | undefined;
57326
57338
  hasStroke?: boolean | undefined;
@@ -57354,6 +57366,7 @@ declare const pcbNoteRectProps: z.ZodObject<Omit<{
57354
57366
  pcbRelative?: boolean | undefined;
57355
57367
  relative?: boolean | undefined;
57356
57368
  strokeWidth?: string | number | undefined;
57369
+ cornerRadius?: string | number | undefined;
57357
57370
  color?: string | undefined;
57358
57371
  isFilled?: boolean | undefined;
57359
57372
  hasStroke?: boolean | undefined;
package/dist/index.js CHANGED
@@ -1582,7 +1582,8 @@ var fabricationNoteRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend
1582
1582
  isFilled: z68.boolean().optional(),
1583
1583
  hasStroke: z68.boolean().optional(),
1584
1584
  isStrokeDashed: z68.boolean().optional(),
1585
- color: z68.string().optional()
1585
+ color: z68.string().optional(),
1586
+ cornerRadius: distance16.optional()
1586
1587
  });
1587
1588
 
1588
1589
  // lib/components/fabrication-note-path.ts
@@ -1872,7 +1873,8 @@ var schematicRectProps = z86.object({
1872
1873
  color: z86.string().optional(),
1873
1874
  isFilled: z86.boolean().optional().default(false),
1874
1875
  fillColor: z86.string().optional(),
1875
- isDashed: z86.boolean().optional().default(false)
1876
+ isDashed: z86.boolean().optional().default(false),
1877
+ cornerRadius: distance26.optional()
1876
1878
  });
1877
1879
 
1878
1880
  // lib/components/schematic-line.ts
@@ -2029,7 +2031,8 @@ var silkscreenRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
2029
2031
  stroke: z97.enum(["dashed", "solid", "none"]).optional(),
2030
2032
  strokeWidth: distance33.optional(),
2031
2033
  width: distance33,
2032
- height: distance33
2034
+ height: distance33,
2035
+ cornerRadius: distance33.optional()
2033
2036
  });
2034
2037
 
2035
2038
  // lib/components/silkscreen-circle.ts
@@ -2093,7 +2096,8 @@ var pcbNoteRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
2093
2096
  isFilled: z102.boolean().optional(),
2094
2097
  hasStroke: z102.boolean().optional(),
2095
2098
  isStrokeDashed: z102.boolean().optional(),
2096
- color: z102.string().optional()
2099
+ color: z102.string().optional(),
2100
+ cornerRadius: distance36.optional()
2097
2101
  });
2098
2102
  expectTypesMatch(true);
2099
2103