@gympass/yoga 7.88.0 → 7.88.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 (421) hide show
  1. package/cjs/Accordion/Accordion.theme.js +46 -0
  2. package/cjs/Accordion/index.js +35 -0
  3. package/cjs/ActionRequirement/ActionRequirement.theme.js +25 -0
  4. package/cjs/ActionRequirement/index.js +35 -0
  5. package/cjs/ActionRequirement/index.native.js +35 -0
  6. package/cjs/AutoComplete/AutoComplete.theme.js +77 -0
  7. package/cjs/AutoComplete/index.js +35 -0
  8. package/cjs/Avatar/Avatar.theme.js +25 -0
  9. package/cjs/Avatar/index.js +37 -0
  10. package/cjs/Avatar/index.native.js +37 -0
  11. package/cjs/Banner/Banner.theme.js +30 -0
  12. package/cjs/Banner/index.js +35 -0
  13. package/cjs/Banner/index.native.js +35 -0
  14. package/cjs/BottomSheet/BottomSheet.theme.js +44 -0
  15. package/cjs/BottomSheet/index.js +35 -0
  16. package/cjs/Box/index.js +35 -0
  17. package/cjs/Box/index.native.js +35 -0
  18. package/cjs/Button/Button.theme.js +157 -0
  19. package/cjs/Button/index.js +43 -0
  20. package/cjs/Button/index.native.js +41 -0
  21. package/cjs/Card/Card.native.theme.js +64 -0
  22. package/cjs/Card/Card.theme.js +177 -0
  23. package/cjs/Card/Card.web.theme.js +61 -0
  24. package/cjs/Card/index.js +32 -0
  25. package/cjs/Card/index.native.js +34 -0
  26. package/cjs/Checkbox/CheckIcon.js +25 -0
  27. package/cjs/Checkbox/Checkbox.theme.js +68 -0
  28. package/cjs/Checkbox/CheckboxSwitch.theme.js +90 -0
  29. package/cjs/Checkbox/index.js +26 -0
  30. package/cjs/Checkbox/index.native.js +26 -0
  31. package/cjs/Chips/index.js +35 -0
  32. package/cjs/Chips/index.native.js +35 -0
  33. package/cjs/Datepicker/Datepicker.theme.js +32 -0
  34. package/cjs/Datepicker/index.js +35 -0
  35. package/cjs/Dialog/Dialog.theme.js +43 -0
  36. package/cjs/Dialog/index.js +35 -0
  37. package/cjs/Divider/Divider.theme.js +25 -0
  38. package/cjs/Divider/index.js +35 -0
  39. package/cjs/Divider/index.native.js +35 -0
  40. package/cjs/Drawer/Drawer.theme.js +35 -0
  41. package/cjs/Drawer/index.js +35 -0
  42. package/cjs/Dropdown/Dropdown.theme.js +205 -0
  43. package/cjs/Dropdown/index.js +35 -0
  44. package/cjs/Dropdown/index.native.js +35 -0
  45. package/cjs/Feedback/Feedback.theme.js +29 -0
  46. package/cjs/Feedback/index.js +35 -0
  47. package/cjs/Grid/Grid.theme.js +43 -0
  48. package/cjs/Grid/index.js +34 -0
  49. package/cjs/Header/Header.theme.js +34 -0
  50. package/cjs/Header/index.js +35 -0
  51. package/cjs/Heading/Heading.theme.js +38 -0
  52. package/cjs/Heading/index.js +35 -0
  53. package/cjs/Icon/Icon.js +193 -0
  54. package/cjs/Icon/Icon.theme.js +25 -0
  55. package/cjs/Icon/index.js +35 -0
  56. package/cjs/Icon/index.native.js +35 -0
  57. package/cjs/Input/Input.theme.js +86 -0
  58. package/cjs/Input/index.js +30 -0
  59. package/cjs/Input/index.native.js +29 -0
  60. package/cjs/List/List.theme.js +49 -0
  61. package/cjs/List/index.js +27 -0
  62. package/cjs/List/index.native.js +26 -0
  63. package/cjs/Menu/Menu.theme.js +63 -0
  64. package/cjs/Menu/index.js +41 -0
  65. package/cjs/Popover/Popover.theme.js +25 -0
  66. package/cjs/Popover/index.js +35 -0
  67. package/cjs/Progress/Progress.theme.js +38 -0
  68. package/cjs/Progress/index.js +35 -0
  69. package/cjs/Progress/index.native.js +35 -0
  70. package/cjs/RadioGroup/RadioGroup.theme.js +76 -0
  71. package/cjs/RadioGroup/RadioGroupContext.js +26 -0
  72. package/cjs/RadioGroup/index.js +27 -0
  73. package/cjs/RadioGroup/index.native.js +27 -0
  74. package/cjs/Rating/Rating.theme.js +31 -0
  75. package/cjs/Rating/index.js +35 -0
  76. package/cjs/Rating/index.native.js +35 -0
  77. package/cjs/Result/Result.theme.js +25 -0
  78. package/cjs/Result/index.native.js +41 -0
  79. package/cjs/Skeleton/Skeleton.theme.js +42 -0
  80. package/cjs/Skeleton/index.js +35 -0
  81. package/cjs/Skeleton/index.native.js +35 -0
  82. package/cjs/Slider/Slider.theme.js +95 -0
  83. package/cjs/Slider/index.js +35 -0
  84. package/cjs/Slider/index.native.js +35 -0
  85. package/cjs/Snackbar/Snackbar.theme.js +81 -0
  86. package/cjs/Snackbar/index.js +35 -0
  87. package/cjs/Snackbar/index.native.js +35 -0
  88. package/cjs/Spinner/Spinner.theme.js +25 -0
  89. package/cjs/Spinner/index.js +35 -0
  90. package/cjs/Stepper/Stepper.theme.js +56 -0
  91. package/cjs/Stepper/activeDot.js +25 -0
  92. package/cjs/Stepper/index.js +26 -0
  93. package/cjs/Stepper/index.native.js +26 -0
  94. package/cjs/Tag/Tag.theme.js +58 -0
  95. package/cjs/Tag/index.js +37 -0
  96. package/cjs/Tag/index.native.js +37 -0
  97. package/cjs/Text/Text.theme.js +93 -0
  98. package/cjs/Text/index.js +39 -0
  99. package/cjs/Text/index.native.js +39 -0
  100. package/cjs/Text/sharedTextStyle.js +64 -0
  101. package/cjs/Text/textStyle.android.js +57 -0
  102. package/cjs/Text/textStyle.ios.js +39 -0
  103. package/cjs/Text/textStyle.web.js +47 -0
  104. package/cjs/TextArea/TextArea.theme.js +36 -0
  105. package/cjs/TextArea/index.js +35 -0
  106. package/cjs/TextArea/index.native.js +35 -0
  107. package/cjs/Theme/Provider/Provider.js +103 -0
  108. package/cjs/Theme/Provider/index.js +30 -0
  109. package/cjs/Theme/Provider/index.native.js +35 -0
  110. package/cjs/Theme/Provider/native/index.js +35 -0
  111. package/cjs/Theme/Provider/web/FontLoader.js +51 -0
  112. package/cjs/Theme/Provider/web/FontLoader.test.js +39 -0
  113. package/cjs/Theme/Provider/web/GlobalStyle.js +38 -0
  114. package/cjs/Theme/Provider/web/GlobalStyle.test.js +44 -0
  115. package/cjs/Theme/Provider/web/ThemeProvider.js +78 -0
  116. package/cjs/Theme/Provider/web/expectCssMatches.js +34 -0
  117. package/cjs/Theme/Provider/web/index.js +41 -0
  118. package/cjs/Theme/helpers/themeGenerator/index.js +35 -0
  119. package/cjs/Theme/helpers/themeGenerator/themeGenerator.js +33 -0
  120. package/cjs/Theme/helpers/themeGenerator/themeGenerator.test.js +43 -0
  121. package/cjs/Theme/helpers/themeReader/base.test.js +96 -0
  122. package/cjs/Theme/helpers/themeReader/index.js +56 -0
  123. package/cjs/Theme/helpers/themeReader/native/native.test.js +61 -0
  124. package/cjs/Theme/helpers/themeReader/web/web.test.js +55 -0
  125. package/cjs/Theme/index.js +48 -0
  126. package/cjs/Theme/index.native.js +46 -0
  127. package/cjs/Theme/theme/componentThemes.js +112 -0
  128. package/cjs/Theme/theme/index.js +35 -0
  129. package/cjs/Theme/theme/theme.js +109 -0
  130. package/cjs/hooks/index.js +26 -0
  131. package/cjs/hooks/useCombinedRefs.js +44 -0
  132. package/cjs/hooks/useKeyPress.js +50 -0
  133. package/cjs/hooks/usePortal.js +63 -0
  134. package/cjs/index.js +164 -0
  135. package/cjs/index.native.js +122 -0
  136. package/cjs/shared/HiddenInput.js +45 -0
  137. package/cjs/shared/index.js +49 -0
  138. package/cjs/shared/index.native.js +36 -0
  139. package/cjs/shared/propTypes/charLength.js +36 -0
  140. package/cjs/shared/propTypes/deprecated.js +34 -0
  141. package/cjs/shared/propTypes/index.js +50 -0
  142. package/cjs/shared/propTypes/limitChildren.js +35 -0
  143. package/cjs/shared/propTypes/max.js +35 -0
  144. package/cjs/shared/propTypes/typeof.js +47 -0
  145. package/esm/Accordion/Accordion.theme.js +26 -0
  146. package/esm/Accordion/index.js +5 -0
  147. package/esm/ActionRequirement/ActionRequirement.theme.js +5 -0
  148. package/esm/ActionRequirement/index.js +5 -0
  149. package/esm/ActionRequirement/index.native.js +5 -0
  150. package/esm/ActionRequirement/native/ActionRequirement.js +57 -0
  151. package/esm/ActionRequirement/native/ActionRequirement.test.js +49 -0
  152. package/esm/ActionRequirement/native/ActionRequirementStyles.js +69 -0
  153. package/esm/ActionRequirement/native/index.js +13 -0
  154. package/esm/AutoComplete/AutoComplete.theme.js +49 -0
  155. package/esm/AutoComplete/index.js +5 -0
  156. package/esm/Avatar/Avatar.theme.js +5 -0
  157. package/esm/Avatar/index.js +7 -0
  158. package/esm/Avatar/index.native.js +7 -0
  159. package/esm/Avatar/native/Avatar.js +141 -0
  160. package/esm/Avatar/native/Avatar.test.js +39 -0
  161. package/esm/Avatar/native/AvatarCircle.js +54 -0
  162. package/esm/Banner/Banner.theme.js +10 -0
  163. package/esm/Banner/index.js +5 -0
  164. package/esm/Banner/index.native.js +5 -0
  165. package/esm/Banner/native/Banner.js +160 -0
  166. package/esm/Banner/native/Banner.test.js +113 -0
  167. package/esm/Banner/native/index.js +5 -0
  168. package/esm/BottomSheet/BottomSheet.theme.js +24 -0
  169. package/esm/BottomSheet/index.js +5 -0
  170. package/esm/Box/index.js +5 -0
  171. package/esm/Box/index.native.js +5 -0
  172. package/esm/Box/native/Box.js +7 -0
  173. package/esm/Box/native/Box.test.js +21 -0
  174. package/esm/Box/native/index.js +5 -0
  175. package/esm/Button/Button.theme.js +137 -0
  176. package/esm/Button/index.js +13 -0
  177. package/esm/Button/index.native.js +11 -0
  178. package/esm/Button/native/Button.js +198 -0
  179. package/esm/Button/native/Button.test.js +342 -0
  180. package/esm/Button/native/Icon.js +156 -0
  181. package/esm/Button/native/Link.js +64 -0
  182. package/esm/Button/native/Text.js +130 -0
  183. package/esm/Button/native/withTouchable.js +89 -0
  184. package/esm/Card/Card.native.theme.js +44 -0
  185. package/esm/Card/Card.theme.js +157 -0
  186. package/esm/Card/Card.web.theme.js +41 -0
  187. package/esm/Card/index.js +6 -0
  188. package/esm/Card/index.native.js +7 -0
  189. package/esm/Card/native/Card/Actions.js +11 -0
  190. package/esm/Card/native/Card/Card.js +181 -0
  191. package/esm/Card/native/Card/Card.test.js +20 -0
  192. package/esm/Card/native/Card/Content.js +7 -0
  193. package/esm/Card/native/Card/Header.js +7 -0
  194. package/esm/Card/native/Card/index.js +11 -0
  195. package/esm/Card/native/EventCard/EventCard.js +212 -0
  196. package/esm/Card/native/EventCard/EventCard.test.js +73 -0
  197. package/esm/Card/native/EventCard/index.js +5 -0
  198. package/esm/Card/native/GymCard/CheckIn/Avatar.js +47 -0
  199. package/esm/Card/native/GymCard/CheckIn/CheckIn.js +113 -0
  200. package/esm/Card/native/GymCard/CheckIn/CheckIn.test.js +46 -0
  201. package/esm/Card/native/GymCard/CheckIn/Content.js +21 -0
  202. package/esm/Card/native/GymCard/CheckIn/Header.js +24 -0
  203. package/esm/Card/native/GymCard/CheckIn/index.js +5 -0
  204. package/esm/Card/native/GymCard/index.js +8 -0
  205. package/esm/Card/native/PlanCard/Actions.js +27 -0
  206. package/esm/Card/native/PlanCard/Content.js +134 -0
  207. package/esm/Card/native/PlanCard/List.js +113 -0
  208. package/esm/Card/native/PlanCard/PlanCard.js +114 -0
  209. package/esm/Card/native/PlanCard/PlanCard.test.js +100 -0
  210. package/esm/Card/native/PlanCard/Subtitle.js +25 -0
  211. package/esm/Card/native/PlanCard/Tag.js +62 -0
  212. package/esm/Card/native/PlanCard/index.js +18 -0
  213. package/esm/Card/native/index.js +10 -0
  214. package/esm/Checkbox/CheckIcon.js +5 -0
  215. package/esm/Checkbox/Checkbox.theme.js +48 -0
  216. package/esm/Checkbox/CheckboxSwitch.theme.js +70 -0
  217. package/esm/Checkbox/index.js +6 -0
  218. package/esm/Checkbox/index.native.js +6 -0
  219. package/esm/Checkbox/native/Checkbox.js +276 -0
  220. package/esm/Checkbox/native/Checkbox.test.js +108 -0
  221. package/esm/Checkbox/native/Switch.js +166 -0
  222. package/esm/Checkbox/native/Switch.test.js +50 -0
  223. package/esm/Checkbox/native/index.js +6 -0
  224. package/esm/Chips/index.js +5 -0
  225. package/esm/Chips/index.native.js +5 -0
  226. package/esm/Chips/native/Chips.js +182 -0
  227. package/esm/Chips/native/Chips.test.js +108 -0
  228. package/esm/Chips/native/Counter.js +36 -0
  229. package/esm/Chips/native/index.js +5 -0
  230. package/esm/Datepicker/Datepicker.theme.js +12 -0
  231. package/esm/Datepicker/index.js +5 -0
  232. package/esm/Dialog/Dialog.theme.js +23 -0
  233. package/esm/Dialog/index.js +5 -0
  234. package/esm/Divider/Divider.theme.js +5 -0
  235. package/esm/Divider/index.js +5 -0
  236. package/esm/Divider/index.native.js +5 -0
  237. package/esm/Divider/native/Divider.js +33 -0
  238. package/esm/Divider/native/Divider.test.js +44 -0
  239. package/esm/Divider/native/index.js +5 -0
  240. package/esm/Drawer/Drawer.theme.js +15 -0
  241. package/esm/Drawer/index.js +5 -0
  242. package/esm/Dropdown/Dropdown.theme.js +185 -0
  243. package/esm/Dropdown/index.js +5 -0
  244. package/esm/Dropdown/index.native.js +5 -0
  245. package/esm/Dropdown/native/Backdrop.js +157 -0
  246. package/esm/Dropdown/native/Backdrop.test.js +22 -0
  247. package/esm/Dropdown/native/Dropdown.js +220 -0
  248. package/esm/Dropdown/native/Dropdown.test.js +76 -0
  249. package/esm/Dropdown/native/Options.android.js +81 -0
  250. package/esm/Dropdown/native/Options.ios.js +97 -0
  251. package/esm/Dropdown/native/index.js +5 -0
  252. package/esm/Feedback/Feedback.theme.js +9 -0
  253. package/esm/Feedback/index.js +5 -0
  254. package/esm/Grid/Grid.theme.js +23 -0
  255. package/esm/Grid/index.js +7 -0
  256. package/esm/Header/Header.theme.js +14 -0
  257. package/esm/Header/index.js +5 -0
  258. package/esm/Heading/Heading.theme.js +18 -0
  259. package/esm/Heading/index.js +5 -0
  260. package/esm/Icon/Icon.js +172 -0
  261. package/esm/Icon/Icon.theme.js +5 -0
  262. package/esm/Icon/index.js +5 -0
  263. package/esm/Icon/index.native.js +5 -0
  264. package/esm/Icon/native/Icon.test.js +69 -0
  265. package/esm/Icon/native/index.js +5 -0
  266. package/esm/Input/Input.theme.js +66 -0
  267. package/esm/Input/index.js +10 -0
  268. package/esm/Input/index.native.js +9 -0
  269. package/esm/Input/native/Email.js +37 -0
  270. package/esm/Input/native/Email.test.js +14 -0
  271. package/esm/Input/native/Helper.js +87 -0
  272. package/esm/Input/native/Input.js +365 -0
  273. package/esm/Input/native/Input.test.js +132 -0
  274. package/esm/Input/native/Number.js +29 -0
  275. package/esm/Input/native/Number.test.js +14 -0
  276. package/esm/Input/native/Password.js +166 -0
  277. package/esm/Input/native/Password.test.js +109 -0
  278. package/esm/Input/native/Tel.js +36 -0
  279. package/esm/Input/native/Tel.test.js +14 -0
  280. package/esm/Input/native/index.js +12 -0
  281. package/esm/List/List.theme.js +29 -0
  282. package/esm/List/index.js +7 -0
  283. package/esm/List/index.native.js +6 -0
  284. package/esm/List/native/List.js +43 -0
  285. package/esm/List/native/List.test.js +88 -0
  286. package/esm/List/native/ListItem.js +109 -0
  287. package/esm/List/native/index.js +6 -0
  288. package/esm/Menu/Menu.theme.js +43 -0
  289. package/esm/Menu/index.js +11 -0
  290. package/esm/Popover/Popover.theme.js +5 -0
  291. package/esm/Popover/index.js +5 -0
  292. package/esm/Progress/Progress.theme.js +18 -0
  293. package/esm/Progress/index.js +5 -0
  294. package/esm/Progress/index.native.js +5 -0
  295. package/esm/Progress/native/Progress.js +198 -0
  296. package/esm/Progress/native/Progress.test.js +134 -0
  297. package/esm/Progress/native/index.js +5 -0
  298. package/esm/RadioGroup/RadioGroup.theme.js +56 -0
  299. package/esm/RadioGroup/RadioGroupContext.js +6 -0
  300. package/esm/RadioGroup/index.js +7 -0
  301. package/esm/RadioGroup/index.native.js +7 -0
  302. package/esm/RadioGroup/native/Button/RadioButton.js +113 -0
  303. package/esm/RadioGroup/native/Button/RadioButton.test.js +70 -0
  304. package/esm/RadioGroup/native/Radio/Radio.js +171 -0
  305. package/esm/RadioGroup/native/Radio/Radio.test.js +74 -0
  306. package/esm/RadioGroup/native/RadioGroup.js +107 -0
  307. package/esm/RadioGroup/native/RadioGroup.test.js +56 -0
  308. package/esm/RadioGroup/native/index.js +8 -0
  309. package/esm/Rating/Rating.theme.js +11 -0
  310. package/esm/Rating/index.js +5 -0
  311. package/esm/Rating/index.native.js +5 -0
  312. package/esm/Rating/native/Rating.js +197 -0
  313. package/esm/Rating/native/Rating.test.js +91 -0
  314. package/esm/Rating/native/index.js +5 -0
  315. package/esm/Result/Result.theme.js +5 -0
  316. package/esm/Result/index.native.js +11 -0
  317. package/esm/Result/native/Attendances.js +54 -0
  318. package/esm/Result/native/Details.js +130 -0
  319. package/esm/Result/native/Rate.js +39 -0
  320. package/esm/Result/native/Result.js +98 -0
  321. package/esm/Result/native/Result.test.js +128 -0
  322. package/esm/Result/native/ResultButton.js +20 -0
  323. package/esm/Result/native/Tags.js +65 -0
  324. package/esm/Result/native/TinyTextIcon.js +29 -0
  325. package/esm/Result/native/index.js +5 -0
  326. package/esm/Skeleton/Skeleton.theme.js +22 -0
  327. package/esm/Skeleton/index.js +5 -0
  328. package/esm/Skeleton/index.native.js +5 -0
  329. package/esm/Skeleton/native/Skeleton.js +142 -0
  330. package/esm/Skeleton/native/Skeleton.test.js +40 -0
  331. package/esm/Skeleton/native/index.js +5 -0
  332. package/esm/Slider/Slider.theme.js +75 -0
  333. package/esm/Slider/index.js +5 -0
  334. package/esm/Slider/index.native.js +5 -0
  335. package/esm/Slider/native/Label.js +33 -0
  336. package/esm/Slider/native/Marker.js +84 -0
  337. package/esm/Slider/native/Slider.js +169 -0
  338. package/esm/Slider/native/Slider.test.js +105 -0
  339. package/esm/Slider/native/Step.js +27 -0
  340. package/esm/Slider/native/Tooltip.js +177 -0
  341. package/esm/Snackbar/Snackbar.theme.js +61 -0
  342. package/esm/Snackbar/index.js +5 -0
  343. package/esm/Snackbar/index.native.js +5 -0
  344. package/esm/Snackbar/native/Snackbar.js +246 -0
  345. package/esm/Snackbar/native/Snackbar.test.js +108 -0
  346. package/esm/Snackbar/native/SnackbarAnimationWrapper.js +114 -0
  347. package/esm/Snackbar/native/index.js +5 -0
  348. package/esm/Spinner/Spinner.theme.js +5 -0
  349. package/esm/Spinner/index.js +5 -0
  350. package/esm/Stepper/Stepper.theme.js +36 -0
  351. package/esm/Stepper/activeDot.js +5 -0
  352. package/esm/Stepper/index.js +6 -0
  353. package/esm/Stepper/index.native.js +6 -0
  354. package/esm/Stepper/native/Dots.js +75 -0
  355. package/esm/Stepper/native/Line.js +68 -0
  356. package/esm/Stepper/native/Step.js +33 -0
  357. package/esm/Stepper/native/Stepper.js +97 -0
  358. package/esm/Stepper/native/Stepper.test.js +64 -0
  359. package/esm/Stepper/native/index.js +6 -0
  360. package/esm/Tag/Tag.theme.js +38 -0
  361. package/esm/Tag/index.js +7 -0
  362. package/esm/Tag/index.native.js +7 -0
  363. package/esm/Tag/native/Informative.js +127 -0
  364. package/esm/Tag/native/Tag.js +121 -0
  365. package/esm/Tag/native/Tag.test.js +74 -0
  366. package/esm/Tag/native/index.js +5 -0
  367. package/esm/Text/Text.theme.js +73 -0
  368. package/esm/Text/index.js +35 -0
  369. package/esm/Text/index.native.js +35 -0
  370. package/esm/Text/native/Text.js +123 -0
  371. package/esm/Text/native/Text.test.js +150 -0
  372. package/esm/Text/native/index.js +34 -0
  373. package/esm/Text/sharedTextStyle.js +44 -0
  374. package/esm/Text/textStyle.android.js +27 -0
  375. package/esm/Text/textStyle.ios.js +9 -0
  376. package/esm/Text/textStyle.web.js +17 -0
  377. package/esm/TextArea/TextArea.theme.js +6 -0
  378. package/esm/TextArea/index.js +5 -0
  379. package/esm/TextArea/index.native.js +5 -0
  380. package/esm/TextArea/native/TextArea.js +64 -0
  381. package/esm/TextArea/native/TextArea.test.js +12 -0
  382. package/esm/TextArea/native/index.js +5 -0
  383. package/esm/Theme/Provider/Provider.js +75 -0
  384. package/esm/Theme/Provider/index.js +5 -0
  385. package/esm/Theme/Provider/index.native.js +5 -0
  386. package/esm/Theme/Provider/native/index.js +5 -0
  387. package/esm/Theme/Provider/web/FontLoader.js +21 -0
  388. package/esm/Theme/Provider/web/FontLoader.test.js +16 -0
  389. package/esm/Theme/Provider/web/GlobalStyle.js +18 -0
  390. package/esm/Theme/Provider/web/GlobalStyle.test.js +21 -0
  391. package/esm/Theme/Provider/web/ThemeProvider.js +50 -0
  392. package/esm/Theme/Provider/web/expectCssMatches.js +14 -0
  393. package/esm/Theme/Provider/web/index.js +6 -0
  394. package/esm/Theme/helpers/themeGenerator/index.js +5 -0
  395. package/esm/Theme/helpers/themeGenerator/themeGenerator.js +13 -0
  396. package/esm/Theme/helpers/themeGenerator/themeGenerator.test.js +20 -0
  397. package/esm/Theme/helpers/themeReader/base.test.js +73 -0
  398. package/esm/Theme/helpers/themeReader/index.js +26 -0
  399. package/esm/Theme/helpers/themeReader/native/native.test.js +38 -0
  400. package/esm/Theme/helpers/themeReader/web/web.test.js +32 -0
  401. package/esm/Theme/index.js +11 -0
  402. package/esm/Theme/index.native.js +10 -0
  403. package/esm/Theme/theme/componentThemes.js +82 -0
  404. package/esm/Theme/theme/index.js +5 -0
  405. package/esm/Theme/theme/theme.js +81 -0
  406. package/esm/hooks/index.js +3 -0
  407. package/esm/hooks/useCombinedRefs.js +20 -0
  408. package/esm/hooks/useKeyPress.js +26 -0
  409. package/esm/hooks/usePortal.js +39 -0
  410. package/esm/index.js +90 -0
  411. package/esm/index.native.js +58 -0
  412. package/esm/shared/HiddenInput.js +15 -0
  413. package/esm/shared/index.js +16 -0
  414. package/esm/shared/index.native.js +14 -0
  415. package/esm/shared/propTypes/charLength.js +16 -0
  416. package/esm/shared/propTypes/deprecated.js +14 -0
  417. package/esm/shared/propTypes/index.js +12 -0
  418. package/esm/shared/propTypes/limitChildren.js +15 -0
  419. package/esm/shared/propTypes/max.js +15 -0
  420. package/esm/shared/propTypes/typeof.js +17 -0
  421. package/package.json +2 -2
@@ -0,0 +1,33 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
4
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
+ var __spreadValues = (a, b) => {
7
+ for (var prop in b || (b = {}))
8
+ if (__hasOwnProp.call(b, prop))
9
+ __defNormalProp(a, prop, b[prop]);
10
+ if (__getOwnPropSymbols)
11
+ for (var prop of __getOwnPropSymbols(b)) {
12
+ if (__propIsEnum.call(b, prop))
13
+ __defNormalProp(a, prop, b[prop]);
14
+ }
15
+ return a;
16
+ };
17
+ import { jsx } from "react/jsx-runtime";
18
+ import React from "react";
19
+ import { string } from "prop-types";
20
+ import styled from "styled-components";
21
+ const Wrapper = styled.View`
22
+ width: 100%;
23
+ `;
24
+ const Step = (props) => /* @__PURE__ */ jsx(Wrapper, __spreadValues({}, props));
25
+ Step.displayName = "Stepper.Step";
26
+ Step.propTypes = {
27
+ /** Label to be displayed below the stepper dot. */
28
+ label: string.isRequired
29
+ };
30
+ var Step_default = Step;
31
+ export {
32
+ Step_default as default
33
+ };
@@ -0,0 +1,97 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __objRest = (source, exclude) => {
21
+ var target = {};
22
+ for (var prop in source)
23
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source[prop];
25
+ if (source != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
+ target[prop] = source[prop];
29
+ }
30
+ return target;
31
+ };
32
+ import { jsx, jsxs } from "react/jsx-runtime";
33
+ import React from "react";
34
+ import styled from "styled-components";
35
+ import { bool } from "prop-types";
36
+ import { limitChildren, typeOf } from "../../shared";
37
+ import Line from "./Line";
38
+ import Dots from "./Dots";
39
+ import Step from "./Step";
40
+ const Wrapper = styled.View`
41
+ width: 100%;
42
+ `;
43
+ const LineWrapper = styled.View(
44
+ ({
45
+ theme: {
46
+ yoga: {
47
+ components: { stepper }
48
+ }
49
+ }
50
+ }) => `
51
+ width: 100%;
52
+ padding: 0 ${stepper.padding.right}px 0 ${stepper.padding.left}px;
53
+ `
54
+ );
55
+ function Stepper(_a) {
56
+ var _b = _a, { children, activeStep, secondary } = _b, rest = __objRest(_b, ["children", "activeStep", "secondary"]);
57
+ return /* @__PURE__ */ jsxs(Wrapper, __spreadProps(__spreadValues({}, rest), { children: [
58
+ /* @__PURE__ */ jsxs(LineWrapper, { children: [
59
+ /* @__PURE__ */ jsx(
60
+ Line,
61
+ {
62
+ activeStep,
63
+ totalSteps: React.Children.count(children) - 1,
64
+ secondary
65
+ }
66
+ ),
67
+ /* @__PURE__ */ jsx(
68
+ Dots,
69
+ {
70
+ activeStep,
71
+ labels: React.Children.map(children, (child) => child.props.label),
72
+ secondary
73
+ }
74
+ )
75
+ ] }),
76
+ React.Children.toArray(children)[activeStep]
77
+ ] }));
78
+ }
79
+ Stepper.displayName = "Stepper";
80
+ Stepper.propTypes = {
81
+ /** Must be a Stepper.Step component. */
82
+ children: typeOf(Step),
83
+ /** Controls the active step, it receive the index value for showing some
84
+ * step. Starting from 0. */
85
+ activeStep: limitChildren,
86
+ /** Use secondary color */
87
+ secondary: bool
88
+ };
89
+ Stepper.defaultProps = {
90
+ children: void 0,
91
+ activeStep: 0,
92
+ secondary: false
93
+ };
94
+ var Stepper_default = Stepper;
95
+ export {
96
+ Stepper_default as default
97
+ };
@@ -0,0 +1,64 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { Text } from "react-native";
4
+ import { render } from "@testing-library/react-native";
5
+ import ThemeProvider from "../../Theme";
6
+ import Stepper from "..";
7
+ describe("<Stepper />", () => {
8
+ describe("Snapshots", () => {
9
+ it("should match snapshot with first step active", () => {
10
+ const { toJSON } = render(
11
+ /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsxs(Stepper, { activeStep: 0, children: [
12
+ /* @__PURE__ */ jsx(Stepper.Step, { label: "step one", children: /* @__PURE__ */ jsx(Text, { children: "step one content" }) }),
13
+ /* @__PURE__ */ jsx(Stepper.Step, { label: "step two", children: /* @__PURE__ */ jsx(Text, { children: "step two content" }) }),
14
+ /* @__PURE__ */ jsx(Stepper.Step, { label: "step three", children: /* @__PURE__ */ jsx(Text, { children: "step three content" }) })
15
+ ] }) })
16
+ );
17
+ expect(toJSON()).toMatchSnapshot();
18
+ });
19
+ it("should match snapshot with first step active and secondary color", () => {
20
+ const { toJSON } = render(
21
+ /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsxs(Stepper, { activeStep: 0, secondary: true, children: [
22
+ /* @__PURE__ */ jsx(Stepper.Step, { label: "step one", children: /* @__PURE__ */ jsx(Text, { children: "step one content" }) }),
23
+ /* @__PURE__ */ jsx(Stepper.Step, { label: "step two", children: /* @__PURE__ */ jsx(Text, { children: "step two content" }) }),
24
+ /* @__PURE__ */ jsx(Stepper.Step, { label: "step three", children: /* @__PURE__ */ jsx(Text, { children: "step three content" }) })
25
+ ] }) })
26
+ );
27
+ expect(toJSON()).toMatchSnapshot();
28
+ });
29
+ it("should match snapshot with second step active", () => {
30
+ const { toJSON } = render(
31
+ /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsxs(Stepper, { activeStep: 1, children: [
32
+ /* @__PURE__ */ jsx(Stepper.Step, { label: "step one", children: /* @__PURE__ */ jsx(Text, { children: "step one content" }) }),
33
+ /* @__PURE__ */ jsx(Stepper.Step, { label: "step two", children: /* @__PURE__ */ jsx(Text, { children: "step two content" }) }),
34
+ /* @__PURE__ */ jsx(Stepper.Step, { label: "step three", children: /* @__PURE__ */ jsx(Text, { children: "step three content" }) })
35
+ ] }) })
36
+ );
37
+ expect(toJSON()).toMatchSnapshot();
38
+ });
39
+ });
40
+ describe("Steps", () => {
41
+ it("should change the active step", () => {
42
+ const { queryByText, rerender } = render(
43
+ /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsxs(Stepper, { activeStep: 0, children: [
44
+ /* @__PURE__ */ jsx(Stepper.Step, { label: "step one", children: /* @__PURE__ */ jsx(Text, { children: "step one content" }) }),
45
+ /* @__PURE__ */ jsx(Stepper.Step, { label: "step two", children: /* @__PURE__ */ jsx(Text, { children: "step two content" }) }),
46
+ /* @__PURE__ */ jsx(Stepper.Step, { label: "step three", children: /* @__PURE__ */ jsx(Text, { children: "step three content" }) })
47
+ ] }) })
48
+ );
49
+ expect(queryByText("step one content")).toBeTruthy();
50
+ expect(queryByText("step two content")).toBeFalsy();
51
+ expect(queryByText("step three content")).toBeFalsy();
52
+ rerender(
53
+ /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsxs(Stepper, { activeStep: 1, children: [
54
+ /* @__PURE__ */ jsx(Stepper.Step, { label: "step one", children: /* @__PURE__ */ jsx(Text, { children: "step one content" }) }),
55
+ /* @__PURE__ */ jsx(Stepper.Step, { label: "step two", children: /* @__PURE__ */ jsx(Text, { children: "step two content" }) }),
56
+ /* @__PURE__ */ jsx(Stepper.Step, { label: "step three", children: /* @__PURE__ */ jsx(Text, { children: "step three content" }) })
57
+ ] }) })
58
+ );
59
+ expect(queryByText("step one content")).toBeFalsy();
60
+ expect(queryByText("step two content")).toBeTruthy();
61
+ expect(queryByText("step three content")).toBeFalsy();
62
+ });
63
+ });
64
+ });
@@ -0,0 +1,6 @@
1
+ import Stepper from "./Stepper";
2
+ import Step from "./Step";
3
+ export {
4
+ Step,
5
+ Stepper
6
+ };
@@ -0,0 +1,38 @@
1
+ const Tag = ({ spacing, fontSizes, fontWeights, radii, borders }) => ({
2
+ icon: {
3
+ size: {
4
+ default: spacing.small,
5
+ small: spacing.xsmall
6
+ },
7
+ margin: {
8
+ right: "xxxsmall"
9
+ }
10
+ },
11
+ font: {
12
+ size: fontSizes.xsmall,
13
+ lineHeight: fontSizes.medium,
14
+ weight: fontWeights.medium
15
+ },
16
+ padding: {
17
+ default: {
18
+ top: spacing.xxxsmall,
19
+ right: spacing.xxsmall,
20
+ bottom: spacing.xxxsmall,
21
+ left: spacing.xxsmall
22
+ },
23
+ small: {
24
+ top: spacing.zero,
25
+ right: spacing.xxxsmall,
26
+ bottom: spacing.zero,
27
+ left: spacing.xxxsmall
28
+ }
29
+ },
30
+ border: {
31
+ width: borders.small,
32
+ radius: radii.xsmall
33
+ }
34
+ });
35
+ var Tag_theme_default = Tag;
36
+ export {
37
+ Tag_theme_default as default
38
+ };
@@ -0,0 +1,7 @@
1
+ import Tag from "./web/Tag";
2
+ import TagInformative from "./web/Informative";
3
+ Tag.Informative = TagInformative;
4
+ var Tag_default = Tag;
5
+ export {
6
+ Tag_default as default
7
+ };
@@ -0,0 +1,7 @@
1
+ import Tag from "./native/Tag";
2
+ import TagInformative from "./native/Informative";
3
+ Tag.Informative = TagInformative;
4
+ var index_native_default = Tag;
5
+ export {
6
+ index_native_default as default
7
+ };
@@ -0,0 +1,127 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __objRest = (source, exclude) => {
21
+ var target = {};
22
+ for (var prop in source)
23
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source[prop];
25
+ if (source != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
+ target[prop] = source[prop];
29
+ }
30
+ return target;
31
+ };
32
+ import { jsx, jsxs } from "react/jsx-runtime";
33
+ import React from "react";
34
+ import styled, { withTheme } from "styled-components";
35
+ import { func, oneOf, node, bool } from "prop-types";
36
+ import { margins } from "@gympass/yoga-system";
37
+ import { StyledTag, StyledText } from "./Tag";
38
+ import Icon from "../../Icon";
39
+ const Informative = styled(StyledTag)`
40
+ ${({
41
+ variant,
42
+ theme: {
43
+ yoga: {
44
+ colors: {
45
+ text,
46
+ feedback: { [variant]: color = { light: text.secondary } }
47
+ },
48
+ components: { tag }
49
+ }
50
+ }
51
+ }) => `
52
+ background-color: ${color.light};
53
+ border-color: ${color.light};
54
+ border-radius: ${tag.border.radius}px;
55
+ `}
56
+
57
+ ${margins}
58
+ `;
59
+ const Wrapper = styled.View`
60
+ flex-direction: row;
61
+ justify-content: center;
62
+ align-items: center;
63
+ `;
64
+ const StyledTextInformative = styled(StyledText)`
65
+ ${({
66
+ theme: {
67
+ yoga: {
68
+ colors: { text },
69
+ components: { tag }
70
+ }
71
+ }
72
+ }) => `
73
+ color: ${text.primary};
74
+
75
+ font-size: ${tag.font.size}px;
76
+ line-height: ${tag.font.lineHeight}px;
77
+ font-weight: ${tag.font.weight};
78
+ `}
79
+ `;
80
+ const TagInformative = (_a) => {
81
+ var _b = _a, {
82
+ children,
83
+ icon,
84
+ theme: {
85
+ yoga: {
86
+ colors: { text },
87
+ components: { tag }
88
+ }
89
+ },
90
+ small
91
+ } = _b, props = __objRest(_b, [
92
+ "children",
93
+ "icon",
94
+ "theme",
95
+ "small"
96
+ ]);
97
+ return /* @__PURE__ */ jsx(Informative, __spreadProps(__spreadValues({ small }, props), { children: /* @__PURE__ */ jsxs(Wrapper, { children: [
98
+ icon && /* @__PURE__ */ jsx(
99
+ Icon,
100
+ {
101
+ as: icon,
102
+ size: small ? tag.icon.size.small : tag.icon.size.default,
103
+ fill: text.primary,
104
+ marginRight: tag.icon.margin.right
105
+ }
106
+ ),
107
+ /* @__PURE__ */ jsx(StyledTextInformative, { children })
108
+ ] }) }));
109
+ };
110
+ TagInformative.propTypes = {
111
+ /** style the tag following the theme (neutral, success, informative, attention) */
112
+ variant: oneOf(["neutral", "success", "informative", "attention"]),
113
+ icon: func,
114
+ children: node.isRequired,
115
+ /** Can send small to use this variant */
116
+ small: bool
117
+ };
118
+ TagInformative.defaultProps = {
119
+ variant: "neutral",
120
+ icon: void 0,
121
+ small: false
122
+ };
123
+ TagInformative.displayName = "Tag.Informative";
124
+ var Informative_default = withTheme(TagInformative);
125
+ export {
126
+ Informative_default as default
127
+ };
@@ -0,0 +1,121 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __objRest = (source, exclude) => {
21
+ var target = {};
22
+ for (var prop in source)
23
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source[prop];
25
+ if (source != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
+ target[prop] = source[prop];
29
+ }
30
+ return target;
31
+ };
32
+ import { jsx } from "react/jsx-runtime";
33
+ import React from "react";
34
+ import styled from "styled-components";
35
+ import { oneOf, node, bool } from "prop-types";
36
+ import { margins } from "@gympass/yoga-system";
37
+ import Text from "../../Text";
38
+ const StyledTag = styled.View`
39
+ justify-content: center;
40
+ align-items: center;
41
+
42
+ ${({
43
+ variant,
44
+ small,
45
+ theme: {
46
+ yoga: {
47
+ colors: {
48
+ elements,
49
+ feedback: {
50
+ [variant]: borderColor = { dark: elements.selectionAndIcons }
51
+ }
52
+ },
53
+ components: { tag }
54
+ }
55
+ }
56
+ }) => `
57
+ width: auto;
58
+ ${small ? `
59
+ padding:
60
+ ${tag.padding.small.top}
61
+ ${tag.padding.small.right}px
62
+ ${tag.padding.small.bottom}
63
+ ${tag.padding.small.left}px;
64
+ ` : `
65
+ padding:
66
+ ${tag.padding.default.top}px
67
+ ${tag.padding.default.right}px
68
+ ${tag.padding.default.bottom}px
69
+ ${tag.padding.default.left}px;
70
+ `}
71
+
72
+ border-radius: ${tag.border.radius}px;
73
+ border-width: ${tag.border.width}px;
74
+ border-color: ${borderColor.dark};
75
+ `}
76
+
77
+ ${margins}
78
+ `;
79
+ const StyledText = styled((_a) => {
80
+ var _b = _a, { variant } = _b, rest = __objRest(_b, ["variant"]);
81
+ return /* @__PURE__ */ jsx(Text.Medium, __spreadValues({}, rest));
82
+ })`
83
+ ${({
84
+ variant,
85
+ theme: {
86
+ yoga: {
87
+ colors: {
88
+ text,
89
+ feedback: { [variant]: color = { dark: text.secondary } }
90
+ },
91
+ components: { tag }
92
+ }
93
+ }
94
+ }) => `
95
+ color: ${color.dark};
96
+
97
+ font-size: ${tag.font.size}px;
98
+ line-height: ${tag.font.lineHeight}px;
99
+ `}
100
+ `;
101
+ const Tag = (_c) => {
102
+ var _d = _c, { children, variant, small } = _d, props = __objRest(_d, ["children", "variant", "small"]);
103
+ return /* @__PURE__ */ jsx(StyledTag, __spreadProps(__spreadValues({ variant, small }, props), { children: /* @__PURE__ */ jsx(StyledText, { variant, children }) }));
104
+ };
105
+ Tag.propTypes = {
106
+ /** style the tag following the theme (success, informative, attention) */
107
+ variant: oneOf(["", "success", "informative", "attention"]),
108
+ /** Can send small to use this variant */
109
+ small: bool,
110
+ children: node.isRequired
111
+ };
112
+ Tag.defaultProps = {
113
+ variant: "",
114
+ small: false
115
+ };
116
+ var Tag_default = Tag;
117
+ export {
118
+ StyledTag,
119
+ StyledText,
120
+ Tag_default as default
121
+ };
@@ -0,0 +1,74 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { render } from "@testing-library/react-native";
4
+ import { Building } from "@gympass/yoga-icons";
5
+ import { ThemeProvider, Tag } from "../..";
6
+ describe("<Tag />", () => {
7
+ it("should match snapshot", () => {
8
+ const { toJSON } = render(
9
+ /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Tag, { children: "default" }) })
10
+ );
11
+ expect(toJSON()).toMatchSnapshot();
12
+ });
13
+ it("should match snapshot with custom icon and informative type", () => {
14
+ const { toJSON } = render(
15
+ /* @__PURE__ */ jsxs(ThemeProvider, { children: [
16
+ /* @__PURE__ */ jsx(Tag.Informative, { variant: "success", icon: Building, children: "success with custom icon" }),
17
+ /* @__PURE__ */ jsx(Tag.Informative, { variant: "success", icon: Building, small: true, children: "success with custom icon" })
18
+ ] })
19
+ );
20
+ expect(toJSON()).toMatchSnapshot();
21
+ });
22
+ it("should match snapshot with without icon and informative type", () => {
23
+ const { toJSON } = render(
24
+ /* @__PURE__ */ jsxs(ThemeProvider, { children: [
25
+ /* @__PURE__ */ jsx(Tag.Informative, { variant: "success", children: "success without icon" }),
26
+ /* @__PURE__ */ jsx(Tag.Informative, { variant: "success", small: true, children: "success without icon" })
27
+ ] })
28
+ );
29
+ expect(toJSON()).toMatchSnapshot();
30
+ });
31
+ it("should match snapshot with variant prop", () => {
32
+ const { toJSON } = render(
33
+ /* @__PURE__ */ jsxs(ThemeProvider, { children: [
34
+ /* @__PURE__ */ jsx(Tag, { variant: "success", children: "success" }),
35
+ /* @__PURE__ */ jsx(Tag, { variant: "informative", children: "informative" }),
36
+ /* @__PURE__ */ jsx(Tag, { variant: "attention", children: "attention" }),
37
+ /* @__PURE__ */ jsx(Tag, { variant: "attention", small: true, children: "attention small" })
38
+ ] })
39
+ );
40
+ expect(toJSON()).toMatchSnapshot();
41
+ });
42
+ it("should match snapshot with variant prop and informative type", () => {
43
+ const { toJSON } = render(
44
+ /* @__PURE__ */ jsxs(ThemeProvider, { children: [
45
+ /* @__PURE__ */ jsx(Tag.Informative, { variant: "neutral", children: "neutral" }),
46
+ /* @__PURE__ */ jsx(Tag.Informative, { variant: "success", children: "success" }),
47
+ /* @__PURE__ */ jsx(Tag.Informative, { variant: "informative", children: "informative" }),
48
+ /* @__PURE__ */ jsx(Tag.Informative, { variant: "attention", children: "attention" }),
49
+ /* @__PURE__ */ jsx(Tag.Informative, { variant: "attention", small: true, children: "attention small" })
50
+ ] })
51
+ );
52
+ expect(toJSON()).toMatchSnapshot();
53
+ });
54
+ it("should match snapshot with variant and margin prop ", () => {
55
+ const { toJSON } = render(
56
+ /* @__PURE__ */ jsxs(ThemeProvider, { children: [
57
+ /* @__PURE__ */ jsx(Tag, { variant: "success", children: "success" }),
58
+ /* @__PURE__ */ jsx(Tag, { mv: "medium", variant: "informative", children: "informative" }),
59
+ /* @__PURE__ */ jsx(Tag, { variant: "attention", children: "attention" })
60
+ ] })
61
+ );
62
+ expect(toJSON()).toMatchSnapshot();
63
+ });
64
+ it("should match snapshot with variant prop and informative type with margin prop", () => {
65
+ const { toJSON } = render(
66
+ /* @__PURE__ */ jsxs(ThemeProvider, { children: [
67
+ /* @__PURE__ */ jsx(Tag.Informative, { variant: "success", children: "success" }),
68
+ /* @__PURE__ */ jsx(Tag.Informative, { mv: "medium", variant: "informative", children: "informative" }),
69
+ /* @__PURE__ */ jsx(Tag.Informative, { variant: "attention", children: "attention" })
70
+ ] })
71
+ );
72
+ expect(toJSON()).toMatchSnapshot();
73
+ });
74
+ });
@@ -0,0 +1,5 @@
1
+ import Tag from "./Tag";
2
+ var native_default = Tag;
3
+ export {
4
+ native_default as default
5
+ };
@@ -0,0 +1,73 @@
1
+ const Text = ({ fontSizes, lineHeights, fontWeights }) => ({
2
+ h1: {
3
+ fontsize: fontSizes.huge,
4
+ lineHeight: lineHeights.huge,
5
+ fontWeight: fontWeights.medium
6
+ },
7
+ h2: {
8
+ fontsize: fontSizes.xxxlarge,
9
+ lineHeight: lineHeights.xxxlarge,
10
+ fontWeight: fontWeights.medium
11
+ },
12
+ h3: {
13
+ fontsize: fontSizes.xxlarge,
14
+ lineHeight: lineHeights.xxlarge,
15
+ fontWeight: fontWeights.medium
16
+ },
17
+ h4: {
18
+ fontsize: fontSizes.xlarge,
19
+ lineHeight: lineHeights.xlarge,
20
+ fontWeight: fontWeights.medium
21
+ },
22
+ h5: {
23
+ fontsize: fontSizes.large,
24
+ lineHeight: lineHeights.large,
25
+ fontWeight: fontWeights.medium
26
+ },
27
+ p: {
28
+ fontsize: fontSizes.medium,
29
+ lineHeight: lineHeights.medium,
30
+ fontWeight: fontWeights.regular
31
+ },
32
+ small: {
33
+ fontsize: fontSizes.small,
34
+ lineHeight: lineHeights.small,
35
+ fontWeight: fontWeights.regular
36
+ },
37
+ tiny: {
38
+ fontsize: fontSizes.xsmall,
39
+ lineHeight: lineHeights.xsmall,
40
+ fontWeight: fontWeights.regular
41
+ },
42
+ light: {
43
+ fontWeight: fontWeights.light
44
+ },
45
+ regular: {
46
+ fontWeight: fontWeights.regular
47
+ },
48
+ medium: {
49
+ fontWeight: fontWeights.medium
50
+ },
51
+ bold: {
52
+ fontWeight: fontWeights.bold
53
+ },
54
+ black: {
55
+ fontWeight: fontWeights.black
56
+ },
57
+ sectionTitle: {
58
+ fontsize: fontSizes.xsmall,
59
+ lineHeight: lineHeights.xsmall,
60
+ fontWeight: fontWeights.medium,
61
+ letterSpacing: 1,
62
+ textTransform: "uppercase"
63
+ },
64
+ smallestException: {
65
+ fontsize: fontSizes.xxsmall,
66
+ lineHeight: lineHeights.xxsmall,
67
+ fontWeight: fontWeights.regular
68
+ }
69
+ });
70
+ var Text_theme_default = Text;
71
+ export {
72
+ Text_theme_default as default
73
+ };