@pagopa/io-app-design-system 5.3.9 → 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/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/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/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/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
|
-
`;
|
|
@@ -38,30 +38,6 @@ describe("Test Buttons Components", () => {
|
|
|
38
38
|
})).toJSON();
|
|
39
39
|
expect(buttonOutline).toMatchSnapshot();
|
|
40
40
|
});
|
|
41
|
-
it("IconButtonSolid Snapshot", () => {
|
|
42
|
-
const iconButtonSolid = TestRenderer.create(/*#__PURE__*/_jsx(IconButtonSolid, {
|
|
43
|
-
onPress: onButtonPress,
|
|
44
|
-
icon: "spid",
|
|
45
|
-
accessibilityLabel: "accessibilityLabel"
|
|
46
|
-
})).toJSON();
|
|
47
|
-
expect(iconButtonSolid).toMatchSnapshot();
|
|
48
|
-
});
|
|
49
|
-
it("IconButton Snapshot", () => {
|
|
50
|
-
const iconButton = TestRenderer.create(/*#__PURE__*/_jsx(IconButton, {
|
|
51
|
-
onPress: onButtonPress,
|
|
52
|
-
icon: "spid",
|
|
53
|
-
accessibilityLabel: "accessibilityLabel"
|
|
54
|
-
})).toJSON();
|
|
55
|
-
expect(iconButton).toMatchSnapshot();
|
|
56
|
-
});
|
|
57
|
-
it("IconButtonContained Snapshot", () => {
|
|
58
|
-
const iconButtonContained = TestRenderer.create(/*#__PURE__*/_jsx(IconButtonContained, {
|
|
59
|
-
onPress: onButtonPress,
|
|
60
|
-
icon: "spid",
|
|
61
|
-
accessibilityLabel: "accessibilityLabel"
|
|
62
|
-
})).toJSON();
|
|
63
|
-
expect(iconButtonContained).toMatchSnapshot();
|
|
64
|
-
});
|
|
65
41
|
});
|
|
66
42
|
describe("Test Buttons Components - Experimental Enabled", () => {
|
|
67
43
|
it("ButtonSolid Snapshot", () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Alert","TestRenderer","TestRendererWithExperimentalEnabledContextProvider","ButtonLink","ButtonOutline","ButtonSolid","IconButton","IconButtonContained","IconButtonSolid","jsx","_jsx","onButtonPress","alert","describe","it","buttonSolid","create","label","accessibilityLabel","onPress","toJSON","expect","toMatchSnapshot","buttonLink","buttonOutline","iconButtonSolid","icon","iconButton","iconButtonContained"],"sourceRoot":"../../../../../src","sources":["components/buttons/__test__/button.test.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,QAAQ,cAAc;AACpC,OAAO,KAAKC,YAAY,MAAM,qBAAqB;AACnD,SAASC,kDAAkD,QAAQ,wBAAwB;AAC3F,OAAOC,UAAU,MAAM,eAAe;AACtC,OAAOC,aAAa,MAAM,kBAAkB;AAC5C,OAAOC,WAAW,MAAM,gBAAgB;AACxC,OAAOC,UAAU,MAAM,eAAe;AACtC,OAAOC,mBAAmB,MAAM,wBAAwB;AACxD,OAAOC,eAAe,MAAM,oBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA;
|
|
1
|
+
{"version":3,"names":["React","Alert","TestRenderer","TestRendererWithExperimentalEnabledContextProvider","ButtonLink","ButtonOutline","ButtonSolid","IconButton","IconButtonContained","IconButtonSolid","jsx","_jsx","onButtonPress","alert","describe","it","buttonSolid","create","label","accessibilityLabel","onPress","toJSON","expect","toMatchSnapshot","buttonLink","buttonOutline","iconButtonSolid","icon","iconButton","iconButtonContained"],"sourceRoot":"../../../../../src","sources":["components/buttons/__test__/button.test.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/buttons/index.tsx"],"mappings":";;AAAA,cAAc,cAAc;AAC5B,cAAc,iBAAiB;AAC/B,cAAc,eAAe;AAC7B,cAAc,uBAAuB;AACrC,cAAc,mBAAmB;AACjC,cAAc,cAAc","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/buttons/index.tsx"],"mappings":";;AAAA,cAAc,YAAY;AAC1B,cAAc,cAAc;AAC5B,cAAc,iBAAiB;AAC/B,cAAc,eAAe;AAC7B,cAAc,uBAAuB;AACrC,cAAc,mBAAmB;AACjC,cAAc,cAAc","ignoreList":[]}
|
package/lib/module/components/claimsSelector/__test__/__snapshots__/ClaimsSelector.test.tsx.snap
CHANGED
|
@@ -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,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import React from "react";
|
|
4
|
+
import Animated from "react-native-reanimated";
|
|
4
5
|
import { IOColors } from "../../core/IOColors";
|
|
5
6
|
import { useIOFontDynamicScale } from "../../utils/accessibility";
|
|
6
7
|
|
|
@@ -435,9 +436,7 @@ export const Icon = ({
|
|
|
435
436
|
const iconSize = allowFontScaling && typeof size === "number" ? size * dynamicFontScale : size;
|
|
436
437
|
return /*#__PURE__*/_jsx(IconElement, {
|
|
437
438
|
...props,
|
|
438
|
-
|
|
439
|
-
color: IOColors[color]
|
|
440
|
-
},
|
|
439
|
+
color: IOColors[color],
|
|
441
440
|
size: iconSize,
|
|
442
441
|
accessible: isAccessible,
|
|
443
442
|
accessibilityElementsHidden: !isAccessible,
|
|
@@ -466,9 +465,7 @@ export const AnimatedIcon = ({
|
|
|
466
465
|
const iconSize = allowFontScaling && typeof size === "number" ? size * dynamicFontScale : size;
|
|
467
466
|
return /*#__PURE__*/_jsx(IconElement, {
|
|
468
467
|
...props,
|
|
469
|
-
|
|
470
|
-
color
|
|
471
|
-
},
|
|
468
|
+
color: color,
|
|
472
469
|
size: iconSize,
|
|
473
470
|
accessible: accessible,
|
|
474
471
|
accessibilityElementsHidden: true,
|
|
@@ -480,7 +477,7 @@ export const AnimatedIcon = ({
|
|
|
480
477
|
/* Make <Icon> component animatable. Reanimated supports class components only,
|
|
481
478
|
so we need to convert <Icon> into a class component first.
|
|
482
479
|
https://github.com/software-mansion/react-native-reanimated/discussions/1527 */
|
|
483
|
-
|
|
480
|
+
class AnimatedIconClassComponent extends React.Component {
|
|
484
481
|
constructor(props) {
|
|
485
482
|
super(props);
|
|
486
483
|
}
|
|
@@ -491,6 +488,12 @@ export class IconClassComponent extends React.Component {
|
|
|
491
488
|
}
|
|
492
489
|
}
|
|
493
490
|
|
|
491
|
+
/*
|
|
492
|
+
A name that explicitly indicates the purpose of the component.
|
|
493
|
+
It must be used in combination with `useAnimatedProps` hook.
|
|
494
|
+
*/
|
|
495
|
+
export const AnimatedIconWithColorTransition = Animated.createAnimatedComponent(AnimatedIconClassComponent);
|
|
496
|
+
|
|
494
497
|
/*
|
|
495
498
|
░░░ VARIOUS SETS ░░░
|
|
496
499
|
*/
|