@pagopa/io-app-design-system 1.36.12 → 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 (108) 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/ListItemNav.js +4 -2
  8. package/lib/commonjs/components/listitems/ListItemNav.js.map +1 -1
  9. package/lib/commonjs/components/typography/H4.js +1 -1
  10. package/lib/commonjs/components/typography/__test__/__snapshots__/typography.test.tsx.snap +14 -14
  11. package/lib/commonjs/components/typography/index.js +66 -0
  12. package/lib/commonjs/components/typography/index.js.map +1 -1
  13. package/lib/commonjs/components/typography/markdown/MdH1.js +28 -0
  14. package/lib/commonjs/components/typography/markdown/MdH1.js.map +1 -0
  15. package/lib/commonjs/components/typography/markdown/MdH2.js +28 -0
  16. package/lib/commonjs/components/typography/markdown/MdH2.js.map +1 -0
  17. package/lib/commonjs/components/typography/markdown/MdH3.js +28 -0
  18. package/lib/commonjs/components/typography/markdown/MdH3.js.map +1 -0
  19. package/lib/commonjs/components/typography/markdown/MdH4.js +30 -0
  20. package/lib/commonjs/components/typography/markdown/MdH4.js.map +1 -0
  21. package/lib/commonjs/components/typography/markdown/MdH5.js +28 -0
  22. package/lib/commonjs/components/typography/markdown/MdH5.js.map +1 -0
  23. package/lib/commonjs/components/typography/markdown/MdH6.js +29 -0
  24. package/lib/commonjs/components/typography/markdown/MdH6.js.map +1 -0
  25. package/lib/commonjs/core/IOColors.js +0 -13
  26. package/lib/commonjs/core/IOColors.js.map +1 -1
  27. package/lib/module/components/layout/GradientBottomActions.js +5 -0
  28. package/lib/module/components/layout/GradientBottomActions.js.map +1 -1
  29. package/lib/module/components/layout/GradientScrollView.js +5 -0
  30. package/lib/module/components/layout/GradientScrollView.js.map +1 -1
  31. package/lib/module/components/layout/index.js +5 -5
  32. package/lib/module/components/layout/index.js.map +1 -1
  33. package/lib/module/components/listitems/ListItemNav.js +4 -2
  34. package/lib/module/components/listitems/ListItemNav.js.map +1 -1
  35. package/lib/module/components/typography/H4.js +1 -1
  36. package/lib/module/components/typography/__test__/__snapshots__/typography.test.tsx.snap +14 -14
  37. package/lib/module/components/typography/index.js +6 -0
  38. package/lib/module/components/typography/index.js.map +1 -1
  39. package/lib/module/components/typography/markdown/MdH1.js +21 -0
  40. package/lib/module/components/typography/markdown/MdH1.js.map +1 -0
  41. package/lib/module/components/typography/markdown/MdH2.js +21 -0
  42. package/lib/module/components/typography/markdown/MdH2.js.map +1 -0
  43. package/lib/module/components/typography/markdown/MdH3.js +21 -0
  44. package/lib/module/components/typography/markdown/MdH3.js.map +1 -0
  45. package/lib/module/components/typography/markdown/MdH4.js +23 -0
  46. package/lib/module/components/typography/markdown/MdH4.js.map +1 -0
  47. package/lib/module/components/typography/markdown/MdH5.js +21 -0
  48. package/lib/module/components/typography/markdown/MdH5.js.map +1 -0
  49. package/lib/module/components/typography/markdown/MdH6.js +22 -0
  50. package/lib/module/components/typography/markdown/MdH6.js.map +1 -0
  51. package/lib/module/core/IOColors.js +0 -13
  52. package/lib/module/core/IOColors.js.map +1 -1
  53. package/lib/typescript/components/buttons/ButtonLink.d.ts +1 -1
  54. package/lib/typescript/components/buttons/ButtonLink.d.ts.map +1 -1
  55. package/lib/typescript/components/buttons/ButtonOutline.d.ts +2 -2
  56. package/lib/typescript/components/buttons/ButtonOutline.d.ts.map +1 -1
  57. package/lib/typescript/components/buttons/ButtonSolid.d.ts +2 -2
  58. package/lib/typescript/components/buttons/ButtonSolid.d.ts.map +1 -1
  59. package/lib/typescript/components/layout/GradientBottomActions.d.ts +4 -0
  60. package/lib/typescript/components/layout/GradientBottomActions.d.ts.map +1 -1
  61. package/lib/typescript/components/layout/GradientScrollView.d.ts +4 -0
  62. package/lib/typescript/components/layout/GradientScrollView.d.ts.map +1 -1
  63. package/lib/typescript/components/layout/index.d.ts +5 -5
  64. package/lib/typescript/components/layout/index.d.ts.map +1 -1
  65. package/lib/typescript/components/listitems/ListItemNav.d.ts +5 -1
  66. package/lib/typescript/components/listitems/ListItemNav.d.ts.map +1 -1
  67. package/lib/typescript/components/radio/RadioGroup.d.ts.map +1 -1
  68. package/lib/typescript/components/typography/ButtonText.d.ts +1 -1
  69. package/lib/typescript/components/typography/Caption.d.ts +1 -1
  70. package/lib/typescript/components/typography/Chip.d.ts +1 -1
  71. package/lib/typescript/components/typography/H1.d.ts +1 -1
  72. package/lib/typescript/components/typography/H2.d.ts +1 -1
  73. package/lib/typescript/components/typography/H3.d.ts +1 -1
  74. package/lib/typescript/components/typography/H4.d.ts +2 -2
  75. package/lib/typescript/components/typography/H5.d.ts +1 -1
  76. package/lib/typescript/components/typography/Hero.d.ts +1 -1
  77. package/lib/typescript/components/typography/index.d.ts +6 -0
  78. package/lib/typescript/components/typography/index.d.ts.map +1 -1
  79. package/lib/typescript/components/typography/markdown/MdH1.d.ts +13 -0
  80. package/lib/typescript/components/typography/markdown/MdH1.d.ts.map +1 -0
  81. package/lib/typescript/components/typography/markdown/MdH2.d.ts +13 -0
  82. package/lib/typescript/components/typography/markdown/MdH2.d.ts.map +1 -0
  83. package/lib/typescript/components/typography/markdown/MdH3.d.ts +13 -0
  84. package/lib/typescript/components/typography/markdown/MdH3.d.ts.map +1 -0
  85. package/lib/typescript/components/typography/markdown/MdH4.d.ts +13 -0
  86. package/lib/typescript/components/typography/markdown/MdH4.d.ts.map +1 -0
  87. package/lib/typescript/components/typography/markdown/MdH5.d.ts +13 -0
  88. package/lib/typescript/components/typography/markdown/MdH5.d.ts.map +1 -0
  89. package/lib/typescript/components/typography/markdown/MdH6.d.ts +13 -0
  90. package/lib/typescript/components/typography/markdown/MdH6.d.ts.map +1 -0
  91. package/lib/typescript/core/IOColors.d.ts +0 -9
  92. package/lib/typescript/core/IOColors.d.ts.map +1 -1
  93. package/lib/typescript/utils/object.d.ts.map +1 -1
  94. package/package.json +2 -2
  95. package/src/components/layout/GradientBottomActions.tsx +4 -0
  96. package/src/components/layout/GradientScrollView.tsx +4 -0
  97. package/src/components/layout/index.tsx +5 -5
  98. package/src/components/listitems/ListItemNav.tsx +9 -2
  99. package/src/components/typography/H4.tsx +1 -1
  100. package/src/components/typography/__test__/__snapshots__/typography.test.tsx.snap +14 -14
  101. package/src/components/typography/index.tsx +6 -0
  102. package/src/components/typography/markdown/MdH1.tsx +32 -0
  103. package/src/components/typography/markdown/MdH2.tsx +32 -0
  104. package/src/components/typography/markdown/MdH3.tsx +32 -0
  105. package/src/components/typography/markdown/MdH4.tsx +34 -0
  106. package/src/components/typography/markdown/MdH5.tsx +32 -0
  107. package/src/components/typography/markdown/MdH6.tsx +33 -0
  108. package/src/core/IOColors.ts +0 -13
@@ -8,7 +8,7 @@ export declare const heroLineHeight = 48;
8
8
  /**
9
9
  * `Hero` typographic style
10
10
  */
11
- export declare const Hero: React.ForwardRefExoticComponent<Omit<Omit<import("react-native").TextProps & React.RefAttributes<import("react-native").Text>, "style"> & TypographyProps<AllowedWeight, "white" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-450" | "grey-650" | "grey-700" | "grey-850" | "black" | "blueIO-850" | "blueIO-600" | "blueIO-500" | "blueIO-400" | "blueIO-450" | "blueIO-200" | "blueIO-150" | "blueIO-100" | "blueIO-50" | "hanPurple-850" | "hanPurple-500" | "hanPurple-250" | "hanPurple-100" | "hanPurple-50" | "turquoise-850" | "turquoise-500" | "turquoise-450" | "turquoise-150" | "turquoise-100" | "turquoise-50" | "error-850" | "error-600" | "error-500" | "error-400" | "error-100" | "warning-850" | "warning-700" | "warning-500" | "warning-400" | "warning-100" | "success-850" | "success-700" | "success-500" | "success-400" | "success-100" | "info-850" | "info-700" | "info-500" | "info-400" | "info-100" | "cobalt" | "blueItalia-850" | "blueItalia-600" | "blueItalia-500" | "blueItalia-100" | "blueItalia-50" | "blue-600" | "blue-50" | "greyUltraLight" | "greyLight" | "bluegreyLight" | "grey" | "milderGray" | "bluegrey" | "bluegreyDark" | "noCieButton" | "blue" | "blueUltraLight" | "aqua" | "aquaUltraLight" | "antiqueFuchsia" | "yellow" | "orange" | "red" | "green" | "greenLight"> & {
11
+ export declare const Hero: React.ForwardRefExoticComponent<Omit<Omit<import("react-native").TextProps & React.RefAttributes<import("react-native").Text>, "style"> & TypographyProps<AllowedWeight, "white" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-450" | "grey-650" | "grey-700" | "grey-850" | "black" | "blueIO-850" | "blueIO-600" | "blueIO-500" | "blueIO-400" | "blueIO-450" | "blueIO-200" | "blueIO-150" | "blueIO-100" | "blueIO-50" | "hanPurple-850" | "hanPurple-500" | "hanPurple-250" | "hanPurple-100" | "hanPurple-50" | "turquoise-850" | "turquoise-500" | "turquoise-450" | "turquoise-150" | "turquoise-100" | "turquoise-50" | "error-850" | "error-600" | "error-500" | "error-400" | "error-100" | "warning-850" | "warning-700" | "warning-500" | "warning-400" | "warning-100" | "success-850" | "success-700" | "success-500" | "success-400" | "success-100" | "info-850" | "info-700" | "info-500" | "info-400" | "info-100" | "blueItalia-850" | "blueItalia-600" | "blueItalia-500" | "blueItalia-100" | "blueItalia-50" | "blue-600" | "blue-50" | "greyUltraLight" | "greyLight" | "bluegreyLight" | "grey" | "bluegrey" | "bluegreyDark" | "blue" | "blueUltraLight" | "aqua" | "aquaUltraLight" | "antiqueFuchsia" | "orange" | "red" | "green" | "greenLight"> & {
12
12
  style?: import("react-native").Falsy | Omit<import("react-native").TextStyle, "color" | "fontStyle" | "fontWeight" | "fontSize" | "fontFamily"> | import("react-native").RegisteredStyle<Omit<import("react-native").TextStyle, "color" | "fontStyle" | "fontWeight" | "fontSize" | "fontFamily">> | import("react-native").RecursiveArray<import("react-native").Falsy | Omit<import("react-native").TextStyle, "color" | "fontStyle" | "fontWeight" | "fontSize" | "fontFamily"> | import("react-native").RegisteredStyle<Omit<import("react-native").TextStyle, "color" | "fontStyle" | "fontWeight" | "fontSize" | "fontFamily">>>;
13
13
  }, "ref"> & React.RefAttributes<View>>;
14
14
  export {};
@@ -17,4 +17,10 @@ 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";
20
26
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/index.tsx"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/index.tsx"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,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 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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B;;;;;;;;;;;;;;;;;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.12",
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";
@@ -48,6 +48,10 @@ type ListItemTopElementProps =
48
48
  type ListItemNavPartialProps = WithTestID<
49
49
  {
50
50
  value: string | React.ReactNode;
51
+ /**
52
+ * The maximum number of lines to display for the value.
53
+ */
54
+ numberOfLines?: number;
51
55
  description?: string | React.ReactNode;
52
56
  loading?: boolean;
53
57
  onPress: (event: GestureResponderEvent) => void;
@@ -107,7 +111,8 @@ export const ListItemNav = ({
107
111
  testID,
108
112
  hideChevron = false,
109
113
  topElement,
110
- loading
114
+ loading,
115
+ numberOfLines
111
116
  }: ListItemNav) => {
112
117
  const isPressed = useSharedValue(0);
113
118
  const { isExperimental } = useIOExperimentalDesign();
@@ -147,7 +152,9 @@ export const ListItemNav = ({
147
152
  )}
148
153
  {/* Let developer using a custom component (e.g: skeleton) */}
149
154
  {typeof value === "string" ? (
150
- <H6 color={theme["textBody-default"]}>{value}</H6>
155
+ <H6 color={theme["textBody-default"]} numberOfLines={numberOfLines}>
156
+ {value}
157
+ </H6>
151
158
  ) : (
152
159
  value
153
160
  )}
@@ -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
+ });