@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
@@ -0,0 +1,42 @@
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 _FicButtonIcon = _interopRequireDefault(require("./FicButtonIcon"));
9
+ var _FicButtonPrimary = _interopRequireDefault(require("./FicButtonPrimary"));
10
+ var _FicButtonSecondary = _interopRequireDefault(require("./FicButtonSecondary"));
11
+ var _FicButtonTertiary = _interopRequireDefault(require("./FicButtonTertiary"));
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); } // @ts-ignore TS6133
14
+ const FicButton = ({
15
+ type = 'primary',
16
+ ...commonProps
17
+ }) => {
18
+ const _iconPosition = commonProps.iconPosition ? commonProps.iconPosition : commonProps.iconName ? 'left' : undefined;
19
+ const FButton = () => {
20
+ switch (type) {
21
+ case 'icon':
22
+ return /*#__PURE__*/_react.default.createElement(_FicButtonIcon.default, _extends({
23
+ isPressable: true
24
+ }, commonProps));
25
+ case 'secondary':
26
+ return /*#__PURE__*/_react.default.createElement(_FicButtonSecondary.default, _extends({
27
+ iconPosition: _iconPosition
28
+ }, commonProps));
29
+ case 'tertiary':
30
+ return /*#__PURE__*/_react.default.createElement(_FicButtonTertiary.default, _extends({
31
+ iconPosition: _iconPosition
32
+ }, commonProps));
33
+ default:
34
+ return /*#__PURE__*/_react.default.createElement(_FicButtonPrimary.default, _extends({
35
+ iconPosition: _iconPosition
36
+ }, commonProps));
37
+ }
38
+ };
39
+ return /*#__PURE__*/_react.default.createElement(FButton, null);
40
+ };
41
+ var _default = exports.default = FicButton;
42
+ //# sourceMappingURL=FicButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_FicButtonIcon","_FicButtonPrimary","_FicButtonSecondary","_FicButtonTertiary","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","FicButton","type","commonProps","_iconPosition","iconPosition","iconName","undefined","FButton","createElement","isP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,WAAW,CAAG,CAAC;MACvD,KAAK,WAAW;QACd,oBACExB,MAAA,CAAAS,OAAA,CAAAqB,aAAA,CAACzB,mBAAA,CAAAI,OAAkB,EAAAC,QAAA;UAACgB,YAAY,EAAED;QAAc,GAAKD,WAAW,CAAG,CAAC;MAExE,KAAK,UAAU;QACb,oBACExB,MAAA,CAAAS,OAAA,CAAAqB,aAAA,CAACxB,kBAAA,CAAAG,OAAiB,EAAAC,QAAA;UAACgB,YAAY,EAAED;QAAc,GAAKD,WAAW,CAAG,CAAC;MAEvE;QACE,oBACExB,MAAA,CAAAS,OAAA,CAAAqB,aAAA,CAAC1B,iBAAA,CAAAK,OAAgB,EAAAC,QAAA;UAACgB,YAAY,EAAED;QAAc,GAAKD,WAAW,CAAG,CAAC;IAExE;EACF,CAAC;EAED,oBAAOxB,MAAA,CAAAS,OAAA,CAAAqB,aAAA,CAACD,OAAO,MAAE,CAAC;AACpB,CAAC;AAAC,IAAAG,QAAA,GAAAC,OAAA,CAAAxB,OAAA,GAEaa,SAAS","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=FicButton.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/buttons/FicButton/FicButton.types.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var React = _react;
9
+ var _reactNative = require("react-native");
10
+ var _reactNativeGestureHandler = require("react-native-gesture-handler");
11
+ var _useTheme = require("../../../hooks/useTheme");
12
+ var _IconProvider = require("../../../providers/IconProvider");
13
+ var _constants = require("./constants");
14
+ 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); }
15
+ // @ts-ignore TS6133
16
+
17
+ const FicButtonIcon = ({
18
+ iconName,
19
+ iconSize: _iconSize,
20
+ disabled,
21
+ error,
22
+ onPress,
23
+ onPressIn,
24
+ onPressOut,
25
+ containerStyle,
26
+ customPressedIconAreaSize,
27
+ colorContrastForLightTheme,
28
+ solid,
29
+ light,
30
+ duotone,
31
+ regular
32
+ }) => {
33
+ const Pressable = _reactNative.Platform.OS === 'ios' ? _reactNative.Pressable : _reactNativeGestureHandler.TouchableHighlight;
34
+ const INCREMENT_PRESSED_AREA_SIZE = 16;
35
+ const iconSize = _iconSize ?? _constants.DEFAULT_ICON_SIZE;
36
+ const {
37
+ ficButton: theme
38
+ } = (0, _useTheme.useTheme)() || {};
39
+ const buttonTheme = (theme === null || theme === void 0 ? void 0 : theme['icon']) || {};
40
+ const themeProps = disabled ? buttonTheme.disabled : error ? buttonTheme.error : buttonTheme.default;
41
+ const [isPressed, setIsPressed] = (0, _react.useState)(false);
42
+ const pressedAreaSize = (0, _react.useMemo)(() => customPressedIconAreaSize ? customPressedIconAreaSize : iconSize + INCREMENT_PRESSED_AREA_SIZE, [iconSize, customPressedIconAreaSize]);
43
+ const pressableAreaStyle = (0, _react.useMemo)(() => {
44
+ var _themeProps$pressedSt;
45
+ return {
46
+ position: 'absolute',
47
+ top: (pressedAreaSize - iconSize) / 2 * -1,
48
+ left: (pressedAreaSize - iconSize) / 2 * -1,
49
+ width: pressedAreaSize ?? iconSize,
50
+ height: pressedAreaSize ?? iconSize,
51
+ borderRadius: pressedAreaSize / 6,
52
+ ...(themeProps === null || themeProps === void 0 || (_themeProps$pressedSt = themeProps.pressedStyle) === null || _themeProps$pressedSt === void 0 ? void 0 : _themeProps$pressedSt.container)
53
+ };
54
+ }, [iconSize, pressedAreaSize, themeProps]);
55
+ const iconStyle = (0, _react.useMemo)(() => ({
56
+ textAlign: 'center',
57
+ lineHeight: iconSize,
58
+ width: iconSize,
59
+ height: iconSize,
60
+ fontSize: iconSize ? iconSize === 16 ? iconSize - 2 : iconSize - 4 : _constants.DEFAULT_ICON_SIZE
61
+ }), [iconSize]);
62
+ const iconColor = (0, _react.useMemo)(() => {
63
+ return colorContrastForLightTheme && !error ? themeProps !== null && themeProps !== void 0 && themeProps.icon.colorContrastForLightTheme ? themeProps === null || themeProps === void 0 ? void 0 : themeProps.icon.colorContrastForLightTheme : themeProps === null || themeProps === void 0 ? void 0 : themeProps.icon.color : themeProps === null || themeProps === void 0 ? void 0 : themeProps.icon.color;
64
+ }, [colorContrastForLightTheme, error, themeProps]);
65
+ const handleOnPressIn = e => {
66
+ if (onPressIn) onPressIn(e);
67
+ setIsPressed(true);
68
+ };
69
+ const handleOnPressOut = e => {
70
+ if (onPressOut) onPressOut(e);
71
+ setIsPressed(false);
72
+ };
73
+ const handleOnPress = e => {
74
+ if (onPress) onPress(e);
75
+ };
76
+ const FicIcon = (0, _react.useCallback)(() => /*#__PURE__*/React.createElement(_IconProvider.Icon, {
77
+ name: iconName ?? _constants.DEFAULT_ICON,
78
+ solid: solid,
79
+ light: light,
80
+ duotone: duotone,
81
+ regular: regular,
82
+ size: iconSize,
83
+ color: iconColor,
84
+ style: iconStyle
85
+ }), [iconName, iconSize, colorContrastForLightTheme, error, iconStyle, themeProps, solid, light, regular, duotone]);
86
+ return /*#__PURE__*/React.createElement(_reactNative.View, {
87
+ style: {
88
+ width: _iconSize,
89
+ height: _iconSize
90
+ }
91
+ }, isPressed ? /*#__PURE__*/React.createElement(_reactNative.View, {
92
+ style: [pressableAreaStyle]
93
+ }) : null, /*#__PURE__*/React.createElement(Pressable, {
94
+ style: [themeProps === null || themeProps === void 0 ? void 0 : themeProps.container, containerStyle],
95
+ onPress: handleOnPress,
96
+ onPressIn: handleOnPressIn,
97
+ onPressOut: handleOnPressOut,
98
+ hitSlop: _constants.HIT_SLOP,
99
+ disabled: disabled,
100
+ underlayColor: 'transparent'
101
+ }, FicIcon()));
102
+ };
103
+ var _default = exports.default = FicButtonIcon;
104
+ //# sourceMappingURL=FicButtonIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","React","_reactNative","_reactNativeGestureHandler","_useTheme","_IconProvider","_constants","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","FicButtonIcon","iconName","iconSize","_iconSize","disabled","error","onPress","onPressIn","onPressOut","containerStyle","customPressedIconAreaSize","colorContrastForLightTheme","solid","light","duotone","regular","Pressable","Platform","OS","PressableIOS","TouchableHighlight","INCREMENT_PRESSED_AREA_SIZE","DEFAULT_ICON_SIZE","ficButton","theme","useTheme","buttonTheme","themeProps","isPressed","setIsPressed","useState","pressedAreaSize","useMemo","pressableAreaStyle","_themeProps$pressedSt","position","top","left","width","height","borderRadius","pressedStyle","container","iconStyle","textAlign","lineHeight","fontSize","iconColor","icon","color","handleOnPressIn","handleOnPressOut","handleOnPress","FicIcon","useCallback","createElement","Icon","name","DEFAULT_ICON","size","style","View","hitSlop","HIT_SLOP","underlayColor","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/buttons/FicButton/FicButtonIcon.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,IAAAC,KAAA,GAAAH,MAAA;AAE/B,IAAAI,YAAA,GAAAF,OAAA;AAQA,IAAAG,0BAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AAMA,IAAAM,UAAA,GAAAN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]}
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var React = _react;
9
+ var _reactNative = require("react-native");
10
+ var _reactNativeGestureHandler = require("react-native-gesture-handler");
11
+ var _useTheme = require("../../../hooks/useTheme");
12
+ var _IconProvider = require("../../../providers/IconProvider");
13
+ var _space = require("../../../styles/space");
14
+ var _Body = require("../../typographies/Body");
15
+ var _constants = require("./constants");
16
+ 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); }
17
+ const FicButtonPrimary = ({
18
+ title,
19
+ iconName,
20
+ iconSize,
21
+ onPress,
22
+ onPressIn,
23
+ onPressOut,
24
+ disabled,
25
+ error,
26
+ iconPosition,
27
+ fullWidth,
28
+ small,
29
+ solid,
30
+ regular,
31
+ light,
32
+ duotone,
33
+ containerStyle
34
+ }) => {
35
+ var _themeProps$pressedSt3;
36
+ const {
37
+ ficButton: theme
38
+ } = (0, _useTheme.useTheme)() || {};
39
+ const buttonTheme = (theme === null || theme === void 0 ? void 0 : theme['primary']) || {};
40
+ const themeProps = disabled ? buttonTheme.disabled : error ? buttonTheme.error : buttonTheme.default;
41
+ const containerStyleObj = containerStyle ?? {};
42
+ const [isPressed, setIsPressed] = (0, _react.useState)(false);
43
+ const styleBasedOnPress = (0, _react.useMemo)(() => {
44
+ var _themeProps$pressedSt;
45
+ return {
46
+ ...(isPressed && !disabled ? themeProps === null || themeProps === void 0 || (_themeProps$pressedSt = themeProps.pressedStyle) === null || _themeProps$pressedSt === void 0 ? void 0 : _themeProps$pressedSt.container : themeProps === null || themeProps === void 0 ? void 0 : themeProps.container)
47
+ };
48
+ }, [disabled, themeProps, isPressed]);
49
+ const ficPrimaryViewStyle = (0, _react.useMemo)(() => ({
50
+ paddingHorizontal: _constants.BUTTON_INTERNAL_PADDING_HORIZONTAL,
51
+ paddingVertical: small ? _space.PADDING.SM : _space.PADDING.LG,
52
+ width: fullWidth ? '100%' : 'auto',
53
+ flexDirection: 'row',
54
+ alignItems: 'center',
55
+ justifyContent: 'center'
56
+ }), [fullWidth, small]);
57
+ const bodyStyle = (0, _react.useMemo)(() => {
58
+ var _themeProps$pressedSt2;
59
+ return {
60
+ marginLeft: iconPosition === 'left' ? _constants.ICON_HORIZONTAL_MARGIN : 0,
61
+ marginRight: iconPosition === 'right' ? _constants.ICON_HORIZONTAL_MARGIN : 0,
62
+ ...(isPressed && !disabled ? themeProps === null || themeProps === void 0 || (_themeProps$pressedSt2 = themeProps.pressedStyle) === null || _themeProps$pressedSt2 === void 0 ? void 0 : _themeProps$pressedSt2.text : themeProps === null || themeProps === void 0 ? void 0 : themeProps.text)
63
+ };
64
+ }, [iconPosition, themeProps, disabled, isPressed]);
65
+ const handleOnPressIn = e => {
66
+ if (onPressIn) onPressIn(e);
67
+ setIsPressed(true);
68
+ };
69
+ const handleOnPressOut = e => {
70
+ if (onPressOut) onPressOut(e);
71
+ setIsPressed(false);
72
+ };
73
+ const handleOnPress = e => {
74
+ if (onPress) {
75
+ onPress(e);
76
+ }
77
+ };
78
+ const FicPrimary = (0, _react.useCallback)(() => {
79
+ return /*#__PURE__*/React.createElement(_reactNative.View, {
80
+ style: ficPrimaryViewStyle
81
+ }, iconPosition === 'left' ? /*#__PURE__*/React.createElement(_IconProvider.Icon, {
82
+ name: iconName || _constants.DEFAULT_ICON,
83
+ size: iconSize ?? _constants.DEFAULT_ICON_SIZE,
84
+ color: themeProps === null || themeProps === void 0 ? void 0 : themeProps.icon.color,
85
+ solid: solid,
86
+ regular: regular,
87
+ light: light,
88
+ duotone: duotone
89
+ }) : null, /*#__PURE__*/React.createElement(_Body.Body, {
90
+ text: title ?? _constants.DEFAULT_TITLE,
91
+ style: bodyStyle
92
+ }), iconPosition === 'right' ? /*#__PURE__*/React.createElement(_IconProvider.Icon, {
93
+ name: iconName || _constants.DEFAULT_ICON,
94
+ size: iconSize ?? _constants.DEFAULT_ICON_SIZE,
95
+ color: themeProps === null || themeProps === void 0 ? void 0 : themeProps.icon.color,
96
+ solid: solid,
97
+ regular: regular,
98
+ light: light,
99
+ duotone: duotone
100
+ }) : null);
101
+ }, [iconPosition, iconName, iconSize, bodyStyle, title, ficPrimaryViewStyle, themeProps, solid, regular, light, duotone]);
102
+ return _reactNative.Platform.OS === 'android' ? /*#__PURE__*/React.createElement(_reactNativeGestureHandler.TouchableHighlight, {
103
+ disabled: disabled,
104
+ containerStyle: [containerStyleObj],
105
+ style: [{
106
+ borderRadius: _space.BORDER_RADIUS.SM
107
+ }, styleBasedOnPress],
108
+ onPress: handleOnPress,
109
+ onPressIn: handleOnPressIn,
110
+ onPressOut: handleOnPressOut,
111
+ underlayColor: themeProps === null || themeProps === void 0 || (_themeProps$pressedSt3 = themeProps.pressedStyle) === null || _themeProps$pressedSt3 === void 0 ? void 0 : _themeProps$pressedSt3.container.backgroundColor
112
+ }, FicPrimary()) : /*#__PURE__*/React.createElement(_reactNative.Pressable, {
113
+ disabled: disabled,
114
+ style: [styleBasedOnPress, containerStyleObj],
115
+ onPress: handleOnPress,
116
+ onPressIn: handleOnPressIn,
117
+ onPressOut: handleOnPressOut
118
+ }, FicPrimary());
119
+ };
120
+ var _default = exports.default = FicButtonPrimary;
121
+ //# sourceMappingURL=FicButtonPrimary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","React","_reactNative","_reactNativeGestureHandler","_useTheme","_IconProvider","_space","_Body","_constants","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","FicButtonPrimary","title","iconName","iconSize","onPress","onPressIn","onPressOut","disabled","error","iconPosition","fullWidth","small","solid","regular","light","duotone","containerStyle","_themeProps$pressedSt3","ficButton","theme","useTheme","buttonTheme","themeProps","containerStyleObj","isPressed","setIsPressed","useState","styleBasedOnPress","useMemo","_themeProps$pressedSt","pressedStyle","container","ficPrimaryViewStyle","paddingHorizontal","BUTTON_INTERNAL_PADDING_HORIZONTAL","paddingVertical","PADDING","SM","LG","width","flexDirection","alignItems","justifyContent","bodyStyle","_themeProps$pressedSt2","marginLeft","ICON_HORIZONTAL_MARGIN","marginRight","text","handleOnPressIn","handleOnPressOut","handleOnPress","FicPrimary","useCallback","createElement","View","style","Icon","name","DEFAULT_ICON","size","DEFAULT_ICON_SIZE","color","icon","Body","DEFAULT_TITLE","Platform","OS","TouchableHighlight","borderRadius","BORDER_RADIUS","underlayColor","backgroundColor","Pressable","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/buttons/FicButton/FicButtonPrimary.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,IAAAC,KAAA,GAAAH,MAAA;AAE/B,IAAAI,YAAA,GAAAF,OAAA;AASA,IAAAG,0BAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,KAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AAMqB,SAAAD,wBAAAU,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAZ,uBAAA,YAAAA,CAAAU,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAA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F,aAAA,CAAChF,YAAA,CAAAmG,SAAS;IACRlE,QAAQ,EAAEA,QAAS;IACnBiD,KAAK,EAAE,CAAC7B,iBAAiB,EAAEJ,iBAAiB,CAAE;IAC9CnB,OAAO,EAAE+C,aAAc;IACvB9C,SAAS,EAAE4C,eAAgB;IAC3B3C,UAAU,EAAE4C;EAAiB,GAE5BE,UAAU,CAAC,CACH,CACZ;AACH,CAAC;AAAC,IAAAsB,QAAA,GAAAC,OAAA,CAAApF,OAAA,GAEaS,gBAAgB","ignoreList":[]}
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var React = _react;
9
+ var _reactNative = require("react-native");
10
+ var _reactNativeGestureHandler = require("react-native-gesture-handler");
11
+ var _useTheme = require("../../../hooks/useTheme");
12
+ var _IconProvider = require("../../../providers/IconProvider");
13
+ var _space = require("../../../styles/space");
14
+ var _Body = require("../../typographies/Body");
15
+ var _constants = require("./constants");
16
+ 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); }
17
+ const FicButtonSecondary = ({
18
+ title,
19
+ iconName,
20
+ iconSize,
21
+ onPress,
22
+ onPressIn,
23
+ onPressOut,
24
+ disabled,
25
+ error,
26
+ iconPosition,
27
+ fullWidth,
28
+ small,
29
+ solid,
30
+ regular,
31
+ light,
32
+ duotone,
33
+ containerStyle
34
+ }) => {
35
+ var _themeProps$pressedSt3;
36
+ const {
37
+ ficButton: theme
38
+ } = (0, _useTheme.useTheme)() || {};
39
+ const buttonTheme = (theme === null || theme === void 0 ? void 0 : theme['secondary']) || {};
40
+ const themeProps = disabled ? buttonTheme.disabled : error ? buttonTheme.error : buttonTheme.default;
41
+ const containerStyleObj = containerStyle ?? {};
42
+ const [isPressed, setIsPressed] = (0, _react.useState)(false);
43
+ const styleBasedOnPress = (0, _react.useMemo)(() => {
44
+ var _themeProps$pressedSt;
45
+ return {
46
+ ...(isPressed && !disabled ? themeProps === null || themeProps === void 0 || (_themeProps$pressedSt = themeProps.pressedStyle) === null || _themeProps$pressedSt === void 0 ? void 0 : _themeProps$pressedSt.container : themeProps === null || themeProps === void 0 ? void 0 : themeProps.container)
47
+ };
48
+ }, [themeProps, disabled, isPressed]);
49
+ const ficSecondaryViewStyle = (0, _react.useMemo)(() => {
50
+ var _themeProps$container;
51
+ return {
52
+ paddingHorizontal: _constants.BUTTON_INTERNAL_PADDING_HORIZONTAL,
53
+ width: fullWidth ? '100%' : 'auto',
54
+ // removing 1 borderWidth to match primary button height
55
+ paddingVertical: (small ? _space.PADDING.SM : _space.PADDING.LG) - ((themeProps === null || themeProps === void 0 || (_themeProps$container = themeProps.container) === null || _themeProps$container === void 0 ? void 0 : _themeProps$container.borderWidth) || 0),
56
+ flexDirection: 'row',
57
+ alignItems: 'center',
58
+ justifyContent: 'center'
59
+ };
60
+ }, [fullWidth, themeProps]);
61
+ const bodyStyle = (0, _react.useMemo)(() => {
62
+ var _themeProps$pressedSt2;
63
+ return {
64
+ marginLeft: iconPosition === 'left' ? _constants.ICON_HORIZONTAL_MARGIN : 0,
65
+ marginRight: iconPosition === 'right' ? _constants.ICON_HORIZONTAL_MARGIN : 0,
66
+ ...(isPressed && !disabled ? themeProps === null || themeProps === void 0 || (_themeProps$pressedSt2 = themeProps.pressedStyle) === null || _themeProps$pressedSt2 === void 0 ? void 0 : _themeProps$pressedSt2.text : themeProps === null || themeProps === void 0 ? void 0 : themeProps.text)
67
+ };
68
+ }, [themeProps, iconPosition, disabled, isPressed]);
69
+ const handleOnPressIn = e => {
70
+ if (onPressIn) onPressIn(e);
71
+ setIsPressed(true);
72
+ };
73
+ const handleOnPressOut = e => {
74
+ if (onPressOut) onPressOut(e);
75
+ setIsPressed(false);
76
+ };
77
+ const handleOnPress = e => {
78
+ if (onPress) onPress(e);
79
+ };
80
+ const FicSecondary = (0, _react.useCallback)(() => {
81
+ return /*#__PURE__*/React.createElement(_reactNative.View, {
82
+ style: ficSecondaryViewStyle
83
+ }, iconPosition === 'left' ? /*#__PURE__*/React.createElement(_IconProvider.Icon, {
84
+ name: iconName || _constants.DEFAULT_ICON,
85
+ size: iconSize ?? _constants.DEFAULT_ICON_SIZE,
86
+ color: themeProps === null || themeProps === void 0 ? void 0 : themeProps.icon.color,
87
+ solid: solid,
88
+ regular: regular,
89
+ light: light,
90
+ duotone: duotone
91
+ }) : null, /*#__PURE__*/React.createElement(_Body.Body, {
92
+ text: title ?? _constants.DEFAULT_TITLE,
93
+ style: bodyStyle
94
+ }), iconPosition === 'right' ? /*#__PURE__*/React.createElement(_IconProvider.Icon, {
95
+ name: iconName || _constants.DEFAULT_ICON,
96
+ size: iconSize ?? _constants.DEFAULT_ICON_SIZE,
97
+ color: themeProps === null || themeProps === void 0 ? void 0 : themeProps.icon.color,
98
+ solid: solid,
99
+ regular: regular,
100
+ light: light,
101
+ duotone: duotone
102
+ }) : null);
103
+ }, [iconPosition, iconName, iconSize, bodyStyle, title]);
104
+ return _reactNative.Platform.OS === 'android' ? /*#__PURE__*/React.createElement(_reactNativeGestureHandler.TouchableHighlight, {
105
+ disabled: disabled,
106
+ containerStyle: containerStyleObj,
107
+ style: [{
108
+ borderRadius: _space.BORDER_RADIUS.SM
109
+ }, styleBasedOnPress],
110
+ onPress: handleOnPress,
111
+ onPressIn: handleOnPressIn,
112
+ onPressOut: handleOnPressOut,
113
+ underlayColor: themeProps === null || themeProps === void 0 || (_themeProps$pressedSt3 = themeProps.pressedStyle) === null || _themeProps$pressedSt3 === void 0 ? void 0 : _themeProps$pressedSt3.container.backgroundColor
114
+ }, FicSecondary()) : /*#__PURE__*/React.createElement(_reactNative.Pressable, {
115
+ style: [styleBasedOnPress, containerStyleObj],
116
+ onPress: handleOnPress,
117
+ onPressIn: handleOnPressIn,
118
+ onPressOut: handleOnPressOut,
119
+ disabled: disabled
120
+ }, FicSecondary());
121
+ };
122
+ var _default = exports.default = FicButtonSecondary;
123
+ //# sourceMappingURL=FicButtonSecondary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","React","_reactNative","_reactNativeGestureHandler","_useTheme","_IconProvider","_space","_Body","_constants","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","FicButtonSecondary","title","iconName","iconSize","onPress","onPressIn","onPressOut","disabled","error","iconPosition","fullWidth","small","solid","regular","light","duotone","containerStyle","_themeProps$pressedSt3","ficButton","theme","useTheme","buttonTheme","themeProps","containerStyleObj","isPressed","setIsPressed","useState","styleBasedOnPress","useMemo","_themeProps$pressedSt","pressedStyle","container","ficSecondaryViewStyle","_themeProps$container","paddingHorizontal","BUTTON_INTERNAL_PADDING_HORIZONTAL","width","paddingVertical","PADDING","SM","LG","borderWidth","flexDirection","alignItems","justifyContent","bodyStyle","_themeProps$pressedSt2","marginLeft","ICON_HORIZONTAL_MARGIN","marginRight","text","handleOnPressIn","handleOnPressOut","handleOnPress","FicSecondary","useCallback","createElement","View","style","Icon","name","DEFAULT_ICON","size","DEFAULT_ICON_SIZE","color","icon","Body","DEFAULT_TITLE","Platform","OS","TouchableHighlight","borderRadius","BORDER_RADIUS","underlayColor","backgroundColor","Pressable","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/buttons/FicButton/FicButtonSecondary.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,IAAA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,CAACC,EAAE,KAAK,SAAS,gBAC9BhG,KAAA,CAAAmF,aAAA,CAACjF,0BAAA,CAAA+F,kBAAkB;IACjB/D,QAAQ,EAAEA,QAAS;IACnBS,cAAc,EAAEO,iBAAkB;IAClCmC,KAAK,EAAE,CAAC;MAAEa,YAAY,EAAEC,oBAAa,CAACjC;IAAG,CAAC,EAAEZ,iBAAiB,CAAE;IAC/DvB,OAAO,EAAEiD,aAAc;IACvBhD,SAAS,EAAE8C,eAAgB;IAC3B7C,UAAU,EAAE8C,gBAAiB;IAC7BqB,aAAa,EAAEnD,UAAU,aAAVA,UAAU,gBAAAL,sBAAA,GAAVK,UAAU,CAAEQ,YAAY,cAAAb,sBAAA,uBAAxBA,sBAAA,CAA0Bc,SAAS,CAAC2C;EAAgB,GAElEpB,YAAY,CAAC,CACI,CAAC,gBAErBjF,KAAA,CAAAmF,aAAA,CAAClF,YAAA,CAAAqG,SAAS;IACRjB,KAAK,EAAE,CAAC/B,iBAAiB,EAAEJ,iBAAiB,CAAE;IAC9CnB,OAAO,EAAEiD,aAAc;IACvBhD,SAAS,EAAE8C,eAAgB;IAC3B7C,UAAU,EAAE8C,gBAAiB;IAC7B7C,QAAQ,EAAEA;EAAS,GAElB+C,YAAY,CAAC,CACL,CACZ;AACH,CAAC;AAAC,IAAAsB,QAAA,GAAAC,OAAA,CAAAtF,OAAA,GAEaS,kBAAkB","ignoreList":[]}
@@ -0,0 +1,144 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var React = _react;
9
+ var _reactNative = require("react-native");
10
+ var _reactNativeGestureHandler = require("react-native-gesture-handler");
11
+ var _useTheme = require("../../../hooks/useTheme");
12
+ var _IconProvider = require("../../../providers/IconProvider");
13
+ var _space = require("../../../styles/space");
14
+ var _Body = require("../../typographies/Body");
15
+ var _constants = require("./constants");
16
+ 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); }
17
+ const FicButtonTertiary = ({
18
+ title,
19
+ iconName,
20
+ iconSize,
21
+ onPress,
22
+ onPressIn,
23
+ onPressOut,
24
+ disabled,
25
+ error,
26
+ iconPosition,
27
+ colorContrastForLightTheme,
28
+ fullWidth,
29
+ small,
30
+ solid,
31
+ regular,
32
+ light,
33
+ duotone,
34
+ containerStyle
35
+ }) => {
36
+ const {
37
+ ficButton: theme
38
+ } = (0, _useTheme.useTheme)() || {};
39
+ const Pressable = _reactNative.Platform.OS === 'ios' ? _reactNative.Pressable : _reactNativeGestureHandler.TouchableHighlight;
40
+ const buttonTheme = (theme === null || theme === void 0 ? void 0 : theme['tertiary']) || {};
41
+ const themeProps = disabled ? buttonTheme.disabled : error ? buttonTheme.error : buttonTheme.default;
42
+ const _containerStyle = containerStyle ?? {};
43
+ const [isPressed, setIsPressed] = (0, _react.useState)(false);
44
+ const iconColor = (0, _react.useMemo)(() => {
45
+ return colorContrastForLightTheme && !error ? themeProps !== null && themeProps !== void 0 && themeProps.icon.colorContrastForLightTheme ? themeProps === null || themeProps === void 0 ? void 0 : themeProps.icon.colorContrastForLightTheme : themeProps === null || themeProps === void 0 ? void 0 : themeProps.icon.color : themeProps === null || themeProps === void 0 ? void 0 : themeProps.icon.color;
46
+ }, [themeProps, colorContrastForLightTheme, error]);
47
+ const bodyColor = (0, _react.useMemo)(() => {
48
+ return colorContrastForLightTheme && !error ? themeProps !== null && themeProps !== void 0 && themeProps.text.colorContrastForLightTheme ? themeProps === null || themeProps === void 0 ? void 0 : themeProps.text.colorContrastForLightTheme : themeProps === null || themeProps === void 0 ? void 0 : themeProps.text.color : themeProps === null || themeProps === void 0 ? void 0 : themeProps.text.color;
49
+ }, [themeProps, colorContrastForLightTheme, error]);
50
+ const bodyStyle = (0, _react.useMemo)(() => ({
51
+ marginLeft: iconPosition === 'left' ? _constants.ICON_HORIZONTAL_MARGIN : 0,
52
+ marginRight: iconPosition === 'right' ? _constants.ICON_HORIZONTAL_MARGIN : 0,
53
+ textDecorationLine: (themeProps === null || themeProps === void 0 ? void 0 : themeProps.text.textDecorationLine) ?? 'underline'
54
+ }), [themeProps, iconPosition, isPressed, disabled]);
55
+ const tertiaryPressedAreaStyle = (0, _react.useMemo)(() => {
56
+ var _themeProps$pressedSt;
57
+ return {
58
+ top: small ? -_space.PADDING.SM : -_space.PADDING.LG,
59
+ bottom: small ? -_space.PADDING.SM : -_space.PADDING.LG,
60
+ left: fullWidth ? 0 : _space.PADDING.LG * -1,
61
+ right: fullWidth ? 0 : _space.PADDING.LG * -1,
62
+ position: 'absolute',
63
+ ...(themeProps === null || themeProps === void 0 || (_themeProps$pressedSt = themeProps.pressedStyle) === null || _themeProps$pressedSt === void 0 ? void 0 : _themeProps$pressedSt.container)
64
+ };
65
+ }, [small, themeProps, fullWidth]);
66
+ const dynamicContainerStyle = (0, _react.useMemo)(() => {
67
+ var _themeProps$pressedSt2;
68
+ return {
69
+ paddingTop: small ? _space.PADDING.SM : _space.PADDING.LG,
70
+ paddingBottom: small ? _space.PADDING.SM : _space.PADDING.LG,
71
+ width: '100%',
72
+ ...(isPressed ? themeProps === null || themeProps === void 0 || (_themeProps$pressedSt2 = themeProps.pressedStyle) === null || _themeProps$pressedSt2 === void 0 ? void 0 : _themeProps$pressedSt2.container : themeProps === null || themeProps === void 0 ? void 0 : themeProps.container)
73
+ };
74
+ }, [disabled, themeProps, isPressed]);
75
+ const dynamicContainerStyleContainer = (0, _react.useMemo)(() => {
76
+ var _themeProps$pressedSt3;
77
+ return {
78
+ width: '100%',
79
+ ...(isPressed ? themeProps === null || themeProps === void 0 || (_themeProps$pressedSt3 = themeProps.pressedStyle) === null || _themeProps$pressedSt3 === void 0 ? void 0 : _themeProps$pressedSt3.container : themeProps === null || themeProps === void 0 ? void 0 : themeProps.container)
80
+ };
81
+ }, [disabled, themeProps, isPressed]);
82
+ const handleOnPressIn = e => {
83
+ if (onPressIn) onPressIn(e);
84
+ setIsPressed(true);
85
+ };
86
+ const handleOnPressOut = e => {
87
+ if (onPressOut) onPressOut(e);
88
+ setIsPressed(false);
89
+ };
90
+ const handleOnPress = e => {
91
+ if (onPress) onPress(e);
92
+ };
93
+ const FicTertiary = (0, _react.useCallback)(() => {
94
+ return /*#__PURE__*/React.createElement(React.Fragment, null, iconPosition === 'left' ? /*#__PURE__*/React.createElement(_IconProvider.Icon, {
95
+ name: iconName || _constants.DEFAULT_ICON,
96
+ size: iconSize ?? _constants.DEFAULT_ICON_SIZE,
97
+ color: iconColor,
98
+ solid: solid,
99
+ regular: regular,
100
+ light: light,
101
+ duotone: duotone
102
+ }) : null, /*#__PURE__*/React.createElement(_Body.Body, {
103
+ text: title ?? _constants.DEFAULT_TITLE,
104
+ style: bodyStyle,
105
+ color: bodyColor
106
+ }), iconPosition === 'right' ? /*#__PURE__*/React.createElement(_IconProvider.Icon, {
107
+ name: iconName || _constants.DEFAULT_ICON,
108
+ size: iconSize ?? _constants.DEFAULT_ICON_SIZE,
109
+ color: iconColor,
110
+ solid: solid,
111
+ regular: regular,
112
+ light: light,
113
+ duotone: duotone
114
+ }) : null);
115
+ }, [iconPosition, iconName, iconSize, buttonTheme, disabled, error, bodyStyle, title]);
116
+ return fullWidth ? /*#__PURE__*/React.createElement(Pressable, {
117
+ style: [dynamicContainerStyle, _reactNative.Platform.OS === 'ios' ? _containerStyle : {}],
118
+ containerStyle: [dynamicContainerStyleContainer, _containerStyle],
119
+ onPress: handleOnPress,
120
+ onPressIn: handleOnPressIn,
121
+ onPressOut: handleOnPressOut,
122
+ disabled: disabled,
123
+ hitSlop: _constants.HIT_SLOP,
124
+ underlayColor: 'transparent'
125
+ }, FicTertiary()) : /*#__PURE__*/React.createElement(_reactNative.View, {
126
+ style: [{
127
+ position: 'relative',
128
+ alignSelf: 'flex-start',
129
+ width: fullWidth ? '100%' : 'auto'
130
+ }, _containerStyle]
131
+ }, isPressed ? /*#__PURE__*/React.createElement(_reactNative.View, {
132
+ style: [tertiaryPressedAreaStyle]
133
+ }) : null, /*#__PURE__*/React.createElement(Pressable, {
134
+ style: themeProps === null || themeProps === void 0 ? void 0 : themeProps.container,
135
+ onPress: handleOnPress,
136
+ onPressIn: handleOnPressIn,
137
+ onPressOut: handleOnPressOut,
138
+ disabled: disabled,
139
+ hitSlop: _constants.HIT_SLOP,
140
+ underlayColor: 'transparent'
141
+ }, FicTertiary()));
142
+ };
143
+ var _default = exports.default = FicButtonTertiary;
144
+ //# sourceMappingURL=FicButtonTertiary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","React","_reactNative","_reactNativeGestureHandler","_useTheme","_IconProvider","_space","_Body","_constants","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","FicButtonTertiary","title","iconName","iconSize","onPress","onPressIn","onPressOut","disabled","error","iconPosition","colorContrastForLightTheme","fullWidth","small","solid","regular","light","duotone","containerStyle","ficButton","theme","useTheme","Pressable","Platform","OS","PressableIOS","TouchableHighlight","buttonTheme","themeProps","_containerStyle","isPressed","setIsPressed","useState","iconColor","useMemo","icon","color","bodyColor","text","bodyStyle","marginLeft","ICON_HORIZONTAL_MARGIN","marginRight","textDecorationLine","tertiaryPressedAreaStyle","_themeProps$pressedSt","top","PADDING","SM","LG","bottom","left","right","position","pressedStyle","container","dynamicContainerStyle","_themeProps$pressedSt2","paddingTop","paddingBottom","width","dynamicContainerStyleContainer","_themeProps$pressedSt3","handleOnPressIn","handleOnPressOut","handleOnPress","FicTertiary","useCallback","createElement","Fragment","Icon","name","DEFAULT_ICON","size","DEFAULT_ICON_SIZE","Body","DEFAULT_TITLE","style","hitSlop","HIT_SLOP","underlayColor","View","alignSelf","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/buttons/FicButton/FicButtonTertiary.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,IAAAC,KAAA,GAAAH,MAAA;AAE/B,IAAAI,YAAA,GAAAF,OAAA;AASA,IAAAG,0BAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,KAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AAA+G,SAAAD,wBAAAU,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAZ,uBAAA,YAAAA,CAAAU,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,M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