react-table-edit 0.8.0 → 0.8.2

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.mjs CHANGED
@@ -2437,11 +2437,14 @@ var TableEdit = forwardRef3((props, ref) => {
2437
2437
  }
2438
2438
  }
2439
2439
  }
2440
- changeDataSource(dataSource);
2441
2440
  if (dataSourceChange) {
2442
2441
  dataSourceChange(dataSource);
2443
2442
  }
2444
2443
  }
2444
+ } else {
2445
+ if (dataSourceChange) {
2446
+ dataSourceChange(dataSource);
2447
+ }
2445
2448
  }
2446
2449
  };
2447
2450
  const handleKeyPress = (e) => {
@@ -2543,7 +2546,7 @@ var TableEdit = forwardRef3((props, ref) => {
2543
2546
  optionsSelect = col.selectSettings?.options ? col.selectSettings?.validateOption ? col.selectSettings?.options.filter((item) => col.selectSettings?.validateOption(item, row)) : col.selectSettings?.options : [];
2544
2547
  }
2545
2548
  if (col.selectSettings?.isMulti) {
2546
- valueSelect = !isNullOrUndefined(row[col.field]) && row[col.field]?.length > 0 ? optionsSelect?.filter((val) => row[col.field]?.includes(val[col.selectSettings?.fieldValue ?? "value"])) : [];
2549
+ valueSelect = row[col.field];
2547
2550
  } else {
2548
2551
  valueSelect = !isNullOrUndefined(row[col.field]) && row[col.field] !== "" ? optionsSelect?.find((val) => val[col.selectSettings?.fieldValue ?? "value"] === row[col.field]) : "";
2549
2552
  }
@@ -3781,11 +3784,989 @@ import { Bold, Droplet, Italic, Type, Underline } from "becoxy-icons";
3781
3784
  import { Button as Button6, Input as Input9 } from "reactstrap";
3782
3785
  import classnames10 from "classnames";
3783
3786
  import { Fragment as Fragment20 } from "react";
3787
+
3788
+ // test-app/src/component/input-style/fonts.ts
3789
+ var OptionFont = [
3790
+ {
3791
+ value: 1,
3792
+ label: "Times New Roman"
3793
+ },
3794
+ {
3795
+ value: 2,
3796
+ label: "Arial"
3797
+ },
3798
+ {
3799
+ value: 3,
3800
+ label: "Arial Black"
3801
+ },
3802
+ {
3803
+ value: 4,
3804
+ label: "Calibri"
3805
+ },
3806
+ {
3807
+ value: 5,
3808
+ label: "Cambria"
3809
+ },
3810
+ {
3811
+ value: 6,
3812
+ label: "Candara"
3813
+ },
3814
+ {
3815
+ value: 7,
3816
+ label: "Comic Sans MS"
3817
+ },
3818
+ {
3819
+ value: 8,
3820
+ label: "Consolas"
3821
+ },
3822
+ {
3823
+ value: 9,
3824
+ label: "Courier New"
3825
+ },
3826
+ {
3827
+ value: 10,
3828
+ label: "Georgia"
3829
+ },
3830
+ {
3831
+ value: 11,
3832
+ label: "Impact"
3833
+ },
3834
+ {
3835
+ value: 12,
3836
+ label: "Lucida Console"
3837
+ },
3838
+ {
3839
+ value: 13,
3840
+ label: "Lucida Sans Unicode"
3841
+ },
3842
+ {
3843
+ value: 14,
3844
+ label: "Palatino Linotype"
3845
+ },
3846
+ {
3847
+ value: 15,
3848
+ label: "Segoe UI"
3849
+ },
3850
+ {
3851
+ value: 16,
3852
+ label: "Tahoma"
3853
+ },
3854
+ {
3855
+ value: 17,
3856
+ label: "Trebuchet MS"
3857
+ },
3858
+ {
3859
+ value: 18,
3860
+ label: "Verdana"
3861
+ },
3862
+ {
3863
+ value: 19,
3864
+ label: "Book Antiqua"
3865
+ },
3866
+ {
3867
+ value: 20,
3868
+ label: "Garamond"
3869
+ },
3870
+ {
3871
+ value: 21,
3872
+ label: "Gill Sans"
3873
+ },
3874
+ {
3875
+ value: 22,
3876
+ label: "Helvetica"
3877
+ },
3878
+ {
3879
+ value: 23,
3880
+ label: "Franklin Gothic Medium"
3881
+ },
3882
+ {
3883
+ value: 24,
3884
+ label: "Futura"
3885
+ },
3886
+ {
3887
+ value: 25,
3888
+ label: "Baskerville"
3889
+ },
3890
+ {
3891
+ value: 26,
3892
+ label: "Brush Script MT"
3893
+ },
3894
+ {
3895
+ value: 27,
3896
+ label: "Rockwell"
3897
+ },
3898
+ {
3899
+ value: 28,
3900
+ label: "Century Gothic"
3901
+ },
3902
+ {
3903
+ value: 29,
3904
+ label: "Perpetua"
3905
+ },
3906
+ {
3907
+ value: 30,
3908
+ label: "Didot"
3909
+ },
3910
+ {
3911
+ value: 31,
3912
+ label: "Arial Narrow"
3913
+ },
3914
+ {
3915
+ value: 32,
3916
+ label: "Arial Rounded MT Bold"
3917
+ },
3918
+ {
3919
+ value: 33,
3920
+ label: "Calibri Light"
3921
+ },
3922
+ {
3923
+ value: 34,
3924
+ label: "Cambria Math"
3925
+ },
3926
+ {
3927
+ value: 35,
3928
+ label: "Century"
3929
+ },
3930
+ {
3931
+ value: 36,
3932
+ label: "Charter"
3933
+ },
3934
+ {
3935
+ value: 37,
3936
+ label: "Cochin"
3937
+ },
3938
+ {
3939
+ value: 40,
3940
+ label: "Frank Ruhl"
3941
+ },
3942
+ {
3943
+ value: 43,
3944
+ label: "Lucida Bright"
3945
+ },
3946
+ {
3947
+ value: 44,
3948
+ label: "Lucida Handwriting"
3949
+ },
3950
+ {
3951
+ value: 45,
3952
+ label: "Mongolian Baiti"
3953
+ },
3954
+ {
3955
+ value: 46,
3956
+ label: "Miriam"
3957
+ },
3958
+ {
3959
+ value: 47,
3960
+ label: "MS Gothic"
3961
+ },
3962
+ {
3963
+ value: 48,
3964
+ label: "MS Mincho"
3965
+ },
3966
+ {
3967
+ value: 49,
3968
+ label: "MS PMincho"
3969
+ },
3970
+ {
3971
+ value: 50,
3972
+ label: "MS PGothic"
3973
+ },
3974
+ {
3975
+ value: 51,
3976
+ label: "MT Extra"
3977
+ },
3978
+ {
3979
+ value: 52,
3980
+ label: "Palatino"
3981
+ },
3982
+ {
3983
+ value: 53,
3984
+ label: "Tisa"
3985
+ },
3986
+ {
3987
+ value: 54,
3988
+ label: "Vivaldi"
3989
+ },
3990
+ {
3991
+ value: 55,
3992
+ label: "WST_Gothic"
3993
+ },
3994
+ {
3995
+ value: 56,
3996
+ label: "Andalus"
3997
+ },
3998
+ {
3999
+ value: 57,
4000
+ label: "Angsana New"
4001
+ },
4002
+ {
4003
+ value: 58,
4004
+ label: "Arabic Typesetting"
4005
+ },
4006
+ {
4007
+ value: 59,
4008
+ label: "Avenir"
4009
+ },
4010
+ {
4011
+ value: 60,
4012
+ label: "Browallia New"
4013
+ },
4014
+ {
4015
+ value: 63,
4016
+ label: "Iris"
4017
+ },
4018
+ {
4019
+ value: 64,
4020
+ label: "Jasmine"
4021
+ },
4022
+ {
4023
+ value: 65,
4024
+ label: "Mistral"
4025
+ },
4026
+ {
4027
+ value: 66,
4028
+ label: "Myriad Pro"
4029
+ },
4030
+ {
4031
+ value: 68,
4032
+ label: "Vladimir Script"
4033
+ },
4034
+ {
4035
+ value: 69,
4036
+ label: "Algerian"
4037
+ },
4038
+ {
4039
+ value: 70,
4040
+ label: "Berlin Sans FB"
4041
+ },
4042
+ {
4043
+ value: 71,
4044
+ label: "Bodoni MT"
4045
+ },
4046
+ {
4047
+ value: 72,
4048
+ label: "Bookman Old Style"
4049
+ },
4050
+ {
4051
+ value: 73,
4052
+ label: "Copperplate Gothic"
4053
+ },
4054
+ {
4055
+ value: 74,
4056
+ label: "Elephant"
4057
+ },
4058
+ {
4059
+ value: 75,
4060
+ label: "FangSong"
4061
+ },
4062
+ {
4063
+ value: 76,
4064
+ label: "Garamond Premr"
4065
+ },
4066
+ {
4067
+ value: 77,
4068
+ label: "Jokerman"
4069
+ },
4070
+ {
4071
+ value: 78,
4072
+ label: "Kaiti"
4073
+ },
4074
+ {
4075
+ value: 79,
4076
+ label: "MingLiU"
4077
+ },
4078
+ {
4079
+ value: 80,
4080
+ label: "Myriad"
4081
+ },
4082
+ {
4083
+ value: 81,
4084
+ label: "Oklahoma"
4085
+ },
4086
+ {
4087
+ value: 82,
4088
+ label: "Papyrus"
4089
+ },
4090
+ {
4091
+ value: 83,
4092
+ label: "Perpetua Titling MT"
4093
+ },
4094
+ {
4095
+ value: 84,
4096
+ label: "Rockwell Extra Bold"
4097
+ },
4098
+ {
4099
+ value: 85,
4100
+ label: "Script MT Bold"
4101
+ },
4102
+ {
4103
+ value: 86,
4104
+ label: "Snap ITC"
4105
+ },
4106
+ {
4107
+ value: 88,
4108
+ label: "Viner Hand ITC"
4109
+ },
4110
+ {
4111
+ value: 89,
4112
+ label: "Wingdings"
4113
+ },
4114
+ {
4115
+ value: 90,
4116
+ label: "Zapf Dingbats"
4117
+ },
4118
+ {
4119
+ value: 91,
4120
+ label: "Apple Chancery"
4121
+ },
4122
+ {
4123
+ value: 92,
4124
+ label: "Avant Garde"
4125
+ },
4126
+ {
4127
+ value: 93,
4128
+ label: "Big Caslon"
4129
+ },
4130
+ {
4131
+ value: 94,
4132
+ label: "Bodoni 72"
4133
+ },
4134
+ {
4135
+ value: 95,
4136
+ label: "Caslon"
4137
+ },
4138
+ {
4139
+ value: 96,
4140
+ label: "Chaparral Pro"
4141
+ },
4142
+ {
4143
+ value: 97,
4144
+ label: "Clarendon"
4145
+ },
4146
+ {
4147
+ value: 98,
4148
+ label: "Coolvetica"
4149
+ },
4150
+ {
4151
+ value: 99,
4152
+ label: "Doulos SIL"
4153
+ },
4154
+ {
4155
+ value: 100,
4156
+ label: "Fira Sans"
4157
+ },
4158
+ {
4159
+ value: 101,
4160
+ label: "Frutiger"
4161
+ },
4162
+ {
4163
+ value: 102,
4164
+ label: "Georgia Pro"
4165
+ },
4166
+ {
4167
+ value: 103,
4168
+ label: "Goudy Old Style"
4169
+ },
4170
+ {
4171
+ value: 104,
4172
+ label: "ITC Garamond"
4173
+ },
4174
+ {
4175
+ value: 105,
4176
+ label: "ITC Officina Sans"
4177
+ },
4178
+ {
4179
+ value: 106,
4180
+ label: "Janson Text"
4181
+ },
4182
+ {
4183
+ value: 108,
4184
+ label: "Kabel"
4185
+ },
4186
+ {
4187
+ value: 109,
4188
+ label: "Lato"
4189
+ },
4190
+ {
4191
+ value: 110,
4192
+ label: "Lora"
4193
+ },
4194
+ {
4195
+ value: 111,
4196
+ label: "Mangal"
4197
+ },
4198
+ {
4199
+ value: 112,
4200
+ label: "Marlett"
4201
+ },
4202
+ {
4203
+ value: 113,
4204
+ label: "Minion Pro"
4205
+ },
4206
+ {
4207
+ value: 114,
4208
+ label: "Modern No. 20"
4209
+ },
4210
+ {
4211
+ value: 115,
4212
+ label: "Neutraface"
4213
+ },
4214
+ {
4215
+ value: 116,
4216
+ label: "Noto Sans"
4217
+ },
4218
+ {
4219
+ value: 117,
4220
+ label: "Open Sans"
4221
+ },
4222
+ {
4223
+ value: 118,
4224
+ label: "Orator"
4225
+ },
4226
+ {
4227
+ value: 119,
4228
+ label: "Oswald"
4229
+ },
4230
+ {
4231
+ value: 120,
4232
+ label: "Playfair Display"
4233
+ },
4234
+ {
4235
+ value: 121,
4236
+ label: "Quicksand"
4237
+ },
4238
+ {
4239
+ value: 122,
4240
+ label: "Roboto"
4241
+ },
4242
+ {
4243
+ value: 124,
4244
+ label: "Sabon"
4245
+ },
4246
+ {
4247
+ value: 125,
4248
+ label: "Segoe Print"
4249
+ },
4250
+ {
4251
+ value: 126,
4252
+ label: "Segoe Script"
4253
+ },
4254
+ {
4255
+ value: 128,
4256
+ label: "TeX Gyre Adventor"
4257
+ },
4258
+ {
4259
+ value: 129,
4260
+ label: "TeX Gyre Bonum"
4261
+ },
4262
+ {
4263
+ value: 130,
4264
+ label: "TeX Gyre Chorus"
4265
+ },
4266
+ {
4267
+ value: 131,
4268
+ label: "TeX Gyre Cursor"
4269
+ },
4270
+ {
4271
+ value: 132,
4272
+ label: "TeX Gyre Heros"
4273
+ },
4274
+ {
4275
+ value: 133,
4276
+ label: "TeX Gyre Pagella"
4277
+ },
4278
+ {
4279
+ value: 134,
4280
+ label: "TeX Gyre Schola"
4281
+ },
4282
+ {
4283
+ value: 135,
4284
+ label: "TeX Gyre Termes"
4285
+ },
4286
+ {
4287
+ value: 136,
4288
+ label: "Trajan Pro"
4289
+ },
4290
+ {
4291
+ value: 137,
4292
+ label: "Univers"
4293
+ },
4294
+ {
4295
+ value: 138,
4296
+ label: "Verdana Pro"
4297
+ },
4298
+ {
4299
+ value: 140,
4300
+ label: "Zapf Calligraphic"
4301
+ },
4302
+ {
4303
+ value: 141,
4304
+ label: "Zapf Chancery"
4305
+ },
4306
+ {
4307
+ value: 143,
4308
+ label: "Abadi MT Condensed"
4309
+ },
4310
+ {
4311
+ value: 144,
4312
+ label: "Albertus"
4313
+ },
4314
+ {
4315
+ value: 146,
4316
+ label: "Aldine"
4317
+ },
4318
+ {
4319
+ value: 147,
4320
+ label: "American Typewriter"
4321
+ },
4322
+ {
4323
+ value: 148,
4324
+ label: "Andale Mono"
4325
+ },
4326
+ {
4327
+ value: 149,
4328
+ label: "Apple Gothic"
4329
+ },
4330
+ {
4331
+ value: 150,
4332
+ label: "Apple Symbols"
4333
+ },
4334
+ {
4335
+ value: 151,
4336
+ label: "Arial Unicode MS"
4337
+ },
4338
+ {
4339
+ value: 153,
4340
+ label: "Bernhard Fashion"
4341
+ },
4342
+ {
4343
+ value: 154,
4344
+ label: "Bernhard Gothic"
4345
+ },
4346
+ {
4347
+ value: 155,
4348
+ label: "Bernhard Modern"
4349
+ },
4350
+ {
4351
+ value: 157,
4352
+ label: "Blackadder ITC"
4353
+ },
4354
+ {
4355
+ value: 158,
4356
+ label: "Bodoni MT Condensed"
4357
+ },
4358
+ {
4359
+ value: 160,
4360
+ label: "Bookman"
4361
+ },
4362
+ {
4363
+ value: 162,
4364
+ label: "Bradley Hand ITC"
4365
+ },
4366
+ {
4367
+ value: 163,
4368
+ label: "Brush Script Std"
4369
+ },
4370
+ {
4371
+ value: 164,
4372
+ label: "Calisto MT"
4373
+ },
4374
+ {
4375
+ value: 165,
4376
+ label: "Castle"
4377
+ },
4378
+ {
4379
+ value: 166,
4380
+ label: "Chalkboard SE"
4381
+ },
4382
+ {
4383
+ value: 167,
4384
+ label: "Chalkduster"
4385
+ },
4386
+ {
4387
+ value: 168,
4388
+ label: "Cheltenham"
4389
+ },
4390
+ {
4391
+ value: 170,
4392
+ label: "Copperplate"
4393
+ },
4394
+ {
4395
+ value: 171,
4396
+ label: "Courier"
4397
+ },
4398
+ {
4399
+ value: 172,
4400
+ label: "Creepster"
4401
+ },
4402
+ {
4403
+ value: 173,
4404
+ label: "Crimson Text"
4405
+ },
4406
+ {
4407
+ value: 177,
4408
+ label: "Freestyle Script"
4409
+ },
4410
+ {
4411
+ value: 180,
4412
+ label: "Gill Sans MT"
4413
+ },
4414
+ {
4415
+ value: 181,
4416
+ label: "Gotham"
4417
+ },
4418
+ {
4419
+ value: 182,
4420
+ label: "Harlow Solid Italic"
4421
+ },
4422
+ {
4423
+ value: 183,
4424
+ label: "Harrington"
4425
+ },
4426
+ {
4427
+ value: 184,
4428
+ label: "Hobo Std"
4429
+ },
4430
+ {
4431
+ value: 185,
4432
+ label: "Hoefler Text"
4433
+ },
4434
+ {
4435
+ value: 186,
4436
+ label: "Humin"
4437
+ },
4438
+ {
4439
+ value: 187,
4440
+ label: "Inconsolata"
4441
+ },
4442
+ {
4443
+ value: 189,
4444
+ label: "Kaiti SC"
4445
+ },
4446
+ {
4447
+ value: 190,
4448
+ label: "Klavika"
4449
+ },
4450
+ {
4451
+ value: 191,
4452
+ label: "Kozuka Gothic"
4453
+ },
4454
+ {
4455
+ value: 192,
4456
+ label: "Kozuka Mincho"
4457
+ },
4458
+ {
4459
+ value: 193,
4460
+ label: "Lucida Grande"
4461
+ },
4462
+ {
4463
+ value: 194,
4464
+ label: "Lucida Sans"
4465
+ },
4466
+ {
4467
+ value: 195,
4468
+ label: "Lucida Sans Typewriter"
4469
+ },
4470
+ {
4471
+ value: 196,
4472
+ label: "Merryweather"
4473
+ },
4474
+ {
4475
+ value: 198,
4476
+ label: "Monaco"
4477
+ },
4478
+ {
4479
+ value: 200,
4480
+ label: "Noto Serif"
4481
+ },
4482
+ {
4483
+ value: 201,
4484
+ label: "Odin Rounded"
4485
+ },
4486
+ {
4487
+ value: 202,
4488
+ label: "Open Sans Condensed"
4489
+ },
4490
+ {
4491
+ value: 203,
4492
+ label: "Optima"
4493
+ },
4494
+ {
4495
+ value: 205,
4496
+ label: "Parchment"
4497
+ },
4498
+ {
4499
+ value: 208,
4500
+ label: "PT Serif"
4501
+ },
4502
+ {
4503
+ value: 210,
4504
+ label: "Ravie"
4505
+ },
4506
+ {
4507
+ value: 212,
4508
+ label: "Ruge Boogie"
4509
+ },
4510
+ {
4511
+ value: 214,
4512
+ label: "Segoe MDL2 Assets"
4513
+ },
4514
+ {
4515
+ value: 217,
4516
+ label: "Shonar Bangla"
4517
+ },
4518
+ {
4519
+ value: 218,
4520
+ label: "Simplified Arabic"
4521
+ },
4522
+ {
4523
+ value: 219,
4524
+ label: "Sitka"
4525
+ },
4526
+ {
4527
+ value: 220,
4528
+ label: "Stencil"
4529
+ },
4530
+ {
4531
+ value: 221,
4532
+ label: "Swis721 BT"
4533
+ },
4534
+ {
4535
+ value: 230,
4536
+ label: "Adobe Caslon Pro"
4537
+ },
4538
+ {
4539
+ value: 231,
4540
+ label: "Adobe Garamond Pro"
4541
+ },
4542
+ {
4543
+ value: 232,
4544
+ label: "Avenir Next"
4545
+ },
4546
+ {
4547
+ value: 233,
4548
+ label: "Baskerville Old Face"
4549
+ },
4550
+ {
4551
+ value: 234,
4552
+ label: "Bebas Neue"
4553
+ },
4554
+ {
4555
+ value: 235,
4556
+ label: "Bembo"
4557
+ },
4558
+ {
4559
+ value: 238,
4560
+ label: "Bodoni MT Poster Compressed"
4561
+ },
4562
+ {
4563
+ value: 239,
4564
+ label: "Braggadocio"
4565
+ },
4566
+ {
4567
+ value: 241,
4568
+ label: "Castellar"
4569
+ },
4570
+ {
4571
+ value: 242,
4572
+ label: "Chiller"
4573
+ },
4574
+ {
4575
+ value: 244,
4576
+ label: "Edwardian Script ITC"
4577
+ },
4578
+ {
4579
+ value: 245,
4580
+ label: "Exo"
4581
+ },
4582
+ {
4583
+ value: 246,
4584
+ label: "Fira Code"
4585
+ },
4586
+ {
4587
+ value: 251,
4588
+ label: "Helvetica Neue"
4589
+ },
4590
+ {
4591
+ value: 252,
4592
+ label: "Karla"
4593
+ },
4594
+ {
4595
+ value: 254,
4596
+ label: "Merriweather"
4597
+ },
4598
+ {
4599
+ value: 255,
4600
+ label: "Montserrat"
4601
+ },
4602
+ {
4603
+ value: 257,
4604
+ label: "Old English Text MT"
4605
+ },
4606
+ {
4607
+ value: 258,
4608
+ label: "Oxygen"
4609
+ },
4610
+ {
4611
+ value: 261,
4612
+ label: "Roboto Condensed"
4613
+ },
4614
+ {
4615
+ value: 262,
4616
+ label: "Source Sans Pro"
4617
+ },
4618
+ {
4619
+ value: 263,
4620
+ label: "Space Mono"
4621
+ },
4622
+ {
4623
+ value: 264,
4624
+ label: "Spectral"
4625
+ },
4626
+ {
4627
+ value: 265,
4628
+ label: "Titan One"
4629
+ },
4630
+ {
4631
+ value: 266,
4632
+ label: "Ubuntu"
4633
+ },
4634
+ {
4635
+ value: 267,
4636
+ label: "Ubuntu Condensed"
4637
+ },
4638
+ {
4639
+ value: 268,
4640
+ label: "Varela Round"
4641
+ }
4642
+ ];
4643
+
4644
+ // test-app/src/component/input-style/index.tsx
3784
4645
  import { jsx as jsx18, jsxs as jsxs17 } from "react/jsx-runtime";
4646
+ var InputStyleComponent = (props) => {
4647
+ const { value, onChange, disabled } = props;
4648
+ return /* @__PURE__ */ jsx18(Fragment20, { children: /* @__PURE__ */ jsxs17("div", { className: "d-flex align-items-center", children: [
4649
+ /* @__PURE__ */ jsx18(
4650
+ SelectTable,
4651
+ {
4652
+ options: OptionFont,
4653
+ isDisabled: disabled,
4654
+ noHeader: true,
4655
+ value: value.fontFamily ? OptionFont.find((x) => x.label === value.fontFamily) : null,
4656
+ onChange: (val) => {
4657
+ onChange({ ...value, fontFamily: val.label });
4658
+ },
4659
+ fieldValue: "label",
4660
+ columns: [
4661
+ {
4662
+ field: "label",
4663
+ headerText: "",
4664
+ template: (row) => {
4665
+ return /* @__PURE__ */ jsx18("div", { style: { fontFamily: row.label }, children: row.label });
4666
+ }
4667
+ }
4668
+ ],
4669
+ formatOptionLabel: (props2) => {
4670
+ return /* @__PURE__ */ jsx18("p", { style: {
4671
+ paddingLeft: 3,
4672
+ borderRadius: 2,
4673
+ fontFamily: value.fontFamily,
4674
+ fontWeight: value.bold ? "bold" : "normal",
4675
+ fontStyle: value.italic ? "italic" : "normal",
4676
+ textDecoration: value.underline ? "underline" : "normal",
4677
+ backgroundColor: value.backgroundColor ?? "#ffffff",
4678
+ color: value.color ?? "#000000"
4679
+ }, children: props2.label });
4680
+ }
4681
+ }
4682
+ ),
4683
+ /* @__PURE__ */ jsx18("div", { className: "ms-25", style: { width: 60 }, children: /* @__PURE__ */ jsx18(
4684
+ SelectTable,
4685
+ {
4686
+ options: Array.from({ length: 100 }, (_, i) => ({ value: i + 1, label: i + 1 })),
4687
+ noHeader: true,
4688
+ isDisabled: disabled,
4689
+ value: value.fontSize ? { value: value.fontSize, label: value.fontSize } : null,
4690
+ onChange: (val) => {
4691
+ onChange({ ...value, fontSize: val.value });
4692
+ }
4693
+ }
4694
+ ) }),
4695
+ /* @__PURE__ */ jsx18(
4696
+ "div",
4697
+ {
4698
+ className: classnames10("btn-input-style", { "active-custom": value.bold }),
4699
+ onClick: () => {
4700
+ if (!disabled) {
4701
+ onChange({ ...value, bold: !value.bold });
4702
+ }
4703
+ },
4704
+ children: /* @__PURE__ */ jsx18(Bold, { fontSize: 18 })
4705
+ }
4706
+ ),
4707
+ /* @__PURE__ */ jsx18(
4708
+ "div",
4709
+ {
4710
+ className: classnames10("btn-input-style", { "active-custom": value.italic }),
4711
+ onClick: () => {
4712
+ if (!disabled) {
4713
+ onChange({ ...value, italic: !value.italic });
4714
+ }
4715
+ },
4716
+ children: /* @__PURE__ */ jsx18(Italic, { fontSize: 18 })
4717
+ }
4718
+ ),
4719
+ /* @__PURE__ */ jsx18(
4720
+ "div",
4721
+ {
4722
+ className: classnames10("btn-input-style", { "active-custom": value.underline }),
4723
+ onClick: () => {
4724
+ if (!disabled) {
4725
+ onChange({ ...value, underline: !value.underline });
4726
+ }
4727
+ },
4728
+ children: /* @__PURE__ */ jsx18(Underline, { fontSize: 18 })
4729
+ }
4730
+ ),
4731
+ /* @__PURE__ */ jsxs17(Button6, { tag: "label", color: "none", className: "btn-input-style", children: [
4732
+ /* @__PURE__ */ jsx18(Type, { stroke: value.color ?? "#000000", fontSize: 18 }),
4733
+ /* @__PURE__ */ jsx18(
4734
+ "input",
4735
+ {
4736
+ type: "color",
4737
+ id: "color",
4738
+ disabled,
4739
+ value: value.color,
4740
+ style: { color: "#FFF", border: "none", height: 0, width: 0, outline: "none", padding: 0 },
4741
+ onChange: (e) => {
4742
+ onChange({ ...value, color: e.target.value });
4743
+ }
4744
+ }
4745
+ )
4746
+ ] }),
4747
+ /* @__PURE__ */ jsxs17(Button6, { tag: "label", color: "none", className: "btn-input-style", children: [
4748
+ /* @__PURE__ */ jsx18(Droplet, { fill: value.backgroundColor ?? "#ffffff", fontSize: 18 }),
4749
+ /* @__PURE__ */ jsx18(
4750
+ Input9,
4751
+ {
4752
+ id: "backgroundColor",
4753
+ type: "color",
4754
+ disabled,
4755
+ style: { color: "#FFF", border: "none", height: 0, width: 0, outline: "none", padding: 0 },
4756
+ value: value.backgroundColor,
4757
+ onChange: (e) => {
4758
+ onChange({ ...value, backgroundColor: e.target.value });
4759
+ }
4760
+ }
4761
+ )
4762
+ ] })
4763
+ ] }) });
4764
+ };
3785
4765
 
3786
4766
  // index.ts
3787
4767
  var Table_edit_default = table_default;
3788
4768
  export {
4769
+ InputStyleComponent,
3789
4770
  SelectTable,
3790
4771
  TabsMenuComponent,
3791
4772
  Table_edit_default as default,