@pagopa/io-app-design-system 4.2.1 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +3 -3
- package/lib/commonjs/components/alert/Alert.js +44 -65
- package/lib/commonjs/components/alert/Alert.js.map +1 -1
- package/lib/commonjs/components/alert/AlertEdgeToEdge.js +9 -29
- package/lib/commonjs/components/alert/AlertEdgeToEdge.js.map +1 -1
- package/lib/commonjs/components/badge/Badge.js +16 -3
- package/lib/commonjs/components/badge/Badge.js.map +1 -1
- package/lib/commonjs/components/badge/__test__/__snapshots__/badge.test.tsx.snap +9 -5
- package/lib/commonjs/components/banner/Banner.js +10 -34
- package/lib/commonjs/components/banner/Banner.js.map +1 -1
- package/lib/commonjs/components/banner/__test__/__snapshots__/banner.test.tsx.snap +6 -6
- package/lib/commonjs/components/buttons/ButtonLink.js +26 -54
- package/lib/commonjs/components/buttons/ButtonLink.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonOutline.js +27 -45
- package/lib/commonjs/components/buttons/ButtonOutline.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonSolid.js +24 -45
- package/lib/commonjs/components/buttons/ButtonSolid.js.map +1 -1
- package/lib/commonjs/components/buttons/IconButton.js +15 -32
- package/lib/commonjs/components/buttons/IconButton.js.map +1 -1
- package/lib/commonjs/components/buttons/IconButtonContained.js +19 -42
- package/lib/commonjs/components/buttons/IconButtonContained.js.map +1 -1
- package/lib/commonjs/components/buttons/IconButtonSolid.js +16 -31
- package/lib/commonjs/components/buttons/IconButtonSolid.js.map +1 -1
- package/lib/commonjs/components/buttons/__test__/__snapshots__/button.test.tsx.snap +61 -19
- package/lib/commonjs/components/checkbox/AnimatedCheckbox.js +23 -18
- package/lib/commonjs/components/checkbox/AnimatedCheckbox.js.map +1 -1
- package/lib/commonjs/components/checkbox/CheckboxLabel.js +13 -8
- package/lib/commonjs/components/checkbox/CheckboxLabel.js.map +1 -1
- package/lib/commonjs/components/common/AnimatedTick.js +7 -3
- package/lib/commonjs/components/common/AnimatedTick.js.map +1 -1
- package/lib/commonjs/components/common/LogoPaymentWithFallback.js +9 -3
- package/lib/commonjs/components/common/LogoPaymentWithFallback.js.map +1 -1
- package/lib/commonjs/components/featureInfo/FeatureInfo.js +9 -6
- package/lib/commonjs/components/featureInfo/FeatureInfo.js.map +1 -1
- package/lib/commonjs/components/icons/Icon.js +14 -7
- package/lib/commonjs/components/icons/Icon.js.map +1 -1
- package/lib/commonjs/components/layout/HeaderFirstLevel.js +7 -10
- package/lib/commonjs/components/layout/HeaderFirstLevel.js.map +1 -1
- package/lib/commonjs/components/layout/HeaderSecondLevel.js +8 -9
- package/lib/commonjs/components/layout/HeaderSecondLevel.js.map +1 -1
- package/lib/commonjs/components/layout/index.js +0 -11
- package/lib/commonjs/components/layout/index.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemAction.js +24 -46
- package/lib/commonjs/components/listitems/ListItemAction.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemAmount.js +13 -11
- package/lib/commonjs/components/listitems/ListItemAmount.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemCheckbox.js +25 -48
- package/lib/commonjs/components/listitems/ListItemCheckbox.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemHeader.js +11 -4
- package/lib/commonjs/components/listitems/ListItemHeader.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemInfo.js +14 -17
- package/lib/commonjs/components/listitems/ListItemInfo.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemInfoCopy.js +29 -55
- package/lib/commonjs/components/listitems/ListItemInfoCopy.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemNav.js +36 -64
- package/lib/commonjs/components/listitems/ListItemNav.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemNavAlert.js +32 -58
- package/lib/commonjs/components/listitems/ListItemNavAlert.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemRadio.js +43 -58
- package/lib/commonjs/components/listitems/ListItemRadio.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemRadioWithAmount.js +7 -2
- package/lib/commonjs/components/listitems/ListItemRadioWithAmount.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemSwitch.js +12 -14
- package/lib/commonjs/components/listitems/ListItemSwitch.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemTransaction.js +4 -2
- package/lib/commonjs/components/listitems/ListItemTransaction.js.map +1 -1
- package/lib/commonjs/components/listitems/{PressableListItemsBase.js → PressableListItemBase.js} +7 -7
- package/lib/commonjs/components/listitems/PressableListItemBase.js.map +1 -0
- package/lib/commonjs/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +442 -430
- package/lib/commonjs/components/listitems/__test__/listitem.test.js +3 -3
- package/lib/commonjs/components/listitems/__test__/listitem.test.js.map +1 -1
- package/lib/commonjs/components/listitems/index.js +11 -11
- package/lib/commonjs/components/listitems/index.js.map +1 -1
- package/lib/commonjs/components/modules/ModuleCredential.js +7 -2
- package/lib/commonjs/components/modules/ModuleCredential.js.map +1 -1
- package/lib/commonjs/components/modules/ModuleNavigation.js +5 -1
- package/lib/commonjs/components/modules/ModuleNavigation.js.map +1 -1
- package/lib/commonjs/components/modules/PressableModuleBase.js +17 -11
- package/lib/commonjs/components/modules/PressableModuleBase.js.map +1 -1
- package/lib/commonjs/components/modules/index.js +8 -8
- package/lib/commonjs/components/modules/index.js.map +1 -1
- package/lib/commonjs/components/numberpad/NumberButton.js +12 -28
- package/lib/commonjs/components/numberpad/NumberButton.js.map +1 -1
- package/lib/commonjs/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +40 -20
- package/lib/commonjs/components/pictograms/Pictogram.js +17 -4
- package/lib/commonjs/components/pictograms/Pictogram.js.map +1 -1
- package/lib/commonjs/components/radio/AnimatedRadio.js +16 -15
- package/lib/commonjs/components/radio/AnimatedRadio.js.map +1 -1
- package/lib/commonjs/components/radio/RadioButtonLabel.js +9 -5
- package/lib/commonjs/components/radio/RadioButtonLabel.js.map +1 -1
- package/lib/commonjs/components/searchInput/SearchInput.js +4 -3
- package/lib/commonjs/components/searchInput/SearchInput.js.map +1 -1
- package/lib/commonjs/components/spacer/Spacer.js +13 -6
- package/lib/commonjs/components/spacer/Spacer.js.map +1 -1
- package/lib/commonjs/components/stack/Stack.js +19 -9
- package/lib/commonjs/components/stack/Stack.js.map +1 -1
- package/lib/commonjs/components/tabs/TabItem.js +15 -21
- package/lib/commonjs/components/tabs/TabItem.js.map +1 -1
- package/lib/commonjs/components/tag/Tag.js +21 -8
- package/lib/commonjs/components/tag/Tag.js.map +1 -1
- package/lib/commonjs/components/textInput/TextInput.js.map +1 -1
- package/lib/commonjs/components/textInput/TextInputBase.js +23 -10
- package/lib/commonjs/components/textInput/TextInputBase.js.map +1 -1
- package/lib/commonjs/components/typography/IOText.js +3 -6
- package/lib/commonjs/components/typography/IOText.js.map +1 -1
- package/lib/commonjs/components/typography/__test__/__snapshots__/ComposedBodyFromArray.test.tsx.snap +84 -84
- package/lib/commonjs/components/typography/__test__/__snapshots__/typography.test.tsx.snap +50 -50
- package/lib/commonjs/core/IOAnimations.js +6 -12
- package/lib/commonjs/core/IOAnimations.js.map +1 -1
- package/lib/commonjs/hooks/index.js +28 -0
- package/lib/commonjs/hooks/index.js.map +1 -0
- package/lib/commonjs/hooks/useListItemAnimation.js +40 -0
- package/lib/commonjs/hooks/useListItemAnimation.js.map +1 -0
- package/lib/commonjs/hooks/useScaleAnimation.js +36 -0
- package/lib/commonjs/hooks/useScaleAnimation.js.map +1 -0
- package/lib/commonjs/index.js +11 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/utils/accessibility.js +29 -1
- package/lib/commonjs/utils/accessibility.js.map +1 -1
- package/lib/commonjs/utils/fonts.js +3 -2
- package/lib/commonjs/utils/fonts.js.map +1 -1
- package/lib/commonjs/utils/hooks/index.js +28 -0
- package/lib/commonjs/utils/hooks/index.js.map +1 -0
- package/lib/commonjs/utils/hooks/useSpringPressProgressValue.js +5 -7
- package/lib/commonjs/utils/hooks/useSpringPressProgressValue.js.map +1 -1
- package/lib/module/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +3 -3
- package/lib/module/components/alert/Alert.js +45 -67
- package/lib/module/components/alert/Alert.js.map +1 -1
- package/lib/module/components/alert/AlertEdgeToEdge.js +10 -31
- package/lib/module/components/alert/AlertEdgeToEdge.js.map +1 -1
- package/lib/module/components/badge/Badge.js +16 -3
- package/lib/module/components/badge/Badge.js.map +1 -1
- package/lib/module/components/badge/__test__/__snapshots__/badge.test.tsx.snap +9 -5
- package/lib/module/components/banner/Banner.js +10 -33
- package/lib/module/components/banner/Banner.js.map +1 -1
- package/lib/module/components/banner/__test__/__snapshots__/banner.test.tsx.snap +6 -6
- package/lib/module/components/buttons/ButtonLink.js +29 -57
- package/lib/module/components/buttons/ButtonLink.js.map +1 -1
- package/lib/module/components/buttons/ButtonOutline.js +30 -48
- package/lib/module/components/buttons/ButtonOutline.js.map +1 -1
- package/lib/module/components/buttons/ButtonSolid.js +27 -48
- package/lib/module/components/buttons/ButtonSolid.js.map +1 -1
- package/lib/module/components/buttons/IconButton.js +18 -35
- package/lib/module/components/buttons/IconButton.js.map +1 -1
- package/lib/module/components/buttons/IconButtonContained.js +21 -45
- package/lib/module/components/buttons/IconButtonContained.js.map +1 -1
- package/lib/module/components/buttons/IconButtonSolid.js +18 -34
- package/lib/module/components/buttons/IconButtonSolid.js.map +1 -1
- package/lib/module/components/buttons/__test__/__snapshots__/button.test.tsx.snap +61 -19
- package/lib/module/components/checkbox/AnimatedCheckbox.js +23 -18
- package/lib/module/components/checkbox/AnimatedCheckbox.js.map +1 -1
- package/lib/module/components/checkbox/CheckboxLabel.js +14 -9
- package/lib/module/components/checkbox/CheckboxLabel.js.map +1 -1
- package/lib/module/components/common/AnimatedTick.js +7 -3
- package/lib/module/components/common/AnimatedTick.js.map +1 -1
- package/lib/module/components/common/LogoPaymentWithFallback.js +9 -3
- package/lib/module/components/common/LogoPaymentWithFallback.js.map +1 -1
- package/lib/module/components/featureInfo/FeatureInfo.js +11 -8
- package/lib/module/components/featureInfo/FeatureInfo.js.map +1 -1
- package/lib/module/components/icons/Icon.js +15 -6
- package/lib/module/components/icons/Icon.js.map +1 -1
- package/lib/module/components/layout/HeaderFirstLevel.js +8 -11
- package/lib/module/components/layout/HeaderFirstLevel.js.map +1 -1
- package/lib/module/components/layout/HeaderSecondLevel.js +9 -10
- package/lib/module/components/layout/HeaderSecondLevel.js.map +1 -1
- package/lib/module/components/layout/index.js +0 -1
- package/lib/module/components/layout/index.js.map +1 -1
- package/lib/module/components/listitems/ListItemAction.js +25 -48
- package/lib/module/components/listitems/ListItemAction.js.map +1 -1
- package/lib/module/components/listitems/ListItemAmount.js +13 -11
- package/lib/module/components/listitems/ListItemAmount.js.map +1 -1
- package/lib/module/components/listitems/ListItemCheckbox.js +28 -51
- package/lib/module/components/listitems/ListItemCheckbox.js.map +1 -1
- package/lib/module/components/listitems/ListItemHeader.js +11 -4
- package/lib/module/components/listitems/ListItemHeader.js.map +1 -1
- package/lib/module/components/listitems/ListItemInfo.js +14 -17
- package/lib/module/components/listitems/ListItemInfo.js.map +1 -1
- package/lib/module/components/listitems/ListItemInfoCopy.js +30 -57
- package/lib/module/components/listitems/ListItemInfoCopy.js.map +1 -1
- package/lib/module/components/listitems/ListItemNav.js +38 -65
- package/lib/module/components/listitems/ListItemNav.js.map +1 -1
- package/lib/module/components/listitems/ListItemNavAlert.js +33 -58
- package/lib/module/components/listitems/ListItemNavAlert.js.map +1 -1
- package/lib/module/components/listitems/ListItemRadio.js +46 -61
- package/lib/module/components/listitems/ListItemRadio.js.map +1 -1
- package/lib/module/components/listitems/ListItemRadioWithAmount.js +7 -2
- package/lib/module/components/listitems/ListItemRadioWithAmount.js.map +1 -1
- package/lib/module/components/listitems/ListItemSwitch.js +12 -14
- package/lib/module/components/listitems/ListItemSwitch.js.map +1 -1
- package/lib/module/components/listitems/ListItemTransaction.js +3 -1
- package/lib/module/components/listitems/ListItemTransaction.js.map +1 -1
- package/lib/module/components/listitems/{PressableListItemsBase.js → PressableListItemBase.js} +7 -7
- package/lib/module/components/listitems/PressableListItemBase.js.map +1 -0
- package/lib/module/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +442 -430
- package/lib/module/components/listitems/__test__/listitem.test.js +1 -1
- package/lib/module/components/listitems/__test__/listitem.test.js.map +1 -1
- package/lib/module/components/listitems/index.js +1 -1
- package/lib/module/components/listitems/index.js.map +1 -1
- package/lib/module/components/modules/ModuleCredential.js +7 -2
- package/lib/module/components/modules/ModuleCredential.js.map +1 -1
- package/lib/module/components/modules/ModuleNavigation.js +5 -1
- package/lib/module/components/modules/ModuleNavigation.js.map +1 -1
- package/lib/module/components/modules/PressableModuleBase.js +17 -10
- package/lib/module/components/modules/PressableModuleBase.js.map +1 -1
- package/lib/module/components/modules/index.js +1 -1
- package/lib/module/components/modules/index.js.map +1 -1
- package/lib/module/components/numberpad/NumberButton.js +14 -30
- package/lib/module/components/numberpad/NumberButton.js.map +1 -1
- package/lib/module/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +40 -20
- package/lib/module/components/pictograms/Pictogram.js +17 -4
- package/lib/module/components/pictograms/Pictogram.js.map +1 -1
- package/lib/module/components/radio/AnimatedRadio.js +16 -15
- package/lib/module/components/radio/AnimatedRadio.js.map +1 -1
- package/lib/module/components/radio/RadioButtonLabel.js +10 -6
- package/lib/module/components/radio/RadioButtonLabel.js.map +1 -1
- package/lib/module/components/searchInput/SearchInput.js +5 -4
- package/lib/module/components/searchInput/SearchInput.js.map +1 -1
- package/lib/module/components/spacer/Spacer.js +11 -5
- package/lib/module/components/spacer/Spacer.js.map +1 -1
- package/lib/module/components/stack/Stack.js +19 -9
- package/lib/module/components/stack/Stack.js.map +1 -1
- package/lib/module/components/tabs/TabItem.js +18 -24
- package/lib/module/components/tabs/TabItem.js.map +1 -1
- package/lib/module/components/tag/Tag.js +21 -8
- package/lib/module/components/tag/Tag.js.map +1 -1
- package/lib/module/components/textInput/TextInput.js.map +1 -1
- package/lib/module/components/textInput/TextInputBase.js +23 -10
- package/lib/module/components/textInput/TextInputBase.js.map +1 -1
- package/lib/module/components/typography/IOText.js +5 -8
- package/lib/module/components/typography/IOText.js.map +1 -1
- package/lib/module/components/typography/__test__/__snapshots__/ComposedBodyFromArray.test.tsx.snap +84 -84
- package/lib/module/components/typography/__test__/__snapshots__/typography.test.tsx.snap +50 -50
- package/lib/module/core/IOAnimations.js +4 -10
- package/lib/module/core/IOAnimations.js.map +1 -1
- package/lib/module/hooks/index.js +3 -0
- package/lib/module/hooks/index.js.map +1 -0
- package/lib/module/hooks/useListItemAnimation.js +33 -0
- package/lib/module/hooks/useListItemAnimation.js.map +1 -0
- package/lib/module/hooks/useScaleAnimation.js +29 -0
- package/lib/module/hooks/useScaleAnimation.js.map +1 -0
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/utils/accessibility.js +28 -1
- package/lib/module/utils/accessibility.js.map +1 -1
- package/lib/module/utils/fonts.js +1 -0
- package/lib/module/utils/fonts.js.map +1 -1
- package/lib/module/utils/hooks/index.js +3 -0
- package/lib/module/utils/hooks/index.js.map +1 -0
- package/lib/module/utils/hooks/useSpringPressProgressValue.js +5 -5
- package/lib/module/utils/hooks/useSpringPressProgressValue.js.map +1 -1
- package/lib/typescript/components/alert/Alert.d.ts.map +1 -1
- package/lib/typescript/components/alert/AlertEdgeToEdge.d.ts.map +1 -1
- package/lib/typescript/components/badge/Badge.d.ts +2 -1
- package/lib/typescript/components/badge/Badge.d.ts.map +1 -1
- package/lib/typescript/components/banner/Banner.d.ts.map +1 -1
- package/lib/typescript/components/buttons/ButtonLink.d.ts +1 -1
- package/lib/typescript/components/buttons/ButtonLink.d.ts.map +1 -1
- package/lib/typescript/components/buttons/ButtonOutline.d.ts +1 -1
- package/lib/typescript/components/buttons/ButtonOutline.d.ts.map +1 -1
- package/lib/typescript/components/buttons/ButtonSolid.d.ts +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 +2 -1
- package/lib/typescript/components/checkbox/AnimatedCheckbox.d.ts.map +1 -1
- package/lib/typescript/components/checkbox/CheckboxLabel.d.ts +2 -1
- package/lib/typescript/components/checkbox/CheckboxLabel.d.ts.map +1 -1
- package/lib/typescript/components/common/AnimatedTick.d.ts +4 -3
- package/lib/typescript/components/common/AnimatedTick.d.ts.map +1 -1
- package/lib/typescript/components/common/LogoPaymentWithFallback.d.ts.map +1 -1
- package/lib/typescript/components/featureInfo/FeatureInfo.d.ts.map +1 -1
- package/lib/typescript/components/icons/Icon.d.ts +5 -3
- package/lib/typescript/components/icons/Icon.d.ts.map +1 -1
- package/lib/typescript/components/layout/HeaderFirstLevel.d.ts.map +1 -1
- package/lib/typescript/components/layout/HeaderSecondLevel.d.ts.map +1 -1
- package/lib/typescript/components/layout/index.d.ts +0 -1
- package/lib/typescript/components/layout/index.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemAction.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/ListItemNav.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/listitems/ListItemRadioWithAmount.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemSwitch.d.ts +2 -2
- package/lib/typescript/components/listitems/ListItemSwitch.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemTransaction.d.ts +1 -1
- package/lib/typescript/components/listitems/ListItemTransaction.d.ts.map +1 -1
- package/lib/typescript/components/listitems/{PressableListItemsBase.d.ts → PressableListItemBase.d.ts} +3 -2
- package/lib/typescript/components/listitems/PressableListItemBase.d.ts.map +1 -0
- package/lib/typescript/components/listitems/index.d.ts +1 -1
- package/lib/typescript/components/listitems/index.d.ts.map +1 -1
- package/lib/typescript/components/modules/ModuleCredential.d.ts.map +1 -1
- package/lib/typescript/components/modules/ModuleNavigation.d.ts.map +1 -1
- package/lib/typescript/components/modules/PressableModuleBase.d.ts.map +1 -1
- package/lib/typescript/components/modules/index.d.ts +1 -1
- package/lib/typescript/components/modules/index.d.ts.map +1 -1
- package/lib/typescript/components/numberpad/NumberButton.d.ts.map +1 -1
- package/lib/typescript/components/pictograms/Pictogram.d.ts +5 -3
- package/lib/typescript/components/pictograms/Pictogram.d.ts.map +1 -1
- package/lib/typescript/components/pictograms/types.d.ts +1 -2
- package/lib/typescript/components/pictograms/types.d.ts.map +1 -1
- package/lib/typescript/components/radio/AnimatedRadio.d.ts +2 -1
- package/lib/typescript/components/radio/AnimatedRadio.d.ts.map +1 -1
- package/lib/typescript/components/radio/RadioButtonLabel.d.ts +2 -1
- package/lib/typescript/components/radio/RadioButtonLabel.d.ts.map +1 -1
- package/lib/typescript/components/searchInput/SearchInput.d.ts.map +1 -1
- package/lib/typescript/components/spacer/Spacer.d.ts +1 -0
- package/lib/typescript/components/spacer/Spacer.d.ts.map +1 -1
- package/lib/typescript/components/stack/Stack.d.ts +2 -1
- package/lib/typescript/components/stack/Stack.d.ts.map +1 -1
- package/lib/typescript/components/tabs/TabItem.d.ts.map +1 -1
- package/lib/typescript/components/tag/Tag.d.ts +4 -2
- package/lib/typescript/components/tag/Tag.d.ts.map +1 -1
- package/lib/typescript/components/textInput/TextInput.d.ts +2 -1
- package/lib/typescript/components/textInput/TextInput.d.ts.map +1 -1
- package/lib/typescript/components/textInput/TextInputBase.d.ts.map +1 -1
- package/lib/typescript/components/typography/BodyMonospace.d.ts +1 -1
- package/lib/typescript/components/typography/ButtonText.d.ts +1 -1
- package/lib/typescript/components/typography/Caption.d.ts +1 -1
- package/lib/typescript/components/typography/H1.d.ts +1 -1
- package/lib/typescript/components/typography/H2.d.ts +1 -1
- package/lib/typescript/components/typography/H3.d.ts +1 -1
- package/lib/typescript/components/typography/H4.d.ts +1 -1
- package/lib/typescript/components/typography/H5.d.ts +1 -1
- package/lib/typescript/components/typography/H6.d.ts +1 -1
- package/lib/typescript/components/typography/Hero.d.ts +1 -1
- package/lib/typescript/components/typography/IOText.d.ts.map +1 -1
- package/lib/typescript/components/typography/markdown/MdH1.d.ts +1 -1
- package/lib/typescript/components/typography/markdown/MdH2.d.ts +1 -1
- package/lib/typescript/components/typography/markdown/MdH3.d.ts +1 -1
- package/lib/typescript/core/IOAnimations.d.ts +6 -10
- package/lib/typescript/core/IOAnimations.d.ts.map +1 -1
- package/lib/typescript/core/IOStyles.d.ts +7 -7
- package/lib/typescript/hooks/index.d.ts +3 -0
- package/lib/typescript/hooks/index.d.ts.map +1 -0
- package/lib/typescript/hooks/useListItemAnimation.d.ts +10 -0
- package/lib/typescript/hooks/useListItemAnimation.d.ts.map +1 -0
- package/lib/typescript/hooks/useScaleAnimation.d.ts +10 -0
- package/lib/typescript/hooks/useScaleAnimation.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/utils/accessibility.d.ts +10 -0
- package/lib/typescript/utils/accessibility.d.ts.map +1 -1
- package/lib/typescript/utils/fonts.d.ts +2 -1
- package/lib/typescript/utils/fonts.d.ts.map +1 -1
- package/lib/typescript/utils/hooks/index.d.ts +3 -0
- package/lib/typescript/utils/hooks/index.d.ts.map +1 -0
- package/lib/typescript/utils/hooks/useSpringPressProgressValue.d.ts +7 -8
- package/lib/typescript/utils/hooks/useSpringPressProgressValue.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +3 -3
- package/src/components/alert/Alert.tsx +49 -106
- package/src/components/alert/AlertEdgeToEdge.tsx +6 -46
- package/src/components/badge/Badge.tsx +29 -4
- package/src/components/badge/__test__/__snapshots__/badge.test.tsx.snap +9 -5
- package/src/components/banner/Banner.tsx +6 -54
- package/src/components/banner/__test__/__snapshots__/banner.test.tsx.snap +6 -6
- package/src/components/buttons/ButtonLink.tsx +36 -89
- package/src/components/buttons/ButtonOutline.tsx +40 -75
- package/src/components/buttons/ButtonSolid.tsx +21 -67
- package/src/components/buttons/IconButton.tsx +12 -47
- package/src/components/buttons/IconButtonContained.tsx +21 -57
- package/src/components/buttons/IconButtonSolid.tsx +16 -46
- package/src/components/buttons/__test__/__snapshots__/button.test.tsx.snap +61 -19
- package/src/components/checkbox/AnimatedCheckbox.tsx +36 -18
- package/src/components/checkbox/CheckboxLabel.tsx +22 -10
- package/src/components/common/AnimatedTick.tsx +9 -3
- package/src/components/common/LogoPaymentWithFallback.tsx +27 -5
- package/src/components/featureInfo/FeatureInfo.tsx +13 -9
- package/src/components/icons/Icon.tsx +23 -7
- package/src/components/layout/HeaderFirstLevel.tsx +11 -21
- package/src/components/layout/HeaderSecondLevel.tsx +5 -14
- package/src/components/layout/index.tsx +0 -1
- package/src/components/listitems/ListItemAction.tsx +28 -73
- package/src/components/listitems/ListItemAmount.tsx +16 -11
- package/src/components/listitems/ListItemCheckbox.tsx +39 -83
- package/src/components/listitems/ListItemHeader.tsx +14 -4
- package/src/components/listitems/ListItemInfo.tsx +27 -20
- package/src/components/listitems/ListItemInfoCopy.tsx +37 -86
- package/src/components/listitems/ListItemNav.tsx +55 -112
- package/src/components/listitems/ListItemNavAlert.tsx +42 -102
- package/src/components/listitems/ListItemRadio.tsx +60 -107
- package/src/components/listitems/ListItemRadioWithAmount.tsx +9 -3
- package/src/components/listitems/ListItemSwitch.tsx +21 -27
- package/src/components/listitems/ListItemTransaction.tsx +4 -1
- package/src/components/listitems/{PressableListItemsBase.tsx → PressableListItemBase.tsx} +7 -6
- package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +442 -430
- package/src/components/listitems/__test__/listitem.test.tsx +1 -1
- package/src/components/listitems/index.tsx +1 -1
- package/src/components/modules/ModuleCredential.tsx +5 -2
- package/src/components/modules/ModuleNavigation.tsx +3 -1
- package/src/components/modules/PressableModuleBase.tsx +15 -8
- package/src/components/modules/index.tsx +1 -1
- package/src/components/numberpad/NumberButton.tsx +12 -43
- package/src/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +40 -20
- package/src/components/pictograms/Pictogram.tsx +24 -5
- package/src/components/pictograms/types.ts +1 -3
- package/src/components/radio/AnimatedRadio.tsx +31 -15
- package/src/components/radio/RadioButtonLabel.tsx +16 -8
- package/src/components/searchInput/SearchInput.tsx +10 -5
- package/src/components/spacer/Spacer.tsx +21 -6
- package/src/components/stack/Stack.tsx +25 -14
- package/src/components/tabs/TabItem.tsx +15 -29
- package/src/components/tag/Tag.tsx +26 -8
- package/src/components/textInput/TextInput.tsx +2 -1
- package/src/components/textInput/TextInputBase.tsx +44 -11
- package/src/components/typography/IOText.tsx +5 -6
- package/src/components/typography/__test__/__snapshots__/ComposedBodyFromArray.test.tsx.snap +84 -84
- package/src/components/typography/__test__/__snapshots__/typography.test.tsx.snap +50 -50
- package/src/core/IOAnimations.ts +8 -10
- package/src/hooks/index.tsx +2 -0
- package/src/hooks/useListItemAnimation.tsx +59 -0
- package/src/hooks/useScaleAnimation.tsx +41 -0
- package/src/index.tsx +1 -0
- package/src/utils/accessibility.ts +32 -1
- package/src/utils/fonts.ts +1 -0
- package/src/utils/hooks/index.tsx +2 -0
- package/src/utils/hooks/useSpringPressProgressValue.ts +14 -8
- package/lib/commonjs/components/layout/FooterWithButtons.js +0 -84
- package/lib/commonjs/components/layout/FooterWithButtons.js.map +0 -1
- package/lib/commonjs/components/listitems/PressableListItemsBase.js.map +0 -1
- package/lib/commonjs/components/listitems/hooks/useListItemSpringAnimation.js +0 -56
- package/lib/commonjs/components/listitems/hooks/useListItemSpringAnimation.js.map +0 -1
- package/lib/commonjs/components/modules/hooks/useModuleSpringAnimation.js +0 -41
- package/lib/commonjs/components/modules/hooks/useModuleSpringAnimation.js.map +0 -1
- package/lib/module/components/layout/FooterWithButtons.js +0 -75
- package/lib/module/components/layout/FooterWithButtons.js.map +0 -1
- package/lib/module/components/listitems/PressableListItemsBase.js.map +0 -1
- package/lib/module/components/listitems/hooks/useListItemSpringAnimation.js +0 -47
- package/lib/module/components/listitems/hooks/useListItemSpringAnimation.js.map +0 -1
- package/lib/module/components/modules/hooks/useModuleSpringAnimation.js +0 -34
- package/lib/module/components/modules/hooks/useModuleSpringAnimation.js.map +0 -1
- package/lib/typescript/components/layout/FooterWithButtons.d.ts +0 -16
- package/lib/typescript/components/layout/FooterWithButtons.d.ts.map +0 -1
- package/lib/typescript/components/listitems/PressableListItemsBase.d.ts.map +0 -1
- package/lib/typescript/components/listitems/hooks/useListItemSpringAnimation.d.ts +0 -13
- package/lib/typescript/components/listitems/hooks/useListItemSpringAnimation.d.ts.map +0 -1
- package/lib/typescript/components/modules/hooks/useModuleSpringAnimation.d.ts +0 -10
- package/lib/typescript/components/modules/hooks/useModuleSpringAnimation.d.ts.map +0 -1
- package/src/components/layout/FooterWithButtons.tsx +0 -90
- package/src/components/listitems/hooks/useListItemSpringAnimation.ts +0 -72
- package/src/components/modules/hooks/useModuleSpringAnimation.ts +0 -49
|
@@ -59,7 +59,13 @@ exports[`Test Buttons Components - Experimental Enabled ButtonLink Snapshot 1`]
|
|
|
59
59
|
"textAlignVertical": "center",
|
|
60
60
|
},
|
|
61
61
|
false,
|
|
62
|
+
{
|
|
63
|
+
"columnGap": 8,
|
|
64
|
+
},
|
|
62
65
|
{},
|
|
66
|
+
{
|
|
67
|
+
"columnGap": 8,
|
|
68
|
+
},
|
|
63
69
|
{
|
|
64
70
|
"transform": [
|
|
65
71
|
{
|
|
@@ -76,7 +82,7 @@ exports[`Test Buttons Components - Experimental Enabled ButtonLink Snapshot 1`]
|
|
|
76
82
|
allowFontScaling={true}
|
|
77
83
|
ellipsizeMode="tail"
|
|
78
84
|
importantForAccessibility="no-hide-descendants"
|
|
79
|
-
maxFontSizeMultiplier={1.
|
|
85
|
+
maxFontSizeMultiplier={1.5}
|
|
80
86
|
numberOfLines={1}
|
|
81
87
|
style={
|
|
82
88
|
[
|
|
@@ -160,20 +166,25 @@ exports[`Test Buttons Components - Experimental Enabled ButtonOutline Snapshot 1
|
|
|
160
166
|
{
|
|
161
167
|
"height": 48,
|
|
162
168
|
},
|
|
169
|
+
{
|
|
170
|
+
"columnGap": 8,
|
|
171
|
+
},
|
|
163
172
|
false,
|
|
164
173
|
{
|
|
165
174
|
"backgroundColor": "rgba(231,236,252,0)",
|
|
166
175
|
"borderColor": "#0B3EE3",
|
|
167
176
|
},
|
|
168
177
|
{
|
|
169
|
-
"backgroundColor": undefined,
|
|
170
|
-
"borderColor": undefined,
|
|
171
178
|
"transform": [
|
|
172
179
|
{
|
|
173
180
|
"scale": undefined,
|
|
174
181
|
},
|
|
175
182
|
],
|
|
176
183
|
},
|
|
184
|
+
{
|
|
185
|
+
"backgroundColor": undefined,
|
|
186
|
+
"borderColor": undefined,
|
|
187
|
+
},
|
|
177
188
|
]
|
|
178
189
|
}
|
|
179
190
|
>
|
|
@@ -183,7 +194,7 @@ exports[`Test Buttons Components - Experimental Enabled ButtonOutline Snapshot 1
|
|
|
183
194
|
allowFontScaling={true}
|
|
184
195
|
ellipsizeMode="tail"
|
|
185
196
|
importantForAccessibility="no-hide-descendants"
|
|
186
|
-
maxFontSizeMultiplier={1.
|
|
197
|
+
maxFontSizeMultiplier={1.5}
|
|
187
198
|
numberOfLines={1}
|
|
188
199
|
style={
|
|
189
200
|
[
|
|
@@ -276,17 +287,20 @@ exports[`Test Buttons Components - Experimental Enabled ButtonSolid Snapshot 1`]
|
|
|
276
287
|
"backgroundColor": "#0B3EE3",
|
|
277
288
|
},
|
|
278
289
|
{
|
|
279
|
-
"backgroundColor": undefined,
|
|
280
290
|
"transform": [
|
|
281
291
|
{
|
|
282
292
|
"scale": undefined,
|
|
283
293
|
},
|
|
284
294
|
],
|
|
285
295
|
},
|
|
296
|
+
{
|
|
297
|
+
"backgroundColor": undefined,
|
|
298
|
+
},
|
|
286
299
|
]
|
|
287
300
|
}
|
|
288
301
|
>
|
|
289
302
|
<View
|
|
303
|
+
entering={[Function]}
|
|
290
304
|
style={
|
|
291
305
|
[
|
|
292
306
|
{
|
|
@@ -294,6 +308,9 @@ exports[`Test Buttons Components - Experimental Enabled ButtonSolid Snapshot 1`]
|
|
|
294
308
|
"flexDirection": "row",
|
|
295
309
|
"justifyContent": "center",
|
|
296
310
|
},
|
|
311
|
+
{
|
|
312
|
+
"columnGap": 8,
|
|
313
|
+
},
|
|
297
314
|
false,
|
|
298
315
|
]
|
|
299
316
|
}
|
|
@@ -304,7 +321,7 @@ exports[`Test Buttons Components - Experimental Enabled ButtonSolid Snapshot 1`]
|
|
|
304
321
|
allowFontScaling={true}
|
|
305
322
|
ellipsizeMode="tail"
|
|
306
323
|
importantForAccessibility="no-hide-descendants"
|
|
307
|
-
maxFontSizeMultiplier={1.
|
|
324
|
+
maxFontSizeMultiplier={1.5}
|
|
308
325
|
numberOfLines={1}
|
|
309
326
|
style={
|
|
310
327
|
[
|
|
@@ -510,13 +527,15 @@ exports[`Test Buttons Components - Experimental Enabled IconButtonContained Snap
|
|
|
510
527
|
"width": 48,
|
|
511
528
|
},
|
|
512
529
|
{
|
|
513
|
-
"backgroundColor": undefined,
|
|
514
530
|
"transform": [
|
|
515
531
|
{
|
|
516
532
|
"scale": undefined,
|
|
517
533
|
},
|
|
518
534
|
],
|
|
519
535
|
},
|
|
536
|
+
{
|
|
537
|
+
"backgroundColor": undefined,
|
|
538
|
+
},
|
|
520
539
|
]
|
|
521
540
|
}
|
|
522
541
|
>
|
|
@@ -642,13 +661,15 @@ exports[`Test Buttons Components - Experimental Enabled IconButtonSolid Snapshot
|
|
|
642
661
|
"width": 56,
|
|
643
662
|
},
|
|
644
663
|
{
|
|
645
|
-
"backgroundColor": undefined,
|
|
646
664
|
"transform": [
|
|
647
665
|
{
|
|
648
666
|
"scale": undefined,
|
|
649
667
|
},
|
|
650
668
|
],
|
|
651
669
|
},
|
|
670
|
+
{
|
|
671
|
+
"backgroundColor": undefined,
|
|
672
|
+
},
|
|
652
673
|
{
|
|
653
674
|
"backgroundColor": "#0B3EE3",
|
|
654
675
|
},
|
|
@@ -778,7 +799,13 @@ exports[`Test Buttons Components ButtonLink Snapshot 1`] = `
|
|
|
778
799
|
"textAlignVertical": "center",
|
|
779
800
|
},
|
|
780
801
|
false,
|
|
802
|
+
{
|
|
803
|
+
"columnGap": 8,
|
|
804
|
+
},
|
|
781
805
|
{},
|
|
806
|
+
{
|
|
807
|
+
"columnGap": 8,
|
|
808
|
+
},
|
|
782
809
|
{
|
|
783
810
|
"transform": [
|
|
784
811
|
{
|
|
@@ -792,10 +819,10 @@ exports[`Test Buttons Components ButtonLink Snapshot 1`] = `
|
|
|
792
819
|
<Text
|
|
793
820
|
accessibilityElementsHidden={true}
|
|
794
821
|
accessible={false}
|
|
795
|
-
allowFontScaling={
|
|
822
|
+
allowFontScaling={true}
|
|
796
823
|
ellipsizeMode="tail"
|
|
797
824
|
importantForAccessibility="no-hide-descendants"
|
|
798
|
-
maxFontSizeMultiplier={1.
|
|
825
|
+
maxFontSizeMultiplier={1.5}
|
|
799
826
|
numberOfLines={1}
|
|
800
827
|
style={
|
|
801
828
|
[
|
|
@@ -878,30 +905,35 @@ exports[`Test Buttons Components ButtonOutline Snapshot 1`] = `
|
|
|
878
905
|
{
|
|
879
906
|
"height": 40,
|
|
880
907
|
},
|
|
908
|
+
{
|
|
909
|
+
"columnGap": 8,
|
|
910
|
+
},
|
|
881
911
|
false,
|
|
882
912
|
{
|
|
883
913
|
"backgroundColor": "rgba(0,115,230,0)",
|
|
884
914
|
"borderColor": "#0073E6",
|
|
885
915
|
},
|
|
886
916
|
{
|
|
887
|
-
"backgroundColor": undefined,
|
|
888
|
-
"borderColor": undefined,
|
|
889
917
|
"transform": [
|
|
890
918
|
{
|
|
891
919
|
"scale": undefined,
|
|
892
920
|
},
|
|
893
921
|
],
|
|
894
922
|
},
|
|
923
|
+
{
|
|
924
|
+
"backgroundColor": undefined,
|
|
925
|
+
"borderColor": undefined,
|
|
926
|
+
},
|
|
895
927
|
]
|
|
896
928
|
}
|
|
897
929
|
>
|
|
898
930
|
<Text
|
|
899
931
|
accessibilityElementsHidden={true}
|
|
900
932
|
accessible={false}
|
|
901
|
-
allowFontScaling={
|
|
933
|
+
allowFontScaling={true}
|
|
902
934
|
ellipsizeMode="tail"
|
|
903
935
|
importantForAccessibility="no-hide-descendants"
|
|
904
|
-
maxFontSizeMultiplier={1.
|
|
936
|
+
maxFontSizeMultiplier={1.5}
|
|
905
937
|
numberOfLines={1}
|
|
906
938
|
style={
|
|
907
939
|
[
|
|
@@ -993,17 +1025,20 @@ exports[`Test Buttons Components ButtonSolid Snapshot 1`] = `
|
|
|
993
1025
|
"backgroundColor": "#0073E6",
|
|
994
1026
|
},
|
|
995
1027
|
{
|
|
996
|
-
"backgroundColor": undefined,
|
|
997
1028
|
"transform": [
|
|
998
1029
|
{
|
|
999
1030
|
"scale": undefined,
|
|
1000
1031
|
},
|
|
1001
1032
|
],
|
|
1002
1033
|
},
|
|
1034
|
+
{
|
|
1035
|
+
"backgroundColor": undefined,
|
|
1036
|
+
},
|
|
1003
1037
|
]
|
|
1004
1038
|
}
|
|
1005
1039
|
>
|
|
1006
1040
|
<View
|
|
1041
|
+
entering={[Function]}
|
|
1007
1042
|
style={
|
|
1008
1043
|
[
|
|
1009
1044
|
{
|
|
@@ -1011,6 +1046,9 @@ exports[`Test Buttons Components ButtonSolid Snapshot 1`] = `
|
|
|
1011
1046
|
"flexDirection": "row",
|
|
1012
1047
|
"justifyContent": "center",
|
|
1013
1048
|
},
|
|
1049
|
+
{
|
|
1050
|
+
"columnGap": 8,
|
|
1051
|
+
},
|
|
1014
1052
|
false,
|
|
1015
1053
|
]
|
|
1016
1054
|
}
|
|
@@ -1018,10 +1056,10 @@ exports[`Test Buttons Components ButtonSolid Snapshot 1`] = `
|
|
|
1018
1056
|
<Text
|
|
1019
1057
|
accessibilityElementsHidden={true}
|
|
1020
1058
|
accessible={false}
|
|
1021
|
-
allowFontScaling={
|
|
1059
|
+
allowFontScaling={true}
|
|
1022
1060
|
ellipsizeMode="tail"
|
|
1023
1061
|
importantForAccessibility="no-hide-descendants"
|
|
1024
|
-
maxFontSizeMultiplier={1.
|
|
1062
|
+
maxFontSizeMultiplier={1.5}
|
|
1025
1063
|
numberOfLines={1}
|
|
1026
1064
|
style={
|
|
1027
1065
|
[
|
|
@@ -1227,13 +1265,15 @@ exports[`Test Buttons Components IconButtonContained Snapshot 1`] = `
|
|
|
1227
1265
|
"width": 48,
|
|
1228
1266
|
},
|
|
1229
1267
|
{
|
|
1230
|
-
"backgroundColor": undefined,
|
|
1231
1268
|
"transform": [
|
|
1232
1269
|
{
|
|
1233
1270
|
"scale": undefined,
|
|
1234
1271
|
},
|
|
1235
1272
|
],
|
|
1236
1273
|
},
|
|
1274
|
+
{
|
|
1275
|
+
"backgroundColor": undefined,
|
|
1276
|
+
},
|
|
1237
1277
|
]
|
|
1238
1278
|
}
|
|
1239
1279
|
>
|
|
@@ -1359,13 +1399,15 @@ exports[`Test Buttons Components IconButtonSolid Snapshot 1`] = `
|
|
|
1359
1399
|
"width": 56,
|
|
1360
1400
|
},
|
|
1361
1401
|
{
|
|
1362
|
-
"backgroundColor": undefined,
|
|
1363
1402
|
"transform": [
|
|
1364
1403
|
{
|
|
1365
1404
|
"scale": undefined,
|
|
1366
1405
|
},
|
|
1367
1406
|
],
|
|
1368
1407
|
},
|
|
1408
|
+
{
|
|
1409
|
+
"backgroundColor": undefined,
|
|
1410
|
+
},
|
|
1369
1411
|
{
|
|
1370
1412
|
"backgroundColor": "#0073E6",
|
|
1371
1413
|
},
|
|
@@ -7,6 +7,7 @@ exports.AnimatedCheckbox = void 0;
|
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
10
|
+
var _accessibility = require("../../utils/accessibility");
|
|
10
11
|
var _core = require("../../core");
|
|
11
12
|
var _IOAnimations = require("../../core/IOAnimations");
|
|
12
13
|
var _IOColors = require("../../core/IOColors");
|
|
@@ -16,28 +17,18 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
16
17
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
18
|
const checkBoxRadius = 5;
|
|
18
19
|
const styles = _reactNative.StyleSheet.create({
|
|
19
|
-
checkBoxWrapper: {
|
|
20
|
-
width: _IOStyles.IOSelectionTickVisualParams.size,
|
|
21
|
-
height: _IOStyles.IOSelectionTickVisualParams.size
|
|
22
|
-
},
|
|
23
20
|
checkboxBorder: {
|
|
21
|
+
borderWidth: _IOStyles.IOSelectionTickVisualParams.borderWidth,
|
|
22
|
+
borderCurve: "continuous",
|
|
24
23
|
position: "absolute",
|
|
25
24
|
left: 0,
|
|
26
|
-
top: 0
|
|
27
|
-
width: _IOStyles.IOSelectionTickVisualParams.size,
|
|
28
|
-
height: _IOStyles.IOSelectionTickVisualParams.size,
|
|
29
|
-
borderWidth: _IOStyles.IOSelectionTickVisualParams.borderWidth,
|
|
30
|
-
borderRadius: checkBoxRadius,
|
|
31
|
-
borderCurve: "continuous"
|
|
25
|
+
top: 0
|
|
32
26
|
},
|
|
33
27
|
checkBoxSquare: {
|
|
28
|
+
borderCurve: "continuous",
|
|
34
29
|
position: "absolute",
|
|
35
30
|
left: 0,
|
|
36
|
-
top: 0
|
|
37
|
-
width: _IOStyles.IOSelectionTickVisualParams.size,
|
|
38
|
-
height: _IOStyles.IOSelectionTickVisualParams.size,
|
|
39
|
-
borderRadius: checkBoxRadius,
|
|
40
|
-
borderCurve: "continuous"
|
|
31
|
+
top: 0
|
|
41
32
|
}
|
|
42
33
|
});
|
|
43
34
|
|
|
@@ -46,10 +37,14 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
46
37
|
* standard {@link CheckBox} or other composite components.
|
|
47
38
|
*/
|
|
48
39
|
const AnimatedCheckbox = ({
|
|
40
|
+
size,
|
|
49
41
|
checked,
|
|
50
42
|
onPress,
|
|
51
43
|
disabled
|
|
52
44
|
}) => {
|
|
45
|
+
const {
|
|
46
|
+
dynamicFontScale
|
|
47
|
+
} = (0, _accessibility.useIOFontDynamicScale)();
|
|
53
48
|
const isChecked = checked ?? false;
|
|
54
49
|
const {
|
|
55
50
|
isExperimental
|
|
@@ -64,6 +59,15 @@ const AnimatedCheckbox = ({
|
|
|
64
59
|
const backgroundColorProp = isExperimental ? backgroundColorOnState : legacyBackgroundColorOnState;
|
|
65
60
|
const squareAnimationProgress = (0, _reactNativeReanimated.useSharedValue)(checked ? 1 : 0);
|
|
66
61
|
const tickAnimationProgress = (0, _reactNativeReanimated.useSharedValue)(checked ? 1 : 0);
|
|
62
|
+
const checkboxSizeStyle = {
|
|
63
|
+
width: size,
|
|
64
|
+
height: size,
|
|
65
|
+
borderRadius: checkBoxRadius * dynamicFontScale
|
|
66
|
+
};
|
|
67
|
+
const checkboxWrapperSizeStyle = {
|
|
68
|
+
width: size,
|
|
69
|
+
height: size
|
|
70
|
+
};
|
|
67
71
|
(0, _react.useEffect)(() => {
|
|
68
72
|
// eslint-disable-next-line functional/immutable-data
|
|
69
73
|
squareAnimationProgress.value = (0, _reactNativeReanimated.withSpring)(checked ? 1 : 0, _IOAnimations.IOSpringValues.selection);
|
|
@@ -87,14 +91,14 @@ const AnimatedCheckbox = ({
|
|
|
87
91
|
accessible: false,
|
|
88
92
|
disabled: disabled,
|
|
89
93
|
onPress: onPress,
|
|
90
|
-
style:
|
|
94
|
+
style: checkboxWrapperSizeStyle,
|
|
91
95
|
testID: "AnimatedCheckboxInput"
|
|
92
96
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
93
|
-
style: [styles.checkboxBorder, {
|
|
97
|
+
style: [styles.checkboxBorder, checkboxSizeStyle, {
|
|
94
98
|
borderColor: borderColorProp
|
|
95
99
|
}]
|
|
96
100
|
}), /*#__PURE__*/_react.default.createElement(_reactNativeReanimated.default.View, {
|
|
97
|
-
style: [styles.checkBoxSquare, {
|
|
101
|
+
style: [styles.checkBoxSquare, checkboxSizeStyle, {
|
|
98
102
|
backgroundColor: backgroundColorProp
|
|
99
103
|
}, animatedCheckboxSquare]
|
|
100
104
|
}), isChecked && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
@@ -102,6 +106,7 @@ const AnimatedCheckbox = ({
|
|
|
102
106
|
zIndex: 1
|
|
103
107
|
}
|
|
104
108
|
}, /*#__PURE__*/_react.default.createElement(_AnimatedTick.AnimatedTick, {
|
|
109
|
+
size: size,
|
|
105
110
|
progress: tickAnimationProgress,
|
|
106
111
|
stroke: _IOColors.IOColors[_IOStyles.IOSelectionTickVisualParams.tickColor]
|
|
107
112
|
})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_core","_IOAnimations","_IOColors","_IOStyles","_AnimatedTick","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","checkBoxRadius","styles","StyleSheet","create","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_accessibility","_core","_IOAnimations","_IOColors","_IOStyles","_AnimatedTick","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","checkBoxRadius","styles","StyleSheet","create","checkboxBorder","borderWidth","IOSelectionTickVisualParams","borderCurve","position","left","top","checkBoxSquare","AnimatedCheckbox","size","checked","onPress","disabled","dynamicFontScale","useIOFontDynamicScale","isChecked","isExperimental","useIOExperimentalDesign","borderColorOffState","IOColors","legacyBorderColorOffState","IOSelectionTickLegacyVisualParams","borderColorProp","backgroundColorOnState","bgColorOnState","legacyBackgroundColorOnState","backgroundColorProp","squareAnimationProgress","useSharedValue","tickAnimationProgress","checkboxSizeStyle","width","height","borderRadius","checkboxWrapperSizeStyle","useEffect","value","withSpring","IOSpringValues","selection","withTiming","duration","easing","Easing","elastic","animatedCheckboxSquare","useAnimatedStyle","scale","interpolate","opacity","transform","createElement","Pressable","accessible","style","testID","View","borderColor","backgroundColor","zIndex","AnimatedTick","progress","stroke","tickColor","exports"],"sourceRoot":"../../../../src","sources":["components/checkbox/AnimatedCheckbox.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,sBAAA,GAAAH,uB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Q,EAAEA,QAAS;IACnBD,OAAO,EAAEA,OAAQ;IACjB2C,KAAK,EAAEpB,wBAAyB;IAChCqB,MAAM,EAAC;EAAuB,gBAE9B5F,MAAA,CAAAkB,OAAA,CAAAsE,aAAA,CAACrF,YAAA,CAAA0F,IAAI;IACHF,KAAK,EAAE,CACLzD,MAAM,CAACG,cAAc,EACrB8B,iBAAiB,EACjB;MACE2B,WAAW,EAAEnC;IACf,CAAC;EACD,CACH,CAAC,eACF3D,MAAA,CAAAkB,OAAA,CAAAsE,aAAA,CAACpF,sBAAA,CAAAc,OAAQ,CAAC2E,IAAI;IACZF,KAAK,EAAE,CACLzD,MAAM,CAACU,cAAc,EACrBuB,iBAAiB,EACjB;MACE4B,eAAe,EAAEhC;IACnB,CAAC,EACDmB,sBAAsB;EACtB,CACH,CAAC,EACD9B,SAAS,iBACRpD,MAAA,CAAAkB,OAAA,CAAAsE,aAAA,CAACrF,YAAA,CAAA0F,IAAI;IAACF,KAAK,EAAE;MAAEK,MAAM,EAAE;IAAE;EAAE,gBACzBhG,MAAA,CAAAkB,OAAA,CAAAsE,aAAA,CAAC9E,aAAA,CAAAuF,YAAY;IACXnD,IAAI,EAAEA,IAAK;IACXoD,QAAQ,EAAEhC,qBAAsB;IAChCiC,MAAM,EAAE3C,kBAAQ,CAACjB,qCAA2B,CAAC6D,SAAS;EAAE,CACzD,CACG,CAEC,CAAC;AAEhB,CAAC;AAACC,OAAA,CAAAxD,gBAAA,GAAAA,gBAAA"}
|
|
@@ -7,14 +7,15 @@ exports.CheckboxLabel = void 0;
|
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _core = require("../../core");
|
|
10
|
-
var _IOStyles = require("../../core/IOStyles");
|
|
11
10
|
var _hapticFeedback = require("../../functions/haptic-feedback/hapticFeedback");
|
|
12
|
-
var
|
|
11
|
+
var _accessibility = require("../../utils/accessibility");
|
|
12
|
+
var _stack = require("../stack");
|
|
13
13
|
var _H = require("../typography/H6");
|
|
14
14
|
var _AnimatedCheckbox = require("./AnimatedCheckbox");
|
|
15
15
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
17
|
const DISABLED_OPACITY = 0.5;
|
|
18
|
+
const CHECKBOX_MARGIN = 8;
|
|
18
19
|
|
|
19
20
|
// disabled: the component is no longer touchable
|
|
20
21
|
// onPress:
|
|
@@ -32,6 +33,9 @@ const CheckboxLabel = ({
|
|
|
32
33
|
onValueChange
|
|
33
34
|
}) => {
|
|
34
35
|
const theme = (0, _core.useIOTheme)();
|
|
36
|
+
const {
|
|
37
|
+
dynamicFontScale
|
|
38
|
+
} = (0, _accessibility.useIOFontDynamicScale)();
|
|
35
39
|
const [toggleValue, setToggleValue] = (0, React.useState)(checked ?? false);
|
|
36
40
|
const toggleCheckbox = () => {
|
|
37
41
|
(0, _hapticFeedback.triggerHaptic)("impactLight");
|
|
@@ -57,11 +61,13 @@ const CheckboxLabel = ({
|
|
|
57
61
|
// inheritance on Android
|
|
58
62
|
,
|
|
59
63
|
needsOffscreenAlphaCompositing: true
|
|
60
|
-
}, /*#__PURE__*/React.createElement(
|
|
61
|
-
|
|
64
|
+
}, /*#__PURE__*/React.createElement(_stack.HStack, {
|
|
65
|
+
allowScaleSpacing: true,
|
|
66
|
+
style: {
|
|
62
67
|
alignItems: "center",
|
|
63
68
|
width: "100%"
|
|
64
|
-
}
|
|
69
|
+
},
|
|
70
|
+
space: CHECKBOX_MARGIN
|
|
65
71
|
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
66
72
|
pointerEvents: "none",
|
|
67
73
|
accessibilityElementsHidden: true,
|
|
@@ -70,10 +76,9 @@ const CheckboxLabel = ({
|
|
|
70
76
|
alignSelf: "flex-start"
|
|
71
77
|
}
|
|
72
78
|
}, /*#__PURE__*/React.createElement(_AnimatedCheckbox.AnimatedCheckbox, {
|
|
79
|
+
size: _core.IOSelectionTickVisualParams.size * dynamicFontScale,
|
|
73
80
|
checked: checked ?? toggleValue
|
|
74
|
-
})), /*#__PURE__*/React.createElement(
|
|
75
|
-
size: 8
|
|
76
|
-
}), /*#__PURE__*/React.createElement(_H.H6, {
|
|
81
|
+
})), /*#__PURE__*/React.createElement(_H.H6, {
|
|
77
82
|
style: {
|
|
78
83
|
flexShrink: 1
|
|
79
84
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_core","
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_core","_hapticFeedback","_accessibility","_stack","_H","_AnimatedCheckbox","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","DISABLED_OPACITY","CHECKBOX_MARGIN","CheckboxLabel","label","checked","disabled","onValueChange","theme","useIOTheme","dynamicFontScale","useIOFontDynamicScale","toggleValue","setToggleValue","useState","toggleCheckbox","triggerHaptic","undefined","createElement","Pressable","onPress","testID","style","alignSelf","opacity","accessibilityRole","accessibilityState","needsOffscreenAlphaCompositing","HStack","allowScaleSpacing","alignItems","width","space","View","pointerEvents","accessibilityElementsHidden","importantForAccessibility","AnimatedCheckbox","size","IOSelectionTickVisualParams","H6","flexShrink","color","exports"],"sourceRoot":"../../../../src","sources":["components/checkbox/CheckboxLabel.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAKA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,EAAA,GAAAN,OAAA;AACA,IAAAO,iBAAA,GAAAP,OAAA;AAAsD,SAAAQ,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAV,wBAAAc,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,G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|
const currentRef = ref.current;
|
|
38
39
|
setLength(currentRef.getTotalLength());
|
|
39
40
|
};
|
|
40
|
-
return /*#__PURE__*/_react.default.createElement(_reactNativeSvg.default, {
|
|
41
|
-
viewBox:
|
|
42
|
-
},
|
|
41
|
+
return /*#__PURE__*/_react.default.createElement(_reactNativeSvg.default, _extends({
|
|
42
|
+
viewBox: `0 0 24 24`
|
|
43
|
+
}, size ? {
|
|
44
|
+
width: size,
|
|
45
|
+
height: size
|
|
46
|
+
} : {}), /*#__PURE__*/_react.default.createElement(AnimatedPath, _extends({
|
|
43
47
|
ref: ref,
|
|
44
48
|
onLayout: onLayout,
|
|
45
49
|
d: TickSVGPath,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNativeReanimated","_reactNativeSvg","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","AnimatedPath","Animated","createAnimatedComponent","Path","TickSVGPath","AnimatedTick","progress","pathProps","setLength","useState","ref","useAnimatedRef","animatedProps","useAnimatedProps","strokeDashoffset","Math","max","value","onLayout","currentRef","current","getTotalLength","createElement","viewBox","d","strokeDasharray","strokeWidth","strokeLinecap","strokeLinejoin","fill","exports"],"sourceRoot":"../../../../src","sources":["components/common/AnimatedTick.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAF,uBAAA,CAAAC,OAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNativeReanimated","_reactNativeSvg","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","AnimatedPath","Animated","createAnimatedComponent","Path","TickSVGPath","AnimatedTick","size","progress","pathProps","setLength","useState","ref","useAnimatedRef","animatedProps","useAnimatedProps","strokeDashoffset","Math","max","value","onLayout","currentRef","current","getTotalLength","createElement","viewBox","width","height","d","strokeDasharray","strokeWidth","strokeLinecap","strokeLinejoin","fill","exports"],"sourceRoot":"../../../../src","sources":["components/common/AnimatedTick.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAF,uBAAA,CAAAC,OAAA;AAKA,IAAAE,eAAA,GAAAH,uBAAA,CAAAC,OAAA;AAAwD,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAL,wBAAAS,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GA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EAAEpB,MAAM,GAAGA,MAAM,GAAGU,QAAQ,CAACW,KAAK,GAAG,GAAG;EACtE,CAAC,CAAC,CAAC;EAEH,MAAMC,QAAQ,GAAGA,CAAA,KAAM;IACrB;IACA;IACA,MAAMC,UAAU,GAAGT,GAAG,CAACU,OAAc;IACrCZ,SAAS,CAACW,UAAU,CAACE,cAAc,CAAC,CAAC,CAAC;EACxC,CAAC;EAED,oBACE1D,MAAA,CAAAY,OAAA,CAAA+C,aAAA,CAACvD,eAAA,CAAAQ,OAAG,EAAAe,QAAA;IAACiC,OAAO,EAAG;EAAW,GAAMlB,IAAI,GAAG;IAAEmB,KAAK,EAAEnB,IAAI;IAAEoB,MAAM,EAAEpB;EAAK,CAAC,GAAG,CAAC,CAAC,gBACvE1C,MAAA,CAAAY,OAAA,CAAA+C,aAAA,CAACvB,YAAY,EAAAT,QAAA;IACXoB,GAAG,EAAEA,GAAI;IACTQ,QAAQ,EAAEA,QAAS;IACnBQ,CAAC,EAAEvB,WAAY;IACfS,aAAa,EAAEA,aAAc;IAC7Be,eAAe,EAAE/B,MAAO;IACxBgC,WAAW,EAAE,CAAE;IACfC,aAAa,EAAC,OAAO;IACrBC,cAAc,EAAC,OAAO;IACtBC,IAAI,EAAC;EAAM,GACPxB,SAAS,CACd,CACE,CAAC;AAEV,CAAC;AAACyB,OAAA,CAAA5B,YAAA,GAAAA,YAAA"}
|
|
@@ -5,9 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.LogoPaymentWithFallback = void 0;
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _accessibility = require("../../utils/accessibility");
|
|
9
|
+
var _object = require("../../utils/object");
|
|
8
10
|
var _icons = require("../icons");
|
|
9
11
|
var _logos = require("../logos");
|
|
10
|
-
var _object = require("../../utils/object");
|
|
11
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
13
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
14
|
/**
|
|
@@ -26,9 +27,13 @@ const LogoPaymentWithFallback = ({
|
|
|
26
27
|
isExtended = false,
|
|
27
28
|
size = isExtended ? 48 : 24
|
|
28
29
|
}) => {
|
|
30
|
+
const {
|
|
31
|
+
dynamicFontScale
|
|
32
|
+
} = (0, _accessibility.useIOFontDynamicScale)();
|
|
29
33
|
const logos = isExtended ? _logos.IOPaymentExtLogos : _logos.IOPaymentLogos;
|
|
30
34
|
if (!brand) {
|
|
31
35
|
return /*#__PURE__*/React.createElement(_icons.Icon, {
|
|
36
|
+
allowFontScaling: true,
|
|
32
37
|
name: "creditCard",
|
|
33
38
|
size: size,
|
|
34
39
|
color: fallbackIconColor
|
|
@@ -37,6 +42,7 @@ const LogoPaymentWithFallback = ({
|
|
|
37
42
|
const findCase = (0, _object.findFirstCaseInsensitive)(logos, brand);
|
|
38
43
|
if (!findCase) {
|
|
39
44
|
return /*#__PURE__*/React.createElement(_icons.Icon, {
|
|
45
|
+
allowFontScaling: true,
|
|
40
46
|
name: "creditCard",
|
|
41
47
|
size: size,
|
|
42
48
|
color: fallbackIconColor
|
|
@@ -44,10 +50,10 @@ const LogoPaymentWithFallback = ({
|
|
|
44
50
|
}
|
|
45
51
|
return isExtended ? /*#__PURE__*/React.createElement(_logos.LogoPaymentExt, {
|
|
46
52
|
name: findCase,
|
|
47
|
-
size: size
|
|
53
|
+
size: size * dynamicFontScale
|
|
48
54
|
}) : /*#__PURE__*/React.createElement(_logos.LogoPayment, {
|
|
49
55
|
name: findCase,
|
|
50
|
-
size: size
|
|
56
|
+
size: size * dynamicFontScale
|
|
51
57
|
});
|
|
52
58
|
};
|
|
53
59
|
exports.LogoPaymentWithFallback = LogoPaymentWithFallback;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_accessibility","_object","_icons","_logos","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","LogoPaymentWithFallback","brand","fallbackIconColor","isExtended","size","dynamicFontScale","useIOFontDynamicScale","logos","IOPaymentExtLogos","IOPaymentLogos","createElement","Icon","allowFontScaling","name","color","findCase","findFirstCaseInsensitive","LogoPaymentExt","LogoPayment","exports"],"sourceRoot":"../../../../src","sources":["components/common/LogoPaymentWithFallback.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAOkB,SAAAK,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,W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iB,GAAGC,qBAAc;EAE7D,IAAI,CAACR,KAAK,EAAE;IACV,oBACE9B,KAAA,CAAAuC,aAAA,CAAClC,MAAA,CAAAmC,IAAI;MACHC,gBAAgB;MAChBC,IAAI,EAAC,YAAY;MACjBT,IAAI,EAAEA,IAAK;MACXU,KAAK,EAAEZ;IAAkB,CAC1B,CAAC;EAEN;EAEA,MAAMa,QAAQ,GAAG,IAAAC,gCAAwB,EAACT,KAAK,EAAEN,KAAK,CAAC;EAEvD,IAAI,CAACc,QAAQ,EAAE;IACb,oBACE5C,KAAA,CAAAuC,aAAA,CAAClC,MAAA,CAAAmC,IAAI;MACHC,gBAAgB;MAChBC,IAAI,EAAC,YAAY;MACjBT,IAAI,EAAEA,IAAK;MACXU,KAAK,EAAEZ;IAAkB,CAC1B,CAAC;EAEN;EAEA,OAAOC,UAAU,gBACfhC,KAAA,CAAAuC,aAAA,CAACjC,MAAA,CAAAwC,cAAc;IACbJ,IAAI,EAAEE,QAAiC;IACvCX,IAAI,EAAEA,IAAI,GAAGC;EAAiB,CAC/B,CAAC,gBAEFlC,KAAA,CAAAuC,aAAA,CAACjC,MAAA,CAAAyC,WAAW;IACVL,IAAI,EAAEE,QAA8B;IACpCX,IAAI,EAAEA,IAAI,GAAGC;EAAiB,CAC/B,CACF;AACH,CAAC;AAACc,OAAA,CAAAnB,uBAAA,GAAAA,uBAAA"}
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.FeatureInfo = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
8
|
var _components = require("../../components");
|
|
10
9
|
var _core = require("../../core");
|
|
11
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -26,25 +25,29 @@ const FeatureInfo = ({
|
|
|
26
25
|
action
|
|
27
26
|
}) => {
|
|
28
27
|
const theme = (0, _core.useIOTheme)();
|
|
29
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
30
|
-
style:
|
|
28
|
+
return /*#__PURE__*/_react.default.createElement(_components.HStack, {
|
|
29
|
+
style: {
|
|
30
|
+
alignItems: "center"
|
|
31
|
+
},
|
|
32
|
+
space: 24
|
|
31
33
|
}, iconName && /*#__PURE__*/_react.default.createElement(_components.Icon, {
|
|
34
|
+
allowFontScaling: true,
|
|
32
35
|
name: iconName,
|
|
33
36
|
size: DEFAULT_ICON_SIZE,
|
|
34
37
|
color: theme["icon-decorative"]
|
|
35
38
|
}), pictogramName && /*#__PURE__*/_react.default.createElement(_components.Pictogram, {
|
|
39
|
+
allowFontScaling: true,
|
|
36
40
|
name: pictogramName,
|
|
37
41
|
size: DEFAULT_PICTOGRAM_SIZE
|
|
38
|
-
}), /*#__PURE__*/_react.default.createElement(_components.HSpacer, {
|
|
39
|
-
size: 24
|
|
40
42
|
}), /*#__PURE__*/_react.default.createElement(_components.VStack, {
|
|
43
|
+
allowScaleSpacing: true,
|
|
41
44
|
space: 4,
|
|
42
45
|
style: {
|
|
43
46
|
flexShrink: 1
|
|
44
47
|
}
|
|
45
48
|
}, renderNode(body), action && /*#__PURE__*/_react.default.createElement(_components.BodySmall, {
|
|
46
|
-
weight: "Semibold",
|
|
47
49
|
asLink: true,
|
|
50
|
+
weight: "Semibold",
|
|
48
51
|
onPress: action.onPress,
|
|
49
52
|
accessible: true,
|
|
50
53
|
importantForAccessibility: "yes",
|