@veeqo/ui 0.0.1 → 0.0.3

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 (802) hide show
  1. package/.eslintrc.json +105 -0
  2. package/.storybook/Intro.mdx +22 -0
  3. package/.storybook/main.ts +1 -1
  4. package/.storybook/preview.ts +7 -0
  5. package/CHANGELOG.md +21 -0
  6. package/README.md +77 -0
  7. package/jest.config.js +16 -0
  8. package/lib/components/Accordion/Accordion.d.ts +12 -0
  9. package/lib/components/Accordion/index.d.ts +1 -0
  10. package/lib/components/Accordion/styled.d.ts +12 -0
  11. package/lib/components/ActionList/ActionList.d.ts +3 -0
  12. package/lib/components/ActionList/index.d.ts +1 -0
  13. package/lib/components/ActionList/styled.d.ts +15 -0
  14. package/lib/components/ActionList/types.d.ts +19 -0
  15. package/lib/components/Anchor/Anchor.d.ts +9 -0
  16. package/lib/components/Anchor/index.d.ts +1 -0
  17. package/lib/components/Anchor/styled.d.ts +1 -0
  18. package/lib/components/AnimatedDropdown/AnimatedDropdown.d.ts +3 -0
  19. package/lib/components/AnimatedDropdown/components/BasicDropdown.d.ts +5 -0
  20. package/lib/components/AnimatedDropdown/components/styled.d.ts +1 -0
  21. package/lib/components/AnimatedDropdown/index.d.ts +1 -0
  22. package/lib/components/AnimatedDropdown/styled.d.ts +10 -0
  23. package/lib/components/AnimatedDropdown/types.d.ts +14 -0
  24. package/lib/components/Avatar/Avatar.d.ts +3 -0
  25. package/lib/components/Avatar/index.d.ts +1 -0
  26. package/lib/components/Avatar/styled.d.ts +2 -0
  27. package/lib/components/Avatar/types.d.ts +11 -0
  28. package/lib/components/Badge/Badge.d.ts +3 -0
  29. package/lib/components/Badge/index.d.ts +1 -0
  30. package/lib/components/Badge/styled.d.ts +7 -0
  31. package/lib/components/Badge/types.d.ts +35 -0
  32. package/lib/components/Banner/Banner.d.ts +6 -0
  33. package/lib/components/Banner/index.d.ts +1 -0
  34. package/lib/components/Banner/styled.d.ts +7 -0
  35. package/lib/components/Banner/types.d.ts +20 -0
  36. package/lib/components/BaseContainer/BaseContainer.d.ts +1 -0
  37. package/lib/components/BaseContainer/index.d.ts +1 -0
  38. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +3 -0
  39. package/lib/components/Breadcrumbs/components/Breadcrumb.d.ts +3 -0
  40. package/lib/components/Breadcrumbs/components/styled.d.ts +2 -0
  41. package/lib/components/Breadcrumbs/index.d.ts +1 -0
  42. package/lib/components/Breadcrumbs/types.d.ts +22 -0
  43. package/lib/components/Button/Button.d.ts +3 -0
  44. package/lib/components/Button/components/DropdownIcon.d.ts +2 -0
  45. package/lib/components/Button/components/styled.d.ts +20 -0
  46. package/lib/components/Button/index.d.ts +1 -0
  47. package/lib/components/Button/types.d.ts +18 -0
  48. package/lib/components/Card/Card.d.ts +28 -0
  49. package/lib/components/Card/index.d.ts +1 -0
  50. package/lib/components/Card/styled.d.ts +16 -0
  51. package/lib/components/CardHeader/CardHeader.d.ts +19 -0
  52. package/lib/components/CardHeader/icons/Cross.d.ts +2 -0
  53. package/lib/components/CardHeader/icons/DownArrow.d.ts +2 -0
  54. package/lib/components/CardHeader/icons/UpArrow.d.ts +2 -0
  55. package/lib/components/CardHeader/index.d.ts +1 -0
  56. package/lib/components/CardHeader/styled.d.ts +2 -0
  57. package/lib/components/Checkbox/Checkbox.d.ts +13 -0
  58. package/lib/components/Checkbox/index.d.ts +1 -0
  59. package/lib/components/Checkbox/styled.d.ts +1 -0
  60. package/lib/components/Choice/Choice.d.ts +17 -0
  61. package/lib/components/Choice/components/HelpIcon.d.ts +2 -0
  62. package/lib/components/Choice/components/styled.d.ts +17 -0
  63. package/lib/components/Choice/index.d.ts +1 -0
  64. package/lib/components/ChoiceList/ChoiceList.d.ts +29 -0
  65. package/lib/components/ChoiceList/index.d.ts +1 -0
  66. package/lib/components/ChoiceList/styled.d.ts +2 -0
  67. package/lib/components/CopyToClipboard/CopyToClipboard.d.ts +10 -0
  68. package/lib/components/CopyToClipboard/index.d.ts +1 -0
  69. package/lib/components/DataTable/DataTable.d.ts +21 -0
  70. package/lib/components/DataTable/SkeletonContent/SkeletonContent.d.ts +7 -0
  71. package/lib/components/DataTable/SkeletonContent/index.d.ts +1 -0
  72. package/lib/components/DataTable/SpecificState/SpecificState.d.ts +7 -0
  73. package/lib/components/DataTable/SpecificState/index.d.ts +1 -0
  74. package/lib/components/DataTable/SpecificState/styled.d.ts +8 -0
  75. package/lib/components/DataTable/StickyHeader.d.ts +10 -0
  76. package/lib/components/DataTable/cells/ClickableCell.d.ts +7 -0
  77. package/lib/components/DataTable/cells/EditableCell.d.ts +7 -0
  78. package/lib/components/DataTable/cells/SkeletonCell.d.ts +11 -0
  79. package/lib/components/DataTable/cells/SkeletonHeaderCell.d.ts +8 -0
  80. package/lib/components/DataTable/cells/index.d.ts +3 -0
  81. package/lib/components/DataTable/cells/styled.d.ts +1 -0
  82. package/lib/components/DataTable/icons/DoubleArrowAsc.d.ts +2 -0
  83. package/lib/components/DataTable/icons/DoubleArrowDesc.d.ts +2 -0
  84. package/lib/components/DataTable/icons/DoubleArrowIcon.d.ts +2 -0
  85. package/lib/components/DataTable/index.d.ts +1 -0
  86. package/lib/components/DataTable/styled.d.ts +46 -0
  87. package/lib/components/DataTable/utils/constants.d.ts +9 -0
  88. package/lib/components/DataTable/utils/hooks.d.ts +4 -0
  89. package/lib/components/DataTable/utils/index.d.ts +2 -0
  90. package/lib/components/DataTable/utils/types.d.ts +106 -0
  91. package/lib/components/DataTableExp/DataTable.d.ts +22 -0
  92. package/lib/components/DataTableExp/components/ActionBar.d.ts +9 -0
  93. package/lib/components/DataTableExp/components/Cell.d.ts +7 -0
  94. package/lib/components/DataTableExp/components/ColumnHeader.d.ts +6 -0
  95. package/lib/components/DataTableExp/components/ColumnMenu.d.ts +8 -0
  96. package/lib/components/DataTableExp/components/EmptyBodyContent.d.ts +5 -0
  97. package/lib/components/DataTableExp/components/Header.d.ts +2 -0
  98. package/lib/components/DataTableExp/components/LoadingCellContent.d.ts +1 -0
  99. package/lib/components/DataTableExp/components/NoWrap.d.ts +1 -0
  100. package/lib/components/DataTableExp/components/Row.d.ts +7 -0
  101. package/lib/components/DataTableExp/components/ScrollContainer.d.ts +1 -0
  102. package/lib/components/DataTableExp/components/SelectionCell.d.ts +11 -0
  103. package/lib/components/DataTableExp/components/SelectionHeader.d.ts +3 -0
  104. package/lib/components/DataTableExp/components/StickyHead.d.ts +9 -0
  105. package/lib/components/DataTableExp/components/TableGrid.d.ts +4 -0
  106. package/lib/components/DataTableExp/components/Truncate.d.ts +1 -0
  107. package/lib/components/DataTableExp/components/Wrapper.d.ts +5 -0
  108. package/lib/components/DataTableExp/components/icons/ArrowDown.d.ts +2 -0
  109. package/lib/components/DataTableExp/components/icons/ArrowUp.d.ts +2 -0
  110. package/lib/components/DataTableExp/components/icons/DoubleArrow.d.ts +2 -0
  111. package/lib/components/DataTableExp/components/icons/InfoIcon.d.ts +2 -0
  112. package/lib/components/DataTableExp/components/icons/Reorder.d.ts +2 -0
  113. package/lib/components/DataTableExp/components/icons/Visibility.d.ts +2 -0
  114. package/lib/components/DataTableExp/components/icons/VisibilityOff.d.ts +2 -0
  115. package/lib/components/DataTableExp/constants.d.ts +3 -0
  116. package/lib/components/DataTableExp/hooks/index.d.ts +6 -0
  117. package/lib/components/DataTableExp/hooks/useCellWidths.d.ts +2 -0
  118. package/lib/components/DataTableExp/hooks/useColumns.d.ts +6 -0
  119. package/lib/components/DataTableExp/hooks/useDragToScroll.d.ts +2 -0
  120. package/lib/components/DataTableExp/hooks/useNested.d.ts +7 -0
  121. package/lib/components/DataTableExp/hooks/useScrollPosition.d.ts +6 -0
  122. package/lib/components/DataTableExp/hooks/useSelection.d.ts +12 -0
  123. package/lib/components/DataTableExp/index.d.ts +1 -0
  124. package/lib/components/DataTableExp/renderers/index.d.ts +5 -0
  125. package/lib/components/DataTableExp/renderers/renderCell.d.ts +10 -0
  126. package/lib/components/DataTableExp/renderers/renderFooter.d.ts +13 -0
  127. package/lib/components/DataTableExp/renderers/renderHeader.d.ts +15 -0
  128. package/lib/components/DataTableExp/renderers/renderLoadingCell.d.ts +9 -0
  129. package/lib/components/DataTableExp/renderers/renderNestedCell.d.ts +10 -0
  130. package/lib/components/DataTableExp/types.d.ts +116 -0
  131. package/lib/components/DataTableExp/utils/GetSortIcon.d.ts +9 -0
  132. package/lib/components/DataTableExp/utils/alignmentToFlex.d.ts +2 -0
  133. package/lib/components/DataTableExp/utils/generateTableCss.d.ts +10 -0
  134. package/lib/components/DataTableExp/utils/getNextSortState.d.ts +7 -0
  135. package/lib/components/DataTableExp/utils/getRowState.d.ts +10 -0
  136. package/lib/components/DataTableExp/utils/index.d.ts +6 -0
  137. package/lib/components/DataTableExp/utils/parseWidth.d.ts +1 -0
  138. package/lib/components/DataTableExp/utils/sumAll.d.ts +2 -0
  139. package/lib/components/DescriptionList/DescriptionList.d.ts +11 -0
  140. package/lib/components/DescriptionList/index.d.ts +1 -0
  141. package/lib/components/DetailPage/DetailPage.d.ts +6 -0
  142. package/lib/components/DetailPage/index.d.ts +1 -0
  143. package/lib/components/DetailPage/styled.d.ts +2 -0
  144. package/lib/components/DimensionsInput/DimensionsInput.d.ts +3 -0
  145. package/lib/components/DimensionsInput/index.d.ts +1 -0
  146. package/lib/components/DimensionsInput/styled.d.ts +27 -0
  147. package/lib/components/DimensionsInput/types.d.ts +15 -0
  148. package/lib/components/FilterTag/FilterTag.d.ts +8 -0
  149. package/lib/components/FilterTag/index.d.ts +1 -0
  150. package/lib/components/FilterTag/styled.d.ts +12 -0
  151. package/lib/components/FilterTag/types.d.ts +14 -0
  152. package/lib/components/Grid/index.d.ts +2 -0
  153. package/lib/components/Grid/types.d.ts +8 -0
  154. package/lib/components/Image/Image.d.ts +20 -0
  155. package/lib/components/Image/components/PlaceholderImage.d.ts +2 -0
  156. package/lib/components/Image/components/styled.d.ts +6 -0
  157. package/lib/components/Image/index.d.ts +1 -0
  158. package/lib/components/Image/types.d.ts +6 -0
  159. package/lib/components/Image/utils.d.ts +2 -0
  160. package/lib/components/InputGroup/index.d.ts +1 -0
  161. package/lib/components/Loader/Grid.d.ts +1 -2
  162. package/lib/components/Loader/TailSpin.d.ts +1 -2
  163. package/lib/components/Loader/ThreeDots.d.ts +1 -2
  164. package/lib/components/LoginWithAmazonButton/LoginWithAmazonButton.d.ts +7 -0
  165. package/lib/components/LoginWithAmazonButton/index.d.ts +1 -0
  166. package/lib/components/LoginWithAmazonButton/styled.d.ts +1 -0
  167. package/lib/components/Modal/Modal.d.ts +3 -0
  168. package/lib/components/Modal/components/Dialog/Dialog.d.ts +8 -0
  169. package/lib/components/Modal/components/Dialog/constants.d.ts +44 -0
  170. package/lib/components/Modal/components/Dialog/styled.d.ts +24 -0
  171. package/lib/components/Modal/components/styled.d.ts +5 -0
  172. package/lib/components/Modal/index.d.ts +1 -0
  173. package/lib/components/Modal/types.d.ts +40 -0
  174. package/lib/components/PageHeader/PageHeader.d.ts +29 -0
  175. package/lib/components/PageHeader/index.d.ts +1 -0
  176. package/lib/components/PageHeader/styled.d.ts +16 -0
  177. package/lib/components/Pagination/Pagination.d.ts +3 -0
  178. package/lib/components/Pagination/components/EndArrow.d.ts +2 -0
  179. package/lib/components/Pagination/components/LeftArrow.d.ts +2 -0
  180. package/lib/components/Pagination/components/RightArrow.d.ts +2 -0
  181. package/lib/components/Pagination/components/StartArrow.d.ts +2 -0
  182. package/lib/components/Pagination/components.d.ts +4 -0
  183. package/lib/components/Pagination/hooks/usePagination.d.ts +13 -0
  184. package/lib/components/Pagination/index.d.ts +1 -0
  185. package/lib/components/Pagination/styled.d.ts +22 -0
  186. package/lib/components/Pagination/types.d.ts +8 -0
  187. package/lib/components/PaginationRange/Items/Item/Item.d.ts +3 -0
  188. package/lib/components/PaginationRange/Items/Item/index.d.ts +1 -0
  189. package/lib/components/PaginationRange/Items/Item/styled.d.ts +3 -0
  190. package/lib/components/PaginationRange/Items/Item/types.d.ts +5 -0
  191. package/lib/components/PaginationRange/Items/Items.d.ts +7 -0
  192. package/lib/components/PaginationRange/Items/index.d.ts +1 -0
  193. package/lib/components/PaginationRange/PaginationRange.d.ts +9 -0
  194. package/lib/components/PaginationRange/index.d.ts +1 -0
  195. package/lib/components/PaginationRange/styled.d.ts +6 -0
  196. package/lib/components/PaginationRange/types.d.ts +15 -0
  197. package/lib/components/Popover/Popover.d.ts +15 -0
  198. package/lib/components/Popover/PopoverDemo.d.ts +3 -0
  199. package/lib/components/Popover/index.d.ts +1 -0
  200. package/lib/components/Portal/Portal.d.ts +20 -0
  201. package/lib/components/Portal/index.d.ts +1 -0
  202. package/lib/components/PriceInput/PriceInput.d.ts +3 -0
  203. package/lib/components/PriceInput/index.d.ts +1 -0
  204. package/lib/components/PriceInput/styled.d.ts +29 -0
  205. package/lib/components/PriceInput/types.d.ts +12 -0
  206. package/lib/components/Radio/Radio.d.ts +12 -0
  207. package/lib/components/Radio/index.d.ts +1 -0
  208. package/lib/components/Radio/styled.d.ts +1 -0
  209. package/lib/components/Search/Search.d.ts +3 -0
  210. package/lib/components/Search/index.d.ts +1 -0
  211. package/lib/components/Search/styled.d.ts +26 -0
  212. package/lib/components/Search/types.d.ts +9 -0
  213. package/lib/components/SegmentedControl/SegmentedControl.d.ts +3 -0
  214. package/lib/components/SegmentedControl/index.d.ts +1 -0
  215. package/lib/components/SegmentedControl/styled.d.ts +1 -0
  216. package/lib/components/SegmentedControl/types.d.ts +13 -0
  217. package/lib/components/Select/Select.d.ts +17 -0
  218. package/lib/components/Select/index.d.ts +1 -0
  219. package/lib/components/Select/styled.d.ts +1 -0
  220. package/lib/components/SimpleTable/SimpleTable.d.ts +15 -0
  221. package/lib/components/SimpleTable/index.d.ts +1 -0
  222. package/lib/components/SimpleTable/styled.d.ts +15 -0
  223. package/lib/components/SimpleTable/types.d.ts +6 -0
  224. package/lib/components/Slider/Slider.d.ts +3 -0
  225. package/lib/components/Slider/index.d.ts +1 -0
  226. package/lib/components/Slider/styled.d.ts +8 -0
  227. package/lib/components/Slider/types.d.ts +26 -0
  228. package/lib/components/Stack/Alignments.d.ts +1 -2
  229. package/lib/components/Stack/Stack.d.ts +1 -2
  230. package/lib/components/Stack/types.d.ts +1 -1
  231. package/lib/components/Stepper/Stepper.d.ts +9 -0
  232. package/lib/components/Stepper/index.d.ts +1 -0
  233. package/lib/components/Stepper/styled.d.ts +5 -0
  234. package/lib/components/Tag/Tag.d.ts +5 -0
  235. package/lib/components/Tag/index.d.ts +1 -0
  236. package/lib/components/Text/Text.d.ts +2 -0
  237. package/lib/components/Text/index.d.ts +1 -0
  238. package/lib/components/Text/textVariants.d.ts +4 -0
  239. package/lib/components/Text/types.d.ts +14 -0
  240. package/lib/components/Text/utils.d.ts +2 -0
  241. package/lib/components/TextField/TextField.d.ts +3 -0
  242. package/lib/components/TextField/index.d.ts +20 -0
  243. package/lib/components/TextField/styled.d.ts +2 -0
  244. package/lib/components/TextField/types.d.ts +26 -0
  245. package/lib/components/ToastsLayout/ToastsLayout.d.ts +3 -0
  246. package/lib/components/ToastsLayout/components/Toast.d.ts +3 -0
  247. package/lib/components/ToastsLayout/components/styled.d.ts +10 -0
  248. package/lib/components/ToastsLayout/index.d.ts +1 -0
  249. package/lib/components/ToastsLayout/types.d.ts +38 -0
  250. package/lib/components/Toggle/Toggle.d.ts +6 -0
  251. package/lib/components/Toggle/index.d.ts +1 -0
  252. package/lib/components/Toggle/styled.d.ts +11 -0
  253. package/lib/components/Toggle/types.d.ts +9 -0
  254. package/lib/components/ToggleButton/ToggleButton.d.ts +9 -0
  255. package/lib/components/ToggleButton/index.d.ts +1 -0
  256. package/lib/components/ToggleButton/styled.d.ts +1 -0
  257. package/lib/components/Tooltip/Tooltip.d.ts +2 -0
  258. package/lib/components/Tooltip/index.d.ts +1 -0
  259. package/lib/components/Tooltip/styled.d.ts +8 -0
  260. package/lib/components/Tooltip/types.d.ts +36 -0
  261. package/lib/components/VideoModal/VideoModal.d.ts +3 -0
  262. package/lib/components/VideoModal/VideoModalDemo.d.ts +2 -0
  263. package/lib/components/VideoModal/components/Popup.d.ts +8 -0
  264. package/lib/components/VideoModal/components/styled.d.ts +7 -0
  265. package/lib/components/VideoModal/index.d.ts +1 -0
  266. package/lib/components/VideoModal/styled.d.ts +4 -0
  267. package/lib/components/VideoModal/types.d.ts +9 -0
  268. package/lib/components/View/View.d.ts +11 -0
  269. package/lib/components/View/index.d.ts +1 -0
  270. package/lib/components/View/styled.d.ts +13 -0
  271. package/lib/components/View/types.d.ts +30 -0
  272. package/lib/components/WeightInput/WeightInput.d.ts +3 -0
  273. package/lib/components/WeightInput/index.d.ts +1 -0
  274. package/lib/components/WeightInput/styled.d.ts +26 -0
  275. package/lib/components/WeightInput/types.d.ts +21 -0
  276. package/lib/components/index.d.ts +50 -0
  277. package/lib/components/types.d.ts +20 -0
  278. package/lib/hoc/index.d.ts +2 -0
  279. package/lib/hoc/withDeprecated.d.ts +2 -0
  280. package/lib/hoc/withLabels/HelpIcon.d.ts +2 -0
  281. package/lib/hoc/withLabels/index.d.ts +1 -0
  282. package/lib/hoc/withLabels/styled.d.ts +5 -0
  283. package/lib/hoc/withLabels/withLabels.d.ts +8 -0
  284. package/lib/hooks/index.d.ts +7 -0
  285. package/lib/hooks/useClickOutside.d.ts +5 -0
  286. package/lib/hooks/useDebounce.d.ts +1 -0
  287. package/lib/hooks/useDropdown.d.ts +6 -0
  288. package/lib/hooks/useFocusVisible.d.ts +11 -0
  289. package/lib/hooks/useHover.d.ts +1 -0
  290. package/lib/hooks/useIsOverflowing.d.ts +9 -0
  291. package/lib/hooks/useTabs.d.ts +6 -0
  292. package/lib/index.d.ts +1200 -18
  293. package/lib/index.esm.js +1 -1
  294. package/lib/index.esm.js.map +1 -1
  295. package/lib/index.js +1 -1
  296. package/lib/index.js.map +1 -1
  297. package/lib/tempIcons/ArrowDownIcon.d.ts +2 -0
  298. package/lib/tempIcons/ArrowUpIcon.d.ts +2 -0
  299. package/lib/tempIcons/AttentionIcon.d.ts +2 -0
  300. package/lib/tempIcons/CalendarIcon.d.ts +2 -0
  301. package/lib/tempIcons/ClipboardIcon.d.ts +2 -0
  302. package/lib/tempIcons/CrossIcon.d.ts +2 -0
  303. package/lib/tempIcons/DoubleArrowAscIcon.d.ts +2 -0
  304. package/lib/tempIcons/DoubleArrowDescIcon.d.ts +2 -0
  305. package/lib/tempIcons/DoubleArrowIcon.d.ts +2 -0
  306. package/lib/tempIcons/DoubleArrowIconIcon.d.ts +2 -0
  307. package/lib/tempIcons/DownArrowIcon.d.ts +2 -0
  308. package/lib/tempIcons/DropdownIcon.d.ts +2 -0
  309. package/lib/tempIcons/EditIcon.d.ts +2 -0
  310. package/lib/tempIcons/EndArrowIcon.d.ts +2 -0
  311. package/lib/tempIcons/FailIcon.d.ts +2 -0
  312. package/lib/tempIcons/HelpIcon.d.ts +2 -0
  313. package/lib/tempIcons/InfoIcon.d.ts +2 -0
  314. package/lib/tempIcons/LeftArrowIcon.d.ts +2 -0
  315. package/lib/tempIcons/MergeIcon.d.ts +2 -0
  316. package/lib/tempIcons/MoreHorizIcon.d.ts +2 -0
  317. package/lib/tempIcons/ReorderIcon.d.ts +2 -0
  318. package/lib/tempIcons/RightArrowIcon.d.ts +2 -0
  319. package/lib/tempIcons/SearchIcon.d.ts +2 -0
  320. package/lib/tempIcons/StartArrowIcon.d.ts +2 -0
  321. package/lib/tempIcons/SuccessIcon.d.ts +2 -0
  322. package/lib/tempIcons/UpArrowIcon.d.ts +2 -0
  323. package/lib/tempIcons/VisibilityIcon.d.ts +2 -0
  324. package/lib/tempIcons/VisibilityOffIcon.d.ts +2 -0
  325. package/lib/theme/index.d.ts +2 -2
  326. package/lib/theme/modules/shadows.d.ts +1 -1
  327. package/lib/theme/utils/buildClassnames.d.ts +1 -0
  328. package/lib/theme/utils/color.d.ts +13 -0
  329. package/lib/theme/utils/generateId.d.ts +1 -0
  330. package/lib/theme/utils/index.d.ts +3 -0
  331. package/lib/theme/utils/paginationList.d.ts +4 -0
  332. package/lib/theme/utils/setupIntersectionObserverMock.d.ts +18 -0
  333. package/lib/utils/buildClassnames.d.ts +1 -0
  334. package/lib/utils/color.d.ts +13 -0
  335. package/lib/utils/generateId.d.ts +1 -0
  336. package/lib/utils/index.d.ts +3 -0
  337. package/lib/utils/paginationList.d.ts +4 -0
  338. package/lib/utils/setupIntersectionObserverMock.d.ts +18 -0
  339. package/lib/utils/toMap.d.ts +5 -0
  340. package/package.json +68 -14
  341. package/setupJestMock.js +5 -0
  342. package/setupTests.js +6 -0
  343. package/src/components/Accordion/Accordion.stories.mdx +41 -0
  344. package/src/components/Accordion/Accordion.stories.tsx +29 -0
  345. package/src/components/Accordion/Accordion.test.tsx +34 -0
  346. package/src/components/Accordion/Accordion.tsx +62 -0
  347. package/src/components/Accordion/__snapshots__/Accordion.test.tsx.snap +152 -0
  348. package/src/components/Accordion/index.ts +1 -0
  349. package/src/components/Accordion/styled.ts +102 -0
  350. package/src/components/ActionList/ActionList.stories.tsx +23 -0
  351. package/src/components/ActionList/ActionList.test.tsx +39 -0
  352. package/src/components/ActionList/ActionList.tsx +72 -0
  353. package/src/components/ActionList/__snapshots__/ActionList.test.tsx.snap +247 -0
  354. package/src/components/ActionList/index.ts +1 -0
  355. package/src/components/ActionList/styled.ts +62 -0
  356. package/src/components/ActionList/types.ts +22 -0
  357. package/src/components/Anchor/Anchor.stories.tsx +35 -0
  358. package/src/components/Anchor/Anchor.test.tsx +10 -0
  359. package/src/components/Anchor/Anchor.tsx +17 -0
  360. package/src/components/Anchor/__snapshots__/Anchor.test.tsx.snap +34 -0
  361. package/src/components/Anchor/index.ts +1 -0
  362. package/src/components/Anchor/styled.ts +22 -0
  363. package/src/components/AnimatedDropdown/AnimatedDropdown.stories.tsx +44 -0
  364. package/src/components/AnimatedDropdown/AnimatedDropdown.test.tsx +14 -0
  365. package/src/components/AnimatedDropdown/AnimatedDropdown.tsx +54 -0
  366. package/src/components/AnimatedDropdown/__snapshots__/AnimatedDropdown.test.tsx.snap +117 -0
  367. package/src/components/AnimatedDropdown/components/BasicDropdown.test.tsx +14 -0
  368. package/src/components/AnimatedDropdown/components/BasicDropdown.tsx +17 -0
  369. package/src/components/AnimatedDropdown/components/__snapshots__/BasicDropdown.test.tsx.snap +31 -0
  370. package/src/components/AnimatedDropdown/components/styled.ts +11 -0
  371. package/src/components/AnimatedDropdown/index.ts +1 -0
  372. package/src/components/AnimatedDropdown/styled.ts +51 -0
  373. package/src/components/AnimatedDropdown/types.ts +16 -0
  374. package/src/components/Avatar/Avatar.stories.tsx +30 -0
  375. package/src/components/Avatar/Avatar.test.tsx +10 -0
  376. package/src/components/Avatar/Avatar.tsx +23 -0
  377. package/src/components/Avatar/__snapshots__/Avatar.test.tsx.snap +47 -0
  378. package/src/components/Avatar/index.ts +1 -0
  379. package/src/components/Avatar/styled.ts +24 -0
  380. package/src/components/Avatar/types.ts +12 -0
  381. package/src/components/Badge/Badge.stories.tsx +29 -0
  382. package/src/components/Badge/Badge.test.tsx +15 -0
  383. package/src/components/Badge/Badge.tsx +33 -0
  384. package/src/components/Badge/__snapshots__/Badge.test.tsx.snap +78 -0
  385. package/src/components/Badge/index.ts +1 -0
  386. package/src/components/Badge/styled.ts +50 -0
  387. package/src/components/Badge/types.ts +43 -0
  388. package/src/components/Banner/Banner.stories.tsx +30 -0
  389. package/src/components/Banner/Banner.test.tsx +10 -0
  390. package/src/components/Banner/Banner.tsx +45 -0
  391. package/src/components/Banner/__snapshots__/Banner.test.tsx.snap +124 -0
  392. package/src/components/Banner/index.ts +1 -0
  393. package/src/components/Banner/styled.ts +49 -0
  394. package/src/components/Banner/types.ts +23 -0
  395. package/src/components/BaseContainer/BaseContainer.test.tsx +10 -0
  396. package/src/components/BaseContainer/BaseContainer.ts +8 -0
  397. package/src/components/BaseContainer/__snapshots__/BaseContainer.test.tsx.snap +18 -0
  398. package/src/components/BaseContainer/index.ts +1 -0
  399. package/src/components/Breadcrumbs/Breadcrumbs.stories.tsx +43 -0
  400. package/src/components/Breadcrumbs/Breadcrumbs.test.tsx +21 -0
  401. package/src/components/Breadcrumbs/Breadcrumbs.tsx +31 -0
  402. package/src/components/Breadcrumbs/__snapshots__/Breadcrumbs.test.tsx.snap +91 -0
  403. package/src/components/Breadcrumbs/components/Breadcrumb.tsx +20 -0
  404. package/src/components/Breadcrumbs/components/styled.ts +31 -0
  405. package/src/components/Breadcrumbs/index.ts +1 -0
  406. package/src/components/Breadcrumbs/types.ts +23 -0
  407. package/src/components/Button/Button.stories.tsx +111 -0
  408. package/src/components/Button/Button.test.tsx +101 -0
  409. package/src/components/Button/Button.tsx +82 -0
  410. package/src/components/Button/Docs.mdx +19 -0
  411. package/src/components/Button/__snapshots__/Button.test.tsx.snap +1570 -0
  412. package/src/components/Button/components/styled.ts +271 -0
  413. package/src/components/Button/index.ts +1 -0
  414. package/src/components/Button/types.ts +27 -0
  415. package/src/components/Card/Card.stories.tsx +85 -0
  416. package/src/components/Card/Card.test.tsx +26 -0
  417. package/src/components/Card/Card.tsx +88 -0
  418. package/src/components/Card/Docs.mdx +134 -0
  419. package/src/components/Card/__snapshots__/Card.test.tsx.snap +390 -0
  420. package/src/components/Card/index.ts +1 -0
  421. package/src/components/Card/styled.ts +93 -0
  422. package/src/components/CardHeader/CardHeader.stories.tsx +38 -0
  423. package/src/components/CardHeader/CardHeader.test.tsx +12 -0
  424. package/src/components/CardHeader/CardHeader.tsx +63 -0
  425. package/src/components/CardHeader/__snapshots__/CardHeader.test.tsx.snap +218 -0
  426. package/src/components/CardHeader/index.ts +1 -0
  427. package/src/components/CardHeader/styled.ts +30 -0
  428. package/src/components/Checkbox/Checkbox.stories.tsx +64 -0
  429. package/src/components/Checkbox/Checkbox.test.tsx +57 -0
  430. package/src/components/Checkbox/Checkbox.tsx +62 -0
  431. package/src/components/Checkbox/__snapshots__/Checkbox.test.tsx.snap +129 -0
  432. package/src/components/Checkbox/index.ts +1 -0
  433. package/src/components/Checkbox/styled.ts +67 -0
  434. package/src/components/Choice/Choice.tsx +89 -0
  435. package/src/components/Choice/components/styled.ts +98 -0
  436. package/src/components/Choice/index.ts +1 -0
  437. package/src/components/ChoiceList/ChoiceList.stories.tsx +23 -0
  438. package/src/components/ChoiceList/ChoiceList.test.tsx +39 -0
  439. package/src/components/ChoiceList/ChoiceList.tsx +86 -0
  440. package/src/components/ChoiceList/__snapshots__/ChoiceList.test.tsx.snap +352 -0
  441. package/src/components/ChoiceList/index.ts +1 -0
  442. package/src/components/ChoiceList/styled.ts +23 -0
  443. package/src/components/CopyToClipboard/CopyToClipboard.stories.tsx +18 -0
  444. package/src/components/CopyToClipboard/CopyToClipboard.test.tsx +10 -0
  445. package/src/components/CopyToClipboard/CopyToClipboard.tsx +53 -0
  446. package/src/components/CopyToClipboard/__snapshots__/CopyToClipboard.test.tsx.snap +129 -0
  447. package/src/components/CopyToClipboard/index.ts +1 -0
  448. package/src/components/DataTable/DataTable.stories.tsx +99 -0
  449. package/src/components/DataTable/DataTable.test.tsx +104 -0
  450. package/src/components/DataTable/DataTable.tsx +634 -0
  451. package/src/components/DataTable/DataTableDocs.mdx +625 -0
  452. package/src/components/DataTable/SkeletonContent/SkeletonContent.tsx +46 -0
  453. package/src/components/DataTable/SkeletonContent/index.ts +1 -0
  454. package/src/components/DataTable/SpecificState/SpecificState.tsx +17 -0
  455. package/src/components/DataTable/SpecificState/index.ts +1 -0
  456. package/src/components/DataTable/SpecificState/styled.ts +42 -0
  457. package/src/components/DataTable/StickyHeader.tsx +64 -0
  458. package/src/components/DataTable/__snapshots__/DataTable.test.tsx.snap +439 -0
  459. package/src/components/DataTable/cells/ClickableCell.tsx +21 -0
  460. package/src/components/DataTable/cells/EditableCell.tsx +22 -0
  461. package/src/components/DataTable/cells/SkeletonCell.tsx +17 -0
  462. package/src/components/DataTable/cells/SkeletonHeaderCell.tsx +20 -0
  463. package/src/components/DataTable/cells/index.ts +3 -0
  464. package/src/components/DataTable/cells/styled.ts +25 -0
  465. package/src/components/DataTable/index.ts +1 -0
  466. package/src/components/DataTable/styled.ts +291 -0
  467. package/src/components/DataTable/utils/constants.tsx +25 -0
  468. package/src/components/DataTable/utils/hooks.ts +38 -0
  469. package/src/components/DataTable/utils/index.ts +23 -0
  470. package/src/components/DataTable/utils/types.ts +117 -0
  471. package/src/components/DataTableExp/DataTable.test.tsx +214 -0
  472. package/src/components/DataTableExp/DataTable.tsx +291 -0
  473. package/src/components/DataTableExp/DataTableExp.stories.tsx +329 -0
  474. package/src/components/DataTableExp/Docs.mdx +74 -0
  475. package/src/components/DataTableExp/components/ActionBar.tsx +87 -0
  476. package/src/components/DataTableExp/components/Cell.ts +41 -0
  477. package/src/components/DataTableExp/components/ColumnHeader.tsx +52 -0
  478. package/src/components/DataTableExp/components/ColumnMenu.tsx +96 -0
  479. package/src/components/DataTableExp/components/EmptyBodyContent.ts +23 -0
  480. package/src/components/DataTableExp/components/Header.ts +20 -0
  481. package/src/components/DataTableExp/components/LoadingCellContent.ts +39 -0
  482. package/src/components/DataTableExp/components/NoWrap.ts +5 -0
  483. package/src/components/DataTableExp/components/Row.ts +39 -0
  484. package/src/components/DataTableExp/components/ScrollContainer.ts +8 -0
  485. package/src/components/DataTableExp/components/SelectionCell.tsx +36 -0
  486. package/src/components/DataTableExp/components/SelectionHeader.tsx +20 -0
  487. package/src/components/DataTableExp/components/StickyHead.tsx +134 -0
  488. package/src/components/DataTableExp/components/TableGrid.ts +28 -0
  489. package/src/components/DataTableExp/components/Truncate.ts +7 -0
  490. package/src/components/DataTableExp/components/Wrapper.ts +26 -0
  491. package/src/components/DataTableExp/constants.ts +4 -0
  492. package/src/components/DataTableExp/hooks/index.tsx +6 -0
  493. package/src/components/DataTableExp/hooks/useCellWidths.ts +34 -0
  494. package/src/components/DataTableExp/hooks/useColumns.ts +14 -0
  495. package/src/components/DataTableExp/hooks/useDragToScroll.ts +48 -0
  496. package/src/components/DataTableExp/hooks/useNested.ts +31 -0
  497. package/src/components/DataTableExp/hooks/useScrollPosition.ts +45 -0
  498. package/src/components/DataTableExp/hooks/useSelection.tsx +92 -0
  499. package/src/components/DataTableExp/index.tsx +1 -0
  500. package/src/components/DataTableExp/renderers/index.tsx +5 -0
  501. package/src/components/DataTableExp/renderers/renderCell.ts +31 -0
  502. package/src/components/DataTableExp/renderers/renderFooter.tsx +33 -0
  503. package/src/components/DataTableExp/renderers/renderHeader.tsx +83 -0
  504. package/src/components/DataTableExp/renderers/renderLoadingCell.tsx +29 -0
  505. package/src/components/DataTableExp/renderers/renderNestedCell.tsx +33 -0
  506. package/src/components/DataTableExp/types.ts +168 -0
  507. package/src/components/DataTableExp/utils/GetSortIcon.tsx +24 -0
  508. package/src/components/DataTableExp/utils/alignmentToFlex.ts +14 -0
  509. package/src/components/DataTableExp/utils/generateTableCss.ts +114 -0
  510. package/src/components/DataTableExp/utils/getNextSortState.ts +18 -0
  511. package/src/components/DataTableExp/utils/getRowState.test.ts +33 -0
  512. package/src/components/DataTableExp/utils/getRowState.ts +17 -0
  513. package/src/components/DataTableExp/utils/index.ts +6 -0
  514. package/src/components/DataTableExp/utils/parseWidth.ts +12 -0
  515. package/src/components/DataTableExp/utils/sumAll.ts +7 -0
  516. package/src/components/DescriptionList/DescriptionList.stories.tsx +24 -0
  517. package/src/components/DescriptionList/DescriptionList.test.tsx +16 -0
  518. package/src/components/DescriptionList/DescriptionList.tsx +90 -0
  519. package/src/components/DescriptionList/__snapshots__/DescriptionList.test.tsx.snap +86 -0
  520. package/src/components/DescriptionList/index.ts +1 -0
  521. package/src/components/DetailPage/DetailPage.stories.tsx +45 -0
  522. package/src/components/DetailPage/DetailPage.test.tsx +15 -0
  523. package/src/components/DetailPage/DetailPage.tsx +23 -0
  524. package/src/components/DetailPage/__snapshots__/DetailPage.test.tsx.snap +52 -0
  525. package/src/components/DetailPage/index.ts +1 -0
  526. package/src/components/DetailPage/styled.ts +27 -0
  527. package/src/components/DimensionsInput/DimensionsInput.stories.tsx +33 -0
  528. package/src/components/DimensionsInput/DimensionsInput.test.tsx +98 -0
  529. package/src/components/DimensionsInput/DimensionsInput.tsx +63 -0
  530. package/src/components/DimensionsInput/__snapshots__/DimensionsInput.test.tsx.snap +303 -0
  531. package/src/components/DimensionsInput/index.ts +1 -0
  532. package/src/components/DimensionsInput/styled.ts +66 -0
  533. package/src/components/DimensionsInput/types.ts +16 -0
  534. package/src/components/FilterTag/FilterTag.stories.tsx +32 -0
  535. package/src/components/FilterTag/FilterTag.test.tsx +10 -0
  536. package/src/components/FilterTag/FilterTag.tsx +111 -0
  537. package/src/components/FilterTag/__snapshots__/FilterTag.test.tsx.snap +117 -0
  538. package/src/components/FilterTag/index.ts +1 -0
  539. package/src/components/FilterTag/styled.ts +77 -0
  540. package/src/components/FilterTag/types.ts +15 -0
  541. package/src/components/Grid/Grid.stories.mdx +34 -0
  542. package/src/components/Grid/Grid.test.tsx +14 -0
  543. package/src/components/Grid/__snapshots__/Grid.test.tsx.snap +32 -0
  544. package/src/components/Grid/index.ts +12 -0
  545. package/src/components/Grid/types.ts +10 -0
  546. package/src/components/Image/Image.stories.tsx +20 -0
  547. package/src/components/Image/Image.test.tsx +10 -0
  548. package/src/components/Image/Image.tsx +122 -0
  549. package/src/components/Image/__snapshots__/Image.test.tsx.snap +34 -0
  550. package/src/components/Image/components/PlaceholderImage.tsx +19 -0
  551. package/src/components/Image/components/styled.ts +17 -0
  552. package/src/components/Image/index.ts +1 -0
  553. package/src/components/Image/types.ts +6 -0
  554. package/src/components/Image/utils.ts +8 -0
  555. package/src/components/InputGroup/InputGroup.stories.tsx +33 -0
  556. package/src/components/InputGroup/InputGroup.test.tsx +15 -0
  557. package/src/components/InputGroup/__snapshots__/InputGroup.test.tsx.snap +182 -0
  558. package/src/components/InputGroup/index.ts +46 -0
  559. package/src/components/Loader/Docs.mdx +1 -1
  560. package/src/components/Loader/Grid.tsx +1 -3
  561. package/src/components/Loader/Loader.stories.tsx +1 -1
  562. package/src/components/Loader/Loader.test.tsx +14 -0
  563. package/src/components/Loader/Loader.tsx +5 -5
  564. package/src/components/Loader/TailSpin.tsx +1 -3
  565. package/src/components/Loader/ThreeDots.tsx +1 -3
  566. package/src/components/Loader/__snapshots__/Loader.test.tsx.snap +315 -13
  567. package/src/components/LoginWithAmazonButton/LoginWithAmazonButton.stories.tsx +14 -0
  568. package/src/components/LoginWithAmazonButton/LoginWithAmazonButton.test.tsx +19 -0
  569. package/src/components/LoginWithAmazonButton/LoginWithAmazonButton.tsx +38 -0
  570. package/src/components/LoginWithAmazonButton/index.tsx +1 -0
  571. package/src/components/LoginWithAmazonButton/styled.ts +14 -0
  572. package/src/components/Modal/Modal.stories.tsx +455 -0
  573. package/src/components/Modal/Modal.test.tsx +211 -0
  574. package/src/components/Modal/Modal.tsx +110 -0
  575. package/src/components/Modal/__snapshots__/Modal.test.tsx.snap +1940 -0
  576. package/src/components/Modal/components/Dialog/Dialog.tsx +11 -0
  577. package/src/components/Modal/components/Dialog/constants.ts +48 -0
  578. package/src/components/Modal/components/Dialog/styled.ts +104 -0
  579. package/src/components/Modal/components/styled.ts +24 -0
  580. package/src/components/Modal/index.tsx +1 -0
  581. package/src/components/Modal/types.ts +61 -0
  582. package/src/components/PageHeader/PageHeader.test.tsx +40 -0
  583. package/src/components/PageHeader/PageHeader.tsx +119 -0
  584. package/src/components/PageHeader/PageHeaderDocs.mdx +69 -0
  585. package/src/components/PageHeader/__snapshots__/PageHeader.test.tsx.snap +906 -0
  586. package/src/components/PageHeader/index.ts +1 -0
  587. package/src/components/PageHeader/styled.ts +81 -0
  588. package/src/components/Pagination/Docs.mdx +61 -0
  589. package/src/components/Pagination/Pagination.stories.tsx +27 -0
  590. package/src/components/Pagination/Pagination.test.tsx +102 -0
  591. package/src/components/Pagination/Pagination.tsx +105 -0
  592. package/src/components/Pagination/__snapshots__/Pagination.test.tsx.snap +395 -0
  593. package/src/components/Pagination/components.tsx +16 -0
  594. package/src/components/Pagination/hooks/usePagination.ts +88 -0
  595. package/src/components/Pagination/index.ts +1 -0
  596. package/src/components/Pagination/styled.ts +31 -0
  597. package/src/components/Pagination/types.ts +9 -0
  598. package/src/components/PaginationRange/Items/Item/Item.tsx +14 -0
  599. package/src/components/PaginationRange/Items/Item/index.ts +1 -0
  600. package/src/components/PaginationRange/Items/Item/styled.ts +26 -0
  601. package/src/components/PaginationRange/Items/Item/types.ts +6 -0
  602. package/src/components/PaginationRange/Items/Items.tsx +27 -0
  603. package/src/components/PaginationRange/Items/index.ts +1 -0
  604. package/src/components/PaginationRange/PaginationRange.stories.tsx +14 -0
  605. package/src/components/PaginationRange/PaginationRange.test.tsx +10 -0
  606. package/src/components/PaginationRange/PaginationRange.tsx +69 -0
  607. package/src/components/PaginationRange/__snapshots__/PaginationRange.test.tsx.snap +155 -0
  608. package/src/components/PaginationRange/index.ts +1 -0
  609. package/src/components/PaginationRange/styled.ts +39 -0
  610. package/src/components/PaginationRange/types.ts +17 -0
  611. package/src/components/Popover/Popover.test.tsx +87 -0
  612. package/src/components/Popover/Popover.tsx +82 -0
  613. package/src/components/Popover/PopoverDemo.tsx +53 -0
  614. package/src/components/Popover/PopoverDocs.mdx +64 -0
  615. package/src/components/Popover/__snapshots__/Popover.test.tsx.snap +35 -0
  616. package/src/components/Popover/index.ts +1 -0
  617. package/src/components/Portal/Portal.stories.tsx +18 -0
  618. package/src/components/Portal/Portal.tsx +62 -0
  619. package/src/components/Portal/index.ts +1 -0
  620. package/src/components/PriceInput/PriceInput.stories.tsx +36 -0
  621. package/src/components/PriceInput/PriceInput.test.tsx +22 -0
  622. package/src/components/PriceInput/PriceInput.tsx +101 -0
  623. package/src/components/PriceInput/index.tsx +1 -0
  624. package/src/components/PriceInput/styled.ts +116 -0
  625. package/src/components/PriceInput/types.ts +13 -0
  626. package/src/components/Radio/Radio.stories.tsx +57 -0
  627. package/src/components/Radio/Radio.test.tsx +8 -0
  628. package/src/components/Radio/Radio.tsx +39 -0
  629. package/src/components/Radio/__snapshots__/Radio.test.tsx.snap +128 -0
  630. package/src/components/Radio/index.ts +1 -0
  631. package/src/components/Radio/styled.ts +58 -0
  632. package/src/components/Search/Search.stories.mdx +23 -0
  633. package/src/components/Search/Search.stories.tsx +31 -0
  634. package/src/components/Search/Search.test.tsx +12 -0
  635. package/src/components/Search/Search.tsx +87 -0
  636. package/src/components/Search/__snapshots__/Search.test.tsx.snap +162 -0
  637. package/src/components/Search/index.ts +1 -0
  638. package/src/components/Search/styled.ts +46 -0
  639. package/src/components/Search/types.ts +10 -0
  640. package/src/components/SegmentedControl/SegmentedControl.stories.tsx +43 -0
  641. package/src/components/SegmentedControl/SegmentedControl.test.tsx +67 -0
  642. package/src/components/SegmentedControl/SegmentedControl.tsx +27 -0
  643. package/src/components/SegmentedControl/__snapshots__/SegmentedControl.test.tsx.snap +825 -0
  644. package/src/components/SegmentedControl/index.ts +1 -0
  645. package/src/components/SegmentedControl/styled.ts +50 -0
  646. package/src/components/SegmentedControl/types.ts +13 -0
  647. package/src/components/Select/Select.stories.tsx +37 -0
  648. package/src/components/Select/Select.test.tsx +37 -0
  649. package/src/components/Select/Select.tsx +58 -0
  650. package/src/components/Select/__snapshots__/Select.test.tsx.snap +199 -0
  651. package/src/components/Select/index.ts +1 -0
  652. package/src/components/Select/styled.ts +53 -0
  653. package/src/components/SimpleTable/SimpleTable.stories.tsx +60 -0
  654. package/src/components/SimpleTable/SimpleTable.test.tsx +28 -0
  655. package/src/components/SimpleTable/SimpleTable.tsx +18 -0
  656. package/src/components/SimpleTable/__snapshots__/SimpleTable.test.tsx.snap +87 -0
  657. package/src/components/SimpleTable/index.ts +1 -0
  658. package/src/components/SimpleTable/styled.ts +68 -0
  659. package/src/components/SimpleTable/types.ts +7 -0
  660. package/src/components/Slider/Select.stories.tsx +43 -0
  661. package/src/components/Slider/Slider.test.tsx +19 -0
  662. package/src/components/Slider/Slider.tsx +197 -0
  663. package/src/components/Slider/__snapshots__/Slider.test.tsx.snap +109 -0
  664. package/src/components/Slider/index.ts +1 -0
  665. package/src/components/Slider/styled.ts +53 -0
  666. package/src/components/Slider/types.ts +30 -0
  667. package/src/components/Stack/Alignments.ts +1 -3
  668. package/src/components/Stack/Stack.test.tsx +46 -0
  669. package/src/components/Stack/Stack.tsx +1 -2
  670. package/src/components/Stack/__snapshots__/Stack.test.tsx.snap +240 -10
  671. package/src/components/Stack/types.ts +1 -1
  672. package/src/components/Stepper/Stepper.stories.tsx +14 -0
  673. package/src/components/Stepper/Stepper.test.tsx +8 -0
  674. package/src/components/Stepper/Stepper.tsx +33 -0
  675. package/src/components/Stepper/__snapshots__/Stepper.test.tsx.snap +142 -0
  676. package/src/components/Stepper/index.ts +1 -0
  677. package/src/components/Stepper/styled.ts +83 -0
  678. package/src/components/Tag/Tag.stories.tsx +43 -0
  679. package/src/components/Tag/Tag.test.tsx +18 -0
  680. package/src/components/Tag/Tag.ts +23 -0
  681. package/src/components/Tag/__snapshots__/Tag.test.tsx.snap +78 -0
  682. package/src/components/Tag/index.ts +1 -0
  683. package/src/components/Text/Docs.mdx +112 -0
  684. package/src/components/Text/Text.stories.tsx +27 -0
  685. package/src/components/Text/Text.test.tsx +38 -0
  686. package/src/components/Text/Text.ts +44 -0
  687. package/src/components/Text/__snapshots__/Text.test.tsx.snap +1158 -0
  688. package/src/components/Text/index.ts +1 -0
  689. package/src/components/Text/textVariants.ts +41 -0
  690. package/src/components/Text/types.ts +33 -0
  691. package/src/components/Text/utils.ts +23 -0
  692. package/src/components/TextField/Docs.mdx +14 -0
  693. package/src/components/TextField/TextField.stories.tsx +38 -0
  694. package/src/components/TextField/TextField.test.tsx +27 -0
  695. package/src/components/TextField/TextField.tsx +92 -0
  696. package/src/components/TextField/__snapshots__/TextField.test.tsx.snap +205 -0
  697. package/src/components/TextField/index.ts +4 -0
  698. package/src/components/TextField/styled.ts +95 -0
  699. package/src/components/TextField/types.ts +41 -0
  700. package/src/components/ToastsLayout/ToastsLayout.stories.tsx +88 -0
  701. package/src/components/ToastsLayout/ToastsLayout.tsx +39 -0
  702. package/src/components/ToastsLayout/components/Toast.tsx +78 -0
  703. package/src/components/ToastsLayout/components/styled.ts +76 -0
  704. package/src/components/ToastsLayout/index.ts +1 -0
  705. package/src/components/ToastsLayout/types.ts +41 -0
  706. package/src/components/Toggle/Toggle.stories.tsx +41 -0
  707. package/src/components/Toggle/Toggle.test.tsx +57 -0
  708. package/src/components/Toggle/Toggle.tsx +31 -0
  709. package/src/components/Toggle/__snapshots__/Toggle.test.tsx.snap +219 -0
  710. package/src/components/Toggle/index.ts +1 -0
  711. package/src/components/Toggle/styled.ts +84 -0
  712. package/src/components/Toggle/types.ts +10 -0
  713. package/src/components/ToggleButton/ToggleButton.stories.tsx +19 -0
  714. package/src/components/ToggleButton/ToggleButton.test.tsx +12 -0
  715. package/src/components/ToggleButton/ToggleButton.tsx +31 -0
  716. package/src/components/ToggleButton/__snapshots__/ToggleButton.test.tsx.snap +83 -0
  717. package/src/components/ToggleButton/index.ts +1 -0
  718. package/src/components/ToggleButton/styled.ts +92 -0
  719. package/src/components/Tooltip/Docs.mdx +14 -0
  720. package/src/components/Tooltip/Tooltip.stories.tsx +26 -0
  721. package/src/components/Tooltip/Tooltip.test.tsx +25 -0
  722. package/src/components/Tooltip/Tooltip.tsx +95 -0
  723. package/src/components/Tooltip/__snapshots__/Tooltip.test.tsx.snap +17 -0
  724. package/src/components/Tooltip/index.ts +1 -0
  725. package/src/components/Tooltip/styled.ts +74 -0
  726. package/src/components/Tooltip/types.ts +44 -0
  727. package/src/components/VideoModal/VideoModal.stories.tsx +36 -0
  728. package/src/components/VideoModal/VideoModal.test.tsx +36 -0
  729. package/src/components/VideoModal/VideoModal.tsx +40 -0
  730. package/src/components/VideoModal/VideoModalDemo.tsx +19 -0
  731. package/src/components/VideoModal/__snapshots__/VideoModal.test.tsx.snap +165 -0
  732. package/src/components/VideoModal/components/Popup.tsx +44 -0
  733. package/src/components/VideoModal/components/styled.ts +34 -0
  734. package/src/components/VideoModal/index.ts +1 -0
  735. package/src/components/VideoModal/styled.ts +24 -0
  736. package/src/components/VideoModal/types.ts +9 -0
  737. package/src/components/View/View.stories.tsx +26 -0
  738. package/src/components/View/View.test.tsx +10 -0
  739. package/src/components/View/View.tsx +120 -0
  740. package/src/components/View/__snapshots__/View.test.tsx.snap +80 -0
  741. package/src/components/View/index.ts +1 -0
  742. package/src/components/View/styled.ts +82 -0
  743. package/src/components/View/types.ts +42 -0
  744. package/src/components/WeightInput/WeightInput.stories.tsx +26 -0
  745. package/src/components/WeightInput/WeightInput.test.tsx +11 -0
  746. package/src/components/WeightInput/WeightInput.tsx +66 -0
  747. package/src/components/WeightInput/__snapshots__/WeightInput.test.tsx.snap +272 -0
  748. package/src/components/WeightInput/index.ts +1 -0
  749. package/src/components/WeightInput/styled.ts +39 -0
  750. package/src/components/WeightInput/types.ts +31 -0
  751. package/src/components/index.ts +50 -0
  752. package/src/components/types.ts +23 -0
  753. package/src/hoc/index.ts +2 -0
  754. package/src/hoc/withDeprecated.tsx +11 -0
  755. package/src/hoc/withLabels/index.ts +1 -0
  756. package/src/hoc/withLabels/styled.ts +54 -0
  757. package/src/hoc/withLabels/withLabels.tsx +46 -0
  758. package/src/hooks/index.ts +7 -0
  759. package/src/hooks/useClickOutside.ts +40 -0
  760. package/src/hooks/useDebounce.ts +15 -0
  761. package/src/hooks/useDropdown.ts +22 -0
  762. package/src/hooks/useFocusVisible.tsx +157 -0
  763. package/src/hooks/useHover.ts +9 -0
  764. package/src/hooks/useIsOverflowing.ts +32 -0
  765. package/src/hooks/useTabs.ts +24 -0
  766. package/src/index.ts +3 -0
  767. package/src/tempIcons/ArrowDownIcon.tsx +12 -0
  768. package/src/tempIcons/ArrowUpIcon.tsx +12 -0
  769. package/src/tempIcons/AttentionIcon.tsx +12 -0
  770. package/src/tempIcons/CalendarIcon.tsx +12 -0
  771. package/src/tempIcons/ClipboardIcon.tsx +10 -0
  772. package/src/tempIcons/CrossIcon.tsx +20 -0
  773. package/src/tempIcons/DoubleArrowAscIcon.tsx +8 -0
  774. package/src/tempIcons/DoubleArrowDescIcon.tsx +8 -0
  775. package/src/tempIcons/DoubleArrowIcon.tsx +8 -0
  776. package/src/tempIcons/DoubleArrowIconIcon.tsx +8 -0
  777. package/src/tempIcons/DownArrowIcon.tsx +20 -0
  778. package/src/tempIcons/DropdownIcon.tsx +14 -0
  779. package/src/tempIcons/EditIcon.tsx +12 -0
  780. package/src/tempIcons/EndArrowIcon.tsx +18 -0
  781. package/src/tempIcons/FailIcon.tsx +12 -0
  782. package/src/tempIcons/HelpIcon.tsx +12 -0
  783. package/src/tempIcons/InfoIcon.tsx +14 -0
  784. package/src/tempIcons/LeftArrowIcon.tsx +12 -0
  785. package/src/tempIcons/MergeIcon.tsx +12 -0
  786. package/src/tempIcons/MoreHorizIcon.tsx +10 -0
  787. package/src/tempIcons/ReorderIcon.tsx +10 -0
  788. package/src/tempIcons/RightArrowIcon.tsx +12 -0
  789. package/src/tempIcons/SearchIcon.tsx +12 -0
  790. package/src/tempIcons/StartArrowIcon.tsx +16 -0
  791. package/src/tempIcons/SuccessIcon.tsx +12 -0
  792. package/src/tempIcons/UpArrowIcon.tsx +20 -0
  793. package/src/tempIcons/VisibilityIcon.tsx +10 -0
  794. package/src/tempIcons/VisibilityOffIcon.tsx +10 -0
  795. package/src/theme/index.ts +2 -2
  796. package/src/theme/modules/shadows.ts +1 -1
  797. package/src/utils/buildClassnames.ts +2 -0
  798. package/src/utils/color.ts +27 -0
  799. package/src/utils/generateId.ts +4 -0
  800. package/src/utils/index.ts +3 -0
  801. package/src/utils/paginationList.ts +6 -0
  802. package/src/utils/setupIntersectionObserverMock.ts +46 -0
@@ -0,0 +1,1940 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Modal displays footer slot instead of if actions if provided 1`] = `
4
+ <DocumentFragment>
5
+ .c5 {
6
+ box-sizing: border-box;
7
+ display: inline-block;
8
+ margin: 0;
9
+ padding: 0;
10
+ font-style: normal;
11
+ font-weight: normal;
12
+ font-size: 12px;
13
+ font-family: Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
14
+ line-height: 16px;
15
+ color: #37424d;
16
+ font-family: Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
17
+ font-style: normal;
18
+ font-weight: 600;
19
+ font-size: 24px;
20
+ line-height: 32px;
21
+ color: #37424D;
22
+ -webkit-text-decoration: none;
23
+ text-decoration: none;
24
+ -webkit-letter-spacing: -0.019rem;
25
+ -moz-letter-spacing: -0.019rem;
26
+ -ms-letter-spacing: -0.019rem;
27
+ letter-spacing: -0.019rem;
28
+ }
29
+
30
+ .c9 {
31
+ box-sizing: border-box;
32
+ display: inline-block;
33
+ margin: 0;
34
+ padding: 0;
35
+ font-style: normal;
36
+ font-weight: normal;
37
+ font-size: 12px;
38
+ font-family: Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
39
+ line-height: 16px;
40
+ color: #37424d;
41
+ font-family: Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
42
+ font-style: normal;
43
+ font-weight: normal;
44
+ font-size: 12px;
45
+ line-height: 16px;
46
+ color: #637381;
47
+ -webkit-text-decoration: none;
48
+ text-decoration: none;
49
+ -webkit-letter-spacing: 0;
50
+ -moz-letter-spacing: 0;
51
+ -ms-letter-spacing: 0;
52
+ letter-spacing: 0;
53
+ }
54
+
55
+ .c8 {
56
+ display: -webkit-inline-box;
57
+ display: -webkit-inline-flex;
58
+ display: -ms-inline-flexbox;
59
+ display: inline-flex;
60
+ -webkit-align-items: center;
61
+ -webkit-box-align: center;
62
+ -ms-flex-align: center;
63
+ align-items: center;
64
+ gap: 4px;
65
+ }
66
+
67
+ .c8 svg {
68
+ width: 1.5rem;
69
+ height: 1.5rem;
70
+ }
71
+
72
+ .c6 {
73
+ position: relative;
74
+ box-sizing: border-box;
75
+ -webkit-appearance: none;
76
+ -moz-appearance: none;
77
+ appearance: none;
78
+ display: -webkit-box;
79
+ display: -webkit-flex;
80
+ display: -ms-flexbox;
81
+ display: flex;
82
+ -webkit-align-items: center;
83
+ -webkit-box-align: center;
84
+ -ms-flex-align: center;
85
+ align-items: center;
86
+ -webkit-box-pack: center;
87
+ -webkit-justify-content: center;
88
+ -ms-flex-pack: center;
89
+ justify-content: center;
90
+ -webkit-flex-shrink: 0;
91
+ -ms-flex-negative: 0;
92
+ flex-shrink: 0;
93
+ font-family: Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
94
+ font-weight: 400;
95
+ border: 1px solid;
96
+ background-color: transparent;
97
+ white-space: nowrap;
98
+ --outline-width: 4px;
99
+ height: 40px;
100
+ padding-left: 8px;
101
+ padding-right: 8px;
102
+ border-radius: 8px;
103
+ font-size: 16px;
104
+ }
105
+
106
+ .c6:hover {
107
+ cursor: pointer;
108
+ }
109
+
110
+ .c6:disabled {
111
+ pointer-events: none;
112
+ cursor: unset !important;
113
+ }
114
+
115
+ .c6 > span {
116
+ position: relative;
117
+ top: -1px;
118
+ }
119
+
120
+ .c7 {
121
+ border-color: transparent;
122
+ box-shadow: none;
123
+ color: #37424D;
124
+ }
125
+
126
+ .c7:hover {
127
+ background-color: rgba(0,0,0,0.1);
128
+ }
129
+
130
+ .c7:active {
131
+ background-color: rgba(0,0,0,0.1);
132
+ }
133
+
134
+ .c7:focus-visible {
135
+ box-shadow: 0 0 0 var(--outline-width) #80BCE8;
136
+ outline: 0;
137
+ }
138
+
139
+ .c7:disabled {
140
+ background-color: transparent;
141
+ border-color: transparent;
142
+ }
143
+
144
+ .c3 {
145
+ padding-top: 1.5rem;
146
+ padding-right: 1.5rem;
147
+ padding-left: 1.5rem;
148
+ margin-bottom: 1.5rem;
149
+ }
150
+
151
+ .c3 > * + * {
152
+ margin-top: 0.25rem;
153
+ }
154
+
155
+ .c4 {
156
+ display: -webkit-box;
157
+ display: -webkit-flex;
158
+ display: -ms-flexbox;
159
+ display: flex;
160
+ -webkit-box-pack: end;
161
+ -webkit-justify-content: flex-end;
162
+ -ms-flex-pack: end;
163
+ justify-content: flex-end;
164
+ -webkit-align-items: center;
165
+ -webkit-box-align: center;
166
+ -ms-flex-align: center;
167
+ align-items: center;
168
+ }
169
+
170
+ .c4 > *:first-child {
171
+ -webkit-flex: 1;
172
+ -ms-flex: 1;
173
+ flex: 1;
174
+ }
175
+
176
+ .c2 {
177
+ position: relative;
178
+ width: 100%;
179
+ background-color: white;
180
+ border: 1px solid #DFE3E8;
181
+ box-shadow: 0px 1px 3px rgba(55,66,77,0.15);
182
+ border-radius: 0.5rem;
183
+ overflow: hidden;
184
+ box-sizing: border-box;
185
+ }
186
+
187
+ .c11 {
188
+ -webkit-flex: 1;
189
+ -ms-flex: 1;
190
+ flex: 1;
191
+ overflow-y: auto;
192
+ padding: 0 1.5rem;
193
+ }
194
+
195
+ .c0 {
196
+ padding: 0;
197
+ border: none;
198
+ border-radius: 0.5rem;
199
+ box-shadow: 0px 20px 25px rgba(27,33,38,0.2);
200
+ min-width: 360px;
201
+ }
202
+
203
+ .c0::backdrop {
204
+ -webkit-animation: fadeIn 0.25s ease forwards;
205
+ animation: fadeIn 0.25s ease forwards;
206
+ }
207
+
208
+ .c0 > .c1 {
209
+ display: -webkit-box;
210
+ display: -webkit-flex;
211
+ display: -ms-flexbox;
212
+ display: flex;
213
+ -webkit-flex-direction: column;
214
+ -ms-flex-direction: column;
215
+ flex-direction: column;
216
+ max-height: 84vh;
217
+ }
218
+
219
+ .c0 > .c1 .c10 {
220
+ padding-bottom: 1.5rem;
221
+ }
222
+
223
+ .c0::backdrop {
224
+ background-color: rgba(55,66,77,0.5);
225
+ }
226
+
227
+ .c0:not([open]) {
228
+ display: block;
229
+ position: fixed;
230
+ top: 0;
231
+ left: 0;
232
+ right: 0;
233
+ bottom: 0;
234
+ -webkit-transform: translate(-50%,-50%);
235
+ -ms-transform: translate(-50%,-50%);
236
+ transform: translate(-50%,-50%);
237
+ }
238
+
239
+ @media (min-width:calc(640px + 1px)) and (max-width:720px) {
240
+ .c0 {
241
+ max-width: 100vw;
242
+ }
243
+ }
244
+
245
+ @media (min-width:720px) and (max-width:960px) {
246
+ .c0 {
247
+ max-width: 88vw;
248
+ }
249
+ }
250
+
251
+ @media (min-width:960px) and (max-width:1280px) {
252
+ .c0 {
253
+ max-width: 72vw;
254
+ }
255
+ }
256
+
257
+ @media (min-width:1280px) {
258
+ .c0 {
259
+ max-width: 52vw;
260
+ }
261
+ }
262
+
263
+ @media (max-width:720px) {
264
+ .c0 {
265
+ margin: 0;
266
+ width: 100%;
267
+ max-width: 100vw;
268
+ max-height: 100vh;
269
+ }
270
+
271
+ .c0,
272
+ .c0 > .c1 {
273
+ border-radius: 0;
274
+ height: 100%;
275
+ width: 100%;
276
+ max-height: unset;
277
+ }
278
+ }
279
+
280
+ <dialog
281
+ aria-describedby="modal_title"
282
+ class="c0"
283
+ open=""
284
+ style="opacity: 0; transform: translateY(-50px) translateZ(0);"
285
+ >
286
+ <div
287
+ class="c1 c2"
288
+ >
289
+ <header
290
+ class="c3"
291
+ >
292
+ <div
293
+ class="c4"
294
+ >
295
+ <h2
296
+ class="c5"
297
+ id="modal_title"
298
+ >
299
+ TEST TITLE
300
+ </h2>
301
+ <button
302
+ aria-label="Close"
303
+ class="c6 c7"
304
+ >
305
+ <span
306
+ class="c8"
307
+ >
308
+ <svg
309
+ fill="none"
310
+ height="1.5rem"
311
+ role="presentation"
312
+ viewBox="0 0 24 24"
313
+ xmlns="http://www.w3.org/2000/svg"
314
+ >
315
+ <path
316
+ clip-rule="evenodd"
317
+ d="M19 6.51071L17.4893 5L11.5 10.9893L5.51071 5L4 6.51071L9.98929 12.5L4 18.4893L5.51071 20L11.5 14.0107L17.4893 20L19 18.4893L13.0107 12.5L19 6.51071Z"
318
+ fill="currentColor"
319
+ fill-rule="evenodd"
320
+ />
321
+ </svg>
322
+ </span>
323
+ </button>
324
+ </div>
325
+ <span
326
+ class="c9"
327
+ >
328
+ TEST SUBTITLE
329
+ </span>
330
+ </header>
331
+ <section
332
+ class="c10 c11"
333
+ >
334
+ <div
335
+ data-testid="main-content"
336
+ />
337
+ </section>
338
+ <div
339
+ data-testid="footer-slot"
340
+ />
341
+ </div>
342
+ </dialog>
343
+ </DocumentFragment>
344
+ `;
345
+
346
+ exports[`Modal displays header and footer slots when provided 1`] = `
347
+ <DocumentFragment>
348
+ .c2 {
349
+ position: relative;
350
+ width: 100%;
351
+ background-color: white;
352
+ border: 1px solid #DFE3E8;
353
+ box-shadow: 0px 1px 3px rgba(55,66,77,0.15);
354
+ border-radius: 0.5rem;
355
+ overflow: hidden;
356
+ box-sizing: border-box;
357
+ }
358
+
359
+ .c4 {
360
+ -webkit-flex: 1;
361
+ -ms-flex: 1;
362
+ flex: 1;
363
+ overflow-y: auto;
364
+ padding: 0 1.5rem;
365
+ }
366
+
367
+ .c0 {
368
+ padding: 0;
369
+ border: none;
370
+ border-radius: 0.5rem;
371
+ box-shadow: 0px 20px 25px rgba(27,33,38,0.2);
372
+ min-width: 360px;
373
+ }
374
+
375
+ .c0::backdrop {
376
+ -webkit-animation: fadeIn 0.25s ease forwards;
377
+ animation: fadeIn 0.25s ease forwards;
378
+ }
379
+
380
+ .c0 > .c1 {
381
+ display: -webkit-box;
382
+ display: -webkit-flex;
383
+ display: -ms-flexbox;
384
+ display: flex;
385
+ -webkit-flex-direction: column;
386
+ -ms-flex-direction: column;
387
+ flex-direction: column;
388
+ max-height: 84vh;
389
+ }
390
+
391
+ .c0 > .c1 .c3 {
392
+ padding-bottom: 1.5rem;
393
+ }
394
+
395
+ .c0::backdrop {
396
+ background-color: rgba(55,66,77,0.5);
397
+ }
398
+
399
+ .c0:not([open]) {
400
+ display: block;
401
+ position: fixed;
402
+ top: 0;
403
+ left: 0;
404
+ right: 0;
405
+ bottom: 0;
406
+ -webkit-transform: translate(-50%,-50%);
407
+ -ms-transform: translate(-50%,-50%);
408
+ transform: translate(-50%,-50%);
409
+ }
410
+
411
+ @media (min-width:calc(640px + 1px)) and (max-width:720px) {
412
+ .c0 {
413
+ max-width: 100vw;
414
+ }
415
+ }
416
+
417
+ @media (min-width:720px) and (max-width:960px) {
418
+ .c0 {
419
+ max-width: 88vw;
420
+ }
421
+ }
422
+
423
+ @media (min-width:960px) and (max-width:1280px) {
424
+ .c0 {
425
+ max-width: 72vw;
426
+ }
427
+ }
428
+
429
+ @media (min-width:1280px) {
430
+ .c0 {
431
+ max-width: 52vw;
432
+ }
433
+ }
434
+
435
+ @media (max-width:720px) {
436
+ .c0 {
437
+ margin: 0;
438
+ width: 100%;
439
+ max-width: 100vw;
440
+ max-height: 100vh;
441
+ }
442
+
443
+ .c0,
444
+ .c0 > .c1 {
445
+ border-radius: 0;
446
+ height: 100%;
447
+ width: 100%;
448
+ max-height: unset;
449
+ }
450
+ }
451
+
452
+ <dialog
453
+ aria-describedby="modal_title"
454
+ class="c0"
455
+ open=""
456
+ style="opacity: 0; transform: translateY(-50px) translateZ(0);"
457
+ >
458
+ <div
459
+ class="c1 c2"
460
+ >
461
+ <div
462
+ data-testid="header-slot"
463
+ />
464
+ <section
465
+ class="c3 c4"
466
+ >
467
+ <div
468
+ data-testid="main-content"
469
+ />
470
+ </section>
471
+ <div
472
+ data-testid="footer-slot"
473
+ />
474
+ </div>
475
+ </dialog>
476
+ </DocumentFragment>
477
+ `;
478
+
479
+ exports[`Modal displays header slot instead of title and subtitle if also provided 1`] = `
480
+ <DocumentFragment>
481
+ .c2 {
482
+ position: relative;
483
+ width: 100%;
484
+ background-color: white;
485
+ border: 1px solid #DFE3E8;
486
+ box-shadow: 0px 1px 3px rgba(55,66,77,0.15);
487
+ border-radius: 0.5rem;
488
+ overflow: hidden;
489
+ box-sizing: border-box;
490
+ }
491
+
492
+ .c4 {
493
+ -webkit-flex: 1;
494
+ -ms-flex: 1;
495
+ flex: 1;
496
+ overflow-y: auto;
497
+ padding: 0 1.5rem;
498
+ }
499
+
500
+ .c0 {
501
+ padding: 0;
502
+ border: none;
503
+ border-radius: 0.5rem;
504
+ box-shadow: 0px 20px 25px rgba(27,33,38,0.2);
505
+ min-width: 360px;
506
+ }
507
+
508
+ .c0::backdrop {
509
+ -webkit-animation: fadeIn 0.25s ease forwards;
510
+ animation: fadeIn 0.25s ease forwards;
511
+ }
512
+
513
+ .c0 > .c1 {
514
+ display: -webkit-box;
515
+ display: -webkit-flex;
516
+ display: -ms-flexbox;
517
+ display: flex;
518
+ -webkit-flex-direction: column;
519
+ -ms-flex-direction: column;
520
+ flex-direction: column;
521
+ max-height: 84vh;
522
+ }
523
+
524
+ .c0 > .c1 .c3 {
525
+ padding-bottom: 1.5rem;
526
+ }
527
+
528
+ .c0::backdrop {
529
+ background-color: rgba(55,66,77,0.5);
530
+ }
531
+
532
+ .c0:not([open]) {
533
+ display: block;
534
+ position: fixed;
535
+ top: 0;
536
+ left: 0;
537
+ right: 0;
538
+ bottom: 0;
539
+ -webkit-transform: translate(-50%,-50%);
540
+ -ms-transform: translate(-50%,-50%);
541
+ transform: translate(-50%,-50%);
542
+ }
543
+
544
+ @media (min-width:calc(640px + 1px)) and (max-width:720px) {
545
+ .c0 {
546
+ max-width: 100vw;
547
+ }
548
+ }
549
+
550
+ @media (min-width:720px) and (max-width:960px) {
551
+ .c0 {
552
+ max-width: 88vw;
553
+ }
554
+ }
555
+
556
+ @media (min-width:960px) and (max-width:1280px) {
557
+ .c0 {
558
+ max-width: 72vw;
559
+ }
560
+ }
561
+
562
+ @media (min-width:1280px) {
563
+ .c0 {
564
+ max-width: 52vw;
565
+ }
566
+ }
567
+
568
+ @media (max-width:720px) {
569
+ .c0 {
570
+ margin: 0;
571
+ width: 100%;
572
+ max-width: 100vw;
573
+ max-height: 100vh;
574
+ }
575
+
576
+ .c0,
577
+ .c0 > .c1 {
578
+ border-radius: 0;
579
+ height: 100%;
580
+ width: 100%;
581
+ max-height: unset;
582
+ }
583
+ }
584
+
585
+ <dialog
586
+ aria-describedby="modal_title"
587
+ class="c0"
588
+ open=""
589
+ style="opacity: 0; transform: translateY(-50px) translateZ(0);"
590
+ >
591
+ <div
592
+ class="c1 c2"
593
+ >
594
+ <div
595
+ data-testid="header-slot"
596
+ />
597
+ <section
598
+ class="c3 c4"
599
+ >
600
+ <div
601
+ data-testid="main-content"
602
+ />
603
+ </section>
604
+ </div>
605
+ </dialog>
606
+ </DocumentFragment>
607
+ `;
608
+
609
+ exports[`Modal looks as expected with a footer slot provided 1`] = `
610
+ <DocumentFragment>
611
+ .c5 {
612
+ box-sizing: border-box;
613
+ display: inline-block;
614
+ margin: 0;
615
+ padding: 0;
616
+ font-style: normal;
617
+ font-weight: normal;
618
+ font-size: 12px;
619
+ font-family: Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
620
+ line-height: 16px;
621
+ color: #37424d;
622
+ font-family: Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
623
+ font-style: normal;
624
+ font-weight: 600;
625
+ font-size: 24px;
626
+ line-height: 32px;
627
+ color: #37424D;
628
+ -webkit-text-decoration: none;
629
+ text-decoration: none;
630
+ -webkit-letter-spacing: -0.019rem;
631
+ -moz-letter-spacing: -0.019rem;
632
+ -ms-letter-spacing: -0.019rem;
633
+ letter-spacing: -0.019rem;
634
+ }
635
+
636
+ .c9 {
637
+ box-sizing: border-box;
638
+ display: inline-block;
639
+ margin: 0;
640
+ padding: 0;
641
+ font-style: normal;
642
+ font-weight: normal;
643
+ font-size: 12px;
644
+ font-family: Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
645
+ line-height: 16px;
646
+ color: #37424d;
647
+ font-family: Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
648
+ font-style: normal;
649
+ font-weight: normal;
650
+ font-size: 12px;
651
+ line-height: 16px;
652
+ color: #637381;
653
+ -webkit-text-decoration: none;
654
+ text-decoration: none;
655
+ -webkit-letter-spacing: 0;
656
+ -moz-letter-spacing: 0;
657
+ -ms-letter-spacing: 0;
658
+ letter-spacing: 0;
659
+ }
660
+
661
+ .c8 {
662
+ display: -webkit-inline-box;
663
+ display: -webkit-inline-flex;
664
+ display: -ms-inline-flexbox;
665
+ display: inline-flex;
666
+ -webkit-align-items: center;
667
+ -webkit-box-align: center;
668
+ -ms-flex-align: center;
669
+ align-items: center;
670
+ gap: 4px;
671
+ }
672
+
673
+ .c8 svg {
674
+ width: 1.5rem;
675
+ height: 1.5rem;
676
+ }
677
+
678
+ .c6 {
679
+ position: relative;
680
+ box-sizing: border-box;
681
+ -webkit-appearance: none;
682
+ -moz-appearance: none;
683
+ appearance: none;
684
+ display: -webkit-box;
685
+ display: -webkit-flex;
686
+ display: -ms-flexbox;
687
+ display: flex;
688
+ -webkit-align-items: center;
689
+ -webkit-box-align: center;
690
+ -ms-flex-align: center;
691
+ align-items: center;
692
+ -webkit-box-pack: center;
693
+ -webkit-justify-content: center;
694
+ -ms-flex-pack: center;
695
+ justify-content: center;
696
+ -webkit-flex-shrink: 0;
697
+ -ms-flex-negative: 0;
698
+ flex-shrink: 0;
699
+ font-family: Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
700
+ font-weight: 400;
701
+ border: 1px solid;
702
+ background-color: transparent;
703
+ white-space: nowrap;
704
+ --outline-width: 4px;
705
+ height: 40px;
706
+ padding-left: 8px;
707
+ padding-right: 8px;
708
+ border-radius: 8px;
709
+ font-size: 16px;
710
+ }
711
+
712
+ .c6:hover {
713
+ cursor: pointer;
714
+ }
715
+
716
+ .c6:disabled {
717
+ pointer-events: none;
718
+ cursor: unset !important;
719
+ }
720
+
721
+ .c6 > span {
722
+ position: relative;
723
+ top: -1px;
724
+ }
725
+
726
+ .c7 {
727
+ border-color: transparent;
728
+ box-shadow: none;
729
+ color: #37424D;
730
+ }
731
+
732
+ .c7:hover {
733
+ background-color: rgba(0,0,0,0.1);
734
+ }
735
+
736
+ .c7:active {
737
+ background-color: rgba(0,0,0,0.1);
738
+ }
739
+
740
+ .c7:focus-visible {
741
+ box-shadow: 0 0 0 var(--outline-width) #80BCE8;
742
+ outline: 0;
743
+ }
744
+
745
+ .c7:disabled {
746
+ background-color: transparent;
747
+ border-color: transparent;
748
+ }
749
+
750
+ .c3 {
751
+ padding-top: 1.5rem;
752
+ padding-right: 1.5rem;
753
+ padding-left: 1.5rem;
754
+ margin-bottom: 1.5rem;
755
+ }
756
+
757
+ .c3 > * + * {
758
+ margin-top: 0.25rem;
759
+ }
760
+
761
+ .c4 {
762
+ display: -webkit-box;
763
+ display: -webkit-flex;
764
+ display: -ms-flexbox;
765
+ display: flex;
766
+ -webkit-box-pack: end;
767
+ -webkit-justify-content: flex-end;
768
+ -ms-flex-pack: end;
769
+ justify-content: flex-end;
770
+ -webkit-align-items: center;
771
+ -webkit-box-align: center;
772
+ -ms-flex-align: center;
773
+ align-items: center;
774
+ }
775
+
776
+ .c4 > *:first-child {
777
+ -webkit-flex: 1;
778
+ -ms-flex: 1;
779
+ flex: 1;
780
+ }
781
+
782
+ .c2 {
783
+ position: relative;
784
+ width: 100%;
785
+ background-color: white;
786
+ border: 1px solid #DFE3E8;
787
+ box-shadow: 0px 1px 3px rgba(55,66,77,0.15);
788
+ border-radius: 0.5rem;
789
+ overflow: hidden;
790
+ box-sizing: border-box;
791
+ }
792
+
793
+ .c11 {
794
+ -webkit-flex: 1;
795
+ -ms-flex: 1;
796
+ flex: 1;
797
+ overflow-y: auto;
798
+ padding: 0 1.5rem;
799
+ }
800
+
801
+ .c0 {
802
+ padding: 0;
803
+ border: none;
804
+ border-radius: 0.5rem;
805
+ box-shadow: 0px 20px 25px rgba(27,33,38,0.2);
806
+ min-width: 360px;
807
+ }
808
+
809
+ .c0::backdrop {
810
+ -webkit-animation: fadeIn 0.25s ease forwards;
811
+ animation: fadeIn 0.25s ease forwards;
812
+ }
813
+
814
+ .c0 > .c1 {
815
+ display: -webkit-box;
816
+ display: -webkit-flex;
817
+ display: -ms-flexbox;
818
+ display: flex;
819
+ -webkit-flex-direction: column;
820
+ -ms-flex-direction: column;
821
+ flex-direction: column;
822
+ max-height: 84vh;
823
+ }
824
+
825
+ .c0 > .c1 .c10 {
826
+ padding-bottom: 1.5rem;
827
+ }
828
+
829
+ .c0::backdrop {
830
+ background-color: rgba(55,66,77,0.5);
831
+ }
832
+
833
+ .c0:not([open]) {
834
+ display: block;
835
+ position: fixed;
836
+ top: 0;
837
+ left: 0;
838
+ right: 0;
839
+ bottom: 0;
840
+ -webkit-transform: translate(-50%,-50%);
841
+ -ms-transform: translate(-50%,-50%);
842
+ transform: translate(-50%,-50%);
843
+ }
844
+
845
+ @media (min-width:calc(640px + 1px)) and (max-width:720px) {
846
+ .c0 {
847
+ max-width: 100vw;
848
+ }
849
+ }
850
+
851
+ @media (min-width:720px) and (max-width:960px) {
852
+ .c0 {
853
+ max-width: 88vw;
854
+ }
855
+ }
856
+
857
+ @media (min-width:960px) and (max-width:1280px) {
858
+ .c0 {
859
+ max-width: 72vw;
860
+ }
861
+ }
862
+
863
+ @media (min-width:1280px) {
864
+ .c0 {
865
+ max-width: 52vw;
866
+ }
867
+ }
868
+
869
+ @media (max-width:720px) {
870
+ .c0 {
871
+ margin: 0;
872
+ width: 100%;
873
+ max-width: 100vw;
874
+ max-height: 100vh;
875
+ }
876
+
877
+ .c0,
878
+ .c0 > .c1 {
879
+ border-radius: 0;
880
+ height: 100%;
881
+ width: 100%;
882
+ max-height: unset;
883
+ }
884
+ }
885
+
886
+ <dialog
887
+ aria-describedby="modal_title"
888
+ class="c0"
889
+ open=""
890
+ style="opacity: 0; transform: translateY(-50px) translateZ(0);"
891
+ >
892
+ <div
893
+ class="c1 c2"
894
+ >
895
+ <header
896
+ class="c3"
897
+ >
898
+ <div
899
+ class="c4"
900
+ >
901
+ <h2
902
+ class="c5"
903
+ id="modal_title"
904
+ >
905
+ TEST TITLE
906
+ </h2>
907
+ <button
908
+ aria-label="Close"
909
+ class="c6 c7"
910
+ >
911
+ <span
912
+ class="c8"
913
+ >
914
+ <svg
915
+ fill="none"
916
+ height="1.5rem"
917
+ role="presentation"
918
+ viewBox="0 0 24 24"
919
+ xmlns="http://www.w3.org/2000/svg"
920
+ >
921
+ <path
922
+ clip-rule="evenodd"
923
+ d="M19 6.51071L17.4893 5L11.5 10.9893L5.51071 5L4 6.51071L9.98929 12.5L4 18.4893L5.51071 20L11.5 14.0107L17.4893 20L19 18.4893L13.0107 12.5L19 6.51071Z"
924
+ fill="currentColor"
925
+ fill-rule="evenodd"
926
+ />
927
+ </svg>
928
+ </span>
929
+ </button>
930
+ </div>
931
+ <span
932
+ class="c9"
933
+ >
934
+ TEST SUBTITLE
935
+ </span>
936
+ </header>
937
+ <section
938
+ class="c10 c11"
939
+ >
940
+ <div
941
+ data-testid="main-content"
942
+ />
943
+ </section>
944
+ <div
945
+ data-testid="footer-slot"
946
+ />
947
+ </div>
948
+ </dialog>
949
+ </DocumentFragment>
950
+ `;
951
+
952
+ exports[`Modal looks as expected with a header slot provided 1`] = `
953
+ <DocumentFragment>
954
+ .c13 {
955
+ display: -webkit-inline-box;
956
+ display: -webkit-inline-flex;
957
+ display: -ms-inline-flexbox;
958
+ display: inline-flex;
959
+ -webkit-align-items: center;
960
+ -webkit-box-align: center;
961
+ -ms-flex-align: center;
962
+ align-items: center;
963
+ gap: 8px;
964
+ }
965
+
966
+ .c13 svg {
967
+ width: 1rem;
968
+ height: 1rem;
969
+ }
970
+
971
+ .c9 {
972
+ position: relative;
973
+ box-sizing: border-box;
974
+ -webkit-appearance: none;
975
+ -moz-appearance: none;
976
+ appearance: none;
977
+ display: -webkit-box;
978
+ display: -webkit-flex;
979
+ display: -ms-flexbox;
980
+ display: flex;
981
+ -webkit-align-items: center;
982
+ -webkit-box-align: center;
983
+ -ms-flex-align: center;
984
+ align-items: center;
985
+ -webkit-box-pack: center;
986
+ -webkit-justify-content: center;
987
+ -ms-flex-pack: center;
988
+ justify-content: center;
989
+ -webkit-flex-shrink: 0;
990
+ -ms-flex-negative: 0;
991
+ flex-shrink: 0;
992
+ font-family: Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
993
+ font-weight: 400;
994
+ border: 1px solid;
995
+ background-color: transparent;
996
+ white-space: nowrap;
997
+ --outline-width: 4px;
998
+ height: 40px;
999
+ padding-left: 24px;
1000
+ padding-right: 24px;
1001
+ border-radius: 8px;
1002
+ font-size: 16px;
1003
+ }
1004
+
1005
+ .c9:hover {
1006
+ cursor: pointer;
1007
+ }
1008
+
1009
+ .c9:disabled {
1010
+ pointer-events: none;
1011
+ cursor: unset !important;
1012
+ }
1013
+
1014
+ .c9 > span {
1015
+ position: relative;
1016
+ top: -1px;
1017
+ }
1018
+
1019
+ .c10 {
1020
+ border-color: #CDD1D5;
1021
+ background-color: white;
1022
+ box-shadow: 0 1px 3px rgba(55,66,77,0.15);
1023
+ color: #37424D;
1024
+ }
1025
+
1026
+ .c10:hover {
1027
+ background-color: #FAFAFB;
1028
+ }
1029
+
1030
+ .c10:active {
1031
+ background-color: #FAFAFB;
1032
+ border-color: #0079D1;
1033
+ box-shadow: 0 0 0 var(--outline-width) #80BCE8;
1034
+ }
1035
+
1036
+ .c10:focus-visible {
1037
+ box-shadow: 0 0 0 var(--outline-width) #80BCE8;
1038
+ outline: 0;
1039
+ }
1040
+
1041
+ .c10:disabled {
1042
+ box-shadow: none !important;
1043
+ background-color: #DFE3E8 !important;
1044
+ border-color: #DFE3E8 !important;
1045
+ color: #637381 !important;
1046
+ }
1047
+
1048
+ .c11 {
1049
+ background-color: #0079D1;
1050
+ border-color: #0079D1;
1051
+ color: white;
1052
+ }
1053
+
1054
+ .c11:hover {
1055
+ background-color: #005A9C;
1056
+ border-color: #005A9C;
1057
+ }
1058
+
1059
+ .c11:active {
1060
+ background-color: #005A9C;
1061
+ border-color: #005A9C;
1062
+ box-shadow: 0 0 0 var(--outline-width) #80BCE8;
1063
+ }
1064
+
1065
+ .c11:focus-visible {
1066
+ box-shadow: 0 0 0 var(--outline-width) #80BCE8;
1067
+ }
1068
+
1069
+ .c12 {
1070
+ background-color: #EB5757;
1071
+ border-color: #EB5757;
1072
+ color: white;
1073
+ }
1074
+
1075
+ .c12:hover {
1076
+ background-color: #A53D3D;
1077
+ border-color: #A53D3D;
1078
+ }
1079
+
1080
+ .c12:active {
1081
+ background-color: #A53D3D;
1082
+ border-color: #A53D3D;
1083
+ box-shadow: 0 0 0 var(--outline-width) #F7BCBC;
1084
+ }
1085
+
1086
+ .c12:focus-visible {
1087
+ box-shadow: 0 0 0 var(--outline-width) #F7BCBC;
1088
+ }
1089
+
1090
+ .c6 {
1091
+ margin-top: 1rem;
1092
+ padding: 1.5rem;
1093
+ z-index: 2;
1094
+ }
1095
+
1096
+ .c2 {
1097
+ position: relative;
1098
+ width: 100%;
1099
+ background-color: white;
1100
+ border: 1px solid #DFE3E8;
1101
+ box-shadow: 0px 1px 3px rgba(55,66,77,0.15);
1102
+ border-radius: 0.5rem;
1103
+ overflow: hidden;
1104
+ box-sizing: border-box;
1105
+ }
1106
+
1107
+ .c4 {
1108
+ -webkit-flex: 1;
1109
+ -ms-flex: 1;
1110
+ flex: 1;
1111
+ overflow-y: auto;
1112
+ padding: 0 1.5rem;
1113
+ }
1114
+
1115
+ .c0 {
1116
+ padding: 0;
1117
+ border: none;
1118
+ border-radius: 0.5rem;
1119
+ box-shadow: 0px 20px 25px rgba(27,33,38,0.2);
1120
+ min-width: 360px;
1121
+ }
1122
+
1123
+ .c0::backdrop {
1124
+ -webkit-animation: fadeIn 0.25s ease forwards;
1125
+ animation: fadeIn 0.25s ease forwards;
1126
+ }
1127
+
1128
+ .c0 > .c1 {
1129
+ display: -webkit-box;
1130
+ display: -webkit-flex;
1131
+ display: -ms-flexbox;
1132
+ display: flex;
1133
+ -webkit-flex-direction: column;
1134
+ -ms-flex-direction: column;
1135
+ flex-direction: column;
1136
+ max-height: 84vh;
1137
+ }
1138
+
1139
+ .c0 > .c1 .c3 {
1140
+ padding-bottom: 1.5rem;
1141
+ }
1142
+
1143
+ .c0 > .c1 .c5 {
1144
+ margin-top: 0;
1145
+ }
1146
+
1147
+ .c0::backdrop {
1148
+ background-color: rgba(55,66,77,0.5);
1149
+ }
1150
+
1151
+ .c0:not([open]) {
1152
+ display: block;
1153
+ position: fixed;
1154
+ top: 0;
1155
+ left: 0;
1156
+ right: 0;
1157
+ bottom: 0;
1158
+ -webkit-transform: translate(-50%,-50%);
1159
+ -ms-transform: translate(-50%,-50%);
1160
+ transform: translate(-50%,-50%);
1161
+ }
1162
+
1163
+ .c7 {
1164
+ display: -webkit-box;
1165
+ display: -webkit-flex;
1166
+ display: -ms-flexbox;
1167
+ display: flex;
1168
+ -webkit-align-items: flex-start;
1169
+ -webkit-box-align: flex-start;
1170
+ -ms-flex-align: flex-start;
1171
+ align-items: flex-start;
1172
+ -webkit-box-pack: justify;
1173
+ -webkit-justify-content: space-between;
1174
+ -ms-flex-pack: justify;
1175
+ justify-content: space-between;
1176
+ -webkit-flex-direction: row;
1177
+ -ms-flex-direction: row;
1178
+ flex-direction: row;
1179
+ }
1180
+
1181
+ .c7 > * {
1182
+ -webkit-flex: undefined;
1183
+ -ms-flex: undefined;
1184
+ flex: undefined;
1185
+ }
1186
+
1187
+ .c7 > * + * {
1188
+ margin-left: 1rem;
1189
+ }
1190
+
1191
+ .c8 {
1192
+ display: -webkit-box;
1193
+ display: -webkit-flex;
1194
+ display: -ms-flexbox;
1195
+ display: flex;
1196
+ -webkit-align-items: flex-start;
1197
+ -webkit-box-align: flex-start;
1198
+ -ms-flex-align: flex-start;
1199
+ align-items: flex-start;
1200
+ -webkit-box-pack: start;
1201
+ -webkit-justify-content: flex-start;
1202
+ -ms-flex-pack: start;
1203
+ justify-content: flex-start;
1204
+ -webkit-flex-direction: row;
1205
+ -ms-flex-direction: row;
1206
+ flex-direction: row;
1207
+ }
1208
+
1209
+ .c8 > * {
1210
+ -webkit-flex: undefined;
1211
+ -ms-flex: undefined;
1212
+ flex: undefined;
1213
+ }
1214
+
1215
+ .c8 > * + * {
1216
+ margin-left: 1rem;
1217
+ }
1218
+
1219
+ @media (min-width:calc(640px + 1px)) and (max-width:720px) {
1220
+ .c0 {
1221
+ max-width: 100vw;
1222
+ }
1223
+ }
1224
+
1225
+ @media (min-width:720px) and (max-width:960px) {
1226
+ .c0 {
1227
+ max-width: 88vw;
1228
+ }
1229
+ }
1230
+
1231
+ @media (min-width:960px) and (max-width:1280px) {
1232
+ .c0 {
1233
+ max-width: 72vw;
1234
+ }
1235
+ }
1236
+
1237
+ @media (min-width:1280px) {
1238
+ .c0 {
1239
+ max-width: 52vw;
1240
+ }
1241
+ }
1242
+
1243
+ @media (max-width:720px) {
1244
+ .c0 {
1245
+ margin: 0;
1246
+ width: 100%;
1247
+ max-width: 100vw;
1248
+ max-height: 100vh;
1249
+ }
1250
+
1251
+ .c0,
1252
+ .c0 > .c1 {
1253
+ border-radius: 0;
1254
+ height: 100%;
1255
+ width: 100%;
1256
+ max-height: unset;
1257
+ }
1258
+ }
1259
+
1260
+ <dialog
1261
+ aria-describedby="modal_title"
1262
+ class="c0"
1263
+ open=""
1264
+ style="opacity: 0; transform: translateY(-50px) translateZ(0);"
1265
+ >
1266
+ <div
1267
+ class="c1 c2"
1268
+ >
1269
+ <div
1270
+ data-testid="header-slot"
1271
+ />
1272
+ <section
1273
+ class="c3 c4"
1274
+ >
1275
+ <div
1276
+ data-testid="main-content"
1277
+ />
1278
+ </section>
1279
+ <footer
1280
+ class="c5 c6"
1281
+ >
1282
+ <div
1283
+ class="c7"
1284
+ direction="horizontal"
1285
+ >
1286
+ <div
1287
+ class="c8"
1288
+ data-testid="left-actions-container"
1289
+ direction="horizontal"
1290
+ >
1291
+ <button
1292
+ class="c9 c10 c11 c12"
1293
+ type="button"
1294
+ >
1295
+ <span
1296
+ class="c13"
1297
+ >
1298
+ <span>
1299
+ Cancel
1300
+ </span>
1301
+ </span>
1302
+ </button>
1303
+ </div>
1304
+ <div
1305
+ class="c8"
1306
+ data-testid="right-actions-container"
1307
+ direction="horizontal"
1308
+ >
1309
+ <button
1310
+ class="c9 c10 c11"
1311
+ type="button"
1312
+ >
1313
+ <span
1314
+ class="c13"
1315
+ >
1316
+ <span>
1317
+ Save
1318
+ </span>
1319
+ </span>
1320
+ </button>
1321
+ <button
1322
+ class="c9 c10"
1323
+ disabled=""
1324
+ type="button"
1325
+ >
1326
+ <span
1327
+ class="c13"
1328
+ >
1329
+ <span>
1330
+ Cancel
1331
+ </span>
1332
+ </span>
1333
+ </button>
1334
+ </div>
1335
+ </div>
1336
+ </footer>
1337
+ </div>
1338
+ </dialog>
1339
+ </DocumentFragment>
1340
+ `;
1341
+
1342
+ exports[`Modal looks as expected without slots 1`] = `
1343
+ <DocumentFragment>
1344
+ .c5 {
1345
+ box-sizing: border-box;
1346
+ display: inline-block;
1347
+ margin: 0;
1348
+ padding: 0;
1349
+ font-style: normal;
1350
+ font-weight: normal;
1351
+ font-size: 12px;
1352
+ font-family: Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
1353
+ line-height: 16px;
1354
+ color: #37424d;
1355
+ font-family: Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
1356
+ font-style: normal;
1357
+ font-weight: 600;
1358
+ font-size: 24px;
1359
+ line-height: 32px;
1360
+ color: #37424D;
1361
+ -webkit-text-decoration: none;
1362
+ text-decoration: none;
1363
+ -webkit-letter-spacing: -0.019rem;
1364
+ -moz-letter-spacing: -0.019rem;
1365
+ -ms-letter-spacing: -0.019rem;
1366
+ letter-spacing: -0.019rem;
1367
+ }
1368
+
1369
+ .c9 {
1370
+ box-sizing: border-box;
1371
+ display: inline-block;
1372
+ margin: 0;
1373
+ padding: 0;
1374
+ font-style: normal;
1375
+ font-weight: normal;
1376
+ font-size: 12px;
1377
+ font-family: Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
1378
+ line-height: 16px;
1379
+ color: #37424d;
1380
+ font-family: Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
1381
+ font-style: normal;
1382
+ font-weight: normal;
1383
+ font-size: 12px;
1384
+ line-height: 16px;
1385
+ color: #637381;
1386
+ -webkit-text-decoration: none;
1387
+ text-decoration: none;
1388
+ -webkit-letter-spacing: 0;
1389
+ -moz-letter-spacing: 0;
1390
+ -ms-letter-spacing: 0;
1391
+ letter-spacing: 0;
1392
+ }
1393
+
1394
+ .c8 {
1395
+ display: -webkit-inline-box;
1396
+ display: -webkit-inline-flex;
1397
+ display: -ms-inline-flexbox;
1398
+ display: inline-flex;
1399
+ -webkit-align-items: center;
1400
+ -webkit-box-align: center;
1401
+ -ms-flex-align: center;
1402
+ align-items: center;
1403
+ gap: 4px;
1404
+ }
1405
+
1406
+ .c8 svg {
1407
+ width: 1.5rem;
1408
+ height: 1.5rem;
1409
+ }
1410
+
1411
+ .c20 {
1412
+ display: -webkit-inline-box;
1413
+ display: -webkit-inline-flex;
1414
+ display: -ms-inline-flexbox;
1415
+ display: inline-flex;
1416
+ -webkit-align-items: center;
1417
+ -webkit-box-align: center;
1418
+ -ms-flex-align: center;
1419
+ align-items: center;
1420
+ gap: 8px;
1421
+ }
1422
+
1423
+ .c20 svg {
1424
+ width: 1rem;
1425
+ height: 1rem;
1426
+ }
1427
+
1428
+ .c6 {
1429
+ position: relative;
1430
+ box-sizing: border-box;
1431
+ -webkit-appearance: none;
1432
+ -moz-appearance: none;
1433
+ appearance: none;
1434
+ display: -webkit-box;
1435
+ display: -webkit-flex;
1436
+ display: -ms-flexbox;
1437
+ display: flex;
1438
+ -webkit-align-items: center;
1439
+ -webkit-box-align: center;
1440
+ -ms-flex-align: center;
1441
+ align-items: center;
1442
+ -webkit-box-pack: center;
1443
+ -webkit-justify-content: center;
1444
+ -ms-flex-pack: center;
1445
+ justify-content: center;
1446
+ -webkit-flex-shrink: 0;
1447
+ -ms-flex-negative: 0;
1448
+ flex-shrink: 0;
1449
+ font-family: Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
1450
+ font-weight: 400;
1451
+ border: 1px solid;
1452
+ background-color: transparent;
1453
+ white-space: nowrap;
1454
+ --outline-width: 4px;
1455
+ height: 40px;
1456
+ padding-left: 8px;
1457
+ padding-right: 8px;
1458
+ border-radius: 8px;
1459
+ font-size: 16px;
1460
+ }
1461
+
1462
+ .c6:hover {
1463
+ cursor: pointer;
1464
+ }
1465
+
1466
+ .c6:disabled {
1467
+ pointer-events: none;
1468
+ cursor: unset !important;
1469
+ }
1470
+
1471
+ .c6 > span {
1472
+ position: relative;
1473
+ top: -1px;
1474
+ }
1475
+
1476
+ .c16 {
1477
+ position: relative;
1478
+ box-sizing: border-box;
1479
+ -webkit-appearance: none;
1480
+ -moz-appearance: none;
1481
+ appearance: none;
1482
+ display: -webkit-box;
1483
+ display: -webkit-flex;
1484
+ display: -ms-flexbox;
1485
+ display: flex;
1486
+ -webkit-align-items: center;
1487
+ -webkit-box-align: center;
1488
+ -ms-flex-align: center;
1489
+ align-items: center;
1490
+ -webkit-box-pack: center;
1491
+ -webkit-justify-content: center;
1492
+ -ms-flex-pack: center;
1493
+ justify-content: center;
1494
+ -webkit-flex-shrink: 0;
1495
+ -ms-flex-negative: 0;
1496
+ flex-shrink: 0;
1497
+ font-family: Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
1498
+ font-weight: 400;
1499
+ border: 1px solid;
1500
+ background-color: transparent;
1501
+ white-space: nowrap;
1502
+ --outline-width: 4px;
1503
+ height: 40px;
1504
+ padding-left: 24px;
1505
+ padding-right: 24px;
1506
+ border-radius: 8px;
1507
+ font-size: 16px;
1508
+ }
1509
+
1510
+ .c16:hover {
1511
+ cursor: pointer;
1512
+ }
1513
+
1514
+ .c16:disabled {
1515
+ pointer-events: none;
1516
+ cursor: unset !important;
1517
+ }
1518
+
1519
+ .c16 > span {
1520
+ position: relative;
1521
+ top: -1px;
1522
+ }
1523
+
1524
+ .c17 {
1525
+ border-color: #CDD1D5;
1526
+ background-color: white;
1527
+ box-shadow: 0 1px 3px rgba(55,66,77,0.15);
1528
+ color: #37424D;
1529
+ }
1530
+
1531
+ .c17:hover {
1532
+ background-color: #FAFAFB;
1533
+ }
1534
+
1535
+ .c17:active {
1536
+ background-color: #FAFAFB;
1537
+ border-color: #0079D1;
1538
+ box-shadow: 0 0 0 var(--outline-width) #80BCE8;
1539
+ }
1540
+
1541
+ .c17:focus-visible {
1542
+ box-shadow: 0 0 0 var(--outline-width) #80BCE8;
1543
+ outline: 0;
1544
+ }
1545
+
1546
+ .c17:disabled {
1547
+ box-shadow: none !important;
1548
+ background-color: #DFE3E8 !important;
1549
+ border-color: #DFE3E8 !important;
1550
+ color: #637381 !important;
1551
+ }
1552
+
1553
+ .c18 {
1554
+ background-color: #0079D1;
1555
+ border-color: #0079D1;
1556
+ color: white;
1557
+ }
1558
+
1559
+ .c18:hover {
1560
+ background-color: #005A9C;
1561
+ border-color: #005A9C;
1562
+ }
1563
+
1564
+ .c18:active {
1565
+ background-color: #005A9C;
1566
+ border-color: #005A9C;
1567
+ box-shadow: 0 0 0 var(--outline-width) #80BCE8;
1568
+ }
1569
+
1570
+ .c18:focus-visible {
1571
+ box-shadow: 0 0 0 var(--outline-width) #80BCE8;
1572
+ }
1573
+
1574
+ .c19 {
1575
+ background-color: #EB5757;
1576
+ border-color: #EB5757;
1577
+ color: white;
1578
+ }
1579
+
1580
+ .c19:hover {
1581
+ background-color: #A53D3D;
1582
+ border-color: #A53D3D;
1583
+ }
1584
+
1585
+ .c19:active {
1586
+ background-color: #A53D3D;
1587
+ border-color: #A53D3D;
1588
+ box-shadow: 0 0 0 var(--outline-width) #F7BCBC;
1589
+ }
1590
+
1591
+ .c19:focus-visible {
1592
+ box-shadow: 0 0 0 var(--outline-width) #F7BCBC;
1593
+ }
1594
+
1595
+ .c7 {
1596
+ border-color: transparent;
1597
+ box-shadow: none;
1598
+ color: #37424D;
1599
+ }
1600
+
1601
+ .c7:hover {
1602
+ background-color: rgba(0,0,0,0.1);
1603
+ }
1604
+
1605
+ .c7:active {
1606
+ background-color: rgba(0,0,0,0.1);
1607
+ }
1608
+
1609
+ .c7:focus-visible {
1610
+ box-shadow: 0 0 0 var(--outline-width) #80BCE8;
1611
+ outline: 0;
1612
+ }
1613
+
1614
+ .c7:disabled {
1615
+ background-color: transparent;
1616
+ border-color: transparent;
1617
+ }
1618
+
1619
+ .c3 {
1620
+ padding-top: 1.5rem;
1621
+ padding-right: 1.5rem;
1622
+ padding-left: 1.5rem;
1623
+ margin-bottom: 1.5rem;
1624
+ }
1625
+
1626
+ .c3 > * + * {
1627
+ margin-top: 0.25rem;
1628
+ }
1629
+
1630
+ .c4 {
1631
+ display: -webkit-box;
1632
+ display: -webkit-flex;
1633
+ display: -ms-flexbox;
1634
+ display: flex;
1635
+ -webkit-box-pack: end;
1636
+ -webkit-justify-content: flex-end;
1637
+ -ms-flex-pack: end;
1638
+ justify-content: flex-end;
1639
+ -webkit-align-items: center;
1640
+ -webkit-box-align: center;
1641
+ -ms-flex-align: center;
1642
+ align-items: center;
1643
+ }
1644
+
1645
+ .c4 > *:first-child {
1646
+ -webkit-flex: 1;
1647
+ -ms-flex: 1;
1648
+ flex: 1;
1649
+ }
1650
+
1651
+ .c13 {
1652
+ margin-top: 1rem;
1653
+ padding: 1.5rem;
1654
+ z-index: 2;
1655
+ }
1656
+
1657
+ .c2 {
1658
+ position: relative;
1659
+ width: 100%;
1660
+ background-color: white;
1661
+ border: 1px solid #DFE3E8;
1662
+ box-shadow: 0px 1px 3px rgba(55,66,77,0.15);
1663
+ border-radius: 0.5rem;
1664
+ overflow: hidden;
1665
+ box-sizing: border-box;
1666
+ }
1667
+
1668
+ .c11 {
1669
+ -webkit-flex: 1;
1670
+ -ms-flex: 1;
1671
+ flex: 1;
1672
+ overflow-y: auto;
1673
+ padding: 0 1.5rem;
1674
+ }
1675
+
1676
+ .c0 {
1677
+ padding: 0;
1678
+ border: none;
1679
+ border-radius: 0.5rem;
1680
+ box-shadow: 0px 20px 25px rgba(27,33,38,0.2);
1681
+ min-width: 360px;
1682
+ }
1683
+
1684
+ .c0::backdrop {
1685
+ -webkit-animation: fadeIn 0.25s ease forwards;
1686
+ animation: fadeIn 0.25s ease forwards;
1687
+ }
1688
+
1689
+ .c0 > .c1 {
1690
+ display: -webkit-box;
1691
+ display: -webkit-flex;
1692
+ display: -ms-flexbox;
1693
+ display: flex;
1694
+ -webkit-flex-direction: column;
1695
+ -ms-flex-direction: column;
1696
+ flex-direction: column;
1697
+ max-height: 84vh;
1698
+ }
1699
+
1700
+ .c0 > .c1 .c10 {
1701
+ padding-bottom: 1.5rem;
1702
+ }
1703
+
1704
+ .c0 > .c1 .c12 {
1705
+ margin-top: 0;
1706
+ }
1707
+
1708
+ .c0::backdrop {
1709
+ background-color: rgba(55,66,77,0.5);
1710
+ }
1711
+
1712
+ .c0:not([open]) {
1713
+ display: block;
1714
+ position: fixed;
1715
+ top: 0;
1716
+ left: 0;
1717
+ right: 0;
1718
+ bottom: 0;
1719
+ -webkit-transform: translate(-50%,-50%);
1720
+ -ms-transform: translate(-50%,-50%);
1721
+ transform: translate(-50%,-50%);
1722
+ }
1723
+
1724
+ .c14 {
1725
+ display: -webkit-box;
1726
+ display: -webkit-flex;
1727
+ display: -ms-flexbox;
1728
+ display: flex;
1729
+ -webkit-align-items: flex-start;
1730
+ -webkit-box-align: flex-start;
1731
+ -ms-flex-align: flex-start;
1732
+ align-items: flex-start;
1733
+ -webkit-box-pack: justify;
1734
+ -webkit-justify-content: space-between;
1735
+ -ms-flex-pack: justify;
1736
+ justify-content: space-between;
1737
+ -webkit-flex-direction: row;
1738
+ -ms-flex-direction: row;
1739
+ flex-direction: row;
1740
+ }
1741
+
1742
+ .c14 > * {
1743
+ -webkit-flex: undefined;
1744
+ -ms-flex: undefined;
1745
+ flex: undefined;
1746
+ }
1747
+
1748
+ .c14 > * + * {
1749
+ margin-left: 1rem;
1750
+ }
1751
+
1752
+ .c15 {
1753
+ display: -webkit-box;
1754
+ display: -webkit-flex;
1755
+ display: -ms-flexbox;
1756
+ display: flex;
1757
+ -webkit-align-items: flex-start;
1758
+ -webkit-box-align: flex-start;
1759
+ -ms-flex-align: flex-start;
1760
+ align-items: flex-start;
1761
+ -webkit-box-pack: start;
1762
+ -webkit-justify-content: flex-start;
1763
+ -ms-flex-pack: start;
1764
+ justify-content: flex-start;
1765
+ -webkit-flex-direction: row;
1766
+ -ms-flex-direction: row;
1767
+ flex-direction: row;
1768
+ }
1769
+
1770
+ .c15 > * {
1771
+ -webkit-flex: undefined;
1772
+ -ms-flex: undefined;
1773
+ flex: undefined;
1774
+ }
1775
+
1776
+ .c15 > * + * {
1777
+ margin-left: 1rem;
1778
+ }
1779
+
1780
+ @media (min-width:calc(640px + 1px)) and (max-width:720px) {
1781
+ .c0 {
1782
+ max-width: 100vw;
1783
+ }
1784
+ }
1785
+
1786
+ @media (min-width:720px) and (max-width:960px) {
1787
+ .c0 {
1788
+ max-width: 88vw;
1789
+ }
1790
+ }
1791
+
1792
+ @media (min-width:960px) and (max-width:1280px) {
1793
+ .c0 {
1794
+ max-width: 72vw;
1795
+ }
1796
+ }
1797
+
1798
+ @media (min-width:1280px) {
1799
+ .c0 {
1800
+ max-width: 52vw;
1801
+ }
1802
+ }
1803
+
1804
+ @media (max-width:720px) {
1805
+ .c0 {
1806
+ margin: 0;
1807
+ width: 100%;
1808
+ max-width: 100vw;
1809
+ max-height: 100vh;
1810
+ }
1811
+
1812
+ .c0,
1813
+ .c0 > .c1 {
1814
+ border-radius: 0;
1815
+ height: 100%;
1816
+ width: 100%;
1817
+ max-height: unset;
1818
+ }
1819
+ }
1820
+
1821
+ <dialog
1822
+ aria-describedby="modal_title"
1823
+ class="c0"
1824
+ open=""
1825
+ style="opacity: 0; transform: translateY(-50px) translateZ(0);"
1826
+ >
1827
+ <div
1828
+ class="c1 c2"
1829
+ >
1830
+ <header
1831
+ class="c3"
1832
+ >
1833
+ <div
1834
+ class="c4"
1835
+ >
1836
+ <h2
1837
+ class="c5"
1838
+ id="modal_title"
1839
+ >
1840
+ TEST TITLE
1841
+ </h2>
1842
+ <button
1843
+ aria-label="Close"
1844
+ class="c6 c7"
1845
+ >
1846
+ <span
1847
+ class="c8"
1848
+ >
1849
+ <svg
1850
+ fill="none"
1851
+ height="1.5rem"
1852
+ role="presentation"
1853
+ viewBox="0 0 24 24"
1854
+ xmlns="http://www.w3.org/2000/svg"
1855
+ >
1856
+ <path
1857
+ clip-rule="evenodd"
1858
+ d="M19 6.51071L17.4893 5L11.5 10.9893L5.51071 5L4 6.51071L9.98929 12.5L4 18.4893L5.51071 20L11.5 14.0107L17.4893 20L19 18.4893L13.0107 12.5L19 6.51071Z"
1859
+ fill="currentColor"
1860
+ fill-rule="evenodd"
1861
+ />
1862
+ </svg>
1863
+ </span>
1864
+ </button>
1865
+ </div>
1866
+ <span
1867
+ class="c9"
1868
+ >
1869
+ TEST SUBTITLE
1870
+ </span>
1871
+ </header>
1872
+ <section
1873
+ class="c10 c11"
1874
+ >
1875
+ <div
1876
+ data-testid="main-content"
1877
+ />
1878
+ </section>
1879
+ <footer
1880
+ class="c12 c13"
1881
+ >
1882
+ <div
1883
+ class="c14"
1884
+ direction="horizontal"
1885
+ >
1886
+ <div
1887
+ class="c15"
1888
+ data-testid="left-actions-container"
1889
+ direction="horizontal"
1890
+ >
1891
+ <button
1892
+ class="c16 c17 c18 c19"
1893
+ type="button"
1894
+ >
1895
+ <span
1896
+ class="c20"
1897
+ >
1898
+ <span>
1899
+ Cancel
1900
+ </span>
1901
+ </span>
1902
+ </button>
1903
+ </div>
1904
+ <div
1905
+ class="c15"
1906
+ data-testid="right-actions-container"
1907
+ direction="horizontal"
1908
+ >
1909
+ <button
1910
+ class="c16 c17 c18"
1911
+ type="button"
1912
+ >
1913
+ <span
1914
+ class="c20"
1915
+ >
1916
+ <span>
1917
+ Save
1918
+ </span>
1919
+ </span>
1920
+ </button>
1921
+ <button
1922
+ class="c16 c17"
1923
+ disabled=""
1924
+ type="button"
1925
+ >
1926
+ <span
1927
+ class="c20"
1928
+ >
1929
+ <span>
1930
+ Cancel
1931
+ </span>
1932
+ </span>
1933
+ </button>
1934
+ </div>
1935
+ </div>
1936
+ </footer>
1937
+ </div>
1938
+ </dialog>
1939
+ </DocumentFragment>
1940
+ `;