@pagopa/io-app-design-system 3.0.1 → 4.0.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/alert/Alert.js +1 -2
- package/lib/commonjs/components/alert/Alert.js.map +1 -1
- package/lib/commonjs/components/alert/AlertEdgeToEdge.js +2 -2
- package/lib/commonjs/components/alert/AlertEdgeToEdge.js.map +1 -1
- package/lib/commonjs/components/banner/Banner.js +1 -1
- package/lib/commonjs/components/banner/Banner.js.map +1 -1
- package/lib/commonjs/components/banner/__test__/__snapshots__/banner.test.tsx.snap +2 -2
- package/lib/commonjs/components/buttons/ButtonLink.js +1 -1
- package/lib/commonjs/components/buttons/ButtonLink.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonOutline.js +1 -1
- package/lib/commonjs/components/buttons/ButtonOutline.js.map +1 -1
- package/lib/commonjs/components/buttons/__test__/__snapshots__/button.test.tsx.snap +3 -3
- package/lib/commonjs/components/featureInfo/FeatureInfo.js +3 -2
- package/lib/commonjs/components/featureInfo/FeatureInfo.js.map +1 -1
- package/lib/commonjs/components/index.js +11 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/layout/HeaderFirstLevel.js +1 -0
- package/lib/commonjs/components/layout/HeaderFirstLevel.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemCheckbox.js +1 -1
- package/lib/commonjs/components/listitems/ListItemCheckbox.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemInfo.js +1 -1
- package/lib/commonjs/components/listitems/ListItemInfo.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemInfoCopy.js +1 -1
- package/lib/commonjs/components/listitems/ListItemInfoCopy.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemNav.js +1 -1
- package/lib/commonjs/components/listitems/ListItemNav.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemNavAlert.js +1 -1
- package/lib/commonjs/components/listitems/ListItemNavAlert.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemRadio.js +1 -1
- package/lib/commonjs/components/listitems/ListItemRadio.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemRadioWithAmount.js +2 -2
- package/lib/commonjs/components/listitems/ListItemRadioWithAmount.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemSwitch.js +1 -1
- package/lib/commonjs/components/listitems/ListItemSwitch.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemTransaction.js +2 -2
- package/lib/commonjs/components/listitems/ListItemTransaction.js.map +1 -1
- package/lib/commonjs/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +7 -7
- package/lib/commonjs/components/modules/ModuleAttachment.js +1 -1
- package/lib/commonjs/components/modules/ModuleAttachment.js.map +1 -1
- package/lib/commonjs/components/modules/ModuleCheckout.js +1 -1
- package/lib/commonjs/components/modules/ModuleCheckout.js.map +1 -1
- package/lib/commonjs/components/modules/ModuleCredential.js +1 -1
- package/lib/commonjs/components/modules/ModuleCredential.js.map +1 -1
- package/lib/commonjs/components/modules/ModuleNavigation.js +3 -2
- package/lib/commonjs/components/modules/ModuleNavigation.js.map +1 -1
- package/lib/commonjs/components/modules/ModulePaymentNotice.js +2 -2
- package/lib/commonjs/components/modules/ModulePaymentNotice.js.map +1 -1
- package/lib/commonjs/components/modules/ModuleSummary.js +1 -1
- package/lib/commonjs/components/modules/ModuleSummary.js.map +1 -1
- package/lib/commonjs/components/otpInput/BoxedInput.js +4 -6
- package/lib/commonjs/components/otpInput/BoxedInput.js.map +1 -1
- package/lib/commonjs/components/otpInput/OTPInput.js +5 -4
- package/lib/commonjs/components/otpInput/OTPInput.js.map +1 -1
- package/lib/commonjs/components/tabs/TabItem.js +1 -1
- package/lib/commonjs/components/tabs/TabItem.js.map +1 -1
- package/lib/commonjs/components/textInput/TextInputBase.js +2 -2
- package/lib/commonjs/components/textInput/TextInputBase.js.map +1 -1
- package/lib/commonjs/components/tooltip/Arrows.js +49 -0
- package/lib/commonjs/components/tooltip/Arrows.js.map +1 -0
- package/lib/commonjs/components/tooltip/Tooltip.js +174 -0
- package/lib/commonjs/components/tooltip/Tooltip.js.map +1 -0
- package/lib/commonjs/components/tooltip/index.js +17 -0
- package/lib/commonjs/components/tooltip/index.js.map +1 -0
- package/lib/commonjs/components/tooltip/styles.js +50 -0
- package/lib/commonjs/components/tooltip/styles.js.map +1 -0
- package/lib/commonjs/components/tooltip/utils/index.js +180 -0
- package/lib/commonjs/components/tooltip/utils/index.js.map +1 -0
- package/lib/commonjs/components/tooltip/utils/types.js +2 -0
- package/lib/commonjs/components/tooltip/utils/types.js.map +1 -0
- package/lib/commonjs/components/typography/{LabelSmall.js → BodySmall.js} +8 -10
- package/lib/commonjs/components/typography/BodySmall.js.map +1 -0
- package/lib/commonjs/components/typography/ButtonText.js +1 -3
- package/lib/commonjs/components/typography/ButtonText.js.map +1 -1
- package/lib/commonjs/components/typography/H3.js +3 -6
- package/lib/commonjs/components/typography/H3.js.map +1 -1
- package/lib/commonjs/components/typography/H6.js +4 -5
- package/lib/commonjs/components/typography/H6.js.map +1 -1
- package/lib/commonjs/components/typography/__test__/__snapshots__/typography.test.tsx.snap +118 -161
- package/lib/commonjs/components/typography/__test__/typography.test.js +6 -18
- package/lib/commonjs/components/typography/__test__/typography.test.js.map +1 -1
- package/lib/commonjs/components/typography/index.js +28 -72
- package/lib/commonjs/components/typography/index.js.map +1 -1
- package/lib/module/components/alert/Alert.js +2 -3
- package/lib/module/components/alert/Alert.js.map +1 -1
- package/lib/module/components/alert/AlertEdgeToEdge.js +2 -2
- package/lib/module/components/alert/AlertEdgeToEdge.js.map +1 -1
- package/lib/module/components/banner/Banner.js +2 -2
- package/lib/module/components/banner/Banner.js.map +1 -1
- package/lib/module/components/banner/__test__/__snapshots__/banner.test.tsx.snap +2 -2
- package/lib/module/components/buttons/ButtonLink.js +1 -1
- package/lib/module/components/buttons/ButtonLink.js.map +1 -1
- package/lib/module/components/buttons/ButtonOutline.js +1 -1
- package/lib/module/components/buttons/ButtonOutline.js.map +1 -1
- package/lib/module/components/buttons/__test__/__snapshots__/button.test.tsx.snap +3 -3
- package/lib/module/components/featureInfo/FeatureInfo.js +4 -3
- package/lib/module/components/featureInfo/FeatureInfo.js.map +1 -1
- package/lib/module/components/index.js +1 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/layout/HeaderFirstLevel.js +1 -0
- package/lib/module/components/layout/HeaderFirstLevel.js.map +1 -1
- package/lib/module/components/listitems/ListItemCheckbox.js +2 -2
- package/lib/module/components/listitems/ListItemCheckbox.js.map +1 -1
- package/lib/module/components/listitems/ListItemInfo.js +2 -2
- package/lib/module/components/listitems/ListItemInfo.js.map +1 -1
- package/lib/module/components/listitems/ListItemInfoCopy.js +2 -2
- package/lib/module/components/listitems/ListItemInfoCopy.js.map +1 -1
- package/lib/module/components/listitems/ListItemNav.js +2 -2
- package/lib/module/components/listitems/ListItemNav.js.map +1 -1
- package/lib/module/components/listitems/ListItemNavAlert.js +2 -2
- package/lib/module/components/listitems/ListItemNavAlert.js.map +1 -1
- package/lib/module/components/listitems/ListItemRadio.js +2 -2
- package/lib/module/components/listitems/ListItemRadio.js.map +1 -1
- package/lib/module/components/listitems/ListItemRadioWithAmount.js +3 -3
- package/lib/module/components/listitems/ListItemRadioWithAmount.js.map +1 -1
- package/lib/module/components/listitems/ListItemSwitch.js +2 -2
- package/lib/module/components/listitems/ListItemSwitch.js.map +1 -1
- package/lib/module/components/listitems/ListItemTransaction.js +3 -3
- package/lib/module/components/listitems/ListItemTransaction.js.map +1 -1
- package/lib/module/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +7 -7
- package/lib/module/components/modules/ModuleAttachment.js +2 -2
- package/lib/module/components/modules/ModuleAttachment.js.map +1 -1
- package/lib/module/components/modules/ModuleCheckout.js +2 -2
- package/lib/module/components/modules/ModuleCheckout.js.map +1 -1
- package/lib/module/components/modules/ModuleCredential.js +2 -2
- package/lib/module/components/modules/ModuleCredential.js.map +1 -1
- package/lib/module/components/modules/ModuleNavigation.js +4 -3
- package/lib/module/components/modules/ModuleNavigation.js.map +1 -1
- package/lib/module/components/modules/ModulePaymentNotice.js +3 -3
- package/lib/module/components/modules/ModulePaymentNotice.js.map +1 -1
- package/lib/module/components/modules/ModuleSummary.js +2 -2
- package/lib/module/components/modules/ModuleSummary.js.map +1 -1
- package/lib/module/components/otpInput/BoxedInput.js +5 -7
- package/lib/module/components/otpInput/BoxedInput.js.map +1 -1
- package/lib/module/components/otpInput/OTPInput.js +5 -4
- package/lib/module/components/otpInput/OTPInput.js.map +1 -1
- package/lib/module/components/tabs/TabItem.js +2 -2
- package/lib/module/components/tabs/TabItem.js.map +1 -1
- package/lib/module/components/textInput/TextInputBase.js +3 -3
- package/lib/module/components/textInput/TextInputBase.js.map +1 -1
- package/lib/module/components/tooltip/Arrows.js +36 -0
- package/lib/module/components/tooltip/Arrows.js.map +1 -0
- package/lib/module/components/tooltip/Tooltip.js +165 -0
- package/lib/module/components/tooltip/Tooltip.js.map +1 -0
- package/lib/module/components/tooltip/index.js +2 -0
- package/lib/module/components/tooltip/index.js.map +1 -0
- package/lib/module/components/tooltip/styles.js +43 -0
- package/lib/module/components/tooltip/styles.js.map +1 -0
- package/lib/module/components/tooltip/utils/index.js +163 -0
- package/lib/module/components/tooltip/utils/index.js.map +1 -0
- package/lib/module/components/tooltip/utils/types.js +2 -0
- package/lib/module/components/tooltip/utils/types.js.map +1 -0
- package/lib/module/components/typography/{LabelSmall.js → BodySmall.js} +6 -8
- package/lib/module/components/typography/BodySmall.js.map +1 -0
- package/lib/module/components/typography/ButtonText.js +1 -3
- package/lib/module/components/typography/ButtonText.js.map +1 -1
- package/lib/module/components/typography/H3.js +3 -6
- package/lib/module/components/typography/H3.js.map +1 -1
- package/lib/module/components/typography/H6.js +4 -5
- package/lib/module/components/typography/H6.js.map +1 -1
- package/lib/module/components/typography/__test__/__snapshots__/typography.test.tsx.snap +118 -161
- package/lib/module/components/typography/__test__/typography.test.js +6 -18
- package/lib/module/components/typography/__test__/typography.test.js.map +1 -1
- package/lib/module/components/typography/index.js +6 -10
- package/lib/module/components/typography/index.js.map +1 -1
- package/lib/typescript/components/alert/Alert.d.ts.map +1 -1
- package/lib/typescript/components/banner/Banner.d.ts +1 -1
- package/lib/typescript/components/banner/Banner.d.ts.map +1 -1
- package/lib/typescript/components/featureInfo/FeatureInfo.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +1 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/components/layout/HeaderFirstLevel.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemSwitch.d.ts.map +1 -1
- package/lib/typescript/components/modules/ModuleNavigation.d.ts.map +1 -1
- package/lib/typescript/components/otpInput/BoxedInput.d.ts.map +1 -1
- package/lib/typescript/components/otpInput/OTPInput.d.ts.map +1 -1
- package/lib/typescript/components/tooltip/Arrows.d.ts +14 -0
- package/lib/typescript/components/tooltip/Arrows.d.ts.map +1 -0
- package/lib/typescript/components/tooltip/Tooltip.d.ts +64 -0
- package/lib/typescript/components/tooltip/Tooltip.d.ts.map +1 -0
- package/lib/typescript/components/tooltip/index.d.ts +2 -0
- package/lib/typescript/components/tooltip/index.d.ts.map +1 -0
- package/lib/typescript/components/tooltip/styles.d.ts +41 -0
- package/lib/typescript/components/tooltip/styles.d.ts.map +1 -0
- package/lib/typescript/components/tooltip/utils/index.d.ts +89 -0
- package/lib/typescript/components/tooltip/utils/index.d.ts.map +1 -0
- package/lib/typescript/components/tooltip/utils/types.d.ts +10 -0
- package/lib/typescript/components/tooltip/utils/types.d.ts.map +1 -0
- package/lib/typescript/components/typography/Body.d.ts +1 -1
- package/lib/typescript/components/typography/Body.d.ts.map +1 -1
- package/lib/typescript/components/typography/BodySmall.d.ts +13 -0
- package/lib/typescript/components/typography/BodySmall.d.ts.map +1 -0
- package/lib/typescript/components/typography/ButtonText.d.ts.map +1 -1
- package/lib/typescript/components/typography/H3.d.ts +2 -0
- package/lib/typescript/components/typography/H3.d.ts.map +1 -1
- package/lib/typescript/components/typography/H6.d.ts.map +1 -1
- package/lib/typescript/components/typography/LabelMini.d.ts +1 -1
- package/lib/typescript/components/typography/LabelMini.d.ts.map +1 -1
- package/lib/typescript/components/typography/index.d.ts +6 -10
- package/lib/typescript/components/typography/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/alert/Alert.tsx +3 -4
- package/src/components/alert/AlertEdgeToEdge.tsx +3 -3
- package/src/components/banner/Banner.tsx +7 -5
- package/src/components/banner/__test__/__snapshots__/banner.test.tsx.snap +2 -2
- package/src/components/buttons/ButtonLink.tsx +1 -1
- package/src/components/buttons/ButtonOutline.tsx +1 -1
- package/src/components/buttons/__test__/__snapshots__/button.test.tsx.snap +3 -3
- package/src/components/featureInfo/FeatureInfo.tsx +6 -6
- package/src/components/index.tsx +1 -0
- package/src/components/layout/HeaderFirstLevel.tsx +1 -0
- package/src/components/listitems/ListItemCheckbox.tsx +3 -3
- package/src/components/listitems/ListItemInfo.tsx +3 -3
- package/src/components/listitems/ListItemInfoCopy.tsx +3 -3
- package/src/components/listitems/ListItemNav.tsx +3 -3
- package/src/components/listitems/ListItemNavAlert.tsx +3 -3
- package/src/components/listitems/ListItemRadio.tsx +3 -3
- package/src/components/listitems/ListItemRadioWithAmount.tsx +5 -5
- package/src/components/listitems/ListItemSwitch.tsx +4 -4
- package/src/components/listitems/ListItemTransaction.tsx +5 -5
- package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +7 -7
- package/src/components/modules/ModuleAttachment.tsx +3 -3
- package/src/components/modules/ModuleCheckout.tsx +3 -3
- package/src/components/modules/ModuleCredential.tsx +3 -3
- package/src/components/modules/ModuleNavigation.tsx +6 -4
- package/src/components/modules/ModulePaymentNotice.tsx +5 -5
- package/src/components/modules/ModuleSummary.tsx +3 -3
- package/src/components/otpInput/BoxedInput.tsx +6 -5
- package/src/components/otpInput/OTPInput.tsx +23 -8
- package/src/components/tabs/TabItem.tsx +3 -3
- package/src/components/textInput/TextInputBase.tsx +5 -5
- package/src/components/tooltip/Arrows.tsx +36 -0
- package/src/components/tooltip/Tooltip.tsx +313 -0
- package/src/components/tooltip/index.ts +1 -0
- package/src/components/tooltip/styles.ts +44 -0
- package/src/components/tooltip/utils/index.ts +179 -0
- package/src/components/tooltip/utils/types.ts +9 -0
- package/src/components/typography/Body.tsx +1 -1
- package/src/components/typography/{LabelSmall.tsx → BodySmall.tsx} +7 -14
- package/src/components/typography/ButtonText.tsx +2 -4
- package/src/components/typography/H3.tsx +11 -8
- package/src/components/typography/H6.tsx +5 -6
- package/src/components/typography/LabelMini.tsx +1 -1
- package/src/components/typography/__test__/__snapshots__/typography.test.tsx.snap +118 -161
- package/src/components/typography/__test__/typography.test.tsx +8 -24
- package/src/components/typography/index.tsx +6 -10
- package/lib/commonjs/components/typography/BaseTypography.js +0 -52
- package/lib/commonjs/components/typography/BaseTypography.js.map +0 -1
- package/lib/commonjs/components/typography/Chip.js +0 -41
- package/lib/commonjs/components/typography/Chip.js.map +0 -1
- package/lib/commonjs/components/typography/Factory.js +0 -62
- package/lib/commonjs/components/typography/Factory.js.map +0 -1
- package/lib/commonjs/components/typography/Label.js +0 -51
- package/lib/commonjs/components/typography/Label.js.map +0 -1
- package/lib/commonjs/components/typography/LabelSmall.js.map +0 -1
- package/lib/module/components/typography/BaseTypography.js +0 -44
- package/lib/module/components/typography/BaseTypography.js.map +0 -1
- package/lib/module/components/typography/Chip.js +0 -32
- package/lib/module/components/typography/Chip.js.map +0 -1
- package/lib/module/components/typography/Factory.js +0 -55
- package/lib/module/components/typography/Factory.js.map +0 -1
- package/lib/module/components/typography/Label.js +0 -42
- package/lib/module/components/typography/Label.js.map +0 -1
- package/lib/module/components/typography/LabelSmall.js.map +0 -1
- package/lib/typescript/components/typography/BaseTypography.d.ts +0 -29
- package/lib/typescript/components/typography/BaseTypography.d.ts.map +0 -1
- package/lib/typescript/components/typography/Chip.d.ts +0 -13
- package/lib/typescript/components/typography/Chip.d.ts.map +0 -1
- package/lib/typescript/components/typography/Factory.d.ts +0 -43
- package/lib/typescript/components/typography/Factory.d.ts.map +0 -1
- package/lib/typescript/components/typography/Label.d.ts +0 -13
- package/lib/typescript/components/typography/Label.d.ts.map +0 -1
- package/lib/typescript/components/typography/LabelSmall.d.ts +0 -13
- package/lib/typescript/components/typography/LabelSmall.d.ts.map +0 -1
- package/src/components/typography/BaseTypography.tsx +0 -71
- package/src/components/typography/Chip.tsx +0 -33
- package/src/components/typography/Factory.tsx +0 -98
- package/src/components/typography/Label.tsx +0 -62
|
@@ -5,7 +5,7 @@ import { IOColors, useIOTheme } from "../../core";
|
|
|
5
5
|
import { Icon } from "../icons";
|
|
6
6
|
import { AnimatedRadio } from "../radio/AnimatedRadio";
|
|
7
7
|
import { HSpacer, VSpacer } from "../spacer";
|
|
8
|
-
import { H6,
|
|
8
|
+
import { H6, BodySmall } from "../typography";
|
|
9
9
|
import { PressableListItemBase } from "./PressableListItemsBase";
|
|
10
10
|
|
|
11
11
|
export type ListItemRadioWithAmountProps = {
|
|
@@ -55,22 +55,22 @@ export const ListItemRadioWithAmount = ({
|
|
|
55
55
|
}}
|
|
56
56
|
>
|
|
57
57
|
<View style={{ flexShrink: 1 }}>
|
|
58
|
-
<
|
|
58
|
+
<BodySmall
|
|
59
59
|
weight="Semibold"
|
|
60
60
|
numberOfLines={1}
|
|
61
61
|
color={theme["textBody-default"]}
|
|
62
62
|
>
|
|
63
63
|
{label}
|
|
64
|
-
</
|
|
64
|
+
</BodySmall>
|
|
65
65
|
{isSuggested && (
|
|
66
66
|
<>
|
|
67
67
|
<VSpacer size={4} />
|
|
68
68
|
<View style={styles.rowCenter}>
|
|
69
69
|
<Icon name="sparkles" size={16} color={suggestColor} />
|
|
70
70
|
<HSpacer size={4} />
|
|
71
|
-
<
|
|
71
|
+
<BodySmall weight="Regular" color={suggestColor}>
|
|
72
72
|
{suggestReason}
|
|
73
|
-
</
|
|
73
|
+
</BodySmall>
|
|
74
74
|
</View>
|
|
75
75
|
</>
|
|
76
76
|
)}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import React, { useMemo } from "react";
|
|
2
2
|
import { GestureResponderEvent, Platform, Switch, View } from "react-native";
|
|
3
|
-
import { WithTestID } from "../../utils/types";
|
|
4
3
|
import {
|
|
5
4
|
IOSelectionListItemStyles,
|
|
6
5
|
IOSelectionListItemVisualParams,
|
|
7
6
|
useIOTheme
|
|
8
7
|
} from "../../core";
|
|
8
|
+
import { WithTestID } from "../../utils/types";
|
|
9
9
|
import { Badge } from "../badge";
|
|
10
10
|
import { IOIcons, Icon } from "../icons";
|
|
11
11
|
import { LoadingSpinner } from "../loadingSpinner";
|
|
12
12
|
import { IOLogoPaymentType, LogoPayment } from "../logos";
|
|
13
13
|
import { HSpacer, VSpacer } from "../spacer";
|
|
14
14
|
import { NativeSwitch } from "../switch/NativeSwitch";
|
|
15
|
-
import { H6, LabelMini
|
|
15
|
+
import { BodySmall, H6, LabelMini } from "../typography";
|
|
16
16
|
|
|
17
17
|
type PartialProps = WithTestID<{
|
|
18
18
|
label: string;
|
|
@@ -178,9 +178,9 @@ export const ListItemSwitch = React.memo(
|
|
|
178
178
|
{description && (
|
|
179
179
|
<>
|
|
180
180
|
<VSpacer size={IOSelectionListItemVisualParams.descriptionMargin} />
|
|
181
|
-
<
|
|
181
|
+
<BodySmall weight="Regular" color={theme["textBody-tertiary"]}>
|
|
182
182
|
{description}
|
|
183
|
-
</
|
|
183
|
+
</BodySmall>
|
|
184
184
|
</>
|
|
185
185
|
)}
|
|
186
186
|
{action && (
|
|
@@ -21,7 +21,7 @@ import { IOIconSizeScale, Icon } from "../icons";
|
|
|
21
21
|
import { IOLogoPaymentType } from "../logos";
|
|
22
22
|
import { VSpacer } from "../spacer";
|
|
23
23
|
import { HStack } from "../stack";
|
|
24
|
-
import { H6,
|
|
24
|
+
import { H6, BodySmall } from "../typography";
|
|
25
25
|
import {
|
|
26
26
|
PressableBaseProps,
|
|
27
27
|
PressableListItemBase
|
|
@@ -146,16 +146,16 @@ export const ListItemTransaction = ({
|
|
|
146
146
|
</View>
|
|
147
147
|
)}
|
|
148
148
|
<View style={{ flexShrink: 1 }}>
|
|
149
|
-
<
|
|
149
|
+
<BodySmall
|
|
150
150
|
numberOfLines={numberOfLines}
|
|
151
151
|
color={theme["textBody-default"]}
|
|
152
152
|
weight="Semibold"
|
|
153
153
|
>
|
|
154
154
|
{title}
|
|
155
|
-
</
|
|
156
|
-
<
|
|
155
|
+
</BodySmall>
|
|
156
|
+
<BodySmall weight="Regular" color={theme["textBody-tertiary"]}>
|
|
157
157
|
{subtitle}
|
|
158
|
-
</
|
|
158
|
+
</BodySmall>
|
|
159
159
|
</View>
|
|
160
160
|
</HStack>
|
|
161
161
|
<HStack style={{ alignItems: "center" }}>
|
|
@@ -262,7 +262,7 @@ exports[`Test List Item Components - Experimental Enabled ListItemInfo Snapshot
|
|
|
262
262
|
{
|
|
263
263
|
"color": "#0E0F13",
|
|
264
264
|
"fontFamily": "Titillio",
|
|
265
|
-
"fontSize":
|
|
265
|
+
"fontSize": 16,
|
|
266
266
|
"fontStyle": "normal",
|
|
267
267
|
"fontWeight": "600",
|
|
268
268
|
"lineHeight": 24,
|
|
@@ -384,7 +384,7 @@ exports[`Test List Item Components - Experimental Enabled ListItemInfoCopy Snap
|
|
|
384
384
|
{
|
|
385
385
|
"color": "#0B3EE3",
|
|
386
386
|
"fontFamily": "Titillio",
|
|
387
|
-
"fontSize":
|
|
387
|
+
"fontSize": 16,
|
|
388
388
|
"fontStyle": "normal",
|
|
389
389
|
"fontWeight": "600",
|
|
390
390
|
"lineHeight": 24,
|
|
@@ -551,7 +551,7 @@ exports[`Test List Item Components - Experimental Enabled ListItemNav Snapshot
|
|
|
551
551
|
{
|
|
552
552
|
"color": "#0E0F13",
|
|
553
553
|
"fontFamily": "Titillio",
|
|
554
|
-
"fontSize":
|
|
554
|
+
"fontSize": 16,
|
|
555
555
|
"fontStyle": "normal",
|
|
556
556
|
"fontWeight": "600",
|
|
557
557
|
"lineHeight": 24,
|
|
@@ -780,7 +780,7 @@ exports[`Test List Item Components - Experimental Enabled ListItemNavAlert Snap
|
|
|
780
780
|
{
|
|
781
781
|
"color": "#0E0F13",
|
|
782
782
|
"fontFamily": "Titillio",
|
|
783
|
-
"fontSize":
|
|
783
|
+
"fontSize": 16,
|
|
784
784
|
"fontStyle": "normal",
|
|
785
785
|
"fontWeight": "600",
|
|
786
786
|
"lineHeight": 24,
|
|
@@ -1082,7 +1082,7 @@ exports[`Test List Item Components - Experimental Enabled ListItemRadioWithAmou
|
|
|
1082
1082
|
{
|
|
1083
1083
|
"color": "#0B3EE3",
|
|
1084
1084
|
"fontFamily": "Titillio",
|
|
1085
|
-
"fontSize":
|
|
1085
|
+
"fontSize": 16,
|
|
1086
1086
|
"fontStyle": "normal",
|
|
1087
1087
|
"fontWeight": "600",
|
|
1088
1088
|
"lineHeight": 24,
|
|
@@ -1366,7 +1366,7 @@ exports[`Test List Item Components - Experimental Enabled ListItemRadioWithAmou
|
|
|
1366
1366
|
{
|
|
1367
1367
|
"color": "#0B3EE3",
|
|
1368
1368
|
"fontFamily": "Titillio",
|
|
1369
|
-
"fontSize":
|
|
1369
|
+
"fontSize": 16,
|
|
1370
1370
|
"fontStyle": "normal",
|
|
1371
1371
|
"fontWeight": "600",
|
|
1372
1372
|
"lineHeight": 24,
|
|
@@ -1774,7 +1774,7 @@ exports[`Test List Item Components ListItemAction Snapshot 1`] = `
|
|
|
1774
1774
|
"fontFamily": "Titillium Sans Pro",
|
|
1775
1775
|
"fontSize": 16,
|
|
1776
1776
|
"fontStyle": "normal",
|
|
1777
|
-
"fontWeight": "
|
|
1777
|
+
"fontWeight": "600",
|
|
1778
1778
|
"lineHeight": 20,
|
|
1779
1779
|
},
|
|
1780
1780
|
]
|
|
@@ -7,7 +7,7 @@ import { Badge } from "../badge";
|
|
|
7
7
|
import { Icon } from "../icons";
|
|
8
8
|
import { LoadingSpinner } from "../loadingSpinner";
|
|
9
9
|
import { HStack, VStack } from "../stack";
|
|
10
|
-
import {
|
|
10
|
+
import { Body } from "../typography";
|
|
11
11
|
import { ModuleStatic } from "./ModuleStatic";
|
|
12
12
|
import { PressableModuleBase } from "./PressableModuleBase";
|
|
13
13
|
|
|
@@ -66,13 +66,13 @@ const ModuleAttachmentContent = ({
|
|
|
66
66
|
space={4}
|
|
67
67
|
style={{ alignItems: "flex-start", flexShrink: 1, flexGrow: 1 }}
|
|
68
68
|
>
|
|
69
|
-
<
|
|
69
|
+
<Body
|
|
70
70
|
weight="Semibold"
|
|
71
71
|
numberOfLines={2}
|
|
72
72
|
color={theme["interactiveElem-default"]}
|
|
73
73
|
>
|
|
74
74
|
{title}
|
|
75
|
-
</
|
|
75
|
+
</Body>
|
|
76
76
|
<Badge text={format.toUpperCase()} variant="default" />
|
|
77
77
|
</VStack>
|
|
78
78
|
<IconOrActivityIndicatorComponent />
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import { ButtonLink } from "../buttons";
|
|
16
16
|
import { IOLogoPaymentType, LogoPayment } from "../logos";
|
|
17
17
|
import { HStack, VStack } from "../stack";
|
|
18
|
-
import { H6,
|
|
18
|
+
import { H6, BodySmall } from "../typography";
|
|
19
19
|
import { ModuleStatic } from "./ModuleStatic";
|
|
20
20
|
import { PressableModuleBase } from "./PressableModuleBase";
|
|
21
21
|
|
|
@@ -70,9 +70,9 @@ export const ModuleCheckout = (props: ModuleCheckoutProps) => {
|
|
|
70
70
|
<View style={{ flexGrow: 1, flexShrink: 1 }}>
|
|
71
71
|
<H6 color={theme["textBody-default"]}>{title}</H6>
|
|
72
72
|
{subtitle && (
|
|
73
|
-
<
|
|
73
|
+
<BodySmall weight="Regular" color={theme["textBody-tertiary"]}>
|
|
74
74
|
{subtitle}
|
|
75
|
-
</
|
|
75
|
+
</BodySmall>
|
|
76
76
|
)}
|
|
77
77
|
</View>
|
|
78
78
|
</HStack>
|
|
@@ -20,7 +20,7 @@ import { Badge } from "../badge";
|
|
|
20
20
|
import { IOIcons, Icon } from "../icons";
|
|
21
21
|
import { LoadingSpinner } from "../loadingSpinner";
|
|
22
22
|
import { HStack } from "../stack/Stack";
|
|
23
|
-
import {
|
|
23
|
+
import { BodySmall } from "../typography";
|
|
24
24
|
import { ModuleStatic } from "./ModuleStatic";
|
|
25
25
|
import {
|
|
26
26
|
PressableModuleBase,
|
|
@@ -89,7 +89,7 @@ const ModuleCredential = (props: WithTestID<ModuleCredentialProps>) => {
|
|
|
89
89
|
{/* Graphical assets */}
|
|
90
90
|
{iconComponent ?? imageComponent}
|
|
91
91
|
|
|
92
|
-
<
|
|
92
|
+
<BodySmall
|
|
93
93
|
color={theme["interactiveElem-default"]}
|
|
94
94
|
weight="Semibold"
|
|
95
95
|
numberOfLines={2}
|
|
@@ -97,7 +97,7 @@ const ModuleCredential = (props: WithTestID<ModuleCredentialProps>) => {
|
|
|
97
97
|
style={{ flexShrink: 1 }}
|
|
98
98
|
>
|
|
99
99
|
{label}
|
|
100
|
-
</
|
|
100
|
+
</BodySmall>
|
|
101
101
|
</HStack>
|
|
102
102
|
<View style={IOStyles.row}>
|
|
103
103
|
{badge ? (
|
|
@@ -18,7 +18,7 @@ import { WithTestID } from "../../utils/types";
|
|
|
18
18
|
import { Badge } from "../badge";
|
|
19
19
|
import { IOIcons, Icon } from "../icons";
|
|
20
20
|
import { HStack, VStack } from "../stack";
|
|
21
|
-
import {
|
|
21
|
+
import { LabelMini, BodySmall } from "../typography";
|
|
22
22
|
import { ModuleStatic } from "./ModuleStatic";
|
|
23
23
|
import {
|
|
24
24
|
PressableModuleBase,
|
|
@@ -79,7 +79,7 @@ export const ModuleNavigation = (props: WithTestID<ModuleNavigationProps>) => {
|
|
|
79
79
|
{iconComponent ?? imageComponent}
|
|
80
80
|
|
|
81
81
|
<View style={{ flexShrink: 1 }}>
|
|
82
|
-
<
|
|
82
|
+
<BodySmall
|
|
83
83
|
color={theme["interactiveElem-default"]}
|
|
84
84
|
weight="Semibold"
|
|
85
85
|
numberOfLines={2}
|
|
@@ -87,9 +87,11 @@ export const ModuleNavigation = (props: WithTestID<ModuleNavigationProps>) => {
|
|
|
87
87
|
style={{ flexShrink: 1 }}
|
|
88
88
|
>
|
|
89
89
|
{title}
|
|
90
|
-
</
|
|
90
|
+
</BodySmall>
|
|
91
91
|
{subtitle && (
|
|
92
|
-
<
|
|
92
|
+
<LabelMini weight="Regular" color={theme["textBody-tertiary"]}>
|
|
93
|
+
{subtitle}
|
|
94
|
+
</LabelMini>
|
|
93
95
|
)}
|
|
94
96
|
</View>
|
|
95
97
|
</HStack>
|
|
@@ -6,7 +6,7 @@ import { WithTestID } from "../../utils/types";
|
|
|
6
6
|
import { Badge } from "../badge";
|
|
7
7
|
import { Icon } from "../icons";
|
|
8
8
|
import { HStack, VStack } from "../stack";
|
|
9
|
-
import {
|
|
9
|
+
import { Body, H6, BodySmall } from "../typography";
|
|
10
10
|
import { ModuleStatic } from "./ModuleStatic";
|
|
11
11
|
import { PressableModuleBase } from "./PressableModuleBase";
|
|
12
12
|
|
|
@@ -93,22 +93,22 @@ const ModulePaymentNoticeContent = ({
|
|
|
93
93
|
<HStack space={IOListItemVisualParams.iconMargin as IOSpacer}>
|
|
94
94
|
<View style={{ flexGrow: 1, flexShrink: 1 }}>
|
|
95
95
|
{title && (
|
|
96
|
-
<
|
|
96
|
+
<BodySmall
|
|
97
97
|
numberOfLines={1}
|
|
98
98
|
weight="Regular"
|
|
99
99
|
color={theme["textBody-tertiary"]}
|
|
100
100
|
>
|
|
101
101
|
{title}
|
|
102
|
-
</
|
|
102
|
+
</BodySmall>
|
|
103
103
|
)}
|
|
104
104
|
{subtitle && (
|
|
105
|
-
<
|
|
105
|
+
<Body
|
|
106
106
|
color={theme["interactiveElem-default"]}
|
|
107
107
|
numberOfLines={2}
|
|
108
108
|
weight="Semibold"
|
|
109
109
|
>
|
|
110
110
|
{subtitle}
|
|
111
|
-
</
|
|
111
|
+
</Body>
|
|
112
112
|
)}
|
|
113
113
|
</View>
|
|
114
114
|
<View style={styles.endBlock}>
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { View } from "react-native";
|
|
3
3
|
import { useIOTheme } from "../../core";
|
|
4
4
|
import { IOIcons, Icon } from "../icons";
|
|
5
|
-
import { H6,
|
|
5
|
+
import { H6, BodySmall } from "../typography";
|
|
6
6
|
import {
|
|
7
7
|
PressableModuleBase,
|
|
8
8
|
PressableModuleBaseProps
|
|
@@ -28,9 +28,9 @@ export const ModuleSummary = ({
|
|
|
28
28
|
<View style={{ flexGrow: 1, flexShrink: 1 }}>
|
|
29
29
|
<H6 color={theme["textBody-default"]}>{label}</H6>
|
|
30
30
|
{description && (
|
|
31
|
-
<
|
|
31
|
+
<BodySmall weight="Regular" color={theme["textBody-tertiary"]}>
|
|
32
32
|
{description}
|
|
33
|
-
</
|
|
33
|
+
</BodySmall>
|
|
34
34
|
)}
|
|
35
35
|
</View>
|
|
36
36
|
<View style={{ marginLeft: 8 }}>
|
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { StyleSheet, View } from "react-native";
|
|
4
4
|
import { IOColors } from "../../core";
|
|
5
|
-
import {
|
|
5
|
+
import { H6, IOText } from "../typography";
|
|
6
6
|
|
|
7
7
|
type Props = {
|
|
8
8
|
status: "default" | "focus" | "error";
|
|
@@ -36,15 +36,16 @@ const styles = StyleSheet.create({
|
|
|
36
36
|
|
|
37
37
|
// FIXME Replace this component with H3 once the legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
38
38
|
const SecretValue = () => (
|
|
39
|
-
<
|
|
39
|
+
<IOText
|
|
40
40
|
font="DMMono"
|
|
41
41
|
weight="Semibold"
|
|
42
|
-
color="
|
|
43
|
-
|
|
42
|
+
color="grey-850"
|
|
43
|
+
size={22}
|
|
44
|
+
lineHeight={33}
|
|
44
45
|
accessible={false}
|
|
45
46
|
>
|
|
46
47
|
{"•"}
|
|
47
|
-
</
|
|
48
|
+
</IOText>
|
|
48
49
|
);
|
|
49
50
|
|
|
50
51
|
export const BoxedInput = ({ status, value, secret }: Props) => {
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
AccessibilityInfo,
|
|
4
|
+
NativeSyntheticEvent,
|
|
5
|
+
Pressable,
|
|
6
|
+
TextInput,
|
|
7
|
+
TextInputKeyPressEventData,
|
|
8
|
+
View
|
|
9
|
+
} from "react-native";
|
|
3
10
|
import Animated from "react-native-reanimated";
|
|
4
11
|
import { IOStyles } from "../../core/IOStyles";
|
|
5
|
-
import { LabelSmall } from "../typography";
|
|
6
12
|
import { triggerHaptic } from "../../functions";
|
|
7
|
-
import { VSpacer } from "../spacer";
|
|
8
13
|
import { useErrorShakeAnimation } from "../../utils/hooks/useErrorShakeAnimation";
|
|
14
|
+
import { VSpacer } from "../spacer";
|
|
15
|
+
import { BodySmall } from "../typography";
|
|
9
16
|
import { BoxedInput } from "./BoxedInput";
|
|
10
17
|
|
|
11
18
|
type Props = {
|
|
@@ -95,11 +102,15 @@ export const OTPInput = React.forwardRef<View, Props>(
|
|
|
95
102
|
handleValidate(value);
|
|
96
103
|
};
|
|
97
104
|
|
|
98
|
-
const handleKeyPress = ({
|
|
105
|
+
const handleKeyPress = ({
|
|
106
|
+
nativeEvent
|
|
107
|
+
}: NativeSyntheticEvent<TextInputKeyPressEventData>) => {
|
|
99
108
|
switch (nativeEvent.key) {
|
|
100
|
-
case
|
|
109
|
+
case "Backspace":
|
|
101
110
|
if (deleteButtonAccessibilityLabel && value.length > 0) {
|
|
102
|
-
AccessibilityInfo.announceForAccessibility(
|
|
111
|
+
AccessibilityInfo.announceForAccessibility(
|
|
112
|
+
deleteButtonAccessibilityLabel
|
|
113
|
+
);
|
|
103
114
|
}
|
|
104
115
|
break;
|
|
105
116
|
default:
|
|
@@ -156,9 +167,13 @@ export const OTPInput = React.forwardRef<View, Props>(
|
|
|
156
167
|
</Pressable>
|
|
157
168
|
<VSpacer size={4} />
|
|
158
169
|
{hasError && errorMessage && (
|
|
159
|
-
<
|
|
170
|
+
<BodySmall
|
|
171
|
+
weight="Semibold"
|
|
172
|
+
color="error-850"
|
|
173
|
+
style={{ textAlign: "center" }}
|
|
174
|
+
>
|
|
160
175
|
{errorMessage}
|
|
161
|
-
</
|
|
176
|
+
</BodySmall>
|
|
162
177
|
)}
|
|
163
178
|
</Animated.View>
|
|
164
179
|
);
|
|
@@ -20,7 +20,7 @@ import { useSpringPressProgressValue } from "../../utils/hooks/useSpringPressPro
|
|
|
20
20
|
import { WithTestID } from "../../utils/types";
|
|
21
21
|
import { IOIcons, Icon } from "../icons";
|
|
22
22
|
import { HSpacer } from "../spacer";
|
|
23
|
-
import {
|
|
23
|
+
import { BodySmall } from "../typography";
|
|
24
24
|
|
|
25
25
|
type ColorMode = "light" | "dark";
|
|
26
26
|
|
|
@@ -257,9 +257,9 @@ const TabItem = ({
|
|
|
257
257
|
<HSpacer size={4} />
|
|
258
258
|
</>
|
|
259
259
|
)}
|
|
260
|
-
<
|
|
260
|
+
<BodySmall weight="Semibold" color={foregroundColor}>
|
|
261
261
|
{label}
|
|
262
|
-
</
|
|
262
|
+
</BodySmall>
|
|
263
263
|
</Animated.View>
|
|
264
264
|
</Pressable>
|
|
265
265
|
);
|
|
@@ -31,7 +31,7 @@ import { RNTextInputProps, getInputPropsByType } from "../../utils/textInput";
|
|
|
31
31
|
import { InputType, WithTestID } from "../../utils/types";
|
|
32
32
|
import { IOIconSizeScale, IOIcons, Icon } from "../icons";
|
|
33
33
|
import { HSpacer } from "../spacer";
|
|
34
|
-
import {
|
|
34
|
+
import { BodySmall } from "../typography";
|
|
35
35
|
|
|
36
36
|
type InputStatus = "initial" | "focused" | "disabled" | "error";
|
|
37
37
|
|
|
@@ -186,15 +186,15 @@ const HelperRow = ({
|
|
|
186
186
|
}
|
|
187
187
|
>
|
|
188
188
|
{bottomMessage && (
|
|
189
|
-
<
|
|
189
|
+
<BodySmall weight="Regular" color={bottomMessageColor}>
|
|
190
190
|
{bottomMessage}
|
|
191
|
-
</
|
|
191
|
+
</BodySmall>
|
|
192
192
|
)}
|
|
193
193
|
{counterLimit && (
|
|
194
|
-
<
|
|
194
|
+
<BodySmall
|
|
195
195
|
weight="Regular"
|
|
196
196
|
color="grey-700"
|
|
197
|
-
>{`${valueCount} / ${counterLimit}`}</
|
|
197
|
+
>{`${valueCount} / ${counterLimit}`}</BodySmall>
|
|
198
198
|
)}
|
|
199
199
|
</View>
|
|
200
200
|
);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import Svg, { Path } from 'react-native-svg';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { IOColors } from '../../core';
|
|
4
|
+
|
|
5
|
+
export const LeftArrow = ({ color = IOColors.white }: { color?: string }) => (
|
|
6
|
+
<Svg fill="none" >
|
|
7
|
+
<Path
|
|
8
|
+
d="M12.6955 15.2C14.8289 13.6 14.8289 10.4 12.6955 8.8L0.962204 0V24L12.6955 15.2Z"
|
|
9
|
+
fill={color}
|
|
10
|
+
/>
|
|
11
|
+
</Svg>
|
|
12
|
+
);
|
|
13
|
+
export const RightArrow = ({ color = IOColors.white }: { color?: string }) => (
|
|
14
|
+
<Svg fill={color}>
|
|
15
|
+
<Path
|
|
16
|
+
d="M2.30448 15.2031C0.171145 13.6031 0.171145 10.4031 2.30448 8.80314L14.0378 0.00314331V24.0031L2.30448 15.2031Z"
|
|
17
|
+
fill={color}
|
|
18
|
+
/>
|
|
19
|
+
</Svg>
|
|
20
|
+
);
|
|
21
|
+
export const BottomArrow = ({ color = IOColors.white }: { color?: string }) => (
|
|
22
|
+
<Svg fill={color}>
|
|
23
|
+
<Path
|
|
24
|
+
d="M15.2 2.26667C13.6 0.133334 10.4 0.133333 8.8 2.26667L0 14L24 14L15.2 2.26667Z"
|
|
25
|
+
fill={color}
|
|
26
|
+
/>
|
|
27
|
+
</Svg>
|
|
28
|
+
);
|
|
29
|
+
export const TopArrow = ({ color = IOColors.white }: { color?: string }) => (
|
|
30
|
+
<Svg fill={color}>
|
|
31
|
+
<Path
|
|
32
|
+
d="M15.2 11.7333C13.6 13.8667 10.4 13.8667 8.8 11.7333L0 0L24 0L15.2 11.7333Z"
|
|
33
|
+
fill={color}
|
|
34
|
+
/>
|
|
35
|
+
</Svg>
|
|
36
|
+
);
|