@pagopa/io-app-design-system 5.7.0 → 5.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +65 -25
- package/lib/commonjs/components/accordion/AccordionItem.js +2 -1
- package/lib/commonjs/components/accordion/AccordionItem.js.map +1 -1
- package/lib/commonjs/components/alert/Alert.js +5 -4
- package/lib/commonjs/components/alert/Alert.js.map +1 -1
- package/lib/commonjs/components/avatar/Avatar.js +2 -1
- package/lib/commonjs/components/avatar/Avatar.js.map +1 -1
- package/lib/commonjs/components/badge/Badge.js +3 -14
- package/lib/commonjs/components/badge/Badge.js.map +1 -1
- package/lib/commonjs/components/banner/Banner.js +6 -5
- package/lib/commonjs/components/banner/Banner.js.map +1 -1
- package/lib/commonjs/components/banner/BannerErrorState.js +9 -7
- package/lib/commonjs/components/banner/BannerErrorState.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonLink.js +3 -2
- package/lib/commonjs/components/buttons/ButtonLink.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonOutline.js +3 -2
- package/lib/commonjs/components/buttons/ButtonOutline.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonSolid.js +2 -1
- package/lib/commonjs/components/buttons/ButtonSolid.js.map +1 -1
- package/lib/commonjs/components/buttons/IOButton/IOButton.js +2 -1
- package/lib/commonjs/components/buttons/IOButton/IOButton.js.map +1 -1
- package/lib/commonjs/components/buttons/IOButton/styles.js +45 -44
- package/lib/commonjs/components/buttons/IOButton/styles.js.map +1 -1
- package/lib/commonjs/components/buttons/IconButton.js +2 -1
- package/lib/commonjs/components/buttons/IconButton.js.map +1 -1
- package/lib/commonjs/components/buttons/IconButtonSolid.js +4 -2
- package/lib/commonjs/components/buttons/IconButtonSolid.js.map +1 -1
- package/lib/commonjs/components/checkbox/AnimatedCheckbox.js +5 -6
- package/lib/commonjs/components/checkbox/AnimatedCheckbox.js.map +1 -1
- package/lib/commonjs/components/checkbox/AnimatedMessageCheckbox.js +2 -2
- package/lib/commonjs/components/checkbox/AnimatedMessageCheckbox.js.map +1 -1
- package/lib/commonjs/components/checkbox/CheckboxLabel.js +4 -4
- package/lib/commonjs/components/checkbox/CheckboxLabel.js.map +1 -1
- package/lib/commonjs/components/claimsSelector/ClaimsSelector.js +6 -5
- package/lib/commonjs/components/claimsSelector/ClaimsSelector.js.map +1 -1
- package/lib/commonjs/components/codeInput/CodeInput.js +12 -11
- package/lib/commonjs/components/codeInput/CodeInput.js.map +1 -1
- package/lib/commonjs/components/featureInfo/FeatureInfo.js +2 -2
- package/lib/commonjs/components/featureInfo/FeatureInfo.js.map +1 -1
- package/lib/commonjs/components/{layout → headers}/HeaderFirstLevel.js +4 -4
- package/lib/commonjs/components/headers/HeaderFirstLevel.js.map +1 -0
- package/lib/commonjs/components/{layout → headers}/HeaderSecondLevel.js +7 -7
- package/lib/commonjs/components/headers/HeaderSecondLevel.js.map +1 -0
- package/lib/commonjs/components/headers/ModalBSHeader.js.map +1 -0
- package/lib/commonjs/components/headers/README.md +10 -0
- package/lib/commonjs/components/headers/common.js.map +1 -0
- package/lib/commonjs/components/headers/index.js +50 -0
- package/lib/commonjs/components/headers/index.js.map +1 -0
- package/lib/commonjs/components/index.js +22 -44
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/layout/ContentWrapper.js.map +1 -0
- package/lib/commonjs/components/{divider → layout}/Divider.js +4 -3
- package/lib/commonjs/components/layout/Divider.js.map +1 -0
- package/lib/commonjs/components/layout/FooterActions.js +6 -6
- package/lib/commonjs/components/layout/FooterActions.js.map +1 -1
- package/lib/commonjs/components/layout/FooterActionsInline.js +5 -4
- package/lib/commonjs/components/layout/FooterActionsInline.js.map +1 -1
- package/lib/commonjs/components/layout/GradientBottomActions.js +2 -2
- package/lib/commonjs/components/layout/GradientBottomActions.js.map +1 -1
- package/lib/commonjs/components/layout/README.md +93 -0
- package/lib/commonjs/components/{spacer → layout}/Spacer.js.map +1 -1
- package/lib/commonjs/components/layout/Stack.js.map +1 -0
- package/lib/commonjs/components/layout/index.js +34 -45
- package/lib/commonjs/components/layout/index.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemAction.js +2 -1
- package/lib/commonjs/components/listitems/ListItemAction.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemAmount.js +2 -1
- package/lib/commonjs/components/listitems/ListItemAmount.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemCheckbox.js +5 -4
- package/lib/commonjs/components/listitems/ListItemCheckbox.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemHeader.js +4 -3
- package/lib/commonjs/components/listitems/ListItemHeader.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemInfo.js +2 -1
- package/lib/commonjs/components/listitems/ListItemInfo.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemInfoCopy.js +2 -1
- package/lib/commonjs/components/listitems/ListItemInfoCopy.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemNav.js +9 -8
- package/lib/commonjs/components/listitems/ListItemNav.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemNavAlert.js +2 -1
- package/lib/commonjs/components/listitems/ListItemNavAlert.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemRadio.js +7 -7
- package/lib/commonjs/components/listitems/ListItemRadio.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemRadioWithAmount.js +7 -7
- package/lib/commonjs/components/listitems/ListItemRadioWithAmount.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemSwitch.js +6 -5
- package/lib/commonjs/components/listitems/ListItemSwitch.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemTransaction.js +6 -5
- package/lib/commonjs/components/listitems/ListItemTransaction.js.map +1 -1
- package/lib/commonjs/components/loadingSpinner/LoadingSpinner.js +4 -3
- package/lib/commonjs/components/loadingSpinner/LoadingSpinner.js.map +1 -1
- package/lib/commonjs/components/modules/ModuleAttachment.js +6 -5
- package/lib/commonjs/components/modules/ModuleAttachment.js.map +1 -1
- package/lib/commonjs/components/modules/ModuleCheckout.js +7 -6
- package/lib/commonjs/components/modules/ModuleCheckout.js.map +1 -1
- package/lib/commonjs/components/modules/ModuleCredential.js +3 -2
- package/lib/commonjs/components/modules/ModuleCredential.js.map +1 -1
- package/lib/commonjs/components/modules/ModuleIDP.js +4 -3
- package/lib/commonjs/components/modules/ModuleIDP.js.map +1 -1
- package/lib/commonjs/components/modules/ModuleNavigation.js +7 -6
- package/lib/commonjs/components/modules/ModuleNavigation.js.map +1 -1
- package/lib/commonjs/components/modules/ModulePaymentNotice.js +7 -6
- package/lib/commonjs/components/modules/ModulePaymentNotice.js.map +1 -1
- package/lib/commonjs/components/modules/ModuleStatic.js +6 -5
- package/lib/commonjs/components/modules/ModuleStatic.js.map +1 -1
- package/lib/commonjs/components/modules/ModuleSummary.js +2 -2
- package/lib/commonjs/components/modules/ModuleSummary.js.map +1 -1
- package/lib/commonjs/components/modules/PressableModuleBase.js +2 -1
- package/lib/commonjs/components/modules/PressableModuleBase.js.map +1 -1
- package/lib/commonjs/components/numberpad/NumberButton.js +3 -2
- package/lib/commonjs/components/numberpad/NumberButton.js.map +1 -1
- package/lib/commonjs/components/numberpad/NumberPad.js +3 -4
- package/lib/commonjs/components/numberpad/NumberPad.js.map +1 -1
- package/lib/commonjs/components/otpInput/BoxedInput.js +7 -7
- package/lib/commonjs/components/otpInput/BoxedInput.js.map +1 -1
- package/lib/commonjs/components/otpInput/OTPInput.js +4 -4
- package/lib/commonjs/components/otpInput/OTPInput.js.map +1 -1
- package/lib/commonjs/components/pictograms/Pictogram.js +16 -15
- package/lib/commonjs/components/pictograms/Pictogram.js.map +1 -1
- package/lib/commonjs/components/progressLoader/ProgressLoader.js +2 -2
- package/lib/commonjs/components/progressLoader/ProgressLoader.js.map +1 -1
- package/lib/commonjs/components/radio/AnimatedRadio.js +2 -2
- package/lib/commonjs/components/radio/AnimatedRadio.js.map +1 -1
- package/lib/commonjs/components/radio/RadioButtonLabel.js +2 -2
- package/lib/commonjs/components/radio/RadioButtonLabel.js.map +1 -1
- package/lib/commonjs/components/radio/RadioGroup.js +3 -3
- package/lib/commonjs/components/radio/RadioGroup.js.map +1 -1
- package/lib/commonjs/components/searchInput/SearchInput.js +3 -2
- package/lib/commonjs/components/searchInput/SearchInput.js.map +1 -1
- package/lib/commonjs/components/skeleton/IOSkeleton.js +2 -1
- package/lib/commonjs/components/skeleton/IOSkeleton.js.map +1 -1
- package/lib/commonjs/components/stepper/Stepper.js +4 -3
- package/lib/commonjs/components/stepper/Stepper.js.map +1 -1
- package/lib/commonjs/components/switch/NativeSwitch.js +2 -2
- package/lib/commonjs/components/switch/NativeSwitch.js.map +1 -1
- package/lib/commonjs/components/tabs/TabItem.js +3 -2
- package/lib/commonjs/components/tabs/TabItem.js.map +1 -1
- package/lib/commonjs/components/tag/Tag.js +7 -7
- package/lib/commonjs/components/tag/Tag.js.map +1 -1
- package/lib/commonjs/components/templates/Dismissable.js.map +1 -0
- package/lib/commonjs/components/{layout → templates}/ForceScrollDownView.js +3 -4
- package/lib/commonjs/components/templates/ForceScrollDownView.js.map +1 -0
- package/lib/commonjs/components/templates/README.md +19 -0
- package/lib/commonjs/components/templates/__test__/ForceScrollDownView.test.js.map +1 -0
- package/lib/commonjs/components/templates/index.js +28 -0
- package/lib/commonjs/components/templates/index.js.map +1 -0
- package/lib/commonjs/components/textInput/TextInputBase.js +7 -6
- package/lib/commonjs/components/textInput/TextInputBase.js.map +1 -1
- package/lib/commonjs/components/textInput/TextInputValidation.js +2 -2
- package/lib/commonjs/components/textInput/TextInputValidation.js.map +1 -1
- package/lib/commonjs/components/toast/ToastNotification.js +4 -3
- package/lib/commonjs/components/toast/ToastNotification.js.map +1 -1
- package/lib/commonjs/components/toast/ToastProvider.js +2 -2
- package/lib/commonjs/components/toast/ToastProvider.js.map +1 -1
- package/lib/commonjs/components/tooltip/Tooltip.js +6 -5
- package/lib/commonjs/components/tooltip/Tooltip.js.map +1 -1
- package/lib/commonjs/components/typography/Body.js +3 -3
- package/lib/commonjs/components/typography/Body.js.map +1 -1
- package/lib/commonjs/components/typography/BodyMonospace.js +2 -2
- package/lib/commonjs/components/typography/BodyMonospace.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 +2 -2
- package/lib/commonjs/components/typography/ButtonText.js.map +1 -1
- package/lib/commonjs/components/typography/Caption.js +3 -3
- package/lib/commonjs/components/typography/Caption.js.map +1 -1
- package/lib/commonjs/components/typography/H1.js +3 -3
- package/lib/commonjs/components/typography/H1.js.map +1 -1
- package/lib/commonjs/components/typography/H2.js +3 -3
- package/lib/commonjs/components/typography/H2.js.map +1 -1
- package/lib/commonjs/components/typography/H3.js +3 -3
- package/lib/commonjs/components/typography/H3.js.map +1 -1
- package/lib/commonjs/components/typography/H4.js +3 -3
- package/lib/commonjs/components/typography/H4.js.map +1 -1
- package/lib/commonjs/components/typography/H5.js +3 -3
- package/lib/commonjs/components/typography/H5.js.map +1 -1
- package/lib/commonjs/components/typography/H6.js +3 -3
- package/lib/commonjs/components/typography/H6.js.map +1 -1
- package/lib/commonjs/components/typography/Hero.js +3 -3
- package/lib/commonjs/components/typography/Hero.js.map +1 -1
- package/lib/commonjs/components/typography/IOText.js +2 -1
- package/lib/commonjs/components/typography/IOText.js.map +1 -1
- package/lib/commonjs/components/typography/LabelMini.js +3 -3
- package/lib/commonjs/components/typography/LabelMini.js.map +1 -1
- package/lib/commonjs/components/typography/README.md +13 -4
- 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/context/IODSExperimentalContextProvider.js.map +1 -0
- package/lib/commonjs/context/IONewTypefaceContextProvider.js.map +1 -0
- package/lib/commonjs/{core → context}/IOThemeContextProvider.js +1 -1
- package/lib/commonjs/context/IOThemeContextProvider.js.map +1 -0
- package/lib/commonjs/context/README.md +57 -0
- package/lib/commonjs/context/index.js +39 -0
- package/lib/commonjs/context/index.js.map +1 -0
- package/lib/commonjs/core/index.js +0 -33
- package/lib/commonjs/core/index.js.map +1 -1
- package/lib/commonjs/functions/README.md +15 -0
- package/lib/commonjs/hooks/useListItemAnimation.js +2 -1
- package/lib/commonjs/hooks/useListItemAnimation.js.map +1 -1
- package/lib/commonjs/index.js +11 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/utils/testing.js +1 -1
- package/lib/commonjs/utils/testing.js.map +1 -1
- package/lib/module/components/accordion/AccordionItem.js +2 -1
- package/lib/module/components/accordion/AccordionItem.js.map +1 -1
- package/lib/module/components/alert/Alert.js +3 -2
- package/lib/module/components/alert/Alert.js.map +1 -1
- package/lib/module/components/avatar/Avatar.js +2 -1
- package/lib/module/components/avatar/Avatar.js.map +1 -1
- package/lib/module/components/badge/Badge.js +2 -13
- package/lib/module/components/badge/Badge.js.map +1 -1
- package/lib/module/components/banner/Banner.js +3 -2
- package/lib/module/components/banner/Banner.js.map +1 -1
- package/lib/module/components/banner/BannerErrorState.js +6 -4
- package/lib/module/components/banner/BannerErrorState.js.map +1 -1
- package/lib/module/components/buttons/ButtonLink.js +2 -1
- package/lib/module/components/buttons/ButtonLink.js.map +1 -1
- package/lib/module/components/buttons/ButtonOutline.js +2 -1
- package/lib/module/components/buttons/ButtonOutline.js.map +1 -1
- package/lib/module/components/buttons/ButtonSolid.js +2 -1
- package/lib/module/components/buttons/ButtonSolid.js.map +1 -1
- package/lib/module/components/buttons/IOButton/IOButton.js +2 -1
- package/lib/module/components/buttons/IOButton/IOButton.js.map +1 -1
- package/lib/module/components/buttons/IOButton/styles.js +2 -1
- package/lib/module/components/buttons/IOButton/styles.js.map +1 -1
- package/lib/module/components/buttons/IconButton.js +2 -1
- package/lib/module/components/buttons/IconButton.js.map +1 -1
- package/lib/module/components/buttons/IconButtonSolid.js +3 -2
- package/lib/module/components/buttons/IconButtonSolid.js.map +1 -1
- package/lib/module/components/checkbox/AnimatedCheckbox.js +3 -4
- package/lib/module/components/checkbox/AnimatedCheckbox.js.map +1 -1
- package/lib/module/components/checkbox/AnimatedMessageCheckbox.js +1 -1
- package/lib/module/components/checkbox/AnimatedMessageCheckbox.js.map +1 -1
- package/lib/module/components/checkbox/CheckboxLabel.js +4 -4
- package/lib/module/components/checkbox/CheckboxLabel.js.map +1 -1
- package/lib/module/components/claimsSelector/ClaimsSelector.js +5 -4
- package/lib/module/components/claimsSelector/ClaimsSelector.js.map +1 -1
- package/lib/module/components/codeInput/CodeInput.js +3 -2
- package/lib/module/components/codeInput/CodeInput.js.map +1 -1
- package/lib/module/components/featureInfo/FeatureInfo.js +1 -1
- package/lib/module/components/featureInfo/FeatureInfo.js.map +1 -1
- package/lib/module/components/{layout → headers}/HeaderFirstLevel.js +4 -4
- package/lib/module/components/headers/HeaderFirstLevel.js.map +1 -0
- package/lib/module/components/{layout → headers}/HeaderSecondLevel.js +3 -3
- package/lib/module/components/headers/HeaderSecondLevel.js.map +1 -0
- package/lib/module/components/headers/ModalBSHeader.js.map +1 -0
- package/lib/module/components/headers/README.md +10 -0
- package/lib/module/components/headers/common.js.map +1 -0
- package/lib/module/components/headers/index.js +7 -0
- package/lib/module/components/headers/index.js.map +1 -0
- package/lib/module/components/index.js +2 -4
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/layout/ContentWrapper.js.map +1 -0
- package/lib/module/components/{divider → layout}/Divider.js +3 -2
- package/lib/module/components/layout/Divider.js.map +1 -0
- package/lib/module/components/layout/FooterActions.js +4 -4
- package/lib/module/components/layout/FooterActions.js.map +1 -1
- package/lib/module/components/layout/FooterActionsInline.js +3 -2
- package/lib/module/components/layout/FooterActionsInline.js.map +1 -1
- package/lib/module/components/layout/GradientBottomActions.js +1 -1
- package/lib/module/components/layout/GradientBottomActions.js.map +1 -1
- package/lib/module/components/layout/README.md +93 -0
- package/lib/module/components/{spacer → layout}/Spacer.js.map +1 -1
- package/lib/module/components/layout/Stack.js.map +1 -0
- package/lib/module/components/layout/index.js +4 -5
- package/lib/module/components/layout/index.js.map +1 -1
- package/lib/module/components/listitems/ListItemAction.js +2 -1
- package/lib/module/components/listitems/ListItemAction.js.map +1 -1
- package/lib/module/components/listitems/ListItemAmount.js +2 -1
- package/lib/module/components/listitems/ListItemAmount.js.map +1 -1
- package/lib/module/components/listitems/ListItemCheckbox.js +3 -2
- package/lib/module/components/listitems/ListItemCheckbox.js.map +1 -1
- package/lib/module/components/listitems/ListItemHeader.js +3 -2
- package/lib/module/components/listitems/ListItemHeader.js.map +1 -1
- package/lib/module/components/listitems/ListItemInfo.js +2 -1
- package/lib/module/components/listitems/ListItemInfo.js.map +1 -1
- package/lib/module/components/listitems/ListItemInfoCopy.js +2 -1
- package/lib/module/components/listitems/ListItemInfoCopy.js.map +1 -1
- package/lib/module/components/listitems/ListItemNav.js +3 -2
- package/lib/module/components/listitems/ListItemNav.js.map +1 -1
- package/lib/module/components/listitems/ListItemNavAlert.js +2 -1
- package/lib/module/components/listitems/ListItemNavAlert.js.map +1 -1
- package/lib/module/components/listitems/ListItemRadio.js +3 -3
- package/lib/module/components/listitems/ListItemRadio.js.map +1 -1
- package/lib/module/components/listitems/ListItemRadioWithAmount.js +4 -3
- package/lib/module/components/listitems/ListItemRadioWithAmount.js.map +1 -1
- package/lib/module/components/listitems/ListItemSwitch.js +3 -2
- package/lib/module/components/listitems/ListItemSwitch.js.map +1 -1
- package/lib/module/components/listitems/ListItemTransaction.js +3 -2
- package/lib/module/components/listitems/ListItemTransaction.js.map +1 -1
- package/lib/module/components/loadingSpinner/LoadingSpinner.js +2 -1
- package/lib/module/components/loadingSpinner/LoadingSpinner.js.map +1 -1
- package/lib/module/components/modules/ModuleAttachment.js +3 -2
- package/lib/module/components/modules/ModuleAttachment.js.map +1 -1
- package/lib/module/components/modules/ModuleCheckout.js +3 -2
- package/lib/module/components/modules/ModuleCheckout.js.map +1 -1
- package/lib/module/components/modules/ModuleCredential.js +3 -2
- package/lib/module/components/modules/ModuleCredential.js.map +1 -1
- package/lib/module/components/modules/ModuleIDP.js +2 -1
- package/lib/module/components/modules/ModuleIDP.js.map +1 -1
- package/lib/module/components/modules/ModuleNavigation.js +3 -2
- package/lib/module/components/modules/ModuleNavigation.js.map +1 -1
- package/lib/module/components/modules/ModulePaymentNotice.js +4 -3
- package/lib/module/components/modules/ModulePaymentNotice.js.map +1 -1
- package/lib/module/components/modules/ModuleStatic.js +4 -3
- package/lib/module/components/modules/ModuleStatic.js.map +1 -1
- package/lib/module/components/modules/ModuleSummary.js +1 -1
- package/lib/module/components/modules/ModuleSummary.js.map +1 -1
- package/lib/module/components/modules/PressableModuleBase.js +2 -1
- package/lib/module/components/modules/PressableModuleBase.js.map +1 -1
- package/lib/module/components/numberpad/NumberButton.js +2 -1
- package/lib/module/components/numberpad/NumberButton.js.map +1 -1
- package/lib/module/components/numberpad/NumberPad.js +1 -2
- package/lib/module/components/numberpad/NumberPad.js.map +1 -1
- package/lib/module/components/otpInput/BoxedInput.js +3 -3
- package/lib/module/components/otpInput/BoxedInput.js.map +1 -1
- package/lib/module/components/otpInput/OTPInput.js +2 -2
- package/lib/module/components/otpInput/OTPInput.js.map +1 -1
- package/lib/module/components/pictograms/Pictogram.js +2 -1
- package/lib/module/components/pictograms/Pictogram.js.map +1 -1
- package/lib/module/components/progressLoader/ProgressLoader.js +3 -3
- package/lib/module/components/progressLoader/ProgressLoader.js.map +1 -1
- package/lib/module/components/radio/AnimatedRadio.js +1 -1
- package/lib/module/components/radio/AnimatedRadio.js.map +1 -1
- package/lib/module/components/radio/RadioButtonLabel.js +3 -3
- package/lib/module/components/radio/RadioButtonLabel.js.map +1 -1
- package/lib/module/components/radio/RadioGroup.js +1 -1
- package/lib/module/components/radio/RadioGroup.js.map +1 -1
- package/lib/module/components/searchInput/SearchInput.js +2 -1
- package/lib/module/components/searchInput/SearchInput.js.map +1 -1
- package/lib/module/components/skeleton/IOSkeleton.js +2 -1
- package/lib/module/components/skeleton/IOSkeleton.js.map +1 -1
- package/lib/module/components/stepper/Stepper.js +3 -2
- package/lib/module/components/stepper/Stepper.js.map +1 -1
- package/lib/module/components/switch/NativeSwitch.js +1 -1
- package/lib/module/components/switch/NativeSwitch.js.map +1 -1
- package/lib/module/components/tabs/TabItem.js +2 -1
- package/lib/module/components/tabs/TabItem.js.map +1 -1
- package/lib/module/components/tag/Tag.js +2 -2
- package/lib/module/components/tag/Tag.js.map +1 -1
- package/lib/module/components/templates/Dismissable.js.map +1 -0
- package/lib/module/components/{layout → templates}/ForceScrollDownView.js +1 -2
- package/lib/module/components/templates/ForceScrollDownView.js.map +1 -0
- package/lib/module/components/templates/README.md +19 -0
- package/lib/module/components/templates/__test__/ForceScrollDownView.test.js.map +1 -0
- package/lib/module/components/templates/index.js +5 -0
- package/lib/module/components/templates/index.js.map +1 -0
- package/lib/module/components/textInput/TextInputBase.js +3 -2
- package/lib/module/components/textInput/TextInputBase.js.map +1 -1
- package/lib/module/components/textInput/TextInputValidation.js +1 -1
- package/lib/module/components/textInput/TextInputValidation.js.map +1 -1
- package/lib/module/components/toast/ToastNotification.js +3 -2
- package/lib/module/components/toast/ToastNotification.js.map +1 -1
- package/lib/module/components/toast/ToastProvider.js +1 -1
- package/lib/module/components/toast/ToastProvider.js.map +1 -1
- package/lib/module/components/tooltip/Tooltip.js +2 -1
- package/lib/module/components/tooltip/Tooltip.js.map +1 -1
- package/lib/module/components/typography/Body.js +1 -1
- package/lib/module/components/typography/Body.js.map +1 -1
- package/lib/module/components/typography/BodyMonospace.js +1 -1
- package/lib/module/components/typography/BodyMonospace.js.map +1 -1
- package/lib/module/components/typography/BodySmall.js +1 -1
- package/lib/module/components/typography/BodySmall.js.map +1 -1
- package/lib/module/components/typography/ButtonText.js +1 -1
- package/lib/module/components/typography/ButtonText.js.map +1 -1
- package/lib/module/components/typography/Caption.js +1 -1
- package/lib/module/components/typography/Caption.js.map +1 -1
- package/lib/module/components/typography/H1.js +1 -1
- package/lib/module/components/typography/H1.js.map +1 -1
- package/lib/module/components/typography/H2.js +1 -1
- package/lib/module/components/typography/H2.js.map +1 -1
- package/lib/module/components/typography/H3.js +1 -1
- package/lib/module/components/typography/H3.js.map +1 -1
- package/lib/module/components/typography/H4.js +1 -1
- package/lib/module/components/typography/H4.js.map +1 -1
- package/lib/module/components/typography/H5.js +1 -1
- package/lib/module/components/typography/H5.js.map +1 -1
- package/lib/module/components/typography/H6.js +1 -1
- package/lib/module/components/typography/H6.js.map +1 -1
- package/lib/module/components/typography/Hero.js +1 -1
- package/lib/module/components/typography/Hero.js.map +1 -1
- package/lib/module/components/typography/IOText.js +2 -1
- package/lib/module/components/typography/IOText.js.map +1 -1
- package/lib/module/components/typography/LabelMini.js +1 -1
- package/lib/module/components/typography/LabelMini.js.map +1 -1
- package/lib/module/components/typography/README.md +13 -4
- package/lib/module/components/typography/markdown/MdH1.js +1 -1
- package/lib/module/components/typography/markdown/MdH1.js.map +1 -1
- package/lib/module/components/typography/markdown/MdH2.js +1 -1
- package/lib/module/components/typography/markdown/MdH2.js.map +1 -1
- package/lib/module/components/typography/markdown/MdH3.js +1 -1
- package/lib/module/components/typography/markdown/MdH3.js.map +1 -1
- package/lib/module/context/IODSExperimentalContextProvider.js.map +1 -0
- package/lib/module/context/IONewTypefaceContextProvider.js.map +1 -0
- package/lib/module/{core → context}/IOThemeContextProvider.js +1 -1
- package/lib/module/context/IOThemeContextProvider.js.map +1 -0
- package/lib/module/context/README.md +57 -0
- package/lib/module/context/index.js +6 -0
- package/lib/module/context/index.js.map +1 -0
- package/lib/module/core/index.js +0 -3
- package/lib/module/core/index.js.map +1 -1
- package/lib/module/functions/README.md +15 -0
- package/lib/module/hooks/useListItemAnimation.js +2 -1
- package/lib/module/hooks/useListItemAnimation.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/utils/testing.js +1 -1
- package/lib/module/utils/testing.js.map +1 -1
- package/lib/typescript/components/accordion/AccordionItem.d.ts.map +1 -1
- package/lib/typescript/components/alert/Alert.d.ts.map +1 -1
- package/lib/typescript/components/badge/Badge.d.ts.map +1 -1
- package/lib/typescript/components/banner/Banner.d.ts.map +1 -1
- package/lib/typescript/components/banner/BannerErrorState.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/IOButton/styles.d.ts.map +1 -1
- package/lib/typescript/components/buttons/IconButtonSolid.d.ts +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/CheckboxLabel.d.ts +1 -2
- package/lib/typescript/components/checkbox/CheckboxLabel.d.ts.map +1 -1
- package/lib/typescript/components/codeInput/CodeInput.d.ts.map +1 -1
- package/lib/typescript/components/featureInfo/FeatureInfo.d.ts.map +1 -1
- package/lib/typescript/components/{layout → headers}/HeaderFirstLevel.d.ts +1 -1
- package/lib/typescript/components/headers/HeaderFirstLevel.d.ts.map +1 -0
- package/lib/typescript/components/headers/HeaderSecondLevel.d.ts.map +1 -0
- package/lib/typescript/components/headers/ModalBSHeader.d.ts.map +1 -0
- package/lib/typescript/components/headers/common.d.ts.map +1 -0
- package/lib/typescript/components/headers/index.d.ts +5 -0
- package/lib/typescript/components/headers/index.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +2 -4
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/components/layout/ContentWrapper.d.ts.map +1 -0
- package/lib/typescript/components/layout/Divider.d.ts.map +1 -0
- package/lib/typescript/components/layout/FooterActions.d.ts +1 -2
- package/lib/typescript/components/layout/FooterActions.d.ts.map +1 -1
- package/lib/typescript/components/layout/FooterActionsInline.d.ts +1 -2
- package/lib/typescript/components/layout/FooterActionsInline.d.ts.map +1 -1
- package/lib/typescript/components/{spacer → layout}/Spacer.d.ts.map +1 -1
- package/lib/typescript/components/layout/Stack.d.ts.map +1 -0
- package/lib/typescript/components/layout/index.d.ts +4 -5
- 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/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 +1 -1
- package/lib/typescript/components/listitems/ListItemRadioWithAmount.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemSwitch.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemTransaction.d.ts.map +1 -1
- package/lib/typescript/components/loadingSpinner/LoadingSpinner.d.ts.map +1 -1
- package/lib/typescript/components/modules/ModuleAttachment.d.ts.map +1 -1
- package/lib/typescript/components/modules/ModuleCheckout.d.ts.map +1 -1
- package/lib/typescript/components/modules/ModuleIDP.d.ts.map +1 -1
- package/lib/typescript/components/modules/ModulePaymentNotice.d.ts +1 -1
- package/lib/typescript/components/modules/ModulePaymentNotice.d.ts.map +1 -1
- package/lib/typescript/components/modules/ModuleStatic.d.ts +1 -1
- package/lib/typescript/components/modules/ModuleStatic.d.ts.map +1 -1
- package/lib/typescript/components/modules/PressableModuleBase.d.ts.map +1 -1
- package/lib/typescript/components/numberpad/NumberButton.d.ts.map +1 -1
- package/lib/typescript/components/numberpad/NumberPad.d.ts.map +1 -1
- package/lib/typescript/components/otpInput/BoxedInput.d.ts +1 -1
- package/lib/typescript/components/otpInput/BoxedInput.d.ts.map +1 -1
- package/lib/typescript/components/pictograms/Pictogram.d.ts.map +1 -1
- package/lib/typescript/components/progressLoader/ProgressLoader.d.ts +1 -1
- package/lib/typescript/components/progressLoader/ProgressLoader.d.ts.map +1 -1
- package/lib/typescript/components/radio/RadioButtonLabel.d.ts +1 -2
- 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/skeleton/IOSkeleton.d.ts.map +1 -1
- package/lib/typescript/components/stepper/Stepper.d.ts +1 -1
- package/lib/typescript/components/stepper/Stepper.d.ts.map +1 -1
- package/lib/typescript/components/tabs/TabItem.d.ts.map +1 -1
- package/lib/typescript/components/tag/Tag.d.ts.map +1 -1
- package/lib/typescript/components/templates/Dismissable.d.ts.map +1 -0
- package/lib/typescript/components/{layout → templates}/ForceScrollDownView.d.ts +1 -1
- package/lib/typescript/components/templates/ForceScrollDownView.d.ts.map +1 -0
- package/lib/typescript/components/templates/__test__/ForceScrollDownView.test.d.ts.map +1 -0
- package/lib/typescript/components/templates/index.d.ts +3 -0
- package/lib/typescript/components/templates/index.d.ts.map +1 -0
- package/lib/typescript/components/textInput/TextInputBase.d.ts.map +1 -1
- package/lib/typescript/components/toast/ToastNotification.d.ts.map +1 -1
- package/lib/typescript/components/tooltip/Tooltip.d.ts.map +1 -1
- package/lib/typescript/components/typography/ButtonText.d.ts.map +1 -1
- package/lib/typescript/components/typography/IOText.d.ts.map +1 -1
- package/lib/typescript/context/IODSExperimentalContextProvider.d.ts.map +1 -0
- package/lib/typescript/context/IONewTypefaceContextProvider.d.ts.map +1 -0
- package/lib/typescript/{core → context}/IOThemeContextProvider.d.ts +1 -1
- package/lib/typescript/context/IOThemeContextProvider.d.ts.map +1 -0
- package/lib/typescript/context/index.d.ts +4 -0
- package/lib/typescript/context/index.d.ts.map +1 -0
- package/lib/typescript/core/index.d.ts +0 -3
- package/lib/typescript/core/index.d.ts.map +1 -1
- package/lib/typescript/hooks/useListItemAnimation.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/package.json +1 -23
- package/src/components/accordion/AccordionItem.tsx +2 -1
- package/src/components/alert/Alert.tsx +4 -3
- package/src/components/avatar/Avatar.tsx +2 -2
- package/src/components/badge/Badge.tsx +2 -15
- package/src/components/banner/Banner.tsx +3 -8
- package/src/components/banner/BannerErrorState.tsx +6 -11
- package/src/components/buttons/ButtonLink.tsx +2 -3
- package/src/components/buttons/ButtonOutline.tsx +2 -7
- package/src/components/buttons/ButtonSolid.tsx +2 -2
- package/src/components/buttons/IOButton/IOButton.tsx +2 -2
- package/src/components/buttons/IOButton/styles.tsx +2 -1
- package/src/components/buttons/IconButton.tsx +2 -2
- package/src/components/buttons/IconButtonSolid.tsx +3 -2
- package/src/components/checkbox/AnimatedCheckbox.tsx +3 -4
- package/src/components/checkbox/AnimatedMessageCheckbox.tsx +1 -1
- package/src/components/checkbox/CheckboxLabel.tsx +4 -8
- package/src/components/claimsSelector/ClaimsSelector.tsx +5 -5
- package/src/components/codeInput/CodeInput.tsx +3 -2
- package/src/components/featureInfo/FeatureInfo.tsx +2 -1
- package/src/components/{layout → headers}/HeaderFirstLevel.tsx +4 -5
- package/src/components/{layout → headers}/HeaderSecondLevel.tsx +3 -5
- package/src/components/headers/README.md +10 -0
- package/src/components/headers/index.tsx +4 -0
- package/src/components/index.tsx +2 -4
- package/src/components/{divider → layout}/Divider.tsx +3 -2
- package/src/components/layout/FooterActions.tsx +4 -5
- package/src/components/layout/FooterActionsInline.tsx +3 -5
- package/src/components/layout/GradientBottomActions.tsx +1 -1
- package/src/components/layout/README.md +93 -0
- package/src/components/layout/index.tsx +4 -5
- package/src/components/listitems/ListItemAction.tsx +2 -6
- package/src/components/listitems/ListItemAmount.tsx +2 -2
- package/src/components/listitems/ListItemCheckbox.tsx +3 -3
- package/src/components/listitems/ListItemHeader.tsx +3 -3
- package/src/components/listitems/ListItemInfo.tsx +2 -5
- package/src/components/listitems/ListItemInfoCopy.tsx +2 -5
- package/src/components/listitems/ListItemNav.tsx +3 -3
- package/src/components/listitems/ListItemNavAlert.tsx +2 -5
- package/src/components/listitems/ListItemRadio.tsx +3 -4
- package/src/components/listitems/ListItemRadioWithAmount.tsx +4 -3
- package/src/components/listitems/ListItemSwitch.tsx +3 -3
- package/src/components/listitems/ListItemTransaction.tsx +3 -4
- package/src/components/loadingSpinner/LoadingSpinner.tsx +2 -1
- package/src/components/modules/ModuleAttachment.tsx +3 -2
- package/src/components/modules/ModuleCheckout.tsx +3 -6
- package/src/components/modules/ModuleCredential.tsx +3 -3
- package/src/components/modules/ModuleIDP.tsx +2 -6
- package/src/components/modules/ModuleNavigation.tsx +3 -3
- package/src/components/modules/ModulePaymentNotice.tsx +4 -3
- package/src/components/modules/ModuleStatic.tsx +4 -3
- package/src/components/modules/ModuleSummary.tsx +1 -1
- package/src/components/modules/PressableModuleBase.tsx +2 -6
- package/src/components/numberpad/NumberButton.tsx +2 -1
- package/src/components/numberpad/NumberPad.tsx +1 -2
- package/src/components/otpInput/BoxedInput.tsx +3 -3
- package/src/components/otpInput/OTPInput.tsx +2 -2
- package/src/components/pictograms/Pictogram.tsx +2 -1
- package/src/components/progressLoader/ProgressLoader.tsx +3 -3
- package/src/components/radio/AnimatedRadio.tsx +1 -1
- package/src/components/radio/RadioButtonLabel.tsx +3 -3
- package/src/components/radio/RadioGroup.tsx +1 -1
- package/src/components/searchInput/SearchInput.tsx +2 -7
- package/src/components/skeleton/IOSkeleton.tsx +2 -1
- package/src/components/stepper/Stepper.tsx +3 -2
- package/src/components/switch/NativeSwitch.tsx +1 -1
- package/src/components/tabs/TabItem.tsx +2 -7
- package/src/components/tag/Tag.tsx +5 -8
- package/src/components/{layout → templates}/ForceScrollDownView.tsx +1 -2
- package/src/components/templates/README.md +19 -0
- package/src/components/templates/index.tsx +2 -0
- package/src/components/textInput/TextInputBase.tsx +3 -8
- package/src/components/textInput/TextInputValidation.tsx +1 -1
- package/src/components/toast/ToastNotification.tsx +3 -7
- package/src/components/toast/ToastProvider.tsx +1 -1
- package/src/components/tooltip/Tooltip.tsx +2 -1
- package/src/components/typography/Body.tsx +1 -1
- package/src/components/typography/BodyMonospace.tsx +1 -1
- package/src/components/typography/BodySmall.tsx +1 -1
- package/src/components/typography/ButtonText.tsx +2 -1
- package/src/components/typography/Caption.tsx +1 -1
- package/src/components/typography/H1.tsx +1 -1
- package/src/components/typography/H2.tsx +1 -1
- package/src/components/typography/H3.tsx +1 -1
- package/src/components/typography/H4.tsx +1 -1
- package/src/components/typography/H5.tsx +1 -1
- package/src/components/typography/H6.tsx +1 -1
- package/src/components/typography/Hero.tsx +1 -1
- package/src/components/typography/IOText.tsx +2 -1
- package/src/components/typography/LabelMini.tsx +1 -1
- package/src/components/typography/README.md +13 -4
- package/src/components/typography/markdown/MdH1.tsx +1 -1
- package/src/components/typography/markdown/MdH2.tsx +1 -1
- package/src/components/typography/markdown/MdH3.tsx +1 -1
- package/src/{core → context}/IOThemeContextProvider.tsx +1 -1
- package/src/context/README.md +57 -0
- package/src/context/index.ts +3 -0
- package/src/core/index.ts +0 -3
- package/src/functions/README.md +15 -0
- package/src/hooks/useListItemAnimation.tsx +2 -1
- package/src/index.tsx +1 -0
- package/src/utils/testing.tsx +1 -1
- package/lib/commonjs/components/contentWrapper/ContentWrapper.js.map +0 -1
- package/lib/commonjs/components/contentWrapper/index.js +0 -17
- package/lib/commonjs/components/contentWrapper/index.js.map +0 -1
- package/lib/commonjs/components/divider/Divider.js.map +0 -1
- package/lib/commonjs/components/divider/index.js +0 -17
- package/lib/commonjs/components/divider/index.js.map +0 -1
- package/lib/commonjs/components/layout/Dismissable.js.map +0 -1
- package/lib/commonjs/components/layout/ForceScrollDownView.js.map +0 -1
- package/lib/commonjs/components/layout/HeaderFirstLevel.js.map +0 -1
- package/lib/commonjs/components/layout/HeaderSecondLevel.js.map +0 -1
- package/lib/commonjs/components/layout/ModalBSHeader.js.map +0 -1
- package/lib/commonjs/components/layout/__test__/ForceScrollDownView.test.js.map +0 -1
- package/lib/commonjs/components/layout/common.js.map +0 -1
- package/lib/commonjs/components/spacer/index.js +0 -17
- package/lib/commonjs/components/spacer/index.js.map +0 -1
- package/lib/commonjs/components/stack/Stack.js.map +0 -1
- package/lib/commonjs/components/stack/index.js +0 -17
- package/lib/commonjs/components/stack/index.js.map +0 -1
- package/lib/commonjs/core/IODSExperimentalContextProvider.js.map +0 -1
- package/lib/commonjs/core/IONewTypefaceContextProvider.js.map +0 -1
- package/lib/commonjs/core/IOThemeContextProvider.js.map +0 -1
- package/lib/module/components/contentWrapper/ContentWrapper.js.map +0 -1
- package/lib/module/components/contentWrapper/index.js +0 -4
- package/lib/module/components/contentWrapper/index.js.map +0 -1
- package/lib/module/components/divider/Divider.js.map +0 -1
- package/lib/module/components/divider/index.js +0 -4
- package/lib/module/components/divider/index.js.map +0 -1
- package/lib/module/components/layout/Dismissable.js.map +0 -1
- package/lib/module/components/layout/ForceScrollDownView.js.map +0 -1
- package/lib/module/components/layout/HeaderFirstLevel.js.map +0 -1
- package/lib/module/components/layout/HeaderSecondLevel.js.map +0 -1
- package/lib/module/components/layout/ModalBSHeader.js.map +0 -1
- package/lib/module/components/layout/__test__/ForceScrollDownView.test.js.map +0 -1
- package/lib/module/components/layout/common.js.map +0 -1
- package/lib/module/components/spacer/index.js +0 -4
- package/lib/module/components/spacer/index.js.map +0 -1
- package/lib/module/components/stack/Stack.js.map +0 -1
- package/lib/module/components/stack/index.js +0 -4
- package/lib/module/components/stack/index.js.map +0 -1
- package/lib/module/core/IODSExperimentalContextProvider.js.map +0 -1
- package/lib/module/core/IONewTypefaceContextProvider.js.map +0 -1
- package/lib/module/core/IOThemeContextProvider.js.map +0 -1
- package/lib/typescript/components/contentWrapper/ContentWrapper.d.ts.map +0 -1
- package/lib/typescript/components/contentWrapper/index.d.ts +0 -2
- package/lib/typescript/components/contentWrapper/index.d.ts.map +0 -1
- package/lib/typescript/components/divider/Divider.d.ts.map +0 -1
- package/lib/typescript/components/divider/index.d.ts +0 -2
- package/lib/typescript/components/divider/index.d.ts.map +0 -1
- package/lib/typescript/components/layout/Dismissable.d.ts.map +0 -1
- package/lib/typescript/components/layout/ForceScrollDownView.d.ts.map +0 -1
- package/lib/typescript/components/layout/HeaderFirstLevel.d.ts.map +0 -1
- package/lib/typescript/components/layout/HeaderSecondLevel.d.ts.map +0 -1
- package/lib/typescript/components/layout/ModalBSHeader.d.ts.map +0 -1
- package/lib/typescript/components/layout/__test__/ForceScrollDownView.test.d.ts.map +0 -1
- package/lib/typescript/components/layout/common.d.ts.map +0 -1
- package/lib/typescript/components/spacer/index.d.ts +0 -2
- package/lib/typescript/components/spacer/index.d.ts.map +0 -1
- package/lib/typescript/components/stack/Stack.d.ts.map +0 -1
- package/lib/typescript/components/stack/index.d.ts +0 -2
- package/lib/typescript/components/stack/index.d.ts.map +0 -1
- package/lib/typescript/core/IODSExperimentalContextProvider.d.ts.map +0 -1
- package/lib/typescript/core/IONewTypefaceContextProvider.d.ts.map +0 -1
- package/lib/typescript/core/IOThemeContextProvider.d.ts.map +0 -1
- package/src/components/contentWrapper/index.tsx +0 -1
- package/src/components/divider/index.tsx +0 -1
- package/src/components/spacer/index.tsx +0 -1
- package/src/components/stack/index.tsx +0 -1
- /package/lib/commonjs/components/{layout → headers}/ModalBSHeader.js +0 -0
- /package/lib/commonjs/components/{layout → headers}/common.js +0 -0
- /package/lib/commonjs/components/{contentWrapper → layout}/ContentWrapper.js +0 -0
- /package/lib/commonjs/components/{spacer → layout}/Spacer.js +0 -0
- /package/lib/commonjs/components/{stack → layout}/Stack.js +0 -0
- /package/lib/commonjs/components/{layout → templates}/Dismissable.js +0 -0
- /package/lib/commonjs/components/{layout → templates}/__test__/ForceScrollDownView.test.js +0 -0
- /package/lib/commonjs/components/{layout → templates}/__test__/__snapshots__/ForceScrollDownView.test.tsx.snap +0 -0
- /package/lib/commonjs/{core → context}/IODSExperimentalContextProvider.js +0 -0
- /package/lib/commonjs/{core → context}/IONewTypefaceContextProvider.js +0 -0
- /package/lib/module/components/{layout → headers}/ModalBSHeader.js +0 -0
- /package/lib/module/components/{layout → headers}/common.js +0 -0
- /package/lib/module/components/{contentWrapper → layout}/ContentWrapper.js +0 -0
- /package/lib/module/components/{spacer → layout}/Spacer.js +0 -0
- /package/lib/module/components/{stack → layout}/Stack.js +0 -0
- /package/lib/module/components/{layout → templates}/Dismissable.js +0 -0
- /package/lib/module/components/{layout → templates}/__test__/ForceScrollDownView.test.js +0 -0
- /package/lib/module/components/{layout → templates}/__test__/__snapshots__/ForceScrollDownView.test.tsx.snap +0 -0
- /package/lib/module/{core → context}/IODSExperimentalContextProvider.js +0 -0
- /package/lib/module/{core → context}/IONewTypefaceContextProvider.js +0 -0
- /package/lib/typescript/components/{layout → headers}/HeaderSecondLevel.d.ts +0 -0
- /package/lib/typescript/components/{layout → headers}/ModalBSHeader.d.ts +0 -0
- /package/lib/typescript/components/{layout → headers}/common.d.ts +0 -0
- /package/lib/typescript/components/{contentWrapper → layout}/ContentWrapper.d.ts +0 -0
- /package/lib/typescript/components/{divider → layout}/Divider.d.ts +0 -0
- /package/lib/typescript/components/{spacer → layout}/Spacer.d.ts +0 -0
- /package/lib/typescript/components/{stack → layout}/Stack.d.ts +0 -0
- /package/lib/typescript/components/{layout → templates}/Dismissable.d.ts +0 -0
- /package/lib/typescript/components/{layout → templates}/__test__/ForceScrollDownView.test.d.ts +0 -0
- /package/lib/typescript/{core → context}/IODSExperimentalContextProvider.d.ts +0 -0
- /package/lib/typescript/{core → context}/IONewTypefaceContextProvider.d.ts +0 -0
- /package/src/components/{layout → headers}/ModalBSHeader.tsx +0 -0
- /package/src/components/{layout → headers}/common.ts +0 -0
- /package/src/components/{contentWrapper → layout}/ContentWrapper.tsx +0 -0
- /package/src/components/{spacer → layout}/Spacer.tsx +0 -0
- /package/src/components/{stack → layout}/Stack.tsx +0 -0
- /package/src/components/{layout → templates}/Dismissable.tsx +0 -0
- /package/src/components/{layout → templates}/__test__/ForceScrollDownView.test.tsx +0 -0
- /package/src/components/{layout → templates}/__test__/__snapshots__/ForceScrollDownView.test.tsx.snap +0 -0
- /package/src/{core → context}/IODSExperimentalContextProvider.tsx +0 -0
- /package/src/{core → context}/IONewTypefaceContextProvider.tsx +0 -0
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
StyleSheet,
|
|
7
7
|
View
|
|
8
8
|
} from "react-native";
|
|
9
|
+
import { useIOTheme } from "../../context";
|
|
9
10
|
import {
|
|
10
11
|
IOListItemVisualParams,
|
|
11
12
|
IOSelectionListItemVisualParams,
|
|
12
13
|
IOSpacer,
|
|
13
|
-
IOVisualCostants
|
|
14
|
-
useIOTheme
|
|
14
|
+
IOVisualCostants
|
|
15
15
|
} from "../../core";
|
|
16
16
|
import { useIOFontDynamicScale } from "../../utils/accessibility";
|
|
17
17
|
import { WithTestID } from "../../utils/types";
|
|
18
18
|
import { Badge } from "../badge";
|
|
19
19
|
import { IOIcons, Icon } from "../icons";
|
|
20
|
+
import { HStack, VStack } from "../layout";
|
|
20
21
|
import { IOSkeleton } from "../skeleton";
|
|
21
|
-
import { HStack, VStack } from "../stack";
|
|
22
22
|
import { BodySmall, LabelMini } from "../typography";
|
|
23
23
|
import { ModuleStatic } from "./ModuleStatic";
|
|
24
24
|
import {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { GestureResponderEvent, StyleSheet, View } from "react-native";
|
|
3
|
-
import {
|
|
3
|
+
import { useIOTheme } from "../../context";
|
|
4
|
+
import { IOListItemVisualParams, IOSpacer } from "../../core";
|
|
4
5
|
import { WithTestID } from "../../utils/types";
|
|
5
6
|
import { Badge } from "../badge";
|
|
6
7
|
import { Icon } from "../icons";
|
|
8
|
+
import { HStack, VStack } from "../layout";
|
|
7
9
|
import { IOSkeleton } from "../skeleton";
|
|
8
|
-
import { HStack, VStack } from "../stack";
|
|
9
10
|
import { Body, BodySmall, H6 } from "../typography";
|
|
10
11
|
import { ModuleStatic } from "./ModuleStatic";
|
|
11
12
|
import { PressableModuleBase } from "./PressableModuleBase";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { PressableProps, View, ViewProps } from "react-native";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { useIOTheme } from "../../context";
|
|
4
|
+
import { IOColors, IOModuleStyles } from "../../core";
|
|
5
|
+
import { HStack } from "../layout";
|
|
5
6
|
|
|
6
7
|
type ModuleStaticProps = Pick<
|
|
7
8
|
ViewProps,
|
|
@@ -3,12 +3,8 @@ import { PropsWithChildren, useCallback } from "react";
|
|
|
3
3
|
import { GestureResponderEvent, Pressable } from "react-native";
|
|
4
4
|
import ReactNativeHapticFeedback from "react-native-haptic-feedback";
|
|
5
5
|
import Animated, { useReducedMotion } from "react-native-reanimated";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
IOModuleIDPSavedVSpacing,
|
|
9
|
-
IOModuleStyles,
|
|
10
|
-
useIOTheme
|
|
11
|
-
} from "../../core";
|
|
6
|
+
import { IOColors, IOModuleIDPSavedVSpacing, IOModuleStyles } from "../../core";
|
|
7
|
+
import { useIOTheme } from "../../context";
|
|
12
8
|
import { useScaleAnimation } from "../../hooks";
|
|
13
9
|
import { WithTestID } from "../../utils/types";
|
|
14
10
|
|
|
@@ -6,7 +6,8 @@ import Animated, {
|
|
|
6
6
|
useAnimatedStyle,
|
|
7
7
|
useReducedMotion
|
|
8
8
|
} from "react-native-reanimated";
|
|
9
|
-
import {
|
|
9
|
+
import { useIONewTypeface, useIOTheme } from "../../context";
|
|
10
|
+
import { hexToRgba, IOColors } from "../../core";
|
|
10
11
|
import { useScaleAnimation } from "../../hooks";
|
|
11
12
|
import { IOText } from "../typography";
|
|
12
13
|
|
|
@@ -2,9 +2,8 @@ import React, { ComponentProps, JSX, useCallback, useMemo } from "react";
|
|
|
2
2
|
import { StyleSheet, View } from "react-native";
|
|
3
3
|
import { BiometricsValidType, Optional } from "../../utils/types";
|
|
4
4
|
import { IconButton } from "../buttons";
|
|
5
|
-
import { ContentWrapper } from "../contentWrapper";
|
|
6
5
|
import { IOIconSizeScale, IOIcons } from "../icons";
|
|
7
|
-
import { VStack } from "../
|
|
6
|
+
import { ContentWrapper, VStack } from "../layout";
|
|
8
7
|
import { NumberButton, numberButtonStyles } from "./NumberButton";
|
|
9
8
|
|
|
10
9
|
type BiometricAuthProps =
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useMemo } from "react";
|
|
1
|
+
import React, { useMemo } from "react";
|
|
3
2
|
import { StyleSheet, View, ViewStyle } from "react-native";
|
|
4
|
-
import {
|
|
3
|
+
import { useIOTheme } from "../../context";
|
|
4
|
+
import { hexToRgba, IOColors } from "../../core/IOColors";
|
|
5
5
|
import { H6, IOText } from "../typography";
|
|
6
6
|
|
|
7
7
|
type Props = {
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
View
|
|
10
10
|
} from "react-native";
|
|
11
11
|
import Animated from "react-native-reanimated";
|
|
12
|
-
import { useIOTheme } from "../../
|
|
12
|
+
import { useIOTheme } from "../../context";
|
|
13
13
|
import { triggerHaptic } from "../../functions";
|
|
14
14
|
import { useErrorShakeAnimation } from "../../utils/hooks/useErrorShakeAnimation";
|
|
15
|
-
import { VSpacer } from "../
|
|
15
|
+
import { VSpacer } from "../layout";
|
|
16
16
|
import { BodySmall } from "../typography";
|
|
17
17
|
import { BoxedInput } from "./BoxedInput";
|
|
18
18
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { JSX, useMemo } from "react";
|
|
2
2
|
import { ColorValue } from "react-native";
|
|
3
|
-
import {
|
|
3
|
+
import { useIOTheme } from "../../context";
|
|
4
|
+
import { IOColors, IOThemeDark, IOThemeLight } from "../../core/IOColors";
|
|
4
5
|
import { useIOFontDynamicScale } from "../../utils/accessibility";
|
|
5
6
|
|
|
6
7
|
import PictogramAccessDenied from "./svg/PictogramAccessDenied";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useEffect, useState } from "react";
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
|
3
2
|
import { View } from "react-native";
|
|
4
3
|
import Animated, {
|
|
5
4
|
useAnimatedStyle,
|
|
6
5
|
useSharedValue,
|
|
7
6
|
withSpring
|
|
8
7
|
} from "react-native-reanimated";
|
|
9
|
-
import {
|
|
8
|
+
import { useIOTheme } from "../../context";
|
|
9
|
+
import { IOColors, IOSpringValues } from "../../core";
|
|
10
10
|
|
|
11
11
|
export type ProgressLoader = {
|
|
12
12
|
progress: number;
|
|
@@ -14,7 +14,7 @@ import Animated, {
|
|
|
14
14
|
withSpring,
|
|
15
15
|
withTiming
|
|
16
16
|
} from "react-native-reanimated";
|
|
17
|
-
import { useIOTheme } from "../../
|
|
17
|
+
import { useIOTheme } from "../../context";
|
|
18
18
|
import { IOSpringValues } from "../../core/IOAnimations";
|
|
19
19
|
import { IOColors } from "../../core/IOColors";
|
|
20
20
|
import { IOSelectionTickVisualParams } from "../../core/IOStyles";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ComponentProps, useState } from "react";
|
|
1
|
+
import React, { ComponentProps, useState } from "react";
|
|
3
2
|
import { Pressable, View } from "react-native";
|
|
4
|
-
import {
|
|
3
|
+
import { useIOTheme } from "../../context";
|
|
4
|
+
import { IOSelectionTickVisualParams } from "../../core";
|
|
5
5
|
import { triggerHaptic } from "../../functions/haptic-feedback/hapticFeedback";
|
|
6
6
|
import { useIOFontDynamicScale } from "../../utils/accessibility";
|
|
7
7
|
import { H6 } from "../typography/H6";
|
|
@@ -29,13 +29,8 @@ import Animated, {
|
|
|
29
29
|
withTiming
|
|
30
30
|
} from "react-native-reanimated";
|
|
31
31
|
import { WithTestID } from "src/utils/types";
|
|
32
|
-
import {
|
|
33
|
-
|
|
34
|
-
IOSpacingScale,
|
|
35
|
-
IOVisualCostants,
|
|
36
|
-
useIONewTypeface,
|
|
37
|
-
useIOTheme
|
|
38
|
-
} from "../../core";
|
|
32
|
+
import { useIONewTypeface, useIOTheme } from "../../context";
|
|
33
|
+
import { IOColors, IOSpacingScale, IOVisualCostants } from "../../core";
|
|
39
34
|
import {
|
|
40
35
|
IOFontSize,
|
|
41
36
|
IOMaxFontSizeMultiplier,
|
|
@@ -7,7 +7,8 @@ import {
|
|
|
7
7
|
ViewStyle
|
|
8
8
|
} from "react-native";
|
|
9
9
|
import { useReducedMotion } from "react-native-reanimated";
|
|
10
|
-
import {
|
|
10
|
+
import { useIOTheme } from "../../context";
|
|
11
|
+
import { IOColors } from "../../core";
|
|
11
12
|
import { WithTestID } from "../../utils/types";
|
|
12
13
|
|
|
13
14
|
const ANIMATION_DURATION = 1250;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { ColorValue, View } from "react-native";
|
|
3
|
-
import {
|
|
3
|
+
import { useIOTheme } from "../../context";
|
|
4
|
+
import { IOColors, IOSpacer, IOVisualCostants } from "../../core";
|
|
4
5
|
|
|
5
6
|
type StepperProps = {
|
|
6
7
|
steps: number;
|
|
@@ -13,13 +13,8 @@ import Animated, {
|
|
|
13
13
|
useReducedMotion,
|
|
14
14
|
withSpring
|
|
15
15
|
} from "react-native-reanimated";
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
IOSpringValues,
|
|
19
|
-
hexToRgba,
|
|
20
|
-
useIONewTypeface,
|
|
21
|
-
useIOTheme
|
|
22
|
-
} from "../../core";
|
|
16
|
+
import { useIONewTypeface, useIOTheme } from "../../context";
|
|
17
|
+
import { IOColors, IOSpringValues, hexToRgba } from "../../core";
|
|
23
18
|
import { useScaleAnimation } from "../../hooks";
|
|
24
19
|
import { WithTestID } from "../../utils/types";
|
|
25
20
|
import { IOIcons, Icon } from "../icons";
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Platform, StyleSheet, View, ViewStyle } from "react-native";
|
|
3
|
+
import { useIONewTypeface, useIOTheme } from "../../context";
|
|
3
4
|
import {
|
|
4
5
|
IOColors,
|
|
6
|
+
IOSpacingScale,
|
|
7
|
+
IOTagHSpacing,
|
|
5
8
|
IOTagRadius,
|
|
9
|
+
IOTagVSpacing,
|
|
6
10
|
IOTheme,
|
|
7
|
-
IOThemeLight
|
|
8
|
-
useIONewTypeface,
|
|
9
|
-
useIOTheme
|
|
11
|
+
IOThemeLight
|
|
10
12
|
} from "../../core";
|
|
11
|
-
import {
|
|
12
|
-
IOSpacingScale,
|
|
13
|
-
IOTagHSpacing,
|
|
14
|
-
IOTagVSpacing
|
|
15
|
-
} from "../../core/IOSpacing";
|
|
16
13
|
import { useIOFontDynamicScale } from "../../utils/accessibility";
|
|
17
14
|
import { WithTestID } from "../../utils/types";
|
|
18
15
|
import { IOIconSizeScale, IOIcons, Icon } from "../icons";
|
|
@@ -18,8 +18,7 @@ import {
|
|
|
18
18
|
import { IOSpringValues, IOVisualCostants } from "../../core";
|
|
19
19
|
import { IconButtonSolid } from "../buttons";
|
|
20
20
|
import { ScaleInOutAnimation } from "../common/ScaleInOutAnimation";
|
|
21
|
-
import { FooterActions } from "
|
|
22
|
-
import { useFooterActionsInlineMeasurements } from "./hooks";
|
|
21
|
+
import { FooterActions, useFooterActionsInlineMeasurements } from "../layout";
|
|
23
22
|
|
|
24
23
|
type ForceScrollDownViewActions = {
|
|
25
24
|
/**
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Templates
|
|
2
|
+
|
|
3
|
+
Although these templates do not provide specific instructions on how to build your screens, they offer a range of built-in features that can be easily integrated.
|
|
4
|
+
|
|
5
|
+
## `ForceScrollDownView`
|
|
6
|
+
|
|
7
|
+
A special `ScrollView` that includes a button which forces the page to scroll to the bottom.
|
|
8
|
+
|
|
9
|
+
### Usage
|
|
10
|
+
|
|
11
|
+
```jsx
|
|
12
|
+
import { ForceScrollDownView } from "@pagopa/io-app-design-system";
|
|
13
|
+
|
|
14
|
+
const SpecialPage = () => (
|
|
15
|
+
<ForceScrollDownView>
|
|
16
|
+
{ /* [Screen content] */}
|
|
17
|
+
</ForceScrollDownView>
|
|
18
|
+
);
|
|
19
|
+
```
|
|
@@ -27,13 +27,8 @@ import Animated, {
|
|
|
27
27
|
useSharedValue,
|
|
28
28
|
withTiming
|
|
29
29
|
} from "react-native-reanimated";
|
|
30
|
-
import {
|
|
31
|
-
|
|
32
|
-
IOSpacingScale,
|
|
33
|
-
hexToRgba,
|
|
34
|
-
useIONewTypeface,
|
|
35
|
-
useIOTheme
|
|
36
|
-
} from "../../core";
|
|
30
|
+
import { useIONewTypeface, useIOTheme } from "../../context";
|
|
31
|
+
import { IOColors, IOSpacingScale, hexToRgba } from "../../core";
|
|
37
32
|
import { useIOFontDynamicScale } from "../../utils/accessibility";
|
|
38
33
|
import {
|
|
39
34
|
IOFontSize,
|
|
@@ -43,7 +38,7 @@ import {
|
|
|
43
38
|
import { RNTextInputProps, getInputPropsByType } from "../../utils/textInput";
|
|
44
39
|
import { InputType, WithTestID } from "../../utils/types";
|
|
45
40
|
import { IOIconSizeScale, IOIcons, Icon } from "../icons";
|
|
46
|
-
import { HSpacer } from "../
|
|
41
|
+
import { HSpacer } from "../layout";
|
|
47
42
|
import { BodySmall } from "../typography";
|
|
48
43
|
|
|
49
44
|
type InputStatus = "initial" | "focused" | "disabled" | "error";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import { AccessibilityInfo, View } from "react-native";
|
|
10
10
|
import Animated from "react-native-reanimated";
|
|
11
11
|
import { TextInputValidationRefProps } from "../../utils/types";
|
|
12
|
-
import { useIOTheme } from "../../
|
|
12
|
+
import { useIOTheme } from "../../context";
|
|
13
13
|
import { IOColors } from "../../core/IOColors";
|
|
14
14
|
import {
|
|
15
15
|
enterTransitionInputIcon,
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import React, { useMemo } from "react";
|
|
2
2
|
import { StyleSheet, View, ViewStyle } from "react-native";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
IOAlertRadius,
|
|
6
|
-
IOColors,
|
|
7
|
-
useIOThemeContext
|
|
8
|
-
} from "../../core";
|
|
3
|
+
import { useIOThemeContext } from "../../context";
|
|
4
|
+
import { IOAlertRadius, IOColors, hexToRgba } from "../../core";
|
|
9
5
|
import { Icon } from "../icons";
|
|
10
|
-
import { HSpacer } from "../
|
|
6
|
+
import { HSpacer } from "../layout";
|
|
11
7
|
import { ButtonText } from "../typography";
|
|
12
8
|
import { Toast, ToastVariant } from "./types";
|
|
13
9
|
|
|
@@ -14,7 +14,7 @@ import Animated, {
|
|
|
14
14
|
} from "react-native-reanimated";
|
|
15
15
|
import { IOVisualCostants } from "../../core";
|
|
16
16
|
import { triggerHaptic } from "../../functions";
|
|
17
|
-
import { Dismissable } from "../
|
|
17
|
+
import { Dismissable } from "../templates";
|
|
18
18
|
import { ToastNotification } from "./ToastNotification";
|
|
19
19
|
import { ToastContext } from "./context";
|
|
20
20
|
import { Toast } from "./types";
|
|
@@ -19,7 +19,8 @@ import {
|
|
|
19
19
|
} from "react-native";
|
|
20
20
|
import Animated, { Easing, FadeIn, FadeOut } from "react-native-reanimated";
|
|
21
21
|
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
22
|
-
import {
|
|
22
|
+
import { useIOTheme, useIOThemeContext } from "../../context";
|
|
23
|
+
import { IOColors } from "../../core/IOColors";
|
|
23
24
|
import { IconButton } from "../buttons";
|
|
24
25
|
import { Body, H6 } from "../typography";
|
|
25
26
|
import { BottomArrow, LeftArrow, RightArrow, TopArrow } from "./Arrows";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ForwardedRef, forwardRef } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import { useIONewTypeface, useIOTheme } from "../../
|
|
3
|
+
import { useIONewTypeface, useIOTheme } from "../../context";
|
|
4
4
|
import { IOFontFamily, IOFontWeight } from "../../utils/fonts";
|
|
5
5
|
import {
|
|
6
6
|
IOText,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ForwardedRef, forwardRef } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import { useIOTheme } from "../../
|
|
3
|
+
import { useIOTheme } from "../../context";
|
|
4
4
|
import { bodyFontSize, bodyLineHeight } from "./Body";
|
|
5
5
|
import { IOText, IOTextProps, TypographicStyleProps } from "./IOText";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ForwardedRef, forwardRef } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import { useIONewTypeface, useIOTheme } from "../../
|
|
3
|
+
import { useIONewTypeface, useIOTheme } from "../../context";
|
|
4
4
|
import { IOFontFamily, IOFontWeight } from "../../utils/fonts";
|
|
5
5
|
import {
|
|
6
6
|
IOText,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { ForwardedRef, forwardRef } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import {
|
|
3
|
+
import { useIONewTypeface } from "../../context";
|
|
4
|
+
import { IOColors } from "../../core";
|
|
4
5
|
import { IOFontFamily, IOFontSize } from "../../utils/fonts";
|
|
5
6
|
import { IOText, IOTextProps, TypographicStyleProps } from "./IOText";
|
|
6
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ForwardedRef, forwardRef } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import { useIONewTypeface, useIOTheme } from "../../
|
|
3
|
+
import { useIONewTypeface, useIOTheme } from "../../context";
|
|
4
4
|
import { IOFontSize } from "../../utils/fonts";
|
|
5
5
|
import { IOText, IOTextProps, TypographicStyleProps } from "./IOText";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ForwardedRef, forwardRef } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import { useIONewTypeface, useIOTheme } from "../../
|
|
3
|
+
import { useIONewTypeface, useIOTheme } from "../../context";
|
|
4
4
|
import { IOFontSize } from "../../utils/fonts";
|
|
5
5
|
import { IOText, IOTextProps, TypographicStyleProps } from "./IOText";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ForwardedRef, forwardRef } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import { useIONewTypeface, useIOTheme } from "../../
|
|
3
|
+
import { useIONewTypeface, useIOTheme } from "../../context";
|
|
4
4
|
import { IOFontSize, IOFontWeight } from "../../utils/fonts";
|
|
5
5
|
import { IOText, IOTextProps, TypographicStyleProps } from "./IOText";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ForwardedRef, forwardRef } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import { useIONewTypeface, useIOTheme } from "../../
|
|
3
|
+
import { useIONewTypeface, useIOTheme } from "../../context";
|
|
4
4
|
import { IOFontSize } from "../../utils/fonts";
|
|
5
5
|
import { IOText, IOTextProps, TypographicStyleProps } from "./IOText";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ForwardedRef, forwardRef } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import { useIONewTypeface, useIOTheme } from "../../
|
|
3
|
+
import { useIONewTypeface, useIOTheme } from "../../context";
|
|
4
4
|
import { IOFontSize } from "../../utils/fonts";
|
|
5
5
|
import { IOText, IOTextProps, TypographicStyleProps } from "./IOText";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ForwardedRef, forwardRef } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import { useIONewTypeface, useIOTheme } from "../../
|
|
3
|
+
import { useIONewTypeface, useIOTheme } from "../../context";
|
|
4
4
|
import { IOFontSize } from "../../utils/fonts";
|
|
5
5
|
import { IOText, IOTextProps, TypographicStyleProps } from "./IOText";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ForwardedRef, forwardRef } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import { useIONewTypeface, useIOTheme } from "../../
|
|
3
|
+
import { useIONewTypeface, useIOTheme } from "../../context";
|
|
4
4
|
import { IOFontSize } from "../../utils/fonts";
|
|
5
5
|
import { IOText, IOTextProps, TypographicStyleProps } from "./IOText";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ForwardedRef, forwardRef } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import { useIONewTypeface, useIOTheme } from "../../
|
|
3
|
+
import { useIONewTypeface, useIOTheme } from "../../context";
|
|
4
4
|
import { IOFontSize } from "../../utils/fonts";
|
|
5
5
|
import { IOText, IOTextProps, TypographicStyleProps } from "./IOText";
|
|
6
6
|
|
|
@@ -8,7 +8,8 @@ import {
|
|
|
8
8
|
View
|
|
9
9
|
} from "react-native";
|
|
10
10
|
import Animated from "react-native-reanimated";
|
|
11
|
-
import { IOColors
|
|
11
|
+
import { IOColors } from "../../core";
|
|
12
|
+
import { useIOTheme } from "../../context";
|
|
12
13
|
import { useBoldTextEnabled } from "../../utils/accessibility";
|
|
13
14
|
import {
|
|
14
15
|
IOFontFamily,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ForwardedRef, forwardRef } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import { useIONewTypeface, useIOTheme } from "../../
|
|
3
|
+
import { useIONewTypeface, useIOTheme } from "../../context";
|
|
4
4
|
import { IOFontFamily, IOFontWeight } from "../../utils/fonts";
|
|
5
5
|
import {
|
|
6
6
|
IOText,
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## Handling font files
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Fonts are handled differently than Android and iOS. To use the font, `Titillio-Semibold` example, you must apply the following properties for Android:
|
|
6
6
|
|
|
7
7
|
```css
|
|
8
8
|
{
|
|
9
|
-
fontFamily: '
|
|
9
|
+
fontFamily: 'Titillio-Semibold'
|
|
10
10
|
}
|
|
11
11
|
```
|
|
12
12
|
|
|
@@ -14,9 +14,18 @@ while in iOS the code to be applied is:
|
|
|
14
14
|
|
|
15
15
|
```css
|
|
16
16
|
{
|
|
17
|
-
fontFamily: '
|
|
17
|
+
fontFamily: 'Titillio',
|
|
18
18
|
fontWeight: '600',
|
|
19
19
|
}
|
|
20
20
|
```
|
|
21
|
+
The different font handling is managed by the `makeFontFamilyName` function. It's included in the [fonts.ts](../../utils/fonts.ts) file, which contains many other utility functions that simplify font management.
|
|
21
22
|
|
|
22
|
-
|
|
23
|
+
## `IOText`
|
|
24
|
+
|
|
25
|
+
This library already offers a range of predefined typographic styles, such as `H1`, `H2`, and so on. However, there may be times when you need to add a specific typographic style with visual attributes that are not included in any of the predefined styles.
|
|
26
|
+
|
|
27
|
+
In this case, you can define a custom typographic style using the `IOText` component, which is specifically designed to replace the native `Text` component.
|
|
28
|
+
|
|
29
|
+
It has some useful features:
|
|
30
|
+
- Built-in support for bold text, if set by the user (iOS only)
|
|
31
|
+
- Based on the new `IOFontSize` scale
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ForwardedRef, forwardRef } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import { useIONewTypeface, useIOTheme } from "../../../
|
|
3
|
+
import { useIONewTypeface, useIOTheme } from "../../../context";
|
|
4
4
|
import { IOText, IOTextProps, TypographicStyleProps } from "../IOText";
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ForwardedRef, forwardRef } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import { useIONewTypeface, useIOTheme } from "../../../
|
|
3
|
+
import { useIONewTypeface, useIOTheme } from "../../../context";
|
|
4
4
|
import { IOText, IOTextProps, TypographicStyleProps } from "../IOText";
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ForwardedRef, forwardRef } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import { useIONewTypeface, useIOTheme } from "../../../
|
|
3
|
+
import { useIONewTypeface, useIOTheme } from "../../../context";
|
|
4
4
|
import { IOText, IOTextProps, TypographicStyleProps } from "../IOText";
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -6,7 +6,7 @@ import React, {
|
|
|
6
6
|
useState
|
|
7
7
|
} from "react";
|
|
8
8
|
import { Appearance, ColorSchemeName } from "react-native";
|
|
9
|
-
import { IOTheme, IOThemeDark, IOThemeLight } from "
|
|
9
|
+
import { IOTheme, IOThemeDark, IOThemeLight } from "../core/IOColors";
|
|
10
10
|
|
|
11
11
|
export const IOThemes = { light: IOThemeLight, dark: IOThemeDark };
|
|
12
12
|
|