@pagopa/io-app-design-system 1.4.0 → 1.6.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 (387) hide show
  1. package/README.md +10 -0
  2. package/lib/commonjs/components/alert/Alert.js +1 -1
  3. package/lib/commonjs/components/alert/Alert.js.map +1 -1
  4. package/lib/commonjs/components/banner/Banner.js +1 -1
  5. package/lib/commonjs/components/banner/Banner.js.map +1 -1
  6. package/lib/commonjs/components/buttons/ButtonExtendedOutline.js +1 -1
  7. package/lib/commonjs/components/buttons/ButtonExtendedOutline.js.map +1 -1
  8. package/lib/commonjs/components/buttons/ButtonLink.js +6 -6
  9. package/lib/commonjs/components/buttons/ButtonLink.js.map +1 -1
  10. package/lib/commonjs/components/buttons/ButtonOutline.js +10 -10
  11. package/lib/commonjs/components/buttons/ButtonOutline.js.map +1 -1
  12. package/lib/commonjs/components/buttons/ButtonSolid.js +5 -5
  13. package/lib/commonjs/components/buttons/ButtonSolid.js.map +1 -1
  14. package/lib/commonjs/components/buttons/IconButton.js +4 -4
  15. package/lib/commonjs/components/buttons/IconButton.js.map +1 -1
  16. package/lib/commonjs/components/buttons/IconButtonContained.js +4 -4
  17. package/lib/commonjs/components/buttons/IconButtonContained.js.map +1 -1
  18. package/lib/commonjs/components/buttons/IconButtonSolid.js +5 -5
  19. package/lib/commonjs/components/buttons/IconButtonSolid.js.map +1 -1
  20. package/lib/commonjs/components/index.js +11 -0
  21. package/lib/commonjs/components/index.js.map +1 -1
  22. package/lib/commonjs/components/layout/BlockButtons.js +82 -0
  23. package/lib/commonjs/components/layout/BlockButtons.js.map +1 -0
  24. package/lib/commonjs/components/layout/FooterWithButtons.js +41 -0
  25. package/lib/commonjs/components/layout/FooterWithButtons.js.map +1 -0
  26. package/lib/commonjs/components/layout/index.js +11 -0
  27. package/lib/commonjs/components/layout/index.js.map +1 -1
  28. package/lib/commonjs/components/listitems/ListItemAction.js +1 -1
  29. package/lib/commonjs/components/listitems/ListItemAction.js.map +1 -1
  30. package/lib/commonjs/components/listitems/ListItemCheckbox.js +1 -1
  31. package/lib/commonjs/components/listitems/ListItemCheckbox.js.map +1 -1
  32. package/lib/commonjs/components/listitems/ListItemIDP.js +1 -1
  33. package/lib/commonjs/components/listitems/ListItemIDP.js.map +1 -1
  34. package/lib/commonjs/components/listitems/ListItemInfoCopy.js +1 -1
  35. package/lib/commonjs/components/listitems/ListItemInfoCopy.js.map +1 -1
  36. package/lib/commonjs/components/listitems/ListItemNav.js +1 -1
  37. package/lib/commonjs/components/listitems/ListItemNav.js.map +1 -1
  38. package/lib/commonjs/components/listitems/ListItemNavAlert.js +1 -1
  39. package/lib/commonjs/components/listitems/ListItemNavAlert.js.map +1 -1
  40. package/lib/commonjs/components/listitems/ListItemRadio.js +1 -1
  41. package/lib/commonjs/components/listitems/ListItemRadio.js.map +1 -1
  42. package/lib/commonjs/components/listitems/hooks/useListItemSpringAnimation.js +1 -1
  43. package/lib/commonjs/components/listitems/hooks/useListItemSpringAnimation.js.map +1 -1
  44. package/lib/commonjs/components/logos/LogoPayment.js +0 -2
  45. package/lib/commonjs/components/logos/LogoPayment.js.map +1 -1
  46. package/lib/commonjs/components/logos/LogoPaymentExt.js +0 -2
  47. package/lib/commonjs/components/logos/LogoPaymentExt.js.map +1 -1
  48. package/lib/commonjs/components/pictograms/Pictogram.js +6 -4
  49. package/lib/commonjs/components/pictograms/Pictogram.js.map +1 -1
  50. package/lib/commonjs/components/pictograms/README.md +4 -11
  51. package/lib/commonjs/components/pictograms/index.js +1 -22
  52. package/lib/commonjs/components/pictograms/index.js.map +1 -1
  53. package/lib/commonjs/components/pictograms/svg/{PictogramSectionMessages.js → PictogramMessages.js} +3 -3
  54. package/lib/commonjs/components/pictograms/svg/PictogramMessages.js.map +1 -0
  55. package/lib/commonjs/components/tabs/TabItem.js +1 -1
  56. package/lib/commonjs/components/tabs/TabItem.js.map +1 -1
  57. package/lib/commonjs/components/tabs/TabNavigation.js +2 -2
  58. package/lib/commonjs/components/tabs/TabNavigation.js.map +1 -1
  59. package/lib/commonjs/components/textInput/TextInputBase.js +5 -5
  60. package/lib/commonjs/components/textInput/TextInputBase.js.map +1 -1
  61. package/lib/commonjs/components/textInput/TextInputPassword.js +1 -1
  62. package/lib/commonjs/components/textInput/TextInputPassword.js.map +1 -1
  63. package/lib/commonjs/components/textInput/TextInputValidation.js +2 -2
  64. package/lib/commonjs/components/textInput/TextInputValidation.js.map +1 -1
  65. package/lib/commonjs/stories/ButtonDS.stories.js +34 -0
  66. package/lib/commonjs/stories/ButtonDS.stories.js.map +1 -0
  67. package/lib/commonjs/stories/H1.stories.js +33 -0
  68. package/lib/commonjs/stories/H1.stories.js.map +1 -0
  69. package/lib/commonjs/stories/H2.stories.js +33 -0
  70. package/lib/commonjs/stories/H2.stories.js.map +1 -0
  71. package/lib/commonjs/stories/H3.stories.js +33 -0
  72. package/lib/commonjs/stories/H3.stories.js.map +1 -0
  73. package/lib/commonjs/stories/H4.stories.js +33 -0
  74. package/lib/commonjs/stories/H4.stories.js.map +1 -0
  75. package/lib/commonjs/stories/H5.stories.js +33 -0
  76. package/lib/commonjs/stories/H5.stories.js.map +1 -0
  77. package/lib/commonjs/stories/H6.stories.js +33 -0
  78. package/lib/commonjs/stories/H6.stories.js.map +1 -0
  79. package/lib/commonjs/stories/Label.stories.js +33 -0
  80. package/lib/commonjs/stories/Label.stories.js.map +1 -0
  81. package/lib/commonjs/stories/LabelSmall.stories.js +33 -0
  82. package/lib/commonjs/stories/LabelSmall.stories.js.map +1 -0
  83. package/lib/commonjs/stories/Link.stories.js +33 -0
  84. package/lib/commonjs/stories/Link.stories.js.map +1 -0
  85. package/lib/commonjs/stories/Monospace.stories.js +33 -0
  86. package/lib/commonjs/stories/Monospace.stories.js.map +1 -0
  87. package/lib/commonjs/utils/fonts.js +13 -4
  88. package/lib/commonjs/utils/fonts.js.map +1 -1
  89. package/lib/module/components/alert/Alert.js +1 -1
  90. package/lib/module/components/alert/Alert.js.map +1 -1
  91. package/lib/module/components/banner/Banner.js +1 -1
  92. package/lib/module/components/banner/Banner.js.map +1 -1
  93. package/lib/module/components/buttons/ButtonExtendedOutline.js +1 -1
  94. package/lib/module/components/buttons/ButtonExtendedOutline.js.map +1 -1
  95. package/lib/module/components/buttons/ButtonLink.js +6 -6
  96. package/lib/module/components/buttons/ButtonLink.js.map +1 -1
  97. package/lib/module/components/buttons/ButtonOutline.js +10 -10
  98. package/lib/module/components/buttons/ButtonOutline.js.map +1 -1
  99. package/lib/module/components/buttons/ButtonSolid.js +5 -5
  100. package/lib/module/components/buttons/ButtonSolid.js.map +1 -1
  101. package/lib/module/components/buttons/IconButton.js +4 -4
  102. package/lib/module/components/buttons/IconButton.js.map +1 -1
  103. package/lib/module/components/buttons/IconButtonContained.js +4 -4
  104. package/lib/module/components/buttons/IconButtonContained.js.map +1 -1
  105. package/lib/module/components/buttons/IconButtonSolid.js +5 -5
  106. package/lib/module/components/buttons/IconButtonSolid.js.map +1 -1
  107. package/lib/module/components/index.js +1 -0
  108. package/lib/module/components/index.js.map +1 -1
  109. package/lib/module/components/layout/BlockButtons.js +73 -0
  110. package/lib/module/components/layout/BlockButtons.js.map +1 -0
  111. package/lib/module/components/layout/FooterWithButtons.js +32 -0
  112. package/lib/module/components/layout/FooterWithButtons.js.map +1 -0
  113. package/lib/module/components/layout/index.js +1 -0
  114. package/lib/module/components/layout/index.js.map +1 -1
  115. package/lib/module/components/listitems/ListItemAction.js +1 -1
  116. package/lib/module/components/listitems/ListItemAction.js.map +1 -1
  117. package/lib/module/components/listitems/ListItemCheckbox.js +1 -1
  118. package/lib/module/components/listitems/ListItemCheckbox.js.map +1 -1
  119. package/lib/module/components/listitems/ListItemIDP.js +1 -1
  120. package/lib/module/components/listitems/ListItemIDP.js.map +1 -1
  121. package/lib/module/components/listitems/ListItemInfoCopy.js +1 -1
  122. package/lib/module/components/listitems/ListItemInfoCopy.js.map +1 -1
  123. package/lib/module/components/listitems/ListItemNav.js +1 -1
  124. package/lib/module/components/listitems/ListItemNav.js.map +1 -1
  125. package/lib/module/components/listitems/ListItemNavAlert.js +1 -1
  126. package/lib/module/components/listitems/ListItemNavAlert.js.map +1 -1
  127. package/lib/module/components/listitems/ListItemRadio.js +1 -1
  128. package/lib/module/components/listitems/ListItemRadio.js.map +1 -1
  129. package/lib/module/components/listitems/hooks/useListItemSpringAnimation.js +1 -1
  130. package/lib/module/components/listitems/hooks/useListItemSpringAnimation.js.map +1 -1
  131. package/lib/module/components/logos/LogoPayment.js +0 -2
  132. package/lib/module/components/logos/LogoPayment.js.map +1 -1
  133. package/lib/module/components/logos/LogoPaymentExt.js +0 -2
  134. package/lib/module/components/logos/LogoPaymentExt.js.map +1 -1
  135. package/lib/module/components/pictograms/Pictogram.js +6 -4
  136. package/lib/module/components/pictograms/Pictogram.js.map +1 -1
  137. package/lib/module/components/pictograms/README.md +4 -11
  138. package/lib/module/components/pictograms/index.js +0 -2
  139. package/lib/module/components/pictograms/index.js.map +1 -1
  140. package/lib/module/components/pictograms/svg/{PictogramSectionMessages.js → PictogramMessages.js} +3 -3
  141. package/lib/module/components/pictograms/svg/PictogramMessages.js.map +1 -0
  142. package/lib/module/components/tabs/TabItem.js +1 -1
  143. package/lib/module/components/tabs/TabItem.js.map +1 -1
  144. package/lib/module/components/tabs/TabNavigation.js +2 -2
  145. package/lib/module/components/tabs/TabNavigation.js.map +1 -1
  146. package/lib/module/components/textInput/TextInputBase.js +5 -5
  147. package/lib/module/components/textInput/TextInputBase.js.map +1 -1
  148. package/lib/module/components/textInput/TextInputPassword.js +1 -1
  149. package/lib/module/components/textInput/TextInputPassword.js.map +1 -1
  150. package/lib/module/components/textInput/TextInputValidation.js +2 -2
  151. package/lib/module/components/textInput/TextInputValidation.js.map +1 -1
  152. package/lib/module/stories/ButtonDS.stories.js +27 -0
  153. package/lib/module/stories/ButtonDS.stories.js.map +1 -0
  154. package/lib/module/stories/H1.stories.js +26 -0
  155. package/lib/module/stories/H1.stories.js.map +1 -0
  156. package/lib/module/stories/H2.stories.js +26 -0
  157. package/lib/module/stories/H2.stories.js.map +1 -0
  158. package/lib/module/stories/H3.stories.js +26 -0
  159. package/lib/module/stories/H3.stories.js.map +1 -0
  160. package/lib/module/stories/H4.stories.js +26 -0
  161. package/lib/module/stories/H4.stories.js.map +1 -0
  162. package/lib/module/stories/H5.stories.js +26 -0
  163. package/lib/module/stories/H5.stories.js.map +1 -0
  164. package/lib/module/stories/H6.stories.js +26 -0
  165. package/lib/module/stories/H6.stories.js.map +1 -0
  166. package/lib/module/stories/Label.stories.js +26 -0
  167. package/lib/module/stories/Label.stories.js.map +1 -0
  168. package/lib/module/stories/LabelSmall.stories.js +26 -0
  169. package/lib/module/stories/LabelSmall.stories.js.map +1 -0
  170. package/lib/module/stories/Link.stories.js +26 -0
  171. package/lib/module/stories/Link.stories.js.map +1 -0
  172. package/lib/module/stories/Monospace.stories.js +26 -0
  173. package/lib/module/stories/Monospace.stories.js.map +1 -0
  174. package/lib/module/utils/fonts.js +13 -4
  175. package/lib/module/utils/fonts.js.map +1 -1
  176. package/lib/typescript/components/buttons/ButtonSolid.d.ts +16 -0
  177. package/lib/typescript/components/buttons/ButtonSolid.d.ts.map +1 -1
  178. package/lib/typescript/components/index.d.ts +1 -0
  179. package/lib/typescript/components/index.d.ts.map +1 -1
  180. package/lib/typescript/components/layout/BlockButtons.d.ts +53 -0
  181. package/lib/typescript/components/layout/BlockButtons.d.ts.map +1 -0
  182. package/lib/typescript/components/layout/FooterWithButtons.d.ts +9 -0
  183. package/lib/typescript/components/layout/FooterWithButtons.d.ts.map +1 -0
  184. package/lib/typescript/components/layout/index.d.ts +1 -0
  185. package/lib/typescript/components/layout/index.d.ts.map +1 -1
  186. package/lib/typescript/components/logos/LogoPayment.d.ts +0 -1
  187. package/lib/typescript/components/logos/LogoPayment.d.ts.map +1 -1
  188. package/lib/typescript/components/logos/LogoPaymentExt.d.ts +0 -1
  189. package/lib/typescript/components/logos/LogoPaymentExt.d.ts.map +1 -1
  190. package/lib/typescript/components/pictograms/Pictogram.d.ts +1 -0
  191. package/lib/typescript/components/pictograms/Pictogram.d.ts.map +1 -1
  192. package/lib/typescript/components/pictograms/index.d.ts +0 -2
  193. package/lib/typescript/components/pictograms/index.d.ts.map +1 -1
  194. package/lib/typescript/components/pictograms/svg/PictogramMessages.d.ts +5 -0
  195. package/lib/typescript/components/pictograms/svg/PictogramMessages.d.ts.map +1 -0
  196. package/lib/typescript/components/textInput/TextInputBase.d.ts.map +1 -1
  197. package/lib/typescript/stories/ButtonDS.stories.d.ts +14 -0
  198. package/lib/typescript/stories/ButtonDS.stories.d.ts.map +1 -0
  199. package/lib/typescript/stories/H1.stories.d.ts +19 -0
  200. package/lib/typescript/stories/H1.stories.d.ts.map +1 -0
  201. package/lib/typescript/stories/H2.stories.d.ts +19 -0
  202. package/lib/typescript/stories/H2.stories.d.ts.map +1 -0
  203. package/lib/typescript/stories/H3.stories.d.ts +19 -0
  204. package/lib/typescript/stories/H3.stories.d.ts.map +1 -0
  205. package/lib/typescript/stories/H4.stories.d.ts +19 -0
  206. package/lib/typescript/stories/H4.stories.d.ts.map +1 -0
  207. package/lib/typescript/stories/H5.stories.d.ts +27 -0
  208. package/lib/typescript/stories/H5.stories.d.ts.map +1 -0
  209. package/lib/typescript/stories/H6.stories.d.ts +19 -0
  210. package/lib/typescript/stories/H6.stories.d.ts.map +1 -0
  211. package/lib/typescript/stories/Label.stories.d.ts +19 -0
  212. package/lib/typescript/stories/Label.stories.d.ts.map +1 -0
  213. package/lib/typescript/stories/LabelSmall.stories.d.ts +21 -0
  214. package/lib/typescript/stories/LabelSmall.stories.d.ts.map +1 -0
  215. package/lib/typescript/stories/Link.stories.d.ts +21 -0
  216. package/lib/typescript/stories/Link.stories.d.ts.map +1 -0
  217. package/lib/typescript/stories/Monospace.stories.d.ts +19 -0
  218. package/lib/typescript/stories/Monospace.stories.d.ts.map +1 -0
  219. package/lib/typescript/utils/fonts.d.ts.map +1 -1
  220. package/package.json +25 -4
  221. package/src/components/buttons/ButtonSolid.tsx +16 -0
  222. package/src/components/index.tsx +1 -0
  223. package/src/components/layout/BlockButtons.tsx +142 -0
  224. package/src/components/layout/FooterWithButtons.tsx +37 -0
  225. package/src/components/layout/index.tsx +1 -0
  226. package/src/components/logos/LogoPayment.tsx +0 -2
  227. package/src/components/logos/LogoPaymentExt.tsx +0 -2
  228. package/src/components/pictograms/Pictogram.tsx +6 -4
  229. package/src/components/pictograms/README.md +4 -11
  230. package/src/components/pictograms/index.tsx +0 -2
  231. package/src/components/pictograms/svg/{PictogramSectionMessages.tsx → PictogramMessages.tsx} +2 -6
  232. package/src/components/textInput/TextInputBase.tsx +2 -2
  233. package/src/stories/ButtonDS.stories.ts +31 -0
  234. package/src/stories/H1.stories.ts +28 -0
  235. package/src/stories/H2.stories.ts +28 -0
  236. package/src/stories/H3.stories.ts +28 -0
  237. package/src/stories/H4.stories.ts +28 -0
  238. package/src/stories/H5.stories.ts +28 -0
  239. package/src/stories/H6.stories.ts +28 -0
  240. package/src/stories/Label.stories.ts +28 -0
  241. package/src/stories/LabelSmall.stories.ts +28 -0
  242. package/src/stories/Link.stories.ts +28 -0
  243. package/src/stories/Monospace.stories.ts +28 -0
  244. package/src/utils/fonts.ts +12 -5
  245. package/lib/commonjs/components/logos/svg/LogoPaymentExtSatispay.js +0 -38
  246. package/lib/commonjs/components/logos/svg/LogoPaymentExtSatispay.js.map +0 -1
  247. package/lib/commonjs/components/logos/svg/LogoPaymentSatispay.js +0 -33
  248. package/lib/commonjs/components/logos/svg/LogoPaymentSatispay.js.map +0 -1
  249. package/lib/commonjs/components/logos/svg/originals/LogoPaymentExtSatispay.svg +0 -22
  250. package/lib/commonjs/components/logos/svg/originals/LogoPaymentSatispay.svg +0 -11
  251. package/lib/commonjs/components/pictograms/PictogramSection.js +0 -42
  252. package/lib/commonjs/components/pictograms/PictogramSection.js.map +0 -1
  253. package/lib/commonjs/components/pictograms/SectionPictogram.js +0 -44
  254. package/lib/commonjs/components/pictograms/SectionPictogram.js.map +0 -1
  255. package/lib/commonjs/components/pictograms/svg/PictogramSectionDocuments.js +0 -41
  256. package/lib/commonjs/components/pictograms/svg/PictogramSectionDocuments.js.map +0 -1
  257. package/lib/commonjs/components/pictograms/svg/PictogramSectionMessages.js.map +0 -1
  258. package/lib/commonjs/components/pictograms/svg/PictogramSectionPayments.js +0 -42
  259. package/lib/commonjs/components/pictograms/svg/PictogramSectionPayments.js.map +0 -1
  260. package/lib/commonjs/components/pictograms/svg/PictogramSectionProfile.js +0 -39
  261. package/lib/commonjs/components/pictograms/svg/PictogramSectionProfile.js.map +0 -1
  262. package/lib/commonjs/components/pictograms/svg/PictogramSectionServices.js +0 -45
  263. package/lib/commonjs/components/pictograms/svg/PictogramSectionServices.js.map +0 -1
  264. package/lib/commonjs/components/pictograms/svg/PictogramSectionSettings.js +0 -31
  265. package/lib/commonjs/components/pictograms/svg/PictogramSectionSettings.js.map +0 -1
  266. package/lib/commonjs/components/pictograms/svg/SectionPictogramDocuments.js +0 -41
  267. package/lib/commonjs/components/pictograms/svg/SectionPictogramDocuments.js.map +0 -1
  268. package/lib/commonjs/components/pictograms/svg/SectionPictogramMessages.js +0 -31
  269. package/lib/commonjs/components/pictograms/svg/SectionPictogramMessages.js.map +0 -1
  270. package/lib/commonjs/components/pictograms/svg/SectionPictogramPayments.js +0 -42
  271. package/lib/commonjs/components/pictograms/svg/SectionPictogramPayments.js.map +0 -1
  272. package/lib/commonjs/components/pictograms/svg/SectionPictogramProfile.js +0 -39
  273. package/lib/commonjs/components/pictograms/svg/SectionPictogramProfile.js.map +0 -1
  274. package/lib/commonjs/components/pictograms/svg/SectionPictogramServices.js +0 -45
  275. package/lib/commonjs/components/pictograms/svg/SectionPictogramServices.js.map +0 -1
  276. package/lib/commonjs/components/pictograms/svg/SectionPictogramSettings.js +0 -31
  277. package/lib/commonjs/components/pictograms/svg/SectionPictogramSettings.js.map +0 -1
  278. package/lib/commonjs/components/pictograms/svg/SectionPictogramSmile.js +0 -29
  279. package/lib/commonjs/components/pictograms/svg/SectionPictogramSmile.js.map +0 -1
  280. package/lib/commonjs/components/pictograms/svg/originals/SearchPictogram.svg +0 -22
  281. package/lib/commonjs/components/pictograms/svg/originals/SectionPictogramDocuments.svg +0 -20
  282. package/lib/commonjs/components/pictograms/svg/originals/SectionPictogramPayments.svg +0 -19
  283. package/lib/commonjs/components/pictograms/svg/originals/SectionPictogramProfile.svg +0 -18
  284. package/lib/commonjs/components/pictograms/svg/originals/SectionPictogramServices.svg +0 -26
  285. package/lib/commonjs/components/pictograms/svg/originals/SectionPictogramSettings.svg +0 -8
  286. package/lib/module/components/logos/svg/LogoPaymentExtSatispay.js +0 -30
  287. package/lib/module/components/logos/svg/LogoPaymentExtSatispay.js.map +0 -1
  288. package/lib/module/components/logos/svg/LogoPaymentSatispay.js +0 -25
  289. package/lib/module/components/logos/svg/LogoPaymentSatispay.js.map +0 -1
  290. package/lib/module/components/logos/svg/originals/LogoPaymentExtSatispay.svg +0 -22
  291. package/lib/module/components/logos/svg/originals/LogoPaymentSatispay.svg +0 -11
  292. package/lib/module/components/pictograms/PictogramSection.js +0 -34
  293. package/lib/module/components/pictograms/PictogramSection.js.map +0 -1
  294. package/lib/module/components/pictograms/SectionPictogram.js +0 -36
  295. package/lib/module/components/pictograms/SectionPictogram.js.map +0 -1
  296. package/lib/module/components/pictograms/svg/PictogramSectionDocuments.js +0 -33
  297. package/lib/module/components/pictograms/svg/PictogramSectionDocuments.js.map +0 -1
  298. package/lib/module/components/pictograms/svg/PictogramSectionMessages.js.map +0 -1
  299. package/lib/module/components/pictograms/svg/PictogramSectionPayments.js +0 -34
  300. package/lib/module/components/pictograms/svg/PictogramSectionPayments.js.map +0 -1
  301. package/lib/module/components/pictograms/svg/PictogramSectionProfile.js +0 -31
  302. package/lib/module/components/pictograms/svg/PictogramSectionProfile.js.map +0 -1
  303. package/lib/module/components/pictograms/svg/PictogramSectionServices.js +0 -37
  304. package/lib/module/components/pictograms/svg/PictogramSectionServices.js.map +0 -1
  305. package/lib/module/components/pictograms/svg/PictogramSectionSettings.js +0 -23
  306. package/lib/module/components/pictograms/svg/PictogramSectionSettings.js.map +0 -1
  307. package/lib/module/components/pictograms/svg/SectionPictogramDocuments.js +0 -33
  308. package/lib/module/components/pictograms/svg/SectionPictogramDocuments.js.map +0 -1
  309. package/lib/module/components/pictograms/svg/SectionPictogramMessages.js +0 -23
  310. package/lib/module/components/pictograms/svg/SectionPictogramMessages.js.map +0 -1
  311. package/lib/module/components/pictograms/svg/SectionPictogramPayments.js +0 -34
  312. package/lib/module/components/pictograms/svg/SectionPictogramPayments.js.map +0 -1
  313. package/lib/module/components/pictograms/svg/SectionPictogramProfile.js +0 -31
  314. package/lib/module/components/pictograms/svg/SectionPictogramProfile.js.map +0 -1
  315. package/lib/module/components/pictograms/svg/SectionPictogramServices.js +0 -37
  316. package/lib/module/components/pictograms/svg/SectionPictogramServices.js.map +0 -1
  317. package/lib/module/components/pictograms/svg/SectionPictogramSettings.js +0 -23
  318. package/lib/module/components/pictograms/svg/SectionPictogramSettings.js.map +0 -1
  319. package/lib/module/components/pictograms/svg/SectionPictogramSmile.js +0 -21
  320. package/lib/module/components/pictograms/svg/SectionPictogramSmile.js.map +0 -1
  321. package/lib/module/components/pictograms/svg/originals/SearchPictogram.svg +0 -22
  322. package/lib/module/components/pictograms/svg/originals/SectionPictogramDocuments.svg +0 -20
  323. package/lib/module/components/pictograms/svg/originals/SectionPictogramPayments.svg +0 -19
  324. package/lib/module/components/pictograms/svg/originals/SectionPictogramProfile.svg +0 -18
  325. package/lib/module/components/pictograms/svg/originals/SectionPictogramServices.svg +0 -26
  326. package/lib/module/components/pictograms/svg/originals/SectionPictogramSettings.svg +0 -8
  327. package/lib/typescript/components/logos/svg/LogoPaymentExtSatispay.d.ts +0 -5
  328. package/lib/typescript/components/logos/svg/LogoPaymentExtSatispay.d.ts.map +0 -1
  329. package/lib/typescript/components/logos/svg/LogoPaymentSatispay.d.ts +0 -5
  330. package/lib/typescript/components/logos/svg/LogoPaymentSatispay.d.ts.map +0 -1
  331. package/lib/typescript/components/pictograms/PictogramSection.d.ts +0 -20
  332. package/lib/typescript/components/pictograms/PictogramSection.d.ts.map +0 -1
  333. package/lib/typescript/components/pictograms/SectionPictogram.d.ts +0 -21
  334. package/lib/typescript/components/pictograms/SectionPictogram.d.ts.map +0 -1
  335. package/lib/typescript/components/pictograms/svg/PictogramSectionDocuments.d.ts +0 -5
  336. package/lib/typescript/components/pictograms/svg/PictogramSectionDocuments.d.ts.map +0 -1
  337. package/lib/typescript/components/pictograms/svg/PictogramSectionMessages.d.ts +0 -5
  338. package/lib/typescript/components/pictograms/svg/PictogramSectionMessages.d.ts.map +0 -1
  339. package/lib/typescript/components/pictograms/svg/PictogramSectionPayments.d.ts +0 -5
  340. package/lib/typescript/components/pictograms/svg/PictogramSectionPayments.d.ts.map +0 -1
  341. package/lib/typescript/components/pictograms/svg/PictogramSectionProfile.d.ts +0 -5
  342. package/lib/typescript/components/pictograms/svg/PictogramSectionProfile.d.ts.map +0 -1
  343. package/lib/typescript/components/pictograms/svg/PictogramSectionServices.d.ts +0 -5
  344. package/lib/typescript/components/pictograms/svg/PictogramSectionServices.d.ts.map +0 -1
  345. package/lib/typescript/components/pictograms/svg/PictogramSectionSettings.d.ts +0 -5
  346. package/lib/typescript/components/pictograms/svg/PictogramSectionSettings.d.ts.map +0 -1
  347. package/lib/typescript/components/pictograms/svg/SectionPictogramDocuments.d.ts +0 -5
  348. package/lib/typescript/components/pictograms/svg/SectionPictogramDocuments.d.ts.map +0 -1
  349. package/lib/typescript/components/pictograms/svg/SectionPictogramMessages.d.ts +0 -5
  350. package/lib/typescript/components/pictograms/svg/SectionPictogramMessages.d.ts.map +0 -1
  351. package/lib/typescript/components/pictograms/svg/SectionPictogramPayments.d.ts +0 -5
  352. package/lib/typescript/components/pictograms/svg/SectionPictogramPayments.d.ts.map +0 -1
  353. package/lib/typescript/components/pictograms/svg/SectionPictogramProfile.d.ts +0 -5
  354. package/lib/typescript/components/pictograms/svg/SectionPictogramProfile.d.ts.map +0 -1
  355. package/lib/typescript/components/pictograms/svg/SectionPictogramServices.d.ts +0 -5
  356. package/lib/typescript/components/pictograms/svg/SectionPictogramServices.d.ts.map +0 -1
  357. package/lib/typescript/components/pictograms/svg/SectionPictogramSettings.d.ts +0 -5
  358. package/lib/typescript/components/pictograms/svg/SectionPictogramSettings.d.ts.map +0 -1
  359. package/lib/typescript/components/pictograms/svg/SectionPictogramSmile.d.ts +0 -5
  360. package/lib/typescript/components/pictograms/svg/SectionPictogramSmile.d.ts.map +0 -1
  361. package/src/components/logos/svg/LogoPaymentExtSatispay.tsx +0 -30
  362. package/src/components/logos/svg/LogoPaymentSatispay.tsx +0 -19
  363. package/src/components/logos/svg/originals/LogoPaymentExtSatispay.svg +0 -22
  364. package/src/components/logos/svg/originals/LogoPaymentSatispay.svg +0 -11
  365. package/src/components/pictograms/PictogramSection.tsx +0 -42
  366. package/src/components/pictograms/SectionPictogram.tsx +0 -48
  367. package/src/components/pictograms/svg/PictogramSectionDocuments.tsx +0 -32
  368. package/src/components/pictograms/svg/PictogramSectionPayments.tsx +0 -31
  369. package/src/components/pictograms/svg/PictogramSectionProfile.tsx +0 -30
  370. package/src/components/pictograms/svg/PictogramSectionServices.tsx +0 -38
  371. package/src/components/pictograms/svg/PictogramSectionSettings.tsx +0 -20
  372. package/src/components/pictograms/svg/SectionPictogramDocuments.tsx +0 -32
  373. package/src/components/pictograms/svg/SectionPictogramMessages.tsx +0 -20
  374. package/src/components/pictograms/svg/SectionPictogramPayments.tsx +0 -31
  375. package/src/components/pictograms/svg/SectionPictogramProfile.tsx +0 -30
  376. package/src/components/pictograms/svg/SectionPictogramServices.tsx +0 -38
  377. package/src/components/pictograms/svg/SectionPictogramSettings.tsx +0 -20
  378. package/src/components/pictograms/svg/SectionPictogramSmile.tsx +0 -18
  379. package/src/components/pictograms/svg/originals/SearchPictogram.svg +0 -22
  380. package/src/components/pictograms/svg/originals/SectionPictogramDocuments.svg +0 -20
  381. package/src/components/pictograms/svg/originals/SectionPictogramPayments.svg +0 -19
  382. package/src/components/pictograms/svg/originals/SectionPictogramProfile.svg +0 -18
  383. package/src/components/pictograms/svg/originals/SectionPictogramServices.svg +0 -26
  384. package/src/components/pictograms/svg/originals/SectionPictogramSettings.svg +0 -8
  385. /package/lib/commonjs/components/pictograms/svg/originals/{SectionPictogramMessages.svg → PictogramMessages.svg} +0 -0
  386. /package/lib/module/components/pictograms/svg/originals/{SectionPictogramMessages.svg → PictogramMessages.svg} +0 -0
  387. /package/src/components/pictograms/svg/originals/{SectionPictogramMessages.svg → PictogramMessages.svg} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../src/utils/fonts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,KAAK,CAAC;AAE9C,QAAA,MAAM,OAAO,mDAAoD,CAAC;AAClE,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpD,QAAA,MAAM,YAAY,uCAAwC,CAAC;AAC3D,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5D;;GAEG;AACH,QAAA,MAAM,KAAK;;;;CAaV,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,YAAY,EAAE,eAAe,CAK7D,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,KAAK,CAAC;AAC5C,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,WAAW,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,YAAY,EAAE,eAAe,CAKhE,CAAC;AAEF,oBAAY,SAAS;IACnB,QAAQ,WAAW;IACnB,QAAQ,WAAW;CACpB;AAED,KAAK,eAAe,GAAG;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,SACvB,UAAU,WACP,YAAY,aACX,OAAO,KAChB,MAKC,CAAC;AAEL;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,YACtB,YAAY,GAAG,SAAS,aACtB,OAAO,GAAG,SAAS,SACvB,UAAU,GAAG,SAAS,KAC3B,eAaC,CAAC"}
1
+ {"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../src/utils/fonts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,KAAK,CAAC;AAE9C,QAAA,MAAM,OAAO,mDAAoD,CAAC;AAClE,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpD,QAAA,MAAM,YAAY,uCAAwC,CAAC;AAC3D,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5D;;GAEG;AACH,QAAA,MAAM,KAAK;;;;CAgBV,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,YAAY,EAAE,eAAe,CAK7D,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,KAAK,CAAC;AAC5C,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,WAAW,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,YAAY,EAAE,eAAe,CAKhE,CAAC;AAEF,oBAAY,SAAS;IACnB,QAAQ,WAAW;IACnB,QAAQ,WAAW;CACpB;AAED,KAAK,eAAe,GAAG;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,SACvB,UAAU,WACP,YAAY,aACX,OAAO,KAChB,MAMC,CAAC;AAEL;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,YACtB,YAAY,GAAG,SAAS,aACtB,OAAO,GAAG,SAAS,SACvB,UAAU,GAAG,SAAS,KAC3B,eAgBC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pagopa/io-app-design-system",
3
- "version": "1.4.0",
3
+ "version": "1.6.0",
4
4
  "description": "test",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -34,7 +34,9 @@
34
34
  "prepack": "bob build",
35
35
  "release": "release-it",
36
36
  "example": "yarn --cwd example",
37
- "bootstrap": "yarn example && yarn install"
37
+ "bootstrap": "yarn example && yarn install",
38
+ "storybook": "storybook dev -p 6006",
39
+ "build-storybook": "storybook build"
38
40
  },
39
41
  "keywords": [
40
42
  "react-native",
@@ -49,13 +51,25 @@
49
51
  },
50
52
  "homepage": "https://github.com/pagopa/io-app-design-system#readme",
51
53
  "devDependencies": {
54
+ "@babel/plugin-proposal-export-namespace-from": "^7.18.9",
52
55
  "@commitlint/config-conventional": "^17.0.2",
53
56
  "@evilmartians/lefthook": "^1.2.2",
54
57
  "@react-native-community/eslint-config": "^3.0.2",
55
58
  "@release-it/conventional-changelog": "^5.0.0",
59
+ "@storybook/addon-essentials": "^7.4.0",
60
+ "@storybook/addon-interactions": "^7.4.0",
61
+ "@storybook/addon-links": "^7.4.0",
62
+ "@storybook/addon-onboarding": "^1.0.8",
63
+ "@storybook/addon-react-native-web": "^0.0.21",
64
+ "@storybook/blocks": "^7.4.0",
65
+ "@storybook/react": "^7.4.0",
66
+ "@storybook/react-webpack5": "^7.4.0",
67
+ "@storybook/testing-library": "^0.2.0",
56
68
  "@types/jest": "^28.1.2",
57
69
  "@types/react": "~17.0.38",
58
70
  "@types/react-native": "0.70.0",
71
+ "babel-loader": "^9.1.3",
72
+ "babel-plugin-react-native-web": "^0.19.8",
59
73
  "commitlint": "^17.0.2",
60
74
  "del-cli": "^5.0.0",
61
75
  "eslint": "^8.4.1",
@@ -63,15 +77,21 @@
63
77
  "eslint-plugin-functional": "^5.0.8",
64
78
  "eslint-plugin-import": "^2.27.5",
65
79
  "eslint-plugin-prettier": "^4.0.0",
80
+ "eslint-plugin-storybook": "^0.6.13",
66
81
  "jest": "^29.5.0",
82
+ "metro-react-native-babel-preset": "^0.77.0",
67
83
  "pod-install": "^0.1.0",
68
84
  "prettier": "^2.0.5",
69
85
  "react": "18.2.0",
86
+ "react-dom": "^18.2.0",
70
87
  "react-native": "0.71.8",
71
88
  "react-native-builder-bob": "^0.20.0",
72
89
  "react-native-i18n": "^2.0.15",
90
+ "react-native-web": "^0.18.12",
91
+ "react-native-web-linear-gradient": "^1.1.2",
73
92
  "react-test-renderer": "^18.2.0",
74
93
  "release-it": "^15.0.0",
94
+ "storybook": "^7.4.0",
75
95
  "typescript": "^4.9.5"
76
96
  },
77
97
  "resolutions": {
@@ -80,12 +100,12 @@
80
100
  "peerDependencies": {
81
101
  "react": "*",
82
102
  "react-native": "*",
103
+ "react-native-gesture-handler": "*",
83
104
  "react-native-haptic-feedback": "*",
84
105
  "react-native-linear-gradient": "*",
85
106
  "react-native-reanimated": "*",
86
- "react-native-svg": "*",
87
107
  "react-native-safe-area-context": "*",
88
- "react-native-gesture-handler": "*"
108
+ "react-native-svg": "*"
89
109
  },
90
110
  "engines": {
91
111
  "node": ">= 16.0.0"
@@ -149,6 +169,7 @@
149
169
  ]
150
170
  },
151
171
  "dependencies": {
172
+ "@babel/plugin-proposal-class-properties": "^7.18.6",
152
173
  "@expo/vector-icons": "^13.0.0",
153
174
  "@pagopa/ts-commons": "^12.0.0",
154
175
  "@testing-library/jest-native": "^5.4.2",
@@ -39,12 +39,28 @@ const styles = StyleSheet.create({
39
39
  });
40
40
 
41
41
  export type ButtonSolidProps = WithTestID<{
42
+ /**
43
+ * @default primary
44
+ */
42
45
  color?: ButtonSolidColor;
43
46
  label: string;
47
+ /**
48
+ * Renders a small variant of the button. This property applies to the legacy look only
49
+ * @default false
50
+ */
44
51
  small?: boolean;
52
+ /**
53
+ * @default false
54
+ */
45
55
  fullWidth?: boolean;
56
+ /**
57
+ * @default false
58
+ */
46
59
  disabled?: boolean;
47
60
  icon?: IOIcons;
61
+ /**
62
+ * @default start
63
+ */
48
64
  iconPosition?: "start" | "end";
49
65
  accessibilityLabel: string;
50
66
  accessibilityHint?: string;
@@ -18,3 +18,4 @@ export * from "./tag";
18
18
  export * from "./tabs";
19
19
  export * from "./typography";
20
20
  export * from "./textInput";
21
+ export * from "./layout";
@@ -0,0 +1,142 @@
1
+ import * as React from "react";
2
+ import { View, StyleSheet } from "react-native";
3
+ import { HSpacer } from "../spacer/Spacer";
4
+ import { ButtonOutline, ButtonSolid, ButtonSolidProps } from "../buttons";
5
+ import { IOStyles } from "../../core";
6
+
7
+ const styles = StyleSheet.create({
8
+ button: {
9
+ alignContent: "center",
10
+ justifyContent: "center",
11
+ flex: 1
12
+ },
13
+ buttonTwoThirds: {
14
+ alignContent: "center",
15
+ flex: 2
16
+ }
17
+ });
18
+
19
+ type CommonProps = Readonly<{
20
+ primary: BlockButtonProps;
21
+ accessible?: boolean;
22
+ }>;
23
+
24
+ export type BlockButtonProps = {
25
+ type: "Solid" | "Outline";
26
+ buttonProps: ButtonSolidProps;
27
+ };
28
+
29
+ /**
30
+ * | single button |
31
+ */
32
+ export interface SingleButton extends CommonProps {
33
+ type: "SingleButton";
34
+ }
35
+
36
+ /**
37
+ * | left | right |
38
+ */
39
+ export interface TwoButtonsInlineHalf extends CommonProps {
40
+ type: "TwoButtonsInlineHalf";
41
+ secondary: BlockButtonProps;
42
+ }
43
+
44
+ /**
45
+ * | left | right |
46
+ */
47
+ interface TwoButtonsInlineThird extends CommonProps {
48
+ type: "TwoButtonsInlineThird";
49
+ secondary: BlockButtonProps;
50
+ }
51
+
52
+ /**
53
+ * | left | right |
54
+ */
55
+ interface TwoButtonsInlineThirdInverted extends CommonProps {
56
+ type: "TwoButtonsInlineThirdInverted";
57
+ secondary: BlockButtonProps;
58
+ }
59
+
60
+ /**
61
+ * | left | mid | right |
62
+ */
63
+ interface ThreeButtonsInLine extends CommonProps {
64
+ type: "ThreeButtonsInLine";
65
+ secondary: BlockButtonProps;
66
+ third: BlockButtonProps;
67
+ }
68
+
69
+ type Props =
70
+ | SingleButton
71
+ | TwoButtonsInlineHalf
72
+ | TwoButtonsInlineThird
73
+ | TwoButtonsInlineThirdInverted
74
+ | ThreeButtonsInLine;
75
+
76
+ export type BlockButtonsProps = Props;
77
+
78
+ /**
79
+ * Implements a component that show buttons on a line on 1, 2 or 3 buttons
80
+ */
81
+ export const BlockButtons = (props: Props) => {
82
+ const renderRightButton = () => {
83
+ if (props.type === "SingleButton") {
84
+ return null;
85
+ }
86
+
87
+ const secondaryButtonStyle =
88
+ props.type === "TwoButtonsInlineThird"
89
+ ? styles.buttonTwoThirds
90
+ : styles.button;
91
+
92
+ return (
93
+ <React.Fragment>
94
+ <HSpacer size={16} />
95
+ {renderButton(props.secondary, secondaryButtonStyle)}
96
+ </React.Fragment>
97
+ );
98
+ };
99
+
100
+ const renderMidButton = () => {
101
+ if (props.type !== "ThreeButtonsInLine") {
102
+ return null;
103
+ }
104
+
105
+ return (
106
+ <React.Fragment>
107
+ <HSpacer size={16} />
108
+ {renderButton(props.third, styles.button)}
109
+ </React.Fragment>
110
+ );
111
+ };
112
+
113
+ const renderLeftButton = () => {
114
+ const primaryButtonStyle =
115
+ props.type === "TwoButtonsInlineThirdInverted"
116
+ ? styles.buttonTwoThirds
117
+ : styles.button;
118
+
119
+ return renderButton(props.primary, primaryButtonStyle);
120
+ };
121
+
122
+ const renderButton = (
123
+ props: BlockButtonProps,
124
+ style: React.ComponentProps<typeof View>["style"]
125
+ ) => (
126
+ <View style={style}>
127
+ {props.type === "Solid" ? (
128
+ <ButtonSolid {...props.buttonProps} />
129
+ ) : (
130
+ <ButtonOutline {...props.buttonProps} />
131
+ )}
132
+ </View>
133
+ );
134
+
135
+ return (
136
+ <View style={{ ...IOStyles.flex, ...IOStyles.row }}>
137
+ {renderLeftButton()}
138
+ {renderMidButton()}
139
+ {renderRightButton()}
140
+ </View>
141
+ );
142
+ };
@@ -0,0 +1,37 @@
1
+ import * as React from "react";
2
+
3
+ import { StyleSheet, View } from "react-native";
4
+ import { IOStyles } from "../../core";
5
+ import { BlockButtons, BlockButtonsProps } from "./BlockButtons";
6
+
7
+ // TODO: Refactor with an unique component like `FooterTopShadow` after bonus vacanze
8
+ const styles = StyleSheet.create({
9
+ container: {
10
+ overflow: "hidden",
11
+ width: "100%",
12
+ // This Magic number is an heritage of the app code-base, this component should be removed in favor of `GradientBottomAction`
13
+ marginTop: -50,
14
+ paddingTop: 50,
15
+ position: "absolute",
16
+ bottom: 0
17
+ }
18
+ });
19
+
20
+ /**
21
+ * Implements a component that show buttons as sticky footer
22
+ * It can include 1, 2 or 3 buttons. If they are 2, they can have the inlineHalf or the inlineOneThird style
23
+ */
24
+ export const FooterWithButtons = (props: BlockButtonsProps) => (
25
+ <View
26
+ style={styles.container}
27
+ accessible={props.accessible}
28
+ pointerEvents={"box-none"}
29
+ testID="FooterWithButtons"
30
+ >
31
+ <View style={IOStyles.footer}>
32
+ <BlockButtons {...props} />
33
+ </View>
34
+ </View>
35
+ );
36
+
37
+ export default FooterWithButtons;
@@ -2,3 +2,4 @@ export * from "./GradientScrollView";
2
2
  export * from "./GradientBottomActions";
3
3
  export * from "./HeaderFirstLevel";
4
4
  export * from "./HeaderSecondLevel";
5
+ export * from "./FooterWithButtons";
@@ -13,7 +13,6 @@ import LogoPaymentPayPal from "./svg/LogoPaymentPayPal";
13
13
  import LogoPaymentBancomatPay from "./svg/LogoPaymentBancomatPay";
14
14
  import LogoPaymentVPay from "./svg/LogoPaymentVPay";
15
15
  import LogoPaymentPagoBancomat from "./svg/LogoPaymentPagoBancomat";
16
- import LogoPaymentSatispay from "./svg/LogoPaymentSatispay";
17
16
  import LogoPaymentPostepay from "./svg/LogoPaymentPostepay";
18
17
  import LogoPaymentMyBank from "./svg/LogoPaymentMyBank";
19
18
  import LogoPaymentApplePay from "./svg/LogoPaymentApplePay";
@@ -31,7 +30,6 @@ export const IOPaymentLogos = {
31
30
  bancomatPay: LogoPaymentBancomatPay,
32
31
  vPay: LogoPaymentVPay,
33
32
  pagoBancomat: LogoPaymentPagoBancomat,
34
- satispay: LogoPaymentSatispay,
35
33
  postepay: LogoPaymentPostepay,
36
34
  myBank: LogoPaymentMyBank,
37
35
  applePay: LogoPaymentApplePay
@@ -13,7 +13,6 @@ import LogoPaymentExtUnionPay from "./svg/LogoPaymentExtUnionPay";
13
13
  import LogoPaymentExtPayPal from "./svg/LogoPaymentExtPayPal";
14
14
  import LogoPaymentExtBancomatPay from "./svg/LogoPaymentExtBancomatPay";
15
15
  import LogoPaymentExtPostepay from "./svg/LogoPaymentExtPostepay";
16
- import LogoPaymentExtSatispay from "./svg/LogoPaymentExtSatispay";
17
16
  import LogoPaymentExtPagoBancomat from "./svg/LogoPaymentExtPagoBancomat";
18
17
  import LogoPaymentExtApplePay from "./svg/LogoPaymentExtApplePay";
19
18
 
@@ -30,7 +29,6 @@ export const IOPaymentExtLogos = {
30
29
  payPal: LogoPaymentExtPayPal,
31
30
  bancomatPay: LogoPaymentExtBancomatPay,
32
31
  postepay: LogoPaymentExtPostepay,
33
- satispay: LogoPaymentExtSatispay,
34
32
  pagoBancomat: LogoPaymentExtPagoBancomat,
35
33
  applePay: LogoPaymentExtApplePay
36
34
  } as const;
@@ -2,6 +2,7 @@ import React from "react";
2
2
  import { ColorValue } from "react-native";
3
3
  import { IOColors } from "../../core/IOColors";
4
4
 
5
+ import PictogramMessages from "./svg/PictogramMessages";
5
6
  import PictogramAbacus from "./svg/PictogramAbacus";
6
7
  import PictogramAirBaloon from "./svg/PictogramAirBaloon";
7
8
  import PictogramAirship from "./svg/PictogramAirship";
@@ -44,10 +45,11 @@ import PictogramSuccess from "./svg/PictogramSuccess";
44
45
  import PictogramFocusOn from "./svg/PictogramFocusOn";
45
46
 
46
47
  export const IOPictograms = {
48
+ messages: PictogramMessages,
47
49
  airBaloon: PictogramAirBaloon,
48
50
  abacus: PictogramAbacus,
49
- emailValidation: PictogramEmailValidation /* io-email-validated */,
50
- emailToValidate: PictogramEmailToValidate /* io-email-to-validate */,
51
+ emailValidation: PictogramEmailValidation,
52
+ emailToValidate: PictogramEmailToValidate,
51
53
  inbox: PictogramInbox,
52
54
  piggyBank: PictogramPiggyBank,
53
55
  processing: PictogramProcessing,
@@ -60,7 +62,7 @@ export const IOPictograms = {
60
62
  error: PictogramError,
61
63
  umbrella: PictogramUmbrella,
62
64
  inProgress: PictogramInProgress,
63
- fireworks: PictogramFireworks /* io-fireworks */,
65
+ fireworks: PictogramFireworks,
64
66
  puzzle: PictogramPuzzle,
65
67
  question: PictogramQuestion,
66
68
  pin: PictogramPin,
@@ -70,7 +72,7 @@ export const IOPictograms = {
70
72
  teaBreak: PictogramTeaBreak,
71
73
  beerMug: PictogramBeerMug,
72
74
  sms: PictogramSms,
73
- heart: PictogramHeart /* io-heart */,
75
+ heart: PictogramHeart,
74
76
  completed: PictogramCompleted,
75
77
  ibanCard: PictogramIBANCard,
76
78
  followMessage: PictogramFollowMessage,
@@ -1,19 +1,12 @@
1
1
  # Pictograms
2
- There are different sets:
3
- * **General:** Pictograms used to enrich the following states:
4
- * Empty
5
- * Success
6
- * Error
7
- * **Sections:** Pictograms used in the `Header` component as companion of the title.
8
2
 
9
- ## Prefixes
10
- - **General**: `Pictogram…`
11
- - **Sections**: `PictogramSection…`
3
+ ## Prefix
4
+ To avoid confusion with other components referenced in the codebase, just use the prefix `Pictogram…`
12
5
 
13
6
  ## Add a new pictogram
14
7
  First of all, follow the instructions stated in the main README (`Vector graphics` section).
15
8
 
16
- If you want to add a new pictogram in the `General` set, open the `Pictogram.tsx` file and import the React component:
9
+ If you want to add a new pictogram, open the `Pictogram.tsx` file and import the React component:
17
10
  ```jsx
18
11
  […]
19
12
  import PictogramAirBaloon from "./svg/PictogramAirBaloon";
@@ -29,7 +22,7 @@ export const IOPictograms = {
29
22
  You can add the recently added pictogram with the following declaration:
30
23
  ```jsx
31
24
  // Default size: 120×120px
32
- // Default color: Aqua
25
+ // Default color: Turquoise
33
26
  <Pictogram name="airBaloon">
34
27
  ```
35
28
 
@@ -1,4 +1,2 @@
1
1
  export * from "./Pictogram";
2
2
  export { Pictogram } from "./Pictogram";
3
- export { default as PictogramSection } from "./PictogramSection";
4
- export * from "./PictogramSection";
@@ -2,11 +2,7 @@ import React from "react";
2
2
  import { Svg, Path } from "react-native-svg";
3
3
  import { SVGPictogramProps } from "../Pictogram";
4
4
 
5
- const PictogramSectionMessages = ({
6
- size,
7
- color,
8
- ...props
9
- }: SVGPictogramProps) => (
5
+ const PictogramMessages = ({ size, color, ...props }: SVGPictogramProps) => (
10
6
  <Svg fill="none" width={size} height={size} viewBox="0 0 48 48" {...props}>
11
7
  <Path
12
8
  fillRule="evenodd"
@@ -17,4 +13,4 @@ const PictogramSectionMessages = ({
17
13
  </Svg>
18
14
  );
19
15
 
20
- export default PictogramSectionMessages;
16
+ export default PictogramMessages;
@@ -19,6 +19,7 @@ import { HSpacer } from "../spacer";
19
19
  import { LabelSmall } from "../typography";
20
20
  import { InputType } from "../../utils/types";
21
21
  import { getInputPropsByType } from "../../utils/textInput";
22
+ import { makeFontStyleObject } from "../../utils/fonts";
22
23
 
23
24
  type InputStatus = "initial" | "focused" | "disabled" | "error";
24
25
 
@@ -57,11 +58,10 @@ const styles = StyleSheet.create({
57
58
  },
58
59
  textInputStyle: {
59
60
  ...IOStyles.flex,
61
+ ...makeFontStyleObject("Regular", false, "ReadexPro"),
60
62
  fontSize: 16,
61
63
  marginTop: IOSpacingScale[2],
62
- fontWeight: "400",
63
64
  lineHeight: 24,
64
- fontFamily: "Readex Pro",
65
65
  height: "100%"
66
66
  },
67
67
  textInputLabelWrapper: {
@@ -0,0 +1,31 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { action } from "@storybook/addon-actions";
3
+
4
+ import { ButtonSolid } from "../components";
5
+
6
+ // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
7
+ const meta = {
8
+ title: "Example/ButtonSolid",
9
+ component: ButtonSolid,
10
+ parameters: {
11
+ // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
12
+ layout: "centered"
13
+ },
14
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
15
+ tags: ["autodocs"]
16
+ } satisfies Meta<typeof ButtonSolid>;
17
+
18
+ export default meta;
19
+ type Story = StoryObj<typeof meta>;
20
+
21
+ // More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
22
+ export const Primary: Story = {
23
+ args: {
24
+ color: "primary",
25
+ accessibilityLabel: "Tap to trigger test alert",
26
+ label: "Primary button",
27
+ onPress: e => {
28
+ action("clicked")(e);
29
+ }
30
+ }
31
+ };
@@ -0,0 +1,28 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+
3
+ import { Alert } from "react-native";
4
+ import { H1 } from "../components";
5
+
6
+ // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
7
+ const meta = {
8
+ title: "Example/H1",
9
+ component: H1,
10
+ parameters: {
11
+ // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
12
+ layout: "centered",
13
+ actions: { argTypesRegex: "^on.*" }
14
+ },
15
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
16
+ tags: ["autodocs"],
17
+ } satisfies Meta<typeof H1>;
18
+
19
+ export default meta;
20
+ type Story = StoryObj<typeof meta>;
21
+
22
+ export const Primary: Story = {
23
+ args: {
24
+ accessibilityLabel: "Tap to trigger test alert",
25
+ onPress: () => Alert.alert("Alert", "Action triggered"),
26
+ children: "Hello World"
27
+ }
28
+ };
@@ -0,0 +1,28 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+
3
+ import { Alert } from "react-native";
4
+ import { H2 } from "../components";
5
+
6
+ // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
7
+ const meta = {
8
+ title: "Example/H2",
9
+ component: H2,
10
+ parameters: {
11
+ // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
12
+ layout: "centered",
13
+ actions: { argTypesRegex: "^on.*" }
14
+ },
15
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
16
+ tags: ["autodocs"],
17
+ } satisfies Meta<typeof H2>;
18
+
19
+ export default meta;
20
+ type Story = StoryObj<typeof meta>;
21
+
22
+ export const Primary: Story = {
23
+ args: {
24
+ accessibilityLabel: "Tap to trigger test alert",
25
+ onPress: () => Alert.alert("Alert", "Action triggered"),
26
+ children: "Hello World"
27
+ }
28
+ };
@@ -0,0 +1,28 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+
3
+ import { Alert } from "react-native";
4
+ import { H3 } from "../components";
5
+
6
+ // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
7
+ const meta = {
8
+ title: "Example/H3",
9
+ component: H3,
10
+ parameters: {
11
+ // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
12
+ layout: "centered",
13
+ actions: { argTypesRegex: "^on.*" }
14
+ },
15
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
16
+ tags: ["autodocs"],
17
+ } satisfies Meta<typeof H3>;
18
+
19
+ export default meta;
20
+ type Story = StoryObj<typeof meta>;
21
+
22
+ export const Primary: Story = {
23
+ args: {
24
+ accessibilityLabel: "Tap to trigger test alert",
25
+ onPress: () => Alert.alert("Alert", "Action triggered"),
26
+ children: "Hello World"
27
+ }
28
+ };
@@ -0,0 +1,28 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+
3
+ import { Alert } from "react-native";
4
+ import { H4 } from "../components";
5
+
6
+ // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
7
+ const meta = {
8
+ title: "Example/H4",
9
+ component: H4,
10
+ parameters: {
11
+ // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
12
+ layout: "centered",
13
+ actions: { argTypesRegex: "^on.*" }
14
+ },
15
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
16
+ tags: ["autodocs"],
17
+ } satisfies Meta<typeof H4>;
18
+
19
+ export default meta;
20
+ type Story = StoryObj<typeof meta>;
21
+
22
+ export const Primary: Story = {
23
+ args: {
24
+ accessibilityLabel: "Tap to trigger test alert",
25
+ onPress: () => Alert.alert("Alert", "Action triggered"),
26
+ children: "Hello World"
27
+ }
28
+ };
@@ -0,0 +1,28 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+
3
+ import { Alert } from "react-native";
4
+ import { H5 } from "../components";
5
+
6
+ // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
7
+ const meta = {
8
+ title: "Example/H5",
9
+ component: H5,
10
+ parameters: {
11
+ // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
12
+ layout: "centered",
13
+ actions: { argTypesRegex: "^on.*" }
14
+ },
15
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
16
+ tags: ["autodocs"],
17
+ } satisfies Meta<typeof H5>;
18
+
19
+ export default meta;
20
+ type Story = StoryObj<typeof meta>;
21
+
22
+ export const Primary: Story = {
23
+ args: {
24
+ accessibilityLabel: "Tap to trigger test alert",
25
+ onPress: () => Alert.alert("Alert", "Action triggered"),
26
+ children: "Hello World"
27
+ }
28
+ };