@pagopa/io-app-design-system 5.3.9 → 5.4.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/README.md +3 -2
- package/lib/commonjs/components/accordion/AccordionItem.js +4 -2
- package/lib/commonjs/components/accordion/AccordionItem.js.map +1 -1
- package/lib/commonjs/components/alert/Alert.js +5 -11
- package/lib/commonjs/components/alert/Alert.js.map +1 -1
- package/lib/commonjs/components/alert/AlertEdgeToEdge.js +3 -2
- package/lib/commonjs/components/alert/AlertEdgeToEdge.js.map +1 -1
- package/lib/commonjs/components/alert/AlertEdgeToEdgeWrapper.js +3 -2
- package/lib/commonjs/components/alert/AlertEdgeToEdgeWrapper.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonLink.js +5 -2
- package/lib/commonjs/components/buttons/ButtonLink.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonOutline.js +20 -15
- package/lib/commonjs/components/buttons/ButtonOutline.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonSolid.js +4 -1
- package/lib/commonjs/components/buttons/ButtonSolid.js.map +1 -1
- package/lib/commonjs/components/buttons/IOButton/IOButton.js +230 -0
- package/lib/commonjs/components/buttons/IOButton/IOButton.js.map +1 -0
- package/lib/commonjs/components/buttons/IOButton/__test__/IOButton.test.js +43 -0
- package/lib/commonjs/components/buttons/IOButton/__test__/IOButton.test.js.map +1 -0
- package/lib/commonjs/components/buttons/IOButton/__test__/__snapshots__/IOButton.test.tsx.snap +391 -0
- package/lib/commonjs/components/buttons/IOButton/index.js +17 -0
- package/lib/commonjs/components/buttons/IOButton/index.js.map +1 -0
- package/lib/commonjs/components/buttons/IOButton/styles.js +166 -0
- package/lib/commonjs/components/buttons/IOButton/styles.js.map +1 -0
- package/lib/commonjs/components/buttons/IconButton.js +2 -3
- package/lib/commonjs/components/buttons/IconButton.js.map +1 -1
- package/lib/commonjs/components/buttons/IconButtonContained.js +1 -2
- package/lib/commonjs/components/buttons/IconButtonContained.js.map +1 -1
- package/lib/commonjs/components/buttons/__test__/__snapshots__/button.test.tsx.snap +6 -402
- package/lib/commonjs/components/buttons/__test__/button.test.js +0 -24
- package/lib/commonjs/components/buttons/__test__/button.test.js.map +1 -1
- package/lib/commonjs/components/buttons/index.js +11 -0
- package/lib/commonjs/components/buttons/index.js.map +1 -1
- package/lib/commonjs/components/claimsSelector/__test__/__snapshots__/ClaimsSelector.test.tsx.snap +13 -30
- package/lib/commonjs/components/icons/Icon.js +11 -9
- package/lib/commonjs/components/icons/Icon.js.map +1 -1
- package/lib/commonjs/components/layout/FooterActions.js +10 -9
- package/lib/commonjs/components/layout/FooterActions.js.map +1 -1
- package/lib/commonjs/components/layout/FooterActionsInline.js +8 -8
- package/lib/commonjs/components/layout/FooterActionsInline.js.map +1 -1
- package/lib/commonjs/components/layout/GradientBottomActions.js +8 -8
- package/lib/commonjs/components/layout/GradientBottomActions.js.map +1 -1
- package/lib/commonjs/components/layout/GradientScrollView.js.map +1 -1
- package/lib/commonjs/components/layout/ModalBSHeader.js +3 -1
- package/lib/commonjs/components/layout/ModalBSHeader.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemAmount.js +3 -1
- package/lib/commonjs/components/listitems/ListItemAmount.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemCheckbox.js +3 -2
- package/lib/commonjs/components/listitems/ListItemCheckbox.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemHeader.js +4 -2
- package/lib/commonjs/components/listitems/ListItemHeader.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemInfo.js +3 -1
- package/lib/commonjs/components/listitems/ListItemInfo.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemInfoCopy.js +3 -1
- package/lib/commonjs/components/listitems/ListItemInfoCopy.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemNav.js +1 -1
- package/lib/commonjs/components/listitems/ListItemNav.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemNavAlert.js +3 -1
- package/lib/commonjs/components/listitems/ListItemNavAlert.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemRadio.js +10 -2
- package/lib/commonjs/components/listitems/ListItemRadio.js.map +1 -1
- package/lib/commonjs/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +10 -40
- package/lib/commonjs/components/loadingSpinner/LoadingSpinner.js +6 -6
- package/lib/commonjs/components/loadingSpinner/LoadingSpinner.js.map +1 -1
- package/lib/commonjs/components/numberpad/NumberButton.js +15 -2
- package/lib/commonjs/components/numberpad/NumberButton.js.map +1 -1
- package/lib/commonjs/components/numberpad/NumberPad.js +9 -6
- package/lib/commonjs/components/numberpad/NumberPad.js.map +1 -1
- package/lib/commonjs/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +42 -96
- package/lib/commonjs/components/otpInput/OTPInput.js +3 -3
- package/lib/commonjs/components/otpInput/OTPInput.js.map +1 -1
- package/lib/commonjs/components/radio/RadioButtonLabel.js +3 -3
- package/lib/commonjs/components/radio/RadioButtonLabel.js.map +1 -1
- package/lib/commonjs/components/stepper/Stepper.js +5 -2
- package/lib/commonjs/components/stepper/Stepper.js.map +1 -1
- package/lib/commonjs/components/typography/IOText.js +4 -1
- package/lib/commonjs/components/typography/IOText.js.map +1 -1
- package/lib/commonjs/core/IOStyles.js +3 -53
- package/lib/commonjs/core/IOStyles.js.map +1 -1
- package/lib/module/components/accordion/AccordionItem.js +5 -3
- package/lib/module/components/accordion/AccordionItem.js.map +1 -1
- package/lib/module/components/alert/Alert.js +6 -12
- package/lib/module/components/alert/Alert.js.map +1 -1
- package/lib/module/components/alert/AlertEdgeToEdge.js +3 -2
- package/lib/module/components/alert/AlertEdgeToEdge.js.map +1 -1
- package/lib/module/components/alert/AlertEdgeToEdgeWrapper.js +3 -2
- package/lib/module/components/alert/AlertEdgeToEdgeWrapper.js.map +1 -1
- package/lib/module/components/buttons/ButtonLink.js +6 -3
- package/lib/module/components/buttons/ButtonLink.js.map +1 -1
- package/lib/module/components/buttons/ButtonOutline.js +21 -16
- package/lib/module/components/buttons/ButtonOutline.js.map +1 -1
- package/lib/module/components/buttons/ButtonSolid.js +4 -1
- package/lib/module/components/buttons/ButtonSolid.js.map +1 -1
- package/lib/module/components/buttons/IOButton/IOButton.js +223 -0
- package/lib/module/components/buttons/IOButton/IOButton.js.map +1 -0
- package/lib/module/components/buttons/IOButton/__test__/IOButton.test.js +40 -0
- package/lib/module/components/buttons/IOButton/__test__/IOButton.test.js.map +1 -0
- package/lib/module/components/buttons/IOButton/__test__/__snapshots__/IOButton.test.tsx.snap +391 -0
- package/lib/module/components/buttons/IOButton/index.js +4 -0
- package/lib/module/components/buttons/IOButton/index.js.map +1 -0
- package/lib/module/components/buttons/IOButton/styles.js +160 -0
- package/lib/module/components/buttons/IOButton/styles.js.map +1 -0
- package/lib/module/components/buttons/IconButton.js +4 -5
- package/lib/module/components/buttons/IconButton.js.map +1 -1
- package/lib/module/components/buttons/IconButtonContained.js +2 -3
- package/lib/module/components/buttons/IconButtonContained.js.map +1 -1
- package/lib/module/components/buttons/__test__/__snapshots__/button.test.tsx.snap +6 -402
- package/lib/module/components/buttons/__test__/button.test.js +0 -24
- package/lib/module/components/buttons/__test__/button.test.js.map +1 -1
- package/lib/module/components/buttons/index.js +1 -0
- package/lib/module/components/buttons/index.js.map +1 -1
- package/lib/module/components/claimsSelector/__test__/__snapshots__/ClaimsSelector.test.tsx.snap +13 -30
- package/lib/module/components/icons/Icon.js +10 -7
- package/lib/module/components/icons/Icon.js.map +1 -1
- package/lib/module/components/layout/FooterActions.js +11 -10
- package/lib/module/components/layout/FooterActions.js.map +1 -1
- package/lib/module/components/layout/FooterActionsInline.js +9 -9
- package/lib/module/components/layout/FooterActionsInline.js.map +1 -1
- package/lib/module/components/layout/GradientBottomActions.js +9 -9
- package/lib/module/components/layout/GradientBottomActions.js.map +1 -1
- package/lib/module/components/layout/GradientScrollView.js.map +1 -1
- package/lib/module/components/layout/ModalBSHeader.js +4 -2
- package/lib/module/components/layout/ModalBSHeader.js.map +1 -1
- package/lib/module/components/listitems/ListItemAmount.js +4 -2
- package/lib/module/components/listitems/ListItemAmount.js.map +1 -1
- package/lib/module/components/listitems/ListItemCheckbox.js +4 -3
- package/lib/module/components/listitems/ListItemCheckbox.js.map +1 -1
- package/lib/module/components/listitems/ListItemHeader.js +5 -3
- package/lib/module/components/listitems/ListItemHeader.js.map +1 -1
- package/lib/module/components/listitems/ListItemInfo.js +4 -2
- package/lib/module/components/listitems/ListItemInfo.js.map +1 -1
- package/lib/module/components/listitems/ListItemInfoCopy.js +4 -2
- package/lib/module/components/listitems/ListItemInfoCopy.js.map +1 -1
- package/lib/module/components/listitems/ListItemNav.js +2 -2
- package/lib/module/components/listitems/ListItemNav.js.map +1 -1
- package/lib/module/components/listitems/ListItemNavAlert.js +4 -2
- package/lib/module/components/listitems/ListItemNavAlert.js.map +1 -1
- package/lib/module/components/listitems/ListItemRadio.js +11 -3
- package/lib/module/components/listitems/ListItemRadio.js.map +1 -1
- package/lib/module/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +10 -40
- package/lib/module/components/loadingSpinner/LoadingSpinner.js +6 -6
- package/lib/module/components/loadingSpinner/LoadingSpinner.js.map +1 -1
- package/lib/module/components/numberpad/NumberButton.js +16 -3
- package/lib/module/components/numberpad/NumberButton.js.map +1 -1
- package/lib/module/components/numberpad/NumberPad.js +10 -7
- package/lib/module/components/numberpad/NumberPad.js.map +1 -1
- package/lib/module/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +42 -96
- package/lib/module/components/otpInput/OTPInput.js +3 -3
- package/lib/module/components/otpInput/OTPInput.js.map +1 -1
- package/lib/module/components/radio/RadioButtonLabel.js +3 -3
- package/lib/module/components/radio/RadioButtonLabel.js.map +1 -1
- package/lib/module/components/stepper/Stepper.js +6 -3
- package/lib/module/components/stepper/Stepper.js.map +1 -1
- package/lib/module/components/typography/IOText.js +2 -0
- package/lib/module/components/typography/IOText.js.map +1 -1
- package/lib/module/core/IOStyles.js +3 -53
- package/lib/module/core/IOStyles.js.map +1 -1
- package/lib/typescript/components/accordion/AccordionItem.d.ts.map +1 -1
- package/lib/typescript/components/alert/Alert.d.ts.map +1 -1
- package/lib/typescript/components/alert/AlertEdgeToEdge.d.ts.map +1 -1
- package/lib/typescript/components/alert/AlertEdgeToEdgeWrapper.d.ts.map +1 -1
- package/lib/typescript/components/buttons/ButtonLink.d.ts +3 -0
- package/lib/typescript/components/buttons/ButtonLink.d.ts.map +1 -1
- package/lib/typescript/components/buttons/ButtonOutline.d.ts +3 -0
- package/lib/typescript/components/buttons/ButtonOutline.d.ts.map +1 -1
- package/lib/typescript/components/buttons/ButtonSolid.d.ts +3 -0
- package/lib/typescript/components/buttons/ButtonSolid.d.ts.map +1 -1
- package/lib/typescript/components/buttons/IOButton/IOButton.d.ts +57 -0
- package/lib/typescript/components/buttons/IOButton/IOButton.d.ts.map +1 -0
- package/lib/typescript/components/buttons/IOButton/__test__/IOButton.test.d.ts +2 -0
- package/lib/typescript/components/buttons/IOButton/__test__/IOButton.test.d.ts.map +1 -0
- package/lib/typescript/components/buttons/IOButton/index.d.ts +2 -0
- package/lib/typescript/components/buttons/IOButton/index.d.ts.map +1 -0
- package/lib/typescript/components/buttons/IOButton/styles.d.ts +35 -0
- package/lib/typescript/components/buttons/IOButton/styles.d.ts.map +1 -0
- package/lib/typescript/components/buttons/IconButton.d.ts.map +1 -1
- package/lib/typescript/components/buttons/IconButtonContained.d.ts.map +1 -1
- package/lib/typescript/components/buttons/index.d.ts +1 -0
- package/lib/typescript/components/buttons/index.d.ts.map +1 -1
- package/lib/typescript/components/icons/Icon.d.ts +1 -4
- package/lib/typescript/components/icons/Icon.d.ts.map +1 -1
- package/lib/typescript/components/icons/types.d.ts +3 -2
- package/lib/typescript/components/icons/types.d.ts.map +1 -1
- package/lib/typescript/components/layout/FooterActions.d.ts +10 -8
- package/lib/typescript/components/layout/FooterActions.d.ts.map +1 -1
- package/lib/typescript/components/layout/FooterActionsInline.d.ts +5 -4
- package/lib/typescript/components/layout/FooterActionsInline.d.ts.map +1 -1
- package/lib/typescript/components/layout/GradientBottomActions.d.ts +12 -6
- package/lib/typescript/components/layout/GradientBottomActions.d.ts.map +1 -1
- package/lib/typescript/components/layout/GradientScrollView.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemAmount.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemCheckbox.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemHeader.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemInfo.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemInfoCopy.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemNavAlert.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemRadio.d.ts.map +1 -1
- package/lib/typescript/components/loadingSpinner/LoadingSpinner.d.ts +2 -2
- package/lib/typescript/components/loadingSpinner/LoadingSpinner.d.ts.map +1 -1
- package/lib/typescript/components/numberpad/NumberButton.d.ts +11 -0
- package/lib/typescript/components/numberpad/NumberButton.d.ts.map +1 -1
- package/lib/typescript/components/numberpad/NumberPad.d.ts.map +1 -1
- package/lib/typescript/components/otpInput/OTPInput.d.ts.map +1 -1
- package/lib/typescript/components/radio/RadioButtonLabel.d.ts.map +1 -1
- package/lib/typescript/components/stepper/Stepper.d.ts.map +1 -1
- package/lib/typescript/components/typography/IOText.d.ts +1 -0
- package/lib/typescript/components/typography/IOText.d.ts.map +1 -1
- package/lib/typescript/core/IOStyles.d.ts +0 -47
- package/lib/typescript/core/IOStyles.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/accordion/AccordionItem.tsx +7 -14
- package/src/components/alert/Alert.tsx +7 -21
- package/src/components/alert/AlertEdgeToEdge.tsx +1 -2
- package/src/components/alert/AlertEdgeToEdgeWrapper.tsx +1 -2
- package/src/components/buttons/ButtonLink.tsx +6 -6
- package/src/components/buttons/ButtonOutline.tsx +21 -21
- package/src/components/buttons/ButtonSolid.tsx +4 -1
- package/src/components/buttons/IOButton/IOButton.tsx +363 -0
- package/src/components/buttons/IOButton/__test__/IOButton.test.tsx +46 -0
- package/src/components/buttons/IOButton/__test__/__snapshots__/IOButton.test.tsx.snap +391 -0
- package/src/components/buttons/IOButton/index.tsx +1 -0
- package/src/components/buttons/IOButton/styles.tsx +228 -0
- package/src/components/buttons/IconButton.tsx +4 -9
- package/src/components/buttons/IconButtonContained.tsx +3 -6
- package/src/components/buttons/__test__/__snapshots__/button.test.tsx.snap +6 -402
- package/src/components/buttons/__test__/button.test.tsx +1 -33
- package/src/components/buttons/index.tsx +1 -0
- package/src/components/claimsSelector/__test__/__snapshots__/ClaimsSelector.test.tsx.snap +13 -30
- package/src/components/icons/Icon.tsx +12 -3
- package/src/components/icons/types.ts +3 -2
- package/src/components/layout/FooterActions.tsx +26 -14
- package/src/components/layout/FooterActionsInline.tsx +19 -12
- package/src/components/layout/GradientBottomActions.tsx +17 -18
- package/src/components/layout/GradientScrollView.tsx +2 -1
- package/src/components/layout/ModalBSHeader.tsx +2 -2
- package/src/components/listitems/ListItemAmount.tsx +1 -2
- package/src/components/listitems/ListItemCheckbox.tsx +8 -11
- package/src/components/listitems/ListItemHeader.tsx +2 -3
- package/src/components/listitems/ListItemInfo.tsx +1 -2
- package/src/components/listitems/ListItemInfoCopy.tsx +1 -2
- package/src/components/listitems/ListItemNav.tsx +1 -1
- package/src/components/listitems/ListItemNavAlert.tsx +1 -2
- package/src/components/listitems/ListItemRadio.tsx +7 -7
- package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +10 -40
- package/src/components/loadingSpinner/LoadingSpinner.tsx +8 -8
- package/src/components/numberpad/NumberButton.tsx +18 -11
- package/src/components/numberpad/NumberPad.tsx +8 -10
- package/src/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +42 -96
- package/src/components/otpInput/OTPInput.tsx +1 -2
- package/src/components/radio/RadioButtonLabel.tsx +7 -10
- package/src/components/stepper/Stepper.tsx +7 -12
- package/src/components/typography/IOText.tsx +3 -0
- package/src/core/IOStyles.ts +3 -55
|
@@ -390,15 +390,13 @@ exports[`Test Buttons Components - Experimental Enabled IconButton Snapshot 1`]
|
|
|
390
390
|
<View
|
|
391
391
|
style={
|
|
392
392
|
[
|
|
393
|
-
{
|
|
394
|
-
"height": 24,
|
|
395
|
-
"width": 24,
|
|
396
|
-
},
|
|
397
393
|
{
|
|
398
394
|
"alignItems": "center",
|
|
395
|
+
"justifyContent": "center",
|
|
399
396
|
},
|
|
400
397
|
{
|
|
401
|
-
"
|
|
398
|
+
"height": 24,
|
|
399
|
+
"width": 24,
|
|
402
400
|
},
|
|
403
401
|
{
|
|
404
402
|
"transform": [
|
|
@@ -417,6 +415,7 @@ exports[`Test Buttons Components - Experimental Enabled IconButton Snapshot 1`]
|
|
|
417
415
|
align="xMidYMid"
|
|
418
416
|
bbHeight={24}
|
|
419
417
|
bbWidth={24}
|
|
418
|
+
color="#0B3EE3"
|
|
420
419
|
focusable={false}
|
|
421
420
|
height={24}
|
|
422
421
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -429,9 +428,6 @@ exports[`Test Buttons Components - Experimental Enabled IconButton Snapshot 1`]
|
|
|
429
428
|
"backgroundColor": "transparent",
|
|
430
429
|
"borderWidth": 0,
|
|
431
430
|
},
|
|
432
|
-
{
|
|
433
|
-
"color": "#0B3EE3",
|
|
434
|
-
},
|
|
435
431
|
{
|
|
436
432
|
"flex": 0,
|
|
437
433
|
"height": 24,
|
|
@@ -444,7 +440,6 @@ exports[`Test Buttons Components - Experimental Enabled IconButton Snapshot 1`]
|
|
|
444
440
|
width={24}
|
|
445
441
|
>
|
|
446
442
|
<RNSVGGroup
|
|
447
|
-
color="#0B3EE3"
|
|
448
443
|
fill={
|
|
449
444
|
{
|
|
450
445
|
"payload": 4278190080,
|
|
@@ -518,7 +513,6 @@ exports[`Test Buttons Components - Experimental Enabled IconButtonContained Snap
|
|
|
518
513
|
[
|
|
519
514
|
{
|
|
520
515
|
"alignItems": "center",
|
|
521
|
-
"elevation": 0,
|
|
522
516
|
"justifyContent": "center",
|
|
523
517
|
},
|
|
524
518
|
{
|
|
@@ -546,6 +540,7 @@ exports[`Test Buttons Components - Experimental Enabled IconButtonContained Snap
|
|
|
546
540
|
align="xMidYMid"
|
|
547
541
|
bbHeight={24}
|
|
548
542
|
bbWidth={24}
|
|
543
|
+
color="#0B3EE3"
|
|
549
544
|
focusable={false}
|
|
550
545
|
height={24}
|
|
551
546
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -558,9 +553,6 @@ exports[`Test Buttons Components - Experimental Enabled IconButtonContained Snap
|
|
|
558
553
|
"backgroundColor": "transparent",
|
|
559
554
|
"borderWidth": 0,
|
|
560
555
|
},
|
|
561
|
-
{
|
|
562
|
-
"color": "#0B3EE3",
|
|
563
|
-
},
|
|
564
556
|
{
|
|
565
557
|
"flex": 0,
|
|
566
558
|
"height": 24,
|
|
@@ -573,7 +565,6 @@ exports[`Test Buttons Components - Experimental Enabled IconButtonContained Snap
|
|
|
573
565
|
width={24}
|
|
574
566
|
>
|
|
575
567
|
<RNSVGGroup
|
|
576
|
-
color="#0B3EE3"
|
|
577
568
|
fill={
|
|
578
569
|
{
|
|
579
570
|
"payload": 4278190080,
|
|
@@ -647,7 +638,6 @@ exports[`Test Buttons Components - Experimental Enabled IconButtonSolid Snapshot
|
|
|
647
638
|
[
|
|
648
639
|
{
|
|
649
640
|
"alignItems": "center",
|
|
650
|
-
"elevation": 0,
|
|
651
641
|
"justifyContent": "center",
|
|
652
642
|
},
|
|
653
643
|
{
|
|
@@ -678,6 +668,7 @@ exports[`Test Buttons Components - Experimental Enabled IconButtonSolid Snapshot
|
|
|
678
668
|
align="xMidYMid"
|
|
679
669
|
bbHeight={24}
|
|
680
670
|
bbWidth={24}
|
|
671
|
+
color="#FFFFFF"
|
|
681
672
|
focusable={false}
|
|
682
673
|
height={24}
|
|
683
674
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -690,9 +681,6 @@ exports[`Test Buttons Components - Experimental Enabled IconButtonSolid Snapshot
|
|
|
690
681
|
"backgroundColor": "transparent",
|
|
691
682
|
"borderWidth": 0,
|
|
692
683
|
},
|
|
693
|
-
{
|
|
694
|
-
"color": "#FFFFFF",
|
|
695
|
-
},
|
|
696
684
|
{
|
|
697
685
|
"flex": 0,
|
|
698
686
|
"height": 24,
|
|
@@ -705,7 +693,6 @@ exports[`Test Buttons Components - Experimental Enabled IconButtonSolid Snapshot
|
|
|
705
693
|
width={24}
|
|
706
694
|
>
|
|
707
695
|
<RNSVGGroup
|
|
708
|
-
color="#FFFFFF"
|
|
709
696
|
fill={
|
|
710
697
|
{
|
|
711
698
|
"payload": 4278190080,
|
|
@@ -1086,386 +1073,3 @@ exports[`Test Buttons Components ButtonSolid Snapshot 1`] = `
|
|
|
1086
1073
|
</View>
|
|
1087
1074
|
</View>
|
|
1088
1075
|
`;
|
|
1089
|
-
|
|
1090
|
-
exports[`Test Buttons Components IconButton Snapshot 1`] = `
|
|
1091
|
-
<View
|
|
1092
|
-
accessibilityLabel="accessibilityLabel"
|
|
1093
|
-
accessibilityRole="button"
|
|
1094
|
-
accessibilityState={
|
|
1095
|
-
{
|
|
1096
|
-
"busy": undefined,
|
|
1097
|
-
"checked": undefined,
|
|
1098
|
-
"disabled": false,
|
|
1099
|
-
"expanded": undefined,
|
|
1100
|
-
"selected": undefined,
|
|
1101
|
-
}
|
|
1102
|
-
}
|
|
1103
|
-
accessibilityValue={
|
|
1104
|
-
{
|
|
1105
|
-
"max": undefined,
|
|
1106
|
-
"min": undefined,
|
|
1107
|
-
"now": undefined,
|
|
1108
|
-
"text": undefined,
|
|
1109
|
-
}
|
|
1110
|
-
}
|
|
1111
|
-
accessible={true}
|
|
1112
|
-
collapsable={false}
|
|
1113
|
-
focusable={true}
|
|
1114
|
-
hitSlop={8}
|
|
1115
|
-
onBlur={[Function]}
|
|
1116
|
-
onClick={[Function]}
|
|
1117
|
-
onFocus={[Function]}
|
|
1118
|
-
onResponderGrant={[Function]}
|
|
1119
|
-
onResponderMove={[Function]}
|
|
1120
|
-
onResponderRelease={[Function]}
|
|
1121
|
-
onResponderTerminate={[Function]}
|
|
1122
|
-
onResponderTerminationRequest={[Function]}
|
|
1123
|
-
onStartShouldSetResponder={[Function]}
|
|
1124
|
-
>
|
|
1125
|
-
<View
|
|
1126
|
-
style={
|
|
1127
|
-
[
|
|
1128
|
-
{
|
|
1129
|
-
"height": 24,
|
|
1130
|
-
"width": 24,
|
|
1131
|
-
},
|
|
1132
|
-
{
|
|
1133
|
-
"alignItems": "center",
|
|
1134
|
-
},
|
|
1135
|
-
{
|
|
1136
|
-
"justifyContent": "center",
|
|
1137
|
-
},
|
|
1138
|
-
{
|
|
1139
|
-
"transform": [
|
|
1140
|
-
{
|
|
1141
|
-
"scale": undefined,
|
|
1142
|
-
},
|
|
1143
|
-
],
|
|
1144
|
-
},
|
|
1145
|
-
]
|
|
1146
|
-
}
|
|
1147
|
-
>
|
|
1148
|
-
<RNSVGSvgView
|
|
1149
|
-
accessibilityElementsHidden={true}
|
|
1150
|
-
accessibilityLabel=""
|
|
1151
|
-
accessible={false}
|
|
1152
|
-
align="xMidYMid"
|
|
1153
|
-
bbHeight={24}
|
|
1154
|
-
bbWidth={24}
|
|
1155
|
-
focusable={false}
|
|
1156
|
-
height={24}
|
|
1157
|
-
importantForAccessibility="no-hide-descendants"
|
|
1158
|
-
meetOrSlice={0}
|
|
1159
|
-
minX={0}
|
|
1160
|
-
minY={0}
|
|
1161
|
-
style={
|
|
1162
|
-
[
|
|
1163
|
-
{
|
|
1164
|
-
"backgroundColor": "transparent",
|
|
1165
|
-
"borderWidth": 0,
|
|
1166
|
-
},
|
|
1167
|
-
{
|
|
1168
|
-
"color": "#0B3EE3",
|
|
1169
|
-
},
|
|
1170
|
-
{
|
|
1171
|
-
"flex": 0,
|
|
1172
|
-
"height": 24,
|
|
1173
|
-
"width": 24,
|
|
1174
|
-
},
|
|
1175
|
-
]
|
|
1176
|
-
}
|
|
1177
|
-
vbHeight={24}
|
|
1178
|
-
vbWidth={24}
|
|
1179
|
-
width={24}
|
|
1180
|
-
>
|
|
1181
|
-
<RNSVGGroup
|
|
1182
|
-
color="#0B3EE3"
|
|
1183
|
-
fill={
|
|
1184
|
-
{
|
|
1185
|
-
"payload": 4278190080,
|
|
1186
|
-
"type": 0,
|
|
1187
|
-
}
|
|
1188
|
-
}
|
|
1189
|
-
>
|
|
1190
|
-
<RNSVGPath
|
|
1191
|
-
clipRule={0}
|
|
1192
|
-
d="M12 24c6.629 0 12-5.371 12-12S18.629 0 12 0C5.375 0 0 5.371 0 12s5.375 12 12 12Zm.033-10.97c-.997 0-1.818-.336-2.463-1.014-.646-.674-.968-1.51-.968-2.507 0-1.001.322-1.83.964-2.492.64-.662 1.458-.992 2.458-.992.997 0 1.81.334 2.435 1.017.625.678.94 1.51.94 2.511 0 .993-.315 1.822-.94 2.484-.625.657-1.43.992-2.426.992Zm-3.431 4.905c0-1.001.322-1.83.96-2.492.64-.662 1.458-.992 2.467-.992.996 0 1.809.335 2.43 1.017.625.682.94 1.515.94 2.512l-6.797-.045Z"
|
|
1193
|
-
fill={
|
|
1194
|
-
{
|
|
1195
|
-
"type": 2,
|
|
1196
|
-
}
|
|
1197
|
-
}
|
|
1198
|
-
fillRule={0}
|
|
1199
|
-
propList={
|
|
1200
|
-
[
|
|
1201
|
-
"fill",
|
|
1202
|
-
"fillRule",
|
|
1203
|
-
]
|
|
1204
|
-
}
|
|
1205
|
-
/>
|
|
1206
|
-
</RNSVGGroup>
|
|
1207
|
-
</RNSVGSvgView>
|
|
1208
|
-
</View>
|
|
1209
|
-
</View>
|
|
1210
|
-
`;
|
|
1211
|
-
|
|
1212
|
-
exports[`Test Buttons Components IconButtonContained Snapshot 1`] = `
|
|
1213
|
-
<View
|
|
1214
|
-
accessibilityLabel="accessibilityLabel"
|
|
1215
|
-
accessibilityRole="button"
|
|
1216
|
-
accessibilityState={
|
|
1217
|
-
{
|
|
1218
|
-
"busy": undefined,
|
|
1219
|
-
"checked": undefined,
|
|
1220
|
-
"disabled": false,
|
|
1221
|
-
"expanded": undefined,
|
|
1222
|
-
"selected": undefined,
|
|
1223
|
-
}
|
|
1224
|
-
}
|
|
1225
|
-
accessibilityValue={
|
|
1226
|
-
{
|
|
1227
|
-
"max": undefined,
|
|
1228
|
-
"min": undefined,
|
|
1229
|
-
"now": undefined,
|
|
1230
|
-
"text": undefined,
|
|
1231
|
-
}
|
|
1232
|
-
}
|
|
1233
|
-
accessible={true}
|
|
1234
|
-
collapsable={false}
|
|
1235
|
-
focusable={true}
|
|
1236
|
-
onBlur={[Function]}
|
|
1237
|
-
onClick={[Function]}
|
|
1238
|
-
onFocus={[Function]}
|
|
1239
|
-
onResponderGrant={[Function]}
|
|
1240
|
-
onResponderMove={[Function]}
|
|
1241
|
-
onResponderRelease={[Function]}
|
|
1242
|
-
onResponderTerminate={[Function]}
|
|
1243
|
-
onResponderTerminationRequest={[Function]}
|
|
1244
|
-
onStartShouldSetResponder={[Function]}
|
|
1245
|
-
style={
|
|
1246
|
-
{
|
|
1247
|
-
"alignSelf": "flex-start",
|
|
1248
|
-
}
|
|
1249
|
-
}
|
|
1250
|
-
>
|
|
1251
|
-
<View
|
|
1252
|
-
style={
|
|
1253
|
-
[
|
|
1254
|
-
{
|
|
1255
|
-
"alignItems": "center",
|
|
1256
|
-
"elevation": 0,
|
|
1257
|
-
"justifyContent": "center",
|
|
1258
|
-
},
|
|
1259
|
-
{
|
|
1260
|
-
"borderRadius": 48,
|
|
1261
|
-
"height": 48,
|
|
1262
|
-
"width": 48,
|
|
1263
|
-
},
|
|
1264
|
-
{
|
|
1265
|
-
"transform": [
|
|
1266
|
-
{
|
|
1267
|
-
"scale": undefined,
|
|
1268
|
-
},
|
|
1269
|
-
],
|
|
1270
|
-
},
|
|
1271
|
-
{
|
|
1272
|
-
"backgroundColor": undefined,
|
|
1273
|
-
},
|
|
1274
|
-
]
|
|
1275
|
-
}
|
|
1276
|
-
>
|
|
1277
|
-
<RNSVGSvgView
|
|
1278
|
-
accessibilityElementsHidden={true}
|
|
1279
|
-
accessibilityLabel=""
|
|
1280
|
-
accessible={false}
|
|
1281
|
-
align="xMidYMid"
|
|
1282
|
-
bbHeight={24}
|
|
1283
|
-
bbWidth={24}
|
|
1284
|
-
focusable={false}
|
|
1285
|
-
height={24}
|
|
1286
|
-
importantForAccessibility="no-hide-descendants"
|
|
1287
|
-
meetOrSlice={0}
|
|
1288
|
-
minX={0}
|
|
1289
|
-
minY={0}
|
|
1290
|
-
style={
|
|
1291
|
-
[
|
|
1292
|
-
{
|
|
1293
|
-
"backgroundColor": "transparent",
|
|
1294
|
-
"borderWidth": 0,
|
|
1295
|
-
},
|
|
1296
|
-
{
|
|
1297
|
-
"color": "#0B3EE3",
|
|
1298
|
-
},
|
|
1299
|
-
{
|
|
1300
|
-
"flex": 0,
|
|
1301
|
-
"height": 24,
|
|
1302
|
-
"width": 24,
|
|
1303
|
-
},
|
|
1304
|
-
]
|
|
1305
|
-
}
|
|
1306
|
-
vbHeight={24}
|
|
1307
|
-
vbWidth={24}
|
|
1308
|
-
width={24}
|
|
1309
|
-
>
|
|
1310
|
-
<RNSVGGroup
|
|
1311
|
-
color="#0B3EE3"
|
|
1312
|
-
fill={
|
|
1313
|
-
{
|
|
1314
|
-
"payload": 4278190080,
|
|
1315
|
-
"type": 0,
|
|
1316
|
-
}
|
|
1317
|
-
}
|
|
1318
|
-
>
|
|
1319
|
-
<RNSVGPath
|
|
1320
|
-
clipRule={0}
|
|
1321
|
-
d="M12 24c6.629 0 12-5.371 12-12S18.629 0 12 0C5.375 0 0 5.371 0 12s5.375 12 12 12Zm.033-10.97c-.997 0-1.818-.336-2.463-1.014-.646-.674-.968-1.51-.968-2.507 0-1.001.322-1.83.964-2.492.64-.662 1.458-.992 2.458-.992.997 0 1.81.334 2.435 1.017.625.678.94 1.51.94 2.511 0 .993-.315 1.822-.94 2.484-.625.657-1.43.992-2.426.992Zm-3.431 4.905c0-1.001.322-1.83.96-2.492.64-.662 1.458-.992 2.467-.992.996 0 1.809.335 2.43 1.017.625.682.94 1.515.94 2.512l-6.797-.045Z"
|
|
1322
|
-
fill={
|
|
1323
|
-
{
|
|
1324
|
-
"type": 2,
|
|
1325
|
-
}
|
|
1326
|
-
}
|
|
1327
|
-
fillRule={0}
|
|
1328
|
-
propList={
|
|
1329
|
-
[
|
|
1330
|
-
"fill",
|
|
1331
|
-
"fillRule",
|
|
1332
|
-
]
|
|
1333
|
-
}
|
|
1334
|
-
/>
|
|
1335
|
-
</RNSVGGroup>
|
|
1336
|
-
</RNSVGSvgView>
|
|
1337
|
-
</View>
|
|
1338
|
-
</View>
|
|
1339
|
-
`;
|
|
1340
|
-
|
|
1341
|
-
exports[`Test Buttons Components IconButtonSolid Snapshot 1`] = `
|
|
1342
|
-
<View
|
|
1343
|
-
accessibilityLabel="accessibilityLabel"
|
|
1344
|
-
accessibilityRole="button"
|
|
1345
|
-
accessibilityState={
|
|
1346
|
-
{
|
|
1347
|
-
"busy": undefined,
|
|
1348
|
-
"checked": undefined,
|
|
1349
|
-
"disabled": false,
|
|
1350
|
-
"expanded": undefined,
|
|
1351
|
-
"selected": undefined,
|
|
1352
|
-
}
|
|
1353
|
-
}
|
|
1354
|
-
accessibilityValue={
|
|
1355
|
-
{
|
|
1356
|
-
"max": undefined,
|
|
1357
|
-
"min": undefined,
|
|
1358
|
-
"now": undefined,
|
|
1359
|
-
"text": undefined,
|
|
1360
|
-
}
|
|
1361
|
-
}
|
|
1362
|
-
accessible={true}
|
|
1363
|
-
collapsable={false}
|
|
1364
|
-
focusable={true}
|
|
1365
|
-
onBlur={[Function]}
|
|
1366
|
-
onClick={[Function]}
|
|
1367
|
-
onFocus={[Function]}
|
|
1368
|
-
onResponderGrant={[Function]}
|
|
1369
|
-
onResponderMove={[Function]}
|
|
1370
|
-
onResponderRelease={[Function]}
|
|
1371
|
-
onResponderTerminate={[Function]}
|
|
1372
|
-
onResponderTerminationRequest={[Function]}
|
|
1373
|
-
onStartShouldSetResponder={[Function]}
|
|
1374
|
-
style={
|
|
1375
|
-
{
|
|
1376
|
-
"alignSelf": "flex-start",
|
|
1377
|
-
}
|
|
1378
|
-
}
|
|
1379
|
-
>
|
|
1380
|
-
<View
|
|
1381
|
-
style={
|
|
1382
|
-
[
|
|
1383
|
-
{
|
|
1384
|
-
"alignItems": "center",
|
|
1385
|
-
"elevation": 0,
|
|
1386
|
-
"justifyContent": "center",
|
|
1387
|
-
},
|
|
1388
|
-
{
|
|
1389
|
-
"borderRadius": 56,
|
|
1390
|
-
"height": 56,
|
|
1391
|
-
"width": 56,
|
|
1392
|
-
},
|
|
1393
|
-
{
|
|
1394
|
-
"transform": [
|
|
1395
|
-
{
|
|
1396
|
-
"scale": undefined,
|
|
1397
|
-
},
|
|
1398
|
-
],
|
|
1399
|
-
},
|
|
1400
|
-
{
|
|
1401
|
-
"backgroundColor": undefined,
|
|
1402
|
-
},
|
|
1403
|
-
{
|
|
1404
|
-
"backgroundColor": "#0B3EE3",
|
|
1405
|
-
},
|
|
1406
|
-
]
|
|
1407
|
-
}
|
|
1408
|
-
>
|
|
1409
|
-
<RNSVGSvgView
|
|
1410
|
-
accessibilityElementsHidden={true}
|
|
1411
|
-
accessibilityLabel=""
|
|
1412
|
-
accessible={false}
|
|
1413
|
-
align="xMidYMid"
|
|
1414
|
-
bbHeight={24}
|
|
1415
|
-
bbWidth={24}
|
|
1416
|
-
focusable={false}
|
|
1417
|
-
height={24}
|
|
1418
|
-
importantForAccessibility="no-hide-descendants"
|
|
1419
|
-
meetOrSlice={0}
|
|
1420
|
-
minX={0}
|
|
1421
|
-
minY={0}
|
|
1422
|
-
style={
|
|
1423
|
-
[
|
|
1424
|
-
{
|
|
1425
|
-
"backgroundColor": "transparent",
|
|
1426
|
-
"borderWidth": 0,
|
|
1427
|
-
},
|
|
1428
|
-
{
|
|
1429
|
-
"color": "#FFFFFF",
|
|
1430
|
-
},
|
|
1431
|
-
{
|
|
1432
|
-
"flex": 0,
|
|
1433
|
-
"height": 24,
|
|
1434
|
-
"width": 24,
|
|
1435
|
-
},
|
|
1436
|
-
]
|
|
1437
|
-
}
|
|
1438
|
-
vbHeight={24}
|
|
1439
|
-
vbWidth={24}
|
|
1440
|
-
width={24}
|
|
1441
|
-
>
|
|
1442
|
-
<RNSVGGroup
|
|
1443
|
-
color="#FFFFFF"
|
|
1444
|
-
fill={
|
|
1445
|
-
{
|
|
1446
|
-
"payload": 4278190080,
|
|
1447
|
-
"type": 0,
|
|
1448
|
-
}
|
|
1449
|
-
}
|
|
1450
|
-
>
|
|
1451
|
-
<RNSVGPath
|
|
1452
|
-
clipRule={0}
|
|
1453
|
-
d="M12 24c6.629 0 12-5.371 12-12S18.629 0 12 0C5.375 0 0 5.371 0 12s5.375 12 12 12Zm.033-10.97c-.997 0-1.818-.336-2.463-1.014-.646-.674-.968-1.51-.968-2.507 0-1.001.322-1.83.964-2.492.64-.662 1.458-.992 2.458-.992.997 0 1.81.334 2.435 1.017.625.678.94 1.51.94 2.511 0 .993-.315 1.822-.94 2.484-.625.657-1.43.992-2.426.992Zm-3.431 4.905c0-1.001.322-1.83.96-2.492.64-.662 1.458-.992 2.467-.992.996 0 1.809.335 2.43 1.017.625.682.94 1.515.94 2.512l-6.797-.045Z"
|
|
1454
|
-
fill={
|
|
1455
|
-
{
|
|
1456
|
-
"type": 2,
|
|
1457
|
-
}
|
|
1458
|
-
}
|
|
1459
|
-
fillRule={0}
|
|
1460
|
-
propList={
|
|
1461
|
-
[
|
|
1462
|
-
"fill",
|
|
1463
|
-
"fillRule",
|
|
1464
|
-
]
|
|
1465
|
-
}
|
|
1466
|
-
/>
|
|
1467
|
-
</RNSVGGroup>
|
|
1468
|
-
</RNSVGSvgView>
|
|
1469
|
-
</View>
|
|
1470
|
-
</View>
|
|
1471
|
-
`;
|
|
@@ -8,6 +8,7 @@ import ButtonSolid from "../ButtonSolid";
|
|
|
8
8
|
import IconButton from "../IconButton";
|
|
9
9
|
import IconButtonContained from "../IconButtonContained";
|
|
10
10
|
import IconButtonSolid from "../IconButtonSolid";
|
|
11
|
+
|
|
11
12
|
const onButtonPress = () => {
|
|
12
13
|
Alert.alert("Alert", "Action triggered");
|
|
13
14
|
};
|
|
@@ -41,39 +42,6 @@ describe("Test Buttons Components", () => {
|
|
|
41
42
|
).toJSON();
|
|
42
43
|
expect(buttonOutline).toMatchSnapshot();
|
|
43
44
|
});
|
|
44
|
-
|
|
45
|
-
it("IconButtonSolid Snapshot", () => {
|
|
46
|
-
const iconButtonSolid = TestRenderer.create(
|
|
47
|
-
<IconButtonSolid
|
|
48
|
-
onPress={onButtonPress}
|
|
49
|
-
icon={"spid"}
|
|
50
|
-
accessibilityLabel={"accessibilityLabel"}
|
|
51
|
-
></IconButtonSolid>
|
|
52
|
-
).toJSON();
|
|
53
|
-
expect(iconButtonSolid).toMatchSnapshot();
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
it("IconButton Snapshot", () => {
|
|
57
|
-
const iconButton = TestRenderer.create(
|
|
58
|
-
<IconButton
|
|
59
|
-
onPress={onButtonPress}
|
|
60
|
-
icon={"spid"}
|
|
61
|
-
accessibilityLabel={"accessibilityLabel"}
|
|
62
|
-
></IconButton>
|
|
63
|
-
).toJSON();
|
|
64
|
-
expect(iconButton).toMatchSnapshot();
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
it("IconButtonContained Snapshot", () => {
|
|
68
|
-
const iconButtonContained = TestRenderer.create(
|
|
69
|
-
<IconButtonContained
|
|
70
|
-
onPress={onButtonPress}
|
|
71
|
-
icon={"spid"}
|
|
72
|
-
accessibilityLabel={"accessibilityLabel"}
|
|
73
|
-
></IconButtonContained>
|
|
74
|
-
).toJSON();
|
|
75
|
-
expect(iconButtonContained).toMatchSnapshot();
|
|
76
|
-
});
|
|
77
45
|
});
|
|
78
46
|
|
|
79
47
|
describe("Test Buttons Components - Experimental Enabled", () => {
|
|
@@ -97,6 +97,7 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (controlled) 1`] = `
|
|
|
97
97
|
align="xMidYMid"
|
|
98
98
|
bbHeight={24}
|
|
99
99
|
bbWidth={24}
|
|
100
|
+
color="#0B3EE3"
|
|
100
101
|
focusable={false}
|
|
101
102
|
height={24}
|
|
102
103
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -109,9 +110,6 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (controlled) 1`] = `
|
|
|
109
110
|
"backgroundColor": "transparent",
|
|
110
111
|
"borderWidth": 0,
|
|
111
112
|
},
|
|
112
|
-
{
|
|
113
|
-
"color": "#0B3EE3",
|
|
114
|
-
},
|
|
115
113
|
{
|
|
116
114
|
"flex": 0,
|
|
117
115
|
"height": 24,
|
|
@@ -124,7 +122,6 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (controlled) 1`] = `
|
|
|
124
122
|
width={24}
|
|
125
123
|
>
|
|
126
124
|
<RNSVGGroup
|
|
127
|
-
color="#0B3EE3"
|
|
128
125
|
fill={
|
|
129
126
|
{
|
|
130
127
|
"payload": 4278190080,
|
|
@@ -257,15 +254,11 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (controlled) 1`] = `
|
|
|
257
254
|
>
|
|
258
255
|
<View
|
|
259
256
|
style={
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
"columnGap": 12,
|
|
266
|
-
"flexShrink": 1,
|
|
267
|
-
},
|
|
268
|
-
]
|
|
257
|
+
{
|
|
258
|
+
"columnGap": 12,
|
|
259
|
+
"flexDirection": "row",
|
|
260
|
+
"flexShrink": 1,
|
|
261
|
+
}
|
|
269
262
|
}
|
|
270
263
|
>
|
|
271
264
|
<Text
|
|
@@ -627,6 +620,7 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (uncontrolled) 1`] = `
|
|
|
627
620
|
align="xMidYMid"
|
|
628
621
|
bbHeight={24}
|
|
629
622
|
bbWidth={24}
|
|
623
|
+
color="#0B3EE3"
|
|
630
624
|
focusable={false}
|
|
631
625
|
height={24}
|
|
632
626
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -639,9 +633,6 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (uncontrolled) 1`] = `
|
|
|
639
633
|
"backgroundColor": "transparent",
|
|
640
634
|
"borderWidth": 0,
|
|
641
635
|
},
|
|
642
|
-
{
|
|
643
|
-
"color": "#0B3EE3",
|
|
644
|
-
},
|
|
645
636
|
{
|
|
646
637
|
"flex": 0,
|
|
647
638
|
"height": 24,
|
|
@@ -654,7 +645,6 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (uncontrolled) 1`] = `
|
|
|
654
645
|
width={24}
|
|
655
646
|
>
|
|
656
647
|
<RNSVGGroup
|
|
657
|
-
color="#0B3EE3"
|
|
658
648
|
fill={
|
|
659
649
|
{
|
|
660
650
|
"payload": 4278190080,
|
|
@@ -787,15 +777,11 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (uncontrolled) 1`] = `
|
|
|
787
777
|
>
|
|
788
778
|
<View
|
|
789
779
|
style={
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
"columnGap": 12,
|
|
796
|
-
"flexShrink": 1,
|
|
797
|
-
},
|
|
798
|
-
]
|
|
780
|
+
{
|
|
781
|
+
"columnGap": 12,
|
|
782
|
+
"flexDirection": "row",
|
|
783
|
+
"flexShrink": 1,
|
|
784
|
+
}
|
|
799
785
|
}
|
|
800
786
|
>
|
|
801
787
|
<Text
|
|
@@ -1088,6 +1074,7 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (unselectable items) 1`] = `
|
|
|
1088
1074
|
align="xMidYMid"
|
|
1089
1075
|
bbHeight={24}
|
|
1090
1076
|
bbWidth={24}
|
|
1077
|
+
color="#0B3EE3"
|
|
1091
1078
|
focusable={false}
|
|
1092
1079
|
height={24}
|
|
1093
1080
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -1100,9 +1087,6 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (unselectable items) 1`] = `
|
|
|
1100
1087
|
"backgroundColor": "transparent",
|
|
1101
1088
|
"borderWidth": 0,
|
|
1102
1089
|
},
|
|
1103
|
-
{
|
|
1104
|
-
"color": "#0B3EE3",
|
|
1105
|
-
},
|
|
1106
1090
|
{
|
|
1107
1091
|
"flex": 0,
|
|
1108
1092
|
"height": 24,
|
|
@@ -1115,7 +1099,6 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (unselectable items) 1`] = `
|
|
|
1115
1099
|
width={24}
|
|
1116
1100
|
>
|
|
1117
1101
|
<RNSVGGroup
|
|
1118
|
-
color="#0B3EE3"
|
|
1119
1102
|
fill={
|
|
1120
1103
|
{
|
|
1121
1104
|
"payload": 4278190080,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ColorValue } from "react-native";
|
|
3
|
+
import Animated from "react-native-reanimated";
|
|
3
4
|
import { IOColors } from "../../core/IOColors";
|
|
4
5
|
import { useIOFontDynamicScale } from "../../utils/accessibility";
|
|
5
6
|
|
|
@@ -452,7 +453,7 @@ export const Icon = ({
|
|
|
452
453
|
return (
|
|
453
454
|
<IconElement
|
|
454
455
|
{...props}
|
|
455
|
-
|
|
456
|
+
color={IOColors[color]}
|
|
456
457
|
size={iconSize}
|
|
457
458
|
accessible={isAccessible}
|
|
458
459
|
accessibilityElementsHidden={!isAccessible}
|
|
@@ -494,7 +495,7 @@ export const AnimatedIcon = ({
|
|
|
494
495
|
return (
|
|
495
496
|
<IconElement
|
|
496
497
|
{...props}
|
|
497
|
-
|
|
498
|
+
color={color}
|
|
498
499
|
size={iconSize}
|
|
499
500
|
accessible={accessible}
|
|
500
501
|
accessibilityElementsHidden={true}
|
|
@@ -507,7 +508,7 @@ export const AnimatedIcon = ({
|
|
|
507
508
|
/* Make <Icon> component animatable. Reanimated supports class components only,
|
|
508
509
|
so we need to convert <Icon> into a class component first.
|
|
509
510
|
https://github.com/software-mansion/react-native-reanimated/discussions/1527 */
|
|
510
|
-
|
|
511
|
+
class AnimatedIconClassComponent extends React.Component<IOAnimatedIconsProps> {
|
|
511
512
|
constructor(props: IOAnimatedIconsProps) {
|
|
512
513
|
super(props);
|
|
513
514
|
}
|
|
@@ -516,6 +517,14 @@ export class IconClassComponent extends React.Component<IOAnimatedIconsProps> {
|
|
|
516
517
|
}
|
|
517
518
|
}
|
|
518
519
|
|
|
520
|
+
/*
|
|
521
|
+
A name that explicitly indicates the purpose of the component.
|
|
522
|
+
It must be used in combination with `useAnimatedProps` hook.
|
|
523
|
+
*/
|
|
524
|
+
export const AnimatedIconWithColorTransition = Animated.createAnimatedComponent(
|
|
525
|
+
AnimatedIconClassComponent
|
|
526
|
+
);
|
|
527
|
+
|
|
519
528
|
/*
|
|
520
529
|
░░░ VARIOUS SETS ░░░
|
|
521
530
|
*/
|