@onewelcome/react-lib-components 10.1.0 → 11.0.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 (203) 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 +5 -5
  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 +6 -6
  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 +8 -8
  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 +7 -7
  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.cjs.js +1 -1
  60. package/dist/components/Form/FormHelperText/FormHelperText.cjs.js.map +1 -1
  61. package/dist/components/Form/FormHelperText/FormHelperText.es.js +1 -1
  62. package/dist/components/Form/FormHelperText/FormHelperText.es.js.map +1 -1
  63. package/dist/components/Form/FormHelperText/FormHelperText.module.scss.cjs.js +2 -2
  64. package/dist/components/Form/FormHelperText/FormHelperText.module.scss.es.js +4 -4
  65. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.cjs.js +2 -2
  66. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.es.js +6 -6
  67. package/dist/components/Form/Input/Input.module.scss.cjs.js +2 -2
  68. package/dist/components/Form/Input/Input.module.scss.es.js +9 -9
  69. package/dist/components/Form/Label/Label.module.scss.cjs.js +2 -2
  70. package/dist/components/Form/Label/Label.module.scss.es.js +2 -2
  71. package/dist/components/Form/Radio/Radio.module.scss.cjs.js +2 -2
  72. package/dist/components/Form/Radio/Radio.module.scss.es.js +11 -11
  73. package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.cjs.js +2 -2
  74. package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.es.js +15 -15
  75. package/dist/components/Form/Select/MultiSelect/SelectButton.module.scss.cjs.js +2 -2
  76. package/dist/components/Form/Select/MultiSelect/SelectButton.module.scss.es.js +2 -2
  77. package/dist/components/Form/Select/MultiSelect/SelectedOptions.module.scss.cjs.js +2 -2
  78. package/dist/components/Form/Select/MultiSelect/SelectedOptions.module.scss.es.js +4 -4
  79. package/dist/components/Form/Select/MultiSelect/useSearch.cjs.js +1 -1
  80. package/dist/components/Form/Select/MultiSelect/useSearch.cjs.js.map +1 -1
  81. package/dist/components/Form/Select/MultiSelect/useSearch.es.js +7 -1
  82. package/dist/components/Form/Select/MultiSelect/useSearch.es.js.map +1 -1
  83. package/dist/components/Form/Select/SingleSelect/Select.module.scss.cjs.js +2 -2
  84. package/dist/components/Form/Select/SingleSelect/Select.module.scss.es.js +17 -17
  85. package/dist/components/Form/Select/SingleSelect/useSearch.cjs.js +1 -1
  86. package/dist/components/Form/Select/SingleSelect/useSearch.cjs.js.map +1 -1
  87. package/dist/components/Form/Select/SingleSelect/useSearch.es.js +3 -1
  88. package/dist/components/Form/Select/SingleSelect/useSearch.es.js.map +1 -1
  89. package/dist/components/Form/Select/useAddNewBtn.module.scss.cjs.js +2 -2
  90. package/dist/components/Form/Select/useAddNewBtn.module.scss.es.js +4 -4
  91. package/dist/components/Form/Textarea/Textarea.module.scss.cjs.js +2 -2
  92. package/dist/components/Form/Textarea/Textarea.module.scss.es.js +6 -6
  93. package/dist/components/Form/Toggle/Toggle.module.scss.cjs.js +2 -2
  94. package/dist/components/Form/Toggle/Toggle.module.scss.es.js +18 -18
  95. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.cjs.js +2 -2
  96. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.es.js +3 -3
  97. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss.cjs.js +2 -2
  98. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss.es.js +4 -4
  99. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.cjs.js +2 -2
  100. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.es.js +3 -3
  101. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.cjs.js +2 -2
  102. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.es.js +3 -3
  103. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.cjs.js +2 -2
  104. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.es.js +3 -3
  105. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.cjs.js +2 -2
  106. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.es.js +8 -8
  107. package/dist/components/Form/Wrapper/Wrapper/Wrapper.module.scss.cjs.js +2 -2
  108. package/dist/components/Form/Wrapper/Wrapper/Wrapper.module.scss.es.js +6 -6
  109. package/dist/components/Icon/Icon.module.scss.cjs.js +2 -2
  110. package/dist/components/Icon/Icon.module.scss.es.js +104 -104
  111. package/dist/components/InlineEditing/InlineCheckbox/InlineCheckbox.cjs.js.map +1 -1
  112. package/dist/components/InlineEditing/InlineCheckbox/InlineCheckbox.es.js.map +1 -1
  113. package/dist/components/InlineEditing/InlineEditingSelect/InlineSelect.cjs.js.map +1 -1
  114. package/dist/components/InlineEditing/InlineEditingSelect/InlineSelect.es.js.map +1 -1
  115. package/dist/components/Layout/Card/Card.module.scss.cjs.js +2 -2
  116. package/dist/components/Layout/Card/Card.module.scss.es.js +12 -12
  117. package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.cjs.js +2 -2
  118. package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.es.js +12 -12
  119. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.cjs.js +2 -2
  120. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.es.js +4 -4
  121. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.cjs.js +2 -2
  122. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.es.js +2 -2
  123. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.cjs.js +2 -2
  124. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.es.js +3 -3
  125. package/dist/components/Link/Link.module.scss.cjs.js +2 -2
  126. package/dist/components/Link/Link.module.scss.es.js +16 -16
  127. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss.cjs.js +2 -2
  128. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss.es.js +11 -11
  129. package/dist/components/Notifications/Alert/AlertItem/AlertItem.module.scss.cjs.js +2 -2
  130. package/dist/components/Notifications/Alert/AlertItem/AlertItem.module.scss.es.js +22 -22
  131. package/dist/components/Notifications/Banner/Banner.module.scss.cjs.js +2 -2
  132. package/dist/components/Notifications/Banner/Banner.module.scss.es.js +9 -9
  133. package/dist/components/Notifications/BaseModal/BaseModal.module.scss.cjs.js +2 -2
  134. package/dist/components/Notifications/BaseModal/BaseModal.module.scss.es.js +5 -5
  135. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.cjs.js +2 -2
  136. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.es.js +4 -4
  137. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.cjs.js +2 -2
  138. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.es.js +2 -2
  139. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.cjs.js +2 -2
  140. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.es.js +6 -6
  141. package/dist/components/Notifications/Dialog/Dialog.module.scss.cjs.js +2 -2
  142. package/dist/components/Notifications/Dialog/Dialog.module.scss.es.js +4 -4
  143. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.module.scss.cjs.js +2 -2
  144. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.module.scss.es.js +3 -3
  145. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.cjs.js +2 -2
  146. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.es.js +10 -10
  147. package/dist/components/Notifications/SideSheet/SideSheet.module.scss.cjs.js +2 -2
  148. package/dist/components/Notifications/SideSheet/SideSheet.module.scss.es.js +13 -13
  149. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.cjs.js +2 -2
  150. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.es.js +2 -2
  151. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.cjs.js +2 -2
  152. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.es.js +2 -2
  153. package/dist/components/Notifications/SlideInModal/SlideInModal.module.scss.cjs.js +2 -2
  154. package/dist/components/Notifications/SlideInModal/SlideInModal.module.scss.es.js +10 -10
  155. package/dist/components/Pagination/Pagination.cjs.js +1 -1
  156. package/dist/components/Pagination/Pagination.cjs.js.map +1 -1
  157. package/dist/components/Pagination/Pagination.es.js +1 -1
  158. package/dist/components/Pagination/Pagination.es.js.map +1 -1
  159. package/dist/components/Pagination/Pagination.module.scss.cjs.js +2 -2
  160. package/dist/components/Pagination/Pagination.module.scss.es.js +14 -14
  161. package/dist/components/Popover/Popover.module.scss.cjs.js +2 -2
  162. package/dist/components/Popover/Popover.module.scss.es.js +3 -3
  163. package/dist/components/ProgressBar/ProgressBar.module.scss.cjs.js +2 -2
  164. package/dist/components/ProgressBar/ProgressBar.module.scss.es.js +9 -9
  165. package/dist/components/Skeleton/Skeleton.module.scss.cjs.js +2 -2
  166. package/dist/components/Skeleton/Skeleton.module.scss.es.js +5 -5
  167. package/dist/components/Spinner/Spinner.module.scss.cjs.js +2 -2
  168. package/dist/components/Spinner/Spinner.module.scss.es.js +3 -3
  169. package/dist/components/Stepper/Step.module.scss.cjs.js +2 -2
  170. package/dist/components/Stepper/Step.module.scss.es.js +22 -22
  171. package/dist/components/Stepper/Stepper.module.scss.cjs.js +2 -2
  172. package/dist/components/Stepper/Stepper.module.scss.es.js +4 -4
  173. package/dist/components/Tabs/Tab.module.scss.cjs.js +2 -2
  174. package/dist/components/Tabs/Tab.module.scss.es.js +3 -3
  175. package/dist/components/Tabs/TabButton.module.scss.cjs.js +2 -2
  176. package/dist/components/Tabs/TabButton.module.scss.es.js +12 -12
  177. package/dist/components/Tabs/Tabs.module.scss.cjs.js +2 -2
  178. package/dist/components/Tabs/Tabs.module.scss.es.js +10 -10
  179. package/dist/components/Tag/RemoveButton.module.scss.cjs.js +2 -2
  180. package/dist/components/Tag/RemoveButton.module.scss.es.js +3 -3
  181. package/dist/components/Tag/Tag.module.scss.cjs.js +2 -2
  182. package/dist/components/Tag/Tag.module.scss.es.js +6 -6
  183. package/dist/components/TextEllipsis/TextEllipsis.module.scss.cjs.js +2 -2
  184. package/dist/components/TextEllipsis/TextEllipsis.module.scss.es.js +3 -3
  185. package/dist/components/Tiles/Tile.module.scss.cjs.js +2 -2
  186. package/dist/components/Tiles/Tile.module.scss.es.js +8 -8
  187. package/dist/components/Tiles/Tiles.module.scss.cjs.js +2 -2
  188. package/dist/components/Tiles/Tiles.module.scss.es.js +2 -2
  189. package/dist/components/Tooltip/Tooltip.module.scss.cjs.js +2 -2
  190. package/dist/components/Tooltip/Tooltip.module.scss.es.js +27 -27
  191. package/dist/components/Typography/Typography.module.scss.cjs.js +2 -2
  192. package/dist/components/Typography/Typography.module.scss.es.js +13 -13
  193. package/dist/components/admin/layout/LeftNav/LeftNav.module.scss.cjs.js +2 -2
  194. package/dist/components/admin/layout/LeftNav/LeftNav.module.scss.es.js +5 -5
  195. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.cjs.js +2 -2
  196. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.es.js +14 -14
  197. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.cjs.js +2 -2
  198. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.es.js +3 -3
  199. package/dist/components/miscellaneous/IdentityProviderButton.module.scss.cjs.js +2 -2
  200. package/dist/components/miscellaneous/IdentityProviderButton.module.scss.es.js +3 -3
  201. package/dist/readyclasses.module.scss.cjs.js +2 -2
  202. package/dist/readyclasses.module.scss.es.js +5 -5
  203. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import classes from "./FormHelperText.module.scss.es.js";
3
3
  import { Typography } from "../../Typography/Typography.es.js";
4
- const FormHelperTextComponent = ({ children, error, disabled, className, ...rest }, ref) => {
4
+ const FormHelperTextComponent = ({ children, error, success, disabled, className, ...rest }, ref) => {
5
5
  const classNames = [classes["form-helper-text"]];
6
6
  error && classNames.push(classes["error"]);
7
7
  disabled && classNames.push(classes["disabled"]);
@@ -1 +1 @@
1
- {"version":3,"file":"FormHelperText.es.js","sources":["../../../../src/components/Form/FormHelperText/FormHelperText.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, { ForwardRefRenderFunction, ComponentPropsWithRef, ReactNode } from \"react\";\nimport classes from \"./FormHelperText.module.scss\";\nimport { Typography } from \"../../Typography/Typography\";\nimport { FormElement } from \"../form.interfaces\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\">, FormElement {\n children?: ReactNode;\n disabled?: boolean;\n}\n\nconst FormHelperTextComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { children, error, disabled, className, ...rest }: Props,\n ref\n) => {\n const classNames = [classes[\"form-helper-text\"]];\n error && classNames.push(classes[\"error\"]);\n disabled && classNames.push(classes[\"disabled\"]);\n className && classNames.push(className);\n\n return (\n <Typography {...rest} ref={ref} variant=\"sub-text\" tag=\"div\" className={classNames.join(\" \")}>\n {children}\n </Typography>\n );\n};\n\nexport const FormHelperText = React.forwardRef(FormHelperTextComponent);\n"],"names":[],"mappings":";;;AA0BA,MAAM,0BAA2E,CAC/E,EAAE,UAAU,OAAO,UAAU,WAAW,GAAG,KAAK,GAChD,QACG;AACH,QAAM,aAAa,CAAC,QAAQ,kBAAkB,CAAC;AAC/C,WAAS,WAAW,KAAK,QAAQ,OAAO,CAAC;AACzC,cAAY,WAAW,KAAK,QAAQ,UAAU,CAAC;AAClC,eAAA,WAAW,KAAK,SAAS;AAEtC,SACG,sBAAA,cAAA,YAAA,EAAY,GAAG,MAAM,KAAU,SAAQ,YAAW,KAAI,OAAM,WAAW,WAAW,KAAK,GAAG,KACxF,QACH;AAEJ;AAEa,MAAA,iBAAiB,MAAM,WAAW,uBAAuB;"}
1
+ {"version":3,"file":"FormHelperText.es.js","sources":["../../../../src/components/Form/FormHelperText/FormHelperText.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, { ForwardRefRenderFunction, ComponentPropsWithRef, ReactNode } from \"react\";\nimport classes from \"./FormHelperText.module.scss\";\nimport { Typography } from \"../../Typography/Typography\";\nimport { FormElement } from \"../form.interfaces\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\">, FormElement {\n children?: ReactNode;\n disabled?: boolean;\n}\n\nconst FormHelperTextComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { children, error, success, disabled, className, ...rest }: Props,\n ref\n) => {\n const classNames = [classes[\"form-helper-text\"]];\n error && classNames.push(classes[\"error\"]);\n disabled && classNames.push(classes[\"disabled\"]);\n className && classNames.push(className);\n\n return (\n <Typography {...rest} ref={ref} variant=\"sub-text\" tag=\"div\" className={classNames.join(\" \")}>\n {children}\n </Typography>\n );\n};\n\nexport const FormHelperText = React.forwardRef(FormHelperTextComponent);\n"],"names":[],"mappings":";;;AA0BA,MAAM,0BAA2E,CAC/E,EAAE,UAAU,OAAO,SAAS,UAAU,WAAW,GAAG,KAAK,GACzD,QACG;AACH,QAAM,aAAa,CAAC,QAAQ,kBAAkB,CAAC;AAC/C,WAAS,WAAW,KAAK,QAAQ,OAAO,CAAC;AACzC,cAAY,WAAW,KAAK,QAAQ,UAAU,CAAC;AAClC,eAAA,WAAW,KAAK,SAAS;AAEtC,SACG,sBAAA,cAAA,YAAA,EAAY,GAAG,MAAM,KAAU,SAAQ,YAAW,KAAI,OAAM,WAAW,WAAW,KAAK,GAAG,KACxF,QACH;AAEJ;AAEa,MAAA,iBAAiB,MAAM,WAAW,uBAAuB;"}
@@ -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 */div.FormHelperText_form-helper-text_uJyTX{color:var(--input-helper-text-color);margin-bottom:0}div.FormHelperText_disabled_uJyTX{color:var(--greyed-out)}div.FormHelperText_error_uJyTX{color:var(--error)}[data-readonlyview=true] div.FormHelperText_form-helper-text_uJyTX{display:none}')),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="FormHelperText_disabled_uJyTX",r="FormHelperText_error_uJyTX",t={"form-helper-text":"FormHelperText_form-helper-text_uJyTX",disabled:e,error:r};exports.default=t,exports.disabled=e,exports.error=r;
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 */div.FormHelperText_form-helper-text_HO9cY{color:var(--input-helper-text-color);margin-bottom:0}div.FormHelperText_disabled_HO9cY{color:var(--greyed-out)}div.FormHelperText_error_HO9cY{color:var(--error)}[data-readonlyview=true] div.FormHelperText_form-helper-text_HO9cY{display:none}')),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="FormHelperText_disabled_HO9cY",r="FormHelperText_error_HO9cY",t={"form-helper-text":"FormHelperText_form-helper-text_HO9cY",disabled:e,error:r};exports.default=t,exports.disabled=e,exports.error=r;
3
3
  //# sourceMappingURL=FormHelperText.module.scss.cjs.js.map
@@ -1,8 +1,8 @@
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 */div.FormHelperText_form-helper-text_uJyTX{color:var(--input-helper-text-color);margin-bottom:0}div.FormHelperText_disabled_uJyTX{color:var(--greyed-out)}div.FormHelperText_error_uJyTX{color:var(--error)}[data-readonlyview=true] div.FormHelperText_form-helper-text_uJyTX{display:none}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
- const disabled = "FormHelperText_disabled_uJyTX";
3
- const error = "FormHelperText_error_uJyTX";
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 */div.FormHelperText_form-helper-text_HO9cY{color:var(--input-helper-text-color);margin-bottom:0}div.FormHelperText_disabled_HO9cY{color:var(--greyed-out)}div.FormHelperText_error_HO9cY{color:var(--error)}[data-readonlyview=true] div.FormHelperText_form-helper-text_HO9cY{display:none}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
+ const disabled = "FormHelperText_disabled_HO9cY";
3
+ const error = "FormHelperText_error_HO9cY";
4
4
  const classes = {
5
- "form-helper-text": "FormHelperText_form-helper-text_uJyTX",
5
+ "form-helper-text": "FormHelperText_form-helper-text_HO9cY",
6
6
  disabled,
7
7
  error
8
8
  };
@@ -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 */.FormSelectorWrapper_error_uJyTX input+span{outline:var(--error) solid 1px;outline-offset:-1px;border-radius:2px;overflow:hidden}.FormSelectorWrapper_helper-text_uJyTX{margin-top:.25rem;margin-left:calc(1.75 * var(--font-size))}.FormSelectorWrapper_children-container_uJyTX>span:nth-of-type(2){margin-right:.5rem}.FormSelectorWrapper_children-container_uJyTX [data-icon-status=success]{color:var(--success);font-size:var(--font-size-big)}.FormSelectorWrapper_children-container_uJyTX [data-icon-status=error]{color:var(--error);font-size:var(--font-size-big)}.FormSelectorWrapper_children-container_uJyTX [data-icon-status=info]{color:var(--default);font-size:var(--font-size-big)}.FormSelectorWrapper_disabled_uJyTX input{color:var(--disabled)}.FormSelectorWrapper_disabled_uJyTX input:disabled{cursor:not-allowed}.FormSelectorWrapper_disabled_uJyTX label{cursor:not-allowed}.FormSelectorWrapper_required_uJyTX{color:var(--error)}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="FormSelectorWrapper_error_uJyTX",r="FormSelectorWrapper_disabled_uJyTX",o="FormSelectorWrapper_required_uJyTX",t={error:e,"helper-text":"FormSelectorWrapper_helper-text_uJyTX","children-container":"FormSelectorWrapper_children-container_uJyTX",disabled:r,required:o};exports.default=t,exports.disabled=r,exports.error=e,exports.required=o;
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 */.FormSelectorWrapper_error_HO9cY input+span{outline:var(--error) solid 1px;outline-offset:-1px;border-radius:2px;overflow:hidden}.FormSelectorWrapper_helper-text_HO9cY{margin-top:.25rem;margin-left:calc(1.75 * var(--font-size))}.FormSelectorWrapper_children-container_HO9cY>span:nth-of-type(2){margin-right:.5rem}.FormSelectorWrapper_children-container_HO9cY [data-icon-status=success]{color:var(--success);font-size:var(--font-size-big)}.FormSelectorWrapper_children-container_HO9cY [data-icon-status=error]{color:var(--error);font-size:var(--font-size-big)}.FormSelectorWrapper_children-container_HO9cY [data-icon-status=info]{color:var(--default);font-size:var(--font-size-big)}.FormSelectorWrapper_disabled_HO9cY input{color:var(--disabled)}.FormSelectorWrapper_disabled_HO9cY input:disabled{cursor:not-allowed}.FormSelectorWrapper_disabled_HO9cY label{cursor:not-allowed}.FormSelectorWrapper_required_HO9cY{color:var(--error)}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="FormSelectorWrapper_error_HO9cY",r="FormSelectorWrapper_disabled_HO9cY",o="FormSelectorWrapper_required_HO9cY",t={error:e,"helper-text":"FormSelectorWrapper_helper-text_HO9cY","children-container":"FormSelectorWrapper_children-container_HO9cY",disabled:r,required:o};exports.default=t,exports.disabled=r,exports.error=e,exports.required=o;
3
3
  //# sourceMappingURL=FormSelectorWrapper.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 */.FormSelectorWrapper_error_uJyTX input+span{outline:var(--error) solid 1px;outline-offset:-1px;border-radius:2px;overflow:hidden}.FormSelectorWrapper_helper-text_uJyTX{margin-top:.25rem;margin-left:calc(1.75 * var(--font-size))}.FormSelectorWrapper_children-container_uJyTX>span:nth-of-type(2){margin-right:.5rem}.FormSelectorWrapper_children-container_uJyTX [data-icon-status=success]{color:var(--success);font-size:var(--font-size-big)}.FormSelectorWrapper_children-container_uJyTX [data-icon-status=error]{color:var(--error);font-size:var(--font-size-big)}.FormSelectorWrapper_children-container_uJyTX [data-icon-status=info]{color:var(--default);font-size:var(--font-size-big)}.FormSelectorWrapper_disabled_uJyTX input{color:var(--disabled)}.FormSelectorWrapper_disabled_uJyTX input:disabled{cursor:not-allowed}.FormSelectorWrapper_disabled_uJyTX label{cursor:not-allowed}.FormSelectorWrapper_required_uJyTX{color:var(--error)}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
2
- const error = "FormSelectorWrapper_error_uJyTX";
3
- const disabled = "FormSelectorWrapper_disabled_uJyTX";
4
- const required = "FormSelectorWrapper_required_uJyTX";
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 */.FormSelectorWrapper_error_HO9cY input+span{outline:var(--error) solid 1px;outline-offset:-1px;border-radius:2px;overflow:hidden}.FormSelectorWrapper_helper-text_HO9cY{margin-top:.25rem;margin-left:calc(1.75 * var(--font-size))}.FormSelectorWrapper_children-container_HO9cY>span:nth-of-type(2){margin-right:.5rem}.FormSelectorWrapper_children-container_HO9cY [data-icon-status=success]{color:var(--success);font-size:var(--font-size-big)}.FormSelectorWrapper_children-container_HO9cY [data-icon-status=error]{color:var(--error);font-size:var(--font-size-big)}.FormSelectorWrapper_children-container_HO9cY [data-icon-status=info]{color:var(--default);font-size:var(--font-size-big)}.FormSelectorWrapper_disabled_HO9cY input{color:var(--disabled)}.FormSelectorWrapper_disabled_HO9cY input:disabled{cursor:not-allowed}.FormSelectorWrapper_disabled_HO9cY label{cursor:not-allowed}.FormSelectorWrapper_required_HO9cY{color:var(--error)}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
2
+ const error = "FormSelectorWrapper_error_HO9cY";
3
+ const disabled = "FormSelectorWrapper_disabled_HO9cY";
4
+ const required = "FormSelectorWrapper_required_HO9cY";
5
5
  const classes = {
6
6
  error,
7
- "helper-text": "FormSelectorWrapper_helper-text_uJyTX",
8
- "children-container": "FormSelectorWrapper_children-container_uJyTX",
7
+ "helper-text": "FormSelectorWrapper_helper-text_HO9cY",
8
+ "children-container": "FormSelectorWrapper_children-container_HO9cY",
9
9
  disabled,
10
10
  required
11
11
  };
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('.Input_sr-only_uJyTX{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.Input_hidden_uJyTX{display:none}.Input_slide-in_uJyTX{animation:Input_slide-in_uJyTX .5s forwards}@media (prefers-reduced-motion: reduce){.Input_slide-in_uJyTX{animation-duration:.1ms}}.Input_slide-out_uJyTX{animation:Input_slide-out_uJyTX .5s forwards}@media (prefers-reduced-motion: reduce){.Input_slide-out_uJyTX{animation-duration:.1ms}}@keyframes Input_slide-in_uJyTX{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes Input_slide-out_uJyTX{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 */.Input_input-wrapper_uJyTX{position:relative;display:flex;align-items:center;border:0;border-radius:var(--input-border-radius);background-color:var(--input-background-color);padding:0 calc(.5 * var(--font-size));transition-property:background-color;transition-duration:.2s;transition-timing-function:ease-in-out}@media (prefers-reduced-motion: reduce){.Input_input-wrapper_uJyTX{transition-duration:.1ms}}.Input_input-wrapper_uJyTX input:-webkit-autofill,.Input_input-wrapper_uJyTX input:-webkit-autofill:hover,.Input_input-wrapper_uJyTX input:-webkit-autofill:focus,.Input_input-wrapper_uJyTX input:-webkit-autofill:active{-webkit-transition:background-color 5000s ease-in-out 0s!important;transition:background-color 5000s ease-in-out 0s!important}.Input_input-wrapper_uJyTX input:-webkit-autofill~.Input_outline_uJyTX:after,.Input_input-wrapper_uJyTX input:-webkit-autofill:hover~.Input_outline_uJyTX:after,.Input_input-wrapper_uJyTX input:-webkit-autofill:focus~.Input_outline_uJyTX:after,.Input_input-wrapper_uJyTX input:-webkit-autofill:active~.Input_outline_uJyTX:after{content:"";position:absolute;display:block;width:100%;height:100%;border-radius:var(--input-border-radius)}@media all and (-webkit-min-device-pixel-ratio: 0) and (-webkit-min-device-pixel-ratio: 0),all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm){.Input_input-wrapper_uJyTX input:-webkit-autofill~.Input_outline_uJyTX:after,.Input_input-wrapper_uJyTX input:-webkit-autofill:hover~.Input_outline_uJyTX:after,.Input_input-wrapper_uJyTX input:-webkit-autofill:focus~.Input_outline_uJyTX:after,.Input_input-wrapper_uJyTX input:-webkit-autofill:active~.Input_outline_uJyTX:after{background-color:#e8f0fe}}@media not all and (-webkit-min-device-pixel-ratio: 0),not all and (min-resolution: .001dpcm){.Input_input-wrapper_uJyTX input:-webkit-autofill~.Input_outline_uJyTX:after,.Input_input-wrapper_uJyTX input:-webkit-autofill:hover~.Input_outline_uJyTX:after,.Input_input-wrapper_uJyTX input:-webkit-autofill:focus~.Input_outline_uJyTX:after,.Input_input-wrapper_uJyTX input:-webkit-autofill:active~.Input_outline_uJyTX:after{background-color:#faffbd}}.Input_input-wrapper_uJyTX:hover .Input_outline_uJyTX{border-color:var(--input-border-color);background-color:var(--input-hover-background-color)}.Input_input-wrapper_uJyTX .Input_outline_uJyTX.Input_disabled_uJyTX{border-color:var(--disabled);background-color:var(--input-disabled-background-color)}.Input_input-wrapper_uJyTX .Input_outline_uJyTX.Input_error_uJyTX{border-color:var(--error)}.Input_input-wrapper_uJyTX [data-icon-status=success],.Input_input-wrapper_uJyTX [data-icon-status=error]{height:100%;width:calc(1.25 * var(--font-size));box-sizing:border-box;font-size:var(--icon-font-big);display:flex;align-items:center;justify-content:center;z-index:2}.Input_input-wrapper_uJyTX [data-icon-status=success]:before,.Input_input-wrapper_uJyTX [data-icon-status=error]:before{font-size:var(--icon-font-big);height:calc(1.25 * var(--font-size));width:calc(1.25 * var(--font-size));display:flex;align-items:center;justify-content:center}.Input_input-wrapper_uJyTX [data-icon-status=success]{color:var(--success)}.Input_input-wrapper_uJyTX [data-icon-status=error]{color:var(--error)}.Input_input-wrapper_uJyTX[data-readonlyview=true]{color:var(--read-only-text-color)}.Input_input-wrapper_uJyTX[data-readonlyview=true] .Input_Input-module_uJyTX{border-color:var(--read-only-border-color)}.Input_input-wrapper_uJyTX[data-readonlyview=true] span.Input_outline_uJyTX{color:var(--read-only-text-color);border-color:var(--read-only-border-color);background-color:var(--color-white)}.Input_input-wrapper_uJyTX[data-readonlyview=true]:hover .Input_outline_uJyTX{color:var(--read-only-text-color);background-color:var(--color-white);border-color:var(--read-only-border-color)}.Input_input-wrapper_uJyTX [data-prefix],.Input_input-wrapper_uJyTX [data-suffix]{display:block;z-index:1;transition-property:all;transition-duration:.2s;transition-timing-function:ease-in-out}@media (prefers-reduced-motion: reduce){.Input_input-wrapper_uJyTX [data-prefix],.Input_input-wrapper_uJyTX [data-suffix]{transition-duration:.1ms}}.Input_input-wrapper_uJyTX.Input_focus_uJyTX:not(.Input_disabled_uJyTX):not([data-readonlyview=true]),.Input_input-wrapper_uJyTX[data-readonlyview=true]:focus:not(.Input_disabled_uJyTX),.Input_input-wrapper_uJyTX[data-readonlyview=true]:focus-visible:not(.Input_disabled_uJyTX){position:relative;z-index:2;outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:calc(.125 * var(--font-size));border-radius:var(--focus-border-radius)}.Input_input_uJyTX{padding:0;height:calc(2.75 * var(--font-size));color:var(--color-blue-grey900);font-size:var(--input-font-size);font-family:var(--font-family);box-sizing:border-box;border:0;border-radius:var(--input-border-radius);background-color:transparent;z-index:1}.Input_input_uJyTX:not(.Input_shrink-width-for-date-icon_uJyTX){width:100%}.Input_input_uJyTX:disabled{cursor:not-allowed;color:var(--greyed-out)}.Input_input_uJyTX.Input_shrink-width-for-date-icon_uJyTX{width:auto}.Input_input_uJyTX{transition-property:all;transition-duration:.2s;transition-timing-function:ease-in-out}@media (prefers-reduced-motion: reduce){.Input_input_uJyTX{transition-duration:.1ms}}.Input_input_uJyTX:focus:not(:disabled){outline:none}[data-readonlyview=true] .Input_outline_uJyTX{border-color:var(--read-only-border-color)}.Input_outline_uJyTX{pointer-events:none;position:absolute;margin:0;padding:0;top:0;right:0;bottom:0;left:0;border-color:var(--input-border-color);border-style:var(--input-border-style);border-width:var(--input-border-width);border-radius:var(--input-border-radius);transition-property:all;transition-duration:.2s;transition-timing-function:ease-in-out}@media (prefers-reduced-motion: reduce){.Input_outline_uJyTX{transition-duration:.1ms}}.Input_error_uJyTX input{padding-right:calc(1.25 * var(--font-size))}.Input_error_uJyTX input.Input_remove-extra-indent_uJyTX{padding-right:0}.Input_success_uJyTX input{padding-right:calc(1.25 * var(--font-size))}@media only screen and (min-width: 30em){.Input_input-wrapper_uJyTX{padding:0 calc(.5 * var(--font-size))}}')),document.head.appendChild(t)}}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="Input_outline_uJyTX",t="Input_disabled_uJyTX",u="Input_error_uJyTX",s="Input_focus_uJyTX",r="Input_input_uJyTX",o="Input_success_uJyTX",p={"input-wrapper":"Input_input-wrapper_uJyTX",outline:e,disabled:t,error:u,focus:s,input:r,"shrink-width-for-date-icon":"Input_shrink-width-for-date-icon_uJyTX",success:o};exports.default=p,exports.disabled=t,exports.error=u,exports.focus=s,exports.input=r,exports.outline=e,exports.success=o;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('.Input_sr-only_HO9cY{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.Input_hidden_HO9cY{display:none}.Input_slide-in_HO9cY{animation:Input_slide-in_HO9cY .5s forwards}@media (prefers-reduced-motion: reduce){.Input_slide-in_HO9cY{animation-duration:.1ms}}.Input_slide-out_HO9cY{animation:Input_slide-out_HO9cY .5s forwards}@media (prefers-reduced-motion: reduce){.Input_slide-out_HO9cY{animation-duration:.1ms}}@keyframes Input_slide-in_HO9cY{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes Input_slide-out_HO9cY{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 */.Input_input-wrapper_HO9cY{position:relative;display:flex;align-items:center;border:0;border-radius:var(--input-border-radius);background-color:var(--input-background-color);padding:0 calc(.5 * var(--font-size));transition-property:background-color;transition-duration:.2s;transition-timing-function:ease-in-out}@media (prefers-reduced-motion: reduce){.Input_input-wrapper_HO9cY{transition-duration:.1ms}}.Input_input-wrapper_HO9cY input:-webkit-autofill,.Input_input-wrapper_HO9cY input:-webkit-autofill:hover,.Input_input-wrapper_HO9cY input:-webkit-autofill:focus,.Input_input-wrapper_HO9cY input:-webkit-autofill:active{-webkit-transition:background-color 5000s ease-in-out 0s!important;transition:background-color 5000s ease-in-out 0s!important}.Input_input-wrapper_HO9cY input:-webkit-autofill~.Input_outline_HO9cY:after,.Input_input-wrapper_HO9cY input:-webkit-autofill:hover~.Input_outline_HO9cY:after,.Input_input-wrapper_HO9cY input:-webkit-autofill:focus~.Input_outline_HO9cY:after,.Input_input-wrapper_HO9cY input:-webkit-autofill:active~.Input_outline_HO9cY:after{content:"";position:absolute;display:block;width:100%;height:100%;border-radius:var(--input-border-radius)}@media all and (-webkit-min-device-pixel-ratio: 0) and (-webkit-min-device-pixel-ratio: 0),all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm){.Input_input-wrapper_HO9cY input:-webkit-autofill~.Input_outline_HO9cY:after,.Input_input-wrapper_HO9cY input:-webkit-autofill:hover~.Input_outline_HO9cY:after,.Input_input-wrapper_HO9cY input:-webkit-autofill:focus~.Input_outline_HO9cY:after,.Input_input-wrapper_HO9cY input:-webkit-autofill:active~.Input_outline_HO9cY:after{background-color:#e8f0fe}}@media not all and (-webkit-min-device-pixel-ratio: 0),not all and (min-resolution: .001dpcm){.Input_input-wrapper_HO9cY input:-webkit-autofill~.Input_outline_HO9cY:after,.Input_input-wrapper_HO9cY input:-webkit-autofill:hover~.Input_outline_HO9cY:after,.Input_input-wrapper_HO9cY input:-webkit-autofill:focus~.Input_outline_HO9cY:after,.Input_input-wrapper_HO9cY input:-webkit-autofill:active~.Input_outline_HO9cY:after{background-color:#faffbd}}.Input_input-wrapper_HO9cY:hover .Input_outline_HO9cY{border-color:var(--input-border-color);background-color:var(--input-hover-background-color)}.Input_input-wrapper_HO9cY .Input_outline_HO9cY.Input_disabled_HO9cY{border-color:var(--disabled);background-color:var(--input-disabled-background-color)}.Input_input-wrapper_HO9cY .Input_outline_HO9cY.Input_error_HO9cY{border-color:var(--error)}.Input_input-wrapper_HO9cY [data-icon-status=success],.Input_input-wrapper_HO9cY [data-icon-status=error]{height:100%;width:calc(1.25 * var(--font-size));box-sizing:border-box;font-size:var(--icon-font-big);display:flex;align-items:center;justify-content:center;z-index:2}.Input_input-wrapper_HO9cY [data-icon-status=success]:before,.Input_input-wrapper_HO9cY [data-icon-status=error]:before{font-size:var(--icon-font-big);height:calc(1.25 * var(--font-size));width:calc(1.25 * var(--font-size));display:flex;align-items:center;justify-content:center}.Input_input-wrapper_HO9cY [data-icon-status=success]{color:var(--success)}.Input_input-wrapper_HO9cY [data-icon-status=error]{color:var(--error)}.Input_input-wrapper_HO9cY[data-readonlyview=true]{color:var(--read-only-text-color)}.Input_input-wrapper_HO9cY[data-readonlyview=true] .Input_Input-module_HO9cY{border-color:var(--read-only-border-color)}.Input_input-wrapper_HO9cY[data-readonlyview=true] span.Input_outline_HO9cY{color:var(--read-only-text-color);border-color:var(--read-only-border-color);background-color:var(--color-white)}.Input_input-wrapper_HO9cY[data-readonlyview=true]:hover .Input_outline_HO9cY{color:var(--read-only-text-color);background-color:var(--color-white);border-color:var(--read-only-border-color)}.Input_input-wrapper_HO9cY [data-prefix],.Input_input-wrapper_HO9cY [data-suffix]{display:block;z-index:1;transition-property:all;transition-duration:.2s;transition-timing-function:ease-in-out}@media (prefers-reduced-motion: reduce){.Input_input-wrapper_HO9cY [data-prefix],.Input_input-wrapper_HO9cY [data-suffix]{transition-duration:.1ms}}.Input_input-wrapper_HO9cY.Input_focus_HO9cY:not(.Input_disabled_HO9cY):not([data-readonlyview=true]),.Input_input-wrapper_HO9cY[data-readonlyview=true]:focus:not(.Input_disabled_HO9cY),.Input_input-wrapper_HO9cY[data-readonlyview=true]:focus-visible:not(.Input_disabled_HO9cY){position:relative;z-index:2;outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:calc(.125 * var(--font-size));border-radius:var(--focus-border-radius)}.Input_input_HO9cY{padding:0;height:calc(2.75 * var(--font-size));color:var(--color-blue-grey900);font-size:var(--input-font-size);font-family:var(--font-family);box-sizing:border-box;border:0;border-radius:var(--input-border-radius);background-color:transparent;z-index:1}.Input_input_HO9cY:not(.Input_shrink-width-for-date-icon_HO9cY){width:100%}.Input_input_HO9cY:disabled{cursor:not-allowed;color:var(--greyed-out)}.Input_input_HO9cY.Input_shrink-width-for-date-icon_HO9cY{width:auto}.Input_input_HO9cY{transition-property:all;transition-duration:.2s;transition-timing-function:ease-in-out}@media (prefers-reduced-motion: reduce){.Input_input_HO9cY{transition-duration:.1ms}}.Input_input_HO9cY:focus:not(:disabled){outline:none}[data-readonlyview=true] .Input_outline_HO9cY{border-color:var(--read-only-border-color)}.Input_outline_HO9cY{pointer-events:none;position:absolute;margin:0;padding:0;top:0;right:0;bottom:0;left:0;border-color:var(--input-border-color);border-style:var(--input-border-style);border-width:var(--input-border-width);border-radius:var(--input-border-radius);transition-property:all;transition-duration:.2s;transition-timing-function:ease-in-out}@media (prefers-reduced-motion: reduce){.Input_outline_HO9cY{transition-duration:.1ms}}.Input_error_HO9cY input{padding-right:calc(1.25 * var(--font-size))}.Input_error_HO9cY input.Input_remove-extra-indent_HO9cY{padding-right:0}.Input_success_HO9cY input{padding-right:calc(1.25 * var(--font-size))}@media only screen and (min-width: 30em){.Input_input-wrapper_HO9cY{padding:0 calc(.5 * var(--font-size))}}')),document.head.appendChild(t)}}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="Input_outline_HO9cY",t="Input_disabled_HO9cY",s="Input_error_HO9cY",r="Input_focus_HO9cY",u="Input_input_HO9cY",o="Input_success_HO9cY",p={"input-wrapper":"Input_input-wrapper_HO9cY",outline:e,disabled:t,error:s,focus:r,input:u,"shrink-width-for-date-icon":"Input_shrink-width-for-date-icon_HO9cY",success:o};exports.default=p,exports.disabled=t,exports.error=s,exports.focus=r,exports.input=u,exports.outline=e,exports.success=o;
3
3
  //# sourceMappingURL=Input.module.scss.cjs.js.map
@@ -1,18 +1,18 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('.Input_sr-only_uJyTX{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.Input_hidden_uJyTX{display:none}.Input_slide-in_uJyTX{animation:Input_slide-in_uJyTX .5s forwards}@media (prefers-reduced-motion: reduce){.Input_slide-in_uJyTX{animation-duration:.1ms}}.Input_slide-out_uJyTX{animation:Input_slide-out_uJyTX .5s forwards}@media (prefers-reduced-motion: reduce){.Input_slide-out_uJyTX{animation-duration:.1ms}}@keyframes Input_slide-in_uJyTX{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes Input_slide-out_uJyTX{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 */.Input_input-wrapper_uJyTX{position:relative;display:flex;align-items:center;border:0;border-radius:var(--input-border-radius);background-color:var(--input-background-color);padding:0 calc(.5 * var(--font-size));transition-property:background-color;transition-duration:.2s;transition-timing-function:ease-in-out}@media (prefers-reduced-motion: reduce){.Input_input-wrapper_uJyTX{transition-duration:.1ms}}.Input_input-wrapper_uJyTX input:-webkit-autofill,.Input_input-wrapper_uJyTX input:-webkit-autofill:hover,.Input_input-wrapper_uJyTX input:-webkit-autofill:focus,.Input_input-wrapper_uJyTX input:-webkit-autofill:active{-webkit-transition:background-color 5000s ease-in-out 0s!important;transition:background-color 5000s ease-in-out 0s!important}.Input_input-wrapper_uJyTX input:-webkit-autofill~.Input_outline_uJyTX:after,.Input_input-wrapper_uJyTX input:-webkit-autofill:hover~.Input_outline_uJyTX:after,.Input_input-wrapper_uJyTX input:-webkit-autofill:focus~.Input_outline_uJyTX:after,.Input_input-wrapper_uJyTX input:-webkit-autofill:active~.Input_outline_uJyTX:after{content:"";position:absolute;display:block;width:100%;height:100%;border-radius:var(--input-border-radius)}@media all and (-webkit-min-device-pixel-ratio: 0) and (-webkit-min-device-pixel-ratio: 0),all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm){.Input_input-wrapper_uJyTX input:-webkit-autofill~.Input_outline_uJyTX:after,.Input_input-wrapper_uJyTX input:-webkit-autofill:hover~.Input_outline_uJyTX:after,.Input_input-wrapper_uJyTX input:-webkit-autofill:focus~.Input_outline_uJyTX:after,.Input_input-wrapper_uJyTX input:-webkit-autofill:active~.Input_outline_uJyTX:after{background-color:#e8f0fe}}@media not all and (-webkit-min-device-pixel-ratio: 0),not all and (min-resolution: .001dpcm){.Input_input-wrapper_uJyTX input:-webkit-autofill~.Input_outline_uJyTX:after,.Input_input-wrapper_uJyTX input:-webkit-autofill:hover~.Input_outline_uJyTX:after,.Input_input-wrapper_uJyTX input:-webkit-autofill:focus~.Input_outline_uJyTX:after,.Input_input-wrapper_uJyTX input:-webkit-autofill:active~.Input_outline_uJyTX:after{background-color:#faffbd}}.Input_input-wrapper_uJyTX:hover .Input_outline_uJyTX{border-color:var(--input-border-color);background-color:var(--input-hover-background-color)}.Input_input-wrapper_uJyTX .Input_outline_uJyTX.Input_disabled_uJyTX{border-color:var(--disabled);background-color:var(--input-disabled-background-color)}.Input_input-wrapper_uJyTX .Input_outline_uJyTX.Input_error_uJyTX{border-color:var(--error)}.Input_input-wrapper_uJyTX [data-icon-status=success],.Input_input-wrapper_uJyTX [data-icon-status=error]{height:100%;width:calc(1.25 * var(--font-size));box-sizing:border-box;font-size:var(--icon-font-big);display:flex;align-items:center;justify-content:center;z-index:2}.Input_input-wrapper_uJyTX [data-icon-status=success]:before,.Input_input-wrapper_uJyTX [data-icon-status=error]:before{font-size:var(--icon-font-big);height:calc(1.25 * var(--font-size));width:calc(1.25 * var(--font-size));display:flex;align-items:center;justify-content:center}.Input_input-wrapper_uJyTX [data-icon-status=success]{color:var(--success)}.Input_input-wrapper_uJyTX [data-icon-status=error]{color:var(--error)}.Input_input-wrapper_uJyTX[data-readonlyview=true]{color:var(--read-only-text-color)}.Input_input-wrapper_uJyTX[data-readonlyview=true] .Input_Input-module_uJyTX{border-color:var(--read-only-border-color)}.Input_input-wrapper_uJyTX[data-readonlyview=true] span.Input_outline_uJyTX{color:var(--read-only-text-color);border-color:var(--read-only-border-color);background-color:var(--color-white)}.Input_input-wrapper_uJyTX[data-readonlyview=true]:hover .Input_outline_uJyTX{color:var(--read-only-text-color);background-color:var(--color-white);border-color:var(--read-only-border-color)}.Input_input-wrapper_uJyTX [data-prefix],.Input_input-wrapper_uJyTX [data-suffix]{display:block;z-index:1;transition-property:all;transition-duration:.2s;transition-timing-function:ease-in-out}@media (prefers-reduced-motion: reduce){.Input_input-wrapper_uJyTX [data-prefix],.Input_input-wrapper_uJyTX [data-suffix]{transition-duration:.1ms}}.Input_input-wrapper_uJyTX.Input_focus_uJyTX:not(.Input_disabled_uJyTX):not([data-readonlyview=true]),.Input_input-wrapper_uJyTX[data-readonlyview=true]:focus:not(.Input_disabled_uJyTX),.Input_input-wrapper_uJyTX[data-readonlyview=true]:focus-visible:not(.Input_disabled_uJyTX){position:relative;z-index:2;outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:calc(.125 * var(--font-size));border-radius:var(--focus-border-radius)}.Input_input_uJyTX{padding:0;height:calc(2.75 * var(--font-size));color:var(--color-blue-grey900);font-size:var(--input-font-size);font-family:var(--font-family);box-sizing:border-box;border:0;border-radius:var(--input-border-radius);background-color:transparent;z-index:1}.Input_input_uJyTX:not(.Input_shrink-width-for-date-icon_uJyTX){width:100%}.Input_input_uJyTX:disabled{cursor:not-allowed;color:var(--greyed-out)}.Input_input_uJyTX.Input_shrink-width-for-date-icon_uJyTX{width:auto}.Input_input_uJyTX{transition-property:all;transition-duration:.2s;transition-timing-function:ease-in-out}@media (prefers-reduced-motion: reduce){.Input_input_uJyTX{transition-duration:.1ms}}.Input_input_uJyTX:focus:not(:disabled){outline:none}[data-readonlyview=true] .Input_outline_uJyTX{border-color:var(--read-only-border-color)}.Input_outline_uJyTX{pointer-events:none;position:absolute;margin:0;padding:0;top:0;right:0;bottom:0;left:0;border-color:var(--input-border-color);border-style:var(--input-border-style);border-width:var(--input-border-width);border-radius:var(--input-border-radius);transition-property:all;transition-duration:.2s;transition-timing-function:ease-in-out}@media (prefers-reduced-motion: reduce){.Input_outline_uJyTX{transition-duration:.1ms}}.Input_error_uJyTX input{padding-right:calc(1.25 * var(--font-size))}.Input_error_uJyTX input.Input_remove-extra-indent_uJyTX{padding-right:0}.Input_success_uJyTX input{padding-right:calc(1.25 * var(--font-size))}@media only screen and (min-width: 30em){.Input_input-wrapper_uJyTX{padding:0 calc(.5 * var(--font-size))}}')),document.head.appendChild(t)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
- const outline = "Input_outline_uJyTX";
3
- const disabled = "Input_disabled_uJyTX";
4
- const error = "Input_error_uJyTX";
5
- const focus = "Input_focus_uJyTX";
6
- const input = "Input_input_uJyTX";
7
- const success = "Input_success_uJyTX";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('.Input_sr-only_HO9cY{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.Input_hidden_HO9cY{display:none}.Input_slide-in_HO9cY{animation:Input_slide-in_HO9cY .5s forwards}@media (prefers-reduced-motion: reduce){.Input_slide-in_HO9cY{animation-duration:.1ms}}.Input_slide-out_HO9cY{animation:Input_slide-out_HO9cY .5s forwards}@media (prefers-reduced-motion: reduce){.Input_slide-out_HO9cY{animation-duration:.1ms}}@keyframes Input_slide-in_HO9cY{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes Input_slide-out_HO9cY{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 */.Input_input-wrapper_HO9cY{position:relative;display:flex;align-items:center;border:0;border-radius:var(--input-border-radius);background-color:var(--input-background-color);padding:0 calc(.5 * var(--font-size));transition-property:background-color;transition-duration:.2s;transition-timing-function:ease-in-out}@media (prefers-reduced-motion: reduce){.Input_input-wrapper_HO9cY{transition-duration:.1ms}}.Input_input-wrapper_HO9cY input:-webkit-autofill,.Input_input-wrapper_HO9cY input:-webkit-autofill:hover,.Input_input-wrapper_HO9cY input:-webkit-autofill:focus,.Input_input-wrapper_HO9cY input:-webkit-autofill:active{-webkit-transition:background-color 5000s ease-in-out 0s!important;transition:background-color 5000s ease-in-out 0s!important}.Input_input-wrapper_HO9cY input:-webkit-autofill~.Input_outline_HO9cY:after,.Input_input-wrapper_HO9cY input:-webkit-autofill:hover~.Input_outline_HO9cY:after,.Input_input-wrapper_HO9cY input:-webkit-autofill:focus~.Input_outline_HO9cY:after,.Input_input-wrapper_HO9cY input:-webkit-autofill:active~.Input_outline_HO9cY:after{content:"";position:absolute;display:block;width:100%;height:100%;border-radius:var(--input-border-radius)}@media all and (-webkit-min-device-pixel-ratio: 0) and (-webkit-min-device-pixel-ratio: 0),all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm){.Input_input-wrapper_HO9cY input:-webkit-autofill~.Input_outline_HO9cY:after,.Input_input-wrapper_HO9cY input:-webkit-autofill:hover~.Input_outline_HO9cY:after,.Input_input-wrapper_HO9cY input:-webkit-autofill:focus~.Input_outline_HO9cY:after,.Input_input-wrapper_HO9cY input:-webkit-autofill:active~.Input_outline_HO9cY:after{background-color:#e8f0fe}}@media not all and (-webkit-min-device-pixel-ratio: 0),not all and (min-resolution: .001dpcm){.Input_input-wrapper_HO9cY input:-webkit-autofill~.Input_outline_HO9cY:after,.Input_input-wrapper_HO9cY input:-webkit-autofill:hover~.Input_outline_HO9cY:after,.Input_input-wrapper_HO9cY input:-webkit-autofill:focus~.Input_outline_HO9cY:after,.Input_input-wrapper_HO9cY input:-webkit-autofill:active~.Input_outline_HO9cY:after{background-color:#faffbd}}.Input_input-wrapper_HO9cY:hover .Input_outline_HO9cY{border-color:var(--input-border-color);background-color:var(--input-hover-background-color)}.Input_input-wrapper_HO9cY .Input_outline_HO9cY.Input_disabled_HO9cY{border-color:var(--disabled);background-color:var(--input-disabled-background-color)}.Input_input-wrapper_HO9cY .Input_outline_HO9cY.Input_error_HO9cY{border-color:var(--error)}.Input_input-wrapper_HO9cY [data-icon-status=success],.Input_input-wrapper_HO9cY [data-icon-status=error]{height:100%;width:calc(1.25 * var(--font-size));box-sizing:border-box;font-size:var(--icon-font-big);display:flex;align-items:center;justify-content:center;z-index:2}.Input_input-wrapper_HO9cY [data-icon-status=success]:before,.Input_input-wrapper_HO9cY [data-icon-status=error]:before{font-size:var(--icon-font-big);height:calc(1.25 * var(--font-size));width:calc(1.25 * var(--font-size));display:flex;align-items:center;justify-content:center}.Input_input-wrapper_HO9cY [data-icon-status=success]{color:var(--success)}.Input_input-wrapper_HO9cY [data-icon-status=error]{color:var(--error)}.Input_input-wrapper_HO9cY[data-readonlyview=true]{color:var(--read-only-text-color)}.Input_input-wrapper_HO9cY[data-readonlyview=true] .Input_Input-module_HO9cY{border-color:var(--read-only-border-color)}.Input_input-wrapper_HO9cY[data-readonlyview=true] span.Input_outline_HO9cY{color:var(--read-only-text-color);border-color:var(--read-only-border-color);background-color:var(--color-white)}.Input_input-wrapper_HO9cY[data-readonlyview=true]:hover .Input_outline_HO9cY{color:var(--read-only-text-color);background-color:var(--color-white);border-color:var(--read-only-border-color)}.Input_input-wrapper_HO9cY [data-prefix],.Input_input-wrapper_HO9cY [data-suffix]{display:block;z-index:1;transition-property:all;transition-duration:.2s;transition-timing-function:ease-in-out}@media (prefers-reduced-motion: reduce){.Input_input-wrapper_HO9cY [data-prefix],.Input_input-wrapper_HO9cY [data-suffix]{transition-duration:.1ms}}.Input_input-wrapper_HO9cY.Input_focus_HO9cY:not(.Input_disabled_HO9cY):not([data-readonlyview=true]),.Input_input-wrapper_HO9cY[data-readonlyview=true]:focus:not(.Input_disabled_HO9cY),.Input_input-wrapper_HO9cY[data-readonlyview=true]:focus-visible:not(.Input_disabled_HO9cY){position:relative;z-index:2;outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:calc(.125 * var(--font-size));border-radius:var(--focus-border-radius)}.Input_input_HO9cY{padding:0;height:calc(2.75 * var(--font-size));color:var(--color-blue-grey900);font-size:var(--input-font-size);font-family:var(--font-family);box-sizing:border-box;border:0;border-radius:var(--input-border-radius);background-color:transparent;z-index:1}.Input_input_HO9cY:not(.Input_shrink-width-for-date-icon_HO9cY){width:100%}.Input_input_HO9cY:disabled{cursor:not-allowed;color:var(--greyed-out)}.Input_input_HO9cY.Input_shrink-width-for-date-icon_HO9cY{width:auto}.Input_input_HO9cY{transition-property:all;transition-duration:.2s;transition-timing-function:ease-in-out}@media (prefers-reduced-motion: reduce){.Input_input_HO9cY{transition-duration:.1ms}}.Input_input_HO9cY:focus:not(:disabled){outline:none}[data-readonlyview=true] .Input_outline_HO9cY{border-color:var(--read-only-border-color)}.Input_outline_HO9cY{pointer-events:none;position:absolute;margin:0;padding:0;top:0;right:0;bottom:0;left:0;border-color:var(--input-border-color);border-style:var(--input-border-style);border-width:var(--input-border-width);border-radius:var(--input-border-radius);transition-property:all;transition-duration:.2s;transition-timing-function:ease-in-out}@media (prefers-reduced-motion: reduce){.Input_outline_HO9cY{transition-duration:.1ms}}.Input_error_HO9cY input{padding-right:calc(1.25 * var(--font-size))}.Input_error_HO9cY input.Input_remove-extra-indent_HO9cY{padding-right:0}.Input_success_HO9cY input{padding-right:calc(1.25 * var(--font-size))}@media only screen and (min-width: 30em){.Input_input-wrapper_HO9cY{padding:0 calc(.5 * var(--font-size))}}')),document.head.appendChild(t)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
+ const outline = "Input_outline_HO9cY";
3
+ const disabled = "Input_disabled_HO9cY";
4
+ const error = "Input_error_HO9cY";
5
+ const focus = "Input_focus_HO9cY";
6
+ const input = "Input_input_HO9cY";
7
+ const success = "Input_success_HO9cY";
8
8
  const classes = {
9
- "input-wrapper": "Input_input-wrapper_uJyTX",
9
+ "input-wrapper": "Input_input-wrapper_HO9cY",
10
10
  outline,
11
11
  disabled,
12
12
  error,
13
13
  focus,
14
14
  input,
15
- "shrink-width-for-date-icon": "Input_shrink-width-for-date-icon_uJyTX",
15
+ "shrink-width-for-date-icon": "Input_shrink-width-for-date-icon_HO9cY",
16
16
  success
17
17
  };
18
18
  export {
@@ -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 */.Label_label_uJyTX{cursor:text;color:var(--greyed-out);font-size:var(--font-size)}')),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="Label_label_uJyTX",l={label:e};exports.default=l,exports.label=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 */.Label_label_HO9cY{cursor:text;color:var(--greyed-out);font-size:var(--font-size)}')),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="Label_label_HO9cY",l={label:e};exports.default=l,exports.label=e;
3
3
  //# sourceMappingURL=Label.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 */.Label_label_uJyTX{cursor:text;color:var(--greyed-out);font-size:var(--font-size)}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
- const label = "Label_label_uJyTX";
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 */.Label_label_HO9cY{cursor:text;color:var(--greyed-out);font-size:var(--font-size)}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
+ const label = "Label_label_HO9cY";
3
3
  const classes = {
4
4
  label
5
5
  };
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var o=document.createElement("style");o.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 */.Radio_radio-wrapper_uJyTX{position:relative}.Radio_radio-wrapper_uJyTX+.Radio_radio-wrapper_uJyTX{margin-top:.75rem}.Radio_error_uJyTX{color:var(--error)}.Radio_error-message_uJyTX{margin-top:.25rem;margin-left:calc(1.75 * var(--font-size));font-size:var(--font-size-sub)}.Radio_helper-text_uJyTX{margin-top:.25rem;margin-left:1.75rem}.Radio_error-icon_uJyTX{margin-right:.5rem;font-size:var(--font-size-big)}.Radio_radio-container_uJyTX{display:flex}.Radio_radio-container_uJyTX label{display:inline-block;margin-left:calc(.5 * var(--font-size));font-size:var(--font-size-form-label);font-family:var(--font-family);margin-top:.15rem}.Radio_radio-container_uJyTX label.Radio_no-margin-top_uJyTX{margin-top:0}.Radio_disabled_uJyTX .Radio_radio-container_uJyTX label{cursor:not-allowed}.Radio_native-input_uJyTX{position:absolute;top:0;left:0;opacity:0;margin:0;width:var(--font-size-big);height:var(--font-size-big);z-index:2}.Radio_native-input_uJyTX+span[data-icon=true]:before{display:block;width:var(--font-size-big);height:var(--font-size-big)}.Radio_native-input_uJyTX:checked+*{color:var(--radio-checked-color)}.Radio_native-input_uJyTX:checked+*.Radio_disabled_uJyTX{color:var(--disabled);cursor:not-allowed;pointer-events:none}.Radio_native-input_uJyTX:focus-visible+*{border-radius:100%;outline:2px solid var(--color-focus);outline-offset:2px}.Radio_native-input_uJyTX.Radio_error_uJyTX+*{border-radius:100%}.Radio_native-input_uJyTX.Radio_error_uJyTX:hover+.Radio_radio_uJyTX:before{outline-color:var(--radio-hover-background-color)}.Radio_native-input_uJyTX.Radio_error_uJyTX:active+.Radio_radio_uJyTX:before{outline-color:var(--radio-pressed-background-color)}.Radio_native-input_uJyTX:hover+.Radio_input_uJyTX.Radio_circle_uJyTX:not(.Radio_disabled_uJyTX){background-color:var(--radio-hover-background-color)}.Radio_native-input_uJyTX:active+.Radio_input_uJyTX.Radio_circle_uJyTX:not(.Radio_disabled_uJyTX){background-color:var(--radio-pressed-background-color)}.Radio_native-input_uJyTX:hover+.Radio_input_uJyTX.Radio_radio_uJyTX:not(.Radio_disabled_uJyTX){background-color:var(--radio-hover-background-color);color:var(--radio-hover-color)}.Radio_native-input_uJyTX:active+.Radio_input_uJyTX.Radio_radio_uJyTX:not(.Radio_disabled_uJyTX){color:var(--radio-pressed-color);background-color:var(--radio-pressed-background-color)}.Radio_input_uJyTX{font-size:var(--font-size-big);width:var(--font-size-big);height:var(--font-size-big);z-index:1;border-radius:100%;color:var(--color-blue-grey500)}.Radio_input_uJyTX:active{border-radius:100%}.Radio_disabled_uJyTX .Radio_input_uJyTX{color:var(--disabled)}.Radio_disabled_uJyTX{color:var(--disabled);pointer-events:none}[data-readonlyview=true] .Radio_radio-wrapper_uJyTX{color:var(--read-only-text-color)}[data-readonlyview=true] .Radio_radio-wrapper_uJyTX span.Radio_input_uJyTX{color:var(--read-only-text-color);cursor:not-allowed}[data-readonlyview=true] .Radio_radio-wrapper_uJyTX span.Radio_input_uJyTX:before{outline:1px solid var(--read-only-border-color);outline-offset:-1px;border-radius:50%}[data-readonlyview=true] .Radio_radio-wrapper_uJyTX label{-webkit-user-select:text;user-select:text}.Radio_radio-container_uJyTX input[type=radio][data-readonlyview=true]~span.Radio_input_uJyTX{color:var(--read-only-text-color);cursor:not-allowed}.Radio_radio-container_uJyTX input[type=radio][data-readonlyview=true]~span.Radio_input_uJyTX:before{outline:1px solid var(--read-only-border-color);outline-offset:-1px;border-radius:50%}.Radio_radio-container_uJyTX input[type=radio][data-readonlyview=true]~label{-webkit-user-select:text;user-select:text;pointer-events:none}.Radio_radio-container_uJyTX input[type=radio][data-readonlyview=true] :focus-visible{outline:2px solid var(--color-focus);outline-offset:2px}')),document.head.appendChild(o)}}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 r="Radio_error_uJyTX",o="Radio_disabled_uJyTX",e="Radio_radio_uJyTX",i="Radio_input_uJyTX",a="Radio_circle_uJyTX",d={"radio-wrapper":"Radio_radio-wrapper_uJyTX",error:r,"error-message":"Radio_error-message_uJyTX","radio-container":"Radio_radio-container_uJyTX","no-margin-top":"Radio_no-margin-top_uJyTX",disabled:o,"native-input":"Radio_native-input_uJyTX",radio:e,input:i,circle:a};exports.circle=a,exports.default=d,exports.disabled=o,exports.error=r,exports.input=i,exports.radio=e;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var o=document.createElement("style");o.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 */.Radio_radio-wrapper_HO9cY{position:relative}.Radio_radio-wrapper_HO9cY+.Radio_radio-wrapper_HO9cY{margin-top:.75rem}.Radio_error_HO9cY{color:var(--error)}.Radio_error-message_HO9cY{margin-top:.25rem;margin-left:calc(1.75 * var(--font-size));font-size:var(--font-size-sub)}.Radio_helper-text_HO9cY{margin-top:.25rem;margin-left:1.75rem}.Radio_error-icon_HO9cY{margin-right:.5rem;font-size:var(--font-size-big)}.Radio_radio-container_HO9cY{display:flex}.Radio_radio-container_HO9cY label{display:inline-block;margin-left:calc(.5 * var(--font-size));font-size:var(--font-size-form-label);font-family:var(--font-family);margin-top:.15rem}.Radio_radio-container_HO9cY label.Radio_no-margin-top_HO9cY{margin-top:0}.Radio_disabled_HO9cY .Radio_radio-container_HO9cY label{cursor:not-allowed}.Radio_native-input_HO9cY{position:absolute;top:0;left:0;opacity:0;margin:0;width:var(--font-size-big);height:var(--font-size-big);z-index:2}.Radio_native-input_HO9cY+span[data-icon=true]:before{display:block;width:var(--font-size-big);height:var(--font-size-big)}.Radio_native-input_HO9cY:checked+*{color:var(--radio-checked-color)}.Radio_native-input_HO9cY:checked+*.Radio_disabled_HO9cY{color:var(--disabled);cursor:not-allowed;pointer-events:none}.Radio_native-input_HO9cY:focus-visible+*{border-radius:100%;outline:2px solid var(--color-focus);outline-offset:2px}.Radio_native-input_HO9cY.Radio_error_HO9cY+*{border-radius:100%}.Radio_native-input_HO9cY.Radio_error_HO9cY:hover+.Radio_radio_HO9cY:before{outline-color:var(--radio-hover-background-color)}.Radio_native-input_HO9cY.Radio_error_HO9cY:active+.Radio_radio_HO9cY:before{outline-color:var(--radio-pressed-background-color)}.Radio_native-input_HO9cY:hover+.Radio_input_HO9cY.Radio_circle_HO9cY:not(.Radio_disabled_HO9cY){background-color:var(--radio-hover-background-color)}.Radio_native-input_HO9cY:active+.Radio_input_HO9cY.Radio_circle_HO9cY:not(.Radio_disabled_HO9cY){background-color:var(--radio-pressed-background-color)}.Radio_native-input_HO9cY:hover+.Radio_input_HO9cY.Radio_radio_HO9cY:not(.Radio_disabled_HO9cY){background-color:var(--radio-hover-background-color);color:var(--radio-hover-color)}.Radio_native-input_HO9cY:active+.Radio_input_HO9cY.Radio_radio_HO9cY:not(.Radio_disabled_HO9cY){color:var(--radio-pressed-color);background-color:var(--radio-pressed-background-color)}.Radio_input_HO9cY{font-size:var(--font-size-big);width:var(--font-size-big);height:var(--font-size-big);z-index:1;border-radius:100%;color:var(--color-blue-grey500)}.Radio_input_HO9cY:active{border-radius:100%}.Radio_disabled_HO9cY .Radio_input_HO9cY{color:var(--disabled)}.Radio_disabled_HO9cY{color:var(--disabled);pointer-events:none}[data-readonlyview=true] .Radio_radio-wrapper_HO9cY{color:var(--read-only-text-color)}[data-readonlyview=true] .Radio_radio-wrapper_HO9cY span.Radio_input_HO9cY{color:var(--read-only-text-color);cursor:not-allowed}[data-readonlyview=true] .Radio_radio-wrapper_HO9cY span.Radio_input_HO9cY:before{outline:1px solid var(--read-only-border-color);outline-offset:-1px;border-radius:50%}[data-readonlyview=true] .Radio_radio-wrapper_HO9cY label{-webkit-user-select:text;user-select:text}.Radio_radio-container_HO9cY input[type=radio][data-readonlyview=true]~span.Radio_input_HO9cY{color:var(--read-only-text-color);cursor:not-allowed}.Radio_radio-container_HO9cY input[type=radio][data-readonlyview=true]~span.Radio_input_HO9cY:before{outline:1px solid var(--read-only-border-color);outline-offset:-1px;border-radius:50%}.Radio_radio-container_HO9cY input[type=radio][data-readonlyview=true]~label{-webkit-user-select:text;user-select:text;pointer-events:none}.Radio_radio-container_HO9cY input[type=radio][data-readonlyview=true] :focus-visible{outline:2px solid var(--color-focus);outline-offset:2px}')),document.head.appendChild(o)}}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 r="Radio_error_HO9cY",o="Radio_disabled_HO9cY",e="Radio_radio_HO9cY",i="Radio_input_HO9cY",a="Radio_circle_HO9cY",d={"radio-wrapper":"Radio_radio-wrapper_HO9cY",error:r,"error-message":"Radio_error-message_HO9cY","radio-container":"Radio_radio-container_HO9cY","no-margin-top":"Radio_no-margin-top_HO9cY",disabled:o,"native-input":"Radio_native-input_HO9cY",radio:e,input:i,circle:a};exports.circle=a,exports.default=d,exports.disabled=o,exports.error=r,exports.input=i,exports.radio=e;
3
3
  //# sourceMappingURL=Radio.module.scss.cjs.js.map
@@ -1,17 +1,17 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var o=document.createElement("style");o.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 */.Radio_radio-wrapper_uJyTX{position:relative}.Radio_radio-wrapper_uJyTX+.Radio_radio-wrapper_uJyTX{margin-top:.75rem}.Radio_error_uJyTX{color:var(--error)}.Radio_error-message_uJyTX{margin-top:.25rem;margin-left:calc(1.75 * var(--font-size));font-size:var(--font-size-sub)}.Radio_helper-text_uJyTX{margin-top:.25rem;margin-left:1.75rem}.Radio_error-icon_uJyTX{margin-right:.5rem;font-size:var(--font-size-big)}.Radio_radio-container_uJyTX{display:flex}.Radio_radio-container_uJyTX label{display:inline-block;margin-left:calc(.5 * var(--font-size));font-size:var(--font-size-form-label);font-family:var(--font-family);margin-top:.15rem}.Radio_radio-container_uJyTX label.Radio_no-margin-top_uJyTX{margin-top:0}.Radio_disabled_uJyTX .Radio_radio-container_uJyTX label{cursor:not-allowed}.Radio_native-input_uJyTX{position:absolute;top:0;left:0;opacity:0;margin:0;width:var(--font-size-big);height:var(--font-size-big);z-index:2}.Radio_native-input_uJyTX+span[data-icon=true]:before{display:block;width:var(--font-size-big);height:var(--font-size-big)}.Radio_native-input_uJyTX:checked+*{color:var(--radio-checked-color)}.Radio_native-input_uJyTX:checked+*.Radio_disabled_uJyTX{color:var(--disabled);cursor:not-allowed;pointer-events:none}.Radio_native-input_uJyTX:focus-visible+*{border-radius:100%;outline:2px solid var(--color-focus);outline-offset:2px}.Radio_native-input_uJyTX.Radio_error_uJyTX+*{border-radius:100%}.Radio_native-input_uJyTX.Radio_error_uJyTX:hover+.Radio_radio_uJyTX:before{outline-color:var(--radio-hover-background-color)}.Radio_native-input_uJyTX.Radio_error_uJyTX:active+.Radio_radio_uJyTX:before{outline-color:var(--radio-pressed-background-color)}.Radio_native-input_uJyTX:hover+.Radio_input_uJyTX.Radio_circle_uJyTX:not(.Radio_disabled_uJyTX){background-color:var(--radio-hover-background-color)}.Radio_native-input_uJyTX:active+.Radio_input_uJyTX.Radio_circle_uJyTX:not(.Radio_disabled_uJyTX){background-color:var(--radio-pressed-background-color)}.Radio_native-input_uJyTX:hover+.Radio_input_uJyTX.Radio_radio_uJyTX:not(.Radio_disabled_uJyTX){background-color:var(--radio-hover-background-color);color:var(--radio-hover-color)}.Radio_native-input_uJyTX:active+.Radio_input_uJyTX.Radio_radio_uJyTX:not(.Radio_disabled_uJyTX){color:var(--radio-pressed-color);background-color:var(--radio-pressed-background-color)}.Radio_input_uJyTX{font-size:var(--font-size-big);width:var(--font-size-big);height:var(--font-size-big);z-index:1;border-radius:100%;color:var(--color-blue-grey500)}.Radio_input_uJyTX:active{border-radius:100%}.Radio_disabled_uJyTX .Radio_input_uJyTX{color:var(--disabled)}.Radio_disabled_uJyTX{color:var(--disabled);pointer-events:none}[data-readonlyview=true] .Radio_radio-wrapper_uJyTX{color:var(--read-only-text-color)}[data-readonlyview=true] .Radio_radio-wrapper_uJyTX span.Radio_input_uJyTX{color:var(--read-only-text-color);cursor:not-allowed}[data-readonlyview=true] .Radio_radio-wrapper_uJyTX span.Radio_input_uJyTX:before{outline:1px solid var(--read-only-border-color);outline-offset:-1px;border-radius:50%}[data-readonlyview=true] .Radio_radio-wrapper_uJyTX label{-webkit-user-select:text;user-select:text}.Radio_radio-container_uJyTX input[type=radio][data-readonlyview=true]~span.Radio_input_uJyTX{color:var(--read-only-text-color);cursor:not-allowed}.Radio_radio-container_uJyTX input[type=radio][data-readonlyview=true]~span.Radio_input_uJyTX:before{outline:1px solid var(--read-only-border-color);outline-offset:-1px;border-radius:50%}.Radio_radio-container_uJyTX input[type=radio][data-readonlyview=true]~label{-webkit-user-select:text;user-select:text;pointer-events:none}.Radio_radio-container_uJyTX input[type=radio][data-readonlyview=true] :focus-visible{outline:2px solid var(--color-focus);outline-offset:2px}')),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
2
- const error = "Radio_error_uJyTX";
3
- const disabled = "Radio_disabled_uJyTX";
4
- const radio = "Radio_radio_uJyTX";
5
- const input = "Radio_input_uJyTX";
6
- const circle = "Radio_circle_uJyTX";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var o=document.createElement("style");o.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 */.Radio_radio-wrapper_HO9cY{position:relative}.Radio_radio-wrapper_HO9cY+.Radio_radio-wrapper_HO9cY{margin-top:.75rem}.Radio_error_HO9cY{color:var(--error)}.Radio_error-message_HO9cY{margin-top:.25rem;margin-left:calc(1.75 * var(--font-size));font-size:var(--font-size-sub)}.Radio_helper-text_HO9cY{margin-top:.25rem;margin-left:1.75rem}.Radio_error-icon_HO9cY{margin-right:.5rem;font-size:var(--font-size-big)}.Radio_radio-container_HO9cY{display:flex}.Radio_radio-container_HO9cY label{display:inline-block;margin-left:calc(.5 * var(--font-size));font-size:var(--font-size-form-label);font-family:var(--font-family);margin-top:.15rem}.Radio_radio-container_HO9cY label.Radio_no-margin-top_HO9cY{margin-top:0}.Radio_disabled_HO9cY .Radio_radio-container_HO9cY label{cursor:not-allowed}.Radio_native-input_HO9cY{position:absolute;top:0;left:0;opacity:0;margin:0;width:var(--font-size-big);height:var(--font-size-big);z-index:2}.Radio_native-input_HO9cY+span[data-icon=true]:before{display:block;width:var(--font-size-big);height:var(--font-size-big)}.Radio_native-input_HO9cY:checked+*{color:var(--radio-checked-color)}.Radio_native-input_HO9cY:checked+*.Radio_disabled_HO9cY{color:var(--disabled);cursor:not-allowed;pointer-events:none}.Radio_native-input_HO9cY:focus-visible+*{border-radius:100%;outline:2px solid var(--color-focus);outline-offset:2px}.Radio_native-input_HO9cY.Radio_error_HO9cY+*{border-radius:100%}.Radio_native-input_HO9cY.Radio_error_HO9cY:hover+.Radio_radio_HO9cY:before{outline-color:var(--radio-hover-background-color)}.Radio_native-input_HO9cY.Radio_error_HO9cY:active+.Radio_radio_HO9cY:before{outline-color:var(--radio-pressed-background-color)}.Radio_native-input_HO9cY:hover+.Radio_input_HO9cY.Radio_circle_HO9cY:not(.Radio_disabled_HO9cY){background-color:var(--radio-hover-background-color)}.Radio_native-input_HO9cY:active+.Radio_input_HO9cY.Radio_circle_HO9cY:not(.Radio_disabled_HO9cY){background-color:var(--radio-pressed-background-color)}.Radio_native-input_HO9cY:hover+.Radio_input_HO9cY.Radio_radio_HO9cY:not(.Radio_disabled_HO9cY){background-color:var(--radio-hover-background-color);color:var(--radio-hover-color)}.Radio_native-input_HO9cY:active+.Radio_input_HO9cY.Radio_radio_HO9cY:not(.Radio_disabled_HO9cY){color:var(--radio-pressed-color);background-color:var(--radio-pressed-background-color)}.Radio_input_HO9cY{font-size:var(--font-size-big);width:var(--font-size-big);height:var(--font-size-big);z-index:1;border-radius:100%;color:var(--color-blue-grey500)}.Radio_input_HO9cY:active{border-radius:100%}.Radio_disabled_HO9cY .Radio_input_HO9cY{color:var(--disabled)}.Radio_disabled_HO9cY{color:var(--disabled);pointer-events:none}[data-readonlyview=true] .Radio_radio-wrapper_HO9cY{color:var(--read-only-text-color)}[data-readonlyview=true] .Radio_radio-wrapper_HO9cY span.Radio_input_HO9cY{color:var(--read-only-text-color);cursor:not-allowed}[data-readonlyview=true] .Radio_radio-wrapper_HO9cY span.Radio_input_HO9cY:before{outline:1px solid var(--read-only-border-color);outline-offset:-1px;border-radius:50%}[data-readonlyview=true] .Radio_radio-wrapper_HO9cY label{-webkit-user-select:text;user-select:text}.Radio_radio-container_HO9cY input[type=radio][data-readonlyview=true]~span.Radio_input_HO9cY{color:var(--read-only-text-color);cursor:not-allowed}.Radio_radio-container_HO9cY input[type=radio][data-readonlyview=true]~span.Radio_input_HO9cY:before{outline:1px solid var(--read-only-border-color);outline-offset:-1px;border-radius:50%}.Radio_radio-container_HO9cY input[type=radio][data-readonlyview=true]~label{-webkit-user-select:text;user-select:text;pointer-events:none}.Radio_radio-container_HO9cY input[type=radio][data-readonlyview=true] :focus-visible{outline:2px solid var(--color-focus);outline-offset:2px}')),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
2
+ const error = "Radio_error_HO9cY";
3
+ const disabled = "Radio_disabled_HO9cY";
4
+ const radio = "Radio_radio_HO9cY";
5
+ const input = "Radio_input_HO9cY";
6
+ const circle = "Radio_circle_HO9cY";
7
7
  const classes = {
8
- "radio-wrapper": "Radio_radio-wrapper_uJyTX",
8
+ "radio-wrapper": "Radio_radio-wrapper_HO9cY",
9
9
  error,
10
- "error-message": "Radio_error-message_uJyTX",
11
- "radio-container": "Radio_radio-container_uJyTX",
12
- "no-margin-top": "Radio_no-margin-top_uJyTX",
10
+ "error-message": "Radio_error-message_HO9cY",
11
+ "radio-container": "Radio_radio-container_HO9cY",
12
+ "no-margin-top": "Radio_no-margin-top_HO9cY",
13
13
  disabled,
14
- "native-input": "Radio_native-input_uJyTX",
14
+ "native-input": "Radio_native-input_HO9cY",
15
15
  radio,
16
16
  input,
17
17
  circle
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.MultiSelect_sr-only_uJyTX{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.MultiSelect_hidden_uJyTX{display:none}.MultiSelect_slide-in_uJyTX{animation:MultiSelect_slide-in_uJyTX .5s forwards}@media (prefers-reduced-motion: reduce){.MultiSelect_slide-in_uJyTX{animation-duration:.1ms}}.MultiSelect_slide-out_uJyTX{animation:MultiSelect_slide-out_uJyTX .5s forwards}@media (prefers-reduced-motion: reduce){.MultiSelect_slide-out_uJyTX{animation-duration:.1ms}}@keyframes MultiSelect_slide-in_uJyTX{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes MultiSelect_slide-out_uJyTX{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 */.MultiSelect_select_uJyTX{position:relative;box-sizing:border-box;border:0;border-radius:var(--input-border-radius);background-color:var(--input-background-color);font-size:var(--form-control-font-size);transition-property:background-color;transition-duration:.2s;transition-timing-function:ease-in-out}@media (prefers-reduced-motion: reduce){.MultiSelect_select_uJyTX{transition-duration:.1ms}}.MultiSelect_select_uJyTX [data-display]{color:var(--color-default);font-family:var(--font-family)}.MultiSelect_select_uJyTX.MultiSelect_expanded_uJyTX .MultiSelect_list-wrapper_uJyTX{background:var(--light)}.MultiSelect_select_uJyTX:not(.MultiSelect_expanded_uJyTX):has(button:focus){position:relative;z-index:2;outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:calc(.125 * var(--font-size));border-radius:var(--focus-border-radius)}.MultiSelect_select_uJyTX:not(.MultiSelect_expanded_uJyTX) .MultiSelect_custom-select_uJyTX:focus:not(.MultiSelect_error_uJyTX){border-color:var(--input-border-color);border-width:var(--input-border-width);padding:0 calc(.5 * var(--font-size) - var(--input-border-width))}.MultiSelect_select_uJyTX:hover:not(.MultiSelect_disabled_uJyTX):not(.MultiSelect_expanded_uJyTX):not(.MultiSelect_error_uJyTX) .MultiSelect_custom-select_uJyTX:not(:focus){border-color:var(--input-border-color);border-width:var(--input-border-width);background-color:var(--color-blue-grey25)}.MultiSelect_select_uJyTX .MultiSelect_custom-select_uJyTX{box-sizing:border-box;width:100%;min-height:calc(2.875 * var(--font-size) - 2 * var(--input-border-width));padding:0 calc(.5 * var(--font-size) - var(--input-border-width));background-color:transparent;border-color:var(--color-blue-grey500);border-style:var(--input-border-style);border-width:var(--input-border-width);border-radius:var(--input-border-radius);font-size:var(--form-control-font-size);transition-property:background-color,border-color;transition-duration:.2s;transition-timing-function:ease-in-out}@media (prefers-reduced-motion: reduce){.MultiSelect_select_uJyTX .MultiSelect_custom-select_uJyTX{transition-duration:.1ms}}.MultiSelect_select_uJyTX .MultiSelect_custom-select_uJyTX:focus-visible,.MultiSelect_select_uJyTX .MultiSelect_custom-select_uJyTX:focus{outline:none}.MultiSelect_select_uJyTX .MultiSelect_custom-select_uJyTX.MultiSelect_error_uJyTX{border-color:var(--error)}.MultiSelect_select_uJyTX .MultiSelect_custom-select_uJyTX.MultiSelect_error_uJyTX:focus{border-width:var(--input-border-width)}.MultiSelect_select_uJyTX .MultiSelect_custom-select_uJyTX.MultiSelect_disabled_uJyTX{border-color:var(--color-disabled);pointer-events:none}.MultiSelect_select_uJyTX .MultiSelect_custom-select_uJyTX .MultiSelect_display-container_uJyTX{flex:1;display:flex;align-items:center;padding:.1875rem 0;gap:.375rem}.MultiSelect_select_uJyTX .MultiSelect_list-wrapper-container_uJyTX{position:relative}.MultiSelect_select_uJyTX .MultiSelect_list-wrapper_uJyTX{border-color:var(--light-grey-border);border-style:var(--input-border-style);border-width:var(--input-border-width);border-radius:var(--input-border-radius);box-shadow:0 4px 5px #01053233;box-shadow:0 3px 14px #0105321f;box-shadow:0 8px 10px #01053224;position:absolute;z-index:11;left:0;width:100%;overflow:auto}.MultiSelect_select_uJyTX ul{box-sizing:border-box;padding:.25rem 0;width:100%;margin:0;list-style:none;background-color:var(--light);border-radius:var(--input-border-radius);color:var(--default);text-align:left;overflow:auto;max-height:25rem}.MultiSelect_select_uJyTX ul li{padding:.62rem .75rem;font-size:var(--form-control-font-size);font-family:var(--font-family);margin:0;position:relative;line-height:1.43;box-sizing:border-box;min-height:2.5rem;cursor:pointer}.MultiSelect_select_uJyTX ul li:after{content:"";position:absolute;top:0;left:0;background-color:transparent;width:100%;height:100%;opacity:.05}.MultiSelect_select_uJyTX ul li:focus,.MultiSelect_select_uJyTX ul li.MultiSelect_focus_uJyTX{outline:none}.MultiSelect_select_uJyTX ul li:focus:before,.MultiSelect_select_uJyTX ul li.MultiSelect_focus_uJyTX:before{content:"";position:absolute;top:0;left:.125rem;height:100%;width:calc(100% - .25rem);opacity:1;z-index:101;outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:0;border-radius:var(--focus-border-radius)}.MultiSelect_select_uJyTX ul li:hover:after,.MultiSelect_select_uJyTX ul li:active:after{background-color:var(--color-primary)}.MultiSelect_select_uJyTX ul li:active:after{opacity:.1}.MultiSelect_select_uJyTX ul li.MultiSelect_disabled_uJyTX{color:var(--greyed-out);background-color:var(--disabled);pointer-events:none}.MultiSelect_status_uJyTX{padding:.3125rem;display:flex;align-items:center}.MultiSelect_status_uJyTX [data-icon-status=success]{color:var(--success);font-size:var(--font-size-big)}.MultiSelect_status_uJyTX [data-icon-status=error]{color:var(--error);font-size:var(--font-size-big)}.MultiSelect_status_uJyTX .MultiSelect_chevron-icon_uJyTX{color:var(--default);font-size:var(--font-size-small)}.MultiSelect_status_uJyTX *+*{margin-left:1.25rem}.MultiSelect_placeholder_uJyTX{color:var(--greyed-out)}.MultiSelect_select-search_uJyTX{flex:1;box-sizing:border-box;border-bottom-left-radius:0;border-bottom-right-radius:0;border:0;background-color:transparent;color:var(--default);font-family:var(--font-family);font-size:calc(.83 * var(--font-size));line-height:1.3333;margin:0;padding:0}.MultiSelect_select-search_uJyTX:focus-visible,.MultiSelect_select-search_uJyTX:focus{outline:none}.MultiSelect_disabled_uJyTX{cursor:not-allowed;color:var(--greyed-out);background-color:var(--color-blue-grey25)}.MultiSelect_disabled_uJyTX>*{pointer-events:none}@media only screen and (min-width: 30em){.MultiSelect_select_uJyTX .MultiSelect_custom-select_uJyTX{padding:0 calc(.5 * var(--font-size) - var(--input-border-width))}.MultiSelect_select_uJyTX:not(.MultiSelect_expanded_uJyTX) .MultiSelect_custom-select_uJyTX:focus:not(.MultiSelect_error_uJyTX){padding:0 calc(.5 * var(--font-size) - var(--input-border-width))}}[data-readonlyview=true] .MultiSelect_custom-select_uJyTX{color:var(--read-only-text-color);border-color:var(--read-only-border-color);background-color:var(--color-white)}[data-readonlyview=true] .MultiSelect_custom-select_uJyTX.MultiSelect_error_uJyTX,[data-readonlyview=true] .MultiSelect_custom-select_uJyTX.MultiSelect_success_uJyTX{border-color:var(--read-only-border-color)}[data-readonlyview=true] .MultiSelect_custom-select_uJyTX button{pointer-events:none}[data-readonlyview=true] .MultiSelect_status_uJyTX .MultiSelect_chevron-icon_uJyTX{visibility:hidden}[data-readonlyview=true]:hover:not(.MultiSelect_disabled_uJyTX):not(.MultiSelect_expanded_uJyTX):not(.MultiSelect_error_uJyTX) .MultiSelect_custom-select_uJyTX:not(:focus){color:var(--read-only-text-color);border-color:var(--read-only-border-color);background-color:var(--color-white)}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="MultiSelect_select_uJyTX",t="MultiSelect_expanded_uJyTX",l="MultiSelect_error_uJyTX",s="MultiSelect_disabled_uJyTX",c="MultiSelect_focus_uJyTX",u="MultiSelect_status_uJyTX",r="MultiSelect_placeholder_uJyTX",o="MultiSelect_success_uJyTX",i={select:e,expanded:t,"list-wrapper":"MultiSelect_list-wrapper_uJyTX","custom-select":"MultiSelect_custom-select_uJyTX",error:l,disabled:s,"display-container":"MultiSelect_display-container_uJyTX","list-wrapper-container":"MultiSelect_list-wrapper-container_uJyTX",focus:c,status:u,"chevron-icon":"MultiSelect_chevron-icon_uJyTX",placeholder:r,"select-search":"MultiSelect_select-search_uJyTX",success:o};exports.default=i,exports.disabled=s,exports.error=l,exports.expanded=t,exports.focus=c,exports.placeholder=r,exports.select=e,exports.status=u,exports.success=o;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.MultiSelect_sr-only_HO9cY{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.MultiSelect_hidden_HO9cY{display:none}.MultiSelect_slide-in_HO9cY{animation:MultiSelect_slide-in_HO9cY .5s forwards}@media (prefers-reduced-motion: reduce){.MultiSelect_slide-in_HO9cY{animation-duration:.1ms}}.MultiSelect_slide-out_HO9cY{animation:MultiSelect_slide-out_HO9cY .5s forwards}@media (prefers-reduced-motion: reduce){.MultiSelect_slide-out_HO9cY{animation-duration:.1ms}}@keyframes MultiSelect_slide-in_HO9cY{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes MultiSelect_slide-out_HO9cY{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 */.MultiSelect_select_HO9cY{position:relative;box-sizing:border-box;border:0;border-radius:var(--input-border-radius);background-color:var(--input-background-color);font-size:var(--form-control-font-size);transition-property:background-color;transition-duration:.2s;transition-timing-function:ease-in-out}@media (prefers-reduced-motion: reduce){.MultiSelect_select_HO9cY{transition-duration:.1ms}}.MultiSelect_select_HO9cY [data-display]{color:var(--color-default);font-family:var(--font-family)}.MultiSelect_select_HO9cY.MultiSelect_expanded_HO9cY .MultiSelect_list-wrapper_HO9cY{background:var(--light)}.MultiSelect_select_HO9cY:not(.MultiSelect_expanded_HO9cY):has(button:focus){position:relative;z-index:2;outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:calc(.125 * var(--font-size));border-radius:var(--focus-border-radius)}.MultiSelect_select_HO9cY:not(.MultiSelect_expanded_HO9cY) .MultiSelect_custom-select_HO9cY:focus:not(.MultiSelect_error_HO9cY){border-color:var(--input-border-color);border-width:var(--input-border-width);padding:0 calc(.5 * var(--font-size) - var(--input-border-width))}.MultiSelect_select_HO9cY:hover:not(.MultiSelect_disabled_HO9cY):not(.MultiSelect_expanded_HO9cY):not(.MultiSelect_error_HO9cY) .MultiSelect_custom-select_HO9cY:not(:focus){border-color:var(--input-border-color);border-width:var(--input-border-width);background-color:var(--color-blue-grey25)}.MultiSelect_select_HO9cY .MultiSelect_custom-select_HO9cY{box-sizing:border-box;width:100%;min-height:calc(2.875 * var(--font-size) - 2 * var(--input-border-width));padding:0 calc(.5 * var(--font-size) - var(--input-border-width));background-color:transparent;border-color:var(--color-blue-grey500);border-style:var(--input-border-style);border-width:var(--input-border-width);border-radius:var(--input-border-radius);font-size:var(--form-control-font-size);transition-property:background-color,border-color;transition-duration:.2s;transition-timing-function:ease-in-out}@media (prefers-reduced-motion: reduce){.MultiSelect_select_HO9cY .MultiSelect_custom-select_HO9cY{transition-duration:.1ms}}.MultiSelect_select_HO9cY .MultiSelect_custom-select_HO9cY:focus-visible,.MultiSelect_select_HO9cY .MultiSelect_custom-select_HO9cY:focus{outline:none}.MultiSelect_select_HO9cY .MultiSelect_custom-select_HO9cY.MultiSelect_error_HO9cY{border-color:var(--error)}.MultiSelect_select_HO9cY .MultiSelect_custom-select_HO9cY.MultiSelect_error_HO9cY:focus{border-width:var(--input-border-width)}.MultiSelect_select_HO9cY .MultiSelect_custom-select_HO9cY.MultiSelect_disabled_HO9cY{border-color:var(--color-disabled);pointer-events:none}.MultiSelect_select_HO9cY .MultiSelect_custom-select_HO9cY .MultiSelect_display-container_HO9cY{flex:1;display:flex;align-items:center;padding:.1875rem 0;gap:.375rem}.MultiSelect_select_HO9cY .MultiSelect_list-wrapper-container_HO9cY{position:relative}.MultiSelect_select_HO9cY .MultiSelect_list-wrapper_HO9cY{border-color:var(--light-grey-border);border-style:var(--input-border-style);border-width:var(--input-border-width);border-radius:var(--input-border-radius);box-shadow:0 4px 5px #01053233;box-shadow:0 3px 14px #0105321f;box-shadow:0 8px 10px #01053224;position:absolute;z-index:11;left:0;width:100%;overflow:auto}.MultiSelect_select_HO9cY ul{box-sizing:border-box;padding:.25rem 0;width:100%;margin:0;list-style:none;background-color:var(--light);border-radius:var(--input-border-radius);color:var(--default);text-align:left;overflow:auto;max-height:25rem}.MultiSelect_select_HO9cY ul li{padding:.62rem .75rem;font-size:var(--form-control-font-size);font-family:var(--font-family);margin:0;position:relative;line-height:1.43;box-sizing:border-box;min-height:2.5rem;cursor:pointer}.MultiSelect_select_HO9cY ul li:after{content:"";position:absolute;top:0;left:0;background-color:transparent;width:100%;height:100%;opacity:.05}.MultiSelect_select_HO9cY ul li:focus,.MultiSelect_select_HO9cY ul li.MultiSelect_focus_HO9cY{outline:none}.MultiSelect_select_HO9cY ul li:focus:before,.MultiSelect_select_HO9cY ul li.MultiSelect_focus_HO9cY:before{content:"";position:absolute;top:0;left:.125rem;height:100%;width:calc(100% - .25rem);opacity:1;z-index:101;outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:0;border-radius:var(--focus-border-radius)}.MultiSelect_select_HO9cY ul li:hover:after,.MultiSelect_select_HO9cY ul li:active:after{background-color:var(--color-primary)}.MultiSelect_select_HO9cY ul li:active:after{opacity:.1}.MultiSelect_select_HO9cY ul li.MultiSelect_disabled_HO9cY{color:var(--greyed-out);background-color:var(--disabled);pointer-events:none}.MultiSelect_status_HO9cY{padding:.3125rem;display:flex;align-items:center}.MultiSelect_status_HO9cY [data-icon-status=success]{color:var(--success);font-size:var(--font-size-big)}.MultiSelect_status_HO9cY [data-icon-status=error]{color:var(--error);font-size:var(--font-size-big)}.MultiSelect_status_HO9cY .MultiSelect_chevron-icon_HO9cY{color:var(--default);font-size:var(--font-size-small)}.MultiSelect_status_HO9cY *+*{margin-left:1.25rem}.MultiSelect_placeholder_HO9cY{color:var(--greyed-out)}.MultiSelect_select-search_HO9cY{flex:1;box-sizing:border-box;border-bottom-left-radius:0;border-bottom-right-radius:0;border:0;background-color:transparent;color:var(--default);font-family:var(--font-family);font-size:calc(.83 * var(--font-size));line-height:1.3333;margin:0;padding:0}.MultiSelect_select-search_HO9cY:focus-visible,.MultiSelect_select-search_HO9cY:focus{outline:none}.MultiSelect_disabled_HO9cY{cursor:not-allowed;color:var(--greyed-out);background-color:var(--color-blue-grey25)}.MultiSelect_disabled_HO9cY>*{pointer-events:none}@media only screen and (min-width: 30em){.MultiSelect_select_HO9cY .MultiSelect_custom-select_HO9cY{padding:0 calc(.5 * var(--font-size) - var(--input-border-width))}.MultiSelect_select_HO9cY:not(.MultiSelect_expanded_HO9cY) .MultiSelect_custom-select_HO9cY:focus:not(.MultiSelect_error_HO9cY){padding:0 calc(.5 * var(--font-size) - var(--input-border-width))}}[data-readonlyview=true] .MultiSelect_custom-select_HO9cY{color:var(--read-only-text-color);border-color:var(--read-only-border-color);background-color:var(--color-white)}[data-readonlyview=true] .MultiSelect_custom-select_HO9cY.MultiSelect_error_HO9cY,[data-readonlyview=true] .MultiSelect_custom-select_HO9cY.MultiSelect_success_HO9cY{border-color:var(--read-only-border-color)}[data-readonlyview=true] .MultiSelect_custom-select_HO9cY button{pointer-events:none}[data-readonlyview=true] .MultiSelect_status_HO9cY .MultiSelect_chevron-icon_HO9cY{visibility:hidden}[data-readonlyview=true]:hover:not(.MultiSelect_disabled_HO9cY):not(.MultiSelect_expanded_HO9cY):not(.MultiSelect_error_HO9cY) .MultiSelect_custom-select_HO9cY:not(:focus){color:var(--read-only-text-color);border-color:var(--read-only-border-color);background-color:var(--color-white)}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="MultiSelect_select_HO9cY",t="MultiSelect_expanded_HO9cY",c="MultiSelect_error_HO9cY",l="MultiSelect_disabled_HO9cY",s="MultiSelect_focus_HO9cY",r="MultiSelect_status_HO9cY",o="MultiSelect_placeholder_HO9cY",i="MultiSelect_success_HO9cY",u={select:e,expanded:t,"list-wrapper":"MultiSelect_list-wrapper_HO9cY","custom-select":"MultiSelect_custom-select_HO9cY",error:c,disabled:l,"display-container":"MultiSelect_display-container_HO9cY","list-wrapper-container":"MultiSelect_list-wrapper-container_HO9cY",focus:s,status:r,"chevron-icon":"MultiSelect_chevron-icon_HO9cY",placeholder:o,"select-search":"MultiSelect_select-search_HO9cY",success:i};exports.default=u,exports.disabled=l,exports.error=c,exports.expanded=t,exports.focus=s,exports.placeholder=o,exports.select=e,exports.status=r,exports.success=i;
3
3
  //# sourceMappingURL=MultiSelect.module.scss.cjs.js.map
@@ -1,26 +1,26 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.MultiSelect_sr-only_uJyTX{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.MultiSelect_hidden_uJyTX{display:none}.MultiSelect_slide-in_uJyTX{animation:MultiSelect_slide-in_uJyTX .5s forwards}@media (prefers-reduced-motion: reduce){.MultiSelect_slide-in_uJyTX{animation-duration:.1ms}}.MultiSelect_slide-out_uJyTX{animation:MultiSelect_slide-out_uJyTX .5s forwards}@media (prefers-reduced-motion: reduce){.MultiSelect_slide-out_uJyTX{animation-duration:.1ms}}@keyframes MultiSelect_slide-in_uJyTX{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes MultiSelect_slide-out_uJyTX{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 */.MultiSelect_select_uJyTX{position:relative;box-sizing:border-box;border:0;border-radius:var(--input-border-radius);background-color:var(--input-background-color);font-size:var(--form-control-font-size);transition-property:background-color;transition-duration:.2s;transition-timing-function:ease-in-out}@media (prefers-reduced-motion: reduce){.MultiSelect_select_uJyTX{transition-duration:.1ms}}.MultiSelect_select_uJyTX [data-display]{color:var(--color-default);font-family:var(--font-family)}.MultiSelect_select_uJyTX.MultiSelect_expanded_uJyTX .MultiSelect_list-wrapper_uJyTX{background:var(--light)}.MultiSelect_select_uJyTX:not(.MultiSelect_expanded_uJyTX):has(button:focus){position:relative;z-index:2;outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:calc(.125 * var(--font-size));border-radius:var(--focus-border-radius)}.MultiSelect_select_uJyTX:not(.MultiSelect_expanded_uJyTX) .MultiSelect_custom-select_uJyTX:focus:not(.MultiSelect_error_uJyTX){border-color:var(--input-border-color);border-width:var(--input-border-width);padding:0 calc(.5 * var(--font-size) - var(--input-border-width))}.MultiSelect_select_uJyTX:hover:not(.MultiSelect_disabled_uJyTX):not(.MultiSelect_expanded_uJyTX):not(.MultiSelect_error_uJyTX) .MultiSelect_custom-select_uJyTX:not(:focus){border-color:var(--input-border-color);border-width:var(--input-border-width);background-color:var(--color-blue-grey25)}.MultiSelect_select_uJyTX .MultiSelect_custom-select_uJyTX{box-sizing:border-box;width:100%;min-height:calc(2.875 * var(--font-size) - 2 * var(--input-border-width));padding:0 calc(.5 * var(--font-size) - var(--input-border-width));background-color:transparent;border-color:var(--color-blue-grey500);border-style:var(--input-border-style);border-width:var(--input-border-width);border-radius:var(--input-border-radius);font-size:var(--form-control-font-size);transition-property:background-color,border-color;transition-duration:.2s;transition-timing-function:ease-in-out}@media (prefers-reduced-motion: reduce){.MultiSelect_select_uJyTX .MultiSelect_custom-select_uJyTX{transition-duration:.1ms}}.MultiSelect_select_uJyTX .MultiSelect_custom-select_uJyTX:focus-visible,.MultiSelect_select_uJyTX .MultiSelect_custom-select_uJyTX:focus{outline:none}.MultiSelect_select_uJyTX .MultiSelect_custom-select_uJyTX.MultiSelect_error_uJyTX{border-color:var(--error)}.MultiSelect_select_uJyTX .MultiSelect_custom-select_uJyTX.MultiSelect_error_uJyTX:focus{border-width:var(--input-border-width)}.MultiSelect_select_uJyTX .MultiSelect_custom-select_uJyTX.MultiSelect_disabled_uJyTX{border-color:var(--color-disabled);pointer-events:none}.MultiSelect_select_uJyTX .MultiSelect_custom-select_uJyTX .MultiSelect_display-container_uJyTX{flex:1;display:flex;align-items:center;padding:.1875rem 0;gap:.375rem}.MultiSelect_select_uJyTX .MultiSelect_list-wrapper-container_uJyTX{position:relative}.MultiSelect_select_uJyTX .MultiSelect_list-wrapper_uJyTX{border-color:var(--light-grey-border);border-style:var(--input-border-style);border-width:var(--input-border-width);border-radius:var(--input-border-radius);box-shadow:0 4px 5px #01053233;box-shadow:0 3px 14px #0105321f;box-shadow:0 8px 10px #01053224;position:absolute;z-index:11;left:0;width:100%;overflow:auto}.MultiSelect_select_uJyTX ul{box-sizing:border-box;padding:.25rem 0;width:100%;margin:0;list-style:none;background-color:var(--light);border-radius:var(--input-border-radius);color:var(--default);text-align:left;overflow:auto;max-height:25rem}.MultiSelect_select_uJyTX ul li{padding:.62rem .75rem;font-size:var(--form-control-font-size);font-family:var(--font-family);margin:0;position:relative;line-height:1.43;box-sizing:border-box;min-height:2.5rem;cursor:pointer}.MultiSelect_select_uJyTX ul li:after{content:"";position:absolute;top:0;left:0;background-color:transparent;width:100%;height:100%;opacity:.05}.MultiSelect_select_uJyTX ul li:focus,.MultiSelect_select_uJyTX ul li.MultiSelect_focus_uJyTX{outline:none}.MultiSelect_select_uJyTX ul li:focus:before,.MultiSelect_select_uJyTX ul li.MultiSelect_focus_uJyTX:before{content:"";position:absolute;top:0;left:.125rem;height:100%;width:calc(100% - .25rem);opacity:1;z-index:101;outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:0;border-radius:var(--focus-border-radius)}.MultiSelect_select_uJyTX ul li:hover:after,.MultiSelect_select_uJyTX ul li:active:after{background-color:var(--color-primary)}.MultiSelect_select_uJyTX ul li:active:after{opacity:.1}.MultiSelect_select_uJyTX ul li.MultiSelect_disabled_uJyTX{color:var(--greyed-out);background-color:var(--disabled);pointer-events:none}.MultiSelect_status_uJyTX{padding:.3125rem;display:flex;align-items:center}.MultiSelect_status_uJyTX [data-icon-status=success]{color:var(--success);font-size:var(--font-size-big)}.MultiSelect_status_uJyTX [data-icon-status=error]{color:var(--error);font-size:var(--font-size-big)}.MultiSelect_status_uJyTX .MultiSelect_chevron-icon_uJyTX{color:var(--default);font-size:var(--font-size-small)}.MultiSelect_status_uJyTX *+*{margin-left:1.25rem}.MultiSelect_placeholder_uJyTX{color:var(--greyed-out)}.MultiSelect_select-search_uJyTX{flex:1;box-sizing:border-box;border-bottom-left-radius:0;border-bottom-right-radius:0;border:0;background-color:transparent;color:var(--default);font-family:var(--font-family);font-size:calc(.83 * var(--font-size));line-height:1.3333;margin:0;padding:0}.MultiSelect_select-search_uJyTX:focus-visible,.MultiSelect_select-search_uJyTX:focus{outline:none}.MultiSelect_disabled_uJyTX{cursor:not-allowed;color:var(--greyed-out);background-color:var(--color-blue-grey25)}.MultiSelect_disabled_uJyTX>*{pointer-events:none}@media only screen and (min-width: 30em){.MultiSelect_select_uJyTX .MultiSelect_custom-select_uJyTX{padding:0 calc(.5 * var(--font-size) - var(--input-border-width))}.MultiSelect_select_uJyTX:not(.MultiSelect_expanded_uJyTX) .MultiSelect_custom-select_uJyTX:focus:not(.MultiSelect_error_uJyTX){padding:0 calc(.5 * var(--font-size) - var(--input-border-width))}}[data-readonlyview=true] .MultiSelect_custom-select_uJyTX{color:var(--read-only-text-color);border-color:var(--read-only-border-color);background-color:var(--color-white)}[data-readonlyview=true] .MultiSelect_custom-select_uJyTX.MultiSelect_error_uJyTX,[data-readonlyview=true] .MultiSelect_custom-select_uJyTX.MultiSelect_success_uJyTX{border-color:var(--read-only-border-color)}[data-readonlyview=true] .MultiSelect_custom-select_uJyTX button{pointer-events:none}[data-readonlyview=true] .MultiSelect_status_uJyTX .MultiSelect_chevron-icon_uJyTX{visibility:hidden}[data-readonlyview=true]:hover:not(.MultiSelect_disabled_uJyTX):not(.MultiSelect_expanded_uJyTX):not(.MultiSelect_error_uJyTX) .MultiSelect_custom-select_uJyTX:not(:focus){color:var(--read-only-text-color);border-color:var(--read-only-border-color);background-color:var(--color-white)}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
- const select = "MultiSelect_select_uJyTX";
3
- const expanded = "MultiSelect_expanded_uJyTX";
4
- const error = "MultiSelect_error_uJyTX";
5
- const disabled = "MultiSelect_disabled_uJyTX";
6
- const focus = "MultiSelect_focus_uJyTX";
7
- const status = "MultiSelect_status_uJyTX";
8
- const placeholder = "MultiSelect_placeholder_uJyTX";
9
- const success = "MultiSelect_success_uJyTX";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.MultiSelect_sr-only_HO9cY{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.MultiSelect_hidden_HO9cY{display:none}.MultiSelect_slide-in_HO9cY{animation:MultiSelect_slide-in_HO9cY .5s forwards}@media (prefers-reduced-motion: reduce){.MultiSelect_slide-in_HO9cY{animation-duration:.1ms}}.MultiSelect_slide-out_HO9cY{animation:MultiSelect_slide-out_HO9cY .5s forwards}@media (prefers-reduced-motion: reduce){.MultiSelect_slide-out_HO9cY{animation-duration:.1ms}}@keyframes MultiSelect_slide-in_HO9cY{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes MultiSelect_slide-out_HO9cY{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 */.MultiSelect_select_HO9cY{position:relative;box-sizing:border-box;border:0;border-radius:var(--input-border-radius);background-color:var(--input-background-color);font-size:var(--form-control-font-size);transition-property:background-color;transition-duration:.2s;transition-timing-function:ease-in-out}@media (prefers-reduced-motion: reduce){.MultiSelect_select_HO9cY{transition-duration:.1ms}}.MultiSelect_select_HO9cY [data-display]{color:var(--color-default);font-family:var(--font-family)}.MultiSelect_select_HO9cY.MultiSelect_expanded_HO9cY .MultiSelect_list-wrapper_HO9cY{background:var(--light)}.MultiSelect_select_HO9cY:not(.MultiSelect_expanded_HO9cY):has(button:focus){position:relative;z-index:2;outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:calc(.125 * var(--font-size));border-radius:var(--focus-border-radius)}.MultiSelect_select_HO9cY:not(.MultiSelect_expanded_HO9cY) .MultiSelect_custom-select_HO9cY:focus:not(.MultiSelect_error_HO9cY){border-color:var(--input-border-color);border-width:var(--input-border-width);padding:0 calc(.5 * var(--font-size) - var(--input-border-width))}.MultiSelect_select_HO9cY:hover:not(.MultiSelect_disabled_HO9cY):not(.MultiSelect_expanded_HO9cY):not(.MultiSelect_error_HO9cY) .MultiSelect_custom-select_HO9cY:not(:focus){border-color:var(--input-border-color);border-width:var(--input-border-width);background-color:var(--color-blue-grey25)}.MultiSelect_select_HO9cY .MultiSelect_custom-select_HO9cY{box-sizing:border-box;width:100%;min-height:calc(2.875 * var(--font-size) - 2 * var(--input-border-width));padding:0 calc(.5 * var(--font-size) - var(--input-border-width));background-color:transparent;border-color:var(--color-blue-grey500);border-style:var(--input-border-style);border-width:var(--input-border-width);border-radius:var(--input-border-radius);font-size:var(--form-control-font-size);transition-property:background-color,border-color;transition-duration:.2s;transition-timing-function:ease-in-out}@media (prefers-reduced-motion: reduce){.MultiSelect_select_HO9cY .MultiSelect_custom-select_HO9cY{transition-duration:.1ms}}.MultiSelect_select_HO9cY .MultiSelect_custom-select_HO9cY:focus-visible,.MultiSelect_select_HO9cY .MultiSelect_custom-select_HO9cY:focus{outline:none}.MultiSelect_select_HO9cY .MultiSelect_custom-select_HO9cY.MultiSelect_error_HO9cY{border-color:var(--error)}.MultiSelect_select_HO9cY .MultiSelect_custom-select_HO9cY.MultiSelect_error_HO9cY:focus{border-width:var(--input-border-width)}.MultiSelect_select_HO9cY .MultiSelect_custom-select_HO9cY.MultiSelect_disabled_HO9cY{border-color:var(--color-disabled);pointer-events:none}.MultiSelect_select_HO9cY .MultiSelect_custom-select_HO9cY .MultiSelect_display-container_HO9cY{flex:1;display:flex;align-items:center;padding:.1875rem 0;gap:.375rem}.MultiSelect_select_HO9cY .MultiSelect_list-wrapper-container_HO9cY{position:relative}.MultiSelect_select_HO9cY .MultiSelect_list-wrapper_HO9cY{border-color:var(--light-grey-border);border-style:var(--input-border-style);border-width:var(--input-border-width);border-radius:var(--input-border-radius);box-shadow:0 4px 5px #01053233;box-shadow:0 3px 14px #0105321f;box-shadow:0 8px 10px #01053224;position:absolute;z-index:11;left:0;width:100%;overflow:auto}.MultiSelect_select_HO9cY ul{box-sizing:border-box;padding:.25rem 0;width:100%;margin:0;list-style:none;background-color:var(--light);border-radius:var(--input-border-radius);color:var(--default);text-align:left;overflow:auto;max-height:25rem}.MultiSelect_select_HO9cY ul li{padding:.62rem .75rem;font-size:var(--form-control-font-size);font-family:var(--font-family);margin:0;position:relative;line-height:1.43;box-sizing:border-box;min-height:2.5rem;cursor:pointer}.MultiSelect_select_HO9cY ul li:after{content:"";position:absolute;top:0;left:0;background-color:transparent;width:100%;height:100%;opacity:.05}.MultiSelect_select_HO9cY ul li:focus,.MultiSelect_select_HO9cY ul li.MultiSelect_focus_HO9cY{outline:none}.MultiSelect_select_HO9cY ul li:focus:before,.MultiSelect_select_HO9cY ul li.MultiSelect_focus_HO9cY:before{content:"";position:absolute;top:0;left:.125rem;height:100%;width:calc(100% - .25rem);opacity:1;z-index:101;outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:0;border-radius:var(--focus-border-radius)}.MultiSelect_select_HO9cY ul li:hover:after,.MultiSelect_select_HO9cY ul li:active:after{background-color:var(--color-primary)}.MultiSelect_select_HO9cY ul li:active:after{opacity:.1}.MultiSelect_select_HO9cY ul li.MultiSelect_disabled_HO9cY{color:var(--greyed-out);background-color:var(--disabled);pointer-events:none}.MultiSelect_status_HO9cY{padding:.3125rem;display:flex;align-items:center}.MultiSelect_status_HO9cY [data-icon-status=success]{color:var(--success);font-size:var(--font-size-big)}.MultiSelect_status_HO9cY [data-icon-status=error]{color:var(--error);font-size:var(--font-size-big)}.MultiSelect_status_HO9cY .MultiSelect_chevron-icon_HO9cY{color:var(--default);font-size:var(--font-size-small)}.MultiSelect_status_HO9cY *+*{margin-left:1.25rem}.MultiSelect_placeholder_HO9cY{color:var(--greyed-out)}.MultiSelect_select-search_HO9cY{flex:1;box-sizing:border-box;border-bottom-left-radius:0;border-bottom-right-radius:0;border:0;background-color:transparent;color:var(--default);font-family:var(--font-family);font-size:calc(.83 * var(--font-size));line-height:1.3333;margin:0;padding:0}.MultiSelect_select-search_HO9cY:focus-visible,.MultiSelect_select-search_HO9cY:focus{outline:none}.MultiSelect_disabled_HO9cY{cursor:not-allowed;color:var(--greyed-out);background-color:var(--color-blue-grey25)}.MultiSelect_disabled_HO9cY>*{pointer-events:none}@media only screen and (min-width: 30em){.MultiSelect_select_HO9cY .MultiSelect_custom-select_HO9cY{padding:0 calc(.5 * var(--font-size) - var(--input-border-width))}.MultiSelect_select_HO9cY:not(.MultiSelect_expanded_HO9cY) .MultiSelect_custom-select_HO9cY:focus:not(.MultiSelect_error_HO9cY){padding:0 calc(.5 * var(--font-size) - var(--input-border-width))}}[data-readonlyview=true] .MultiSelect_custom-select_HO9cY{color:var(--read-only-text-color);border-color:var(--read-only-border-color);background-color:var(--color-white)}[data-readonlyview=true] .MultiSelect_custom-select_HO9cY.MultiSelect_error_HO9cY,[data-readonlyview=true] .MultiSelect_custom-select_HO9cY.MultiSelect_success_HO9cY{border-color:var(--read-only-border-color)}[data-readonlyview=true] .MultiSelect_custom-select_HO9cY button{pointer-events:none}[data-readonlyview=true] .MultiSelect_status_HO9cY .MultiSelect_chevron-icon_HO9cY{visibility:hidden}[data-readonlyview=true]:hover:not(.MultiSelect_disabled_HO9cY):not(.MultiSelect_expanded_HO9cY):not(.MultiSelect_error_HO9cY) .MultiSelect_custom-select_HO9cY:not(:focus){color:var(--read-only-text-color);border-color:var(--read-only-border-color);background-color:var(--color-white)}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
+ const select = "MultiSelect_select_HO9cY";
3
+ const expanded = "MultiSelect_expanded_HO9cY";
4
+ const error = "MultiSelect_error_HO9cY";
5
+ const disabled = "MultiSelect_disabled_HO9cY";
6
+ const focus = "MultiSelect_focus_HO9cY";
7
+ const status = "MultiSelect_status_HO9cY";
8
+ const placeholder = "MultiSelect_placeholder_HO9cY";
9
+ const success = "MultiSelect_success_HO9cY";
10
10
  const classes = {
11
11
  select,
12
12
  expanded,
13
- "list-wrapper": "MultiSelect_list-wrapper_uJyTX",
14
- "custom-select": "MultiSelect_custom-select_uJyTX",
13
+ "list-wrapper": "MultiSelect_list-wrapper_HO9cY",
14
+ "custom-select": "MultiSelect_custom-select_HO9cY",
15
15
  error,
16
16
  disabled,
17
- "display-container": "MultiSelect_display-container_uJyTX",
18
- "list-wrapper-container": "MultiSelect_list-wrapper-container_uJyTX",
17
+ "display-container": "MultiSelect_display-container_HO9cY",
18
+ "list-wrapper-container": "MultiSelect_list-wrapper-container_HO9cY",
19
19
  focus,
20
20
  status,
21
- "chevron-icon": "MultiSelect_chevron-icon_uJyTX",
21
+ "chevron-icon": "MultiSelect_chevron-icon_HO9cY",
22
22
  placeholder,
23
- "select-search": "MultiSelect_select-search_uJyTX",
23
+ "select-search": "MultiSelect_select-search_HO9cY",
24
24
  success
25
25
  };
26
26
  export {
@@ -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 */.SelectButton_btn_uJyTX{position:absolute;top:0;left:0;height:100%;width:100%;border:0;padding:0;background:none;cursor:pointer;outline:0}')),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="SelectButton_btn_uJyTX",t={btn:e};exports.btn=e,exports.default=t;
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 */.SelectButton_btn_HO9cY{position:absolute;top:0;left:0;height:100%;width:100%;border:0;padding:0;background:none;cursor:pointer;outline:0}')),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="SelectButton_btn_HO9cY",t={btn:e};exports.btn=e,exports.default=t;
3
3
  //# sourceMappingURL=SelectButton.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 */.SelectButton_btn_uJyTX{position:absolute;top:0;left:0;height:100%;width:100%;border:0;padding:0;background:none;cursor:pointer;outline:0}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
- const btn = "SelectButton_btn_uJyTX";
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 */.SelectButton_btn_HO9cY{position:absolute;top:0;left:0;height:100%;width:100%;border:0;padding:0;background:none;cursor:pointer;outline:0}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
+ const btn = "SelectButton_btn_HO9cY";
3
3
  const classes = {
4
4
  btn
5
5
  };
@@ -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 */.SelectedOptions_options_uJyTX{position:relative;display:flex;gap:.375rem;flex-wrap:wrap;cursor:pointer}.SelectedOptions_tag_uJyTX{cursor:text}.SelectedOptions_tag_uJyTX .SelectedOptions_remove-btn_uJyTX{cursor:pointer}[data-readonlyview=true] .SelectedOptions_tag_uJyTX .SelectedOptions_remove-btn_uJyTX{display:none}')),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="SelectedOptions_options_uJyTX",t="SelectedOptions_tag_uJyTX",o={options:e,tag:t,"remove-btn":"SelectedOptions_remove-btn_uJyTX"};exports.default=o,exports.options=e,exports.tag=t;
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 */.SelectedOptions_options_HO9cY{position:relative;display:flex;gap:.375rem;flex-wrap:wrap;cursor:pointer}.SelectedOptions_tag_HO9cY{cursor:text}.SelectedOptions_tag_HO9cY .SelectedOptions_remove-btn_HO9cY{cursor:pointer}[data-readonlyview=true] .SelectedOptions_tag_HO9cY .SelectedOptions_remove-btn_HO9cY{display:none}')),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="SelectedOptions_options_HO9cY",t="SelectedOptions_tag_HO9cY",o={options:e,tag:t,"remove-btn":"SelectedOptions_remove-btn_HO9cY"};exports.default=o,exports.options=e,exports.tag=t;
3
3
  //# sourceMappingURL=SelectedOptions.module.scss.cjs.js.map
@@ -1,10 +1,10 @@
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 */.SelectedOptions_options_uJyTX{position:relative;display:flex;gap:.375rem;flex-wrap:wrap;cursor:pointer}.SelectedOptions_tag_uJyTX{cursor:text}.SelectedOptions_tag_uJyTX .SelectedOptions_remove-btn_uJyTX{cursor:pointer}[data-readonlyview=true] .SelectedOptions_tag_uJyTX .SelectedOptions_remove-btn_uJyTX{display:none}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
- const options = "SelectedOptions_options_uJyTX";
3
- const tag = "SelectedOptions_tag_uJyTX";
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 */.SelectedOptions_options_HO9cY{position:relative;display:flex;gap:.375rem;flex-wrap:wrap;cursor:pointer}.SelectedOptions_tag_HO9cY{cursor:text}.SelectedOptions_tag_HO9cY .SelectedOptions_remove-btn_HO9cY{cursor:pointer}[data-readonlyview=true] .SelectedOptions_tag_HO9cY .SelectedOptions_remove-btn_HO9cY{display:none}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
+ const options = "SelectedOptions_options_HO9cY";
3
+ const tag = "SelectedOptions_tag_HO9cY";
4
4
  const classes = {
5
5
  options,
6
6
  tag,
7
- "remove-btn": "SelectedOptions_remove-btn_uJyTX"
7
+ "remove-btn": "SelectedOptions_remove-btn_HO9cY"
8
8
  };
9
9
  export {
10
10
  classes as default,
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");exports.useSearch=({selectId:r,search:a,optionsCount:t,searchInputClassName:o,expanded:l,setFocusedSelectItem:s,focusedSelectItem:n,describedBy:c,getOptionId:u,getListboxId:d})=>{var i;const[p,h]=e.useState(""),v=e.useRef(null),b=(null==a?void 0:a.renderThreshold)??0,f=t>=b,m=()=>{h(""),s(0)},I=(null==a?void 0:a.enabled)?f:a?a.enabled:t>0;return e.useEffect((()=>{var e;(null==(e=null==a?void 0:a.searchInputProps)?void 0:e.reset)&&m()}),[null==(i=null==a?void 0:a.searchInputProps)?void 0:i.reset]),{renderSearch:()=>{var t;return e.createElement("input",{...(null==a?void 0:a.searchInputProps)??{},ref:v,value:p,onChange:e=>h(e.currentTarget.value),className:[o,null==(t=null==a?void 0:a.searchInputProps)?void 0:t.className].join(" "),style:{display:l?"block":"none"},type:"text",name:"search-option",placeholder:null==a?void 0:a.searchPlaceholder,role:"combobox",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-controls":d(r),"aria-describedby":c,"aria-autocomplete":"none","aria-expanded":l,"aria-activedescendant":u(r,n),"aria-haspopup":!0})},resetSearchState:m,searchVisible:I,searchThreshold:b,searchInputRef:v,filter:p}};
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),r=require("../../../../util/helper.cjs.js");exports.useSearch=({selectId:t,search:a,optionsCount:s,searchInputClassName:l,expanded:o,setFocusedSelectItem:n,focusedSelectItem:c,describedBy:u,getOptionId:i,getListboxId:d})=>{var p;const[h,v]=e.useState(""),f=e.useRef(null),b=(null==a?void 0:a.renderThreshold)??0,m=s>=b,I=()=>{v(""),n(0)},x=(null==a?void 0:a.enabled)?m:a?a.enabled:s>0;return e.useEffect((()=>{var e;(null==(e=null==a?void 0:a.searchInputProps)?void 0:e.reset)&&I()}),[null==(p=null==a?void 0:a.searchInputProps)?void 0:p.reset]),{renderSearch:()=>{var s;const n=r.filterProps((null==a?void 0:a.searchInputProps)??{},/^(reset|prefix|suffix|wrapperProps|labeledBy|readOnlyView|error|success)$/,!1);return e.createElement("input",{...n,ref:f,value:h,onChange:e=>v(e.currentTarget.value),className:[l,null==(s=null==a?void 0:a.searchInputProps)?void 0:s.className].join(" "),style:{display:o?"block":"none"},type:"text",name:"search-option",placeholder:null==a?void 0:a.searchPlaceholder,role:"combobox",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-controls":d(t),"aria-describedby":u,"aria-autocomplete":"none","aria-expanded":o,"aria-activedescendant":i(t,c),"aria-haspopup":!0})},resetSearchState:I,searchVisible:x,searchThreshold:b,searchInputRef:f,filter:h}};
2
2
  //# sourceMappingURL=useSearch.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSearch.cjs.js","sources":["../../../../../src/components/Form/Select/MultiSelect/useSearch.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, { useEffect, useRef, useState } from \"react\";\nimport { SearchProps } from \"../Select.interfaces\";\n\ninterface Props {\n selectId: string;\n search?: SearchProps;\n optionsCount: number;\n searchInputClassName: string;\n expanded: boolean;\n setFocusedSelectItem: (idx: number) => void;\n focusedSelectItem: number;\n describedBy?: string;\n getOptionId: (multiSelectId: string, optionIndex: number) => string;\n getListboxId: (multiSelectId: string) => string;\n}\n\n/** @scope .*/\nexport const useSearch = ({\n selectId,\n search,\n optionsCount,\n searchInputClassName,\n expanded,\n setFocusedSelectItem,\n focusedSelectItem,\n describedBy,\n getOptionId,\n getListboxId\n}: Props) => {\n const [filter, setFilter] = useState(\"\");\n\n const DEFAULT_RENDER_THRESHOLD = 0;\n\n const searchInputRef = useRef<HTMLInputElement>(null);\n\n const threshold = search?.renderThreshold ?? DEFAULT_RENDER_THRESHOLD;\n const hasEnoughChildren = optionsCount >= threshold;\n\n const shouldRenderSearch = () => {\n if (search?.enabled) {\n return hasEnoughChildren;\n }\n\n if (search) {\n return search.enabled as boolean;\n }\n\n return optionsCount > DEFAULT_RENDER_THRESHOLD;\n };\n\n const renderSearch = () => {\n return (\n <input\n /* eslint-disable-next-line @typescript-eslint/no-explicit-any */\n {...((search?.searchInputProps as any) ?? {})}\n ref={searchInputRef}\n value={filter}\n onChange={event => setFilter(event.currentTarget.value)}\n className={[searchInputClassName, search?.searchInputProps?.className].join(\" \")}\n style={{\n display: expanded ? \"block\" : \"none\"\n }}\n type=\"text\"\n name=\"search-option\"\n placeholder={search?.searchPlaceholder}\n role=\"combobox\"\n autoComplete=\"off\"\n autoCorrect=\"off\"\n spellCheck={false}\n aria-controls={getListboxId(selectId)}\n aria-describedby={describedBy}\n aria-autocomplete=\"none\"\n aria-expanded={expanded}\n aria-activedescendant={getOptionId(selectId, focusedSelectItem)}\n aria-haspopup={true}\n />\n );\n };\n\n const resetSearchState = () => {\n setFilter(\"\");\n setFocusedSelectItem(0);\n };\n\n const visible = shouldRenderSearch();\n\n useEffect(() => {\n if (search?.searchInputProps?.reset) {\n resetSearchState();\n }\n }, [search?.searchInputProps?.reset]);\n\n return {\n renderSearch,\n resetSearchState,\n searchVisible: visible,\n searchThreshold: threshold,\n searchInputRef,\n filter\n };\n};\n"],"names":["selectId","search","optionsCount","searchInputClassName","expanded","setFocusedSelectItem","focusedSelectItem","describedBy","getOptionId","getListboxId","filter","setFilter","useState","searchInputRef","useRef","threshold","renderThreshold","hasEnoughChildren","resetSearchState","visible","enabled","useEffect","_a","searchInputProps","reset","renderSearch","React","createElement","ref","value","onChange","event","currentTarget","className","join","style","display","type","name","placeholder","searchPlaceholder","role","autoComplete","autoCorrect","spellCheck","searchVisible","searchThreshold"],"mappings":"2HAiCyB,EACvBA,WACAC,SACAC,eACAC,uBACAC,WACAC,uBACAC,oBACAC,cACAC,cACAC,yBAEA,MAAOC,EAAQC,GAAaC,EAAAA,SAAS,IAI/BC,EAAiBC,SAAyB,MAE1CC,SAAYd,WAAQe,kBAJO,EAK3BC,EAAoBf,GAAgBa,EA2CpCG,EAAmB,KACvBP,EAAU,IACVN,EAAqB,EAAC,EAGlBc,SA7CAlB,WAAQmB,SACHH,EAGLhB,EACKA,EAAOmB,QAGTlB,EAhBwB,EA6D1B,OANPmB,EAAAA,WAAU,YACJ,OAAAC,EAAA,MAAArB,OAAA,EAAAA,EAAQsB,uBAAR,EAAAD,EAA0BE,QACXN,GAAA,GAElB,CAAC,OAAAI,EAAA,MAAArB,OAAA,EAAAA,EAAQsB,uBAAR,EAAAD,EAA0BE,QAEvB,CACLC,aA3CmB,WAEjB,OAAAC,EAAAC,cAAC,QAAA,KAEe,MAAR1B,OAAQ,EAAAA,EAAAsB,mBAA4B,CAAC,EAC3CK,IAAKf,EACLgB,MAAOnB,EACPoB,SAAUC,GAASpB,EAAUoB,EAAMC,cAAcH,OACjDI,UAAW,CAAC9B,EAAsB,OAAAmB,EAAA,MAAArB,OAAA,EAAAA,EAAQsB,uBAAR,EAAAD,EAA0BW,WAAWC,KAAK,KAC5EC,MAAO,CACLC,QAAShC,EAAW,QAAU,QAEhCiC,KAAK,OACLC,KAAK,gBACLC,YAAqB,MAARtC,OAAQ,EAAAA,EAAAuC,kBACrBC,KAAK,WACLC,aAAa,MACbC,YAAY,MACZC,YAAY,EACZ,gBAAenC,EAAaT,GAC5B,mBAAkBO,EAClB,oBAAkB,OAClB,gBAAeH,EACf,wBAAuBI,EAAYR,EAAUM,GAC7C,iBAAe,GACjB,EAmBFY,mBACA2B,cAAe1B,EACf2B,gBAAiB/B,EACjBF,iBACAH,SACF"}
1
+ {"version":3,"file":"useSearch.cjs.js","sources":["../../../../../src/components/Form/Select/MultiSelect/useSearch.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, { useEffect, useRef, useState } from \"react\";\nimport { SearchProps } from \"../Select.interfaces\";\nimport { filterProps } from \"../../../../util/helper\";\n\ninterface Props {\n selectId: string;\n search?: SearchProps;\n optionsCount: number;\n searchInputClassName: string;\n expanded: boolean;\n setFocusedSelectItem: (idx: number) => void;\n focusedSelectItem: number;\n describedBy?: string;\n getOptionId: (multiSelectId: string, optionIndex: number) => string;\n getListboxId: (multiSelectId: string) => string;\n}\n\n/** @scope .*/\nexport const useSearch = ({\n selectId,\n search,\n optionsCount,\n searchInputClassName,\n expanded,\n setFocusedSelectItem,\n focusedSelectItem,\n describedBy,\n getOptionId,\n getListboxId\n}: Props) => {\n const [filter, setFilter] = useState(\"\");\n\n const DEFAULT_RENDER_THRESHOLD = 0;\n\n const searchInputRef = useRef<HTMLInputElement>(null);\n\n const threshold = search?.renderThreshold ?? DEFAULT_RENDER_THRESHOLD;\n const hasEnoughChildren = optionsCount >= threshold;\n\n const shouldRenderSearch = () => {\n if (search?.enabled) {\n return hasEnoughChildren;\n }\n\n if (search) {\n return search.enabled as boolean;\n }\n\n return optionsCount > DEFAULT_RENDER_THRESHOLD;\n };\n\n const renderSearch = () => {\n // Filter out non-native HTML input attributes\n const filteredProps = filterProps(\n search?.searchInputProps ?? {},\n /^(reset|prefix|suffix|wrapperProps|labeledBy|readOnlyView|error|success)$/,\n false\n );\n\n return (\n <input\n {...filteredProps}\n ref={searchInputRef}\n value={filter}\n onChange={event => setFilter(event.currentTarget.value)}\n className={[searchInputClassName, search?.searchInputProps?.className].join(\" \")}\n style={{\n display: expanded ? \"block\" : \"none\"\n }}\n type=\"text\"\n name=\"search-option\"\n placeholder={search?.searchPlaceholder}\n role=\"combobox\"\n autoComplete=\"off\"\n autoCorrect=\"off\"\n spellCheck={false}\n aria-controls={getListboxId(selectId)}\n aria-describedby={describedBy}\n aria-autocomplete=\"none\"\n aria-expanded={expanded}\n aria-activedescendant={getOptionId(selectId, focusedSelectItem)}\n aria-haspopup={true}\n />\n );\n };\n\n const resetSearchState = () => {\n setFilter(\"\");\n setFocusedSelectItem(0);\n };\n\n const visible = shouldRenderSearch();\n\n useEffect(() => {\n if (search?.searchInputProps?.reset) {\n resetSearchState();\n }\n }, [search?.searchInputProps?.reset]);\n\n return {\n renderSearch,\n resetSearchState,\n searchVisible: visible,\n searchThreshold: threshold,\n searchInputRef,\n filter\n };\n};\n"],"names":["selectId","search","optionsCount","searchInputClassName","expanded","setFocusedSelectItem","focusedSelectItem","describedBy","getOptionId","getListboxId","filter","setFilter","useState","searchInputRef","useRef","threshold","renderThreshold","hasEnoughChildren","resetSearchState","visible","enabled","useEffect","_a","searchInputProps","reset","renderSearch","filteredProps","filterProps","React","createElement","ref","value","onChange","event","currentTarget","className","join","style","display","type","name","placeholder","searchPlaceholder","role","autoComplete","autoCorrect","spellCheck","searchVisible","searchThreshold"],"mappings":"uKAkCyB,EACvBA,WACAC,SACAC,eACAC,uBACAC,WACAC,uBACAC,oBACAC,cACAC,cACAC,yBAEA,MAAOC,EAAQC,GAAaC,EAAAA,SAAS,IAI/BC,EAAiBC,SAAyB,MAE1CC,SAAYd,WAAQe,kBAJO,EAK3BC,EAAoBf,GAAgBa,EAiDpCG,EAAmB,KACvBP,EAAU,IACVN,EAAqB,EAAC,EAGlBc,SAnDAlB,WAAQmB,SACHH,EAGLhB,EACKA,EAAOmB,QAGTlB,EAhBwB,EAmE1B,OANPmB,EAAAA,WAAU,YACJ,OAAAC,EAAA,MAAArB,OAAA,EAAAA,EAAQsB,uBAAR,EAAAD,EAA0BE,QACXN,GAAA,GAElB,CAAC,OAAAI,EAAA,MAAArB,OAAA,EAAAA,EAAQsB,uBAAR,EAAAD,EAA0BE,QAEvB,CACLC,aAjDmB,WAEnB,MAAMC,EAAgBC,EAAAA,aACpB,MAAA1B,OAAA,EAAAA,EAAQsB,mBAAoB,CAAC,EAC7B,6EACA,GAIA,OAAAK,EAAAC,cAAC,QAAA,IACKH,EACJI,IAAKjB,EACLkB,MAAOrB,EACPsB,SAAUC,GAAStB,EAAUsB,EAAMC,cAAcH,OACjDI,UAAW,CAAChC,EAAsB,OAAAmB,EAAA,MAAArB,OAAA,EAAAA,EAAQsB,uBAAR,EAAAD,EAA0Ba,WAAWC,KAAK,KAC5EC,MAAO,CACLC,QAASlC,EAAW,QAAU,QAEhCmC,KAAK,OACLC,KAAK,gBACLC,YAAqB,MAARxC,OAAQ,EAAAA,EAAAyC,kBACrBC,KAAK,WACLC,aAAa,MACbC,YAAY,MACZC,YAAY,EACZ,gBAAerC,EAAaT,GAC5B,mBAAkBO,EAClB,oBAAkB,OAClB,gBAAeH,EACf,wBAAuBI,EAAYR,EAAUM,GAC7C,iBAAe,GACjB,EAmBFY,mBACA6B,cAAe5B,EACf6B,gBAAiBjC,EACjBF,iBACAH,SACF"}