@onewelcome/react-lib-components 8.15.0 → 8.16.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.
- package/dist/cjs/Breadcrumbs/Breadcrumbs.module.scss.cjs.js +1 -1
- package/dist/cjs/Button/BaseButton.module.scss.cjs.js +1 -1
- package/dist/cjs/Button/Button.module.scss.cjs.js +1 -1
- package/dist/cjs/Button/IconButton.module.scss.cjs.js +1 -1
- package/dist/cjs/ContextMenu/ContextMenu.module.scss.cjs.js +1 -1
- package/dist/cjs/ContextMenu/ContextMenuItem.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGrid.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridActions/DataGridActions.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridBody/DataGridBody.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridFilters/DataGridFilter.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridFilters/DataGridToolbar.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridHeader/DataGridHeader.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.cjs.js +1 -1
- package/dist/cjs/DatePicker/DatePicker.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Checkbox/Checkbox.cjs.js +1 -1
- package/dist/cjs/Form/Checkbox/Checkbox.cjs.js.map +1 -1
- package/dist/cjs/Form/Checkbox/Checkbox.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Fieldset/Fieldset.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/FileUpload/FileItem/FileItem.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/FileUpload/FileUpload.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Form.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/FormControl/FormControl.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/FormErrorText/FormErrorText.cjs.js +2 -0
- package/dist/cjs/Form/FormErrorText/FormErrorText.cjs.js.map +1 -0
- package/dist/cjs/Form/FormErrorText/FormErrorText.module.scss.cjs.js +2 -0
- package/dist/cjs/Form/FormErrorText/FormErrorText.module.scss.cjs.js.map +1 -0
- package/dist/cjs/Form/FormGroup/FormGroup.cjs.js +1 -1
- package/dist/cjs/Form/FormGroup/FormGroup.cjs.js.map +1 -1
- package/dist/cjs/Form/FormGroup/FormGroup.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/FormHelperText/FormHelperText.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/FormSelectorWrapper/FormSelectorWrapper.cjs.js +1 -1
- package/dist/cjs/Form/FormSelectorWrapper/FormSelectorWrapper.cjs.js.map +1 -1
- package/dist/cjs/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Input/Input.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Label/Label.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Radio/Radio.cjs.js +1 -1
- package/dist/cjs/Form/Radio/Radio.cjs.js.map +1 -1
- package/dist/cjs/Form/Radio/Radio.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Select/MultiSelect/MultiSelect.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Select/MultiSelect/SelectButton.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Select/MultiSelect/SelectedOptions.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Select/SingleSelect/Select.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Select/useAddNewBtn.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Textarea/Textarea.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Toggle/Toggle.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.cjs.js.map +1 -1
- package/dist/cjs/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/InputWrapper/InputWrapper.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js.map +1 -1
- package/dist/cjs/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/Wrapper/Wrapper.module.scss.cjs.js +1 -1
- package/dist/cjs/Icon/Icon.module.scss.cjs.js +1 -1
- package/dist/cjs/Layout/ContentHeader/ContentHeader.module.scss.cjs.js +1 -1
- package/dist/cjs/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.cjs.js +1 -1
- package/dist/cjs/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.cjs.js +1 -1
- package/dist/cjs/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.cjs.js +1 -1
- package/dist/cjs/Link/Link.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/Alert/AlertContainer/AlertContainer.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/Alert/AlertItem/AlertItem.cjs.js.map +1 -1
- package/dist/cjs/Notifications/Alert/AlertItem/AlertItem.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/Alert/AlertProvider/AlertProvider.cjs.js +1 -1
- package/dist/cjs/Notifications/Alert/AlertProvider/AlertProvider.cjs.js.map +1 -1
- package/dist/cjs/Notifications/Banner/Banner.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/BaseModal/BaseModal.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/Dialog/Dialog.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/Dialog/DialogActions/DialogActions.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/SideSheet/SideSheet.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/SlideInModal/SlideInModal.module.scss.cjs.js +1 -1
- package/dist/cjs/Pagination/Pagination.module.scss.cjs.js +1 -1
- package/dist/cjs/Popover/Popover.module.scss.cjs.js +1 -1
- package/dist/cjs/ProgressBar/ProgressBar.module.scss.cjs.js +1 -1
- package/dist/cjs/Skeleton/Skeleton.module.scss.cjs.js +1 -1
- package/dist/cjs/Spinner/Spinner.module.scss.cjs.js +1 -1
- package/dist/cjs/Stepper/Step.module.scss.cjs.js +1 -1
- package/dist/cjs/Stepper/Stepper.module.scss.cjs.js +1 -1
- package/dist/cjs/Tabs/Tab.module.scss.cjs.js +1 -1
- package/dist/cjs/Tabs/TabButton.module.scss.cjs.js +1 -1
- package/dist/cjs/Tabs/Tabs.module.scss.cjs.js +1 -1
- package/dist/cjs/Tag/RemoveButton.module.scss.cjs.js +1 -1
- package/dist/cjs/Tag/Tag.module.scss.cjs.js +1 -1
- package/dist/cjs/TextEllipsis/TextEllipsis.module.scss.cjs.js +1 -1
- package/dist/cjs/Tiles/Tile.module.scss.cjs.js +1 -1
- package/dist/cjs/Tiles/Tiles.module.scss.cjs.js +1 -1
- package/dist/cjs/Tooltip/Tooltip.cjs.js +1 -1
- package/dist/cjs/Tooltip/Tooltip.cjs.js.map +1 -1
- package/dist/cjs/Tooltip/Tooltip.module.scss.cjs.js +1 -1
- package/dist/cjs/Typography/Typography.module.scss.cjs.js +1 -1
- package/dist/cjs/_BaseStyling_/BaseStyling.cjs.js +1 -1
- package/dist/cjs/_BaseStyling_/BaseStyling.cjs.js.map +1 -1
- package/dist/cjs/admin/layout/LeftNav/LeftNav.module.scss.cjs.js +1 -1
- package/dist/cjs/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.cjs.js +1 -1
- package/dist/cjs/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.cjs.js +1 -1
- package/dist/cjs/miscellaneous/IdentityProviderButton.module.scss.cjs.js +1 -1
- package/dist/cjs/src/components/Form/Checkbox/Checkbox.d.ts +1 -1
- package/dist/cjs/src/components/Form/FormErrorText/FormErrorText.d.ts +12 -0
- package/dist/cjs/src/components/Form/FormErrorText/FormErrorText.test.d.ts +1 -0
- package/dist/cjs/src/components/Form/Radio/Radio.d.ts +1 -1
- package/dist/cjs/src/components/Form/form.interfaces.d.ts +2 -0
- package/dist/cjs/src/components/Notifications/Alert/AlertItem/AlertItem.d.ts +2 -2
- package/dist/cjs/src/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/cjs/src/readyclasses.module.scss.cjs.js +1 -1
- package/dist/esm/Breadcrumbs/Breadcrumbs.module.scss.esm.js +2 -2
- package/dist/esm/Button/BaseButton.module.scss.esm.js +2 -2
- package/dist/esm/Button/Button.module.scss.esm.js +2 -2
- package/dist/esm/Button/IconButton.module.scss.esm.js +2 -2
- package/dist/esm/ContextMenu/ContextMenu.module.scss.esm.js +2 -2
- package/dist/esm/ContextMenu/ContextMenuItem.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGrid.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridActions/DataGridActions.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridBody/DataGridBody.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridFilters/DataGridFilter.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridFilters/DataGridToolbar.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridHeader/DataGridHeader.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.esm.js +2 -2
- package/dist/esm/DatePicker/DatePicker.module.scss.esm.js +2 -2
- package/dist/esm/Form/Checkbox/Checkbox.esm.js +5 -2
- package/dist/esm/Form/Checkbox/Checkbox.esm.js.map +1 -1
- package/dist/esm/Form/Checkbox/Checkbox.module.scss.esm.js +2 -2
- package/dist/esm/Form/Fieldset/Fieldset.module.scss.esm.js +2 -2
- package/dist/esm/Form/FileUpload/FileItem/FileItem.module.scss.esm.js +2 -2
- package/dist/esm/Form/FileUpload/FileUpload.module.scss.esm.js +2 -2
- package/dist/esm/Form/Form.module.scss.esm.js +2 -2
- package/dist/esm/Form/FormControl/FormControl.module.scss.esm.js +2 -2
- package/dist/esm/Form/FormErrorText/FormErrorText.esm.js +33 -0
- package/dist/esm/Form/FormErrorText/FormErrorText.esm.js.map +1 -0
- package/dist/esm/Form/FormErrorText/FormErrorText.module.scss.esm.js +8 -0
- package/dist/esm/Form/FormErrorText/FormErrorText.module.scss.esm.js.map +1 -0
- package/dist/esm/Form/FormGroup/FormGroup.esm.js +10 -9
- package/dist/esm/Form/FormGroup/FormGroup.esm.js.map +1 -1
- package/dist/esm/Form/FormGroup/FormGroup.module.scss.esm.js +2 -2
- package/dist/esm/Form/FormHelperText/FormHelperText.module.scss.esm.js +2 -2
- package/dist/esm/Form/FormSelectorWrapper/FormSelectorWrapper.esm.js +7 -2
- package/dist/esm/Form/FormSelectorWrapper/FormSelectorWrapper.esm.js.map +1 -1
- package/dist/esm/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.esm.js +2 -2
- package/dist/esm/Form/Input/Input.module.scss.esm.js +2 -2
- package/dist/esm/Form/Label/Label.module.scss.esm.js +2 -2
- package/dist/esm/Form/Radio/Radio.esm.js +9 -5
- package/dist/esm/Form/Radio/Radio.esm.js.map +1 -1
- package/dist/esm/Form/Radio/Radio.module.scss.esm.js +2 -2
- package/dist/esm/Form/Select/MultiSelect/MultiSelect.module.scss.esm.js +2 -2
- package/dist/esm/Form/Select/MultiSelect/SelectButton.module.scss.esm.js +2 -2
- package/dist/esm/Form/Select/MultiSelect/SelectedOptions.module.scss.esm.js +2 -2
- package/dist/esm/Form/Select/SingleSelect/Select.module.scss.esm.js +2 -2
- package/dist/esm/Form/Select/useAddNewBtn.module.scss.esm.js +2 -2
- package/dist/esm/Form/Textarea/Textarea.module.scss.esm.js +2 -2
- package/dist/esm/Form/Toggle/Toggle.module.scss.esm.js +2 -2
- package/dist/esm/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.esm.js +5 -2
- package/dist/esm/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.esm.js.map +1 -1
- package/dist/esm/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.esm.js +2 -2
- package/dist/esm/Form/Wrapper/InputWrapper/InputWrapper.module.scss.esm.js +2 -2
- package/dist/esm/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.esm.js +2 -2
- package/dist/esm/Form/Wrapper/RadioWrapper/RadioWrapper.esm.js +6 -3
- package/dist/esm/Form/Wrapper/RadioWrapper/RadioWrapper.esm.js.map +1 -1
- package/dist/esm/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.esm.js +2 -2
- package/dist/esm/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.esm.js +2 -2
- package/dist/esm/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.esm.js +2 -2
- package/dist/esm/Form/Wrapper/Wrapper/Wrapper.module.scss.esm.js +2 -2
- package/dist/esm/Icon/Icon.module.scss.esm.js +2 -2
- package/dist/esm/Layout/ContentHeader/ContentHeader.module.scss.esm.js +2 -2
- package/dist/esm/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.esm.js +2 -2
- package/dist/esm/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.esm.js +2 -2
- package/dist/esm/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.esm.js +2 -2
- package/dist/esm/Link/Link.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/Alert/AlertContainer/AlertContainer.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/Alert/AlertItem/AlertItem.esm.js.map +1 -1
- package/dist/esm/Notifications/Alert/AlertItem/AlertItem.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/Alert/AlertProvider/AlertProvider.esm.js +3 -3
- package/dist/esm/Notifications/Alert/AlertProvider/AlertProvider.esm.js.map +1 -1
- package/dist/esm/Notifications/Banner/Banner.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/BaseModal/BaseModal.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/Dialog/Dialog.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/Dialog/DialogActions/DialogActions.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/SideSheet/SideSheet.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/SlideInModal/SlideInModal.module.scss.esm.js +2 -2
- package/dist/esm/Pagination/Pagination.module.scss.esm.js +2 -2
- package/dist/esm/Popover/Popover.module.scss.esm.js +2 -2
- package/dist/esm/ProgressBar/ProgressBar.module.scss.esm.js +2 -2
- package/dist/esm/Skeleton/Skeleton.module.scss.esm.js +2 -2
- package/dist/esm/Spinner/Spinner.module.scss.esm.js +2 -2
- package/dist/esm/Stepper/Step.module.scss.esm.js +2 -2
- package/dist/esm/Stepper/Stepper.module.scss.esm.js +2 -2
- package/dist/esm/Tabs/Tab.module.scss.esm.js +2 -2
- package/dist/esm/Tabs/TabButton.module.scss.esm.js +2 -2
- package/dist/esm/Tabs/Tabs.module.scss.esm.js +2 -2
- package/dist/esm/Tag/RemoveButton.module.scss.esm.js +2 -2
- package/dist/esm/Tag/Tag.module.scss.esm.js +2 -2
- package/dist/esm/TextEllipsis/TextEllipsis.module.scss.esm.js +2 -2
- package/dist/esm/Tiles/Tile.module.scss.esm.js +2 -2
- package/dist/esm/Tiles/Tiles.module.scss.esm.js +2 -2
- package/dist/esm/Tooltip/Tooltip.esm.js +4 -1
- package/dist/esm/Tooltip/Tooltip.esm.js.map +1 -1
- package/dist/esm/Tooltip/Tooltip.module.scss.esm.js +2 -2
- package/dist/esm/Typography/Typography.module.scss.esm.js +2 -2
- package/dist/esm/_BaseStyling_/BaseStyling.esm.js +1 -1
- package/dist/esm/_BaseStyling_/BaseStyling.esm.js.map +1 -1
- package/dist/esm/admin/layout/LeftNav/LeftNav.module.scss.esm.js +2 -2
- package/dist/esm/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.esm.js +2 -2
- package/dist/esm/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.esm.js +2 -2
- package/dist/esm/miscellaneous/IdentityProviderButton.module.scss.esm.js +2 -2
- package/dist/esm/src/components/Form/Checkbox/Checkbox.d.ts +1 -1
- package/dist/esm/src/components/Form/FormErrorText/FormErrorText.d.ts +12 -0
- package/dist/esm/src/components/Form/FormErrorText/FormErrorText.test.d.ts +1 -0
- package/dist/esm/src/components/Form/Radio/Radio.d.ts +1 -1
- package/dist/esm/src/components/Form/form.interfaces.d.ts +2 -0
- package/dist/esm/src/components/Notifications/Alert/AlertItem/AlertItem.d.ts +2 -2
- package/dist/esm/src/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/esm/src/readyclasses.module.scss.esm.js +2 -2
- package/package.json +1 -1
- package/src/components/Form/Checkbox/Checkbox.module.scss +6 -0
- package/src/components/Form/Checkbox/Checkbox.tsx +6 -1
- package/src/components/Form/FormErrorText/FormErrorText.module.scss +35 -0
- package/src/components/Form/FormErrorText/FormErrorText.tsx +65 -0
- package/src/components/Form/FormGroup/FormGroup.module.scss +0 -19
- package/src/components/Form/FormGroup/FormGroup.tsx +20 -30
- package/src/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss +0 -4
- package/src/components/Form/FormSelectorWrapper/FormSelectorWrapper.tsx +24 -18
- package/src/components/Form/Radio/Radio.module.scss +10 -6
- package/src/components/Form/Radio/Radio.tsx +15 -5
- package/src/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss +3 -1
- package/src/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.tsx +14 -4
- package/src/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss +3 -1
- package/src/components/Form/Wrapper/RadioWrapper/RadioWrapper.tsx +6 -3
- package/src/components/Form/form.interfaces.ts +2 -0
- package/src/components/Notifications/Alert/AlertItem/AlertItem.tsx +2 -2
- package/src/components/Notifications/Alert/AlertProvider/AlertProvider.tsx +1 -1
- package/src/components/Tooltip/Tooltip.tsx +14 -9
- package/src/components/_BaseStyling_/BaseStyling.tsx +1 -1
package/dist/esm/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styleInject from '../../../node_modules/style-inject/dist/style-inject.es.esm.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = "/*!\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 */.MicrofrontendContainer_microfrontend-container-
|
|
4
|
-
var classes = {"microfrontend-container-margin":"MicrofrontendContainer_microfrontend-container-
|
|
3
|
+
var css_248z = "/*!\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 */.MicrofrontendContainer_microfrontend-container-margin_ZTF3Q{padding:2rem}.MicrofrontendContainer_microfrontend-container-max-width_ZTF3Q{max-width:105rem}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk1pY3JvZnJvbnRlbmRDb250YWluZXIubW9kdWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0VBY0UsQ0FDRiw2REFDRSxZQUNGLENBQ0EsZ0VBQ0UsZ0JBQ0YiLCJmaWxlIjoiTWljcm9mcm9udGVuZENvbnRhaW5lci5tb2R1bGUuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi8qIVxuICogQ29weXJpZ2h0IDIwMjIgT25lV2VsY29tZSBCLlYuXG4gKlxuICogICAgTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqICAgIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqICAgIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICAgICBodHRwOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiAgICBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiAgICBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiAgICBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqICAgIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqICAgIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG4ubWljcm9mcm9udGVuZC1jb250YWluZXItbWFyZ2luIHtcbiAgcGFkZGluZzogMnJlbTtcbn1cbi5taWNyb2Zyb250ZW5kLWNvbnRhaW5lci1tYXgtd2lkdGgge1xuICBtYXgtd2lkdGg6IDEwNXJlbTtcbn0iXX0= */";
|
|
4
|
+
var classes = {"microfrontend-container-margin":"MicrofrontendContainer_microfrontend-container-margin_ZTF3Q","microfrontend-container-max-width":"MicrofrontendContainer_microfrontend-container-max-width_ZTF3Q"};
|
|
5
5
|
styleInject(css_248z);
|
|
6
6
|
|
|
7
7
|
export { classes as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styleInject from '../node_modules/style-inject/dist/style-inject.es.esm.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = "/*!\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/*!\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/*!\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 */.IdentityProviderButton_sr-only_hzfKI{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.IdentityProviderButton_hidden_hzfKI{display:none}.IdentityProviderButton_slide-in_hzfKI{animation:IdentityProviderButton_slide-in_hzfKI .5s forwards}@media (prefers-reduced-motion:reduce){.IdentityProviderButton_slide-in_hzfKI{animation-duration:.1ms}}.IdentityProviderButton_slide-out_hzfKI{animation:IdentityProviderButton_slide-out_hzfKI .5s forwards}@media (prefers-reduced-motion:reduce){.IdentityProviderButton_slide-out_hzfKI{animation-duration:.1ms}}@keyframes IdentityProviderButton_slide-in_hzfKI{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes IdentityProviderButton_slide-out_hzfKI{0%{transform:translateY(0)}to{transform:translateY(100vh)}}\n/*!\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/*!\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 */.IdentityProviderButton_idp-button_hzfKI{width:100%}.IdentityProviderButton_idp-button--with-icon_hzfKI{align-items:center;display:flex;gap:.5rem;justify-content:center;margin-bottom:-.125rem;margin-top:-.125rem}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIklkZW50aXR5UHJvdmlkZXJCdXR0b24ubW9kdWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0VBY0U7QUFDRjs7Ozs7Ozs7Ozs7Ozs7RUFjRTtBQUNGOzs7Ozs7Ozs7Ozs7OztFQWNFLENBQ0Ysc0NBT0Usa0JBQXNCLENBQ3RCLFFBQVMsQ0FMVCxVQUFXLENBRVgsV0FBWSxDQUNaLGVBQWdCLENBRmhCLFNBQVUsQ0FIVixpQkFBa0IsQ0FDbEIsU0FPRixDQUVBLHFDQUNFLFlBQ0YsQ0FFQSx1Q0FDRSw0REFDRixDQUNBLHVDQUNFLHVDQUNFLHVCQUNGLENBQ0YsQ0FFQSx3Q0FDRSw2REFDRixDQUNBLHVDQUNFLHdDQUNFLHVCQUNGLENBQ0YsQ0FFQSxpREFDRSxHQUNFLDJCQUNGLENBQ0EsR0FDRSx1QkFDRixDQUNGLENBQ0Esa0RBQ0UsR0FDRSx1QkFDRixDQUNBLEdBQ0UsMkJBQ0YsQ0FDRjtBQUNBOzs7Ozs7Ozs7Ozs7OztFQWNFO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yBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqICAgIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqICAgIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG4uaWRwLWJ1dHRvbiB7XG4gIHdpZHRoOiAxMDAlO1xufVxuLmlkcC1idXR0b24tLXdpdGgtaWNvbiB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICBnYXA6IDAuNXJlbTtcbiAgbWFyZ2luLXRvcDogLTAuMTI1cmVtO1xuICBtYXJnaW4tYm90dG9tOiAtMC4xMjVyZW07XG59Il19 */";
|
|
4
|
-
var classes = {"sr-only":"IdentityProviderButton_sr-
|
|
3
|
+
var css_248z = "/*!\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/*!\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/*!\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 */.IdentityProviderButton_sr-only_ZTF3Q{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.IdentityProviderButton_hidden_ZTF3Q{display:none}.IdentityProviderButton_slide-in_ZTF3Q{animation:IdentityProviderButton_slide-in_ZTF3Q .5s forwards}@media (prefers-reduced-motion:reduce){.IdentityProviderButton_slide-in_ZTF3Q{animation-duration:.1ms}}.IdentityProviderButton_slide-out_ZTF3Q{animation:IdentityProviderButton_slide-out_ZTF3Q .5s forwards}@media (prefers-reduced-motion:reduce){.IdentityProviderButton_slide-out_ZTF3Q{animation-duration:.1ms}}@keyframes IdentityProviderButton_slide-in_ZTF3Q{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes IdentityProviderButton_slide-out_ZTF3Q{0%{transform:translateY(0)}to{transform:translateY(100vh)}}\n/*!\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/*!\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 */.IdentityProviderButton_idp-button_ZTF3Q{width:100%}.IdentityProviderButton_idp-button--with-icon_ZTF3Q{align-items:center;display:flex;gap:.5rem;justify-content:center;margin-bottom:-.125rem;margin-top:-.125rem}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIklkZW50aXR5UHJvdmlkZXJCdXR0b24ubW9kdWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0VBY0U7QUFDRjs7Ozs7Ozs7Ozs7Ozs7RUFjRTtBQUNGOzs7Ozs7Ozs7Ozs7OztFQWNFLENBQ0Ysc0NBT0Usa0JBQXNCLENBQ3RCLFFBQVMsQ0FMVCxVQUFXLENBRVgsV0FBWSxDQUNaLGVBQWdCLENBRmhCLFNBQVUsQ0FIVixpQkFBa0IsQ0FDbEIsU0FPRixDQUVBLHFDQUNFLFlBQ0YsQ0FFQSx1Q0FDRSw0REFDRixDQUNBLHVDQUNFLHVDQUNFLHVCQUNGLENBQ0YsQ0FFQSx3Q0FDRSw2REFDRixDQUNBLHVDQUNFLHdDQUNFLHVCQUNGLENBQ0YsQ0FFQSxpREFDRSxHQUNFLDJCQUNGLENBQ0EsR0FDRSx1QkFDRixDQUNGLENBQ0Esa0RBQ0UsR0FDRSx1QkFDRixDQUNBLEdBQ0UsMkJBQ0YsQ0FDRjtBQUNBOzs7Ozs7Ozs7Ozs7OztFQWNFO0FBRUY7Ozs7Ozs7Ozs7Ozs7O0VBY0UsQ0FDRix5Q0FDRSxVQUNGLENBQ0Esb0RBRUUsa0JBQW1CLENBRG5CLFlBQWEsQ0FHYixTQUFXLENBRFgsc0JBQXVCLENBR3ZCLHNCQUF3QixDQUR4QixtQkFFRi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AgIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG4uaWRwLWJ1dHRvbiB7XG4gIHdpZHRoOiAxMDAlO1xufVxuLmlkcC1idXR0b24tLXdpdGgtaWNvbiB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICBnYXA6IDAuNXJlbTtcbiAgbWFyZ2luLXRvcDogLTAuMTI1cmVtO1xuICBtYXJnaW4tYm90dG9tOiAtMC4xMjVyZW07XG59Il19 */";
|
|
4
|
+
var classes = {"sr-only":"IdentityProviderButton_sr-only_ZTF3Q","hidden":"IdentityProviderButton_hidden_ZTF3Q","slide-in":"IdentityProviderButton_slide-in_ZTF3Q","slide-out":"IdentityProviderButton_slide-out_ZTF3Q","idp-button":"IdentityProviderButton_idp-button_ZTF3Q","idp-button--with-icon":"IdentityProviderButton_idp-button--with-icon_ZTF3Q"};
|
|
5
5
|
styleInject(css_248z);
|
|
6
6
|
|
|
7
7
|
export { classes as default };
|
|
@@ -3,7 +3,7 @@ import { Props as FormHelperTextProps } from "../FormHelperText/FormHelperText";
|
|
|
3
3
|
import { Props as FormSelectorWrapperProps } from "../FormSelectorWrapper/FormSelectorWrapper";
|
|
4
4
|
import { FormSelector } from "../form.interfaces";
|
|
5
5
|
export interface Props extends ComponentPropsWithRef<"input">, Omit<FormSelector, "success"> {
|
|
6
|
-
label?: string | React.
|
|
6
|
+
label?: string | React.ReactNode;
|
|
7
7
|
indeterminate?: boolean;
|
|
8
8
|
helperProps?: FormHelperTextProps;
|
|
9
9
|
formSelectorWrapperProps?: FormSelectorWrapperProps;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Icons } from "../../Icon/Icon";
|
|
3
|
+
import { KeyValuePair } from "../../../interfaces";
|
|
4
|
+
export interface FormErrorTextProps {
|
|
5
|
+
error?: boolean;
|
|
6
|
+
errorMessage?: string;
|
|
7
|
+
errorMessageProps?: React.ComponentPropsWithRef<"span"> & KeyValuePair;
|
|
8
|
+
errorMessageIcon?: Icons;
|
|
9
|
+
errorMessageIconPosition?: "before" | "after";
|
|
10
|
+
errorId?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const FormErrorText: ({ error, errorMessage, errorMessageProps, errorMessageIcon, errorMessageIconPosition, errorId }: FormErrorTextProps) => React.JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,7 +3,7 @@ import { Props as HelperProps } from "../FormHelperText/FormHelperText";
|
|
|
3
3
|
import { FormSelector } from "../form.interfaces";
|
|
4
4
|
import { Props as FormSelectorWrapperProps } from "../FormSelectorWrapper/FormSelectorWrapper";
|
|
5
5
|
export interface Props extends ComponentPropsWithRef<"input">, Omit<FormSelector, "success"> {
|
|
6
|
-
children: string;
|
|
6
|
+
children: string | React.ReactNode;
|
|
7
7
|
value: string;
|
|
8
8
|
formSelectorWrapperProps?: FormSelectorWrapperProps;
|
|
9
9
|
helperProps?: HelperProps;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from "react";
|
|
1
2
|
import { DataAttributeKey } from "../../interfaces";
|
|
2
3
|
/** Radios */
|
|
3
4
|
export interface FormSelector extends FormElement {
|
|
4
5
|
helperText?: string;
|
|
5
6
|
errorMessage?: string;
|
|
7
|
+
errorMessageProps?: ComponentPropsWithRef<"span">;
|
|
6
8
|
parentHelperId?: string;
|
|
7
9
|
parentErrorId?: string;
|
|
8
10
|
}
|
|
@@ -8,8 +8,8 @@ export type Actions = (ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
8
8
|
})[];
|
|
9
9
|
export interface Props {
|
|
10
10
|
id: string;
|
|
11
|
-
title?: string;
|
|
12
|
-
content?: string;
|
|
11
|
+
title?: string | React.ReactNode;
|
|
12
|
+
content?: string | React.ReactNode;
|
|
13
13
|
duration?: number;
|
|
14
14
|
emphasis?: Emphasis;
|
|
15
15
|
variant?: Variant;
|
|
@@ -2,7 +2,7 @@ import React, { ComponentPropsWithRef, ReactNode } from "react";
|
|
|
2
2
|
export interface Props extends ComponentPropsWithRef<"div"> {
|
|
3
3
|
label: ReactNode;
|
|
4
4
|
title?: string;
|
|
5
|
-
children:
|
|
5
|
+
children: ReactNode;
|
|
6
6
|
domRoot?: HTMLElement;
|
|
7
7
|
location?: "left" | "right" | "top" | "bottom";
|
|
8
8
|
color?: "black" | "blue";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styleInject from '../node_modules/style-inject/dist/style-inject.es.esm.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = "/*!\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 */.readyclasses_sr-
|
|
4
|
-
var readyclasses = {"sr-only":"readyclasses_sr-
|
|
3
|
+
var css_248z = "/*!\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 */.readyclasses_sr-only_ZTF3Q{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.readyclasses_hidden_ZTF3Q{display:none}.readyclasses_slide-in_ZTF3Q{animation:readyclasses_slide-in_ZTF3Q .5s forwards}@media (prefers-reduced-motion:reduce){.readyclasses_slide-in_ZTF3Q{animation-duration:.1ms}}.readyclasses_slide-out_ZTF3Q{animation:readyclasses_slide-out_ZTF3Q .5s forwards}@media (prefers-reduced-motion:reduce){.readyclasses_slide-out_ZTF3Q{animation-duration:.1ms}}@keyframes readyclasses_slide-in_ZTF3Q{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes readyclasses_slide-out_ZTF3Q{0%{transform:translateY(0)}to{transform:translateY(100vh)}}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlYWR5Y2xhc3Nlcy5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7RUFjRSxDQUNGLDRCQU9FLGtCQUFzQixDQUN0QixRQUFTLENBTFQsVUFBVyxDQUVYLFdBQVksQ0FDWixlQUFnQixDQUZoQixTQUFVLENBSFYsaUJBQWtCLENBQ2xCLFNBT0YsQ0FFQSwyQkFDRSxZQUNGLENBRUEsNkJBQ0Usa0RBQ0YsQ0FDQSx1Q0FDRSw2QkFDRSx1QkFDRixDQUNGLENBRUEsOEJBQ0UsbURBQ0YsQ0FDQSx1Q0FDRSw4QkFDRSx1QkFDRixDQUNGLENBRUEsdUNBQ0UsR0FDRSwyQkFDRixDQUNBLEdBQ0UsdUJBQ0YsQ0FDRixDQUNBLHdDQUNFLEdBQ0UsdUJBQ0YsQ0FDQSxHQUNFLDJCQUNGLENBQ0YiLCJmaWxlIjoicmVhZHljbGFzc2VzLm1vZHVsZS5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLyohXG4gKiBDb3B5cmlnaHQgMjAyMiBPbmVXZWxjb21lIEIuVi5cbiAqXG4gKiAgICBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1x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VjZSkge1xuICAuc2xpZGUtaW4ge1xuICAgIGFuaW1hdGlvbi1kdXJhdGlvbjogMC4xbXM7XG4gIH1cbn1cblxuLnNsaWRlLW91dCB7XG4gIGFuaW1hdGlvbjogc2xpZGUtb3V0IDAuNXMgZm9yd2FyZHM7XG59XG5AbWVkaWEgKHByZWZlcnMtcmVkdWNlZC1tb3Rpb246IHJlZHVjZSkge1xuICAuc2xpZGUtb3V0IHtcbiAgICBhbmltYXRpb24tZHVyYXRpb246IDAuMW1zO1xuICB9XG59XG5cbkBrZXlmcmFtZXMgc2xpZGUtaW4ge1xuICAwJSB7XG4gICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKDEwMHZoKTtcbiAgfVxuICAxMDAlIHtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoMCUpO1xuICB9XG59XG5Aa2V5ZnJhbWVzIHNsaWRlLW91dCB7XG4gIDAlIHtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoMCUpO1xuICB9XG4gIDEwMCUge1xuICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWSgxMDB2aCk7XG4gIH1cbn0iXX0= */";
|
|
4
|
+
var readyclasses = {"sr-only":"readyclasses_sr-only_ZTF3Q","hidden":"readyclasses_hidden_ZTF3Q","slide-in":"readyclasses_slide-in_ZTF3Q","slide-out":"readyclasses_slide-out_ZTF3Q"};
|
|
5
5
|
styleInject(css_248z);
|
|
6
6
|
|
|
7
7
|
export { readyclasses as default };
|
package/package.json
CHANGED
|
@@ -35,7 +35,7 @@ import { withReadOnly } from "../../withReadOnly";
|
|
|
35
35
|
const isToggle = (children: ReactNode) => !!(children as ReactElement)?.props?.["data-toggle"];
|
|
36
36
|
|
|
37
37
|
export interface Props extends ComponentPropsWithRef<"input">, Omit<FormSelector, "success"> {
|
|
38
|
-
label?: string | React.
|
|
38
|
+
label?: string | React.ReactNode;
|
|
39
39
|
indeterminate?: boolean;
|
|
40
40
|
helperProps?: FormHelperTextProps;
|
|
41
41
|
formSelectorWrapperProps?: FormSelectorWrapperProps;
|
|
@@ -51,6 +51,7 @@ const CheckboxComponent: ForwardRefRenderFunction<HTMLInputElement, Props> = (
|
|
|
51
51
|
indeterminate,
|
|
52
52
|
parentErrorId,
|
|
53
53
|
errorMessage,
|
|
54
|
+
errorMessageProps,
|
|
54
55
|
disabled,
|
|
55
56
|
label,
|
|
56
57
|
parentHelperId,
|
|
@@ -140,6 +141,10 @@ const CheckboxComponent: ForwardRefRenderFunction<HTMLInputElement, Props> = (
|
|
|
140
141
|
parentErrorId={parentErrorId}
|
|
141
142
|
errorId={errorId}
|
|
142
143
|
errorMessage={errorMessage}
|
|
144
|
+
errorMessageProps={{
|
|
145
|
+
...errorMessageProps,
|
|
146
|
+
className: `${errorMessageProps?.className} ${classes["error-message"]}`
|
|
147
|
+
}}
|
|
143
148
|
error={error}
|
|
144
149
|
disabled={disabled}
|
|
145
150
|
identifier={identifier}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2022 OneWelcome B.V.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
.error-message {
|
|
18
|
+
color: var(--error);
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: flex-end;
|
|
21
|
+
line-height: 1rem;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.error-icon {
|
|
25
|
+
margin-right: 0.5rem;
|
|
26
|
+
font-size: var(--font-size-big);
|
|
27
|
+
|
|
28
|
+
&-before {
|
|
29
|
+
margin-right: 0.5rem;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&-after {
|
|
33
|
+
margin-left: 0.5rem;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2022 OneWelcome B.V.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import React from "react";
|
|
18
|
+
import { Icon, Icons } from "../../Icon/Icon";
|
|
19
|
+
import classes from "./FormErrorText.module.scss";
|
|
20
|
+
import { KeyValuePair } from "../../../interfaces";
|
|
21
|
+
|
|
22
|
+
export interface FormErrorTextProps {
|
|
23
|
+
error?: boolean;
|
|
24
|
+
errorMessage?: string;
|
|
25
|
+
errorMessageProps?: React.ComponentPropsWithRef<"span"> & KeyValuePair;
|
|
26
|
+
errorMessageIcon?: Icons;
|
|
27
|
+
errorMessageIconPosition?: "before" | "after";
|
|
28
|
+
errorId?: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const FormErrorText = ({
|
|
32
|
+
error,
|
|
33
|
+
errorMessage,
|
|
34
|
+
errorMessageProps,
|
|
35
|
+
errorMessageIcon,
|
|
36
|
+
errorMessageIconPosition = "before",
|
|
37
|
+
errorId
|
|
38
|
+
}: FormErrorTextProps) => {
|
|
39
|
+
if (!error) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<span
|
|
45
|
+
{...errorMessageProps}
|
|
46
|
+
className={`${classes["error-message"]} ${errorMessageProps?.className ?? ""}`}
|
|
47
|
+
>
|
|
48
|
+
<span id={errorId} className={classes["message"]}>
|
|
49
|
+
{errorMessageIcon && errorMessageIconPosition === "before" && (
|
|
50
|
+
<Icon
|
|
51
|
+
className={`${classes["error-icon"]} ${classes["error-icon-before"]}`}
|
|
52
|
+
icon={errorMessageIcon}
|
|
53
|
+
/>
|
|
54
|
+
)}
|
|
55
|
+
{errorMessageProps?.children || errorMessage}
|
|
56
|
+
{errorMessageIcon && errorMessageIconPosition === "after" && (
|
|
57
|
+
<Icon
|
|
58
|
+
className={`${classes["error-icon"]} ${classes["error-icon-after"]}`}
|
|
59
|
+
icon={errorMessageIcon}
|
|
60
|
+
/>
|
|
61
|
+
)}
|
|
62
|
+
</span>
|
|
63
|
+
</span>
|
|
64
|
+
);
|
|
65
|
+
};
|
|
@@ -18,25 +18,6 @@
|
|
|
18
18
|
position: relative;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.error-message {
|
|
22
|
-
color: var(--error);
|
|
23
|
-
display: flex;
|
|
24
|
-
align-items: flex-end;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.error-icon {
|
|
28
|
-
margin-right: 0.5rem;
|
|
29
|
-
font-size: var(--font-size-big);
|
|
30
|
-
|
|
31
|
-
&-before {
|
|
32
|
-
margin-right: 0.5rem;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&-after {
|
|
36
|
-
margin-left: 0.5rem;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
21
|
.default-helper {
|
|
41
22
|
font-size: var(--font-size-sub);
|
|
42
23
|
line-height: 1.33333333;
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
import React, { ForwardRefRenderFunction, ComponentPropsWithRef, ReactElement } from "react";
|
|
20
20
|
import classes from "./FormGroup.module.scss";
|
|
21
21
|
import { FormHelperText, Props as HelperProps } from "../FormHelperText/FormHelperText";
|
|
22
|
-
import {
|
|
22
|
+
import { Icons } from "../../Icon/Icon";
|
|
23
|
+
import { FormErrorText } from "../FormErrorText/FormErrorText";
|
|
23
24
|
|
|
24
25
|
export interface Props extends ComponentPropsWithRef<"div"> {
|
|
25
26
|
children: ReactElement[] | ReactElement | string | number[] | number;
|
|
@@ -53,19 +54,19 @@ const FormGroupComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (
|
|
|
53
54
|
}: Props,
|
|
54
55
|
ref
|
|
55
56
|
) => {
|
|
56
|
-
const disableHelperText = helperProps?.disabled
|
|
57
|
+
const disableHelperText = helperProps?.disabled ?? disabled;
|
|
58
|
+
const hasHelperText = helperText ?? helperProps?.children;
|
|
59
|
+
const showHelperText = hasHelperText && (!error || (error && !errorMessage));
|
|
60
|
+
const showErrorMessage = error && errorMessage && !errorMessageProps?.children;
|
|
61
|
+
const hasHelperContent = showHelperText || errorMessageProps?.children || showErrorMessage;
|
|
57
62
|
|
|
58
63
|
return (
|
|
59
64
|
<div {...rest} ref={ref} className={`${classes["form-group"]} ${className ?? ""}`}>
|
|
60
65
|
{children}
|
|
61
66
|
|
|
62
|
-
{
|
|
63
|
-
<div
|
|
64
|
-
|
|
65
|
-
helperProps?.className ? helperProps.className : ""
|
|
66
|
-
}`}
|
|
67
|
-
>
|
|
68
|
-
{((helperText && !error) || (helperText && error && !errorMessage)) && (
|
|
67
|
+
{hasHelperContent && (
|
|
68
|
+
<div className={`${classes["default-helper"]} ${helperProps?.className ?? ""}`}>
|
|
69
|
+
{showHelperText && (
|
|
69
70
|
<FormHelperText
|
|
70
71
|
{...helperProps}
|
|
71
72
|
className={""}
|
|
@@ -75,27 +76,16 @@ const FormGroupComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (
|
|
|
75
76
|
{helperProps?.children || helperText}
|
|
76
77
|
</FormHelperText>
|
|
77
78
|
)}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
/>
|
|
89
|
-
)}
|
|
90
|
-
{errorMessage}
|
|
91
|
-
{errorMessageIcon && errorMessageIconPosition === "after" && (
|
|
92
|
-
<Icon
|
|
93
|
-
className={`${classes["error-icon"]} ${classes["error-icon-after"]}`}
|
|
94
|
-
icon={errorMessageIcon}
|
|
95
|
-
/>
|
|
96
|
-
)}
|
|
97
|
-
</span>
|
|
98
|
-
</span>
|
|
79
|
+
|
|
80
|
+
{error && (
|
|
81
|
+
<FormErrorText
|
|
82
|
+
error={error}
|
|
83
|
+
errorMessage={errorMessage}
|
|
84
|
+
errorMessageProps={errorMessageProps}
|
|
85
|
+
errorId={errorId}
|
|
86
|
+
errorMessageIcon={errorMessageIcon}
|
|
87
|
+
errorMessageIconPosition={errorMessageIconPosition}
|
|
88
|
+
/>
|
|
99
89
|
)}
|
|
100
90
|
</div>
|
|
101
91
|
)}
|
|
@@ -24,6 +24,7 @@ import { KeyValuePair } from "../../../interfaces";
|
|
|
24
24
|
import { FormSelector } from "../form.interfaces";
|
|
25
25
|
import { FormHelperText, Props as FormHelperTextProps } from "../FormHelperText/FormHelperText";
|
|
26
26
|
import classes from "./FormSelectorWrapper.module.scss";
|
|
27
|
+
import { FormErrorText } from "../FormErrorText/FormErrorText";
|
|
27
28
|
|
|
28
29
|
export interface Props extends ComponentPropsWithRef<"div">, FormSelector {
|
|
29
30
|
children?: ReactNode;
|
|
@@ -46,6 +47,7 @@ const FormSelectorWrapperComponent: ForwardRefRenderFunction<HTMLDivElement, Pro
|
|
|
46
47
|
disabled,
|
|
47
48
|
helperText,
|
|
48
49
|
errorMessage,
|
|
50
|
+
errorMessageProps,
|
|
49
51
|
parentErrorId,
|
|
50
52
|
errorId,
|
|
51
53
|
identifier,
|
|
@@ -55,6 +57,10 @@ const FormSelectorWrapperComponent: ForwardRefRenderFunction<HTMLDivElement, Pro
|
|
|
55
57
|
) => {
|
|
56
58
|
const helperRef = helperProps?.ref ?? createRef();
|
|
57
59
|
|
|
60
|
+
const hasHelperText = helperText ?? helperProps?.children;
|
|
61
|
+
const showHelperText = !error && hasHelperText;
|
|
62
|
+
const showErrorText = error && (errorMessage || errorMessageProps?.children);
|
|
63
|
+
|
|
58
64
|
return (
|
|
59
65
|
<div
|
|
60
66
|
{...rest}
|
|
@@ -64,24 +70,24 @@ const FormSelectorWrapperComponent: ForwardRefRenderFunction<HTMLDivElement, Pro
|
|
|
64
70
|
}`}
|
|
65
71
|
>
|
|
66
72
|
<div {...containerProps}>{children}</div>
|
|
67
|
-
{(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
73
|
+
{(showHelperText || showErrorText) &&
|
|
74
|
+
(showErrorText ? (
|
|
75
|
+
<FormErrorText
|
|
76
|
+
error={error}
|
|
77
|
+
errorMessage={errorMessage}
|
|
78
|
+
errorMessageProps={errorMessageProps}
|
|
79
|
+
errorId={errorId}
|
|
80
|
+
/>
|
|
81
|
+
) : (
|
|
82
|
+
<FormHelperText
|
|
83
|
+
{...helperProps}
|
|
84
|
+
ref={helperRef}
|
|
85
|
+
id={identifier}
|
|
86
|
+
className={`${classes["helper-text"]} ${helperProps?.className ?? ""}`}
|
|
87
|
+
>
|
|
88
|
+
{helperProps?.children || helperText}
|
|
89
|
+
</FormHelperText>
|
|
90
|
+
))}
|
|
85
91
|
{nestedChildren}
|
|
86
92
|
</div>
|
|
87
93
|
);
|
|
@@ -28,14 +28,15 @@
|
|
|
28
28
|
color: var(--error);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.
|
|
31
|
+
.error-message {
|
|
32
32
|
margin-top: 0.25rem;
|
|
33
|
-
margin-left: 1.
|
|
33
|
+
margin-left: relativeToBaseFontSize(1.75);
|
|
34
|
+
font-size: var(--font-size-sub);
|
|
34
35
|
}
|
|
35
36
|
|
|
36
|
-
.
|
|
37
|
-
margin-top:
|
|
38
|
-
|
|
37
|
+
.helper-text {
|
|
38
|
+
margin-top: 0.25rem;
|
|
39
|
+
margin-left: 1.75rem;
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
.error-icon {
|
|
@@ -49,11 +50,14 @@
|
|
|
49
50
|
label {
|
|
50
51
|
display: inline-block;
|
|
51
52
|
margin-left: relativeToBaseFontSize(0.5);
|
|
52
|
-
user-select: none;
|
|
53
53
|
font-size: var(--font-size-form-label);
|
|
54
54
|
font-family: var(--font-family);
|
|
55
55
|
margin-top: 0.15rem;
|
|
56
56
|
|
|
57
|
+
&.no-margin-top {
|
|
58
|
+
margin-top: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
57
61
|
.disabled & {
|
|
58
62
|
cursor: not-allowed;
|
|
59
63
|
}
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
import { withReadOnly } from "../../withReadOnly";
|
|
28
28
|
|
|
29
29
|
export interface Props extends ComponentPropsWithRef<"input">, Omit<FormSelector, "success"> {
|
|
30
|
-
children: string;
|
|
30
|
+
children: string | React.ReactNode;
|
|
31
31
|
value: string;
|
|
32
32
|
formSelectorWrapperProps?: FormSelectorWrapperProps;
|
|
33
33
|
helperProps?: HelperProps;
|
|
@@ -45,6 +45,7 @@ const RadioComponent: ForwardRefRenderFunction<HTMLInputElement, Props> = (
|
|
|
45
45
|
parentHelperId,
|
|
46
46
|
error,
|
|
47
47
|
errorMessage,
|
|
48
|
+
errorMessageProps,
|
|
48
49
|
checked = false,
|
|
49
50
|
formSelectorWrapperProps,
|
|
50
51
|
helperProps,
|
|
@@ -81,6 +82,8 @@ const RadioComponent: ForwardRefRenderFunction<HTMLInputElement, Props> = (
|
|
|
81
82
|
onChange?.(clonedEvent);
|
|
82
83
|
};
|
|
83
84
|
|
|
85
|
+
const customLabel = typeof children !== "string";
|
|
86
|
+
|
|
84
87
|
const nativeInputClasses = [classes["native-input"]];
|
|
85
88
|
const checkedRadioClasses = [classes["input"], classes["radio"]];
|
|
86
89
|
const uncheckedRadioClasses = [classes["input"], classes["circle"]];
|
|
@@ -88,7 +91,6 @@ const RadioComponent: ForwardRefRenderFunction<HTMLInputElement, Props> = (
|
|
|
88
91
|
disabled &&
|
|
89
92
|
checkedRadioClasses.push(classes["disabled"]) &&
|
|
90
93
|
uncheckedRadioClasses.push(classes["disabled"]);
|
|
91
|
-
|
|
92
94
|
return (
|
|
93
95
|
<FormSelectorWrapper
|
|
94
96
|
{...formSelectorWrapperProps}
|
|
@@ -99,6 +101,10 @@ const RadioComponent: ForwardRefRenderFunction<HTMLInputElement, Props> = (
|
|
|
99
101
|
parentErrorId={parentErrorId}
|
|
100
102
|
errorId={errorId}
|
|
101
103
|
errorMessage={errorMessage}
|
|
104
|
+
errorMessageProps={{
|
|
105
|
+
...errorMessageProps,
|
|
106
|
+
className: `${errorMessageProps?.className} ${classes["error-message"]}`
|
|
107
|
+
}}
|
|
102
108
|
error={error}
|
|
103
109
|
disabled={disabled}
|
|
104
110
|
identifier={identifier}
|
|
@@ -119,10 +125,14 @@ const RadioComponent: ForwardRefRenderFunction<HTMLInputElement, Props> = (
|
|
|
119
125
|
type="radio"
|
|
120
126
|
/>
|
|
121
127
|
|
|
122
|
-
{checked
|
|
123
|
-
{!checked
|
|
128
|
+
{checked ? <Icon className={checkedRadioClasses.join(" ")} icon={Icons.Radio} /> : <></>}
|
|
129
|
+
{!checked ? <Icon className={uncheckedRadioClasses.join(" ")} icon={Icons.Circle} /> : <></>}
|
|
124
130
|
|
|
125
|
-
<label
|
|
131
|
+
<label
|
|
132
|
+
className={customLabel ? classes["no-margin-top"] : ""}
|
|
133
|
+
onClick={onChangeHandler}
|
|
134
|
+
htmlFor={`${identifier}-radio`}
|
|
135
|
+
>
|
|
126
136
|
{children}
|
|
127
137
|
</label>
|
|
128
138
|
</FormSelectorWrapper>
|