@via-profit/ui-kit 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1060) hide show
  1. package/Accordion/AccordionActions.d.ts +1 -1
  2. package/Accordion/AccordionActions.js +2 -1
  3. package/Accordion/AccordionContainer.d.ts +1 -1
  4. package/Accordion/AccordionContainer.js +2 -13
  5. package/Accordion/AccordionContent.d.ts +1 -1
  6. package/Accordion/AccordionContent.js +5 -1
  7. package/Accordion/AccordionHeader.d.ts +2 -2
  8. package/Accordion/AccordionHeader.js +8 -2
  9. package/Accordion/index.d.ts +9 -9
  10. package/Accordion/index.js +17 -7
  11. package/Autocomplete/AutocompleteContainer.d.ts +2 -2
  12. package/Autocomplete/AutocompleteContainer.js +17 -7
  13. package/Autocomplete/AutocompleteItem.js +2 -1
  14. package/Autocomplete/context.d.ts +3 -3
  15. package/Autocomplete/index.d.ts +2 -2
  16. package/Avatar/AvatarContainer.d.ts +2 -2
  17. package/Avatar/AvatarPicture.d.ts +2 -2
  18. package/Badge/BadgeBase.d.ts +1 -1
  19. package/Badge/BadgeContainer.d.ts +1 -1
  20. package/Badge/BadgeDeleteButton.d.ts +2 -2
  21. package/Badge/BadgeStyled.js +3 -1
  22. package/Badge/index.d.ts +1 -1
  23. package/Button/ButtonBase.d.ts +10 -2
  24. package/Button/ButtonBase.js +2 -2
  25. package/Button/ButtonContainer.d.ts +20 -2
  26. package/Button/ButtonContainer.js +28 -7
  27. package/Button/ButtonIconWrapper.d.ts +1 -1
  28. package/Button/ButtonStyled.d.ts +3 -2
  29. package/Button/ButtonStyled.js +3 -167
  30. package/Button/ButtonTextWrapper.d.ts +1 -1
  31. package/Button/buttonVariants.d.ts +16 -0
  32. package/Button/buttonVariants.js +169 -0
  33. package/Button/index.d.ts +1 -1
  34. package/ButtonGroup/index.js +4 -3
  35. package/CHANGELOG.md +70 -1
  36. package/Calendar/CalendarComponent.js +17 -7
  37. package/Calendar/CalendarControlButton.d.ts +2 -2
  38. package/Calendar/CalendarPaper.js +2 -1
  39. package/Calendar/CalendarWeekDayLabel.d.ts +2 -2
  40. package/Calendar/CalendarWeekRowButton.d.ts +1 -1
  41. package/Calendar/IconChevronDown.js +17 -7
  42. package/Calendar/index.d.ts +1 -1
  43. package/Calendar/index.js +17 -7
  44. package/Checkbox/CheckboxAsterisk.js +17 -7
  45. package/Checkbox/CheckboxBox.d.ts +2 -2
  46. package/Checkbox/CheckboxBox.js +3 -1
  47. package/Checkbox/CheckboxContainer.d.ts +2 -2
  48. package/Checkbox/CheckboxErrorText.js +17 -7
  49. package/Checkbox/index.d.ts +10 -10
  50. package/Checkbox/useCheckboxColor.d.ts +1 -1
  51. package/ClickOutside/index.js +5 -2
  52. package/DatePicker/index.d.ts +1 -1
  53. package/ErrorBoundary/RenderError.d.ts +2 -0
  54. package/ErrorBoundary/RenderError.js +20 -13
  55. package/ErrorBoundary/index.d.ts +20 -7
  56. package/ErrorBoundary/index.js +7 -8
  57. package/Grid/index.d.ts +17 -5
  58. package/Grid/index.js +7 -2
  59. package/LoadingIndicator/LoadingOverlay.js +17 -7
  60. package/LoadingIndicator/Spinner.js +17 -7
  61. package/LoadingIndicator/SpinnerCircle.d.ts +2 -3
  62. package/Menu/MenuContainer.d.ts +2 -2
  63. package/Menu/MenuContainer.js +18 -8
  64. package/Menu/MenuItem.js +5 -1
  65. package/Menu/MenuList.js +2 -1
  66. package/Menu/context.d.ts +1 -1
  67. package/Menu/index.d.ts +1 -1
  68. package/Modal/BaseModal/ModalInner.js +2 -0
  69. package/Modal/BaseModal/ModalWrapper.js +30 -37
  70. package/Modal/BaseModal/context.d.ts +1 -1
  71. package/Modal/ConfirmBox/ConfirmBoxContent.js +5 -1
  72. package/Modal/ConfirmBox/ConfirmBoxFooter.js +5 -1
  73. package/Modal/ConfirmBox/ConfirmBoxHeader.js +5 -1
  74. package/Modal/Dialog/DialogInner.js +5 -1
  75. package/Modal/Dialog/index.js +17 -7
  76. package/Modal/Drawer/DrawerCloseIcon.js +17 -7
  77. package/Modal/Drawer/DrawerFooter.js +5 -1
  78. package/Modal/Drawer/DrawerHeader.d.ts +4 -4
  79. package/Modal/Drawer/DrawerHeader.js +5 -1
  80. package/Modal/Drawer/index.js +17 -7
  81. package/Modal/MessageBox/MessageBoxContent.js +5 -1
  82. package/Modal/MessageBox/MessageBoxFooter.js +5 -1
  83. package/Modal/MessageBox/MessageBoxHeader.js +5 -1
  84. package/Modal/MessageBox/index.js +17 -7
  85. package/Modal/index.js +17 -7
  86. package/Pagination/PaginationContainer.d.ts +9 -0
  87. package/Pagination/PaginationContainer.js +34 -0
  88. package/Pagination/PaginationGap.d.ts +4 -0
  89. package/Pagination/PaginationGap.js +22 -0
  90. package/Pagination/PaginationIcons.d.ts +6 -0
  91. package/Pagination/PaginationIcons.js +21 -0
  92. package/Pagination/PaginationItem.d.ts +44 -0
  93. package/Pagination/PaginationItem.js +59 -0
  94. package/Pagination/getPaginationItems.d.ts +22 -0
  95. package/Pagination/getPaginationItems.js +42 -0
  96. package/Pagination/index.d.ts +104 -0
  97. package/Pagination/index.js +98 -0
  98. package/Pagination/usePagination.d.ts +105 -0
  99. package/Pagination/usePagination.js +66 -0
  100. package/PhoneField/CountryFlagComponent.d.ts +1 -1
  101. package/PhoneField/CountryFlagComponent.js +1 -1
  102. package/PhoneField/UnknownFlag.d.ts +1 -2
  103. package/PhoneField/UnknownFlag.js +2 -2
  104. package/PhoneField/flags/BY.js +49 -0
  105. package/PhoneField/flags/CN.js +45 -0
  106. package/PhoneField/flags/IL.js +45 -0
  107. package/PhoneField/flags/JP.js +44 -0
  108. package/PhoneField/flags/KZ.js +45 -0
  109. package/PhoneField/flags/RU.js +46 -0
  110. package/PhoneField/flags/UA.js +44 -0
  111. package/PhoneField/flags/US.js +48 -0
  112. package/PhoneField/flags/Unknown.js +52 -0
  113. package/PhoneField/templates.d.ts +2 -2
  114. package/PhoneField/templates.js +8 -8
  115. package/PhoneField/usePhoneUtils.js +1 -1
  116. package/Radio/RadioBox.d.ts +1 -1
  117. package/Radio/RadioBox.js +3 -1
  118. package/Radio/RadioContainer.d.ts +2 -2
  119. package/Radio/index.d.ts +5 -5
  120. package/Radio/useRadioColor.d.ts +1 -1
  121. package/RadioGroup/RadioGroupAsterisk.js +17 -7
  122. package/RadioGroup/RadioGroupErrorText.js +17 -7
  123. package/RadioGroup/RadioGroupItems.d.ts +1 -1
  124. package/RadioGroup/index.d.ts +11 -11
  125. package/Selectbox/SelectboxButton.d.ts +4 -4
  126. package/Selectbox/SelectboxButton.js +27 -10
  127. package/Selectbox/SelectboxButtonWrapper.d.ts +2 -2
  128. package/Selectbox/SelectboxButtonWrapper.js +19 -10
  129. package/Selectbox/SelectboxMenu.d.ts +2 -2
  130. package/Selectbox/SelectboxMenu.js +17 -7
  131. package/Selectbox/index.d.ts +2 -2
  132. package/Selectbox/index.js +17 -7
  133. package/Slider/SliderContainer.d.ts +19 -0
  134. package/Slider/SliderContainer.js +50 -0
  135. package/Slider/SliderMark.d.ts +25 -0
  136. package/Slider/SliderMark.js +40 -0
  137. package/Slider/SliderMarkLabel.d.ts +25 -0
  138. package/Slider/SliderMarkLabel.js +34 -0
  139. package/Slider/SliderRail.d.ts +13 -0
  140. package/Slider/SliderRail.js +49 -0
  141. package/Slider/SliderThumb.d.ts +37 -0
  142. package/Slider/SliderThumb.js +71 -0
  143. package/Slider/SliderTrack.d.ts +29 -0
  144. package/Slider/SliderTrack.js +48 -0
  145. package/Slider/index.d.ts +134 -0
  146. package/Slider/index.js +249 -0
  147. package/Slider/useSliderColor.d.ts +6 -0
  148. package/Slider/useSliderColor.js +33 -0
  149. package/Slider/utils.d.ts +10 -0
  150. package/Slider/utils.js +31 -0
  151. package/Stack/index.d.ts +18 -6
  152. package/Stack/index.js +7 -2
  153. package/Surface/SurfaceContainer.d.ts +3 -3
  154. package/Surface/SurfaceContainer.js +2 -1
  155. package/Surface/SurfaceContent.d.ts +2 -2
  156. package/Surface/SurfaceContent.js +18 -11
  157. package/Surface/SurfaceFooter.d.ts +2 -2
  158. package/Surface/SurfaceFooter.js +5 -1
  159. package/Surface/SurfaceHeader.d.ts +2 -2
  160. package/Surface/SurfaceHeader.js +6 -2
  161. package/Surface/SurfaceSubheader.d.ts +2 -2
  162. package/Surface/SurfaceSubheader.js +6 -2
  163. package/Surface/index.d.ts +10 -10
  164. package/Surface/index.js +17 -7
  165. package/Swiper/Swiper.d.ts +15 -15
  166. package/Swiper/Swiper.js +17 -7
  167. package/Swiper/SwiperContainer.d.ts +2 -2
  168. package/Swiper/SwiperSlide.js +17 -7
  169. package/Swiper/SwiperSlidesRenderer.js +17 -7
  170. package/Swiper/SwiperTrack.d.ts +2 -2
  171. package/Swiper/SwiperTrack.js +17 -7
  172. package/Swiper/SwiperWrapper.d.ts +2 -2
  173. package/Swiper/SwiperWrapper.js +19 -7
  174. package/Switch/SwitchAsterisk.js +17 -7
  175. package/Switch/SwitchContainer.d.ts +2 -2
  176. package/Switch/SwitchDot.d.ts +1 -1
  177. package/Switch/SwitchDot.js +2 -4
  178. package/Switch/SwitchErrorText.js +17 -7
  179. package/Switch/SwitchToggleWrapper.js +2 -0
  180. package/Switch/SwitchTrack.d.ts +1 -1
  181. package/Switch/index.d.ts +9 -9
  182. package/Switch/useSwitchColor.d.ts +1 -1
  183. package/Table/Table.d.ts +1 -1
  184. package/Table/Table.js +2 -1
  185. package/Table/TableCaption.js +5 -1
  186. package/Table/TableCell.js +6 -2
  187. package/Table/TableFooter.js +2 -1
  188. package/Table/TableHeaderCell.js +6 -2
  189. package/Tabs/Tab.d.ts +14 -0
  190. package/Tabs/Tab.js +131 -0
  191. package/Tabs/TabList.d.ts +4 -0
  192. package/Tabs/TabList.js +104 -0
  193. package/Tabs/TabPanel.d.ts +26 -0
  194. package/Tabs/TabPanel.js +51 -0
  195. package/Tabs/Tabs.d.ts +79 -0
  196. package/Tabs/Tabs.js +80 -0
  197. package/Tabs/context.d.ts +23 -0
  198. package/Tabs/context.js +16 -0
  199. package/Tabs/index.d.ts +10 -0
  200. package/Tabs/index.js +14 -0
  201. package/Tabs/useTabsColor.d.ts +6 -0
  202. package/Tabs/useTabsColor.js +33 -0
  203. package/TextArea/TextAreaIconWrapper.d.ts +3 -3
  204. package/TextArea/TextAreaIconWrapper.js +17 -7
  205. package/TextArea/TextAreaInput.js +23 -8
  206. package/TextArea/index.js +17 -7
  207. package/TextField/TextFieldContainer.js +17 -7
  208. package/TextField/TextFieldErrorText.js +17 -7
  209. package/TextField/TextFieldIconWrapper.d.ts +3 -3
  210. package/TextField/TextFieldIconWrapper.js +17 -7
  211. package/TextField/TextFieldInput.js +23 -8
  212. package/TextField/TextFieldInputWrapper.d.ts +5 -5
  213. package/TextField/TextFieldInputWrapper.js +22 -9
  214. package/TextField/TextFieldLabel.js +17 -7
  215. package/TextField/TextFieldLabelAsterisk.js +17 -7
  216. package/TextField/index.d.ts +1 -1
  217. package/TextField/index.js +17 -7
  218. package/ThemeProvider/createTheme.js +8 -2
  219. package/ThemeProvider/index.d.ts +87 -1
  220. package/ThemeProvider/index.js +1 -0
  221. package/ThemeProvider/tokens.d.ts +66 -0
  222. package/ThemeProvider/tokens.js +90 -0
  223. package/Toast/ToastAction.d.ts +4 -0
  224. package/Toast/ToastAction.js +32 -0
  225. package/Toast/ToastCard.d.ts +20 -0
  226. package/Toast/ToastCard.js +89 -0
  227. package/Toast/ToastCloseButton.d.ts +4 -0
  228. package/Toast/ToastCloseButton.js +48 -0
  229. package/Toast/ToastContainer.d.ts +88 -0
  230. package/Toast/ToastContainer.js +154 -0
  231. package/Toast/ToastIcon.d.ts +11 -0
  232. package/Toast/ToastIcon.js +71 -0
  233. package/Toast/ToastItem.d.ts +29 -0
  234. package/Toast/ToastItem.js +120 -0
  235. package/Toast/index.d.ts +6 -0
  236. package/Toast/index.js +11 -0
  237. package/Toast/store.d.ts +155 -0
  238. package/Toast/store.js +75 -0
  239. package/Tooltip/TooltipArrow.d.ts +15 -0
  240. package/Tooltip/TooltipArrow.js +62 -0
  241. package/Tooltip/TooltipContainer.d.ts +4 -0
  242. package/Tooltip/TooltipContainer.js +54 -0
  243. package/Tooltip/index.d.ts +78 -0
  244. package/Tooltip/index.js +195 -0
  245. package/Typography/Base.d.ts +2 -3
  246. package/Typography/Blockquote.d.ts +2 -3
  247. package/Typography/List.d.ts +6 -7
  248. package/Typography/Paragraph.d.ts +1 -1
  249. package/Typography/Paragraph.js +17 -7
  250. package/Typography/SectionDescription.d.ts +2 -3
  251. package/Typography/U.d.ts +2 -3
  252. package/esm/Accordion/AccordionActions.js +27 -0
  253. package/esm/Accordion/AccordionContainer.js +45 -0
  254. package/esm/Accordion/AccordionContent.js +43 -0
  255. package/esm/Accordion/AccordionHeader.js +71 -0
  256. package/esm/Accordion/Chevron.js +8 -0
  257. package/esm/Accordion/index.js +52 -0
  258. package/esm/Autocomplete/AutocompleteContainer.js +403 -0
  259. package/esm/Autocomplete/AutocompleteItem.js +39 -0
  260. package/esm/Autocomplete/AutocompleteTagsInput.js +59 -0
  261. package/esm/Autocomplete/IconClear.js +4 -0
  262. package/esm/Autocomplete/context.js +58 -0
  263. package/esm/Autocomplete/index.js +32 -0
  264. package/esm/Avatar/AvatarBase.js +30 -0
  265. package/esm/Avatar/AvatarContainer.js +34 -0
  266. package/esm/Avatar/AvatarIconWrapper.js +25 -0
  267. package/esm/Avatar/AvatarOnlineBadge.js +31 -0
  268. package/esm/Avatar/AvatarPicture.js +69 -0
  269. package/esm/Avatar/AvatarTextWrapper.js +31 -0
  270. package/esm/Avatar/index.js +107 -0
  271. package/esm/Badge/BadgeBase.js +48 -0
  272. package/esm/Badge/BadgeContainer.js +38 -0
  273. package/esm/Badge/BadgeDeleteButton.js +87 -0
  274. package/esm/Badge/BadgeIconWrapper.js +24 -0
  275. package/esm/Badge/BadgeOutlined.js +7 -0
  276. package/esm/Badge/BadgeStandard.js +7 -0
  277. package/esm/Badge/BadgeStyled.js +122 -0
  278. package/esm/Badge/BadgeTextWrapper.js +25 -0
  279. package/esm/Badge/index.js +5 -0
  280. package/esm/Button/ButtonBase.js +37 -0
  281. package/esm/Button/ButtonContainer.js +73 -0
  282. package/esm/Button/ButtonIconWrapper.js +32 -0
  283. package/esm/Button/ButtonOutlined.js +7 -0
  284. package/esm/Button/ButtonPlain.js +7 -0
  285. package/esm/Button/ButtonStandard.js +7 -0
  286. package/esm/Button/ButtonStyled.js +36 -0
  287. package/esm/Button/ButtonTextWrapper.js +30 -0
  288. package/esm/Button/buttonVariants.js +162 -0
  289. package/esm/Button/index.js +5 -0
  290. package/esm/ButtonGroup/ButtonGroupContext.js +6 -0
  291. package/esm/ButtonGroup/index.js +128 -0
  292. package/esm/Calendar/CalendarBody.js +25 -0
  293. package/esm/Calendar/CalendarCell.js +62 -0
  294. package/esm/Calendar/CalendarComponent.js +665 -0
  295. package/esm/Calendar/CalendarControlButton.js +39 -0
  296. package/esm/Calendar/CalendarDateContainer.js +24 -0
  297. package/esm/Calendar/CalendarDayBadge.js +70 -0
  298. package/esm/Calendar/CalendarEmptyCell.js +32 -0
  299. package/esm/Calendar/CalendarFooter.js +37 -0
  300. package/esm/Calendar/CalendarHeader.js +29 -0
  301. package/esm/Calendar/CalendarHeading.js +28 -0
  302. package/esm/Calendar/CalendarIconNext.js +4 -0
  303. package/esm/Calendar/CalendarIconPrev.js +4 -0
  304. package/esm/Calendar/CalendarMonthCell.js +28 -0
  305. package/esm/Calendar/CalendarMonthsSelector.js +25 -0
  306. package/esm/Calendar/CalendarPaper.js +29 -0
  307. package/esm/Calendar/CalendarSubheading.js +25 -0
  308. package/esm/Calendar/CalendarToolbar.js +26 -0
  309. package/esm/Calendar/CalendarWeekDayCell.js +27 -0
  310. package/esm/Calendar/CalendarWeekDayLabel.js +14 -0
  311. package/esm/Calendar/CalendarWeekDayWeekNumber.js +33 -0
  312. package/esm/Calendar/CalendarWeekDaysBar.js +34 -0
  313. package/esm/Calendar/CalendarWeekRow.js +25 -0
  314. package/esm/Calendar/CalendarWeekRowButton.js +26 -0
  315. package/esm/Calendar/CalendarYearCell.js +28 -0
  316. package/esm/Calendar/CalendarYearsSelector.js +59 -0
  317. package/esm/Calendar/IconChevronDown.js +6 -0
  318. package/esm/Calendar/index.js +8 -0
  319. package/esm/Calendar/use-calendar.js +155 -0
  320. package/esm/Checkbox/CheckboxAsterisk.js +25 -0
  321. package/esm/Checkbox/CheckboxBox.js +85 -0
  322. package/esm/Checkbox/CheckboxContainer.js +33 -0
  323. package/esm/Checkbox/CheckboxErrorText.js +48 -0
  324. package/esm/Checkbox/CheckboxIcon.js +52 -0
  325. package/esm/Checkbox/CheckboxTextWrapper.js +24 -0
  326. package/esm/Checkbox/CheckboxWrapper.js +24 -0
  327. package/esm/Checkbox/index.js +66 -0
  328. package/esm/Checkbox/useCheckboxColor.js +28 -0
  329. package/esm/ClickOutside/index.js +55 -0
  330. package/esm/Color/Color.js +324 -0
  331. package/esm/Color/ColorGenerator.js +137 -0
  332. package/esm/Color/ColorParser.js +320 -0
  333. package/esm/Color/index.js +5 -0
  334. package/esm/DatePicker/DatePickerIcon.js +4 -0
  335. package/esm/DatePicker/index.js +176 -0
  336. package/esm/DatePicker/useDatePickerFormat.js +121 -0
  337. package/esm/ErrorBoundary/RenderError.js +49 -0
  338. package/esm/ErrorBoundary/index.js +25 -0
  339. package/esm/Grid/index.js +43 -0
  340. package/esm/Highlighted/HighlightedContainer.js +17 -0
  341. package/esm/Highlighted/HighlightedMark.js +25 -0
  342. package/esm/Highlighted/HighlightedText.js +17 -0
  343. package/esm/Highlighted/index.js +50 -0
  344. package/esm/Image/index.js +40 -0
  345. package/esm/LoadingIndicator/LoadingOverlay.js +35 -0
  346. package/esm/LoadingIndicator/Spinner.js +53 -0
  347. package/esm/LoadingIndicator/SpinnerCircle.js +27 -0
  348. package/esm/LoadingIndicator/index.js +6 -0
  349. package/esm/MaskedField/index.js +74 -0
  350. package/esm/MaskedField/templates.js +80 -0
  351. package/esm/MaskedField/useMasked.js +106 -0
  352. package/esm/Menu/MenuContainer.js +365 -0
  353. package/esm/Menu/MenuItem.js +68 -0
  354. package/esm/Menu/MenuList.js +81 -0
  355. package/esm/Menu/context.js +41 -0
  356. package/esm/Menu/index.js +10 -0
  357. package/esm/Modal/BaseModal/ModalInner.js +42 -0
  358. package/esm/Modal/BaseModal/ModalInnerContainer.js +38 -0
  359. package/esm/Modal/BaseModal/ModalOverlay.js +28 -0
  360. package/esm/Modal/BaseModal/ModalWrapper.js +165 -0
  361. package/esm/Modal/BaseModal/RenderModal.js +31 -0
  362. package/esm/Modal/BaseModal/context.js +41 -0
  363. package/esm/Modal/BaseModal/index.js +49 -0
  364. package/esm/Modal/BaseModal/useDialogID.js +7 -0
  365. package/esm/Modal/ConfirmBox/ConfirmBoxContainer.js +27 -0
  366. package/esm/Modal/ConfirmBox/ConfirmBoxContent.js +26 -0
  367. package/esm/Modal/ConfirmBox/ConfirmBoxFooter.js +45 -0
  368. package/esm/Modal/ConfirmBox/ConfirmBoxHeader.js +30 -0
  369. package/esm/Modal/ConfirmBox/index.js +46 -0
  370. package/esm/Modal/Dialog/DialogInner.js +26 -0
  371. package/esm/Modal/Dialog/index.js +30 -0
  372. package/esm/Modal/Drawer/DrawerCloseIcon.js +12 -0
  373. package/esm/Modal/Drawer/DrawerContainer.js +26 -0
  374. package/esm/Modal/Drawer/DrawerContent.js +26 -0
  375. package/esm/Modal/Drawer/DrawerFooter.js +25 -0
  376. package/esm/Modal/Drawer/DrawerHeader.js +60 -0
  377. package/esm/Modal/Drawer/DrawerInner.js +145 -0
  378. package/esm/Modal/Drawer/index.js +49 -0
  379. package/esm/Modal/MessageBox/MessageBoxContainer.js +23 -0
  380. package/esm/Modal/MessageBox/MessageBoxContent.js +26 -0
  381. package/esm/Modal/MessageBox/MessageBoxFooter.js +44 -0
  382. package/esm/Modal/MessageBox/MessageBoxHeader.js +30 -0
  383. package/esm/Modal/MessageBox/index.js +47 -0
  384. package/esm/Modal/index.js +30 -0
  385. package/esm/NoSSR/index.js +10 -0
  386. package/esm/Pagination/PaginationContainer.js +29 -0
  387. package/esm/Pagination/PaginationGap.js +17 -0
  388. package/esm/Pagination/PaginationIcons.js +15 -0
  389. package/esm/Pagination/PaginationItem.js +54 -0
  390. package/esm/Pagination/getPaginationItems.js +40 -0
  391. package/esm/Pagination/index.js +77 -0
  392. package/esm/Pagination/usePagination.js +61 -0
  393. package/esm/PhoneField/CountryFlagComponent.js +39 -0
  394. package/esm/PhoneField/UnknownFlag.js +6 -0
  395. package/esm/PhoneField/flags/BY.js +11 -0
  396. package/esm/PhoneField/flags/CN.js +7 -0
  397. package/esm/PhoneField/flags/IL.js +7 -0
  398. package/esm/PhoneField/flags/JP.js +6 -0
  399. package/esm/PhoneField/flags/KZ.js +7 -0
  400. package/esm/PhoneField/flags/RU.js +8 -0
  401. package/esm/PhoneField/flags/UA.js +6 -0
  402. package/esm/PhoneField/flags/US.js +10 -0
  403. package/esm/PhoneField/flags/Unknown.js +14 -0
  404. package/esm/PhoneField/flags/isLabelled.js +5 -0
  405. package/esm/PhoneField/index.js +71 -0
  406. package/esm/PhoneField/templates.js +39 -0
  407. package/esm/PhoneField/usePhoneUtils.js +156 -0
  408. package/esm/Popper/Popper.js +97 -0
  409. package/esm/Popper/PopperContainer.js +27 -0
  410. package/esm/Popper/index.js +5 -0
  411. package/esm/Popper/usePopper.js +514 -0
  412. package/esm/Radio/RadioBox.js +97 -0
  413. package/esm/Radio/RadioContainer.js +33 -0
  414. package/esm/Radio/RadioTextWrapper.js +24 -0
  415. package/esm/Radio/index.js +44 -0
  416. package/esm/Radio/useRadioColor.js +28 -0
  417. package/esm/RadioGroup/RadioGroupAsterisk.js +25 -0
  418. package/esm/RadioGroup/RadioGroupContainer.js +31 -0
  419. package/esm/RadioGroup/RadioGroupContext.js +6 -0
  420. package/esm/RadioGroup/RadioGroupErrorText.js +48 -0
  421. package/esm/RadioGroup/RadioGroupItems.js +25 -0
  422. package/esm/RadioGroup/RadioGroupLegend.js +32 -0
  423. package/esm/RadioGroup/index.js +57 -0
  424. package/esm/Selectbox/SelectboxButton.js +59 -0
  425. package/esm/Selectbox/SelectboxButtonWrapper.js +33 -0
  426. package/esm/Selectbox/SelectboxChevronIcon.js +23 -0
  427. package/esm/Selectbox/SelectboxContainer.js +23 -0
  428. package/esm/Selectbox/SelectboxMenu.js +30 -0
  429. package/esm/Selectbox/index.js +128 -0
  430. package/esm/Slider/SliderContainer.js +45 -0
  431. package/esm/Slider/SliderMark.js +35 -0
  432. package/esm/Slider/SliderMarkLabel.js +29 -0
  433. package/esm/Slider/SliderRail.js +44 -0
  434. package/esm/Slider/SliderThumb.js +66 -0
  435. package/esm/Slider/SliderTrack.js +43 -0
  436. package/esm/Slider/index.js +244 -0
  437. package/esm/Slider/useSliderColor.js +28 -0
  438. package/esm/Slider/utils.js +25 -0
  439. package/esm/Stack/index.js +38 -0
  440. package/esm/Surface/SurfaceContainer.js +41 -0
  441. package/esm/Surface/SurfaceContent.js +41 -0
  442. package/esm/Surface/SurfaceFooter.js +30 -0
  443. package/esm/Surface/SurfaceHeader.js +29 -0
  444. package/esm/Surface/SurfaceSubheader.js +28 -0
  445. package/esm/Surface/index.js +43 -0
  446. package/esm/Swiper/Swiper.js +518 -0
  447. package/esm/Swiper/SwiperContainer.js +7 -0
  448. package/esm/Swiper/SwiperSlide.js +29 -0
  449. package/esm/Swiper/SwiperSlidesRenderer.js +52 -0
  450. package/esm/Swiper/SwiperTrack.js +31 -0
  451. package/esm/Swiper/SwiperWrapper.js +41 -0
  452. package/esm/Swiper/index.js +7 -0
  453. package/esm/Switch/SwitchAsterisk.js +25 -0
  454. package/esm/Switch/SwitchContainer.js +47 -0
  455. package/esm/Switch/SwitchDot.js +98 -0
  456. package/esm/Switch/SwitchErrorText.js +48 -0
  457. package/esm/Switch/SwitchTextWrapper.js +25 -0
  458. package/esm/Switch/SwitchToggleWrapper.js +53 -0
  459. package/esm/Switch/SwitchTrack.js +39 -0
  460. package/esm/Switch/SwitchWrapper.js +26 -0
  461. package/esm/Switch/index.js +61 -0
  462. package/esm/Switch/useSwitchColor.js +28 -0
  463. package/esm/Table/Table.js +41 -0
  464. package/esm/Table/TableBody.js +27 -0
  465. package/esm/Table/TableCaption.js +28 -0
  466. package/esm/Table/TableCell.js +27 -0
  467. package/esm/Table/TableFooter.js +33 -0
  468. package/esm/Table/TableHeader.js +29 -0
  469. package/esm/Table/TableHeaderCell.js +33 -0
  470. package/esm/Table/TableRow.js +21 -0
  471. package/esm/Table/index.js +18 -0
  472. package/esm/Tabs/Tab.js +126 -0
  473. package/esm/Tabs/TabList.js +99 -0
  474. package/esm/Tabs/TabPanel.js +46 -0
  475. package/esm/Tabs/Tabs.js +75 -0
  476. package/esm/Tabs/context.js +9 -0
  477. package/esm/Tabs/index.js +5 -0
  478. package/esm/Tabs/useTabsColor.js +28 -0
  479. package/esm/TextArea/TextAreaIconWrapper.js +25 -0
  480. package/esm/TextArea/TextAreaInput.js +51 -0
  481. package/esm/TextArea/index.js +66 -0
  482. package/esm/TextField/TextFieldContainer.js +26 -0
  483. package/esm/TextField/TextFieldErrorText.js +48 -0
  484. package/esm/TextField/TextFieldIconWrapper.js +46 -0
  485. package/esm/TextField/TextFieldInput.js +51 -0
  486. package/esm/TextField/TextFieldInputWrapper.js +62 -0
  487. package/esm/TextField/TextFieldLabel.js +23 -0
  488. package/esm/TextField/TextFieldLabelAsterisk.js +24 -0
  489. package/esm/TextField/index.js +86 -0
  490. package/esm/ThemeProvider/createTheme.js +46 -0
  491. package/esm/ThemeProvider/index.js +10 -0
  492. package/esm/ThemeProvider/tokens.js +79 -0
  493. package/esm/Toast/ToastAction.js +27 -0
  494. package/esm/Toast/ToastCard.js +83 -0
  495. package/esm/Toast/ToastCloseButton.js +43 -0
  496. package/esm/Toast/ToastContainer.js +149 -0
  497. package/esm/Toast/ToastIcon.js +66 -0
  498. package/esm/Toast/ToastItem.js +115 -0
  499. package/esm/Toast/index.js +4 -0
  500. package/esm/Toast/store.js +72 -0
  501. package/esm/Tooltip/TooltipArrow.js +57 -0
  502. package/esm/Tooltip/TooltipContainer.js +49 -0
  503. package/esm/Tooltip/index.js +190 -0
  504. package/esm/Typography/Base.js +11 -0
  505. package/esm/Typography/Blockquote.js +18 -0
  506. package/esm/Typography/Del.js +22 -0
  507. package/esm/Typography/Em.js +22 -0
  508. package/esm/Typography/H1.js +23 -0
  509. package/esm/Typography/H2.js +23 -0
  510. package/esm/Typography/H3.js +23 -0
  511. package/esm/Typography/H4.js +23 -0
  512. package/esm/Typography/H5.js +23 -0
  513. package/esm/Typography/H6.js +23 -0
  514. package/esm/Typography/List.js +26 -0
  515. package/esm/Typography/Paragraph.js +24 -0
  516. package/esm/Typography/SectionDescription.js +11 -0
  517. package/esm/Typography/SectionTitle.js +44 -0
  518. package/esm/Typography/Span.js +22 -0
  519. package/esm/Typography/Strong.js +22 -0
  520. package/esm/Typography/U.js +5 -0
  521. package/esm/Typography/index.js +20 -0
  522. package/esm/index.js +1 -0
  523. package/esm/utils/TabManager.js +139 -0
  524. package/esm/utils/getElementRef.js +13 -0
  525. package/esm/utils/spacing.js +10 -0
  526. package/package.json +1597 -74
  527. package/utils/getElementRef.d.ts +8 -0
  528. package/utils/getElementRef.js +18 -0
  529. package/CountryFlags/AC.js +0 -57
  530. package/CountryFlags/AD.js +0 -43
  531. package/CountryFlags/AE.js +0 -36
  532. package/CountryFlags/AF.js +0 -37
  533. package/CountryFlags/AG.js +0 -39
  534. package/CountryFlags/AI.js +0 -41
  535. package/CountryFlags/AL.js +0 -39
  536. package/CountryFlags/AM.d.ts +0 -3
  537. package/CountryFlags/AM.js +0 -35
  538. package/CountryFlags/AO.d.ts +0 -3
  539. package/CountryFlags/AO.js +0 -39
  540. package/CountryFlags/AQ.d.ts +0 -3
  541. package/CountryFlags/AQ.js +0 -34
  542. package/CountryFlags/AR.d.ts +0 -3
  543. package/CountryFlags/AR.js +0 -35
  544. package/CountryFlags/AS.d.ts +0 -3
  545. package/CountryFlags/AS.js +0 -37
  546. package/CountryFlags/AT.d.ts +0 -3
  547. package/CountryFlags/AT.js +0 -34
  548. package/CountryFlags/AU.d.ts +0 -3
  549. package/CountryFlags/AU.js +0 -45
  550. package/CountryFlags/AW.d.ts +0 -3
  551. package/CountryFlags/AW.js +0 -37
  552. package/CountryFlags/AX.d.ts +0 -3
  553. package/CountryFlags/AX.js +0 -35
  554. package/CountryFlags/AZ.d.ts +0 -3
  555. package/CountryFlags/AZ.js +0 -38
  556. package/CountryFlags/BA.d.ts +0 -3
  557. package/CountryFlags/BA.js +0 -44
  558. package/CountryFlags/BB.d.ts +0 -3
  559. package/CountryFlags/BB.js +0 -36
  560. package/CountryFlags/BD.d.ts +0 -3
  561. package/CountryFlags/BD.js +0 -34
  562. package/CountryFlags/BE.d.ts +0 -3
  563. package/CountryFlags/BE.js +0 -35
  564. package/CountryFlags/BF.d.ts +0 -3
  565. package/CountryFlags/BF.js +0 -35
  566. package/CountryFlags/BG.d.ts +0 -3
  567. package/CountryFlags/BG.js +0 -35
  568. package/CountryFlags/BH.d.ts +0 -3
  569. package/CountryFlags/BH.js +0 -34
  570. package/CountryFlags/BI.d.ts +0 -3
  571. package/CountryFlags/BI.js +0 -40
  572. package/CountryFlags/BJ.d.ts +0 -3
  573. package/CountryFlags/BJ.js +0 -35
  574. package/CountryFlags/BL.d.ts +0 -3
  575. package/CountryFlags/BL.js +0 -43
  576. package/CountryFlags/BM.d.ts +0 -3
  577. package/CountryFlags/BM.js +0 -44
  578. package/CountryFlags/BN.d.ts +0 -3
  579. package/CountryFlags/BN.js +0 -38
  580. package/CountryFlags/BO.d.ts +0 -3
  581. package/CountryFlags/BO.js +0 -35
  582. package/CountryFlags/BQ.d.ts +0 -3
  583. package/CountryFlags/BQ.js +0 -37
  584. package/CountryFlags/BR.d.ts +0 -3
  585. package/CountryFlags/BR.js +0 -36
  586. package/CountryFlags/BS.d.ts +0 -3
  587. package/CountryFlags/BS.js +0 -36
  588. package/CountryFlags/BT.d.ts +0 -3
  589. package/CountryFlags/BT.js +0 -35
  590. package/CountryFlags/BV.d.ts +0 -3
  591. package/CountryFlags/BV.js +0 -37
  592. package/CountryFlags/BW.d.ts +0 -3
  593. package/CountryFlags/BW.js +0 -36
  594. package/CountryFlags/BY.js +0 -39
  595. package/CountryFlags/BZ.d.ts +0 -3
  596. package/CountryFlags/BZ.js +0 -40
  597. package/CountryFlags/CA.d.ts +0 -3
  598. package/CountryFlags/CA.js +0 -35
  599. package/CountryFlags/CC.d.ts +0 -3
  600. package/CountryFlags/CC.js +0 -37
  601. package/CountryFlags/CD.d.ts +0 -3
  602. package/CountryFlags/CD.js +0 -36
  603. package/CountryFlags/CF.d.ts +0 -3
  604. package/CountryFlags/CF.js +0 -40
  605. package/CountryFlags/CG.d.ts +0 -3
  606. package/CountryFlags/CG.js +0 -35
  607. package/CountryFlags/CH.d.ts +0 -3
  608. package/CountryFlags/CH.js +0 -34
  609. package/CountryFlags/CI.d.ts +0 -3
  610. package/CountryFlags/CI.js +0 -35
  611. package/CountryFlags/CK.d.ts +0 -3
  612. package/CountryFlags/CK.js +0 -38
  613. package/CountryFlags/CL.d.ts +0 -3
  614. package/CountryFlags/CL.js +0 -36
  615. package/CountryFlags/CM.d.ts +0 -3
  616. package/CountryFlags/CM.js +0 -36
  617. package/CountryFlags/CN.js +0 -35
  618. package/CountryFlags/CO.d.ts +0 -3
  619. package/CountryFlags/CO.js +0 -35
  620. package/CountryFlags/CR.d.ts +0 -3
  621. package/CountryFlags/CR.js +0 -35
  622. package/CountryFlags/CU.d.ts +0 -3
  623. package/CountryFlags/CU.js +0 -38
  624. package/CountryFlags/CV.d.ts +0 -3
  625. package/CountryFlags/CV.js +0 -37
  626. package/CountryFlags/CW.d.ts +0 -3
  627. package/CountryFlags/CW.js +0 -36
  628. package/CountryFlags/CX.d.ts +0 -3
  629. package/CountryFlags/CX.js +0 -39
  630. package/CountryFlags/CY.d.ts +0 -3
  631. package/CountryFlags/CY.js +0 -38
  632. package/CountryFlags/CZ.d.ts +0 -3
  633. package/CountryFlags/CZ.js +0 -35
  634. package/CountryFlags/DE.d.ts +0 -3
  635. package/CountryFlags/DE.js +0 -35
  636. package/CountryFlags/DJ.d.ts +0 -3
  637. package/CountryFlags/DJ.js +0 -36
  638. package/CountryFlags/DK.d.ts +0 -3
  639. package/CountryFlags/DK.js +0 -34
  640. package/CountryFlags/DM.d.ts +0 -3
  641. package/CountryFlags/DM.js +0 -43
  642. package/CountryFlags/DO.d.ts +0 -3
  643. package/CountryFlags/DO.js +0 -42
  644. package/CountryFlags/DZ.d.ts +0 -3
  645. package/CountryFlags/DZ.js +0 -37
  646. package/CountryFlags/EC.d.ts +0 -3
  647. package/CountryFlags/EC.js +0 -39
  648. package/CountryFlags/EE.d.ts +0 -3
  649. package/CountryFlags/EE.js +0 -35
  650. package/CountryFlags/EG.d.ts +0 -3
  651. package/CountryFlags/EG.js +0 -36
  652. package/CountryFlags/EH.d.ts +0 -3
  653. package/CountryFlags/EH.js +0 -38
  654. package/CountryFlags/ER.d.ts +0 -3
  655. package/CountryFlags/ER.js +0 -44
  656. package/CountryFlags/ES.d.ts +0 -3
  657. package/CountryFlags/ES.js +0 -38
  658. package/CountryFlags/ET.d.ts +0 -3
  659. package/CountryFlags/ET.js +0 -41
  660. package/CountryFlags/EU.d.ts +0 -3
  661. package/CountryFlags/EU.js +0 -34
  662. package/CountryFlags/FI.d.ts +0 -3
  663. package/CountryFlags/FI.js +0 -34
  664. package/CountryFlags/FJ.d.ts +0 -3
  665. package/CountryFlags/FJ.js +0 -40
  666. package/CountryFlags/FK.d.ts +0 -3
  667. package/CountryFlags/FK.js +0 -47
  668. package/CountryFlags/FM.d.ts +0 -3
  669. package/CountryFlags/FM.js +0 -35
  670. package/CountryFlags/FO.d.ts +0 -3
  671. package/CountryFlags/FO.js +0 -35
  672. package/CountryFlags/FR.d.ts +0 -3
  673. package/CountryFlags/FR.js +0 -35
  674. package/CountryFlags/GA.d.ts +0 -3
  675. package/CountryFlags/GA.js +0 -35
  676. package/CountryFlags/GB.d.ts +0 -3
  677. package/CountryFlags/GB.js +0 -40
  678. package/CountryFlags/GD.d.ts +0 -3
  679. package/CountryFlags/GD.js +0 -42
  680. package/CountryFlags/GE.d.ts +0 -3
  681. package/CountryFlags/GE.js +0 -35
  682. package/CountryFlags/GEAB.d.ts +0 -3
  683. package/CountryFlags/GEAB.js +0 -44
  684. package/CountryFlags/GEOS.d.ts +0 -3
  685. package/CountryFlags/GEOS.js +0 -35
  686. package/CountryFlags/GF.d.ts +0 -3
  687. package/CountryFlags/GF.js +0 -35
  688. package/CountryFlags/GG.d.ts +0 -3
  689. package/CountryFlags/GG.js +0 -35
  690. package/CountryFlags/GH.d.ts +0 -3
  691. package/CountryFlags/GH.js +0 -36
  692. package/CountryFlags/GI.d.ts +0 -3
  693. package/CountryFlags/GI.js +0 -38
  694. package/CountryFlags/GL.d.ts +0 -3
  695. package/CountryFlags/GL.js +0 -36
  696. package/CountryFlags/GM.d.ts +0 -3
  697. package/CountryFlags/GM.js +0 -36
  698. package/CountryFlags/GN.d.ts +0 -3
  699. package/CountryFlags/GN.js +0 -35
  700. package/CountryFlags/GP.d.ts +0 -3
  701. package/CountryFlags/GP.js +0 -35
  702. package/CountryFlags/GQ.d.ts +0 -3
  703. package/CountryFlags/GQ.js +0 -41
  704. package/CountryFlags/GR.d.ts +0 -3
  705. package/CountryFlags/GR.js +0 -39
  706. package/CountryFlags/GS.d.ts +0 -3
  707. package/CountryFlags/GS.js +0 -53
  708. package/CountryFlags/GT.d.ts +0 -3
  709. package/CountryFlags/GT.js +0 -37
  710. package/CountryFlags/GU.d.ts +0 -3
  711. package/CountryFlags/GU.js +0 -41
  712. package/CountryFlags/GW.d.ts +0 -3
  713. package/CountryFlags/GW.js +0 -36
  714. package/CountryFlags/GY.d.ts +0 -3
  715. package/CountryFlags/GY.js +0 -37
  716. package/CountryFlags/HK.d.ts +0 -3
  717. package/CountryFlags/HK.js +0 -36
  718. package/CountryFlags/HM.d.ts +0 -3
  719. package/CountryFlags/HM.js +0 -45
  720. package/CountryFlags/HN.d.ts +0 -3
  721. package/CountryFlags/HN.js +0 -35
  722. package/CountryFlags/HR.d.ts +0 -3
  723. package/CountryFlags/HR.js +0 -42
  724. package/CountryFlags/HT.d.ts +0 -3
  725. package/CountryFlags/HT.js +0 -40
  726. package/CountryFlags/HU.d.ts +0 -3
  727. package/CountryFlags/HU.js +0 -35
  728. package/CountryFlags/IC.d.ts +0 -3
  729. package/CountryFlags/IC.js +0 -35
  730. package/CountryFlags/ID.d.ts +0 -3
  731. package/CountryFlags/ID.js +0 -34
  732. package/CountryFlags/IE.d.ts +0 -3
  733. package/CountryFlags/IE.js +0 -35
  734. package/CountryFlags/IL.d.ts +0 -3
  735. package/CountryFlags/IL.js +0 -35
  736. package/CountryFlags/IM.d.ts +0 -3
  737. package/CountryFlags/IM.js +0 -35
  738. package/CountryFlags/IN.d.ts +0 -3
  739. package/CountryFlags/IN.js +0 -39
  740. package/CountryFlags/IO.d.ts +0 -3
  741. package/CountryFlags/IO.js +0 -45
  742. package/CountryFlags/IQ.d.ts +0 -3
  743. package/CountryFlags/IQ.js +0 -37
  744. package/CountryFlags/IR.d.ts +0 -3
  745. package/CountryFlags/IR.js +0 -38
  746. package/CountryFlags/IS.d.ts +0 -3
  747. package/CountryFlags/IS.js +0 -35
  748. package/CountryFlags/IT.d.ts +0 -3
  749. package/CountryFlags/IT.js +0 -35
  750. package/CountryFlags/JE.d.ts +0 -3
  751. package/CountryFlags/JE.js +0 -36
  752. package/CountryFlags/JM.d.ts +0 -3
  753. package/CountryFlags/JM.js +0 -36
  754. package/CountryFlags/JO.d.ts +0 -3
  755. package/CountryFlags/JO.js +0 -37
  756. package/CountryFlags/JP.d.ts +0 -3
  757. package/CountryFlags/JP.js +0 -34
  758. package/CountryFlags/KE.d.ts +0 -3
  759. package/CountryFlags/KE.js +0 -42
  760. package/CountryFlags/KG.d.ts +0 -3
  761. package/CountryFlags/KG.js +0 -39
  762. package/CountryFlags/KH.d.ts +0 -3
  763. package/CountryFlags/KH.js +0 -36
  764. package/CountryFlags/KI.d.ts +0 -3
  765. package/CountryFlags/KI.js +0 -39
  766. package/CountryFlags/KM.d.ts +0 -3
  767. package/CountryFlags/KM.js +0 -41
  768. package/CountryFlags/KN.d.ts +0 -3
  769. package/CountryFlags/KN.js +0 -38
  770. package/CountryFlags/KP.d.ts +0 -3
  771. package/CountryFlags/KP.js +0 -39
  772. package/CountryFlags/KR.d.ts +0 -3
  773. package/CountryFlags/KR.js +0 -42
  774. package/CountryFlags/KW.d.ts +0 -3
  775. package/CountryFlags/KW.js +0 -36
  776. package/CountryFlags/KY.d.ts +0 -3
  777. package/CountryFlags/KY.js +0 -45
  778. package/CountryFlags/KZ.d.ts +0 -3
  779. package/CountryFlags/KZ.js +0 -35
  780. package/CountryFlags/LA.d.ts +0 -3
  781. package/CountryFlags/LA.js +0 -36
  782. package/CountryFlags/LB.d.ts +0 -3
  783. package/CountryFlags/LB.js +0 -37
  784. package/CountryFlags/LC.d.ts +0 -3
  785. package/CountryFlags/LC.js +0 -36
  786. package/CountryFlags/LI.d.ts +0 -3
  787. package/CountryFlags/LI.js +0 -35
  788. package/CountryFlags/LK.d.ts +0 -3
  789. package/CountryFlags/LK.js +0 -40
  790. package/CountryFlags/LR.d.ts +0 -3
  791. package/CountryFlags/LR.js +0 -37
  792. package/CountryFlags/LS.d.ts +0 -3
  793. package/CountryFlags/LS.js +0 -37
  794. package/CountryFlags/LT.d.ts +0 -3
  795. package/CountryFlags/LT.js +0 -35
  796. package/CountryFlags/LU.d.ts +0 -3
  797. package/CountryFlags/LU.js +0 -35
  798. package/CountryFlags/LV.d.ts +0 -3
  799. package/CountryFlags/LV.js +0 -35
  800. package/CountryFlags/LY.d.ts +0 -3
  801. package/CountryFlags/LY.js +0 -38
  802. package/CountryFlags/MA.d.ts +0 -3
  803. package/CountryFlags/MA.js +0 -34
  804. package/CountryFlags/MC.d.ts +0 -3
  805. package/CountryFlags/MC.js +0 -34
  806. package/CountryFlags/MD.d.ts +0 -3
  807. package/CountryFlags/MD.js +0 -36
  808. package/CountryFlags/ME.d.ts +0 -3
  809. package/CountryFlags/ME.js +0 -36
  810. package/CountryFlags/MF.d.ts +0 -3
  811. package/CountryFlags/MF.js +0 -37
  812. package/CountryFlags/MG.d.ts +0 -3
  813. package/CountryFlags/MG.js +0 -35
  814. package/CountryFlags/MH.d.ts +0 -3
  815. package/CountryFlags/MH.js +0 -36
  816. package/CountryFlags/MK.d.ts +0 -3
  817. package/CountryFlags/MK.js +0 -37
  818. package/CountryFlags/ML.d.ts +0 -3
  819. package/CountryFlags/ML.js +0 -35
  820. package/CountryFlags/MM.d.ts +0 -3
  821. package/CountryFlags/MM.js +0 -36
  822. package/CountryFlags/MN.d.ts +0 -3
  823. package/CountryFlags/MN.js +0 -41
  824. package/CountryFlags/MO.d.ts +0 -3
  825. package/CountryFlags/MO.js +0 -38
  826. package/CountryFlags/MP.d.ts +0 -3
  827. package/CountryFlags/MP.js +0 -39
  828. package/CountryFlags/MQ.d.ts +0 -3
  829. package/CountryFlags/MQ.js +0 -36
  830. package/CountryFlags/MR.d.ts +0 -3
  831. package/CountryFlags/MR.js +0 -36
  832. package/CountryFlags/MS.d.ts +0 -3
  833. package/CountryFlags/MS.js +0 -44
  834. package/CountryFlags/MT.d.ts +0 -3
  835. package/CountryFlags/MT.js +0 -35
  836. package/CountryFlags/MU.d.ts +0 -3
  837. package/CountryFlags/MU.js +0 -36
  838. package/CountryFlags/MV.d.ts +0 -3
  839. package/CountryFlags/MV.js +0 -35
  840. package/CountryFlags/MW.d.ts +0 -3
  841. package/CountryFlags/MW.js +0 -36
  842. package/CountryFlags/MX.d.ts +0 -3
  843. package/CountryFlags/MX.js +0 -37
  844. package/CountryFlags/MY.d.ts +0 -3
  845. package/CountryFlags/MY.js +0 -37
  846. package/CountryFlags/MZ.d.ts +0 -3
  847. package/CountryFlags/MZ.js +0 -38
  848. package/CountryFlags/NA.d.ts +0 -3
  849. package/CountryFlags/NA.js +0 -37
  850. package/CountryFlags/NC.d.ts +0 -3
  851. package/CountryFlags/NC.js +0 -42
  852. package/CountryFlags/NE.d.ts +0 -3
  853. package/CountryFlags/NE.js +0 -36
  854. package/CountryFlags/NF.d.ts +0 -3
  855. package/CountryFlags/NF.js +0 -35
  856. package/CountryFlags/NG.d.ts +0 -3
  857. package/CountryFlags/NG.js +0 -35
  858. package/CountryFlags/NI.d.ts +0 -3
  859. package/CountryFlags/NI.js +0 -39
  860. package/CountryFlags/NL.d.ts +0 -3
  861. package/CountryFlags/NL.js +0 -35
  862. package/CountryFlags/NO.d.ts +0 -3
  863. package/CountryFlags/NO.js +0 -35
  864. package/CountryFlags/NP.d.ts +0 -3
  865. package/CountryFlags/NP.js +0 -38
  866. package/CountryFlags/NR.d.ts +0 -3
  867. package/CountryFlags/NR.js +0 -35
  868. package/CountryFlags/NU.d.ts +0 -3
  869. package/CountryFlags/NU.js +0 -57
  870. package/CountryFlags/NZ.d.ts +0 -3
  871. package/CountryFlags/NZ.js +0 -45
  872. package/CountryFlags/OM.d.ts +0 -3
  873. package/CountryFlags/OM.js +0 -38
  874. package/CountryFlags/PA.d.ts +0 -3
  875. package/CountryFlags/PA.js +0 -37
  876. package/CountryFlags/PE.d.ts +0 -3
  877. package/CountryFlags/PE.js +0 -35
  878. package/CountryFlags/PF.d.ts +0 -3
  879. package/CountryFlags/PF.js +0 -39
  880. package/CountryFlags/PG.d.ts +0 -3
  881. package/CountryFlags/PG.js +0 -37
  882. package/CountryFlags/PH.d.ts +0 -3
  883. package/CountryFlags/PH.js +0 -37
  884. package/CountryFlags/PK.d.ts +0 -3
  885. package/CountryFlags/PK.js +0 -38
  886. package/CountryFlags/PL.d.ts +0 -3
  887. package/CountryFlags/PL.js +0 -36
  888. package/CountryFlags/PM.d.ts +0 -3
  889. package/CountryFlags/PM.js +0 -36
  890. package/CountryFlags/PN.d.ts +0 -3
  891. package/CountryFlags/PN.js +0 -47
  892. package/CountryFlags/PR.d.ts +0 -3
  893. package/CountryFlags/PR.js +0 -37
  894. package/CountryFlags/PS.d.ts +0 -3
  895. package/CountryFlags/PS.js +0 -36
  896. package/CountryFlags/PT.d.ts +0 -3
  897. package/CountryFlags/PT.js +0 -37
  898. package/CountryFlags/PW.d.ts +0 -3
  899. package/CountryFlags/PW.js +0 -34
  900. package/CountryFlags/PY.d.ts +0 -3
  901. package/CountryFlags/PY.js +0 -37
  902. package/CountryFlags/QA.d.ts +0 -3
  903. package/CountryFlags/QA.js +0 -34
  904. package/CountryFlags/RE.d.ts +0 -3
  905. package/CountryFlags/RE.js +0 -36
  906. package/CountryFlags/RO.d.ts +0 -3
  907. package/CountryFlags/RO.js +0 -35
  908. package/CountryFlags/RS.d.ts +0 -3
  909. package/CountryFlags/RS.js +0 -39
  910. package/CountryFlags/RU.d.ts +0 -3
  911. package/CountryFlags/RU.js +0 -36
  912. package/CountryFlags/RW.d.ts +0 -3
  913. package/CountryFlags/RW.js +0 -36
  914. package/CountryFlags/SA.d.ts +0 -3
  915. package/CountryFlags/SA.js +0 -37
  916. package/CountryFlags/SB.d.ts +0 -3
  917. package/CountryFlags/SB.js +0 -37
  918. package/CountryFlags/SC.d.ts +0 -3
  919. package/CountryFlags/SC.js +0 -37
  920. package/CountryFlags/SD.d.ts +0 -3
  921. package/CountryFlags/SD.js +0 -36
  922. package/CountryFlags/SE.d.ts +0 -3
  923. package/CountryFlags/SE.js +0 -34
  924. package/CountryFlags/SG.d.ts +0 -3
  925. package/CountryFlags/SG.js +0 -37
  926. package/CountryFlags/SH.d.ts +0 -3
  927. package/CountryFlags/SH.js +0 -47
  928. package/CountryFlags/SI.d.ts +0 -3
  929. package/CountryFlags/SI.js +0 -38
  930. package/CountryFlags/SJ.d.ts +0 -3
  931. package/CountryFlags/SJ.js +0 -35
  932. package/CountryFlags/SK.d.ts +0 -3
  933. package/CountryFlags/SK.js +0 -39
  934. package/CountryFlags/SL.d.ts +0 -3
  935. package/CountryFlags/SL.js +0 -35
  936. package/CountryFlags/SM.d.ts +0 -3
  937. package/CountryFlags/SM.js +0 -39
  938. package/CountryFlags/SN.d.ts +0 -3
  939. package/CountryFlags/SN.js +0 -36
  940. package/CountryFlags/SO.d.ts +0 -3
  941. package/CountryFlags/SO.js +0 -34
  942. package/CountryFlags/SR.d.ts +0 -3
  943. package/CountryFlags/SR.js +0 -37
  944. package/CountryFlags/SS.d.ts +0 -3
  945. package/CountryFlags/SS.js +0 -38
  946. package/CountryFlags/ST.d.ts +0 -3
  947. package/CountryFlags/ST.js +0 -37
  948. package/CountryFlags/SV.d.ts +0 -3
  949. package/CountryFlags/SV.js +0 -38
  950. package/CountryFlags/SX.d.ts +0 -3
  951. package/CountryFlags/SX.js +0 -41
  952. package/CountryFlags/SY.d.ts +0 -3
  953. package/CountryFlags/SY.js +0 -37
  954. package/CountryFlags/SZ.d.ts +0 -3
  955. package/CountryFlags/SZ.js +0 -39
  956. package/CountryFlags/TA.d.ts +0 -3
  957. package/CountryFlags/TA.js +0 -51
  958. package/CountryFlags/TC.d.ts +0 -3
  959. package/CountryFlags/TC.js +0 -48
  960. package/CountryFlags/TD.d.ts +0 -3
  961. package/CountryFlags/TD.js +0 -35
  962. package/CountryFlags/TF.d.ts +0 -3
  963. package/CountryFlags/TF.js +0 -38
  964. package/CountryFlags/TG.d.ts +0 -3
  965. package/CountryFlags/TG.js +0 -37
  966. package/CountryFlags/TH.d.ts +0 -3
  967. package/CountryFlags/TH.js +0 -36
  968. package/CountryFlags/TJ.d.ts +0 -3
  969. package/CountryFlags/TJ.js +0 -37
  970. package/CountryFlags/TK.d.ts +0 -3
  971. package/CountryFlags/TK.js +0 -37
  972. package/CountryFlags/TL.d.ts +0 -3
  973. package/CountryFlags/TL.js +0 -36
  974. package/CountryFlags/TM.d.ts +0 -3
  975. package/CountryFlags/TM.js +0 -49
  976. package/CountryFlags/TN.d.ts +0 -3
  977. package/CountryFlags/TN.js +0 -37
  978. package/CountryFlags/TO.d.ts +0 -3
  979. package/CountryFlags/TO.js +0 -35
  980. package/CountryFlags/TR.d.ts +0 -3
  981. package/CountryFlags/TR.js +0 -34
  982. package/CountryFlags/TT.d.ts +0 -3
  983. package/CountryFlags/TT.js +0 -35
  984. package/CountryFlags/TV.d.ts +0 -3
  985. package/CountryFlags/TV.js +0 -40
  986. package/CountryFlags/TW.d.ts +0 -3
  987. package/CountryFlags/TW.js +0 -37
  988. package/CountryFlags/TZ.d.ts +0 -3
  989. package/CountryFlags/TZ.js +0 -36
  990. package/CountryFlags/UA.d.ts +0 -3
  991. package/CountryFlags/UA.js +0 -34
  992. package/CountryFlags/UG.d.ts +0 -3
  993. package/CountryFlags/UG.js +0 -39
  994. package/CountryFlags/UM.d.ts +0 -3
  995. package/CountryFlags/UM.js +0 -38
  996. package/CountryFlags/US.d.ts +0 -3
  997. package/CountryFlags/US.js +0 -38
  998. package/CountryFlags/UY.d.ts +0 -3
  999. package/CountryFlags/UY.js +0 -37
  1000. package/CountryFlags/UZ.d.ts +0 -3
  1001. package/CountryFlags/UZ.js +0 -39
  1002. package/CountryFlags/Uknown.d.ts +0 -7
  1003. package/CountryFlags/Uknown.js +0 -12
  1004. package/CountryFlags/Unknown.d.ts +0 -3
  1005. package/CountryFlags/Unknown.js +0 -42
  1006. package/CountryFlags/VA.d.ts +0 -3
  1007. package/CountryFlags/VA.js +0 -36
  1008. package/CountryFlags/VC.d.ts +0 -3
  1009. package/CountryFlags/VC.js +0 -36
  1010. package/CountryFlags/VE.d.ts +0 -3
  1011. package/CountryFlags/VE.js +0 -36
  1012. package/CountryFlags/VG.d.ts +0 -3
  1013. package/CountryFlags/VG.js +0 -49
  1014. package/CountryFlags/VI.d.ts +0 -3
  1015. package/CountryFlags/VI.js +0 -45
  1016. package/CountryFlags/VN.d.ts +0 -3
  1017. package/CountryFlags/VN.js +0 -34
  1018. package/CountryFlags/VU.d.ts +0 -3
  1019. package/CountryFlags/VU.js +0 -39
  1020. package/CountryFlags/WF.d.ts +0 -3
  1021. package/CountryFlags/WF.js +0 -37
  1022. package/CountryFlags/WS.d.ts +0 -3
  1023. package/CountryFlags/WS.js +0 -36
  1024. package/CountryFlags/XK.d.ts +0 -3
  1025. package/CountryFlags/XK.js +0 -36
  1026. package/CountryFlags/YE.d.ts +0 -3
  1027. package/CountryFlags/YE.js +0 -35
  1028. package/CountryFlags/YT.d.ts +0 -3
  1029. package/CountryFlags/YT.js +0 -39
  1030. package/CountryFlags/ZA.d.ts +0 -3
  1031. package/CountryFlags/ZA.js +0 -38
  1032. package/CountryFlags/ZM.d.ts +0 -3
  1033. package/CountryFlags/ZM.js +0 -37
  1034. package/CountryFlags/ZW.d.ts +0 -3
  1035. package/CountryFlags/ZW.js +0 -43
  1036. package/CountryFlags/index.d.ts +0 -258
  1037. package/CountryFlags/index.js +0 -526
  1038. package/ErrorBoundary/Fallback.d.ts +0 -3
  1039. package/ErrorBoundary/Fallback.js +0 -51
  1040. package/Menu/AutoHeightWrapper.d.ts +0 -6
  1041. package/Menu/AutoHeightWrapper.js +0 -43
  1042. package/Menu/MeasuredItem.d.ts +0 -10
  1043. package/Menu/MeasuredItem.js +0 -51
  1044. package/Menu/VirtualizedItem.d.ts +0 -22
  1045. package/Menu/VirtualizedItem.js +0 -69
  1046. package/Menu/VirtualizedList.d.ts +0 -18
  1047. package/Menu/VirtualizedList.js +0 -26
  1048. package/Menu/VirtualizedListComponent.d.ts +0 -20
  1049. package/Menu/VirtualizedListComponent.js +0 -305
  1050. /package/{CountryFlags → PhoneField/flags}/BY.d.ts +0 -0
  1051. /package/{CountryFlags → PhoneField/flags}/CN.d.ts +0 -0
  1052. /package/{CountryFlags/AC.d.ts → PhoneField/flags/IL.d.ts} +0 -0
  1053. /package/{CountryFlags/AD.d.ts → PhoneField/flags/JP.d.ts} +0 -0
  1054. /package/{CountryFlags/AE.d.ts → PhoneField/flags/KZ.d.ts} +0 -0
  1055. /package/{CountryFlags/AF.d.ts → PhoneField/flags/RU.d.ts} +0 -0
  1056. /package/{CountryFlags/AG.d.ts → PhoneField/flags/UA.d.ts} +0 -0
  1057. /package/{CountryFlags/AI.d.ts → PhoneField/flags/US.d.ts} +0 -0
  1058. /package/{CountryFlags/AL.d.ts → PhoneField/flags/Unknown.d.ts} +0 -0
  1059. /package/{CountryFlags → PhoneField/flags}/isLabelled.d.ts +0 -0
  1060. /package/{CountryFlags → PhoneField/flags}/isLabelled.js +0 -0
@@ -0,0 +1,190 @@
1
+ import React from 'react';
2
+ import { useTheme } from '@emotion/react';
3
+ import Popper from '../Popper';
4
+ import Container from './TooltipContainer';
5
+ import Arrow from './TooltipArrow';
6
+ import getElementRef from '../utils/getElementRef';
7
+ /**
8
+ * Pointer types that have the hover. A tap on the touch screen fires `pointerenter` too,
9
+ * the tooltip would flash on every tap
10
+ */
11
+ const isHoverPointer = (event) => event.pointerType !== 'touch';
12
+ /**
13
+ * The tooltip opens on the keyboard focus only, not on the focus after a click
14
+ */
15
+ const isFocusVisible = (element) => {
16
+ try {
17
+ return element.matches(':focus-visible');
18
+ }
19
+ catch (err) {
20
+ // Old browsers without :focus-visible
21
+ return true;
22
+ }
23
+ };
24
+ /**
25
+ * Shared by all the tooltips: when the pointer moves from one element to the next,
26
+ * the next tooltip appears without the delay, as in the toolbars of the desktop apps
27
+ */
28
+ const SKIP_DELAY_WINDOW = 500;
29
+ let openTooltipsCount = 0;
30
+ let lastTooltipClosedAt = 0;
31
+ const shouldSkipDelay = () => openTooltipsCount > 0 || Date.now() - lastTooltipClosedAt < SKIP_DELAY_WINDOW;
32
+ const setRef = (ref, value) => {
33
+ if (typeof ref === 'function') {
34
+ ref(value);
35
+ }
36
+ else if (ref) {
37
+ ref.current = value;
38
+ }
39
+ };
40
+ const isEmptyTitle = (title) => title === null || typeof title === 'undefined' || title === false || title === '';
41
+ const Tooltip = props => {
42
+ var _a;
43
+ const { title, children, placement = 'top', arrow = false, enterDelay = 400, leaveDelay = 100, isOpen, onOpenChange, describeChild = false, offset = 8, zIndex, id, overrides, } = props;
44
+ const theme = useTheme();
45
+ const generatedId = `tooltip-${React.useId().replace(/:/g, '')}`;
46
+ const tooltipId = id || generatedId;
47
+ const overridesMap = React.useMemo(() => ({
48
+ Container: (overrides === null || overrides === void 0 ? void 0 : overrides.Container) || Container,
49
+ Arrow: (overrides === null || overrides === void 0 ? void 0 : overrides.Arrow) || Arrow,
50
+ }), [overrides]);
51
+ const [anchorElement, setAnchorElement] = React.useState(null);
52
+ const [internalOpen, setInternalOpen] = React.useState(false);
53
+ const [actualPlacement, setActualPlacement] = React.useState(placement);
54
+ const timerRef = React.useRef(null);
55
+ const isControlled = typeof isOpen !== 'undefined';
56
+ const isEmpty = isEmptyTitle(title);
57
+ const open = !isEmpty && (isControlled ? Boolean(isOpen) : internalOpen);
58
+ // The handlers below are called from the timers: they read the latest values from the ref
59
+ const openRef = React.useRef(open);
60
+ openRef.current = open;
61
+ const onOpenChangeRef = React.useRef(onOpenChange);
62
+ onOpenChangeRef.current = onOpenChange;
63
+ const clearTimer = () => {
64
+ if (timerRef.current !== null) {
65
+ clearTimeout(timerRef.current);
66
+ timerRef.current = null;
67
+ }
68
+ };
69
+ const setOpen = React.useCallback((next) => {
70
+ var _a;
71
+ if (openRef.current === next) {
72
+ return;
73
+ }
74
+ if (!isControlled) {
75
+ setInternalOpen(next);
76
+ }
77
+ (_a = onOpenChangeRef.current) === null || _a === void 0 ? void 0 : _a.call(onOpenChangeRef, next);
78
+ }, [isControlled]);
79
+ const show = (delay) => {
80
+ clearTimer();
81
+ if (delay > 0) {
82
+ timerRef.current = setTimeout(() => setOpen(true), delay);
83
+ }
84
+ else {
85
+ setOpen(true);
86
+ }
87
+ };
88
+ const hide = (delay) => {
89
+ clearTimer();
90
+ if (delay > 0) {
91
+ timerRef.current = setTimeout(() => setOpen(false), delay);
92
+ }
93
+ else {
94
+ setOpen(false);
95
+ }
96
+ };
97
+ React.useEffect(() => clearTimer, []);
98
+ // A stable callback: a new one on every render would reset the anchor and render again, endlessly
99
+ const childRefRef = React.useRef(undefined);
100
+ const handleAnchorRef = React.useCallback((node) => {
101
+ setAnchorElement(node);
102
+ setRef(childRefRef.current, node);
103
+ }, []);
104
+ React.useEffect(() => {
105
+ if (!open) {
106
+ return undefined;
107
+ }
108
+ openTooltipsCount += 1;
109
+ return () => {
110
+ openTooltipsCount -= 1;
111
+ lastTooltipClosedAt = Date.now();
112
+ };
113
+ }, [open]);
114
+ // Escape hides the tooltip wherever the focus is (WCAG 1.4.13: the tooltip must be dismissable)
115
+ React.useEffect(() => {
116
+ if (!open) {
117
+ return undefined;
118
+ }
119
+ const handleKeyDown = (event) => {
120
+ if (event.key === 'Escape') {
121
+ clearTimer();
122
+ setOpen(false);
123
+ }
124
+ };
125
+ document.addEventListener('keydown', handleKeyDown);
126
+ return () => {
127
+ document.removeEventListener('keydown', handleKeyDown);
128
+ };
129
+ }, [open, setOpen]);
130
+ if (!React.isValidElement(children)) {
131
+ return React.createElement(React.Fragment, null, children);
132
+ }
133
+ const child = children;
134
+ const childProps = child.props;
135
+ childRefRef.current = getElementRef(child);
136
+ if (isEmpty) {
137
+ return child;
138
+ }
139
+ const ariaProps = describeChild
140
+ ? {
141
+ 'aria-describedby': open
142
+ ? [childProps['aria-describedby'], tooltipId].filter(Boolean).join(' ')
143
+ : childProps['aria-describedby'],
144
+ }
145
+ : {
146
+ // The visible text of the element or its own label wins over the tooltip
147
+ 'aria-label': (_a = childProps['aria-label']) !== null && _a !== void 0 ? _a : (typeof title === 'string' ? title : undefined),
148
+ };
149
+ const anchor = React.cloneElement(child, Object.assign(Object.assign({}, ariaProps), { ref: handleAnchorRef, onPointerEnter: (event) => {
150
+ var _a;
151
+ (_a = childProps.onPointerEnter) === null || _a === void 0 ? void 0 : _a.call(childProps, event);
152
+ if (isHoverPointer(event)) {
153
+ show(openRef.current || shouldSkipDelay() ? 0 : enterDelay);
154
+ }
155
+ }, onPointerLeave: (event) => {
156
+ var _a;
157
+ (_a = childProps.onPointerLeave) === null || _a === void 0 ? void 0 : _a.call(childProps, event);
158
+ if (isHoverPointer(event)) {
159
+ hide(leaveDelay);
160
+ }
161
+ }, onFocus: (event) => {
162
+ var _a;
163
+ (_a = childProps.onFocus) === null || _a === void 0 ? void 0 : _a.call(childProps, event);
164
+ if (isFocusVisible(event.currentTarget)) {
165
+ show(0);
166
+ }
167
+ }, onBlur: (event) => {
168
+ var _a;
169
+ (_a = childProps.onBlur) === null || _a === void 0 ? void 0 : _a.call(childProps, event);
170
+ hide(0);
171
+ }, onPointerDown: (event) => {
172
+ var _a;
173
+ (_a = childProps.onPointerDown) === null || _a === void 0 ? void 0 : _a.call(childProps, event);
174
+ // A click is an action, the tooltip should not cover its result
175
+ hide(0);
176
+ } }));
177
+ return (React.createElement(React.Fragment, null,
178
+ anchor,
179
+ React.createElement(Popper, { isOpen: open, anchorElement: anchorElement, anchorPos: placement, autoFlip: true, offset: offset, viewportMargin: 8, zIndex: zIndex !== null && zIndex !== void 0 ? zIndex : theme.zIndex.modal + 1, onAnchorPosChanged: setActualPlacement, id: tooltipId, role: "tooltip",
180
+ // The pointer can move from the element onto the tooltip without hiding it
181
+ onPointerEnter: clearTimer, onPointerLeave: event => {
182
+ if (isHoverPointer(event)) {
183
+ hide(leaveDelay);
184
+ }
185
+ } },
186
+ React.createElement(overridesMap.Container, null,
187
+ title,
188
+ arrow && React.createElement(overridesMap.Arrow, { placement: actualPlacement })))));
189
+ };
190
+ export default Tooltip;
@@ -0,0 +1,11 @@
1
+ import styled from '@emotion/styled';
2
+ /**
3
+ * @deprecated - Use `Span` instead\
4
+ * Example: `import Span from '@via-profit/ui-kit/Typography/Span'`
5
+ */
6
+ const Base = styled.span `
7
+ font-size: 1em;
8
+ font-weight: 300;
9
+ color: currentColor;
10
+ `;
11
+ export default Base;
@@ -0,0 +1,18 @@
1
+ import styled from '@emotion/styled';
2
+ const Blockquote = styled.blockquote `
3
+ font-size: 1em;
4
+ font-weight: 400;
5
+ font-style: italic;
6
+ position: relative;
7
+ border-left: 4px solid ${({ theme }) => theme.color.textSecondary.lighten(20).toString()};
8
+ color: currentColor;
9
+ margin: 0;
10
+ padding: 1em 0 1em 2em;
11
+ & > p:first-of-type {
12
+ margin-top: 0;
13
+ }
14
+ & > p:last-of-type {
15
+ margin-bottom: 0;
16
+ }
17
+ `;
18
+ export default Blockquote;
@@ -0,0 +1,22 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import React from 'react';
13
+ import styled from '@emotion/styled';
14
+ const Styled = styled.del `
15
+ font-size: 1em;
16
+ color: currentColor;
17
+ `;
18
+ const Del = (props, ref) => {
19
+ const { children } = props, nativeProps = __rest(props, ["children"]);
20
+ return (React.createElement(Styled, Object.assign({}, nativeProps, { ref: ref }), children));
21
+ };
22
+ export default React.forwardRef(Del);
@@ -0,0 +1,22 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import React from 'react';
13
+ import styled from '@emotion/styled';
14
+ const Styled = styled.em `
15
+ font-size: 1em;
16
+ color: currentColor;
17
+ `;
18
+ const Em = (props, ref) => {
19
+ const { children } = props, nativeProps = __rest(props, ["children"]);
20
+ return (React.createElement(Styled, Object.assign({}, nativeProps, { ref: ref }), children));
21
+ };
22
+ export default React.forwardRef(Em);
@@ -0,0 +1,23 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import React from 'react';
13
+ import styled from '@emotion/styled';
14
+ const Styled = styled.h1 `
15
+ font-size: 2em;
16
+ font-weight: 700;
17
+ color: currentColor;
18
+ `;
19
+ const H1 = (props, ref) => {
20
+ const { children } = props, nativeProps = __rest(props, ["children"]);
21
+ return (React.createElement(Styled, Object.assign({}, nativeProps, { ref: ref }), children));
22
+ };
23
+ export default React.forwardRef(H1);
@@ -0,0 +1,23 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import React from 'react';
13
+ import styled from '@emotion/styled';
14
+ const Styled = styled.h2 `
15
+ font-size: 1.5em;
16
+ font-weight: 500;
17
+ color: currentColor;
18
+ `;
19
+ const H2 = (props, ref) => {
20
+ const { children } = props, nativeProps = __rest(props, ["children"]);
21
+ return (React.createElement(Styled, Object.assign({}, nativeProps, { ref: ref }), children));
22
+ };
23
+ export default React.forwardRef(H2);
@@ -0,0 +1,23 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import React from 'react';
13
+ import styled from '@emotion/styled';
14
+ const Styled = styled.h3 `
15
+ font-size: 1.25em;
16
+ font-weight: 500;
17
+ color: currentColor;
18
+ `;
19
+ const H3 = (props, ref) => {
20
+ const { children } = props, nativeProps = __rest(props, ["children"]);
21
+ return (React.createElement(Styled, Object.assign({}, nativeProps, { ref: ref }), children));
22
+ };
23
+ export default React.forwardRef(H3);
@@ -0,0 +1,23 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import React from 'react';
13
+ import styled from '@emotion/styled';
14
+ const Styled = styled.h4 `
15
+ font-size: 1.1em;
16
+ font-weight: 500;
17
+ color: currentColor;
18
+ `;
19
+ const H4 = (props, ref) => {
20
+ const { children } = props, nativeProps = __rest(props, ["children"]);
21
+ return (React.createElement(Styled, Object.assign({}, nativeProps, { ref: ref }), children));
22
+ };
23
+ export default React.forwardRef(H4);
@@ -0,0 +1,23 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import React from 'react';
13
+ import styled from '@emotion/styled';
14
+ const Styled = styled.h5 `
15
+ font-size: 1em;
16
+ font-weight: 500;
17
+ color: currentColor;
18
+ `;
19
+ const H5 = (props, ref) => {
20
+ const { children } = props, nativeProps = __rest(props, ["children"]);
21
+ return (React.createElement(Styled, Object.assign({}, nativeProps, { ref: ref }), children));
22
+ };
23
+ export default React.forwardRef(H5);
@@ -0,0 +1,23 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import React from 'react';
13
+ import styled from '@emotion/styled';
14
+ const Styled = styled.h6 `
15
+ font-size: 0.9em;
16
+ font-weight: 500;
17
+ color: currentColor;
18
+ `;
19
+ const H6 = (props, ref) => {
20
+ const { children } = props, nativeProps = __rest(props, ["children"]);
21
+ return (React.createElement(Styled, Object.assign({}, nativeProps, { ref: ref }), children));
22
+ };
23
+ export default React.forwardRef(H6);
@@ -0,0 +1,26 @@
1
+ import styled from '@emotion/styled';
2
+ export const Ul = styled.ul `
3
+ color: currentColor;
4
+ font-size: 1em;
5
+ margin: 0.8em 0;
6
+ padding-left: 1.2em;
7
+ `;
8
+ export const Ol = styled.ol `
9
+ color: currentColor;
10
+ font-size: 1em;
11
+ margin: 0.8em 0;
12
+ padding-left: 1.2em;
13
+ `;
14
+ export const Li = styled.li `
15
+ color: currentColor;
16
+ font-size: 1em;
17
+ margin: 0.2em 0;
18
+ &::marker {
19
+ font-size: 0.9em;
20
+ font-weight: 600;
21
+ color: ${({ theme }) => theme.isDark
22
+ ? theme.color.accentPrimary.lighten(20).toString()
23
+ : theme.color.accentPrimary.darken(20).toString()};
24
+ }
25
+ `;
26
+ export default Ul;
@@ -0,0 +1,24 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import * as React from 'react';
13
+ import styled from '@emotion/styled';
14
+ const StyledParagraph = styled.p `
15
+ font-size: 1em;
16
+ font-weight: 300;
17
+ margin: ${({ $noMargin }) => ($noMargin ? 0 : '0 0 0.8em 0')};
18
+ color: currentColor;
19
+ `;
20
+ const Paragraph = (props, ref) => {
21
+ const { noMargin, children } = props, restProps = __rest(props, ["noMargin", "children"]);
22
+ return (React.createElement(StyledParagraph, Object.assign({}, restProps, { "$noMargin": noMargin, ref: ref }), children));
23
+ };
24
+ export default React.forwardRef(Paragraph);
@@ -0,0 +1,11 @@
1
+ import styled from '@emotion/styled';
2
+ import Paragraph from './Paragraph';
3
+ const SectionDescription = styled(Paragraph) `
4
+ display: flex;
5
+ justify-content: center;
6
+ text-align: center;
7
+ padding: 0 20%;
8
+ margin-top: 2.4em;
9
+ margin-bottom: 1em;
10
+ `;
11
+ export default SectionDescription;
@@ -0,0 +1,44 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import React from 'react';
13
+ import styled from '@emotion/styled';
14
+ import H2 from './H2';
15
+ const Title = styled(H2) `
16
+ justify-content: center;
17
+ display: flex;
18
+ text-align: center;
19
+ `;
20
+ const Inner = styled.span `
21
+ position: relative;
22
+
23
+ /* The accent line under the title */
24
+ &::before {
25
+ content: '';
26
+ position: absolute;
27
+ left: 50%;
28
+ bottom: -0.5em;
29
+ height: 0.12em;
30
+ width: 2.5em;
31
+ border-radius: 0.06em;
32
+ transform: translate(-50%, 0);
33
+ background-color: ${({ theme }) => theme.color.accentPrimary.toString()};
34
+ }
35
+ `;
36
+ /**
37
+ * The centered H2 with the accent line under the text
38
+ */
39
+ const SectionTitle = (props, ref) => {
40
+ const { children } = props, nativeProps = __rest(props, ["children"]);
41
+ return (React.createElement(Title, Object.assign({}, nativeProps, { ref: ref }),
42
+ React.createElement(Inner, null, children)));
43
+ };
44
+ export default React.forwardRef(SectionTitle);
@@ -0,0 +1,22 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import React from 'react';
13
+ import styled from '@emotion/styled';
14
+ const Styled = styled.span `
15
+ font-size: 1em;
16
+ color: currentColor;
17
+ `;
18
+ const Span = (props, ref) => {
19
+ const { children } = props, nativeProps = __rest(props, ["children"]);
20
+ return (React.createElement(Styled, Object.assign({}, nativeProps, { ref: ref }), children));
21
+ };
22
+ export default React.forwardRef(Span);
@@ -0,0 +1,22 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import React from 'react';
13
+ import styled from '@emotion/styled';
14
+ const Styled = styled.strong `
15
+ font-size: 1em;
16
+ color: currentColor;
17
+ `;
18
+ const Strong = (props, ref) => {
19
+ const { children } = props, nativeProps = __rest(props, ["children"]);
20
+ return (React.createElement(Styled, Object.assign({}, nativeProps, { ref: ref }), children));
21
+ };
22
+ export default React.forwardRef(Strong);
@@ -0,0 +1,5 @@
1
+ import styled from '@emotion/styled';
2
+ const U = styled.u `
3
+ font-size: 1em;
4
+ `;
5
+ export default U;
@@ -0,0 +1,20 @@
1
+ import Paragraph from './Paragraph';
2
+ export * from './Paragraph';
3
+ export { default as H1 } from './H1';
4
+ export { default as H2 } from './H2';
5
+ export { default as H3 } from './H3';
6
+ export { default as H4 } from './H4';
7
+ export { default as H5 } from './H5';
8
+ export { default as H6 } from './H6';
9
+ export { default as Span } from './Span';
10
+ export { default as Strong } from './Strong';
11
+ export { default as Em } from './Em';
12
+ export { default as Del } from './Del';
13
+ export { default as U } from './U';
14
+ export { default as Blockquote } from './Blockquote';
15
+ export { Ul, Ol, Li } from './List';
16
+ export { default as SectionTitle } from './SectionTitle';
17
+ export { default as SectionDescription } from './SectionDescription';
18
+ export { Paragraph };
19
+ // The default export is kept for compatibility
20
+ export default Paragraph;
package/esm/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from './ThemeProvider';