@pagopa/io-app-design-system 5.6.7 → 5.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/alert/Alert.js +1 -2
- package/lib/commonjs/components/alert/Alert.js.map +1 -1
- package/lib/commonjs/components/alert/AlertEdgeToEdge.js +1 -2
- package/lib/commonjs/components/alert/AlertEdgeToEdge.js.map +1 -1
- package/lib/commonjs/components/alert/AlertEdgeToEdgeWrapper.js +1 -2
- package/lib/commonjs/components/alert/AlertEdgeToEdgeWrapper.js.map +1 -1
- package/lib/commonjs/components/avatar/Avatar.js +1 -2
- package/lib/commonjs/components/avatar/Avatar.js.map +1 -1
- package/lib/commonjs/components/avatar/__test__/__snapshots__/avatar.test.tsx.snap +4 -224
- package/lib/commonjs/components/avatar/__test__/avatar.test.js +1 -2
- package/lib/commonjs/components/avatar/__test__/avatar.test.js.map +1 -1
- package/lib/commonjs/components/badge/__test__/__snapshots__/badge.test.tsx.snap +2 -102
- package/lib/commonjs/components/badge/__test__/badge.test.js +1 -2
- package/lib/commonjs/components/badge/__test__/badge.test.js.map +1 -1
- package/lib/commonjs/components/banner/BannerErrorState.js +1 -2
- package/lib/commonjs/components/banner/BannerErrorState.js.map +1 -1
- package/lib/commonjs/components/banner/__test__/__snapshots__/banner.test.tsx.snap +2 -586
- package/lib/commonjs/components/banner/__test__/banner.test.js +1 -2
- package/lib/commonjs/components/banner/__test__/banner.test.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonLink.js +1 -2
- package/lib/commonjs/components/buttons/ButtonLink.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonOutline.js +1 -2
- package/lib/commonjs/components/buttons/ButtonOutline.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonSolid.js +1 -2
- package/lib/commonjs/components/buttons/ButtonSolid.js.map +1 -1
- package/lib/commonjs/components/buttons/IOButton/IOButton.js +1 -2
- package/lib/commonjs/components/buttons/IOButton/IOButton.js.map +1 -1
- package/lib/commonjs/components/buttons/IOButton/__test__/IOButton.test.js +1 -2
- package/lib/commonjs/components/buttons/IOButton/__test__/IOButton.test.js.map +1 -1
- package/lib/commonjs/components/buttons/IOButton/__test__/__snapshots__/IOButton.test.tsx.snap +3 -396
- package/lib/commonjs/components/buttons/IconButton.js +1 -2
- package/lib/commonjs/components/buttons/IconButton.js.map +1 -1
- package/lib/commonjs/components/buttons/IconButtonContained.js +1 -2
- package/lib/commonjs/components/buttons/IconButtonContained.js.map +1 -1
- package/lib/commonjs/components/buttons/IconButtonSolid.js +1 -2
- package/lib/commonjs/components/buttons/IconButtonSolid.js.map +1 -1
- package/lib/commonjs/components/buttons/__test__/__snapshots__/button.test.tsx.snap +9 -1065
- package/lib/commonjs/components/buttons/__test__/button.test.js +1 -2
- package/lib/commonjs/components/buttons/__test__/button.test.js.map +1 -1
- package/lib/commonjs/components/checkbox/AnimatedCheckbox.js +1 -2
- package/lib/commonjs/components/checkbox/AnimatedCheckbox.js.map +1 -1
- package/lib/commonjs/components/checkbox/AnimatedMessageCheckbox.js +1 -2
- package/lib/commonjs/components/checkbox/AnimatedMessageCheckbox.js.map +1 -1
- package/lib/commonjs/components/checkbox/CheckboxLabel.js +1 -2
- package/lib/commonjs/components/checkbox/CheckboxLabel.js.map +1 -1
- package/lib/commonjs/components/claimsSelector/ClaimsSelector.js +1 -2
- package/lib/commonjs/components/claimsSelector/ClaimsSelector.js.map +1 -1
- package/lib/commonjs/components/claimsSelector/__test__/ClaimsSelector.test.js +1 -2
- package/lib/commonjs/components/claimsSelector/__test__/ClaimsSelector.test.js.map +1 -1
- package/lib/commonjs/components/claimsSelector/__test__/__snapshots__/ClaimsSelector.test.tsx.snap +4 -1567
- package/lib/commonjs/components/codeInput/CodeInput.js +1 -2
- package/lib/commonjs/components/codeInput/CodeInput.js.map +1 -1
- package/lib/commonjs/components/common/AnimatedTick.js +1 -2
- package/lib/commonjs/components/common/AnimatedTick.js.map +1 -1
- package/lib/commonjs/components/common/LogoPaymentWithFallback.js +1 -2
- package/lib/commonjs/components/common/LogoPaymentWithFallback.js.map +1 -1
- package/lib/commonjs/components/common/ScaleInOutAnimation.js +1 -2
- package/lib/commonjs/components/common/ScaleInOutAnimation.js.map +1 -1
- package/lib/commonjs/components/contentWrapper/ContentWrapper.js +1 -2
- package/lib/commonjs/components/contentWrapper/ContentWrapper.js.map +1 -1
- package/lib/commonjs/components/icons/IconContained.js +1 -2
- package/lib/commonjs/components/icons/IconContained.js.map +1 -1
- package/lib/commonjs/components/layout/Dismissable.js +1 -2
- package/lib/commonjs/components/layout/Dismissable.js.map +1 -1
- package/lib/commonjs/components/layout/FooterActions.js +1 -2
- package/lib/commonjs/components/layout/FooterActions.js.map +1 -1
- package/lib/commonjs/components/layout/FooterActionsInline.js +1 -2
- package/lib/commonjs/components/layout/FooterActionsInline.js.map +1 -1
- package/lib/commonjs/components/layout/ForceScrollDownView.js +1 -2
- package/lib/commonjs/components/layout/ForceScrollDownView.js.map +1 -1
- package/lib/commonjs/components/layout/GradientBottomActions.js +1 -2
- package/lib/commonjs/components/layout/GradientBottomActions.js.map +1 -1
- package/lib/commonjs/components/layout/GradientScrollView.js +1 -2
- package/lib/commonjs/components/layout/GradientScrollView.js.map +1 -1
- package/lib/commonjs/components/layout/HeaderFirstLevel.js +1 -2
- package/lib/commonjs/components/layout/HeaderFirstLevel.js.map +1 -1
- package/lib/commonjs/components/layout/HeaderSecondLevel.js +1 -2
- package/lib/commonjs/components/layout/HeaderSecondLevel.js.map +1 -1
- package/lib/commonjs/components/layout/ModalBSHeader.js +1 -2
- package/lib/commonjs/components/layout/ModalBSHeader.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemAction.js +1 -2
- package/lib/commonjs/components/listitems/ListItemAction.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemAmount.js +1 -2
- package/lib/commonjs/components/listitems/ListItemAmount.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemCheckbox.js +1 -2
- package/lib/commonjs/components/listitems/ListItemCheckbox.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemHeader.js +1 -2
- package/lib/commonjs/components/listitems/ListItemHeader.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemInfo.js +1 -2
- package/lib/commonjs/components/listitems/ListItemInfo.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemInfoCopy.js +1 -2
- package/lib/commonjs/components/listitems/ListItemInfoCopy.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemRadio.js +1 -2
- package/lib/commonjs/components/listitems/ListItemRadio.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemRadioWithAmount.js +1 -2
- package/lib/commonjs/components/listitems/ListItemRadioWithAmount.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemSwitch.js +1 -2
- package/lib/commonjs/components/listitems/ListItemSwitch.js.map +1 -1
- package/lib/commonjs/components/listitems/PressableListItemBase.js +1 -2
- package/lib/commonjs/components/listitems/PressableListItemBase.js.map +1 -1
- package/lib/commonjs/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +18 -3038
- package/lib/commonjs/components/listitems/__test__/listitem.test.js +1 -2
- package/lib/commonjs/components/listitems/__test__/listitem.test.js.map +1 -1
- package/lib/commonjs/components/loadingSpinner/LoadingSpinner.js +1 -2
- package/lib/commonjs/components/loadingSpinner/LoadingSpinner.js.map +1 -1
- package/lib/commonjs/components/logos/index.js +1 -2
- package/lib/commonjs/components/logos/index.js.map +1 -1
- package/lib/commonjs/components/modules/ModuleAttachment.js +1 -2
- package/lib/commonjs/components/modules/ModuleAttachment.js.map +1 -1
- package/lib/commonjs/components/modules/ModuleCheckout.js +1 -2
- package/lib/commonjs/components/modules/ModuleCheckout.js.map +1 -1
- package/lib/commonjs/components/modules/ModuleIDP.js +1 -2
- package/lib/commonjs/components/modules/ModuleIDP.js.map +1 -1
- package/lib/commonjs/components/modules/ModulePaymentNotice.js +1 -2
- package/lib/commonjs/components/modules/ModulePaymentNotice.js.map +1 -1
- package/lib/commonjs/components/modules/ModuleStatic.js +1 -2
- package/lib/commonjs/components/modules/ModuleStatic.js.map +1 -1
- package/lib/commonjs/components/modules/PressableModuleBase.js +1 -2
- package/lib/commonjs/components/modules/PressableModuleBase.js.map +1 -1
- package/lib/commonjs/components/numberpad/NumberButton.js +1 -2
- package/lib/commonjs/components/numberpad/NumberButton.js.map +1 -1
- package/lib/commonjs/components/numberpad/NumberPad.js +1 -2
- package/lib/commonjs/components/numberpad/NumberPad.js.map +1 -1
- package/lib/commonjs/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +10 -0
- package/lib/commonjs/components/otpInput/BoxedInput.js +1 -2
- package/lib/commonjs/components/otpInput/BoxedInput.js.map +1 -1
- package/lib/commonjs/components/otpInput/OTPInput.js +2 -3
- package/lib/commonjs/components/otpInput/OTPInput.js.map +1 -1
- package/lib/commonjs/components/pictograms/Pictogram.js +1 -2
- package/lib/commonjs/components/pictograms/Pictogram.js.map +1 -1
- package/lib/commonjs/components/pictograms/svg/PictogramAttention.js +1 -2
- package/lib/commonjs/components/pictograms/svg/PictogramAttention.js.map +1 -1
- package/lib/commonjs/components/pictograms/svg/PictogramBleedSavingMoney.js +1 -2
- package/lib/commonjs/components/pictograms/svg/PictogramBleedSavingMoney.js.map +1 -1
- package/lib/commonjs/components/pictograms/svg/PictogramEmptyArchive.js +1 -2
- package/lib/commonjs/components/pictograms/svg/PictogramEmptyArchive.js.map +1 -1
- package/lib/commonjs/components/pictograms/svg/PictogramFeedback.js +1 -2
- package/lib/commonjs/components/pictograms/svg/PictogramFeedback.js.map +1 -1
- package/lib/commonjs/components/pictograms/svg/PictogramHelp.js +1 -2
- package/lib/commonjs/components/pictograms/svg/PictogramHelp.js.map +1 -1
- package/lib/commonjs/components/pictograms/svg/PictogramSavingMoney.js +1 -2
- package/lib/commonjs/components/pictograms/svg/PictogramSavingMoney.js.map +1 -1
- package/lib/commonjs/components/pictograms/svg/PictogramSuccess.js +1 -2
- package/lib/commonjs/components/pictograms/svg/PictogramSuccess.js.map +1 -1
- package/lib/commonjs/components/pictograms/svg/PictogramUmbrella.js +1 -2
- package/lib/commonjs/components/pictograms/svg/PictogramUmbrella.js.map +1 -1
- package/lib/commonjs/components/progressLoader/ProgressLoader.js +1 -2
- package/lib/commonjs/components/progressLoader/ProgressLoader.js.map +1 -1
- package/lib/commonjs/components/radio/AnimatedRadio.js +1 -2
- package/lib/commonjs/components/radio/AnimatedRadio.js.map +1 -1
- package/lib/commonjs/components/radio/RadioButtonLabel.js +1 -2
- package/lib/commonjs/components/radio/RadioButtonLabel.js.map +1 -1
- package/lib/commonjs/components/searchInput/SearchInput.js +1 -2
- package/lib/commonjs/components/searchInput/SearchInput.js.map +1 -1
- package/lib/commonjs/components/skeleton/IOSkeleton.js +1 -2
- package/lib/commonjs/components/skeleton/IOSkeleton.js.map +1 -1
- package/lib/commonjs/components/spacer/Spacer.js +1 -2
- package/lib/commonjs/components/spacer/Spacer.js.map +1 -1
- package/lib/commonjs/components/stack/Stack.js +2 -4
- package/lib/commonjs/components/stack/Stack.js.map +1 -1
- package/lib/commonjs/components/stepper/Stepper.js +1 -2
- package/lib/commonjs/components/stepper/Stepper.js.map +1 -1
- package/lib/commonjs/components/tabs/TabItem.js +1 -2
- package/lib/commonjs/components/tabs/TabItem.js.map +1 -1
- package/lib/commonjs/components/textInput/TextInput.js +1 -2
- package/lib/commonjs/components/textInput/TextInput.js.map +1 -1
- package/lib/commonjs/components/textInput/TextInputBase.js +1 -2
- package/lib/commonjs/components/textInput/TextInputBase.js.map +1 -1
- package/lib/commonjs/components/textInput/TextInputPassword.js +1 -2
- package/lib/commonjs/components/textInput/TextInputPassword.js.map +1 -1
- package/lib/commonjs/components/textInput/TextInputValidation.js +1 -2
- package/lib/commonjs/components/textInput/TextInputValidation.js.map +1 -1
- package/lib/commonjs/components/toast/ToastNotification.js +1 -2
- package/lib/commonjs/components/toast/ToastNotification.js.map +1 -1
- package/lib/commonjs/components/toast/ToastProvider.js +1 -2
- package/lib/commonjs/components/toast/ToastProvider.js.map +1 -1
- package/lib/commonjs/components/tooltip/Arrows.js +1 -2
- package/lib/commonjs/components/tooltip/Arrows.js.map +1 -1
- package/lib/commonjs/components/tooltip/Tooltip.js +2 -3
- package/lib/commonjs/components/tooltip/Tooltip.js.map +1 -1
- package/lib/commonjs/components/typography/Body.js +1 -2
- package/lib/commonjs/components/typography/Body.js.map +1 -1
- package/lib/commonjs/components/typography/BodyMonospace.js +1 -2
- package/lib/commonjs/components/typography/BodyMonospace.js.map +1 -1
- package/lib/commonjs/components/typography/BodySmall.js +1 -2
- package/lib/commonjs/components/typography/BodySmall.js.map +1 -1
- package/lib/commonjs/components/typography/ButtonText.js +1 -2
- package/lib/commonjs/components/typography/ButtonText.js.map +1 -1
- package/lib/commonjs/components/typography/Caption.js +1 -2
- package/lib/commonjs/components/typography/Caption.js.map +1 -1
- package/lib/commonjs/components/typography/H1.js +1 -2
- package/lib/commonjs/components/typography/H1.js.map +1 -1
- package/lib/commonjs/components/typography/H2.js +1 -2
- package/lib/commonjs/components/typography/H2.js.map +1 -1
- package/lib/commonjs/components/typography/H3.js +1 -2
- package/lib/commonjs/components/typography/H3.js.map +1 -1
- package/lib/commonjs/components/typography/H4.js +1 -2
- package/lib/commonjs/components/typography/H4.js.map +1 -1
- package/lib/commonjs/components/typography/H5.js +1 -2
- package/lib/commonjs/components/typography/H5.js.map +1 -1
- package/lib/commonjs/components/typography/H6.js +1 -2
- package/lib/commonjs/components/typography/H6.js.map +1 -1
- package/lib/commonjs/components/typography/Hero.js +1 -2
- package/lib/commonjs/components/typography/Hero.js.map +1 -1
- package/lib/commonjs/components/typography/IOText.js +1 -2
- package/lib/commonjs/components/typography/IOText.js.map +1 -1
- package/lib/commonjs/components/typography/LabelMini.js +1 -2
- package/lib/commonjs/components/typography/LabelMini.js.map +1 -1
- package/lib/commonjs/components/typography/__test__/__snapshots__/typography.test.tsx.snap +25 -567
- package/lib/commonjs/components/typography/__test__/typography.test.js +1 -2
- package/lib/commonjs/components/typography/__test__/typography.test.js.map +1 -1
- package/lib/commonjs/components/typography/markdown/MdH1.js +1 -2
- package/lib/commonjs/components/typography/markdown/MdH1.js.map +1 -1
- package/lib/commonjs/components/typography/markdown/MdH2.js +1 -2
- package/lib/commonjs/components/typography/markdown/MdH2.js.map +1 -1
- package/lib/commonjs/components/typography/markdown/MdH3.js +1 -2
- package/lib/commonjs/components/typography/markdown/MdH3.js.map +1 -1
- package/lib/commonjs/core/IODSExperimentalContextProvider.js +1 -2
- package/lib/commonjs/core/IODSExperimentalContextProvider.js.map +1 -1
- package/lib/commonjs/core/IONewTypefaceContextProvider.js +1 -2
- package/lib/commonjs/core/IONewTypefaceContextProvider.js.map +1 -1
- package/lib/commonjs/core/IOThemeContextProvider.js +1 -2
- package/lib/commonjs/core/IOThemeContextProvider.js.map +1 -1
- package/lib/commonjs/utils/testing.js.map +1 -1
- package/lib/module/components/alert/Alert.js.map +1 -1
- package/lib/module/components/avatar/__test__/__snapshots__/avatar.test.tsx.snap +4 -224
- package/lib/module/components/badge/__test__/__snapshots__/badge.test.tsx.snap +2 -102
- package/lib/module/components/banner/__test__/__snapshots__/banner.test.tsx.snap +2 -586
- package/lib/module/components/buttons/IOButton/__test__/__snapshots__/IOButton.test.tsx.snap +3 -396
- package/lib/module/components/buttons/__test__/__snapshots__/button.test.tsx.snap +9 -1065
- package/lib/module/components/claimsSelector/__test__/__snapshots__/ClaimsSelector.test.tsx.snap +4 -1567
- package/lib/module/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +18 -3038
- package/lib/module/components/numberpad/NumberPad.js.map +1 -1
- package/lib/module/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +10 -0
- package/lib/module/components/otpInput/OTPInput.js +1 -1
- package/lib/module/components/otpInput/OTPInput.js.map +1 -1
- package/lib/module/components/pictograms/Pictogram.js.map +1 -1
- package/lib/module/components/stack/Stack.js +2 -4
- package/lib/module/components/stack/Stack.js.map +1 -1
- package/lib/module/components/tooltip/Tooltip.js +1 -1
- package/lib/module/components/tooltip/Tooltip.js.map +1 -1
- package/lib/module/components/typography/__test__/__snapshots__/typography.test.tsx.snap +25 -567
- package/lib/module/utils/testing.js.map +1 -1
- package/lib/typescript/components/alert/Alert.d.ts.map +1 -1
- package/lib/typescript/components/banner/Banner.d.ts +1 -1
- package/lib/typescript/components/banner/Banner.d.ts.map +1 -1
- package/lib/typescript/components/numberpad/NumberPad.d.ts +1 -1
- package/lib/typescript/components/numberpad/NumberPad.d.ts.map +1 -1
- package/lib/typescript/components/pictograms/Pictogram.d.ts +77 -77
- package/lib/typescript/components/pictograms/Pictogram.d.ts.map +1 -1
- package/lib/typescript/components/stack/Stack.d.ts +2 -2
- package/lib/typescript/components/stack/Stack.d.ts.map +1 -1
- package/lib/typescript/components/tooltip/Tooltip.d.ts.map +1 -1
- package/lib/typescript/utils/testing.d.ts +1 -1
- package/lib/typescript/utils/testing.d.ts.map +1 -1
- package/package.json +23 -16
- package/src/components/alert/Alert.tsx +1 -1
- package/src/components/avatar/__test__/__snapshots__/avatar.test.tsx.snap +4 -224
- package/src/components/badge/__test__/__snapshots__/badge.test.tsx.snap +2 -102
- package/src/components/banner/Banner.tsx +1 -1
- package/src/components/banner/__test__/__snapshots__/banner.test.tsx.snap +2 -586
- package/src/components/buttons/IOButton/__test__/__snapshots__/IOButton.test.tsx.snap +3 -396
- package/src/components/buttons/__test__/__snapshots__/button.test.tsx.snap +9 -1065
- package/src/components/claimsSelector/__test__/__snapshots__/ClaimsSelector.test.tsx.snap +4 -1567
- package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +18 -3038
- package/src/components/numberpad/NumberPad.tsx +1 -1
- package/src/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +10 -0
- package/src/components/otpInput/OTPInput.tsx +1 -1
- package/src/components/pictograms/Pictogram.tsx +1 -1
- package/src/components/stack/Stack.tsx +8 -9
- package/src/components/tooltip/Tooltip.tsx +3 -1
- package/src/components/typography/__test__/__snapshots__/typography.test.tsx.snap +25 -567
- package/src/utils/testing.tsx +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ComponentProps, useCallback, useMemo } from "react";
|
|
1
|
+
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";
|
|
@@ -863,6 +863,11 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
863
863
|
accessibilityLabel=""
|
|
864
864
|
accessible={false}
|
|
865
865
|
align="xMidYMid"
|
|
866
|
+
animatedProps={
|
|
867
|
+
{
|
|
868
|
+
"color": undefined,
|
|
869
|
+
}
|
|
870
|
+
}
|
|
866
871
|
bbHeight={24}
|
|
867
872
|
bbWidth={24}
|
|
868
873
|
color="#FFFFFF"
|
|
@@ -1073,6 +1078,11 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
1073
1078
|
accessibilityLabel=""
|
|
1074
1079
|
accessible={false}
|
|
1075
1080
|
align="xMidYMid"
|
|
1081
|
+
animatedProps={
|
|
1082
|
+
{
|
|
1083
|
+
"color": undefined,
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1076
1086
|
bbHeight={24}
|
|
1077
1087
|
bbWidth={24}
|
|
1078
1088
|
color="#FFFFFF"
|
|
@@ -71,7 +71,7 @@ export const OTPInput = forwardRef<View, Props>(
|
|
|
71
71
|
useErrorShakeAnimation();
|
|
72
72
|
|
|
73
73
|
const inputRef = createRef<TextInput>();
|
|
74
|
-
const timerRef = useRef<NodeJS.Timeout>();
|
|
74
|
+
const timerRef = useRef<NodeJS.Timeout | undefined>(undefined);
|
|
75
75
|
|
|
76
76
|
const handleValidate = (val: string) => {
|
|
77
77
|
if (!onValidate || val.length < length) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useMemo } from "react";
|
|
1
|
+
import React, { JSX, useMemo } from "react";
|
|
2
2
|
import { ColorValue } from "react-native";
|
|
3
3
|
import { IOColors, IOThemeDark, IOThemeLight, useIOTheme } from "../../core";
|
|
4
4
|
import { useIOFontDynamicScale } from "../../utils/accessibility";
|
|
@@ -3,9 +3,9 @@ import { View, ViewProps, ViewStyle } from "react-native";
|
|
|
3
3
|
import { IOSpacer } from "../../core";
|
|
4
4
|
import { useIOFontDynamicScale } from "../../utils/accessibility";
|
|
5
5
|
|
|
6
|
-
type AllowedStyleProps =
|
|
6
|
+
type AllowedStyleProps = Exclude<
|
|
7
7
|
ViewStyle,
|
|
8
|
-
"
|
|
8
|
+
"display" | "flexDirection" | "gap"
|
|
9
9
|
>;
|
|
10
10
|
|
|
11
11
|
type A11YRelatedProps = Pick<
|
|
@@ -14,7 +14,7 @@ type A11YRelatedProps = Pick<
|
|
|
14
14
|
>;
|
|
15
15
|
|
|
16
16
|
type Stack = PropsWithChildren<{
|
|
17
|
-
space?: IOSpacer;
|
|
17
|
+
space?: IOSpacer | 0;
|
|
18
18
|
style?: AllowedStyleProps;
|
|
19
19
|
allowScaleSpacing?: boolean;
|
|
20
20
|
}> &
|
|
@@ -24,15 +24,13 @@ type BaseStack = Stack & {
|
|
|
24
24
|
orientation: "vertical" | "horizontal";
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
const DEFAULT_SPACING_VALUE: IOSpacer = 16;
|
|
28
|
-
|
|
29
27
|
/**
|
|
30
28
|
Horizontal Stack component
|
|
31
29
|
@param {IOSpacer} space
|
|
32
30
|
*/
|
|
33
31
|
|
|
34
32
|
const Stack = ({
|
|
35
|
-
space =
|
|
33
|
+
space = 0,
|
|
36
34
|
style,
|
|
37
35
|
orientation = "vertical",
|
|
38
36
|
allowScaleSpacing,
|
|
@@ -47,9 +45,10 @@ const Stack = ({
|
|
|
47
45
|
style={{
|
|
48
46
|
display: "flex",
|
|
49
47
|
flexDirection: orientation === "horizontal" ? "row" : "column",
|
|
50
|
-
gap:
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
gap:
|
|
49
|
+
allowScaleSpacing && space !== 0
|
|
50
|
+
? space * dynamicFontScale * spacingScaleMultiplier
|
|
51
|
+
: space,
|
|
53
52
|
...style
|
|
54
53
|
}}
|
|
55
54
|
>
|
|
@@ -179,7 +179,9 @@ export const Tooltip = ({
|
|
|
179
179
|
const [tooltipLayout, setTooltipLayout] = useState<TooltipLayout>();
|
|
180
180
|
const childRef = useRef<View>(null);
|
|
181
181
|
const titleRef = useRef<View>(null);
|
|
182
|
-
const timeoutRef = useRef<ReturnType<typeof setTimeout
|
|
182
|
+
const timeoutRef = useRef<ReturnType<typeof setTimeout> | undefined>(
|
|
183
|
+
undefined
|
|
184
|
+
);
|
|
183
185
|
|
|
184
186
|
// Theme
|
|
185
187
|
const theme = useIOTheme();
|