@pagopa/io-app-design-system 5.3.8 → 5.4.0
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/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 +1 -2
- 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 +3 -395
- 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 +3 -12
- package/lib/commonjs/components/contentWrapper/ContentWrapper.js +6 -2
- package/lib/commonjs/components/contentWrapper/ContentWrapper.js.map +1 -1
- 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/listitems/ListItemNav.js +1 -1
- package/lib/commonjs/components/listitems/ListItemNav.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 +36 -86
- 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 +2 -17
- package/lib/commonjs/core/IOStyles.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 +2 -3
- 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 +3 -395
- 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 +3 -12
- package/lib/module/components/contentWrapper/ContentWrapper.js +6 -2
- package/lib/module/components/contentWrapper/ContentWrapper.js.map +1 -1
- 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/listitems/ListItemNav.js +2 -2
- package/lib/module/components/listitems/ListItemNav.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 +36 -86
- 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 +1 -16
- package/lib/module/core/IOStyles.js.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/contentWrapper/ContentWrapper.d.ts +6 -4
- package/lib/typescript/components/contentWrapper/ContentWrapper.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/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/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 -14
- package/lib/typescript/core/IOStyles.d.ts.map +1 -1
- package/package.json +1 -1
- 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 +3 -6
- package/src/components/buttons/IconButtonContained.tsx +3 -6
- package/src/components/buttons/__test__/__snapshots__/button.test.tsx.snap +3 -395
- 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 +3 -12
- package/src/components/contentWrapper/ContentWrapper.tsx +18 -8
- 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/listitems/ListItemNav.tsx +1 -1
- 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 +36 -86
- package/src/components/typography/IOText.tsx +3 -0
- package/src/core/IOStyles.ts +1 -18
|
@@ -417,6 +417,7 @@ exports[`Test Buttons Components - Experimental Enabled IconButton Snapshot 1`]
|
|
|
417
417
|
align="xMidYMid"
|
|
418
418
|
bbHeight={24}
|
|
419
419
|
bbWidth={24}
|
|
420
|
+
color="#0B3EE3"
|
|
420
421
|
focusable={false}
|
|
421
422
|
height={24}
|
|
422
423
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -429,9 +430,6 @@ exports[`Test Buttons Components - Experimental Enabled IconButton Snapshot 1`]
|
|
|
429
430
|
"backgroundColor": "transparent",
|
|
430
431
|
"borderWidth": 0,
|
|
431
432
|
},
|
|
432
|
-
{
|
|
433
|
-
"color": "#0B3EE3",
|
|
434
|
-
},
|
|
435
433
|
{
|
|
436
434
|
"flex": 0,
|
|
437
435
|
"height": 24,
|
|
@@ -444,7 +442,6 @@ exports[`Test Buttons Components - Experimental Enabled IconButton Snapshot 1`]
|
|
|
444
442
|
width={24}
|
|
445
443
|
>
|
|
446
444
|
<RNSVGGroup
|
|
447
|
-
color="#0B3EE3"
|
|
448
445
|
fill={
|
|
449
446
|
{
|
|
450
447
|
"payload": 4278190080,
|
|
@@ -546,6 +543,7 @@ exports[`Test Buttons Components - Experimental Enabled IconButtonContained Snap
|
|
|
546
543
|
align="xMidYMid"
|
|
547
544
|
bbHeight={24}
|
|
548
545
|
bbWidth={24}
|
|
546
|
+
color="#0B3EE3"
|
|
549
547
|
focusable={false}
|
|
550
548
|
height={24}
|
|
551
549
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -558,9 +556,6 @@ exports[`Test Buttons Components - Experimental Enabled IconButtonContained Snap
|
|
|
558
556
|
"backgroundColor": "transparent",
|
|
559
557
|
"borderWidth": 0,
|
|
560
558
|
},
|
|
561
|
-
{
|
|
562
|
-
"color": "#0B3EE3",
|
|
563
|
-
},
|
|
564
559
|
{
|
|
565
560
|
"flex": 0,
|
|
566
561
|
"height": 24,
|
|
@@ -573,7 +568,6 @@ exports[`Test Buttons Components - Experimental Enabled IconButtonContained Snap
|
|
|
573
568
|
width={24}
|
|
574
569
|
>
|
|
575
570
|
<RNSVGGroup
|
|
576
|
-
color="#0B3EE3"
|
|
577
571
|
fill={
|
|
578
572
|
{
|
|
579
573
|
"payload": 4278190080,
|
|
@@ -678,6 +672,7 @@ exports[`Test Buttons Components - Experimental Enabled IconButtonSolid Snapshot
|
|
|
678
672
|
align="xMidYMid"
|
|
679
673
|
bbHeight={24}
|
|
680
674
|
bbWidth={24}
|
|
675
|
+
color="#FFFFFF"
|
|
681
676
|
focusable={false}
|
|
682
677
|
height={24}
|
|
683
678
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -690,9 +685,6 @@ exports[`Test Buttons Components - Experimental Enabled IconButtonSolid Snapshot
|
|
|
690
685
|
"backgroundColor": "transparent",
|
|
691
686
|
"borderWidth": 0,
|
|
692
687
|
},
|
|
693
|
-
{
|
|
694
|
-
"color": "#FFFFFF",
|
|
695
|
-
},
|
|
696
688
|
{
|
|
697
689
|
"flex": 0,
|
|
698
690
|
"height": 24,
|
|
@@ -705,7 +697,6 @@ exports[`Test Buttons Components - Experimental Enabled IconButtonSolid Snapshot
|
|
|
705
697
|
width={24}
|
|
706
698
|
>
|
|
707
699
|
<RNSVGGroup
|
|
708
|
-
color="#FFFFFF"
|
|
709
700
|
fill={
|
|
710
701
|
{
|
|
711
702
|
"payload": 4278190080,
|
|
@@ -1086,386 +1077,3 @@ exports[`Test Buttons Components ButtonSolid Snapshot 1`] = `
|
|
|
1086
1077
|
</View>
|
|
1087
1078
|
</View>
|
|
1088
1079
|
`;
|
|
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,
|
|
@@ -627,6 +624,7 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (uncontrolled) 1`] = `
|
|
|
627
624
|
align="xMidYMid"
|
|
628
625
|
bbHeight={24}
|
|
629
626
|
bbWidth={24}
|
|
627
|
+
color="#0B3EE3"
|
|
630
628
|
focusable={false}
|
|
631
629
|
height={24}
|
|
632
630
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -639,9 +637,6 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (uncontrolled) 1`] = `
|
|
|
639
637
|
"backgroundColor": "transparent",
|
|
640
638
|
"borderWidth": 0,
|
|
641
639
|
},
|
|
642
|
-
{
|
|
643
|
-
"color": "#0B3EE3",
|
|
644
|
-
},
|
|
645
640
|
{
|
|
646
641
|
"flex": 0,
|
|
647
642
|
"height": 24,
|
|
@@ -654,7 +649,6 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (uncontrolled) 1`] = `
|
|
|
654
649
|
width={24}
|
|
655
650
|
>
|
|
656
651
|
<RNSVGGroup
|
|
657
|
-
color="#0B3EE3"
|
|
658
652
|
fill={
|
|
659
653
|
{
|
|
660
654
|
"payload": 4278190080,
|
|
@@ -1088,6 +1082,7 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (unselectable items) 1`] = `
|
|
|
1088
1082
|
align="xMidYMid"
|
|
1089
1083
|
bbHeight={24}
|
|
1090
1084
|
bbWidth={24}
|
|
1085
|
+
color="#0B3EE3"
|
|
1091
1086
|
focusable={false}
|
|
1092
1087
|
height={24}
|
|
1093
1088
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -1100,9 +1095,6 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (unselectable items) 1`] = `
|
|
|
1100
1095
|
"backgroundColor": "transparent",
|
|
1101
1096
|
"borderWidth": 0,
|
|
1102
1097
|
},
|
|
1103
|
-
{
|
|
1104
|
-
"color": "#0B3EE3",
|
|
1105
|
-
},
|
|
1106
1098
|
{
|
|
1107
1099
|
"flex": 0,
|
|
1108
1100
|
"height": 24,
|
|
@@ -1115,7 +1107,6 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (unselectable items) 1`] = `
|
|
|
1115
1107
|
width={24}
|
|
1116
1108
|
>
|
|
1117
1109
|
<RNSVGGroup
|
|
1118
|
-
color="#0B3EE3"
|
|
1119
1110
|
fill={
|
|
1120
1111
|
{
|
|
1121
1112
|
"payload": 4278190080,
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { View } from "react-native";
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { View, ViewProps, ViewStyle } from "react-native";
|
|
3
3
|
import { WithTestID } from "src/utils/types";
|
|
4
4
|
import type { IOAppMargin } from "../../core";
|
|
5
5
|
import { IOVisualCostants } from "../../core/IOStyles";
|
|
6
6
|
|
|
7
|
-
type IOContentWrapperProps = WithTestID<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
type IOContentWrapperProps = WithTestID<
|
|
8
|
+
Omit<ViewProps, "style"> & {
|
|
9
|
+
margin?: IOAppMargin;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
style?: Omit<
|
|
12
|
+
ViewStyle,
|
|
13
|
+
"paddingHorizontal" | "paddingLeft" | "paddingRight"
|
|
14
|
+
>;
|
|
15
|
+
}
|
|
16
|
+
>;
|
|
11
17
|
|
|
12
18
|
/**
|
|
13
19
|
`ContentWrapper` is the main wrapper of the application. It automatically sets side margins,
|
|
@@ -16,14 +22,18 @@ depending on the size value
|
|
|
16
22
|
*/
|
|
17
23
|
export const ContentWrapper = ({
|
|
18
24
|
margin = IOVisualCostants.appMarginDefault,
|
|
25
|
+
style,
|
|
26
|
+
children,
|
|
19
27
|
testID,
|
|
20
|
-
|
|
28
|
+
...rest
|
|
21
29
|
}: IOContentWrapperProps) => (
|
|
22
30
|
<View
|
|
23
31
|
testID={testID}
|
|
24
32
|
style={{
|
|
25
|
-
paddingHorizontal: margin
|
|
33
|
+
paddingHorizontal: margin,
|
|
34
|
+
...style
|
|
26
35
|
}}
|
|
36
|
+
{...rest}
|
|
27
37
|
>
|
|
28
38
|
{children}
|
|
29
39
|
</View>
|
|
@@ -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
|
*/
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { StyleProp } from "react-native";
|
|
1
|
+
import { ColorValue, StyleProp } from "react-native";
|
|
2
2
|
|
|
3
3
|
export type SVGIconProps = {
|
|
4
4
|
size: number | "100%";
|
|
5
|
-
style
|
|
5
|
+
style?: StyleProp<any>;
|
|
6
|
+
color: ColorValue;
|
|
6
7
|
accessible: boolean;
|
|
7
8
|
accessibilityElementsHidden: boolean;
|
|
8
9
|
accessibilityLabel: string;
|