@pagopa/io-app-design-system 1.16.1 → 1.17.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 (460) hide show
  1. package/README.md +131 -54
  2. package/lib/commonjs/components/banner/__test__/__snapshots__/banner.test.tsx.snap +4 -4
  3. package/lib/commonjs/components/buttons/__test__/__snapshots__/button.test.tsx.snap +4 -4
  4. package/lib/commonjs/components/checkbox/AnimatedCheckbox.js +6 -2
  5. package/lib/commonjs/components/checkbox/AnimatedCheckbox.js.map +1 -1
  6. package/lib/commonjs/components/codeInput/CodeInput.js +103 -0
  7. package/lib/commonjs/components/codeInput/CodeInput.js.map +1 -0
  8. package/lib/commonjs/components/codeInput/index.js +17 -0
  9. package/lib/commonjs/components/codeInput/index.js.map +1 -0
  10. package/lib/commonjs/components/icons/Icon.js +2 -0
  11. package/lib/commonjs/components/icons/Icon.js.map +1 -1
  12. package/lib/commonjs/components/icons/README.md +79 -19
  13. package/lib/commonjs/components/icons/svg/IconSparkles.js +30 -0
  14. package/lib/commonjs/components/icons/svg/IconSparkles.js.map +1 -0
  15. package/lib/commonjs/components/icons/svg/originals/IconSparkles.svg +3 -0
  16. package/lib/commonjs/components/index.js +48 -26
  17. package/lib/commonjs/components/index.js.map +1 -1
  18. package/lib/commonjs/components/layout/HeaderSecondLevel.js +5 -4
  19. package/lib/commonjs/components/layout/HeaderSecondLevel.js.map +1 -1
  20. package/lib/commonjs/components/listitems/ListItemAction.js +4 -3
  21. package/lib/commonjs/components/listitems/ListItemAction.js.map +1 -1
  22. package/lib/commonjs/components/listitems/ListItemHeader.js +87 -0
  23. package/lib/commonjs/components/listitems/ListItemHeader.js.map +1 -0
  24. package/lib/commonjs/components/listitems/ListItemInfoCopy.js +5 -30
  25. package/lib/commonjs/components/listitems/ListItemInfoCopy.js.map +1 -1
  26. package/lib/commonjs/components/listitems/ListItemNav.js +15 -23
  27. package/lib/commonjs/components/listitems/ListItemNav.js.map +1 -1
  28. package/lib/commonjs/components/listitems/ListItemNavAlert.js +4 -22
  29. package/lib/commonjs/components/listitems/ListItemNavAlert.js.map +1 -1
  30. package/lib/commonjs/components/listitems/ListItemRadio.js +69 -10
  31. package/lib/commonjs/components/listitems/ListItemRadio.js.map +1 -1
  32. package/lib/commonjs/components/listitems/ListItemRadioWithAmount.js +64 -0
  33. package/lib/commonjs/components/listitems/ListItemRadioWithAmount.js.map +1 -0
  34. package/lib/commonjs/components/listitems/ListItemTransaction.js +8 -5
  35. package/lib/commonjs/components/listitems/ListItemTransaction.js.map +1 -1
  36. package/lib/commonjs/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +684 -34
  37. package/lib/commonjs/components/listitems/__test__/listitem.test.js +17 -0
  38. package/lib/commonjs/components/listitems/__test__/listitem.test.js.map +1 -1
  39. package/lib/commonjs/components/listitems/index.js +22 -0
  40. package/lib/commonjs/components/listitems/index.js.map +1 -1
  41. package/lib/commonjs/components/modules/ModuleCheckout.js +103 -0
  42. package/lib/commonjs/components/modules/ModuleCheckout.js.map +1 -0
  43. package/lib/commonjs/components/modules/index.js +11 -0
  44. package/lib/commonjs/components/modules/index.js.map +1 -1
  45. package/lib/commonjs/components/numberpad/NumberPad.js +7 -10
  46. package/lib/commonjs/components/numberpad/NumberPad.js.map +1 -1
  47. package/lib/commonjs/components/pictograms/Pictogram.js +19 -1
  48. package/lib/commonjs/components/pictograms/Pictogram.js.map +1 -1
  49. package/lib/commonjs/components/pictograms/README.md +103 -14
  50. package/lib/commonjs/components/pictograms/svg/PictogramBiometric.js +82 -0
  51. package/lib/commonjs/components/pictograms/svg/PictogramBiometric.js.map +1 -0
  52. package/lib/commonjs/components/pictograms/svg/PictogramBleedEnded.js +43 -0
  53. package/lib/commonjs/components/pictograms/svg/PictogramBleedEnded.js.map +1 -0
  54. package/lib/commonjs/components/pictograms/svg/PictogramBleedLostConnection.js +64 -0
  55. package/lib/commonjs/components/pictograms/svg/PictogramBleedLostConnection.js.map +1 -0
  56. package/lib/commonjs/components/pictograms/svg/PictogramBleedPending.js +15 -9
  57. package/lib/commonjs/components/pictograms/svg/PictogramBleedPending.js.map +1 -1
  58. package/lib/commonjs/components/pictograms/svg/PictogramBleedQrCode.js +79 -0
  59. package/lib/commonjs/components/pictograms/svg/PictogramBleedQrCode.js.map +1 -0
  60. package/lib/commonjs/components/pictograms/svg/PictogramEmailDotCheck.js +60 -0
  61. package/lib/commonjs/components/pictograms/svg/PictogramEmailDotCheck.js.map +1 -0
  62. package/lib/commonjs/components/pictograms/svg/PictogramEmailDotNotif.js +58 -0
  63. package/lib/commonjs/components/pictograms/svg/PictogramEmailDotNotif.js.map +1 -0
  64. package/lib/commonjs/components/pictograms/svg/PictogramEnded.js +43 -0
  65. package/lib/commonjs/components/pictograms/svg/PictogramEnded.js.map +1 -0
  66. package/lib/commonjs/components/pictograms/svg/PictogramLostConnection.js +58 -0
  67. package/lib/commonjs/components/pictograms/svg/PictogramLostConnection.js.map +1 -0
  68. package/lib/commonjs/components/pictograms/svg/PictogramPending.js +15 -9
  69. package/lib/commonjs/components/pictograms/svg/PictogramPending.js.map +1 -1
  70. package/lib/commonjs/components/pictograms/svg/PictogramQrCode.js +91 -0
  71. package/lib/commonjs/components/pictograms/svg/PictogramQrCode.js.map +1 -0
  72. package/lib/commonjs/components/pictograms/svg/originals/PictogramBiometric.svg +1 -0
  73. package/lib/commonjs/components/pictograms/svg/originals/PictogramBleedEnded.svg +1 -0
  74. package/lib/commonjs/components/pictograms/svg/originals/PictogramBleedLostConnection.svg +1 -0
  75. package/lib/commonjs/components/pictograms/svg/originals/PictogramBleedPending.svg +1 -1
  76. package/lib/commonjs/components/pictograms/svg/originals/PictogramBleedQrCode.svg +1 -0
  77. package/lib/commonjs/components/pictograms/svg/originals/PictogramEmailDotCheck.svg +41 -0
  78. package/lib/commonjs/components/pictograms/svg/originals/PictogramEmailDotNotif.svg +35 -0
  79. package/lib/commonjs/components/pictograms/svg/originals/PictogramEnded.svg +1 -0
  80. package/lib/commonjs/components/pictograms/svg/originals/PictogramLostConnection.svg +1 -0
  81. package/lib/commonjs/components/pictograms/svg/originals/PictogramPending.svg +1 -1
  82. package/lib/commonjs/components/pictograms/svg/originals/PictogramQrCode.svg +1 -0
  83. package/lib/commonjs/components/radio/RadioGroup.js +2 -1
  84. package/lib/commonjs/components/radio/RadioGroup.js.map +1 -1
  85. package/lib/commonjs/components/stepper/Stepper.js +52 -0
  86. package/lib/commonjs/components/stepper/Stepper.js.map +1 -0
  87. package/lib/commonjs/components/stepper/index.js +17 -0
  88. package/lib/commonjs/components/stepper/index.js.map +1 -0
  89. package/lib/commonjs/components/typography/H1.js +5 -3
  90. package/lib/commonjs/components/typography/H1.js.map +1 -1
  91. package/lib/commonjs/components/typography/H2.js +5 -3
  92. package/lib/commonjs/components/typography/H2.js.map +1 -1
  93. package/lib/commonjs/components/typography/H3.js +5 -3
  94. package/lib/commonjs/components/typography/H3.js.map +1 -1
  95. package/lib/commonjs/components/typography/H4.js +2 -1
  96. package/lib/commonjs/components/typography/H4.js.map +1 -1
  97. package/lib/commonjs/components/typography/H6.js +4 -2
  98. package/lib/commonjs/components/typography/H6.js.map +1 -1
  99. package/lib/commonjs/components/typography/Hero.js +7 -3
  100. package/lib/commonjs/components/typography/Hero.js.map +1 -1
  101. package/lib/commonjs/components/typography/LabelSmall.js +6 -1
  102. package/lib/commonjs/components/typography/LabelSmall.js.map +1 -1
  103. package/lib/commonjs/components/typography/LabelSmallAlt.js +39 -0
  104. package/lib/commonjs/components/typography/LabelSmallAlt.js.map +1 -0
  105. package/lib/commonjs/components/typography/README.md +23 -0
  106. package/lib/commonjs/components/typography/__test__/__snapshots__/typography.test.tsx.snap +84 -74
  107. package/lib/commonjs/components/typography/index.js +11 -0
  108. package/lib/commonjs/components/typography/index.js.map +1 -1
  109. package/lib/module/components/banner/__test__/__snapshots__/banner.test.tsx.snap +4 -4
  110. package/lib/module/components/buttons/__test__/__snapshots__/button.test.tsx.snap +4 -4
  111. package/lib/module/components/checkbox/AnimatedCheckbox.js +6 -2
  112. package/lib/module/components/checkbox/AnimatedCheckbox.js.map +1 -1
  113. package/lib/module/components/codeInput/CodeInput.js +94 -0
  114. package/lib/module/components/codeInput/CodeInput.js.map +1 -0
  115. package/lib/module/components/codeInput/index.js +2 -0
  116. package/lib/module/components/codeInput/index.js.map +1 -0
  117. package/lib/module/components/icons/Icon.js +2 -0
  118. package/lib/module/components/icons/Icon.js.map +1 -1
  119. package/lib/module/components/icons/README.md +79 -19
  120. package/lib/module/components/icons/svg/IconSparkles.js +21 -0
  121. package/lib/module/components/icons/svg/IconSparkles.js.map +1 -0
  122. package/lib/module/components/icons/svg/originals/IconSparkles.svg +3 -0
  123. package/lib/module/components/index.js +5 -3
  124. package/lib/module/components/index.js.map +1 -1
  125. package/lib/module/components/layout/HeaderSecondLevel.js +5 -4
  126. package/lib/module/components/layout/HeaderSecondLevel.js.map +1 -1
  127. package/lib/module/components/listitems/ListItemAction.js +4 -3
  128. package/lib/module/components/listitems/ListItemAction.js.map +1 -1
  129. package/lib/module/components/listitems/ListItemHeader.js +77 -0
  130. package/lib/module/components/listitems/ListItemHeader.js.map +1 -0
  131. package/lib/module/components/listitems/ListItemInfoCopy.js +7 -32
  132. package/lib/module/components/listitems/ListItemInfoCopy.js.map +1 -1
  133. package/lib/module/components/listitems/ListItemNav.js +17 -26
  134. package/lib/module/components/listitems/ListItemNav.js.map +1 -1
  135. package/lib/module/components/listitems/ListItemNavAlert.js +6 -24
  136. package/lib/module/components/listitems/ListItemNavAlert.js.map +1 -1
  137. package/lib/module/components/listitems/ListItemRadio.js +69 -10
  138. package/lib/module/components/listitems/ListItemRadio.js.map +1 -1
  139. package/lib/module/components/listitems/ListItemRadioWithAmount.js +54 -0
  140. package/lib/module/components/listitems/ListItemRadioWithAmount.js.map +1 -0
  141. package/lib/module/components/listitems/ListItemTransaction.js +10 -7
  142. package/lib/module/components/listitems/ListItemTransaction.js.map +1 -1
  143. package/lib/module/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +684 -34
  144. package/lib/module/components/listitems/__test__/listitem.test.js +17 -0
  145. package/lib/module/components/listitems/__test__/listitem.test.js.map +1 -1
  146. package/lib/module/components/listitems/index.js +2 -0
  147. package/lib/module/components/listitems/index.js.map +1 -1
  148. package/lib/module/components/modules/ModuleCheckout.js +95 -0
  149. package/lib/module/components/modules/ModuleCheckout.js.map +1 -0
  150. package/lib/module/components/modules/index.js +1 -0
  151. package/lib/module/components/modules/index.js.map +1 -1
  152. package/lib/module/components/numberpad/NumberPad.js +6 -7
  153. package/lib/module/components/numberpad/NumberPad.js.map +1 -1
  154. package/lib/module/components/pictograms/Pictogram.js +19 -1
  155. package/lib/module/components/pictograms/Pictogram.js.map +1 -1
  156. package/lib/module/components/pictograms/README.md +103 -14
  157. package/lib/module/components/pictograms/svg/PictogramBiometric.js +74 -0
  158. package/lib/module/components/pictograms/svg/PictogramBiometric.js.map +1 -0
  159. package/lib/module/components/pictograms/svg/PictogramBleedEnded.js +35 -0
  160. package/lib/module/components/pictograms/svg/PictogramBleedEnded.js.map +1 -0
  161. package/lib/module/components/pictograms/svg/PictogramBleedLostConnection.js +56 -0
  162. package/lib/module/components/pictograms/svg/PictogramBleedLostConnection.js.map +1 -0
  163. package/lib/module/components/pictograms/svg/PictogramBleedPending.js +15 -9
  164. package/lib/module/components/pictograms/svg/PictogramBleedPending.js.map +1 -1
  165. package/lib/module/components/pictograms/svg/PictogramBleedQrCode.js +71 -0
  166. package/lib/module/components/pictograms/svg/PictogramBleedQrCode.js.map +1 -0
  167. package/lib/module/components/pictograms/svg/PictogramEmailDotCheck.js +52 -0
  168. package/lib/module/components/pictograms/svg/PictogramEmailDotCheck.js.map +1 -0
  169. package/lib/module/components/pictograms/svg/PictogramEmailDotNotif.js +50 -0
  170. package/lib/module/components/pictograms/svg/PictogramEmailDotNotif.js.map +1 -0
  171. package/lib/module/components/pictograms/svg/PictogramEnded.js +35 -0
  172. package/lib/module/components/pictograms/svg/PictogramEnded.js.map +1 -0
  173. package/lib/module/components/pictograms/svg/PictogramLostConnection.js +50 -0
  174. package/lib/module/components/pictograms/svg/PictogramLostConnection.js.map +1 -0
  175. package/lib/module/components/pictograms/svg/PictogramPending.js +15 -9
  176. package/lib/module/components/pictograms/svg/PictogramPending.js.map +1 -1
  177. package/lib/module/components/pictograms/svg/PictogramQrCode.js +83 -0
  178. package/lib/module/components/pictograms/svg/PictogramQrCode.js.map +1 -0
  179. package/lib/module/components/pictograms/svg/originals/PictogramBiometric.svg +1 -0
  180. package/lib/module/components/pictograms/svg/originals/PictogramBleedEnded.svg +1 -0
  181. package/lib/module/components/pictograms/svg/originals/PictogramBleedLostConnection.svg +1 -0
  182. package/lib/module/components/pictograms/svg/originals/PictogramBleedPending.svg +1 -1
  183. package/lib/module/components/pictograms/svg/originals/PictogramBleedQrCode.svg +1 -0
  184. package/lib/module/components/pictograms/svg/originals/PictogramEmailDotCheck.svg +41 -0
  185. package/lib/module/components/pictograms/svg/originals/PictogramEmailDotNotif.svg +35 -0
  186. package/lib/module/components/pictograms/svg/originals/PictogramEnded.svg +1 -0
  187. package/lib/module/components/pictograms/svg/originals/PictogramLostConnection.svg +1 -0
  188. package/lib/module/components/pictograms/svg/originals/PictogramPending.svg +1 -1
  189. package/lib/module/components/pictograms/svg/originals/PictogramQrCode.svg +1 -0
  190. package/lib/module/components/radio/RadioGroup.js +2 -1
  191. package/lib/module/components/radio/RadioGroup.js.map +1 -1
  192. package/lib/module/components/stepper/Stepper.js +43 -0
  193. package/lib/module/components/stepper/Stepper.js.map +1 -0
  194. package/lib/module/components/stepper/index.js +2 -0
  195. package/lib/module/components/stepper/index.js.map +1 -0
  196. package/lib/module/components/typography/H1.js +5 -3
  197. package/lib/module/components/typography/H1.js.map +1 -1
  198. package/lib/module/components/typography/H2.js +5 -3
  199. package/lib/module/components/typography/H2.js.map +1 -1
  200. package/lib/module/components/typography/H3.js +5 -3
  201. package/lib/module/components/typography/H3.js.map +1 -1
  202. package/lib/module/components/typography/H4.js +2 -1
  203. package/lib/module/components/typography/H4.js.map +1 -1
  204. package/lib/module/components/typography/H6.js +4 -2
  205. package/lib/module/components/typography/H6.js.map +1 -1
  206. package/lib/module/components/typography/Hero.js +7 -3
  207. package/lib/module/components/typography/Hero.js.map +1 -1
  208. package/lib/module/components/typography/LabelSmall.js +6 -1
  209. package/lib/module/components/typography/LabelSmall.js.map +1 -1
  210. package/lib/module/components/typography/LabelSmallAlt.js +32 -0
  211. package/lib/module/components/typography/LabelSmallAlt.js.map +1 -0
  212. package/lib/module/components/typography/README.md +23 -0
  213. package/lib/module/components/typography/__test__/__snapshots__/typography.test.tsx.snap +84 -74
  214. package/lib/module/components/typography/index.js +1 -0
  215. package/lib/module/components/typography/index.js.map +1 -1
  216. package/lib/typescript/components/checkbox/AnimatedCheckbox.d.ts.map +1 -1
  217. package/lib/typescript/components/codeInput/CodeInput.d.ts +11 -0
  218. package/lib/typescript/components/codeInput/CodeInput.d.ts.map +1 -0
  219. package/lib/typescript/components/codeInput/index.d.ts +2 -0
  220. package/lib/typescript/components/codeInput/index.d.ts.map +1 -0
  221. package/lib/typescript/components/icons/Icon.d.ts +1 -0
  222. package/lib/typescript/components/icons/Icon.d.ts.map +1 -1
  223. package/lib/typescript/components/icons/svg/IconSparkles.d.ts +5 -0
  224. package/lib/typescript/components/icons/svg/IconSparkles.d.ts.map +1 -0
  225. package/lib/typescript/components/index.d.ts +5 -3
  226. package/lib/typescript/components/index.d.ts.map +1 -1
  227. package/lib/typescript/components/layout/HeaderSecondLevel.d.ts.map +1 -1
  228. package/lib/typescript/components/listitems/ListItemAction.d.ts.map +1 -1
  229. package/lib/typescript/components/listitems/ListItemHeader.d.ts +34 -0
  230. package/lib/typescript/components/listitems/ListItemHeader.d.ts.map +1 -0
  231. package/lib/typescript/components/listitems/ListItemInfoCopy.d.ts.map +1 -1
  232. package/lib/typescript/components/listitems/ListItemNav.d.ts +4 -1
  233. package/lib/typescript/components/listitems/ListItemNav.d.ts.map +1 -1
  234. package/lib/typescript/components/listitems/ListItemNavAlert.d.ts +2 -2
  235. package/lib/typescript/components/listitems/ListItemNavAlert.d.ts.map +1 -1
  236. package/lib/typescript/components/listitems/ListItemRadio.d.ts +21 -3
  237. package/lib/typescript/components/listitems/ListItemRadio.d.ts.map +1 -1
  238. package/lib/typescript/components/listitems/ListItemRadioWithAmount.d.ts +13 -0
  239. package/lib/typescript/components/listitems/ListItemRadioWithAmount.d.ts.map +1 -0
  240. package/lib/typescript/components/listitems/ListItemTransaction.d.ts.map +1 -1
  241. package/lib/typescript/components/listitems/index.d.ts +2 -0
  242. package/lib/typescript/components/listitems/index.d.ts.map +1 -1
  243. package/lib/typescript/components/modules/ModuleCheckout.d.ts +15 -0
  244. package/lib/typescript/components/modules/ModuleCheckout.d.ts.map +1 -0
  245. package/lib/typescript/components/modules/index.d.ts +1 -0
  246. package/lib/typescript/components/modules/index.d.ts.map +1 -1
  247. package/lib/typescript/components/numberpad/NumberPad.d.ts +2 -1
  248. package/lib/typescript/components/numberpad/NumberPad.d.ts.map +1 -1
  249. package/lib/typescript/components/pictograms/Pictogram.d.ts +7 -1
  250. package/lib/typescript/components/pictograms/Pictogram.d.ts.map +1 -1
  251. package/lib/typescript/components/pictograms/svg/PictogramBiometric.d.ts +5 -0
  252. package/lib/typescript/components/pictograms/svg/PictogramBiometric.d.ts.map +1 -0
  253. package/lib/typescript/components/pictograms/svg/PictogramBleedEnded.d.ts +5 -0
  254. package/lib/typescript/components/pictograms/svg/PictogramBleedEnded.d.ts.map +1 -0
  255. package/lib/typescript/components/pictograms/svg/PictogramBleedLostConnection.d.ts +5 -0
  256. package/lib/typescript/components/pictograms/svg/PictogramBleedLostConnection.d.ts.map +1 -0
  257. package/lib/typescript/components/pictograms/svg/PictogramBleedPending.d.ts.map +1 -1
  258. package/lib/typescript/components/pictograms/svg/PictogramBleedQrCode.d.ts +5 -0
  259. package/lib/typescript/components/pictograms/svg/PictogramBleedQrCode.d.ts.map +1 -0
  260. package/lib/typescript/components/pictograms/svg/PictogramEmailDotCheck.d.ts +5 -0
  261. package/lib/typescript/components/pictograms/svg/PictogramEmailDotCheck.d.ts.map +1 -0
  262. package/lib/typescript/components/pictograms/svg/PictogramEmailDotNotif.d.ts +5 -0
  263. package/lib/typescript/components/pictograms/svg/PictogramEmailDotNotif.d.ts.map +1 -0
  264. package/lib/typescript/components/pictograms/svg/PictogramEnded.d.ts +5 -0
  265. package/lib/typescript/components/pictograms/svg/PictogramEnded.d.ts.map +1 -0
  266. package/lib/typescript/components/pictograms/svg/PictogramLostConnection.d.ts +5 -0
  267. package/lib/typescript/components/pictograms/svg/PictogramLostConnection.d.ts.map +1 -0
  268. package/lib/typescript/components/pictograms/svg/PictogramPending.d.ts.map +1 -1
  269. package/lib/typescript/components/pictograms/svg/PictogramQrCode.d.ts +5 -0
  270. package/lib/typescript/components/pictograms/svg/PictogramQrCode.d.ts.map +1 -0
  271. package/lib/typescript/components/radio/RadioGroup.d.ts +4 -3
  272. package/lib/typescript/components/radio/RadioGroup.d.ts.map +1 -1
  273. package/lib/typescript/components/stepper/Stepper.d.ts +8 -0
  274. package/lib/typescript/components/stepper/Stepper.d.ts.map +1 -0
  275. package/lib/typescript/components/stepper/index.d.ts +2 -0
  276. package/lib/typescript/components/stepper/index.d.ts.map +1 -0
  277. package/lib/typescript/components/typography/H1.d.ts +1 -1
  278. package/lib/typescript/components/typography/H1.d.ts.map +1 -1
  279. package/lib/typescript/components/typography/H2.d.ts +1 -1
  280. package/lib/typescript/components/typography/H2.d.ts.map +1 -1
  281. package/lib/typescript/components/typography/H3.d.ts +1 -1
  282. package/lib/typescript/components/typography/H3.d.ts.map +1 -1
  283. package/lib/typescript/components/typography/H4.d.ts.map +1 -1
  284. package/lib/typescript/components/typography/H6.d.ts.map +1 -1
  285. package/lib/typescript/components/typography/Hero.d.ts +1 -1
  286. package/lib/typescript/components/typography/Hero.d.ts.map +1 -1
  287. package/lib/typescript/components/typography/LabelSmall.d.ts.map +1 -1
  288. package/lib/typescript/components/typography/LabelSmallAlt.d.ts +14 -0
  289. package/lib/typescript/components/typography/LabelSmallAlt.d.ts.map +1 -0
  290. package/lib/typescript/components/typography/index.d.ts +1 -0
  291. package/lib/typescript/components/typography/index.d.ts.map +1 -1
  292. package/package.json +9 -2
  293. package/src/components/banner/__test__/__snapshots__/banner.test.tsx.snap +4 -4
  294. package/src/components/buttons/__test__/__snapshots__/button.test.tsx.snap +4 -4
  295. package/src/components/checkbox/AnimatedCheckbox.tsx +6 -4
  296. package/src/components/codeInput/CodeInput.tsx +121 -0
  297. package/src/components/codeInput/index.tsx +1 -0
  298. package/src/components/icons/Icon.tsx +2 -0
  299. package/src/components/icons/README.md +79 -19
  300. package/src/components/icons/svg/IconSparkles.tsx +14 -0
  301. package/src/components/icons/svg/originals/IconSparkles.svg +3 -0
  302. package/src/components/index.tsx +5 -3
  303. package/src/components/layout/HeaderSecondLevel.tsx +6 -9
  304. package/src/components/listitems/ListItemAction.tsx +4 -3
  305. package/src/components/listitems/ListItemHeader.tsx +146 -0
  306. package/src/components/listitems/ListItemInfoCopy.tsx +14 -57
  307. package/src/components/listitems/ListItemNav.tsx +32 -44
  308. package/src/components/listitems/ListItemNavAlert.tsx +21 -42
  309. package/src/components/listitems/ListItemRadio.tsx +99 -12
  310. package/src/components/listitems/ListItemRadioWithAmount.tsx +69 -0
  311. package/src/components/listitems/ListItemTransaction.tsx +12 -7
  312. package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +684 -34
  313. package/src/components/listitems/__test__/listitem.test.tsx +21 -0
  314. package/src/components/listitems/index.tsx +2 -0
  315. package/src/components/modules/ModuleCheckout.tsx +98 -0
  316. package/src/components/modules/index.tsx +1 -0
  317. package/src/components/numberpad/NumberPad.tsx +7 -8
  318. package/src/components/pictograms/Pictogram.tsx +23 -2
  319. package/src/components/pictograms/README.md +103 -14
  320. package/src/components/pictograms/svg/PictogramBiometric.tsx +78 -0
  321. package/src/components/pictograms/svg/PictogramBleedEnded.tsx +38 -0
  322. package/src/components/pictograms/svg/PictogramBleedLostConnection.tsx +66 -0
  323. package/src/components/pictograms/svg/PictogramBleedPending.tsx +17 -9
  324. package/src/components/pictograms/svg/PictogramBleedQrCode.tsx +86 -0
  325. package/src/components/pictograms/svg/PictogramEmailDotCheck.tsx +53 -0
  326. package/src/components/pictograms/svg/PictogramEmailDotNotif.tsx +51 -0
  327. package/src/components/pictograms/svg/PictogramEnded.tsx +34 -0
  328. package/src/components/pictograms/svg/PictogramLostConnection.tsx +58 -0
  329. package/src/components/pictograms/svg/PictogramPending.tsx +17 -9
  330. package/src/components/pictograms/svg/PictogramQrCode.tsx +102 -0
  331. package/src/components/pictograms/svg/originals/PictogramBiometric.svg +1 -0
  332. package/src/components/pictograms/svg/originals/PictogramBleedEnded.svg +1 -0
  333. package/src/components/pictograms/svg/originals/PictogramBleedLostConnection.svg +1 -0
  334. package/src/components/pictograms/svg/originals/PictogramBleedPending.svg +1 -1
  335. package/src/components/pictograms/svg/originals/PictogramBleedQrCode.svg +1 -0
  336. package/src/components/pictograms/svg/originals/PictogramEmailDotCheck.svg +41 -0
  337. package/src/components/pictograms/svg/originals/PictogramEmailDotNotif.svg +35 -0
  338. package/src/components/pictograms/svg/originals/PictogramEnded.svg +1 -0
  339. package/src/components/pictograms/svg/originals/PictogramLostConnection.svg +1 -0
  340. package/src/components/pictograms/svg/originals/PictogramPending.svg +1 -1
  341. package/src/components/pictograms/svg/originals/PictogramQrCode.svg +1 -0
  342. package/src/components/radio/RadioGroup.tsx +5 -4
  343. package/src/components/stepper/Stepper.tsx +62 -0
  344. package/src/components/stepper/index.tsx +1 -0
  345. package/src/components/typography/H1.tsx +8 -3
  346. package/src/components/typography/H2.tsx +8 -3
  347. package/src/components/typography/H3.tsx +8 -3
  348. package/src/components/typography/H4.tsx +5 -1
  349. package/src/components/typography/H6.tsx +6 -1
  350. package/src/components/typography/Hero.tsx +10 -3
  351. package/src/components/typography/LabelSmall.tsx +8 -1
  352. package/src/components/typography/LabelSmallAlt.tsx +51 -0
  353. package/src/components/typography/README.md +23 -0
  354. package/src/components/typography/__test__/__snapshots__/typography.test.tsx.snap +84 -74
  355. package/src/components/typography/index.tsx +1 -0
  356. package/lib/commonjs/components/icons/generateNewIcons.js +0 -165
  357. package/lib/commonjs/components/icons/generateNewIcons.js.map +0 -1
  358. package/lib/commonjs/components/icons/generateNewTimestamp.js +0 -8
  359. package/lib/commonjs/components/icons/generateNewTimestamp.js.map +0 -1
  360. package/lib/commonjs/components/icons/timestamp.txt +0 -1
  361. package/lib/commonjs/components/pictograms/generateNewPictograms.js +0 -163
  362. package/lib/commonjs/components/pictograms/generateNewPictograms.js.map +0 -1
  363. package/lib/commonjs/components/pictograms/timestamp.txt +0 -1
  364. package/lib/commonjs/stories/ButtonDS.stories.js +0 -34
  365. package/lib/commonjs/stories/ButtonDS.stories.js.map +0 -1
  366. package/lib/commonjs/stories/H1.stories.js +0 -33
  367. package/lib/commonjs/stories/H1.stories.js.map +0 -1
  368. package/lib/commonjs/stories/H2.stories.js +0 -33
  369. package/lib/commonjs/stories/H2.stories.js.map +0 -1
  370. package/lib/commonjs/stories/H3.stories.js +0 -33
  371. package/lib/commonjs/stories/H3.stories.js.map +0 -1
  372. package/lib/commonjs/stories/H4.stories.js +0 -33
  373. package/lib/commonjs/stories/H4.stories.js.map +0 -1
  374. package/lib/commonjs/stories/H5.stories.js +0 -33
  375. package/lib/commonjs/stories/H5.stories.js.map +0 -1
  376. package/lib/commonjs/stories/H6.stories.js +0 -33
  377. package/lib/commonjs/stories/H6.stories.js.map +0 -1
  378. package/lib/commonjs/stories/Label.stories.js +0 -33
  379. package/lib/commonjs/stories/Label.stories.js.map +0 -1
  380. package/lib/commonjs/stories/LabelSmall.stories.js +0 -33
  381. package/lib/commonjs/stories/LabelSmall.stories.js.map +0 -1
  382. package/lib/commonjs/stories/Link.stories.js +0 -33
  383. package/lib/commonjs/stories/Link.stories.js.map +0 -1
  384. package/lib/commonjs/stories/ModuleIDP.stories.js +0 -45
  385. package/lib/commonjs/stories/ModuleIDP.stories.js.map +0 -1
  386. package/lib/commonjs/stories/Monospace.stories.js +0 -33
  387. package/lib/commonjs/stories/Monospace.stories.js.map +0 -1
  388. package/lib/module/components/icons/generateNewIcons.js +0 -163
  389. package/lib/module/components/icons/generateNewIcons.js.map +0 -1
  390. package/lib/module/components/icons/generateNewTimestamp.js +0 -6
  391. package/lib/module/components/icons/generateNewTimestamp.js.map +0 -1
  392. package/lib/module/components/icons/timestamp.txt +0 -1
  393. package/lib/module/components/pictograms/generateNewPictograms.js +0 -161
  394. package/lib/module/components/pictograms/generateNewPictograms.js.map +0 -1
  395. package/lib/module/components/pictograms/timestamp.txt +0 -1
  396. package/lib/module/stories/ButtonDS.stories.js +0 -27
  397. package/lib/module/stories/ButtonDS.stories.js.map +0 -1
  398. package/lib/module/stories/H1.stories.js +0 -26
  399. package/lib/module/stories/H1.stories.js.map +0 -1
  400. package/lib/module/stories/H2.stories.js +0 -26
  401. package/lib/module/stories/H2.stories.js.map +0 -1
  402. package/lib/module/stories/H3.stories.js +0 -26
  403. package/lib/module/stories/H3.stories.js.map +0 -1
  404. package/lib/module/stories/H4.stories.js +0 -26
  405. package/lib/module/stories/H4.stories.js.map +0 -1
  406. package/lib/module/stories/H5.stories.js +0 -26
  407. package/lib/module/stories/H5.stories.js.map +0 -1
  408. package/lib/module/stories/H6.stories.js +0 -26
  409. package/lib/module/stories/H6.stories.js.map +0 -1
  410. package/lib/module/stories/Label.stories.js +0 -26
  411. package/lib/module/stories/Label.stories.js.map +0 -1
  412. package/lib/module/stories/LabelSmall.stories.js +0 -26
  413. package/lib/module/stories/LabelSmall.stories.js.map +0 -1
  414. package/lib/module/stories/Link.stories.js +0 -26
  415. package/lib/module/stories/Link.stories.js.map +0 -1
  416. package/lib/module/stories/ModuleIDP.stories.js +0 -37
  417. package/lib/module/stories/ModuleIDP.stories.js.map +0 -1
  418. package/lib/module/stories/Monospace.stories.js +0 -26
  419. package/lib/module/stories/Monospace.stories.js.map +0 -1
  420. package/lib/typescript/stories/ButtonDS.stories.d.ts +0 -14
  421. package/lib/typescript/stories/ButtonDS.stories.d.ts.map +0 -1
  422. package/lib/typescript/stories/H1.stories.d.ts +0 -19
  423. package/lib/typescript/stories/H1.stories.d.ts.map +0 -1
  424. package/lib/typescript/stories/H2.stories.d.ts +0 -19
  425. package/lib/typescript/stories/H2.stories.d.ts.map +0 -1
  426. package/lib/typescript/stories/H3.stories.d.ts +0 -19
  427. package/lib/typescript/stories/H3.stories.d.ts.map +0 -1
  428. package/lib/typescript/stories/H4.stories.d.ts +0 -19
  429. package/lib/typescript/stories/H4.stories.d.ts.map +0 -1
  430. package/lib/typescript/stories/H5.stories.d.ts +0 -19
  431. package/lib/typescript/stories/H5.stories.d.ts.map +0 -1
  432. package/lib/typescript/stories/H6.stories.d.ts +0 -19
  433. package/lib/typescript/stories/H6.stories.d.ts.map +0 -1
  434. package/lib/typescript/stories/Label.stories.d.ts +0 -21
  435. package/lib/typescript/stories/Label.stories.d.ts.map +0 -1
  436. package/lib/typescript/stories/LabelSmall.stories.d.ts +0 -21
  437. package/lib/typescript/stories/LabelSmall.stories.d.ts.map +0 -1
  438. package/lib/typescript/stories/Link.stories.d.ts +0 -21
  439. package/lib/typescript/stories/Link.stories.d.ts.map +0 -1
  440. package/lib/typescript/stories/ModuleIDP.stories.d.ts +0 -24
  441. package/lib/typescript/stories/ModuleIDP.stories.d.ts.map +0 -1
  442. package/lib/typescript/stories/Monospace.stories.d.ts +0 -19
  443. package/lib/typescript/stories/Monospace.stories.d.ts.map +0 -1
  444. package/src/components/icons/generateNewIcons.js +0 -186
  445. package/src/components/icons/generateNewTimestamp.js +0 -7
  446. package/src/components/icons/timestamp.txt +0 -1
  447. package/src/components/pictograms/generateNewPictograms.js +0 -181
  448. package/src/components/pictograms/timestamp.txt +0 -1
  449. package/src/stories/ButtonDS.stories.ts +0 -31
  450. package/src/stories/H1.stories.ts +0 -28
  451. package/src/stories/H2.stories.ts +0 -28
  452. package/src/stories/H3.stories.ts +0 -28
  453. package/src/stories/H4.stories.ts +0 -28
  454. package/src/stories/H5.stories.ts +0 -28
  455. package/src/stories/H6.stories.ts +0 -28
  456. package/src/stories/Label.stories.ts +0 -28
  457. package/src/stories/LabelSmall.stories.ts +0 -28
  458. package/src/stories/Link.stories.ts +0 -28
  459. package/src/stories/ModuleIDP.stories.tsx +0 -44
  460. package/src/stories/Monospace.stories.ts +0 -28
@@ -1,165 +0,0 @@
1
- "use strict";
2
-
3
- /* eslint-disable @typescript-eslint/no-var-requires */
4
- /* eslint-disable no-console */
5
- /* eslint-disable @typescript-eslint/restrict-plus-operands */
6
-
7
- /**
8
- DRAFT for an AUTOMATIC process to generate new icon components
9
- (`Icon....tsx`) from the SVG files exported from Figma.
10
-
11
- Prerequisites:
12
- - The icon must be exported from the 24 × 24 frame
13
- - The icon must be saved with the final name
14
- - To learn more about naming conventions, please read the local README
15
- */
16
-
17
- // STEPS:
18
-
19
- /**
20
- * 1. Only process the newly added files
21
- *
22
- * Suggested path:
23
- * 1. Files that need to be processed must be in the `svg/originals` folder.
24
- * 2. Add a new file with the timestamp of the last process run.
25
- * The file must be committed along with others.
26
- * 3. Only files added after that timestamp value will be processed.
27
- * 4. After the process run, update the new file with the current timestamp.
28
- */
29
-
30
- /**
31
- * 2. Optimize SVG files with SVGO package (https://github.com/svg/svgo)
32
- *
33
- * Suggested path:
34
- * 1. Add `svgo` to the `package.json` to use it as an executable
35
- * 2. Configure it with the following parameters:
36
- * - removeDimensions
37
- * - removeRasterImages
38
- * - removeScriptElement
39
- * - removeViewBox (disabled)
40
- * 3. Overwrite the original files
41
- * 4. Optionally save the old ones in a `tmp` folder, which may be useful
42
- * for debugging purposes.
43
- * - Consider adding a `--debug' flag to the
44
- * command to enable this behavior.
45
- * - Add the `tmp` folder to `.gitignore` to keep the folder clean
46
- * 5. Check the files after the optimizations
47
- */
48
-
49
- /**
50
- * 3. Create the relative React component (with .tsx)
51
- *
52
- * Suggested path:
53
- * - For every new SVG file:
54
- * 1. Copy all the code contained in the `<svg>` tag
55
- * 2. Use the file `_IconTemplate.tsx` as component template
56
- * - Replace `IconTemplate` with the original SVG name
57
- * - Remove all the comments inserted in the component file
58
- * 3. Replace the `{SVGContent}` placeholder with the code copied
59
- * in the step 1, replacing all the tags with the appropriate
60
- * React ones. E.g: `path` becomes `Path` and so on…
61
- * 4. Replace all the color values, set in hexadecimal format, with the
62
- * `currentColor` attribute.
63
- * E.g: fill="#CCCCCC" -> fill="currentColor"
64
- * 5. Save a new file in the `svg` folder with the same filename
65
- * of the relative SVG file and extension `.tsx`.
66
- * E.g: svg/originals/IconProfile.svg -> svg/IconProfile.tsx
67
- * 6. Save the list of processed SVG files and corresponding generated
68
- * React components to a separate file. Add it to the `.gitignore`
69
- * to keep the folder clean.
70
- */
71
-
72
- const path = require("path");
73
- const join = path.join;
74
- const {
75
- optimize
76
- } = require("svgo");
77
- const prettier = require("prettier");
78
- const fs = require("fs-extra");
79
- const {
80
- transform
81
- } = require("@svgr/core");
82
- const svgDir = join(__dirname, "svg/originals");
83
- const tsxDir = join(__dirname, "svg");
84
- const templateFilePath = join(__dirname, "svg/_IconTemplate.tsx");
85
- const timestampFilePath = join(__dirname, "timestamp.txt");
86
- const convertTimestampToReadableFormat = timestamp => new Date(timestamp).toLocaleString("it-IT", {
87
- timeZone: "Europe/Rome"
88
- });
89
- fs.readFile(timestampFilePath, "utf8", (err, timestamp) => {
90
- if (err) {
91
- console.log("Timestamp file not found.");
92
- throw err;
93
- }
94
- console.log("Last processed timestamp:", convertTimestampToReadableFormat(timestamp));
95
- console.log(`————————————————`);
96
- fs.readdir(svgDir, (err, files) => {
97
- if (err) {
98
- throw err;
99
- }
100
- files.forEach(file => {
101
- const filePath = join(svgDir, file);
102
- const fileStats = fs.statSync(filePath);
103
-
104
- /* Only process files with a more recent creation
105
- date later than the timestamp value */
106
- if (fileStats.mtime > new Date(timestamp)) {
107
- const data = fs.readFileSync(filePath, "utf8");
108
-
109
- // Check if the file is an SVG
110
- if (!file.endsWith(".svg")) {
111
- return;
112
- }
113
-
114
- // Using SVGO to optimize the SVG
115
- const result = optimize(data, {
116
- path: filePath,
117
- plugins: ["removeDimensions", "removeRasterImages", "removeScriptElement", "removeViewBox"]
118
- });
119
- // Overwrite original SVG file with optimized code
120
- fs.writeFileSync(filePath, result.data);
121
-
122
- // Convert SVG to JSX using `svgr`
123
- const jsxCode = transform.sync(result.data, {
124
- // Optimize SVG code using SVGO
125
- svgo: true,
126
- svgoConfig: {
127
- removeRasterImages: true,
128
- removeScriptElement: true,
129
- removeUselessDefs: true
130
- },
131
- // Transform tags in Capital Case for React Native
132
- native: true,
133
- // Remove `width` and `height` attrs
134
- dimensions: false,
135
- /* Prettify the result */
136
- plugins: ["@svgr/plugin-jsx"]
137
- });
138
-
139
- /* Replace hardcoded color value with `currentColor` */
140
- const jsxCodeWithoutHardcodedColors = jsxCode.replace(/fill="[^"]*"/g, 'fill="currentColor"');
141
-
142
- // Extract only the Path tags from the JSX code
143
- const pathTagRegex = /<Path[^>]*\/>/g;
144
- const pathTags = jsxCodeWithoutHardcodedColors.match(pathTagRegex);
145
- const jsxCodeWithPathOnly = pathTags.join("");
146
- const template = fs.readFileSync(templateFilePath, "utf8");
147
- const componentData = template.replace(/IconTemplate/g, file.replace(".svg", "")).replace(/\/\/.*\n/g, "") // Remove lines starting with //
148
- .replace(`{/* SVGContent */}`, jsxCodeWithPathOnly);
149
- const fileWithTsxExtension = file.replace(".svg", ".tsx");
150
- const tsxFilePath = join(tsxDir, fileWithTsxExtension);
151
- fs.writeFileSync(tsxFilePath, prettier.format(componentData, {
152
- parser: "typescript"
153
- }));
154
- console.log(`${file} → ${fileWithTsxExtension}`);
155
- }
156
- });
157
- const newTimestamp = new Date();
158
- const convertedISOTimestamp = newTimestamp.toISOString();
159
- fs.writeFileSync(timestampFilePath, convertedISOTimestamp);
160
- const readableUpdatedTimestamp = convertTimestampToReadableFormat(newTimestamp);
161
- console.log(`————————————————`);
162
- console.log("Updated timestamp:", readableUpdatedTimestamp);
163
- });
164
- });
165
- //# sourceMappingURL=generateNewIcons.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["path","require","join","optimize","prettier","fs","transform","svgDir","__dirname","tsxDir","templateFilePath","timestampFilePath","convertTimestampToReadableFormat","timestamp","Date","toLocaleString","timeZone","readFile","err","console","log","readdir","files","forEach","file","filePath","fileStats","statSync","mtime","data","readFileSync","endsWith","result","plugins","writeFileSync","jsxCode","sync","svgo","svgoConfig","removeRasterImages","removeScriptElement","removeUselessDefs","native","dimensions","jsxCodeWithoutHardcodedColors","replace","pathTagRegex","pathTags","match","jsxCodeWithPathOnly","template","componentData","fileWithTsxExtension","tsxFilePath","format","parser","newTimestamp","convertedISOTimestamp","toISOString","readableUpdatedTimestamp"],"sourceRoot":"../../../../src","sources":["components/icons/generateNewIcons.js"],"mappings":";;AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMA,IAAI,GAAGC,OAAO,CAAC,MAAM,CAAC;AAC5B,MAAMC,IAAI,GAAGF,IAAI,CAACE,IAAI;AACtB,MAAM;EAAEC;AAAS,CAAC,GAAGF,OAAO,CAAC,MAAM,CAAC;AACpC,MAAMG,QAAQ,GAAGH,OAAO,CAAC,UAAU,CAAC;AACpC,MAAMI,EAAE,GAAGJ,OAAO,CAAC,UAAU,CAAC;AAC9B,MAAM;EAAEK;AAAU,CAAC,GAAGL,OAAO,CAAC,YAAY,CAAC;AAE3C,MAAMM,MAAM,GAAGL,IAAI,CAACM,SAAS,EAAE,eA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,MAAMQ,WAAW,GAAGnD,IAAI,CAACO,MAAM,EAAE2C,oBAAoB,CAAC;QACtD/C,EAAE,CAAC6B,aAAa,CACdmB,WAAW,EACXjD,QAAQ,CAACkD,MAAM,CAACH,aAAa,EAAE;UAAEI,MAAM,EAAE;QAAa,CAAC,CACzD,CAAC;QAEDpC,OAAO,CAACC,GAAG,CAAE,GAAEI,IAAK,MAAK4B,oBAAqB,EAAC,CAAC;MAClD;IACF,CAAC,CAAC;IAEF,MAAMI,YAAY,GAAG,IAAI1C,IAAI,CAAC,CAAC;IAC/B,MAAM2C,qBAAqB,GAAGD,YAAY,CAACE,WAAW,CAAC,CAAC;IACxDrD,EAAE,CAAC6B,aAAa,CAACvB,iBAAiB,EAAE8C,qBAAqB,CAAC;IAE1D,MAAME,wBAAwB,GAC5B/C,gCAAgC,CAAC4C,YAAY,CAAC;IAEhDrC,OAAO,CAACC,GAAG,CAAE,kBAAiB,CAAC;IAC/BD,OAAO,CAACC,GAAG,CAAC,oBAAoB,EAAEuC,wBAAwB,CAAC;EAC7D,CAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
-
3
- /* eslint-disable @typescript-eslint/no-var-requires */
4
- const fs = require("fs-extra");
5
- const timestampFilePath = "./timestamp.txt";
6
- const currentTimestamp = new Date().toISOString();
7
- fs.writeFileSync(timestampFilePath, currentTimestamp);
8
- //# sourceMappingURL=generateNewTimestamp.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["fs","require","timestampFilePath","currentTimestamp","Date","toISOString","writeFileSync"],"sourceRoot":"../../../../src","sources":["components/icons/generateNewTimestamp.js"],"mappings":";;AAAA;AACA,MAAMA,EAAE,GAAGC,OAAO,CAAC,UAAU,CAAC;AAE9B,MAAMC,iBAAiB,GAAG,iBAAiB;AAC3C,MAAMC,gBAAgB,GAAG,IAAIC,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;AAEjDL,EAAE,CAACM,aAAa,CAACJ,iBAAiB,EAAEC,gBAAgB,CAAC"}
@@ -1 +0,0 @@
1
- 2023-10-30T09:55:59.147Z
@@ -1,163 +0,0 @@
1
- "use strict";
2
-
3
- /* eslint-disable @typescript-eslint/no-var-requires */
4
- /* eslint-disable no-console */
5
- /* eslint-disable @typescript-eslint/restrict-plus-operands */
6
-
7
- /**
8
- DRAFT for an AUTOMATIC process to generate new pictogram components
9
- (`Pictogram....tsx`) from the SVG files exported from Figma.
10
-
11
- Prerequisites:
12
- - The pictogram must be exported from the 240 × 240 frame
13
- - The pictogram must be saved with the final name
14
- - To learn more about naming conventions, please read the local README
15
- */
16
-
17
- // STEPS:
18
-
19
- /**
20
- * 1. Only process the newly added files
21
- *
22
- * Suggested path:
23
- * 1. Files that need to be processed must be in the `svg/originals` folder.
24
- * 2. Add a new file with the timestamp of the last process run.
25
- * The file must be committed along with others.
26
- * 3. Only files added after that timestamp value will be processed.
27
- * 4. After the process run, update the new file with the current timestamp.
28
- */
29
-
30
- /**
31
- * 2. Optimize SVG files with SVGO package (https://github.com/svg/svgo)
32
- *
33
- * Suggested path:
34
- * 1. Add `svgo` to the `package.json` to use it as an executable
35
- * 2. Configure it with the following parameters:
36
- * - removeDimensions
37
- * - removeRasterImages
38
- * - removeScriptElement
39
- * - removeViewBox (disabled)
40
- * 3. Overwrite the original files
41
- */
42
-
43
- /**
44
- * 3. Create the relative React component (with .tsx)
45
- *
46
- * Suggested path:
47
- * - For every new SVG file:
48
- * 1. Copy all the code contained in the `<svg>` tag
49
- * 2. Use the file `_PictogramTemplate.tsx` as component template
50
- * - Replace `PictogramTemplate` with the original SVG name
51
- * - Remove all the comments inserted in the component file
52
- * 3. Replace the `{SVGContent}` placeholder with the code copied
53
- * in the step 1, replacing all the tags with the appropriate
54
- * React ones. E.g: `path` becomes `Path` and so on…
55
- * 4. Replace all the color values, set in hexadecimal format, with the
56
- * correct `colorValues…` chromatic value.
57
- * E.g: fill="#CCCCCC" -> fill="colorValues.hands"
58
- * 5. Save a new file in the `svg` folder with the same filename
59
- * of the relative SVG file and extension `.tsx`.
60
- * E.g: svg/originals/PictogramProfile.svg -> svg/PictogramProfile.tsx
61
- */
62
-
63
- const path = require("path");
64
- const join = path.join;
65
- const {
66
- optimize
67
- } = require("svgo");
68
- const prettier = require("prettier");
69
- const fs = require("fs-extra");
70
- const {
71
- transform
72
- } = require("@svgr/core");
73
- const svgDir = join(__dirname, "svg/originals");
74
- const tsxDir = join(__dirname, "svg");
75
- const templateFilePath = join(__dirname, "svg/_PictogramTemplate.tsx");
76
- const timestampFilePath = join(__dirname, "timestamp.txt");
77
- const colorMapValues = {
78
- "#0B3EE3": "{colorValues.hands}",
79
- "#AAEEEF": "{colorValues.main}",
80
- "#00C5CA": "{colorValues.secondary}"
81
- };
82
- const convertTimestampToReadableFormat = timestamp => new Date(timestamp).toLocaleString("it-IT", {
83
- timeZone: "Europe/Rome"
84
- });
85
- fs.readFile(timestampFilePath, "utf8", (err, timestamp) => {
86
- if (err) {
87
- console.log("Timestamp file not found.");
88
- throw err;
89
- }
90
- console.log("Last processed timestamp:", convertTimestampToReadableFormat(timestamp));
91
- console.log(`————————————————`);
92
- fs.readdir(svgDir, (err, files) => {
93
- if (err) {
94
- throw err;
95
- }
96
- files.forEach(file => {
97
- const filePath = join(svgDir, file);
98
- const fileStats = fs.statSync(filePath);
99
-
100
- /* Only process files with a more recent creation
101
- date later than the timestamp value */
102
- if (fileStats.mtime > new Date(timestamp)) {
103
- const data = fs.readFileSync(filePath, "utf8");
104
-
105
- // Check if the file is an SVG
106
- if (!file.endsWith(".svg")) {
107
- return;
108
- }
109
-
110
- // Using SVGO to optimize the SVG
111
- const result = optimize(data, {
112
- path: filePath,
113
- plugins: ["removeDimensions", "removeRasterImages", "removeScriptElement", "removeUselessDefs"]
114
- });
115
- // Overwrite original SVG file with optimized code
116
- fs.writeFileSync(filePath, result.data);
117
-
118
- // Convert SVG to JSX using `svgr`
119
- const jsxCode = transform.sync(result.data, {
120
- // Optimize SVG code using SVGO
121
- svgo: true,
122
- svgoConfig: {
123
- removeRasterImages: true,
124
- removeScriptElement: true,
125
- removeUselessDefs: true
126
- },
127
- // Transform tags in Capital Case for React Native
128
- native: true,
129
- // Remove `width` and `height` attrs
130
- dimensions: false,
131
- /* Replace the hardcoded color value with one
132
- obtained from `colorMapValues`. */
133
- replaceAttrValues: colorMapValues,
134
- /* Prettify the result */
135
- plugins: ["@svgr/plugin-jsx"]
136
- });
137
-
138
- // Extract only the Path tags from the JSX code
139
- const pathTagRegex = /<Path[^>]*\/>/g;
140
- const pathTags = jsxCode.match(pathTagRegex);
141
- const jsxCodeWithPathOnly = pathTags.join("");
142
- const template = fs.readFileSync(templateFilePath, "utf8");
143
- const componentData = template.replace(/PictogramTemplate/g, file.replace(".svg", "")).replace(/\/\/.*\n/g, "") // Remove lines starting with //
144
- .replace(`{/* SVGContent */}`, jsxCodeWithPathOnly);
145
-
146
- // Save the file with the same filename with `.tsx` extension
147
- const fileWithTsxExtension = file.replace(".svg", ".tsx");
148
- const tsxFilePath = join(tsxDir, fileWithTsxExtension);
149
- fs.writeFileSync(tsxFilePath, prettier.format(componentData, {
150
- parser: "typescript"
151
- }));
152
- console.log(`${file} → ${fileWithTsxExtension}`);
153
- }
154
- });
155
- const newTimestamp = new Date();
156
- const convertedISOTimestamp = newTimestamp.toISOString();
157
- fs.writeFileSync(timestampFilePath, convertedISOTimestamp);
158
- const readableUpdatedTimestamp = convertTimestampToReadableFormat(newTimestamp);
159
- console.log(`————————————————`);
160
- console.log("Updated timestamp:", readableUpdatedTimestamp);
161
- });
162
- });
163
- //# sourceMappingURL=generateNewPictograms.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["path","require","join","optimize","prettier","fs","transform","svgDir","__dirname","tsxDir","templateFilePath","timestampFilePath","colorMapValues","convertTimestampToReadableFormat","timestamp","Date","toLocaleString","timeZone","readFile","err","console","log","readdir","files","forEach","file","filePath","fileStats","statSync","mtime","data","readFileSync","endsWith","result","plugins","writeFileSync","jsxCode","sync","svgo","svgoConfig","removeRasterImages","removeScriptElement","removeUselessDefs","native","dimensions","replaceAttrValues","pathTagRegex","pathTags","match","jsxCodeWithPathOnly","template","componentData","replace","fileWithTsxExtension","tsxFilePath","format","parser","newTimestamp","convertedISOTimestamp","toISOString","readableUpdatedTimestamp"],"sourceRoot":"../../../../src","sources":["components/pictograms/generateNewPictograms.js"],"mappings":";;AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMA,IAAI,GAAGC,OAAO,CAAC,MAAM,CAAC;AAC5B,MAAMC,IAAI,GAAGF,IAAI,CAACE,IAAI;AACtB,MAAM;EAAEC;AAAS,CAAC,GAAGF,OAAO,CAAC,MAAM,CAAC;AACpC,MAAMG,QAAQ,GAAGH,OAAO,CAAC,UAAU,CAAC;AACpC,MAAMI,EAAE,GAAGJ,OAAO,CAAC,UAAU,CAAC;AAC9B,MAAM;EAAEK;AAAU,CAAC,GAAGL,OAAO,CAAC,YAAY,CAAC;AAE3C,MAAMM,MAAM,GAAGL,IAAI,CAACM,SAAS,EAAE,eAAe,CAAC;AAC/C,MAAMC,MAAM,GAAGP,IAAI,CAACM,SAAS,EAAE,KAAK,CAAC;AACrC,MAAME,gBAAgB,GAAGR,IAAI,CAACM,SAAS,EAAE,4BAA4B,CAAC;AACtE,MAAMG,iBAAiB,GAAGT,IAAI,CAACM,SAAS,EAAE,eAAe,CAAC;AAE1D,MAAMI,cAAc,GAAG;EACrB,SAAS,EAAE,qBAAqB;EAChC,SAAS,EAAE,oBAAoB;EAC/B,SAAS,EAAE;AACb,CAAC;AAED,MAAMC,gCAAgC,G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BAAqB,EAAC,CAAC;MAClD;IACF,CAAC,CAAC;IAEF,MAAMI,YAAY,GAAG,IAAI1C,IAAI,CAAC,CAAC;IAC/B,MAAM2C,qBAAqB,GAAGD,YAAY,CAACE,WAAW,CAAC,CAAC;IACxDtD,EAAE,CAAC8B,aAAa,CAACxB,iBAAiB,EAAE+C,qBAAqB,CAAC;IAE1D,MAAME,wBAAwB,GAC5B/C,gCAAgC,CAAC4C,YAAY,CAAC;IAEhDrC,OAAO,CAACC,GAAG,CAAE,kBAAiB,CAAC;IAC/BD,OAAO,CAACC,GAAG,CAAC,oBAAoB,EAAEuC,wBAAwB,CAAC;EAC7D,CAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- 2023-10-30T13:28:58.366Z
@@ -1,34 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.Primary = void 0;
7
- var _addonActions = require("@storybook/addon-actions");
8
- var _components = require("../components");
9
- // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
10
- const meta = {
11
- title: "Example/ButtonSolid",
12
- component: _components.ButtonSolid,
13
- parameters: {
14
- // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
15
- layout: "centered"
16
- },
17
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
18
- tags: ["autodocs"]
19
- };
20
- var _default = meta;
21
- exports.default = _default;
22
- // More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
23
- const Primary = {
24
- args: {
25
- color: "primary",
26
- accessibilityLabel: "Tap to trigger test alert",
27
- label: "Primary button",
28
- onPress: e => {
29
- (0, _addonActions.action)("clicked")(e);
30
- }
31
- }
32
- };
33
- exports.Primary = Primary;
34
- //# sourceMappingURL=ButtonDS.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_addonActions","require","_components","meta","title","component","ButtonSolid","parameters","layout","tags","_default","exports","default","Primary","args","color","accessibilityLabel","label","onPress","e","action"],"sourceRoot":"../../../src","sources":["stories/ButtonDS.stories.ts"],"mappings":";;;;;;AACA,IAAAA,aAAA,GAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AAEA;AACA,MAAME,IAAI,GAAG;EACXC,KAAK,EAAE,qBAAqB;EAC5BC,SAAS,EAAEC,uBAAW;EACtBC,UAAU,EAAE;IACV;IACAC,MAAM,EAAE;EACV,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAAoC;AAAC,IAAAC,QAAA,GAEtBP,IAAI;AAAAQ,OAAA,CAAAC,OAAA,GAAAF,QAAA;AAGnB;AACO,MAAMG,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,KAAK,EAAE,SAAS;IAChBC,kBAAkB,EAAE,2BAA2B;IAC/CC,KAAK,EAAE,gBAAgB;IACvBC,OAAO,EAAEC,CAAC,IAAI;MACZ,IAAAC,oBAAM,EAAC,SAAS,CAAC,CAACD,CAAC,CAAC;IACtB;EACF;AACF,CAAC;AAACR,OAAA,CAAAE,OAAA,GAAAA,OAAA"}
@@ -1,33 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.Primary = void 0;
7
- var _reactNative = require("react-native");
8
- var _components = require("../components");
9
- // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
10
- const meta = {
11
- title: "Example/H1",
12
- component: _components.H1,
13
- parameters: {
14
- // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
15
- layout: "centered",
16
- actions: {
17
- argTypesRegex: "^on.*"
18
- }
19
- },
20
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
21
- tags: ["autodocs"]
22
- };
23
- var _default = meta;
24
- exports.default = _default;
25
- const Primary = {
26
- args: {
27
- accessibilityLabel: "Tap to trigger test alert",
28
- onPress: () => _reactNative.Alert.alert("Alert", "Action triggered"),
29
- children: "Hello World"
30
- }
31
- };
32
- exports.Primary = Primary;
33
- //# sourceMappingURL=H1.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNative","require","_components","meta","title","component","H1","parameters","layout","actions","argTypesRegex","tags","_default","exports","default","Primary","args","accessibilityLabel","onPress","Alert","alert","children"],"sourceRoot":"../../../src","sources":["stories/H1.stories.ts"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA;AACA,MAAME,IAAI,GAAG;EACXC,KAAK,EAAE,YAAY;EACnBC,SAAS,EAAEC,cAAE;EACbC,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAA2B;AAAC,IAAAC,QAAA,GAEbT,IAAI;AAAAU,OAAA,CAAAC,OAAA,GAAAF,QAAA;AAGZ,MAAMG,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMC,kBAAK,CAACC,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC;AAACR,OAAA,CAAAE,OAAA,GAAAA,OAAA"}
@@ -1,33 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.Primary = void 0;
7
- var _reactNative = require("react-native");
8
- var _components = require("../components");
9
- // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
10
- const meta = {
11
- title: "Example/H2",
12
- component: _components.H2,
13
- parameters: {
14
- // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
15
- layout: "centered",
16
- actions: {
17
- argTypesRegex: "^on.*"
18
- }
19
- },
20
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
21
- tags: ["autodocs"]
22
- };
23
- var _default = meta;
24
- exports.default = _default;
25
- const Primary = {
26
- args: {
27
- accessibilityLabel: "Tap to trigger test alert",
28
- onPress: () => _reactNative.Alert.alert("Alert", "Action triggered"),
29
- children: "Hello World"
30
- }
31
- };
32
- exports.Primary = Primary;
33
- //# sourceMappingURL=H2.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNative","require","_components","meta","title","component","H2","parameters","layout","actions","argTypesRegex","tags","_default","exports","default","Primary","args","accessibilityLabel","onPress","Alert","alert","children"],"sourceRoot":"../../../src","sources":["stories/H2.stories.ts"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA;AACA,MAAME,IAAI,GAAG;EACXC,KAAK,EAAE,YAAY;EACnBC,SAAS,EAAEC,cAAE;EACbC,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAA2B;AAAC,IAAAC,QAAA,GAEbT,IAAI;AAAAU,OAAA,CAAAC,OAAA,GAAAF,QAAA;AAGZ,MAAMG,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMC,kBAAK,CAACC,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC;AAACR,OAAA,CAAAE,OAAA,GAAAA,OAAA"}
@@ -1,33 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.Primary = void 0;
7
- var _reactNative = require("react-native");
8
- var _components = require("../components");
9
- // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
10
- const meta = {
11
- title: "Example/H3",
12
- component: _components.H3,
13
- parameters: {
14
- // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
15
- layout: "centered",
16
- actions: {
17
- argTypesRegex: "^on.*"
18
- }
19
- },
20
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
21
- tags: ["autodocs"]
22
- };
23
- var _default = meta;
24
- exports.default = _default;
25
- const Primary = {
26
- args: {
27
- accessibilityLabel: "Tap to trigger test alert",
28
- onPress: () => _reactNative.Alert.alert("Alert", "Action triggered"),
29
- children: "Hello World"
30
- }
31
- };
32
- exports.Primary = Primary;
33
- //# sourceMappingURL=H3.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNative","require","_components","meta","title","component","H3","parameters","layout","actions","argTypesRegex","tags","_default","exports","default","Primary","args","accessibilityLabel","onPress","Alert","alert","children"],"sourceRoot":"../../../src","sources":["stories/H3.stories.ts"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA;AACA,MAAME,IAAI,GAAG;EACXC,KAAK,EAAE,YAAY;EACnBC,SAAS,EAAEC,cAAE;EACbC,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAA2B;AAAC,IAAAC,QAAA,GAEbT,IAAI;AAAAU,OAAA,CAAAC,OAAA,GAAAF,QAAA;AAGZ,MAAMG,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMC,kBAAK,CAACC,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC;AAACR,OAAA,CAAAE,OAAA,GAAAA,OAAA"}
@@ -1,33 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.Primary = void 0;
7
- var _reactNative = require("react-native");
8
- var _components = require("../components");
9
- // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
10
- const meta = {
11
- title: "Example/H4",
12
- component: _components.H4,
13
- parameters: {
14
- // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
15
- layout: "centered",
16
- actions: {
17
- argTypesRegex: "^on.*"
18
- }
19
- },
20
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
21
- tags: ["autodocs"]
22
- };
23
- var _default = meta;
24
- exports.default = _default;
25
- const Primary = {
26
- args: {
27
- accessibilityLabel: "Tap to trigger test alert",
28
- onPress: () => _reactNative.Alert.alert("Alert", "Action triggered"),
29
- children: "Hello World"
30
- }
31
- };
32
- exports.Primary = Primary;
33
- //# sourceMappingURL=H4.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNative","require","_components","meta","title","component","H4","parameters","layout","actions","argTypesRegex","tags","_default","exports","default","Primary","args","accessibilityLabel","onPress","Alert","alert","children"],"sourceRoot":"../../../src","sources":["stories/H4.stories.ts"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA;AACA,MAAME,IAAI,GAAG;EACXC,KAAK,EAAE,YAAY;EACnBC,SAAS,EAAEC,cAAE;EACbC,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAA2B;AAAC,IAAAC,QAAA,GAEbT,IAAI;AAAAU,OAAA,CAAAC,OAAA,GAAAF,QAAA;AAGZ,MAAMG,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMC,kBAAK,CAACC,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC;AAACR,OAAA,CAAAE,OAAA,GAAAA,OAAA"}
@@ -1,33 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.Primary = void 0;
7
- var _reactNative = require("react-native");
8
- var _components = require("../components");
9
- // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
10
- const meta = {
11
- title: "Example/H5",
12
- component: _components.H5,
13
- parameters: {
14
- // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
15
- layout: "centered",
16
- actions: {
17
- argTypesRegex: "^on.*"
18
- }
19
- },
20
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
21
- tags: ["autodocs"]
22
- };
23
- var _default = meta;
24
- exports.default = _default;
25
- const Primary = {
26
- args: {
27
- accessibilityLabel: "Tap to trigger test alert",
28
- onPress: () => _reactNative.Alert.alert("Alert", "Action triggered"),
29
- children: "Hello World"
30
- }
31
- };
32
- exports.Primary = Primary;
33
- //# sourceMappingURL=H5.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNative","require","_components","meta","title","component","H5","parameters","layout","actions","argTypesRegex","tags","_default","exports","default","Primary","args","accessibilityLabel","onPress","Alert","alert","children"],"sourceRoot":"../../../src","sources":["stories/H5.stories.ts"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA;AACA,MAAME,IAAI,GAAG;EACXC,KAAK,EAAE,YAAY;EACnBC,SAAS,EAAEC,cAAE;EACbC,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAA2B;AAAC,IAAAC,QAAA,GAEbT,IAAI;AAAAU,OAAA,CAAAC,OAAA,GAAAF,QAAA;AAGZ,MAAMG,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMC,kBAAK,CAACC,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC;AAACR,OAAA,CAAAE,OAAA,GAAAA,OAAA"}
@@ -1,33 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.Primary = void 0;
7
- var _reactNative = require("react-native");
8
- var _components = require("../components");
9
- // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
10
- const meta = {
11
- title: "Example/H6",
12
- component: _components.H6,
13
- parameters: {
14
- // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
15
- layout: "centered",
16
- actions: {
17
- argTypesRegex: "^on.*"
18
- }
19
- },
20
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
21
- tags: ["autodocs"]
22
- };
23
- var _default = meta;
24
- exports.default = _default;
25
- const Primary = {
26
- args: {
27
- accessibilityLabel: "Tap to trigger test alert",
28
- onPress: () => _reactNative.Alert.alert("Alert", "Action triggered"),
29
- children: "Hello World"
30
- }
31
- };
32
- exports.Primary = Primary;
33
- //# sourceMappingURL=H6.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNative","require","_components","meta","title","component","H6","parameters","layout","actions","argTypesRegex","tags","_default","exports","default","Primary","args","accessibilityLabel","onPress","Alert","alert","children"],"sourceRoot":"../../../src","sources":["stories/H6.stories.ts"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA;AACA,MAAME,IAAI,GAAG;EACXC,KAAK,EAAE,YAAY;EACnBC,SAAS,EAAEC,cAAE;EACbC,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAA2B;AAAC,IAAAC,QAAA,GAEbT,IAAI;AAAAU,OAAA,CAAAC,OAAA,GAAAF,QAAA;AAGZ,MAAMG,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMC,kBAAK,CAACC,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC;AAACR,OAAA,CAAAE,OAAA,GAAAA,OAAA"}