@pagopa/io-app-design-system 1.7.1 → 1.8.0

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 (542) hide show
  1. package/lib/commonjs/components/alert/Alert.js +9 -1
  2. package/lib/commonjs/components/alert/Alert.js.map +1 -1
  3. package/lib/commonjs/components/badge/Badge.js +11 -2
  4. package/lib/commonjs/components/badge/Badge.js.map +1 -1
  5. package/lib/commonjs/components/badge/__test__/__snapshots__/badge.test.tsx.snap +5 -3
  6. package/lib/commonjs/components/banner/Banner.js +0 -1
  7. package/lib/commonjs/components/banner/Banner.js.map +1 -1
  8. package/lib/commonjs/components/banner/__test__/__snapshots__/banner.test.tsx.snap +5 -5
  9. package/lib/commonjs/components/buttons/ButtonExtendedOutline.js +1 -1
  10. package/lib/commonjs/components/buttons/ButtonExtendedOutline.js.map +1 -1
  11. package/lib/commonjs/components/buttons/ButtonLink.js +3 -2
  12. package/lib/commonjs/components/buttons/ButtonLink.js.map +1 -1
  13. package/lib/commonjs/components/buttons/ButtonOutline.js +8 -48
  14. package/lib/commonjs/components/buttons/ButtonOutline.js.map +1 -1
  15. package/lib/commonjs/components/buttons/ButtonSolid.js +5 -7
  16. package/lib/commonjs/components/buttons/ButtonSolid.js.map +1 -1
  17. package/lib/commonjs/components/buttons/IconButtonSolid.js +54 -29
  18. package/lib/commonjs/components/buttons/IconButtonSolid.js.map +1 -1
  19. package/lib/commonjs/components/buttons/__test__/__snapshots__/button.test.tsx.snap +23 -21
  20. package/lib/commonjs/components/checkbox/AnimatedCheckbox.js +14 -2
  21. package/lib/commonjs/components/checkbox/AnimatedCheckbox.js.map +1 -1
  22. package/lib/commonjs/components/checkbox/AnimatedMessageCheckbox.js +11 -3
  23. package/lib/commonjs/components/checkbox/AnimatedMessageCheckbox.js.map +1 -1
  24. package/lib/commonjs/components/checkbox/CheckboxLabel.js +31 -8
  25. package/lib/commonjs/components/checkbox/CheckboxLabel.js.map +1 -1
  26. package/lib/commonjs/components/icons/Icon.js +27 -15
  27. package/lib/commonjs/components/icons/Icon.js.map +1 -1
  28. package/lib/commonjs/components/icons/IconContained.js +59 -0
  29. package/lib/commonjs/components/icons/IconContained.js.map +1 -0
  30. package/lib/commonjs/components/icons/index.js +11 -0
  31. package/lib/commonjs/components/icons/index.js.map +1 -1
  32. package/lib/commonjs/components/icons/svg/IconChange.js +31 -0
  33. package/lib/commonjs/components/icons/svg/IconChange.js.map +1 -0
  34. package/lib/commonjs/components/icons/svg/IconDialpad.js +29 -0
  35. package/lib/commonjs/components/icons/svg/IconDialpad.js.map +1 -0
  36. package/lib/commonjs/components/icons/svg/IconKey.js +31 -0
  37. package/lib/commonjs/components/icons/svg/IconKey.js.map +1 -0
  38. package/lib/commonjs/components/icons/svg/IconNotification.js +31 -0
  39. package/lib/commonjs/components/icons/svg/IconNotification.js.map +1 -0
  40. package/lib/commonjs/components/icons/svg/IconOption.js +31 -0
  41. package/lib/commonjs/components/icons/svg/IconOption.js.map +1 -0
  42. package/lib/commonjs/components/icons/svg/IconTransactions.js +1 -1
  43. package/lib/commonjs/components/icons/svg/IconTransactions.js.map +1 -1
  44. package/lib/commonjs/components/icons/svg/IconTransactionsBoxed.js +31 -0
  45. package/lib/commonjs/components/icons/svg/IconTransactionsBoxed.js.map +1 -0
  46. package/lib/commonjs/components/icons/svg/originals/IconChange.svg +3 -0
  47. package/lib/commonjs/components/icons/svg/originals/IconDialpad.svg +5 -0
  48. package/lib/commonjs/components/icons/svg/originals/IconKey.svg +7 -0
  49. package/lib/commonjs/components/icons/svg/originals/IconNotification.svg +7 -0
  50. package/lib/commonjs/components/icons/svg/originals/IconOption.svg +7 -0
  51. package/lib/commonjs/components/icons/svg/originals/IconTransactions.svg +8 -0
  52. package/lib/commonjs/components/icons/svg/originals/IconTransactionsBoxed.svg +8 -0
  53. package/lib/commonjs/components/index.js +11 -0
  54. package/lib/commonjs/components/index.js.map +1 -1
  55. package/lib/commonjs/components/listitems/ListItemAction.js +38 -8
  56. package/lib/commonjs/components/listitems/ListItemAction.js.map +1 -1
  57. package/lib/commonjs/components/listitems/ListItemInfo.js +31 -7
  58. package/lib/commonjs/components/listitems/ListItemInfo.js.map +1 -1
  59. package/lib/commonjs/components/listitems/ListItemInfoCopy.js +40 -10
  60. package/lib/commonjs/components/listitems/ListItemInfoCopy.js.map +1 -1
  61. package/lib/commonjs/components/listitems/ListItemNav.js +30 -7
  62. package/lib/commonjs/components/listitems/ListItemNav.js.map +1 -1
  63. package/lib/commonjs/components/listitems/ListItemNavAlert.js +32 -7
  64. package/lib/commonjs/components/listitems/ListItemNavAlert.js.map +1 -1
  65. package/lib/commonjs/components/listitems/ListItemSwitch.js +1 -1
  66. package/lib/commonjs/components/listitems/ListItemSwitch.js.map +1 -1
  67. package/lib/commonjs/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +75 -108
  68. package/lib/commonjs/components/listitems/__test__/listitem.test.js +2 -2
  69. package/lib/commonjs/components/listitems/__test__/listitem.test.js.map +1 -1
  70. package/lib/commonjs/components/listitems/index.js +4 -4
  71. package/lib/commonjs/components/listitems/index.js.map +1 -1
  72. package/lib/commonjs/components/{listitems/ListItemIDP.js → modules/ModuleIDP.js} +19 -12
  73. package/lib/commonjs/components/modules/ModuleIDP.js.map +1 -0
  74. package/lib/commonjs/components/modules/index.js +17 -0
  75. package/lib/commonjs/components/modules/index.js.map +1 -0
  76. package/lib/commonjs/components/pictograms/Pictogram.js +13 -1
  77. package/lib/commonjs/components/pictograms/Pictogram.js.map +1 -1
  78. package/lib/commonjs/components/pictograms/svg/PictogramBleedCie.js +47 -0
  79. package/lib/commonjs/components/pictograms/svg/PictogramBleedCie.js.map +1 -0
  80. package/lib/commonjs/components/pictograms/svg/PictogramBleedFeature.js +50 -0
  81. package/lib/commonjs/components/pictograms/svg/PictogramBleedFeature.js.map +1 -0
  82. package/lib/commonjs/components/pictograms/svg/PictogramBleedSecurity.js +44 -0
  83. package/lib/commonjs/components/pictograms/svg/PictogramBleedSecurity.js.map +1 -0
  84. package/lib/commonjs/components/pictograms/svg/PictogramCie.js +47 -0
  85. package/lib/commonjs/components/pictograms/svg/PictogramCie.js.map +1 -0
  86. package/lib/commonjs/components/pictograms/svg/PictogramFeature.js +50 -0
  87. package/lib/commonjs/components/pictograms/svg/PictogramFeature.js.map +1 -0
  88. package/lib/commonjs/components/pictograms/svg/PictogramSecurity.js +47 -0
  89. package/lib/commonjs/components/pictograms/svg/PictogramSecurity.js.map +1 -0
  90. package/lib/commonjs/components/pictograms/svg/originals/PictogramBleedCie.svg +30 -0
  91. package/lib/commonjs/components/pictograms/svg/originals/PictogramBleedFeature.svg +34 -0
  92. package/lib/commonjs/components/pictograms/svg/originals/PictogramBleedSecurity.svg +26 -0
  93. package/lib/commonjs/components/pictograms/svg/originals/PictogramCie.svg +30 -0
  94. package/lib/commonjs/components/pictograms/svg/originals/PictogramFeature.svg +34 -0
  95. package/lib/commonjs/components/pictograms/svg/originals/PictogramSecurity.svg +30 -0
  96. package/lib/commonjs/components/radio/AnimatedRadio.js +14 -2
  97. package/lib/commonjs/components/radio/AnimatedRadio.js.map +1 -1
  98. package/lib/commonjs/components/switch/NativeSwitch.js +19 -5
  99. package/lib/commonjs/components/switch/NativeSwitch.js.map +1 -1
  100. package/lib/commonjs/components/switch/SwitchLabel.js +31 -8
  101. package/lib/commonjs/components/switch/SwitchLabel.js.map +1 -1
  102. package/lib/commonjs/components/tag/Tag.js +16 -8
  103. package/lib/commonjs/components/tag/Tag.js.map +1 -1
  104. package/lib/commonjs/components/textInput/TextInputBase.js +11 -2
  105. package/lib/commonjs/components/textInput/TextInputBase.js.map +1 -1
  106. package/lib/commonjs/components/typography/Body.js +1 -4
  107. package/lib/commonjs/components/typography/Body.js.map +1 -1
  108. package/lib/commonjs/components/typography/BodyMonospace.js +28 -0
  109. package/lib/commonjs/components/typography/BodyMonospace.js.map +1 -0
  110. package/lib/commonjs/components/typography/ButtonText.js +39 -0
  111. package/lib/commonjs/components/typography/ButtonText.js.map +1 -0
  112. package/lib/commonjs/components/typography/Caption.js +37 -0
  113. package/lib/commonjs/components/typography/Caption.js.map +1 -0
  114. package/lib/commonjs/components/typography/Chip.js +34 -0
  115. package/lib/commonjs/components/typography/Chip.js.map +1 -0
  116. package/lib/commonjs/components/typography/H1.js +18 -15
  117. package/lib/commonjs/components/typography/H1.js.map +1 -1
  118. package/lib/commonjs/components/typography/H2.js +18 -15
  119. package/lib/commonjs/components/typography/H2.js.map +1 -1
  120. package/lib/commonjs/components/typography/H3.js +24 -18
  121. package/lib/commonjs/components/typography/H3.js.map +1 -1
  122. package/lib/commonjs/components/typography/H4.js +18 -14
  123. package/lib/commonjs/components/typography/H4.js.map +1 -1
  124. package/lib/commonjs/components/typography/H5.js +19 -33
  125. package/lib/commonjs/components/typography/H5.js.map +1 -1
  126. package/lib/commonjs/components/typography/H6.js +15 -13
  127. package/lib/commonjs/components/typography/H6.js.map +1 -1
  128. package/lib/commonjs/components/typography/Hero.js +38 -0
  129. package/lib/commonjs/components/typography/Hero.js.map +1 -0
  130. package/lib/commonjs/components/typography/Label.js +13 -10
  131. package/lib/commonjs/components/typography/Label.js.map +1 -1
  132. package/lib/commonjs/components/typography/LabelHeader.js +19 -16
  133. package/lib/commonjs/components/typography/LabelHeader.js.map +1 -1
  134. package/lib/commonjs/components/typography/{Link.js → LabelLink.js} +9 -14
  135. package/lib/commonjs/components/typography/LabelLink.js.map +1 -0
  136. package/lib/commonjs/components/typography/LabelSmall.js +18 -22
  137. package/lib/commonjs/components/typography/LabelSmall.js.map +1 -1
  138. package/lib/commonjs/components/typography/__test__/__snapshots__/typography.test.tsx.snap +195 -379
  139. package/lib/commonjs/components/typography/__test__/typography.test.js +10 -42
  140. package/lib/commonjs/components/typography/__test__/typography.test.js.map +1 -1
  141. package/lib/commonjs/components/typography/common.js +18 -1
  142. package/lib/commonjs/components/typography/common.js.map +1 -1
  143. package/lib/commonjs/components/typography/index.js +45 -12
  144. package/lib/commonjs/components/typography/index.js.map +1 -1
  145. package/lib/commonjs/core/IOShapes.js +3 -3
  146. package/lib/commonjs/core/IOShapes.js.map +1 -1
  147. package/lib/commonjs/core/IOSpacing.js +8 -8
  148. package/lib/commonjs/core/IOSpacing.js.map +1 -1
  149. package/lib/commonjs/core/IOStyles.js +2 -8
  150. package/lib/commonjs/core/IOStyles.js.map +1 -1
  151. package/lib/commonjs/stories/Link.stories.js +1 -1
  152. package/lib/commonjs/stories/Link.stories.js.map +1 -1
  153. package/lib/commonjs/stories/Monospace.stories.js +1 -1
  154. package/lib/commonjs/stories/Monospace.stories.js.map +1 -1
  155. package/lib/commonjs/utils/fonts.js +8 -6
  156. package/lib/commonjs/utils/fonts.js.map +1 -1
  157. package/lib/module/components/alert/Alert.js +9 -1
  158. package/lib/module/components/alert/Alert.js.map +1 -1
  159. package/lib/module/components/badge/Badge.js +12 -3
  160. package/lib/module/components/badge/Badge.js.map +1 -1
  161. package/lib/module/components/badge/__test__/__snapshots__/badge.test.tsx.snap +5 -3
  162. package/lib/module/components/banner/Banner.js +0 -1
  163. package/lib/module/components/banner/Banner.js.map +1 -1
  164. package/lib/module/components/banner/__test__/__snapshots__/banner.test.tsx.snap +5 -5
  165. package/lib/module/components/buttons/ButtonExtendedOutline.js +2 -2
  166. package/lib/module/components/buttons/ButtonExtendedOutline.js.map +1 -1
  167. package/lib/module/components/buttons/ButtonLink.js +3 -2
  168. package/lib/module/components/buttons/ButtonLink.js.map +1 -1
  169. package/lib/module/components/buttons/ButtonOutline.js +8 -48
  170. package/lib/module/components/buttons/ButtonOutline.js.map +1 -1
  171. package/lib/module/components/buttons/ButtonSolid.js +5 -7
  172. package/lib/module/components/buttons/ButtonSolid.js.map +1 -1
  173. package/lib/module/components/buttons/IconButtonSolid.js +55 -30
  174. package/lib/module/components/buttons/IconButtonSolid.js.map +1 -1
  175. package/lib/module/components/buttons/__test__/__snapshots__/button.test.tsx.snap +23 -21
  176. package/lib/module/components/checkbox/AnimatedCheckbox.js +15 -3
  177. package/lib/module/components/checkbox/AnimatedCheckbox.js.map +1 -1
  178. package/lib/module/components/checkbox/AnimatedMessageCheckbox.js +13 -5
  179. package/lib/module/components/checkbox/AnimatedMessageCheckbox.js.map +1 -1
  180. package/lib/module/components/checkbox/CheckboxLabel.js +32 -9
  181. package/lib/module/components/checkbox/CheckboxLabel.js.map +1 -1
  182. package/lib/module/components/icons/Icon.js +27 -15
  183. package/lib/module/components/icons/Icon.js.map +1 -1
  184. package/lib/module/components/icons/IconContained.js +51 -0
  185. package/lib/module/components/icons/IconContained.js.map +1 -0
  186. package/lib/module/components/icons/index.js +1 -0
  187. package/lib/module/components/icons/index.js.map +1 -1
  188. package/lib/module/components/icons/svg/IconChange.js +23 -0
  189. package/lib/module/components/icons/svg/IconChange.js.map +1 -0
  190. package/lib/module/components/icons/svg/IconDialpad.js +21 -0
  191. package/lib/module/components/icons/svg/IconDialpad.js.map +1 -0
  192. package/lib/module/components/icons/svg/IconKey.js +23 -0
  193. package/lib/module/components/icons/svg/IconKey.js.map +1 -0
  194. package/lib/module/components/icons/svg/IconNotification.js +23 -0
  195. package/lib/module/components/icons/svg/IconNotification.js.map +1 -0
  196. package/lib/module/components/icons/svg/IconOption.js +23 -0
  197. package/lib/module/components/icons/svg/IconOption.js.map +1 -0
  198. package/lib/module/components/icons/svg/IconTransactions.js +1 -1
  199. package/lib/module/components/icons/svg/IconTransactions.js.map +1 -1
  200. package/lib/module/components/icons/svg/IconTransactionsBoxed.js +23 -0
  201. package/lib/module/components/icons/svg/IconTransactionsBoxed.js.map +1 -0
  202. package/lib/module/components/icons/svg/originals/IconChange.svg +3 -0
  203. package/lib/module/components/icons/svg/originals/IconDialpad.svg +5 -0
  204. package/lib/module/components/icons/svg/originals/IconKey.svg +7 -0
  205. package/lib/module/components/icons/svg/originals/IconNotification.svg +7 -0
  206. package/lib/module/components/icons/svg/originals/IconOption.svg +7 -0
  207. package/lib/module/components/icons/svg/originals/IconTransactions.svg +8 -0
  208. package/lib/module/components/icons/svg/originals/IconTransactionsBoxed.svg +8 -0
  209. package/lib/module/components/index.js +1 -0
  210. package/lib/module/components/index.js.map +1 -1
  211. package/lib/module/components/listitems/ListItemAction.js +40 -10
  212. package/lib/module/components/listitems/ListItemAction.js.map +1 -1
  213. package/lib/module/components/listitems/ListItemInfo.js +34 -10
  214. package/lib/module/components/listitems/ListItemInfo.js.map +1 -1
  215. package/lib/module/components/listitems/ListItemInfoCopy.js +43 -13
  216. package/lib/module/components/listitems/ListItemInfoCopy.js.map +1 -1
  217. package/lib/module/components/listitems/ListItemNav.js +34 -10
  218. package/lib/module/components/listitems/ListItemNav.js.map +1 -1
  219. package/lib/module/components/listitems/ListItemNavAlert.js +35 -10
  220. package/lib/module/components/listitems/ListItemNavAlert.js.map +1 -1
  221. package/lib/module/components/listitems/ListItemSwitch.js +2 -2
  222. package/lib/module/components/listitems/ListItemSwitch.js.map +1 -1
  223. package/lib/module/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +75 -108
  224. package/lib/module/components/listitems/__test__/listitem.test.js +1 -1
  225. package/lib/module/components/listitems/__test__/listitem.test.js.map +1 -1
  226. package/lib/module/components/listitems/index.js +1 -1
  227. package/lib/module/components/listitems/index.js.map +1 -1
  228. package/lib/module/components/{listitems/ListItemIDP.js → modules/ModuleIDP.js} +18 -11
  229. package/lib/module/components/modules/ModuleIDP.js.map +1 -0
  230. package/lib/module/components/modules/index.js +2 -0
  231. package/lib/module/components/modules/index.js.map +1 -0
  232. package/lib/module/components/pictograms/Pictogram.js +13 -1
  233. package/lib/module/components/pictograms/Pictogram.js.map +1 -1
  234. package/lib/module/components/pictograms/svg/PictogramBleedCie.js +39 -0
  235. package/lib/module/components/pictograms/svg/PictogramBleedCie.js.map +1 -0
  236. package/lib/module/components/pictograms/svg/PictogramBleedFeature.js +42 -0
  237. package/lib/module/components/pictograms/svg/PictogramBleedFeature.js.map +1 -0
  238. package/lib/module/components/pictograms/svg/PictogramBleedSecurity.js +36 -0
  239. package/lib/module/components/pictograms/svg/PictogramBleedSecurity.js.map +1 -0
  240. package/lib/module/components/pictograms/svg/PictogramCie.js +39 -0
  241. package/lib/module/components/pictograms/svg/PictogramCie.js.map +1 -0
  242. package/lib/module/components/pictograms/svg/PictogramFeature.js +42 -0
  243. package/lib/module/components/pictograms/svg/PictogramFeature.js.map +1 -0
  244. package/lib/module/components/pictograms/svg/PictogramSecurity.js +39 -0
  245. package/lib/module/components/pictograms/svg/PictogramSecurity.js.map +1 -0
  246. package/lib/module/components/pictograms/svg/originals/PictogramBleedCie.svg +30 -0
  247. package/lib/module/components/pictograms/svg/originals/PictogramBleedFeature.svg +34 -0
  248. package/lib/module/components/pictograms/svg/originals/PictogramBleedSecurity.svg +26 -0
  249. package/lib/module/components/pictograms/svg/originals/PictogramCie.svg +30 -0
  250. package/lib/module/components/pictograms/svg/originals/PictogramFeature.svg +34 -0
  251. package/lib/module/components/pictograms/svg/originals/PictogramSecurity.svg +30 -0
  252. package/lib/module/components/radio/AnimatedRadio.js +15 -3
  253. package/lib/module/components/radio/AnimatedRadio.js.map +1 -1
  254. package/lib/module/components/switch/NativeSwitch.js +20 -6
  255. package/lib/module/components/switch/NativeSwitch.js.map +1 -1
  256. package/lib/module/components/switch/SwitchLabel.js +32 -9
  257. package/lib/module/components/switch/SwitchLabel.js.map +1 -1
  258. package/lib/module/components/tag/Tag.js +12 -4
  259. package/lib/module/components/tag/Tag.js.map +1 -1
  260. package/lib/module/components/textInput/TextInputBase.js +12 -3
  261. package/lib/module/components/textInput/TextInputBase.js.map +1 -1
  262. package/lib/module/components/typography/Body.js +1 -4
  263. package/lib/module/components/typography/Body.js.map +1 -1
  264. package/lib/module/components/typography/BodyMonospace.js +21 -0
  265. package/lib/module/components/typography/BodyMonospace.js.map +1 -0
  266. package/lib/module/components/typography/ButtonText.js +31 -0
  267. package/lib/module/components/typography/ButtonText.js.map +1 -0
  268. package/lib/module/components/typography/Caption.js +29 -0
  269. package/lib/module/components/typography/Caption.js.map +1 -0
  270. package/lib/module/components/typography/Chip.js +27 -0
  271. package/lib/module/components/typography/Chip.js.map +1 -0
  272. package/lib/module/components/typography/H1.js +17 -12
  273. package/lib/module/components/typography/H1.js.map +1 -1
  274. package/lib/module/components/typography/H2.js +17 -12
  275. package/lib/module/components/typography/H2.js.map +1 -1
  276. package/lib/module/components/typography/H3.js +24 -18
  277. package/lib/module/components/typography/H3.js.map +1 -1
  278. package/lib/module/components/typography/H4.js +17 -13
  279. package/lib/module/components/typography/H4.js.map +1 -1
  280. package/lib/module/components/typography/H5.js +17 -31
  281. package/lib/module/components/typography/H5.js.map +1 -1
  282. package/lib/module/components/typography/H6.js +15 -11
  283. package/lib/module/components/typography/H6.js.map +1 -1
  284. package/lib/module/components/typography/Hero.js +29 -0
  285. package/lib/module/components/typography/Hero.js.map +1 -0
  286. package/lib/module/components/typography/Label.js +13 -10
  287. package/lib/module/components/typography/Label.js.map +1 -1
  288. package/lib/module/components/typography/LabelHeader.js +20 -17
  289. package/lib/module/components/typography/LabelHeader.js.map +1 -1
  290. package/lib/module/components/typography/{Link.js → LabelLink.js} +6 -11
  291. package/lib/module/components/typography/LabelLink.js.map +1 -0
  292. package/lib/module/components/typography/LabelSmall.js +18 -22
  293. package/lib/module/components/typography/LabelSmall.js.map +1 -1
  294. package/lib/module/components/typography/__test__/__snapshots__/typography.test.tsx.snap +195 -379
  295. package/lib/module/components/typography/__test__/typography.test.js +10 -42
  296. package/lib/module/components/typography/__test__/typography.test.js.map +1 -1
  297. package/lib/module/components/typography/common.js +15 -0
  298. package/lib/module/components/typography/common.js.map +1 -1
  299. package/lib/module/components/typography/index.js +6 -3
  300. package/lib/module/components/typography/index.js.map +1 -1
  301. package/lib/module/core/IOShapes.js +1 -1
  302. package/lib/module/core/IOShapes.js.map +1 -1
  303. package/lib/module/core/IOSpacing.js +4 -4
  304. package/lib/module/core/IOSpacing.js.map +1 -1
  305. package/lib/module/core/IOStyles.js +2 -8
  306. package/lib/module/core/IOStyles.js.map +1 -1
  307. package/lib/module/stories/Link.stories.js +2 -2
  308. package/lib/module/stories/Link.stories.js.map +1 -1
  309. package/lib/module/stories/Monospace.stories.js +2 -2
  310. package/lib/module/stories/Monospace.stories.js.map +1 -1
  311. package/lib/module/utils/fonts.js +8 -6
  312. package/lib/module/utils/fonts.js.map +1 -1
  313. package/lib/typescript/components/alert/Alert.d.ts.map +1 -1
  314. package/lib/typescript/components/badge/Badge.d.ts.map +1 -1
  315. package/lib/typescript/components/banner/Banner.d.ts.map +1 -1
  316. package/lib/typescript/components/buttons/ButtonLink.d.ts.map +1 -1
  317. package/lib/typescript/components/buttons/ButtonOutline.d.ts +2 -3
  318. package/lib/typescript/components/buttons/ButtonOutline.d.ts.map +1 -1
  319. package/lib/typescript/components/buttons/ButtonSolid.d.ts.map +1 -1
  320. package/lib/typescript/components/buttons/IconButtonSolid.d.ts.map +1 -1
  321. package/lib/typescript/components/checkbox/AnimatedCheckbox.d.ts.map +1 -1
  322. package/lib/typescript/components/checkbox/AnimatedMessageCheckbox.d.ts.map +1 -1
  323. package/lib/typescript/components/checkbox/CheckboxLabel.d.ts.map +1 -1
  324. package/lib/typescript/components/icons/Icon.d.ts +7 -1
  325. package/lib/typescript/components/icons/Icon.d.ts.map +1 -1
  326. package/lib/typescript/components/icons/IconContained.d.ts +10 -0
  327. package/lib/typescript/components/icons/IconContained.d.ts.map +1 -0
  328. package/lib/typescript/components/icons/index.d.ts +1 -0
  329. package/lib/typescript/components/icons/index.d.ts.map +1 -1
  330. package/lib/typescript/components/icons/svg/IconChange.d.ts +5 -0
  331. package/lib/typescript/components/icons/svg/IconChange.d.ts.map +1 -0
  332. package/lib/typescript/components/icons/svg/IconDialpad.d.ts +5 -0
  333. package/lib/typescript/components/icons/svg/IconDialpad.d.ts.map +1 -0
  334. package/lib/typescript/components/icons/svg/IconKey.d.ts +5 -0
  335. package/lib/typescript/components/icons/svg/IconKey.d.ts.map +1 -0
  336. package/lib/typescript/components/icons/svg/IconNotification.d.ts +5 -0
  337. package/lib/typescript/components/icons/svg/IconNotification.d.ts.map +1 -0
  338. package/lib/typescript/components/icons/svg/IconOption.d.ts +5 -0
  339. package/lib/typescript/components/icons/svg/IconOption.d.ts.map +1 -0
  340. package/lib/typescript/components/icons/svg/IconTransactionsBoxed.d.ts +5 -0
  341. package/lib/typescript/components/icons/svg/IconTransactionsBoxed.d.ts.map +1 -0
  342. package/lib/typescript/components/index.d.ts +1 -0
  343. package/lib/typescript/components/index.d.ts.map +1 -1
  344. package/lib/typescript/components/listitems/ListItemAction.d.ts.map +1 -1
  345. package/lib/typescript/components/listitems/ListItemInfo.d.ts.map +1 -1
  346. package/lib/typescript/components/listitems/ListItemInfoCopy.d.ts.map +1 -1
  347. package/lib/typescript/components/listitems/ListItemNav.d.ts.map +1 -1
  348. package/lib/typescript/components/listitems/ListItemNavAlert.d.ts.map +1 -1
  349. package/lib/typescript/components/listitems/ListItemSwitch.d.ts +1 -1
  350. package/lib/typescript/components/listitems/ListItemSwitch.d.ts.map +1 -1
  351. package/lib/typescript/components/listitems/index.d.ts +1 -1
  352. package/lib/typescript/components/listitems/index.d.ts.map +1 -1
  353. package/lib/typescript/components/{listitems/ListItemIDP.d.ts → modules/ModuleIDP.d.ts} +4 -4
  354. package/lib/typescript/components/modules/ModuleIDP.d.ts.map +1 -0
  355. package/lib/typescript/components/modules/index.d.ts +2 -0
  356. package/lib/typescript/components/modules/index.d.ts.map +1 -0
  357. package/lib/typescript/components/pictograms/Pictogram.d.ts +4 -1
  358. package/lib/typescript/components/pictograms/Pictogram.d.ts.map +1 -1
  359. package/lib/typescript/components/pictograms/svg/PictogramBleedCie.d.ts +5 -0
  360. package/lib/typescript/components/pictograms/svg/PictogramBleedCie.d.ts.map +1 -0
  361. package/lib/typescript/components/pictograms/svg/PictogramBleedFeature.d.ts +5 -0
  362. package/lib/typescript/components/pictograms/svg/PictogramBleedFeature.d.ts.map +1 -0
  363. package/lib/typescript/components/pictograms/svg/PictogramBleedSecurity.d.ts +5 -0
  364. package/lib/typescript/components/pictograms/svg/PictogramBleedSecurity.d.ts.map +1 -0
  365. package/lib/typescript/components/pictograms/svg/PictogramCie.d.ts +5 -0
  366. package/lib/typescript/components/pictograms/svg/PictogramCie.d.ts.map +1 -0
  367. package/lib/typescript/components/pictograms/svg/PictogramFeature.d.ts +5 -0
  368. package/lib/typescript/components/pictograms/svg/PictogramFeature.d.ts.map +1 -0
  369. package/lib/typescript/components/pictograms/svg/PictogramSecurity.d.ts +5 -0
  370. package/lib/typescript/components/pictograms/svg/PictogramSecurity.d.ts.map +1 -0
  371. package/lib/typescript/components/radio/AnimatedRadio.d.ts.map +1 -1
  372. package/lib/typescript/components/switch/NativeSwitch.d.ts.map +1 -1
  373. package/lib/typescript/components/switch/SwitchLabel.d.ts.map +1 -1
  374. package/lib/typescript/components/tag/Tag.d.ts.map +1 -1
  375. package/lib/typescript/components/textInput/TextInputBase.d.ts.map +1 -1
  376. package/lib/typescript/components/typography/Body.d.ts +4 -7
  377. package/lib/typescript/components/typography/Body.d.ts.map +1 -1
  378. package/lib/typescript/components/typography/BodyMonospace.d.ts +13 -0
  379. package/lib/typescript/components/typography/BodyMonospace.d.ts.map +1 -0
  380. package/lib/typescript/components/typography/ButtonText.d.ts +14 -0
  381. package/lib/typescript/components/typography/ButtonText.d.ts.map +1 -0
  382. package/lib/typescript/components/typography/Caption.d.ts +14 -0
  383. package/lib/typescript/components/typography/Caption.d.ts.map +1 -0
  384. package/lib/typescript/components/typography/Chip.d.ts +13 -0
  385. package/lib/typescript/components/typography/Chip.d.ts.map +1 -0
  386. package/lib/typescript/components/typography/H1.d.ts +9 -15
  387. package/lib/typescript/components/typography/H1.d.ts.map +1 -1
  388. package/lib/typescript/components/typography/H2.d.ts +9 -15
  389. package/lib/typescript/components/typography/H2.d.ts.map +1 -1
  390. package/lib/typescript/components/typography/H3.d.ts +7 -10
  391. package/lib/typescript/components/typography/H3.d.ts.map +1 -1
  392. package/lib/typescript/components/typography/H4.d.ts +8 -11
  393. package/lib/typescript/components/typography/H4.d.ts.map +1 -1
  394. package/lib/typescript/components/typography/H5.d.ts +9 -24
  395. package/lib/typescript/components/typography/H5.d.ts.map +1 -1
  396. package/lib/typescript/components/typography/H6.d.ts +7 -12
  397. package/lib/typescript/components/typography/H6.d.ts.map +1 -1
  398. package/lib/typescript/components/typography/Hero.d.ts +15 -0
  399. package/lib/typescript/components/typography/Hero.d.ts.map +1 -0
  400. package/lib/typescript/components/typography/Label.d.ts +8 -9
  401. package/lib/typescript/components/typography/Label.d.ts.map +1 -1
  402. package/lib/typescript/components/typography/LabelHeader.d.ts +4 -7
  403. package/lib/typescript/components/typography/LabelHeader.d.ts.map +1 -1
  404. package/lib/typescript/components/typography/LabelLink.d.ts +18 -0
  405. package/lib/typescript/components/typography/LabelLink.d.ts.map +1 -0
  406. package/lib/typescript/components/typography/LabelSmall.d.ts +4 -7
  407. package/lib/typescript/components/typography/LabelSmall.d.ts.map +1 -1
  408. package/lib/typescript/components/typography/common.d.ts +6 -0
  409. package/lib/typescript/components/typography/common.d.ts.map +1 -1
  410. package/lib/typescript/components/typography/index.d.ts +6 -3
  411. package/lib/typescript/components/typography/index.d.ts.map +1 -1
  412. package/lib/typescript/core/IOShapes.d.ts +1 -1
  413. package/lib/typescript/core/IOShapes.d.ts.map +1 -1
  414. package/lib/typescript/core/IOSpacing.d.ts +5 -5
  415. package/lib/typescript/core/IOSpacing.d.ts.map +1 -1
  416. package/lib/typescript/core/IOStyles.d.ts +1 -6
  417. package/lib/typescript/core/IOStyles.d.ts.map +1 -1
  418. package/lib/typescript/stories/H1.stories.d.ts +2 -2
  419. package/lib/typescript/stories/H2.stories.d.ts +2 -2
  420. package/lib/typescript/stories/H3.stories.d.ts +2 -2
  421. package/lib/typescript/stories/H4.stories.d.ts +2 -2
  422. package/lib/typescript/stories/H5.stories.d.ts +2 -10
  423. package/lib/typescript/stories/H5.stories.d.ts.map +1 -1
  424. package/lib/typescript/stories/H6.stories.d.ts +2 -2
  425. package/lib/typescript/stories/Label.stories.d.ts +4 -2
  426. package/lib/typescript/stories/Label.stories.d.ts.map +1 -1
  427. package/lib/typescript/stories/LabelSmall.stories.d.ts +2 -2
  428. package/lib/typescript/stories/Link.stories.d.ts +3 -3
  429. package/lib/typescript/stories/Link.stories.d.ts.map +1 -1
  430. package/lib/typescript/stories/Monospace.stories.d.ts +2 -2
  431. package/lib/typescript/stories/Monospace.stories.d.ts.map +1 -1
  432. package/lib/typescript/utils/fonts.d.ts +3 -3
  433. package/lib/typescript/utils/fonts.d.ts.map +1 -1
  434. package/package.json +1 -1
  435. package/src/components/alert/Alert.tsx +7 -1
  436. package/src/components/badge/Badge.tsx +30 -19
  437. package/src/components/badge/__test__/__snapshots__/badge.test.tsx.snap +5 -3
  438. package/src/components/banner/Banner.tsx +1 -3
  439. package/src/components/banner/__test__/__snapshots__/banner.test.tsx.snap +5 -5
  440. package/src/components/buttons/ButtonExtendedOutline.tsx +2 -2
  441. package/src/components/buttons/ButtonLink.tsx +3 -2
  442. package/src/components/buttons/ButtonOutline.tsx +6 -53
  443. package/src/components/buttons/ButtonSolid.tsx +8 -17
  444. package/src/components/buttons/IconButtonSolid.tsx +43 -13
  445. package/src/components/buttons/__test__/__snapshots__/button.test.tsx.snap +23 -21
  446. package/src/components/checkbox/AnimatedCheckbox.tsx +26 -5
  447. package/src/components/checkbox/AnimatedMessageCheckbox.tsx +20 -10
  448. package/src/components/checkbox/CheckboxLabel.tsx +33 -6
  449. package/src/components/icons/Icon.tsx +27 -15
  450. package/src/components/icons/IconContained.tsx +76 -0
  451. package/src/components/icons/index.tsx +1 -0
  452. package/src/components/icons/svg/IconChange.tsx +16 -0
  453. package/src/components/icons/svg/IconDialpad.tsx +14 -0
  454. package/src/components/icons/svg/IconKey.tsx +16 -0
  455. package/src/components/icons/svg/IconNotification.tsx +16 -0
  456. package/src/components/icons/svg/IconOption.tsx +16 -0
  457. package/src/components/icons/svg/IconTransactions.tsx +1 -1
  458. package/src/components/icons/svg/IconTransactionsBoxed.tsx +16 -0
  459. package/src/components/icons/svg/originals/IconChange.svg +3 -0
  460. package/src/components/icons/svg/originals/IconDialpad.svg +5 -0
  461. package/src/components/icons/svg/originals/IconKey.svg +7 -0
  462. package/src/components/icons/svg/originals/IconNotification.svg +7 -0
  463. package/src/components/icons/svg/originals/IconOption.svg +7 -0
  464. package/src/components/icons/svg/originals/IconTransactions.svg +8 -0
  465. package/src/components/icons/svg/originals/IconTransactionsBoxed.svg +8 -0
  466. package/src/components/index.tsx +1 -0
  467. package/src/components/listitems/ListItemAction.tsx +53 -11
  468. package/src/components/listitems/ListItemInfo.tsx +55 -11
  469. package/src/components/listitems/ListItemInfoCopy.tsx +67 -18
  470. package/src/components/listitems/ListItemNav.tsx +60 -12
  471. package/src/components/listitems/ListItemNavAlert.tsx +50 -9
  472. package/src/components/listitems/ListItemSwitch.tsx +4 -4
  473. package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +75 -108
  474. package/src/components/listitems/__test__/listitem.test.tsx +1 -1
  475. package/src/components/listitems/index.tsx +1 -1
  476. package/src/components/{listitems/ListItemIDP.tsx → modules/ModuleIDP.tsx} +29 -16
  477. package/src/components/modules/index.tsx +1 -0
  478. package/src/components/pictograms/Pictogram.tsx +14 -2
  479. package/src/components/pictograms/svg/PictogramBleedCie.tsx +38 -0
  480. package/src/components/pictograms/svg/PictogramBleedFeature.tsx +46 -0
  481. package/src/components/pictograms/svg/PictogramBleedSecurity.tsx +38 -0
  482. package/src/components/pictograms/svg/PictogramCie.tsx +38 -0
  483. package/src/components/pictograms/svg/PictogramFeature.tsx +42 -0
  484. package/src/components/pictograms/svg/PictogramSecurity.tsx +38 -0
  485. package/src/components/pictograms/svg/originals/PictogramBleedCie.svg +30 -0
  486. package/src/components/pictograms/svg/originals/PictogramBleedFeature.svg +34 -0
  487. package/src/components/pictograms/svg/originals/PictogramBleedSecurity.svg +26 -0
  488. package/src/components/pictograms/svg/originals/PictogramCie.svg +30 -0
  489. package/src/components/pictograms/svg/originals/PictogramFeature.svg +34 -0
  490. package/src/components/pictograms/svg/originals/PictogramSecurity.svg +30 -0
  491. package/src/components/radio/AnimatedRadio.tsx +26 -5
  492. package/src/components/switch/NativeSwitch.tsx +35 -13
  493. package/src/components/switch/SwitchLabel.tsx +33 -6
  494. package/src/components/tag/Tag.tsx +39 -24
  495. package/src/components/textInput/TextInputBase.tsx +20 -3
  496. package/src/components/typography/Body.tsx +3 -7
  497. package/src/components/typography/BodyMonospace.tsx +29 -0
  498. package/src/components/typography/ButtonText.tsx +45 -0
  499. package/src/components/typography/Caption.tsx +37 -0
  500. package/src/components/typography/Chip.tsx +33 -0
  501. package/src/components/typography/H1.tsx +20 -29
  502. package/src/components/typography/H2.tsx +20 -29
  503. package/src/components/typography/H3.tsx +21 -20
  504. package/src/components/typography/H4.tsx +19 -20
  505. package/src/components/typography/H5.tsx +22 -54
  506. package/src/components/typography/H6.tsx +17 -15
  507. package/src/components/typography/Hero.tsx +34 -0
  508. package/src/components/typography/Label.tsx +23 -21
  509. package/src/components/typography/LabelHeader.tsx +12 -12
  510. package/src/components/typography/{Link.tsx → LabelLink.tsx} +15 -12
  511. package/src/components/typography/LabelSmall.tsx +13 -14
  512. package/src/components/typography/__test__/__snapshots__/typography.test.tsx.snap +195 -379
  513. package/src/components/typography/__test__/typography.test.tsx +12 -50
  514. package/src/components/typography/common.tsx +16 -0
  515. package/src/components/typography/index.tsx +6 -3
  516. package/src/core/IOShapes.ts +1 -1
  517. package/src/core/IOSpacing.ts +6 -6
  518. package/src/core/IOStyles.ts +3 -8
  519. package/src/stories/Link.stories.ts +5 -5
  520. package/src/stories/Monospace.stories.ts +5 -5
  521. package/src/utils/fonts.ts +8 -6
  522. package/lib/commonjs/components/listitems/ListItemIDP.js.map +0 -1
  523. package/lib/commonjs/components/typography/CTA.js +0 -34
  524. package/lib/commonjs/components/typography/CTA.js.map +0 -1
  525. package/lib/commonjs/components/typography/Link.js.map +0 -1
  526. package/lib/commonjs/components/typography/Monospace.js +0 -30
  527. package/lib/commonjs/components/typography/Monospace.js.map +0 -1
  528. package/lib/module/components/listitems/ListItemIDP.js.map +0 -1
  529. package/lib/module/components/typography/CTA.js +0 -27
  530. package/lib/module/components/typography/CTA.js.map +0 -1
  531. package/lib/module/components/typography/Link.js.map +0 -1
  532. package/lib/module/components/typography/Monospace.js +0 -23
  533. package/lib/module/components/typography/Monospace.js.map +0 -1
  534. package/lib/typescript/components/listitems/ListItemIDP.d.ts.map +0 -1
  535. package/lib/typescript/components/typography/CTA.d.ts +0 -16
  536. package/lib/typescript/components/typography/CTA.d.ts.map +0 -1
  537. package/lib/typescript/components/typography/Link.d.ts +0 -22
  538. package/lib/typescript/components/typography/Link.d.ts.map +0 -1
  539. package/lib/typescript/components/typography/Monospace.d.ts +0 -16
  540. package/lib/typescript/components/typography/Monospace.d.ts.map +0 -1
  541. package/src/components/typography/CTA.tsx +0 -35
  542. package/src/components/typography/Monospace.tsx +0 -34
@@ -1,34 +0,0 @@
1
- import React from "react";
2
- import type { IOColors } from "../../core/IOColors";
3
- import { FontFamily, IOFontWeight } from "../../utils/fonts";
4
- import { useTypographyFactory } from "./Factory";
5
- import { ExternalTypographyProps, TypographyProps } from "./common";
6
-
7
- type AllowedColors = Extract<IOColors, "bluegreyDark" | "bluegrey">;
8
- type AllowedWeight = Extract<IOFontWeight, "Regular" | "SemiBold" | "Bold">;
9
-
10
- type OwnProps = ExternalTypographyProps<
11
- TypographyProps<AllowedWeight, AllowedColors>
12
- >;
13
-
14
- /**
15
- * Typography component to render `Monospace` text with font size {@link fontSize} and fontFamily {@link fontName}.
16
- * default values(if not defined) are weight: `Regular`, color: `bluegrey`
17
- * @param props`
18
- * @constructor
19
- */
20
- export const Monospace: React.FC<OwnProps> = props => {
21
- const fontName: FontFamily = "RobotoMono";
22
- const fontSize = 16;
23
-
24
- const monospaceDefaultWeight = "Regular";
25
- const monospaceDefaultcolor = "bluegrey";
26
-
27
- return useTypographyFactory<AllowedWeight, AllowedColors>({
28
- ...props,
29
- defaultWeight: monospaceDefaultWeight,
30
- defaultColor: monospaceDefaultcolor,
31
- font: fontName,
32
- fontStyle: { fontSize }
33
- });
34
- };