@pagopa/io-app-design-system 1.0.0 → 1.1.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 +6 -0
- package/lib/commonjs/components/banner/__test__/__snapshots__/banner.test.tsx.snap +1 -0
- package/lib/commonjs/components/buttons/ButtonLink.js +1 -0
- package/lib/commonjs/components/buttons/ButtonLink.js.map +1 -1
- package/lib/commonjs/components/buttons/IconButton.js +0 -1
- package/lib/commonjs/components/buttons/IconButton.js.map +1 -1
- package/lib/commonjs/components/buttons/__test__/__snapshots__/button.test.tsx.snap +1 -5
- package/lib/commonjs/components/checkbox/AnimatedMessageCheckbox.js +79 -0
- package/lib/commonjs/components/checkbox/AnimatedMessageCheckbox.js.map +1 -0
- package/lib/commonjs/components/checkbox/index.js +11 -0
- package/lib/commonjs/components/checkbox/index.js.map +1 -1
- package/lib/commonjs/components/icons/Icon.js +37 -9
- package/lib/commonjs/components/icons/Icon.js.map +1 -1
- package/lib/commonjs/components/icons/svg/{LegIconSearch.js → IconArchive.js} +4 -9
- package/lib/commonjs/components/icons/svg/IconArchive.js.map +1 -0
- package/lib/commonjs/components/icons/svg/IconCheckTick.js +31 -0
- package/lib/commonjs/components/icons/svg/{IconCompleted.js.map → IconCheckTick.js.map} +1 -1
- package/lib/commonjs/components/icons/svg/{IconCompleted.js → IconCheckTickBig.js} +3 -3
- package/lib/commonjs/components/icons/svg/IconCheckTickBig.js.map +1 -0
- package/lib/commonjs/components/icons/svg/IconMerchant.js +31 -0
- package/lib/commonjs/components/icons/svg/IconMerchant.js.map +1 -0
- package/lib/commonjs/components/icons/svg/IconSystemAppsAndroid.js +49 -0
- package/lib/commonjs/components/icons/svg/IconSystemAppsAndroid.js.map +1 -0
- package/lib/commonjs/components/icons/svg/IconSystemNotificationsInstructions.js +42 -0
- package/lib/commonjs/components/icons/svg/IconSystemNotificationsInstructions.js.map +1 -0
- package/lib/commonjs/components/icons/svg/IconSystemSettingsAndroid.js +34 -0
- package/lib/commonjs/components/icons/svg/IconSystemSettingsAndroid.js.map +1 -0
- package/lib/commonjs/components/icons/svg/IconSystemSettingsiOS.js +68 -0
- package/lib/commonjs/components/icons/svg/IconSystemSettingsiOS.js.map +1 -0
- package/lib/commonjs/components/icons/svg/{LegIconChevronLeft.js → IconSystemToggleInstructions.js} +5 -5
- package/lib/commonjs/components/icons/svg/IconSystemToggleInstructions.js.map +1 -0
- package/lib/commonjs/components/icons/svg/originals/IconArchive.svg +4 -0
- package/lib/commonjs/components/index.js +11 -11
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/layout/GradientScrollView.js.map +1 -1
- package/lib/commonjs/components/layout/HeaderSecondLevel.js +95 -0
- package/lib/commonjs/components/layout/HeaderSecondLevel.js.map +1 -0
- package/lib/commonjs/components/layout/index.js +33 -0
- package/lib/commonjs/components/layout/index.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemTransaction.js +2 -3
- package/lib/commonjs/components/listitems/ListItemTransaction.js.map +1 -1
- package/lib/commonjs/components/typography/CTA.js +34 -0
- package/lib/commonjs/components/typography/CTA.js.map +1 -0
- package/lib/commonjs/components/typography/__test__/__snapshots__/typography.test.tsx.snap +32 -0
- package/lib/commonjs/components/typography/__test__/typography.test.js +6 -1
- package/lib/commonjs/components/typography/__test__/typography.test.js.map +1 -1
- package/lib/commonjs/components/typography/index.js +15 -4
- package/lib/commonjs/components/typography/index.js.map +1 -1
- package/lib/commonjs/core/IOStyles.js +2 -1
- package/lib/commonjs/core/IOStyles.js.map +1 -1
- package/lib/commonjs/index.js +19 -8
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/components/banner/__test__/__snapshots__/banner.test.tsx.snap +1 -0
- package/lib/module/components/buttons/ButtonLink.js +1 -0
- package/lib/module/components/buttons/ButtonLink.js.map +1 -1
- package/lib/module/components/buttons/IconButton.js +1 -2
- package/lib/module/components/buttons/IconButton.js.map +1 -1
- package/lib/module/components/buttons/__test__/__snapshots__/button.test.tsx.snap +1 -5
- package/lib/module/components/checkbox/AnimatedMessageCheckbox.js +70 -0
- package/lib/module/components/checkbox/AnimatedMessageCheckbox.js.map +1 -0
- package/lib/module/components/checkbox/index.js +1 -0
- package/lib/module/components/checkbox/index.js.map +1 -1
- package/lib/module/components/icons/Icon.js +35 -8
- package/lib/module/components/icons/Icon.js.map +1 -1
- package/lib/module/components/icons/svg/{LegIconSearch.js → IconArchive.js} +4 -9
- package/lib/module/components/icons/svg/IconArchive.js.map +1 -0
- package/lib/module/components/icons/svg/IconCheckTick.js +23 -0
- package/lib/module/components/icons/svg/{IconCompleted.js.map → IconCheckTick.js.map} +1 -1
- package/lib/module/components/icons/svg/{IconCompleted.js → IconCheckTickBig.js} +3 -3
- package/lib/module/components/icons/svg/IconCheckTickBig.js.map +1 -0
- package/lib/module/components/icons/svg/IconMerchant.js +23 -0
- package/lib/module/components/icons/svg/IconMerchant.js.map +1 -0
- package/lib/module/components/icons/svg/IconSystemAppsAndroid.js +41 -0
- package/lib/module/components/icons/svg/IconSystemAppsAndroid.js.map +1 -0
- package/lib/module/components/icons/svg/IconSystemNotificationsInstructions.js +34 -0
- package/lib/module/components/icons/svg/IconSystemNotificationsInstructions.js.map +1 -0
- package/lib/module/components/icons/svg/IconSystemSettingsAndroid.js +26 -0
- package/lib/module/components/icons/svg/IconSystemSettingsAndroid.js.map +1 -0
- package/lib/module/components/icons/svg/IconSystemSettingsiOS.js +60 -0
- package/lib/module/components/icons/svg/IconSystemSettingsiOS.js.map +1 -0
- package/lib/module/components/icons/svg/{LegIconChevronLeft.js → IconSystemToggleInstructions.js} +5 -5
- package/lib/module/components/icons/svg/IconSystemToggleInstructions.js.map +1 -0
- package/lib/module/components/icons/svg/originals/IconArchive.svg +4 -0
- package/lib/module/components/index.js +1 -1
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/layout/GradientScrollView.js.map +1 -1
- package/lib/module/components/layout/HeaderSecondLevel.js +84 -0
- package/lib/module/components/layout/HeaderSecondLevel.js.map +1 -0
- package/lib/module/components/layout/index.js +3 -0
- package/lib/module/components/layout/index.js.map +1 -1
- package/lib/module/components/listitems/ListItemTransaction.js +2 -3
- package/lib/module/components/listitems/ListItemTransaction.js.map +1 -1
- package/lib/module/components/typography/CTA.js +27 -0
- package/lib/module/components/typography/CTA.js.map +1 -0
- package/lib/module/components/typography/__test__/__snapshots__/typography.test.tsx.snap +32 -0
- package/lib/module/components/typography/__test__/typography.test.js +6 -1
- package/lib/module/components/typography/__test__/typography.test.js.map +1 -1
- package/lib/module/components/typography/index.js +2 -1
- package/lib/module/components/typography/index.js.map +1 -1
- package/lib/module/core/IOStyles.js +1 -1
- package/lib/module/core/IOStyles.js.map +1 -1
- package/lib/module/index.js +2 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/components/buttons/ButtonLink.d.ts.map +1 -1
- package/lib/typescript/components/buttons/IconButton.d.ts.map +1 -1
- package/lib/typescript/components/checkbox/AnimatedMessageCheckbox.d.ts +13 -0
- package/lib/typescript/components/checkbox/AnimatedMessageCheckbox.d.ts.map +1 -0
- package/lib/typescript/components/checkbox/index.d.ts +1 -0
- package/lib/typescript/components/checkbox/index.d.ts.map +1 -1
- package/lib/typescript/components/icons/Icon.d.ts +17 -3
- package/lib/typescript/components/icons/Icon.d.ts.map +1 -1
- package/lib/typescript/components/icons/svg/IconArchive.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconArchive.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconCheckTick.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconCheckTick.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconCheckTickBig.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconCheckTickBig.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconMerchant.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconMerchant.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconSystemAppsAndroid.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconSystemAppsAndroid.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconSystemNotificationsInstructions.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconSystemNotificationsInstructions.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconSystemSettingsAndroid.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconSystemSettingsAndroid.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconSystemSettingsiOS.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconSystemSettingsiOS.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconSystemToggleInstructions.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconSystemToggleInstructions.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +1 -1
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/components/layout/HeaderSecondLevel.d.ts +20 -0
- package/lib/typescript/components/layout/HeaderSecondLevel.d.ts.map +1 -0
- package/lib/typescript/components/layout/index.d.ts +3 -0
- package/lib/typescript/components/layout/index.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemTransaction.d.ts.map +1 -1
- package/lib/typescript/components/typography/CTA.d.ts +16 -0
- package/lib/typescript/components/typography/CTA.d.ts.map +1 -0
- package/lib/typescript/components/typography/index.d.ts +2 -1
- package/lib/typescript/components/typography/index.d.ts.map +1 -1
- package/lib/typescript/core/IOStyles.d.ts +3 -2
- package/lib/typescript/core/IOStyles.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +2 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/components/banner/__test__/__snapshots__/banner.test.tsx.snap +1 -0
- package/src/components/buttons/ButtonLink.tsx +1 -0
- package/src/components/buttons/IconButton.tsx +0 -2
- package/src/components/buttons/__test__/__snapshots__/button.test.tsx.snap +1 -5
- package/src/components/checkbox/AnimatedMessageCheckbox.tsx +105 -0
- package/src/components/checkbox/index.tsx +1 -0
- package/src/components/icons/Icon.tsx +39 -8
- package/src/components/icons/svg/IconArchive.tsx +16 -0
- package/src/components/icons/svg/IconCheckTick.tsx +16 -0
- package/src/components/icons/svg/{IconCompleted.tsx → IconCheckTickBig.tsx} +2 -2
- package/src/components/icons/svg/IconMerchant.tsx +16 -0
- package/src/components/icons/svg/IconSystemAppsAndroid.tsx +17 -0
- package/src/components/icons/svg/IconSystemNotificationsInstructions.tsx +28 -0
- package/src/components/icons/svg/IconSystemSettingsAndroid.tsx +15 -0
- package/src/components/icons/svg/IconSystemSettingsiOS.tsx +58 -0
- package/src/components/icons/svg/IconSystemToggleInstructions.tsx +18 -0
- package/src/components/icons/svg/originals/IconArchive.svg +4 -0
- package/src/components/index.tsx +1 -1
- package/src/components/layout/GradientScrollView.tsx +1 -1
- package/src/components/layout/HeaderSecondLevel.tsx +153 -0
- package/src/components/layout/index.tsx +3 -0
- package/src/components/listitems/ListItemTransaction.tsx +2 -3
- package/src/components/typography/CTA.tsx +35 -0
- package/src/components/typography/__test__/__snapshots__/typography.test.tsx.snap +32 -0
- package/src/components/typography/__test__/typography.test.tsx +7 -2
- package/src/components/typography/index.tsx +2 -2
- package/src/core/IOStyles.ts +1 -1
- package/src/index.tsx +3 -1
- package/lib/commonjs/components/icons/svg/LegIconChevronLeft.js.map +0 -1
- package/lib/commonjs/components/icons/svg/LegIconSearch.js.map +0 -1
- package/lib/module/components/icons/svg/LegIconChevronLeft.js.map +0 -1
- package/lib/module/components/icons/svg/LegIconSearch.js.map +0 -1
- package/lib/typescript/components/icons/svg/IconCompleted.d.ts +0 -5
- package/lib/typescript/components/icons/svg/IconCompleted.d.ts.map +0 -1
- package/lib/typescript/components/icons/svg/LegIconChevronLeft.d.ts +0 -5
- package/lib/typescript/components/icons/svg/LegIconChevronLeft.d.ts.map +0 -1
- package/lib/typescript/components/icons/svg/LegIconSearch.d.ts +0 -5
- package/lib/typescript/components/icons/svg/LegIconSearch.d.ts.map +0 -1
- package/src/components/icons/svg/LegIconChevronLeft.tsx +0 -14
- package/src/components/icons/svg/LegIconSearch.tsx +0 -22
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconSystemNotificationsInstructions.d.ts","sourceRoot":"","sources":["../../../../../src/components/icons/svg/IconSystemNotificationsInstructions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,QAAA,MAAM,mCAAmC,8BAItC,YAAY,sBAiBd,CAAC;AAEF,eAAe,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SVGIconProps } from "../Icon";
|
|
3
|
+
declare const IconSystemSettingsAndroid: ({ size, style, ...props }: SVGIconProps) => React.JSX.Element;
|
|
4
|
+
export default IconSystemSettingsAndroid;
|
|
5
|
+
//# sourceMappingURL=IconSystemSettingsAndroid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconSystemSettingsAndroid.d.ts","sourceRoot":"","sources":["../../../../../src/components/icons/svg/IconSystemSettingsAndroid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,QAAA,MAAM,yBAAyB,8BAA+B,YAAY,sBAQzE,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconSystemSettingsiOS.d.ts","sourceRoot":"","sources":["../../../../../src/components/icons/svg/IconSystemSettingsiOS.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,QAAA,MAAM,qBAAqB,8BAA+B,YAAY,sBAmDrE,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SVGIconProps } from "../Icon";
|
|
3
|
+
declare const IconSystemToggleInstructions: ({ size, style, ...props }: SVGIconProps) => React.JSX.Element;
|
|
4
|
+
export default IconSystemToggleInstructions;
|
|
5
|
+
//# sourceMappingURL=IconSystemToggleInstructions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconSystemToggleInstructions.d.ts","sourceRoot":"","sources":["../../../../../src/components/icons/svg/IconSystemToggleInstructions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,QAAA,MAAM,4BAA4B,8BAI/B,YAAY,sBAOd,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -2,7 +2,6 @@ export * from "./accordion";
|
|
|
2
2
|
export * from "./alert";
|
|
3
3
|
export * from "./avatar";
|
|
4
4
|
export * from "./badge";
|
|
5
|
-
export * from "./banner";
|
|
6
5
|
export * from "./buttons";
|
|
7
6
|
export * from "./checkbox";
|
|
8
7
|
export * from "./contentWrapper";
|
|
@@ -10,6 +9,7 @@ export * from "./divider";
|
|
|
10
9
|
export * from "./icons";
|
|
11
10
|
export * from "./listitems";
|
|
12
11
|
export * from "./logos";
|
|
12
|
+
export * from "./banner";
|
|
13
13
|
export * from "./pictograms";
|
|
14
14
|
export * from "./radio";
|
|
15
15
|
export * from "./spacer";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.tsx"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.tsx"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import Animated from "react-native-reanimated";
|
|
3
|
+
import { WithTestID } from "../../utils/types";
|
|
4
|
+
export type HeaderSecondLevel = WithTestID<{
|
|
5
|
+
scrollValues: ScrollValues;
|
|
6
|
+
title: string;
|
|
7
|
+
goBack: () => void;
|
|
8
|
+
backAccessibilityLabel: string;
|
|
9
|
+
firstAction?: React.ReactNode;
|
|
10
|
+
secondAction?: React.ReactNode;
|
|
11
|
+
thirdAction?: React.ReactNode;
|
|
12
|
+
transparent?: boolean;
|
|
13
|
+
}>;
|
|
14
|
+
type ScrollValues = {
|
|
15
|
+
contentOffsetY: Animated.SharedValue<number>;
|
|
16
|
+
triggerOffset: number;
|
|
17
|
+
};
|
|
18
|
+
export declare const HeaderSecondLevel: ({ scrollValues, goBack, backAccessibilityLabel, title, firstAction, secondAction, thirdAction, transparent, testID }: HeaderSecondLevel) => React.JSX.Element;
|
|
19
|
+
export default HeaderSecondLevel;
|
|
20
|
+
//# sourceMappingURL=HeaderSecondLevel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderSecondLevel.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/HeaderSecondLevel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,QAIN,MAAM,yBAAyB,CAAC;AAUjC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAI/C,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC;IACzC,YAAY,EAAE,YAAY,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,sBAAsB,EAAE,MAAM,CAAC;IAG/B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE9B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC,CAAC;AAEH,KAAK,YAAY,GAAG;IAClB,cAAc,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7C,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AA2BF,eAAO,MAAM,iBAAiB,yHAU3B,iBAAiB,sBA2EnB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/index.tsx"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/index.tsx"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItemTransaction.d.ts","sourceRoot":"","sources":["../../../../src/components/listitems/ListItemTransaction.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ListItemTransaction.d.ts","sourceRoot":"","sources":["../../../../src/components/listitems/ListItemTransaction.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAoB,MAAM,cAAc,CAAC;AAUhE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAI/C,OAAO,EAAE,iBAAiB,EAAe,MAAM,UAAU,CAAC;AAG1D,OAAO,EACL,kBAAkB,EAEnB,MAAM,0BAA0B,CAAC;AAElC,KAAK,aAAa,GAAG,iBAAiB,GAAG,cAAc,CAAC;AACxD,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAC1C,kBAAkB,GAAG;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,aAAa,CAAC;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,CACE;IACE,iBAAiB,EAAE,SAAS,CAAC;IAC7B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,GACD;IACE,iBAAiB,EAAE,SAAS,GAAG,SAAS,CAAC;IACzC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CACJ,CACJ,CAAC;AA8BF,eAAO,MAAM,mBAAmB,iJAW7B,mBAAmB,sBAoFrB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { IOTheme } from "../../core/IOColors";
|
|
3
|
+
import { IOFontWeight } from "../../utils/fonts";
|
|
4
|
+
import { ExternalTypographyProps, TypographyProps } from "./common";
|
|
5
|
+
type AllowedColors = IOTheme["textBody-default"] | "blueIO-850";
|
|
6
|
+
type AllowedWeight = Extract<IOFontWeight, "SemiBold" | "Regular">;
|
|
7
|
+
type OwnProps = ExternalTypographyProps<TypographyProps<AllowedWeight, AllowedColors>>;
|
|
8
|
+
/**
|
|
9
|
+
* Typography component to render `CTA` text with font size {@link ctaFontSize} and fontFamily {@link ctaFontName}.
|
|
10
|
+
* default values(if not defined) are weight: {@link ctaDefaultWeight}, color: {@link ctaDefaultColor}
|
|
11
|
+
* @param props
|
|
12
|
+
* @constructor
|
|
13
|
+
*/
|
|
14
|
+
export declare const CTA: React.FunctionComponent<OwnProps>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=CTA.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CTA.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/CTA.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAgB,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAgB,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEpE,KAAK,aAAa,GAAG,OAAO,CAAC,kBAAkB,CAAC,GAAG,YAAY,CAAC;AAChE,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC;AAEnE,KAAK,QAAQ,GAAG,uBAAuB,CACrC,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,CAAC;AAUF;;;;;GAKG;AACH,eAAO,MAAM,GAAG,EAAE,KAAK,CAAC,iBAAiB,CAAC,QAAQ,CAO9C,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from "./BaseTypography";
|
|
2
2
|
export * from "./Body";
|
|
3
|
-
export * from "./
|
|
3
|
+
export * from "./CTA";
|
|
4
4
|
export * from "./Factory";
|
|
5
5
|
export * from "./H1";
|
|
6
6
|
export * from "./H2";
|
|
@@ -12,4 +12,5 @@ export * from "./Label";
|
|
|
12
12
|
export * from "./LabelSmall";
|
|
13
13
|
export * from "./Link";
|
|
14
14
|
export * from "./Monospace";
|
|
15
|
+
export * from "./common";
|
|
15
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/index.tsx"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/index.tsx"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
|
|
@@ -60,6 +60,7 @@ export declare const IOStyles: {
|
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
62
|
export declare const buttonSolidHeight: number;
|
|
63
|
+
export declare const iconBtnSizeSmall: number;
|
|
63
64
|
export declare const IOButtonLegacyStyles: {
|
|
64
65
|
button: {
|
|
65
66
|
flexDirection: "row";
|
|
@@ -157,7 +158,7 @@ interface IOListItemVisualParams {
|
|
|
157
158
|
export declare const IOListItemVisualParams: IOListItemVisualParams;
|
|
158
159
|
export declare const IOListItemStyles: {
|
|
159
160
|
listItem: {
|
|
160
|
-
paddingVertical: 16 | 4 | 6 |
|
|
161
|
+
paddingVertical: 16 | 4 | 6 | 12 | 20 | 24 | 32 | 48 | 8 | 28 | 40 | 56 | 64 | 72 | 80;
|
|
161
162
|
paddingHorizontal: IOAppMargin;
|
|
162
163
|
marginHorizontal: number;
|
|
163
164
|
};
|
|
@@ -204,7 +205,7 @@ interface IOSelectionListItemVisualParams {
|
|
|
204
205
|
export declare const IOSelectionListItemVisualParams: IOSelectionListItemVisualParams;
|
|
205
206
|
export declare const IOSelectionListItemStyles: {
|
|
206
207
|
listItem: {
|
|
207
|
-
paddingVertical: 16 | 4 | 6 |
|
|
208
|
+
paddingVertical: 16 | 4 | 6 | 12 | 20 | 24 | 32 | 48 | 8 | 28 | 40 | 56 | 64 | 72 | 80;
|
|
208
209
|
paddingHorizontal: IOAppMargin;
|
|
209
210
|
marginHorizontal: number;
|
|
210
211
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IOStyles.d.ts","sourceRoot":"","sources":["../../../src/core/IOStyles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEpE;;GAEG;AAEH,UAAU,gBAAgB;IACxB,gBAAgB,EAAE,WAAW,CAAC;IAE9B,YAAY,EAAE,MAAM,CAAC;IAErB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,gBAAgB,EAAE,gBAK9B,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDnB,CAAC;AAgBH,eAAO,MAAM,iBAAiB,EAAE,MAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"IOStyles.d.ts","sourceRoot":"","sources":["../../../src/core/IOStyles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEpE;;GAEG;AAEH,UAAU,gBAAgB;IACxB,gBAAgB,EAAE,WAAW,CAAC;IAE9B,YAAY,EAAE,MAAM,CAAC;IAErB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,gBAAgB,EAAE,gBAK9B,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDnB,CAAC;AAgBH,eAAO,MAAM,iBAAiB,EAAE,MAAuB,CAAC;AAGxD,eAAO,MAAM,gBAAgB,EAAE,MAAW,CAAC;AAE3C,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;CAuC/B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDzB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;CAsB7B,CAAC;AAEH;;GAEG;AAEH,UAAU,sBAAsB;IAC9B,eAAe,EAAE,cAAc,CAAC;IAChC,iBAAiB,EAAE,WAAW,CAAC;IAC/B,UAAU,EAAE,cAAc,CAAC;IAC3B,YAAY,EAAE,cAAc,CAAC;IAC7B,QAAQ,EAAE,eAAe,CAAC;IAC1B,WAAW,EAAE,eAAe,CAAC;CAC9B;AAED,eAAO,MAAM,sBAAsB,EAAE,sBAOpC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;CAW3B,CAAC;AAEH;;GAEG;AAEH,UAAU,2BAA2B;IACnC,IAAI,EAAE,eAAe,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,QAAQ,CAAC;IAC9B,cAAc,EAAE,QAAQ,CAAC;IACzB,SAAS,EAAE,QAAQ,CAAC;CACrB;AAED,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,QAAQ,CAAC;IAC1B,cAAc,EAAE,QAAQ,CAAC;IACzB,SAAS,EAAE,QAAQ,CAAC;IACpB,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,iCAAiC;IACzC,mBAAmB,EAAE,QAAQ,CAAC;IAC9B,cAAc,EAAE,QAAQ,CAAC;CAC1B;AAED,eAAO,MAAM,2BAA2B,EAAE,2BAMzC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,oBASlC,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,iCAI7C,CAAC;AAEJ,UAAU,+BAA+B;IACvC,eAAe,EAAE,cAAc,CAAC;IAChC,iBAAiB,EAAE,WAAW,CAAC;IAC/B,UAAU,EAAE,cAAc,CAAC;IAC3B,YAAY,EAAE,QAAQ,CAAC;IACvB,QAAQ,EAAE,eAAe,CAAC;IAC1B,iBAAiB,EAAE,QAAQ,CAAC;CAC7B;AAED,eAAO,MAAM,+BAA+B,EAAE,+BAQ3C,CAAC;AAEJ,eAAO,MAAM,yBAAyB;;;;;;;;;;;CAWpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pagopa/io-app-design-system",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "test",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@react-native-community/eslint-config": "^3.0.2",
|
|
54
54
|
"@release-it/conventional-changelog": "^5.0.0",
|
|
55
55
|
"@types/jest": "^28.1.2",
|
|
56
|
-
"@types/react": "~17.0.
|
|
56
|
+
"@types/react": "~17.0.38",
|
|
57
57
|
"@types/react-native": "0.70.0",
|
|
58
58
|
"commitlint": "^17.0.2",
|
|
59
59
|
"del-cli": "^5.0.0",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"typescript": "^4.9.5"
|
|
75
75
|
},
|
|
76
76
|
"resolutions": {
|
|
77
|
-
"@types/react": "17.0.
|
|
77
|
+
"@types/react": "17.0.43"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
80
|
"react": "*",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"expo-modules-core": "^1.5.6",
|
|
159
159
|
"react-native-gesture-handler": "^2.12.0",
|
|
160
160
|
"react-native-haptic-feedback": "^2.0.2",
|
|
161
|
-
"react-native-linear-gradient": "^2.
|
|
161
|
+
"react-native-linear-gradient": "^2.5.6",
|
|
162
162
|
"react-native-reanimated": "^2.9.1",
|
|
163
163
|
"react-native-svg": "^12.3.0",
|
|
164
164
|
"react-native-safe-area-context": "^3.3.2",
|
|
@@ -154,6 +154,7 @@ exports[`Test Banner Components Banner Snapshot 1`] = `
|
|
|
154
154
|
onResponderTerminate={[Function]}
|
|
155
155
|
onResponderTerminationRequest={[Function]}
|
|
156
156
|
onStartShouldSetResponder={[Function]}
|
|
157
|
+
onTouchEnd={[Function]}
|
|
157
158
|
style={
|
|
158
159
|
{
|
|
159
160
|
"alignSelf": "flex-start",
|
|
@@ -11,7 +11,6 @@ import Animated, {
|
|
|
11
11
|
withSpring
|
|
12
12
|
} from "react-native-reanimated";
|
|
13
13
|
import {
|
|
14
|
-
IOButtonStyles,
|
|
15
14
|
IOColors,
|
|
16
15
|
IOIconButtonStyles,
|
|
17
16
|
IOScaleValues,
|
|
@@ -124,7 +123,6 @@ export const IconButton = ({
|
|
|
124
123
|
|
|
125
124
|
return (
|
|
126
125
|
<Pressable
|
|
127
|
-
style={IOButtonStyles.dimensionsDefault}
|
|
128
126
|
disabled={disabled}
|
|
129
127
|
// Events
|
|
130
128
|
onPress={onPress}
|
|
@@ -202,6 +202,7 @@ exports[`Test Buttons Components ButtonLink Snapshot 1`] = `
|
|
|
202
202
|
onResponderTerminate={[Function]}
|
|
203
203
|
onResponderTerminationRequest={[Function]}
|
|
204
204
|
onStartShouldSetResponder={[Function]}
|
|
205
|
+
onTouchEnd={[Function]}
|
|
205
206
|
style={
|
|
206
207
|
{
|
|
207
208
|
"alignSelf": "flex-start",
|
|
@@ -496,11 +497,6 @@ exports[`Test Buttons Components IconButton Snapshot 1`] = `
|
|
|
496
497
|
onResponderTerminate={[Function]}
|
|
497
498
|
onResponderTerminationRequest={[Function]}
|
|
498
499
|
onStartShouldSetResponder={[Function]}
|
|
499
|
-
style={
|
|
500
|
-
{
|
|
501
|
-
"alignSelf": "flex-start",
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
500
|
>
|
|
505
501
|
<View
|
|
506
502
|
style={
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import React, { useEffect } from "react";
|
|
2
|
+
import { StyleSheet, Pressable, PressableProps } from "react-native";
|
|
3
|
+
import Animated, {
|
|
4
|
+
useSharedValue,
|
|
5
|
+
useAnimatedStyle,
|
|
6
|
+
interpolate,
|
|
7
|
+
withSpring,
|
|
8
|
+
withTiming,
|
|
9
|
+
Easing
|
|
10
|
+
} from "react-native-reanimated";
|
|
11
|
+
import { IOColors } from "../../core/IOColors";
|
|
12
|
+
import { IOSpringValues } from "../../core/IOAnimations";
|
|
13
|
+
import { AnimatedTick } from "../common/AnimatedTick";
|
|
14
|
+
import {
|
|
15
|
+
IOSelectionTickVisualParams,
|
|
16
|
+
IOVisualCostants
|
|
17
|
+
} from "../../core/IOStyles";
|
|
18
|
+
import { IOSpacingScale } from "../../core/IOSpacing";
|
|
19
|
+
|
|
20
|
+
type Props = {
|
|
21
|
+
checked?: boolean;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
type AnimatedMessageCheckbox = Props & Pick<PressableProps, "onPress">;
|
|
25
|
+
|
|
26
|
+
const internalSpacing: IOSpacingScale = 4;
|
|
27
|
+
|
|
28
|
+
const styles = StyleSheet.create({
|
|
29
|
+
checkBoxWrapper: {
|
|
30
|
+
width: IOVisualCostants.avatarSizeSmall,
|
|
31
|
+
height: IOVisualCostants.avatarSizeSmall,
|
|
32
|
+
padding: internalSpacing
|
|
33
|
+
},
|
|
34
|
+
checkBoxCircle: {
|
|
35
|
+
position: "absolute",
|
|
36
|
+
left: 0,
|
|
37
|
+
top: 0,
|
|
38
|
+
width: IOVisualCostants.avatarSizeSmall,
|
|
39
|
+
height: IOVisualCostants.avatarSizeSmall,
|
|
40
|
+
borderRadius: IOVisualCostants.avatarSizeSmall
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Animated message checkbox used for the specific message
|
|
46
|
+
* list item (Select mode that enables related actions)
|
|
47
|
+
*/
|
|
48
|
+
export const AnimatedMessageCheckbox = ({
|
|
49
|
+
checked,
|
|
50
|
+
onPress
|
|
51
|
+
}: AnimatedMessageCheckbox) => {
|
|
52
|
+
const isChecked = checked ?? true;
|
|
53
|
+
|
|
54
|
+
const circleAnimationProgress = useSharedValue(checked ? 1 : 0);
|
|
55
|
+
const tickAnimationProgress = useSharedValue(checked ? 1 : 0);
|
|
56
|
+
|
|
57
|
+
useEffect(() => {
|
|
58
|
+
// eslint-disable-next-line functional/immutable-data
|
|
59
|
+
circleAnimationProgress.value = withSpring(
|
|
60
|
+
checked ? 1 : 0,
|
|
61
|
+
IOSpringValues.selection
|
|
62
|
+
);
|
|
63
|
+
// eslint-disable-next-line functional/immutable-data
|
|
64
|
+
tickAnimationProgress.value = withTiming(checked ? 1 : 0, {
|
|
65
|
+
duration: 250,
|
|
66
|
+
easing: Easing.out(Easing.cubic)
|
|
67
|
+
});
|
|
68
|
+
}, [checked, circleAnimationProgress, tickAnimationProgress]);
|
|
69
|
+
|
|
70
|
+
const animatedCheckboxCircle = useAnimatedStyle(() => {
|
|
71
|
+
const scale = interpolate(circleAnimationProgress.value, [0, 1], [0.8, 1]);
|
|
72
|
+
const opacity = circleAnimationProgress.value;
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
opacity,
|
|
76
|
+
transform: [{ scale }]
|
|
77
|
+
};
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
return (
|
|
81
|
+
<Pressable
|
|
82
|
+
testID="AnimatedMessageCheckboxInput"
|
|
83
|
+
onPress={onPress}
|
|
84
|
+
style={styles.checkBoxWrapper}
|
|
85
|
+
>
|
|
86
|
+
<Animated.View
|
|
87
|
+
style={[
|
|
88
|
+
styles.checkBoxCircle,
|
|
89
|
+
{
|
|
90
|
+
backgroundColor:
|
|
91
|
+
IOColors[IOSelectionTickVisualParams.bgColorOnState]
|
|
92
|
+
},
|
|
93
|
+
animatedCheckboxCircle
|
|
94
|
+
]}
|
|
95
|
+
/>
|
|
96
|
+
{isChecked && (
|
|
97
|
+
<AnimatedTick
|
|
98
|
+
progress={tickAnimationProgress}
|
|
99
|
+
strokeWidth={1.5}
|
|
100
|
+
stroke={IOColors[IOSelectionTickVisualParams.tickColor]}
|
|
101
|
+
/>
|
|
102
|
+
)}
|
|
103
|
+
</Pressable>
|
|
104
|
+
);
|
|
105
|
+
};
|
|
@@ -38,7 +38,6 @@ import IconGiacenza from "./svg/IconGiacenza";
|
|
|
38
38
|
import IconChat from "./svg/IconChat";
|
|
39
39
|
import IconAgreement from "./svg/IconAgreement";
|
|
40
40
|
import IconSave from "./svg/IconSave";
|
|
41
|
-
import IconCompleted from "./svg/IconCompleted";
|
|
42
41
|
import IconSuccess from "./svg/IconSuccess";
|
|
43
42
|
import IconOk from "./svg/IconOk";
|
|
44
43
|
import IconFiscalCodeIndividual from "./svg/IconFiscalCodeIndividual";
|
|
@@ -132,15 +131,23 @@ import IconProductIOAppBlueBg from "./svg/IconProductIOAppBlueBg";
|
|
|
132
131
|
import IconProductPagoPA from "./svg/IconProductPagoPA";
|
|
133
132
|
import IconWebsite from "./svg/IconWebsite";
|
|
134
133
|
import IconSecurity from "./svg/IconSecurity";
|
|
135
|
-
import LegIconSearch from "./svg/LegIconSearch";
|
|
136
|
-
import LegIconChevronLeft from "./svg/LegIconChevronLeft";
|
|
137
134
|
import LegIconRadioOn from "./svg/LegIconRadioOn";
|
|
138
135
|
import LegIconRadioOff from "./svg/LegIconRadioOff";
|
|
139
136
|
import LegIconCheckOn from "./svg/LegIconCheckOn";
|
|
140
137
|
import LegIconCheckOff from "./svg/LegIconCheckOff";
|
|
141
138
|
import IconCloseMedium from "./svg/IconCloseMedium";
|
|
139
|
+
import IconCheckTick from "./svg/IconCheckTick";
|
|
140
|
+
import IconCheckTickBig from "./svg/IconCheckTickBig";
|
|
141
|
+
import IconMerchant from "./svg/IconMerchant";
|
|
142
|
+
import IconSystemSettingsAndroid from "./svg/IconSystemSettingsAndroid";
|
|
143
|
+
import IconSystemSettingsiOS from "./svg/IconSystemSettingsiOS";
|
|
144
|
+
import IconSystemToggleInstructions from "./svg/IconSystemToggleInstructions";
|
|
145
|
+
import IconSystemAppsAndroid from "./svg/IconSystemAppsAndroid";
|
|
146
|
+
import IconSystemNotificationsInstructions from "./svg/IconSystemNotificationsInstructions";
|
|
147
|
+
import IconArchive from "./svg/IconArchive";
|
|
142
148
|
|
|
143
149
|
export const IOIcons = {
|
|
150
|
+
archive: IconArchive,
|
|
144
151
|
spid: IconSpid,
|
|
145
152
|
cie: IconCie /* io-cie */,
|
|
146
153
|
qrCode: IconQrCode,
|
|
@@ -182,7 +189,6 @@ export const IOIcons = {
|
|
|
182
189
|
docAttachPDF: IconDocumentAttachmentPDF,
|
|
183
190
|
attachment: IconAttachment,
|
|
184
191
|
add: IconAdd,
|
|
185
|
-
completed: IconCompleted,
|
|
186
192
|
success: IconSuccess,
|
|
187
193
|
ok: IconOk,
|
|
188
194
|
fiscalCodeIndividual: IconFiscalCodeIndividual,
|
|
@@ -229,15 +235,13 @@ export const IOIcons = {
|
|
|
229
235
|
gallery: IconGallery,
|
|
230
236
|
externalLink: IconExternalLink,
|
|
231
237
|
cancel: IconCancel,
|
|
232
|
-
help: IconQuestion
|
|
238
|
+
help: IconQuestion,
|
|
233
239
|
search: IconSearch /* io-search */,
|
|
234
|
-
legSearch: LegIconSearch,
|
|
235
240
|
chevronRight: IconChevronRight,
|
|
236
241
|
chevronLeft: IconChevronLeft,
|
|
237
242
|
chevronBottom: IconChevronBottom,
|
|
238
243
|
chevronTop: IconChevronTop,
|
|
239
244
|
chevronRightListItem: IconChevronRightListItem,
|
|
240
|
-
legChevronLeft: LegIconChevronLeft,
|
|
241
245
|
closeLarge: IconCloseLarge /* io-close */,
|
|
242
246
|
closeMedium: IconCloseMedium,
|
|
243
247
|
closeSmall: IconCloseSmall,
|
|
@@ -276,7 +280,15 @@ export const IOIcons = {
|
|
|
276
280
|
categSustainability: IconCategSustainability,
|
|
277
281
|
productIOApp: IconProductIOApp,
|
|
278
282
|
productPagoPA: IconProductPagoPA /* io-pagopa */,
|
|
279
|
-
productIOAppBlueBg: IconProductIOAppBlueBg
|
|
283
|
+
productIOAppBlueBg: IconProductIOAppBlueBg,
|
|
284
|
+
checkTick: IconCheckTick,
|
|
285
|
+
checkTickBig: IconCheckTickBig,
|
|
286
|
+
merchant: IconMerchant,
|
|
287
|
+
systemSettingsAndroid: IconSystemSettingsAndroid,
|
|
288
|
+
systemSettingsiOS: IconSystemSettingsiOS,
|
|
289
|
+
systemToggleInstructions: IconSystemToggleInstructions,
|
|
290
|
+
systemAppsAndroid: IconSystemAppsAndroid,
|
|
291
|
+
systemNotificationsInstructions: IconSystemNotificationsInstructions
|
|
280
292
|
} as const;
|
|
281
293
|
|
|
282
294
|
export type IOIcons = keyof typeof IOIcons;
|
|
@@ -471,3 +483,22 @@ export const IOProductIcons = {
|
|
|
471
483
|
} as const;
|
|
472
484
|
|
|
473
485
|
export type IOProductIcons = keyof typeof IOProductIcons;
|
|
486
|
+
|
|
487
|
+
/* System */
|
|
488
|
+
const {
|
|
489
|
+
systemSettingsAndroid,
|
|
490
|
+
systemSettingsiOS,
|
|
491
|
+
systemToggleInstructions,
|
|
492
|
+
systemAppsAndroid,
|
|
493
|
+
systemNotificationsInstructions
|
|
494
|
+
} = IOIcons;
|
|
495
|
+
|
|
496
|
+
export const IOSystemIcons = {
|
|
497
|
+
systemSettingsAndroid,
|
|
498
|
+
systemSettingsiOS,
|
|
499
|
+
systemToggleInstructions,
|
|
500
|
+
systemAppsAndroid,
|
|
501
|
+
systemNotificationsInstructions
|
|
502
|
+
} as const;
|
|
503
|
+
|
|
504
|
+
export type IOSystemIcons = keyof typeof IOSystemIcons;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Svg, Path } from "react-native-svg";
|
|
3
|
+
import { SVGIconProps } from "../Icon";
|
|
4
|
+
|
|
5
|
+
const IconArchive = ({ size, style, ...props }: SVGIconProps) => (
|
|
6
|
+
<Svg width={size} height={size} viewBox="0 0 24 24" style={style} {...props}>
|
|
7
|
+
<Path
|
|
8
|
+
fillRule="evenodd"
|
|
9
|
+
clipRule="evenodd"
|
|
10
|
+
d="M0 4c0-1.65685 1.34315-3 3-3h18c1.6569 0 3 1.34315 3 3v2c0 1.30622-.8348 2.41746-2 2.82929V18c0 2.7614-2.2386 5-5 5H7c-2.76142 0-5-2.2386-5-5V8.82929C.8348 8.41746 0 7.30622 0 6V4Zm4 5h16v9c0 1.6569-1.3431 3-3 3H7c-1.65685 0-3-1.3431-3-3V9Zm18-3c0 .55228-.4477 1-1 1H3c-.55228 0-1-.44771-1-1V4c0-.55228.44772-1 1-1h18c.5523 0 1 .44771 1 1v2ZM9 11c-.55229 0-1 .4477-1 1s.44771 1 1 1h6c.5523 0 1-.4477 1-1s-.4477-1-1-1H9Z"
|
|
11
|
+
fill="currentColor"
|
|
12
|
+
/>
|
|
13
|
+
</Svg>
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
export default IconArchive;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Svg, Path } from "react-native-svg";
|
|
3
|
+
import { SVGIconProps } from "../Icon";
|
|
4
|
+
|
|
5
|
+
const IconCheckTick = ({ size, style, ...props }: SVGIconProps) => (
|
|
6
|
+
<Svg width={size} height={size} viewBox="0 0 24 24" style={style} {...props}>
|
|
7
|
+
<Path
|
|
8
|
+
fillRule="evenodd"
|
|
9
|
+
clipRule="evenodd"
|
|
10
|
+
d="M17.7071 9.29289C18.0976 9.68342 18.0976 10.3166 17.7071 10.7071L11.4142 17C10.6332 17.781 9.36684 17.7811 8.58579 17L5.29289 13.7071C4.90237 13.3166 4.90237 12.6834 5.29289 12.2929C5.68342 11.9024 6.31658 11.9024 6.70711 12.2929L10 15.5858L16.2929 9.29289C16.6834 8.90237 17.3166 8.90237 17.7071 9.29289Z"
|
|
11
|
+
fill="currentColor"
|
|
12
|
+
/>
|
|
13
|
+
</Svg>
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
export default IconCheckTick;
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { Svg, Path } from "react-native-svg";
|
|
3
3
|
import { SVGIconProps } from "../Icon";
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const IconCheckTickBig = ({ size, style, ...props }: SVGIconProps) => (
|
|
6
6
|
<Svg width={size} height={size} viewBox="0 0 24 24" style={style} {...props}>
|
|
7
7
|
<Path
|
|
8
8
|
fillRule="evenodd"
|
|
@@ -13,4 +13,4 @@ const IconCompleted = ({ size, style, ...props }: SVGIconProps) => (
|
|
|
13
13
|
</Svg>
|
|
14
14
|
);
|
|
15
15
|
|
|
16
|
-
export default
|
|
16
|
+
export default IconCheckTickBig;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Svg, Path } from "react-native-svg";
|
|
3
|
+
import { SVGIconProps } from "../Icon";
|
|
4
|
+
|
|
5
|
+
const IconMerchant = ({ size, style, ...props }: SVGIconProps) => (
|
|
6
|
+
<Svg width={size} height={size} viewBox="0 0 24 24" style={style} {...props}>
|
|
7
|
+
<Path
|
|
8
|
+
fillRule="evenodd"
|
|
9
|
+
clipRule="evenodd"
|
|
10
|
+
d="M0 5V9C0 10.6602 0.776973 12.1764 2 13.0935V22H1C0.447715 22 0 22.4477 0 23C0 23.5523 0.447716 24 1 24H2V24H22V24H23C23.5523 24 24 23.5523 24 23C24 22.4477 23.5523 22 23 22H22V13.0935C23.223 12.1764 24 10.6602 24 9V5C24 2.23858 21.7614 0 19 0H5C2.23858 0 0 2.23858 0 5ZM20 13.9446C19.7697 13.9811 19.5332 14 19.2916 14C17.9025 14 16.6807 13.3699 15.8304 12.3893C15.7456 12.2914 15.5914 12.2909 15.5059 12.3883C14.6426 13.3716 13.4024 14 11.9996 14C10.597 14 9.35702 13.3718 8.49367 12.3887C8.40819 12.2914 8.25406 12.2919 8.1692 12.3897C7.31896 13.3701 6.09726 14 4.70842 14C4.46675 14 4.23027 13.9811 4 13.9446V22H8V18C8 16.8954 8.89543 16 10 16H14C15.1046 16 16 16.8954 16 18V22H20V13.9446ZM4.70842 12C3.28253 12 2 10.7295 2 9V5C2 3.34315 3.34315 2 5 2H7.30078V9.87156C6.95182 11.148 5.88415 12 4.70842 12ZM9.30078 9.69118C9.30852 9.71511 9.31542 9.7395 9.32144 9.76433C9.64273 11.0892 10.7528 12 11.9996 12C13.2464 12 14.3565 11.0892 14.6778 9.76433C14.684 9.73866 14.6912 9.71347 14.6992 9.68878V2H9.30078V9.69118ZM19.2916 12C18.1159 12 17.0482 11.148 16.6992 9.87156V2H19C20.6569 2 22 3.34315 22 5V9C22 10.7295 20.7175 12 19.2916 12ZM14 18V22H10V18H14Z"
|
|
11
|
+
fill="currentColor"
|
|
12
|
+
/>
|
|
13
|
+
</Svg>
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
export default IconMerchant;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Svg, Rect, G, Circle } from "react-native-svg";
|
|
3
|
+
import { SVGIconProps } from "../Icon";
|
|
4
|
+
|
|
5
|
+
const IconSystemAppsAndroid = ({ size, style, ...props }: SVGIconProps) => (
|
|
6
|
+
<Svg width={size} height={size} viewBox="0 0 24 24" style={style} {...props}>
|
|
7
|
+
<Rect width={size} height={size} fill="#F79E1B" rx="8" />
|
|
8
|
+
<G fill="#fff">
|
|
9
|
+
<Circle cx="8" cy="8" r="3" />
|
|
10
|
+
<Circle cx="8" cy="16" r="3" />
|
|
11
|
+
<Circle cx="16" cy="16" r="3" />
|
|
12
|
+
<Circle cx="16" cy="8" r="3" />
|
|
13
|
+
</G>
|
|
14
|
+
</Svg>
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
export default IconSystemAppsAndroid;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Svg, Path, Rect, Circle } from "react-native-svg";
|
|
3
|
+
import { SVGIconProps } from "../Icon";
|
|
4
|
+
|
|
5
|
+
const IconSystemNotificationsInstructions = ({
|
|
6
|
+
size,
|
|
7
|
+
style,
|
|
8
|
+
...props
|
|
9
|
+
}: SVGIconProps) => (
|
|
10
|
+
<Svg width={size} height={size} viewBox="0 0 24 24" style={style} {...props}>
|
|
11
|
+
<Rect width={size} height={size} fill="#EB4E3E" rx="4.364" />
|
|
12
|
+
<Path
|
|
13
|
+
stroke="#fff"
|
|
14
|
+
stroke-width="1.091"
|
|
15
|
+
d="M4.909 8.727c0-1.044 0-1.772.075-2.321.072-.534.203-.816.404-1.018.201-.2.484-.332 1.018-.404.549-.074 1.277-.075 2.32-.075h6.546c1.044 0 1.772.001 2.322.075.533.072.816.203 1.017.404.202.202.333.484.404 1.018.074.55.076 1.277.076 2.321v6.546c0 1.044-.002 1.772-.076 2.321-.071.534-.202.816-.404 1.018-.201.201-.484.332-1.017.404-.55.074-1.278.075-2.322.075H8.727c-1.044 0-1.772-.001-2.321-.075-.534-.072-.817-.203-1.018-.404-.201-.201-.332-.484-.404-1.018-.074-.55-.075-1.277-.075-2.321V8.727Z"
|
|
16
|
+
/>
|
|
17
|
+
<Circle
|
|
18
|
+
cx="17.454"
|
|
19
|
+
cy="7.091"
|
|
20
|
+
r="3.818"
|
|
21
|
+
fill="#fff"
|
|
22
|
+
stroke="#EB4E3E"
|
|
23
|
+
stroke-width="1.091"
|
|
24
|
+
/>
|
|
25
|
+
</Svg>
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
export default IconSystemNotificationsInstructions;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Svg, Path, Rect } from "react-native-svg";
|
|
3
|
+
import { SVGIconProps } from "../Icon";
|
|
4
|
+
|
|
5
|
+
const IconSystemSettingsAndroid = ({ size, style, ...props }: SVGIconProps) => (
|
|
6
|
+
<Svg width={size} height={size} viewBox="0 0 24 24" style={style} {...props}>
|
|
7
|
+
<Rect width={size} height={size} fill="#418DAF" rx="8" />
|
|
8
|
+
<Path
|
|
9
|
+
fill="#fff"
|
|
10
|
+
d="M17.95 12.784c.033-.25.05-.509.05-.784a4.81 4.81 0 0 0-.058-.783L19.633 9.9a.409.409 0 0 0 .1-.508l-1.6-2.767a.407.407 0 0 0-.491-.183l-1.992.8a5.885 5.885 0 0 0-1.35-.783L14 4.342A.403.403 0 0 0 13.6 4h-3.2c-.2 0-.358.142-.392.342l-.3 2.117c-.491.2-.941.475-1.35.783l-1.991-.8a.398.398 0 0 0-.492.183L4.283 9.392c-.1.175-.066.392.1.508l1.692 1.317A4.89 4.89 0 0 0 6 12c0 .259.017.534.058.784L4.367 14.1a.409.409 0 0 0-.1.509l1.6 2.766c.1.184.308.242.491.184l1.992-.8c.417.316.858.583 1.35.783l.3 2.117c.042.2.2.341.4.341h3.2c.2 0 .367-.141.392-.341l.3-2.117c.491-.2.941-.467 1.35-.783l1.991.8c.184.066.392 0 .492-.184l1.6-2.766c.1-.184.058-.392-.1-.509l-1.675-1.316ZM12 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3Z"
|
|
11
|
+
/>
|
|
12
|
+
</Svg>
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
export default IconSystemSettingsAndroid;
|