@pagopa/io-app-design-system 1.36.13 → 1.36.14

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 (101) 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/typography/H4.js +1 -1
  8. package/lib/commonjs/components/typography/__test__/__snapshots__/typography.test.tsx.snap +14 -14
  9. package/lib/commonjs/components/typography/index.js +66 -0
  10. package/lib/commonjs/components/typography/index.js.map +1 -1
  11. package/lib/commonjs/components/typography/markdown/MdH1.js +28 -0
  12. package/lib/commonjs/components/typography/markdown/MdH1.js.map +1 -0
  13. package/lib/commonjs/components/typography/markdown/MdH2.js +28 -0
  14. package/lib/commonjs/components/typography/markdown/MdH2.js.map +1 -0
  15. package/lib/commonjs/components/typography/markdown/MdH3.js +28 -0
  16. package/lib/commonjs/components/typography/markdown/MdH3.js.map +1 -0
  17. package/lib/commonjs/components/typography/markdown/MdH4.js +30 -0
  18. package/lib/commonjs/components/typography/markdown/MdH4.js.map +1 -0
  19. package/lib/commonjs/components/typography/markdown/MdH5.js +28 -0
  20. package/lib/commonjs/components/typography/markdown/MdH5.js.map +1 -0
  21. package/lib/commonjs/components/typography/markdown/MdH6.js +29 -0
  22. package/lib/commonjs/components/typography/markdown/MdH6.js.map +1 -0
  23. package/lib/commonjs/core/IOColors.js +0 -13
  24. package/lib/commonjs/core/IOColors.js.map +1 -1
  25. package/lib/module/components/layout/GradientBottomActions.js +5 -0
  26. package/lib/module/components/layout/GradientBottomActions.js.map +1 -1
  27. package/lib/module/components/layout/GradientScrollView.js +5 -0
  28. package/lib/module/components/layout/GradientScrollView.js.map +1 -1
  29. package/lib/module/components/layout/index.js +5 -5
  30. package/lib/module/components/layout/index.js.map +1 -1
  31. package/lib/module/components/typography/H4.js +1 -1
  32. package/lib/module/components/typography/__test__/__snapshots__/typography.test.tsx.snap +14 -14
  33. package/lib/module/components/typography/index.js +6 -0
  34. package/lib/module/components/typography/index.js.map +1 -1
  35. package/lib/module/components/typography/markdown/MdH1.js +21 -0
  36. package/lib/module/components/typography/markdown/MdH1.js.map +1 -0
  37. package/lib/module/components/typography/markdown/MdH2.js +21 -0
  38. package/lib/module/components/typography/markdown/MdH2.js.map +1 -0
  39. package/lib/module/components/typography/markdown/MdH3.js +21 -0
  40. package/lib/module/components/typography/markdown/MdH3.js.map +1 -0
  41. package/lib/module/components/typography/markdown/MdH4.js +23 -0
  42. package/lib/module/components/typography/markdown/MdH4.js.map +1 -0
  43. package/lib/module/components/typography/markdown/MdH5.js +21 -0
  44. package/lib/module/components/typography/markdown/MdH5.js.map +1 -0
  45. package/lib/module/components/typography/markdown/MdH6.js +22 -0
  46. package/lib/module/components/typography/markdown/MdH6.js.map +1 -0
  47. package/lib/module/core/IOColors.js +0 -13
  48. package/lib/module/core/IOColors.js.map +1 -1
  49. package/lib/typescript/components/buttons/ButtonLink.d.ts +1 -1
  50. package/lib/typescript/components/buttons/ButtonLink.d.ts.map +1 -1
  51. package/lib/typescript/components/buttons/ButtonOutline.d.ts +2 -2
  52. package/lib/typescript/components/buttons/ButtonOutline.d.ts.map +1 -1
  53. package/lib/typescript/components/buttons/ButtonSolid.d.ts +2 -2
  54. package/lib/typescript/components/buttons/ButtonSolid.d.ts.map +1 -1
  55. package/lib/typescript/components/layout/GradientBottomActions.d.ts +4 -0
  56. package/lib/typescript/components/layout/GradientBottomActions.d.ts.map +1 -1
  57. package/lib/typescript/components/layout/GradientScrollView.d.ts +4 -0
  58. package/lib/typescript/components/layout/GradientScrollView.d.ts.map +1 -1
  59. package/lib/typescript/components/layout/index.d.ts +5 -5
  60. package/lib/typescript/components/layout/index.d.ts.map +1 -1
  61. package/lib/typescript/components/radio/RadioGroup.d.ts.map +1 -1
  62. package/lib/typescript/components/typography/ButtonText.d.ts +1 -1
  63. package/lib/typescript/components/typography/Caption.d.ts +1 -1
  64. package/lib/typescript/components/typography/Chip.d.ts +1 -1
  65. package/lib/typescript/components/typography/H1.d.ts +1 -1
  66. package/lib/typescript/components/typography/H2.d.ts +1 -1
  67. package/lib/typescript/components/typography/H3.d.ts +1 -1
  68. package/lib/typescript/components/typography/H4.d.ts +2 -2
  69. package/lib/typescript/components/typography/H5.d.ts +1 -1
  70. package/lib/typescript/components/typography/Hero.d.ts +1 -1
  71. package/lib/typescript/components/typography/index.d.ts +6 -0
  72. package/lib/typescript/components/typography/index.d.ts.map +1 -1
  73. package/lib/typescript/components/typography/markdown/MdH1.d.ts +13 -0
  74. package/lib/typescript/components/typography/markdown/MdH1.d.ts.map +1 -0
  75. package/lib/typescript/components/typography/markdown/MdH2.d.ts +13 -0
  76. package/lib/typescript/components/typography/markdown/MdH2.d.ts.map +1 -0
  77. package/lib/typescript/components/typography/markdown/MdH3.d.ts +13 -0
  78. package/lib/typescript/components/typography/markdown/MdH3.d.ts.map +1 -0
  79. package/lib/typescript/components/typography/markdown/MdH4.d.ts +13 -0
  80. package/lib/typescript/components/typography/markdown/MdH4.d.ts.map +1 -0
  81. package/lib/typescript/components/typography/markdown/MdH5.d.ts +13 -0
  82. package/lib/typescript/components/typography/markdown/MdH5.d.ts.map +1 -0
  83. package/lib/typescript/components/typography/markdown/MdH6.d.ts +13 -0
  84. package/lib/typescript/components/typography/markdown/MdH6.d.ts.map +1 -0
  85. package/lib/typescript/core/IOColors.d.ts +0 -9
  86. package/lib/typescript/core/IOColors.d.ts.map +1 -1
  87. package/lib/typescript/utils/object.d.ts.map +1 -1
  88. package/package.json +2 -2
  89. package/src/components/layout/GradientBottomActions.tsx +4 -0
  90. package/src/components/layout/GradientScrollView.tsx +4 -0
  91. package/src/components/layout/index.tsx +5 -5
  92. package/src/components/typography/H4.tsx +1 -1
  93. package/src/components/typography/__test__/__snapshots__/typography.test.tsx.snap +14 -14
  94. package/src/components/typography/index.tsx +6 -0
  95. package/src/components/typography/markdown/MdH1.tsx +32 -0
  96. package/src/components/typography/markdown/MdH2.tsx +32 -0
  97. package/src/components/typography/markdown/MdH3.tsx +32 -0
  98. package/src/components/typography/markdown/MdH4.tsx +34 -0
  99. package/src/components/typography/markdown/MdH5.tsx +32 -0
  100. package/src/components/typography/markdown/MdH6.tsx +33 -0
  101. package/src/core/IOColors.ts +0 -13
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+EnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,QAAQ,CAAC;AAE7C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;CAgB3B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAE7D,eAAO,MAAM,sBAAsB,eACrB,gBAAgB,KAC3B,eAAe,qBAAqB,CAAC,CAAC,QAAQ,CAGhD,CAAC;AA8BF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;CAsB1B,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,cAAc,CAAC;AAExD,eAAO,MAAM,eAAe;;;;;;;;;;;CAW1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,eAAe,CAAC;AAE3D,eAAO,MAAM,aAAa;;;;;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SAAS,EAAE,QAAQ,CAAC;IAEpB,iBAAiB,EAAE,QAAQ,CAAC;IAC5B,qBAAqB,EAAE,QAAQ,CAAC;IAChC,0BAA0B,EAAE,QAAQ,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,OA2B1B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,OAIhC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,OA0BzB,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;CAiBrC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GACpC,MAAM,OAAO,0BAA0B,CAAC;AAE1C,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAC5C,WAAW,CAAC,0BAA0B,CAAC,EACvC,cAAc,CAkBf,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,MAAM,OAAO,yBAAyB,CAAC;AAM/E;;;;GAIG;AAEH,eAAO,MAAM,SAAS,YAAa,UAAU,YAAW,MAAM,WAQ7D,CAAC"}
@@ -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;;YAE7B,MAAM,0BAKT,CAAC"}
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.13",
3
+ "version": "1.36.14",
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.9.5"
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 "./common";
2
- export * from "./GradientScrollView";
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";
@@ -13,7 +13,7 @@ type H4Props = ExternalTypographyProps<
13
13
  >;
14
14
 
15
15
  export const h4FontSize = 20;
16
- export const h4LineHeight = 30;
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": 30,
374
+ "lineHeight": 24,
375
375
  }
376
376
  }
377
377
  style={
378
378
  [
379
379
  {
380
380
  "fontSize": 22,
381
- "lineHeight": 30,
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": 30,
407
+ "lineHeight": 24,
408
408
  }
409
409
  }
410
410
  style={
411
411
  [
412
412
  {
413
413
  "fontSize": 22,
414
- "lineHeight": 30,
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": 30,
440
+ "lineHeight": 24,
441
441
  }
442
442
  }
443
443
  style={
444
444
  [
445
445
  {
446
446
  "fontSize": 22,
447
- "lineHeight": 30,
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": 30,
473
+ "lineHeight": 24,
474
474
  }
475
475
  }
476
476
  style={
477
477
  [
478
478
  {
479
479
  "fontSize": 22,
480
- "lineHeight": 30,
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": 30,
506
+ "lineHeight": 24,
507
507
  }
508
508
  }
509
509
  style={
510
510
  [
511
511
  {
512
512
  "fontSize": 22,
513
- "lineHeight": 30,
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": 30,
539
+ "lineHeight": 24,
540
540
  }
541
541
  }
542
542
  style={
543
543
  [
544
544
  {
545
545
  "fontSize": 22,
546
- "lineHeight": 30,
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": 30,
572
+ "lineHeight": 24,
573
573
  }
574
574
  }
575
575
  style={
576
576
  [
577
577
  {
578
578
  "fontSize": 22,
579
- "lineHeight": 30,
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
+ });
@@ -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"],