From 5c2467fbd0a278e3b7fbba1dee189b278b79f07c Mon Sep 17 00:00:00 2001 From: Emanuele Dall'Ara <71103219+LeleDallas@users.noreply.github.com> Date: Mon, 17 Feb 2025 17:02:10 +0100 Subject: [PATCH 1/3] chore: io-app-design-system `v4.5.6` --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 7b3deaa4306..91bb3f73b2c 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "@babel/plugin-transform-private-property-in-object": "^7.25.9", "@babel/plugin-transform-react-jsx": "^7.25.9", "@gorhom/bottom-sheet": "^4.1.5", - "@pagopa/io-app-design-system": "4.5.5", + "@pagopa/io-app-design-system": "4.5.6", "@pagopa/io-pagopa-commons": "^3.1.0", "@pagopa/io-react-native-cieid": "^0.3.5", "@pagopa/io-react-native-crypto": "^1.0.1", diff --git a/yarn.lock b/yarn.lock index ee5f3a6116d..baea9384814 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3753,9 +3753,9 @@ __metadata: languageName: node linkType: hard -"@pagopa/io-app-design-system@npm:4.5.5": - version: 4.5.5 - resolution: "@pagopa/io-app-design-system@npm:4.5.5" +"@pagopa/io-app-design-system@npm:4.5.6": + version: 4.5.6 + resolution: "@pagopa/io-app-design-system@npm:4.5.6" dependencies: "@testing-library/jest-native": ^5.4.2 "@types/react-test-renderer": ^18.0.0 @@ -3779,7 +3779,7 @@ __metadata: react-native-reanimated: "*" react-native-safe-area-context: "*" react-native-svg: "*" - checksum: 01519ebe0e72a572f1298e26d61d754d8126fae217f2b304a0873376b817f3124cac3d630efd6c6c1208f319363505760bb04d3784ff942ced6903815bf4d415 + checksum: cc12dc04a4caf3e3632437238ff12860d9e01fb202a4749ae4497cd37f0814d5e6fc73802705015676ded3db5896a9ac4007ee637361b3ed5cdab0d3e470db96 languageName: node linkType: hard @@ -13657,7 +13657,7 @@ __metadata: "@babel/runtime": ^7.20.0 "@gorhom/bottom-sheet": ^4.1.5 "@jambit/eslint-plugin-typed-redux-saga": ^0.4.0 - "@pagopa/io-app-design-system": 4.5.5 + "@pagopa/io-app-design-system": 4.5.6 "@pagopa/io-pagopa-commons": ^3.1.0 "@pagopa/io-react-native-cieid": ^0.3.5 "@pagopa/io-react-native-crypto": ^1.0.1 From 6c3fd48e2180bc7cbb54930c471ba3364141f5af Mon Sep 17 00:00:00 2001 From: Emanuele Dall'Ara <71103219+LeleDallas@users.noreply.github.com> Date: Mon, 17 Feb 2025 17:07:36 +0100 Subject: [PATCH 2/3] chore: removed SwitchLabel from DS --- .../design-system/core/DSSelection.tsx | 29 +++++-------------- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/ts/features/design-system/core/DSSelection.tsx b/ts/features/design-system/core/DSSelection.tsx index 392f2a8ad8e..95c989e0f07 100644 --- a/ts/features/design-system/core/DSSelection.tsx +++ b/ts/features/design-system/core/DSSelection.tsx @@ -12,7 +12,6 @@ import { NativeSwitch, RadioGroup, RadioItem, - SwitchLabel, VStack, useIOTheme } from "@pagopa/io-app-design-system"; @@ -62,8 +61,6 @@ export const DSSelection = () => { {/* ListItemSwitch */} - {/* SwitchLabel */} - {renderAnimatedSwitch()} @@ -308,29 +305,17 @@ const AnimatedMessageCheckboxShowroom = () => { const toggleSwitch = () => setIsEnabled(previousState => !previousState); return ( - <> - - - - - - - - + + + + + + + ); }; // SWITCH - -const renderAnimatedSwitch = () => ( - - - - - - -); - const NativeSwitchShowroom = () => { const [isEnabled, setIsEnabled] = useState(false); const toggleSwitch = () => setIsEnabled(previousState => !previousState); From e60a1c9ce73dd037129c0758b21dd37a95f5e2ea Mon Sep 17 00:00:00 2001 From: Emanuele Dall'Ara <71103219+LeleDallas@users.noreply.github.com> Date: Mon, 17 Feb 2025 17:54:11 +0100 Subject: [PATCH 3/3] test: update snapshots --- .../ItwFeedbackBanner.test.tsx.snap | 28 +++++++++++++++++++ .../ItwDiscoveryBanner.test.tsx.snap | 28 +++++++++++++++++++ ...ItwDiscoveryBannerOnboarding.test.tsx.snap | 28 +++++++++++++++++++ ...ItwDiscoveryBannerStandalone.test.tsx.snap | 28 +++++++++++++++++++ .../RemoteContentBanner.test.tsx.snap | 28 +++++++++++++++++++ .../PushNotificationsBanner.test.tsx.snap | 28 +++++++++++++++++++ .../__snapshots__/LandingScreen.test.tsx.snap | 28 +++++++++++++++++++ .../ProfileMainScreenTopBanner.test.tsx.snap | 28 +++++++++++++++++++ .../SettingsDiscoveryBanner.test.tsx.snap | 28 +++++++++++++++++++ 9 files changed, 252 insertions(+) diff --git a/ts/features/itwallet/common/components/__tests__/__snapshots__/ItwFeedbackBanner.test.tsx.snap b/ts/features/itwallet/common/components/__tests__/__snapshots__/ItwFeedbackBanner.test.tsx.snap index e45fc3b02a5..70864b675d0 100644 --- a/ts/features/itwallet/common/components/__tests__/__snapshots__/ItwFeedbackBanner.test.tsx.snap +++ b/ts/features/itwallet/common/components/__tests__/__snapshots__/ItwFeedbackBanner.test.tsx.snap @@ -471,8 +471,36 @@ exports[`ItwFeedbackBanner should match the snapshot 1`] = ` accessibilityElementsHidden={true} accessibilityLabel="Inizia" accessibilityRole="button" + accessibilityState={ + { + "busy": undefined, + "checked": undefined, + "disabled": undefined, + "expanded": undefined, + "selected": undefined, + } + } + accessibilityValue={ + { + "max": undefined, + "min": undefined, + "now": undefined, + "text": undefined, + } + } accessible={true} + collapsable={false} + focusable={true} importantForAccessibility="no-hide-descendants" + onBlur={[Function]} + onClick={[Function]} + onFocus={[Function]} + onResponderGrant={[Function]} + onResponderMove={[Function]} + onResponderRelease={[Function]} + onResponderTerminate={[Function]} + onResponderTerminationRequest={[Function]} + onStartShouldSetResponder={[Function]} pointerEvents="none" >