@pagopa/io-app-design-system 1.36.13 → 1.36.15
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/layout/GradientBottomActions.js +5 -0
- package/lib/commonjs/components/layout/GradientBottomActions.js.map +1 -1
- package/lib/commonjs/components/layout/GradientScrollView.js +5 -0
- package/lib/commonjs/components/layout/GradientScrollView.js.map +1 -1
- package/lib/commonjs/components/layout/index.js +36 -36
- package/lib/commonjs/components/layout/index.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemHeader.js +1 -0
- package/lib/commonjs/components/listitems/ListItemHeader.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemInfo.js +10 -0
- package/lib/commonjs/components/listitems/ListItemInfo.js.map +1 -1
- package/lib/commonjs/components/logos/LogoPayment.js +12 -10
- package/lib/commonjs/components/logos/LogoPayment.js.map +1 -1
- package/lib/commonjs/components/logos/LogoPaymentExt.js +12 -10
- package/lib/commonjs/components/logos/LogoPaymentExt.js.map +1 -1
- package/lib/commonjs/components/logos/svg/LogoPaymentExtSatispay.js +33 -0
- package/lib/commonjs/components/logos/svg/LogoPaymentExtSatispay.js.map +1 -0
- package/lib/commonjs/components/logos/svg/LogoPaymentSatispay.js +34 -0
- package/lib/commonjs/components/logos/svg/LogoPaymentSatispay.js.map +1 -0
- package/lib/commonjs/components/logos/svg/originals/LogoPaymentExtSatispay.svg +16 -0
- package/lib/commonjs/components/logos/svg/originals/LogoPaymentSatispay.svg +11 -0
- package/lib/commonjs/components/typography/H4.js +1 -1
- package/lib/commonjs/components/typography/__test__/__snapshots__/typography.test.tsx.snap +14 -14
- package/lib/commonjs/components/typography/index.js +66 -0
- package/lib/commonjs/components/typography/index.js.map +1 -1
- package/lib/commonjs/components/typography/markdown/MdH1.js +28 -0
- package/lib/commonjs/components/typography/markdown/MdH1.js.map +1 -0
- package/lib/commonjs/components/typography/markdown/MdH2.js +28 -0
- package/lib/commonjs/components/typography/markdown/MdH2.js.map +1 -0
- package/lib/commonjs/components/typography/markdown/MdH3.js +28 -0
- package/lib/commonjs/components/typography/markdown/MdH3.js.map +1 -0
- package/lib/commonjs/components/typography/markdown/MdH4.js +30 -0
- package/lib/commonjs/components/typography/markdown/MdH4.js.map +1 -0
- package/lib/commonjs/components/typography/markdown/MdH5.js +28 -0
- package/lib/commonjs/components/typography/markdown/MdH5.js.map +1 -0
- package/lib/commonjs/components/typography/markdown/MdH6.js +29 -0
- package/lib/commonjs/components/typography/markdown/MdH6.js.map +1 -0
- package/lib/commonjs/core/IOColors.js +0 -13
- package/lib/commonjs/core/IOColors.js.map +1 -1
- package/lib/module/components/layout/GradientBottomActions.js +5 -0
- package/lib/module/components/layout/GradientBottomActions.js.map +1 -1
- package/lib/module/components/layout/GradientScrollView.js +5 -0
- package/lib/module/components/layout/GradientScrollView.js.map +1 -1
- package/lib/module/components/layout/index.js +5 -5
- package/lib/module/components/layout/index.js.map +1 -1
- package/lib/module/components/listitems/ListItemHeader.js +1 -0
- package/lib/module/components/listitems/ListItemHeader.js.map +1 -1
- package/lib/module/components/listitems/ListItemInfo.js +10 -0
- package/lib/module/components/listitems/ListItemInfo.js.map +1 -1
- package/lib/module/components/logos/LogoPayment.js +12 -10
- package/lib/module/components/logos/LogoPayment.js.map +1 -1
- package/lib/module/components/logos/LogoPaymentExt.js +12 -10
- package/lib/module/components/logos/LogoPaymentExt.js.map +1 -1
- package/lib/module/components/logos/svg/LogoPaymentExtSatispay.js +25 -0
- package/lib/module/components/logos/svg/LogoPaymentExtSatispay.js.map +1 -0
- package/lib/module/components/logos/svg/LogoPaymentSatispay.js +26 -0
- package/lib/module/components/logos/svg/LogoPaymentSatispay.js.map +1 -0
- package/lib/module/components/logos/svg/originals/LogoPaymentExtSatispay.svg +16 -0
- package/lib/module/components/logos/svg/originals/LogoPaymentSatispay.svg +11 -0
- package/lib/module/components/typography/H4.js +1 -1
- package/lib/module/components/typography/__test__/__snapshots__/typography.test.tsx.snap +14 -14
- package/lib/module/components/typography/index.js +6 -0
- package/lib/module/components/typography/index.js.map +1 -1
- package/lib/module/components/typography/markdown/MdH1.js +21 -0
- package/lib/module/components/typography/markdown/MdH1.js.map +1 -0
- package/lib/module/components/typography/markdown/MdH2.js +21 -0
- package/lib/module/components/typography/markdown/MdH2.js.map +1 -0
- package/lib/module/components/typography/markdown/MdH3.js +21 -0
- package/lib/module/components/typography/markdown/MdH3.js.map +1 -0
- package/lib/module/components/typography/markdown/MdH4.js +23 -0
- package/lib/module/components/typography/markdown/MdH4.js.map +1 -0
- package/lib/module/components/typography/markdown/MdH5.js +21 -0
- package/lib/module/components/typography/markdown/MdH5.js.map +1 -0
- package/lib/module/components/typography/markdown/MdH6.js +22 -0
- package/lib/module/components/typography/markdown/MdH6.js.map +1 -0
- package/lib/module/core/IOColors.js +0 -13
- package/lib/module/core/IOColors.js.map +1 -1
- package/lib/typescript/components/buttons/ButtonLink.d.ts +1 -1
- package/lib/typescript/components/buttons/ButtonLink.d.ts.map +1 -1
- package/lib/typescript/components/buttons/ButtonOutline.d.ts +2 -2
- package/lib/typescript/components/buttons/ButtonOutline.d.ts.map +1 -1
- package/lib/typescript/components/buttons/ButtonSolid.d.ts +2 -2
- package/lib/typescript/components/buttons/ButtonSolid.d.ts.map +1 -1
- package/lib/typescript/components/layout/GradientBottomActions.d.ts +4 -0
- package/lib/typescript/components/layout/GradientBottomActions.d.ts.map +1 -1
- package/lib/typescript/components/layout/GradientScrollView.d.ts +4 -0
- package/lib/typescript/components/layout/GradientScrollView.d.ts.map +1 -1
- package/lib/typescript/components/layout/index.d.ts +5 -5
- package/lib/typescript/components/layout/index.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemInfo.d.ts +9 -3
- package/lib/typescript/components/listitems/ListItemInfo.d.ts.map +1 -1
- package/lib/typescript/components/logos/LogoPayment.d.ts +2 -1
- package/lib/typescript/components/logos/LogoPayment.d.ts.map +1 -1
- package/lib/typescript/components/logos/LogoPaymentExt.d.ts +1 -0
- package/lib/typescript/components/logos/LogoPaymentExt.d.ts.map +1 -1
- package/lib/typescript/components/logos/svg/LogoPaymentExtSatispay.d.ts +5 -0
- package/lib/typescript/components/logos/svg/LogoPaymentExtSatispay.d.ts.map +1 -0
- package/lib/typescript/components/logos/svg/LogoPaymentSatispay.d.ts +5 -0
- package/lib/typescript/components/logos/svg/LogoPaymentSatispay.d.ts.map +1 -0
- package/lib/typescript/components/radio/RadioGroup.d.ts.map +1 -1
- package/lib/typescript/components/typography/ButtonText.d.ts +1 -1
- package/lib/typescript/components/typography/Caption.d.ts +1 -1
- package/lib/typescript/components/typography/Chip.d.ts +1 -1
- package/lib/typescript/components/typography/H1.d.ts +1 -1
- package/lib/typescript/components/typography/H2.d.ts +1 -1
- package/lib/typescript/components/typography/H3.d.ts +1 -1
- package/lib/typescript/components/typography/H4.d.ts +2 -2
- package/lib/typescript/components/typography/H5.d.ts +1 -1
- package/lib/typescript/components/typography/Hero.d.ts +1 -1
- package/lib/typescript/components/typography/index.d.ts +6 -0
- package/lib/typescript/components/typography/index.d.ts.map +1 -1
- package/lib/typescript/components/typography/markdown/MdH1.d.ts +13 -0
- package/lib/typescript/components/typography/markdown/MdH1.d.ts.map +1 -0
- package/lib/typescript/components/typography/markdown/MdH2.d.ts +13 -0
- package/lib/typescript/components/typography/markdown/MdH2.d.ts.map +1 -0
- package/lib/typescript/components/typography/markdown/MdH3.d.ts +13 -0
- package/lib/typescript/components/typography/markdown/MdH3.d.ts.map +1 -0
- package/lib/typescript/components/typography/markdown/MdH4.d.ts +13 -0
- package/lib/typescript/components/typography/markdown/MdH4.d.ts.map +1 -0
- package/lib/typescript/components/typography/markdown/MdH5.d.ts +13 -0
- package/lib/typescript/components/typography/markdown/MdH5.d.ts.map +1 -0
- package/lib/typescript/components/typography/markdown/MdH6.d.ts +13 -0
- package/lib/typescript/components/typography/markdown/MdH6.d.ts.map +1 -0
- package/lib/typescript/core/IOColors.d.ts +0 -9
- package/lib/typescript/core/IOColors.d.ts.map +1 -1
- package/lib/typescript/utils/object.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/components/layout/GradientBottomActions.tsx +4 -0
- package/src/components/layout/GradientScrollView.tsx +4 -0
- package/src/components/layout/index.tsx +5 -5
- package/src/components/listitems/ListItemHeader.tsx +1 -1
- package/src/components/listitems/ListItemInfo.tsx +25 -3
- package/src/components/logos/LogoPayment.tsx +12 -10
- package/src/components/logos/LogoPaymentExt.tsx +12 -10
- package/src/components/logos/svg/LogoPaymentExtSatispay.tsx +24 -0
- package/src/components/logos/svg/LogoPaymentSatispay.tsx +19 -0
- package/src/components/logos/svg/originals/LogoPaymentExtSatispay.svg +16 -0
- package/src/components/logos/svg/originals/LogoPaymentSatispay.svg +11 -0
- package/src/components/typography/H4.tsx +1 -1
- package/src/components/typography/__test__/__snapshots__/typography.test.tsx.snap +14 -14
- package/src/components/typography/index.tsx +6 -0
- package/src/components/typography/markdown/MdH1.tsx +32 -0
- package/src/components/typography/markdown/MdH2.tsx +32 -0
- package/src/components/typography/markdown/MdH3.tsx +32 -0
- package/src/components/typography/markdown/MdH4.tsx +34 -0
- package/src/components/typography/markdown/MdH5.tsx +32 -0
- package/src/components/typography/markdown/MdH6.tsx +33 -0
- package/src/core/IOColors.ts +0 -13
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IOColors, IOTheme } from "../../../core";
|
|
3
|
+
import { IOFontWeight } from "../../../utils/fonts";
|
|
4
|
+
import { ExternalTypographyProps, TypographyProps } from "../common";
|
|
5
|
+
type AllowedColors = Extract<IOTheme, "textHeading-default"> | IOColors;
|
|
6
|
+
type AllowedWeight = Extract<IOFontWeight, "Regular">;
|
|
7
|
+
type MdH1Props = ExternalTypographyProps<TypographyProps<AllowedWeight, AllowedColors>>;
|
|
8
|
+
/**
|
|
9
|
+
* `MdH1` typographic style
|
|
10
|
+
*/
|
|
11
|
+
export declare const MdH1: (props: MdH1Props) => import("react").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=MdH1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MdH1.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/markdown/MdH1.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAc,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAGrE,KAAK,aAAa,GAAG,OAAO,CAAC,OAAO,EAAE,qBAAqB,CAAC,GAAG,QAAQ,CAAC;AACxE,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;AAEtD,KAAK,SAAS,GAAG,uBAAuB,CACtC,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,CAAC;AAQF;;GAEG;AACH,eAAO,MAAM,IAAI,UAAW,SAAS,gCAUjC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IOColors, IOTheme } from "../../../core";
|
|
3
|
+
import { IOFontWeight } from "../../../utils/fonts";
|
|
4
|
+
import { ExternalTypographyProps, TypographyProps } from "../common";
|
|
5
|
+
type AllowedColors = Extract<IOTheme, "textHeading-default"> | IOColors;
|
|
6
|
+
type AllowedWeight = Extract<IOFontWeight, "SemiBold">;
|
|
7
|
+
type MdH2Props = ExternalTypographyProps<TypographyProps<AllowedWeight, AllowedColors>>;
|
|
8
|
+
/**
|
|
9
|
+
* `MdH2` typographic style
|
|
10
|
+
*/
|
|
11
|
+
export declare const MdH2: (props: MdH2Props) => import("react").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=MdH2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MdH2.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/markdown/MdH2.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAc,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAGrE,KAAK,aAAa,GAAG,OAAO,CAAC,OAAO,EAAE,qBAAqB,CAAC,GAAG,QAAQ,CAAC;AACxE,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;AAEvD,KAAK,SAAS,GAAG,uBAAuB,CACtC,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,CAAC;AAQF;;GAEG;AACH,eAAO,MAAM,IAAI,UAAW,SAAS,gCAUjC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IOColors, IOTheme } from "../../../core";
|
|
3
|
+
import { IOFontWeight } from "../../../utils/fonts";
|
|
4
|
+
import { ExternalTypographyProps, TypographyProps } from "../common";
|
|
5
|
+
type AllowedColors = Extract<IOTheme, "textHeading-default"> | IOColors;
|
|
6
|
+
type AllowedWeight = Extract<IOFontWeight, "Regular">;
|
|
7
|
+
type MdH3Props = ExternalTypographyProps<TypographyProps<AllowedWeight, AllowedColors>>;
|
|
8
|
+
/**
|
|
9
|
+
* `MdH3` typographic style
|
|
10
|
+
*/
|
|
11
|
+
export declare const MdH3: (props: MdH3Props) => import("react").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=MdH3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MdH3.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/markdown/MdH3.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAc,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAGrE,KAAK,aAAa,GAAG,OAAO,CAAC,OAAO,EAAE,qBAAqB,CAAC,GAAG,QAAQ,CAAC;AACxE,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;AAEtD,KAAK,SAAS,GAAG,uBAAuB,CACtC,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,CAAC;AAQF;;GAEG;AACH,eAAO,MAAM,IAAI,UAAW,SAAS,gCAUjC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IOColors, IOTheme } from "../../../core";
|
|
3
|
+
import { IOFontWeight } from "../../../utils/fonts";
|
|
4
|
+
import { ExternalTypographyProps, TypographyProps } from "../common";
|
|
5
|
+
type AllowedColors = Extract<IOTheme, "textHeading-default"> | IOColors;
|
|
6
|
+
type AllowedWeight = Extract<IOFontWeight, "SemiBold">;
|
|
7
|
+
type MdH4Props = ExternalTypographyProps<TypographyProps<AllowedWeight, AllowedColors>>;
|
|
8
|
+
/**
|
|
9
|
+
* `MdH4` typographic style
|
|
10
|
+
*/
|
|
11
|
+
export declare const MdH4: (props: MdH4Props) => import("react").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=MdH4.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MdH4.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/markdown/MdH4.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAc,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAGrE,KAAK,aAAa,GAAG,OAAO,CAAC,OAAO,EAAE,qBAAqB,CAAC,GAAG,QAAQ,CAAC;AACxE,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;AAEvD,KAAK,SAAS,GAAG,uBAAuB,CACtC,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,CAAC;AAQF;;GAEG;AACH,eAAO,MAAM,IAAI,UAAW,SAAS,gCAYjC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IOColors, IOTheme } from "../../../core";
|
|
3
|
+
import { IOFontWeight } from "../../../utils/fonts";
|
|
4
|
+
import { ExternalTypographyProps, TypographyProps } from "../common";
|
|
5
|
+
type AllowedColors = Extract<IOTheme, "textHeading-default"> | IOColors;
|
|
6
|
+
type AllowedWeight = Extract<IOFontWeight, "Regular">;
|
|
7
|
+
type MdH5Props = ExternalTypographyProps<TypographyProps<AllowedWeight, AllowedColors>>;
|
|
8
|
+
/**
|
|
9
|
+
* `MdH5` typographic style
|
|
10
|
+
*/
|
|
11
|
+
export declare const MdH5: (props: MdH5Props) => import("react").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=MdH5.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MdH5.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/markdown/MdH5.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAc,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAGrE,KAAK,aAAa,GAAG,OAAO,CAAC,OAAO,EAAE,qBAAqB,CAAC,GAAG,QAAQ,CAAC;AACxE,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;AAEtD,KAAK,SAAS,GAAG,uBAAuB,CACtC,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,CAAC;AAQF;;GAEG;AACH,eAAO,MAAM,IAAI,UAAW,SAAS,gCAUjC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IOColors, IOTheme } from "../../../core";
|
|
3
|
+
import { IOFontWeight } from "../../../utils/fonts";
|
|
4
|
+
import { ExternalTypographyProps, TypographyProps } from "../common";
|
|
5
|
+
type AllowedColors = Extract<IOTheme, "textHeading-default"> | IOColors;
|
|
6
|
+
type AllowedWeight = Extract<IOFontWeight, "Regular">;
|
|
7
|
+
type MdH6Props = ExternalTypographyProps<TypographyProps<AllowedWeight, AllowedColors>>;
|
|
8
|
+
/**
|
|
9
|
+
* `MdH5` typographic style
|
|
10
|
+
*/
|
|
11
|
+
export declare const MdH6: (props: MdH6Props) => import("react").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=MdH6.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MdH6.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/markdown/MdH6.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAc,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAGrE,KAAK,aAAa,GAAG,OAAO,CAAC,OAAO,EAAE,qBAAqB,CAAC,GAAG,QAAQ,CAAC;AACxE,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;AAEtD,KAAK,SAAS,GAAG,uBAAuB,CACtC,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,CAAC;AAQF;;GAEG;AACH,eAAO,MAAM,IAAI,UAAW,SAAS,gCAWjC,CAAC"}
|
|
@@ -52,7 +52,6 @@ export declare const IOColors: {
|
|
|
52
52
|
"info-500": string;
|
|
53
53
|
"info-400": string;
|
|
54
54
|
"info-100": string;
|
|
55
|
-
cobalt: string;
|
|
56
55
|
"blueItalia-850": string;
|
|
57
56
|
"blueItalia-600": string;
|
|
58
57
|
"blueItalia-500": string;
|
|
@@ -64,16 +63,13 @@ export declare const IOColors: {
|
|
|
64
63
|
greyLight: string;
|
|
65
64
|
bluegreyLight: string;
|
|
66
65
|
grey: string;
|
|
67
|
-
milderGray: string;
|
|
68
66
|
bluegrey: string;
|
|
69
67
|
bluegreyDark: string;
|
|
70
|
-
noCieButton: string;
|
|
71
68
|
blue: string;
|
|
72
69
|
blueUltraLight: string;
|
|
73
70
|
aqua: string;
|
|
74
71
|
aquaUltraLight: string;
|
|
75
72
|
antiqueFuchsia: string;
|
|
76
|
-
yellow: string;
|
|
77
73
|
orange: string;
|
|
78
74
|
red: string;
|
|
79
75
|
green: string;
|
|
@@ -105,18 +101,14 @@ export declare const IOColorsLegacy: {
|
|
|
105
101
|
greyLight: string;
|
|
106
102
|
bluegreyLight: string;
|
|
107
103
|
grey: string;
|
|
108
|
-
milderGray: string;
|
|
109
104
|
bluegrey: string;
|
|
110
105
|
bluegreyDark: string;
|
|
111
106
|
black: string;
|
|
112
|
-
noCieButton: string;
|
|
113
107
|
blue: string;
|
|
114
108
|
blueUltraLight: string;
|
|
115
109
|
aqua: string;
|
|
116
110
|
aquaUltraLight: string;
|
|
117
|
-
cobalt: string;
|
|
118
111
|
antiqueFuchsia: string;
|
|
119
|
-
yellow: string;
|
|
120
112
|
orange: string;
|
|
121
113
|
red: string;
|
|
122
114
|
green: string;
|
|
@@ -179,7 +171,6 @@ export type IOColorsStatus = keyof typeof IOColorsStatus;
|
|
|
179
171
|
export type IOColorsStatusForeground = Extract<IOColorsStatus, "error-850" | "warning-850" | "info-850" | "success-850">;
|
|
180
172
|
export type IOColorsStatusBackground = Extract<IOColorsStatus, "error-100" | "warning-100" | "info-100" | "success-100">;
|
|
181
173
|
export declare const IOColorsExtra: {
|
|
182
|
-
cobalt: string;
|
|
183
174
|
"blueItalia-850": string;
|
|
184
175
|
"blueItalia-600": string;
|
|
185
176
|
"blueItalia-500": string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IOColors.d.ts","sourceRoot":"","sources":["../../../src/core/IOColors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,cAAc,MAAM,8BAA8B,CAAC;AAyB/D,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"IOColors.d.ts","sourceRoot":"","sources":["../../../src/core/IOColors.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../../src/utils/object.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAGlC,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../../src/utils/object.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAGlC,eAAO,MAAM,wBAAwB,WAC1B;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAA;CAAE,WACvB,MAAM,KAAG,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAKhC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pagopa/io-app-design-system",
|
|
3
|
-
"version": "1.36.
|
|
3
|
+
"version": "1.36.15",
|
|
4
4
|
"description": "The library defining the core components of the design system of @pagopa/io-app",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"storybook": "^7.4.0",
|
|
108
108
|
"storybook-react-context": "^0.6.0",
|
|
109
109
|
"svgo": "^3.0.2",
|
|
110
|
-
"typescript": "^4.
|
|
110
|
+
"typescript": "^5.4.4"
|
|
111
111
|
},
|
|
112
112
|
"resolutions": {
|
|
113
113
|
"@types/react": "17.0.43"
|
|
@@ -63,6 +63,10 @@ const styles = StyleSheet.create({
|
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
+
/**
|
|
67
|
+
* @deprecated This component has been included in the new `IOScrollView` after a proper refactor. It will be removed in a future release.
|
|
68
|
+
* @see IOScrollView
|
|
69
|
+
*/
|
|
66
70
|
export const GradientBottomActions = ({
|
|
67
71
|
primaryActionProps: primaryAction,
|
|
68
72
|
secondaryActionProps: secondaryAction,
|
|
@@ -38,6 +38,10 @@ const secondaryActionEstHeight: number = 20;
|
|
|
38
38
|
// Extra bottom margin for iPhone bottom handle
|
|
39
39
|
const extraSafeAreaMargin: IOSpacingScale = 8;
|
|
40
40
|
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated This component has been deprecated. It will be removed in a future release.
|
|
43
|
+
* @see IOScrollView
|
|
44
|
+
*/
|
|
41
45
|
export const GradientScrollView = ({
|
|
42
46
|
children,
|
|
43
47
|
primaryActionProps: primaryActionProps,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
1
|
+
export * from "./BlockButtons";
|
|
2
|
+
export * from "./FooterWithButtons";
|
|
3
|
+
export * from "./ForceScrollDownView";
|
|
3
4
|
export * from "./GradientBottomActions";
|
|
5
|
+
export * from "./GradientScrollView";
|
|
4
6
|
export * from "./HeaderFirstLevel";
|
|
5
7
|
export * from "./HeaderSecondLevel";
|
|
6
|
-
export * from "./ForceScrollDownView";
|
|
7
|
-
export * from "./FooterWithButtons";
|
|
8
|
-
export * from "./BlockButtons";
|
|
9
8
|
export * from "./ModalBSHeader";
|
|
9
|
+
export * from "./common";
|
|
@@ -79,7 +79,7 @@ export const ListItemHeader = ({
|
|
|
79
79
|
endElement !== undefined && endElement.type !== "badge"
|
|
80
80
|
}
|
|
81
81
|
>
|
|
82
|
-
<H6 weight="Regular" color={theme["textBody-tertiary"]}>
|
|
82
|
+
<H6 role="heading" weight="Regular" color={theme["textBody-tertiary"]}>
|
|
83
83
|
{label}
|
|
84
84
|
</H6>
|
|
85
85
|
</View>
|
|
@@ -7,10 +7,12 @@ import {
|
|
|
7
7
|
useIOTheme
|
|
8
8
|
} from "../../core";
|
|
9
9
|
import { WithTestID } from "../../utils/types";
|
|
10
|
-
import { IOIcons, Icon } from "../icons";
|
|
10
|
+
import { IOIconSizeScale, IOIcons, Icon } from "../icons";
|
|
11
11
|
import { H6, LabelSmall } from "../typography";
|
|
12
12
|
import { ButtonLink, IconButton } from "../buttons";
|
|
13
13
|
import { Badge } from "../badge";
|
|
14
|
+
import { LogoPaymentWithFallback } from "../common/LogoPaymentWithFallback";
|
|
15
|
+
import { IOLogoPaymentType } from "../logos";
|
|
14
16
|
|
|
15
17
|
type ButtonLinkActionProps = {
|
|
16
18
|
type: "buttonLink";
|
|
@@ -36,17 +38,29 @@ export type ListItemInfo = WithTestID<{
|
|
|
36
38
|
label: string;
|
|
37
39
|
value: string | React.ReactNode;
|
|
38
40
|
numberOfLines?: number;
|
|
39
|
-
icon?: IOIcons;
|
|
40
41
|
endElement?: EndElementProps;
|
|
41
42
|
// Accessibility
|
|
42
43
|
accessibilityLabel?: string;
|
|
43
|
-
}
|
|
44
|
+
}> &
|
|
45
|
+
(
|
|
46
|
+
| {
|
|
47
|
+
paymentLogoIcon?: IOLogoPaymentType;
|
|
48
|
+
icon?: never;
|
|
49
|
+
}
|
|
50
|
+
| {
|
|
51
|
+
icon?: IOIcons;
|
|
52
|
+
paymentLogoIcon?: never;
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
const PAYMENT_LOGO_SIZE: IOIconSizeScale = 24;
|
|
44
57
|
|
|
45
58
|
export const ListItemInfo = ({
|
|
46
59
|
label,
|
|
47
60
|
value,
|
|
48
61
|
numberOfLines = 2,
|
|
49
62
|
icon,
|
|
63
|
+
paymentLogoIcon,
|
|
50
64
|
endElement,
|
|
51
65
|
accessibilityLabel,
|
|
52
66
|
testID
|
|
@@ -141,6 +155,14 @@ export const ListItemInfo = ({
|
|
|
141
155
|
/>
|
|
142
156
|
</View>
|
|
143
157
|
)}
|
|
158
|
+
{paymentLogoIcon && (
|
|
159
|
+
<View style={{ marginRight: IOListItemVisualParams.iconMargin }}>
|
|
160
|
+
<LogoPaymentWithFallback
|
|
161
|
+
brand={paymentLogoIcon}
|
|
162
|
+
size={PAYMENT_LOGO_SIZE}
|
|
163
|
+
/>
|
|
164
|
+
</View>
|
|
165
|
+
)}
|
|
144
166
|
<View style={IOStyles.flex}>{itemInfoTextComponent}</View>
|
|
145
167
|
{endElement && (
|
|
146
168
|
<View style={{ marginLeft: IOListItemVisualParams.actionMargin }}>
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
3
|
/* Logos */
|
|
4
|
-
import LogoPaymentMaestro from "./svg/LogoPaymentMaestro";
|
|
5
|
-
import LogoPaymentMastercard from "./svg/LogoPaymentMastercard";
|
|
6
|
-
import LogoPaymentVisa from "./svg/LogoPaymentVisa";
|
|
7
4
|
import LogoPaymentAmex from "./svg/LogoPaymentAmex";
|
|
5
|
+
import LogoPaymentApplePay from "./svg/LogoPaymentApplePay";
|
|
6
|
+
import LogoPaymentBancomatPay from "./svg/LogoPaymentBancomatPay";
|
|
8
7
|
import LogoPaymentDiners from "./svg/LogoPaymentDiners";
|
|
9
8
|
import LogoPaymentDiscover from "./svg/LogoPaymentDiscover";
|
|
10
9
|
import LogoPaymentJCB from "./svg/LogoPaymentJCB";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import LogoPaymentVPay from "./svg/LogoPaymentVPay";
|
|
10
|
+
import LogoPaymentMaestro from "./svg/LogoPaymentMaestro";
|
|
11
|
+
import LogoPaymentMastercard from "./svg/LogoPaymentMastercard";
|
|
12
|
+
import LogoPaymentMyBank from "./svg/LogoPaymentMyBank";
|
|
15
13
|
import LogoPaymentPagoBancomat from "./svg/LogoPaymentPagoBancomat";
|
|
14
|
+
import LogoPaymentPayPal from "./svg/LogoPaymentPayPal";
|
|
16
15
|
import LogoPaymentPostepay from "./svg/LogoPaymentPostepay";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
16
|
+
import LogoPaymentSatispay from "./svg/LogoPaymentSatispay";
|
|
17
|
+
import LogoPaymentUnionPay from "./svg/LogoPaymentUnionPay";
|
|
18
|
+
import LogoPaymentVPay from "./svg/LogoPaymentVPay";
|
|
19
|
+
import LogoPaymentVisa from "./svg/LogoPaymentVisa";
|
|
19
20
|
|
|
20
21
|
export const IOPaymentLogos = {
|
|
21
22
|
maestro: LogoPaymentMaestro,
|
|
@@ -29,9 +30,10 @@ export const IOPaymentLogos = {
|
|
|
29
30
|
payPal: LogoPaymentPayPal,
|
|
30
31
|
bancomatPay: LogoPaymentBancomatPay,
|
|
31
32
|
vPay: LogoPaymentVPay,
|
|
32
|
-
|
|
33
|
+
satispay: LogoPaymentSatispay,
|
|
33
34
|
postepay: LogoPaymentPostepay,
|
|
34
35
|
myBank: LogoPaymentMyBank,
|
|
36
|
+
pagoBancomat: LogoPaymentPagoBancomat,
|
|
35
37
|
applePay: LogoPaymentApplePay
|
|
36
38
|
} as const;
|
|
37
39
|
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
3
|
/* Logos */
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import LogoPaymentExtVisaElectron from "./svg/LogoPaymentExtVisaElectron";
|
|
8
|
-
import LogoPaymentExtVPay from "./svg/LogoPaymentExtVPay";
|
|
4
|
+
import LogoPaymentExtAmex from "./svg/LogoPaymentExtAmex";
|
|
5
|
+
import LogoPaymentExtApplePay from "./svg/LogoPaymentExtApplePay";
|
|
6
|
+
import LogoPaymentExtBancomatPay from "./svg/LogoPaymentExtBancomatPay";
|
|
9
7
|
import LogoPaymentExtDiners from "./svg/LogoPaymentExtDiners";
|
|
10
8
|
import LogoPaymentExtJCB from "./svg/LogoPaymentExtJCB";
|
|
11
|
-
import
|
|
9
|
+
import LogoPaymentExtMaestro from "./svg/LogoPaymentExtMaestro";
|
|
10
|
+
import LogoPaymentExtMastercard from "./svg/LogoPaymentExtMastercard";
|
|
11
|
+
import LogoPaymentExtPagoBancomat from "./svg/LogoPaymentExtPagoBancomat";
|
|
12
12
|
import LogoPaymentExtPayPal from "./svg/LogoPaymentExtPayPal";
|
|
13
|
-
import LogoPaymentExtBancomatPay from "./svg/LogoPaymentExtBancomatPay";
|
|
14
13
|
import LogoPaymentExtPostepay from "./svg/LogoPaymentExtPostepay";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
14
|
+
import LogoPaymentExtSatispay from "./svg/LogoPaymentExtSatispay";
|
|
15
|
+
import LogoPaymentExtUnionPay from "./svg/LogoPaymentExtUnionPay";
|
|
16
|
+
import LogoPaymentExtVPay from "./svg/LogoPaymentExtVPay";
|
|
17
|
+
import LogoPaymentExtVisa from "./svg/LogoPaymentExtVisa";
|
|
18
|
+
import LogoPaymentExtVisaElectron from "./svg/LogoPaymentExtVisaElectron";
|
|
18
19
|
|
|
19
20
|
export const IOPaymentExtLogos = {
|
|
20
21
|
maestro: LogoPaymentExtMaestro,
|
|
@@ -27,6 +28,7 @@ export const IOPaymentExtLogos = {
|
|
|
27
28
|
jcb: LogoPaymentExtJCB,
|
|
28
29
|
unionPay: LogoPaymentExtUnionPay,
|
|
29
30
|
payPal: LogoPaymentExtPayPal,
|
|
31
|
+
satispay: LogoPaymentExtSatispay,
|
|
30
32
|
bancomatPay: LogoPaymentExtBancomatPay,
|
|
31
33
|
postepay: LogoPaymentExtPostepay,
|
|
32
34
|
pagoBancomat: LogoPaymentExtPagoBancomat,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Svg, Path } from "react-native-svg";
|
|
3
|
+
import { SVGLogoProps } from "../types";
|
|
4
|
+
|
|
5
|
+
const LogoPaymentExtSatispay = ({ size }: SVGLogoProps) => (
|
|
6
|
+
<Svg width={size} height={size} viewBox="0 0 48 30">
|
|
7
|
+
<Path
|
|
8
|
+
fill="#FF3D00"
|
|
9
|
+
fillRule="evenodd"
|
|
10
|
+
d="M0 3a3 3 0 0 1 3-3h42a3 3 0 0 1 3 3v24a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3Z"
|
|
11
|
+
clipRule="evenodd"
|
|
12
|
+
/>
|
|
13
|
+
<Path
|
|
14
|
+
fill="#fff"
|
|
15
|
+
d="M17.67 25.519h6.038l9.541-8.784a2.34 2.34 0 0 0 0-3.432l-9.541-8.784H17.67a.452.452 0 0 0-.43.296.46.46 0 0 0 .12.51l10.22 9.41a.389.389 0 0 1 0 .57l-10.22 9.41a.46.46 0 0 0-.12.51.452.452 0 0 0 .43.296v-.002Z"
|
|
16
|
+
/>
|
|
17
|
+
<Path
|
|
18
|
+
fill="#fff"
|
|
19
|
+
d="m19.509 8.922-4.758 4.38a2.34 2.34 0 0 0 0 3.433l4.758 4.38 3.611-3.325-2.701-2.487a.388.388 0 0 1 0-.57l2.701-2.487-3.611-3.324ZM30.33 4.519h-4.862l3.023 2.783 2.148-1.977a.46.46 0 0 0 .12-.51.452.452 0 0 0-.43-.296ZM28.491 22.736l-3.023 2.783h4.861a.453.453 0 0 0 .43-.296.46.46 0 0 0-.12-.51l-2.148-1.977Z"
|
|
20
|
+
/>
|
|
21
|
+
</Svg>
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
export default LogoPaymentExtSatispay;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Svg, Path, Rect } from "react-native-svg";
|
|
3
|
+
import { SVGLogoProps } from "../types";
|
|
4
|
+
|
|
5
|
+
const LogoPaymentSatispay = ({ size }: SVGLogoProps) => (
|
|
6
|
+
<Svg width={size} height={size} viewBox="0 0 24 24">
|
|
7
|
+
<Rect width="24" height="24" y="0" fill="#FF3D00" rx="4" />
|
|
8
|
+
<Path
|
|
9
|
+
fill="#fff"
|
|
10
|
+
d="M7.57 20h4.226l6.678-6.274c.334-.314.526-.761.526-1.226 0-.465-.191-.912-.526-1.226L11.796 5H7.569a.317.317 0 0 0-.3.212.333.333 0 0 0 .083.364l7.154 6.721a.28.28 0 0 1 0 .407l-7.154 6.721a.333.333 0 0 0-.083.365.317.317 0 0 0 .3.211V20Z"
|
|
11
|
+
/>
|
|
12
|
+
<Path
|
|
13
|
+
fill="#fff"
|
|
14
|
+
d="m8.856 8.145-3.33 3.13c-.334.313-.526.76-.526 1.225 0 .465.191.912.526 1.226l3.33 3.128 2.528-2.375-1.89-1.776a.28.28 0 0 1 0-.407l1.89-1.776-2.528-2.375ZM16.43 5h-3.402l2.116 1.988 1.504-1.412a.333.333 0 0 0 .083-.365.317.317 0 0 0-.3-.212V5ZM15.144 18.012 13.028 20h3.403c.162 0 .26-.11.3-.212a.333.333 0 0 0-.083-.364l-1.504-1.413v.001Z"
|
|
15
|
+
/>
|
|
16
|
+
</Svg>
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export default LogoPaymentSatispay;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 48 30">
|
|
2
|
+
<path
|
|
3
|
+
fill="#FF3D00"
|
|
4
|
+
fill-rule="evenodd"
|
|
5
|
+
d="M0 3a3 3 0 0 1 3-3h42a3 3 0 0 1 3 3v24a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3Z"
|
|
6
|
+
clip-rule="evenodd"
|
|
7
|
+
/>
|
|
8
|
+
<path
|
|
9
|
+
fill="#fff"
|
|
10
|
+
d="M17.67 25.519h6.038l9.541-8.784a2.34 2.34 0 0 0 0-3.432l-9.541-8.784H17.67a.452.452 0 0 0-.43.296.46.46 0 0 0 .12.51l10.22 9.41a.389.389 0 0 1 0 .57l-10.22 9.41a.46.46 0 0 0-.12.51.452.452 0 0 0 .43.296v-.002Z"
|
|
11
|
+
/>
|
|
12
|
+
<path
|
|
13
|
+
fill="#fff"
|
|
14
|
+
d="m19.509 8.922-4.758 4.38a2.34 2.34 0 0 0 0 3.433l4.758 4.38 3.611-3.325-2.701-2.487a.388.388 0 0 1 0-.57l2.701-2.487-3.611-3.324ZM30.33 4.519h-4.862l3.023 2.783 2.148-1.977a.46.46 0 0 0 .12-.51.452.452 0 0 0-.43-.296ZM28.491 22.736l-3.023 2.783h4.861a.453.453 0 0 0 .43-.296.46.46 0 0 0-.12-.51l-2.148-1.977Z"
|
|
15
|
+
/>
|
|
16
|
+
</svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
2
|
+
<rect width="24" height="24" y="0" fill="#FF3D00" rx="4" />
|
|
3
|
+
<path
|
|
4
|
+
fill="#fff"
|
|
5
|
+
d="M7.57 20h4.226l6.678-6.274c.334-.314.526-.761.526-1.226 0-.465-.191-.912-.526-1.226L11.796 5H7.569a.317.317 0 0 0-.3.212.333.333 0 0 0 .083.364l7.154 6.721a.28.28 0 0 1 0 .407l-7.154 6.721a.333.333 0 0 0-.083.365.317.317 0 0 0 .3.211V20Z"
|
|
6
|
+
/>
|
|
7
|
+
<path
|
|
8
|
+
fill="#fff"
|
|
9
|
+
d="m8.856 8.145-3.33 3.13c-.334.313-.526.76-.526 1.225 0 .465.191.912.526 1.226l3.33 3.128 2.528-2.375-1.89-1.776a.28.28 0 0 1 0-.407l1.89-1.776-2.528-2.375ZM16.43 5h-3.402l2.116 1.988 1.504-1.412a.333.333 0 0 0 .083-.365.317.317 0 0 0-.3-.212V5ZM15.144 18.012 13.028 20h3.403c.162 0 .26-.11.3-.212a.333.333 0 0 0-.083-.364l-1.504-1.413v.001Z"
|
|
10
|
+
/>
|
|
11
|
+
</svg>
|
|
@@ -13,7 +13,7 @@ type H4Props = ExternalTypographyProps<
|
|
|
13
13
|
>;
|
|
14
14
|
|
|
15
15
|
export const h4FontSize = 20;
|
|
16
|
-
export const h4LineHeight =
|
|
16
|
+
export const h4LineHeight = 24;
|
|
17
17
|
const font: FontFamily = "ReadexPro";
|
|
18
18
|
const defaultColor: AllowedColors = "black";
|
|
19
19
|
const defaultWeight: AllowedWeight = "Regular";
|
|
@@ -371,14 +371,14 @@ exports[`Test Typography Components H4 Snapshot 1`] = `
|
|
|
371
371
|
fontStyle={
|
|
372
372
|
{
|
|
373
373
|
"fontSize": 22,
|
|
374
|
-
"lineHeight":
|
|
374
|
+
"lineHeight": 24,
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
style={
|
|
378
378
|
[
|
|
379
379
|
{
|
|
380
380
|
"fontSize": 22,
|
|
381
|
-
"lineHeight":
|
|
381
|
+
"lineHeight": 24,
|
|
382
382
|
},
|
|
383
383
|
{
|
|
384
384
|
"color": "#17324D",
|
|
@@ -404,14 +404,14 @@ exports[`Test Typography Components H4 Snapshot 2`] = `
|
|
|
404
404
|
fontStyle={
|
|
405
405
|
{
|
|
406
406
|
"fontSize": 22,
|
|
407
|
-
"lineHeight":
|
|
407
|
+
"lineHeight": 24,
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
410
|
style={
|
|
411
411
|
[
|
|
412
412
|
{
|
|
413
413
|
"fontSize": 22,
|
|
414
|
-
"lineHeight":
|
|
414
|
+
"lineHeight": 24,
|
|
415
415
|
},
|
|
416
416
|
{
|
|
417
417
|
"color": "#0073E6",
|
|
@@ -437,14 +437,14 @@ exports[`Test Typography Components H4 Snapshot 3`] = `
|
|
|
437
437
|
fontStyle={
|
|
438
438
|
{
|
|
439
439
|
"fontSize": 22,
|
|
440
|
-
"lineHeight":
|
|
440
|
+
"lineHeight": 24,
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
443
|
style={
|
|
444
444
|
[
|
|
445
445
|
{
|
|
446
446
|
"fontSize": 22,
|
|
447
|
-
"lineHeight":
|
|
447
|
+
"lineHeight": 24,
|
|
448
448
|
},
|
|
449
449
|
{
|
|
450
450
|
"color": "#FFFFFF",
|
|
@@ -470,14 +470,14 @@ exports[`Test Typography Components H4 Snapshot 4`] = `
|
|
|
470
470
|
fontStyle={
|
|
471
471
|
{
|
|
472
472
|
"fontSize": 22,
|
|
473
|
-
"lineHeight":
|
|
473
|
+
"lineHeight": 24,
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
style={
|
|
477
477
|
[
|
|
478
478
|
{
|
|
479
479
|
"fontSize": 22,
|
|
480
|
-
"lineHeight":
|
|
480
|
+
"lineHeight": 24,
|
|
481
481
|
},
|
|
482
482
|
{
|
|
483
483
|
"color": "#17324D",
|
|
@@ -503,14 +503,14 @@ exports[`Test Typography Components H4 Snapshot 5`] = `
|
|
|
503
503
|
fontStyle={
|
|
504
504
|
{
|
|
505
505
|
"fontSize": 22,
|
|
506
|
-
"lineHeight":
|
|
506
|
+
"lineHeight": 24,
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
style={
|
|
510
510
|
[
|
|
511
511
|
{
|
|
512
512
|
"fontSize": 22,
|
|
513
|
-
"lineHeight":
|
|
513
|
+
"lineHeight": 24,
|
|
514
514
|
},
|
|
515
515
|
{
|
|
516
516
|
"color": "#475A6D",
|
|
@@ -536,14 +536,14 @@ exports[`Test Typography Components H4 Snapshot 6`] = `
|
|
|
536
536
|
fontStyle={
|
|
537
537
|
{
|
|
538
538
|
"fontSize": 22,
|
|
539
|
-
"lineHeight":
|
|
539
|
+
"lineHeight": 24,
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
style={
|
|
543
543
|
[
|
|
544
544
|
{
|
|
545
545
|
"fontSize": 22,
|
|
546
|
-
"lineHeight":
|
|
546
|
+
"lineHeight": 24,
|
|
547
547
|
},
|
|
548
548
|
{
|
|
549
549
|
"color": "#CCD4DC",
|
|
@@ -569,14 +569,14 @@ exports[`Test Typography Components H4 Snapshot 7`] = `
|
|
|
569
569
|
fontStyle={
|
|
570
570
|
{
|
|
571
571
|
"fontSize": 22,
|
|
572
|
-
"lineHeight":
|
|
572
|
+
"lineHeight": 24,
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
style={
|
|
576
576
|
[
|
|
577
577
|
{
|
|
578
578
|
"fontSize": 22,
|
|
579
|
-
"lineHeight":
|
|
579
|
+
"lineHeight": 24,
|
|
580
580
|
},
|
|
581
581
|
{
|
|
582
582
|
"color": "#FFFFFF",
|
|
@@ -17,3 +17,9 @@ export * from "./LabelSmallAlt";
|
|
|
17
17
|
export * from "./LabelLink";
|
|
18
18
|
export * from "./BodyMonospace";
|
|
19
19
|
export * from "./common";
|
|
20
|
+
export * from "./markdown/MdH1";
|
|
21
|
+
export * from "./markdown/MdH2";
|
|
22
|
+
export * from "./markdown/MdH3";
|
|
23
|
+
export * from "./markdown/MdH4";
|
|
24
|
+
export * from "./markdown/MdH5";
|
|
25
|
+
export * from "./markdown/MdH6";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IOColors, IOTheme } from "../../../core";
|
|
2
|
+
import { FontFamily, IOFontWeight } from "../../../utils/fonts";
|
|
3
|
+
import { ExternalTypographyProps, TypographyProps } from "../common";
|
|
4
|
+
import { useTypographyFactory } from "../Factory";
|
|
5
|
+
|
|
6
|
+
type AllowedColors = Extract<IOTheme, "textHeading-default"> | IOColors;
|
|
7
|
+
type AllowedWeight = Extract<IOFontWeight, "Regular">;
|
|
8
|
+
|
|
9
|
+
type MdH1Props = ExternalTypographyProps<
|
|
10
|
+
TypographyProps<AllowedWeight, AllowedColors>
|
|
11
|
+
>;
|
|
12
|
+
|
|
13
|
+
const fontSize = 20;
|
|
14
|
+
const lineHeight = 24;
|
|
15
|
+
const font: FontFamily = "ReadexPro";
|
|
16
|
+
const defaultColor: AllowedColors = "black";
|
|
17
|
+
const defaultWeight: AllowedWeight = "Regular";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* `MdH1` typographic style
|
|
21
|
+
*/
|
|
22
|
+
export const MdH1 = (props: MdH1Props) =>
|
|
23
|
+
useTypographyFactory<AllowedWeight, AllowedColors>({
|
|
24
|
+
...props,
|
|
25
|
+
defaultWeight,
|
|
26
|
+
defaultColor,
|
|
27
|
+
font,
|
|
28
|
+
fontStyle: {
|
|
29
|
+
fontSize,
|
|
30
|
+
lineHeight
|
|
31
|
+
}
|
|
32
|
+
});
|