@fattureincloud-mobile/fic-mobile-ds 1.2.0 → 1.2.2

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 (628) hide show
  1. package/lib/commonjs/components/Tag/Tag.js +12 -9
  2. package/lib/commonjs/components/Tag/Tag.js.map +1 -1
  3. package/lib/commonjs/components/Tag/index.js +1 -1
  4. package/lib/commonjs/components/Tag/index.js.map +1 -1
  5. package/lib/commonjs/components/Touchable/Touchable.js +24 -15
  6. package/lib/commonjs/components/Touchable/Touchable.js.map +1 -1
  7. package/lib/commonjs/components/Touchable/index.js +1 -1
  8. package/lib/commonjs/components/Touchable/index.js.map +1 -1
  9. package/lib/commonjs/components/base/DatePicker/DatePicker.js +22 -19
  10. package/lib/commonjs/components/base/DatePicker/DatePicker.js.map +1 -1
  11. package/lib/commonjs/components/base/DatePicker/index.js +1 -1
  12. package/lib/commonjs/components/base/DatePicker/index.js.map +1 -1
  13. package/lib/commonjs/components/base/HeaderArrows/HeaderArrows.js +20 -21
  14. package/lib/commonjs/components/base/HeaderArrows/HeaderArrows.js.map +1 -1
  15. package/lib/commonjs/components/base/HeaderArrows/index.js +1 -1
  16. package/lib/commonjs/components/base/HeaderArrows/index.js.map +1 -1
  17. package/lib/commonjs/components/buttons/FicButton/FicButton.js +20 -27
  18. package/lib/commonjs/components/buttons/FicButton/FicButton.js.map +1 -1
  19. package/lib/commonjs/components/buttons/FicButton/FicButton.types.js.map +1 -1
  20. package/lib/commonjs/components/buttons/FicButton/FicButtonIcon.js +50 -42
  21. package/lib/commonjs/components/buttons/FicButton/FicButtonIcon.js.map +1 -1
  22. package/lib/commonjs/components/buttons/FicButton/FicButtonPrimary.js +45 -48
  23. package/lib/commonjs/components/buttons/FicButton/FicButtonPrimary.js.map +1 -1
  24. package/lib/commonjs/components/buttons/FicButton/FicButtonSecondary.js +54 -60
  25. package/lib/commonjs/components/buttons/FicButton/FicButtonSecondary.js.map +1 -1
  26. package/lib/commonjs/components/buttons/FicButton/FicButtonTertiary.js +75 -90
  27. package/lib/commonjs/components/buttons/FicButton/FicButtonTertiary.js.map +1 -1
  28. package/lib/commonjs/components/buttons/FicButton/constants.js +2 -2
  29. package/lib/commonjs/components/buttons/FicButton/constants.js.map +1 -1
  30. package/lib/commonjs/components/buttons/FicButton/index.js +1 -1
  31. package/lib/commonjs/components/buttons/FicButton/index.js.map +1 -1
  32. package/lib/commonjs/components/buttons/FicButton/themes/dark.js +5 -4
  33. package/lib/commonjs/components/buttons/FicButton/themes/dark.js.map +1 -1
  34. package/lib/commonjs/components/buttons/FicButton/themes/index.js +8 -1
  35. package/lib/commonjs/components/buttons/FicButton/themes/index.js.map +1 -1
  36. package/lib/commonjs/components/buttons/FicButton/themes/light.js +5 -4
  37. package/lib/commonjs/components/buttons/FicButton/themes/light.js.map +1 -1
  38. package/lib/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.js +19 -18
  39. package/lib/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.js.map +1 -1
  40. package/lib/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.types.js.map +1 -1
  41. package/lib/commonjs/components/buttons/FicButtonGroup/index.js +1 -1
  42. package/lib/commonjs/components/buttons/FicButtonGroup/index.js.map +1 -1
  43. package/lib/commonjs/components/notifications/Banner/Banner.js +49 -44
  44. package/lib/commonjs/components/notifications/Banner/Banner.js.map +1 -1
  45. package/lib/commonjs/components/notifications/Banner/Banner.types.js.map +1 -1
  46. package/lib/commonjs/components/notifications/Banner/index.js +1 -1
  47. package/lib/commonjs/components/notifications/Banner/index.js.map +1 -1
  48. package/lib/commonjs/components/notifications/Banner/themes/dark.js +1 -1
  49. package/lib/commonjs/components/notifications/Banner/themes/dark.js.map +1 -1
  50. package/lib/commonjs/components/notifications/Banner/themes/index.js +2 -2
  51. package/lib/commonjs/components/notifications/Banner/themes/index.js.map +1 -1
  52. package/lib/commonjs/components/notifications/Banner/themes/light.js +1 -1
  53. package/lib/commonjs/components/notifications/Banner/themes/light.js.map +1 -1
  54. package/lib/commonjs/components/typographies/Body/Body.js +10 -6
  55. package/lib/commonjs/components/typographies/Body/Body.js.map +1 -1
  56. package/lib/commonjs/components/typographies/Body/index.js +1 -1
  57. package/lib/commonjs/components/typographies/Body/index.js.map +1 -1
  58. package/lib/commonjs/components/typographies/ButtonTitle/ButtonTitle.js +12 -8
  59. package/lib/commonjs/components/typographies/ButtonTitle/ButtonTitle.js.map +1 -1
  60. package/lib/commonjs/components/typographies/ButtonTitle/index.js +1 -1
  61. package/lib/commonjs/components/typographies/ButtonTitle/index.js.map +1 -1
  62. package/lib/commonjs/components/typographies/Callout/Callout.js +10 -6
  63. package/lib/commonjs/components/typographies/Callout/Callout.js.map +1 -1
  64. package/lib/commonjs/components/typographies/Callout/index.js +1 -1
  65. package/lib/commonjs/components/typographies/Callout/index.js.map +1 -1
  66. package/lib/commonjs/components/typographies/CaptionOne/CaptionOne.js +10 -6
  67. package/lib/commonjs/components/typographies/CaptionOne/CaptionOne.js.map +1 -1
  68. package/lib/commonjs/components/typographies/CaptionOne/index.js +1 -1
  69. package/lib/commonjs/components/typographies/CaptionOne/index.js.map +1 -1
  70. package/lib/commonjs/components/typographies/CaptionTwo/CaptionTwo.js +10 -6
  71. package/lib/commonjs/components/typographies/CaptionTwo/CaptionTwo.js.map +1 -1
  72. package/lib/commonjs/components/typographies/CaptionTwo/index.js +1 -1
  73. package/lib/commonjs/components/typographies/CaptionTwo/index.js.map +1 -1
  74. package/lib/commonjs/components/typographies/Footnote/Footnote.js +10 -6
  75. package/lib/commonjs/components/typographies/Footnote/Footnote.js.map +1 -1
  76. package/lib/commonjs/components/typographies/Footnote/index.js +1 -1
  77. package/lib/commonjs/components/typographies/Footnote/index.js.map +1 -1
  78. package/lib/commonjs/components/typographies/Headline/Headline.js +10 -6
  79. package/lib/commonjs/components/typographies/Headline/Headline.js.map +1 -1
  80. package/lib/commonjs/components/typographies/Headline/index.js +1 -1
  81. package/lib/commonjs/components/typographies/Headline/index.js.map +1 -1
  82. package/lib/commonjs/components/typographies/LargeTitle/LargeTitle.js +10 -6
  83. package/lib/commonjs/components/typographies/LargeTitle/LargeTitle.js.map +1 -1
  84. package/lib/commonjs/components/typographies/LargeTitle/index.js +1 -1
  85. package/lib/commonjs/components/typographies/LargeTitle/index.js.map +1 -1
  86. package/lib/commonjs/components/typographies/Subhead/Subhead.js +10 -6
  87. package/lib/commonjs/components/typographies/Subhead/Subhead.js.map +1 -1
  88. package/lib/commonjs/components/typographies/Subhead/index.js +1 -1
  89. package/lib/commonjs/components/typographies/Subhead/index.js.map +1 -1
  90. package/lib/commonjs/components/typographies/TitleOne/TitleOne.js +10 -6
  91. package/lib/commonjs/components/typographies/TitleOne/TitleOne.js.map +1 -1
  92. package/lib/commonjs/components/typographies/TitleOne/index.js +1 -1
  93. package/lib/commonjs/components/typographies/TitleOne/index.js.map +1 -1
  94. package/lib/commonjs/components/typographies/TitleThree/TitleThree.js +10 -6
  95. package/lib/commonjs/components/typographies/TitleThree/TitleThree.js.map +1 -1
  96. package/lib/commonjs/components/typographies/TitleThree/index.js +1 -1
  97. package/lib/commonjs/components/typographies/TitleThree/index.js.map +1 -1
  98. package/lib/commonjs/components/typographies/TitleTwo/TitleTwo.js +10 -6
  99. package/lib/commonjs/components/typographies/TitleTwo/TitleTwo.js.map +1 -1
  100. package/lib/commonjs/components/typographies/TitleTwo/index.js +1 -1
  101. package/lib/commonjs/components/typographies/TitleTwo/index.js.map +1 -1
  102. package/lib/commonjs/components/typographies/font.js.map +1 -1
  103. package/lib/commonjs/hooks/useTheme.js +1 -1
  104. package/lib/commonjs/hooks/useTheme.js.map +1 -1
  105. package/lib/commonjs/index.js +46 -46
  106. package/lib/commonjs/index.js.map +1 -1
  107. package/lib/commonjs/package.json +1 -0
  108. package/lib/commonjs/providers/DesignSystemProvider/DesignSystemProvider.js +12 -9
  109. package/lib/commonjs/providers/DesignSystemProvider/DesignSystemProvider.js.map +1 -1
  110. package/lib/commonjs/providers/DesignSystemProvider/index.js +1 -1
  111. package/lib/commonjs/providers/DesignSystemProvider/index.js.map +1 -1
  112. package/lib/commonjs/providers/IconProvider/IconProvider.js +11 -7
  113. package/lib/commonjs/providers/IconProvider/IconProvider.js.map +1 -1
  114. package/lib/commonjs/providers/IconProvider/index.js +1 -1
  115. package/lib/commonjs/providers/IconProvider/index.js.map +1 -1
  116. package/lib/commonjs/providers/ThemeProvider/ThemeProvider.js +6 -4
  117. package/lib/commonjs/providers/ThemeProvider/ThemeProvider.js.map +1 -1
  118. package/lib/commonjs/styles/calendarTheme.js.map +1 -1
  119. package/lib/commonjs/styles/colors.js.map +1 -1
  120. package/lib/commonjs/styles/globalStyles.js +1 -1
  121. package/lib/commonjs/styles/globalStyles.js.map +1 -1
  122. package/lib/commonjs/styles/space.js.map +1 -1
  123. package/lib/commonjs/styles/theme.js +11 -7
  124. package/lib/commonjs/styles/theme.js.map +1 -1
  125. package/lib/commonjs/utils/locale.js +2 -2
  126. package/lib/commonjs/utils/locale.js.map +1 -1
  127. package/lib/module/components/Tag/Tag.js +14 -9
  128. package/lib/module/components/Tag/Tag.js.map +1 -1
  129. package/lib/module/components/Tag/index.js +3 -1
  130. package/lib/module/components/Tag/index.js.map +1 -1
  131. package/lib/module/components/Touchable/Touchable.js +26 -15
  132. package/lib/module/components/Touchable/Touchable.js.map +1 -1
  133. package/lib/module/components/Touchable/index.js +3 -1
  134. package/lib/module/components/Touchable/index.js.map +1 -1
  135. package/lib/module/components/base/DatePicker/DatePicker.js +22 -19
  136. package/lib/module/components/base/DatePicker/DatePicker.js.map +1 -1
  137. package/lib/module/components/base/DatePicker/index.js +3 -1
  138. package/lib/module/components/base/DatePicker/index.js.map +1 -1
  139. package/lib/module/components/base/HeaderArrows/HeaderArrows.js +22 -21
  140. package/lib/module/components/base/HeaderArrows/HeaderArrows.js.map +1 -1
  141. package/lib/module/components/base/HeaderArrows/index.js +3 -1
  142. package/lib/module/components/base/HeaderArrows/index.js.map +1 -1
  143. package/lib/module/components/buttons/FicButton/FicButton.js +22 -28
  144. package/lib/module/components/buttons/FicButton/FicButton.js.map +1 -1
  145. package/lib/module/components/buttons/FicButton/FicButton.types.js +2 -0
  146. package/lib/module/components/buttons/FicButton/FicButton.types.js.map +1 -1
  147. package/lib/module/components/buttons/FicButton/FicButtonIcon.js +53 -42
  148. package/lib/module/components/buttons/FicButton/FicButtonIcon.js.map +1 -1
  149. package/lib/module/components/buttons/FicButton/FicButtonPrimary.js +47 -48
  150. package/lib/module/components/buttons/FicButton/FicButtonPrimary.js.map +1 -1
  151. package/lib/module/components/buttons/FicButton/FicButtonSecondary.js +56 -60
  152. package/lib/module/components/buttons/FicButton/FicButtonSecondary.js.map +1 -1
  153. package/lib/module/components/buttons/FicButton/FicButtonTertiary.js +78 -91
  154. package/lib/module/components/buttons/FicButton/FicButtonTertiary.js.map +1 -1
  155. package/lib/module/components/buttons/FicButton/constants.js +4 -2
  156. package/lib/module/components/buttons/FicButton/constants.js.map +1 -1
  157. package/lib/module/components/buttons/FicButton/index.js +3 -1
  158. package/lib/module/components/buttons/FicButton/index.js.map +1 -1
  159. package/lib/module/components/buttons/FicButton/themes/dark.js +7 -4
  160. package/lib/module/components/buttons/FicButton/themes/dark.js.map +1 -1
  161. package/lib/module/components/buttons/FicButton/themes/index.js +5 -2
  162. package/lib/module/components/buttons/FicButton/themes/index.js.map +1 -1
  163. package/lib/module/components/buttons/FicButton/themes/light.js +7 -4
  164. package/lib/module/components/buttons/FicButton/themes/light.js.map +1 -1
  165. package/lib/module/components/buttons/FicButtonGroup/FicButtonGroup.js +21 -18
  166. package/lib/module/components/buttons/FicButtonGroup/FicButtonGroup.js.map +1 -1
  167. package/lib/module/components/buttons/FicButtonGroup/FicButtonGroup.types.js +2 -0
  168. package/lib/module/components/buttons/FicButtonGroup/FicButtonGroup.types.js.map +1 -1
  169. package/lib/module/components/buttons/FicButtonGroup/index.js +3 -1
  170. package/lib/module/components/buttons/FicButtonGroup/index.js.map +1 -1
  171. package/lib/module/components/notifications/Banner/Banner.js +51 -44
  172. package/lib/module/components/notifications/Banner/Banner.js.map +1 -1
  173. package/lib/module/components/notifications/Banner/Banner.types.js +2 -0
  174. package/lib/module/components/notifications/Banner/Banner.types.js.map +1 -1
  175. package/lib/module/components/notifications/Banner/index.js +3 -1
  176. package/lib/module/components/notifications/Banner/index.js.map +1 -1
  177. package/lib/module/components/notifications/Banner/themes/dark.js +3 -1
  178. package/lib/module/components/notifications/Banner/themes/dark.js.map +1 -1
  179. package/lib/module/components/notifications/Banner/themes/index.js +4 -2
  180. package/lib/module/components/notifications/Banner/themes/index.js.map +1 -1
  181. package/lib/module/components/notifications/Banner/themes/light.js +3 -1
  182. package/lib/module/components/notifications/Banner/themes/light.js.map +1 -1
  183. package/lib/module/components/typographies/Body/Body.js +10 -6
  184. package/lib/module/components/typographies/Body/Body.js.map +1 -1
  185. package/lib/module/components/typographies/Body/index.js +3 -1
  186. package/lib/module/components/typographies/Body/index.js.map +1 -1
  187. package/lib/module/components/typographies/ButtonTitle/ButtonTitle.js +12 -8
  188. package/lib/module/components/typographies/ButtonTitle/ButtonTitle.js.map +1 -1
  189. package/lib/module/components/typographies/ButtonTitle/index.js +3 -1
  190. package/lib/module/components/typographies/ButtonTitle/index.js.map +1 -1
  191. package/lib/module/components/typographies/Callout/Callout.js +10 -6
  192. package/lib/module/components/typographies/Callout/Callout.js.map +1 -1
  193. package/lib/module/components/typographies/Callout/index.js +3 -1
  194. package/lib/module/components/typographies/Callout/index.js.map +1 -1
  195. package/lib/module/components/typographies/CaptionOne/CaptionOne.js +10 -6
  196. package/lib/module/components/typographies/CaptionOne/CaptionOne.js.map +1 -1
  197. package/lib/module/components/typographies/CaptionOne/index.js +3 -1
  198. package/lib/module/components/typographies/CaptionOne/index.js.map +1 -1
  199. package/lib/module/components/typographies/CaptionTwo/CaptionTwo.js +10 -6
  200. package/lib/module/components/typographies/CaptionTwo/CaptionTwo.js.map +1 -1
  201. package/lib/module/components/typographies/CaptionTwo/index.js +3 -1
  202. package/lib/module/components/typographies/CaptionTwo/index.js.map +1 -1
  203. package/lib/module/components/typographies/Footnote/Footnote.js +10 -6
  204. package/lib/module/components/typographies/Footnote/Footnote.js.map +1 -1
  205. package/lib/module/components/typographies/Footnote/index.js +3 -1
  206. package/lib/module/components/typographies/Footnote/index.js.map +1 -1
  207. package/lib/module/components/typographies/Headline/Headline.js +10 -6
  208. package/lib/module/components/typographies/Headline/Headline.js.map +1 -1
  209. package/lib/module/components/typographies/Headline/index.js +3 -1
  210. package/lib/module/components/typographies/Headline/index.js.map +1 -1
  211. package/lib/module/components/typographies/LargeTitle/LargeTitle.js +10 -6
  212. package/lib/module/components/typographies/LargeTitle/LargeTitle.js.map +1 -1
  213. package/lib/module/components/typographies/LargeTitle/index.js +3 -1
  214. package/lib/module/components/typographies/LargeTitle/index.js.map +1 -1
  215. package/lib/module/components/typographies/Subhead/Subhead.js +10 -6
  216. package/lib/module/components/typographies/Subhead/Subhead.js.map +1 -1
  217. package/lib/module/components/typographies/Subhead/index.js +3 -1
  218. package/lib/module/components/typographies/Subhead/index.js.map +1 -1
  219. package/lib/module/components/typographies/TitleOne/TitleOne.js +10 -6
  220. package/lib/module/components/typographies/TitleOne/TitleOne.js.map +1 -1
  221. package/lib/module/components/typographies/TitleOne/index.js +3 -1
  222. package/lib/module/components/typographies/TitleOne/index.js.map +1 -1
  223. package/lib/module/components/typographies/TitleThree/TitleThree.js +10 -6
  224. package/lib/module/components/typographies/TitleThree/TitleThree.js.map +1 -1
  225. package/lib/module/components/typographies/TitleThree/index.js +3 -1
  226. package/lib/module/components/typographies/TitleThree/index.js.map +1 -1
  227. package/lib/module/components/typographies/TitleTwo/TitleTwo.js +10 -6
  228. package/lib/module/components/typographies/TitleTwo/TitleTwo.js.map +1 -1
  229. package/lib/module/components/typographies/TitleTwo/index.js +3 -1
  230. package/lib/module/components/typographies/TitleTwo/index.js.map +1 -1
  231. package/lib/module/components/typographies/font.js +2 -0
  232. package/lib/module/components/typographies/font.js.map +1 -1
  233. package/lib/module/hooks/useTheme.js +3 -1
  234. package/lib/module/hooks/useTheme.js.map +1 -1
  235. package/lib/module/index.js +27 -25
  236. package/lib/module/index.js.map +1 -1
  237. package/lib/module/package.json +1 -0
  238. package/lib/module/providers/DesignSystemProvider/DesignSystemProvider.js +14 -9
  239. package/lib/module/providers/DesignSystemProvider/DesignSystemProvider.js.map +1 -1
  240. package/lib/module/providers/DesignSystemProvider/index.js +3 -1
  241. package/lib/module/providers/DesignSystemProvider/index.js.map +1 -1
  242. package/lib/module/providers/IconProvider/IconProvider.js +13 -7
  243. package/lib/module/providers/IconProvider/IconProvider.js.map +1 -1
  244. package/lib/module/providers/IconProvider/index.js +3 -1
  245. package/lib/module/providers/IconProvider/index.js.map +1 -1
  246. package/lib/module/providers/ThemeProvider/ThemeProvider.js +8 -4
  247. package/lib/module/providers/ThemeProvider/ThemeProvider.js.map +1 -1
  248. package/lib/module/styles/calendarTheme.js +2 -0
  249. package/lib/module/styles/calendarTheme.js.map +1 -1
  250. package/lib/module/styles/colors.js +2 -0
  251. package/lib/module/styles/colors.js.map +1 -1
  252. package/lib/module/styles/globalStyles.js +3 -1
  253. package/lib/module/styles/globalStyles.js.map +1 -1
  254. package/lib/module/styles/space.js +2 -0
  255. package/lib/module/styles/space.js.map +1 -1
  256. package/lib/module/styles/theme.js +10 -4
  257. package/lib/module/styles/theme.js.map +1 -1
  258. package/lib/module/utils/locale.js +4 -2
  259. package/lib/module/utils/locale.js.map +1 -1
  260. package/lib/package.json +4 -2
  261. package/lib/typescript/commonjs/components/Tag/Tag.d.ts.map +1 -0
  262. package/lib/typescript/commonjs/components/Tag/index.d.ts.map +1 -0
  263. package/lib/typescript/commonjs/components/Touchable/Touchable.d.ts.map +1 -0
  264. package/lib/typescript/commonjs/components/Touchable/index.d.ts.map +1 -0
  265. package/lib/typescript/{components → commonjs/components}/base/DatePicker/DatePicker.d.ts +1 -1
  266. package/lib/typescript/commonjs/components/base/DatePicker/DatePicker.d.ts.map +1 -0
  267. package/lib/typescript/commonjs/components/base/DatePicker/index.d.ts.map +1 -0
  268. package/lib/typescript/commonjs/components/base/HeaderArrows/HeaderArrows.d.ts.map +1 -0
  269. package/lib/typescript/commonjs/components/base/HeaderArrows/index.d.ts.map +1 -0
  270. package/lib/typescript/commonjs/components/buttons/FicButton/FicButton.d.ts.map +1 -0
  271. package/lib/typescript/{components → commonjs/components}/buttons/FicButton/FicButton.types.d.ts +4 -0
  272. package/lib/typescript/commonjs/components/buttons/FicButton/FicButton.types.d.ts.map +1 -0
  273. package/lib/typescript/commonjs/components/buttons/FicButton/FicButtonIcon.d.ts.map +1 -0
  274. package/lib/typescript/commonjs/components/buttons/FicButton/FicButtonPrimary.d.ts.map +1 -0
  275. package/lib/typescript/commonjs/components/buttons/FicButton/FicButtonSecondary.d.ts.map +1 -0
  276. package/lib/typescript/commonjs/components/buttons/FicButton/FicButtonTertiary.d.ts.map +1 -0
  277. package/lib/typescript/commonjs/components/buttons/FicButton/Icon.stories.d.ts +22 -0
  278. package/lib/typescript/commonjs/components/buttons/FicButton/Icon.stories.d.ts.map +1 -0
  279. package/lib/typescript/commonjs/components/buttons/FicButton/Primary.stories.d.ts +33 -0
  280. package/lib/typescript/commonjs/components/buttons/FicButton/Primary.stories.d.ts.map +1 -0
  281. package/lib/typescript/commonjs/components/buttons/FicButton/Secondary.stories.d.ts +20 -0
  282. package/lib/typescript/commonjs/components/buttons/FicButton/Secondary.stories.d.ts.map +1 -0
  283. package/lib/typescript/commonjs/components/buttons/FicButton/Tertiary.stories.d.ts +21 -0
  284. package/lib/typescript/commonjs/components/buttons/FicButton/Tertiary.stories.d.ts.map +1 -0
  285. package/lib/typescript/commonjs/components/buttons/FicButton/constants.d.ts.map +1 -0
  286. package/lib/typescript/commonjs/components/buttons/FicButton/index.d.ts.map +1 -0
  287. package/lib/typescript/commonjs/components/buttons/FicButton/themes/dark.d.ts.map +1 -0
  288. package/lib/typescript/commonjs/components/buttons/FicButton/themes/index.d.ts +4 -0
  289. package/lib/typescript/commonjs/components/buttons/FicButton/themes/index.d.ts.map +1 -0
  290. package/lib/typescript/commonjs/components/buttons/FicButton/themes/light.d.ts.map +1 -0
  291. package/lib/typescript/commonjs/components/buttons/FicButtonGroup/ButtonGroup.stories.d.ts +37 -0
  292. package/lib/typescript/commonjs/components/buttons/FicButtonGroup/ButtonGroup.stories.d.ts.map +1 -0
  293. package/lib/typescript/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.d.ts.map +1 -0
  294. package/lib/typescript/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.types.d.ts.map +1 -0
  295. package/lib/typescript/commonjs/components/buttons/FicButtonGroup/index.d.ts.map +1 -0
  296. package/lib/typescript/commonjs/components/notifications/Banner/Banner.d.ts.map +1 -0
  297. package/lib/typescript/{components → commonjs/components}/notifications/Banner/Banner.types.d.ts +9 -15
  298. package/lib/typescript/commonjs/components/notifications/Banner/Banner.types.d.ts.map +1 -0
  299. package/lib/typescript/commonjs/components/notifications/Banner/index.d.ts.map +1 -0
  300. package/lib/typescript/commonjs/components/notifications/Banner/themes/dark.d.ts.map +1 -0
  301. package/lib/typescript/commonjs/components/notifications/Banner/themes/index.d.ts.map +1 -0
  302. package/lib/typescript/commonjs/components/notifications/Banner/themes/light.d.ts.map +1 -0
  303. package/lib/typescript/commonjs/components/typographies/Body/Body.d.ts.map +1 -0
  304. package/lib/typescript/commonjs/components/typographies/Body/index.d.ts.map +1 -0
  305. package/lib/typescript/commonjs/components/typographies/ButtonTitle/ButtonTitle.d.ts.map +1 -0
  306. package/lib/typescript/commonjs/components/typographies/ButtonTitle/index.d.ts.map +1 -0
  307. package/lib/typescript/commonjs/components/typographies/Callout/Callout.d.ts.map +1 -0
  308. package/lib/typescript/commonjs/components/typographies/Callout/index.d.ts.map +1 -0
  309. package/lib/typescript/commonjs/components/typographies/CaptionOne/CaptionOne.d.ts.map +1 -0
  310. package/lib/typescript/commonjs/components/typographies/CaptionOne/index.d.ts.map +1 -0
  311. package/lib/typescript/commonjs/components/typographies/CaptionTwo/CaptionTwo.d.ts.map +1 -0
  312. package/lib/typescript/commonjs/components/typographies/CaptionTwo/index.d.ts.map +1 -0
  313. package/lib/typescript/commonjs/components/typographies/Footnote/Footnote.d.ts.map +1 -0
  314. package/lib/typescript/commonjs/components/typographies/Footnote/index.d.ts.map +1 -0
  315. package/lib/typescript/commonjs/components/typographies/Headline/Headline.d.ts.map +1 -0
  316. package/lib/typescript/commonjs/components/typographies/Headline/index.d.ts.map +1 -0
  317. package/lib/typescript/commonjs/components/typographies/LargeTitle/LargeTitle.d.ts.map +1 -0
  318. package/lib/typescript/commonjs/components/typographies/LargeTitle/index.d.ts.map +1 -0
  319. package/lib/typescript/commonjs/components/typographies/Subhead/Subhead.d.ts.map +1 -0
  320. package/lib/typescript/commonjs/components/typographies/Subhead/index.d.ts.map +1 -0
  321. package/lib/typescript/commonjs/components/typographies/TitleOne/TitleOne.d.ts.map +1 -0
  322. package/lib/typescript/commonjs/components/typographies/TitleOne/index.d.ts.map +1 -0
  323. package/lib/typescript/commonjs/components/typographies/TitleThree/TitleThree.d.ts.map +1 -0
  324. package/lib/typescript/commonjs/components/typographies/TitleThree/index.d.ts.map +1 -0
  325. package/lib/typescript/commonjs/components/typographies/TitleTwo/TitleTwo.d.ts.map +1 -0
  326. package/lib/typescript/commonjs/components/typographies/TitleTwo/index.d.ts.map +1 -0
  327. package/lib/typescript/{components → commonjs/components}/typographies/font.d.ts +1 -1
  328. package/lib/typescript/commonjs/components/typographies/font.d.ts.map +1 -0
  329. package/lib/typescript/commonjs/hooks/useTheme.d.ts.map +1 -0
  330. package/lib/typescript/{index.d.ts → commonjs/index.d.ts} +1 -0
  331. package/lib/typescript/commonjs/index.d.ts.map +1 -0
  332. package/lib/typescript/commonjs/package.json +1 -0
  333. package/lib/typescript/commonjs/providers/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -0
  334. package/lib/typescript/commonjs/providers/DesignSystemProvider/index.d.ts.map +1 -0
  335. package/lib/typescript/commonjs/providers/IconProvider/IconProvider.d.ts.map +1 -0
  336. package/lib/typescript/commonjs/providers/IconProvider/index.d.ts.map +1 -0
  337. package/lib/typescript/commonjs/providers/ThemeProvider/ThemeProvider.d.ts.map +1 -0
  338. package/lib/typescript/commonjs/styles/calendarTheme.d.ts.map +1 -0
  339. package/lib/typescript/commonjs/styles/colors.d.ts.map +1 -0
  340. package/lib/typescript/commonjs/styles/globalStyles.d.ts.map +1 -0
  341. package/lib/typescript/commonjs/styles/space.d.ts.map +1 -0
  342. package/lib/typescript/{styles → commonjs/styles}/theme.d.ts +2 -0
  343. package/lib/typescript/commonjs/styles/theme.d.ts.map +1 -0
  344. package/lib/typescript/commonjs/utils/locale.d.ts.map +1 -0
  345. package/lib/typescript/module/components/Tag/Tag.d.ts +13 -0
  346. package/lib/typescript/module/components/Tag/Tag.d.ts.map +1 -0
  347. package/lib/typescript/module/components/Tag/index.d.ts +3 -0
  348. package/lib/typescript/module/components/Tag/index.d.ts.map +1 -0
  349. package/lib/typescript/module/components/Touchable/Touchable.d.ts +16 -0
  350. package/lib/typescript/module/components/Touchable/Touchable.d.ts.map +1 -0
  351. package/lib/typescript/module/components/Touchable/index.d.ts +3 -0
  352. package/lib/typescript/module/components/Touchable/index.d.ts.map +1 -0
  353. package/lib/typescript/module/components/base/DatePicker/DatePicker.d.ts +60 -0
  354. package/lib/typescript/module/components/base/DatePicker/DatePicker.d.ts.map +1 -0
  355. package/lib/typescript/module/components/base/DatePicker/index.d.ts +4 -0
  356. package/lib/typescript/module/components/base/DatePicker/index.d.ts.map +1 -0
  357. package/lib/typescript/module/components/base/HeaderArrows/HeaderArrows.d.ts +16 -0
  358. package/lib/typescript/module/components/base/HeaderArrows/HeaderArrows.d.ts.map +1 -0
  359. package/lib/typescript/module/components/base/HeaderArrows/index.d.ts +3 -0
  360. package/lib/typescript/module/components/base/HeaderArrows/index.d.ts.map +1 -0
  361. package/lib/typescript/module/components/buttons/FicButton/FicButton.d.ts +5 -0
  362. package/lib/typescript/module/components/buttons/FicButton/FicButton.d.ts.map +1 -0
  363. package/lib/typescript/module/components/buttons/FicButton/FicButton.types.d.ts +91 -0
  364. package/lib/typescript/module/components/buttons/FicButton/FicButton.types.d.ts.map +1 -0
  365. package/lib/typescript/module/components/buttons/FicButton/FicButtonIcon.d.ts +5 -0
  366. package/lib/typescript/module/components/buttons/FicButton/FicButtonIcon.d.ts.map +1 -0
  367. package/lib/typescript/module/components/buttons/FicButton/FicButtonPrimary.d.ts +5 -0
  368. package/lib/typescript/module/components/buttons/FicButton/FicButtonPrimary.d.ts.map +1 -0
  369. package/lib/typescript/module/components/buttons/FicButton/FicButtonSecondary.d.ts +5 -0
  370. package/lib/typescript/module/components/buttons/FicButton/FicButtonSecondary.d.ts.map +1 -0
  371. package/lib/typescript/module/components/buttons/FicButton/FicButtonTertiary.d.ts +5 -0
  372. package/lib/typescript/module/components/buttons/FicButton/FicButtonTertiary.d.ts.map +1 -0
  373. package/lib/typescript/module/components/buttons/FicButton/Icon.stories.d.ts +22 -0
  374. package/lib/typescript/module/components/buttons/FicButton/Icon.stories.d.ts.map +1 -0
  375. package/lib/typescript/module/components/buttons/FicButton/Primary.stories.d.ts +33 -0
  376. package/lib/typescript/module/components/buttons/FicButton/Primary.stories.d.ts.map +1 -0
  377. package/lib/typescript/module/components/buttons/FicButton/Secondary.stories.d.ts +20 -0
  378. package/lib/typescript/module/components/buttons/FicButton/Secondary.stories.d.ts.map +1 -0
  379. package/lib/typescript/module/components/buttons/FicButton/Tertiary.stories.d.ts +21 -0
  380. package/lib/typescript/module/components/buttons/FicButton/Tertiary.stories.d.ts.map +1 -0
  381. package/lib/typescript/module/components/buttons/FicButton/constants.d.ts +13 -0
  382. package/lib/typescript/module/components/buttons/FicButton/constants.d.ts.map +1 -0
  383. package/lib/typescript/module/components/buttons/FicButton/index.d.ts +5 -0
  384. package/lib/typescript/module/components/buttons/FicButton/index.d.ts.map +1 -0
  385. package/lib/typescript/module/components/buttons/FicButton/themes/dark.d.ts +4 -0
  386. package/lib/typescript/module/components/buttons/FicButton/themes/dark.d.ts.map +1 -0
  387. package/lib/typescript/module/components/buttons/FicButton/themes/index.d.ts +4 -0
  388. package/lib/typescript/module/components/buttons/FicButton/themes/index.d.ts.map +1 -0
  389. package/lib/typescript/module/components/buttons/FicButton/themes/light.d.ts +4 -0
  390. package/lib/typescript/module/components/buttons/FicButton/themes/light.d.ts.map +1 -0
  391. package/lib/typescript/module/components/buttons/FicButtonGroup/ButtonGroup.stories.d.ts +37 -0
  392. package/lib/typescript/module/components/buttons/FicButtonGroup/ButtonGroup.stories.d.ts.map +1 -0
  393. package/lib/typescript/module/components/buttons/FicButtonGroup/FicButtonGroup.d.ts +5 -0
  394. package/lib/typescript/module/components/buttons/FicButtonGroup/FicButtonGroup.d.ts.map +1 -0
  395. package/lib/typescript/module/components/buttons/FicButtonGroup/FicButtonGroup.types.d.ts +10 -0
  396. package/lib/typescript/module/components/buttons/FicButtonGroup/FicButtonGroup.types.d.ts.map +1 -0
  397. package/lib/typescript/module/components/buttons/FicButtonGroup/index.d.ts +3 -0
  398. package/lib/typescript/module/components/buttons/FicButtonGroup/index.d.ts.map +1 -0
  399. package/lib/typescript/module/components/notifications/Banner/Banner.d.ts +5 -0
  400. package/lib/typescript/module/components/notifications/Banner/Banner.d.ts.map +1 -0
  401. package/lib/typescript/module/components/notifications/Banner/Banner.types.d.ts +44 -0
  402. package/lib/typescript/module/components/notifications/Banner/Banner.types.d.ts.map +1 -0
  403. package/lib/typescript/module/components/notifications/Banner/index.d.ts +3 -0
  404. package/lib/typescript/module/components/notifications/Banner/index.d.ts.map +1 -0
  405. package/lib/typescript/module/components/notifications/Banner/themes/dark.d.ts +4 -0
  406. package/lib/typescript/module/components/notifications/Banner/themes/dark.d.ts.map +1 -0
  407. package/lib/typescript/module/components/notifications/Banner/themes/index.d.ts +4 -0
  408. package/lib/typescript/module/components/notifications/Banner/themes/index.d.ts.map +1 -0
  409. package/lib/typescript/module/components/notifications/Banner/themes/light.d.ts +4 -0
  410. package/lib/typescript/module/components/notifications/Banner/themes/light.d.ts.map +1 -0
  411. package/lib/typescript/module/components/typographies/Body/Body.d.ts +12 -0
  412. package/lib/typescript/module/components/typographies/Body/Body.d.ts.map +1 -0
  413. package/lib/typescript/module/components/typographies/Body/index.d.ts +3 -0
  414. package/lib/typescript/module/components/typographies/Body/index.d.ts.map +1 -0
  415. package/lib/typescript/module/components/typographies/ButtonTitle/ButtonTitle.d.ts +10 -0
  416. package/lib/typescript/module/components/typographies/ButtonTitle/ButtonTitle.d.ts.map +1 -0
  417. package/lib/typescript/module/components/typographies/ButtonTitle/index.d.ts +3 -0
  418. package/lib/typescript/module/components/typographies/ButtonTitle/index.d.ts.map +1 -0
  419. package/lib/typescript/module/components/typographies/Callout/Callout.d.ts +12 -0
  420. package/lib/typescript/module/components/typographies/Callout/Callout.d.ts.map +1 -0
  421. package/lib/typescript/module/components/typographies/Callout/index.d.ts +3 -0
  422. package/lib/typescript/module/components/typographies/Callout/index.d.ts.map +1 -0
  423. package/lib/typescript/module/components/typographies/CaptionOne/CaptionOne.d.ts +12 -0
  424. package/lib/typescript/module/components/typographies/CaptionOne/CaptionOne.d.ts.map +1 -0
  425. package/lib/typescript/module/components/typographies/CaptionOne/index.d.ts +3 -0
  426. package/lib/typescript/module/components/typographies/CaptionOne/index.d.ts.map +1 -0
  427. package/lib/typescript/module/components/typographies/CaptionTwo/CaptionTwo.d.ts +12 -0
  428. package/lib/typescript/module/components/typographies/CaptionTwo/CaptionTwo.d.ts.map +1 -0
  429. package/lib/typescript/module/components/typographies/CaptionTwo/index.d.ts +3 -0
  430. package/lib/typescript/module/components/typographies/CaptionTwo/index.d.ts.map +1 -0
  431. package/lib/typescript/module/components/typographies/Footnote/Footnote.d.ts +12 -0
  432. package/lib/typescript/module/components/typographies/Footnote/Footnote.d.ts.map +1 -0
  433. package/lib/typescript/module/components/typographies/Footnote/index.d.ts +3 -0
  434. package/lib/typescript/module/components/typographies/Footnote/index.d.ts.map +1 -0
  435. package/lib/typescript/module/components/typographies/Headline/Headline.d.ts +12 -0
  436. package/lib/typescript/module/components/typographies/Headline/Headline.d.ts.map +1 -0
  437. package/lib/typescript/module/components/typographies/Headline/index.d.ts +3 -0
  438. package/lib/typescript/module/components/typographies/Headline/index.d.ts.map +1 -0
  439. package/lib/typescript/module/components/typographies/LargeTitle/LargeTitle.d.ts +12 -0
  440. package/lib/typescript/module/components/typographies/LargeTitle/LargeTitle.d.ts.map +1 -0
  441. package/lib/typescript/module/components/typographies/LargeTitle/index.d.ts +3 -0
  442. package/lib/typescript/module/components/typographies/LargeTitle/index.d.ts.map +1 -0
  443. package/lib/typescript/module/components/typographies/Subhead/Subhead.d.ts +12 -0
  444. package/lib/typescript/module/components/typographies/Subhead/Subhead.d.ts.map +1 -0
  445. package/lib/typescript/module/components/typographies/Subhead/index.d.ts +3 -0
  446. package/lib/typescript/module/components/typographies/Subhead/index.d.ts.map +1 -0
  447. package/lib/typescript/module/components/typographies/TitleOne/TitleOne.d.ts +12 -0
  448. package/lib/typescript/module/components/typographies/TitleOne/TitleOne.d.ts.map +1 -0
  449. package/lib/typescript/module/components/typographies/TitleOne/index.d.ts +3 -0
  450. package/lib/typescript/module/components/typographies/TitleOne/index.d.ts.map +1 -0
  451. package/lib/typescript/module/components/typographies/TitleThree/TitleThree.d.ts +12 -0
  452. package/lib/typescript/module/components/typographies/TitleThree/TitleThree.d.ts.map +1 -0
  453. package/lib/typescript/module/components/typographies/TitleThree/index.d.ts +3 -0
  454. package/lib/typescript/module/components/typographies/TitleThree/index.d.ts.map +1 -0
  455. package/lib/typescript/module/components/typographies/TitleTwo/TitleTwo.d.ts +12 -0
  456. package/lib/typescript/module/components/typographies/TitleTwo/TitleTwo.d.ts.map +1 -0
  457. package/lib/typescript/module/components/typographies/TitleTwo/index.d.ts +3 -0
  458. package/lib/typescript/module/components/typographies/TitleTwo/index.d.ts.map +1 -0
  459. package/lib/typescript/module/components/typographies/font.d.ts +9 -0
  460. package/lib/typescript/module/components/typographies/font.d.ts.map +1 -0
  461. package/lib/typescript/module/hooks/useTheme.d.ts +3 -0
  462. package/lib/typescript/module/hooks/useTheme.d.ts.map +1 -0
  463. package/lib/typescript/module/index.d.ts +32 -0
  464. package/lib/typescript/module/index.d.ts.map +1 -0
  465. package/lib/typescript/module/package.json +1 -0
  466. package/lib/typescript/module/providers/DesignSystemProvider/DesignSystemProvider.d.ts +10 -0
  467. package/lib/typescript/module/providers/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -0
  468. package/lib/typescript/module/providers/DesignSystemProvider/index.d.ts +3 -0
  469. package/lib/typescript/module/providers/DesignSystemProvider/index.d.ts.map +1 -0
  470. package/lib/typescript/module/providers/IconProvider/IconProvider.d.ts +21 -0
  471. package/lib/typescript/module/providers/IconProvider/IconProvider.d.ts.map +1 -0
  472. package/lib/typescript/module/providers/IconProvider/index.d.ts +4 -0
  473. package/lib/typescript/module/providers/IconProvider/index.d.ts.map +1 -0
  474. package/lib/typescript/module/providers/ThemeProvider/ThemeProvider.d.ts +9 -0
  475. package/lib/typescript/module/providers/ThemeProvider/ThemeProvider.d.ts.map +1 -0
  476. package/lib/typescript/module/styles/calendarTheme.d.ts +24 -0
  477. package/lib/typescript/module/styles/calendarTheme.d.ts.map +1 -0
  478. package/lib/typescript/module/styles/colors.d.ts +100 -0
  479. package/lib/typescript/module/styles/colors.d.ts.map +1 -0
  480. package/lib/typescript/module/styles/globalStyles.d.ts +33 -0
  481. package/lib/typescript/module/styles/globalStyles.d.ts.map +1 -0
  482. package/lib/typescript/module/styles/space.d.ts +19 -0
  483. package/lib/typescript/module/styles/space.d.ts.map +1 -0
  484. package/lib/typescript/module/styles/theme.d.ts +185 -0
  485. package/lib/typescript/module/styles/theme.d.ts.map +1 -0
  486. package/lib/typescript/module/utils/locale.d.ts +15 -0
  487. package/lib/typescript/module/utils/locale.d.ts.map +1 -0
  488. package/package.json +4 -2
  489. package/src/components/buttons/FicButton/FicButton.tsx +17 -25
  490. package/src/components/buttons/FicButton/FicButton.types.ts +35 -7
  491. package/src/components/buttons/FicButton/FicButtonIcon.tsx +50 -45
  492. package/src/components/buttons/FicButton/FicButtonPrimary.tsx +13 -1
  493. package/src/components/buttons/FicButton/FicButtonTertiary.tsx +76 -66
  494. package/src/components/buttons/FicButton/themes/dark.ts +77 -77
  495. package/src/components/buttons/FicButton/themes/index.ts +2 -1
  496. package/src/components/buttons/FicButton/themes/light.ts +77 -77
  497. package/src/components/buttons/FicButtonGroup/FicButtonGroup.tsx +32 -11
  498. package/src/components/notifications/Banner/Banner.tsx +22 -16
  499. package/src/components/notifications/Banner/Banner.types.ts +9 -21
  500. package/src/index.tsx +2 -0
  501. package/src/styles/colors.ts +1 -1
  502. package/src/styles/theme.ts +6 -0
  503. package/lib/typescript/components/Tag/Tag.d.ts.map +0 -1
  504. package/lib/typescript/components/Tag/index.d.ts.map +0 -1
  505. package/lib/typescript/components/Touchable/Touchable.d.ts.map +0 -1
  506. package/lib/typescript/components/Touchable/index.d.ts.map +0 -1
  507. package/lib/typescript/components/base/DatePicker/DatePicker.d.ts.map +0 -1
  508. package/lib/typescript/components/base/DatePicker/index.d.ts.map +0 -1
  509. package/lib/typescript/components/base/HeaderArrows/HeaderArrows.d.ts.map +0 -1
  510. package/lib/typescript/components/base/HeaderArrows/index.d.ts.map +0 -1
  511. package/lib/typescript/components/buttons/FicButton/FicButton.d.ts.map +0 -1
  512. package/lib/typescript/components/buttons/FicButton/FicButton.types.d.ts.map +0 -1
  513. package/lib/typescript/components/buttons/FicButton/FicButtonIcon.d.ts.map +0 -1
  514. package/lib/typescript/components/buttons/FicButton/FicButtonPrimary.d.ts.map +0 -1
  515. package/lib/typescript/components/buttons/FicButton/FicButtonSecondary.d.ts.map +0 -1
  516. package/lib/typescript/components/buttons/FicButton/FicButtonTertiary.d.ts.map +0 -1
  517. package/lib/typescript/components/buttons/FicButton/constants.d.ts.map +0 -1
  518. package/lib/typescript/components/buttons/FicButton/index.d.ts.map +0 -1
  519. package/lib/typescript/components/buttons/FicButton/themes/dark.d.ts.map +0 -1
  520. package/lib/typescript/components/buttons/FicButton/themes/index.d.ts +0 -3
  521. package/lib/typescript/components/buttons/FicButton/themes/index.d.ts.map +0 -1
  522. package/lib/typescript/components/buttons/FicButton/themes/light.d.ts.map +0 -1
  523. package/lib/typescript/components/buttons/FicButtonGroup/FicButtonGroup.d.ts.map +0 -1
  524. package/lib/typescript/components/buttons/FicButtonGroup/FicButtonGroup.types.d.ts.map +0 -1
  525. package/lib/typescript/components/buttons/FicButtonGroup/index.d.ts.map +0 -1
  526. package/lib/typescript/components/notifications/Banner/Banner.d.ts.map +0 -1
  527. package/lib/typescript/components/notifications/Banner/Banner.types.d.ts.map +0 -1
  528. package/lib/typescript/components/notifications/Banner/index.d.ts.map +0 -1
  529. package/lib/typescript/components/notifications/Banner/themes/dark.d.ts.map +0 -1
  530. package/lib/typescript/components/notifications/Banner/themes/index.d.ts.map +0 -1
  531. package/lib/typescript/components/notifications/Banner/themes/light.d.ts.map +0 -1
  532. package/lib/typescript/components/typographies/Body/Body.d.ts.map +0 -1
  533. package/lib/typescript/components/typographies/Body/index.d.ts.map +0 -1
  534. package/lib/typescript/components/typographies/ButtonTitle/ButtonTitle.d.ts.map +0 -1
  535. package/lib/typescript/components/typographies/ButtonTitle/index.d.ts.map +0 -1
  536. package/lib/typescript/components/typographies/Callout/Callout.d.ts.map +0 -1
  537. package/lib/typescript/components/typographies/Callout/index.d.ts.map +0 -1
  538. package/lib/typescript/components/typographies/CaptionOne/CaptionOne.d.ts.map +0 -1
  539. package/lib/typescript/components/typographies/CaptionOne/index.d.ts.map +0 -1
  540. package/lib/typescript/components/typographies/CaptionTwo/CaptionTwo.d.ts.map +0 -1
  541. package/lib/typescript/components/typographies/CaptionTwo/index.d.ts.map +0 -1
  542. package/lib/typescript/components/typographies/Footnote/Footnote.d.ts.map +0 -1
  543. package/lib/typescript/components/typographies/Footnote/index.d.ts.map +0 -1
  544. package/lib/typescript/components/typographies/Headline/Headline.d.ts.map +0 -1
  545. package/lib/typescript/components/typographies/Headline/index.d.ts.map +0 -1
  546. package/lib/typescript/components/typographies/LargeTitle/LargeTitle.d.ts.map +0 -1
  547. package/lib/typescript/components/typographies/LargeTitle/index.d.ts.map +0 -1
  548. package/lib/typescript/components/typographies/Subhead/Subhead.d.ts.map +0 -1
  549. package/lib/typescript/components/typographies/Subhead/index.d.ts.map +0 -1
  550. package/lib/typescript/components/typographies/TitleOne/TitleOne.d.ts.map +0 -1
  551. package/lib/typescript/components/typographies/TitleOne/index.d.ts.map +0 -1
  552. package/lib/typescript/components/typographies/TitleThree/TitleThree.d.ts.map +0 -1
  553. package/lib/typescript/components/typographies/TitleThree/index.d.ts.map +0 -1
  554. package/lib/typescript/components/typographies/TitleTwo/TitleTwo.d.ts.map +0 -1
  555. package/lib/typescript/components/typographies/TitleTwo/index.d.ts.map +0 -1
  556. package/lib/typescript/components/typographies/font.d.ts.map +0 -1
  557. package/lib/typescript/hooks/useTheme.d.ts.map +0 -1
  558. package/lib/typescript/index.d.ts.map +0 -1
  559. package/lib/typescript/providers/DesignSystemProvider/DesignSystemProvider.d.ts.map +0 -1
  560. package/lib/typescript/providers/DesignSystemProvider/index.d.ts.map +0 -1
  561. package/lib/typescript/providers/IconProvider/IconProvider.d.ts.map +0 -1
  562. package/lib/typescript/providers/IconProvider/index.d.ts.map +0 -1
  563. package/lib/typescript/providers/ThemeProvider/ThemeProvider.d.ts.map +0 -1
  564. package/lib/typescript/styles/calendarTheme.d.ts.map +0 -1
  565. package/lib/typescript/styles/colors.d.ts.map +0 -1
  566. package/lib/typescript/styles/globalStyles.d.ts.map +0 -1
  567. package/lib/typescript/styles/space.d.ts.map +0 -1
  568. package/lib/typescript/styles/theme.d.ts.map +0 -1
  569. package/lib/typescript/utils/locale.d.ts.map +0 -1
  570. /package/lib/typescript/{components → commonjs/components}/Tag/Tag.d.ts +0 -0
  571. /package/lib/typescript/{components → commonjs/components}/Tag/index.d.ts +0 -0
  572. /package/lib/typescript/{components → commonjs/components}/Touchable/Touchable.d.ts +0 -0
  573. /package/lib/typescript/{components → commonjs/components}/Touchable/index.d.ts +0 -0
  574. /package/lib/typescript/{components → commonjs/components}/base/DatePicker/index.d.ts +0 -0
  575. /package/lib/typescript/{components → commonjs/components}/base/HeaderArrows/HeaderArrows.d.ts +0 -0
  576. /package/lib/typescript/{components → commonjs/components}/base/HeaderArrows/index.d.ts +0 -0
  577. /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/FicButton.d.ts +0 -0
  578. /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/FicButtonIcon.d.ts +0 -0
  579. /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/FicButtonPrimary.d.ts +0 -0
  580. /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/FicButtonSecondary.d.ts +0 -0
  581. /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/FicButtonTertiary.d.ts +0 -0
  582. /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/constants.d.ts +0 -0
  583. /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/index.d.ts +0 -0
  584. /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/themes/dark.d.ts +0 -0
  585. /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/themes/light.d.ts +0 -0
  586. /package/lib/typescript/{components → commonjs/components}/buttons/FicButtonGroup/FicButtonGroup.d.ts +0 -0
  587. /package/lib/typescript/{components → commonjs/components}/buttons/FicButtonGroup/FicButtonGroup.types.d.ts +0 -0
  588. /package/lib/typescript/{components → commonjs/components}/buttons/FicButtonGroup/index.d.ts +0 -0
  589. /package/lib/typescript/{components → commonjs/components}/notifications/Banner/Banner.d.ts +0 -0
  590. /package/lib/typescript/{components → commonjs/components}/notifications/Banner/index.d.ts +0 -0
  591. /package/lib/typescript/{components → commonjs/components}/notifications/Banner/themes/dark.d.ts +0 -0
  592. /package/lib/typescript/{components → commonjs/components}/notifications/Banner/themes/index.d.ts +0 -0
  593. /package/lib/typescript/{components → commonjs/components}/notifications/Banner/themes/light.d.ts +0 -0
  594. /package/lib/typescript/{components → commonjs/components}/typographies/Body/Body.d.ts +0 -0
  595. /package/lib/typescript/{components → commonjs/components}/typographies/Body/index.d.ts +0 -0
  596. /package/lib/typescript/{components → commonjs/components}/typographies/ButtonTitle/ButtonTitle.d.ts +0 -0
  597. /package/lib/typescript/{components → commonjs/components}/typographies/ButtonTitle/index.d.ts +0 -0
  598. /package/lib/typescript/{components → commonjs/components}/typographies/Callout/Callout.d.ts +0 -0
  599. /package/lib/typescript/{components → commonjs/components}/typographies/Callout/index.d.ts +0 -0
  600. /package/lib/typescript/{components → commonjs/components}/typographies/CaptionOne/CaptionOne.d.ts +0 -0
  601. /package/lib/typescript/{components → commonjs/components}/typographies/CaptionOne/index.d.ts +0 -0
  602. /package/lib/typescript/{components → commonjs/components}/typographies/CaptionTwo/CaptionTwo.d.ts +0 -0
  603. /package/lib/typescript/{components → commonjs/components}/typographies/CaptionTwo/index.d.ts +0 -0
  604. /package/lib/typescript/{components → commonjs/components}/typographies/Footnote/Footnote.d.ts +0 -0
  605. /package/lib/typescript/{components → commonjs/components}/typographies/Footnote/index.d.ts +0 -0
  606. /package/lib/typescript/{components → commonjs/components}/typographies/Headline/Headline.d.ts +0 -0
  607. /package/lib/typescript/{components → commonjs/components}/typographies/Headline/index.d.ts +0 -0
  608. /package/lib/typescript/{components → commonjs/components}/typographies/LargeTitle/LargeTitle.d.ts +0 -0
  609. /package/lib/typescript/{components → commonjs/components}/typographies/LargeTitle/index.d.ts +0 -0
  610. /package/lib/typescript/{components → commonjs/components}/typographies/Subhead/Subhead.d.ts +0 -0
  611. /package/lib/typescript/{components → commonjs/components}/typographies/Subhead/index.d.ts +0 -0
  612. /package/lib/typescript/{components → commonjs/components}/typographies/TitleOne/TitleOne.d.ts +0 -0
  613. /package/lib/typescript/{components → commonjs/components}/typographies/TitleOne/index.d.ts +0 -0
  614. /package/lib/typescript/{components → commonjs/components}/typographies/TitleThree/TitleThree.d.ts +0 -0
  615. /package/lib/typescript/{components → commonjs/components}/typographies/TitleThree/index.d.ts +0 -0
  616. /package/lib/typescript/{components → commonjs/components}/typographies/TitleTwo/TitleTwo.d.ts +0 -0
  617. /package/lib/typescript/{components → commonjs/components}/typographies/TitleTwo/index.d.ts +0 -0
  618. /package/lib/typescript/{hooks → commonjs/hooks}/useTheme.d.ts +0 -0
  619. /package/lib/typescript/{providers → commonjs/providers}/DesignSystemProvider/DesignSystemProvider.d.ts +0 -0
  620. /package/lib/typescript/{providers → commonjs/providers}/DesignSystemProvider/index.d.ts +0 -0
  621. /package/lib/typescript/{providers → commonjs/providers}/IconProvider/IconProvider.d.ts +0 -0
  622. /package/lib/typescript/{providers → commonjs/providers}/IconProvider/index.d.ts +0 -0
  623. /package/lib/typescript/{providers → commonjs/providers}/ThemeProvider/ThemeProvider.d.ts +0 -0
  624. /package/lib/typescript/{styles → commonjs/styles}/calendarTheme.d.ts +0 -0
  625. /package/lib/typescript/{styles → commonjs/styles}/colors.d.ts +0 -0
  626. /package/lib/typescript/{styles → commonjs/styles}/globalStyles.d.ts +0 -0
  627. /package/lib/typescript/{styles → commonjs/styles}/space.d.ts +0 -0
  628. /package/lib/typescript/{utils → commonjs/utils}/locale.d.ts +0 -0
@@ -8,15 +8,16 @@ var _react = _interopRequireWildcard(require("react"));
8
8
  var React = _react;
9
9
  var _reactNative = require("react-native");
10
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");
11
+ var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
12
+ var _useTheme = require("../../../hooks/useTheme.js");
13
+ var _index = require("../../../providers/IconProvider/index.js");
14
+ var _constants = require("./constants.js");
15
+ var _jsxRuntime = require("react/jsx-runtime");
14
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); }
15
- // @ts-ignore TS6133
16
-
17
17
  const FicButtonIcon = ({
18
18
  iconName,
19
19
  iconSize: _iconSize,
20
+ iconCustomColor,
20
21
  disabled,
21
22
  error,
22
23
  onPress,
@@ -36,22 +37,20 @@ const FicButtonIcon = ({
36
37
  const {
37
38
  ficButton: theme
38
39
  } = (0, _useTheme.useTheme)() || {};
39
- const buttonTheme = (theme === null || theme === void 0 ? void 0 : theme['icon']) || {};
40
+ const buttonTheme = theme?.['icon'] || {};
40
41
  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]);
42
+ const pressedOpacity = (0, _reactNativeReanimated.useSharedValue)(0);
43
+ const pressedAreaSize = customPressedIconAreaSize ? customPressedIconAreaSize : iconSize + INCREMENT_PRESSED_AREA_SIZE;
44
+ const pressableAreaStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
45
+ position: 'absolute',
46
+ top: (pressedAreaSize - iconSize) / 2 * -1,
47
+ left: (pressedAreaSize - iconSize) / 2 * -1,
48
+ width: pressedAreaSize ?? iconSize,
49
+ height: pressedAreaSize ?? iconSize,
50
+ borderRadius: pressedAreaSize / 6,
51
+ opacity: pressedOpacity.value,
52
+ ...themeProps?.pressedStyle?.container
53
+ }));
55
54
  const iconStyle = (0, _react.useMemo)(() => ({
56
55
  textAlign: 'center',
57
56
  lineHeight: iconSize,
@@ -60,20 +59,27 @@ const FicButtonIcon = ({
60
59
  fontSize: iconSize ? iconSize === 16 ? iconSize - 2 : iconSize - 4 : _constants.DEFAULT_ICON_SIZE
61
60
  }), [iconSize]);
62
61
  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 => {
62
+ if (iconCustomColor) return iconCustomColor;
63
+ if (error) return themeProps?.icon.color;
64
+ if (colorContrastForLightTheme && themeProps?.icon?.colorContrastForLightTheme) return themeProps?.icon.colorContrastForLightTheme;
65
+ return themeProps?.icon.color;
66
+ }, [colorContrastForLightTheme, error, themeProps, iconCustomColor]);
67
+ const handleOnPressIn = (0, _react.useCallback)(e => {
68
+ pressedOpacity.value = (0, _reactNativeReanimated.withTiming)(1, {
69
+ duration: 50
70
+ });
66
71
  if (onPressIn) onPressIn(e);
67
- setIsPressed(true);
68
- };
69
- const handleOnPressOut = e => {
72
+ }, [pressedOpacity, onPressIn]);
73
+ const handleOnPressOut = (0, _react.useCallback)(e => {
74
+ pressedOpacity.value = (0, _reactNativeReanimated.withTiming)(0, {
75
+ duration: 50
76
+ });
70
77
  if (onPressOut) onPressOut(e);
71
- setIsPressed(false);
72
- };
78
+ }, [pressedOpacity, onPressOut]);
73
79
  const handleOnPress = e => {
74
80
  if (onPress) onPress(e);
75
81
  };
76
- const FicIcon = (0, _react.useCallback)(() => /*#__PURE__*/React.createElement(_IconProvider.Icon, {
82
+ const FicIcon = (0, _react.useCallback)(() => /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Icon, {
77
83
  name: iconName ?? _constants.DEFAULT_ICON,
78
84
  solid: solid,
79
85
  light: light,
@@ -83,22 +89,24 @@ const FicButtonIcon = ({
83
89
  color: iconColor,
84
90
  style: iconStyle
85
91
  }), [iconName, iconSize, colorContrastForLightTheme, error, iconStyle, themeProps, solid, light, regular, duotone]);
86
- return /*#__PURE__*/React.createElement(_reactNative.View, {
92
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
87
93
  style: {
88
94
  width: _iconSize,
89
95
  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()));
96
+ },
97
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
98
+ style: pressableAreaStyle
99
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(Pressable, {
100
+ style: [themeProps?.container, containerStyle],
101
+ onPress: handleOnPress,
102
+ onPressIn: handleOnPressIn,
103
+ onPressOut: handleOnPressOut,
104
+ hitSlop: _constants.HIT_SLOP,
105
+ disabled: disabled,
106
+ underlayColor: 'transparent',
107
+ children: FicIcon()
108
+ })]
109
+ });
102
110
  };
103
111
  var _default = exports.default = FicButtonIcon;
104
112
  //# sourceMappingURL=FicButtonIcon.js.map
@@ -1 +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,OAAA;AAAwE,SAAAD,wBAAAQ,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAV,uBAAA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ACHC,IAAI,EAAExD,QAAQ,IAAIyD,uBAAa;IAC/B9C,KAAK,EAAEA,KAAM;IACbC,KAAK,EAAEA,KAAM;IACbC,OAAO,EAAEA,OAAQ;IACjBC,OAAO,EAAEA,OAAQ;IACjB4C,IAAI,EAAEzD,QAAS;IACf+C,KAAK,EAAEF,SAAU;IACjBa,KAAK,EAAEjB;EAAU,CAClB,CACF,EACD,CACE1C,QAAQ,EACRC,QAAQ,EACRS,0BAA0B,EAC1BN,KAAK,EACLsC,SAAS,EACThB,UAAU,EACVf,KAAK,EACLC,KAAK,EACLE,OAAO,EACPD,OAAO,CAEX,CAAC;EAED,oBACEvC,KAAA,CAAAgF,aAAA,CAAC/E,YAAA,CAAAqF,IAAI;IAACD,KAAK,EAAE;MAAEtB,KAAK,EAAEnC,SAAS;MAAEoC,MAAM,EAAEpC;IAAU;EAAE,GAClDyB,SAAS,gBAAGrD,KAAA,CAAAgF,aAAA,CAAC/E,YAAA,CAAAqF,IAAI;IAACD,KAAK,EAAE,CAAC3B,kBAAkB;EAAE,CAAE,CAAC,GAAG,IAAI,eACzD1D,KAAA,CAAAgF,aAAA,CAACvC,SAAS;IACR4C,KAAK,EAAE,CAACjC,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAEe,SAAS,EAAEjC,cAAc,CAAE;IAC/CH,OAAO,EAAE8C,aAAc;IACvB7C,SAAS,EAAE2C,eAAgB;IAC3B1C,UAAU,EAAE2C,gBAAiB;IAC7BW,OAAO,EAAEC,mBAAS;IAClB3D,QAAQ,EAAEA,QAAS;IACnB4D,aAAa,EAAE;EAAc,GAE5BX,OAAO,CAAC,CACA,CACP,CAAC;AAEX,CAAC;AAAC,IAAAY,QAAA,GAAAC,OAAA,CAAA3E,OAAA,GAEaS,aAAa","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","React","_reactNative","_reactNativeGestureHandler","_reactNativeReanimated","_useTheme","_index","_constants","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","FicButtonIcon","iconName","iconSize","_iconSize","iconCustomColor","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","pressedOpacity","useSharedValue","pressedAreaSize","pressableAreaStyle","useAnimatedStyle","position","top","left","width","height","borderRadius","opacity","value","pressedStyle","container","iconStyle","useMemo","textAlign","lineHeight","fontSize","iconColor","icon","color","handleOnPressIn","useCallback","withTiming","duration","handleOnPressOut","handleOnPress","FicIcon","jsx","Icon","name","DEFAULT_ICON","size","style","jsxs","View","children","hitSlop","HIT_SLOP","underlayColor","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/buttons/FicButton/FicButtonIcon.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,IAAAC,KAAA,GAAAH,MAAA;AAE/B,IAAAI,YAAA,GAAAF,OAAA;AAOA,IAAAG,0BAAA,GAAAH,OAAA;AACA,IAAAI,sBAAA,GAAAL,uBAAA,CAAAC,OAAA;AAKA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AAMA,IAAAO,UAAA,GAAAP,OAAA;AAAwE,IAAAQ,WAAA,GAAAR,OAAA;AAAA,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,E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,EAAE7D,QAAS;IACfiD,KAAK,EAAEF,SAAU;IACjBe,KAAK,EAAEpB;EAAU,CAClB,CACF,EACD,CACE3C,QAAQ,EACRC,QAAQ,EACRU,0BAA0B,EAC1BN,KAAK,EACLsC,SAAS,EACThB,UAAU,EACVf,KAAK,EACLC,KAAK,EACLE,OAAO,EACPD,OAAO,CAEX,CAAC;EAED,oBACE,IAAAnC,WAAA,CAAAqF,IAAA,EAAC3F,YAAA,CAAA4F,IAAI;IAACF,KAAK,EAAE;MAAE3B,KAAK,EAAElC,SAAS;MAAEmC,MAAM,EAAEnC;IAAU,CAAE;IAAAgE,QAAA,gBACnD,IAAAvF,WAAA,CAAA+E,GAAA,EAACnF,sBAAA,CAAAe,OAAQ,CAAC2E,IAAI;MAACF,KAAK,EAAEhC;IAAmB,CAAE,CAAC,eAC5C,IAAApD,WAAA,CAAA+E,GAAA,EAAC1C,SAAS;MACR+C,KAAK,EAAE,CAACpC,UAAU,EAAEe,SAAS,EAAEjC,cAAc,CAAE;MAC/CH,OAAO,EAAEkD,aAAc;MACvBjD,SAAS,EAAE4C,eAAgB;MAC3B3C,UAAU,EAAE+C,gBAAiB;MAC7BY,OAAO,EAAEC,mBAAS;MAClBhE,QAAQ,EAAEA,QAAS;MACnBiE,aAAa,EAAE,aAAc;MAAAH,QAAA,EAE5BT,OAAO,CAAC;IAAC,CACD,CAAC;EAAA,CACR,CAAC;AAEX,CAAC;AAAC,IAAAa,QAAA,GAAAC,OAAA,CAAAjF,OAAA,GAEaS,aAAa","ignoreList":[]}
@@ -8,11 +8,12 @@ var _react = _interopRequireWildcard(require("react"));
8
8
  var React = _react;
9
9
  var _reactNative = require("react-native");
10
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");
11
+ var _useTheme = require("../../../hooks/useTheme.js");
12
+ var _index = require("../../../providers/IconProvider/index.js");
13
+ var _space = require("../../../styles/space.js");
14
+ var _index2 = require("../../typographies/Body/index.js");
15
+ var _constants = require("./constants.js");
16
+ var _jsxRuntime = require("react/jsx-runtime");
16
17
  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
18
  const FicButtonPrimary = ({
18
19
  title,
@@ -32,20 +33,16 @@ const FicButtonPrimary = ({
32
33
  duotone,
33
34
  containerStyle
34
35
  }) => {
35
- var _themeProps$pressedSt3;
36
36
  const {
37
37
  ficButton: theme
38
38
  } = (0, _useTheme.useTheme)() || {};
39
- const buttonTheme = (theme === null || theme === void 0 ? void 0 : theme['primary']) || {};
39
+ const buttonTheme = theme?.['primary'] || {};
40
40
  const themeProps = disabled ? buttonTheme.disabled : error ? buttonTheme.error : buttonTheme.default;
41
41
  const containerStyleObj = containerStyle ?? {};
42
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]);
43
+ const styleBasedOnPress = (0, _react.useMemo)(() => ({
44
+ ...(isPressed && !disabled ? themeProps?.pressedStyle?.container : themeProps?.container)
45
+ }), [disabled, themeProps, isPressed]);
49
46
  const ficPrimaryViewStyle = (0, _react.useMemo)(() => ({
50
47
  paddingHorizontal: _constants.BUTTON_INTERNAL_PADDING_HORIZONTAL,
51
48
  paddingVertical: small ? _space.PADDING.SM : _space.PADDING.LG,
@@ -54,14 +51,11 @@ const FicButtonPrimary = ({
54
51
  alignItems: 'center',
55
52
  justifyContent: 'center'
56
53
  }), [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]);
54
+ const bodyStyle = (0, _react.useMemo)(() => ({
55
+ marginLeft: iconPosition === 'left' ? _constants.ICON_HORIZONTAL_MARGIN : 0,
56
+ marginRight: iconPosition === 'right' ? _constants.ICON_HORIZONTAL_MARGIN : 0,
57
+ ...(isPressed && !disabled ? themeProps?.pressedStyle?.text : themeProps?.text)
58
+ }), [iconPosition, themeProps, disabled, isPressed]);
65
59
  const handleOnPressIn = e => {
66
60
  if (onPressIn) onPressIn(e);
67
61
  setIsPressed(true);
@@ -76,30 +70,31 @@ const FicButtonPrimary = ({
76
70
  }
77
71
  };
78
72
  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);
73
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
74
+ style: ficPrimaryViewStyle,
75
+ children: [iconPosition === 'left' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Icon, {
76
+ name: iconName || _constants.DEFAULT_ICON,
77
+ size: iconSize ?? _constants.DEFAULT_ICON_SIZE,
78
+ color: themeProps?.icon.color,
79
+ solid: solid,
80
+ regular: regular,
81
+ light: light,
82
+ duotone: duotone
83
+ }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Body, {
84
+ text: title ?? _constants.DEFAULT_TITLE,
85
+ style: bodyStyle
86
+ }), iconPosition === 'right' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Icon, {
87
+ name: iconName || _constants.DEFAULT_ICON,
88
+ size: iconSize ?? _constants.DEFAULT_ICON_SIZE,
89
+ color: themeProps?.icon.color,
90
+ solid: solid,
91
+ regular: regular,
92
+ light: light,
93
+ duotone: duotone
94
+ }) : null]
95
+ });
101
96
  }, [iconPosition, iconName, iconSize, bodyStyle, title, ficPrimaryViewStyle, themeProps, solid, regular, light, duotone]);
102
- return _reactNative.Platform.OS === 'android' ? /*#__PURE__*/React.createElement(_reactNativeGestureHandler.TouchableHighlight, {
97
+ return _reactNative.Platform.OS === 'android' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeGestureHandler.TouchableHighlight, {
103
98
  disabled: disabled,
104
99
  containerStyle: [containerStyleObj],
105
100
  style: [{
@@ -108,14 +103,16 @@ const FicButtonPrimary = ({
108
103
  onPress: handleOnPress,
109
104
  onPressIn: handleOnPressIn,
110
105
  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, {
106
+ underlayColor: themeProps?.pressedStyle?.container.backgroundColor,
107
+ children: FicPrimary()
108
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
113
109
  disabled: disabled,
114
110
  style: [styleBasedOnPress, containerStyleObj],
115
111
  onPress: handleOnPress,
116
112
  onPressIn: handleOnPressIn,
117
- onPressOut: handleOnPressOut
118
- }, FicPrimary());
113
+ onPressOut: handleOnPressOut,
114
+ children: FicPrimary()
115
+ });
119
116
  };
120
117
  var _default = exports.default = FicButtonPrimary;
121
118
  //# sourceMappingURL=FicButtonPrimary.js.map
@@ -1 +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,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,c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me","_index","_space","_index2","_constants","_jsxRuntime","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","ficButton","theme","useTheme","buttonTheme","themeProps","containerStyleObj","isPressed","setIsPressed","useState","styleBasedOnPress","useMemo","pressedStyle","container","ficPrimaryViewStyle","paddingHorizontal","BUTTON_INTERNAL_PADDING_HORIZONTAL","paddingVertical","PADDING","SM","LG","width","flexDirection","alignItems","justifyContent","bodyStyle","marginLeft","ICON_HORIZONTAL_MARGIN","marginRight","text","handleOnPressIn","handleOnPressOut","handleOnPress","FicPrimary","useCallback","jsxs","View","style","children","jsx","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,MAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AAMqB,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAD,wBAAAW,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAb,uBAAA,YAAAA,CAAAW,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA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 +8,12 @@ var _react = _interopRequireWildcard(require("react"));
8
8
  var React = _react;
9
9
  var _reactNative = require("react-native");
10
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");
11
+ var _useTheme = require("../../../hooks/useTheme.js");
12
+ var _index = require("../../../providers/IconProvider/index.js");
13
+ var _space = require("../../../styles/space.js");
14
+ var _index2 = require("../../typographies/Body/index.js");
15
+ var _constants = require("./constants.js");
16
+ var _jsxRuntime = require("react/jsx-runtime");
16
17
  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
18
  const FicButtonSecondary = ({
18
19
  title,
@@ -32,40 +33,30 @@ const FicButtonSecondary = ({
32
33
  duotone,
33
34
  containerStyle
34
35
  }) => {
35
- var _themeProps$pressedSt3;
36
36
  const {
37
37
  ficButton: theme
38
38
  } = (0, _useTheme.useTheme)() || {};
39
- const buttonTheme = (theme === null || theme === void 0 ? void 0 : theme['secondary']) || {};
39
+ const buttonTheme = theme?.['secondary'] || {};
40
40
  const themeProps = disabled ? buttonTheme.disabled : error ? buttonTheme.error : buttonTheme.default;
41
41
  const containerStyleObj = containerStyle ?? {};
42
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]);
43
+ const styleBasedOnPress = (0, _react.useMemo)(() => ({
44
+ ...(isPressed && !disabled ? themeProps?.pressedStyle?.container : themeProps?.container)
45
+ }), [themeProps, disabled, isPressed]);
46
+ const ficSecondaryViewStyle = (0, _react.useMemo)(() => ({
47
+ paddingHorizontal: _constants.BUTTON_INTERNAL_PADDING_HORIZONTAL,
48
+ width: fullWidth ? '100%' : 'auto',
49
+ // removing 1 borderWidth to match primary button height
50
+ paddingVertical: (small ? _space.PADDING.SM : _space.PADDING.LG) - (themeProps?.container?.borderWidth || 0),
51
+ flexDirection: 'row',
52
+ alignItems: 'center',
53
+ justifyContent: 'center'
54
+ }), [fullWidth, themeProps]);
55
+ const bodyStyle = (0, _react.useMemo)(() => ({
56
+ marginLeft: iconPosition === 'left' ? _constants.ICON_HORIZONTAL_MARGIN : 0,
57
+ marginRight: iconPosition === 'right' ? _constants.ICON_HORIZONTAL_MARGIN : 0,
58
+ ...(isPressed && !disabled ? themeProps?.pressedStyle?.text : themeProps?.text)
59
+ }), [themeProps, iconPosition, disabled, isPressed]);
69
60
  const handleOnPressIn = e => {
70
61
  if (onPressIn) onPressIn(e);
71
62
  setIsPressed(true);
@@ -78,30 +69,31 @@ const FicButtonSecondary = ({
78
69
  if (onPress) onPress(e);
79
70
  };
80
71
  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);
72
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
73
+ style: ficSecondaryViewStyle,
74
+ children: [iconPosition === 'left' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Icon, {
75
+ name: iconName || _constants.DEFAULT_ICON,
76
+ size: iconSize ?? _constants.DEFAULT_ICON_SIZE,
77
+ color: themeProps?.icon.color,
78
+ solid: solid,
79
+ regular: regular,
80
+ light: light,
81
+ duotone: duotone
82
+ }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Body, {
83
+ text: title ?? _constants.DEFAULT_TITLE,
84
+ style: bodyStyle
85
+ }), iconPosition === 'right' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Icon, {
86
+ name: iconName || _constants.DEFAULT_ICON,
87
+ size: iconSize ?? _constants.DEFAULT_ICON_SIZE,
88
+ color: themeProps?.icon.color,
89
+ solid: solid,
90
+ regular: regular,
91
+ light: light,
92
+ duotone: duotone
93
+ }) : null]
94
+ });
103
95
  }, [iconPosition, iconName, iconSize, bodyStyle, title]);
104
- return _reactNative.Platform.OS === 'android' ? /*#__PURE__*/React.createElement(_reactNativeGestureHandler.TouchableHighlight, {
96
+ return _reactNative.Platform.OS === 'android' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeGestureHandler.TouchableHighlight, {
105
97
  disabled: disabled,
106
98
  containerStyle: containerStyleObj,
107
99
  style: [{
@@ -110,14 +102,16 @@ const FicButtonSecondary = ({
110
102
  onPress: handleOnPress,
111
103
  onPressIn: handleOnPressIn,
112
104
  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, {
105
+ underlayColor: themeProps?.pressedStyle?.container.backgroundColor,
106
+ children: FicSecondary()
107
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
115
108
  style: [styleBasedOnPress, containerStyleObj],
116
109
  onPress: handleOnPress,
117
110
  onPressIn: handleOnPressIn,
118
111
  onPressOut: handleOnPressOut,
119
- disabled: disabled
120
- }, FicSecondary());
112
+ disabled: disabled,
113
+ children: FicSecondary()
114
+ });
121
115
  };
122
116
  var _default = exports.default = FicButtonSecondary;
123
117
  //# sourceMappingURL=FicButtonSecondary.js.map
@@ -1 +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,IAAAC,KAAA,GAAAH,MAAA;AAE/B,IAAAI,YAAA,GAAAF,OAAA;AASA,IAAAG,0BAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OA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AClCmC,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":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","React","_reactNative","_reactNativeGestureHandler","_useTheme","_index","_space","_index2","_constants","_jsxRuntime","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","ficButton","theme","useTheme","buttonTheme","themeProps","containerStyleObj","isPressed","setIsPressed","useState","styleBasedOnPress","useMemo","pressedStyle","container","ficSecondaryViewStyle","paddingHorizontal","BUTTON_INTERNAL_PADDING_HORIZONTAL","width","paddingVertical","PADDING","SM","LG","borderWidth","flexDirection","alignItems","justifyContent","bodyStyle","marginLeft","ICON_HORIZONTAL_MARGIN","marginRight","text","handleOnPressIn","handleOnPressOut","handleOnPress","FicSecondary","useCallback","jsxs","View","style","children","jsx","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,IAAAC,KAAA,GAAAH,MAAA;AAE/B,IAAAI,YAAA,GAAAF,OAAA;AASA,IAAAG,0BAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AAMqB,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAD,wBAAAW,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAb,uBAAA,YAAAA,CAAAW,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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