@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,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, "SemiBold">;
|
|
8
|
+
|
|
9
|
+
type MdH2Props = ExternalTypographyProps<
|
|
10
|
+
TypographyProps<AllowedWeight, AllowedColors>
|
|
11
|
+
>;
|
|
12
|
+
|
|
13
|
+
const fontSize = 16;
|
|
14
|
+
const lineHeight = 24;
|
|
15
|
+
const font: FontFamily = "ReadexPro";
|
|
16
|
+
const defaultColor: AllowedColors = "black";
|
|
17
|
+
const defaultWeight: AllowedWeight = "SemiBold";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* `MdH2` typographic style
|
|
21
|
+
*/
|
|
22
|
+
export const MdH2 = (props: MdH2Props) =>
|
|
23
|
+
useTypographyFactory<AllowedWeight, AllowedColors>({
|
|
24
|
+
...props,
|
|
25
|
+
defaultWeight,
|
|
26
|
+
defaultColor,
|
|
27
|
+
font,
|
|
28
|
+
fontStyle: {
|
|
29
|
+
fontSize,
|
|
30
|
+
lineHeight
|
|
31
|
+
}
|
|
32
|
+
});
|
|
@@ -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 MdH3Props = ExternalTypographyProps<
|
|
10
|
+
TypographyProps<AllowedWeight, AllowedColors>
|
|
11
|
+
>;
|
|
12
|
+
|
|
13
|
+
const fontSize = 16;
|
|
14
|
+
const lineHeight = 24;
|
|
15
|
+
const font: FontFamily = "ReadexPro";
|
|
16
|
+
const defaultColor: AllowedColors = "black";
|
|
17
|
+
const defaultWeight: AllowedWeight = "Regular";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* `MdH3` typographic style
|
|
21
|
+
*/
|
|
22
|
+
export const MdH3 = (props: MdH3Props) =>
|
|
23
|
+
useTypographyFactory<AllowedWeight, AllowedColors>({
|
|
24
|
+
...props,
|
|
25
|
+
defaultWeight,
|
|
26
|
+
defaultColor,
|
|
27
|
+
font,
|
|
28
|
+
fontStyle: {
|
|
29
|
+
fontSize,
|
|
30
|
+
lineHeight
|
|
31
|
+
}
|
|
32
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
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, "SemiBold">;
|
|
8
|
+
|
|
9
|
+
type MdH4Props = ExternalTypographyProps<
|
|
10
|
+
TypographyProps<AllowedWeight, AllowedColors>
|
|
11
|
+
>;
|
|
12
|
+
|
|
13
|
+
const fontSize = 14;
|
|
14
|
+
const lineHeight = 24;
|
|
15
|
+
const font: FontFamily = "TitilliumSansPro";
|
|
16
|
+
const defaultColor: AllowedColors = "grey-700";
|
|
17
|
+
const defaultWeight: AllowedWeight = "SemiBold";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* `MdH4` typographic style
|
|
21
|
+
*/
|
|
22
|
+
export const MdH4 = (props: MdH4Props) =>
|
|
23
|
+
useTypographyFactory<AllowedWeight, AllowedColors>({
|
|
24
|
+
...props,
|
|
25
|
+
defaultWeight,
|
|
26
|
+
defaultColor,
|
|
27
|
+
font,
|
|
28
|
+
fontStyle: {
|
|
29
|
+
fontSize,
|
|
30
|
+
textTransform: "uppercase",
|
|
31
|
+
letterSpacing: 0.5,
|
|
32
|
+
lineHeight
|
|
33
|
+
}
|
|
34
|
+
});
|
|
@@ -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 MdH5Props = ExternalTypographyProps<
|
|
10
|
+
TypographyProps<AllowedWeight, AllowedColors>
|
|
11
|
+
>;
|
|
12
|
+
|
|
13
|
+
const fontSize = 12;
|
|
14
|
+
const lineHeight = 16;
|
|
15
|
+
const font: FontFamily = "ReadexPro";
|
|
16
|
+
const defaultColor: AllowedColors = "grey-850";
|
|
17
|
+
const defaultWeight: AllowedWeight = "Regular";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* `MdH5` typographic style
|
|
21
|
+
*/
|
|
22
|
+
export const MdH5 = (props: MdH5Props) =>
|
|
23
|
+
useTypographyFactory<AllowedWeight, AllowedColors>({
|
|
24
|
+
...props,
|
|
25
|
+
defaultWeight,
|
|
26
|
+
defaultColor,
|
|
27
|
+
font,
|
|
28
|
+
fontStyle: {
|
|
29
|
+
fontSize,
|
|
30
|
+
lineHeight
|
|
31
|
+
}
|
|
32
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
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 MdH6Props = ExternalTypographyProps<
|
|
10
|
+
TypographyProps<AllowedWeight, AllowedColors>
|
|
11
|
+
>;
|
|
12
|
+
|
|
13
|
+
const fontSize = 10;
|
|
14
|
+
const lineHeight = 14;
|
|
15
|
+
const font: FontFamily = "ReadexPro";
|
|
16
|
+
const defaultColor: AllowedColors = "grey-700";
|
|
17
|
+
const defaultWeight: AllowedWeight = "Regular";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* `MdH5` typographic style
|
|
21
|
+
*/
|
|
22
|
+
export const MdH6 = (props: MdH6Props) =>
|
|
23
|
+
useTypographyFactory<AllowedWeight, AllowedColors>({
|
|
24
|
+
...props,
|
|
25
|
+
defaultWeight,
|
|
26
|
+
defaultColor,
|
|
27
|
+
font,
|
|
28
|
+
fontStyle: {
|
|
29
|
+
fontSize,
|
|
30
|
+
lineHeight,
|
|
31
|
+
letterSpacing: 0.5
|
|
32
|
+
}
|
|
33
|
+
});
|
package/src/core/IOColors.ts
CHANGED
|
@@ -76,7 +76,6 @@ export const IOColors = asIOColors({
|
|
|
76
76
|
"info-500": "#6BCFFB",
|
|
77
77
|
"info-400": "#89D9FC" /* Dark mode */,
|
|
78
78
|
"info-100": "#E1F5FE",
|
|
79
|
-
cobalt: "#2C489D" /* used in the `Bonus Vacanze` only */,
|
|
80
79
|
"blueItalia-850": "#001F3D",
|
|
81
80
|
"blueItalia-600": "#0052A3",
|
|
82
81
|
"blueItalia-500": "#0066CC" /* pagoPA service */,
|
|
@@ -90,16 +89,13 @@ export const IOColors = asIOColors({
|
|
|
90
89
|
greyLight: "#E6E9F2",
|
|
91
90
|
bluegreyLight: "#CCD4DC",
|
|
92
91
|
grey: "#909DA8",
|
|
93
|
-
milderGray: "#5F6F80",
|
|
94
92
|
bluegrey: "#475A6D",
|
|
95
93
|
bluegreyDark: "#17324D",
|
|
96
|
-
noCieButton: "#789CCD" /* Half-disabled noCIE CTA BG, LandingScreen.tsx */,
|
|
97
94
|
blue: "#0073E6",
|
|
98
95
|
blueUltraLight: "#99CCFF" /* Almost deprecated, avoid if possible */,
|
|
99
96
|
aqua: "#00C5CA",
|
|
100
97
|
aquaUltraLight: "#C1F4F2",
|
|
101
98
|
antiqueFuchsia: "#9B5897" /* used in the CgnDiscountValueBox only */,
|
|
102
|
-
yellow: "#FFC824" /* Almost deprecated, used in `PaymentHistoryList` only */,
|
|
103
99
|
orange: "#EA7614",
|
|
104
100
|
red: "#C02927",
|
|
105
101
|
green: "#005C3C",
|
|
@@ -145,18 +141,14 @@ const {
|
|
|
145
141
|
greyLight,
|
|
146
142
|
bluegreyLight,
|
|
147
143
|
grey,
|
|
148
|
-
milderGray,
|
|
149
144
|
bluegrey,
|
|
150
145
|
bluegreyDark,
|
|
151
146
|
black,
|
|
152
|
-
noCieButton,
|
|
153
147
|
blue,
|
|
154
148
|
blueUltraLight,
|
|
155
149
|
aqua,
|
|
156
150
|
aquaUltraLight,
|
|
157
|
-
cobalt,
|
|
158
151
|
antiqueFuchsia,
|
|
159
|
-
yellow,
|
|
160
152
|
orange,
|
|
161
153
|
red,
|
|
162
154
|
green,
|
|
@@ -169,18 +161,14 @@ export const IOColorsLegacy = {
|
|
|
169
161
|
greyLight,
|
|
170
162
|
bluegreyLight,
|
|
171
163
|
grey,
|
|
172
|
-
milderGray,
|
|
173
164
|
bluegrey,
|
|
174
165
|
bluegreyDark,
|
|
175
166
|
black,
|
|
176
|
-
noCieButton,
|
|
177
167
|
blue,
|
|
178
168
|
blueUltraLight,
|
|
179
169
|
aqua,
|
|
180
170
|
aquaUltraLight,
|
|
181
|
-
cobalt,
|
|
182
171
|
antiqueFuchsia,
|
|
183
|
-
yellow,
|
|
184
172
|
orange,
|
|
185
173
|
red,
|
|
186
174
|
green,
|
|
@@ -254,7 +242,6 @@ export type IOColorsStatusBackground = Extract<
|
|
|
254
242
|
>;
|
|
255
243
|
|
|
256
244
|
export const IOColorsExtra = {
|
|
257
|
-
cobalt: IOColors.cobalt,
|
|
258
245
|
"blueItalia-850": IOColors["blueItalia-850"],
|
|
259
246
|
"blueItalia-600": IOColors["blueItalia-600"],
|
|
260
247
|
"blueItalia-500": IOColors["blueItalia-500"],
|