@onewelcome/react-lib-components 13.2.0-alpha.1 → 13.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.cjs.js +2 -2
  2. package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.es.js +5 -5
  3. package/dist/components/Button/BaseButton.module.scss.cjs.js +2 -2
  4. package/dist/components/Button/BaseButton.module.scss.es.js +4 -4
  5. package/dist/components/Button/Button.module.scss.cjs.js +2 -2
  6. package/dist/components/Button/Button.module.scss.es.js +17 -17
  7. package/dist/components/Button/IconButton.module.scss.cjs.js +2 -2
  8. package/dist/components/Button/IconButton.module.scss.es.js +18 -18
  9. package/dist/components/ContextMenu/ContextMenu.module.scss.cjs.js +2 -2
  10. package/dist/components/ContextMenu/ContextMenu.module.scss.es.js +6 -6
  11. package/dist/components/ContextMenu/ContextMenuDivider.module.scss.cjs.js +2 -2
  12. package/dist/components/ContextMenu/ContextMenuDivider.module.scss.es.js +2 -2
  13. package/dist/components/ContextMenu/ContextMenuItem.module.scss.cjs.js +2 -2
  14. package/dist/components/ContextMenu/ContextMenuItem.module.scss.es.js +3 -3
  15. package/dist/components/DataGrid/DataGrid.module.scss.cjs.js +2 -2
  16. package/dist/components/DataGrid/DataGrid.module.scss.es.js +7 -7
  17. package/dist/components/DataGrid/DataGridActions/DataGridActions.module.scss.cjs.js +2 -2
  18. package/dist/components/DataGrid/DataGridActions/DataGridActions.module.scss.es.js +6 -6
  19. package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.cjs.js +2 -2
  20. package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.es.js +7 -7
  21. package/dist/components/DataGrid/DataGridBody/DataGridBody.module.scss.cjs.js +2 -2
  22. package/dist/components/DataGrid/DataGridBody/DataGridBody.module.scss.es.js +2 -2
  23. package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.cjs.js +2 -2
  24. package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.es.js +5 -5
  25. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.cjs.js +2 -2
  26. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.es.js +4 -4
  27. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.cjs.js +2 -2
  28. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.es.js +5 -5
  29. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.cjs.js +2 -2
  30. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.es.js +24 -24
  31. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.module.scss.cjs.js +2 -2
  32. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.module.scss.es.js +9 -9
  33. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.module.scss.cjs.js +2 -2
  34. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.module.scss.es.js +10 -10
  35. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.cjs.js +2 -2
  36. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.es.js +17 -17
  37. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.module.scss.cjs.js +2 -2
  38. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.module.scss.es.js +3 -3
  39. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.cjs.js +2 -2
  40. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.es.js +11 -11
  41. package/dist/components/DatePicker/DatePicker.module.scss.cjs.js +2 -2
  42. package/dist/components/DatePicker/DatePicker.module.scss.es.js +31 -31
  43. package/dist/components/Form/Checkbox/Checkbox.module.scss.cjs.js +2 -2
  44. package/dist/components/Form/Checkbox/Checkbox.module.scss.es.js +13 -13
  45. package/dist/components/Form/Fieldset/Fieldset.module.scss.cjs.js +2 -2
  46. package/dist/components/Form/Fieldset/Fieldset.module.scss.es.js +5 -5
  47. package/dist/components/Form/FileUpload/FileItem/FileItem.module.scss.cjs.js +2 -2
  48. package/dist/components/Form/FileUpload/FileItem/FileItem.module.scss.es.js +18 -18
  49. package/dist/components/Form/FileUpload/FileUpload.module.scss.cjs.js +2 -2
  50. package/dist/components/Form/FileUpload/FileUpload.module.scss.es.js +16 -16
  51. package/dist/components/Form/Form.module.scss.cjs.js +2 -2
  52. package/dist/components/Form/Form.module.scss.es.js +2 -2
  53. package/dist/components/Form/FormControl/FormControl.module.scss.cjs.js +2 -2
  54. package/dist/components/Form/FormControl/FormControl.module.scss.es.js +13 -13
  55. package/dist/components/Form/FormErrorText/FormErrorText.module.scss.cjs.js +2 -2
  56. package/dist/components/Form/FormErrorText/FormErrorText.module.scss.es.js +5 -5
  57. package/dist/components/Form/FormGroup/FormGroup.module.scss.cjs.js +2 -2
  58. package/dist/components/Form/FormGroup/FormGroup.module.scss.es.js +3 -3
  59. package/dist/components/Form/FormHelperText/FormHelperText.module.scss.cjs.js +2 -2
  60. package/dist/components/Form/FormHelperText/FormHelperText.module.scss.es.js +4 -4
  61. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.cjs.js +2 -2
  62. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.es.js +6 -6
  63. package/dist/components/Form/Input/Input.module.scss.cjs.js +2 -2
  64. package/dist/components/Form/Input/Input.module.scss.es.js +8 -8
  65. package/dist/components/Form/Label/Label.module.scss.cjs.js +2 -2
  66. package/dist/components/Form/Label/Label.module.scss.es.js +2 -2
  67. package/dist/components/Form/Radio/Radio.module.scss.cjs.js +2 -2
  68. package/dist/components/Form/Radio/Radio.module.scss.es.js +11 -11
  69. package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.cjs.js +2 -2
  70. package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.es.js +15 -15
  71. package/dist/components/Form/Select/MultiSelect/SelectButton.module.scss.cjs.js +2 -2
  72. package/dist/components/Form/Select/MultiSelect/SelectButton.module.scss.es.js +2 -2
  73. package/dist/components/Form/Select/MultiSelect/SelectedOptions.module.scss.cjs.js +2 -2
  74. package/dist/components/Form/Select/MultiSelect/SelectedOptions.module.scss.es.js +4 -4
  75. package/dist/components/Form/Select/SingleSelect/Select.module.scss.cjs.js +2 -2
  76. package/dist/components/Form/Select/SingleSelect/Select.module.scss.es.js +17 -17
  77. package/dist/components/Form/Select/useAddNewBtn.module.scss.cjs.js +2 -2
  78. package/dist/components/Form/Select/useAddNewBtn.module.scss.es.js +4 -4
  79. package/dist/components/Form/Select/useSelectPositionList.cjs.js +1 -1
  80. package/dist/components/Form/Select/useSelectPositionList.cjs.js.map +1 -1
  81. package/dist/components/Form/Select/useSelectPositionList.es.js +18 -5
  82. package/dist/components/Form/Select/useSelectPositionList.es.js.map +1 -1
  83. package/dist/components/Form/Textarea/Textarea.module.scss.cjs.js +2 -2
  84. package/dist/components/Form/Textarea/Textarea.module.scss.es.js +6 -6
  85. package/dist/components/Form/Toggle/Toggle.module.scss.cjs.js +2 -2
  86. package/dist/components/Form/Toggle/Toggle.module.scss.es.js +18 -18
  87. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.cjs.js +2 -2
  88. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.es.js +3 -3
  89. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss.cjs.js +2 -2
  90. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss.es.js +5 -5
  91. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.cjs.js +2 -2
  92. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.es.js +3 -3
  93. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.cjs.js +2 -2
  94. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.es.js +3 -3
  95. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.cjs.js +2 -2
  96. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.es.js +3 -3
  97. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.cjs.js +2 -2
  98. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.es.js +8 -8
  99. package/dist/components/Form/Wrapper/Wrapper/Wrapper.module.scss.cjs.js +2 -2
  100. package/dist/components/Form/Wrapper/Wrapper/Wrapper.module.scss.es.js +6 -6
  101. package/dist/components/Icon/Icon.module.scss.cjs.js +2 -2
  102. package/dist/components/Icon/Icon.module.scss.es.js +108 -108
  103. package/dist/components/Layout/ActionBar/ActionBar.module.scss.cjs.js +2 -2
  104. package/dist/components/Layout/ActionBar/ActionBar.module.scss.es.js +10 -10
  105. package/dist/components/Layout/Card/Card.module.scss.cjs.js +2 -2
  106. package/dist/components/Layout/Card/Card.module.scss.es.js +12 -12
  107. package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.cjs.js +2 -2
  108. package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.es.js +12 -12
  109. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.cjs.js +2 -2
  110. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.es.js +4 -4
  111. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.cjs.js +2 -2
  112. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.es.js +2 -2
  113. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.cjs.js +2 -2
  114. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.es.js +3 -3
  115. package/dist/components/Link/Link.module.scss.cjs.js +2 -2
  116. package/dist/components/Link/Link.module.scss.es.js +17 -17
  117. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss.cjs.js +2 -2
  118. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss.es.js +11 -11
  119. package/dist/components/Notifications/Alert/AlertItem/AlertItem.module.scss.cjs.js +2 -2
  120. package/dist/components/Notifications/Alert/AlertItem/AlertItem.module.scss.es.js +22 -22
  121. package/dist/components/Notifications/Banner/Banner.module.scss.cjs.js +2 -2
  122. package/dist/components/Notifications/Banner/Banner.module.scss.es.js +9 -9
  123. package/dist/components/Notifications/BaseModal/BaseModal.module.scss.cjs.js +2 -2
  124. package/dist/components/Notifications/BaseModal/BaseModal.module.scss.es.js +5 -5
  125. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.cjs.js +2 -2
  126. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.es.js +4 -4
  127. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.cjs.js +2 -2
  128. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.es.js +2 -2
  129. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.cjs.js +2 -2
  130. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.es.js +6 -6
  131. package/dist/components/Notifications/Dialog/Dialog.module.scss.cjs.js +2 -2
  132. package/dist/components/Notifications/Dialog/Dialog.module.scss.es.js +4 -4
  133. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.module.scss.cjs.js +2 -2
  134. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.module.scss.es.js +3 -3
  135. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.cjs.js +2 -2
  136. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.es.js +10 -10
  137. package/dist/components/Notifications/SideSheet/SideSheet.module.scss.cjs.js +2 -2
  138. package/dist/components/Notifications/SideSheet/SideSheet.module.scss.es.js +13 -13
  139. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.cjs.js +2 -2
  140. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.es.js +2 -2
  141. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.cjs.js +2 -2
  142. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.es.js +2 -2
  143. package/dist/components/Notifications/SlideInModal/SlideInModal.module.scss.cjs.js +2 -2
  144. package/dist/components/Notifications/SlideInModal/SlideInModal.module.scss.es.js +10 -10
  145. package/dist/components/Pagination/Pagination.module.scss.cjs.js +2 -2
  146. package/dist/components/Pagination/Pagination.module.scss.es.js +14 -14
  147. package/dist/components/Popover/Popover.module.scss.cjs.js +2 -2
  148. package/dist/components/Popover/Popover.module.scss.es.js +3 -3
  149. package/dist/components/ProgressBar/ProgressBar.module.scss.cjs.js +2 -2
  150. package/dist/components/ProgressBar/ProgressBar.module.scss.es.js +9 -9
  151. package/dist/components/Skeleton/Skeleton.module.scss.cjs.js +2 -2
  152. package/dist/components/Skeleton/Skeleton.module.scss.es.js +5 -5
  153. package/dist/components/Spinner/Spinner.module.scss.cjs.js +2 -2
  154. package/dist/components/Spinner/Spinner.module.scss.es.js +3 -3
  155. package/dist/components/Stepper/Step.module.scss.cjs.js +2 -2
  156. package/dist/components/Stepper/Step.module.scss.es.js +22 -22
  157. package/dist/components/Stepper/Stepper.module.scss.cjs.js +2 -2
  158. package/dist/components/Stepper/Stepper.module.scss.es.js +4 -4
  159. package/dist/components/Tabs/Tab.module.scss.cjs.js +2 -2
  160. package/dist/components/Tabs/Tab.module.scss.es.js +3 -3
  161. package/dist/components/Tabs/TabButton.module.scss.cjs.js +2 -2
  162. package/dist/components/Tabs/TabButton.module.scss.es.js +12 -12
  163. package/dist/components/Tabs/Tabs.cjs.js +1 -1
  164. package/dist/components/Tabs/Tabs.cjs.js.map +1 -1
  165. package/dist/components/Tabs/Tabs.es.js +1 -1
  166. package/dist/components/Tabs/Tabs.es.js.map +1 -1
  167. package/dist/components/Tabs/Tabs.module.scss.cjs.js +2 -2
  168. package/dist/components/Tabs/Tabs.module.scss.es.js +10 -10
  169. package/dist/components/Tag/RemoveButton.module.scss.cjs.js +2 -2
  170. package/dist/components/Tag/RemoveButton.module.scss.es.js +3 -3
  171. package/dist/components/Tag/Tag.module.scss.cjs.js +2 -2
  172. package/dist/components/Tag/Tag.module.scss.es.js +6 -6
  173. package/dist/components/TextEllipsis/TextEllipsis.module.scss.cjs.js +2 -2
  174. package/dist/components/TextEllipsis/TextEllipsis.module.scss.es.js +3 -3
  175. package/dist/components/Tiles/Tile.module.scss.cjs.js +2 -2
  176. package/dist/components/Tiles/Tile.module.scss.es.js +8 -8
  177. package/dist/components/Tiles/Tiles.module.scss.cjs.js +2 -2
  178. package/dist/components/Tiles/Tiles.module.scss.es.js +2 -2
  179. package/dist/components/Tooltip/Tooltip.module.scss.cjs.js +2 -2
  180. package/dist/components/Tooltip/Tooltip.module.scss.es.js +27 -27
  181. package/dist/components/Typography/Typography.module.scss.cjs.js +2 -2
  182. package/dist/components/Typography/Typography.module.scss.es.js +13 -13
  183. package/dist/components/_BaseStyling_/BaseStyling.cjs.js +1 -0
  184. package/dist/components/_BaseStyling_/BaseStyling.cjs.js.map +1 -1
  185. package/dist/components/_BaseStyling_/BaseStyling.es.js +2 -0
  186. package/dist/components/_BaseStyling_/BaseStyling.es.js.map +1 -1
  187. package/dist/components/admin/layout/LeftNav/LeftNav.module.scss.cjs.js +2 -2
  188. package/dist/components/admin/layout/LeftNav/LeftNav.module.scss.es.js +5 -5
  189. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.cjs.js +2 -2
  190. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.es.js +14 -14
  191. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.cjs.js +2 -2
  192. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.es.js +3 -3
  193. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.cjs.js +2 -2
  194. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.es.js +7 -7
  195. package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.cjs.js +2 -2
  196. package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.es.js +13 -13
  197. package/dist/components/miscellaneous/IdentityProviderButton.module.scss.cjs.js +2 -2
  198. package/dist/components/miscellaneous/IdentityProviderButton.module.scss.es.js +3 -3
  199. package/dist/readyclasses.module.scss.cjs.js +2 -2
  200. package/dist/readyclasses.module.scss.es.js +5 -5
  201. package/package.json +4 -4
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Tab_tab_WVpkD{display:none}.Tab_tab_WVpkD:focus-visible{outline-color:var(--color-focus)}.Tab_tab_WVpkD.Tab_selected_WVpkD{display:block}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="Tab_tab_WVpkD",t="Tab_selected_WVpkD",s={tab:e,selected:t};exports.default=s,exports.selected=t,exports.tab=e;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Tab_tab_EVNeA{display:none}.Tab_tab_EVNeA:focus-visible{outline-color:var(--color-focus)}.Tab_tab_EVNeA.Tab_selected_EVNeA{display:block}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="Tab_tab_EVNeA",t="Tab_selected_EVNeA",s={tab:e,selected:t};exports.default=s,exports.selected=t,exports.tab=e;
3
3
  //# sourceMappingURL=Tab.module.scss.cjs.js.map
@@ -1,6 +1,6 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Tab_tab_WVpkD{display:none}.Tab_tab_WVpkD:focus-visible{outline-color:var(--color-focus)}.Tab_tab_WVpkD.Tab_selected_WVpkD{display:block}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
- const tab = "Tab_tab_WVpkD";
3
- const selected = "Tab_selected_WVpkD";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Tab_tab_EVNeA{display:none}.Tab_tab_EVNeA:focus-visible{outline-color:var(--color-focus)}.Tab_tab_EVNeA.Tab_selected_EVNeA{display:block}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
+ const tab = "Tab_tab_EVNeA";
3
+ const selected = "Tab_selected_EVNeA";
4
4
  const classes = {
5
5
  tab,
6
6
  selected
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('.TabButton_sr-only_WVpkD{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.TabButton_hidden_WVpkD{display:none}.TabButton_slide-in_WVpkD{animation:TabButton_slide-in_WVpkD .5s forwards}@media(prefers-reduced-motion:reduce){.TabButton_slide-in_WVpkD{animation-duration:.1ms}}.TabButton_slide-out_WVpkD{animation:TabButton_slide-out_WVpkD .5s forwards}@media(prefers-reduced-motion:reduce){.TabButton_slide-out_WVpkD{animation-duration:.1ms}}@keyframes TabButton_slide-in_WVpkD{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes TabButton_slide-out_WVpkD{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.TabButton_tabbutton_WVpkD{color:var(--tab-text-color);border:0;border-radius:0;font-size:var(--font-size);line-height:var(--default-line-height);margin:0;padding:.5rem 1rem;cursor:pointer;font-family:var(--font-family);background-color:transparent;white-space:nowrap;position:relative;font-weight:400;border-bottom-style:var(--tablist-border-style);border-bottom-width:var(--tablist-border-width);border-bottom-color:var(--tablist-border-color)}.TabButton_tabbutton_WVpkD:focus-visible{outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:0;border-radius:var(--focus-border-radius)}.TabButton_tabbutton_WVpkD:where(:focus-visible){z-index:1}.TabButton_tabbutton_WVpkD:disabled{color:var(--greyed-out);cursor:not-allowed}.TabButton_tabbutton_WVpkD:hover:not(:disabled){background-color:var(--tab-hover-color)}.TabButton_tabbutton_WVpkD:active:not(:disabled){background-color:var(--tab-pressed-color)}.TabButton_tabbutton_WVpkD.TabButton_selected_WVpkD{color:var(--tab-active-text-color)}.TabButton_tabbutton_WVpkD.TabButton_fluid_WVpkD{flex:1}.TabButton_tabbutton_WVpkD.TabButton_has-icon_WVpkD{gap:calc(.25 * var(--font-size));display:inline-flex;align-items:center}.TabButton_tabbutton_WVpkD.TabButton_has-icon_WVpkD i{display:flex}.TabButton_tabbutton_WVpkD.TabButton_has-icon_WVpkD span[data-icon]{display:inline-block;font-size:var(--font-size-big);width:var(--font-size-big)}.TabButton_tabbutton_WVpkD.TabButton_has-icon_WVpkD.TabButton_top-icon_WVpkD,.TabButton_tabbutton_WVpkD.TabButton_has-icon_WVpkD.TabButton_bottom-icon_WVpkD{flex-direction:column}.TabButton_tabbutton_WVpkD.TabButton_has-icon_WVpkD.TabButton_left-icon_WVpkD i,.TabButton_tabbutton_WVpkD.TabButton_has-icon_WVpkD.TabButton_top-icon_WVpkD i{order:-1}')),document.head.appendChild(t)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="TabButton_hidden_WVpkD",o="TabButton_tabbutton_WVpkD",e="TabButton_selected_WVpkD",n="TabButton_fluid_WVpkD",u={"sr-only":"TabButton_sr-only_WVpkD",hidden:t,"slide-in":"TabButton_slide-in_WVpkD","slide-out":"TabButton_slide-out_WVpkD",tabbutton:o,selected:e,fluid:n,"has-icon":"TabButton_has-icon_WVpkD","top-icon":"TabButton_top-icon_WVpkD","bottom-icon":"TabButton_bottom-icon_WVpkD","left-icon":"TabButton_left-icon_WVpkD"};exports.default=u,exports.fluid=n,exports.hidden=t,exports.selected=e,exports.tabbutton=o;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('.TabButton_sr-only_EVNeA{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.TabButton_hidden_EVNeA{display:none}.TabButton_slide-in_EVNeA{animation:TabButton_slide-in_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.TabButton_slide-in_EVNeA{animation-duration:.1ms}}.TabButton_slide-out_EVNeA{animation:TabButton_slide-out_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.TabButton_slide-out_EVNeA{animation-duration:.1ms}}@keyframes TabButton_slide-in_EVNeA{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes TabButton_slide-out_EVNeA{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.TabButton_tabbutton_EVNeA{color:var(--tab-text-color);border:0;border-radius:0;font-size:var(--font-size);line-height:var(--default-line-height);margin:0;padding:.5rem 1rem;cursor:pointer;font-family:var(--font-family);background-color:transparent;white-space:nowrap;position:relative;font-weight:400;border-bottom-style:var(--tablist-border-style);border-bottom-width:var(--tablist-border-width);border-bottom-color:var(--tablist-border-color)}.TabButton_tabbutton_EVNeA:focus-visible{outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:0;border-radius:var(--focus-border-radius)}.TabButton_tabbutton_EVNeA:where(:focus-visible){z-index:1}.TabButton_tabbutton_EVNeA:disabled{color:var(--greyed-out);cursor:not-allowed}.TabButton_tabbutton_EVNeA:hover:not(:disabled){background-color:var(--tab-hover-color)}.TabButton_tabbutton_EVNeA:active:not(:disabled){background-color:var(--tab-pressed-color)}.TabButton_tabbutton_EVNeA.TabButton_selected_EVNeA{color:var(--tab-active-text-color)}.TabButton_tabbutton_EVNeA.TabButton_fluid_EVNeA{flex:1}.TabButton_tabbutton_EVNeA.TabButton_has-icon_EVNeA{gap:calc(.25 * var(--font-size));display:inline-flex;align-items:center}.TabButton_tabbutton_EVNeA.TabButton_has-icon_EVNeA i{display:flex}.TabButton_tabbutton_EVNeA.TabButton_has-icon_EVNeA span[data-icon]{display:inline-block;font-size:var(--font-size-big);width:var(--font-size-big)}.TabButton_tabbutton_EVNeA.TabButton_has-icon_EVNeA.TabButton_top-icon_EVNeA,.TabButton_tabbutton_EVNeA.TabButton_has-icon_EVNeA.TabButton_bottom-icon_EVNeA{flex-direction:column}.TabButton_tabbutton_EVNeA.TabButton_has-icon_EVNeA.TabButton_left-icon_EVNeA i,.TabButton_tabbutton_EVNeA.TabButton_has-icon_EVNeA.TabButton_top-icon_EVNeA i{order:-1}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="TabButton_hidden_EVNeA",e="TabButton_tabbutton_EVNeA",o="TabButton_selected_EVNeA",n="TabButton_fluid_EVNeA",u={"sr-only":"TabButton_sr-only_EVNeA",hidden:t,"slide-in":"TabButton_slide-in_EVNeA","slide-out":"TabButton_slide-out_EVNeA",tabbutton:e,selected:o,fluid:n,"has-icon":"TabButton_has-icon_EVNeA","top-icon":"TabButton_top-icon_EVNeA","bottom-icon":"TabButton_bottom-icon_EVNeA","left-icon":"TabButton_left-icon_EVNeA"};exports.default=u,exports.fluid=n,exports.hidden=t,exports.selected=o,exports.tabbutton=e;
3
3
  //# sourceMappingURL=TabButton.module.scss.cjs.js.map
@@ -1,20 +1,20 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('.TabButton_sr-only_WVpkD{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.TabButton_hidden_WVpkD{display:none}.TabButton_slide-in_WVpkD{animation:TabButton_slide-in_WVpkD .5s forwards}@media(prefers-reduced-motion:reduce){.TabButton_slide-in_WVpkD{animation-duration:.1ms}}.TabButton_slide-out_WVpkD{animation:TabButton_slide-out_WVpkD .5s forwards}@media(prefers-reduced-motion:reduce){.TabButton_slide-out_WVpkD{animation-duration:.1ms}}@keyframes TabButton_slide-in_WVpkD{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes TabButton_slide-out_WVpkD{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.TabButton_tabbutton_WVpkD{color:var(--tab-text-color);border:0;border-radius:0;font-size:var(--font-size);line-height:var(--default-line-height);margin:0;padding:.5rem 1rem;cursor:pointer;font-family:var(--font-family);background-color:transparent;white-space:nowrap;position:relative;font-weight:400;border-bottom-style:var(--tablist-border-style);border-bottom-width:var(--tablist-border-width);border-bottom-color:var(--tablist-border-color)}.TabButton_tabbutton_WVpkD:focus-visible{outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:0;border-radius:var(--focus-border-radius)}.TabButton_tabbutton_WVpkD:where(:focus-visible){z-index:1}.TabButton_tabbutton_WVpkD:disabled{color:var(--greyed-out);cursor:not-allowed}.TabButton_tabbutton_WVpkD:hover:not(:disabled){background-color:var(--tab-hover-color)}.TabButton_tabbutton_WVpkD:active:not(:disabled){background-color:var(--tab-pressed-color)}.TabButton_tabbutton_WVpkD.TabButton_selected_WVpkD{color:var(--tab-active-text-color)}.TabButton_tabbutton_WVpkD.TabButton_fluid_WVpkD{flex:1}.TabButton_tabbutton_WVpkD.TabButton_has-icon_WVpkD{gap:calc(.25 * var(--font-size));display:inline-flex;align-items:center}.TabButton_tabbutton_WVpkD.TabButton_has-icon_WVpkD i{display:flex}.TabButton_tabbutton_WVpkD.TabButton_has-icon_WVpkD span[data-icon]{display:inline-block;font-size:var(--font-size-big);width:var(--font-size-big)}.TabButton_tabbutton_WVpkD.TabButton_has-icon_WVpkD.TabButton_top-icon_WVpkD,.TabButton_tabbutton_WVpkD.TabButton_has-icon_WVpkD.TabButton_bottom-icon_WVpkD{flex-direction:column}.TabButton_tabbutton_WVpkD.TabButton_has-icon_WVpkD.TabButton_left-icon_WVpkD i,.TabButton_tabbutton_WVpkD.TabButton_has-icon_WVpkD.TabButton_top-icon_WVpkD i{order:-1}')),document.head.appendChild(t)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}}();
2
- const hidden = "TabButton_hidden_WVpkD";
3
- const tabbutton = "TabButton_tabbutton_WVpkD";
4
- const selected = "TabButton_selected_WVpkD";
5
- const fluid = "TabButton_fluid_WVpkD";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('.TabButton_sr-only_EVNeA{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.TabButton_hidden_EVNeA{display:none}.TabButton_slide-in_EVNeA{animation:TabButton_slide-in_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.TabButton_slide-in_EVNeA{animation-duration:.1ms}}.TabButton_slide-out_EVNeA{animation:TabButton_slide-out_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.TabButton_slide-out_EVNeA{animation-duration:.1ms}}@keyframes TabButton_slide-in_EVNeA{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes TabButton_slide-out_EVNeA{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.TabButton_tabbutton_EVNeA{color:var(--tab-text-color);border:0;border-radius:0;font-size:var(--font-size);line-height:var(--default-line-height);margin:0;padding:.5rem 1rem;cursor:pointer;font-family:var(--font-family);background-color:transparent;white-space:nowrap;position:relative;font-weight:400;border-bottom-style:var(--tablist-border-style);border-bottom-width:var(--tablist-border-width);border-bottom-color:var(--tablist-border-color)}.TabButton_tabbutton_EVNeA:focus-visible{outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:0;border-radius:var(--focus-border-radius)}.TabButton_tabbutton_EVNeA:where(:focus-visible){z-index:1}.TabButton_tabbutton_EVNeA:disabled{color:var(--greyed-out);cursor:not-allowed}.TabButton_tabbutton_EVNeA:hover:not(:disabled){background-color:var(--tab-hover-color)}.TabButton_tabbutton_EVNeA:active:not(:disabled){background-color:var(--tab-pressed-color)}.TabButton_tabbutton_EVNeA.TabButton_selected_EVNeA{color:var(--tab-active-text-color)}.TabButton_tabbutton_EVNeA.TabButton_fluid_EVNeA{flex:1}.TabButton_tabbutton_EVNeA.TabButton_has-icon_EVNeA{gap:calc(.25 * var(--font-size));display:inline-flex;align-items:center}.TabButton_tabbutton_EVNeA.TabButton_has-icon_EVNeA i{display:flex}.TabButton_tabbutton_EVNeA.TabButton_has-icon_EVNeA span[data-icon]{display:inline-block;font-size:var(--font-size-big);width:var(--font-size-big)}.TabButton_tabbutton_EVNeA.TabButton_has-icon_EVNeA.TabButton_top-icon_EVNeA,.TabButton_tabbutton_EVNeA.TabButton_has-icon_EVNeA.TabButton_bottom-icon_EVNeA{flex-direction:column}.TabButton_tabbutton_EVNeA.TabButton_has-icon_EVNeA.TabButton_left-icon_EVNeA i,.TabButton_tabbutton_EVNeA.TabButton_has-icon_EVNeA.TabButton_top-icon_EVNeA i{order:-1}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
2
+ const hidden = "TabButton_hidden_EVNeA";
3
+ const tabbutton = "TabButton_tabbutton_EVNeA";
4
+ const selected = "TabButton_selected_EVNeA";
5
+ const fluid = "TabButton_fluid_EVNeA";
6
6
  const classes = {
7
- "sr-only": "TabButton_sr-only_WVpkD",
7
+ "sr-only": "TabButton_sr-only_EVNeA",
8
8
  hidden,
9
- "slide-in": "TabButton_slide-in_WVpkD",
10
- "slide-out": "TabButton_slide-out_WVpkD",
9
+ "slide-in": "TabButton_slide-in_EVNeA",
10
+ "slide-out": "TabButton_slide-out_EVNeA",
11
11
  tabbutton,
12
12
  selected,
13
13
  fluid,
14
- "has-icon": "TabButton_has-icon_WVpkD",
15
- "top-icon": "TabButton_top-icon_WVpkD",
16
- "bottom-icon": "TabButton_bottom-icon_WVpkD",
17
- "left-icon": "TabButton_left-icon_WVpkD"
14
+ "has-icon": "TabButton_has-icon_EVNeA",
15
+ "top-icon": "TabButton_top-icon_EVNeA",
16
+ "bottom-icon": "TabButton_bottom-icon_EVNeA",
17
+ "left-icon": "TabButton_left-icon_EVNeA"
18
18
  };
19
19
  export {
20
20
  classes as default,
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("./TabButton.cjs.js"),r=require("./Tabs.module.scss.cjs.js"),n=e.forwardRef(({children:n,selected:o=0,onTabChange:s,className:l,fluid:a,tabListClassName:i,align:c,iconsPosition:u="left",tabChanging:d,activateOnFocus:f=!0,...p},b)=>{const h=e=>Object.prototype.hasOwnProperty.call(e.props,"title"),g=t=>{const r=e.Children.toArray(n),o=e=>Boolean(e&&h(e)&&!e.props.disabled);if(t>=0&&t<r.length&&o(r[t]))return t;const s=r.findIndex(o);return-1===s?0:s},[m,y]=e.useState([]),[v,w]=e.useState([]),[C,E]=e.useState(()=>g(o)),[S,x]=e.useState(()=>g(o)),[T,j]=e.useState(!1),[A,k]=e.useState({width:0,left:0,top:0}),I=b||e.createRef(),O=e.useRef(null),$=()=>e.Children.toArray(n).reduce((e,t,r)=>(h(t)&&!t.props.disabled&&e.push(r),e),[]),_=(e,t)=>{const r=$();if(!r.length)return e;const n=r.indexOf(e);return-1===n?r[0]:r["next"===t?(n+1)%r.length:(n-1+r.length)%r.length]},q=async e=>{var t,r;try{if("function"==typeof d&&!(await Promise.resolve(d(e,C)))){x(C);const e=null==(t=I.current)?void 0:t.querySelectorAll('button[role="tab"]');return void(null==(r=null==e?void 0:e[C])||r.focus())}E(e),null==s||s(e)}catch(n){}};e.useEffect(()=>{x(C)},[C]),e.useEffect(()=>{const e=g(C);e===C?$().includes(S)||x(e):E(e)},[n,C,S]),e.useEffect(()=>{I.current&&m.length&&(()=>{if(!I.current||!O.current)return;const e=I.current.querySelector('button[role="tab"][aria-selected="true"]');e&&k({left:e.offsetLeft,top:e.offsetTop+e.offsetHeight-O.current.offsetHeight-parseInt(getComputedStyle(e).borderBottomWidth),width:e.offsetWidth})})()},[I.current,C,m]),e.useEffect(()=>{const r=e.Children.map(n,(r,n)=>h(r)?e.createElement(t.TabButton,{key:`${r.props.title.toLowerCase().replace(/\s/,"_")}_button`,tabIndex:S===n?0:-1,"aria-selected":C===n,focused:T&&S===n,tabActive:C===n,"aria-controls":`tab_${n}`,onClick:()=>{q(n)},onFocus:()=>{x(n)},disabled:r.props.disabled,fluid:a,iconPosition:u,icon:r.props.icon},r.props.title):null),o=e.Children.map(n,(t,r)=>h(t)?e.cloneElement(t,{key:`${t.props.title.toLowerCase().replace(/\s/,"_")}_tab`,tabIndex:C===r?0:-1,tabActive:C===r,id:`tab_${r}`,children:t.props.children}):null);w(o),y(r)},[n,C,S,a,c,u]);const B=[r.default.tablist];return c&&B.push(r.default[c]),i&&B.push(i),e.createElement("div",{...p,ref:I,className:`${r.default.tabs} ${l??""}`},e.createElement("div",{role:"tablist",tabIndex:-1,className:B.join(" "),onKeyDown:e=>{const t=$().length,r={ArrowRight:()=>_(S,"next"),ArrowLeft:()=>_(S,"prev"),Home:()=>$()[0]??0,End:()=>(()=>{const e=$();return e[e.length-1]??0})()};if(Object.keys(r).includes(e.key)&&!T&&j(!0),1===t)return;const n=r[e.key];if(!n)return;e.preventDefault();const o=n();x(o),f&&q(o)},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||setTimeout(()=>{x(C),j(!1)},0)}},m,e.createElement("div",{className:r.default.indicator,ref:O,"aria-hidden":"true",tabIndex:-1,style:{width:A.width,left:A.left,top:A.top}})),e.createElement("div",null,v))});exports.Tabs=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("./TabButton.cjs.js"),r=require("./Tabs.module.scss.cjs.js"),n=e.forwardRef(({children:n,selected:o=0,onTabChange:s,className:l,fluid:a,tabListClassName:i,align:c,iconsPosition:u="left",tabChanging:d,activateOnFocus:f=!0,...p},b)=>{const h=e=>Object.prototype.hasOwnProperty.call(e.props,"title"),m=t=>{const r=e.Children.toArray(n),o=e=>Boolean(e&&h(e)&&!e.props.disabled);if(t>=0&&t<r.length&&o(r[t]))return t;const s=r.findIndex(o);return-1===s?0:s},[g,y]=e.useState([]),[v,w]=e.useState([]),[C,E]=e.useState(()=>m(o)),[S,x]=e.useState(()=>m(o)),[T,j]=e.useState(!1),[A,k]=e.useState({width:0,left:0,top:0}),I=b||e.createRef(),N=e.useRef(null),O=()=>e.Children.toArray(n).reduce((e,t,r)=>(h(t)&&!t.props.disabled&&e.push(r),e),[]),$=(e,t)=>{const r=O();if(!r.length)return e;const n=r.indexOf(e);return-1===n?r[0]:r["next"===t?(n+1)%r.length:(n-1+r.length)%r.length]},_=async e=>{var t,r;try{if("function"==typeof d&&!(await Promise.resolve(d(e,C)))){x(C);const e=null==(t=I.current)?void 0:t.querySelectorAll('button[role="tab"]');return void(null==(r=null==e?void 0:e[C])||r.focus())}E(e),null==s||s(e)}catch(n){}};e.useEffect(()=>{x(C)},[C]),e.useEffect(()=>{const e=m(C);e===C?O().includes(S)||x(e):E(e)},[n,C,S]),e.useEffect(()=>{I.current&&g.length&&(()=>{if(!I.current||!N.current)return;const e=I.current.querySelector('button[role="tab"][aria-selected="true"]');e&&k({left:e.offsetLeft,top:e.offsetTop+e.offsetHeight-N.current.offsetHeight-Number.parseInt(getComputedStyle(e).borderBottomWidth),width:e.offsetWidth})})()},[I.current,C,g]),e.useEffect(()=>{const r=e.Children.map(n,(r,n)=>h(r)?e.createElement(t.TabButton,{key:`${r.props.title.toLowerCase().replace(/\s/,"_")}_button`,tabIndex:S===n?0:-1,"aria-selected":C===n,focused:T&&S===n,tabActive:C===n,"aria-controls":`tab_${n}`,onClick:()=>{_(n)},onFocus:()=>{x(n)},disabled:r.props.disabled,fluid:a,iconPosition:u,icon:r.props.icon},r.props.title):null),o=e.Children.map(n,(t,r)=>h(t)?e.cloneElement(t,{key:`${t.props.title.toLowerCase().replace(/\s/,"_")}_tab`,tabIndex:C===r?0:-1,tabActive:C===r,id:`tab_${r}`,children:t.props.children}):null);w(o),y(r)},[n,C,S,a,c,u]);const q=[r.default.tablist];return c&&q.push(r.default[c]),i&&q.push(i),e.createElement("div",{...p,ref:I,className:`${r.default.tabs} ${l??""}`},e.createElement("div",{role:"tablist",tabIndex:-1,className:q.join(" "),onKeyDown:e=>{const t=O().length,r={ArrowRight:()=>$(S,"next"),ArrowLeft:()=>$(S,"prev"),Home:()=>O()[0]??0,End:()=>(()=>{const e=O();return e[e.length-1]??0})()};if(Object.keys(r).includes(e.key)&&!T&&j(!0),1===t)return;const n=r[e.key];if(!n)return;e.preventDefault();const o=n();x(o),f&&_(o)},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||setTimeout(()=>{x(C),j(!1)},0)}},g,e.createElement("div",{className:r.default.indicator,ref:N,"aria-hidden":"true",tabIndex:-1,style:{width:A.width,left:A.left,top:A.top}})),e.createElement("div",null,v))});exports.Tabs=n;
2
2
  //# sourceMappingURL=Tabs.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.cjs.js","sources":["../../../src/components/Tabs/Tabs.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, {\n ComponentPropsWithRef,\n createRef,\n ForwardRefRenderFunction,\n ReactElement,\n RefObject,\n useEffect,\n useRef,\n useState\n} from \"react\";\nimport { Props as TabProps } from \"./Tab\";\nimport { TabButton } from \"./TabButton\";\nimport classes from \"./Tabs.module.scss\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n children: ReactElement<TabProps>[];\n selected?: number;\n onTabChange?: (index: number) => void;\n tabChanging?: (newIndex: number, oldIndex: number) => Promise<boolean> | boolean;\n fluid?: boolean;\n align?: \"left\" | \"center\" | \"right\";\n tabListClassName?: string;\n iconsPosition?: \"left\" | \"right\" | \"top\" | \"bottom\";\n activateOnFocus?: boolean;\n}\n\nconst TabsComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n {\n children,\n selected = 0,\n onTabChange,\n className,\n fluid,\n tabListClassName,\n align,\n iconsPosition = \"left\",\n tabChanging,\n activateOnFocus = true,\n ...rest\n }: Props,\n ref\n) => {\n const isTabChild = (child: ReactElement) =>\n Object.prototype.hasOwnProperty.call(child.props, \"title\");\n\n const getValidSelectedIndex = (preferredIndex: number): number => {\n const kids = React.Children.toArray(children) as ReactElement[];\n\n const isSelectableTab = (child?: ReactElement) =>\n Boolean(child && isTabChild(child) && !child.props.disabled);\n\n if (\n preferredIndex >= 0 &&\n preferredIndex < kids.length &&\n isSelectableTab(kids[preferredIndex])\n ) {\n return preferredIndex;\n }\n\n const firstSelectableIndex = kids.findIndex(isSelectableTab);\n return firstSelectableIndex === -1 ? 0 : firstSelectableIndex;\n };\n\n const [renderedButtons, setRenderedButtons] = useState<ReactElement[]>([]);\n const [renderedTabs, setRenderedTabs] = useState<ReactElement[]>([]);\n const [activeTabIndex, setActiveTabIndex] = useState(() => getValidSelectedIndex(selected));\n const [focusedIndex, setFocusedIndex] = useState(() => getValidSelectedIndex(selected));\n const [usingKeyboardNavigation, setUsingKeyboardNavigation] = useState(false);\n const [indicatorStyles, setIndicatorStyles] = useState<{\n width: number;\n left: number;\n top: number;\n }>({\n width: 0,\n left: 0,\n top: 0\n });\n const tabsRef = (ref as RefObject<HTMLDivElement>) || createRef<HTMLDivElement>();\n const indicatorRef = useRef<HTMLDivElement>(null);\n\n const getEnabledTabIndexes = (): number[] => {\n const kids = React.Children.toArray(children) as ReactElement[];\n\n return kids.reduce((indexes: number[], child, index) => {\n if (isTabChild(child) && !child.props.disabled) {\n indexes.push(index);\n }\n return indexes;\n }, []);\n };\n\n const getNextEnabledTabIndex = (startIndex: number, direction: \"next\" | \"prev\"): number => {\n const enabledTabIndexes = getEnabledTabIndexes();\n\n if (!enabledTabIndexes.length) {\n return startIndex;\n }\n\n const currentPosition = enabledTabIndexes.indexOf(startIndex);\n\n if (currentPosition === -1) {\n return enabledTabIndexes[0];\n }\n\n const nextPosition =\n direction === \"next\"\n ? (currentPosition + 1) % enabledTabIndexes.length\n : (currentPosition - 1 + enabledTabIndexes.length) % enabledTabIndexes.length;\n\n return enabledTabIndexes[nextPosition];\n };\n\n const getFirstEnabledTabIndex = (): number => {\n const enabledTabIndexes = getEnabledTabIndexes();\n return enabledTabIndexes[0] ?? 0;\n };\n\n const getLastEnabledTabIndex = (): number => {\n const enabledTabIndexes = getEnabledTabIndexes();\n return enabledTabIndexes[enabledTabIndexes.length - 1] ?? 0;\n };\n\n const handleKeyDown = (e: React.KeyboardEvent) => {\n const totalAmountOfTabs = getEnabledTabIndexes().length;\n const keyToIndex: Record<string, () => number> = {\n ArrowRight: () => getNextEnabledTabIndex(focusedIndex, \"next\"),\n ArrowLeft: () => getNextEnabledTabIndex(focusedIndex, \"prev\"),\n Home: () => getFirstEnabledTabIndex(),\n End: () => getLastEnabledTabIndex()\n };\n const navigationKeys = Object.keys(keyToIndex);\n if (navigationKeys.includes(e.key) && !usingKeyboardNavigation) {\n setUsingKeyboardNavigation(true);\n }\n\n if (totalAmountOfTabs === 1) {\n return;\n }\n\n const getIndexForKey = keyToIndex[e.key];\n if (!getIndexForKey) {\n return;\n }\n\n e.preventDefault();\n const nextIndex = getIndexForKey();\n setFocusedIndex(nextIndex);\n if (activateOnFocus) {\n void handleTabClick(nextIndex);\n }\n };\n\n const handleBlur = (e: React.FocusEvent) => {\n if (!e.currentTarget.contains(e.relatedTarget)) {\n setTimeout(() => {\n setFocusedIndex(activeTabIndex);\n setUsingKeyboardNavigation(false);\n }, 0);\n }\n };\n\n const calculateIndicatorPosition = () => {\n if (!tabsRef.current || !indicatorRef.current) {\n return;\n }\n\n const selectedButton = tabsRef.current.querySelector(\n 'button[role=\"tab\"][aria-selected=\"true\"]'\n ) as HTMLElement | null;\n\n if (!selectedButton) {\n return;\n }\n\n setIndicatorStyles({\n left: selectedButton.offsetLeft,\n top:\n selectedButton.offsetTop +\n selectedButton.offsetHeight -\n indicatorRef.current.offsetHeight -\n parseInt(getComputedStyle(selectedButton).borderBottomWidth),\n width: selectedButton.offsetWidth\n });\n };\n\n const handleTabClick = async (newIndex: number) => {\n try {\n const allowed =\n typeof tabChanging === \"function\"\n ? await Promise.resolve(tabChanging(newIndex, activeTabIndex))\n : true;\n\n if (!allowed) {\n setFocusedIndex(activeTabIndex);\n const buttons = tabsRef.current?.querySelectorAll<HTMLButtonElement>('button[role=\"tab\"]');\n buttons?.[activeTabIndex]?.focus();\n return;\n }\n\n setActiveTabIndex(newIndex);\n onTabChange?.(newIndex);\n } catch (error) {\n console.error(\"handleTabClick failed: \", error);\n }\n };\n\n useEffect(() => {\n setFocusedIndex(activeTabIndex);\n }, [activeTabIndex]);\n\n useEffect(() => {\n const validSelectedIndex = getValidSelectedIndex(activeTabIndex);\n\n if (validSelectedIndex !== activeTabIndex) {\n setActiveTabIndex(validSelectedIndex);\n return;\n }\n\n const enabledTabIndexes = getEnabledTabIndexes();\n if (!enabledTabIndexes.includes(focusedIndex)) {\n setFocusedIndex(validSelectedIndex);\n }\n }, [children, activeTabIndex, focusedIndex]);\n\n useEffect(() => {\n if (tabsRef.current && renderedButtons.length) {\n calculateIndicatorPosition();\n }\n }, [tabsRef.current, activeTabIndex, renderedButtons]);\n\n useEffect(() => {\n const buttons = React.Children.map(children, (child, index) => {\n if (isTabChild(child)) {\n return React.createElement(\n TabButton,\n {\n key: `${child.props.title.toLowerCase().replace(/\\s/, \"_\")}_button`,\n tabIndex: focusedIndex === index ? 0 : -1,\n \"aria-selected\": activeTabIndex === index,\n focused: usingKeyboardNavigation && focusedIndex === index,\n tabActive: activeTabIndex === index,\n \"aria-controls\": `tab_${index}`,\n onClick: () => {\n void handleTabClick(index);\n },\n onFocus: () => {\n setFocusedIndex(index);\n },\n disabled: child.props.disabled,\n fluid: fluid,\n iconPosition: iconsPosition,\n icon: child.props.icon\n },\n child.props.title\n );\n }\n return null;\n });\n\n const tabs = React.Children.map(children, (child, index) => {\n if (isTabChild(child)) {\n return React.cloneElement(child, {\n key: `${child.props.title.toLowerCase().replace(/\\s/, \"_\")}_tab`,\n tabIndex: activeTabIndex === index ? 0 : -1,\n tabActive: activeTabIndex === index,\n id: `tab_${index}`,\n children: child.props.children\n });\n }\n\n return null;\n });\n\n setRenderedTabs(tabs);\n setRenderedButtons(buttons);\n }, [children, activeTabIndex, focusedIndex, fluid, align, iconsPosition]);\n\n const tabListClasses = [classes[\"tablist\"]];\n align && tabListClasses.push(classes[align]);\n tabListClassName && tabListClasses.push(tabListClassName);\n\n return (\n <div {...rest} ref={tabsRef} className={`${classes[\"tabs\"]} ${className ?? \"\"}`}>\n <div\n role=\"tablist\"\n tabIndex={-1}\n className={tabListClasses.join(\" \")}\n onKeyDown={handleKeyDown}\n onBlur={handleBlur}\n >\n {renderedButtons}\n <div\n className={classes[\"indicator\"]}\n ref={indicatorRef}\n aria-hidden=\"true\"\n tabIndex={-1}\n style={{\n width: indicatorStyles.width,\n left: indicatorStyles.left,\n top: indicatorStyles.top\n }}\n />\n </div>\n <div>{renderedTabs}</div>\n </div>\n );\n};\n\nexport const Tabs = React.forwardRef(TabsComponent);\n"],"names":["Tabs","React","forwardRef","children","selected","onTabChange","className","fluid","tabListClassName","align","iconsPosition","tabChanging","activateOnFocus","rest","ref","isTabChild","child","Object","prototype","hasOwnProperty","call","props","getValidSelectedIndex","preferredIndex","kids","Children","toArray","isSelectableTab","Boolean","disabled","length","firstSelectableIndex","findIndex","renderedButtons","setRenderedButtons","useState","renderedTabs","setRenderedTabs","activeTabIndex","setActiveTabIndex","focusedIndex","setFocusedIndex","usingKeyboardNavigation","setUsingKeyboardNavigation","indicatorStyles","setIndicatorStyles","width","left","top","tabsRef","createRef","indicatorRef","useRef","getEnabledTabIndexes","reduce","indexes","index","push","getNextEnabledTabIndex","startIndex","direction","enabledTabIndexes","currentPosition","indexOf","handleTabClick","async","newIndex","Promise","resolve","buttons","_a","current","querySelectorAll","_b","focus","error","useEffect","validSelectedIndex","includes","selectedButton","querySelector","offsetLeft","offsetTop","offsetHeight","parseInt","getComputedStyle","borderBottomWidth","offsetWidth","calculateIndicatorPosition","map","createElement","TabButton","key","title","toLowerCase","replace","tabIndex","focused","tabActive","onClick","onFocus","iconPosition","icon","tabs","cloneElement","id","tabListClasses","classes","role","join","onKeyDown","e","totalAmountOfTabs","keyToIndex","ArrowRight","ArrowLeft","Home","End","getLastEnabledTabIndex","keys","getIndexForKey","preventDefault","nextIndex","onBlur","currentTarget","contains","relatedTarget","setTimeout","style"],"mappings":"gLAoUaA,EAAOC,EAAMC,WA1R6C,EAEnEC,WACAC,WAAW,EACXC,cACAC,YACAC,QACAC,mBACAC,QACAC,gBAAgB,OAChBC,cACAC,mBAAkB,KACfC,GAELC,KAEA,MAAMC,EAAcC,GAClBC,OAAOC,UAAUC,eAAeC,KAAKJ,EAAMK,MAAO,SAE9CC,EAAyBC,IAC7B,MAAMC,EAAOvB,EAAMwB,SAASC,QAAQvB,GAE9BwB,EAAmBX,GACvBY,QAAQZ,GAASD,EAAWC,KAAWA,EAAMK,MAAMQ,UAErD,GACEN,GAAkB,GAClBA,EAAiBC,EAAKM,QACtBH,EAAgBH,EAAKD,IAErB,OAAOA,EAGT,MAAMQ,EAAuBP,EAAKQ,UAAUL,GAC5C,WAAOI,EAA8B,EAAIA,IAGpCE,EAAiBC,GAAsBC,EAAAA,SAAyB,KAChEC,EAAcC,GAAmBF,EAAAA,SAAyB,KAC1DG,EAAgBC,GAAqBJ,EAAAA,SAAS,IAAMb,EAAsBlB,KAC1EoC,EAAcC,GAAmBN,EAAAA,SAAS,IAAMb,EAAsB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AejD,KAAKkD,EAAAA,QAAQlG,IACrCD,GAAoBkG,EAAejD,KAAKjD,KAGtCkF,cAAC,MAAA,IAAQ7E,EAAMC,IAAKmC,EAAS3C,UAAW,GAAGqG,UAAc,QAAKrG,GAAa,MACzEL,EAAAyF,cAAC,MAAA,CACCkB,KAAK,UACLZ,UAAU,EACV1F,UAAWoG,EAAeG,KAAK,KAC/BC,UArKiBC,IACrB,MAAMC,EAAoB3D,IAAuBvB,OAC3CmF,EAA2C,CAC/CC,WAAY,IAAMxD,EAAuBlB,EAAc,QACvD2E,UAAW,IAAMzD,EAAuBlB,EAAc,QACtD4E,KAAM,IAdkB/D,IACD,IAAM,EAc7BgE,IAAK,IAXsB,MAC7B,MAAMxD,EAAoBR,IAC1B,OAAOQ,EAAkBA,EAAkB/B,OAAS,IAAM,GAS7CwF,IAOb,GALuBrG,OAAOsG,KAAKN,GAChBnC,SAASiC,EAAEnB,OAASlD,GACrCC,GAA2B,GAGH,IAAtBqE,EACF,OAGF,MAAMQ,EAAiBP,EAAWF,EAAEnB,KACpC,IAAK4B,EACH,OAGFT,EAAEU,iBACF,MAAMC,EAAYF,IAClB/E,EAAgBiF,GACZ9G,GACGoD,EAAe0D,IA4IlBC,OAxIcZ,IACbA,EAAEa,cAAcC,SAASd,EAAEe,gBAC9BC,WAAW,KACTtF,EAAgBH,GAChBK,GAA2B,IAC1B,KAqIAV,EACDhC,EAAAyF,cAAC,MAAA,CACCpF,UAAWqG,EAAAA,QAAmB,UAC9B7F,IAAKqC,EACL,cAAY,OACZ6C,UAAU,EACVgC,MAAO,CACLlF,MAAOF,EAAgBE,MACvBC,KAAMH,EAAgBG,KACtBC,IAAKJ,EAAgBI,QAI3B/C,EAAAyF,cAAC,MAAA,KAAKtD"}
1
+ {"version":3,"file":"Tabs.cjs.js","sources":["../../../src/components/Tabs/Tabs.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, {\n ComponentPropsWithRef,\n createRef,\n ForwardRefRenderFunction,\n ReactElement,\n RefObject,\n useEffect,\n useRef,\n useState\n} from \"react\";\nimport { Props as TabProps } from \"./Tab\";\nimport { TabButton } from \"./TabButton\";\nimport classes from \"./Tabs.module.scss\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n children: ReactElement<TabProps>[];\n selected?: number;\n onTabChange?: (index: number) => void;\n tabChanging?: (newIndex: number, oldIndex: number) => Promise<boolean> | boolean;\n fluid?: boolean;\n align?: \"left\" | \"center\" | \"right\";\n tabListClassName?: string;\n iconsPosition?: \"left\" | \"right\" | \"top\" | \"bottom\";\n activateOnFocus?: boolean;\n}\n\nconst TabsComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n {\n children,\n selected = 0,\n onTabChange,\n className,\n fluid,\n tabListClassName,\n align,\n iconsPosition = \"left\",\n tabChanging,\n activateOnFocus = true,\n ...rest\n }: Props,\n ref\n) => {\n const isTabChild = (child: ReactElement) =>\n Object.prototype.hasOwnProperty.call(child.props, \"title\");\n\n const getValidSelectedIndex = (preferredIndex: number): number => {\n const kids = React.Children.toArray(children) as ReactElement[];\n\n const isSelectableTab = (child?: ReactElement) =>\n Boolean(child && isTabChild(child) && !child.props.disabled);\n\n if (\n preferredIndex >= 0 &&\n preferredIndex < kids.length &&\n isSelectableTab(kids[preferredIndex])\n ) {\n return preferredIndex;\n }\n\n const firstSelectableIndex = kids.findIndex(isSelectableTab);\n return firstSelectableIndex === -1 ? 0 : firstSelectableIndex;\n };\n\n const [renderedButtons, setRenderedButtons] = useState<ReactElement[]>([]);\n const [renderedTabs, setRenderedTabs] = useState<ReactElement[]>([]);\n const [activeTabIndex, setActiveTabIndex] = useState(() => getValidSelectedIndex(selected));\n const [focusedIndex, setFocusedIndex] = useState(() => getValidSelectedIndex(selected));\n const [usingKeyboardNavigation, setUsingKeyboardNavigation] = useState(false);\n const [indicatorStyles, setIndicatorStyles] = useState<{\n width: number;\n left: number;\n top: number;\n }>({\n width: 0,\n left: 0,\n top: 0\n });\n const tabsRef = (ref as RefObject<HTMLDivElement>) || createRef<HTMLDivElement>();\n const indicatorRef = useRef<HTMLDivElement>(null);\n\n const getEnabledTabIndexes = (): number[] => {\n const kids = React.Children.toArray(children) as ReactElement[];\n\n return kids.reduce((indexes: number[], child, index) => {\n if (isTabChild(child) && !child.props.disabled) {\n indexes.push(index);\n }\n return indexes;\n }, []);\n };\n\n const getNextEnabledTabIndex = (startIndex: number, direction: \"next\" | \"prev\"): number => {\n const enabledTabIndexes = getEnabledTabIndexes();\n\n if (!enabledTabIndexes.length) {\n return startIndex;\n }\n\n const currentPosition = enabledTabIndexes.indexOf(startIndex);\n\n if (currentPosition === -1) {\n return enabledTabIndexes[0];\n }\n\n const nextPosition =\n direction === \"next\"\n ? (currentPosition + 1) % enabledTabIndexes.length\n : (currentPosition - 1 + enabledTabIndexes.length) % enabledTabIndexes.length;\n\n return enabledTabIndexes[nextPosition];\n };\n\n const getFirstEnabledTabIndex = (): number => {\n const enabledTabIndexes = getEnabledTabIndexes();\n return enabledTabIndexes[0] ?? 0;\n };\n\n const getLastEnabledTabIndex = (): number => {\n const enabledTabIndexes = getEnabledTabIndexes();\n return enabledTabIndexes[enabledTabIndexes.length - 1] ?? 0;\n };\n\n const handleKeyDown = (e: React.KeyboardEvent) => {\n const totalAmountOfTabs = getEnabledTabIndexes().length;\n const keyToIndex: Record<string, () => number> = {\n ArrowRight: () => getNextEnabledTabIndex(focusedIndex, \"next\"),\n ArrowLeft: () => getNextEnabledTabIndex(focusedIndex, \"prev\"),\n Home: () => getFirstEnabledTabIndex(),\n End: () => getLastEnabledTabIndex()\n };\n const navigationKeys = Object.keys(keyToIndex);\n if (navigationKeys.includes(e.key) && !usingKeyboardNavigation) {\n setUsingKeyboardNavigation(true);\n }\n\n if (totalAmountOfTabs === 1) {\n return;\n }\n\n const getIndexForKey = keyToIndex[e.key];\n if (!getIndexForKey) {\n return;\n }\n\n e.preventDefault();\n const nextIndex = getIndexForKey();\n setFocusedIndex(nextIndex);\n if (activateOnFocus) {\n void handleTabClick(nextIndex);\n }\n };\n\n const handleBlur = (e: React.FocusEvent) => {\n if (!e.currentTarget.contains(e.relatedTarget)) {\n setTimeout(() => {\n setFocusedIndex(activeTabIndex);\n setUsingKeyboardNavigation(false);\n }, 0);\n }\n };\n\n const calculateIndicatorPosition = () => {\n if (!tabsRef.current || !indicatorRef.current) {\n return;\n }\n\n const selectedButton = tabsRef.current.querySelector(\n 'button[role=\"tab\"][aria-selected=\"true\"]'\n ) as HTMLElement | null;\n\n if (!selectedButton) {\n return;\n }\n\n setIndicatorStyles({\n left: selectedButton.offsetLeft,\n top:\n selectedButton.offsetTop +\n selectedButton.offsetHeight -\n indicatorRef.current.offsetHeight -\n Number.parseInt(getComputedStyle(selectedButton).borderBottomWidth),\n width: selectedButton.offsetWidth\n });\n };\n\n const handleTabClick = async (newIndex: number) => {\n try {\n const allowed =\n typeof tabChanging === \"function\"\n ? await Promise.resolve(tabChanging(newIndex, activeTabIndex))\n : true;\n\n if (!allowed) {\n setFocusedIndex(activeTabIndex);\n const buttons = tabsRef.current?.querySelectorAll<HTMLButtonElement>('button[role=\"tab\"]');\n buttons?.[activeTabIndex]?.focus();\n return;\n }\n\n setActiveTabIndex(newIndex);\n onTabChange?.(newIndex);\n } catch (error) {\n console.error(\"handleTabClick failed: \", error);\n }\n };\n\n useEffect(() => {\n setFocusedIndex(activeTabIndex);\n }, [activeTabIndex]);\n\n useEffect(() => {\n const validSelectedIndex = getValidSelectedIndex(activeTabIndex);\n\n if (validSelectedIndex !== activeTabIndex) {\n setActiveTabIndex(validSelectedIndex);\n return;\n }\n\n const enabledTabIndexes = getEnabledTabIndexes();\n if (!enabledTabIndexes.includes(focusedIndex)) {\n setFocusedIndex(validSelectedIndex);\n }\n }, [children, activeTabIndex, focusedIndex]);\n\n useEffect(() => {\n if (tabsRef.current && renderedButtons.length) {\n calculateIndicatorPosition();\n }\n }, [tabsRef.current, activeTabIndex, renderedButtons]);\n\n useEffect(() => {\n const buttons = React.Children.map(children, (child, index) => {\n if (isTabChild(child)) {\n return React.createElement(\n TabButton,\n {\n key: `${child.props.title.toLowerCase().replace(/\\s/, \"_\")}_button`,\n tabIndex: focusedIndex === index ? 0 : -1,\n \"aria-selected\": activeTabIndex === index,\n focused: usingKeyboardNavigation && focusedIndex === index,\n tabActive: activeTabIndex === index,\n \"aria-controls\": `tab_${index}`,\n onClick: () => {\n void handleTabClick(index);\n },\n onFocus: () => {\n setFocusedIndex(index);\n },\n disabled: child.props.disabled,\n fluid: fluid,\n iconPosition: iconsPosition,\n icon: child.props.icon\n },\n child.props.title\n );\n }\n return null;\n });\n\n const tabs = React.Children.map(children, (child, index) => {\n if (isTabChild(child)) {\n return React.cloneElement(child, {\n key: `${child.props.title.toLowerCase().replace(/\\s/, \"_\")}_tab`,\n tabIndex: activeTabIndex === index ? 0 : -1,\n tabActive: activeTabIndex === index,\n id: `tab_${index}`,\n children: child.props.children\n });\n }\n\n return null;\n });\n\n setRenderedTabs(tabs);\n setRenderedButtons(buttons);\n }, [children, activeTabIndex, focusedIndex, fluid, align, iconsPosition]);\n\n const tabListClasses = [classes[\"tablist\"]];\n align && tabListClasses.push(classes[align]);\n tabListClassName && tabListClasses.push(tabListClassName);\n\n return (\n <div {...rest} ref={tabsRef} className={`${classes[\"tabs\"]} ${className ?? \"\"}`}>\n <div\n role=\"tablist\"\n tabIndex={-1}\n className={tabListClasses.join(\" \")}\n onKeyDown={handleKeyDown}\n onBlur={handleBlur}\n >\n {renderedButtons}\n <div\n className={classes[\"indicator\"]}\n ref={indicatorRef}\n aria-hidden=\"true\"\n tabIndex={-1}\n style={{\n width: indicatorStyles.width,\n left: indicatorStyles.left,\n top: indicatorStyles.top\n }}\n />\n </div>\n <div>{renderedTabs}</div>\n </div>\n );\n};\n\nexport const Tabs = React.forwardRef(TabsComponent);\n"],"names":["Tabs","React","forwardRef","children","selected","onTabChange","className","fluid","tabListClassName","align","iconsPosition","tabChanging","activateOnFocus","rest","ref","isTabChild","child","Object","prototype","hasOwnProperty","call","props","getValidSelectedIndex","preferredIndex","kids","Children","toArray","isSelectableTab","Boolean","disabled","length","firstSelectableIndex","findIndex","renderedButtons","setRenderedButtons","useState","renderedTabs","setRenderedTabs","activeTabIndex","setActiveTabIndex","focusedIndex","setFocusedIndex","usingKeyboardNavigation","setUsingKeyboardNavigation","indicatorStyles","setIndicatorStyles","width","left","top","tabsRef","createRef","indicatorRef","useRef","getEnabledTabIndexes","reduce","indexes","index","push","getNextEnabledTabIndex","startIndex","direction","enabledTabIndexes","currentPosition","indexOf","handleTabClick","async","newIndex","Promise","resolve","buttons","_a","current","querySelectorAll","_b","focus","error","useEffect","validSelectedIndex","includes","selectedButton","querySelector","offsetLeft","offsetTop","offsetHeight","Number","parseInt","getComputedStyle","borderBottomWidth","offsetWidth","calculateIndicatorPosition","map","createElement","TabButton","key","title","toLowerCase","replace","tabIndex","focused","tabActive","onClick","onFocus","iconPosition","icon","tabs","cloneElement","id","tabListClasses","classes","role","join","onKeyDown","e","totalAmountOfTabs","keyToIndex","ArrowRight","ArrowLeft","Home","End","getLastEnabledTabIndex","keys","getIndexForKey","preventDefault","nextIndex","onBlur","currentTarget","contains","relatedTarget","setTimeout","style"],"mappings":"gLAoUaA,EAAOC,EAAMC,WA1R6C,EAEnEC,WACAC,WAAW,EACXC,cACAC,YACAC,QACAC,mBACAC,QACAC,gBAAgB,OAChBC,cACAC,mBAAkB,KACfC,GAELC,KAEA,MAAMC,EAAcC,GAClBC,OAAOC,UAAUC,eAAeC,KAAKJ,EAAMK,MAAO,SAE9CC,EAAyBC,IAC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cC,SAASd,EAAEe,gBAC9BC,WAAW,KACTvF,EAAgBH,GAChBK,GAA2B,IAC1B,KAqIAV,EACDhC,EAAA0F,cAAC,MAAA,CACCrF,UAAWsG,EAAAA,QAAmB,UAC9B9F,IAAKqC,EACL,cAAY,OACZ8C,UAAU,EACVgC,MAAO,CACLnF,MAAOF,EAAgBE,MACvBC,KAAMH,EAAgBG,KACtBC,IAAKJ,EAAgBI,QAI3B/C,EAAA0F,cAAC,MAAA,KAAKvD"}
@@ -111,7 +111,7 @@ const TabsComponent = ({
111
111
  }
112
112
  setIndicatorStyles({
113
113
  left: selectedButton.offsetLeft,
114
- top: selectedButton.offsetTop + selectedButton.offsetHeight - indicatorRef.current.offsetHeight - parseInt(getComputedStyle(selectedButton).borderBottomWidth),
114
+ top: selectedButton.offsetTop + selectedButton.offsetHeight - indicatorRef.current.offsetHeight - Number.parseInt(getComputedStyle(selectedButton).borderBottomWidth),
115
115
  width: selectedButton.offsetWidth
116
116
  });
117
117
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.es.js","sources":["../../../src/components/Tabs/Tabs.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, {\n ComponentPropsWithRef,\n createRef,\n ForwardRefRenderFunction,\n ReactElement,\n RefObject,\n useEffect,\n useRef,\n useState\n} from \"react\";\nimport { Props as TabProps } from \"./Tab\";\nimport { TabButton } from \"./TabButton\";\nimport classes from \"./Tabs.module.scss\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n children: ReactElement<TabProps>[];\n selected?: number;\n onTabChange?: (index: number) => void;\n tabChanging?: (newIndex: number, oldIndex: number) => Promise<boolean> | boolean;\n fluid?: boolean;\n align?: \"left\" | \"center\" | \"right\";\n tabListClassName?: string;\n iconsPosition?: \"left\" | \"right\" | \"top\" | \"bottom\";\n activateOnFocus?: boolean;\n}\n\nconst TabsComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n {\n children,\n selected = 0,\n onTabChange,\n className,\n fluid,\n tabListClassName,\n align,\n iconsPosition = \"left\",\n tabChanging,\n activateOnFocus = true,\n ...rest\n }: Props,\n ref\n) => {\n const isTabChild = (child: ReactElement) =>\n Object.prototype.hasOwnProperty.call(child.props, \"title\");\n\n const getValidSelectedIndex = (preferredIndex: number): number => {\n const kids = React.Children.toArray(children) as ReactElement[];\n\n const isSelectableTab = (child?: ReactElement) =>\n Boolean(child && isTabChild(child) && !child.props.disabled);\n\n if (\n preferredIndex >= 0 &&\n preferredIndex < kids.length &&\n isSelectableTab(kids[preferredIndex])\n ) {\n return preferredIndex;\n }\n\n const firstSelectableIndex = kids.findIndex(isSelectableTab);\n return firstSelectableIndex === -1 ? 0 : firstSelectableIndex;\n };\n\n const [renderedButtons, setRenderedButtons] = useState<ReactElement[]>([]);\n const [renderedTabs, setRenderedTabs] = useState<ReactElement[]>([]);\n const [activeTabIndex, setActiveTabIndex] = useState(() => getValidSelectedIndex(selected));\n const [focusedIndex, setFocusedIndex] = useState(() => getValidSelectedIndex(selected));\n const [usingKeyboardNavigation, setUsingKeyboardNavigation] = useState(false);\n const [indicatorStyles, setIndicatorStyles] = useState<{\n width: number;\n left: number;\n top: number;\n }>({\n width: 0,\n left: 0,\n top: 0\n });\n const tabsRef = (ref as RefObject<HTMLDivElement>) || createRef<HTMLDivElement>();\n const indicatorRef = useRef<HTMLDivElement>(null);\n\n const getEnabledTabIndexes = (): number[] => {\n const kids = React.Children.toArray(children) as ReactElement[];\n\n return kids.reduce((indexes: number[], child, index) => {\n if (isTabChild(child) && !child.props.disabled) {\n indexes.push(index);\n }\n return indexes;\n }, []);\n };\n\n const getNextEnabledTabIndex = (startIndex: number, direction: \"next\" | \"prev\"): number => {\n const enabledTabIndexes = getEnabledTabIndexes();\n\n if (!enabledTabIndexes.length) {\n return startIndex;\n }\n\n const currentPosition = enabledTabIndexes.indexOf(startIndex);\n\n if (currentPosition === -1) {\n return enabledTabIndexes[0];\n }\n\n const nextPosition =\n direction === \"next\"\n ? (currentPosition + 1) % enabledTabIndexes.length\n : (currentPosition - 1 + enabledTabIndexes.length) % enabledTabIndexes.length;\n\n return enabledTabIndexes[nextPosition];\n };\n\n const getFirstEnabledTabIndex = (): number => {\n const enabledTabIndexes = getEnabledTabIndexes();\n return enabledTabIndexes[0] ?? 0;\n };\n\n const getLastEnabledTabIndex = (): number => {\n const enabledTabIndexes = getEnabledTabIndexes();\n return enabledTabIndexes[enabledTabIndexes.length - 1] ?? 0;\n };\n\n const handleKeyDown = (e: React.KeyboardEvent) => {\n const totalAmountOfTabs = getEnabledTabIndexes().length;\n const keyToIndex: Record<string, () => number> = {\n ArrowRight: () => getNextEnabledTabIndex(focusedIndex, \"next\"),\n ArrowLeft: () => getNextEnabledTabIndex(focusedIndex, \"prev\"),\n Home: () => getFirstEnabledTabIndex(),\n End: () => getLastEnabledTabIndex()\n };\n const navigationKeys = Object.keys(keyToIndex);\n if (navigationKeys.includes(e.key) && !usingKeyboardNavigation) {\n setUsingKeyboardNavigation(true);\n }\n\n if (totalAmountOfTabs === 1) {\n return;\n }\n\n const getIndexForKey = keyToIndex[e.key];\n if (!getIndexForKey) {\n return;\n }\n\n e.preventDefault();\n const nextIndex = getIndexForKey();\n setFocusedIndex(nextIndex);\n if (activateOnFocus) {\n void handleTabClick(nextIndex);\n }\n };\n\n const handleBlur = (e: React.FocusEvent) => {\n if (!e.currentTarget.contains(e.relatedTarget)) {\n setTimeout(() => {\n setFocusedIndex(activeTabIndex);\n setUsingKeyboardNavigation(false);\n }, 0);\n }\n };\n\n const calculateIndicatorPosition = () => {\n if (!tabsRef.current || !indicatorRef.current) {\n return;\n }\n\n const selectedButton = tabsRef.current.querySelector(\n 'button[role=\"tab\"][aria-selected=\"true\"]'\n ) as HTMLElement | null;\n\n if (!selectedButton) {\n return;\n }\n\n setIndicatorStyles({\n left: selectedButton.offsetLeft,\n top:\n selectedButton.offsetTop +\n selectedButton.offsetHeight -\n indicatorRef.current.offsetHeight -\n parseInt(getComputedStyle(selectedButton).borderBottomWidth),\n width: selectedButton.offsetWidth\n });\n };\n\n const handleTabClick = async (newIndex: number) => {\n try {\n const allowed =\n typeof tabChanging === \"function\"\n ? await Promise.resolve(tabChanging(newIndex, activeTabIndex))\n : true;\n\n if (!allowed) {\n setFocusedIndex(activeTabIndex);\n const buttons = tabsRef.current?.querySelectorAll<HTMLButtonElement>('button[role=\"tab\"]');\n buttons?.[activeTabIndex]?.focus();\n return;\n }\n\n setActiveTabIndex(newIndex);\n onTabChange?.(newIndex);\n } catch (error) {\n console.error(\"handleTabClick failed: \", error);\n }\n };\n\n useEffect(() => {\n setFocusedIndex(activeTabIndex);\n }, [activeTabIndex]);\n\n useEffect(() => {\n const validSelectedIndex = getValidSelectedIndex(activeTabIndex);\n\n if (validSelectedIndex !== activeTabIndex) {\n setActiveTabIndex(validSelectedIndex);\n return;\n }\n\n const enabledTabIndexes = getEnabledTabIndexes();\n if (!enabledTabIndexes.includes(focusedIndex)) {\n setFocusedIndex(validSelectedIndex);\n }\n }, [children, activeTabIndex, focusedIndex]);\n\n useEffect(() => {\n if (tabsRef.current && renderedButtons.length) {\n calculateIndicatorPosition();\n }\n }, [tabsRef.current, activeTabIndex, renderedButtons]);\n\n useEffect(() => {\n const buttons = React.Children.map(children, (child, index) => {\n if (isTabChild(child)) {\n return React.createElement(\n TabButton,\n {\n key: `${child.props.title.toLowerCase().replace(/\\s/, \"_\")}_button`,\n tabIndex: focusedIndex === index ? 0 : -1,\n \"aria-selected\": activeTabIndex === index,\n focused: usingKeyboardNavigation && focusedIndex === index,\n tabActive: activeTabIndex === index,\n \"aria-controls\": `tab_${index}`,\n onClick: () => {\n void handleTabClick(index);\n },\n onFocus: () => {\n setFocusedIndex(index);\n },\n disabled: child.props.disabled,\n fluid: fluid,\n iconPosition: iconsPosition,\n icon: child.props.icon\n },\n child.props.title\n );\n }\n return null;\n });\n\n const tabs = React.Children.map(children, (child, index) => {\n if (isTabChild(child)) {\n return React.cloneElement(child, {\n key: `${child.props.title.toLowerCase().replace(/\\s/, \"_\")}_tab`,\n tabIndex: activeTabIndex === index ? 0 : -1,\n tabActive: activeTabIndex === index,\n id: `tab_${index}`,\n children: child.props.children\n });\n }\n\n return null;\n });\n\n setRenderedTabs(tabs);\n setRenderedButtons(buttons);\n }, [children, activeTabIndex, focusedIndex, fluid, align, iconsPosition]);\n\n const tabListClasses = [classes[\"tablist\"]];\n align && tabListClasses.push(classes[align]);\n tabListClassName && tabListClasses.push(tabListClassName);\n\n return (\n <div {...rest} ref={tabsRef} className={`${classes[\"tabs\"]} ${className ?? \"\"}`}>\n <div\n role=\"tablist\"\n tabIndex={-1}\n className={tabListClasses.join(\" \")}\n onKeyDown={handleKeyDown}\n onBlur={handleBlur}\n >\n {renderedButtons}\n <div\n className={classes[\"indicator\"]}\n ref={indicatorRef}\n aria-hidden=\"true\"\n tabIndex={-1}\n style={{\n width: indicatorStyles.width,\n left: indicatorStyles.left,\n top: indicatorStyles.top\n }}\n />\n </div>\n <div>{renderedTabs}</div>\n </div>\n );\n};\n\nexport const Tabs = React.forwardRef(TabsComponent);\n"],"names":[],"mappings":";;;AA0CA,MAAM,gBAAiE,CACrE;AAAA,EACE;AAAA,EACA,WAAW;AAAA,EACX;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,gBAAgB;AAAA,EAChB;AAAA,EACA,kBAAkB;AAAA,EAClB,GAAG;AACL,GACA,QACG;AACH,QAAM,aAAa,CAAC,UAClB,OAAO,UAAU,eAAe,KAAK,MAAM,OAAO,OAAO;AAE3D,QAAM,wBAAwB,CAAC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,OAAO,OAAO,aAAa,CAAC;AAExE,QAAM,iBAAiB,CAAC,QAAQ,SAAS,CAAC;AAC1C,WAAS,eAAe,KAAK,QAAQ,KAAK,CAAC;AAC3C,sBAAoB,eAAe,KAAK,gBAAgB;AAExD,SACE,sBAAA,cAAC,OAAA,EAAK,GAAG,MAAM,KAAK,SAAS,WAAW,GAAG,QAAQ,MAAM,CAAC,IAAI,aAAa,EAAE,GAAA,GAC3E,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,UAAU;AAAA,MACV,WAAW,eAAe,KAAK,GAAG;AAAA,MAClC,WAAW;AAAA,MACX,QAAQ;AAAA,IAAA;AAAA,IAEP;AAAA,IACD,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAW,QAAQ,WAAW;AAAA,QAC9B,KAAK;AAAA,QACL,eAAY;AAAA,QACZ,UAAU;AAAA,QACV,OAAO;AAAA,UACL,OAAO,gBAAgB;AAAA,UACvB,MAAM,gBAAgB;AAAA,UACtB,KAAK,gBAAgB;AAAA,QAAA;AAAA,MACvB;AAAA,IAAA;AAAA,EACF,GAEF,sBAAA,cAAC,OAAA,MAAK,YAAa,CACrB;AAEJ;AAEO,MAAM,OAAO,MAAM,WAAW,aAAa;"}
1
+ {"version":3,"file":"Tabs.es.js","sources":["../../../src/components/Tabs/Tabs.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, {\n ComponentPropsWithRef,\n createRef,\n ForwardRefRenderFunction,\n ReactElement,\n RefObject,\n useEffect,\n useRef,\n useState\n} from \"react\";\nimport { Props as TabProps } from \"./Tab\";\nimport { TabButton } from \"./TabButton\";\nimport classes from \"./Tabs.module.scss\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n children: ReactElement<TabProps>[];\n selected?: number;\n onTabChange?: (index: number) => void;\n tabChanging?: (newIndex: number, oldIndex: number) => Promise<boolean> | boolean;\n fluid?: boolean;\n align?: \"left\" | \"center\" | \"right\";\n tabListClassName?: string;\n iconsPosition?: \"left\" | \"right\" | \"top\" | \"bottom\";\n activateOnFocus?: boolean;\n}\n\nconst TabsComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n {\n children,\n selected = 0,\n onTabChange,\n className,\n fluid,\n tabListClassName,\n align,\n iconsPosition = \"left\",\n tabChanging,\n activateOnFocus = true,\n ...rest\n }: Props,\n ref\n) => {\n const isTabChild = (child: ReactElement) =>\n Object.prototype.hasOwnProperty.call(child.props, \"title\");\n\n const getValidSelectedIndex = (preferredIndex: number): number => {\n const kids = React.Children.toArray(children) as ReactElement[];\n\n const isSelectableTab = (child?: ReactElement) =>\n Boolean(child && isTabChild(child) && !child.props.disabled);\n\n if (\n preferredIndex >= 0 &&\n preferredIndex < kids.length &&\n isSelectableTab(kids[preferredIndex])\n ) {\n return preferredIndex;\n }\n\n const firstSelectableIndex = kids.findIndex(isSelectableTab);\n return firstSelectableIndex === -1 ? 0 : firstSelectableIndex;\n };\n\n const [renderedButtons, setRenderedButtons] = useState<ReactElement[]>([]);\n const [renderedTabs, setRenderedTabs] = useState<ReactElement[]>([]);\n const [activeTabIndex, setActiveTabIndex] = useState(() => getValidSelectedIndex(selected));\n const [focusedIndex, setFocusedIndex] = useState(() => getValidSelectedIndex(selected));\n const [usingKeyboardNavigation, setUsingKeyboardNavigation] = useState(false);\n const [indicatorStyles, setIndicatorStyles] = useState<{\n width: number;\n left: number;\n top: number;\n }>({\n width: 0,\n left: 0,\n top: 0\n });\n const tabsRef = (ref as RefObject<HTMLDivElement>) || createRef<HTMLDivElement>();\n const indicatorRef = useRef<HTMLDivElement>(null);\n\n const getEnabledTabIndexes = (): number[] => {\n const kids = React.Children.toArray(children) as ReactElement[];\n\n return kids.reduce((indexes: number[], child, index) => {\n if (isTabChild(child) && !child.props.disabled) {\n indexes.push(index);\n }\n return indexes;\n }, []);\n };\n\n const getNextEnabledTabIndex = (startIndex: number, direction: \"next\" | \"prev\"): number => {\n const enabledTabIndexes = getEnabledTabIndexes();\n\n if (!enabledTabIndexes.length) {\n return startIndex;\n }\n\n const currentPosition = enabledTabIndexes.indexOf(startIndex);\n\n if (currentPosition === -1) {\n return enabledTabIndexes[0];\n }\n\n const nextPosition =\n direction === \"next\"\n ? (currentPosition + 1) % enabledTabIndexes.length\n : (currentPosition - 1 + enabledTabIndexes.length) % enabledTabIndexes.length;\n\n return enabledTabIndexes[nextPosition];\n };\n\n const getFirstEnabledTabIndex = (): number => {\n const enabledTabIndexes = getEnabledTabIndexes();\n return enabledTabIndexes[0] ?? 0;\n };\n\n const getLastEnabledTabIndex = (): number => {\n const enabledTabIndexes = getEnabledTabIndexes();\n return enabledTabIndexes[enabledTabIndexes.length - 1] ?? 0;\n };\n\n const handleKeyDown = (e: React.KeyboardEvent) => {\n const totalAmountOfTabs = getEnabledTabIndexes().length;\n const keyToIndex: Record<string, () => number> = {\n ArrowRight: () => getNextEnabledTabIndex(focusedIndex, \"next\"),\n ArrowLeft: () => getNextEnabledTabIndex(focusedIndex, \"prev\"),\n Home: () => getFirstEnabledTabIndex(),\n End: () => getLastEnabledTabIndex()\n };\n const navigationKeys = Object.keys(keyToIndex);\n if (navigationKeys.includes(e.key) && !usingKeyboardNavigation) {\n setUsingKeyboardNavigation(true);\n }\n\n if (totalAmountOfTabs === 1) {\n return;\n }\n\n const getIndexForKey = keyToIndex[e.key];\n if (!getIndexForKey) {\n return;\n }\n\n e.preventDefault();\n const nextIndex = getIndexForKey();\n setFocusedIndex(nextIndex);\n if (activateOnFocus) {\n void handleTabClick(nextIndex);\n }\n };\n\n const handleBlur = (e: React.FocusEvent) => {\n if (!e.currentTarget.contains(e.relatedTarget)) {\n setTimeout(() => {\n setFocusedIndex(activeTabIndex);\n setUsingKeyboardNavigation(false);\n }, 0);\n }\n };\n\n const calculateIndicatorPosition = () => {\n if (!tabsRef.current || !indicatorRef.current) {\n return;\n }\n\n const selectedButton = tabsRef.current.querySelector(\n 'button[role=\"tab\"][aria-selected=\"true\"]'\n ) as HTMLElement | null;\n\n if (!selectedButton) {\n return;\n }\n\n setIndicatorStyles({\n left: selectedButton.offsetLeft,\n top:\n selectedButton.offsetTop +\n selectedButton.offsetHeight -\n indicatorRef.current.offsetHeight -\n Number.parseInt(getComputedStyle(selectedButton).borderBottomWidth),\n width: selectedButton.offsetWidth\n });\n };\n\n const handleTabClick = async (newIndex: number) => {\n try {\n const allowed =\n typeof tabChanging === \"function\"\n ? await Promise.resolve(tabChanging(newIndex, activeTabIndex))\n : true;\n\n if (!allowed) {\n setFocusedIndex(activeTabIndex);\n const buttons = tabsRef.current?.querySelectorAll<HTMLButtonElement>('button[role=\"tab\"]');\n buttons?.[activeTabIndex]?.focus();\n return;\n }\n\n setActiveTabIndex(newIndex);\n onTabChange?.(newIndex);\n } catch (error) {\n console.error(\"handleTabClick failed: \", error);\n }\n };\n\n useEffect(() => {\n setFocusedIndex(activeTabIndex);\n }, [activeTabIndex]);\n\n useEffect(() => {\n const validSelectedIndex = getValidSelectedIndex(activeTabIndex);\n\n if (validSelectedIndex !== activeTabIndex) {\n setActiveTabIndex(validSelectedIndex);\n return;\n }\n\n const enabledTabIndexes = getEnabledTabIndexes();\n if (!enabledTabIndexes.includes(focusedIndex)) {\n setFocusedIndex(validSelectedIndex);\n }\n }, [children, activeTabIndex, focusedIndex]);\n\n useEffect(() => {\n if (tabsRef.current && renderedButtons.length) {\n calculateIndicatorPosition();\n }\n }, [tabsRef.current, activeTabIndex, renderedButtons]);\n\n useEffect(() => {\n const buttons = React.Children.map(children, (child, index) => {\n if (isTabChild(child)) {\n return React.createElement(\n TabButton,\n {\n key: `${child.props.title.toLowerCase().replace(/\\s/, \"_\")}_button`,\n tabIndex: focusedIndex === index ? 0 : -1,\n \"aria-selected\": activeTabIndex === index,\n focused: usingKeyboardNavigation && focusedIndex === index,\n tabActive: activeTabIndex === index,\n \"aria-controls\": `tab_${index}`,\n onClick: () => {\n void handleTabClick(index);\n },\n onFocus: () => {\n setFocusedIndex(index);\n },\n disabled: child.props.disabled,\n fluid: fluid,\n iconPosition: iconsPosition,\n icon: child.props.icon\n },\n child.props.title\n );\n }\n return null;\n });\n\n const tabs = React.Children.map(children, (child, index) => {\n if (isTabChild(child)) {\n return React.cloneElement(child, {\n key: `${child.props.title.toLowerCase().replace(/\\s/, \"_\")}_tab`,\n tabIndex: activeTabIndex === index ? 0 : -1,\n tabActive: activeTabIndex === index,\n id: `tab_${index}`,\n children: child.props.children\n });\n }\n\n return null;\n });\n\n setRenderedTabs(tabs);\n setRenderedButtons(buttons);\n }, [children, activeTabIndex, focusedIndex, fluid, align, iconsPosition]);\n\n const tabListClasses = [classes[\"tablist\"]];\n align && tabListClasses.push(classes[align]);\n tabListClassName && tabListClasses.push(tabListClassName);\n\n return (\n <div {...rest} ref={tabsRef} className={`${classes[\"tabs\"]} ${className ?? \"\"}`}>\n <div\n role=\"tablist\"\n tabIndex={-1}\n className={tabListClasses.join(\" \")}\n onKeyDown={handleKeyDown}\n onBlur={handleBlur}\n >\n {renderedButtons}\n <div\n className={classes[\"indicator\"]}\n ref={indicatorRef}\n aria-hidden=\"true\"\n tabIndex={-1}\n style={{\n width: indicatorStyles.width,\n left: indicatorStyles.left,\n top: indicatorStyles.top\n }}\n />\n </div>\n <div>{renderedTabs}</div>\n </div>\n );\n};\n\nexport const Tabs = React.forwardRef(TabsComponent);\n"],"names":[],"mappings":";;;AA0CA,MAAM,gBAAiE,CACrE;AAAA,EACE;AAAA,EACA,WAAW;AAAA,EACX;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,g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;AAAA,UAChB,UAAU,MAAM,MAAM;AAAA,QAAA,CACvB;AAAA,MACH;AAEA,aAAO;AAAA,IACT,CAAC;AAED,oBAAgB,IAAI;AACpB,uBAAmB,OAAO;AAAA,EAC5B,GAAG,CAAC,UAAU,gBAAgB,cAAc,OAAO,OAAO,aAAa,CAAC;AAExE,QAAM,iBAAiB,CAAC,QAAQ,SAAS,CAAC;AAC1C,WAAS,eAAe,KAAK,QAAQ,KAAK,CAAC;AAC3C,sBAAoB,eAAe,KAAK,gBAAgB;AAExD,SACE,sBAAA,cAAC,OAAA,EAAK,GAAG,MAAM,KAAK,SAAS,WAAW,GAAG,QAAQ,MAAM,CAAC,IAAI,aAAa,EAAE,GAAA,GAC3E,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,UAAU;AAAA,MACV,WAAW,eAAe,KAAK,GAAG;AAAA,MAClC,WAAW;AAAA,MACX,QAAQ;AAAA,IAAA;AAAA,IAEP;AAAA,IACD,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAW,QAAQ,WAAW;AAAA,QAC9B,KAAK;AAAA,QACL,eAAY;AAAA,QACZ,UAAU;AAAA,QACV,OAAO;AAAA,UACL,OAAO,gBAAgB;AAAA,UACvB,MAAM,gBAAgB;AAAA,UACtB,KAAK,gBAAgB;AAAA,QAAA;AAAA,MACvB;AAAA,IAAA;AAAA,EACF,GAEF,sBAAA,cAAC,OAAA,MAAK,YAAa,CACrB;AAEJ;AAEO,MAAM,OAAO,MAAM,WAAW,aAAa;"}
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.Tabs_sr-only_WVpkD{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.Tabs_hidden_WVpkD{display:none}.Tabs_slide-in_WVpkD{animation:Tabs_slide-in_WVpkD .5s forwards}@media(prefers-reduced-motion:reduce){.Tabs_slide-in_WVpkD{animation-duration:.1ms}}.Tabs_slide-out_WVpkD{animation:Tabs_slide-out_WVpkD .5s forwards}@media(prefers-reduced-motion:reduce){.Tabs_slide-out_WVpkD{animation-duration:.1ms}}@keyframes Tabs_slide-in_WVpkD{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes Tabs_slide-out_WVpkD{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Tabs_tabs_WVpkD{background-color:var(--tabs-background-color);padding:1rem 1.25rem;border-radius:.5rem;display:flex;flex-direction:column;gap:1rem}.Tabs_tablist_WVpkD{display:flex;flex-wrap:nowrap;overflow-x:auto;position:relative;margin:-5px;padding:5px;z-index:0}.Tabs_tablist_WVpkD.Tabs_center_WVpkD{justify-content:center}.Tabs_tablist_WVpkD.Tabs_right_WVpkD{justify-content:flex-end}.Tabs_indicator_WVpkD{position:absolute;height:calc(var(--tab-active-border-height) - var(--tablist-border-width));border-radius:.125rem .125rem 0 0;background-color:var(--tab-active-border-color);z-index:2;transition-property:left,width;transition-duration:.2s;transition-timing-function:ease-in-out}@media(prefers-reduced-motion:reduce){.Tabs_indicator_WVpkD{transition-duration:.1ms}}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="Tabs_hidden_WVpkD",s="Tabs_tabs_WVpkD",e="Tabs_tablist_WVpkD",i="Tabs_center_WVpkD",r="Tabs_right_WVpkD",a="Tabs_indicator_WVpkD",o={"sr-only":"Tabs_sr-only_WVpkD",hidden:t,"slide-in":"Tabs_slide-in_WVpkD","slide-out":"Tabs_slide-out_WVpkD",tabs:s,tablist:e,center:i,right:r,indicator:a};exports.center=i,exports.default=o,exports.hidden=t,exports.indicator=a,exports.right=r,exports.tablist=e,exports.tabs=s;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.Tabs_sr-only_EVNeA{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.Tabs_hidden_EVNeA{display:none}.Tabs_slide-in_EVNeA{animation:Tabs_slide-in_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.Tabs_slide-in_EVNeA{animation-duration:.1ms}}.Tabs_slide-out_EVNeA{animation:Tabs_slide-out_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.Tabs_slide-out_EVNeA{animation-duration:.1ms}}@keyframes Tabs_slide-in_EVNeA{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes Tabs_slide-out_EVNeA{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Tabs_tabs_EVNeA{background-color:var(--tabs-background-color);padding:1rem 1.25rem;border-radius:.5rem;display:flex;flex-direction:column;gap:1rem}.Tabs_tablist_EVNeA{display:flex;flex-wrap:nowrap;overflow-x:auto;position:relative;margin:-5px;padding:5px;z-index:0}.Tabs_tablist_EVNeA.Tabs_center_EVNeA{justify-content:center}.Tabs_tablist_EVNeA.Tabs_right_EVNeA{justify-content:flex-end}.Tabs_indicator_EVNeA{position:absolute;height:calc(var(--tab-active-border-height) - var(--tablist-border-width));border-radius:.125rem .125rem 0 0;background-color:var(--tab-active-border-color);z-index:2;transition-property:left,width;transition-duration:.2s;transition-timing-function:ease-in-out}@media(prefers-reduced-motion:reduce){.Tabs_indicator_EVNeA{transition-duration:.1ms}}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="Tabs_hidden_EVNeA",t="Tabs_tabs_EVNeA",s="Tabs_tablist_EVNeA",i="Tabs_center_EVNeA",r="Tabs_right_EVNeA",a="Tabs_indicator_EVNeA",o={"sr-only":"Tabs_sr-only_EVNeA",hidden:e,"slide-in":"Tabs_slide-in_EVNeA","slide-out":"Tabs_slide-out_EVNeA",tabs:t,tablist:s,center:i,right:r,indicator:a};exports.center=i,exports.default=o,exports.hidden=e,exports.indicator=a,exports.right=r,exports.tablist=s,exports.tabs=t;
3
3
  //# sourceMappingURL=Tabs.module.scss.cjs.js.map
@@ -1,15 +1,15 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.Tabs_sr-only_WVpkD{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.Tabs_hidden_WVpkD{display:none}.Tabs_slide-in_WVpkD{animation:Tabs_slide-in_WVpkD .5s forwards}@media(prefers-reduced-motion:reduce){.Tabs_slide-in_WVpkD{animation-duration:.1ms}}.Tabs_slide-out_WVpkD{animation:Tabs_slide-out_WVpkD .5s forwards}@media(prefers-reduced-motion:reduce){.Tabs_slide-out_WVpkD{animation-duration:.1ms}}@keyframes Tabs_slide-in_WVpkD{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes Tabs_slide-out_WVpkD{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Tabs_tabs_WVpkD{background-color:var(--tabs-background-color);padding:1rem 1.25rem;border-radius:.5rem;display:flex;flex-direction:column;gap:1rem}.Tabs_tablist_WVpkD{display:flex;flex-wrap:nowrap;overflow-x:auto;position:relative;margin:-5px;padding:5px;z-index:0}.Tabs_tablist_WVpkD.Tabs_center_WVpkD{justify-content:center}.Tabs_tablist_WVpkD.Tabs_right_WVpkD{justify-content:flex-end}.Tabs_indicator_WVpkD{position:absolute;height:calc(var(--tab-active-border-height) - var(--tablist-border-width));border-radius:.125rem .125rem 0 0;background-color:var(--tab-active-border-color);z-index:2;transition-property:left,width;transition-duration:.2s;transition-timing-function:ease-in-out}@media(prefers-reduced-motion:reduce){.Tabs_indicator_WVpkD{transition-duration:.1ms}}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
- const hidden = "Tabs_hidden_WVpkD";
3
- const tabs = "Tabs_tabs_WVpkD";
4
- const tablist = "Tabs_tablist_WVpkD";
5
- const center = "Tabs_center_WVpkD";
6
- const right = "Tabs_right_WVpkD";
7
- const indicator = "Tabs_indicator_WVpkD";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.Tabs_sr-only_EVNeA{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.Tabs_hidden_EVNeA{display:none}.Tabs_slide-in_EVNeA{animation:Tabs_slide-in_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.Tabs_slide-in_EVNeA{animation-duration:.1ms}}.Tabs_slide-out_EVNeA{animation:Tabs_slide-out_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.Tabs_slide-out_EVNeA{animation-duration:.1ms}}@keyframes Tabs_slide-in_EVNeA{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes Tabs_slide-out_EVNeA{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Tabs_tabs_EVNeA{background-color:var(--tabs-background-color);padding:1rem 1.25rem;border-radius:.5rem;display:flex;flex-direction:column;gap:1rem}.Tabs_tablist_EVNeA{display:flex;flex-wrap:nowrap;overflow-x:auto;position:relative;margin:-5px;padding:5px;z-index:0}.Tabs_tablist_EVNeA.Tabs_center_EVNeA{justify-content:center}.Tabs_tablist_EVNeA.Tabs_right_EVNeA{justify-content:flex-end}.Tabs_indicator_EVNeA{position:absolute;height:calc(var(--tab-active-border-height) - var(--tablist-border-width));border-radius:.125rem .125rem 0 0;background-color:var(--tab-active-border-color);z-index:2;transition-property:left,width;transition-duration:.2s;transition-timing-function:ease-in-out}@media(prefers-reduced-motion:reduce){.Tabs_indicator_EVNeA{transition-duration:.1ms}}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
+ const hidden = "Tabs_hidden_EVNeA";
3
+ const tabs = "Tabs_tabs_EVNeA";
4
+ const tablist = "Tabs_tablist_EVNeA";
5
+ const center = "Tabs_center_EVNeA";
6
+ const right = "Tabs_right_EVNeA";
7
+ const indicator = "Tabs_indicator_EVNeA";
8
8
  const classes = {
9
- "sr-only": "Tabs_sr-only_WVpkD",
9
+ "sr-only": "Tabs_sr-only_EVNeA",
10
10
  hidden,
11
- "slide-in": "Tabs_slide-in_WVpkD",
12
- "slide-out": "Tabs_slide-out_WVpkD",
11
+ "slide-in": "Tabs_slide-in_EVNeA",
12
+ "slide-out": "Tabs_slide-out_EVNeA",
13
13
  tabs,
14
14
  tablist,
15
15
  center,
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.RemoveButton_sr-only_WVpkD{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.RemoveButton_hidden_WVpkD{display:none}.RemoveButton_slide-in_WVpkD{animation:RemoveButton_slide-in_WVpkD .5s forwards}@media(prefers-reduced-motion:reduce){.RemoveButton_slide-in_WVpkD{animation-duration:.1ms}}.RemoveButton_slide-out_WVpkD{animation:RemoveButton_slide-out_WVpkD .5s forwards}@media(prefers-reduced-motion:reduce){.RemoveButton_slide-out_WVpkD{animation-duration:.1ms}}@keyframes RemoveButton_slide-in_WVpkD{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes RemoveButton_slide-out_WVpkD{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.RemoveButton_remove_WVpkD{width:1.25rem;height:1.25rem;background:none;border:none;padding:0;margin-right:-.375rem;cursor:pointer}.RemoveButton_remove_WVpkD:hover{border-radius:.125rem;background-color:var(--color-black10)}.RemoveButton_remove_WVpkD:active{background-color:var(--color-blue-grey400)}.RemoveButton_remove_WVpkD:focus-visible{outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:0;border-radius:var(--focus-border-radius)}.RemoveButton_remove_WVpkD .RemoveButton_icon_WVpkD{font-size:var(--font-size-small)}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="RemoveButton_remove_WVpkD",o="RemoveButton_icon_WVpkD",t={remove:e,icon:o};exports.default=t,exports.icon=o,exports.remove=e;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.RemoveButton_sr-only_EVNeA{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.RemoveButton_hidden_EVNeA{display:none}.RemoveButton_slide-in_EVNeA{animation:RemoveButton_slide-in_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.RemoveButton_slide-in_EVNeA{animation-duration:.1ms}}.RemoveButton_slide-out_EVNeA{animation:RemoveButton_slide-out_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.RemoveButton_slide-out_EVNeA{animation-duration:.1ms}}@keyframes RemoveButton_slide-in_EVNeA{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes RemoveButton_slide-out_EVNeA{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.RemoveButton_remove_EVNeA{width:1.25rem;height:1.25rem;background:none;border:none;padding:0;margin-right:-.375rem;cursor:pointer}.RemoveButton_remove_EVNeA:hover{border-radius:.125rem;background-color:var(--color-black10)}.RemoveButton_remove_EVNeA:active{background-color:var(--color-blue-grey400)}.RemoveButton_remove_EVNeA:focus-visible{outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:0;border-radius:var(--focus-border-radius)}.RemoveButton_remove_EVNeA .RemoveButton_icon_EVNeA{font-size:var(--font-size-small)}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="RemoveButton_remove_EVNeA",o="RemoveButton_icon_EVNeA",t={remove:e,icon:o};exports.default=t,exports.icon=o,exports.remove=e;
3
3
  //# sourceMappingURL=RemoveButton.module.scss.cjs.js.map
@@ -1,6 +1,6 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.RemoveButton_sr-only_WVpkD{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.RemoveButton_hidden_WVpkD{display:none}.RemoveButton_slide-in_WVpkD{animation:RemoveButton_slide-in_WVpkD .5s forwards}@media(prefers-reduced-motion:reduce){.RemoveButton_slide-in_WVpkD{animation-duration:.1ms}}.RemoveButton_slide-out_WVpkD{animation:RemoveButton_slide-out_WVpkD .5s forwards}@media(prefers-reduced-motion:reduce){.RemoveButton_slide-out_WVpkD{animation-duration:.1ms}}@keyframes RemoveButton_slide-in_WVpkD{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes RemoveButton_slide-out_WVpkD{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.RemoveButton_remove_WVpkD{width:1.25rem;height:1.25rem;background:none;border:none;padding:0;margin-right:-.375rem;cursor:pointer}.RemoveButton_remove_WVpkD:hover{border-radius:.125rem;background-color:var(--color-black10)}.RemoveButton_remove_WVpkD:active{background-color:var(--color-blue-grey400)}.RemoveButton_remove_WVpkD:focus-visible{outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:0;border-radius:var(--focus-border-radius)}.RemoveButton_remove_WVpkD .RemoveButton_icon_WVpkD{font-size:var(--font-size-small)}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}}();
2
- const remove = "RemoveButton_remove_WVpkD";
3
- const icon = "RemoveButton_icon_WVpkD";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.RemoveButton_sr-only_EVNeA{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.RemoveButton_hidden_EVNeA{display:none}.RemoveButton_slide-in_EVNeA{animation:RemoveButton_slide-in_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.RemoveButton_slide-in_EVNeA{animation-duration:.1ms}}.RemoveButton_slide-out_EVNeA{animation:RemoveButton_slide-out_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.RemoveButton_slide-out_EVNeA{animation-duration:.1ms}}@keyframes RemoveButton_slide-in_EVNeA{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes RemoveButton_slide-out_EVNeA{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.RemoveButton_remove_EVNeA{width:1.25rem;height:1.25rem;background:none;border:none;padding:0;margin-right:-.375rem;cursor:pointer}.RemoveButton_remove_EVNeA:hover{border-radius:.125rem;background-color:var(--color-black10)}.RemoveButton_remove_EVNeA:active{background-color:var(--color-blue-grey400)}.RemoveButton_remove_EVNeA:focus-visible{outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:0;border-radius:var(--focus-border-radius)}.RemoveButton_remove_EVNeA .RemoveButton_icon_EVNeA{font-size:var(--font-size-small)}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}}();
2
+ const remove = "RemoveButton_remove_EVNeA";
3
+ const icon = "RemoveButton_icon_EVNeA";
4
4
  const classes = {
5
5
  remove,
6
6
  icon
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Tag_tag_WVpkD{font-size:var(--font-size-sub);padding:.25rem .75rem;border:none;border-radius:3.125rem;display:inline-flex;align-items:center;gap:.25rem}.Tag_tag_WVpkD.Tag_tag-enabled_WVpkD{background-color:var(--color-green100)}.Tag_tag_WVpkD.Tag_tag-disabled_WVpkD{background-color:var(--color-blue-grey100)}.Tag_tag_WVpkD.Tag_sharp_WVpkD{border-radius:.125rem}.Tag_tag_WVpkD .Tag_label_WVpkD{line-height:2;font-size:inherit;color:inherit}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a="Tag_tag_WVpkD",e="Tag_sharp_WVpkD",t="Tag_label_WVpkD",l={tag:a,"tag-enabled":"Tag_tag-enabled_WVpkD","tag-disabled":"Tag_tag-disabled_WVpkD",sharp:e,label:t};exports.default=l,exports.label=t,exports.sharp=e,exports.tag=a;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Tag_tag_EVNeA{font-size:var(--font-size-sub);padding:.25rem .75rem;border:none;border-radius:3.125rem;display:inline-flex;align-items:center;gap:.25rem}.Tag_tag_EVNeA.Tag_tag-enabled_EVNeA{background-color:var(--color-green100)}.Tag_tag_EVNeA.Tag_tag-disabled_EVNeA{background-color:var(--color-blue-grey100)}.Tag_tag_EVNeA.Tag_sharp_EVNeA{border-radius:.125rem}.Tag_tag_EVNeA .Tag_label_EVNeA{line-height:2;font-size:inherit;color:inherit}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="Tag_tag_EVNeA",a="Tag_sharp_EVNeA",t="Tag_label_EVNeA",l={tag:e,"tag-enabled":"Tag_tag-enabled_EVNeA","tag-disabled":"Tag_tag-disabled_EVNeA",sharp:a,label:t};exports.default=l,exports.label=t,exports.sharp=a,exports.tag=e;
3
3
  //# sourceMappingURL=Tag.module.scss.cjs.js.map
@@ -1,11 +1,11 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Tag_tag_WVpkD{font-size:var(--font-size-sub);padding:.25rem .75rem;border:none;border-radius:3.125rem;display:inline-flex;align-items:center;gap:.25rem}.Tag_tag_WVpkD.Tag_tag-enabled_WVpkD{background-color:var(--color-green100)}.Tag_tag_WVpkD.Tag_tag-disabled_WVpkD{background-color:var(--color-blue-grey100)}.Tag_tag_WVpkD.Tag_sharp_WVpkD{border-radius:.125rem}.Tag_tag_WVpkD .Tag_label_WVpkD{line-height:2;font-size:inherit;color:inherit}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
- const tag = "Tag_tag_WVpkD";
3
- const sharp = "Tag_sharp_WVpkD";
4
- const label = "Tag_label_WVpkD";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Tag_tag_EVNeA{font-size:var(--font-size-sub);padding:.25rem .75rem;border:none;border-radius:3.125rem;display:inline-flex;align-items:center;gap:.25rem}.Tag_tag_EVNeA.Tag_tag-enabled_EVNeA{background-color:var(--color-green100)}.Tag_tag_EVNeA.Tag_tag-disabled_EVNeA{background-color:var(--color-blue-grey100)}.Tag_tag_EVNeA.Tag_sharp_EVNeA{border-radius:.125rem}.Tag_tag_EVNeA .Tag_label_EVNeA{line-height:2;font-size:inherit;color:inherit}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
+ const tag = "Tag_tag_EVNeA";
3
+ const sharp = "Tag_sharp_EVNeA";
4
+ const label = "Tag_label_EVNeA";
5
5
  const classes = {
6
6
  tag,
7
- "tag-enabled": "Tag_tag-enabled_WVpkD",
8
- "tag-disabled": "Tag_tag-disabled_WVpkD",
7
+ "tag-enabled": "Tag_tag-enabled_EVNeA",
8
+ "tag-disabled": "Tag_tag-disabled_EVNeA",
9
9
  sharp,
10
10
  label
11
11
  };
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.TextEllipsis_text-ellipsis_WVpkD{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.TextEllipsis_popover_WVpkD{max-width:min(75ch,90%);padding:.6875rem .6875rem .6875rem .875rem;border-radius:.25rem;box-shadow:0 .1875rem .375rem #0000004a;white-space:pre-wrap;word-wrap:break-word;transition-property:opacity;transform:scale(1);z-index:1}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="TextEllipsis_popover_WVpkD",t={"text-ellipsis":"TextEllipsis_text-ellipsis_WVpkD",popover:e};exports.default=t,exports.popover=e;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.TextEllipsis_text-ellipsis_EVNeA{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.TextEllipsis_popover_EVNeA{max-width:min(75ch,90%);padding:.6875rem .6875rem .6875rem .875rem;border-radius:.25rem;box-shadow:0 .1875rem .375rem #0000004a;white-space:pre-wrap;word-wrap:break-word;transition-property:opacity;transform:scale(1);z-index:1}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="TextEllipsis_popover_EVNeA",t={"text-ellipsis":"TextEllipsis_text-ellipsis_EVNeA",popover:e};exports.default=t,exports.popover=e;
3
3
  //# sourceMappingURL=TextEllipsis.module.scss.cjs.js.map
@@ -1,7 +1,7 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.TextEllipsis_text-ellipsis_WVpkD{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.TextEllipsis_popover_WVpkD{max-width:min(75ch,90%);padding:.6875rem .6875rem .6875rem .875rem;border-radius:.25rem;box-shadow:0 .1875rem .375rem #0000004a;white-space:pre-wrap;word-wrap:break-word;transition-property:opacity;transform:scale(1);z-index:1}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
- const popover = "TextEllipsis_popover_WVpkD";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.TextEllipsis_text-ellipsis_EVNeA{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.TextEllipsis_popover_EVNeA{max-width:min(75ch,90%);padding:.6875rem .6875rem .6875rem .875rem;border-radius:.25rem;box-shadow:0 .1875rem .375rem #0000004a;white-space:pre-wrap;word-wrap:break-word;transition-property:opacity;transform:scale(1);z-index:1}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
+ const popover = "TextEllipsis_popover_EVNeA";
3
3
  const classes = {
4
- "text-ellipsis": "TextEllipsis_text-ellipsis_WVpkD",
4
+ "text-ellipsis": "TextEllipsis_text-ellipsis_EVNeA",
5
5
  popover
6
6
  };
7
7
  export {
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.Tile_sr-only_WVpkD{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.Tile_hidden_WVpkD{display:none}.Tile_slide-in_WVpkD{animation:Tile_slide-in_WVpkD .5s forwards}@media(prefers-reduced-motion:reduce){.Tile_slide-in_WVpkD{animation-duration:.1ms}}.Tile_slide-out_WVpkD{animation:Tile_slide-out_WVpkD .5s forwards}@media(prefers-reduced-motion:reduce){.Tile_slide-out_WVpkD{animation-duration:.1ms}}@keyframes Tile_slide-in_WVpkD{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes Tile_slide-out_WVpkD{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Tile_tile_WVpkD{border:1px solid var(--light-grey-border);border-radius:8px;box-sizing:border-box;padding:0 0 2rem;background-color:var(--light);font-family:var(--font-family);transition-property:box-shadow;transition-duration:.2s;transition-timing-function:ease-in-out}@media(prefers-reduced-motion:reduce){.Tile_tile_WVpkD{transition-duration:.1ms}}.Tile_tile_WVpkD:hover{box-shadow:0 3px 6px #0000004a}.Tile_tile_WVpkD header{display:flex;align-items:center}.Tile_tile_WVpkD header .Tile_icon_WVpkD{padding:0 1rem}.Tile_tile_WVpkD figure{margin:0 0 1rem;height:3rem}.Tile_tile_WVpkD figure img{vertical-align:top;height:3rem;width:auto}.Tile_tile_WVpkD .Tile_placeholder_WVpkD{font-size:3rem;margin:0 0 1rem;color:var(--greyed-out)}.Tile_tile_WVpkD .Tile_content_WVpkD{display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:default;padding:0 1rem}.Tile_tile_WVpkD.Tile_loading_WVpkD header{display:none}.Tile_tile_WVpkD.Tile_loading_WVpkD .Tile_image_WVpkD{margin-top:2.5rem;border-radius:.5rem;width:3rem;height:3rem;position:relative;overflow:hidden;background-color:var(--skeleton-background-color)}.Tile_tile_WVpkD.Tile_loading_WVpkD .Tile_image_WVpkD:after{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);background-image:linear-gradient(90deg,rgba(var(--skeleton-animation-color-rgb),0) 0,rgba(var(--skeleton-animation-color-rgb),.2) 20%,rgba(var(--skeleton-animation-color-rgb),.5) 60%,rgba(var(--skeleton-animation-color-rgb),0));content:"";animation:Tile_shimmer_WVpkD 2s infinite}@media(prefers-reduced-motion:reduce){.Tile_tile_WVpkD.Tile_loading_WVpkD .Tile_image_WVpkD:after{animation:none}}.Tile_tile_WVpkD.Tile_loading_WVpkD .Tile_title_WVpkD{color:transparent;display:inline-block;width:70%;border-radius:.5rem;position:relative;overflow:hidden;background-color:var(--skeleton-background-color)}.Tile_tile_WVpkD.Tile_loading_WVpkD .Tile_title_WVpkD:after{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);background-image:linear-gradient(90deg,rgba(var(--skeleton-animation-color-rgb),0) 0,rgba(var(--skeleton-animation-color-rgb),.2) 20%,rgba(var(--skeleton-animation-color-rgb),.5) 60%,rgba(var(--skeleton-animation-color-rgb),0));content:"";animation:Tile_shimmer_WVpkD 2s infinite}@media(prefers-reduced-motion:reduce){.Tile_tile_WVpkD.Tile_loading_WVpkD .Tile_title_WVpkD:after{animation:none}}@keyframes Tile_shimmer_WVpkD{to{transform:translate(100%)}}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="Tile_tile_WVpkD",t="Tile_icon_WVpkD",l="Tile_placeholder_WVpkD",o="Tile_content_WVpkD",i="Tile_loading_WVpkD",p="Tile_image_WVpkD",r="Tile_title_WVpkD",_={tile:e,icon:t,placeholder:l,content:o,loading:i,image:p,title:r};exports.content=o,exports.default=_,exports.icon=t,exports.image=p,exports.loading=i,exports.placeholder=l,exports.tile=e,exports.title=r;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.Tile_sr-only_EVNeA{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.Tile_hidden_EVNeA{display:none}.Tile_slide-in_EVNeA{animation:Tile_slide-in_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.Tile_slide-in_EVNeA{animation-duration:.1ms}}.Tile_slide-out_EVNeA{animation:Tile_slide-out_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.Tile_slide-out_EVNeA{animation-duration:.1ms}}@keyframes Tile_slide-in_EVNeA{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes Tile_slide-out_EVNeA{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Tile_tile_EVNeA{border:1px solid var(--light-grey-border);border-radius:8px;box-sizing:border-box;padding:0 0 2rem;background-color:var(--light);font-family:var(--font-family);transition-property:box-shadow;transition-duration:.2s;transition-timing-function:ease-in-out}@media(prefers-reduced-motion:reduce){.Tile_tile_EVNeA{transition-duration:.1ms}}.Tile_tile_EVNeA:hover{box-shadow:0 3px 6px #0000004a}.Tile_tile_EVNeA header{display:flex;align-items:center}.Tile_tile_EVNeA header .Tile_icon_EVNeA{padding:0 1rem}.Tile_tile_EVNeA figure{margin:0 0 1rem;height:3rem}.Tile_tile_EVNeA figure img{vertical-align:top;height:3rem;width:auto}.Tile_tile_EVNeA .Tile_placeholder_EVNeA{font-size:3rem;margin:0 0 1rem;color:var(--greyed-out)}.Tile_tile_EVNeA .Tile_content_EVNeA{display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:default;padding:0 1rem}.Tile_tile_EVNeA.Tile_loading_EVNeA header{display:none}.Tile_tile_EVNeA.Tile_loading_EVNeA .Tile_image_EVNeA{margin-top:2.5rem;border-radius:.5rem;width:3rem;height:3rem;position:relative;overflow:hidden;background-color:var(--skeleton-background-color)}.Tile_tile_EVNeA.Tile_loading_EVNeA .Tile_image_EVNeA:after{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);background-image:linear-gradient(90deg,rgba(var(--skeleton-animation-color-rgb),0) 0,rgba(var(--skeleton-animation-color-rgb),.2) 20%,rgba(var(--skeleton-animation-color-rgb),.5) 60%,rgba(var(--skeleton-animation-color-rgb),0));content:"";animation:Tile_shimmer_EVNeA 2s infinite}@media(prefers-reduced-motion:reduce){.Tile_tile_EVNeA.Tile_loading_EVNeA .Tile_image_EVNeA:after{animation:none}}.Tile_tile_EVNeA.Tile_loading_EVNeA .Tile_title_EVNeA{color:transparent;display:inline-block;width:70%;border-radius:.5rem;position:relative;overflow:hidden;background-color:var(--skeleton-background-color)}.Tile_tile_EVNeA.Tile_loading_EVNeA .Tile_title_EVNeA:after{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);background-image:linear-gradient(90deg,rgba(var(--skeleton-animation-color-rgb),0) 0,rgba(var(--skeleton-animation-color-rgb),.2) 20%,rgba(var(--skeleton-animation-color-rgb),.5) 60%,rgba(var(--skeleton-animation-color-rgb),0));content:"";animation:Tile_shimmer_EVNeA 2s infinite}@media(prefers-reduced-motion:reduce){.Tile_tile_EVNeA.Tile_loading_EVNeA .Tile_title_EVNeA:after{animation:none}}@keyframes Tile_shimmer_EVNeA{to{transform:translate(100%)}}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="Tile_tile_EVNeA",t="Tile_icon_EVNeA",l="Tile_placeholder_EVNeA",o="Tile_content_EVNeA",i="Tile_loading_EVNeA",r="Tile_image_EVNeA",_="Tile_title_EVNeA",n={tile:e,icon:t,placeholder:l,content:o,loading:i,image:r,title:_};exports.content=o,exports.default=n,exports.icon=t,exports.image=r,exports.loading=i,exports.placeholder=l,exports.tile=e,exports.title=_;
3
3
  //# sourceMappingURL=Tile.module.scss.cjs.js.map
@@ -1,11 +1,11 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.Tile_sr-only_WVpkD{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.Tile_hidden_WVpkD{display:none}.Tile_slide-in_WVpkD{animation:Tile_slide-in_WVpkD .5s forwards}@media(prefers-reduced-motion:reduce){.Tile_slide-in_WVpkD{animation-duration:.1ms}}.Tile_slide-out_WVpkD{animation:Tile_slide-out_WVpkD .5s forwards}@media(prefers-reduced-motion:reduce){.Tile_slide-out_WVpkD{animation-duration:.1ms}}@keyframes Tile_slide-in_WVpkD{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes Tile_slide-out_WVpkD{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Tile_tile_WVpkD{border:1px solid var(--light-grey-border);border-radius:8px;box-sizing:border-box;padding:0 0 2rem;background-color:var(--light);font-family:var(--font-family);transition-property:box-shadow;transition-duration:.2s;transition-timing-function:ease-in-out}@media(prefers-reduced-motion:reduce){.Tile_tile_WVpkD{transition-duration:.1ms}}.Tile_tile_WVpkD:hover{box-shadow:0 3px 6px #0000004a}.Tile_tile_WVpkD header{display:flex;align-items:center}.Tile_tile_WVpkD header .Tile_icon_WVpkD{padding:0 1rem}.Tile_tile_WVpkD figure{margin:0 0 1rem;height:3rem}.Tile_tile_WVpkD figure img{vertical-align:top;height:3rem;width:auto}.Tile_tile_WVpkD .Tile_placeholder_WVpkD{font-size:3rem;margin:0 0 1rem;color:var(--greyed-out)}.Tile_tile_WVpkD .Tile_content_WVpkD{display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:default;padding:0 1rem}.Tile_tile_WVpkD.Tile_loading_WVpkD header{display:none}.Tile_tile_WVpkD.Tile_loading_WVpkD .Tile_image_WVpkD{margin-top:2.5rem;border-radius:.5rem;width:3rem;height:3rem;position:relative;overflow:hidden;background-color:var(--skeleton-background-color)}.Tile_tile_WVpkD.Tile_loading_WVpkD .Tile_image_WVpkD:after{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);background-image:linear-gradient(90deg,rgba(var(--skeleton-animation-color-rgb),0) 0,rgba(var(--skeleton-animation-color-rgb),.2) 20%,rgba(var(--skeleton-animation-color-rgb),.5) 60%,rgba(var(--skeleton-animation-color-rgb),0));content:"";animation:Tile_shimmer_WVpkD 2s infinite}@media(prefers-reduced-motion:reduce){.Tile_tile_WVpkD.Tile_loading_WVpkD .Tile_image_WVpkD:after{animation:none}}.Tile_tile_WVpkD.Tile_loading_WVpkD .Tile_title_WVpkD{color:transparent;display:inline-block;width:70%;border-radius:.5rem;position:relative;overflow:hidden;background-color:var(--skeleton-background-color)}.Tile_tile_WVpkD.Tile_loading_WVpkD .Tile_title_WVpkD:after{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);background-image:linear-gradient(90deg,rgba(var(--skeleton-animation-color-rgb),0) 0,rgba(var(--skeleton-animation-color-rgb),.2) 20%,rgba(var(--skeleton-animation-color-rgb),.5) 60%,rgba(var(--skeleton-animation-color-rgb),0));content:"";animation:Tile_shimmer_WVpkD 2s infinite}@media(prefers-reduced-motion:reduce){.Tile_tile_WVpkD.Tile_loading_WVpkD .Tile_title_WVpkD:after{animation:none}}@keyframes Tile_shimmer_WVpkD{to{transform:translate(100%)}}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
- const tile = "Tile_tile_WVpkD";
3
- const icon = "Tile_icon_WVpkD";
4
- const placeholder = "Tile_placeholder_WVpkD";
5
- const content = "Tile_content_WVpkD";
6
- const loading = "Tile_loading_WVpkD";
7
- const image = "Tile_image_WVpkD";
8
- const title = "Tile_title_WVpkD";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.Tile_sr-only_EVNeA{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.Tile_hidden_EVNeA{display:none}.Tile_slide-in_EVNeA{animation:Tile_slide-in_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.Tile_slide-in_EVNeA{animation-duration:.1ms}}.Tile_slide-out_EVNeA{animation:Tile_slide-out_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.Tile_slide-out_EVNeA{animation-duration:.1ms}}@keyframes Tile_slide-in_EVNeA{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes Tile_slide-out_EVNeA{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Tile_tile_EVNeA{border:1px solid var(--light-grey-border);border-radius:8px;box-sizing:border-box;padding:0 0 2rem;background-color:var(--light);font-family:var(--font-family);transition-property:box-shadow;transition-duration:.2s;transition-timing-function:ease-in-out}@media(prefers-reduced-motion:reduce){.Tile_tile_EVNeA{transition-duration:.1ms}}.Tile_tile_EVNeA:hover{box-shadow:0 3px 6px #0000004a}.Tile_tile_EVNeA header{display:flex;align-items:center}.Tile_tile_EVNeA header .Tile_icon_EVNeA{padding:0 1rem}.Tile_tile_EVNeA figure{margin:0 0 1rem;height:3rem}.Tile_tile_EVNeA figure img{vertical-align:top;height:3rem;width:auto}.Tile_tile_EVNeA .Tile_placeholder_EVNeA{font-size:3rem;margin:0 0 1rem;color:var(--greyed-out)}.Tile_tile_EVNeA .Tile_content_EVNeA{display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:default;padding:0 1rem}.Tile_tile_EVNeA.Tile_loading_EVNeA header{display:none}.Tile_tile_EVNeA.Tile_loading_EVNeA .Tile_image_EVNeA{margin-top:2.5rem;border-radius:.5rem;width:3rem;height:3rem;position:relative;overflow:hidden;background-color:var(--skeleton-background-color)}.Tile_tile_EVNeA.Tile_loading_EVNeA .Tile_image_EVNeA:after{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);background-image:linear-gradient(90deg,rgba(var(--skeleton-animation-color-rgb),0) 0,rgba(var(--skeleton-animation-color-rgb),.2) 20%,rgba(var(--skeleton-animation-color-rgb),.5) 60%,rgba(var(--skeleton-animation-color-rgb),0));content:"";animation:Tile_shimmer_EVNeA 2s infinite}@media(prefers-reduced-motion:reduce){.Tile_tile_EVNeA.Tile_loading_EVNeA .Tile_image_EVNeA:after{animation:none}}.Tile_tile_EVNeA.Tile_loading_EVNeA .Tile_title_EVNeA{color:transparent;display:inline-block;width:70%;border-radius:.5rem;position:relative;overflow:hidden;background-color:var(--skeleton-background-color)}.Tile_tile_EVNeA.Tile_loading_EVNeA .Tile_title_EVNeA:after{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);background-image:linear-gradient(90deg,rgba(var(--skeleton-animation-color-rgb),0) 0,rgba(var(--skeleton-animation-color-rgb),.2) 20%,rgba(var(--skeleton-animation-color-rgb),.5) 60%,rgba(var(--skeleton-animation-color-rgb),0));content:"";animation:Tile_shimmer_EVNeA 2s infinite}@media(prefers-reduced-motion:reduce){.Tile_tile_EVNeA.Tile_loading_EVNeA .Tile_title_EVNeA:after{animation:none}}@keyframes Tile_shimmer_EVNeA{to{transform:translate(100%)}}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
+ const tile = "Tile_tile_EVNeA";
3
+ const icon = "Tile_icon_EVNeA";
4
+ const placeholder = "Tile_placeholder_EVNeA";
5
+ const content = "Tile_content_EVNeA";
6
+ const loading = "Tile_loading_EVNeA";
7
+ const image = "Tile_image_EVNeA";
8
+ const title = "Tile_title_EVNeA";
9
9
  const classes = {
10
10
  tile,
11
11
  icon,
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Tiles_tiles_WVpkD{display:grid;grid-gap:1rem;grid-template-columns:repeat(1,1fr)}@media screen and (min-width:30em){.Tiles_tiles_WVpkD{grid-template-columns:repeat(auto-fit,minmax(14.5rem,1fr))}}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="Tiles_tiles_WVpkD",t={tiles:e};exports.default=t,exports.tiles=e;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Tiles_tiles_EVNeA{display:grid;grid-gap:1rem;grid-template-columns:repeat(1,1fr)}@media screen and (min-width:30em){.Tiles_tiles_EVNeA{grid-template-columns:repeat(auto-fit,minmax(14.5rem,1fr))}}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="Tiles_tiles_EVNeA",t={tiles:e};exports.default=t,exports.tiles=e;
3
3
  //# sourceMappingURL=Tiles.module.scss.cjs.js.map
@@ -1,5 +1,5 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Tiles_tiles_WVpkD{display:grid;grid-gap:1rem;grid-template-columns:repeat(1,1fr)}@media screen and (min-width:30em){.Tiles_tiles_WVpkD{grid-template-columns:repeat(auto-fit,minmax(14.5rem,1fr))}}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
- const tiles = "Tiles_tiles_WVpkD";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Tiles_tiles_EVNeA{display:grid;grid-gap:1rem;grid-template-columns:repeat(1,1fr)}@media screen and (min-width:30em){.Tiles_tiles_EVNeA{grid-template-columns:repeat(auto-fit,minmax(14.5rem,1fr))}}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
+ const tiles = "Tiles_tiles_EVNeA";
3
3
  const classes = {
4
4
  tiles
5
5
  };