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

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 (141) hide show
  1. package/lib/commonjs/components/listitems/ListItemNav.js +4 -2
  2. package/lib/commonjs/components/listitems/ListItemNav.js.map +1 -1
  3. package/lib/commonjs/components/typography/BaseTypography.js +3 -2
  4. package/lib/commonjs/components/typography/BaseTypography.js.map +1 -1
  5. package/lib/commonjs/components/typography/Body.js +5 -3
  6. package/lib/commonjs/components/typography/Body.js.map +1 -1
  7. package/lib/commonjs/components/typography/BodyMonospace.js +4 -2
  8. package/lib/commonjs/components/typography/BodyMonospace.js.map +1 -1
  9. package/lib/commonjs/components/typography/ButtonText.js +5 -3
  10. package/lib/commonjs/components/typography/ButtonText.js.map +1 -1
  11. package/lib/commonjs/components/typography/Caption.js +5 -3
  12. package/lib/commonjs/components/typography/Caption.js.map +1 -1
  13. package/lib/commonjs/components/typography/Chip.js +5 -3
  14. package/lib/commonjs/components/typography/Chip.js.map +1 -1
  15. package/lib/commonjs/components/typography/Factory.js +4 -2
  16. package/lib/commonjs/components/typography/Factory.js.map +1 -1
  17. package/lib/commonjs/components/typography/H1.js +5 -3
  18. package/lib/commonjs/components/typography/H1.js.map +1 -1
  19. package/lib/commonjs/components/typography/H2.js +5 -3
  20. package/lib/commonjs/components/typography/H2.js.map +1 -1
  21. package/lib/commonjs/components/typography/H3.js +5 -3
  22. package/lib/commonjs/components/typography/H3.js.map +1 -1
  23. package/lib/commonjs/components/typography/H4.js +5 -3
  24. package/lib/commonjs/components/typography/H4.js.map +1 -1
  25. package/lib/commonjs/components/typography/H5.js +5 -3
  26. package/lib/commonjs/components/typography/H5.js.map +1 -1
  27. package/lib/commonjs/components/typography/H6.js +5 -3
  28. package/lib/commonjs/components/typography/H6.js.map +1 -1
  29. package/lib/commonjs/components/typography/Hero.js +5 -3
  30. package/lib/commonjs/components/typography/Hero.js.map +1 -1
  31. package/lib/commonjs/components/typography/Label.js +5 -3
  32. package/lib/commonjs/components/typography/Label.js.map +1 -1
  33. package/lib/commonjs/components/typography/LabelHeader.js +5 -3
  34. package/lib/commonjs/components/typography/LabelHeader.js.map +1 -1
  35. package/lib/commonjs/components/typography/LabelLink.js +5 -3
  36. package/lib/commonjs/components/typography/LabelLink.js.map +1 -1
  37. package/lib/commonjs/components/typography/LabelSmall.js +5 -3
  38. package/lib/commonjs/components/typography/LabelSmall.js.map +1 -1
  39. package/lib/commonjs/components/typography/LabelSmallAlt.js +5 -3
  40. package/lib/commonjs/components/typography/LabelSmallAlt.js.map +1 -1
  41. package/lib/module/components/listitems/ListItemNav.js +4 -2
  42. package/lib/module/components/listitems/ListItemNav.js.map +1 -1
  43. package/lib/module/components/typography/BaseTypography.js +3 -2
  44. package/lib/module/components/typography/BaseTypography.js.map +1 -1
  45. package/lib/module/components/typography/Body.js +4 -3
  46. package/lib/module/components/typography/Body.js.map +1 -1
  47. package/lib/module/components/typography/BodyMonospace.js +3 -2
  48. package/lib/module/components/typography/BodyMonospace.js.map +1 -1
  49. package/lib/module/components/typography/ButtonText.js +4 -3
  50. package/lib/module/components/typography/ButtonText.js.map +1 -1
  51. package/lib/module/components/typography/Caption.js +4 -3
  52. package/lib/module/components/typography/Caption.js.map +1 -1
  53. package/lib/module/components/typography/Chip.js +4 -3
  54. package/lib/module/components/typography/Chip.js.map +1 -1
  55. package/lib/module/components/typography/Factory.js +4 -2
  56. package/lib/module/components/typography/Factory.js.map +1 -1
  57. package/lib/module/components/typography/H1.js +4 -3
  58. package/lib/module/components/typography/H1.js.map +1 -1
  59. package/lib/module/components/typography/H2.js +4 -3
  60. package/lib/module/components/typography/H2.js.map +1 -1
  61. package/lib/module/components/typography/H3.js +4 -3
  62. package/lib/module/components/typography/H3.js.map +1 -1
  63. package/lib/module/components/typography/H4.js +4 -3
  64. package/lib/module/components/typography/H4.js.map +1 -1
  65. package/lib/module/components/typography/H5.js +4 -3
  66. package/lib/module/components/typography/H5.js.map +1 -1
  67. package/lib/module/components/typography/H6.js +4 -3
  68. package/lib/module/components/typography/H6.js.map +1 -1
  69. package/lib/module/components/typography/Hero.js +4 -3
  70. package/lib/module/components/typography/Hero.js.map +1 -1
  71. package/lib/module/components/typography/Label.js +4 -3
  72. package/lib/module/components/typography/Label.js.map +1 -1
  73. package/lib/module/components/typography/LabelHeader.js +4 -3
  74. package/lib/module/components/typography/LabelHeader.js.map +1 -1
  75. package/lib/module/components/typography/LabelLink.js +4 -3
  76. package/lib/module/components/typography/LabelLink.js.map +1 -1
  77. package/lib/module/components/typography/LabelSmall.js +4 -3
  78. package/lib/module/components/typography/LabelSmall.js.map +1 -1
  79. package/lib/module/components/typography/LabelSmallAlt.js +4 -3
  80. package/lib/module/components/typography/LabelSmallAlt.js.map +1 -1
  81. package/lib/typescript/components/listitems/ListItemNav.d.ts +5 -1
  82. package/lib/typescript/components/listitems/ListItemNav.d.ts.map +1 -1
  83. package/lib/typescript/components/typography/BaseTypography.d.ts +2 -2
  84. package/lib/typescript/components/typography/BaseTypography.d.ts.map +1 -1
  85. package/lib/typescript/components/typography/Body.d.ts +6 -4
  86. package/lib/typescript/components/typography/Body.d.ts.map +1 -1
  87. package/lib/typescript/components/typography/BodyMonospace.d.ts +6 -6
  88. package/lib/typescript/components/typography/BodyMonospace.d.ts.map +1 -1
  89. package/lib/typescript/components/typography/ButtonText.d.ts +6 -4
  90. package/lib/typescript/components/typography/ButtonText.d.ts.map +1 -1
  91. package/lib/typescript/components/typography/Caption.d.ts +6 -9
  92. package/lib/typescript/components/typography/Caption.d.ts.map +1 -1
  93. package/lib/typescript/components/typography/Chip.d.ts +6 -6
  94. package/lib/typescript/components/typography/Chip.d.ts.map +1 -1
  95. package/lib/typescript/components/typography/Factory.d.ts +2 -1
  96. package/lib/typescript/components/typography/Factory.d.ts.map +1 -1
  97. package/lib/typescript/components/typography/H1.d.ts +6 -6
  98. package/lib/typescript/components/typography/H1.d.ts.map +1 -1
  99. package/lib/typescript/components/typography/H2.d.ts +6 -6
  100. package/lib/typescript/components/typography/H2.d.ts.map +1 -1
  101. package/lib/typescript/components/typography/H3.d.ts +6 -6
  102. package/lib/typescript/components/typography/H3.d.ts.map +1 -1
  103. package/lib/typescript/components/typography/H4.d.ts +6 -6
  104. package/lib/typescript/components/typography/H4.d.ts.map +1 -1
  105. package/lib/typescript/components/typography/H5.d.ts +6 -9
  106. package/lib/typescript/components/typography/H5.d.ts.map +1 -1
  107. package/lib/typescript/components/typography/H6.d.ts +6 -4
  108. package/lib/typescript/components/typography/H6.d.ts.map +1 -1
  109. package/lib/typescript/components/typography/Hero.d.ts +6 -6
  110. package/lib/typescript/components/typography/Hero.d.ts.map +1 -1
  111. package/lib/typescript/components/typography/Label.d.ts +3 -2
  112. package/lib/typescript/components/typography/Label.d.ts.map +1 -1
  113. package/lib/typescript/components/typography/LabelHeader.d.ts +6 -4
  114. package/lib/typescript/components/typography/LabelHeader.d.ts.map +1 -1
  115. package/lib/typescript/components/typography/LabelLink.d.ts +3 -2
  116. package/lib/typescript/components/typography/LabelLink.d.ts.map +1 -1
  117. package/lib/typescript/components/typography/LabelSmall.d.ts +3 -2
  118. package/lib/typescript/components/typography/LabelSmall.d.ts.map +1 -1
  119. package/lib/typescript/components/typography/LabelSmallAlt.d.ts +6 -4
  120. package/lib/typescript/components/typography/LabelSmallAlt.d.ts.map +1 -1
  121. package/package.json +1 -1
  122. package/src/components/listitems/ListItemNav.tsx +9 -2
  123. package/src/components/typography/BaseTypography.tsx +4 -4
  124. package/src/components/typography/Body.tsx +14 -9
  125. package/src/components/typography/BodyMonospace.tsx +15 -8
  126. package/src/components/typography/ButtonText.tsx +21 -14
  127. package/src/components/typography/Caption.tsx +17 -12
  128. package/src/components/typography/Chip.tsx +14 -9
  129. package/src/components/typography/Factory.tsx +6 -2
  130. package/src/components/typography/H1.tsx +17 -12
  131. package/src/components/typography/H2.tsx +17 -12
  132. package/src/components/typography/H3.tsx +17 -12
  133. package/src/components/typography/H4.tsx +17 -12
  134. package/src/components/typography/H5.tsx +19 -14
  135. package/src/components/typography/H6.tsx +17 -12
  136. package/src/components/typography/Hero.tsx +17 -12
  137. package/src/components/typography/Label.tsx +24 -15
  138. package/src/components/typography/LabelHeader.tsx +25 -18
  139. package/src/components/typography/LabelLink.tsx +23 -18
  140. package/src/components/typography/LabelSmall.tsx +24 -17
  141. package/src/components/typography/LabelSmallAlt.tsx +20 -13
@@ -1,15 +1,15 @@
1
- /// <reference types="react" />
2
- import { IOTheme } from "../../core";
1
+ import React from "react";
2
+ import { View } from "react-native";
3
3
  import { IOFontWeight } from "../../utils/fonts";
4
- import { ExternalTypographyProps, TypographyProps } from "./common";
5
- type AllowedColors = IOTheme["textHeading-default"];
4
+ import { TypographyProps } from "./common";
6
5
  type AllowedWeight = Extract<IOFontWeight, "Regular" | "SemiBold">;
7
- type H1Props = ExternalTypographyProps<TypographyProps<AllowedWeight, AllowedColors>>;
8
6
  export declare const h1FontSize = 28;
9
7
  export declare const h1LineHeight = 42;
10
8
  /**
11
9
  * `H1` typographic style
12
10
  */
13
- export declare const H1: (props: H1Props) => import("react").JSX.Element;
11
+ export declare const H1: 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"> & {
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
+ }, "ref"> & React.RefAttributes<View>>;
14
14
  export {};
15
15
  //# sourceMappingURL=H1.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"H1.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/H1.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAA2B,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAc,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEpE,KAAK,aAAa,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACpD,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;AAEnE,KAAK,OAAO,GAAG,uBAAuB,CACpC,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,CAAC;AAEF,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,YAAY,KAAK,CAAC;AAW/B;;GAEG;AACH,eAAO,MAAM,EAAE,UAAW,OAAO,gCAahC,CAAC"}
1
+ {"version":3,"file":"H1.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/H1.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAc,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAA2B,eAAe,EAAE,MAAM,UAAU,CAAC;AAGpE,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;AAMnE,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,YAAY,KAAK,CAAC;AAW/B;;GAEG;AACH,eAAO,MAAM,EAAE;;sCAgBb,CAAC"}
@@ -1,15 +1,15 @@
1
- /// <reference types="react" />
2
- import { IOTheme } from "../../core";
1
+ import React from "react";
2
+ import { View } from "react-native";
3
3
  import { IOFontWeight } from "../../utils/fonts";
4
- import { ExternalTypographyProps, TypographyProps } from "./common";
5
- type AllowedColors = IOTheme["textHeading-default"];
4
+ import { TypographyProps } from "./common";
6
5
  type AllowedWeight = Extract<IOFontWeight, "SemiBold" | "Regular">;
7
- type H2Props = ExternalTypographyProps<TypographyProps<AllowedWeight, AllowedColors>>;
8
6
  export declare const h2FontSize = 26;
9
7
  export declare const h2LineHeight = 39;
10
8
  /**
11
9
  * `H2` typographic style
12
10
  */
13
- export declare const H2: (props: H2Props) => import("react").JSX.Element;
11
+ export declare const H2: 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"> & {
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
+ }, "ref"> & React.RefAttributes<View>>;
14
14
  export {};
15
15
  //# sourceMappingURL=H2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"H2.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/H2.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAA2B,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAc,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEpE,KAAK,aAAa,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACpD,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC;AAEnE,KAAK,OAAO,GAAG,uBAAuB,CACpC,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,CAAC;AAEF,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,YAAY,KAAK,CAAC;AAW/B;;GAEG;AACH,eAAO,MAAM,EAAE,UAAW,OAAO,gCAahC,CAAC"}
1
+ {"version":3,"file":"H2.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/H2.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAc,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAA2B,eAAe,EAAE,MAAM,UAAU,CAAC;AAGpE,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC;AAMnE,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,YAAY,KAAK,CAAC;AAW/B;;GAEG;AACH,eAAO,MAAM,EAAE;;sCAgBb,CAAC"}
@@ -1,15 +1,15 @@
1
- /// <reference types="react" />
2
- import { IOTheme } from "../../core";
1
+ import React from "react";
2
+ import { View } from "react-native";
3
3
  import { IOFontWeight } from "../../utils/fonts";
4
- import { ExternalTypographyProps, TypographyProps } from "./common";
5
- type AllowedColors = IOTheme["textHeading-default"];
4
+ import { TypographyProps } from "./common";
6
5
  type AllowedWeight = Extract<IOFontWeight, "SemiBold" | "Regular">;
7
- type H3Props = ExternalTypographyProps<TypographyProps<AllowedWeight, AllowedColors>>;
8
6
  export declare const h3FontSize = 22;
9
7
  export declare const h3LineHeight = 33;
10
8
  /**
11
9
  * `H3` typographic style
12
10
  */
13
- export declare const H3: (props: H3Props) => import("react").JSX.Element;
11
+ export declare const H3: 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"> & {
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
+ }, "ref"> & React.RefAttributes<View>>;
14
14
  export {};
15
15
  //# sourceMappingURL=H3.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"H3.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/H3.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAA2B,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAc,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEpE,KAAK,aAAa,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACpD,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC;AAEnE,KAAK,OAAO,GAAG,uBAAuB,CACpC,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,CAAC;AAGF,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,YAAY,KAAK,CAAC;AAW/B;;GAEG;AACH,eAAO,MAAM,EAAE,UAAW,OAAO,gCAahC,CAAC"}
1
+ {"version":3,"file":"H3.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/H3.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAc,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAA2B,eAAe,EAAE,MAAM,UAAU,CAAC;AAGpE,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC;AAOnE,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,YAAY,KAAK,CAAC;AAW/B;;GAEG;AACH,eAAO,MAAM,EAAE;;sCAgBb,CAAC"}
@@ -1,15 +1,15 @@
1
- /// <reference types="react" />
2
- import { IOTheme } from "../../core";
1
+ import React from "react";
2
+ import { View } from "react-native";
3
3
  import { IOFontWeight } from "../../utils/fonts";
4
- import { ExternalTypographyProps, TypographyProps } from "./common";
5
- type AllowedColors = IOTheme["textHeading-default"];
4
+ import { TypographyProps } from "./common";
6
5
  type AllowedWeight = Extract<IOFontWeight, "Regular" | "SemiBold">;
7
- type H4Props = ExternalTypographyProps<TypographyProps<AllowedWeight, AllowedColors>>;
8
6
  export declare const h4FontSize = 20;
9
7
  export declare const h4LineHeight = 30;
10
8
  /**
11
9
  * `H4` typographic style
12
10
  */
13
- export declare const H4: (props: H4Props) => import("react").JSX.Element;
11
+ export declare const H4: 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"> & {
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
+ }, "ref"> & React.RefAttributes<View>>;
14
14
  export {};
15
15
  //# sourceMappingURL=H4.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"H4.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/H4.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAA2B,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAc,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEpE,KAAK,aAAa,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACpD,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;AAEnE,KAAK,OAAO,GAAG,uBAAuB,CACpC,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,CAAC;AAEF,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,YAAY,KAAK,CAAC;AAW/B;;GAEG;AACH,eAAO,MAAM,EAAE,UAAW,OAAO,gCAYhC,CAAC"}
1
+ {"version":3,"file":"H4.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/H4.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAc,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAA2B,eAAe,EAAE,MAAM,UAAU,CAAC;AAGpE,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;AAMnE,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,YAAY,KAAK,CAAC;AAW/B;;GAEG;AACH,eAAO,MAAM,EAAE;;sCAeb,CAAC"}
@@ -1,15 +1,12 @@
1
- /// <reference types="react" />
2
- import { IOTheme } from "../../core";
3
- import { IOFontWeight } from "../../utils/fonts";
4
- import { ExternalTypographyProps, TypographyProps } from "./common";
5
- type AllowedColors = IOTheme["textHeading-default"];
6
- type AllowedWeight = Extract<IOFontWeight, "SemiBold">;
7
- type H5Props = ExternalTypographyProps<TypographyProps<AllowedWeight, AllowedColors>>;
1
+ import React from "react";
2
+ import { View } from "react-native";
3
+ import { TypographyProps } from "./common";
8
4
  export declare const h5FontSize = 14;
9
5
  export declare const h5LineHeight = 16;
10
6
  /**
11
7
  * `H5` typographic style
12
8
  */
13
- export declare const H5: (props: H5Props) => import("react").JSX.Element;
14
- export {};
9
+ export declare const H5: React.ForwardRefExoticComponent<Omit<Omit<import("react-native").TextProps & React.RefAttributes<import("react-native").Text>, "style"> & TypographyProps<"SemiBold", "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"> & {
10
+ 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">>>;
11
+ }, "ref"> & React.RefAttributes<View>>;
15
12
  //# sourceMappingURL=H5.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"H5.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/H5.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAA2B,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAc,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEpE,KAAK,aAAa,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACpD,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;AAEvD,KAAK,OAAO,GAAG,uBAAuB,CACpC,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,CAAC;AAEF,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,YAAY,KAAK,CAAC;AAM/B;;GAEG;AACH,eAAO,MAAM,EAAE,UAAW,OAAO,gCAehC,CAAC"}
1
+ {"version":3,"file":"H5.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/H5.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAIpC,OAAO,EAA2B,eAAe,EAAE,MAAM,UAAU,CAAC;AASpE,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,YAAY,KAAK,CAAC;AAM/B;;GAEG;AACH,eAAO,MAAM,EAAE;;sCAkBb,CAAC"}
@@ -1,15 +1,17 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
+ import { View } from "react-native";
2
3
  import { IOTheme } from "../../core";
3
4
  import { IOFontWeight } from "../../utils/fonts";
4
- import { ExternalTypographyProps, TypographyProps } from "./common";
5
+ import { TypographyProps } from "./common";
5
6
  type AllowedColors = IOTheme["textBody-default"] | "blueIO-850";
6
7
  type AllowedWeight = Extract<IOFontWeight, "Regular" | "SemiBold">;
7
- type H6Props = ExternalTypographyProps<TypographyProps<AllowedWeight, AllowedColors>>;
8
8
  export declare const h6FontSize = 16;
9
9
  export declare const h6LineHeight = 24;
10
10
  /**
11
11
  * `H6` typographic style
12
12
  */
13
- export declare const H6: (props: H6Props) => import("react").JSX.Element;
13
+ export declare const H6: React.ForwardRefExoticComponent<Omit<Omit<import("react-native").TextProps & React.RefAttributes<import("react-native").Text>, "style"> & TypographyProps<AllowedWeight, AllowedColors> & {
14
+ 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">>>;
15
+ }, "ref"> & React.RefAttributes<View>>;
14
16
  export {};
15
17
  //# sourceMappingURL=H6.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"H6.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/H6.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAyC,MAAM,YAAY,CAAC;AAC5E,OAAO,EAAc,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAGpE,KAAK,aAAa,GAAG,OAAO,CAAC,kBAAkB,CAAC,GAAG,YAAY,CAAC;AAChE,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;AAEnE,KAAK,OAAO,GAAG,uBAAuB,CACpC,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,CAAC;AAEF,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,YAAY,KAAK,CAAC;AAW/B;;GAEG;AACH,eAAO,MAAM,EAAE,UAAW,OAAO,gCAahC,CAAC"}
1
+ {"version":3,"file":"H6.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/H6.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,OAAO,EAAyC,MAAM,YAAY,CAAC;AAC5E,OAAO,EAAc,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAA2B,eAAe,EAAE,MAAM,UAAU,CAAC;AAGpE,KAAK,aAAa,GAAG,OAAO,CAAC,kBAAkB,CAAC,GAAG,YAAY,CAAC;AAChE,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;AAMnE,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,YAAY,KAAK,CAAC;AAW/B;;GAEG;AACH,eAAO,MAAM,EAAE;;sCAgBb,CAAC"}
@@ -1,15 +1,15 @@
1
- /// <reference types="react" />
2
- import { IOTheme } from "../../core";
1
+ import React from "react";
2
+ import { View } from "react-native";
3
3
  import { IOFontWeight } from "../../utils/fonts";
4
- import { ExternalTypographyProps, TypographyProps } from "./common";
5
- type AllowedColors = IOTheme["textHeading-default"];
4
+ import { TypographyProps } from "./common";
6
5
  type AllowedWeight = Extract<IOFontWeight, "Regular" | "SemiBold">;
7
- type HeroProps = ExternalTypographyProps<TypographyProps<AllowedWeight, AllowedColors>>;
8
6
  export declare const heroFontSize = 32;
9
7
  export declare const heroLineHeight = 48;
10
8
  /**
11
9
  * `Hero` typographic style
12
10
  */
13
- export declare const Hero: (props: HeroProps) => import("react").JSX.Element;
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"> & {
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
+ }, "ref"> & React.RefAttributes<View>>;
14
14
  export {};
15
15
  //# sourceMappingURL=Hero.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Hero.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/Hero.tsx"],"names":[],"mappings":";AAAA,OAAO,EAA2B,OAAO,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAc,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEpE,KAAK,aAAa,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACpD,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;AAEnE,KAAK,SAAS,GAAG,uBAAuB,CACtC,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,CAAC;AAEF,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,cAAc,KAAK,CAAC;AAWjC;;GAEG;AACH,eAAO,MAAM,IAAI,UAAW,SAAS,gCAapC,CAAC"}
1
+ {"version":3,"file":"Hero.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/Hero.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAc,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAA2B,eAAe,EAAE,MAAM,UAAU,CAAC;AAGpE,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;AAMnE,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,cAAc,KAAK,CAAC;AAWjC;;GAEG;AACH,eAAO,MAAM,IAAI;;sCAgBf,CAAC"}
@@ -1,4 +1,5 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
+ import { View } from "react-native";
2
3
  import { IOColors, IOColorsStatusForeground } from "../../core";
3
4
  import { IOFontWeight } from "../../utils/fonts";
4
5
  import { ExternalTypographyProps, FontSize, TypographyProps } from "./common";
@@ -11,6 +12,6 @@ type LabelProps = ExternalTypographyProps<TypographyProps<AllowedWeight, Allowed
11
12
  /**
12
13
  * `Label` typographic style
13
14
  */
14
- export declare const Label: ({ fontSize, ...props }: LabelProps) => import("react").JSX.Element;
15
+ export declare const Label: React.ForwardRefExoticComponent<Omit<LabelProps, "ref"> & React.RefAttributes<View>>;
15
16
  export {};
16
17
  //# sourceMappingURL=Label.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/Label.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,QAAQ,EACR,wBAAwB,EAEzB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAc,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EACL,uBAAuB,EACvB,QAAQ,EACR,eAAe,EAGhB,MAAM,UAAU,CAAC;AAElB,KAAK,oBAAoB,GAAG,OAAO,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,CAAC;AACjE,KAAK,aAAa,GAAG,oBAAoB,GAAG,wBAAwB,CAAC;AACrE,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC,CAAC;AAC5E,KAAK,UAAU,GAAG,uBAAuB,CACvC,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,GAAG;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAC;AAO5B;;GAEG;AACH,eAAO,MAAM,KAAK,2BAA4B,UAAU,gCAevD,CAAC"}
1
+ {"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EACL,QAAQ,EACR,wBAAwB,EAEzB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAc,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EACL,uBAAuB,EACvB,QAAQ,EACR,eAAe,EAGhB,MAAM,UAAU,CAAC;AAElB,KAAK,oBAAoB,GAAG,OAAO,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,CAAC;AACjE,KAAK,aAAa,GAAG,oBAAoB,GAAG,wBAAwB,CAAC;AACrE,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC,CAAC;AAC5E,KAAK,UAAU,GAAG,uBAAuB,CACvC,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,GAAG;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAC;AAO5B;;GAEG;AACH,eAAO,MAAM,KAAK,sFAsBjB,CAAC"}
@@ -1,16 +1,18 @@
1
- /// <reference types="react" />
1
+ import { View } from "react-native";
2
+ import React from "react";
2
3
  import { IOFontWeight } from "../../utils/fonts";
3
4
  import { IOTheme } from "../../core";
4
- import { ExternalTypographyProps, TypographyProps } from "./common";
5
+ import { TypographyProps } from "./common";
5
6
  type AllowedColors = IOTheme["textBody-default"] | "grey-650" | "grey-850" | "white" | "black";
6
7
  type AllowedWeight = Extract<IOFontWeight, "Regular" | "SemiBold">;
7
- type LabelHeaderProps = ExternalTypographyProps<TypographyProps<AllowedWeight, AllowedColors>>;
8
8
  export declare const labelHeaderFontSize = 14;
9
9
  export declare const labelHeaderLineHeight = 18;
10
10
  export declare const labelHeaderDefaultColor: AllowedColors;
11
11
  /**
12
12
  * `LabelHeader` typographic style
13
13
  */
14
- export declare const LabelHeader: (props: LabelHeaderProps) => import("react").JSX.Element;
14
+ export declare const LabelHeader: React.ForwardRefExoticComponent<Omit<Omit<import("react-native").TextProps & React.RefAttributes<import("react-native").Text>, "style"> & TypographyProps<AllowedWeight, AllowedColors> & {
15
+ 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">>>;
16
+ }, "ref"> & React.RefAttributes<View>>;
15
17
  export {};
16
18
  //# sourceMappingURL=LabelHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LabelHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/LabelHeader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAgB,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAyC,MAAM,YAAY,CAAC;AAE5E,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEpE,KAAK,aAAa,GACd,OAAO,CAAC,kBAAkB,CAAC,GAC3B,UAAU,GACV,UAAU,GACV,OAAO,GACP,OAAO,CAAC;AACZ,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;AAEnE,KAAK,gBAAgB,GAAG,uBAAuB,CAC7C,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,CAAC;AAEF,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,eAAO,MAAM,qBAAqB,KAAK,CAAC;AACxC,eAAO,MAAM,uBAAuB,EAAE,aACJ,CAAC;AAQnC;;GAEG;AACH,eAAO,MAAM,WAAW,UAAW,gBAAgB,gCAiBlD,CAAC"}
1
+ {"version":3,"file":"LabelHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/LabelHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAgB,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAyC,MAAM,YAAY,CAAC;AAE5E,OAAO,EAA2B,eAAe,EAAE,MAAM,UAAU,CAAC;AAEpE,KAAK,aAAa,GACd,OAAO,CAAC,kBAAkB,CAAC,GAC3B,UAAU,GACV,UAAU,GACV,OAAO,GACP,OAAO,CAAC;AACZ,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;AAMnE,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,eAAO,MAAM,qBAAqB,KAAK,CAAC;AACxC,eAAO,MAAM,uBAAuB,EAAE,aACJ,CAAC;AAQnC;;GAEG;AACH,eAAO,MAAM,WAAW;;sCAsBvB,CAAC"}
@@ -1,4 +1,5 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
+ import { View } from "react-native";
2
3
  import { type IOColors } from "../../core";
3
4
  import { IOFontWeight } from "../../utils/fonts";
4
5
  import { ExternalTypographyProps, FontSize, TypographyProps } from "./common";
@@ -14,6 +15,6 @@ export declare const linkDefaultWeight: AllowedWeight;
14
15
  /**
15
16
  * `Link` typographic style
16
17
  */
17
- export declare const LabelLink: (props: LinkProps) => import("react").JSX.Element;
18
+ export declare const LabelLink: React.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & React.RefAttributes<View>>;
18
19
  export {};
19
20
  //# sourceMappingURL=LabelLink.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LabelLink.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/LabelLink.tsx"],"names":[],"mappings":";AAAA,OAAO,EAA2B,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,EAAgB,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EACL,uBAAuB,EACvB,QAAQ,EACR,eAAe,EAGhB,MAAM,UAAU,CAAC;AAElB,KAAK,aAAa,GAAG,QAAQ,CAAC;AAC9B,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;AACvD,KAAK,eAAe,GAAG;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAC;AAE/C,KAAK,SAAS,GAAG,uBAAuB,CACtC,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,GACC,eAAe,CAAC;AAKlB,eAAO,MAAM,sBAAsB,EAAE,aAAsB,CAAC;AAE5D,eAAO,MAAM,gBAAgB,EAAE,aAA4B,CAAC;AAC5D,eAAO,MAAM,iBAAiB,EAAE,aAA0B,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,SAAS,UAAW,SAAS,gCAmBzC,CAAC"}
1
+ {"version":3,"file":"LabelLink.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/LabelLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAA2B,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,EAAgB,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EACL,uBAAuB,EACvB,QAAQ,EACR,eAAe,EAGhB,MAAM,UAAU,CAAC;AAElB,KAAK,aAAa,GAAG,QAAQ,CAAC;AAC9B,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;AACvD,KAAK,eAAe,GAAG;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAC;AAE/C,KAAK,SAAS,GAAG,uBAAuB,CACtC,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,GACC,eAAe,CAAC;AAKlB,eAAO,MAAM,sBAAsB,EAAE,aAAsB,CAAC;AAE5D,eAAO,MAAM,gBAAgB,EAAE,aAA4B,CAAC;AAC5D,eAAO,MAAM,iBAAiB,EAAE,aAA0B,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,SAAS,qFAsBpB,CAAC"}
@@ -1,4 +1,5 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
+ import { View } from "react-native";
2
3
  import { IOColors, IOTheme } from "../../core";
3
4
  import { IOFontWeight } from "../../utils/fonts";
4
5
  import { ExternalTypographyProps, FontType, TypographyProps } from "./common";
@@ -13,6 +14,6 @@ type LabelSmallProps = ExternalTypographyProps<TypographyProps<AllowedWeight, Al
13
14
  /**
14
15
  * `LabelSmall` typographic style
15
16
  */
16
- export declare const LabelSmall: (props: LabelSmallProps) => import("react").JSX.Element;
17
+ export declare const LabelSmall: React.ForwardRefExoticComponent<Omit<LabelSmallProps, "ref"> & React.RefAttributes<View>>;
17
18
  export {};
18
19
  //# sourceMappingURL=LabelSmall.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LabelSmall.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/LabelSmall.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAA2B,MAAM,YAAY,CAAC;AACxE,OAAO,EAAc,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAE,uBAAuB,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE9E,KAAK,oBAAoB,GAAG,OAAO,CACjC,QAAQ,EACN,MAAM,GACN,UAAU,GACV,KAAK,GACL,OAAO,GACP,cAAc,GACd,UAAU,GACV,UAAU,CACb,CAAC;AACF,KAAK,aAAa,GAAG,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AACzE,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC,CAAC;AAE5E,KAAK,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;AACpC,KAAK,eAAe,GAAG;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAC;AAE/C,KAAK,eAAe,GAAG,uBAAuB,CAC5C,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,GACC,eAAe,GACf,QAAQ,CAAC;AAeX;;GAEG;AACH,eAAO,MAAM,UAAU,UAAW,eAAe,gCAiBhD,CAAC"}
1
+ {"version":3,"file":"LabelSmall.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/LabelSmall.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAA2B,MAAM,YAAY,CAAC;AACxE,OAAO,EAAc,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAE,uBAAuB,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE9E,KAAK,oBAAoB,GAAG,OAAO,CACjC,QAAQ,EACN,MAAM,GACN,UAAU,GACV,KAAK,GACL,OAAO,GACP,cAAc,GACd,UAAU,GACV,UAAU,CACb,CAAC;AACF,KAAK,aAAa,GAAG,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AACzE,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC,CAAC;AAE5E,KAAK,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;AACpC,KAAK,eAAe,GAAG;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAC;AAE/C,KAAK,eAAe,GAAG,uBAAuB,CAC5C,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,GACC,eAAe,GACf,QAAQ,CAAC;AAeX;;GAEG;AACH,eAAO,MAAM,UAAU,2FAsBtB,CAAC"}
@@ -1,14 +1,16 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
+ import { View } from "react-native";
2
3
  import type { IOColors, IOTheme } from "../../core/IOColors";
3
4
  import { IOFontWeight } from "../../utils/fonts";
4
- import { ExternalTypographyProps, TypographyProps } from "./common";
5
+ import { TypographyProps } from "./common";
5
6
  type PartialAllowedColors = Extract<IOColors, "blue" | "bluegrey" | "red" | "white" | "bluegreyDark" | "grey-700" | "grey-200">;
6
7
  type AllowedColors = PartialAllowedColors | IOTheme["textBody-tertiary"];
7
8
  type AllowedWeight = Extract<IOFontWeight, "Bold" | "Regular" | "SemiBold">;
8
- type LabelSmallAltProps = ExternalTypographyProps<TypographyProps<AllowedWeight, AllowedColors>>;
9
9
  /**
10
10
  * `LabelSmallAlt` typographic style. It's referenced as `LabelSmallReadex` in the design projects.
11
11
  */
12
- export declare const LabelSmallAlt: (props: LabelSmallAltProps) => import("react").JSX.Element;
12
+ export declare const LabelSmallAlt: React.ForwardRefExoticComponent<Omit<Omit<import("react-native").TextProps & React.RefAttributes<import("react-native").Text>, "style"> & TypographyProps<AllowedWeight, AllowedColors> & {
13
+ 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">>>;
14
+ }, "ref"> & React.RefAttributes<View>>;
13
15
  export {};
14
16
  //# sourceMappingURL=LabelSmallAlt.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LabelSmallAlt.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/LabelSmallAlt.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAc,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEpE,KAAK,oBAAoB,GAAG,OAAO,CACjC,QAAQ,EACN,MAAM,GACN,UAAU,GACV,KAAK,GACL,OAAO,GACP,cAAc,GACd,UAAU,GACV,UAAU,CACb,CAAC;AACF,KAAK,aAAa,GAAG,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AACzE,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC,CAAC;AAE5E,KAAK,kBAAkB,GAAG,uBAAuB,CAC/C,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,CAAC;AAaF;;GAEG;AACH,eAAO,MAAM,aAAa,UAAW,kBAAkB,gCAatD,CAAC"}
1
+ {"version":3,"file":"LabelSmallAlt.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/LabelSmallAlt.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAc,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAA2B,eAAe,EAAE,MAAM,UAAU,CAAC;AAEpE,KAAK,oBAAoB,GAAG,OAAO,CACjC,QAAQ,EACN,MAAM,GACN,UAAU,GACV,KAAK,GACL,OAAO,GACP,cAAc,GACd,UAAU,GACV,UAAU,CACb,CAAC;AACF,KAAK,aAAa,GAAG,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AACzE,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC,CAAC;AAiB5E;;GAEG;AACH,eAAO,MAAM,aAAa;;sCAkBzB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pagopa/io-app-design-system",
3
- "version": "1.36.11",
3
+ "version": "1.36.13",
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",
@@ -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
  )}
@@ -1,5 +1,5 @@
1
1
  import React, { useMemo } from "react";
2
- import { StyleProp, Text, TextStyle } from "react-native";
2
+ import { StyleProp, Text, TextStyle, View } from "react-native";
3
3
  import { IOColors } from "../../core/IOColors";
4
4
  import {
5
5
  IOFontFamily,
@@ -43,7 +43,7 @@ const calculateTextStyle = (
43
43
  * @param props
44
44
  * @constructor
45
45
  */
46
- export const BaseTypography: React.FC<OwnProps> = props => {
46
+ export const BaseTypography = React.forwardRef<View, OwnProps>((props, ref) => {
47
47
  const fontStyle = useMemo(
48
48
  () =>
49
49
  calculateTextStyle(props.color, props.weight, props.isItalic, props.font),
@@ -54,8 +54,8 @@ export const BaseTypography: React.FC<OwnProps> = props => {
54
54
  : [props.fontStyle, fontStyle];
55
55
 
56
56
  return (
57
- <Text allowFontScaling={false} {...props} style={style}>
57
+ <Text allowFontScaling={false} {...props} ref={ref} style={style}>
58
58
  {props.children}
59
59
  </Text>
60
60
  );
61
- };
61
+ });
@@ -1,3 +1,5 @@
1
+ import React from "react";
2
+ import { View } from "react-native";
1
3
  import { IOColors, IOTheme, useIOExperimentalDesign } from "../../core";
2
4
  import { FontFamily, IOFontWeight } from "../../utils/fonts";
3
5
  import { useTypographyFactory } from "./Factory";
@@ -25,14 +27,17 @@ export const bodyDefaultWeight: AllowedWeight = "Regular";
25
27
  /**
26
28
  * `Body` typographic style
27
29
  */
28
- export const Body = (props: BodyProps) => {
30
+ export const Body = React.forwardRef<View, BodyProps>((props, ref) => {
29
31
  const { isExperimental } = useIOExperimentalDesign();
30
32
 
31
- return useTypographyFactory<AllowedWeight, AllowedColors>({
32
- ...props,
33
- defaultWeight: bodyDefaultWeight,
34
- defaultColor: bodyDefaultColor,
35
- font: isExperimental ? fontName : legacyFontName,
36
- fontStyle: { fontSize: bodyFontSize, lineHeight: bodyLineHeight }
37
- });
38
- };
33
+ return useTypographyFactory<AllowedWeight, AllowedColors>(
34
+ {
35
+ ...props,
36
+ defaultWeight: bodyDefaultWeight,
37
+ defaultColor: bodyDefaultColor,
38
+ font: isExperimental ? fontName : legacyFontName,
39
+ fontStyle: { fontSize: bodyFontSize, lineHeight: bodyLineHeight }
40
+ },
41
+ ref
42
+ );
43
+ });
@@ -1,3 +1,5 @@
1
+ import React from "react";
2
+ import { View } from "react-native";
1
3
  import type { IOColors } from "../../core/IOColors";
2
4
  import { FontFamily, IOFontWeight } from "../../utils/fonts";
3
5
  import { useTypographyFactory } from "./Factory";
@@ -19,11 +21,16 @@ const monospaceDefaultcolor = "bluegrey";
19
21
  /**
20
22
  * `BodyMonospace` typographic style
21
23
  */
22
- export const BodyMonospace = (props: BodyMonospaceProps) =>
23
- useTypographyFactory<AllowedWeight, AllowedColors>({
24
- ...props,
25
- defaultWeight: monospaceDefaultWeight,
26
- defaultColor: monospaceDefaultcolor,
27
- font: fontName,
28
- fontStyle: { fontSize, lineHeight }
29
- });
24
+ export const BodyMonospace = React.forwardRef<View, BodyMonospaceProps>(
25
+ (props, ref) =>
26
+ useTypographyFactory<AllowedWeight, AllowedColors>(
27
+ {
28
+ ...props,
29
+ defaultWeight: monospaceDefaultWeight,
30
+ defaultColor: monospaceDefaultcolor,
31
+ font: fontName,
32
+ fontStyle: { fontSize, lineHeight }
33
+ },
34
+ ref
35
+ )
36
+ );
@@ -1,3 +1,5 @@
1
+ import React from "react";
2
+ import { View } from "react-native";
1
3
  import { IOColors } from "../../core/IOColors";
2
4
  import { IOFontFamily, IOFontWeight } from "../../utils/fonts";
3
5
  import { useIOExperimentalDesign } from "../../core";
@@ -25,18 +27,23 @@ const legacyTextDefaultWeight: AllowedWeight = "Bold";
25
27
  /**
26
28
  * `ButtonText` typographic style
27
29
  */
28
- export const ButtonText = (props: ButtonTextProps) => {
29
- const { isExperimental } = useIOExperimentalDesign();
30
+ export const ButtonText = React.forwardRef<View, ButtonTextProps>(
31
+ (props, ref) => {
32
+ const { isExperimental } = useIOExperimentalDesign();
30
33
 
31
- return useTypographyFactory<AllowedWeight, ButtonTextAllowedColors>({
32
- ...props,
33
- defaultWeight: isExperimental
34
- ? buttonTextDefaultWeight
35
- : legacyTextDefaultWeight,
36
- defaultColor: buttonTextDefaultColor,
37
- font: isExperimental ? buttonTextFontName : legacyTextFontName,
38
- fontStyle: {
39
- fontSize: buttonTextFontSize
40
- }
41
- });
42
- };
34
+ return useTypographyFactory<AllowedWeight, ButtonTextAllowedColors>(
35
+ {
36
+ ...props,
37
+ defaultWeight: isExperimental
38
+ ? buttonTextDefaultWeight
39
+ : legacyTextDefaultWeight,
40
+ defaultColor: buttonTextDefaultColor,
41
+ font: isExperimental ? buttonTextFontName : legacyTextFontName,
42
+ fontStyle: {
43
+ fontSize: buttonTextFontSize
44
+ }
45
+ },
46
+ ref
47
+ );
48
+ }
49
+ );
@@ -1,3 +1,5 @@
1
+ import React from "react";
2
+ import { View } from "react-native";
1
3
  import { IOTheme, useIOExperimentalDesign } from "../../core";
2
4
  import { FontFamily, IOFontWeight } from "../../utils/fonts";
3
5
  import { useTypographyFactory } from "./Factory";
@@ -21,17 +23,20 @@ const legacyFont: FontFamily = "TitilliumWeb";
21
23
  /**
22
24
  * `Caption` typographic style
23
25
  */
24
- export const Caption = (props: CaptionProps) => {
26
+ export const Caption = React.forwardRef<View, CaptionProps>((props, ref) => {
25
27
  const { isExperimental } = useIOExperimentalDesign();
26
28
 
27
- return useTypographyFactory<AllowedWeight, AllowedColors>({
28
- ...props,
29
- defaultWeight,
30
- defaultColor,
31
- font: isExperimental ? font : legacyFont,
32
- fontStyle: {
33
- fontSize: captionFontSize,
34
- textTransform: "uppercase"
35
- }
36
- });
37
- };
29
+ return useTypographyFactory<AllowedWeight, AllowedColors>(
30
+ {
31
+ ...props,
32
+ defaultWeight,
33
+ defaultColor,
34
+ font: isExperimental ? font : legacyFont,
35
+ fontStyle: {
36
+ fontSize: captionFontSize,
37
+ textTransform: "uppercase"
38
+ }
39
+ },
40
+ ref
41
+ );
42
+ });