@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.
Files changed (147) hide show
  1. package/lib/commonjs/components/layout/GradientBottomActions.js +5 -0
  2. package/lib/commonjs/components/layout/GradientBottomActions.js.map +1 -1
  3. package/lib/commonjs/components/layout/GradientScrollView.js +5 -0
  4. package/lib/commonjs/components/layout/GradientScrollView.js.map +1 -1
  5. package/lib/commonjs/components/layout/index.js +36 -36
  6. package/lib/commonjs/components/layout/index.js.map +1 -1
  7. package/lib/commonjs/components/listitems/ListItemHeader.js +1 -0
  8. package/lib/commonjs/components/listitems/ListItemHeader.js.map +1 -1
  9. package/lib/commonjs/components/listitems/ListItemInfo.js +10 -0
  10. package/lib/commonjs/components/listitems/ListItemInfo.js.map +1 -1
  11. package/lib/commonjs/components/logos/LogoPayment.js +12 -10
  12. package/lib/commonjs/components/logos/LogoPayment.js.map +1 -1
  13. package/lib/commonjs/components/logos/LogoPaymentExt.js +12 -10
  14. package/lib/commonjs/components/logos/LogoPaymentExt.js.map +1 -1
  15. package/lib/commonjs/components/logos/svg/LogoPaymentExtSatispay.js +33 -0
  16. package/lib/commonjs/components/logos/svg/LogoPaymentExtSatispay.js.map +1 -0
  17. package/lib/commonjs/components/logos/svg/LogoPaymentSatispay.js +34 -0
  18. package/lib/commonjs/components/logos/svg/LogoPaymentSatispay.js.map +1 -0
  19. package/lib/commonjs/components/logos/svg/originals/LogoPaymentExtSatispay.svg +16 -0
  20. package/lib/commonjs/components/logos/svg/originals/LogoPaymentSatispay.svg +11 -0
  21. package/lib/commonjs/components/typography/H4.js +1 -1
  22. package/lib/commonjs/components/typography/__test__/__snapshots__/typography.test.tsx.snap +14 -14
  23. package/lib/commonjs/components/typography/index.js +66 -0
  24. package/lib/commonjs/components/typography/index.js.map +1 -1
  25. package/lib/commonjs/components/typography/markdown/MdH1.js +28 -0
  26. package/lib/commonjs/components/typography/markdown/MdH1.js.map +1 -0
  27. package/lib/commonjs/components/typography/markdown/MdH2.js +28 -0
  28. package/lib/commonjs/components/typography/markdown/MdH2.js.map +1 -0
  29. package/lib/commonjs/components/typography/markdown/MdH3.js +28 -0
  30. package/lib/commonjs/components/typography/markdown/MdH3.js.map +1 -0
  31. package/lib/commonjs/components/typography/markdown/MdH4.js +30 -0
  32. package/lib/commonjs/components/typography/markdown/MdH4.js.map +1 -0
  33. package/lib/commonjs/components/typography/markdown/MdH5.js +28 -0
  34. package/lib/commonjs/components/typography/markdown/MdH5.js.map +1 -0
  35. package/lib/commonjs/components/typography/markdown/MdH6.js +29 -0
  36. package/lib/commonjs/components/typography/markdown/MdH6.js.map +1 -0
  37. package/lib/commonjs/core/IOColors.js +0 -13
  38. package/lib/commonjs/core/IOColors.js.map +1 -1
  39. package/lib/module/components/layout/GradientBottomActions.js +5 -0
  40. package/lib/module/components/layout/GradientBottomActions.js.map +1 -1
  41. package/lib/module/components/layout/GradientScrollView.js +5 -0
  42. package/lib/module/components/layout/GradientScrollView.js.map +1 -1
  43. package/lib/module/components/layout/index.js +5 -5
  44. package/lib/module/components/layout/index.js.map +1 -1
  45. package/lib/module/components/listitems/ListItemHeader.js +1 -0
  46. package/lib/module/components/listitems/ListItemHeader.js.map +1 -1
  47. package/lib/module/components/listitems/ListItemInfo.js +10 -0
  48. package/lib/module/components/listitems/ListItemInfo.js.map +1 -1
  49. package/lib/module/components/logos/LogoPayment.js +12 -10
  50. package/lib/module/components/logos/LogoPayment.js.map +1 -1
  51. package/lib/module/components/logos/LogoPaymentExt.js +12 -10
  52. package/lib/module/components/logos/LogoPaymentExt.js.map +1 -1
  53. package/lib/module/components/logos/svg/LogoPaymentExtSatispay.js +25 -0
  54. package/lib/module/components/logos/svg/LogoPaymentExtSatispay.js.map +1 -0
  55. package/lib/module/components/logos/svg/LogoPaymentSatispay.js +26 -0
  56. package/lib/module/components/logos/svg/LogoPaymentSatispay.js.map +1 -0
  57. package/lib/module/components/logos/svg/originals/LogoPaymentExtSatispay.svg +16 -0
  58. package/lib/module/components/logos/svg/originals/LogoPaymentSatispay.svg +11 -0
  59. package/lib/module/components/typography/H4.js +1 -1
  60. package/lib/module/components/typography/__test__/__snapshots__/typography.test.tsx.snap +14 -14
  61. package/lib/module/components/typography/index.js +6 -0
  62. package/lib/module/components/typography/index.js.map +1 -1
  63. package/lib/module/components/typography/markdown/MdH1.js +21 -0
  64. package/lib/module/components/typography/markdown/MdH1.js.map +1 -0
  65. package/lib/module/components/typography/markdown/MdH2.js +21 -0
  66. package/lib/module/components/typography/markdown/MdH2.js.map +1 -0
  67. package/lib/module/components/typography/markdown/MdH3.js +21 -0
  68. package/lib/module/components/typography/markdown/MdH3.js.map +1 -0
  69. package/lib/module/components/typography/markdown/MdH4.js +23 -0
  70. package/lib/module/components/typography/markdown/MdH4.js.map +1 -0
  71. package/lib/module/components/typography/markdown/MdH5.js +21 -0
  72. package/lib/module/components/typography/markdown/MdH5.js.map +1 -0
  73. package/lib/module/components/typography/markdown/MdH6.js +22 -0
  74. package/lib/module/components/typography/markdown/MdH6.js.map +1 -0
  75. package/lib/module/core/IOColors.js +0 -13
  76. package/lib/module/core/IOColors.js.map +1 -1
  77. package/lib/typescript/components/buttons/ButtonLink.d.ts +1 -1
  78. package/lib/typescript/components/buttons/ButtonLink.d.ts.map +1 -1
  79. package/lib/typescript/components/buttons/ButtonOutline.d.ts +2 -2
  80. package/lib/typescript/components/buttons/ButtonOutline.d.ts.map +1 -1
  81. package/lib/typescript/components/buttons/ButtonSolid.d.ts +2 -2
  82. package/lib/typescript/components/buttons/ButtonSolid.d.ts.map +1 -1
  83. package/lib/typescript/components/layout/GradientBottomActions.d.ts +4 -0
  84. package/lib/typescript/components/layout/GradientBottomActions.d.ts.map +1 -1
  85. package/lib/typescript/components/layout/GradientScrollView.d.ts +4 -0
  86. package/lib/typescript/components/layout/GradientScrollView.d.ts.map +1 -1
  87. package/lib/typescript/components/layout/index.d.ts +5 -5
  88. package/lib/typescript/components/layout/index.d.ts.map +1 -1
  89. package/lib/typescript/components/listitems/ListItemInfo.d.ts +9 -3
  90. package/lib/typescript/components/listitems/ListItemInfo.d.ts.map +1 -1
  91. package/lib/typescript/components/logos/LogoPayment.d.ts +2 -1
  92. package/lib/typescript/components/logos/LogoPayment.d.ts.map +1 -1
  93. package/lib/typescript/components/logos/LogoPaymentExt.d.ts +1 -0
  94. package/lib/typescript/components/logos/LogoPaymentExt.d.ts.map +1 -1
  95. package/lib/typescript/components/logos/svg/LogoPaymentExtSatispay.d.ts +5 -0
  96. package/lib/typescript/components/logos/svg/LogoPaymentExtSatispay.d.ts.map +1 -0
  97. package/lib/typescript/components/logos/svg/LogoPaymentSatispay.d.ts +5 -0
  98. package/lib/typescript/components/logos/svg/LogoPaymentSatispay.d.ts.map +1 -0
  99. package/lib/typescript/components/radio/RadioGroup.d.ts.map +1 -1
  100. package/lib/typescript/components/typography/ButtonText.d.ts +1 -1
  101. package/lib/typescript/components/typography/Caption.d.ts +1 -1
  102. package/lib/typescript/components/typography/Chip.d.ts +1 -1
  103. package/lib/typescript/components/typography/H1.d.ts +1 -1
  104. package/lib/typescript/components/typography/H2.d.ts +1 -1
  105. package/lib/typescript/components/typography/H3.d.ts +1 -1
  106. package/lib/typescript/components/typography/H4.d.ts +2 -2
  107. package/lib/typescript/components/typography/H5.d.ts +1 -1
  108. package/lib/typescript/components/typography/Hero.d.ts +1 -1
  109. package/lib/typescript/components/typography/index.d.ts +6 -0
  110. package/lib/typescript/components/typography/index.d.ts.map +1 -1
  111. package/lib/typescript/components/typography/markdown/MdH1.d.ts +13 -0
  112. package/lib/typescript/components/typography/markdown/MdH1.d.ts.map +1 -0
  113. package/lib/typescript/components/typography/markdown/MdH2.d.ts +13 -0
  114. package/lib/typescript/components/typography/markdown/MdH2.d.ts.map +1 -0
  115. package/lib/typescript/components/typography/markdown/MdH3.d.ts +13 -0
  116. package/lib/typescript/components/typography/markdown/MdH3.d.ts.map +1 -0
  117. package/lib/typescript/components/typography/markdown/MdH4.d.ts +13 -0
  118. package/lib/typescript/components/typography/markdown/MdH4.d.ts.map +1 -0
  119. package/lib/typescript/components/typography/markdown/MdH5.d.ts +13 -0
  120. package/lib/typescript/components/typography/markdown/MdH5.d.ts.map +1 -0
  121. package/lib/typescript/components/typography/markdown/MdH6.d.ts +13 -0
  122. package/lib/typescript/components/typography/markdown/MdH6.d.ts.map +1 -0
  123. package/lib/typescript/core/IOColors.d.ts +0 -9
  124. package/lib/typescript/core/IOColors.d.ts.map +1 -1
  125. package/lib/typescript/utils/object.d.ts.map +1 -1
  126. package/package.json +2 -2
  127. package/src/components/layout/GradientBottomActions.tsx +4 -0
  128. package/src/components/layout/GradientScrollView.tsx +4 -0
  129. package/src/components/layout/index.tsx +5 -5
  130. package/src/components/listitems/ListItemHeader.tsx +1 -1
  131. package/src/components/listitems/ListItemInfo.tsx +25 -3
  132. package/src/components/logos/LogoPayment.tsx +12 -10
  133. package/src/components/logos/LogoPaymentExt.tsx +12 -10
  134. package/src/components/logos/svg/LogoPaymentExtSatispay.tsx +24 -0
  135. package/src/components/logos/svg/LogoPaymentSatispay.tsx +19 -0
  136. package/src/components/logos/svg/originals/LogoPaymentExtSatispay.svg +16 -0
  137. package/src/components/logos/svg/originals/LogoPaymentSatispay.svg +11 -0
  138. package/src/components/typography/H4.tsx +1 -1
  139. package/src/components/typography/__test__/__snapshots__/typography.test.tsx.snap +14 -14
  140. package/src/components/typography/index.tsx +6 -0
  141. package/src/components/typography/markdown/MdH1.tsx +32 -0
  142. package/src/components/typography/markdown/MdH2.tsx +32 -0
  143. package/src/components/typography/markdown/MdH3.tsx +32 -0
  144. package/src/components/typography/markdown/MdH4.tsx +34 -0
  145. package/src/components/typography/markdown/MdH5.tsx +32 -0
  146. package/src/components/typography/markdown/MdH6.tsx +33 -0
  147. 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
+ });
@@ -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"],