@tscircuit/props 0.0.223 → 0.0.225

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
@@ -388,8 +388,8 @@ export interface BaseGroupProps extends CommonLayoutProps, LayoutConfig {
388
388
 
389
389
  pcbLayout?: LayoutConfig
390
390
  schLayout?: LayoutConfig
391
- cellBorder?: Border
392
- border?: Border
391
+ cellBorder?: Border | null
392
+ border?: Border | null
393
393
  }
394
394
  ```
395
395
 
package/dist/index.d.ts CHANGED
@@ -2827,8 +2827,8 @@ interface BaseGroupProps extends CommonLayoutProps, LayoutConfig {
2827
2827
  schHeight?: Distance;
2828
2828
  pcbLayout?: LayoutConfig;
2829
2829
  schLayout?: LayoutConfig;
2830
- cellBorder?: Border;
2831
- border?: Border;
2830
+ cellBorder?: Border | null;
2831
+ border?: Border | null;
2832
2832
  }
2833
2833
  type PartsEngine = {
2834
2834
  findPart: (params: {
@@ -3084,7 +3084,7 @@ declare const baseGroupProps: z.ZodObject<z.objectUtil.extendShape<{
3084
3084
  matchAdapt?: boolean | undefined;
3085
3085
  matchAdaptTemplate?: any;
3086
3086
  }>>;
3087
- cellBorder: z.ZodOptional<z.ZodObject<{
3087
+ cellBorder: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3088
3088
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
3089
3089
  dashed: z.ZodOptional<z.ZodBoolean>;
3090
3090
  solid: z.ZodOptional<z.ZodBoolean>;
@@ -3096,8 +3096,8 @@ declare const baseGroupProps: z.ZodObject<z.objectUtil.extendShape<{
3096
3096
  strokeWidth?: string | number | undefined;
3097
3097
  dashed?: boolean | undefined;
3098
3098
  solid?: boolean | undefined;
3099
- }>>;
3100
- border: z.ZodOptional<z.ZodObject<{
3099
+ }>>>;
3100
+ border: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3101
3101
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
3102
3102
  dashed: z.ZodOptional<z.ZodBoolean>;
3103
3103
  solid: z.ZodOptional<z.ZodBoolean>;
@@ -3109,7 +3109,7 @@ declare const baseGroupProps: z.ZodObject<z.objectUtil.extendShape<{
3109
3109
  strokeWidth?: string | number | undefined;
3110
3110
  dashed?: boolean | undefined;
3111
3111
  solid?: boolean | undefined;
3112
- }>>;
3112
+ }>>>;
3113
3113
  layoutMode: z.ZodOptional<z.ZodEnum<["grid", "flex", "match-adapt", "none"]>>;
3114
3114
  position: z.ZodOptional<z.ZodEnum<["absolute", "relative"]>>;
3115
3115
  grid: z.ZodOptional<z.ZodBoolean>;
@@ -3217,12 +3217,12 @@ declare const baseGroupProps: z.ZodObject<z.objectUtil.extendShape<{
3217
3217
  strokeWidth?: number | undefined;
3218
3218
  dashed?: boolean | undefined;
3219
3219
  solid?: boolean | undefined;
3220
- } | undefined;
3220
+ } | null | undefined;
3221
3221
  border?: {
3222
3222
  strokeWidth?: number | undefined;
3223
3223
  dashed?: boolean | undefined;
3224
3224
  solid?: boolean | undefined;
3225
- } | undefined;
3225
+ } | null | undefined;
3226
3226
  }, {
3227
3227
  pcbX?: string | number | undefined;
3228
3228
  pcbY?: string | number | undefined;
@@ -3309,12 +3309,12 @@ declare const baseGroupProps: z.ZodObject<z.objectUtil.extendShape<{
3309
3309
  strokeWidth?: string | number | undefined;
3310
3310
  dashed?: boolean | undefined;
3311
3311
  solid?: boolean | undefined;
3312
- } | undefined;
3312
+ } | null | undefined;
3313
3313
  border?: {
3314
3314
  strokeWidth?: string | number | undefined;
3315
3315
  dashed?: boolean | undefined;
3316
3316
  solid?: boolean | undefined;
3317
- } | undefined;
3317
+ } | null | undefined;
3318
3318
  }>;
3319
3319
  declare const partsEngine: z.ZodType<PartsEngine, z.ZodTypeDef, PartsEngine>;
3320
3320
  declare const subcircuitGroupProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
@@ -3467,7 +3467,7 @@ declare const subcircuitGroupProps: z.ZodObject<z.objectUtil.extendShape<z.objec
3467
3467
  matchAdapt?: boolean | undefined;
3468
3468
  matchAdaptTemplate?: any;
3469
3469
  }>>;
3470
- cellBorder: z.ZodOptional<z.ZodObject<{
3470
+ cellBorder: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3471
3471
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
3472
3472
  dashed: z.ZodOptional<z.ZodBoolean>;
3473
3473
  solid: z.ZodOptional<z.ZodBoolean>;
@@ -3479,8 +3479,8 @@ declare const subcircuitGroupProps: z.ZodObject<z.objectUtil.extendShape<z.objec
3479
3479
  strokeWidth?: string | number | undefined;
3480
3480
  dashed?: boolean | undefined;
3481
3481
  solid?: boolean | undefined;
3482
- }>>;
3483
- border: z.ZodOptional<z.ZodObject<{
3482
+ }>>>;
3483
+ border: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3484
3484
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
3485
3485
  dashed: z.ZodOptional<z.ZodBoolean>;
3486
3486
  solid: z.ZodOptional<z.ZodBoolean>;
@@ -3492,7 +3492,7 @@ declare const subcircuitGroupProps: z.ZodObject<z.objectUtil.extendShape<z.objec
3492
3492
  strokeWidth?: string | number | undefined;
3493
3493
  dashed?: boolean | undefined;
3494
3494
  solid?: boolean | undefined;
3495
- }>>;
3495
+ }>>>;
3496
3496
  layoutMode: z.ZodOptional<z.ZodEnum<["grid", "flex", "match-adapt", "none"]>>;
3497
3497
  position: z.ZodOptional<z.ZodEnum<["absolute", "relative"]>>;
3498
3498
  grid: z.ZodOptional<z.ZodBoolean>;
@@ -3803,12 +3803,12 @@ declare const subcircuitGroupProps: z.ZodObject<z.objectUtil.extendShape<z.objec
3803
3803
  strokeWidth?: number | undefined;
3804
3804
  dashed?: boolean | undefined;
3805
3805
  solid?: boolean | undefined;
3806
- } | undefined;
3806
+ } | null | undefined;
3807
3807
  border?: {
3808
3808
  strokeWidth?: number | undefined;
3809
3809
  dashed?: boolean | undefined;
3810
3810
  solid?: boolean | undefined;
3811
- } | undefined;
3811
+ } | null | undefined;
3812
3812
  layout?: LayoutBuilder | undefined;
3813
3813
  manualEdits?: {
3814
3814
  pcb_placements?: {
@@ -3941,12 +3941,12 @@ declare const subcircuitGroupProps: z.ZodObject<z.objectUtil.extendShape<z.objec
3941
3941
  strokeWidth?: string | number | undefined;
3942
3942
  dashed?: boolean | undefined;
3943
3943
  solid?: boolean | undefined;
3944
- } | undefined;
3944
+ } | null | undefined;
3945
3945
  border?: {
3946
3946
  strokeWidth?: string | number | undefined;
3947
3947
  dashed?: boolean | undefined;
3948
3948
  solid?: boolean | undefined;
3949
- } | undefined;
3949
+ } | null | undefined;
3950
3950
  layout?: LayoutBuilder | undefined;
3951
3951
  manualEdits?: {
3952
3952
  pcb_placements?: {
@@ -4146,7 +4146,7 @@ declare const subcircuitGroupPropsWithBool: z.ZodObject<z.objectUtil.extendShape
4146
4146
  matchAdapt?: boolean | undefined;
4147
4147
  matchAdaptTemplate?: any;
4148
4148
  }>>;
4149
- cellBorder: z.ZodOptional<z.ZodObject<{
4149
+ cellBorder: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4150
4150
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
4151
4151
  dashed: z.ZodOptional<z.ZodBoolean>;
4152
4152
  solid: z.ZodOptional<z.ZodBoolean>;
@@ -4158,8 +4158,8 @@ declare const subcircuitGroupPropsWithBool: z.ZodObject<z.objectUtil.extendShape
4158
4158
  strokeWidth?: string | number | undefined;
4159
4159
  dashed?: boolean | undefined;
4160
4160
  solid?: boolean | undefined;
4161
- }>>;
4162
- border: z.ZodOptional<z.ZodObject<{
4161
+ }>>>;
4162
+ border: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4163
4163
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
4164
4164
  dashed: z.ZodOptional<z.ZodBoolean>;
4165
4165
  solid: z.ZodOptional<z.ZodBoolean>;
@@ -4171,7 +4171,7 @@ declare const subcircuitGroupPropsWithBool: z.ZodObject<z.objectUtil.extendShape
4171
4171
  strokeWidth?: string | number | undefined;
4172
4172
  dashed?: boolean | undefined;
4173
4173
  solid?: boolean | undefined;
4174
- }>>;
4174
+ }>>>;
4175
4175
  layoutMode: z.ZodOptional<z.ZodEnum<["grid", "flex", "match-adapt", "none"]>>;
4176
4176
  position: z.ZodOptional<z.ZodEnum<["absolute", "relative"]>>;
4177
4177
  grid: z.ZodOptional<z.ZodBoolean>;
@@ -4485,12 +4485,12 @@ declare const subcircuitGroupPropsWithBool: z.ZodObject<z.objectUtil.extendShape
4485
4485
  strokeWidth?: number | undefined;
4486
4486
  dashed?: boolean | undefined;
4487
4487
  solid?: boolean | undefined;
4488
- } | undefined;
4488
+ } | null | undefined;
4489
4489
  border?: {
4490
4490
  strokeWidth?: number | undefined;
4491
4491
  dashed?: boolean | undefined;
4492
4492
  solid?: boolean | undefined;
4493
- } | undefined;
4493
+ } | null | undefined;
4494
4494
  layout?: LayoutBuilder | undefined;
4495
4495
  manualEdits?: {
4496
4496
  pcb_placements?: {
@@ -4624,12 +4624,12 @@ declare const subcircuitGroupPropsWithBool: z.ZodObject<z.objectUtil.extendShape
4624
4624
  strokeWidth?: string | number | undefined;
4625
4625
  dashed?: boolean | undefined;
4626
4626
  solid?: boolean | undefined;
4627
- } | undefined;
4627
+ } | null | undefined;
4628
4628
  border?: {
4629
4629
  strokeWidth?: string | number | undefined;
4630
4630
  dashed?: boolean | undefined;
4631
4631
  solid?: boolean | undefined;
4632
- } | undefined;
4632
+ } | null | undefined;
4633
4633
  layout?: LayoutBuilder | undefined;
4634
4634
  manualEdits?: {
4635
4635
  pcb_placements?: {
@@ -4829,7 +4829,7 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<z.o
4829
4829
  matchAdapt?: boolean | undefined;
4830
4830
  matchAdaptTemplate?: any;
4831
4831
  }>>;
4832
- cellBorder: z.ZodOptional<z.ZodObject<{
4832
+ cellBorder: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4833
4833
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
4834
4834
  dashed: z.ZodOptional<z.ZodBoolean>;
4835
4835
  solid: z.ZodOptional<z.ZodBoolean>;
@@ -4841,8 +4841,8 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<z.o
4841
4841
  strokeWidth?: string | number | undefined;
4842
4842
  dashed?: boolean | undefined;
4843
4843
  solid?: boolean | undefined;
4844
- }>>;
4845
- border: z.ZodOptional<z.ZodObject<{
4844
+ }>>>;
4845
+ border: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4846
4846
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
4847
4847
  dashed: z.ZodOptional<z.ZodBoolean>;
4848
4848
  solid: z.ZodOptional<z.ZodBoolean>;
@@ -4854,7 +4854,7 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<z.o
4854
4854
  strokeWidth?: string | number | undefined;
4855
4855
  dashed?: boolean | undefined;
4856
4856
  solid?: boolean | undefined;
4857
- }>>;
4857
+ }>>>;
4858
4858
  layoutMode: z.ZodOptional<z.ZodEnum<["grid", "flex", "match-adapt", "none"]>>;
4859
4859
  position: z.ZodOptional<z.ZodEnum<["absolute", "relative"]>>;
4860
4860
  grid: z.ZodOptional<z.ZodBoolean>;
@@ -4964,12 +4964,12 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<z.o
4964
4964
  strokeWidth?: number | undefined;
4965
4965
  dashed?: boolean | undefined;
4966
4966
  solid?: boolean | undefined;
4967
- } | undefined;
4967
+ } | null | undefined;
4968
4968
  border?: {
4969
4969
  strokeWidth?: number | undefined;
4970
4970
  dashed?: boolean | undefined;
4971
4971
  solid?: boolean | undefined;
4972
- } | undefined;
4972
+ } | null | undefined;
4973
4973
  subcircuit?: false | undefined;
4974
4974
  }, {
4975
4975
  pcbX?: string | number | undefined;
@@ -5057,12 +5057,12 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<z.o
5057
5057
  strokeWidth?: string | number | undefined;
5058
5058
  dashed?: boolean | undefined;
5059
5059
  solid?: boolean | undefined;
5060
- } | undefined;
5060
+ } | null | undefined;
5061
5061
  border?: {
5062
5062
  strokeWidth?: string | number | undefined;
5063
5063
  dashed?: boolean | undefined;
5064
5064
  solid?: boolean | undefined;
5065
- } | undefined;
5065
+ } | null | undefined;
5066
5066
  subcircuit?: false | undefined;
5067
5067
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
5068
5068
  pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -5214,7 +5214,7 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<z.o
5214
5214
  matchAdapt?: boolean | undefined;
5215
5215
  matchAdaptTemplate?: any;
5216
5216
  }>>;
5217
- cellBorder: z.ZodOptional<z.ZodObject<{
5217
+ cellBorder: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5218
5218
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
5219
5219
  dashed: z.ZodOptional<z.ZodBoolean>;
5220
5220
  solid: z.ZodOptional<z.ZodBoolean>;
@@ -5226,8 +5226,8 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<z.o
5226
5226
  strokeWidth?: string | number | undefined;
5227
5227
  dashed?: boolean | undefined;
5228
5228
  solid?: boolean | undefined;
5229
- }>>;
5230
- border: z.ZodOptional<z.ZodObject<{
5229
+ }>>>;
5230
+ border: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5231
5231
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
5232
5232
  dashed: z.ZodOptional<z.ZodBoolean>;
5233
5233
  solid: z.ZodOptional<z.ZodBoolean>;
@@ -5239,7 +5239,7 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<z.o
5239
5239
  strokeWidth?: string | number | undefined;
5240
5240
  dashed?: boolean | undefined;
5241
5241
  solid?: boolean | undefined;
5242
- }>>;
5242
+ }>>>;
5243
5243
  layoutMode: z.ZodOptional<z.ZodEnum<["grid", "flex", "match-adapt", "none"]>>;
5244
5244
  position: z.ZodOptional<z.ZodEnum<["absolute", "relative"]>>;
5245
5245
  grid: z.ZodOptional<z.ZodBoolean>;
@@ -5553,12 +5553,12 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<z.o
5553
5553
  strokeWidth?: number | undefined;
5554
5554
  dashed?: boolean | undefined;
5555
5555
  solid?: boolean | undefined;
5556
- } | undefined;
5556
+ } | null | undefined;
5557
5557
  border?: {
5558
5558
  strokeWidth?: number | undefined;
5559
5559
  dashed?: boolean | undefined;
5560
5560
  solid?: boolean | undefined;
5561
- } | undefined;
5561
+ } | null | undefined;
5562
5562
  layout?: LayoutBuilder | undefined;
5563
5563
  manualEdits?: {
5564
5564
  pcb_placements?: {
@@ -5692,12 +5692,12 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<z.o
5692
5692
  strokeWidth?: string | number | undefined;
5693
5693
  dashed?: boolean | undefined;
5694
5694
  solid?: boolean | undefined;
5695
- } | undefined;
5695
+ } | null | undefined;
5696
5696
  border?: {
5697
5697
  strokeWidth?: string | number | undefined;
5698
5698
  dashed?: boolean | undefined;
5699
5699
  solid?: boolean | undefined;
5700
- } | undefined;
5700
+ } | null | undefined;
5701
5701
  layout?: LayoutBuilder | undefined;
5702
5702
  manualEdits?: {
5703
5703
  pcb_placements?: {
@@ -5911,7 +5911,7 @@ declare const boardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
5911
5911
  matchAdapt?: boolean | undefined;
5912
5912
  matchAdaptTemplate?: any;
5913
5913
  }>>;
5914
- cellBorder: z.ZodOptional<z.ZodObject<{
5914
+ cellBorder: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5915
5915
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
5916
5916
  dashed: z.ZodOptional<z.ZodBoolean>;
5917
5917
  solid: z.ZodOptional<z.ZodBoolean>;
@@ -5923,8 +5923,8 @@ declare const boardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
5923
5923
  strokeWidth?: string | number | undefined;
5924
5924
  dashed?: boolean | undefined;
5925
5925
  solid?: boolean | undefined;
5926
- }>>;
5927
- border: z.ZodOptional<z.ZodObject<{
5926
+ }>>>;
5927
+ border: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5928
5928
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
5929
5929
  dashed: z.ZodOptional<z.ZodBoolean>;
5930
5930
  solid: z.ZodOptional<z.ZodBoolean>;
@@ -5936,7 +5936,7 @@ declare const boardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
5936
5936
  strokeWidth?: string | number | undefined;
5937
5937
  dashed?: boolean | undefined;
5938
5938
  solid?: boolean | undefined;
5939
- }>>;
5939
+ }>>>;
5940
5940
  layoutMode: z.ZodOptional<z.ZodEnum<["grid", "flex", "match-adapt", "none"]>>;
5941
5941
  position: z.ZodOptional<z.ZodEnum<["absolute", "relative"]>>;
5942
5942
  grid: z.ZodOptional<z.ZodBoolean>;
@@ -6264,12 +6264,12 @@ declare const boardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
6264
6264
  strokeWidth?: number | undefined;
6265
6265
  dashed?: boolean | undefined;
6266
6266
  solid?: boolean | undefined;
6267
- } | undefined;
6267
+ } | null | undefined;
6268
6268
  border?: {
6269
6269
  strokeWidth?: number | undefined;
6270
6270
  dashed?: boolean | undefined;
6271
6271
  solid?: boolean | undefined;
6272
- } | undefined;
6272
+ } | null | undefined;
6273
6273
  layout?: LayoutBuilder | undefined;
6274
6274
  manualEdits?: {
6275
6275
  pcb_placements?: {
@@ -6408,12 +6408,12 @@ declare const boardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
6408
6408
  strokeWidth?: string | number | undefined;
6409
6409
  dashed?: boolean | undefined;
6410
6410
  solid?: boolean | undefined;
6411
- } | undefined;
6411
+ } | null | undefined;
6412
6412
  border?: {
6413
6413
  strokeWidth?: string | number | undefined;
6414
6414
  dashed?: boolean | undefined;
6415
6415
  solid?: boolean | undefined;
6416
- } | undefined;
6416
+ } | null | undefined;
6417
6417
  layout?: LayoutBuilder | undefined;
6418
6418
  manualEdits?: {
6419
6419
  pcb_placements?: {
@@ -6628,7 +6628,7 @@ declare const breakoutProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
6628
6628
  matchAdapt?: boolean | undefined;
6629
6629
  matchAdaptTemplate?: any;
6630
6630
  }>>;
6631
- cellBorder: z.ZodOptional<z.ZodObject<{
6631
+ cellBorder: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6632
6632
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
6633
6633
  dashed: z.ZodOptional<z.ZodBoolean>;
6634
6634
  solid: z.ZodOptional<z.ZodBoolean>;
@@ -6640,8 +6640,8 @@ declare const breakoutProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
6640
6640
  strokeWidth?: string | number | undefined;
6641
6641
  dashed?: boolean | undefined;
6642
6642
  solid?: boolean | undefined;
6643
- }>>;
6644
- border: z.ZodOptional<z.ZodObject<{
6643
+ }>>>;
6644
+ border: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6645
6645
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
6646
6646
  dashed: z.ZodOptional<z.ZodBoolean>;
6647
6647
  solid: z.ZodOptional<z.ZodBoolean>;
@@ -6653,7 +6653,7 @@ declare const breakoutProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
6653
6653
  strokeWidth?: string | number | undefined;
6654
6654
  dashed?: boolean | undefined;
6655
6655
  solid?: boolean | undefined;
6656
- }>>;
6656
+ }>>>;
6657
6657
  layoutMode: z.ZodOptional<z.ZodEnum<["grid", "flex", "match-adapt", "none"]>>;
6658
6658
  position: z.ZodOptional<z.ZodEnum<["absolute", "relative"]>>;
6659
6659
  grid: z.ZodOptional<z.ZodBoolean>;
@@ -6970,12 +6970,12 @@ declare const breakoutProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
6970
6970
  strokeWidth?: number | undefined;
6971
6971
  dashed?: boolean | undefined;
6972
6972
  solid?: boolean | undefined;
6973
- } | undefined;
6973
+ } | null | undefined;
6974
6974
  border?: {
6975
6975
  strokeWidth?: number | undefined;
6976
6976
  dashed?: boolean | undefined;
6977
6977
  solid?: boolean | undefined;
6978
- } | undefined;
6978
+ } | null | undefined;
6979
6979
  layout?: _tscircuit_layout.LayoutBuilder | undefined;
6980
6980
  manualEdits?: {
6981
6981
  pcb_placements?: {
@@ -7113,12 +7113,12 @@ declare const breakoutProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
7113
7113
  strokeWidth?: string | number | undefined;
7114
7114
  dashed?: boolean | undefined;
7115
7115
  solid?: boolean | undefined;
7116
- } | undefined;
7116
+ } | null | undefined;
7117
7117
  border?: {
7118
7118
  strokeWidth?: string | number | undefined;
7119
7119
  dashed?: boolean | undefined;
7120
7120
  solid?: boolean | undefined;
7121
- } | undefined;
7121
+ } | null | undefined;
7122
7122
  layout?: _tscircuit_layout.LayoutBuilder | undefined;
7123
7123
  manualEdits?: {
7124
7124
  pcb_placements?: {
@@ -11298,12 +11298,12 @@ interface PillPlatedHoleProps extends Omit<PcbLayoutProps, "pcbRotation" | "laye
11298
11298
  }
11299
11299
  interface CircularHoleWithRectPlatedProps extends Omit<PcbLayoutProps, "pcbRotation" | "layer"> {
11300
11300
  name?: string;
11301
+ shape: "circular_hole_with_rect_pad";
11301
11302
  holeDiameter: number | string;
11302
11303
  rectPadWidth: number | string;
11303
11304
  rectPadHeight: number | string;
11304
11305
  holeShape?: "circle";
11305
11306
  padShape?: "rect";
11306
- shape?: "circular_hole_with_rect_pad";
11307
11307
  portHints?: PortHints;
11308
11308
  }
11309
11309
  interface PillWithRectPadPlatedHoleProps extends Omit<PcbLayoutProps, "pcbRotation" | "layer"> {
@@ -11318,7 +11318,7 @@ interface PillWithRectPadPlatedHoleProps extends Omit<PcbLayoutProps, "pcbRotati
11318
11318
  portHints?: PortHints;
11319
11319
  }
11320
11320
  type PlatedHoleProps = CirclePlatedHoleProps | OvalPlatedHoleProps | PillPlatedHoleProps | CircularHoleWithRectPlatedProps | PillWithRectPadPlatedHoleProps;
11321
- declare const platedHoleProps: z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<Omit<{
11321
+ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.ZodObject<z.objectUtil.extendShape<Omit<{
11322
11322
  pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
11323
11323
  pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
11324
11324
  pcbRotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -11447,7 +11447,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil
11447
11447
  portHints?: (string | number)[] | undefined;
11448
11448
  innerWidth?: string | number | undefined;
11449
11449
  innerHeight?: string | number | undefined;
11450
- }>, z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<Omit<{
11450
+ }>, z.ZodObject<z.objectUtil.extendShape<Omit<{
11451
11451
  pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
11452
11452
  pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
11453
11453
  pcbRotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -11462,54 +11462,32 @@ declare const platedHoleProps: z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil
11462
11462
  }>>;
11463
11463
  }, "pcbRotation" | "layer">, {
11464
11464
  name: z.ZodOptional<z.ZodString>;
11465
+ shape: z.ZodLiteral<"circular_hole_with_rect_pad">;
11465
11466
  holeDiameter: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
11466
11467
  rectPadWidth: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
11467
11468
  rectPadHeight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
11468
11469
  holeShape: z.ZodOptional<z.ZodLiteral<"circle">>;
11469
11470
  padShape: z.ZodOptional<z.ZodLiteral<"rect">>;
11470
- shape: z.ZodOptional<z.ZodLiteral<"circular_hole_with_rect_pad">>;
11471
11471
  portHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
11472
11472
  }>, "strip", z.ZodTypeAny, {
11473
+ shape: "circular_hole_with_rect_pad";
11473
11474
  holeDiameter: number;
11474
11475
  rectPadWidth: number;
11475
11476
  rectPadHeight: number;
11476
11477
  pcbX?: number | undefined;
11477
11478
  pcbY?: number | undefined;
11478
11479
  name?: string | undefined;
11479
- shape?: "circular_hole_with_rect_pad" | undefined;
11480
- portHints?: (string | number)[] | undefined;
11481
- holeShape?: "circle" | undefined;
11482
- padShape?: "rect" | undefined;
11483
- }, {
11484
- holeDiameter: string | number;
11485
- rectPadWidth: string | number;
11486
- rectPadHeight: string | number;
11487
- pcbX?: string | number | undefined;
11488
- pcbY?: string | number | undefined;
11489
- name?: string | undefined;
11490
- shape?: "circular_hole_with_rect_pad" | undefined;
11491
- portHints?: (string | number)[] | undefined;
11492
- holeShape?: "circle" | undefined;
11493
- padShape?: "rect" | undefined;
11494
- }>, {
11495
- holeDiameter: number;
11496
- rectPadWidth: number;
11497
- rectPadHeight: number;
11498
- pcbX?: number | undefined;
11499
- pcbY?: number | undefined;
11500
- name?: string | undefined;
11501
- shape?: "circular_hole_with_rect_pad" | undefined;
11502
11480
  portHints?: (string | number)[] | undefined;
11503
11481
  holeShape?: "circle" | undefined;
11504
11482
  padShape?: "rect" | undefined;
11505
11483
  }, {
11484
+ shape: "circular_hole_with_rect_pad";
11506
11485
  holeDiameter: string | number;
11507
11486
  rectPadWidth: string | number;
11508
11487
  rectPadHeight: string | number;
11509
11488
  pcbX?: string | number | undefined;
11510
11489
  pcbY?: string | number | undefined;
11511
11490
  name?: string | undefined;
11512
- shape?: "circular_hole_with_rect_pad" | undefined;
11513
11491
  portHints?: (string | number)[] | undefined;
11514
11492
  holeShape?: "circle" | undefined;
11515
11493
  padShape?: "rect" | undefined;
@@ -11593,13 +11571,13 @@ declare const platedHoleProps: z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil
11593
11571
  innerWidth?: number | undefined;
11594
11572
  innerHeight?: number | undefined;
11595
11573
  } | {
11574
+ shape: "circular_hole_with_rect_pad";
11596
11575
  holeDiameter: number;
11597
11576
  rectPadWidth: number;
11598
11577
  rectPadHeight: number;
11599
11578
  pcbX?: number | undefined;
11600
11579
  pcbY?: number | undefined;
11601
11580
  name?: string | undefined;
11602
- shape?: "circular_hole_with_rect_pad" | undefined;
11603
11581
  portHints?: (string | number)[] | undefined;
11604
11582
  holeShape?: "circle" | undefined;
11605
11583
  padShape?: "rect" | undefined;
@@ -11648,13 +11626,13 @@ declare const platedHoleProps: z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil
11648
11626
  innerWidth?: string | number | undefined;
11649
11627
  innerHeight?: string | number | undefined;
11650
11628
  } | {
11629
+ shape: "circular_hole_with_rect_pad";
11651
11630
  holeDiameter: string | number;
11652
11631
  rectPadWidth: string | number;
11653
11632
  rectPadHeight: string | number;
11654
11633
  pcbX?: string | number | undefined;
11655
11634
  pcbY?: string | number | undefined;
11656
11635
  name?: string | undefined;
11657
- shape?: "circular_hole_with_rect_pad" | undefined;
11658
11636
  portHints?: (string | number)[] | undefined;
11659
11637
  holeShape?: "circle" | undefined;
11660
11638
  padShape?: "rect" | undefined;
@@ -13497,7 +13475,7 @@ declare const stampboardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
13497
13475
  matchAdapt?: boolean | undefined;
13498
13476
  matchAdaptTemplate?: any;
13499
13477
  }>>;
13500
- cellBorder: z.ZodOptional<z.ZodObject<{
13478
+ cellBorder: z.ZodOptional<z.ZodNullable<z.ZodObject<{
13501
13479
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
13502
13480
  dashed: z.ZodOptional<z.ZodBoolean>;
13503
13481
  solid: z.ZodOptional<z.ZodBoolean>;
@@ -13509,8 +13487,8 @@ declare const stampboardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
13509
13487
  strokeWidth?: string | number | undefined;
13510
13488
  dashed?: boolean | undefined;
13511
13489
  solid?: boolean | undefined;
13512
- }>>;
13513
- border: z.ZodOptional<z.ZodObject<{
13490
+ }>>>;
13491
+ border: z.ZodOptional<z.ZodNullable<z.ZodObject<{
13514
13492
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
13515
13493
  dashed: z.ZodOptional<z.ZodBoolean>;
13516
13494
  solid: z.ZodOptional<z.ZodBoolean>;
@@ -13522,7 +13500,7 @@ declare const stampboardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
13522
13500
  strokeWidth?: string | number | undefined;
13523
13501
  dashed?: boolean | undefined;
13524
13502
  solid?: boolean | undefined;
13525
- }>>;
13503
+ }>>>;
13526
13504
  layoutMode: z.ZodOptional<z.ZodEnum<["grid", "flex", "match-adapt", "none"]>>;
13527
13505
  position: z.ZodOptional<z.ZodEnum<["absolute", "relative"]>>;
13528
13506
  grid: z.ZodOptional<z.ZodBoolean>;
@@ -13865,12 +13843,12 @@ declare const stampboardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
13865
13843
  strokeWidth?: number | undefined;
13866
13844
  dashed?: boolean | undefined;
13867
13845
  solid?: boolean | undefined;
13868
- } | undefined;
13846
+ } | null | undefined;
13869
13847
  border?: {
13870
13848
  strokeWidth?: number | undefined;
13871
13849
  dashed?: boolean | undefined;
13872
13850
  solid?: boolean | undefined;
13873
- } | undefined;
13851
+ } | null | undefined;
13874
13852
  layout?: _tscircuit_layout.LayoutBuilder | undefined;
13875
13853
  manualEdits?: {
13876
13854
  pcb_placements?: {
@@ -14019,12 +13997,12 @@ declare const stampboardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
14019
13997
  strokeWidth?: string | number | undefined;
14020
13998
  dashed?: boolean | undefined;
14021
13999
  solid?: boolean | undefined;
14022
- } | undefined;
14000
+ } | null | undefined;
14023
14001
  border?: {
14024
14002
  strokeWidth?: string | number | undefined;
14025
14003
  dashed?: boolean | undefined;
14026
14004
  solid?: boolean | undefined;
14027
- } | undefined;
14005
+ } | null | undefined;
14028
14006
  layout?: _tscircuit_layout.LayoutBuilder | undefined;
14029
14007
  manualEdits?: {
14030
14008
  pcb_placements?: {
@@ -17904,7 +17882,7 @@ declare const subcircuitProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
17904
17882
  matchAdapt?: boolean | undefined;
17905
17883
  matchAdaptTemplate?: any;
17906
17884
  }>>;
17907
- cellBorder: z.ZodOptional<z.ZodObject<{
17885
+ cellBorder: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17908
17886
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
17909
17887
  dashed: z.ZodOptional<z.ZodBoolean>;
17910
17888
  solid: z.ZodOptional<z.ZodBoolean>;
@@ -17916,8 +17894,8 @@ declare const subcircuitProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
17916
17894
  strokeWidth?: string | number | undefined;
17917
17895
  dashed?: boolean | undefined;
17918
17896
  solid?: boolean | undefined;
17919
- }>>;
17920
- border: z.ZodOptional<z.ZodObject<{
17897
+ }>>>;
17898
+ border: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17921
17899
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
17922
17900
  dashed: z.ZodOptional<z.ZodBoolean>;
17923
17901
  solid: z.ZodOptional<z.ZodBoolean>;
@@ -17929,7 +17907,7 @@ declare const subcircuitProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
17929
17907
  strokeWidth?: string | number | undefined;
17930
17908
  dashed?: boolean | undefined;
17931
17909
  solid?: boolean | undefined;
17932
- }>>;
17910
+ }>>>;
17933
17911
  layoutMode: z.ZodOptional<z.ZodEnum<["grid", "flex", "match-adapt", "none"]>>;
17934
17912
  position: z.ZodOptional<z.ZodEnum<["absolute", "relative"]>>;
17935
17913
  grid: z.ZodOptional<z.ZodBoolean>;
@@ -18240,12 +18218,12 @@ declare const subcircuitProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
18240
18218
  strokeWidth?: number | undefined;
18241
18219
  dashed?: boolean | undefined;
18242
18220
  solid?: boolean | undefined;
18243
- } | undefined;
18221
+ } | null | undefined;
18244
18222
  border?: {
18245
18223
  strokeWidth?: number | undefined;
18246
18224
  dashed?: boolean | undefined;
18247
18225
  solid?: boolean | undefined;
18248
- } | undefined;
18226
+ } | null | undefined;
18249
18227
  layout?: _tscircuit_layout.LayoutBuilder | undefined;
18250
18228
  manualEdits?: {
18251
18229
  pcb_placements?: {
@@ -18378,12 +18356,12 @@ declare const subcircuitProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
18378
18356
  strokeWidth?: string | number | undefined;
18379
18357
  dashed?: boolean | undefined;
18380
18358
  solid?: boolean | undefined;
18381
- } | undefined;
18359
+ } | null | undefined;
18382
18360
  border?: {
18383
18361
  strokeWidth?: string | number | undefined;
18384
18362
  dashed?: boolean | undefined;
18385
18363
  solid?: boolean | undefined;
18386
- } | undefined;
18364
+ } | null | undefined;
18387
18365
  layout?: _tscircuit_layout.LayoutBuilder | undefined;
18388
18366
  manualEdits?: {
18389
18367
  pcb_placements?: {