@tscircuit/props 0.0.224 → 0.0.226

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?: {
@@ -13475,7 +13475,7 @@ declare const stampboardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
13475
13475
  matchAdapt?: boolean | undefined;
13476
13476
  matchAdaptTemplate?: any;
13477
13477
  }>>;
13478
- cellBorder: z.ZodOptional<z.ZodObject<{
13478
+ cellBorder: z.ZodOptional<z.ZodNullable<z.ZodObject<{
13479
13479
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
13480
13480
  dashed: z.ZodOptional<z.ZodBoolean>;
13481
13481
  solid: z.ZodOptional<z.ZodBoolean>;
@@ -13487,8 +13487,8 @@ declare const stampboardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
13487
13487
  strokeWidth?: string | number | undefined;
13488
13488
  dashed?: boolean | undefined;
13489
13489
  solid?: boolean | undefined;
13490
- }>>;
13491
- border: z.ZodOptional<z.ZodObject<{
13490
+ }>>>;
13491
+ border: z.ZodOptional<z.ZodNullable<z.ZodObject<{
13492
13492
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
13493
13493
  dashed: z.ZodOptional<z.ZodBoolean>;
13494
13494
  solid: z.ZodOptional<z.ZodBoolean>;
@@ -13500,7 +13500,7 @@ declare const stampboardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
13500
13500
  strokeWidth?: string | number | undefined;
13501
13501
  dashed?: boolean | undefined;
13502
13502
  solid?: boolean | undefined;
13503
- }>>;
13503
+ }>>>;
13504
13504
  layoutMode: z.ZodOptional<z.ZodEnum<["grid", "flex", "match-adapt", "none"]>>;
13505
13505
  position: z.ZodOptional<z.ZodEnum<["absolute", "relative"]>>;
13506
13506
  grid: z.ZodOptional<z.ZodBoolean>;
@@ -13843,12 +13843,12 @@ declare const stampboardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
13843
13843
  strokeWidth?: number | undefined;
13844
13844
  dashed?: boolean | undefined;
13845
13845
  solid?: boolean | undefined;
13846
- } | undefined;
13846
+ } | null | undefined;
13847
13847
  border?: {
13848
13848
  strokeWidth?: number | undefined;
13849
13849
  dashed?: boolean | undefined;
13850
13850
  solid?: boolean | undefined;
13851
- } | undefined;
13851
+ } | null | undefined;
13852
13852
  layout?: _tscircuit_layout.LayoutBuilder | undefined;
13853
13853
  manualEdits?: {
13854
13854
  pcb_placements?: {
@@ -13997,12 +13997,12 @@ declare const stampboardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
13997
13997
  strokeWidth?: string | number | undefined;
13998
13998
  dashed?: boolean | undefined;
13999
13999
  solid?: boolean | undefined;
14000
- } | undefined;
14000
+ } | null | undefined;
14001
14001
  border?: {
14002
14002
  strokeWidth?: string | number | undefined;
14003
14003
  dashed?: boolean | undefined;
14004
14004
  solid?: boolean | undefined;
14005
- } | undefined;
14005
+ } | null | undefined;
14006
14006
  layout?: _tscircuit_layout.LayoutBuilder | undefined;
14007
14007
  manualEdits?: {
14008
14008
  pcb_placements?: {
@@ -17882,7 +17882,7 @@ declare const subcircuitProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
17882
17882
  matchAdapt?: boolean | undefined;
17883
17883
  matchAdaptTemplate?: any;
17884
17884
  }>>;
17885
- cellBorder: z.ZodOptional<z.ZodObject<{
17885
+ cellBorder: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17886
17886
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
17887
17887
  dashed: z.ZodOptional<z.ZodBoolean>;
17888
17888
  solid: z.ZodOptional<z.ZodBoolean>;
@@ -17894,8 +17894,8 @@ declare const subcircuitProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
17894
17894
  strokeWidth?: string | number | undefined;
17895
17895
  dashed?: boolean | undefined;
17896
17896
  solid?: boolean | undefined;
17897
- }>>;
17898
- border: z.ZodOptional<z.ZodObject<{
17897
+ }>>>;
17898
+ border: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17899
17899
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
17900
17900
  dashed: z.ZodOptional<z.ZodBoolean>;
17901
17901
  solid: z.ZodOptional<z.ZodBoolean>;
@@ -17907,7 +17907,7 @@ declare const subcircuitProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
17907
17907
  strokeWidth?: string | number | undefined;
17908
17908
  dashed?: boolean | undefined;
17909
17909
  solid?: boolean | undefined;
17910
- }>>;
17910
+ }>>>;
17911
17911
  layoutMode: z.ZodOptional<z.ZodEnum<["grid", "flex", "match-adapt", "none"]>>;
17912
17912
  position: z.ZodOptional<z.ZodEnum<["absolute", "relative"]>>;
17913
17913
  grid: z.ZodOptional<z.ZodBoolean>;
@@ -18218,12 +18218,12 @@ declare const subcircuitProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
18218
18218
  strokeWidth?: number | undefined;
18219
18219
  dashed?: boolean | undefined;
18220
18220
  solid?: boolean | undefined;
18221
- } | undefined;
18221
+ } | null | undefined;
18222
18222
  border?: {
18223
18223
  strokeWidth?: number | undefined;
18224
18224
  dashed?: boolean | undefined;
18225
18225
  solid?: boolean | undefined;
18226
- } | undefined;
18226
+ } | null | undefined;
18227
18227
  layout?: _tscircuit_layout.LayoutBuilder | undefined;
18228
18228
  manualEdits?: {
18229
18229
  pcb_placements?: {
@@ -18356,12 +18356,12 @@ declare const subcircuitProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
18356
18356
  strokeWidth?: string | number | undefined;
18357
18357
  dashed?: boolean | undefined;
18358
18358
  solid?: boolean | undefined;
18359
- } | undefined;
18359
+ } | null | undefined;
18360
18360
  border?: {
18361
18361
  strokeWidth?: string | number | undefined;
18362
18362
  dashed?: boolean | undefined;
18363
18363
  solid?: boolean | undefined;
18364
- } | undefined;
18364
+ } | null | undefined;
18365
18365
  layout?: _tscircuit_layout.LayoutBuilder | undefined;
18366
18366
  manualEdits?: {
18367
18367
  pcb_placements?: {
package/dist/index.js CHANGED
@@ -367,8 +367,8 @@ var baseGroupProps = commonLayoutProps.extend({
367
367
  schHeight: length.optional(),
368
368
  pcbLayout: layoutConfig.optional(),
369
369
  schLayout: layoutConfig.optional(),
370
- cellBorder: border.optional(),
371
- border: border.optional()
370
+ cellBorder: border.nullable().optional(),
371
+ border: border.nullable().optional()
372
372
  });
373
373
  var partsEngine = z21.custom((v) => "findPart" in v);
374
374
  var subcircuitGroupProps = baseGroupProps.extend({