@pagopa/io-app-design-system 4.4.1 → 5.0.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/Advice/__test__/__snapshots__/advice.test.tsx.snap +1 -1
- package/lib/commonjs/components/accordion/index.js +0 -11
- package/lib/commonjs/components/accordion/index.js.map +1 -1
- package/lib/commonjs/components/badge/Badge.js +4 -4
- package/lib/commonjs/components/badge/Badge.js.map +1 -1
- package/lib/commonjs/components/badge/__test__/__snapshots__/badge.test.tsx.snap +1 -1
- package/lib/commonjs/components/banner/Banner.js +4 -4
- package/lib/commonjs/components/banner/Banner.js.map +1 -1
- package/lib/commonjs/components/banner/__test__/__snapshots__/banner.test.tsx.snap +3 -3
- package/lib/commonjs/components/buttons/ButtonLink.js +25 -32
- package/lib/commonjs/components/buttons/ButtonLink.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonOutline.js +18 -86
- package/lib/commonjs/components/buttons/ButtonOutline.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonSolid.js +9 -53
- package/lib/commonjs/components/buttons/ButtonSolid.js.map +1 -1
- package/lib/commonjs/components/buttons/IconButton.js +6 -36
- package/lib/commonjs/components/buttons/IconButton.js.map +1 -1
- package/lib/commonjs/components/buttons/IconButtonContained.js +5 -50
- package/lib/commonjs/components/buttons/IconButtonContained.js.map +1 -1
- package/lib/commonjs/components/buttons/IconButtonSolid.js +5 -36
- package/lib/commonjs/components/buttons/IconButtonSolid.js.map +1 -1
- package/lib/commonjs/components/buttons/__test__/__snapshots__/button.test.tsx.snap +29 -27
- package/lib/commonjs/components/checkbox/AnimatedCheckbox.js +5 -15
- package/lib/commonjs/components/checkbox/AnimatedCheckbox.js.map +1 -1
- package/lib/commonjs/components/checkbox/AnimatedMessageCheckbox.js +2 -9
- package/lib/commonjs/components/checkbox/AnimatedMessageCheckbox.js.map +1 -1
- package/lib/commonjs/components/layout/FooterActions.js +1 -5
- package/lib/commonjs/components/layout/FooterActions.js.map +1 -1
- package/lib/commonjs/components/layout/HeaderSecondLevel.js +3 -3
- package/lib/commonjs/components/layout/HeaderSecondLevel.js.map +1 -1
- package/lib/commonjs/components/layout/ModalBSHeader.js +3 -15
- package/lib/commonjs/components/layout/ModalBSHeader.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemNav.js +18 -9
- package/lib/commonjs/components/listitems/ListItemNav.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemNavAlert.js +1 -4
- package/lib/commonjs/components/listitems/ListItemNavAlert.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemTransaction.js +2 -4
- package/lib/commonjs/components/listitems/ListItemTransaction.js.map +1 -1
- package/lib/commonjs/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +31 -35
- package/lib/commonjs/components/modules/ModuleIDP.js +4 -5
- package/lib/commonjs/components/modules/ModuleIDP.js.map +1 -1
- package/lib/commonjs/components/numberpad/NumberButton.js +3 -18
- package/lib/commonjs/components/numberpad/NumberButton.js.map +1 -1
- package/lib/commonjs/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +10 -10
- package/lib/commonjs/components/radio/AnimatedRadio.js +4 -14
- package/lib/commonjs/components/radio/AnimatedRadio.js.map +1 -1
- package/lib/commonjs/components/searchInput/SearchInput.js +6 -10
- package/lib/commonjs/components/searchInput/SearchInput.js.map +1 -1
- package/lib/commonjs/components/stepper/Stepper.js +1 -10
- package/lib/commonjs/components/stepper/Stepper.js.map +1 -1
- package/lib/commonjs/components/switch/NativeSwitch.js +2 -15
- package/lib/commonjs/components/switch/NativeSwitch.js.map +1 -1
- package/lib/commonjs/components/tabs/TabItem.js +6 -46
- package/lib/commonjs/components/tabs/TabItem.js.map +1 -1
- package/lib/commonjs/components/tag/Tag.js +4 -4
- package/lib/commonjs/components/tag/Tag.js.map +1 -1
- package/lib/commonjs/components/textInput/TextInputBase.js +10 -20
- package/lib/commonjs/components/textInput/TextInputBase.js.map +1 -1
- package/lib/commonjs/components/typography/Body.js +4 -6
- package/lib/commonjs/components/typography/Body.js.map +1 -1
- package/lib/commonjs/components/typography/BodySmall.js +3 -3
- package/lib/commonjs/components/typography/BodySmall.js.map +1 -1
- package/lib/commonjs/components/typography/ButtonText.js +6 -7
- package/lib/commonjs/components/typography/ButtonText.js.map +1 -1
- package/lib/commonjs/components/typography/Caption.js +6 -12
- package/lib/commonjs/components/typography/Caption.js.map +1 -1
- package/lib/commonjs/components/typography/H1.js +6 -13
- package/lib/commonjs/components/typography/H1.js.map +1 -1
- package/lib/commonjs/components/typography/H2.js +8 -17
- package/lib/commonjs/components/typography/H2.js.map +1 -1
- package/lib/commonjs/components/typography/H3.js +4 -8
- package/lib/commonjs/components/typography/H3.js.map +1 -1
- package/lib/commonjs/components/typography/H4.js +7 -14
- package/lib/commonjs/components/typography/H4.js.map +1 -1
- package/lib/commonjs/components/typography/H5.js +5 -10
- package/lib/commonjs/components/typography/H5.js.map +1 -1
- package/lib/commonjs/components/typography/H6.js +7 -10
- package/lib/commonjs/components/typography/H6.js.map +1 -1
- package/lib/commonjs/components/typography/Hero.js +8 -17
- package/lib/commonjs/components/typography/Hero.js.map +1 -1
- package/lib/commonjs/components/typography/LabelMini.js +4 -6
- package/lib/commonjs/components/typography/LabelMini.js.map +1 -1
- package/lib/commonjs/components/typography/__test__/__snapshots__/ComposedBodyFromArray.test.tsx.snap +42 -42
- package/lib/commonjs/components/typography/__test__/__snapshots__/typography.test.tsx.snap +26 -26
- package/lib/commonjs/components/typography/markdown/MdH1.js +3 -3
- package/lib/commonjs/components/typography/markdown/MdH1.js.map +1 -1
- package/lib/commonjs/components/typography/markdown/MdH2.js +3 -3
- package/lib/commonjs/components/typography/markdown/MdH2.js.map +1 -1
- package/lib/commonjs/components/typography/markdown/MdH3.js +3 -3
- package/lib/commonjs/components/typography/markdown/MdH3.js.map +1 -1
- package/lib/commonjs/core/IOColors.js +1 -8
- package/lib/commonjs/core/IOColors.js.map +1 -1
- package/lib/commonjs/core/IODSExperimentalContextProvider.js +4 -3
- package/lib/commonjs/core/IODSExperimentalContextProvider.js.map +1 -1
- package/lib/commonjs/core/IONewTypefaceContextProvider.js +33 -0
- package/lib/commonjs/core/IONewTypefaceContextProvider.js.map +1 -0
- package/lib/commonjs/core/IOStyles.js +1 -49
- package/lib/commonjs/core/IOStyles.js.map +1 -1
- package/lib/commonjs/core/IOThemeContextProvider.js +4 -15
- package/lib/commonjs/core/IOThemeContextProvider.js.map +1 -1
- package/lib/commonjs/core/index.js +11 -0
- package/lib/commonjs/core/index.js.map +1 -1
- package/lib/module/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +1 -1
- package/lib/module/components/accordion/index.js +0 -1
- package/lib/module/components/accordion/index.js.map +1 -1
- package/lib/module/components/badge/Badge.js +5 -5
- package/lib/module/components/badge/Badge.js.map +1 -1
- package/lib/module/components/badge/__test__/__snapshots__/badge.test.tsx.snap +1 -1
- package/lib/module/components/banner/Banner.js +5 -5
- package/lib/module/components/banner/Banner.js.map +1 -1
- package/lib/module/components/banner/__test__/__snapshots__/banner.test.tsx.snap +3 -3
- package/lib/module/components/buttons/ButtonLink.js +28 -35
- package/lib/module/components/buttons/ButtonLink.js.map +1 -1
- package/lib/module/components/buttons/ButtonOutline.js +19 -87
- package/lib/module/components/buttons/ButtonOutline.js.map +1 -1
- package/lib/module/components/buttons/ButtonSolid.js +10 -54
- package/lib/module/components/buttons/ButtonSolid.js.map +1 -1
- package/lib/module/components/buttons/IconButton.js +6 -37
- package/lib/module/components/buttons/IconButton.js.map +1 -1
- package/lib/module/components/buttons/IconButtonContained.js +6 -51
- package/lib/module/components/buttons/IconButtonContained.js.map +1 -1
- package/lib/module/components/buttons/IconButtonSolid.js +6 -37
- package/lib/module/components/buttons/IconButtonSolid.js.map +1 -1
- package/lib/module/components/buttons/__test__/__snapshots__/button.test.tsx.snap +29 -27
- package/lib/module/components/checkbox/AnimatedCheckbox.js +6 -16
- package/lib/module/components/checkbox/AnimatedCheckbox.js.map +1 -1
- package/lib/module/components/checkbox/AnimatedMessageCheckbox.js +3 -10
- package/lib/module/components/checkbox/AnimatedMessageCheckbox.js.map +1 -1
- package/lib/module/components/layout/FooterActions.js +2 -6
- package/lib/module/components/layout/FooterActions.js.map +1 -1
- package/lib/module/components/layout/HeaderSecondLevel.js +4 -4
- package/lib/module/components/layout/HeaderSecondLevel.js.map +1 -1
- package/lib/module/components/layout/ModalBSHeader.js +5 -17
- package/lib/module/components/layout/ModalBSHeader.js.map +1 -1
- package/lib/module/components/listitems/ListItemNav.js +19 -10
- package/lib/module/components/listitems/ListItemNav.js.map +1 -1
- package/lib/module/components/listitems/ListItemNavAlert.js +2 -5
- package/lib/module/components/listitems/ListItemNavAlert.js.map +1 -1
- package/lib/module/components/listitems/ListItemTransaction.js +3 -5
- package/lib/module/components/listitems/ListItemTransaction.js.map +1 -1
- package/lib/module/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +31 -35
- package/lib/module/components/modules/ModuleIDP.js +4 -5
- package/lib/module/components/modules/ModuleIDP.js.map +1 -1
- package/lib/module/components/numberpad/NumberButton.js +5 -20
- package/lib/module/components/numberpad/NumberButton.js.map +1 -1
- package/lib/module/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +10 -10
- package/lib/module/components/radio/AnimatedRadio.js +5 -15
- package/lib/module/components/radio/AnimatedRadio.js.map +1 -1
- package/lib/module/components/searchInput/SearchInput.js +7 -11
- package/lib/module/components/searchInput/SearchInput.js.map +1 -1
- package/lib/module/components/stepper/Stepper.js +2 -11
- package/lib/module/components/stepper/Stepper.js.map +1 -1
- package/lib/module/components/switch/NativeSwitch.js +3 -16
- package/lib/module/components/switch/NativeSwitch.js.map +1 -1
- package/lib/module/components/tabs/TabItem.js +7 -47
- package/lib/module/components/tabs/TabItem.js.map +1 -1
- package/lib/module/components/tag/Tag.js +5 -5
- package/lib/module/components/tag/Tag.js.map +1 -1
- package/lib/module/components/textInput/TextInputBase.js +11 -21
- package/lib/module/components/textInput/TextInputBase.js.map +1 -1
- package/lib/module/components/typography/Body.js +5 -7
- package/lib/module/components/typography/Body.js.map +1 -1
- package/lib/module/components/typography/BodySmall.js +4 -4
- package/lib/module/components/typography/BodySmall.js.map +1 -1
- package/lib/module/components/typography/ButtonText.js +7 -8
- package/lib/module/components/typography/ButtonText.js.map +1 -1
- package/lib/module/components/typography/Caption.js +6 -12
- package/lib/module/components/typography/Caption.js.map +1 -1
- package/lib/module/components/typography/H1.js +6 -13
- package/lib/module/components/typography/H1.js.map +1 -1
- package/lib/module/components/typography/H2.js +8 -17
- package/lib/module/components/typography/H2.js.map +1 -1
- package/lib/module/components/typography/H3.js +4 -8
- package/lib/module/components/typography/H3.js.map +1 -1
- package/lib/module/components/typography/H4.js +7 -14
- package/lib/module/components/typography/H4.js.map +1 -1
- package/lib/module/components/typography/H5.js +6 -11
- package/lib/module/components/typography/H5.js.map +1 -1
- package/lib/module/components/typography/H6.js +7 -10
- package/lib/module/components/typography/H6.js.map +1 -1
- package/lib/module/components/typography/Hero.js +8 -17
- package/lib/module/components/typography/Hero.js.map +1 -1
- package/lib/module/components/typography/LabelMini.js +5 -7
- package/lib/module/components/typography/LabelMini.js.map +1 -1
- package/lib/module/components/typography/__test__/__snapshots__/ComposedBodyFromArray.test.tsx.snap +42 -42
- package/lib/module/components/typography/__test__/__snapshots__/typography.test.tsx.snap +26 -26
- package/lib/module/components/typography/markdown/MdH1.js +4 -4
- package/lib/module/components/typography/markdown/MdH1.js.map +1 -1
- package/lib/module/components/typography/markdown/MdH2.js +4 -4
- package/lib/module/components/typography/markdown/MdH2.js.map +1 -1
- package/lib/module/components/typography/markdown/MdH3.js +4 -4
- package/lib/module/components/typography/markdown/MdH3.js.map +1 -1
- package/lib/module/core/IOColors.js +0 -6
- package/lib/module/core/IOColors.js.map +1 -1
- package/lib/module/core/IODSExperimentalContextProvider.js +2 -2
- package/lib/module/core/IODSExperimentalContextProvider.js.map +1 -1
- package/lib/module/core/IONewTypefaceContextProvider.js +22 -0
- package/lib/module/core/IONewTypefaceContextProvider.js.map +1 -0
- package/lib/module/core/IOStyles.js +0 -46
- package/lib/module/core/IOStyles.js.map +1 -1
- package/lib/module/core/IOThemeContextProvider.js +3 -12
- package/lib/module/core/IOThemeContextProvider.js.map +1 -1
- package/lib/module/core/index.js +1 -0
- package/lib/module/core/index.js.map +1 -1
- package/lib/typescript/components/accordion/index.d.ts +0 -1
- package/lib/typescript/components/accordion/index.d.ts.map +1 -1
- package/lib/typescript/components/banner/Banner.d.ts.map +1 -1
- package/lib/typescript/components/buttons/ButtonLink.d.ts.map +1 -1
- package/lib/typescript/components/buttons/ButtonOutline.d.ts.map +1 -1
- package/lib/typescript/components/buttons/ButtonSolid.d.ts.map +1 -1
- 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/IconButtonSolid.d.ts.map +1 -1
- package/lib/typescript/components/checkbox/AnimatedCheckbox.d.ts.map +1 -1
- package/lib/typescript/components/checkbox/AnimatedMessageCheckbox.d.ts.map +1 -1
- package/lib/typescript/components/layout/FooterActions.d.ts.map +1 -1
- package/lib/typescript/components/layout/HeaderSecondLevel.d.ts.map +1 -1
- package/lib/typescript/components/layout/ModalBSHeader.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemNav.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemNavAlert.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemTransaction.d.ts.map +1 -1
- package/lib/typescript/components/modules/ModuleIDP.d.ts.map +1 -1
- package/lib/typescript/components/numberpad/NumberButton.d.ts.map +1 -1
- package/lib/typescript/components/radio/AnimatedRadio.d.ts.map +1 -1
- package/lib/typescript/components/searchInput/SearchInput.d.ts.map +1 -1
- package/lib/typescript/components/stepper/Stepper.d.ts.map +1 -1
- package/lib/typescript/components/switch/NativeSwitch.d.ts.map +1 -1
- package/lib/typescript/components/tabs/TabItem.d.ts.map +1 -1
- package/lib/typescript/components/textInput/TextInputBase.d.ts.map +1 -1
- package/lib/typescript/components/typography/Body.d.ts.map +1 -1
- package/lib/typescript/components/typography/ButtonText.d.ts.map +1 -1
- package/lib/typescript/components/typography/Caption.d.ts.map +1 -1
- package/lib/typescript/components/typography/H1.d.ts.map +1 -1
- package/lib/typescript/components/typography/H2.d.ts +0 -3
- package/lib/typescript/components/typography/H2.d.ts.map +1 -1
- package/lib/typescript/components/typography/H3.d.ts.map +1 -1
- package/lib/typescript/components/typography/H4.d.ts.map +1 -1
- package/lib/typescript/components/typography/H5.d.ts.map +1 -1
- package/lib/typescript/components/typography/H6.d.ts.map +1 -1
- package/lib/typescript/components/typography/Hero.d.ts.map +1 -1
- package/lib/typescript/components/typography/LabelMini.d.ts.map +1 -1
- package/lib/typescript/core/IOColors.d.ts +0 -1
- package/lib/typescript/core/IOColors.d.ts.map +1 -1
- package/lib/typescript/core/IODSExperimentalContextProvider.d.ts.map +1 -1
- package/lib/typescript/core/IONewTypefaceContextProvider.d.ts +16 -0
- package/lib/typescript/core/IONewTypefaceContextProvider.d.ts.map +1 -0
- package/lib/typescript/core/IOStyles.d.ts +2 -32
- package/lib/typescript/core/IOStyles.d.ts.map +1 -1
- package/lib/typescript/core/IOThemeContextProvider.d.ts +0 -4
- package/lib/typescript/core/IOThemeContextProvider.d.ts.map +1 -1
- package/lib/typescript/core/index.d.ts +1 -0
- package/lib/typescript/core/index.d.ts.map +1 -1
- package/lib/typescript/utils/fonts.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +1 -1
- package/src/components/accordion/index.tsx +0 -1
- package/src/components/badge/Badge.tsx +3 -3
- package/src/components/badge/__test__/__snapshots__/badge.test.tsx.snap +1 -1
- package/src/components/banner/Banner.tsx +3 -4
- package/src/components/banner/__test__/__snapshots__/banner.test.tsx.snap +3 -3
- package/src/components/buttons/ButtonLink.tsx +38 -41
- package/src/components/buttons/ButtonOutline.tsx +31 -103
- package/src/components/buttons/ButtonSolid.tsx +11 -69
- package/src/components/buttons/IconButton.tsx +5 -49
- package/src/components/buttons/IconButtonContained.tsx +11 -58
- package/src/components/buttons/IconButtonSolid.tsx +9 -47
- package/src/components/buttons/__test__/__snapshots__/button.test.tsx.snap +29 -27
- package/src/components/checkbox/AnimatedCheckbox.tsx +6 -34
- package/src/components/checkbox/AnimatedMessageCheckbox.tsx +3 -14
- package/src/components/layout/FooterActions.tsx +1 -4
- package/src/components/layout/HeaderSecondLevel.tsx +4 -3
- package/src/components/layout/ModalBSHeader.tsx +11 -29
- package/src/components/listitems/ListItemNav.tsx +44 -31
- package/src/components/listitems/ListItemNavAlert.tsx +1 -4
- package/src/components/listitems/ListItemTransaction.tsx +2 -6
- package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +31 -35
- package/src/components/modules/ModuleIDP.tsx +3 -8
- package/src/components/numberpad/NumberButton.tsx +4 -27
- package/src/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +10 -10
- package/src/components/radio/AnimatedRadio.tsx +5 -33
- package/src/components/searchInput/SearchInput.tsx +11 -20
- package/src/components/stepper/Stepper.tsx +2 -20
- package/src/components/switch/NativeSwitch.tsx +3 -21
- package/src/components/tabs/TabItem.tsx +14 -61
- package/src/components/tag/Tag.tsx +3 -3
- package/src/components/textInput/TextInputBase.tsx +19 -34
- package/src/components/typography/Body.tsx +4 -11
- package/src/components/typography/BodySmall.tsx +3 -3
- package/src/components/typography/ButtonText.tsx +6 -8
- package/src/components/typography/Caption.tsx +6 -13
- package/src/components/typography/H1.tsx +6 -14
- package/src/components/typography/H2.tsx +8 -18
- package/src/components/typography/H3.tsx +4 -8
- package/src/components/typography/H4.tsx +7 -15
- package/src/components/typography/H5.tsx +6 -14
- package/src/components/typography/H6.tsx +7 -11
- package/src/components/typography/Hero.tsx +8 -18
- package/src/components/typography/LabelMini.tsx +4 -11
- package/src/components/typography/__test__/__snapshots__/ComposedBodyFromArray.test.tsx.snap +42 -42
- package/src/components/typography/__test__/__snapshots__/typography.test.tsx.snap +26 -26
- package/src/components/typography/markdown/MdH1.tsx +3 -3
- package/src/components/typography/markdown/MdH2.tsx +3 -3
- package/src/components/typography/markdown/MdH3.tsx +3 -3
- package/src/core/IOColors.ts +0 -7
- package/src/core/IODSExperimentalContextProvider.tsx +2 -2
- package/src/core/IONewTypefaceContextProvider.tsx +37 -0
- package/src/core/IOStyles.ts +0 -52
- package/src/core/IOThemeContextProvider.tsx +3 -16
- package/src/core/index.ts +1 -0
- package/lib/commonjs/components/accordion/RawAccordion.js +0 -93
- package/lib/commonjs/components/accordion/RawAccordion.js.map +0 -1
- package/lib/module/components/accordion/RawAccordion.js +0 -86
- package/lib/module/components/accordion/RawAccordion.js.map +0 -1
- package/lib/typescript/components/accordion/RawAccordion.d.ts +0 -17
- package/lib/typescript/components/accordion/RawAccordion.d.ts.map +0 -1
- package/src/components/accordion/RawAccordion.tsx +0 -116
|
@@ -6,7 +6,8 @@ import {
|
|
|
6
6
|
IOListItemStyles,
|
|
7
7
|
IOListItemVisualParams,
|
|
8
8
|
IOSelectionListItemVisualParams,
|
|
9
|
-
|
|
9
|
+
IOSpacer,
|
|
10
|
+
IOVisualCostants,
|
|
10
11
|
useIOTheme
|
|
11
12
|
} from "../../core";
|
|
12
13
|
import { useListItemAnimation } from "../../hooks";
|
|
@@ -95,8 +96,7 @@ export const ListItemNav = ({
|
|
|
95
96
|
useListItemAnimation();
|
|
96
97
|
const theme = useIOTheme();
|
|
97
98
|
|
|
98
|
-
const { dynamicFontScale,
|
|
99
|
-
useIOFontDynamicScale();
|
|
99
|
+
const { dynamicFontScale, hugeFontEnabled } = useIOFontDynamicScale();
|
|
100
100
|
|
|
101
101
|
const listItemNavContent = (
|
|
102
102
|
<>
|
|
@@ -176,16 +176,7 @@ export const ListItemNav = ({
|
|
|
176
176
|
style={[IOListItemStyles.listItem, backgroundAnimatedStyle]}
|
|
177
177
|
>
|
|
178
178
|
<Animated.View
|
|
179
|
-
style={[
|
|
180
|
-
IOListItemStyles.listItemInner,
|
|
181
|
-
{
|
|
182
|
-
columnGap:
|
|
183
|
-
IOListItemVisualParams.iconMargin *
|
|
184
|
-
dynamicFontScale *
|
|
185
|
-
spacingScaleMultiplier
|
|
186
|
-
},
|
|
187
|
-
scaleAnimatedStyle
|
|
188
|
-
]}
|
|
179
|
+
style={[IOListItemStyles.listItemInner, scaleAnimatedStyle]}
|
|
189
180
|
>
|
|
190
181
|
{/* Possibile graphical assets
|
|
191
182
|
- Icon
|
|
@@ -193,28 +184,50 @@ export const ListItemNav = ({
|
|
|
193
184
|
- Avatar
|
|
194
185
|
*/}
|
|
195
186
|
{icon && !hugeFontEnabled && (
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
187
|
+
<>
|
|
188
|
+
<Icon
|
|
189
|
+
allowFontScaling
|
|
190
|
+
name={icon}
|
|
191
|
+
color={iconColor}
|
|
192
|
+
size={IOListItemVisualParams.iconSize}
|
|
193
|
+
/>
|
|
194
|
+
<HSpacer
|
|
195
|
+
allowScaleSpacing
|
|
196
|
+
size={IOVisualCostants.iconMargin as IOSpacer}
|
|
197
|
+
/>
|
|
198
|
+
</>
|
|
202
199
|
)}
|
|
203
200
|
{paymentLogoUri && (
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
201
|
+
<>
|
|
202
|
+
<Image
|
|
203
|
+
accessibilityIgnoresInvertColors
|
|
204
|
+
source={{ uri: paymentLogoUri }}
|
|
205
|
+
style={{
|
|
206
|
+
width:
|
|
207
|
+
IOSelectionListItemVisualParams.iconSize * dynamicFontScale,
|
|
208
|
+
height:
|
|
209
|
+
IOSelectionListItemVisualParams.iconSize * dynamicFontScale
|
|
210
|
+
}}
|
|
211
|
+
/>
|
|
212
|
+
<HSpacer
|
|
213
|
+
allowScaleSpacing
|
|
214
|
+
size={IOVisualCostants.iconMargin as IOSpacer}
|
|
215
|
+
/>
|
|
216
|
+
</>
|
|
217
|
+
)}
|
|
218
|
+
{avatar && (
|
|
219
|
+
<>
|
|
220
|
+
<Avatar size="small" {...avatar} />
|
|
221
|
+
<HSpacer
|
|
222
|
+
allowScaleSpacing
|
|
223
|
+
size={IOVisualCostants.iconMargin as IOSpacer}
|
|
224
|
+
/>
|
|
225
|
+
</>
|
|
214
226
|
)}
|
|
215
|
-
{avatar && <Avatar size="small" {...avatar} />}
|
|
216
227
|
|
|
217
|
-
<View style={
|
|
228
|
+
<View style={{ flexGrow: 1, flexShrink: 1 }}>
|
|
229
|
+
{listItemNavContent}
|
|
230
|
+
</View>
|
|
218
231
|
{loading && <LoadingSpinner color={interactiveColor} />}
|
|
219
232
|
{!loading && !hideChevron && (
|
|
220
233
|
<Icon
|
|
@@ -5,7 +5,6 @@ import {
|
|
|
5
5
|
IOListItemStyles,
|
|
6
6
|
IOListItemVisualParams,
|
|
7
7
|
IOStyles,
|
|
8
|
-
useIOExperimentalDesign,
|
|
9
8
|
useIOTheme
|
|
10
9
|
} from "../../core";
|
|
11
10
|
import { useListItemAnimation } from "../../hooks";
|
|
@@ -38,7 +37,6 @@ export const ListItemNavAlert = ({
|
|
|
38
37
|
const { onPressIn, onPressOut, scaleAnimatedStyle, backgroundAnimatedStyle } =
|
|
39
38
|
useListItemAnimation();
|
|
40
39
|
const { dynamicFontScale, spacingScaleMultiplier } = useIOFontDynamicScale();
|
|
41
|
-
const { isExperimental } = useIOExperimentalDesign();
|
|
42
40
|
|
|
43
41
|
const componentValueToAccessibility = typeof value === "string" ? value : "";
|
|
44
42
|
const componentDescriptionToAccessibility =
|
|
@@ -71,7 +69,7 @@ export const ListItemNavAlert = ({
|
|
|
71
69
|
</>
|
|
72
70
|
);
|
|
73
71
|
|
|
74
|
-
const iconColor =
|
|
72
|
+
const iconColor = theme["interactiveElem-default"];
|
|
75
73
|
|
|
76
74
|
return (
|
|
77
75
|
<Pressable
|
|
@@ -111,7 +109,6 @@ export const ListItemNavAlert = ({
|
|
|
111
109
|
/>
|
|
112
110
|
)}
|
|
113
111
|
<View style={IOStyles.flex}>{listItemNavAlertContent}</View>
|
|
114
|
-
|
|
115
112
|
<Icon
|
|
116
113
|
allowFontScaling
|
|
117
114
|
name="chevronRightListItem"
|
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
IOListItemVisualParams,
|
|
10
10
|
IOStyles,
|
|
11
11
|
IOVisualCostants,
|
|
12
|
-
useIOExperimentalDesign,
|
|
13
12
|
useIOTheme
|
|
14
13
|
} from "../../core";
|
|
15
14
|
|
|
@@ -114,16 +113,13 @@ export const ListItemTransaction = ({
|
|
|
114
113
|
numberOfLines = 2,
|
|
115
114
|
accessible
|
|
116
115
|
}: ListItemTransaction) => {
|
|
117
|
-
const { isExperimental } = useIOExperimentalDesign();
|
|
118
116
|
const theme = useIOTheme();
|
|
119
117
|
|
|
120
118
|
if (isLoading) {
|
|
121
119
|
return <SkeletonComponent />;
|
|
122
120
|
}
|
|
123
121
|
|
|
124
|
-
const interactiveColor: IOColors =
|
|
125
|
-
? theme["interactiveElem-default"]
|
|
126
|
-
: "blue";
|
|
122
|
+
const interactiveColor: IOColors = theme["interactiveElem-default"];
|
|
127
123
|
|
|
128
124
|
const amountColorDefault: IOColors = theme["textBody-default"];
|
|
129
125
|
const amountColorRefund: IOColors = theme.successText;
|
|
@@ -156,7 +152,7 @@ export const ListItemTransaction = ({
|
|
|
156
152
|
</BodySmall>
|
|
157
153
|
</View>
|
|
158
154
|
</HStack>
|
|
159
|
-
<HStack style={{ alignItems: "center" }}>
|
|
155
|
+
<HStack space={4} style={{ alignItems: "center" }}>
|
|
160
156
|
{badge ? (
|
|
161
157
|
<Badge variant={badge?.variant} text={badge?.text} />
|
|
162
158
|
) : (
|
|
@@ -530,9 +530,6 @@ exports[`Test List Item Components - Experimental Enabled ListItemNav Snapshot
|
|
|
530
530
|
"flexDirection": "row",
|
|
531
531
|
"justifyContent": "space-between",
|
|
532
532
|
},
|
|
533
|
-
{
|
|
534
|
-
"columnGap": 12,
|
|
535
|
-
},
|
|
536
533
|
{
|
|
537
534
|
"transform": [
|
|
538
535
|
{
|
|
@@ -546,7 +543,8 @@ exports[`Test List Item Components - Experimental Enabled ListItemNav Snapshot
|
|
|
546
543
|
<View
|
|
547
544
|
style={
|
|
548
545
|
{
|
|
549
|
-
"
|
|
546
|
+
"flexGrow": 1,
|
|
547
|
+
"flexShrink": 1,
|
|
550
548
|
}
|
|
551
549
|
}
|
|
552
550
|
>
|
|
@@ -1760,7 +1758,7 @@ exports[`Test List Item Components ListItemAction Snapshot 1`] = `
|
|
|
1760
1758
|
{},
|
|
1761
1759
|
{
|
|
1762
1760
|
"color": "#0B3EE3",
|
|
1763
|
-
"fontFamily": "
|
|
1761
|
+
"fontFamily": "Titillio",
|
|
1764
1762
|
"fontSize": 16,
|
|
1765
1763
|
"fontStyle": "normal",
|
|
1766
1764
|
"fontWeight": "600",
|
|
@@ -1852,7 +1850,7 @@ exports[`Test List Item Components ListItemIDP Snapshot 1`] = `
|
|
|
1852
1850
|
},
|
|
1853
1851
|
{
|
|
1854
1852
|
"color": "#555C70",
|
|
1855
|
-
"fontFamily": "
|
|
1853
|
+
"fontFamily": "Titillio",
|
|
1856
1854
|
"fontSize": 12,
|
|
1857
1855
|
"fontStyle": "normal",
|
|
1858
1856
|
"fontWeight": "600",
|
|
@@ -1921,7 +1919,7 @@ exports[`Test List Item Components ListItemInfo Snapshot 1`] = `
|
|
|
1921
1919
|
{},
|
|
1922
1920
|
{
|
|
1923
1921
|
"color": "#555C70",
|
|
1924
|
-
"fontFamily": "
|
|
1922
|
+
"fontFamily": "Titillio",
|
|
1925
1923
|
"fontSize": 14,
|
|
1926
1924
|
"fontStyle": "normal",
|
|
1927
1925
|
"fontWeight": "400",
|
|
@@ -1942,8 +1940,8 @@ exports[`Test List Item Components ListItemInfo Snapshot 1`] = `
|
|
|
1942
1940
|
{},
|
|
1943
1941
|
{
|
|
1944
1942
|
"color": "#0E0F13",
|
|
1945
|
-
"fontFamily": "
|
|
1946
|
-
"fontSize":
|
|
1943
|
+
"fontFamily": "Titillio",
|
|
1944
|
+
"fontSize": 16,
|
|
1947
1945
|
"fontStyle": "normal",
|
|
1948
1946
|
"fontWeight": "600",
|
|
1949
1947
|
"lineHeight": 24,
|
|
@@ -2047,7 +2045,7 @@ exports[`Test List Item Components ListItemInfoCopy Snapshot 1`] = `
|
|
|
2047
2045
|
{},
|
|
2048
2046
|
{
|
|
2049
2047
|
"color": "#555C70",
|
|
2050
|
-
"fontFamily": "
|
|
2048
|
+
"fontFamily": "Titillio",
|
|
2051
2049
|
"fontSize": 14,
|
|
2052
2050
|
"fontStyle": "normal",
|
|
2053
2051
|
"fontWeight": "400",
|
|
@@ -2068,8 +2066,8 @@ exports[`Test List Item Components ListItemInfoCopy Snapshot 1`] = `
|
|
|
2068
2066
|
{},
|
|
2069
2067
|
{
|
|
2070
2068
|
"color": "#0B3EE3",
|
|
2071
|
-
"fontFamily": "
|
|
2072
|
-
"fontSize":
|
|
2069
|
+
"fontFamily": "Titillio",
|
|
2070
|
+
"fontSize": 16,
|
|
2073
2071
|
"fontStyle": "normal",
|
|
2074
2072
|
"fontWeight": "600",
|
|
2075
2073
|
"lineHeight": 24,
|
|
@@ -2202,9 +2200,6 @@ exports[`Test List Item Components ListItemNav Snapshot 1`] = `
|
|
|
2202
2200
|
"flexDirection": "row",
|
|
2203
2201
|
"justifyContent": "space-between",
|
|
2204
2202
|
},
|
|
2205
|
-
{
|
|
2206
|
-
"columnGap": 12,
|
|
2207
|
-
},
|
|
2208
2203
|
{
|
|
2209
2204
|
"transform": [
|
|
2210
2205
|
{
|
|
@@ -2218,7 +2213,8 @@ exports[`Test List Item Components ListItemNav Snapshot 1`] = `
|
|
|
2218
2213
|
<View
|
|
2219
2214
|
style={
|
|
2220
2215
|
{
|
|
2221
|
-
"
|
|
2216
|
+
"flexGrow": 1,
|
|
2217
|
+
"flexShrink": 1,
|
|
2222
2218
|
}
|
|
2223
2219
|
}
|
|
2224
2220
|
>
|
|
@@ -2231,8 +2227,8 @@ exports[`Test List Item Components ListItemNav Snapshot 1`] = `
|
|
|
2231
2227
|
{},
|
|
2232
2228
|
{
|
|
2233
2229
|
"color": "#0E0F13",
|
|
2234
|
-
"fontFamily": "
|
|
2235
|
-
"fontSize":
|
|
2230
|
+
"fontFamily": "Titillio",
|
|
2231
|
+
"fontSize": 16,
|
|
2236
2232
|
"fontStyle": "normal",
|
|
2237
2233
|
"fontWeight": "600",
|
|
2238
2234
|
"lineHeight": 24,
|
|
@@ -2456,8 +2452,8 @@ exports[`Test List Item Components ListItemNavAlert Snapshot 1`] = `
|
|
|
2456
2452
|
{},
|
|
2457
2453
|
{
|
|
2458
2454
|
"color": "#0E0F13",
|
|
2459
|
-
"fontFamily": "
|
|
2460
|
-
"fontSize":
|
|
2455
|
+
"fontFamily": "Titillio",
|
|
2456
|
+
"fontSize": 16,
|
|
2461
2457
|
"fontStyle": "normal",
|
|
2462
2458
|
"fontWeight": "600",
|
|
2463
2459
|
"lineHeight": 24,
|
|
@@ -2488,7 +2484,7 @@ exports[`Test List Item Components ListItemNavAlert Snapshot 1`] = `
|
|
|
2488
2484
|
"borderWidth": 0,
|
|
2489
2485
|
},
|
|
2490
2486
|
{
|
|
2491
|
-
"color": "#
|
|
2487
|
+
"color": "#0B3EE3",
|
|
2492
2488
|
},
|
|
2493
2489
|
{
|
|
2494
2490
|
"flex": 0,
|
|
@@ -2497,7 +2493,7 @@ exports[`Test List Item Components ListItemNavAlert Snapshot 1`] = `
|
|
|
2497
2493
|
},
|
|
2498
2494
|
]
|
|
2499
2495
|
}
|
|
2500
|
-
tintColor="#
|
|
2496
|
+
tintColor="#0B3EE3"
|
|
2501
2497
|
vbHeight={24}
|
|
2502
2498
|
vbWidth={24}
|
|
2503
2499
|
width={24}
|
|
@@ -2619,8 +2615,8 @@ exports[`Test List Item Components ListItemRadioWithAmount Snapshot 1`] = `
|
|
|
2619
2615
|
{},
|
|
2620
2616
|
{
|
|
2621
2617
|
"color": "#0E0F13",
|
|
2622
|
-
"fontFamily": "
|
|
2623
|
-
"fontSize":
|
|
2618
|
+
"fontFamily": "Titillio",
|
|
2619
|
+
"fontSize": 16,
|
|
2624
2620
|
"fontStyle": "normal",
|
|
2625
2621
|
"fontWeight": "600",
|
|
2626
2622
|
"lineHeight": 24,
|
|
@@ -2706,7 +2702,7 @@ exports[`Test List Item Components ListItemRadioWithAmount Snapshot 1`] = `
|
|
|
2706
2702
|
{},
|
|
2707
2703
|
{
|
|
2708
2704
|
"color": "#5517E3",
|
|
2709
|
-
"fontFamily": "
|
|
2705
|
+
"fontFamily": "Titillio",
|
|
2710
2706
|
"fontSize": 14,
|
|
2711
2707
|
"fontStyle": "normal",
|
|
2712
2708
|
"fontWeight": "400",
|
|
@@ -2740,8 +2736,8 @@ exports[`Test List Item Components ListItemRadioWithAmount Snapshot 1`] = `
|
|
|
2740
2736
|
{},
|
|
2741
2737
|
{
|
|
2742
2738
|
"color": "#0B3EE3",
|
|
2743
|
-
"fontFamily": "
|
|
2744
|
-
"fontSize":
|
|
2739
|
+
"fontFamily": "Titillio",
|
|
2740
|
+
"fontSize": 16,
|
|
2745
2741
|
"fontStyle": "normal",
|
|
2746
2742
|
"fontWeight": "600",
|
|
2747
2743
|
"lineHeight": 24,
|
|
@@ -2804,7 +2800,7 @@ exports[`Test List Item Components ListItemRadioWithAmount Snapshot 1`] = `
|
|
|
2804
2800
|
"width": 24,
|
|
2805
2801
|
},
|
|
2806
2802
|
{
|
|
2807
|
-
"borderColor": "#
|
|
2803
|
+
"borderColor": "#636B82",
|
|
2808
2804
|
},
|
|
2809
2805
|
]
|
|
2810
2806
|
}
|
|
@@ -2823,7 +2819,7 @@ exports[`Test List Item Components ListItemRadioWithAmount Snapshot 1`] = `
|
|
|
2823
2819
|
"width": 24,
|
|
2824
2820
|
},
|
|
2825
2821
|
{
|
|
2826
|
-
"backgroundColor": "#
|
|
2822
|
+
"backgroundColor": "#0B3EE3",
|
|
2827
2823
|
},
|
|
2828
2824
|
{
|
|
2829
2825
|
"opacity": 1,
|
|
@@ -2992,8 +2988,8 @@ exports[`Test List Item Components ListItemRadioWithAmount Snapshot 2`] = `
|
|
|
2992
2988
|
{},
|
|
2993
2989
|
{
|
|
2994
2990
|
"color": "#0E0F13",
|
|
2995
|
-
"fontFamily": "
|
|
2996
|
-
"fontSize":
|
|
2991
|
+
"fontFamily": "Titillio",
|
|
2992
|
+
"fontSize": 16,
|
|
2997
2993
|
"fontStyle": "normal",
|
|
2998
2994
|
"fontWeight": "600",
|
|
2999
2995
|
"lineHeight": 24,
|
|
@@ -3025,8 +3021,8 @@ exports[`Test List Item Components ListItemRadioWithAmount Snapshot 2`] = `
|
|
|
3025
3021
|
{},
|
|
3026
3022
|
{
|
|
3027
3023
|
"color": "#0B3EE3",
|
|
3028
|
-
"fontFamily": "
|
|
3029
|
-
"fontSize":
|
|
3024
|
+
"fontFamily": "Titillio",
|
|
3025
|
+
"fontSize": 16,
|
|
3030
3026
|
"fontStyle": "normal",
|
|
3031
3027
|
"fontWeight": "600",
|
|
3032
3028
|
"lineHeight": 24,
|
|
@@ -3089,7 +3085,7 @@ exports[`Test List Item Components ListItemRadioWithAmount Snapshot 2`] = `
|
|
|
3089
3085
|
"width": 24,
|
|
3090
3086
|
},
|
|
3091
3087
|
{
|
|
3092
|
-
"borderColor": "#
|
|
3088
|
+
"borderColor": "#636B82",
|
|
3093
3089
|
},
|
|
3094
3090
|
]
|
|
3095
3091
|
}
|
|
@@ -3108,7 +3104,7 @@ exports[`Test List Item Components ListItemRadioWithAmount Snapshot 2`] = `
|
|
|
3108
3104
|
"width": 24,
|
|
3109
3105
|
},
|
|
3110
3106
|
{
|
|
3111
|
-
"backgroundColor": "#
|
|
3107
|
+
"backgroundColor": "#0B3EE3",
|
|
3112
3108
|
},
|
|
3113
3109
|
{
|
|
3114
3110
|
"opacity": 0,
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Image, ImageSourcePropType, StyleSheet } from "react-native";
|
|
3
|
+
import { IOListItemLogoMargin, useIONewTypeface, useIOTheme } from "../../core";
|
|
3
4
|
import { addCacheTimestampToUri } from "../../utils/image";
|
|
4
|
-
import {
|
|
5
|
-
IOListItemLogoMargin,
|
|
6
|
-
useIOExperimentalDesign,
|
|
7
|
-
useIOTheme
|
|
8
|
-
} from "../../core";
|
|
9
5
|
import { IOText } from "../typography";
|
|
10
6
|
import {
|
|
11
7
|
PressableModuleBase,
|
|
@@ -38,8 +34,7 @@ export const ModuleIDP = ({
|
|
|
38
34
|
accessibilityLabel
|
|
39
35
|
}: ModuleIDP) => {
|
|
40
36
|
const theme = useIOTheme();
|
|
41
|
-
const {
|
|
42
|
-
|
|
37
|
+
const { newTypefaceEnabled } = useIONewTypeface();
|
|
43
38
|
// eslint-disable-next-line no-console
|
|
44
39
|
const urlLogoIDP = localLogo ? localLogo : addCacheTimestampToUri(logo);
|
|
45
40
|
|
|
@@ -50,7 +45,7 @@ export const ModuleIDP = ({
|
|
|
50
45
|
withLooseSpacing={withLooseSpacing}
|
|
51
46
|
>
|
|
52
47
|
<IOText
|
|
53
|
-
font={
|
|
48
|
+
font={newTypefaceEnabled ? "Titillio" : "TitilliumSansPro"}
|
|
54
49
|
weight={"Semibold"}
|
|
55
50
|
size={12}
|
|
56
51
|
lineHeight={16}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import React, { memo, useCallback
|
|
1
|
+
import React, { memo, useCallback } from "react";
|
|
2
2
|
import { Pressable } from "react-native";
|
|
3
3
|
import Animated, {
|
|
4
4
|
interpolateColor,
|
|
5
5
|
useAnimatedStyle,
|
|
6
6
|
useReducedMotion
|
|
7
7
|
} from "react-native-reanimated";
|
|
8
|
-
import {
|
|
9
|
-
IOColors,
|
|
10
|
-
IONumberPadButtonStyles,
|
|
11
|
-
hexToRgba,
|
|
12
|
-
useIOExperimentalDesign
|
|
13
|
-
} from "../../core";
|
|
8
|
+
import { IOColors, IONumberPadButtonStyles } from "../../core";
|
|
14
9
|
import { useScaleAnimation } from "../../hooks";
|
|
15
10
|
import { H3 } from "../typography";
|
|
16
11
|
|
|
@@ -52,18 +47,6 @@ const colorMap: Record<NumberButtonVariantType, ColorMapVariant> = {
|
|
|
52
47
|
}
|
|
53
48
|
};
|
|
54
49
|
|
|
55
|
-
const legacyColorMap: Record<NumberButtonVariantType, ColorMapVariant> = {
|
|
56
|
-
light: {
|
|
57
|
-
background: IOColors["grey-100"],
|
|
58
|
-
pressed: IOColors["grey-200"],
|
|
59
|
-
foreground: "blue"
|
|
60
|
-
},
|
|
61
|
-
dark: {
|
|
62
|
-
background: hexToRgba(IOColors.black, 0.1),
|
|
63
|
-
pressed: hexToRgba(IOColors.white, 0.5),
|
|
64
|
-
foreground: "white"
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
50
|
/**
|
|
68
51
|
* Based on a `Pressable` element, it displays a number button with animations on press In and Out.
|
|
69
52
|
*
|
|
@@ -74,19 +57,13 @@ export const NumberButton = memo(
|
|
|
74
57
|
const { progress, onPressIn, onPressOut, scaleAnimatedStyle } =
|
|
75
58
|
useScaleAnimation("slight");
|
|
76
59
|
const reducedMotion = useReducedMotion();
|
|
77
|
-
const { isExperimental } = useIOExperimentalDesign();
|
|
78
|
-
|
|
79
|
-
const colors = useMemo(
|
|
80
|
-
() => (isExperimental ? colorMap[variant] : legacyColorMap[variant]),
|
|
81
|
-
[variant, isExperimental]
|
|
82
|
-
);
|
|
83
60
|
|
|
84
61
|
// Interpolate animation values from `isPressed` values
|
|
85
62
|
const pressedAnimationStyle = useAnimatedStyle(() => ({
|
|
86
63
|
backgroundColor: interpolateColor(
|
|
87
64
|
progress.value,
|
|
88
65
|
[0, 1],
|
|
89
|
-
[
|
|
66
|
+
[colorMap[variant].background, colorMap[variant].pressed]
|
|
90
67
|
)
|
|
91
68
|
}));
|
|
92
69
|
|
|
@@ -111,7 +88,7 @@ export const NumberButton = memo(
|
|
|
111
88
|
!reducedMotion && scaleAnimatedStyle
|
|
112
89
|
]}
|
|
113
90
|
>
|
|
114
|
-
<H3 color={
|
|
91
|
+
<H3 color={colorMap[variant].foreground}>{number}</H3>
|
|
115
92
|
</Animated.View>
|
|
116
93
|
</Pressable>
|
|
117
94
|
);
|
|
@@ -100,7 +100,7 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
100
100
|
{},
|
|
101
101
|
{
|
|
102
102
|
"color": "#FFFFFF",
|
|
103
|
-
"fontFamily": "
|
|
103
|
+
"fontFamily": "Titillio",
|
|
104
104
|
"fontSize": 22,
|
|
105
105
|
"fontStyle": "normal",
|
|
106
106
|
"fontWeight": "600",
|
|
@@ -181,7 +181,7 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
181
181
|
{},
|
|
182
182
|
{
|
|
183
183
|
"color": "#FFFFFF",
|
|
184
|
-
"fontFamily": "
|
|
184
|
+
"fontFamily": "Titillio",
|
|
185
185
|
"fontSize": 22,
|
|
186
186
|
"fontStyle": "normal",
|
|
187
187
|
"fontWeight": "600",
|
|
@@ -262,7 +262,7 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
262
262
|
{},
|
|
263
263
|
{
|
|
264
264
|
"color": "#FFFFFF",
|
|
265
|
-
"fontFamily": "
|
|
265
|
+
"fontFamily": "Titillio",
|
|
266
266
|
"fontSize": 22,
|
|
267
267
|
"fontStyle": "normal",
|
|
268
268
|
"fontWeight": "600",
|
|
@@ -359,7 +359,7 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
359
359
|
{},
|
|
360
360
|
{
|
|
361
361
|
"color": "#FFFFFF",
|
|
362
|
-
"fontFamily": "
|
|
362
|
+
"fontFamily": "Titillio",
|
|
363
363
|
"fontSize": 22,
|
|
364
364
|
"fontStyle": "normal",
|
|
365
365
|
"fontWeight": "600",
|
|
@@ -440,7 +440,7 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
440
440
|
{},
|
|
441
441
|
{
|
|
442
442
|
"color": "#FFFFFF",
|
|
443
|
-
"fontFamily": "
|
|
443
|
+
"fontFamily": "Titillio",
|
|
444
444
|
"fontSize": 22,
|
|
445
445
|
"fontStyle": "normal",
|
|
446
446
|
"fontWeight": "600",
|
|
@@ -521,7 +521,7 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
521
521
|
{},
|
|
522
522
|
{
|
|
523
523
|
"color": "#FFFFFF",
|
|
524
|
-
"fontFamily": "
|
|
524
|
+
"fontFamily": "Titillio",
|
|
525
525
|
"fontSize": 22,
|
|
526
526
|
"fontStyle": "normal",
|
|
527
527
|
"fontWeight": "600",
|
|
@@ -618,7 +618,7 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
618
618
|
{},
|
|
619
619
|
{
|
|
620
620
|
"color": "#FFFFFF",
|
|
621
|
-
"fontFamily": "
|
|
621
|
+
"fontFamily": "Titillio",
|
|
622
622
|
"fontSize": 22,
|
|
623
623
|
"fontStyle": "normal",
|
|
624
624
|
"fontWeight": "600",
|
|
@@ -699,7 +699,7 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
699
699
|
{},
|
|
700
700
|
{
|
|
701
701
|
"color": "#FFFFFF",
|
|
702
|
-
"fontFamily": "
|
|
702
|
+
"fontFamily": "Titillio",
|
|
703
703
|
"fontSize": 22,
|
|
704
704
|
"fontStyle": "normal",
|
|
705
705
|
"fontWeight": "600",
|
|
@@ -780,7 +780,7 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
780
780
|
{},
|
|
781
781
|
{
|
|
782
782
|
"color": "#FFFFFF",
|
|
783
|
-
"fontFamily": "
|
|
783
|
+
"fontFamily": "Titillio",
|
|
784
784
|
"fontSize": 22,
|
|
785
785
|
"fontStyle": "normal",
|
|
786
786
|
"fontWeight": "600",
|
|
@@ -1018,7 +1018,7 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
1018
1018
|
{},
|
|
1019
1019
|
{
|
|
1020
1020
|
"color": "#FFFFFF",
|
|
1021
|
-
"fontFamily": "
|
|
1021
|
+
"fontFamily": "Titillio",
|
|
1022
1022
|
"fontSize": 22,
|
|
1023
1023
|
"fontStyle": "normal",
|
|
1024
1024
|
"fontWeight": "600",
|
|
@@ -14,13 +14,9 @@ import Animated, {
|
|
|
14
14
|
withSpring,
|
|
15
15
|
withTiming
|
|
16
16
|
} from "react-native-reanimated";
|
|
17
|
-
import { useIOExperimentalDesign } from "../../core";
|
|
18
17
|
import { IOSpringValues } from "../../core/IOAnimations";
|
|
19
18
|
import { IOColors } from "../../core/IOColors";
|
|
20
|
-
import {
|
|
21
|
-
IOSelectionTickLegacyVisualParams,
|
|
22
|
-
IOSelectionTickVisualParams
|
|
23
|
-
} from "../../core/IOStyles";
|
|
19
|
+
import { IOSelectionTickVisualParams } from "../../core/IOStyles";
|
|
24
20
|
import { AnimatedTick } from "../common/AnimatedTick";
|
|
25
21
|
|
|
26
22
|
type Props = {
|
|
@@ -56,24 +52,8 @@ export const AnimatedRadio = ({
|
|
|
56
52
|
}: OwnProps) => {
|
|
57
53
|
const isChecked = checked ?? false;
|
|
58
54
|
|
|
59
|
-
const
|
|
60
|
-
const
|
|
61
|
-
IOColors[IOSelectionTickVisualParams.borderColorOffState];
|
|
62
|
-
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
63
|
-
const legacyBorderColorOffState =
|
|
64
|
-
IOColors[IOSelectionTickLegacyVisualParams.borderColorOffState];
|
|
65
|
-
const borderColorProp = isExperimental
|
|
66
|
-
? borderColorOffState
|
|
67
|
-
: legacyBorderColorOffState;
|
|
68
|
-
|
|
69
|
-
const backgroundColorOnState =
|
|
70
|
-
IOColors[IOSelectionTickVisualParams.bgColorOnState];
|
|
71
|
-
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
72
|
-
const legacyBackgroundColorOnState =
|
|
73
|
-
IOColors[IOSelectionTickLegacyVisualParams.bgColorOnState];
|
|
74
|
-
const backgroundColorProp = isExperimental
|
|
75
|
-
? backgroundColorOnState
|
|
76
|
-
: legacyBackgroundColorOnState;
|
|
55
|
+
const borderColor = IOColors[IOSelectionTickVisualParams.borderColorOffState];
|
|
56
|
+
const backgroundColor = IOColors[IOSelectionTickVisualParams.bgColorOnState];
|
|
77
57
|
|
|
78
58
|
const circleAnimationProgress = useSharedValue(checked ? 1 : 0);
|
|
79
59
|
const tickAnimationProgress = useSharedValue(checked ? 1 : 0);
|
|
@@ -121,21 +101,13 @@ export const AnimatedRadio = ({
|
|
|
121
101
|
style={radioButtonWrapperSizeStyle}
|
|
122
102
|
>
|
|
123
103
|
<View
|
|
124
|
-
style={[
|
|
125
|
-
styles.radioBorder,
|
|
126
|
-
radioButtonSizeStyle,
|
|
127
|
-
{
|
|
128
|
-
borderColor: borderColorProp
|
|
129
|
-
}
|
|
130
|
-
]}
|
|
104
|
+
style={[styles.radioBorder, radioButtonSizeStyle, { borderColor }]}
|
|
131
105
|
/>
|
|
132
106
|
<Animated.View
|
|
133
107
|
style={[
|
|
134
108
|
styles.radioCircle,
|
|
135
109
|
radioButtonSizeStyle,
|
|
136
|
-
{
|
|
137
|
-
backgroundColor: backgroundColorProp
|
|
138
|
-
},
|
|
110
|
+
{ backgroundColor },
|
|
139
111
|
animatedCheckboxSquare
|
|
140
112
|
]}
|
|
141
113
|
/>
|