@fattureincloud-mobile/fic-mobile-ds 1.0.0 → 1.2.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 (469) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +31 -0
  3. package/lib/commonjs/components/Tag/Tag.js +44 -0
  4. package/lib/commonjs/components/Tag/Tag.js.map +1 -0
  5. package/lib/commonjs/components/Tag/index.js +14 -0
  6. package/lib/commonjs/components/Tag/index.js.map +1 -0
  7. package/lib/commonjs/components/Touchable/Touchable.js +79 -0
  8. package/lib/commonjs/components/Touchable/Touchable.js.map +1 -0
  9. package/lib/commonjs/components/Touchable/index.js +14 -0
  10. package/lib/commonjs/components/Touchable/index.js.map +1 -0
  11. package/lib/commonjs/components/base/DatePicker/DatePicker.js +257 -0
  12. package/lib/commonjs/components/base/DatePicker/DatePicker.js.map +1 -0
  13. package/lib/commonjs/components/base/DatePicker/index.js +14 -0
  14. package/lib/commonjs/components/base/DatePicker/index.js.map +1 -0
  15. package/lib/commonjs/components/base/HeaderArrows/HeaderArrows.js +77 -0
  16. package/lib/commonjs/components/base/HeaderArrows/HeaderArrows.js.map +1 -0
  17. package/lib/commonjs/components/base/HeaderArrows/index.js +14 -0
  18. package/lib/commonjs/components/base/HeaderArrows/index.js.map +1 -0
  19. package/lib/commonjs/components/buttons/FicButton/FicButton.js +42 -0
  20. package/lib/commonjs/components/buttons/FicButton/FicButton.js.map +1 -0
  21. package/lib/commonjs/components/buttons/FicButton/FicButton.types.js +6 -0
  22. package/lib/commonjs/components/buttons/FicButton/FicButton.types.js.map +1 -0
  23. package/lib/commonjs/components/buttons/FicButton/FicButtonIcon.js +104 -0
  24. package/lib/commonjs/components/buttons/FicButton/FicButtonIcon.js.map +1 -0
  25. package/lib/commonjs/components/buttons/FicButton/FicButtonPrimary.js +121 -0
  26. package/lib/commonjs/components/buttons/FicButton/FicButtonPrimary.js.map +1 -0
  27. package/lib/commonjs/components/buttons/FicButton/FicButtonSecondary.js +123 -0
  28. package/lib/commonjs/components/buttons/FicButton/FicButtonSecondary.js.map +1 -0
  29. package/lib/commonjs/components/buttons/FicButton/FicButtonTertiary.js +144 -0
  30. package/lib/commonjs/components/buttons/FicButton/FicButtonTertiary.js.map +1 -0
  31. package/lib/commonjs/components/buttons/FicButton/constants.js +23 -0
  32. package/lib/commonjs/components/buttons/FicButton/constants.js.map +1 -0
  33. package/lib/commonjs/components/buttons/FicButton/index.js +14 -0
  34. package/lib/commonjs/components/buttons/FicButton/index.js.map +1 -0
  35. package/lib/commonjs/components/buttons/FicButton/themes/dark.js +291 -0
  36. package/lib/commonjs/components/buttons/FicButton/themes/dark.js.map +1 -0
  37. package/lib/commonjs/components/buttons/FicButton/themes/index.js +14 -0
  38. package/lib/commonjs/components/buttons/FicButton/themes/index.js.map +1 -0
  39. package/lib/commonjs/components/buttons/FicButton/themes/light.js +311 -0
  40. package/lib/commonjs/components/buttons/FicButton/themes/light.js.map +1 -0
  41. package/lib/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.js +54 -0
  42. package/lib/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.js.map +1 -0
  43. package/lib/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.types.js +6 -0
  44. package/lib/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.types.js.map +1 -0
  45. package/lib/commonjs/components/buttons/FicButtonGroup/index.js +14 -0
  46. package/lib/commonjs/components/buttons/FicButtonGroup/index.js.map +1 -0
  47. package/lib/commonjs/components/notifications/Banner/Banner.js +96 -0
  48. package/lib/commonjs/components/notifications/Banner/Banner.js.map +1 -0
  49. package/lib/commonjs/components/notifications/Banner/Banner.types.js +6 -0
  50. package/lib/commonjs/components/notifications/Banner/Banner.types.js.map +1 -0
  51. package/lib/commonjs/components/notifications/Banner/index.js +14 -0
  52. package/lib/commonjs/components/notifications/Banner/index.js.map +1 -0
  53. package/lib/commonjs/components/notifications/Banner/themes/dark.js +47 -0
  54. package/lib/commonjs/components/notifications/Banner/themes/dark.js.map +1 -0
  55. package/lib/commonjs/components/notifications/Banner/themes/index.js +21 -0
  56. package/lib/commonjs/components/notifications/Banner/themes/index.js.map +1 -0
  57. package/lib/commonjs/components/notifications/Banner/themes/light.js +47 -0
  58. package/lib/commonjs/components/notifications/Banner/themes/light.js.map +1 -0
  59. package/lib/commonjs/components/typographies/Body/Body.js +35 -0
  60. package/lib/commonjs/components/typographies/Body/Body.js.map +1 -0
  61. package/lib/commonjs/components/typographies/Body/index.js +14 -0
  62. package/lib/commonjs/components/typographies/Body/index.js.map +1 -0
  63. package/lib/commonjs/components/typographies/ButtonTitle/ButtonTitle.js +45 -0
  64. package/lib/commonjs/components/typographies/ButtonTitle/ButtonTitle.js.map +1 -0
  65. package/lib/commonjs/components/typographies/ButtonTitle/index.js +14 -0
  66. package/lib/commonjs/components/typographies/ButtonTitle/index.js.map +1 -0
  67. package/lib/commonjs/components/typographies/Callout/Callout.js +35 -0
  68. package/lib/commonjs/components/typographies/Callout/Callout.js.map +1 -0
  69. package/lib/commonjs/components/typographies/Callout/index.js +14 -0
  70. package/lib/commonjs/components/typographies/Callout/index.js.map +1 -0
  71. package/lib/commonjs/components/typographies/CaptionOne/CaptionOne.js +35 -0
  72. package/lib/commonjs/components/typographies/CaptionOne/CaptionOne.js.map +1 -0
  73. package/lib/commonjs/components/typographies/CaptionOne/index.js +14 -0
  74. package/lib/commonjs/components/typographies/CaptionOne/index.js.map +1 -0
  75. package/lib/commonjs/components/typographies/CaptionTwo/CaptionTwo.js +35 -0
  76. package/lib/commonjs/components/typographies/CaptionTwo/CaptionTwo.js.map +1 -0
  77. package/lib/commonjs/components/typographies/CaptionTwo/index.js +14 -0
  78. package/lib/commonjs/components/typographies/CaptionTwo/index.js.map +1 -0
  79. package/lib/commonjs/components/typographies/Footnote/Footnote.js +35 -0
  80. package/lib/commonjs/components/typographies/Footnote/Footnote.js.map +1 -0
  81. package/lib/commonjs/components/typographies/Footnote/index.js +14 -0
  82. package/lib/commonjs/components/typographies/Footnote/index.js.map +1 -0
  83. package/lib/commonjs/components/typographies/Headline/Headline.js +35 -0
  84. package/lib/commonjs/components/typographies/Headline/Headline.js.map +1 -0
  85. package/lib/commonjs/components/typographies/Headline/index.js +14 -0
  86. package/lib/commonjs/components/typographies/Headline/index.js.map +1 -0
  87. package/lib/commonjs/components/typographies/LargeTitle/LargeTitle.js +35 -0
  88. package/lib/commonjs/components/typographies/LargeTitle/LargeTitle.js.map +1 -0
  89. package/lib/commonjs/components/typographies/LargeTitle/index.js +14 -0
  90. package/lib/commonjs/components/typographies/LargeTitle/index.js.map +1 -0
  91. package/lib/commonjs/components/typographies/README.md +22 -0
  92. package/lib/commonjs/components/typographies/Subhead/Subhead.js +35 -0
  93. package/lib/commonjs/components/typographies/Subhead/Subhead.js.map +1 -0
  94. package/lib/commonjs/components/typographies/Subhead/index.js +14 -0
  95. package/lib/commonjs/components/typographies/Subhead/index.js.map +1 -0
  96. package/lib/commonjs/components/typographies/TitleOne/TitleOne.js +35 -0
  97. package/lib/commonjs/components/typographies/TitleOne/TitleOne.js.map +1 -0
  98. package/lib/commonjs/components/typographies/TitleOne/index.js +14 -0
  99. package/lib/commonjs/components/typographies/TitleOne/index.js.map +1 -0
  100. package/lib/commonjs/components/typographies/TitleThree/TitleThree.js +35 -0
  101. package/lib/commonjs/components/typographies/TitleThree/TitleThree.js.map +1 -0
  102. package/lib/commonjs/components/typographies/TitleThree/index.js +14 -0
  103. package/lib/commonjs/components/typographies/TitleThree/index.js.map +1 -0
  104. package/lib/commonjs/components/typographies/TitleTwo/TitleTwo.js +35 -0
  105. package/lib/commonjs/components/typographies/TitleTwo/TitleTwo.js.map +1 -0
  106. package/lib/commonjs/components/typographies/TitleTwo/index.js +14 -0
  107. package/lib/commonjs/components/typographies/TitleTwo/index.js.map +1 -0
  108. package/lib/commonjs/components/typographies/font.js +33 -0
  109. package/lib/commonjs/components/typographies/font.js.map +1 -0
  110. package/lib/commonjs/hooks/useTheme.js +24 -0
  111. package/lib/commonjs/hooks/useTheme.js.map +1 -0
  112. package/lib/commonjs/index.js +206 -0
  113. package/lib/commonjs/index.js.map +1 -0
  114. package/lib/commonjs/providers/DesignSystemProvider/DesignSystemProvider.js +30 -0
  115. package/lib/commonjs/providers/DesignSystemProvider/DesignSystemProvider.js.map +1 -0
  116. package/lib/commonjs/providers/DesignSystemProvider/index.js +14 -0
  117. package/lib/commonjs/providers/DesignSystemProvider/index.js.map +1 -0
  118. package/lib/commonjs/providers/IconProvider/IconProvider.js +35 -0
  119. package/lib/commonjs/providers/IconProvider/IconProvider.js.map +1 -0
  120. package/lib/commonjs/providers/IconProvider/index.js +20 -0
  121. package/lib/commonjs/providers/IconProvider/index.js.map +1 -0
  122. package/lib/commonjs/providers/ThemeProvider/ThemeProvider.js +20 -0
  123. package/lib/commonjs/providers/ThemeProvider/ThemeProvider.js.map +1 -0
  124. package/lib/commonjs/styles/calendarTheme.js +6 -0
  125. package/lib/commonjs/styles/calendarTheme.js.map +1 -0
  126. package/lib/commonjs/styles/colors.js +109 -0
  127. package/lib/commonjs/styles/colors.js.map +1 -0
  128. package/lib/commonjs/styles/globalStyles.js +41 -0
  129. package/lib/commonjs/styles/globalStyles.js.map +1 -0
  130. package/lib/commonjs/styles/space.js +34 -0
  131. package/lib/commonjs/styles/space.js.map +1 -0
  132. package/lib/commonjs/styles/theme.js +421 -0
  133. package/lib/commonjs/styles/theme.js.map +1 -0
  134. package/lib/commonjs/utils/locale.js +50 -0
  135. package/lib/commonjs/utils/locale.js.map +1 -0
  136. package/lib/module/components/Tag/Tag.js +37 -0
  137. package/lib/module/components/Tag/Tag.js.map +1 -0
  138. package/lib/module/components/Tag/index.js +3 -0
  139. package/lib/module/components/Tag/index.js.map +1 -0
  140. package/lib/module/components/Touchable/Touchable.js +72 -0
  141. package/lib/module/components/Touchable/Touchable.js.map +1 -0
  142. package/lib/module/components/Touchable/index.js +3 -0
  143. package/lib/module/components/Touchable/index.js.map +1 -0
  144. package/lib/module/components/base/DatePicker/DatePicker.js +251 -0
  145. package/lib/module/components/base/DatePicker/DatePicker.js.map +1 -0
  146. package/lib/module/components/base/DatePicker/index.js +3 -0
  147. package/lib/module/components/base/DatePicker/index.js.map +1 -0
  148. package/lib/module/components/base/HeaderArrows/HeaderArrows.js +70 -0
  149. package/lib/module/components/base/HeaderArrows/HeaderArrows.js.map +1 -0
  150. package/lib/module/components/base/HeaderArrows/index.js +3 -0
  151. package/lib/module/components/base/HeaderArrows/index.js.map +1 -0
  152. package/lib/module/components/buttons/FicButton/FicButton.js +36 -0
  153. package/lib/module/components/buttons/FicButton/FicButton.js.map +1 -0
  154. package/lib/module/components/buttons/FicButton/FicButton.types.js +2 -0
  155. package/lib/module/components/buttons/FicButton/FicButton.types.js.map +1 -0
  156. package/lib/module/components/buttons/FicButton/FicButtonIcon.js +96 -0
  157. package/lib/module/components/buttons/FicButton/FicButtonIcon.js.map +1 -0
  158. package/lib/module/components/buttons/FicButton/FicButtonPrimary.js +114 -0
  159. package/lib/module/components/buttons/FicButton/FicButtonPrimary.js.map +1 -0
  160. package/lib/module/components/buttons/FicButton/FicButtonSecondary.js +116 -0
  161. package/lib/module/components/buttons/FicButton/FicButtonSecondary.js.map +1 -0
  162. package/lib/module/components/buttons/FicButton/FicButtonTertiary.js +137 -0
  163. package/lib/module/components/buttons/FicButton/FicButtonTertiary.js.map +1 -0
  164. package/lib/module/components/buttons/FicButton/constants.js +17 -0
  165. package/lib/module/components/buttons/FicButton/constants.js.map +1 -0
  166. package/lib/module/components/buttons/FicButton/index.js +3 -0
  167. package/lib/module/components/buttons/FicButton/index.js.map +1 -0
  168. package/lib/module/components/buttons/FicButton/themes/dark.js +285 -0
  169. package/lib/module/components/buttons/FicButton/themes/dark.js.map +1 -0
  170. package/lib/module/components/buttons/FicButton/themes/index.js +3 -0
  171. package/lib/module/components/buttons/FicButton/themes/index.js.map +1 -0
  172. package/lib/module/components/buttons/FicButton/themes/light.js +305 -0
  173. package/lib/module/components/buttons/FicButton/themes/light.js.map +1 -0
  174. package/lib/module/components/buttons/FicButtonGroup/FicButtonGroup.js +47 -0
  175. package/lib/module/components/buttons/FicButtonGroup/FicButtonGroup.js.map +1 -0
  176. package/lib/module/components/buttons/FicButtonGroup/FicButtonGroup.types.js +2 -0
  177. package/lib/module/components/buttons/FicButtonGroup/FicButtonGroup.types.js.map +1 -0
  178. package/lib/module/components/buttons/FicButtonGroup/index.js +3 -0
  179. package/lib/module/components/buttons/FicButtonGroup/index.js.map +1 -0
  180. package/lib/module/components/notifications/Banner/Banner.js +89 -0
  181. package/lib/module/components/notifications/Banner/Banner.js.map +1 -0
  182. package/lib/module/components/notifications/Banner/Banner.types.js +2 -0
  183. package/lib/module/components/notifications/Banner/Banner.types.js.map +1 -0
  184. package/lib/module/components/notifications/Banner/index.js +3 -0
  185. package/lib/module/components/notifications/Banner/index.js.map +1 -0
  186. package/lib/module/components/notifications/Banner/themes/dark.js +41 -0
  187. package/lib/module/components/notifications/Banner/themes/dark.js.map +1 -0
  188. package/lib/module/components/notifications/Banner/themes/index.js +4 -0
  189. package/lib/module/components/notifications/Banner/themes/index.js.map +1 -0
  190. package/lib/module/components/notifications/Banner/themes/light.js +41 -0
  191. package/lib/module/components/notifications/Banner/themes/light.js.map +1 -0
  192. package/lib/module/components/typographies/Body/Body.js +29 -0
  193. package/lib/module/components/typographies/Body/Body.js.map +1 -0
  194. package/lib/module/components/typographies/Body/index.js +3 -0
  195. package/lib/module/components/typographies/Body/index.js.map +1 -0
  196. package/lib/module/components/typographies/ButtonTitle/ButtonTitle.js +39 -0
  197. package/lib/module/components/typographies/ButtonTitle/ButtonTitle.js.map +1 -0
  198. package/lib/module/components/typographies/ButtonTitle/index.js +3 -0
  199. package/lib/module/components/typographies/ButtonTitle/index.js.map +1 -0
  200. package/lib/module/components/typographies/Callout/Callout.js +29 -0
  201. package/lib/module/components/typographies/Callout/Callout.js.map +1 -0
  202. package/lib/module/components/typographies/Callout/index.js +3 -0
  203. package/lib/module/components/typographies/Callout/index.js.map +1 -0
  204. package/lib/module/components/typographies/CaptionOne/CaptionOne.js +29 -0
  205. package/lib/module/components/typographies/CaptionOne/CaptionOne.js.map +1 -0
  206. package/lib/module/components/typographies/CaptionOne/index.js +3 -0
  207. package/lib/module/components/typographies/CaptionOne/index.js.map +1 -0
  208. package/lib/module/components/typographies/CaptionTwo/CaptionTwo.js +29 -0
  209. package/lib/module/components/typographies/CaptionTwo/CaptionTwo.js.map +1 -0
  210. package/lib/module/components/typographies/CaptionTwo/index.js +3 -0
  211. package/lib/module/components/typographies/CaptionTwo/index.js.map +1 -0
  212. package/lib/module/components/typographies/Footnote/Footnote.js +29 -0
  213. package/lib/module/components/typographies/Footnote/Footnote.js.map +1 -0
  214. package/lib/module/components/typographies/Footnote/index.js +3 -0
  215. package/lib/module/components/typographies/Footnote/index.js.map +1 -0
  216. package/lib/module/components/typographies/Headline/Headline.js +29 -0
  217. package/lib/module/components/typographies/Headline/Headline.js.map +1 -0
  218. package/lib/module/components/typographies/Headline/index.js +3 -0
  219. package/lib/module/components/typographies/Headline/index.js.map +1 -0
  220. package/lib/module/components/typographies/LargeTitle/LargeTitle.js +29 -0
  221. package/lib/module/components/typographies/LargeTitle/LargeTitle.js.map +1 -0
  222. package/lib/module/components/typographies/LargeTitle/index.js +3 -0
  223. package/lib/module/components/typographies/LargeTitle/index.js.map +1 -0
  224. package/lib/module/components/typographies/README.md +22 -0
  225. package/lib/module/components/typographies/Subhead/Subhead.js +29 -0
  226. package/lib/module/components/typographies/Subhead/Subhead.js.map +1 -0
  227. package/lib/module/components/typographies/Subhead/index.js +3 -0
  228. package/lib/module/components/typographies/Subhead/index.js.map +1 -0
  229. package/lib/module/components/typographies/TitleOne/TitleOne.js +29 -0
  230. package/lib/module/components/typographies/TitleOne/TitleOne.js.map +1 -0
  231. package/lib/module/components/typographies/TitleOne/index.js +3 -0
  232. package/lib/module/components/typographies/TitleOne/index.js.map +1 -0
  233. package/lib/module/components/typographies/TitleThree/TitleThree.js +29 -0
  234. package/lib/module/components/typographies/TitleThree/TitleThree.js.map +1 -0
  235. package/lib/module/components/typographies/TitleThree/index.js +3 -0
  236. package/lib/module/components/typographies/TitleThree/index.js.map +1 -0
  237. package/lib/module/components/typographies/TitleTwo/TitleTwo.js +29 -0
  238. package/lib/module/components/typographies/TitleTwo/TitleTwo.js.map +1 -0
  239. package/lib/module/components/typographies/TitleTwo/index.js +3 -0
  240. package/lib/module/components/typographies/TitleTwo/index.js.map +1 -0
  241. package/lib/module/components/typographies/font.js +26 -0
  242. package/lib/module/components/typographies/font.js.map +1 -0
  243. package/lib/module/hooks/useTheme.js +16 -0
  244. package/lib/module/hooks/useTheme.js.map +1 -0
  245. package/lib/module/index.js +26 -0
  246. package/lib/module/index.js.map +1 -0
  247. package/lib/module/providers/DesignSystemProvider/DesignSystemProvider.js +22 -0
  248. package/lib/module/providers/DesignSystemProvider/DesignSystemProvider.js.map +1 -0
  249. package/lib/module/providers/DesignSystemProvider/index.js +3 -0
  250. package/lib/module/providers/DesignSystemProvider/index.js.map +1 -0
  251. package/lib/module/providers/IconProvider/IconProvider.js +27 -0
  252. package/lib/module/providers/IconProvider/IconProvider.js.map +1 -0
  253. package/lib/module/providers/IconProvider/index.js +3 -0
  254. package/lib/module/providers/IconProvider/index.js.map +1 -0
  255. package/lib/module/providers/ThemeProvider/ThemeProvider.js +13 -0
  256. package/lib/module/providers/ThemeProvider/ThemeProvider.js.map +1 -0
  257. package/lib/module/styles/calendarTheme.js +2 -0
  258. package/lib/module/styles/calendarTheme.js.map +1 -0
  259. package/lib/module/styles/colors.js +103 -0
  260. package/lib/module/styles/colors.js.map +1 -0
  261. package/lib/module/styles/globalStyles.js +35 -0
  262. package/lib/module/styles/globalStyles.js.map +1 -0
  263. package/lib/module/styles/space.js +28 -0
  264. package/lib/module/styles/space.js.map +1 -0
  265. package/lib/module/styles/theme.js +414 -0
  266. package/lib/module/styles/theme.js.map +1 -0
  267. package/lib/module/utils/locale.js +42 -0
  268. package/lib/module/utils/locale.js.map +1 -0
  269. package/lib/package.json +138 -0
  270. package/lib/typescript/components/Tag/Tag.d.ts +13 -0
  271. package/lib/typescript/components/Tag/Tag.d.ts.map +1 -0
  272. package/lib/typescript/components/Tag/index.d.ts +3 -0
  273. package/lib/typescript/components/Tag/index.d.ts.map +1 -0
  274. package/lib/typescript/components/Touchable/Touchable.d.ts +16 -0
  275. package/lib/typescript/components/Touchable/Touchable.d.ts.map +1 -0
  276. package/lib/typescript/components/Touchable/index.d.ts +3 -0
  277. package/lib/typescript/components/Touchable/index.d.ts.map +1 -0
  278. package/lib/typescript/components/base/DatePicker/DatePicker.d.ts +60 -0
  279. package/lib/typescript/components/base/DatePicker/DatePicker.d.ts.map +1 -0
  280. package/lib/typescript/components/base/DatePicker/index.d.ts +4 -0
  281. package/lib/typescript/components/base/DatePicker/index.d.ts.map +1 -0
  282. package/lib/typescript/components/base/HeaderArrows/HeaderArrows.d.ts +16 -0
  283. package/lib/typescript/components/base/HeaderArrows/HeaderArrows.d.ts.map +1 -0
  284. package/lib/typescript/components/base/HeaderArrows/index.d.ts +3 -0
  285. package/lib/typescript/components/base/HeaderArrows/index.d.ts.map +1 -0
  286. package/lib/typescript/components/buttons/FicButton/FicButton.d.ts +5 -0
  287. package/lib/typescript/components/buttons/FicButton/FicButton.d.ts.map +1 -0
  288. package/lib/typescript/components/buttons/FicButton/FicButton.types.d.ts +87 -0
  289. package/lib/typescript/components/buttons/FicButton/FicButton.types.d.ts.map +1 -0
  290. package/lib/typescript/components/buttons/FicButton/FicButtonIcon.d.ts +5 -0
  291. package/lib/typescript/components/buttons/FicButton/FicButtonIcon.d.ts.map +1 -0
  292. package/lib/typescript/components/buttons/FicButton/FicButtonPrimary.d.ts +5 -0
  293. package/lib/typescript/components/buttons/FicButton/FicButtonPrimary.d.ts.map +1 -0
  294. package/lib/typescript/components/buttons/FicButton/FicButtonSecondary.d.ts +5 -0
  295. package/lib/typescript/components/buttons/FicButton/FicButtonSecondary.d.ts.map +1 -0
  296. package/lib/typescript/components/buttons/FicButton/FicButtonTertiary.d.ts +5 -0
  297. package/lib/typescript/components/buttons/FicButton/FicButtonTertiary.d.ts.map +1 -0
  298. package/lib/typescript/components/buttons/FicButton/constants.d.ts +13 -0
  299. package/lib/typescript/components/buttons/FicButton/constants.d.ts.map +1 -0
  300. package/lib/typescript/components/buttons/FicButton/index.d.ts +5 -0
  301. package/lib/typescript/components/buttons/FicButton/index.d.ts.map +1 -0
  302. package/lib/typescript/components/buttons/FicButton/themes/dark.d.ts +4 -0
  303. package/lib/typescript/components/buttons/FicButton/themes/dark.d.ts.map +1 -0
  304. package/lib/typescript/components/buttons/FicButton/themes/index.d.ts +3 -0
  305. package/lib/typescript/components/buttons/FicButton/themes/index.d.ts.map +1 -0
  306. package/lib/typescript/components/buttons/FicButton/themes/light.d.ts +4 -0
  307. package/lib/typescript/components/buttons/FicButton/themes/light.d.ts.map +1 -0
  308. package/lib/typescript/components/buttons/FicButtonGroup/FicButtonGroup.d.ts +5 -0
  309. package/lib/typescript/components/buttons/FicButtonGroup/FicButtonGroup.d.ts.map +1 -0
  310. package/lib/typescript/components/buttons/FicButtonGroup/FicButtonGroup.types.d.ts +10 -0
  311. package/lib/typescript/components/buttons/FicButtonGroup/FicButtonGroup.types.d.ts.map +1 -0
  312. package/lib/typescript/components/buttons/FicButtonGroup/index.d.ts +3 -0
  313. package/lib/typescript/components/buttons/FicButtonGroup/index.d.ts.map +1 -0
  314. package/lib/typescript/components/notifications/Banner/Banner.d.ts +5 -0
  315. package/lib/typescript/components/notifications/Banner/Banner.d.ts.map +1 -0
  316. package/lib/typescript/components/notifications/Banner/Banner.types.d.ts +50 -0
  317. package/lib/typescript/components/notifications/Banner/Banner.types.d.ts.map +1 -0
  318. package/lib/typescript/components/notifications/Banner/index.d.ts +3 -0
  319. package/lib/typescript/components/notifications/Banner/index.d.ts.map +1 -0
  320. package/lib/typescript/components/notifications/Banner/themes/dark.d.ts +4 -0
  321. package/lib/typescript/components/notifications/Banner/themes/dark.d.ts.map +1 -0
  322. package/lib/typescript/components/notifications/Banner/themes/index.d.ts +4 -0
  323. package/lib/typescript/components/notifications/Banner/themes/index.d.ts.map +1 -0
  324. package/lib/typescript/components/notifications/Banner/themes/light.d.ts +4 -0
  325. package/lib/typescript/components/notifications/Banner/themes/light.d.ts.map +1 -0
  326. package/lib/typescript/components/typographies/Body/Body.d.ts +12 -0
  327. package/lib/typescript/components/typographies/Body/Body.d.ts.map +1 -0
  328. package/lib/typescript/components/typographies/Body/index.d.ts +3 -0
  329. package/lib/typescript/components/typographies/Body/index.d.ts.map +1 -0
  330. package/lib/typescript/components/typographies/ButtonTitle/ButtonTitle.d.ts +10 -0
  331. package/lib/typescript/components/typographies/ButtonTitle/ButtonTitle.d.ts.map +1 -0
  332. package/lib/typescript/components/typographies/ButtonTitle/index.d.ts +3 -0
  333. package/lib/typescript/components/typographies/ButtonTitle/index.d.ts.map +1 -0
  334. package/lib/typescript/components/typographies/Callout/Callout.d.ts +12 -0
  335. package/lib/typescript/components/typographies/Callout/Callout.d.ts.map +1 -0
  336. package/lib/typescript/components/typographies/Callout/index.d.ts +3 -0
  337. package/lib/typescript/components/typographies/Callout/index.d.ts.map +1 -0
  338. package/lib/typescript/components/typographies/CaptionOne/CaptionOne.d.ts +12 -0
  339. package/lib/typescript/components/typographies/CaptionOne/CaptionOne.d.ts.map +1 -0
  340. package/lib/typescript/components/typographies/CaptionOne/index.d.ts +3 -0
  341. package/lib/typescript/components/typographies/CaptionOne/index.d.ts.map +1 -0
  342. package/lib/typescript/components/typographies/CaptionTwo/CaptionTwo.d.ts +12 -0
  343. package/lib/typescript/components/typographies/CaptionTwo/CaptionTwo.d.ts.map +1 -0
  344. package/lib/typescript/components/typographies/CaptionTwo/index.d.ts +3 -0
  345. package/lib/typescript/components/typographies/CaptionTwo/index.d.ts.map +1 -0
  346. package/lib/typescript/components/typographies/Footnote/Footnote.d.ts +12 -0
  347. package/lib/typescript/components/typographies/Footnote/Footnote.d.ts.map +1 -0
  348. package/lib/typescript/components/typographies/Footnote/index.d.ts +3 -0
  349. package/lib/typescript/components/typographies/Footnote/index.d.ts.map +1 -0
  350. package/lib/typescript/components/typographies/Headline/Headline.d.ts +12 -0
  351. package/lib/typescript/components/typographies/Headline/Headline.d.ts.map +1 -0
  352. package/lib/typescript/components/typographies/Headline/index.d.ts +3 -0
  353. package/lib/typescript/components/typographies/Headline/index.d.ts.map +1 -0
  354. package/lib/typescript/components/typographies/LargeTitle/LargeTitle.d.ts +12 -0
  355. package/lib/typescript/components/typographies/LargeTitle/LargeTitle.d.ts.map +1 -0
  356. package/lib/typescript/components/typographies/LargeTitle/index.d.ts +3 -0
  357. package/lib/typescript/components/typographies/LargeTitle/index.d.ts.map +1 -0
  358. package/lib/typescript/components/typographies/Subhead/Subhead.d.ts +12 -0
  359. package/lib/typescript/components/typographies/Subhead/Subhead.d.ts.map +1 -0
  360. package/lib/typescript/components/typographies/Subhead/index.d.ts +3 -0
  361. package/lib/typescript/components/typographies/Subhead/index.d.ts.map +1 -0
  362. package/lib/typescript/components/typographies/TitleOne/TitleOne.d.ts +12 -0
  363. package/lib/typescript/components/typographies/TitleOne/TitleOne.d.ts.map +1 -0
  364. package/lib/typescript/components/typographies/TitleOne/index.d.ts +3 -0
  365. package/lib/typescript/components/typographies/TitleOne/index.d.ts.map +1 -0
  366. package/lib/typescript/components/typographies/TitleThree/TitleThree.d.ts +12 -0
  367. package/lib/typescript/components/typographies/TitleThree/TitleThree.d.ts.map +1 -0
  368. package/lib/typescript/components/typographies/TitleThree/index.d.ts +3 -0
  369. package/lib/typescript/components/typographies/TitleThree/index.d.ts.map +1 -0
  370. package/lib/typescript/components/typographies/TitleTwo/TitleTwo.d.ts +12 -0
  371. package/lib/typescript/components/typographies/TitleTwo/TitleTwo.d.ts.map +1 -0
  372. package/lib/typescript/components/typographies/TitleTwo/index.d.ts +3 -0
  373. package/lib/typescript/components/typographies/TitleTwo/index.d.ts.map +1 -0
  374. package/lib/typescript/components/typographies/font.d.ts +9 -0
  375. package/lib/typescript/components/typographies/font.d.ts.map +1 -0
  376. package/lib/typescript/hooks/useTheme.d.ts +3 -0
  377. package/lib/typescript/hooks/useTheme.d.ts.map +1 -0
  378. package/lib/typescript/index.d.ts +31 -0
  379. package/lib/typescript/index.d.ts.map +1 -0
  380. package/lib/typescript/providers/DesignSystemProvider/DesignSystemProvider.d.ts +10 -0
  381. package/lib/typescript/providers/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -0
  382. package/lib/typescript/providers/DesignSystemProvider/index.d.ts +3 -0
  383. package/lib/typescript/providers/DesignSystemProvider/index.d.ts.map +1 -0
  384. package/lib/typescript/providers/IconProvider/IconProvider.d.ts +21 -0
  385. package/lib/typescript/providers/IconProvider/IconProvider.d.ts.map +1 -0
  386. package/lib/typescript/providers/IconProvider/index.d.ts +4 -0
  387. package/lib/typescript/providers/IconProvider/index.d.ts.map +1 -0
  388. package/lib/typescript/providers/ThemeProvider/ThemeProvider.d.ts +9 -0
  389. package/lib/typescript/providers/ThemeProvider/ThemeProvider.d.ts.map +1 -0
  390. package/lib/typescript/styles/calendarTheme.d.ts +24 -0
  391. package/lib/typescript/styles/calendarTheme.d.ts.map +1 -0
  392. package/lib/typescript/styles/colors.d.ts +100 -0
  393. package/lib/typescript/styles/colors.d.ts.map +1 -0
  394. package/lib/typescript/styles/globalStyles.d.ts +33 -0
  395. package/lib/typescript/styles/globalStyles.d.ts.map +1 -0
  396. package/lib/typescript/styles/space.d.ts +19 -0
  397. package/lib/typescript/styles/space.d.ts.map +1 -0
  398. package/lib/typescript/styles/theme.d.ts +183 -0
  399. package/lib/typescript/styles/theme.d.ts.map +1 -0
  400. package/lib/typescript/utils/locale.d.ts +15 -0
  401. package/lib/typescript/utils/locale.d.ts.map +1 -0
  402. package/package.json +30 -43
  403. package/src/components/Tag/Tag.tsx +59 -0
  404. package/src/components/Tag/index.ts +3 -0
  405. package/src/components/Touchable/Touchable.tsx +110 -0
  406. package/src/components/Touchable/index.ts +3 -0
  407. package/src/components/base/DatePicker/DatePicker.tsx +427 -0
  408. package/src/components/base/DatePicker/index.ts +4 -0
  409. package/src/components/base/HeaderArrows/HeaderArrows.tsx +93 -0
  410. package/src/components/base/HeaderArrows/index.ts +3 -0
  411. package/src/components/buttons/FicButton/FicButton.tsx +41 -0
  412. package/src/components/buttons/FicButton/FicButton.types.ts +114 -0
  413. package/src/components/buttons/FicButton/FicButtonIcon.tsx +161 -0
  414. package/src/components/buttons/FicButton/FicButtonPrimary.tsx +167 -0
  415. package/src/components/buttons/FicButton/FicButtonSecondary.tsx +168 -0
  416. package/src/components/buttons/FicButton/FicButtonTertiary.tsx +188 -0
  417. package/src/components/buttons/FicButton/constants.ts +23 -0
  418. package/src/components/buttons/FicButton/index.ts +5 -0
  419. package/src/components/buttons/FicButton/themes/dark.ts +273 -0
  420. package/src/components/buttons/FicButton/themes/index.ts +3 -0
  421. package/src/components/buttons/FicButton/themes/light.ts +293 -0
  422. package/src/components/buttons/FicButtonGroup/FicButtonGroup.tsx +40 -0
  423. package/src/components/buttons/FicButtonGroup/FicButtonGroup.types.ts +11 -0
  424. package/src/components/buttons/FicButtonGroup/index.ts +2 -0
  425. package/src/components/notifications/Banner/Banner.tsx +105 -0
  426. package/src/components/notifications/Banner/Banner.types.ts +69 -0
  427. package/src/components/notifications/Banner/index.ts +3 -0
  428. package/src/components/notifications/Banner/themes/dark.ts +43 -0
  429. package/src/components/notifications/Banner/themes/index.ts +4 -0
  430. package/src/components/notifications/Banner/themes/light.ts +43 -0
  431. package/src/components/typographies/Body/Body.tsx +38 -0
  432. package/src/components/typographies/Body/index.ts +3 -0
  433. package/src/components/typographies/ButtonTitle/ButtonTitle.tsx +51 -0
  434. package/src/components/typographies/ButtonTitle/index.ts +3 -0
  435. package/src/components/typographies/Callout/Callout.tsx +38 -0
  436. package/src/components/typographies/Callout/index.ts +3 -0
  437. package/src/components/typographies/CaptionOne/CaptionOne.tsx +38 -0
  438. package/src/components/typographies/CaptionOne/index.ts +4 -0
  439. package/src/components/typographies/CaptionTwo/CaptionTwo.tsx +38 -0
  440. package/src/components/typographies/CaptionTwo/index.ts +4 -0
  441. package/src/components/typographies/Footnote/Footnote.tsx +38 -0
  442. package/src/components/typographies/Footnote/index.ts +4 -0
  443. package/src/components/typographies/Headline/Headline.tsx +38 -0
  444. package/src/components/typographies/Headline/index.ts +4 -0
  445. package/src/components/typographies/LargeTitle/LargeTitle.tsx +38 -0
  446. package/src/components/typographies/LargeTitle/index.ts +3 -0
  447. package/src/components/typographies/README.md +22 -0
  448. package/src/components/typographies/Subhead/Subhead.tsx +38 -0
  449. package/src/components/typographies/Subhead/index.ts +4 -0
  450. package/src/components/typographies/TitleOne/TitleOne.tsx +38 -0
  451. package/src/components/typographies/TitleOne/index.ts +4 -0
  452. package/src/components/typographies/TitleThree/TitleThree.tsx +38 -0
  453. package/src/components/typographies/TitleThree/index.ts +4 -0
  454. package/src/components/typographies/TitleTwo/TitleTwo.tsx +38 -0
  455. package/src/components/typographies/TitleTwo/index.ts +4 -0
  456. package/src/components/typographies/font.ts +25 -0
  457. package/src/hooks/useTheme.ts +17 -0
  458. package/src/index.tsx +47 -0
  459. package/src/providers/DesignSystemProvider/DesignSystemProvider.tsx +31 -0
  460. package/src/providers/DesignSystemProvider/index.ts +3 -0
  461. package/src/providers/IconProvider/IconProvider.tsx +46 -0
  462. package/src/providers/IconProvider/index.ts +4 -0
  463. package/src/providers/ThemeProvider/ThemeProvider.tsx +17 -0
  464. package/src/styles/calendarTheme.ts +24 -0
  465. package/src/styles/colors.ts +119 -0
  466. package/src/styles/globalStyles.ts +36 -0
  467. package/src/styles/space.ts +27 -0
  468. package/src/styles/theme.ts +609 -0
  469. package/src/utils/locale.ts +50 -0
package/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Riccardo
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # fic-mobile-ds
2
+
3
+ Official Design System for Fatture in Cloud Mobile App
4
+
5
+ ## Installation
6
+
7
+ ```sh
8
+ npm install fic-mobile-ds
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```js
14
+ import { multiply } from 'fic-mobile-ds';
15
+
16
+ // ...
17
+
18
+ const result = await multiply(3, 7);
19
+ ```
20
+
21
+ ## Contributing
22
+
23
+ See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
24
+
25
+ ## License
26
+
27
+ MIT
28
+
29
+ ---
30
+
31
+ Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _colors = require("../../styles/colors");
10
+ var _CaptionOne = require("../typographies/CaptionOne");
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
13
+ const Tag = ({
14
+ text,
15
+ color = _colors.Colors.WHITE,
16
+ backgroundColor = _colors.Colors.GREY_4,
17
+ rounded = false,
18
+ children,
19
+ avoidUpperCase = false,
20
+ style,
21
+ ...rest
22
+ }) => {
23
+ const finalText = text || (!!children && typeof children === 'string' ? children : undefined);
24
+ const containerStyle = [styles.container, {
25
+ backgroundColor,
26
+ borderRadius: rounded ? 100 : 4
27
+ }, style];
28
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, _extends({
29
+ style: containerStyle
30
+ }, rest), finalText ? /*#__PURE__*/_react.default.createElement(_CaptionOne.CaptionOne, {
31
+ color: color,
32
+ numberOfLines: 1
33
+ }, avoidUpperCase ? finalText : finalText.toUpperCase()) : children);
34
+ };
35
+ const styles = _reactNative.StyleSheet.create({
36
+ container: {
37
+ alignItems: 'center',
38
+ justifyContent: 'center',
39
+ paddingVertical: 2,
40
+ paddingHorizontal: 5
41
+ }
42
+ });
43
+ var _default = exports.default = Tag;
44
+ //# sourceMappingURL=Tag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_colors","_CaptionOne","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","Tag","text","color","Colors","WHITE","backgroundColor","GREY_4","rounded","children","avoidUpperCase","style","rest","finalText","undefined","containerStyle","styles","container","borderRadius","createElement","View","CaptionOne","numberOfLines","toUpperCase","StyleSheet","create","alignItems","justifyContent","paddingVertical","paddingHorizontal","_default","exports"],"sourceRoot":"../../../../src","sources":["components/Tag/Tag.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YA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S,gBACRjC,MAAA,CAAAQ,OAAA,CAAA+B,aAAA,CAAClC,WAAA,CAAAoC,UAAU;IAAClB,KAAK,EAAEA,KAAM;IAACmB,aAAa,EAAE;EAAE,GACxCZ,cAAc,GAAGG,SAAS,GAAGA,SAAS,CAACU,WAAW,CAAC,CAC1C,CAAC,GAEbd,QAEE,CAAC;AAEX,CAAC;AAED,MAAMO,MAAM,GAAGQ,uBAAU,CAACC,MAAM,CAAC;EAC/BR,SAAS,EAAE;IACTS,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,eAAe,EAAE,CAAC;IAClBC,iBAAiB,EAAE;EACrB;AACF,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAA3C,OAAA,GAEYa,GAAG","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "Tag", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _Tag.default;
10
+ }
11
+ });
12
+ var _Tag = _interopRequireDefault(require("./Tag"));
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_Tag","_interopRequireDefault","require","e","__esModule","default"],"sourceRoot":"../../../../src","sources":["components/Tag/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,IAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAwB,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _lodash = require("lodash");
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _reactNative = require("react-native");
10
+ var _reactNativeGestureHandler = require("react-native-gesture-handler");
11
+ var _useTheme = require("../../hooks/useTheme");
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
14
+ const Touchable = ({
15
+ onPress,
16
+ children,
17
+ style,
18
+ containerStyle,
19
+ disabled,
20
+ highlight = false,
21
+ borderless = false,
22
+ gestureHandler = true,
23
+ theme,
24
+ ...rest
25
+ }) => {
26
+ const {
27
+ touchables: touchablesTheme
28
+ } = (0, _useTheme.useTheme)();
29
+ const {
30
+ rippleColors = touchablesTheme.rippleColors,
31
+ highlightColor = touchablesTheme.highlightColor
32
+ } = theme || {};
33
+ const onPressHandler = onPress && (0, _lodash.throttle)(onPress, 300, {
34
+ trailing: false
35
+ });
36
+
37
+ // All Android Buttons should have the ripple effect
38
+ if (_reactNative.Platform.OS === 'android') {
39
+ if (!gestureHandler || disabled) {
40
+ return /*#__PURE__*/_react.default.createElement(_reactNative.TouchableNativeFeedback, _extends({}, rest, {
41
+ onPress: onPressHandler,
42
+ background: _reactNative.TouchableNativeFeedback.Ripple(rippleColors, borderless),
43
+ useForeground: _reactNative.TouchableNativeFeedback.canUseNativeForeground(),
44
+ disabled: disabled
45
+ }), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
46
+ style: style
47
+ }, children));
48
+ } else {
49
+ return /*#__PURE__*/_react.default.createElement(_reactNativeGestureHandler.TouchableNativeFeedback, _extends({}, rest, {
50
+ onPress: onPressHandler
51
+ // @ts-ignore
52
+ ,
53
+ background: _reactNativeGestureHandler.TouchableNativeFeedback.Ripple(rippleColors, borderless)
54
+ // @ts-ignore
55
+ ,
56
+ useForeground: _reactNativeGestureHandler.TouchableNativeFeedback.canUseNativeForeground(),
57
+ disabled: disabled,
58
+ style: style
59
+ // @ts-ignore
60
+ ,
61
+ containerStyle: containerStyle
62
+ }), children);
63
+ }
64
+ }
65
+
66
+ // Normal iOS buttons use TouchableOpacity
67
+ return highlight ? /*#__PURE__*/_react.default.createElement(_reactNative.TouchableHighlight, _extends({}, rest, {
68
+ onPress: onPressHandler,
69
+ disabled: disabled,
70
+ style: style,
71
+ underlayColor: highlightColor
72
+ }), children) : /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, _extends({}, rest, {
73
+ onPress: onPressHandler,
74
+ disabled: disabled,
75
+ style: style
76
+ }), children);
77
+ };
78
+ var _default = exports.default = Touchable;
79
+ //# sourceMappingURL=Touchable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_lodash","require","_react","_interopRequireDefault","_reactNative","_reactNativeGestureHandler","_useTheme","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","Touchable","onPress","children","style","containerStyle","disabled","highlight","borderless","gestureHandler","theme","rest","touchables","touchablesTheme","useTheme","rippleColors","highlightColor","onPressHandler","throttle","trailing","Platform","OS","createElement","TouchableNativeFeedback","background","Ripple","useForeground","canUseNativeForeground","View","GHTouchableNativeFeedback","TouchableHighlight","underlayColor","TouchableOpacity","_default","exports"],"sourceRoot":"../../../../src","sources":["components/Touchable/Touchable.tsx"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAWA,IAAAI,0BAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AAAgD,SAAAE,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,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AEnBzB,MAAA,CAAAO,OAAA,CAAAkC,aAAA,CAACvC,YAAA,CAAA6C,IAAI;QAACxB,KAAK,EAAEA;MAAM,GAAED,QAAe,CACb,CAAC;IAE9B,CAAC,MAAM;MACL,oBACEtB,MAAA,CAAAO,OAAA,CAAAkC,aAAA,CAACtC,0BAAA,CAAAuC,uBAAyB,EAAAlC,QAAA,KACpBsB,IAAI;QACRT,OAAO,EAAEe;QACT;QAAA;QACAO,UAAU,EAAEK,kDAAyB,CAACJ,MAAM,CAC1CV,YAAY,EACZP,UACF;QACA;QAAA;QACAkB,aAAa,EAAEG,kDAAyB,CAACF,sBAAsB,CAAC,CAAE;QAClErB,QAAQ,EAAEA,QAAS;QACnBF,KAAK,EAAEA;QACP;QAAA;QACAC,cAAc,EAAEA;MAAe,IAE9BF,QACwB,CAAC;IAEhC;EACF;;EAEA;EACA,OAAOI,SAAS,gBACd1B,MAAA,CAAAO,OAAA,CAAAkC,aAAA,CAACvC,YAAA,CAAA+C,kBAAkB,EAAAzC,QAAA,KACbsB,IAAI;IACRT,OAAO,EAAEe,cAAe;IACxBX,QAAQ,EAAEA,QAAS;IACnBF,KAAK,EAAEA,KAAM;IACb2B,aAAa,EAAEf;EAAe,IAE7Bb,QACiB,CAAC,gBAErBtB,MAAA,CAAAO,OAAA,CAAAkC,aAAA,CAACvC,YAAA,CAAAiD,gBAAgB,EAAA3C,QAAA,KACXsB,IAAI;IACRT,OAAO,EAAEe,cAAe;IACxBX,QAAQ,EAAEA,QAAS;IACnBF,KAAK,EAAEA;EAAM,IAEZD,QACe,CACnB;AACH,CAAC;AAAC,IAAA8B,QAAA,GAAAC,OAAA,CAAA9C,OAAA,GAEaa,SAAS","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "Touchable", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _Touchable.default;
10
+ }
11
+ });
12
+ var _Touchable = _interopRequireDefault(require("./Touchable"));
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_Touchable","_interopRequireDefault","require","e","__esModule","default"],"sourceRoot":"../../../../src","sources":["components/Touchable/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAoC,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
@@ -0,0 +1,257 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _lodash = require("lodash");
8
+ var _moment = _interopRequireDefault(require("moment"));
9
+ var _react = _interopRequireWildcard(require("react"));
10
+ var _reactNativeCalendars = require("react-native-calendars");
11
+ var _useTheme = require("../../../hooks/useTheme");
12
+ var _IconProvider = require("../../../providers/IconProvider");
13
+ var _colors = require("../../../styles/colors");
14
+ var _constants = require("../../buttons/FicButton/constants");
15
+ var _Body = require("../../typographies/Body");
16
+ var _font = require("../../typographies/font");
17
+ var _HeaderArrows = require("../HeaderArrows");
18
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
19
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
20
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); } // @ts-ignore
21
+ const DatePicker = props => {
22
+ const {
23
+ datePickers
24
+ } = (0, _useTheme.useTheme)();
25
+ const {
26
+ onDatePicked,
27
+ value,
28
+ startingDate,
29
+ endingDate,
30
+ minDate,
31
+ maxDate,
32
+ showSixWeeks = true,
33
+ hideExtraDays = false,
34
+ format = _moment.default.localeData().longDateFormat('L'),
35
+ firstDay,
36
+ theme = datePickers,
37
+ withYearSelector = false,
38
+ monthIconNames,
39
+ yearIconNames,
40
+ headerIconProps
41
+ } = props;
42
+
43
+ // The style for selected days in period 💄
44
+ const periodMarkingStyle = (0, _react.useMemo)(() => ({
45
+ color: theme.selectedDayBackgroundColor,
46
+ textColor: theme.selectedDayTextColor
47
+ }), [theme.selectedDayBackgroundColor, theme.selectedDayTextColor]);
48
+ const formattedStartingDay = startingDate && (0, _moment.default)(startingDate, format).format('YYYY-MM-DD');
49
+ const formattedEndingDay = endingDate && (0, _moment.default)(endingDate, format).format('YYYY-MM-DD');
50
+ const selectedDate = value && (0, _moment.default)(value, format).isValid() ? (0, _moment.default)(value, format).format('YYYY-MM-DD') : undefined;
51
+ const [currentYear, setCurrentYear] = (0, _react.useState)(value ? (0, _moment.default)(value, format).year() : maxDate ? (0, _moment.default)(maxDate, format).year() : (0, _moment.default)().year());
52
+ const [currentMonth, setCurrentMonth] = (0, _react.useState)(value ? (0, _moment.default)(value, format).month() + 1 : maxDate ? (0, _moment.default)(maxDate, format).month() + 1 : (0, _moment.default)().month() + 1);
53
+ (0, _react.useEffect)(() => {
54
+ if (value !== undefined) {
55
+ // Improved efficiency. No need to update the state if the value is the same.
56
+ const newMonthFromValue = (0, _moment.default)(value, format).month() + 1;
57
+ const newYearFromValue = (0, _moment.default)(value, format).year();
58
+ if (currentMonth !== newMonthFromValue) {
59
+ setCurrentMonth(newMonthFromValue);
60
+ }
61
+ if (currentYear !== newYearFromValue) {
62
+ setCurrentYear(newYearFromValue);
63
+ }
64
+ }
65
+ }, [value]);
66
+ const currentDate = (0, _react.useMemo)(() => (0, _moment.default)(`${currentYear}-${currentMonth}`, 'YYYY-M').format('YYYY-MM-DD'), [currentYear, currentMonth]);
67
+
68
+ // Creates the object with all the days between startDate and endDate styled correctly
69
+ const createDatePeriod = (0, _react.useCallback)((startDate, endDate) => {
70
+ const dateRange = {
71
+ [startDate]: {
72
+ startingDay: true,
73
+ ...periodMarkingStyle
74
+ },
75
+ [endDate]: {
76
+ endingDay: true,
77
+ ...periodMarkingStyle
78
+ }
79
+ };
80
+ if (startDate && endDate) {
81
+ let start = (0, _moment.default)(startDate).startOf('day').add(1, 'days');
82
+ const end = (0, _moment.default)(endDate).startOf('day');
83
+ while (end.isAfter(start)) {
84
+ Object.assign(dateRange, {
85
+ [start.format('YYYY-MM-DD')]: periodMarkingStyle
86
+ });
87
+ start = start.add(1, 'days');
88
+ }
89
+ }
90
+ return dateRange;
91
+ }, [periodMarkingStyle]);
92
+ const onDateSelected = (0, _react.useCallback)(date => onDatePicked((0, _moment.default)(date.dateString).format(format)), [format, onDatePicked]);
93
+ const markingType = !!formattedStartingDay && formattedStartingDay !== selectedDate || !!formattedEndingDay && formattedEndingDay !== selectedDate ? 'period' : undefined;
94
+ const formattedMinDate = minDate && (0, _moment.default)(minDate, format).format('YYYY-MM-DD');
95
+ const formattedMaxDate = maxDate && (0, _moment.default)(maxDate, format).format('YYYY-MM-DD');
96
+ const isTodayBetweenStartingDayAndSelected = !!selectedDate && !!formattedStartingDay && (0, _moment.default)().isBetween((0, _moment.default)(formattedStartingDay).startOf('day'), (0, _moment.default)(selectedDate).endOf('day'));
97
+ const isTodayBetweenSelectedAndEndingDay = !!selectedDate && !!formattedEndingDay && (0, _moment.default)().isBetween((0, _moment.default)(selectedDate).startOf('day'), (0, _moment.default)(formattedEndingDay).endOf('day'));
98
+ const isSelectedDateToday = !!selectedDate && (0, _moment.default)().isSame((0, _moment.default)(selectedDate), 'day');
99
+ const isTodayInRange = !!selectedDate && (isTodayBetweenStartingDayAndSelected || isTodayBetweenSelectedAndEndingDay || isSelectedDateToday);
100
+ const {
101
+ todayBackgroundColor,
102
+ todayTextColor,
103
+ arrowColor,
104
+ monthTextColor,
105
+ textMonthFontWeight,
106
+ ...restTheme
107
+ } = theme;
108
+ const markedDates = (0, _react.useMemo)(() => {
109
+ const toReturn = {};
110
+
111
+ // Filling markedDates for the calendar
112
+ if (!!formattedStartingDay) {
113
+ // If startingDay is defined, treat this calendar as a period picker for the endingDay
114
+ if (!!selectedDate) {
115
+ if (formattedStartingDay === selectedDate) {
116
+ toReturn[formattedStartingDay] = {
117
+ selected: true
118
+ };
119
+ } else {
120
+ // Sets all the days between the selected dates with the selected style
121
+ Object.assign(toReturn, createDatePeriod(formattedStartingDay, selectedDate));
122
+ }
123
+ } else {
124
+ toReturn[formattedStartingDay] = {
125
+ startingDay: true,
126
+ ...periodMarkingStyle
127
+ };
128
+ }
129
+ } else if (!!formattedEndingDay) {
130
+ // If endingDay is defined, treat this calendar as a period picker for the startingDay
131
+ if (!!selectedDate) {
132
+ if (formattedEndingDay === selectedDate) {
133
+ toReturn[formattedEndingDay] = {
134
+ selected: true
135
+ };
136
+ } else {
137
+ // Sets all the days between the selected dates with the selected style
138
+ Object.assign(toReturn, createDatePeriod(selectedDate, formattedEndingDay));
139
+ }
140
+ } else {
141
+ toReturn[formattedEndingDay] = {
142
+ endingDay: true,
143
+ ...periodMarkingStyle
144
+ };
145
+ }
146
+ } else if (!!selectedDate) {
147
+ // Simple picker
148
+ toReturn[selectedDate] = {
149
+ selected: true
150
+ };
151
+ }
152
+
153
+ // If today is not selected, we want to style the day with the todayBackgroundColor
154
+ if (!isTodayInRange) {
155
+ if (markingType === 'period') {
156
+ // Whether today is after the starting date or before the ending date
157
+ const isAfterStartingDate = !!formattedStartingDay && (0, _moment.default)().isAfter((0, _moment.default)(formattedStartingDay).startOf('day'));
158
+ const isBeforeEndingDate = !!formattedEndingDay && (0, _moment.default)().isBefore((0, _moment.default)(formattedEndingDay).endOf('day'));
159
+ const isSelectable = isAfterStartingDate || isBeforeEndingDate;
160
+ if (isSelectable) {
161
+ toReturn[(0, _moment.default)().format('YYYY-MM-DD')] = {
162
+ startingDay: true,
163
+ endingDay: true,
164
+ color: todayBackgroundColor,
165
+ textColor: todayTextColor
166
+ };
167
+ }
168
+ } else {
169
+ toReturn[(0, _moment.default)().format('YYYY-MM-DD')] = {
170
+ color: todayBackgroundColor,
171
+ textColor: todayTextColor
172
+ };
173
+ }
174
+ }
175
+ return toReturn;
176
+ }, [formattedStartingDay, formattedEndingDay, periodMarkingStyle, selectedDate, createDatePeriod, isTodayInRange, markingType, todayBackgroundColor, todayTextColor]);
177
+ const onPreviousYearPress = () => {
178
+ setCurrentYear(currentYear - 1);
179
+ };
180
+ const onPreviousMonthPress = () => {
181
+ if (currentMonth === 1) {
182
+ setCurrentYear(currentYear - 1);
183
+ setCurrentMonth(12);
184
+ } else {
185
+ setCurrentMonth(currentMonth - 1);
186
+ }
187
+ };
188
+ const onNextYearPress = () => {
189
+ setCurrentYear(currentYear + 1);
190
+ };
191
+ const onNextMonthPress = () => {
192
+ if (currentMonth === 12) {
193
+ setCurrentYear(currentYear + 1);
194
+ setCurrentMonth(1);
195
+ } else {
196
+ setCurrentMonth(currentMonth + 1);
197
+ }
198
+ };
199
+ const Arrows = ({
200
+ direction
201
+ }) => {
202
+ const createIconComponent = (name, calendarUnit) => ({
203
+ component: /*#__PURE__*/_react.default.createElement(_IconProvider.Icon, _extends({
204
+ name: name,
205
+ size: _constants.DEFAULT_ICON_SIZE,
206
+ color: arrowColor || _colors.Colors.BLUE
207
+ }, headerIconProps)),
208
+ calendarUnit
209
+ });
210
+ const _monthIconName = monthIconNames ? direction === 'left' ? monthIconNames.left : monthIconNames.right : `chevron-${direction}`;
211
+ const _yearIconName = yearIconNames ? direction === 'left' ? yearIconNames.left : yearIconNames.right : `chevron-double-${direction}`;
212
+ const monthIconComponent = createIconComponent(_monthIconName, 'month');
213
+ const yearIconComponent = createIconComponent(_yearIconName, 'year');
214
+ return /*#__PURE__*/_react.default.createElement(_HeaderArrows.HeaderArrows, {
215
+ withYearSelector: withYearSelector,
216
+ monthIconComponent: monthIconComponent,
217
+ yearIconComponent: yearIconComponent,
218
+ onPreviousMonthPress: onPreviousMonthPress,
219
+ onPreviousYearPress: onPreviousYearPress,
220
+ onNextMonthPress: onNextMonthPress,
221
+ onNextYearPress: onNextYearPress,
222
+ direction: direction
223
+ });
224
+ };
225
+
226
+ // Memoized Header
227
+ const Header = (0, _react.useMemo)(() => /*#__PURE__*/_react.default.createElement(_Body.Body, {
228
+ color: monthTextColor || _colors.Colors.BLUE,
229
+ weight: _font.FontWeight.SEMIBOLD,
230
+ style: {
231
+ fontWeight: textMonthFontWeight
232
+ }
233
+ }, (0, _lodash.capitalize)((0, _moment.default)(`${currentMonth}-${currentYear}`, 'M-YYYY').format('MMMM YYYY'))), [currentMonth, currentYear]);
234
+ return /*#__PURE__*/_react.default.createElement(_reactNativeCalendars.Calendar, {
235
+ disableArrowLeft: true,
236
+ disableArrowRight: true,
237
+ key: `${currentYear}-${currentMonth}`,
238
+ renderArrow: direction => /*#__PURE__*/_react.default.createElement(Arrows, {
239
+ direction: direction
240
+ }),
241
+ renderHeader: () => Header,
242
+ onDayPress: onDateSelected,
243
+ current: currentDate || selectedDate || formattedStartingDay || formattedEndingDay || formattedMinDate || formattedMaxDate,
244
+ hideExtraDays: hideExtraDays
245
+ // @ts-ignore
246
+ ,
247
+ showSixWeeks: showSixWeeks,
248
+ markingType: markingType,
249
+ markedDates: markedDates,
250
+ minDate: formattedMinDate || formattedStartingDay,
251
+ maxDate: formattedMaxDate || formattedEndingDay,
252
+ firstDay: firstDay,
253
+ theme: isTodayInRange ? restTheme : theme
254
+ });
255
+ };
256
+ var _default = exports.default = DatePicker;
257
+ //# sourceMappingURL=DatePicker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_lodash","require","_moment","_interopRequireDefault","_react","_interopRequireWildcard","_reactNativeCalendars","_useTheme","_IconProvider","_colors","_constants","_Body","_font","_HeaderArrows","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_extends","assign","bind","arguments","length","apply","DatePicker","props","datePickers","useTheme","onDatePicked","value","startingDate","endingDate","minDate","maxDate","showSixWeeks","hideExtraDays","format","moment","localeData","longDateFormat","firstDay","theme","withYearSelector","monthIconNames","yearIconNames","headerIconProps","periodMarkingStyle","useMemo","color","selectedDayBackgroundColor","textColor","selectedDayTextColor","formattedStartingDay","formattedEndingDay","selectedDate","isValid","undefined","currentYear","setCurrentYear","useState","year","currentMonth","setCurrentMonth","month","useEffect","newMonthFromValue","newYearFromValue","currentDate","createDatePeriod","useCallback","startDate","endDate","dateRange","startingDay","endingDay","start","startOf","add","end","isAfter","onDateSelected","date","dateString","markingType","formattedMinDate","formattedMaxDate","isTodayBetweenStartingDayAndSelected","isBetween","endOf","isTodayBetweenSelectedAndEndingDay","isSelectedDateToday","isSame","isTodayInRange","todayBackgroundColor","todayTextColor","arrowColor","monthTextColor","textMonthFontWeight","restTheme","markedDates","toReturn","selected","isAfterStartingDate","isBeforeEndingDate","isBefore","isSelectable","onPreviousYearPress","onPreviousMonthPress","onNextYearPress","onNextMonthPress","Arrows","direction","createIconComponent","name","calendarUnit","component","createElement","Icon","size","DEFAULT_ICON_SIZE","Colors","BLUE","_monthIconName","left","right","_yearIconName","monthIconComponent","yearIconComponent","HeaderArrows","Header","Body","weight","FontWeight","SEMIBOLD","style","fontWeight","capitalize","Calendar","disableArrowLeft","disableArrowRight","key","renderArrow","renderHeader","onDayPress","current","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/base/DatePicker/DatePicker.tsx"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,OA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,CAAC;EAED,oBACEpE,MAAA,CAAAoB,OAAA,CAAA2G,aAAA,CAAC7H,qBAAA,CAAAkJ,QAAQ;IACPC,gBAAgB;IAChBC,iBAAiB;IACjBC,GAAG,EAAE,GAAGnF,WAAW,IAAII,YAAY,EAAG;IACtCgF,WAAW,EAAG9B,SAAoB,iBAAK1H,MAAA,CAAAoB,OAAA,CAAA2G,aAAA,CAACN,MAAM;MAACC,SAAS,EAAEA;IAAU,CAAE,CAAE;IACxE+B,YAAY,EAAEA,CAAA,KAAMb,MAAO;IAC3Bc,UAAU,EAAE/D,cAAe;IAC3BgE,OAAO,EACL7E,WAAW,IACXb,YAAY,IACZF,oBAAoB,IACpBC,kBAAkB,IAClB+B,gBAAgB,IAChBC,gBACD;IACDlD,aAAa,EAAEA;IACf;IAAA;IACAD,YAAY,EAAEA,YAAoB;IAClCiD,WAAW,EAAEA,WAAwB;IACrCgB,WAAW,EAAEA,WAAY;IACzBnE,OAAO,EAAEoD,gBAAgB,IAAIhC,oBAAqB;IAClDnB,OAAO,EAAEoD,gBAAgB,IAAIhC,kBAAmB;IAChDb,QAAQ,EAAEA,QAAS;IACnBC,KAAK,EAAEmD,cAAc,GAAGM,SAAS,GAAGzD;EAAM,CAC3C,CAAC;AAEN,CAAC;AAAC,IAAAwG,QAAA,GAAAC,OAAA,CAAAzI,OAAA,GAEae,UAAU","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "DatePicker", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _DatePicker.default;
10
+ }
11
+ });
12
+ var _DatePicker = _interopRequireDefault(require("./DatePicker"));
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_DatePicker","_interopRequireDefault","require","e","__esModule","default"],"sourceRoot":"../../../../../src","sources":["components/base/DatePicker/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA4D,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _Touchable = require("../../Touchable");
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ const HeaderArrows = ({
12
+ withYearSelector,
13
+ direction,
14
+ monthIconComponent,
15
+ yearIconComponent,
16
+ onPreviousMonthPress,
17
+ onPreviousYearPress,
18
+ onNextMonthPress,
19
+ onNextYearPress
20
+ }) => {
21
+ const iconSet = withYearSelector ? [monthIconComponent, yearIconComponent] : [monthIconComponent];
22
+ const iconsToBeRendered = direction === 'left' ? iconSet.reverse() : iconSet;
23
+ const actions = {
24
+ left: {
25
+ month: onPreviousMonthPress,
26
+ year: onPreviousYearPress
27
+ },
28
+ right: {
29
+ month: onNextMonthPress,
30
+ year: onNextYearPress
31
+ }
32
+ };
33
+ const handleAction = calendarUnit => {
34
+ var _actions$direction, _actions$direction$ca;
35
+ return actions === null || actions === void 0 || (_actions$direction = actions[direction]) === null || _actions$direction === void 0 || (_actions$direction$ca = _actions$direction[calendarUnit]) === null || _actions$direction$ca === void 0 ? void 0 : _actions$direction$ca.call(_actions$direction);
36
+ };
37
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
38
+ style: styles.container
39
+ }, iconsToBeRendered.map(({
40
+ calendarUnit,
41
+ component
42
+ }, idx) => /*#__PURE__*/_react.default.createElement(_Touchable.Touchable, {
43
+ key: idx,
44
+ style: [styles.iconContainer, direction === 'left' && styles.iconContainerLeft, direction === 'right' && styles.iconContainerRight],
45
+ hitSlop: {
46
+ top: 8,
47
+ right: 8,
48
+ bottom: 8,
49
+ left: 8
50
+ },
51
+ onPress: () => handleAction(calendarUnit)
52
+ }, component)));
53
+ };
54
+ const styles = _reactNative.StyleSheet.create({
55
+ // For some reasons if we display custom arrows a horizontal padding of 10px is applied to the header container
56
+ container: {
57
+ alignItems: 'center',
58
+ flexDirection: 'row',
59
+ marginLeft: -10,
60
+ marginRight: -10
61
+ },
62
+ iconContainer: {
63
+ flexDirection: 'row',
64
+ alignItems: 'center',
65
+ padding: 5
66
+ },
67
+ iconContainerLeft: {
68
+ marginRight: 16,
69
+ marginLeft: 0
70
+ },
71
+ iconContainerRight: {
72
+ marginRight: 0,
73
+ marginLeft: 16
74
+ }
75
+ });
76
+ var _default = exports.default = HeaderArrows;
77
+ //# sourceMappingURL=HeaderArrows.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_Touchable","e","__esModule","default","HeaderArrows","withYearSelector","direction","monthIconComponent","yearIconComponent","onPreviousMonthPress","onPreviousYearPress","onNextMonthPress","onNextYearPress","iconSet","iconsToBeRendered","reverse","actions","left","month","year","right","handleAction","calendarUnit","_actions$direction","_actions$direction$ca","call","createElement","View","style","styles","container","map","component","idx","Touchable","key","iconContainer","iconContainerLeft","iconContainerRight","hitSlop","top","bottom","onPress","StyleSheet","create","alignItems","flexDirection","marginLeft","marginRight","padding","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/base/HeaderArrows/HeaderArrows.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,UAAA,GAAAF,OAAA;AAA4C,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAc5C,MAAMG,YAAmD,GAAGA,CAAC;EAC3DC,gBA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MAAM,CAACS,kBAAkB,CAClD;IACFC,OAAO,EAAE;MAAEC,GAAG,EAAE,CAAC;MAAEpB,KAAK,EAAE,CAAC;MAAEqB,MAAM,EAAE,CAAC;MAAExB,IAAI,EAAE;IAAE,CAAE;IAClDyB,OAAO,EAAEA,CAAA,KAAMrB,YAAY,CAACC,YAAY;EAAE,GAEzCU,SACQ,CACZ,CACG,CAAC;AAEX,CAAC;AAED,MAAMH,MAAM,GAAGc,uBAAU,CAACC,MAAM,CAAC;EAC/B;EACAd,SAAS,EAAE;IACTe,UAAU,EAAE,QAAQ;IACpBC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,CAAC,EAAE;IACfC,WAAW,EAAE,CAAC;EAChB,CAAC;EACDZ,aAAa,EAAE;IACbU,aAAa,EAAE,KAAK;IACpBD,UAAU,EAAE,QAAQ;IACpBI,OAAO,EAAE;EACX,CAAC;EACDZ,iBAAiB,EAAE;IACjBW,WAAW,EAAE,EAAE;IACfD,UAAU,EAAE;EACd,CAAC;EACDT,kBAAkB,EAAE;IAClBU,WAAW,EAAE,CAAC;IACdD,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAAC,IAAAG,QAAA,GAAAC,OAAA,CAAAhD,OAAA,GAEYC,YAAY","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "HeaderArrows", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _HeaderArrows.default;
10
+ }
11
+ });
12
+ var _HeaderArrows = _interopRequireDefault(require("./HeaderArrows"));
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_HeaderArrows","_interopRequireDefault","require","e","__esModule","default"],"sourceRoot":"../../../../../src","sources":["components/base/HeaderArrows/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,aAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA0C,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}