@pagopa/io-app-design-system 5.4.0 → 5.5.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/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 +8 -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/IconButton.js +1 -1
- package/lib/commonjs/components/buttons/IconButton.js.map +1 -1
- package/lib/commonjs/components/buttons/__test__/__snapshots__/button.test.tsx.snap +3 -7
- package/lib/commonjs/components/claimsSelector/__test__/__snapshots__/ClaimsSelector.test.tsx.snap +10 -18
- 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/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/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +6 -10
- 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/core/IOStyles.js +1 -36
- 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 +8 -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/IconButton.js +2 -2
- package/lib/module/components/buttons/IconButton.js.map +1 -1
- package/lib/module/components/buttons/__test__/__snapshots__/button.test.tsx.snap +3 -7
- package/lib/module/components/claimsSelector/__test__/__snapshots__/ClaimsSelector.test.tsx.snap +10 -18
- 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/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/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +6 -10
- 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/core/IOStyles.js +2 -37
- 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 +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/IconButton.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/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/core/IOStyles.d.ts +0 -33
- 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 +7 -3
- package/src/components/alert/AlertEdgeToEdgeWrapper.tsx +1 -2
- package/src/components/buttons/IconButton.tsx +1 -3
- package/src/components/buttons/__test__/__snapshots__/button.test.tsx.snap +3 -7
- package/src/components/claimsSelector/__test__/__snapshots__/ClaimsSelector.test.tsx.snap +10 -18
- 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/ListItemNavAlert.tsx +1 -2
- package/src/components/listitems/ListItemRadio.tsx +7 -7
- package/src/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +6 -10
- 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/core/IOStyles.ts +2 -37
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { ComponentProps } from "react";
|
|
2
2
|
import Animated, { LinearTransition } from "react-native-reanimated";
|
|
3
3
|
import { WithTestID } from "../../utils/types";
|
|
4
|
-
import { IOStyles } from "../../core";
|
|
5
4
|
import { AlertEdgeToEdge } from "./AlertEdgeToEdge";
|
|
6
5
|
|
|
7
6
|
type AlertEdgeToEdgeWrapperProps = React.PropsWithChildren<
|
|
@@ -15,7 +14,7 @@ export const AlertEdgeToEdgeWrapper = ({
|
|
|
15
14
|
}: AlertEdgeToEdgeWrapperProps) => (
|
|
16
15
|
<>
|
|
17
16
|
{alertProps && <AlertEdgeToEdge {...alertProps} />}
|
|
18
|
-
<Animated.View layout={LinearTransition} style={
|
|
17
|
+
<Animated.View layout={LinearTransition} style={{ flex: 1 }}>
|
|
19
18
|
{children}
|
|
20
19
|
</Animated.View>
|
|
21
20
|
</>
|
|
@@ -8,7 +8,6 @@ import Animated, {
|
|
|
8
8
|
import {
|
|
9
9
|
IOColors,
|
|
10
10
|
IOIconButtonStyles,
|
|
11
|
-
IOStyles,
|
|
12
11
|
IOThemeLight,
|
|
13
12
|
hexToRgba,
|
|
14
13
|
useIOTheme
|
|
@@ -124,9 +123,8 @@ export const IconButton = ({
|
|
|
124
123
|
>
|
|
125
124
|
<Animated.View
|
|
126
125
|
style={[
|
|
126
|
+
IOIconButtonStyles.button,
|
|
127
127
|
IOIconButtonStyles.buttonSizeSmall,
|
|
128
|
-
IOStyles.alignCenter,
|
|
129
|
-
IOStyles.centerJustified,
|
|
130
128
|
!disabled && !reducedMotion && scaleAnimatedStyle
|
|
131
129
|
]}
|
|
132
130
|
>
|
|
@@ -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": [
|
|
@@ -515,7 +513,6 @@ exports[`Test Buttons Components - Experimental Enabled IconButtonContained Snap
|
|
|
515
513
|
[
|
|
516
514
|
{
|
|
517
515
|
"alignItems": "center",
|
|
518
|
-
"elevation": 0,
|
|
519
516
|
"justifyContent": "center",
|
|
520
517
|
},
|
|
521
518
|
{
|
|
@@ -641,7 +638,6 @@ exports[`Test Buttons Components - Experimental Enabled IconButtonSolid Snapshot
|
|
|
641
638
|
[
|
|
642
639
|
{
|
|
643
640
|
"alignItems": "center",
|
|
644
|
-
"elevation": 0,
|
|
645
641
|
"justifyContent": "center",
|
|
646
642
|
},
|
|
647
643
|
{
|
|
@@ -254,15 +254,11 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (controlled) 1`] = `
|
|
|
254
254
|
>
|
|
255
255
|
<View
|
|
256
256
|
style={
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
"columnGap": 12,
|
|
263
|
-
"flexShrink": 1,
|
|
264
|
-
},
|
|
265
|
-
]
|
|
257
|
+
{
|
|
258
|
+
"columnGap": 12,
|
|
259
|
+
"flexDirection": "row",
|
|
260
|
+
"flexShrink": 1,
|
|
261
|
+
}
|
|
266
262
|
}
|
|
267
263
|
>
|
|
268
264
|
<Text
|
|
@@ -781,15 +777,11 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (uncontrolled) 1`] = `
|
|
|
781
777
|
>
|
|
782
778
|
<View
|
|
783
779
|
style={
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
"columnGap": 12,
|
|
790
|
-
"flexShrink": 1,
|
|
791
|
-
},
|
|
792
|
-
]
|
|
780
|
+
{
|
|
781
|
+
"columnGap": 12,
|
|
782
|
+
"flexDirection": "row",
|
|
783
|
+
"flexShrink": 1,
|
|
784
|
+
}
|
|
793
785
|
}
|
|
794
786
|
>
|
|
795
787
|
<Text
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
View,
|
|
7
7
|
findNodeHandle
|
|
8
8
|
} from "react-native";
|
|
9
|
-
import { IOColors,
|
|
9
|
+
import { IOColors, IOVisualCostants } from "../../core";
|
|
10
10
|
import { IconButton } from "../buttons";
|
|
11
11
|
import { H4 } from "../typography";
|
|
12
12
|
|
|
@@ -56,7 +56,7 @@ export const ModalBSHeader = ({
|
|
|
56
56
|
title
|
|
57
57
|
) : (
|
|
58
58
|
<View
|
|
59
|
-
style={
|
|
59
|
+
style={{ flex: 1 }}
|
|
60
60
|
accessible={true}
|
|
61
61
|
accessibilityRole={"header"}
|
|
62
62
|
accessibilityLabel={typeof title === "string" ? title : undefined}
|
|
@@ -4,7 +4,6 @@ import {
|
|
|
4
4
|
IOListItemStyles,
|
|
5
5
|
IOListItemVisualParams,
|
|
6
6
|
IOSpacingScale,
|
|
7
|
-
IOStyles,
|
|
8
7
|
useIOTheme
|
|
9
8
|
} from "../../core";
|
|
10
9
|
import { useIOFontDynamicScale } from "../../utils/accessibility";
|
|
@@ -81,7 +80,7 @@ export const ListItemAmount = ({
|
|
|
81
80
|
size={IOListItemVisualParams.iconSize}
|
|
82
81
|
/>
|
|
83
82
|
)}
|
|
84
|
-
<View style={
|
|
83
|
+
<View style={{ flex: 1 }}>{itemInfoTextComponent}</View>
|
|
85
84
|
<H3
|
|
86
85
|
{...valueElementProps}
|
|
87
86
|
color={theme["textBody-default"]}
|
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
IOSelectionListItemStyles,
|
|
8
8
|
IOSelectionListItemVisualParams,
|
|
9
9
|
IOSelectionTickVisualParams,
|
|
10
|
-
IOStyles,
|
|
11
10
|
useIOTheme
|
|
12
11
|
} from "../../core";
|
|
13
12
|
import { useListItemAnimation } from "../../hooks";
|
|
@@ -104,16 +103,14 @@ export const ListItemCheckbox = ({
|
|
|
104
103
|
<Animated.View style={scaleAnimatedStyle}>
|
|
105
104
|
<View style={IOSelectionListItemStyles.listItemInner}>
|
|
106
105
|
<View
|
|
107
|
-
style={
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
]}
|
|
106
|
+
style={{
|
|
107
|
+
flexDirection: "row",
|
|
108
|
+
flexShrink: 1,
|
|
109
|
+
columnGap:
|
|
110
|
+
IOSelectionListItemVisualParams.iconMargin *
|
|
111
|
+
dynamicFontScale *
|
|
112
|
+
spacingScaleMultiplier
|
|
113
|
+
}}
|
|
117
114
|
>
|
|
118
115
|
{icon && !hugeFontEnabled && (
|
|
119
116
|
<Icon
|
|
@@ -5,7 +5,6 @@ import {
|
|
|
5
5
|
IOListItemVisualParams,
|
|
6
6
|
IOSelectionListItemVisualParams,
|
|
7
7
|
IOSpacingScale,
|
|
8
|
-
IOStyles,
|
|
9
8
|
IOVisualCostants,
|
|
10
9
|
useIOTheme
|
|
11
10
|
} from "../../core";
|
|
@@ -14,8 +13,8 @@ import { WithTestID } from "../../utils/types";
|
|
|
14
13
|
import { Badge } from "../badge";
|
|
15
14
|
import { ButtonLink, IconButton } from "../buttons";
|
|
16
15
|
import { IOIcons, Icon } from "../icons";
|
|
17
|
-
import { BodySmall, H6 } from "../typography";
|
|
18
16
|
import { VSpacer } from "../spacer";
|
|
17
|
+
import { BodySmall, H6 } from "../typography";
|
|
19
18
|
|
|
20
19
|
type ButtonLinkActionProps = {
|
|
21
20
|
type: "buttonLink";
|
|
@@ -121,7 +120,7 @@ export const ListItemHeader = ({
|
|
|
121
120
|
/>
|
|
122
121
|
</View>
|
|
123
122
|
)}
|
|
124
|
-
<View style={
|
|
123
|
+
<View style={{ flex: 1 }}>{itemInfoTextComponent}</View>
|
|
125
124
|
{endElement && (
|
|
126
125
|
<View style={{ marginLeft: IOListItemVisualParams.actionMargin }}>
|
|
127
126
|
{listItemAction()}
|
|
@@ -4,7 +4,6 @@ import Animated from "react-native-reanimated";
|
|
|
4
4
|
import {
|
|
5
5
|
IOListItemStyles,
|
|
6
6
|
IOListItemVisualParams,
|
|
7
|
-
IOStyles,
|
|
8
7
|
useIOTheme
|
|
9
8
|
} from "../../core";
|
|
10
9
|
import { useListItemAnimation } from "../../hooks";
|
|
@@ -175,7 +174,7 @@ export const ListItemInfo = ({
|
|
|
175
174
|
size={PAYMENT_LOGO_SIZE}
|
|
176
175
|
/>
|
|
177
176
|
)}
|
|
178
|
-
<View style={
|
|
177
|
+
<View style={{ flex: 1 }}>{itemInfoTextComponent}</View>
|
|
179
178
|
{endElement && <View>{listItemInfoAction()}</View>}
|
|
180
179
|
</>
|
|
181
180
|
);
|
|
@@ -4,7 +4,6 @@ import Animated from "react-native-reanimated";
|
|
|
4
4
|
import {
|
|
5
5
|
IOListItemStyles,
|
|
6
6
|
IOListItemVisualParams,
|
|
7
|
-
IOStyles,
|
|
8
7
|
useIOTheme
|
|
9
8
|
} from "../../core";
|
|
10
9
|
import { useListItemAnimation } from "../../hooks";
|
|
@@ -110,7 +109,7 @@ export const ListItemInfoCopy = ({
|
|
|
110
109
|
size={IOListItemVisualParams.iconSize}
|
|
111
110
|
/>
|
|
112
111
|
)}
|
|
113
|
-
<View style={
|
|
112
|
+
<View style={{ flex: 1 }}>{listItemInfoCopyContent}</View>
|
|
114
113
|
<Icon
|
|
115
114
|
allowFontScaling
|
|
116
115
|
name="copy"
|
|
@@ -4,7 +4,6 @@ import Animated from "react-native-reanimated";
|
|
|
4
4
|
import {
|
|
5
5
|
IOListItemStyles,
|
|
6
6
|
IOListItemVisualParams,
|
|
7
|
-
IOStyles,
|
|
8
7
|
useIOTheme
|
|
9
8
|
} from "../../core";
|
|
10
9
|
import { useListItemAnimation } from "../../hooks";
|
|
@@ -108,7 +107,7 @@ export const ListItemNavAlert = ({
|
|
|
108
107
|
size={IOListItemVisualParams.iconSize}
|
|
109
108
|
/>
|
|
110
109
|
)}
|
|
111
|
-
<View style={
|
|
110
|
+
<View style={{ flex: 1 }}>{listItemNavAlertContent}</View>
|
|
112
111
|
<Icon
|
|
113
112
|
allowFontScaling
|
|
114
113
|
name="chevronRightListItem"
|
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
IOSelectionListItemStyles,
|
|
8
8
|
IOSelectionListItemVisualParams,
|
|
9
9
|
IOSelectionTickVisualParams,
|
|
10
|
-
IOStyles,
|
|
11
10
|
useIOTheme
|
|
12
11
|
} from "../../core";
|
|
13
12
|
import { useListItemAnimation } from "../../hooks";
|
|
@@ -133,13 +132,14 @@ export const ListItemRadio = ({
|
|
|
133
132
|
>
|
|
134
133
|
<View style={IOSelectionListItemStyles.listItemInner}>
|
|
135
134
|
<View
|
|
136
|
-
style={
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
135
|
+
style={{
|
|
136
|
+
flex: 1,
|
|
137
|
+
flexDirection: "row",
|
|
138
|
+
justifyContent: "space-between",
|
|
139
|
+
alignItems: "center"
|
|
140
|
+
}}
|
|
141
141
|
>
|
|
142
|
-
<View style={
|
|
142
|
+
<View style={{ flexDirection: "row", alignItems: "center" }}>
|
|
143
143
|
{loadingProps?.skeletonIcon && <SkeletonIcon />}
|
|
144
144
|
<IOSkeleton shape="rectangle" width={180} height={16} radius={8} />
|
|
145
145
|
</View>
|
|
@@ -840,15 +840,13 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
840
840
|
<View
|
|
841
841
|
style={
|
|
842
842
|
[
|
|
843
|
-
{
|
|
844
|
-
"height": 24,
|
|
845
|
-
"width": 24,
|
|
846
|
-
},
|
|
847
843
|
{
|
|
848
844
|
"alignItems": "center",
|
|
845
|
+
"justifyContent": "center",
|
|
849
846
|
},
|
|
850
847
|
{
|
|
851
|
-
"
|
|
848
|
+
"height": 24,
|
|
849
|
+
"width": 24,
|
|
852
850
|
},
|
|
853
851
|
{
|
|
854
852
|
"transform": [
|
|
@@ -1052,15 +1050,13 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
1052
1050
|
<View
|
|
1053
1051
|
style={
|
|
1054
1052
|
[
|
|
1055
|
-
{
|
|
1056
|
-
"height": 24,
|
|
1057
|
-
"width": 24,
|
|
1058
|
-
},
|
|
1059
1053
|
{
|
|
1060
1054
|
"alignItems": "center",
|
|
1055
|
+
"justifyContent": "center",
|
|
1061
1056
|
},
|
|
1062
1057
|
{
|
|
1063
|
-
"
|
|
1058
|
+
"height": 24,
|
|
1059
|
+
"width": 24,
|
|
1064
1060
|
},
|
|
1065
1061
|
{
|
|
1066
1062
|
"transform": [
|
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
View
|
|
10
10
|
} from "react-native";
|
|
11
11
|
import Animated from "react-native-reanimated";
|
|
12
|
-
import { IOStyles } from "../../core/IOStyles";
|
|
13
12
|
import { useIOTheme } from "../../core";
|
|
14
13
|
import { triggerHaptic } from "../../functions";
|
|
15
14
|
import { useErrorShakeAnimation } from "../../utils/hooks/useErrorShakeAnimation";
|
|
@@ -138,7 +137,7 @@ export const OTPInput = forwardRef<View, Props>(
|
|
|
138
137
|
setHasFocus(true);
|
|
139
138
|
}}
|
|
140
139
|
ref={ref}
|
|
141
|
-
style={
|
|
140
|
+
style={{ flexDirection: "row", justifyContent: "space-around" }}
|
|
142
141
|
accessible={true}
|
|
143
142
|
accessibilityLabel={accessibilityLabel}
|
|
144
143
|
accessibilityHint={accessibilityHint}
|
|
@@ -2,7 +2,6 @@ import * as React from "react";
|
|
|
2
2
|
import { ComponentProps, useState } from "react";
|
|
3
3
|
import { Pressable, View } from "react-native";
|
|
4
4
|
import { IOSelectionTickVisualParams, useIOTheme } from "../../core";
|
|
5
|
-
import { IOStyles } from "../../core/IOStyles";
|
|
6
5
|
import { triggerHaptic } from "../../functions/haptic-feedback/hapticFeedback";
|
|
7
6
|
import { useIOFontDynamicScale } from "../../utils/accessibility";
|
|
8
7
|
import { H6 } from "../typography/H6";
|
|
@@ -69,15 +68,13 @@ export const RadioButtonLabel = ({
|
|
|
69
68
|
testID="AnimatedRadioButton"
|
|
70
69
|
>
|
|
71
70
|
<View
|
|
72
|
-
style={
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
]}
|
|
71
|
+
style={{
|
|
72
|
+
flexDirection: "row",
|
|
73
|
+
alignItems: "flex-start",
|
|
74
|
+
flexShrink: 1,
|
|
75
|
+
width: "100%",
|
|
76
|
+
columnGap: 8 * dynamicFontScale * spacingScaleMultiplier
|
|
77
|
+
}}
|
|
81
78
|
>
|
|
82
79
|
<View
|
|
83
80
|
pointerEvents="none"
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { ColorValue, View } from "react-native";
|
|
3
|
-
import {
|
|
4
|
-
IOColors,
|
|
5
|
-
IOSpacer,
|
|
6
|
-
IOStyles,
|
|
7
|
-
IOVisualCostants,
|
|
8
|
-
useIOTheme
|
|
9
|
-
} from "../../core";
|
|
3
|
+
import { IOColors, IOSpacer, IOVisualCostants, useIOTheme } from "../../core";
|
|
10
4
|
|
|
11
5
|
type StepperProps = {
|
|
12
6
|
steps: number;
|
|
@@ -26,11 +20,12 @@ export const Stepper = ({ steps, currentStep }: StepperProps) => {
|
|
|
26
20
|
return (
|
|
27
21
|
<View style={{ paddingHorizontal: IOVisualCostants.appMarginDefault }}>
|
|
28
22
|
<View
|
|
29
|
-
style={
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
23
|
+
style={{
|
|
24
|
+
flex: 1,
|
|
25
|
+
flexDirection: "row",
|
|
26
|
+
justifyContent: "space-between",
|
|
27
|
+
gap: STEPPER_SPACE
|
|
28
|
+
}}
|
|
34
29
|
>
|
|
35
30
|
{[...Array(steps)].map((_, i) => (
|
|
36
31
|
<View
|
package/src/core/IOStyles.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StyleSheet } from "react-native";
|
|
2
2
|
import { IOIconSizeScale } from "../components/icons";
|
|
3
3
|
import { IOColors } from "./IOColors";
|
|
4
4
|
import { IOModuleIDPRadius } from "./IOShapes";
|
|
@@ -43,31 +43,6 @@ export const IOVisualCostants: IOVisualCostants = {
|
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
export const IOStyles = StyleSheet.create({
|
|
46
|
-
flex: {
|
|
47
|
-
flex: 1
|
|
48
|
-
},
|
|
49
|
-
selfCenter: {
|
|
50
|
-
alignSelf: "center"
|
|
51
|
-
},
|
|
52
|
-
alignCenter: {
|
|
53
|
-
alignItems: "center"
|
|
54
|
-
},
|
|
55
|
-
horizontalContentPadding: {
|
|
56
|
-
paddingHorizontal: IOVisualCostants.appMarginDefault
|
|
57
|
-
},
|
|
58
|
-
row: {
|
|
59
|
-
flexDirection: "row"
|
|
60
|
-
},
|
|
61
|
-
column: {
|
|
62
|
-
flexDirection: "column"
|
|
63
|
-
},
|
|
64
|
-
rowSpaceBetween: {
|
|
65
|
-
flexDirection: "row",
|
|
66
|
-
justifyContent: "space-between"
|
|
67
|
-
},
|
|
68
|
-
centerJustified: {
|
|
69
|
-
justifyContent: "center"
|
|
70
|
-
},
|
|
71
46
|
// The following styles come from the original
|
|
72
47
|
// NativeBase's `View`. They are moved here to
|
|
73
48
|
// prevent UI regressions.
|
|
@@ -85,14 +60,6 @@ export const IOStyles = StyleSheet.create({
|
|
|
85
60
|
shadowOpacity: 0.5,
|
|
86
61
|
shadowRadius: 37,
|
|
87
62
|
elevation: 20 // Prop supported on Android only
|
|
88
|
-
},
|
|
89
|
-
bgWhite: {
|
|
90
|
-
backgroundColor: IOColors.white
|
|
91
|
-
// https://github.com/pagopa/io-app/pull/4387
|
|
92
|
-
},
|
|
93
|
-
topListBorderBelowTabsStyle: {
|
|
94
|
-
borderTopWidth: Platform.OS === "android" ? 0.1 : undefined,
|
|
95
|
-
elevation: 0.1
|
|
96
63
|
}
|
|
97
64
|
});
|
|
98
65
|
|
|
@@ -173,9 +140,7 @@ export const IOIconButtonStyles = StyleSheet.create({
|
|
|
173
140
|
/* IconButton */
|
|
174
141
|
button: {
|
|
175
142
|
alignItems: "center",
|
|
176
|
-
justifyContent: "center"
|
|
177
|
-
// Reset default visual parameters
|
|
178
|
-
elevation: 0
|
|
143
|
+
justifyContent: "center"
|
|
179
144
|
},
|
|
180
145
|
buttonSizeSmall: {
|
|
181
146
|
width: iconBtnSizeSmall,
|