@gympass/yoga 7.88.0 → 7.88.1

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 (419) 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/index.js +35 -0
  128. package/cjs/Theme/theme/theme.js +109 -0
  129. package/cjs/hooks/index.js +26 -0
  130. package/cjs/hooks/useCombinedRefs.js +44 -0
  131. package/cjs/hooks/useKeyPress.js +50 -0
  132. package/cjs/hooks/usePortal.js +63 -0
  133. package/cjs/index.js +164 -0
  134. package/cjs/index.native.js +122 -0
  135. package/cjs/shared/HiddenInput.js +45 -0
  136. package/cjs/shared/index.js +49 -0
  137. package/cjs/shared/index.native.js +36 -0
  138. package/cjs/shared/propTypes/charLength.js +36 -0
  139. package/cjs/shared/propTypes/deprecated.js +34 -0
  140. package/cjs/shared/propTypes/index.js +50 -0
  141. package/cjs/shared/propTypes/limitChildren.js +35 -0
  142. package/cjs/shared/propTypes/max.js +35 -0
  143. package/cjs/shared/propTypes/typeof.js +47 -0
  144. package/esm/Accordion/Accordion.theme.js +26 -0
  145. package/esm/Accordion/index.js +5 -0
  146. package/esm/ActionRequirement/ActionRequirement.theme.js +5 -0
  147. package/esm/ActionRequirement/index.js +5 -0
  148. package/esm/ActionRequirement/index.native.js +5 -0
  149. package/esm/ActionRequirement/native/ActionRequirement.js +57 -0
  150. package/esm/ActionRequirement/native/ActionRequirement.test.js +49 -0
  151. package/esm/ActionRequirement/native/ActionRequirementStyles.js +69 -0
  152. package/esm/ActionRequirement/native/index.js +13 -0
  153. package/esm/AutoComplete/AutoComplete.theme.js +49 -0
  154. package/esm/AutoComplete/index.js +5 -0
  155. package/esm/Avatar/Avatar.theme.js +5 -0
  156. package/esm/Avatar/index.js +7 -0
  157. package/esm/Avatar/index.native.js +7 -0
  158. package/esm/Avatar/native/Avatar.js +141 -0
  159. package/esm/Avatar/native/Avatar.test.js +39 -0
  160. package/esm/Avatar/native/AvatarCircle.js +54 -0
  161. package/esm/Banner/Banner.theme.js +10 -0
  162. package/esm/Banner/index.js +5 -0
  163. package/esm/Banner/index.native.js +5 -0
  164. package/esm/Banner/native/Banner.js +160 -0
  165. package/esm/Banner/native/Banner.test.js +113 -0
  166. package/esm/Banner/native/index.js +5 -0
  167. package/esm/BottomSheet/BottomSheet.theme.js +24 -0
  168. package/esm/BottomSheet/index.js +5 -0
  169. package/esm/Box/index.js +5 -0
  170. package/esm/Box/index.native.js +5 -0
  171. package/esm/Box/native/Box.js +7 -0
  172. package/esm/Box/native/Box.test.js +21 -0
  173. package/esm/Box/native/index.js +5 -0
  174. package/esm/Button/Button.theme.js +137 -0
  175. package/esm/Button/index.js +13 -0
  176. package/esm/Button/index.native.js +11 -0
  177. package/esm/Button/native/Button.js +198 -0
  178. package/esm/Button/native/Button.test.js +342 -0
  179. package/esm/Button/native/Icon.js +156 -0
  180. package/esm/Button/native/Link.js +64 -0
  181. package/esm/Button/native/Text.js +130 -0
  182. package/esm/Button/native/withTouchable.js +89 -0
  183. package/esm/Card/Card.native.theme.js +44 -0
  184. package/esm/Card/Card.theme.js +157 -0
  185. package/esm/Card/Card.web.theme.js +41 -0
  186. package/esm/Card/index.js +6 -0
  187. package/esm/Card/index.native.js +7 -0
  188. package/esm/Card/native/Card/Actions.js +11 -0
  189. package/esm/Card/native/Card/Card.js +181 -0
  190. package/esm/Card/native/Card/Card.test.js +20 -0
  191. package/esm/Card/native/Card/Content.js +7 -0
  192. package/esm/Card/native/Card/Header.js +7 -0
  193. package/esm/Card/native/Card/index.js +11 -0
  194. package/esm/Card/native/EventCard/EventCard.js +212 -0
  195. package/esm/Card/native/EventCard/EventCard.test.js +73 -0
  196. package/esm/Card/native/EventCard/index.js +5 -0
  197. package/esm/Card/native/GymCard/CheckIn/Avatar.js +47 -0
  198. package/esm/Card/native/GymCard/CheckIn/CheckIn.js +113 -0
  199. package/esm/Card/native/GymCard/CheckIn/CheckIn.test.js +46 -0
  200. package/esm/Card/native/GymCard/CheckIn/Content.js +21 -0
  201. package/esm/Card/native/GymCard/CheckIn/Header.js +24 -0
  202. package/esm/Card/native/GymCard/CheckIn/index.js +5 -0
  203. package/esm/Card/native/GymCard/index.js +8 -0
  204. package/esm/Card/native/PlanCard/Actions.js +27 -0
  205. package/esm/Card/native/PlanCard/Content.js +134 -0
  206. package/esm/Card/native/PlanCard/List.js +113 -0
  207. package/esm/Card/native/PlanCard/PlanCard.js +114 -0
  208. package/esm/Card/native/PlanCard/PlanCard.test.js +100 -0
  209. package/esm/Card/native/PlanCard/Subtitle.js +25 -0
  210. package/esm/Card/native/PlanCard/Tag.js +62 -0
  211. package/esm/Card/native/PlanCard/index.js +18 -0
  212. package/esm/Card/native/index.js +10 -0
  213. package/esm/Checkbox/CheckIcon.js +5 -0
  214. package/esm/Checkbox/Checkbox.theme.js +48 -0
  215. package/esm/Checkbox/CheckboxSwitch.theme.js +70 -0
  216. package/esm/Checkbox/index.js +6 -0
  217. package/esm/Checkbox/index.native.js +6 -0
  218. package/esm/Checkbox/native/Checkbox.js +276 -0
  219. package/esm/Checkbox/native/Checkbox.test.js +108 -0
  220. package/esm/Checkbox/native/Switch.js +166 -0
  221. package/esm/Checkbox/native/Switch.test.js +50 -0
  222. package/esm/Checkbox/native/index.js +6 -0
  223. package/esm/Chips/index.js +5 -0
  224. package/esm/Chips/index.native.js +5 -0
  225. package/esm/Chips/native/Chips.js +182 -0
  226. package/esm/Chips/native/Chips.test.js +108 -0
  227. package/esm/Chips/native/Counter.js +36 -0
  228. package/esm/Chips/native/index.js +5 -0
  229. package/esm/Datepicker/Datepicker.theme.js +12 -0
  230. package/esm/Datepicker/index.js +5 -0
  231. package/esm/Dialog/Dialog.theme.js +23 -0
  232. package/esm/Dialog/index.js +5 -0
  233. package/esm/Divider/Divider.theme.js +5 -0
  234. package/esm/Divider/index.js +5 -0
  235. package/esm/Divider/index.native.js +5 -0
  236. package/esm/Divider/native/Divider.js +33 -0
  237. package/esm/Divider/native/Divider.test.js +44 -0
  238. package/esm/Divider/native/index.js +5 -0
  239. package/esm/Drawer/Drawer.theme.js +15 -0
  240. package/esm/Drawer/index.js +5 -0
  241. package/esm/Dropdown/Dropdown.theme.js +185 -0
  242. package/esm/Dropdown/index.js +5 -0
  243. package/esm/Dropdown/index.native.js +5 -0
  244. package/esm/Dropdown/native/Backdrop.js +157 -0
  245. package/esm/Dropdown/native/Backdrop.test.js +22 -0
  246. package/esm/Dropdown/native/Dropdown.js +220 -0
  247. package/esm/Dropdown/native/Dropdown.test.js +76 -0
  248. package/esm/Dropdown/native/Options.android.js +81 -0
  249. package/esm/Dropdown/native/Options.ios.js +97 -0
  250. package/esm/Dropdown/native/index.js +5 -0
  251. package/esm/Feedback/Feedback.theme.js +9 -0
  252. package/esm/Feedback/index.js +5 -0
  253. package/esm/Grid/Grid.theme.js +23 -0
  254. package/esm/Grid/index.js +7 -0
  255. package/esm/Header/Header.theme.js +14 -0
  256. package/esm/Header/index.js +5 -0
  257. package/esm/Heading/Heading.theme.js +18 -0
  258. package/esm/Heading/index.js +5 -0
  259. package/esm/Icon/Icon.js +172 -0
  260. package/esm/Icon/Icon.theme.js +5 -0
  261. package/esm/Icon/index.js +5 -0
  262. package/esm/Icon/index.native.js +5 -0
  263. package/esm/Icon/native/Icon.test.js +69 -0
  264. package/esm/Icon/native/index.js +5 -0
  265. package/esm/Input/Input.theme.js +66 -0
  266. package/esm/Input/index.js +10 -0
  267. package/esm/Input/index.native.js +9 -0
  268. package/esm/Input/native/Email.js +37 -0
  269. package/esm/Input/native/Email.test.js +14 -0
  270. package/esm/Input/native/Helper.js +87 -0
  271. package/esm/Input/native/Input.js +365 -0
  272. package/esm/Input/native/Input.test.js +132 -0
  273. package/esm/Input/native/Number.js +29 -0
  274. package/esm/Input/native/Number.test.js +14 -0
  275. package/esm/Input/native/Password.js +166 -0
  276. package/esm/Input/native/Password.test.js +109 -0
  277. package/esm/Input/native/Tel.js +36 -0
  278. package/esm/Input/native/Tel.test.js +14 -0
  279. package/esm/Input/native/index.js +12 -0
  280. package/esm/List/List.theme.js +29 -0
  281. package/esm/List/index.js +7 -0
  282. package/esm/List/index.native.js +6 -0
  283. package/esm/List/native/List.js +43 -0
  284. package/esm/List/native/List.test.js +88 -0
  285. package/esm/List/native/ListItem.js +109 -0
  286. package/esm/List/native/index.js +6 -0
  287. package/esm/Menu/Menu.theme.js +43 -0
  288. package/esm/Menu/index.js +11 -0
  289. package/esm/Popover/Popover.theme.js +5 -0
  290. package/esm/Popover/index.js +5 -0
  291. package/esm/Progress/Progress.theme.js +18 -0
  292. package/esm/Progress/index.js +5 -0
  293. package/esm/Progress/index.native.js +5 -0
  294. package/esm/Progress/native/Progress.js +198 -0
  295. package/esm/Progress/native/Progress.test.js +134 -0
  296. package/esm/Progress/native/index.js +5 -0
  297. package/esm/RadioGroup/RadioGroup.theme.js +56 -0
  298. package/esm/RadioGroup/RadioGroupContext.js +6 -0
  299. package/esm/RadioGroup/index.js +7 -0
  300. package/esm/RadioGroup/index.native.js +7 -0
  301. package/esm/RadioGroup/native/Button/RadioButton.js +113 -0
  302. package/esm/RadioGroup/native/Button/RadioButton.test.js +70 -0
  303. package/esm/RadioGroup/native/Radio/Radio.js +171 -0
  304. package/esm/RadioGroup/native/Radio/Radio.test.js +74 -0
  305. package/esm/RadioGroup/native/RadioGroup.js +107 -0
  306. package/esm/RadioGroup/native/RadioGroup.test.js +56 -0
  307. package/esm/RadioGroup/native/index.js +8 -0
  308. package/esm/Rating/Rating.theme.js +11 -0
  309. package/esm/Rating/index.js +5 -0
  310. package/esm/Rating/index.native.js +5 -0
  311. package/esm/Rating/native/Rating.js +197 -0
  312. package/esm/Rating/native/Rating.test.js +91 -0
  313. package/esm/Rating/native/index.js +5 -0
  314. package/esm/Result/Result.theme.js +5 -0
  315. package/esm/Result/index.native.js +11 -0
  316. package/esm/Result/native/Attendances.js +54 -0
  317. package/esm/Result/native/Details.js +130 -0
  318. package/esm/Result/native/Rate.js +39 -0
  319. package/esm/Result/native/Result.js +98 -0
  320. package/esm/Result/native/Result.test.js +128 -0
  321. package/esm/Result/native/ResultButton.js +20 -0
  322. package/esm/Result/native/Tags.js +65 -0
  323. package/esm/Result/native/TinyTextIcon.js +29 -0
  324. package/esm/Result/native/index.js +5 -0
  325. package/esm/Skeleton/Skeleton.theme.js +22 -0
  326. package/esm/Skeleton/index.js +5 -0
  327. package/esm/Skeleton/index.native.js +5 -0
  328. package/esm/Skeleton/native/Skeleton.js +142 -0
  329. package/esm/Skeleton/native/Skeleton.test.js +40 -0
  330. package/esm/Skeleton/native/index.js +5 -0
  331. package/esm/Slider/Slider.theme.js +75 -0
  332. package/esm/Slider/index.js +5 -0
  333. package/esm/Slider/index.native.js +5 -0
  334. package/esm/Slider/native/Label.js +33 -0
  335. package/esm/Slider/native/Marker.js +84 -0
  336. package/esm/Slider/native/Slider.js +169 -0
  337. package/esm/Slider/native/Slider.test.js +105 -0
  338. package/esm/Slider/native/Step.js +27 -0
  339. package/esm/Slider/native/Tooltip.js +177 -0
  340. package/esm/Snackbar/Snackbar.theme.js +61 -0
  341. package/esm/Snackbar/index.js +5 -0
  342. package/esm/Snackbar/index.native.js +5 -0
  343. package/esm/Snackbar/native/Snackbar.js +246 -0
  344. package/esm/Snackbar/native/Snackbar.test.js +108 -0
  345. package/esm/Snackbar/native/SnackbarAnimationWrapper.js +114 -0
  346. package/esm/Snackbar/native/index.js +5 -0
  347. package/esm/Spinner/Spinner.theme.js +5 -0
  348. package/esm/Spinner/index.js +5 -0
  349. package/esm/Stepper/Stepper.theme.js +36 -0
  350. package/esm/Stepper/activeDot.js +5 -0
  351. package/esm/Stepper/index.js +6 -0
  352. package/esm/Stepper/index.native.js +6 -0
  353. package/esm/Stepper/native/Dots.js +75 -0
  354. package/esm/Stepper/native/Line.js +68 -0
  355. package/esm/Stepper/native/Step.js +33 -0
  356. package/esm/Stepper/native/Stepper.js +97 -0
  357. package/esm/Stepper/native/Stepper.test.js +64 -0
  358. package/esm/Stepper/native/index.js +6 -0
  359. package/esm/Tag/Tag.theme.js +38 -0
  360. package/esm/Tag/index.js +7 -0
  361. package/esm/Tag/index.native.js +7 -0
  362. package/esm/Tag/native/Informative.js +127 -0
  363. package/esm/Tag/native/Tag.js +121 -0
  364. package/esm/Tag/native/Tag.test.js +74 -0
  365. package/esm/Tag/native/index.js +5 -0
  366. package/esm/Text/Text.theme.js +73 -0
  367. package/esm/Text/index.js +35 -0
  368. package/esm/Text/index.native.js +35 -0
  369. package/esm/Text/native/Text.js +123 -0
  370. package/esm/Text/native/Text.test.js +150 -0
  371. package/esm/Text/native/index.js +34 -0
  372. package/esm/Text/sharedTextStyle.js +44 -0
  373. package/esm/Text/textStyle.android.js +27 -0
  374. package/esm/Text/textStyle.ios.js +9 -0
  375. package/esm/Text/textStyle.web.js +17 -0
  376. package/esm/TextArea/TextArea.theme.js +6 -0
  377. package/esm/TextArea/index.js +5 -0
  378. package/esm/TextArea/index.native.js +5 -0
  379. package/esm/TextArea/native/TextArea.js +64 -0
  380. package/esm/TextArea/native/TextArea.test.js +12 -0
  381. package/esm/TextArea/native/index.js +5 -0
  382. package/esm/Theme/Provider/Provider.js +75 -0
  383. package/esm/Theme/Provider/index.js +5 -0
  384. package/esm/Theme/Provider/index.native.js +5 -0
  385. package/esm/Theme/Provider/native/index.js +5 -0
  386. package/esm/Theme/Provider/web/FontLoader.js +21 -0
  387. package/esm/Theme/Provider/web/FontLoader.test.js +16 -0
  388. package/esm/Theme/Provider/web/GlobalStyle.js +18 -0
  389. package/esm/Theme/Provider/web/GlobalStyle.test.js +21 -0
  390. package/esm/Theme/Provider/web/ThemeProvider.js +50 -0
  391. package/esm/Theme/Provider/web/expectCssMatches.js +14 -0
  392. package/esm/Theme/Provider/web/index.js +6 -0
  393. package/esm/Theme/helpers/themeGenerator/index.js +5 -0
  394. package/esm/Theme/helpers/themeGenerator/themeGenerator.js +13 -0
  395. package/esm/Theme/helpers/themeGenerator/themeGenerator.test.js +20 -0
  396. package/esm/Theme/helpers/themeReader/base.test.js +73 -0
  397. package/esm/Theme/helpers/themeReader/index.js +26 -0
  398. package/esm/Theme/helpers/themeReader/native/native.test.js +38 -0
  399. package/esm/Theme/helpers/themeReader/web/web.test.js +32 -0
  400. package/esm/Theme/index.js +11 -0
  401. package/esm/Theme/index.native.js +10 -0
  402. package/esm/Theme/theme/index.js +5 -0
  403. package/esm/Theme/theme/theme.js +81 -0
  404. package/esm/hooks/index.js +3 -0
  405. package/esm/hooks/useCombinedRefs.js +20 -0
  406. package/esm/hooks/useKeyPress.js +26 -0
  407. package/esm/hooks/usePortal.js +39 -0
  408. package/esm/index.js +90 -0
  409. package/esm/index.native.js +58 -0
  410. package/esm/shared/HiddenInput.js +15 -0
  411. package/esm/shared/index.js +16 -0
  412. package/esm/shared/index.native.js +14 -0
  413. package/esm/shared/propTypes/charLength.js +16 -0
  414. package/esm/shared/propTypes/deprecated.js +14 -0
  415. package/esm/shared/propTypes/index.js +12 -0
  416. package/esm/shared/propTypes/limitChildren.js +15 -0
  417. package/esm/shared/propTypes/max.js +15 -0
  418. package/esm/shared/propTypes/typeof.js +17 -0
  419. package/package.json +2 -2
@@ -0,0 +1,193 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __getProtoOf = Object.getPrototypeOf;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __objRest = (source, exclude) => {
26
+ var target = {};
27
+ for (var prop in source)
28
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
+ target[prop] = source[prop];
30
+ if (source != null && __getOwnPropSymbols)
31
+ for (var prop of __getOwnPropSymbols(source)) {
32
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
+ target[prop] = source[prop];
34
+ }
35
+ return target;
36
+ };
37
+ var __export = (target, all) => {
38
+ for (var name in all)
39
+ __defProp(target, name, { get: all[name], enumerable: true });
40
+ };
41
+ var __copyProps = (to, from, except, desc) => {
42
+ if (from && typeof from === "object" || typeof from === "function") {
43
+ for (let key of __getOwnPropNames(from))
44
+ if (!__hasOwnProp.call(to, key) && key !== except)
45
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
46
+ }
47
+ return to;
48
+ };
49
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
50
+ // If the importer is in node compatibility mode or this is not an ESM
51
+ // file that has been converted to a CommonJS file using a Babel-
52
+ // compatible transform (i.e. "__esModule" has not been set), then set
53
+ // "default" to the CommonJS "module.exports" for node compatibility.
54
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
55
+ mod
56
+ ));
57
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
58
+ var Icon_exports = {};
59
+ __export(Icon_exports, {
60
+ default: () => Icon_default
61
+ });
62
+ module.exports = __toCommonJS(Icon_exports);
63
+ var import_jsx_runtime = require("react/jsx-runtime");
64
+ var import_react = __toESM(require("react"));
65
+ var import_prop_types = require("prop-types");
66
+ var import_styled_components = require("styled-components");
67
+ var import_lodash = __toESM(require("lodash.get"));
68
+ var import_Box = __toESM(require("../Box"));
69
+ const Icon = (_a) => {
70
+ var _b = _a, {
71
+ as: Component,
72
+ size,
73
+ width = size,
74
+ height = size,
75
+ fill,
76
+ stroke,
77
+ theme,
78
+ title,
79
+ description,
80
+ ariaLabel
81
+ } = _b, props = __objRest(_b, [
82
+ "as",
83
+ "size",
84
+ "width",
85
+ "height",
86
+ "fill",
87
+ "stroke",
88
+ "theme",
89
+ "title",
90
+ "description",
91
+ "ariaLabel"
92
+ ]);
93
+ const componentWithTitle = (propsTitle) => {
94
+ const titleId = `${ariaLabel}-titleId`;
95
+ let ariaDescribedBy = titleId;
96
+ const titleElement = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("title", { id: titleId, children: title }, titleId);
97
+ let svgChildren = [titleElement];
98
+ if (description) {
99
+ const descId = `${ariaLabel}-descId`;
100
+ const descElement = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("desc", { id: descId, children: description }, descId);
101
+ ariaDescribedBy += ` ${descId}`;
102
+ svgChildren = [...svgChildren, descElement];
103
+ }
104
+ const defaultProps = __spreadProps(__spreadValues({}, Component.defaultProps), {
105
+ role: "img",
106
+ "aria-describedby": ariaDescribedBy
107
+ });
108
+ const newSvg = import_react.default.createElement(
109
+ "svg",
110
+ __spreadValues(__spreadValues({}, propsTitle), defaultProps),
111
+ svgChildren,
112
+ Component().props.children
113
+ );
114
+ return newSvg;
115
+ };
116
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
117
+ import_Box.default,
118
+ __spreadProps(__spreadValues(__spreadValues(__spreadValues({
119
+ as: title && ariaLabel ? componentWithTitle : Component,
120
+ width: (0, import_lodash.default)(theme.yoga.spacing, width, width),
121
+ height: (0, import_lodash.default)(theme.yoga.spacing, height, height)
122
+ }, fill && { fill: (0, import_lodash.default)(theme.yoga.colors, fill, fill) }), stroke && { stroke: (0, import_lodash.default)(theme.yoga.colors, stroke, stroke) }), props), {
123
+ "aria-hidden": title ? void 0 : true
124
+ })
125
+ );
126
+ };
127
+ const commonSizes = [
128
+ "xxxsmall",
129
+ "xxsmall",
130
+ "xsmall",
131
+ "small",
132
+ "medium",
133
+ "large",
134
+ "xlarge",
135
+ "xxlarge",
136
+ "xxxlarge",
137
+ "huge",
138
+ "xhuge"
139
+ ];
140
+ Icon.propTypes = {
141
+ /** SVG to be rendered. */
142
+ as: import_prop_types.elementType.isRequired,
143
+ /** Fill color. Use it as one of theme.colors
144
+ * tokens (vibin, neutral, stamina...) */
145
+ fill: import_prop_types.string,
146
+ /** Stroke color. Use it as one of theme.colors
147
+ * tokens (vibin, neutral, stamina...) */
148
+ stroke: import_prop_types.string,
149
+ /** Text that will be displayed in the title element, used for accessibility */
150
+ title: import_prop_types.string,
151
+ /** Text used as element description, used for accessibility.
152
+ * A title must be given in order to use description corretly.
153
+ */
154
+ description: import_prop_types.string,
155
+ /** Text used as identifier for aria-describedby, title and description */
156
+ ariaLabel: (props, propName, componentName) => {
157
+ const { title, ariaLabel } = props;
158
+ if (title && !ariaLabel) {
159
+ return new Error(
160
+ `accessible elements, such as title, must receive the ${propName} property as an identifier.`
161
+ );
162
+ }
163
+ (0, import_prop_types.checkPropTypes)(
164
+ {
165
+ [propName]: import_prop_types.string
166
+ },
167
+ { ariaLabel },
168
+ "prop",
169
+ componentName
170
+ );
171
+ return null;
172
+ },
173
+ /** Horizontal size of the SVG. Use it as one of
174
+ * theme.spacing tokens (xxsmall, small, medium...) */
175
+ width: (0, import_prop_types.oneOfType)([(0, import_prop_types.oneOf)(commonSizes), import_prop_types.string, import_prop_types.number]),
176
+ /** Vertical size of the SVG. Use it as one of
177
+ * theme.spacing tokens (xxsmall, small, medium...) */
178
+ height: (0, import_prop_types.oneOfType)([(0, import_prop_types.oneOf)(commonSizes), import_prop_types.string, import_prop_types.number]),
179
+ /** Size for vertical and horizontal of the SVG.
180
+ * Use it as one of theme.spacing tokens (xxsmall, small, medium...) */
181
+ size: (0, import_prop_types.oneOfType)([(0, import_prop_types.oneOf)(commonSizes), import_prop_types.string, import_prop_types.number])
182
+ };
183
+ Icon.defaultProps = {
184
+ fill: void 0,
185
+ stroke: void 0,
186
+ title: void 0,
187
+ description: void 0,
188
+ ariaLabel: void 0,
189
+ width: void 0,
190
+ height: void 0,
191
+ size: 12
192
+ };
193
+ var Icon_default = (0, import_styled_components.withTheme)(Icon);
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var Icon_theme_exports = {};
20
+ __export(Icon_theme_exports, {
21
+ default: () => Icon_theme_default
22
+ });
23
+ module.exports = __toCommonJS(Icon_theme_exports);
24
+ const Icon = () => ({});
25
+ var Icon_theme_default = Icon;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var Icon_exports = {};
30
+ __export(Icon_exports, {
31
+ default: () => Icon_default
32
+ });
33
+ module.exports = __toCommonJS(Icon_exports);
34
+ var import_web = __toESM(require("./web"));
35
+ var Icon_default = import_web.default;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var index_native_exports = {};
30
+ __export(index_native_exports, {
31
+ default: () => index_native_default
32
+ });
33
+ module.exports = __toCommonJS(index_native_exports);
34
+ var import_native = __toESM(require("./native"));
35
+ var index_native_default = import_native.default;
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var Input_theme_exports = {};
20
+ __export(Input_theme_exports, {
21
+ default: () => Input_theme_default
22
+ });
23
+ module.exports = __toCommonJS(Input_theme_exports);
24
+ const Input = ({
25
+ colors,
26
+ fontSizes,
27
+ fontWeights,
28
+ borders,
29
+ radii,
30
+ spacing
31
+ }) => ({
32
+ width: 320,
33
+ height: 52,
34
+ font: {
35
+ color: {
36
+ default: colors.text.secondary,
37
+ focus: colors.text.primary
38
+ },
39
+ size: fontSizes.small,
40
+ weight: fontWeights.regular
41
+ },
42
+ border: {
43
+ width: borders.small,
44
+ radius: radii.small,
45
+ color: {
46
+ default: colors.elements.lineAndBorders,
47
+ typed: colors.text.primary
48
+ }
49
+ },
50
+ padding: {
51
+ top: spacing.small,
52
+ right: spacing.small,
53
+ bottom: spacing.small,
54
+ left: spacing.small
55
+ },
56
+ label: {
57
+ color: {
58
+ default: colors.text.secondary,
59
+ focus: colors.text.primary
60
+ },
61
+ padding: {
62
+ right: spacing.xxxsmall,
63
+ left: spacing.xxxsmall
64
+ },
65
+ font: {
66
+ size: {
67
+ default: fontSizes.small,
68
+ typed: fontSizes.xsmall
69
+ },
70
+ weight: fontWeights.regular
71
+ }
72
+ },
73
+ helper: {
74
+ color: {
75
+ default: colors.text.secondary,
76
+ focus: colors.text.primary
77
+ },
78
+ margin: {
79
+ top: spacing.xxxsmall
80
+ },
81
+ font: {
82
+ size: fontSizes.xsmall
83
+ }
84
+ }
85
+ });
86
+ var Input_theme_default = Input;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var Input_exports = {};
20
+ __export(Input_exports, {
21
+ default: () => Input_default
22
+ });
23
+ module.exports = __toCommonJS(Input_exports);
24
+ var import_web = require("./web");
25
+ import_web.Input.Password = import_web.Password;
26
+ import_web.Input.Email = import_web.Email;
27
+ import_web.Input.Number = import_web.InputNumber;
28
+ import_web.Input.Tel = import_web.Tel;
29
+ import_web.Input.Phone = import_web.Phone;
30
+ var Input_default = import_web.Input;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var index_native_exports = {};
20
+ __export(index_native_exports, {
21
+ default: () => index_native_default
22
+ });
23
+ module.exports = __toCommonJS(index_native_exports);
24
+ var import_native = require("./native");
25
+ import_native.Input.Password = import_native.Password;
26
+ import_native.Input.Email = import_native.Email;
27
+ import_native.Input.Number = import_native.InputNumber;
28
+ import_native.Input.Tel = import_native.Tel;
29
+ var index_native_default = import_native.Input;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var List_theme_exports = {};
20
+ __export(List_theme_exports, {
21
+ default: () => List_theme_default
22
+ });
23
+ module.exports = __toCommonJS(List_theme_exports);
24
+ const List = ({ spacing, borders, colors }) => ({
25
+ listItem: {
26
+ padding: {
27
+ top: spacing.medium,
28
+ right: spacing.large,
29
+ bottom: spacing.medium,
30
+ left: spacing.large
31
+ },
32
+ small: {
33
+ padding: {
34
+ top: spacing.xxsmall,
35
+ right: spacing.medium,
36
+ bottom: spacing.xxsmall,
37
+ left: spacing.medium
38
+ }
39
+ },
40
+ selectable: {
41
+ color: colors.clear
42
+ }
43
+ },
44
+ border: {
45
+ width: borders.small,
46
+ color: colors.elements.backgroundAndDisabled
47
+ }
48
+ });
49
+ var List_theme_default = List;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var List_exports = {};
20
+ __export(List_exports, {
21
+ default: () => List_default
22
+ });
23
+ module.exports = __toCommonJS(List_exports);
24
+ var import_web = require("./web");
25
+ import_web.List.Item = import_web.ListItem;
26
+ import_web.List.LinkItem = import_web.LinkItem;
27
+ var List_default = import_web.List;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var index_native_exports = {};
20
+ __export(index_native_exports, {
21
+ default: () => index_native_default
22
+ });
23
+ module.exports = __toCommonJS(index_native_exports);
24
+ var import_native = require("./native");
25
+ import_native.List.Item = import_native.ListItem;
26
+ var index_native_default = import_native.List;
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var Menu_theme_exports = {};
20
+ __export(Menu_theme_exports, {
21
+ default: () => Menu_theme_default
22
+ });
23
+ module.exports = __toCommonJS(Menu_theme_exports);
24
+ const Menu = ({ spacing, radii, colors, fontWeights }) => ({
25
+ border: {
26
+ radius: radii.small
27
+ },
28
+ width: {
29
+ min: 176,
30
+ max: 280
31
+ },
32
+ margin: {
33
+ default: spacing.small,
34
+ medium: spacing.medium,
35
+ xxsmall: spacing.xxsmall
36
+ },
37
+ padding: {
38
+ horizontal: spacing.small,
39
+ vertical: spacing.xxsmall
40
+ },
41
+ backgroundColor: {
42
+ white: colors.white,
43
+ disabled: colors.elements.backgroundAndDisabled
44
+ },
45
+ text: {
46
+ default: {
47
+ color: colors.text.primary
48
+ },
49
+ active: {
50
+ color: colors.primary
51
+ },
52
+ disabled: {
53
+ color: colors.text.disabled
54
+ }
55
+ },
56
+ font: {
57
+ weight: fontWeights.medium
58
+ },
59
+ icon: {
60
+ disabled: colors.elements.selectionAndIcons
61
+ }
62
+ });
63
+ var Menu_theme_default = Menu;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var Menu_exports = {};
30
+ __export(Menu_exports, {
31
+ default: () => Menu_default
32
+ });
33
+ module.exports = __toCommonJS(Menu_exports);
34
+ var import_Menu = __toESM(require("./web/Menu"));
35
+ var import_MenuAction = __toESM(require("./web/MenuAction"));
36
+ var import_MenuList = __toESM(require("./web/MenuList"));
37
+ var import_MenuItem = __toESM(require("./web/MenuItem"));
38
+ import_Menu.default.Action = import_MenuAction.default;
39
+ import_Menu.default.List = import_MenuList.default;
40
+ import_Menu.default.Item = import_MenuItem.default;
41
+ var Menu_default = import_Menu.default;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var Popover_theme_exports = {};
20
+ __export(Popover_theme_exports, {
21
+ default: () => Popover_theme_default
22
+ });
23
+ module.exports = __toCommonJS(Popover_theme_exports);
24
+ const Popover = () => ({});
25
+ var Popover_theme_default = Popover;