@fattureincloud-mobile/fic-mobile-ds 1.2.1 → 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 (622) 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 +48 -41
  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 +37 -35
  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 +7 -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 +51 -41
  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 +39 -35
  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 +6 -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/commonjs/components/buttons/FicButton/FicButton.types.d.ts.map +1 -0
  272. package/lib/typescript/commonjs/components/buttons/FicButton/FicButtonIcon.d.ts.map +1 -0
  273. package/lib/typescript/commonjs/components/buttons/FicButton/FicButtonPrimary.d.ts.map +1 -0
  274. package/lib/typescript/commonjs/components/buttons/FicButton/FicButtonSecondary.d.ts.map +1 -0
  275. package/lib/typescript/commonjs/components/buttons/FicButton/FicButtonTertiary.d.ts.map +1 -0
  276. package/lib/typescript/commonjs/components/buttons/FicButton/Icon.stories.d.ts +22 -0
  277. package/lib/typescript/commonjs/components/buttons/FicButton/Icon.stories.d.ts.map +1 -0
  278. package/lib/typescript/commonjs/components/buttons/FicButton/Primary.stories.d.ts +33 -0
  279. package/lib/typescript/commonjs/components/buttons/FicButton/Primary.stories.d.ts.map +1 -0
  280. package/lib/typescript/commonjs/components/buttons/FicButton/Secondary.stories.d.ts +20 -0
  281. package/lib/typescript/commonjs/components/buttons/FicButton/Secondary.stories.d.ts.map +1 -0
  282. package/lib/typescript/commonjs/components/buttons/FicButton/Tertiary.stories.d.ts +21 -0
  283. package/lib/typescript/commonjs/components/buttons/FicButton/Tertiary.stories.d.ts.map +1 -0
  284. package/lib/typescript/commonjs/components/buttons/FicButton/constants.d.ts.map +1 -0
  285. package/lib/typescript/commonjs/components/buttons/FicButton/index.d.ts.map +1 -0
  286. package/lib/typescript/commonjs/components/buttons/FicButton/themes/dark.d.ts.map +1 -0
  287. package/lib/typescript/commonjs/components/buttons/FicButton/themes/index.d.ts +4 -0
  288. package/lib/typescript/commonjs/components/buttons/FicButton/themes/index.d.ts.map +1 -0
  289. package/lib/typescript/commonjs/components/buttons/FicButton/themes/light.d.ts.map +1 -0
  290. package/lib/typescript/commonjs/components/buttons/FicButtonGroup/ButtonGroup.stories.d.ts +37 -0
  291. package/lib/typescript/commonjs/components/buttons/FicButtonGroup/ButtonGroup.stories.d.ts.map +1 -0
  292. package/lib/typescript/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.d.ts.map +1 -0
  293. package/lib/typescript/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.types.d.ts.map +1 -0
  294. package/lib/typescript/commonjs/components/buttons/FicButtonGroup/index.d.ts.map +1 -0
  295. package/lib/typescript/commonjs/components/notifications/Banner/Banner.d.ts.map +1 -0
  296. package/lib/typescript/commonjs/components/notifications/Banner/Banner.types.d.ts.map +1 -0
  297. package/lib/typescript/commonjs/components/notifications/Banner/index.d.ts.map +1 -0
  298. package/lib/typescript/commonjs/components/notifications/Banner/themes/dark.d.ts.map +1 -0
  299. package/lib/typescript/commonjs/components/notifications/Banner/themes/index.d.ts.map +1 -0
  300. package/lib/typescript/commonjs/components/notifications/Banner/themes/light.d.ts.map +1 -0
  301. package/lib/typescript/commonjs/components/typographies/Body/Body.d.ts.map +1 -0
  302. package/lib/typescript/commonjs/components/typographies/Body/index.d.ts.map +1 -0
  303. package/lib/typescript/commonjs/components/typographies/ButtonTitle/ButtonTitle.d.ts.map +1 -0
  304. package/lib/typescript/commonjs/components/typographies/ButtonTitle/index.d.ts.map +1 -0
  305. package/lib/typescript/commonjs/components/typographies/Callout/Callout.d.ts.map +1 -0
  306. package/lib/typescript/commonjs/components/typographies/Callout/index.d.ts.map +1 -0
  307. package/lib/typescript/commonjs/components/typographies/CaptionOne/CaptionOne.d.ts.map +1 -0
  308. package/lib/typescript/commonjs/components/typographies/CaptionOne/index.d.ts.map +1 -0
  309. package/lib/typescript/commonjs/components/typographies/CaptionTwo/CaptionTwo.d.ts.map +1 -0
  310. package/lib/typescript/commonjs/components/typographies/CaptionTwo/index.d.ts.map +1 -0
  311. package/lib/typescript/commonjs/components/typographies/Footnote/Footnote.d.ts.map +1 -0
  312. package/lib/typescript/commonjs/components/typographies/Footnote/index.d.ts.map +1 -0
  313. package/lib/typescript/commonjs/components/typographies/Headline/Headline.d.ts.map +1 -0
  314. package/lib/typescript/commonjs/components/typographies/Headline/index.d.ts.map +1 -0
  315. package/lib/typescript/commonjs/components/typographies/LargeTitle/LargeTitle.d.ts.map +1 -0
  316. package/lib/typescript/commonjs/components/typographies/LargeTitle/index.d.ts.map +1 -0
  317. package/lib/typescript/commonjs/components/typographies/Subhead/Subhead.d.ts.map +1 -0
  318. package/lib/typescript/commonjs/components/typographies/Subhead/index.d.ts.map +1 -0
  319. package/lib/typescript/commonjs/components/typographies/TitleOne/TitleOne.d.ts.map +1 -0
  320. package/lib/typescript/commonjs/components/typographies/TitleOne/index.d.ts.map +1 -0
  321. package/lib/typescript/commonjs/components/typographies/TitleThree/TitleThree.d.ts.map +1 -0
  322. package/lib/typescript/commonjs/components/typographies/TitleThree/index.d.ts.map +1 -0
  323. package/lib/typescript/commonjs/components/typographies/TitleTwo/TitleTwo.d.ts.map +1 -0
  324. package/lib/typescript/commonjs/components/typographies/TitleTwo/index.d.ts.map +1 -0
  325. package/lib/typescript/{components → commonjs/components}/typographies/font.d.ts +1 -1
  326. package/lib/typescript/commonjs/components/typographies/font.d.ts.map +1 -0
  327. package/lib/typescript/commonjs/hooks/useTheme.d.ts.map +1 -0
  328. package/lib/typescript/commonjs/index.d.ts.map +1 -0
  329. package/lib/typescript/commonjs/package.json +1 -0
  330. package/lib/typescript/commonjs/providers/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -0
  331. package/lib/typescript/commonjs/providers/DesignSystemProvider/index.d.ts.map +1 -0
  332. package/lib/typescript/commonjs/providers/IconProvider/IconProvider.d.ts.map +1 -0
  333. package/lib/typescript/commonjs/providers/IconProvider/index.d.ts.map +1 -0
  334. package/lib/typescript/commonjs/providers/ThemeProvider/ThemeProvider.d.ts.map +1 -0
  335. package/lib/typescript/commonjs/styles/calendarTheme.d.ts.map +1 -0
  336. package/lib/typescript/commonjs/styles/colors.d.ts.map +1 -0
  337. package/lib/typescript/commonjs/styles/globalStyles.d.ts.map +1 -0
  338. package/lib/typescript/commonjs/styles/space.d.ts.map +1 -0
  339. package/lib/typescript/commonjs/styles/theme.d.ts.map +1 -0
  340. package/lib/typescript/commonjs/utils/locale.d.ts.map +1 -0
  341. package/lib/typescript/module/components/Tag/Tag.d.ts +13 -0
  342. package/lib/typescript/module/components/Tag/Tag.d.ts.map +1 -0
  343. package/lib/typescript/module/components/Tag/index.d.ts +3 -0
  344. package/lib/typescript/module/components/Tag/index.d.ts.map +1 -0
  345. package/lib/typescript/module/components/Touchable/Touchable.d.ts +16 -0
  346. package/lib/typescript/module/components/Touchable/Touchable.d.ts.map +1 -0
  347. package/lib/typescript/module/components/Touchable/index.d.ts +3 -0
  348. package/lib/typescript/module/components/Touchable/index.d.ts.map +1 -0
  349. package/lib/typescript/module/components/base/DatePicker/DatePicker.d.ts +60 -0
  350. package/lib/typescript/module/components/base/DatePicker/DatePicker.d.ts.map +1 -0
  351. package/lib/typescript/module/components/base/DatePicker/index.d.ts +4 -0
  352. package/lib/typescript/module/components/base/DatePicker/index.d.ts.map +1 -0
  353. package/lib/typescript/module/components/base/HeaderArrows/HeaderArrows.d.ts +16 -0
  354. package/lib/typescript/module/components/base/HeaderArrows/HeaderArrows.d.ts.map +1 -0
  355. package/lib/typescript/module/components/base/HeaderArrows/index.d.ts +3 -0
  356. package/lib/typescript/module/components/base/HeaderArrows/index.d.ts.map +1 -0
  357. package/lib/typescript/module/components/buttons/FicButton/FicButton.d.ts +5 -0
  358. package/lib/typescript/module/components/buttons/FicButton/FicButton.d.ts.map +1 -0
  359. package/lib/typescript/module/components/buttons/FicButton/FicButton.types.d.ts +91 -0
  360. package/lib/typescript/module/components/buttons/FicButton/FicButton.types.d.ts.map +1 -0
  361. package/lib/typescript/module/components/buttons/FicButton/FicButtonIcon.d.ts +5 -0
  362. package/lib/typescript/module/components/buttons/FicButton/FicButtonIcon.d.ts.map +1 -0
  363. package/lib/typescript/module/components/buttons/FicButton/FicButtonPrimary.d.ts +5 -0
  364. package/lib/typescript/module/components/buttons/FicButton/FicButtonPrimary.d.ts.map +1 -0
  365. package/lib/typescript/module/components/buttons/FicButton/FicButtonSecondary.d.ts +5 -0
  366. package/lib/typescript/module/components/buttons/FicButton/FicButtonSecondary.d.ts.map +1 -0
  367. package/lib/typescript/module/components/buttons/FicButton/FicButtonTertiary.d.ts +5 -0
  368. package/lib/typescript/module/components/buttons/FicButton/FicButtonTertiary.d.ts.map +1 -0
  369. package/lib/typescript/module/components/buttons/FicButton/Icon.stories.d.ts +22 -0
  370. package/lib/typescript/module/components/buttons/FicButton/Icon.stories.d.ts.map +1 -0
  371. package/lib/typescript/module/components/buttons/FicButton/Primary.stories.d.ts +33 -0
  372. package/lib/typescript/module/components/buttons/FicButton/Primary.stories.d.ts.map +1 -0
  373. package/lib/typescript/module/components/buttons/FicButton/Secondary.stories.d.ts +20 -0
  374. package/lib/typescript/module/components/buttons/FicButton/Secondary.stories.d.ts.map +1 -0
  375. package/lib/typescript/module/components/buttons/FicButton/Tertiary.stories.d.ts +21 -0
  376. package/lib/typescript/module/components/buttons/FicButton/Tertiary.stories.d.ts.map +1 -0
  377. package/lib/typescript/module/components/buttons/FicButton/constants.d.ts +13 -0
  378. package/lib/typescript/module/components/buttons/FicButton/constants.d.ts.map +1 -0
  379. package/lib/typescript/module/components/buttons/FicButton/index.d.ts +5 -0
  380. package/lib/typescript/module/components/buttons/FicButton/index.d.ts.map +1 -0
  381. package/lib/typescript/module/components/buttons/FicButton/themes/dark.d.ts +4 -0
  382. package/lib/typescript/module/components/buttons/FicButton/themes/dark.d.ts.map +1 -0
  383. package/lib/typescript/module/components/buttons/FicButton/themes/index.d.ts +4 -0
  384. package/lib/typescript/module/components/buttons/FicButton/themes/index.d.ts.map +1 -0
  385. package/lib/typescript/module/components/buttons/FicButton/themes/light.d.ts +4 -0
  386. package/lib/typescript/module/components/buttons/FicButton/themes/light.d.ts.map +1 -0
  387. package/lib/typescript/module/components/buttons/FicButtonGroup/ButtonGroup.stories.d.ts +37 -0
  388. package/lib/typescript/module/components/buttons/FicButtonGroup/ButtonGroup.stories.d.ts.map +1 -0
  389. package/lib/typescript/module/components/buttons/FicButtonGroup/FicButtonGroup.d.ts +5 -0
  390. package/lib/typescript/module/components/buttons/FicButtonGroup/FicButtonGroup.d.ts.map +1 -0
  391. package/lib/typescript/module/components/buttons/FicButtonGroup/FicButtonGroup.types.d.ts +10 -0
  392. package/lib/typescript/module/components/buttons/FicButtonGroup/FicButtonGroup.types.d.ts.map +1 -0
  393. package/lib/typescript/module/components/buttons/FicButtonGroup/index.d.ts +3 -0
  394. package/lib/typescript/module/components/buttons/FicButtonGroup/index.d.ts.map +1 -0
  395. package/lib/typescript/module/components/notifications/Banner/Banner.d.ts +5 -0
  396. package/lib/typescript/module/components/notifications/Banner/Banner.d.ts.map +1 -0
  397. package/lib/typescript/module/components/notifications/Banner/Banner.types.d.ts +44 -0
  398. package/lib/typescript/module/components/notifications/Banner/Banner.types.d.ts.map +1 -0
  399. package/lib/typescript/module/components/notifications/Banner/index.d.ts +3 -0
  400. package/lib/typescript/module/components/notifications/Banner/index.d.ts.map +1 -0
  401. package/lib/typescript/module/components/notifications/Banner/themes/dark.d.ts +4 -0
  402. package/lib/typescript/module/components/notifications/Banner/themes/dark.d.ts.map +1 -0
  403. package/lib/typescript/module/components/notifications/Banner/themes/index.d.ts +4 -0
  404. package/lib/typescript/module/components/notifications/Banner/themes/index.d.ts.map +1 -0
  405. package/lib/typescript/module/components/notifications/Banner/themes/light.d.ts +4 -0
  406. package/lib/typescript/module/components/notifications/Banner/themes/light.d.ts.map +1 -0
  407. package/lib/typescript/module/components/typographies/Body/Body.d.ts +12 -0
  408. package/lib/typescript/module/components/typographies/Body/Body.d.ts.map +1 -0
  409. package/lib/typescript/module/components/typographies/Body/index.d.ts +3 -0
  410. package/lib/typescript/module/components/typographies/Body/index.d.ts.map +1 -0
  411. package/lib/typescript/module/components/typographies/ButtonTitle/ButtonTitle.d.ts +10 -0
  412. package/lib/typescript/module/components/typographies/ButtonTitle/ButtonTitle.d.ts.map +1 -0
  413. package/lib/typescript/module/components/typographies/ButtonTitle/index.d.ts +3 -0
  414. package/lib/typescript/module/components/typographies/ButtonTitle/index.d.ts.map +1 -0
  415. package/lib/typescript/module/components/typographies/Callout/Callout.d.ts +12 -0
  416. package/lib/typescript/module/components/typographies/Callout/Callout.d.ts.map +1 -0
  417. package/lib/typescript/module/components/typographies/Callout/index.d.ts +3 -0
  418. package/lib/typescript/module/components/typographies/Callout/index.d.ts.map +1 -0
  419. package/lib/typescript/module/components/typographies/CaptionOne/CaptionOne.d.ts +12 -0
  420. package/lib/typescript/module/components/typographies/CaptionOne/CaptionOne.d.ts.map +1 -0
  421. package/lib/typescript/module/components/typographies/CaptionOne/index.d.ts +3 -0
  422. package/lib/typescript/module/components/typographies/CaptionOne/index.d.ts.map +1 -0
  423. package/lib/typescript/module/components/typographies/CaptionTwo/CaptionTwo.d.ts +12 -0
  424. package/lib/typescript/module/components/typographies/CaptionTwo/CaptionTwo.d.ts.map +1 -0
  425. package/lib/typescript/module/components/typographies/CaptionTwo/index.d.ts +3 -0
  426. package/lib/typescript/module/components/typographies/CaptionTwo/index.d.ts.map +1 -0
  427. package/lib/typescript/module/components/typographies/Footnote/Footnote.d.ts +12 -0
  428. package/lib/typescript/module/components/typographies/Footnote/Footnote.d.ts.map +1 -0
  429. package/lib/typescript/module/components/typographies/Footnote/index.d.ts +3 -0
  430. package/lib/typescript/module/components/typographies/Footnote/index.d.ts.map +1 -0
  431. package/lib/typescript/module/components/typographies/Headline/Headline.d.ts +12 -0
  432. package/lib/typescript/module/components/typographies/Headline/Headline.d.ts.map +1 -0
  433. package/lib/typescript/module/components/typographies/Headline/index.d.ts +3 -0
  434. package/lib/typescript/module/components/typographies/Headline/index.d.ts.map +1 -0
  435. package/lib/typescript/module/components/typographies/LargeTitle/LargeTitle.d.ts +12 -0
  436. package/lib/typescript/module/components/typographies/LargeTitle/LargeTitle.d.ts.map +1 -0
  437. package/lib/typescript/module/components/typographies/LargeTitle/index.d.ts +3 -0
  438. package/lib/typescript/module/components/typographies/LargeTitle/index.d.ts.map +1 -0
  439. package/lib/typescript/module/components/typographies/Subhead/Subhead.d.ts +12 -0
  440. package/lib/typescript/module/components/typographies/Subhead/Subhead.d.ts.map +1 -0
  441. package/lib/typescript/module/components/typographies/Subhead/index.d.ts +3 -0
  442. package/lib/typescript/module/components/typographies/Subhead/index.d.ts.map +1 -0
  443. package/lib/typescript/module/components/typographies/TitleOne/TitleOne.d.ts +12 -0
  444. package/lib/typescript/module/components/typographies/TitleOne/TitleOne.d.ts.map +1 -0
  445. package/lib/typescript/module/components/typographies/TitleOne/index.d.ts +3 -0
  446. package/lib/typescript/module/components/typographies/TitleOne/index.d.ts.map +1 -0
  447. package/lib/typescript/module/components/typographies/TitleThree/TitleThree.d.ts +12 -0
  448. package/lib/typescript/module/components/typographies/TitleThree/TitleThree.d.ts.map +1 -0
  449. package/lib/typescript/module/components/typographies/TitleThree/index.d.ts +3 -0
  450. package/lib/typescript/module/components/typographies/TitleThree/index.d.ts.map +1 -0
  451. package/lib/typescript/module/components/typographies/TitleTwo/TitleTwo.d.ts +12 -0
  452. package/lib/typescript/module/components/typographies/TitleTwo/TitleTwo.d.ts.map +1 -0
  453. package/lib/typescript/module/components/typographies/TitleTwo/index.d.ts +3 -0
  454. package/lib/typescript/module/components/typographies/TitleTwo/index.d.ts.map +1 -0
  455. package/lib/typescript/module/components/typographies/font.d.ts +9 -0
  456. package/lib/typescript/module/components/typographies/font.d.ts.map +1 -0
  457. package/lib/typescript/module/hooks/useTheme.d.ts +3 -0
  458. package/lib/typescript/module/hooks/useTheme.d.ts.map +1 -0
  459. package/lib/typescript/module/index.d.ts +32 -0
  460. package/lib/typescript/module/index.d.ts.map +1 -0
  461. package/lib/typescript/module/package.json +1 -0
  462. package/lib/typescript/module/providers/DesignSystemProvider/DesignSystemProvider.d.ts +10 -0
  463. package/lib/typescript/module/providers/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -0
  464. package/lib/typescript/module/providers/DesignSystemProvider/index.d.ts +3 -0
  465. package/lib/typescript/module/providers/DesignSystemProvider/index.d.ts.map +1 -0
  466. package/lib/typescript/module/providers/IconProvider/IconProvider.d.ts +21 -0
  467. package/lib/typescript/module/providers/IconProvider/IconProvider.d.ts.map +1 -0
  468. package/lib/typescript/module/providers/IconProvider/index.d.ts +4 -0
  469. package/lib/typescript/module/providers/IconProvider/index.d.ts.map +1 -0
  470. package/lib/typescript/module/providers/ThemeProvider/ThemeProvider.d.ts +9 -0
  471. package/lib/typescript/module/providers/ThemeProvider/ThemeProvider.d.ts.map +1 -0
  472. package/lib/typescript/module/styles/calendarTheme.d.ts +24 -0
  473. package/lib/typescript/module/styles/calendarTheme.d.ts.map +1 -0
  474. package/lib/typescript/module/styles/colors.d.ts +100 -0
  475. package/lib/typescript/module/styles/colors.d.ts.map +1 -0
  476. package/lib/typescript/module/styles/globalStyles.d.ts +33 -0
  477. package/lib/typescript/module/styles/globalStyles.d.ts.map +1 -0
  478. package/lib/typescript/module/styles/space.d.ts +19 -0
  479. package/lib/typescript/module/styles/space.d.ts.map +1 -0
  480. package/lib/typescript/module/styles/theme.d.ts +185 -0
  481. package/lib/typescript/module/styles/theme.d.ts.map +1 -0
  482. package/lib/typescript/module/utils/locale.d.ts +15 -0
  483. package/lib/typescript/module/utils/locale.d.ts.map +1 -0
  484. package/package.json +4 -2
  485. package/src/components/buttons/FicButton/FicButton.tsx +17 -25
  486. package/src/components/buttons/FicButton/FicButtonIcon.tsx +47 -45
  487. package/src/components/buttons/FicButton/FicButtonPrimary.tsx +13 -1
  488. package/src/components/buttons/FicButton/FicButtonTertiary.tsx +76 -66
  489. package/src/components/buttons/FicButton/themes/dark.ts +77 -77
  490. package/src/components/buttons/FicButton/themes/index.ts +2 -1
  491. package/src/components/buttons/FicButton/themes/light.ts +77 -77
  492. package/src/components/buttons/FicButtonGroup/FicButtonGroup.tsx +32 -11
  493. package/lib/typescript/components/Tag/Tag.d.ts.map +0 -1
  494. package/lib/typescript/components/Tag/index.d.ts.map +0 -1
  495. package/lib/typescript/components/Touchable/Touchable.d.ts.map +0 -1
  496. package/lib/typescript/components/Touchable/index.d.ts.map +0 -1
  497. package/lib/typescript/components/base/DatePicker/DatePicker.d.ts.map +0 -1
  498. package/lib/typescript/components/base/DatePicker/index.d.ts.map +0 -1
  499. package/lib/typescript/components/base/HeaderArrows/HeaderArrows.d.ts.map +0 -1
  500. package/lib/typescript/components/base/HeaderArrows/index.d.ts.map +0 -1
  501. package/lib/typescript/components/buttons/FicButton/FicButton.d.ts.map +0 -1
  502. package/lib/typescript/components/buttons/FicButton/FicButton.types.d.ts.map +0 -1
  503. package/lib/typescript/components/buttons/FicButton/FicButtonIcon.d.ts.map +0 -1
  504. package/lib/typescript/components/buttons/FicButton/FicButtonPrimary.d.ts.map +0 -1
  505. package/lib/typescript/components/buttons/FicButton/FicButtonSecondary.d.ts.map +0 -1
  506. package/lib/typescript/components/buttons/FicButton/FicButtonTertiary.d.ts.map +0 -1
  507. package/lib/typescript/components/buttons/FicButton/constants.d.ts.map +0 -1
  508. package/lib/typescript/components/buttons/FicButton/index.d.ts.map +0 -1
  509. package/lib/typescript/components/buttons/FicButton/themes/dark.d.ts.map +0 -1
  510. package/lib/typescript/components/buttons/FicButton/themes/index.d.ts +0 -3
  511. package/lib/typescript/components/buttons/FicButton/themes/index.d.ts.map +0 -1
  512. package/lib/typescript/components/buttons/FicButton/themes/light.d.ts.map +0 -1
  513. package/lib/typescript/components/buttons/FicButtonGroup/FicButtonGroup.d.ts.map +0 -1
  514. package/lib/typescript/components/buttons/FicButtonGroup/FicButtonGroup.types.d.ts.map +0 -1
  515. package/lib/typescript/components/buttons/FicButtonGroup/index.d.ts.map +0 -1
  516. package/lib/typescript/components/notifications/Banner/Banner.d.ts.map +0 -1
  517. package/lib/typescript/components/notifications/Banner/Banner.types.d.ts.map +0 -1
  518. package/lib/typescript/components/notifications/Banner/index.d.ts.map +0 -1
  519. package/lib/typescript/components/notifications/Banner/themes/dark.d.ts.map +0 -1
  520. package/lib/typescript/components/notifications/Banner/themes/index.d.ts.map +0 -1
  521. package/lib/typescript/components/notifications/Banner/themes/light.d.ts.map +0 -1
  522. package/lib/typescript/components/typographies/Body/Body.d.ts.map +0 -1
  523. package/lib/typescript/components/typographies/Body/index.d.ts.map +0 -1
  524. package/lib/typescript/components/typographies/ButtonTitle/ButtonTitle.d.ts.map +0 -1
  525. package/lib/typescript/components/typographies/ButtonTitle/index.d.ts.map +0 -1
  526. package/lib/typescript/components/typographies/Callout/Callout.d.ts.map +0 -1
  527. package/lib/typescript/components/typographies/Callout/index.d.ts.map +0 -1
  528. package/lib/typescript/components/typographies/CaptionOne/CaptionOne.d.ts.map +0 -1
  529. package/lib/typescript/components/typographies/CaptionOne/index.d.ts.map +0 -1
  530. package/lib/typescript/components/typographies/CaptionTwo/CaptionTwo.d.ts.map +0 -1
  531. package/lib/typescript/components/typographies/CaptionTwo/index.d.ts.map +0 -1
  532. package/lib/typescript/components/typographies/Footnote/Footnote.d.ts.map +0 -1
  533. package/lib/typescript/components/typographies/Footnote/index.d.ts.map +0 -1
  534. package/lib/typescript/components/typographies/Headline/Headline.d.ts.map +0 -1
  535. package/lib/typescript/components/typographies/Headline/index.d.ts.map +0 -1
  536. package/lib/typescript/components/typographies/LargeTitle/LargeTitle.d.ts.map +0 -1
  537. package/lib/typescript/components/typographies/LargeTitle/index.d.ts.map +0 -1
  538. package/lib/typescript/components/typographies/Subhead/Subhead.d.ts.map +0 -1
  539. package/lib/typescript/components/typographies/Subhead/index.d.ts.map +0 -1
  540. package/lib/typescript/components/typographies/TitleOne/TitleOne.d.ts.map +0 -1
  541. package/lib/typescript/components/typographies/TitleOne/index.d.ts.map +0 -1
  542. package/lib/typescript/components/typographies/TitleThree/TitleThree.d.ts.map +0 -1
  543. package/lib/typescript/components/typographies/TitleThree/index.d.ts.map +0 -1
  544. package/lib/typescript/components/typographies/TitleTwo/TitleTwo.d.ts.map +0 -1
  545. package/lib/typescript/components/typographies/TitleTwo/index.d.ts.map +0 -1
  546. package/lib/typescript/components/typographies/font.d.ts.map +0 -1
  547. package/lib/typescript/hooks/useTheme.d.ts.map +0 -1
  548. package/lib/typescript/index.d.ts.map +0 -1
  549. package/lib/typescript/providers/DesignSystemProvider/DesignSystemProvider.d.ts.map +0 -1
  550. package/lib/typescript/providers/DesignSystemProvider/index.d.ts.map +0 -1
  551. package/lib/typescript/providers/IconProvider/IconProvider.d.ts.map +0 -1
  552. package/lib/typescript/providers/IconProvider/index.d.ts.map +0 -1
  553. package/lib/typescript/providers/ThemeProvider/ThemeProvider.d.ts.map +0 -1
  554. package/lib/typescript/styles/calendarTheme.d.ts.map +0 -1
  555. package/lib/typescript/styles/colors.d.ts.map +0 -1
  556. package/lib/typescript/styles/globalStyles.d.ts.map +0 -1
  557. package/lib/typescript/styles/space.d.ts.map +0 -1
  558. package/lib/typescript/styles/theme.d.ts.map +0 -1
  559. package/lib/typescript/utils/locale.d.ts.map +0 -1
  560. /package/lib/typescript/{components → commonjs/components}/Tag/Tag.d.ts +0 -0
  561. /package/lib/typescript/{components → commonjs/components}/Tag/index.d.ts +0 -0
  562. /package/lib/typescript/{components → commonjs/components}/Touchable/Touchable.d.ts +0 -0
  563. /package/lib/typescript/{components → commonjs/components}/Touchable/index.d.ts +0 -0
  564. /package/lib/typescript/{components → commonjs/components}/base/DatePicker/index.d.ts +0 -0
  565. /package/lib/typescript/{components → commonjs/components}/base/HeaderArrows/HeaderArrows.d.ts +0 -0
  566. /package/lib/typescript/{components → commonjs/components}/base/HeaderArrows/index.d.ts +0 -0
  567. /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/FicButton.d.ts +0 -0
  568. /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/FicButton.types.d.ts +0 -0
  569. /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/FicButtonIcon.d.ts +0 -0
  570. /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/FicButtonPrimary.d.ts +0 -0
  571. /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/FicButtonSecondary.d.ts +0 -0
  572. /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/FicButtonTertiary.d.ts +0 -0
  573. /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/constants.d.ts +0 -0
  574. /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/index.d.ts +0 -0
  575. /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/themes/dark.d.ts +0 -0
  576. /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/themes/light.d.ts +0 -0
  577. /package/lib/typescript/{components → commonjs/components}/buttons/FicButtonGroup/FicButtonGroup.d.ts +0 -0
  578. /package/lib/typescript/{components → commonjs/components}/buttons/FicButtonGroup/FicButtonGroup.types.d.ts +0 -0
  579. /package/lib/typescript/{components → commonjs/components}/buttons/FicButtonGroup/index.d.ts +0 -0
  580. /package/lib/typescript/{components → commonjs/components}/notifications/Banner/Banner.d.ts +0 -0
  581. /package/lib/typescript/{components → commonjs/components}/notifications/Banner/Banner.types.d.ts +0 -0
  582. /package/lib/typescript/{components → commonjs/components}/notifications/Banner/index.d.ts +0 -0
  583. /package/lib/typescript/{components → commonjs/components}/notifications/Banner/themes/dark.d.ts +0 -0
  584. /package/lib/typescript/{components → commonjs/components}/notifications/Banner/themes/index.d.ts +0 -0
  585. /package/lib/typescript/{components → commonjs/components}/notifications/Banner/themes/light.d.ts +0 -0
  586. /package/lib/typescript/{components → commonjs/components}/typographies/Body/Body.d.ts +0 -0
  587. /package/lib/typescript/{components → commonjs/components}/typographies/Body/index.d.ts +0 -0
  588. /package/lib/typescript/{components → commonjs/components}/typographies/ButtonTitle/ButtonTitle.d.ts +0 -0
  589. /package/lib/typescript/{components → commonjs/components}/typographies/ButtonTitle/index.d.ts +0 -0
  590. /package/lib/typescript/{components → commonjs/components}/typographies/Callout/Callout.d.ts +0 -0
  591. /package/lib/typescript/{components → commonjs/components}/typographies/Callout/index.d.ts +0 -0
  592. /package/lib/typescript/{components → commonjs/components}/typographies/CaptionOne/CaptionOne.d.ts +0 -0
  593. /package/lib/typescript/{components → commonjs/components}/typographies/CaptionOne/index.d.ts +0 -0
  594. /package/lib/typescript/{components → commonjs/components}/typographies/CaptionTwo/CaptionTwo.d.ts +0 -0
  595. /package/lib/typescript/{components → commonjs/components}/typographies/CaptionTwo/index.d.ts +0 -0
  596. /package/lib/typescript/{components → commonjs/components}/typographies/Footnote/Footnote.d.ts +0 -0
  597. /package/lib/typescript/{components → commonjs/components}/typographies/Footnote/index.d.ts +0 -0
  598. /package/lib/typescript/{components → commonjs/components}/typographies/Headline/Headline.d.ts +0 -0
  599. /package/lib/typescript/{components → commonjs/components}/typographies/Headline/index.d.ts +0 -0
  600. /package/lib/typescript/{components → commonjs/components}/typographies/LargeTitle/LargeTitle.d.ts +0 -0
  601. /package/lib/typescript/{components → commonjs/components}/typographies/LargeTitle/index.d.ts +0 -0
  602. /package/lib/typescript/{components → commonjs/components}/typographies/Subhead/Subhead.d.ts +0 -0
  603. /package/lib/typescript/{components → commonjs/components}/typographies/Subhead/index.d.ts +0 -0
  604. /package/lib/typescript/{components → commonjs/components}/typographies/TitleOne/TitleOne.d.ts +0 -0
  605. /package/lib/typescript/{components → commonjs/components}/typographies/TitleOne/index.d.ts +0 -0
  606. /package/lib/typescript/{components → commonjs/components}/typographies/TitleThree/TitleThree.d.ts +0 -0
  607. /package/lib/typescript/{components → commonjs/components}/typographies/TitleThree/index.d.ts +0 -0
  608. /package/lib/typescript/{components → commonjs/components}/typographies/TitleTwo/TitleTwo.d.ts +0 -0
  609. /package/lib/typescript/{components → commonjs/components}/typographies/TitleTwo/index.d.ts +0 -0
  610. /package/lib/typescript/{hooks → commonjs/hooks}/useTheme.d.ts +0 -0
  611. /package/lib/typescript/{index.d.ts → commonjs/index.d.ts} +0 -0
  612. /package/lib/typescript/{providers → commonjs/providers}/DesignSystemProvider/DesignSystemProvider.d.ts +0 -0
  613. /package/lib/typescript/{providers → commonjs/providers}/DesignSystemProvider/index.d.ts +0 -0
  614. /package/lib/typescript/{providers → commonjs/providers}/IconProvider/IconProvider.d.ts +0 -0
  615. /package/lib/typescript/{providers → commonjs/providers}/IconProvider/index.d.ts +0 -0
  616. /package/lib/typescript/{providers → commonjs/providers}/ThemeProvider/ThemeProvider.d.ts +0 -0
  617. /package/lib/typescript/{styles → commonjs/styles}/calendarTheme.d.ts +0 -0
  618. /package/lib/typescript/{styles → commonjs/styles}/colors.d.ts +0 -0
  619. /package/lib/typescript/{styles → commonjs/styles}/globalStyles.d.ts +0 -0
  620. /package/lib/typescript/{styles → commonjs/styles}/space.d.ts +0 -0
  621. /package/lib/typescript/{styles → commonjs/styles}/theme.d.ts +0 -0
  622. /package/lib/typescript/{utils → commonjs/utils}/locale.d.ts +0 -0
@@ -1,12 +1,15 @@
1
+ "use strict";
2
+
1
3
  import * as React from 'react';
2
4
  import { useCallback, useMemo, useState } from 'react';
3
5
  import { Platform, Pressable, View } from 'react-native';
4
6
  import { TouchableHighlight } from 'react-native-gesture-handler';
5
- import { useTheme } from '../../../hooks/useTheme';
6
- import { Icon } from '../../../providers/IconProvider';
7
- import { BORDER_RADIUS, PADDING } from '../../../styles/space';
8
- import { Body } from '../../typographies/Body';
9
- import { BUTTON_INTERNAL_PADDING_HORIZONTAL, DEFAULT_ICON, DEFAULT_ICON_SIZE, DEFAULT_TITLE, ICON_HORIZONTAL_MARGIN } from './constants';
7
+ import { useTheme } from "../../../hooks/useTheme.js";
8
+ import { Icon } from "../../../providers/IconProvider/index.js";
9
+ import { BORDER_RADIUS, PADDING } from "../../../styles/space.js";
10
+ import { Body } from "../../typographies/Body/index.js";
11
+ import { BUTTON_INTERNAL_PADDING_HORIZONTAL, DEFAULT_ICON, DEFAULT_ICON_SIZE, DEFAULT_TITLE, ICON_HORIZONTAL_MARGIN } from "./constants.js";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
13
  const FicButtonPrimary = ({
11
14
  title,
12
15
  iconName,
@@ -25,20 +28,16 @@ const FicButtonPrimary = ({
25
28
  duotone,
26
29
  containerStyle
27
30
  }) => {
28
- var _themeProps$pressedSt3;
29
31
  const {
30
32
  ficButton: theme
31
33
  } = useTheme() || {};
32
- const buttonTheme = (theme === null || theme === void 0 ? void 0 : theme['primary']) || {};
34
+ const buttonTheme = theme?.['primary'] || {};
33
35
  const themeProps = disabled ? buttonTheme.disabled : error ? buttonTheme.error : buttonTheme.default;
34
36
  const containerStyleObj = containerStyle ?? {};
35
37
  const [isPressed, setIsPressed] = useState(false);
36
- const styleBasedOnPress = useMemo(() => {
37
- var _themeProps$pressedSt;
38
- return {
39
- ...(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)
40
- };
41
- }, [disabled, themeProps, isPressed]);
38
+ const styleBasedOnPress = useMemo(() => ({
39
+ ...(isPressed && !disabled ? themeProps?.pressedStyle?.container : themeProps?.container)
40
+ }), [disabled, themeProps, isPressed]);
42
41
  const ficPrimaryViewStyle = useMemo(() => ({
43
42
  paddingHorizontal: BUTTON_INTERNAL_PADDING_HORIZONTAL,
44
43
  paddingVertical: small ? PADDING.SM : PADDING.LG,
@@ -47,14 +46,11 @@ const FicButtonPrimary = ({
47
46
  alignItems: 'center',
48
47
  justifyContent: 'center'
49
48
  }), [fullWidth, small]);
50
- const bodyStyle = useMemo(() => {
51
- var _themeProps$pressedSt2;
52
- return {
53
- marginLeft: iconPosition === 'left' ? ICON_HORIZONTAL_MARGIN : 0,
54
- marginRight: iconPosition === 'right' ? ICON_HORIZONTAL_MARGIN : 0,
55
- ...(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)
56
- };
57
- }, [iconPosition, themeProps, disabled, isPressed]);
49
+ const bodyStyle = useMemo(() => ({
50
+ marginLeft: iconPosition === 'left' ? ICON_HORIZONTAL_MARGIN : 0,
51
+ marginRight: iconPosition === 'right' ? ICON_HORIZONTAL_MARGIN : 0,
52
+ ...(isPressed && !disabled ? themeProps?.pressedStyle?.text : themeProps?.text)
53
+ }), [iconPosition, themeProps, disabled, isPressed]);
58
54
  const handleOnPressIn = e => {
59
55
  if (onPressIn) onPressIn(e);
60
56
  setIsPressed(true);
@@ -69,30 +65,31 @@ const FicButtonPrimary = ({
69
65
  }
70
66
  };
71
67
  const FicPrimary = useCallback(() => {
72
- return /*#__PURE__*/React.createElement(View, {
73
- style: ficPrimaryViewStyle
74
- }, iconPosition === 'left' ? /*#__PURE__*/React.createElement(Icon, {
75
- name: iconName || DEFAULT_ICON,
76
- size: iconSize ?? DEFAULT_ICON_SIZE,
77
- color: themeProps === null || themeProps === void 0 ? void 0 : themeProps.icon.color,
78
- solid: solid,
79
- regular: regular,
80
- light: light,
81
- duotone: duotone
82
- }) : null, /*#__PURE__*/React.createElement(Body, {
83
- text: title ?? DEFAULT_TITLE,
84
- style: bodyStyle
85
- }), iconPosition === 'right' ? /*#__PURE__*/React.createElement(Icon, {
86
- name: iconName || DEFAULT_ICON,
87
- size: iconSize ?? DEFAULT_ICON_SIZE,
88
- color: themeProps === null || themeProps === void 0 ? void 0 : themeProps.icon.color,
89
- solid: solid,
90
- regular: regular,
91
- light: light,
92
- duotone: duotone
93
- }) : null);
68
+ return /*#__PURE__*/_jsxs(View, {
69
+ style: ficPrimaryViewStyle,
70
+ children: [iconPosition === 'left' ? /*#__PURE__*/_jsx(Icon, {
71
+ name: iconName || DEFAULT_ICON,
72
+ size: iconSize ?? DEFAULT_ICON_SIZE,
73
+ color: themeProps?.icon.color,
74
+ solid: solid,
75
+ regular: regular,
76
+ light: light,
77
+ duotone: duotone
78
+ }) : null, /*#__PURE__*/_jsx(Body, {
79
+ text: title ?? DEFAULT_TITLE,
80
+ style: bodyStyle
81
+ }), iconPosition === 'right' ? /*#__PURE__*/_jsx(Icon, {
82
+ name: iconName || DEFAULT_ICON,
83
+ size: iconSize ?? DEFAULT_ICON_SIZE,
84
+ color: themeProps?.icon.color,
85
+ solid: solid,
86
+ regular: regular,
87
+ light: light,
88
+ duotone: duotone
89
+ }) : null]
90
+ });
94
91
  }, [iconPosition, iconName, iconSize, bodyStyle, title, ficPrimaryViewStyle, themeProps, solid, regular, light, duotone]);
95
- return Platform.OS === 'android' ? /*#__PURE__*/React.createElement(TouchableHighlight, {
92
+ return Platform.OS === 'android' ? /*#__PURE__*/_jsx(TouchableHighlight, {
96
93
  disabled: disabled,
97
94
  containerStyle: [containerStyleObj],
98
95
  style: [{
@@ -101,14 +98,16 @@ const FicButtonPrimary = ({
101
98
  onPress: handleOnPress,
102
99
  onPressIn: handleOnPressIn,
103
100
  onPressOut: handleOnPressOut,
104
- underlayColor: themeProps === null || themeProps === void 0 || (_themeProps$pressedSt3 = themeProps.pressedStyle) === null || _themeProps$pressedSt3 === void 0 ? void 0 : _themeProps$pressedSt3.container.backgroundColor
105
- }, FicPrimary()) : /*#__PURE__*/React.createElement(Pressable, {
101
+ underlayColor: themeProps?.pressedStyle?.container.backgroundColor,
102
+ children: FicPrimary()
103
+ }) : /*#__PURE__*/_jsx(Pressable, {
106
104
  disabled: disabled,
107
105
  style: [styleBasedOnPress, containerStyleObj],
108
106
  onPress: handleOnPress,
109
107
  onPressIn: handleOnPressIn,
110
- onPressOut: handleOnPressOut
111
- }, FicPrimary());
108
+ onPressOut: handleOnPressOut,
109
+ children: FicPrimary()
110
+ });
112
111
  };
113
112
  export default FicButtonPrimary;
114
113
  //# sourceMappingURL=FicButtonPrimary.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","useCallback","useMemo","useState","Platform","Pressable","View","TouchableHighlight","useTheme","Icon","BORDER_RADIUS","PADDING","Body","BUTTON_INTERNAL_PADDING_HORIZONTAL","DEFAULT_ICON","DEFAULT_ICON_SIZE","DEFAULT_TITLE","ICON_HORIZONTAL_MARGIN","FicButtonPrimary","title","iconName","iconSize","onPress","onPressIn","onPressOut","disabled","error","iconPosition","fullWidth","small","solid","regular","light","duotone","containerStyle","_themeProps$pressedSt3","ficButton","theme","buttonTheme","themeProps","default","containerStyleObj","isPressed","setIsPressed","styleBasedOnPress","_themeProps$pressedSt","pressedStyle","container","ficPrimaryViewStyle","paddingHorizontal","paddingVertical","SM","LG","width","flexDirection","alignItems","justifyContent","bodyStyle","_themeProps$pressedSt2","marginLeft","marginRight","text","handleOnPressIn","e","handleOnPressOut","handleOnPress","FicPrimary","createElement","style","name","size","color","icon","OS","borderRadius","underlayColor","backgroundColor"],"sourceRoot":"../../../../../src","sources":["components/buttons/FicButton/FicButtonPrimary.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACtD,SAEEC,QAAQ,EACRC,SAAS,EAGTC,IAAI,QAEC,cAAc;AACrB,SAASC,kBAAkB,QAAQ,8BAA8B;AACjE,SAASC,QAAQ,QAAQ,yBAAyB;AAClD,SAASC,IAAI,QAAQ,iCAAiC;AACtD,SAASC,aAAa,EAAEC,OAAO,QAAQ,uBAAuB;AAC9D,SAASC,IAAI,QAAQ,yBAAyB;AAC9C,SACEC,kCAAkC,EAClCC,YAAY,EACZC,iBAAiB,EACjBC,aAAa,EACbC,sBAAsB,QACjB,aAAa;AAOpB,MAAMC,gBAA8C,GAAGA,CAAC;EACtDC,KAAK;EACLC,QAAQ;EACRC,QAAQ;EACRC,OAAO;EACPC,SAAS;EACTC,UAAU;EACVC,QAAQ;EACRC,KAAK;EACLC,YAAY;EACZC,SAAS;EACT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AAEwC,gBAAiB;IAC7BW,aAAa,EAAEpC,UAAU,aAAVA,UAAU,gBAAAJ,sBAAA,GAAVI,UAAU,CAAEO,YAAY,cAAAX,sBAAA,uBAAxBA,sBAAA,CAA0BY,SAAS,CAAC6B;EAAgB,GAElEV,UAAU,CAAC,CACM,CAAC,gBAErBlE,KAAA,CAAAmE,aAAA,CAAC9D,SAAS;IACRoB,QAAQ,EAAEA,QAAS;IACnB2C,KAAK,EAAE,CAACxB,iBAAiB,EAAEH,iBAAiB,CAAE;IAC9CnB,OAAO,EAAE2C,aAAc;IACvB1C,SAAS,EAAEuC,eAAgB;IAC3BtC,UAAU,EAAEwC;EAAiB,GAE5BE,UAAU,CAAC,CACH,CACZ;AACH,CAAC;AAED,eAAehD,gBAAgB","ignoreList":[]}
1
+ {"version":3,"names":["React","useCallback","useMemo","useState","Platform","Pressable","View","TouchableHighlight","useTheme","Icon","BORDER_RADIUS","PADDING","Body","BUTTON_INTERNAL_PADDING_HORIZONTAL","DEFAULT_ICON","DEFAULT_ICON_SIZE","DEFAULT_TITLE","ICON_HORIZONTAL_MARGIN","jsx","_jsx","jsxs","_jsxs","FicButtonPrimary","title","iconName","iconSize","onPress","onPressIn","onPressOut","disabled","error","iconPosition","fullWidth","small","solid","regular","light","duotone","containerStyle","ficButton","theme","buttonTheme","themeProps","default","containerStyleObj","isPressed","setIsPressed","styleBasedOnPress","pressedStyle","container","ficPrimaryViewStyle","paddingHorizontal","paddingVertical","SM","LG","width","flexDirection","alignItems","justifyContent","bodyStyle","marginLeft","marginRight","text","handleOnPressIn","e","handleOnPressOut","handleOnPress","FicPrimary","style","children","name","size","color","icon","OS","borderRadius","underlayColor","backgroundColor"],"sourceRoot":"../../../../../src","sources":["components/buttons/FicButton/FicButtonPrimary.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACtD,SAEEC,QAAQ,EACRC,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iBAAiB,CAAE;IAC/DrB,OAAO,EAAEwC,aAAc;IACvBvC,SAAS,EAAEoC,eAAgB;IAC3BnC,UAAU,EAAEqC,gBAAiB;IAC7BW,aAAa,EAAElC,UAAU,EAAEM,YAAY,EAAEC,SAAS,CAAC4B,eAAgB;IAAAR,QAAA,EAElEF,UAAU,CAAC;EAAC,CACK,CAAC,gBAErBhD,IAAA,CAACd,SAAS;IACRwB,QAAQ,EAAEA,QAAS;IACnBuC,KAAK,EAAE,CAACrB,iBAAiB,EAAEH,iBAAiB,CAAE;IAC9ClB,OAAO,EAAEwC,aAAc;IACvBvC,SAAS,EAAEoC,eAAgB;IAC3BnC,UAAU,EAAEqC,gBAAiB;IAAAI,QAAA,EAE5BF,UAAU,CAAC;EAAC,CACJ,CACZ;AACH,CAAC;AAED,eAAe7C,gBAAgB","ignoreList":[]}
@@ -1,12 +1,15 @@
1
+ "use strict";
2
+
1
3
  import * as React from 'react';
2
4
  import { useCallback, useMemo, useState } from 'react';
3
5
  import { Platform, Pressable, View } from 'react-native';
4
6
  import { TouchableHighlight } from 'react-native-gesture-handler';
5
- import { useTheme } from '../../../hooks/useTheme';
6
- import { Icon } from '../../../providers/IconProvider';
7
- import { BORDER_RADIUS, PADDING } from '../../../styles/space';
8
- import { Body } from '../../typographies/Body';
9
- import { BUTTON_INTERNAL_PADDING_HORIZONTAL, DEFAULT_ICON, DEFAULT_ICON_SIZE, DEFAULT_TITLE, ICON_HORIZONTAL_MARGIN } from './constants';
7
+ import { useTheme } from "../../../hooks/useTheme.js";
8
+ import { Icon } from "../../../providers/IconProvider/index.js";
9
+ import { BORDER_RADIUS, PADDING } from "../../../styles/space.js";
10
+ import { Body } from "../../typographies/Body/index.js";
11
+ import { BUTTON_INTERNAL_PADDING_HORIZONTAL, DEFAULT_ICON, DEFAULT_ICON_SIZE, DEFAULT_TITLE, ICON_HORIZONTAL_MARGIN } from "./constants.js";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
13
  const FicButtonSecondary = ({
11
14
  title,
12
15
  iconName,
@@ -25,40 +28,30 @@ const FicButtonSecondary = ({
25
28
  duotone,
26
29
  containerStyle
27
30
  }) => {
28
- var _themeProps$pressedSt3;
29
31
  const {
30
32
  ficButton: theme
31
33
  } = useTheme() || {};
32
- const buttonTheme = (theme === null || theme === void 0 ? void 0 : theme['secondary']) || {};
34
+ const buttonTheme = theme?.['secondary'] || {};
33
35
  const themeProps = disabled ? buttonTheme.disabled : error ? buttonTheme.error : buttonTheme.default;
34
36
  const containerStyleObj = containerStyle ?? {};
35
37
  const [isPressed, setIsPressed] = useState(false);
36
- const styleBasedOnPress = useMemo(() => {
37
- var _themeProps$pressedSt;
38
- return {
39
- ...(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)
40
- };
41
- }, [themeProps, disabled, isPressed]);
42
- const ficSecondaryViewStyle = useMemo(() => {
43
- var _themeProps$container;
44
- return {
45
- paddingHorizontal: BUTTON_INTERNAL_PADDING_HORIZONTAL,
46
- width: fullWidth ? '100%' : 'auto',
47
- // removing 1 borderWidth to match primary button height
48
- paddingVertical: (small ? PADDING.SM : PADDING.LG) - ((themeProps === null || themeProps === void 0 || (_themeProps$container = themeProps.container) === null || _themeProps$container === void 0 ? void 0 : _themeProps$container.borderWidth) || 0),
49
- flexDirection: 'row',
50
- alignItems: 'center',
51
- justifyContent: 'center'
52
- };
53
- }, [fullWidth, themeProps]);
54
- const bodyStyle = useMemo(() => {
55
- var _themeProps$pressedSt2;
56
- return {
57
- marginLeft: iconPosition === 'left' ? ICON_HORIZONTAL_MARGIN : 0,
58
- marginRight: iconPosition === 'right' ? ICON_HORIZONTAL_MARGIN : 0,
59
- ...(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)
60
- };
61
- }, [themeProps, iconPosition, disabled, isPressed]);
38
+ const styleBasedOnPress = useMemo(() => ({
39
+ ...(isPressed && !disabled ? themeProps?.pressedStyle?.container : themeProps?.container)
40
+ }), [themeProps, disabled, isPressed]);
41
+ const ficSecondaryViewStyle = useMemo(() => ({
42
+ paddingHorizontal: BUTTON_INTERNAL_PADDING_HORIZONTAL,
43
+ width: fullWidth ? '100%' : 'auto',
44
+ // removing 1 borderWidth to match primary button height
45
+ paddingVertical: (small ? PADDING.SM : PADDING.LG) - (themeProps?.container?.borderWidth || 0),
46
+ flexDirection: 'row',
47
+ alignItems: 'center',
48
+ justifyContent: 'center'
49
+ }), [fullWidth, themeProps]);
50
+ const bodyStyle = useMemo(() => ({
51
+ marginLeft: iconPosition === 'left' ? ICON_HORIZONTAL_MARGIN : 0,
52
+ marginRight: iconPosition === 'right' ? ICON_HORIZONTAL_MARGIN : 0,
53
+ ...(isPressed && !disabled ? themeProps?.pressedStyle?.text : themeProps?.text)
54
+ }), [themeProps, iconPosition, disabled, isPressed]);
62
55
  const handleOnPressIn = e => {
63
56
  if (onPressIn) onPressIn(e);
64
57
  setIsPressed(true);
@@ -71,30 +64,31 @@ const FicButtonSecondary = ({
71
64
  if (onPress) onPress(e);
72
65
  };
73
66
  const FicSecondary = useCallback(() => {
74
- return /*#__PURE__*/React.createElement(View, {
75
- style: ficSecondaryViewStyle
76
- }, iconPosition === 'left' ? /*#__PURE__*/React.createElement(Icon, {
77
- name: iconName || DEFAULT_ICON,
78
- size: iconSize ?? DEFAULT_ICON_SIZE,
79
- color: themeProps === null || themeProps === void 0 ? void 0 : themeProps.icon.color,
80
- solid: solid,
81
- regular: regular,
82
- light: light,
83
- duotone: duotone
84
- }) : null, /*#__PURE__*/React.createElement(Body, {
85
- text: title ?? DEFAULT_TITLE,
86
- style: bodyStyle
87
- }), iconPosition === 'right' ? /*#__PURE__*/React.createElement(Icon, {
88
- name: iconName || DEFAULT_ICON,
89
- size: iconSize ?? DEFAULT_ICON_SIZE,
90
- color: themeProps === null || themeProps === void 0 ? void 0 : themeProps.icon.color,
91
- solid: solid,
92
- regular: regular,
93
- light: light,
94
- duotone: duotone
95
- }) : null);
67
+ return /*#__PURE__*/_jsxs(View, {
68
+ style: ficSecondaryViewStyle,
69
+ children: [iconPosition === 'left' ? /*#__PURE__*/_jsx(Icon, {
70
+ name: iconName || DEFAULT_ICON,
71
+ size: iconSize ?? DEFAULT_ICON_SIZE,
72
+ color: themeProps?.icon.color,
73
+ solid: solid,
74
+ regular: regular,
75
+ light: light,
76
+ duotone: duotone
77
+ }) : null, /*#__PURE__*/_jsx(Body, {
78
+ text: title ?? DEFAULT_TITLE,
79
+ style: bodyStyle
80
+ }), iconPosition === 'right' ? /*#__PURE__*/_jsx(Icon, {
81
+ name: iconName || DEFAULT_ICON,
82
+ size: iconSize ?? DEFAULT_ICON_SIZE,
83
+ color: themeProps?.icon.color,
84
+ solid: solid,
85
+ regular: regular,
86
+ light: light,
87
+ duotone: duotone
88
+ }) : null]
89
+ });
96
90
  }, [iconPosition, iconName, iconSize, bodyStyle, title]);
97
- return Platform.OS === 'android' ? /*#__PURE__*/React.createElement(TouchableHighlight, {
91
+ return Platform.OS === 'android' ? /*#__PURE__*/_jsx(TouchableHighlight, {
98
92
  disabled: disabled,
99
93
  containerStyle: containerStyleObj,
100
94
  style: [{
@@ -103,14 +97,16 @@ const FicButtonSecondary = ({
103
97
  onPress: handleOnPress,
104
98
  onPressIn: handleOnPressIn,
105
99
  onPressOut: handleOnPressOut,
106
- underlayColor: themeProps === null || themeProps === void 0 || (_themeProps$pressedSt3 = themeProps.pressedStyle) === null || _themeProps$pressedSt3 === void 0 ? void 0 : _themeProps$pressedSt3.container.backgroundColor
107
- }, FicSecondary()) : /*#__PURE__*/React.createElement(Pressable, {
100
+ underlayColor: themeProps?.pressedStyle?.container.backgroundColor,
101
+ children: FicSecondary()
102
+ }) : /*#__PURE__*/_jsx(Pressable, {
108
103
  style: [styleBasedOnPress, containerStyleObj],
109
104
  onPress: handleOnPress,
110
105
  onPressIn: handleOnPressIn,
111
106
  onPressOut: handleOnPressOut,
112
- disabled: disabled
113
- }, FicSecondary());
107
+ disabled: disabled,
108
+ children: FicSecondary()
109
+ });
114
110
  };
115
111
  export default FicButtonSecondary;
116
112
  //# sourceMappingURL=FicButtonSecondary.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","useCallback","useMemo","useState","Platform","Pressable","View","TouchableHighlight","useTheme","Icon","BORDER_RADIUS","PADDING","Body","BUTTON_INTERNAL_PADDING_HORIZONTAL","DEFAULT_ICON","DEFAULT_ICON_SIZE","DEFAULT_TITLE","ICON_HORIZONTAL_MARGIN","FicButtonSecondary","title","iconName","iconSize","onPress","onPressIn","onPressOut","disabled","error","iconPosition","fullWidth","small","solid","regular","light","duotone","containerStyle","_themeProps$pressedSt3","ficButton","theme","buttonTheme","themeProps","default","containerStyleObj","isPressed","setIsPressed","styleBasedOnPress","_themeProps$pressedSt","pressedStyle","container","ficSecondaryViewStyle","_themeProps$container","paddingHorizontal","width","paddingVertical","SM","LG","borderWidth","flexDirection","alignItems","justifyContent","bodyStyle","_themeProps$pressedSt2","marginLeft","marginRight","text","handleOnPressIn","e","handleOnPressOut","handleOnPress","FicSecondary","createElement","style","name","size","color","icon","OS","borderRadius","underlayColor","backgroundColor"],"sourceRoot":"../../../../../src","sources":["components/buttons/FicButton/FicButtonSecondary.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACtD,SAEEC,QAAQ,EACRC,SAAS,EAGTC,IAAI,QAEC,cAAc;AACrB,SAASC,kBAAkB,QAAQ,8BAA8B;AACjE,SAASC,QAAQ,QAAQ,yBAAyB;AAClD,SAASC,IAAI,QAAQ,iCAAiC;AACtD,SAASC,aAA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AAY,EAAEP,QAAQ,EAAEC,QAAQ,EAAEsC,SAAS,EAAExC,KAAK,CAAC,CAAC;EAExD,OAAOf,QAAQ,CAACuE,EAAE,KAAK,SAAS,gBAC9B3E,KAAA,CAAAqE,aAAA,CAAC9D,kBAAkB;IACjBkB,QAAQ,EAAEA,QAAS;IACnBS,cAAc,EAAEO,iBAAkB;IAClC6B,KAAK,EAAE,CAAC;MAAEM,YAAY,EAAElE,aAAa,CAAC2C;IAAG,CAAC,EAAET,iBAAiB,CAAE;IAC/DtB,OAAO,EAAE6C,aAAc;IACvB5C,SAAS,EAAEyC,eAAgB;IAC3BxC,UAAU,EAAE0C,gBAAiB;IAC7BW,aAAa,EAAEtC,UAAU,aAAVA,UAAU,gBAAAJ,sBAAA,GAAVI,UAAU,CAAEO,YAAY,cAAAX,sBAAA,uBAAxBA,sBAAA,CAA0BY,SAAS,CAAC+B;EAAgB,GAElEV,YAAY,CAAC,CACI,CAAC,gBAErBpE,KAAA,CAAAqE,aAAA,CAAChE,SAAS;IACRiE,KAAK,EAAE,CAAC1B,iBAAiB,EAAEH,iBAAiB,CAAE;IAC9CnB,OAAO,EAAE6C,aAAc;IACvB5C,SAAS,EAAEyC,eAAgB;IAC3BxC,UAAU,EAAE0C,gBAAiB;IAC7BzC,QAAQ,EAAEA;EAAS,GAElB2C,YAAY,CAAC,CACL,CACZ;AACH,CAAC;AAED,eAAelD,kBAAkB","ignoreList":[]}
1
+ {"version":3,"names":["React","useCallback","useMemo","useState","Platform","Pressable","View","TouchableHighlight","useTheme","Icon","BORDER_RADIUS","PADDING","Body","BUTTON_INTERNAL_PADDING_HORIZONTAL","DEFAULT_ICON","DEFAULT_ICON_SIZE","DEFAULT_TITLE","ICON_HORIZONTAL_MARGIN","jsx","_jsx","jsxs","_jsxs","FicButtonSecondary","title","iconName","iconSize","onPress","onPressIn","onPressOut","disabled","error","iconPosition","fullWidth","small","solid","regular","light","duotone","containerStyle","ficButton","theme","buttonTheme","themeProps","default","containerStyleObj","isPressed","setIsPressed","styleBasedOnPress","pressedStyle","container","ficSecondaryViewStyle","paddingHorizontal","width","paddingVertical","SM","LG","borderWidth","flexDirection","alignItems","justifyContent","bodyStyle","marginLeft","marginRight","text","handleOnPressIn","e","handleOnPressOut","handleOnPress","FicSecondary","style","children","name","size","color","icon","OS","borderRadius","underlayColor","backgroundColor"],"sourceRoot":"../../../../../src","sources":["components/buttons/FicButton/FicButtonSecondary.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACtD,SAEEC,QAAQ,EACRC,SAAS,EAGTC,IAAI,QAEC,cAAc;AACrB,SAASC,kBAAkB,QAAQ,8BAA8B;AACjE,SAASC,QAAQ,QAAQ,4BAAyB;AAClD,SAASC,IAAI,QAAQ,0CAAiC;AACtD,SAASC,aAAa,EAAEC,OAAO,QAAQ,0BAAuB;AAC9D,SAASC,IAAI,QAAQ,kCAAyB;AAC9C,SACEC,kCAAkC,EAClCC,YAAY,EACZC,iBAAiB,EACjBC,aAAa,EACbC,sBAAsB,QACjB,gBAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAOrB,MAAMC,kBAAgD,GAAGA,CAAC;EACxDC,KAAK;EACLC,QAAQ;EACRC,QAAQ;EACRC,OAAO;EACPC,SAAS;EACTC,UAAU;EACVC,QAAQ;EACRC,KAAK;EACLC,YAAY;EACZC,SAAS;EACTC,KAAK;EACLC,KAAK;EACLC,OAAO;EACPC,KAAK;EACLC,OAAO;EACPC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEC,SAAS,EAAEC;EAAM,CAAC,GAAGhC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC;EAE7C,MAAMiC,WAAW,GAAID,KAAK,GAAG,WAAW,CAAC,IAA4B,CAAC,CAAC;EACvE,MAAME,UAAU,GAAGb,QAAQ,GACvBY,WAAW,CAACZ,Q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,OAAO,EAAEA;MAAQ,CAClB,CAAC,GACA,IAAI;IAAA,CACJ,CAAC;EAEX,CAAC,EAAE,CAACN,YAAY,EAAEP,QAAQ,EAAEC,QAAQ,EAAEmC,SAAS,EAAErC,KAAK,CAAC,CAAC;EAExD,OAAOnB,QAAQ,CAACuE,EAAE,KAAK,SAAS,gBAC9BxD,IAAA,CAACZ,kBAAkB;IACjBsB,QAAQ,EAAEA,QAAS;IACnBS,cAAc,EAAEM,iBAAkB;IAClCyB,KAAK,EAAE,CAAC;MAAEO,YAAY,EAAElE,aAAa,CAAC4C;IAAG,CAAC,EAAEP,iBAAiB,CAAE;IAC/DrB,OAAO,EAAEyC,aAAc;IACvBxC,SAAS,EAAEqC,eAAgB;IAC3BpC,UAAU,EAAEsC,gBAAiB;IAC7BW,aAAa,EAAEnC,UAAU,EAAEM,YAAY,EAAEC,SAAS,CAAC6B,eAAgB;IAAAR,QAAA,EAElEF,YAAY,CAAC;EAAC,CACG,CAAC,gBAErBjD,IAAA,CAACd,SAAS;IACRgE,KAAK,EAAE,CAACtB,iBAAiB,EAAEH,iBAAiB,CAAE;IAC9ClB,OAAO,EAAEyC,aAAc;IACvBxC,SAAS,EAAEqC,eAAgB;IAC3BpC,UAAU,EAAEsC,gBAAiB;IAC7BrC,QAAQ,EAAEA,QAAS;IAAAyC,QAAA,EAElBF,YAAY,CAAC;EAAC,CACN,CACZ;AACH,CAAC;AAED,eAAe9C,kBAAkB","ignoreList":[]}
@@ -1,12 +1,16 @@
1
+ "use strict";
2
+
1
3
  import * as React from 'react';
2
- import { useCallback, useMemo, useState } from 'react';
4
+ import { useCallback, useMemo } from 'react';
3
5
  import { Platform, Pressable as PressableIOS, View } from 'react-native';
4
6
  import { TouchableHighlight } from 'react-native-gesture-handler';
5
- import { useTheme } from '../../../hooks/useTheme';
6
- import { Icon } from '../../../providers/IconProvider';
7
- import { PADDING } from '../../../styles/space';
8
- import { Body } from '../../typographies/Body';
9
- import { DEFAULT_ICON, DEFAULT_ICON_SIZE, DEFAULT_TITLE, HIT_SLOP, ICON_HORIZONTAL_MARGIN } from './constants';
7
+ import Animated, { runOnUI, useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';
8
+ import { useTheme } from "../../../hooks/useTheme.js";
9
+ import { Icon } from "../../../providers/IconProvider/index.js";
10
+ import { PADDING } from "../../../styles/space.js";
11
+ import { Body } from "../../typographies/Body/index.js";
12
+ import { DEFAULT_ICON, DEFAULT_ICON_SIZE, DEFAULT_TITLE, HIT_SLOP, ICON_HORIZONTAL_MARGIN } from "./constants.js";
13
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
10
14
  const FicButtonTertiary = ({
11
15
  title,
12
16
  iconName,
@@ -30,108 +34,91 @@ const FicButtonTertiary = ({
30
34
  ficButton: theme
31
35
  } = useTheme() || {};
32
36
  const Pressable = Platform.OS === 'ios' ? PressableIOS : TouchableHighlight;
33
- const buttonTheme = (theme === null || theme === void 0 ? void 0 : theme['tertiary']) || {};
37
+ const buttonTheme = theme?.['tertiary'] || {};
34
38
  const themeProps = disabled ? buttonTheme.disabled : error ? buttonTheme.error : buttonTheme.default;
35
39
  const _containerStyle = containerStyle ?? {};
36
- const [isPressed, setIsPressed] = useState(false);
40
+ const pressedOpacity = useSharedValue(0);
37
41
  const iconColor = useMemo(() => {
38
- 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;
42
+ return colorContrastForLightTheme && !error ? themeProps?.icon.colorContrastForLightTheme ? themeProps?.icon.colorContrastForLightTheme : themeProps?.icon.color : themeProps?.icon.color;
39
43
  }, [themeProps, colorContrastForLightTheme, error]);
40
44
  const bodyColor = useMemo(() => {
41
- 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;
45
+ return colorContrastForLightTheme && !error ? themeProps?.text.colorContrastForLightTheme ? themeProps?.text.colorContrastForLightTheme : themeProps?.text.color : themeProps?.text.color;
42
46
  }, [themeProps, colorContrastForLightTheme, error]);
43
47
  const bodyStyle = useMemo(() => ({
44
48
  marginLeft: iconPosition === 'left' ? ICON_HORIZONTAL_MARGIN : 0,
45
49
  marginRight: iconPosition === 'right' ? ICON_HORIZONTAL_MARGIN : 0,
46
- textDecorationLine: (themeProps === null || themeProps === void 0 ? void 0 : themeProps.text.textDecorationLine) ?? 'underline'
47
- }), [themeProps, iconPosition, isPressed, disabled]);
48
- const tertiaryPressedAreaStyle = useMemo(() => {
49
- var _themeProps$pressedSt;
50
- return {
51
- top: small ? -PADDING.SM : -PADDING.LG,
52
- bottom: small ? -PADDING.SM : -PADDING.LG,
53
- left: fullWidth ? 0 : PADDING.LG * -1,
54
- right: fullWidth ? 0 : PADDING.LG * -1,
55
- position: 'absolute',
56
- ...(themeProps === null || themeProps === void 0 || (_themeProps$pressedSt = themeProps.pressedStyle) === null || _themeProps$pressedSt === void 0 ? void 0 : _themeProps$pressedSt.container)
57
- };
58
- }, [small, themeProps, fullWidth]);
59
- const dynamicContainerStyle = useMemo(() => {
60
- var _themeProps$pressedSt2;
61
- return {
62
- paddingTop: small ? PADDING.SM : PADDING.LG,
63
- paddingBottom: small ? PADDING.SM : PADDING.LG,
64
- width: '100%',
65
- ...(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)
66
- };
67
- }, [disabled, themeProps, isPressed]);
68
- const dynamicContainerStyleContainer = useMemo(() => {
69
- var _themeProps$pressedSt3;
70
- return {
71
- width: '100%',
72
- ...(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)
73
- };
74
- }, [disabled, themeProps, isPressed]);
75
- const handleOnPressIn = e => {
76
- if (onPressIn) onPressIn(e);
77
- setIsPressed(true);
50
+ textDecorationLine: themeProps?.text.textDecorationLine ?? 'underline'
51
+ }), [themeProps, iconPosition, disabled]);
52
+ const pressableAreaStyle = useAnimatedStyle(() => ({
53
+ top: small ? -PADDING.SM : -PADDING.LG,
54
+ bottom: small ? -PADDING.SM : -PADDING.LG,
55
+ left: fullWidth ? 0 : PADDING.LG * -1,
56
+ right: fullWidth ? 0 : PADDING.LG * -1,
57
+ position: 'absolute',
58
+ opacity: pressedOpacity.value,
59
+ ...themeProps?.pressedStyle?.container
60
+ }));
61
+ const animate = value => {
62
+ 'worklet';
63
+
64
+ pressedOpacity.value = withTiming(value, {
65
+ duration: 0
66
+ });
78
67
  };
79
- const handleOnPressOut = e => {
68
+ const handleOnPressIn = useCallback(e => {
69
+ runOnUI(animate)(1);
70
+ if (onPressIn) onPressIn(e);
71
+ }, [pressedOpacity, onPressIn]);
72
+ const handleOnPressOut = useCallback(e => {
73
+ runOnUI(animate)(0);
80
74
  if (onPressOut) onPressOut(e);
81
- setIsPressed(false);
82
- };
75
+ }, [pressedOpacity, onPressOut]);
83
76
  const handleOnPress = e => {
84
77
  if (onPress) onPress(e);
85
78
  };
86
79
  const FicTertiary = useCallback(() => {
87
- return /*#__PURE__*/React.createElement(React.Fragment, null, iconPosition === 'left' ? /*#__PURE__*/React.createElement(Icon, {
88
- name: iconName || DEFAULT_ICON,
89
- size: iconSize ?? DEFAULT_ICON_SIZE,
90
- color: iconColor,
91
- solid: solid,
92
- regular: regular,
93
- light: light,
94
- duotone: duotone
95
- }) : null, /*#__PURE__*/React.createElement(Body, {
96
- text: title ?? DEFAULT_TITLE,
97
- style: bodyStyle,
98
- color: bodyColor
99
- }), iconPosition === 'right' ? /*#__PURE__*/React.createElement(Icon, {
100
- name: iconName || DEFAULT_ICON,
101
- size: iconSize ?? DEFAULT_ICON_SIZE,
102
- color: iconColor,
103
- solid: solid,
104
- regular: regular,
105
- light: light,
106
- duotone: duotone
107
- }) : null);
80
+ return /*#__PURE__*/_jsxs(_Fragment, {
81
+ children: [iconPosition === 'left' ? /*#__PURE__*/_jsx(Icon, {
82
+ name: iconName || DEFAULT_ICON,
83
+ size: iconSize ?? DEFAULT_ICON_SIZE,
84
+ color: iconColor,
85
+ solid: solid,
86
+ regular: regular,
87
+ light: light,
88
+ duotone: duotone
89
+ }) : null, /*#__PURE__*/_jsx(Body, {
90
+ text: title ?? DEFAULT_TITLE,
91
+ style: bodyStyle,
92
+ color: bodyColor
93
+ }), iconPosition === 'right' ? /*#__PURE__*/_jsx(Icon, {
94
+ name: iconName || DEFAULT_ICON,
95
+ size: iconSize ?? DEFAULT_ICON_SIZE,
96
+ color: iconColor,
97
+ solid: solid,
98
+ regular: regular,
99
+ light: light,
100
+ duotone: duotone
101
+ }) : null]
102
+ });
108
103
  }, [iconPosition, iconName, iconSize, buttonTheme, disabled, error, bodyStyle, title]);
109
- return fullWidth ? /*#__PURE__*/React.createElement(Pressable, {
110
- style: [dynamicContainerStyle, Platform.OS === 'ios' ? _containerStyle : {}],
111
- containerStyle: [dynamicContainerStyleContainer, _containerStyle],
112
- onPress: handleOnPress,
113
- onPressIn: handleOnPressIn,
114
- onPressOut: handleOnPressOut,
115
- disabled: disabled,
116
- hitSlop: HIT_SLOP,
117
- underlayColor: 'transparent'
118
- }, FicTertiary()) : /*#__PURE__*/React.createElement(View, {
104
+ return /*#__PURE__*/_jsxs(View, {
119
105
  style: [{
120
- position: 'relative',
121
- alignSelf: 'flex-start',
122
- width: fullWidth ? '100%' : 'auto'
123
- }, _containerStyle]
124
- }, isPressed ? /*#__PURE__*/React.createElement(View, {
125
- style: [tertiaryPressedAreaStyle]
126
- }) : null, /*#__PURE__*/React.createElement(Pressable, {
127
- style: themeProps === null || themeProps === void 0 ? void 0 : themeProps.container,
128
- onPress: handleOnPress,
129
- onPressIn: handleOnPressIn,
130
- onPressOut: handleOnPressOut,
131
- disabled: disabled,
132
- hitSlop: HIT_SLOP,
133
- underlayColor: 'transparent'
134
- }, FicTertiary()));
106
+ width: fullWidth ? '100%' : 'auto',
107
+ alignSelf: fullWidth ? 'stretch' : 'flex-start'
108
+ }, _containerStyle],
109
+ children: [/*#__PURE__*/_jsx(Animated.View, {
110
+ style: pressableAreaStyle
111
+ }), /*#__PURE__*/_jsx(Pressable, {
112
+ style: themeProps?.container,
113
+ onPress: handleOnPress,
114
+ onPressIn: handleOnPressIn,
115
+ onPressOut: handleOnPressOut,
116
+ disabled: disabled,
117
+ hitSlop: HIT_SLOP,
118
+ underlayColor: 'transparent',
119
+ children: FicTertiary()
120
+ })]
121
+ });
135
122
  };
136
123
  export default FicButtonTertiary;
137
124
  //# sourceMappingURL=FicButtonTertiary.js.map