@innovaccer/design-system 2.40.1 → 2.41.1
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/CHANGELOG.md +81 -0
- package/css/Readme.md +10 -1
- package/css/dist/index.css +61 -1
- package/css/dist/index.css.map +1 -1
- package/css/src/components/tooltip.css +1 -1
- package/css/src/utils/spacing.css +60 -0
- package/dist/.lib/tsconfig.type.tsbuildinfo +95 -5
- package/dist/core/components/molecules/verificationCodeInput/VerificationCodeInput.d.ts +1 -0
- package/dist/figma/AIButton.figma.d.ts +1 -0
- package/dist/figma/AIChip.figma.d.ts +1 -0
- package/dist/figma/AIIconButton.figma.d.ts +1 -0
- package/dist/figma/AIResponse.figma.d.ts +1 -0
- package/dist/figma/Sara.figma.d.ts +1 -0
- package/dist/figma/SaraSparkle.figma.d.ts +1 -0
- package/dist/index.esm.js +41 -11
- package/dist/index.js +37 -9
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.br +0 -0
- package/dist/index.umd.js.gz +0 -0
- package/package.json +2 -2
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
margin: var(--spacing-m) !important;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
.m-3-5 {
|
|
18
|
+
margin: var(--spacing-0-75) !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
17
21
|
.m-4 {
|
|
18
22
|
margin: var(--spacing) !important;
|
|
19
23
|
}
|
|
@@ -82,6 +86,11 @@
|
|
|
82
86
|
margin-left: var(--spacing-m) !important;
|
|
83
87
|
}
|
|
84
88
|
|
|
89
|
+
.mx-3-5 {
|
|
90
|
+
margin-right: var(--spacing-0-75) !important;
|
|
91
|
+
margin-left: var(--spacing-0-75) !important;
|
|
92
|
+
}
|
|
93
|
+
|
|
85
94
|
.mx-4 {
|
|
86
95
|
margin-right: var(--spacing) !important;
|
|
87
96
|
margin-left: var(--spacing) !important;
|
|
@@ -162,6 +171,11 @@
|
|
|
162
171
|
margin-bottom: var(--spacing-m) !important;
|
|
163
172
|
}
|
|
164
173
|
|
|
174
|
+
.my-3-5 {
|
|
175
|
+
margin-top: var(--spacing-0-75) !important;
|
|
176
|
+
margin-bottom: var(--spacing-0-75) !important;
|
|
177
|
+
}
|
|
178
|
+
|
|
165
179
|
.my-4 {
|
|
166
180
|
margin-top: var(--spacing) !important;
|
|
167
181
|
margin-bottom: var(--spacing) !important;
|
|
@@ -238,6 +252,10 @@
|
|
|
238
252
|
margin-top: var(--spacing-m) !important;
|
|
239
253
|
}
|
|
240
254
|
|
|
255
|
+
.mt-3-5 {
|
|
256
|
+
margin-top: var(--spacing-0-75) !important;
|
|
257
|
+
}
|
|
258
|
+
|
|
241
259
|
.mt-4 {
|
|
242
260
|
margin-top: var(--spacing) !important;
|
|
243
261
|
}
|
|
@@ -302,6 +320,10 @@
|
|
|
302
320
|
margin-bottom: var(--spacing-m) !important;
|
|
303
321
|
}
|
|
304
322
|
|
|
323
|
+
.mb-3-5 {
|
|
324
|
+
margin-bottom: var(--spacing-0-75) !important;
|
|
325
|
+
}
|
|
326
|
+
|
|
305
327
|
.mb-4 {
|
|
306
328
|
margin-bottom: var(--spacing) !important;
|
|
307
329
|
}
|
|
@@ -366,6 +388,10 @@
|
|
|
366
388
|
margin-right: var(--spacing-m) !important;
|
|
367
389
|
}
|
|
368
390
|
|
|
391
|
+
.mr-3-5 {
|
|
392
|
+
margin-right: var(--spacing-0-75) !important;
|
|
393
|
+
}
|
|
394
|
+
|
|
369
395
|
.mr-4 {
|
|
370
396
|
margin-right: var(--spacing) !important;
|
|
371
397
|
}
|
|
@@ -430,6 +456,10 @@
|
|
|
430
456
|
margin-left: var(--spacing-m) !important;
|
|
431
457
|
}
|
|
432
458
|
|
|
459
|
+
.ml-3-5 {
|
|
460
|
+
margin-left: var(--spacing-0-75) !important;
|
|
461
|
+
}
|
|
462
|
+
|
|
433
463
|
.ml-4 {
|
|
434
464
|
margin-left: var(--spacing) !important;
|
|
435
465
|
}
|
|
@@ -494,6 +524,10 @@
|
|
|
494
524
|
padding: var(--spacing-m) !important;
|
|
495
525
|
}
|
|
496
526
|
|
|
527
|
+
.p-3-5 {
|
|
528
|
+
padding: var(--spacing-0-75) !important;
|
|
529
|
+
}
|
|
530
|
+
|
|
497
531
|
.p-4 {
|
|
498
532
|
padding: var(--spacing) !important;
|
|
499
533
|
}
|
|
@@ -562,6 +596,11 @@
|
|
|
562
596
|
padding-left: var(--spacing-m) !important;
|
|
563
597
|
}
|
|
564
598
|
|
|
599
|
+
.px-3-5 {
|
|
600
|
+
padding-right: var(--spacing-0-75) !important;
|
|
601
|
+
padding-left: var(--spacing-0-75) !important;
|
|
602
|
+
}
|
|
603
|
+
|
|
565
604
|
.px-4 {
|
|
566
605
|
padding-right: var(--spacing) !important;
|
|
567
606
|
padding-left: var(--spacing) !important;
|
|
@@ -642,6 +681,11 @@
|
|
|
642
681
|
padding-bottom: var(--spacing-m) !important;
|
|
643
682
|
}
|
|
644
683
|
|
|
684
|
+
.py-3-5 {
|
|
685
|
+
padding-top: var(--spacing-0-75) !important;
|
|
686
|
+
padding-bottom: var(--spacing-0-75) !important;
|
|
687
|
+
}
|
|
688
|
+
|
|
645
689
|
.py-4 {
|
|
646
690
|
padding-top: var(--spacing) !important;
|
|
647
691
|
padding-bottom: var(--spacing) !important;
|
|
@@ -718,6 +762,10 @@
|
|
|
718
762
|
padding-top: var(--spacing-m) !important;
|
|
719
763
|
}
|
|
720
764
|
|
|
765
|
+
.pt-3-5 {
|
|
766
|
+
padding-top: var(--spacing-0-75) !important;
|
|
767
|
+
}
|
|
768
|
+
|
|
721
769
|
.pt-4 {
|
|
722
770
|
padding-top: var(--spacing) !important;
|
|
723
771
|
}
|
|
@@ -782,6 +830,10 @@
|
|
|
782
830
|
padding-bottom: var(--spacing-m) !important;
|
|
783
831
|
}
|
|
784
832
|
|
|
833
|
+
.pb-3-5 {
|
|
834
|
+
padding-bottom: var(--spacing-0-75) !important;
|
|
835
|
+
}
|
|
836
|
+
|
|
785
837
|
.pb-4 {
|
|
786
838
|
padding-bottom: var(--spacing) !important;
|
|
787
839
|
}
|
|
@@ -846,6 +898,10 @@
|
|
|
846
898
|
padding-right: var(--spacing-m) !important;
|
|
847
899
|
}
|
|
848
900
|
|
|
901
|
+
.pr-3-5 {
|
|
902
|
+
padding-right: var(--spacing-0-75) !important;
|
|
903
|
+
}
|
|
904
|
+
|
|
849
905
|
.pr-4 {
|
|
850
906
|
padding-right: var(--spacing) !important;
|
|
851
907
|
}
|
|
@@ -910,6 +966,10 @@
|
|
|
910
966
|
padding-left: var(--spacing-m) !important;
|
|
911
967
|
}
|
|
912
968
|
|
|
969
|
+
.pl-3-5 {
|
|
970
|
+
padding-left: var(--spacing-0-75) !important;
|
|
971
|
+
}
|
|
972
|
+
|
|
913
973
|
.pl-4 {
|
|
914
974
|
padding-left: var(--spacing) !important;
|
|
915
975
|
}
|
|
@@ -1432,7 +1432,7 @@
|
|
|
1432
1432
|
"affectsGlobalScope": false
|
|
1433
1433
|
},
|
|
1434
1434
|
"../../core/components/molecules/chipInput/ChipInput.tsx": {
|
|
1435
|
-
"version": "
|
|
1435
|
+
"version": "e92ef85a4ea3404b0b584247ca4bbe7adde5225a0765e2c7cdb0932134baa440",
|
|
1436
1436
|
"signature": "fa78c5ce5bb60b488df54300a8b478e23f33e4b4c15291d85c019623901e246f",
|
|
1437
1437
|
"affectsGlobalScope": false
|
|
1438
1438
|
},
|
|
@@ -1602,7 +1602,7 @@
|
|
|
1602
1602
|
"affectsGlobalScope": false
|
|
1603
1603
|
},
|
|
1604
1604
|
"../../core/components/molecules/dropzone/utils.tsx": {
|
|
1605
|
-
"version": "
|
|
1605
|
+
"version": "c0f049a0b5fc369897d7504e480bc42b76694e0a2d8e24285652f35263a79502",
|
|
1606
1606
|
"signature": "e5f50b6a6ffe8bc3e9384f3786043d4082605598e9bd023b6e159ac612061c72",
|
|
1607
1607
|
"affectsGlobalScope": false
|
|
1608
1608
|
},
|
|
@@ -1832,8 +1832,8 @@
|
|
|
1832
1832
|
"affectsGlobalScope": false
|
|
1833
1833
|
},
|
|
1834
1834
|
"../../core/components/molecules/verificationCodeInput/VerificationCodeInput.tsx": {
|
|
1835
|
-
"version": "
|
|
1836
|
-
"signature": "
|
|
1835
|
+
"version": "4fdaac19534b683ea8548d9780dd749dc8d58fe17c45b4e492d1981667e65fa0",
|
|
1836
|
+
"signature": "04de6378622ed68c6936504fcac290ceac84286a56fcb00b8da1d27af86158cb",
|
|
1837
1837
|
"affectsGlobalScope": false
|
|
1838
1838
|
},
|
|
1839
1839
|
"../../core/components/molecules/verificationCodeInput/index.tsx": {
|
|
@@ -2442,7 +2442,7 @@
|
|
|
2442
2442
|
"affectsGlobalScope": false
|
|
2443
2443
|
},
|
|
2444
2444
|
"../../core/components/css-utilities/Spacing/Data.tsx": {
|
|
2445
|
-
"version": "
|
|
2445
|
+
"version": "b4010b88f54ca958ebad8a2a94d05e1e0f47bef8b81052fd7a7789ba37b9d3fc",
|
|
2446
2446
|
"signature": "b58336d143b58336739c5a9734a83ce78ee25852b3f3133aeff906fc364b3e09",
|
|
2447
2447
|
"affectsGlobalScope": false
|
|
2448
2448
|
},
|
|
@@ -3636,6 +3636,26 @@
|
|
|
3636
3636
|
"signature": "06bc581433eece0285a9461bd2f31fe1dc8abcf79f84ea78209faacfa90e810a",
|
|
3637
3637
|
"affectsGlobalScope": false
|
|
3638
3638
|
},
|
|
3639
|
+
"../../figma/AIButton.figma.tsx": {
|
|
3640
|
+
"version": "4e79b96bbc580cd19a5dd28a007d0e36a50918afaaba9ad3d558e44de13b04aa",
|
|
3641
|
+
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
3642
|
+
"affectsGlobalScope": false
|
|
3643
|
+
},
|
|
3644
|
+
"../../figma/AIChip.figma.tsx": {
|
|
3645
|
+
"version": "df10a33e8c349c6b66f312e7f44ccde52957e42967d8e6fa2ceee2e0efa3c9cd",
|
|
3646
|
+
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
3647
|
+
"affectsGlobalScope": false
|
|
3648
|
+
},
|
|
3649
|
+
"../../figma/AIIconButton.figma.tsx": {
|
|
3650
|
+
"version": "bcce554b5935d30b6a39d16c0b7873e5f9696fd40ddb030136035bbc7a2e665e",
|
|
3651
|
+
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
3652
|
+
"affectsGlobalScope": false
|
|
3653
|
+
},
|
|
3654
|
+
"../../figma/AIResponse.figma.tsx": {
|
|
3655
|
+
"version": "1ddeda326ce478c3da9ef045676c5958913d543652880f3cddb982c6e590af56",
|
|
3656
|
+
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
3657
|
+
"affectsGlobalScope": false
|
|
3658
|
+
},
|
|
3639
3659
|
"../../figma/ActionCard.figma.tsx": {
|
|
3640
3660
|
"version": "555d02927c744806d0656748bf5b7f911d204c9d8f44dc278486c7b5f16c0764",
|
|
3641
3661
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -3761,6 +3781,16 @@
|
|
|
3761
3781
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
3762
3782
|
"affectsGlobalScope": false
|
|
3763
3783
|
},
|
|
3784
|
+
"../../figma/Sara.figma.tsx": {
|
|
3785
|
+
"version": "0006589ee8a23341632a5d3f1cd02638f0deae06723299bfd39d0e01e0dc7985",
|
|
3786
|
+
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
3787
|
+
"affectsGlobalScope": false
|
|
3788
|
+
},
|
|
3789
|
+
"../../figma/SaraSparkle.figma.tsx": {
|
|
3790
|
+
"version": "5ca6a5863766d768fd8bbf4d0c4a4ec9baddf000e98024c5e056ea8d66c05ed9",
|
|
3791
|
+
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
3792
|
+
"affectsGlobalScope": false
|
|
3793
|
+
},
|
|
3764
3794
|
"../../figma/SelectionCard.figma.tsx": {
|
|
3765
3795
|
"version": "d70e40c7b4a8b514afffe21a9c81b2951a82aa06fa5eda567b8915105de35b78",
|
|
3766
3796
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -5100,6 +5130,24 @@
|
|
|
5100
5130
|
"*",
|
|
5101
5131
|
"*",
|
|
5102
5132
|
"*",
|
|
5133
|
+
"*",
|
|
5134
|
+
"*",
|
|
5135
|
+
"*",
|
|
5136
|
+
"*",
|
|
5137
|
+
"*",
|
|
5138
|
+
"*",
|
|
5139
|
+
"*",
|
|
5140
|
+
"*",
|
|
5141
|
+
"*",
|
|
5142
|
+
"*",
|
|
5143
|
+
"*",
|
|
5144
|
+
"*",
|
|
5145
|
+
"*",
|
|
5146
|
+
"*",
|
|
5147
|
+
"*",
|
|
5148
|
+
"*",
|
|
5149
|
+
"*",
|
|
5150
|
+
"*",
|
|
5103
5151
|
"*"
|
|
5104
5152
|
]
|
|
5105
5153
|
},
|
|
@@ -7783,6 +7831,30 @@
|
|
|
7783
7831
|
"../../core/utils/types.tsx",
|
|
7784
7832
|
"../../node_modules/@types/node/util.d.ts"
|
|
7785
7833
|
],
|
|
7834
|
+
"../../figma/AIButton.figma.tsx": [
|
|
7835
|
+
"../../core/index.tsx",
|
|
7836
|
+
"../../node_modules/@figma/code-connect/dist/index.d.ts",
|
|
7837
|
+
"../../node_modules/@types/node/util.d.ts",
|
|
7838
|
+
"../../node_modules/@types/react/index.d.ts"
|
|
7839
|
+
],
|
|
7840
|
+
"../../figma/AIChip.figma.tsx": [
|
|
7841
|
+
"../../core/index.tsx",
|
|
7842
|
+
"../../node_modules/@figma/code-connect/dist/index.d.ts",
|
|
7843
|
+
"../../node_modules/@types/node/util.d.ts",
|
|
7844
|
+
"../../node_modules/@types/react/index.d.ts"
|
|
7845
|
+
],
|
|
7846
|
+
"../../figma/AIIconButton.figma.tsx": [
|
|
7847
|
+
"../../core/index.tsx",
|
|
7848
|
+
"../../node_modules/@figma/code-connect/dist/index.d.ts",
|
|
7849
|
+
"../../node_modules/@types/node/util.d.ts",
|
|
7850
|
+
"../../node_modules/@types/react/index.d.ts"
|
|
7851
|
+
],
|
|
7852
|
+
"../../figma/AIResponse.figma.tsx": [
|
|
7853
|
+
"../../core/index.tsx",
|
|
7854
|
+
"../../node_modules/@figma/code-connect/dist/index.d.ts",
|
|
7855
|
+
"../../node_modules/@types/node/util.d.ts",
|
|
7856
|
+
"../../node_modules/@types/react/index.d.ts"
|
|
7857
|
+
],
|
|
7786
7858
|
"../../figma/ActionCard.figma.tsx": [
|
|
7787
7859
|
"../../core/index.tsx",
|
|
7788
7860
|
"../../node_modules/@figma/code-connect/dist/index.d.ts",
|
|
@@ -7933,6 +8005,18 @@
|
|
|
7933
8005
|
"../../node_modules/@types/node/util.d.ts",
|
|
7934
8006
|
"../../node_modules/@types/react/index.d.ts"
|
|
7935
8007
|
],
|
|
8008
|
+
"../../figma/Sara.figma.tsx": [
|
|
8009
|
+
"../../core/index.tsx",
|
|
8010
|
+
"../../node_modules/@figma/code-connect/dist/index.d.ts",
|
|
8011
|
+
"../../node_modules/@types/node/util.d.ts",
|
|
8012
|
+
"../../node_modules/@types/react/index.d.ts"
|
|
8013
|
+
],
|
|
8014
|
+
"../../figma/SaraSparkle.figma.tsx": [
|
|
8015
|
+
"../../core/index.tsx",
|
|
8016
|
+
"../../node_modules/@figma/code-connect/dist/index.d.ts",
|
|
8017
|
+
"../../node_modules/@types/node/util.d.ts",
|
|
8018
|
+
"../../node_modules/@types/react/index.d.ts"
|
|
8019
|
+
],
|
|
7936
8020
|
"../../figma/SelectionCard.figma.tsx": [
|
|
7937
8021
|
"../../core/index.tsx",
|
|
7938
8022
|
"../../node_modules/@figma/code-connect/dist/index.d.ts",
|
|
@@ -11865,6 +11949,10 @@
|
|
|
11865
11949
|
"../../core/utils/types.tsx",
|
|
11866
11950
|
"../../core/utils/uidGenerator.tsx",
|
|
11867
11951
|
"../../core/utils/validators.ts",
|
|
11952
|
+
"../../figma/AIButton.figma.tsx",
|
|
11953
|
+
"../../figma/AIChip.figma.tsx",
|
|
11954
|
+
"../../figma/AIIconButton.figma.tsx",
|
|
11955
|
+
"../../figma/AIResponse.figma.tsx",
|
|
11868
11956
|
"../../figma/ActionCard.figma.tsx",
|
|
11869
11957
|
"../../figma/Avatar.figma.tsx",
|
|
11870
11958
|
"../../figma/Backdrop.figma.tsx",
|
|
@@ -11890,6 +11978,8 @@
|
|
|
11890
11978
|
"../../figma/ProgressRing.figma.tsx",
|
|
11891
11979
|
"../../figma/Radio.figma.tsx",
|
|
11892
11980
|
"../../figma/RangeSlider.figma.tsx",
|
|
11981
|
+
"../../figma/Sara.figma.tsx",
|
|
11982
|
+
"../../figma/SaraSparkle.figma.tsx",
|
|
11893
11983
|
"../../figma/SelectionCard.figma.tsx",
|
|
11894
11984
|
"../../figma/Slider.figma.tsx",
|
|
11895
11985
|
"../../figma/Spinner.figma.tsx",
|
|
@@ -4,6 +4,7 @@ interface VerificationProps extends BaseProps {
|
|
|
4
4
|
fields?: number;
|
|
5
5
|
type?: 'text' | 'number' | 'password';
|
|
6
6
|
onComplete?: (value: string) => void;
|
|
7
|
+
onChange?: (value: string) => void;
|
|
7
8
|
}
|
|
8
9
|
export declare type VerificationCodeInputProps = VerificationProps & Omit<InputProps, 'name' | 'type' | 'defaultValue' | 'size' | 'icon' | 'inlineLabel' | 'autoComplete' | 'onChange' | 'onClear' | 'info' | 'min' | 'max' | 'minLength' | 'maxLength' | 'actionIcon'>;
|
|
9
10
|
declare const VerificationCodeInput: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* Generated on:
|
|
3
|
+
* Generated on: 1724239960546
|
|
4
4
|
* Package: @innovaccer/design-system
|
|
5
|
-
* Version: v2.
|
|
5
|
+
* Version: v2.41.1
|
|
6
6
|
* License: MIT
|
|
7
7
|
* Docs: https://mds.innovaccer.com
|
|
8
8
|
*/
|
|
@@ -14306,6 +14306,7 @@ var ChipInput = function ChipInput(props) {
|
|
|
14306
14306
|
onBlur = props.onBlur,
|
|
14307
14307
|
onFocus = props.onFocus;
|
|
14308
14308
|
var inputRef = /*#__PURE__*/React.createRef();
|
|
14309
|
+
var customRef = React.useRef();
|
|
14309
14310
|
|
|
14310
14311
|
var _React$useState = React.useState(value || defaultValue),
|
|
14311
14312
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -14323,6 +14324,12 @@ var ChipInput = function ChipInput(props) {
|
|
|
14323
14324
|
setChips(value);
|
|
14324
14325
|
}
|
|
14325
14326
|
}, [value]);
|
|
14327
|
+
React.useEffect(function () {
|
|
14328
|
+
if (inputValue === '' && inputRef.current) {
|
|
14329
|
+
inputRef.current.style.flexBasis = '0';
|
|
14330
|
+
customRef.current.charCount = null;
|
|
14331
|
+
}
|
|
14332
|
+
}, [inputValue]);
|
|
14326
14333
|
var ChipInputBorderClass = classnames((_classNames = {}, _defineProperty$1(_classNames, 'ChipInput-border', true), _defineProperty$1(_classNames, 'ChipInput-border--error', error), _classNames));
|
|
14327
14334
|
var ChipInputClass = classnames((_classNames2 = {
|
|
14328
14335
|
ChipInput: true
|
|
@@ -14390,13 +14397,30 @@ var ChipInput = function ChipInput(props) {
|
|
|
14390
14397
|
};
|
|
14391
14398
|
|
|
14392
14399
|
var onInputChangeHandler = function onInputChangeHandler(e) {
|
|
14400
|
+
var _inputRef$current, _inputRef$current2;
|
|
14401
|
+
|
|
14402
|
+
var elementScrollWidth = (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.scrollWidth;
|
|
14403
|
+
var elementClientWidth = (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.clientWidth;
|
|
14404
|
+
var charLen = e.target.value.length;
|
|
14405
|
+
|
|
14406
|
+
if (elementScrollWidth && elementClientWidth && inputRef.current) {
|
|
14407
|
+
var _customRef$current;
|
|
14408
|
+
|
|
14409
|
+
if (elementScrollWidth > elementClientWidth && inputValue.length <= charLen && customRef.current) {
|
|
14410
|
+
inputRef.current.style.flexBasis = 'auto';
|
|
14411
|
+
customRef.current.charCount = charLen;
|
|
14412
|
+
} else if (elementScrollWidth <= elementClientWidth && inputValue.length > charLen && charLen <= ((_customRef$current = customRef.current) === null || _customRef$current === void 0 ? void 0 : _customRef$current.charCount) - 2) {
|
|
14413
|
+
inputRef.current.style.flex = '0';
|
|
14414
|
+
}
|
|
14415
|
+
}
|
|
14416
|
+
|
|
14393
14417
|
setInputValue(e.target.value);
|
|
14394
14418
|
};
|
|
14395
14419
|
|
|
14396
14420
|
var onClickHandler = function onClickHandler() {
|
|
14397
|
-
var _inputRef$
|
|
14421
|
+
var _inputRef$current3;
|
|
14398
14422
|
|
|
14399
|
-
(_inputRef$
|
|
14423
|
+
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.focus();
|
|
14400
14424
|
};
|
|
14401
14425
|
|
|
14402
14426
|
var chipComponents = chips.map(function (chip, index) {
|
|
@@ -14437,7 +14461,8 @@ var ChipInput = function ChipInput(props) {
|
|
|
14437
14461
|
onClick: onClickHandler,
|
|
14438
14462
|
tabIndex: disabled ? -1 : 0
|
|
14439
14463
|
}), /*#__PURE__*/React.createElement("div", {
|
|
14440
|
-
className: "ChipInput-wrapper"
|
|
14464
|
+
className: "ChipInput-wrapper",
|
|
14465
|
+
ref: customRef
|
|
14441
14466
|
}, chips && chips.length > 0 && chipComponents, /*#__PURE__*/React.createElement("input", {
|
|
14442
14467
|
"data-test": "DesignSystem-ChipInput--Input",
|
|
14443
14468
|
ref: inputRef,
|
|
@@ -18345,6 +18370,11 @@ var accepts = function accepts(file, acceptedFiles) {
|
|
|
18345
18370
|
var fileName = file.name || '';
|
|
18346
18371
|
var mimeType = (file.type || '').toLowerCase();
|
|
18347
18372
|
var baseMimeType = mimeType.replace(/\/.*$/, '');
|
|
18373
|
+
|
|
18374
|
+
if (!mimeType) {
|
|
18375
|
+
return true;
|
|
18376
|
+
}
|
|
18377
|
+
|
|
18348
18378
|
return acceptedFilesArray.some(function (type) {
|
|
18349
18379
|
var validType = type.trim().toLowerCase();
|
|
18350
18380
|
|
|
@@ -22589,7 +22619,7 @@ FileList.defaultProps = {
|
|
|
22589
22619
|
};
|
|
22590
22620
|
FileList.displayName = 'FileList';
|
|
22591
22621
|
|
|
22592
|
-
var _excluded$t = ["type", "fields", "placeholder", "autoFocus", "onComplete", "onFocus", "onBlur", "className", "value"];
|
|
22622
|
+
var _excluded$t = ["type", "fields", "placeholder", "autoFocus", "onComplete", "onChange", "onFocus", "onBlur", "className", "value"];
|
|
22593
22623
|
var KEY_CODE = {
|
|
22594
22624
|
backspace: 'Backspace',
|
|
22595
22625
|
left: 'ArrowLeft',
|
|
@@ -22610,6 +22640,7 @@ var VerificationCodeInput = function VerificationCodeInput(props) {
|
|
|
22610
22640
|
_props$autoFocus = props.autoFocus,
|
|
22611
22641
|
autoFocus = _props$autoFocus === void 0 ? true : _props$autoFocus,
|
|
22612
22642
|
onComplete = props.onComplete,
|
|
22643
|
+
onChange = props.onChange,
|
|
22613
22644
|
onFocus = props.onFocus,
|
|
22614
22645
|
onBlur = props.onBlur,
|
|
22615
22646
|
className = props.className;
|
|
@@ -22647,10 +22678,9 @@ var VerificationCodeInput = function VerificationCodeInput(props) {
|
|
|
22647
22678
|
}, []);
|
|
22648
22679
|
useEffect$2(function () {
|
|
22649
22680
|
var completeValue = values.join('');
|
|
22650
|
-
|
|
22651
|
-
|
|
22652
|
-
|
|
22653
|
-
}
|
|
22681
|
+
var isComplete = completeValue.length === fields;
|
|
22682
|
+
isComplete && (onComplete === null || onComplete === void 0 ? void 0 : onComplete(completeValue));
|
|
22683
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(completeValue);
|
|
22654
22684
|
}, [values]);
|
|
22655
22685
|
|
|
22656
22686
|
var onChangeHandler = function onChangeHandler(e) {
|
|
@@ -31468,6 +31498,6 @@ AIResponse.Button = ChatButton;
|
|
|
31468
31498
|
AIResponse.ActionBar = ChatActionBar;
|
|
31469
31499
|
AIResponse.Body = ChatBody;
|
|
31470
31500
|
|
|
31471
|
-
var version = "2.
|
|
31501
|
+
var version = "2.41.1";
|
|
31472
31502
|
|
|
31473
31503
|
export { AIButton, AIChip, AIIconButton, AIResponse, ActionCard, Avatar, AvatarGroup, AvatarSelection, Backdrop, Badge, Breadcrumbs, Button, Calendar, Caption, Card, CardBody, CardFooter, CardHeader, CardSubdued, ChatMessage, Checkbox, Chip, ChipGroup, ChipInput, ChoiceList, Collapsible, Column, Combobox, DatePicker, DateRangePicker, Dialog, Divider, Dropdown, Dropzone, EditableChipInput, EditableDropdown, EditableInput, EmptyState, FileList, FileUploader, FileUploaderList, FullscreenModal, Grid, GridCell, Heading, HelpText, HorizontalNav, Icon, InlineMessage, Input, X as InputMask, KeyValuePair, Label, Legend, Link, LinkButton, List, Listbox, Menu, Message, MetaList, MetricInput, Modal, ModalBody, ModalDescription, ModalFooter, ModalHeader, MultiSlider, Navigation, OutsideClick, PageHeader, Pagination, Paragraph, Pills, Placeholder, PlaceholderImage, PlaceholderParagraph, Popover, ProgressBar, ProgressRing, Radio, RangeSlider, Row, Sara, SaraSparkle, Select, SelectionCard, Sidesheet, Slider, Spinner, StatusHint, Stepper, Subheading, Switch, Tab, Table, Tabs, TabsWrapper, Text, TextField, Textarea, TimePicker, Toast, Tooltip, index as Utils, VerificationCodeInput, VerticalNav, version };
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* Generated on:
|
|
3
|
+
* Generated on: 1724239960796
|
|
4
4
|
* Package: @innovaccer/design-system
|
|
5
|
-
* Version: v2.
|
|
5
|
+
* Version: v2.41.1
|
|
6
6
|
* License: MIT
|
|
7
7
|
* Docs: https://mds.innovaccer.com
|
|
8
8
|
*/
|
|
@@ -8968,6 +8968,7 @@
|
|
|
8968
8968
|
onBlur = props.onBlur,
|
|
8969
8969
|
onFocus = props.onFocus;
|
|
8970
8970
|
var inputRef = /*#__PURE__*/React__namespace.createRef();
|
|
8971
|
+
var customRef = React__namespace.useRef();
|
|
8971
8972
|
|
|
8972
8973
|
var _c = React__namespace.useState(value || defaultValue),
|
|
8973
8974
|
chips = _c[0],
|
|
@@ -8983,6 +8984,12 @@
|
|
|
8983
8984
|
setChips(value);
|
|
8984
8985
|
}
|
|
8985
8986
|
}, [value]);
|
|
8987
|
+
React__namespace.useEffect(function () {
|
|
8988
|
+
if (inputValue === '' && inputRef.current) {
|
|
8989
|
+
inputRef.current.style.flexBasis = '0';
|
|
8990
|
+
customRef.current.charCount = null;
|
|
8991
|
+
}
|
|
8992
|
+
}, [inputValue]);
|
|
8986
8993
|
var ChipInputBorderClass = classNames__default["default"]((_a = {}, _a['ChipInput-border'] = true, _a['ChipInput-border--error'] = error, _a));
|
|
8987
8994
|
var ChipInputClass = classNames__default["default"]((_b = {
|
|
8988
8995
|
ChipInput: true
|
|
@@ -9050,6 +9057,21 @@
|
|
|
9050
9057
|
};
|
|
9051
9058
|
|
|
9052
9059
|
var onInputChangeHandler = function onInputChangeHandler(e) {
|
|
9060
|
+
var _a, _b, _c;
|
|
9061
|
+
|
|
9062
|
+
var elementScrollWidth = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.scrollWidth;
|
|
9063
|
+
var elementClientWidth = (_b = inputRef.current) === null || _b === void 0 ? void 0 : _b.clientWidth;
|
|
9064
|
+
var charLen = e.target.value.length;
|
|
9065
|
+
|
|
9066
|
+
if (elementScrollWidth && elementClientWidth && inputRef.current) {
|
|
9067
|
+
if (elementScrollWidth > elementClientWidth && inputValue.length <= charLen && customRef.current) {
|
|
9068
|
+
inputRef.current.style.flexBasis = 'auto';
|
|
9069
|
+
customRef.current.charCount = charLen;
|
|
9070
|
+
} else if (elementScrollWidth <= elementClientWidth && inputValue.length > charLen && charLen <= ((_c = customRef.current) === null || _c === void 0 ? void 0 : _c.charCount) - 2) {
|
|
9071
|
+
inputRef.current.style.flex = '0';
|
|
9072
|
+
}
|
|
9073
|
+
}
|
|
9074
|
+
|
|
9053
9075
|
setInputValue(e.target.value);
|
|
9054
9076
|
};
|
|
9055
9077
|
|
|
@@ -9091,7 +9113,8 @@
|
|
|
9091
9113
|
onClick: onClickHandler,
|
|
9092
9114
|
tabIndex: disabled ? -1 : 0
|
|
9093
9115
|
}), /*#__PURE__*/React__namespace.createElement("div", {
|
|
9094
|
-
className: "ChipInput-wrapper"
|
|
9116
|
+
className: "ChipInput-wrapper",
|
|
9117
|
+
ref: customRef
|
|
9095
9118
|
}, chips && chips.length > 0 && chipComponents, /*#__PURE__*/React__namespace.createElement("input", {
|
|
9096
9119
|
"data-test": "DesignSystem-ChipInput--Input",
|
|
9097
9120
|
ref: inputRef,
|
|
@@ -12816,6 +12839,11 @@
|
|
|
12816
12839
|
var fileName_1 = file.name || '';
|
|
12817
12840
|
var mimeType_1 = (file.type || '').toLowerCase();
|
|
12818
12841
|
var baseMimeType_1 = mimeType_1.replace(/\/.*$/, '');
|
|
12842
|
+
|
|
12843
|
+
if (!mimeType_1) {
|
|
12844
|
+
return true;
|
|
12845
|
+
}
|
|
12846
|
+
|
|
12819
12847
|
return acceptedFilesArray.some(function (type) {
|
|
12820
12848
|
var validType = type.trim().toLowerCase();
|
|
12821
12849
|
|
|
@@ -16851,11 +16879,12 @@
|
|
|
16851
16879
|
_d = props.autoFocus,
|
|
16852
16880
|
autoFocus = _d === void 0 ? true : _d,
|
|
16853
16881
|
onComplete = props.onComplete,
|
|
16882
|
+
onChange = props.onChange,
|
|
16854
16883
|
onFocus = props.onFocus,
|
|
16855
16884
|
onBlur = props.onBlur,
|
|
16856
16885
|
className = props.className;
|
|
16857
16886
|
props.value;
|
|
16858
|
-
var rest = __rest(props, ["type", "fields", "placeholder", "autoFocus", "onComplete", "onFocus", "onBlur", "className", "value"]);
|
|
16887
|
+
var rest = __rest(props, ["type", "fields", "placeholder", "autoFocus", "onComplete", "onChange", "onFocus", "onBlur", "className", "value"]);
|
|
16859
16888
|
|
|
16860
16889
|
var initialValues = React.useMemo(function () {
|
|
16861
16890
|
if (props.value && props.value.length) {
|
|
@@ -16884,10 +16913,9 @@
|
|
|
16884
16913
|
}, []);
|
|
16885
16914
|
React.useEffect(function () {
|
|
16886
16915
|
var completeValue = values.join('');
|
|
16887
|
-
|
|
16888
|
-
|
|
16889
|
-
|
|
16890
|
-
}
|
|
16916
|
+
var isComplete = completeValue.length === fields;
|
|
16917
|
+
isComplete && (onComplete === null || onComplete === void 0 ? void 0 : onComplete(completeValue));
|
|
16918
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(completeValue);
|
|
16891
16919
|
}, [values]);
|
|
16892
16920
|
|
|
16893
16921
|
var onChangeHandler = function onChangeHandler(e) {
|
|
@@ -25607,7 +25635,7 @@
|
|
|
25607
25635
|
AIResponse.ActionBar = ChatActionBar;
|
|
25608
25636
|
AIResponse.Body = ChatBody;
|
|
25609
25637
|
|
|
25610
|
-
var version = "2.
|
|
25638
|
+
var version = "2.41.1";
|
|
25611
25639
|
|
|
25612
25640
|
exports.AIButton = AIButton;
|
|
25613
25641
|
exports.AIChip = AIChip;
|