@onewelcome/react-lib-components 13.2.0 → 13.3.0-alpha.2
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/components/Breadcrumbs/Breadcrumbs.module.scss.cjs.js +2 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.es.js +5 -5
- package/dist/components/Button/BaseButton.module.scss.cjs.js +2 -2
- package/dist/components/Button/BaseButton.module.scss.es.js +4 -4
- package/dist/components/Button/Button.module.scss.cjs.js +2 -2
- package/dist/components/Button/Button.module.scss.es.js +17 -17
- package/dist/components/Button/IconButton.module.scss.cjs.js +2 -2
- package/dist/components/Button/IconButton.module.scss.es.js +18 -18
- package/dist/components/ContextMenu/ContextMenu.cjs.js.map +1 -1
- package/dist/components/ContextMenu/ContextMenu.es.js.map +1 -1
- package/dist/components/ContextMenu/ContextMenu.module.scss.cjs.js +2 -2
- package/dist/components/ContextMenu/ContextMenu.module.scss.es.js +6 -6
- package/dist/components/ContextMenu/ContextMenuDivider.module.scss.cjs.js +2 -2
- package/dist/components/ContextMenu/ContextMenuDivider.module.scss.es.js +2 -2
- package/dist/components/ContextMenu/ContextMenuItem.module.scss.cjs.js +2 -2
- package/dist/components/ContextMenu/ContextMenuItem.module.scss.es.js +3 -3
- package/dist/components/ContextMenu/ContextMenuService.cjs.js +1 -1
- package/dist/components/ContextMenu/ContextMenuService.cjs.js.map +1 -1
- package/dist/components/ContextMenu/ContextMenuService.es.js +20 -17
- package/dist/components/ContextMenu/ContextMenuService.es.js.map +1 -1
- package/dist/components/DataGrid/DataGrid.cjs.js +1 -1
- package/dist/components/DataGrid/DataGrid.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGrid.es.js +76 -51
- package/dist/components/DataGrid/DataGrid.es.js.map +1 -1
- package/dist/components/DataGrid/DataGrid.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGrid.module.scss.es.js +8 -7
- package/dist/components/DataGrid/DataGrid.module.scss.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridActions/DataGridActions.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridActions/DataGridActions.module.scss.es.js +6 -6
- package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.es.js +7 -7
- package/dist/components/DataGrid/DataGridBody/DataGridBody.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridBody/DataGridBody.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridBody/DataGridBody.es.js +4 -2
- package/dist/components/DataGrid/DataGridBody/DataGridBody.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridBody/DataGridBody.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridBody/DataGridBody.module.scss.es.js +2 -2
- package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.es.js +5 -5
- package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.es.js +4 -4
- package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.es.js +5 -5
- package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.es.js +24 -24
- package/dist/components/DataGrid/DataGridBody/DataGridRow/useNestedRow.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridBody/DataGridRow/useNestedRow.es.js +1 -1
- package/dist/components/DataGrid/DataGridBody/DataGridRow/useNestedRow.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilter.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilter.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilter.es.js +4 -4
- package/dist/components/DataGrid/DataGridFilters/DataGridFilter.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilter.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridFilters/DataGridFilter.module.scss.es.js +9 -9
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.es.js +44 -25
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.es.js +15 -4
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.es.js +56 -6
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.es.js +4 -4
- package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.module.scss.es.js +10 -10
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.es.js +1 -1
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.es.js +17 -17
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.es.js +45 -24
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/useFiltersReducer.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridFilters/useFiltersReducer.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/useFiltersReducer.es.js +7 -9
- package/dist/components/DataGrid/DataGridFilters/useFiltersReducer.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridHeader/DataGridHeader.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridHeader/DataGridHeader.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridHeader/DataGridHeader.es.js +5 -2
- package/dist/components/DataGrid/DataGridHeader/DataGridHeader.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridHeader/DataGridHeader.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridHeader/DataGridHeader.module.scss.es.js +7 -4
- package/dist/components/DataGrid/DataGridHeader/DataGridHeader.module.scss.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.es.js +1 -1
- package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.es.js +11 -11
- package/dist/components/DatePicker/DatePicker.module.scss.cjs.js +2 -2
- package/dist/components/DatePicker/DatePicker.module.scss.es.js +31 -31
- package/dist/components/Form/Checkbox/Checkbox.module.scss.cjs.js +2 -2
- package/dist/components/Form/Checkbox/Checkbox.module.scss.es.js +13 -13
- package/dist/components/Form/Fieldset/Fieldset.cjs.js +1 -1
- package/dist/components/Form/Fieldset/Fieldset.cjs.js.map +1 -1
- package/dist/components/Form/Fieldset/Fieldset.es.js +2 -1
- package/dist/components/Form/Fieldset/Fieldset.es.js.map +1 -1
- package/dist/components/Form/Fieldset/Fieldset.module.scss.cjs.js +2 -2
- package/dist/components/Form/Fieldset/Fieldset.module.scss.es.js +8 -5
- package/dist/components/Form/Fieldset/Fieldset.module.scss.es.js.map +1 -1
- package/dist/components/Form/FileUpload/FileItem/FileItem.cjs.js +1 -1
- package/dist/components/Form/FileUpload/FileItem/FileItem.cjs.js.map +1 -1
- package/dist/components/Form/FileUpload/FileItem/FileItem.es.js +1 -1
- package/dist/components/Form/FileUpload/FileItem/FileItem.es.js.map +1 -1
- package/dist/components/Form/FileUpload/FileItem/FileItem.module.scss.cjs.js +2 -2
- package/dist/components/Form/FileUpload/FileItem/FileItem.module.scss.es.js +18 -18
- package/dist/components/Form/FileUpload/FileUpload.cjs.js +1 -1
- package/dist/components/Form/FileUpload/FileUpload.cjs.js.map +1 -1
- package/dist/components/Form/FileUpload/FileUpload.es.js +6 -6
- package/dist/components/Form/FileUpload/FileUpload.es.js.map +1 -1
- package/dist/components/Form/FileUpload/FileUpload.module.scss.cjs.js +2 -2
- package/dist/components/Form/FileUpload/FileUpload.module.scss.es.js +16 -16
- package/dist/components/Form/Form.module.scss.cjs.js +2 -2
- package/dist/components/Form/Form.module.scss.es.js +2 -2
- package/dist/components/Form/FormControl/FormControl.module.scss.cjs.js +2 -2
- package/dist/components/Form/FormControl/FormControl.module.scss.es.js +13 -13
- package/dist/components/Form/FormErrorText/FormErrorText.module.scss.cjs.js +2 -2
- package/dist/components/Form/FormErrorText/FormErrorText.module.scss.es.js +9 -6
- package/dist/components/Form/FormErrorText/FormErrorText.module.scss.es.js.map +1 -1
- package/dist/components/Form/FormGroup/FormGroup.module.scss.cjs.js +2 -2
- package/dist/components/Form/FormGroup/FormGroup.module.scss.es.js +3 -3
- package/dist/components/Form/FormHelperText/FormHelperText.module.scss.cjs.js +2 -2
- package/dist/components/Form/FormHelperText/FormHelperText.module.scss.es.js +4 -4
- package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.cjs.js +1 -1
- package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.cjs.js.map +1 -1
- package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.es.js +4 -1
- package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.es.js.map +1 -1
- package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.cjs.js +2 -2
- package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.es.js +6 -6
- package/dist/components/Form/Input/Input.cjs.js +1 -1
- package/dist/components/Form/Input/Input.cjs.js.map +1 -1
- package/dist/components/Form/Input/Input.es.js +2 -1
- package/dist/components/Form/Input/Input.es.js.map +1 -1
- package/dist/components/Form/Input/Input.module.scss.cjs.js +2 -2
- package/dist/components/Form/Input/Input.module.scss.es.js +8 -8
- package/dist/components/Form/Label/Label.module.scss.cjs.js +2 -2
- package/dist/components/Form/Label/Label.module.scss.es.js +2 -2
- package/dist/components/Form/Radio/Radio.cjs.js.map +1 -1
- package/dist/components/Form/Radio/Radio.es.js +1 -1
- package/dist/components/Form/Radio/Radio.es.js.map +1 -1
- package/dist/components/Form/Radio/Radio.module.scss.cjs.js +2 -2
- package/dist/components/Form/Radio/Radio.module.scss.es.js +11 -11
- package/dist/components/Form/Select/MultiSelect/MultiOption.cjs.js +1 -1
- package/dist/components/Form/Select/MultiSelect/MultiOption.cjs.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/MultiOption.es.js +6 -6
- package/dist/components/Form/Select/MultiSelect/MultiOption.es.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/MultiSelect.cjs.js +1 -1
- package/dist/components/Form/Select/MultiSelect/MultiSelect.cjs.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/MultiSelect.es.js +198 -40
- package/dist/components/Form/Select/MultiSelect/MultiSelect.es.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.cjs.js +2 -2
- package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.es.js +18 -15
- package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.es.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/SelectButton.module.scss.cjs.js +2 -2
- package/dist/components/Form/Select/MultiSelect/SelectButton.module.scss.es.js +2 -2
- package/dist/components/Form/Select/MultiSelect/SelectedOptions.cjs.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/SelectedOptions.es.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/SelectedOptions.module.scss.cjs.js +2 -2
- package/dist/components/Form/Select/MultiSelect/SelectedOptions.module.scss.es.js +4 -4
- package/dist/components/Form/Select/MultiSelect/useArrowNavigation.cjs.js +1 -1
- package/dist/components/Form/Select/MultiSelect/useArrowNavigation.cjs.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/useArrowNavigation.es.js +81 -33
- package/dist/components/Form/Select/MultiSelect/useArrowNavigation.es.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/useSearch.cjs.js +1 -1
- package/dist/components/Form/Select/MultiSelect/useSearch.cjs.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/useSearch.es.js +40 -6
- package/dist/components/Form/Select/MultiSelect/useSearch.es.js.map +1 -1
- package/dist/components/Form/Select/Select.interfaces.cjs.js.map +1 -1
- package/dist/components/Form/Select/Select.interfaces.es.js.map +1 -1
- package/dist/components/Form/Select/SingleSelect/Option.cjs.js +1 -1
- package/dist/components/Form/Select/SingleSelect/Option.cjs.js.map +1 -1
- package/dist/components/Form/Select/SingleSelect/Option.es.js +10 -3
- package/dist/components/Form/Select/SingleSelect/Option.es.js.map +1 -1
- package/dist/components/Form/Select/SingleSelect/Select.cjs.js +1 -1
- package/dist/components/Form/Select/SingleSelect/Select.cjs.js.map +1 -1
- package/dist/components/Form/Select/SingleSelect/Select.es.js +169 -31
- package/dist/components/Form/Select/SingleSelect/Select.es.js.map +1 -1
- package/dist/components/Form/Select/SingleSelect/Select.module.scss.cjs.js +2 -2
- package/dist/components/Form/Select/SingleSelect/Select.module.scss.es.js +20 -17
- package/dist/components/Form/Select/SingleSelect/Select.module.scss.es.js.map +1 -1
- package/dist/components/Form/Select/SingleSelect/useArrowNavigation.cjs.js +1 -1
- package/dist/components/Form/Select/SingleSelect/useArrowNavigation.cjs.js.map +1 -1
- package/dist/components/Form/Select/SingleSelect/useArrowNavigation.es.js +119 -91
- package/dist/components/Form/Select/SingleSelect/useArrowNavigation.es.js.map +1 -1
- package/dist/components/Form/Select/SingleSelect/useSearch.cjs.js +1 -1
- package/dist/components/Form/Select/SingleSelect/useSearch.cjs.js.map +1 -1
- package/dist/components/Form/Select/SingleSelect/useSearch.es.js +34 -4
- package/dist/components/Form/Select/SingleSelect/useSearch.es.js.map +1 -1
- package/dist/components/Form/Select/useAddNewBtn.module.scss.cjs.js +2 -2
- package/dist/components/Form/Select/useAddNewBtn.module.scss.es.js +4 -4
- package/dist/components/Form/Textarea/Textarea.cjs.js +1 -1
- package/dist/components/Form/Textarea/Textarea.cjs.js.map +1 -1
- package/dist/components/Form/Textarea/Textarea.es.js +4 -0
- package/dist/components/Form/Textarea/Textarea.es.js.map +1 -1
- package/dist/components/Form/Textarea/Textarea.module.scss.cjs.js +2 -2
- package/dist/components/Form/Textarea/Textarea.module.scss.es.js +6 -6
- package/dist/components/Form/Toggle/Toggle.cjs.js +1 -1
- package/dist/components/Form/Toggle/Toggle.cjs.js.map +1 -1
- package/dist/components/Form/Toggle/Toggle.es.js +5 -3
- package/dist/components/Form/Toggle/Toggle.es.js.map +1 -1
- package/dist/components/Form/Toggle/Toggle.module.scss.cjs.js +2 -2
- package/dist/components/Form/Toggle/Toggle.module.scss.es.js +18 -18
- package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.cjs.js +1 -1
- package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.cjs.js.map +1 -1
- package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.es.js +25 -17
- package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.es.js.map +1 -1
- package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.cjs.js +2 -2
- package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.es.js +8 -4
- package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.es.js.map +1 -1
- package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss.cjs.js +2 -2
- package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss.es.js +5 -5
- package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.cjs.js +2 -2
- package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.es.js +3 -3
- package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js +1 -1
- package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js.map +1 -1
- package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.es.js +37 -21
- package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.es.js.map +1 -1
- package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.cjs.js +2 -2
- package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.es.js +8 -4
- package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.es.js.map +1 -1
- package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.cjs.js +2 -2
- package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.es.js +3 -3
- package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.cjs.js +1 -1
- package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.cjs.js.map +1 -1
- package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.es.js +2 -0
- package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.es.js.map +1 -1
- package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.cjs.js +2 -2
- package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.es.js +8 -8
- package/dist/components/Form/Wrapper/Wrapper/Wrapper.cjs.js +1 -1
- package/dist/components/Form/Wrapper/Wrapper/Wrapper.cjs.js.map +1 -1
- package/dist/components/Form/Wrapper/Wrapper/Wrapper.es.js +1 -1
- package/dist/components/Form/Wrapper/Wrapper/Wrapper.es.js.map +1 -1
- package/dist/components/Form/Wrapper/Wrapper/Wrapper.module.scss.cjs.js +2 -2
- package/dist/components/Form/Wrapper/Wrapper/Wrapper.module.scss.es.js +6 -6
- package/dist/components/Icon/Icon.cjs.js +1 -1
- package/dist/components/Icon/Icon.cjs.js.map +1 -1
- package/dist/components/Icon/Icon.es.js +1 -1
- package/dist/components/Icon/Icon.es.js.map +1 -1
- package/dist/components/Icon/Icon.module.scss.cjs.js +2 -2
- package/dist/components/Icon/Icon.module.scss.es.js +108 -108
- package/dist/components/Layout/ActionBar/ActionBar.module.scss.cjs.js +2 -2
- package/dist/components/Layout/ActionBar/ActionBar.module.scss.es.js +10 -10
- package/dist/components/Layout/Card/Card.module.scss.cjs.js +2 -2
- package/dist/components/Layout/Card/Card.module.scss.es.js +12 -12
- package/dist/components/Layout/ContentHeader/ContentHeader.cjs.js +1 -1
- package/dist/components/Layout/ContentHeader/ContentHeader.cjs.js.map +1 -1
- package/dist/components/Layout/ContentHeader/ContentHeader.es.js +66 -41
- package/dist/components/Layout/ContentHeader/ContentHeader.es.js.map +1 -1
- package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.cjs.js +2 -2
- package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.es.js +28 -13
- package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.es.js.map +1 -1
- package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.cjs.js +2 -2
- package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.es.js +4 -4
- package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.cjs.js +2 -2
- package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.es.js +2 -2
- package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.cjs.js +2 -2
- package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.es.js +3 -3
- package/dist/components/Link/Link.cjs.js.map +1 -1
- package/dist/components/Link/Link.es.js +1 -1
- package/dist/components/Link/Link.es.js.map +1 -1
- package/dist/components/Link/Link.module.scss.cjs.js +2 -2
- package/dist/components/Link/Link.module.scss.es.js +17 -17
- package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss.es.js +11 -11
- package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.cjs.js +1 -1
- package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.cjs.js.map +1 -1
- package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.es.js +7 -1
- package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.es.js.map +1 -1
- package/dist/components/Notifications/Alert/AlertItem/AlertItem.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/Alert/AlertItem/AlertItem.module.scss.es.js +22 -22
- package/dist/components/Notifications/Banner/Banner.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/Banner/Banner.module.scss.es.js +9 -9
- package/dist/components/Notifications/BaseModal/BaseModal.cjs.js +1 -1
- package/dist/components/Notifications/BaseModal/BaseModal.cjs.js.map +1 -1
- package/dist/components/Notifications/BaseModal/BaseModal.es.js +1 -1
- package/dist/components/Notifications/BaseModal/BaseModal.es.js.map +1 -1
- package/dist/components/Notifications/BaseModal/BaseModal.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/BaseModal/BaseModal.module.scss.es.js +5 -5
- package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.es.js +4 -4
- package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.es.js +2 -2
- package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.es.js +6 -6
- package/dist/components/Notifications/Dialog/Dialog.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/Dialog/Dialog.module.scss.es.js +4 -4
- package/dist/components/Notifications/Dialog/DialogActions/DialogActions.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/Dialog/DialogActions/DialogActions.module.scss.es.js +3 -3
- package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.es.js +10 -10
- package/dist/components/Notifications/SideSheet/SideSheet.cjs.js.map +1 -1
- package/dist/components/Notifications/SideSheet/SideSheet.es.js +1 -1
- package/dist/components/Notifications/SideSheet/SideSheet.es.js.map +1 -1
- package/dist/components/Notifications/SideSheet/SideSheet.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/SideSheet/SideSheet.module.scss.es.js +13 -13
- package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.es.js +2 -2
- package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.es.js +2 -2
- package/dist/components/Notifications/SlideInModal/SlideInModal.cjs.js.map +1 -1
- package/dist/components/Notifications/SlideInModal/SlideInModal.es.js +1 -1
- package/dist/components/Notifications/SlideInModal/SlideInModal.es.js.map +1 -1
- package/dist/components/Notifications/SlideInModal/SlideInModal.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/SlideInModal/SlideInModal.module.scss.es.js +10 -10
- package/dist/components/Pagination/Pagination.cjs.js +1 -1
- package/dist/components/Pagination/Pagination.cjs.js.map +1 -1
- package/dist/components/Pagination/Pagination.es.js +118 -90
- package/dist/components/Pagination/Pagination.es.js.map +1 -1
- package/dist/components/Pagination/Pagination.module.scss.cjs.js +2 -2
- package/dist/components/Pagination/Pagination.module.scss.es.js +15 -14
- package/dist/components/Pagination/Pagination.module.scss.es.js.map +1 -1
- package/dist/components/Popover/Popover.module.scss.cjs.js +2 -2
- package/dist/components/Popover/Popover.module.scss.es.js +3 -3
- package/dist/components/ProgressBar/ProgressBar.cjs.js.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.es.js.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.module.scss.cjs.js +2 -2
- package/dist/components/ProgressBar/ProgressBar.module.scss.es.js +9 -9
- package/dist/components/Skeleton/Skeleton.module.scss.cjs.js +2 -2
- package/dist/components/Skeleton/Skeleton.module.scss.es.js +5 -5
- package/dist/components/Spinner/Spinner.module.scss.cjs.js +2 -2
- package/dist/components/Spinner/Spinner.module.scss.es.js +3 -3
- package/dist/components/Stepper/Step.module.scss.cjs.js +2 -2
- package/dist/components/Stepper/Step.module.scss.es.js +22 -22
- package/dist/components/Stepper/Stepper.module.scss.cjs.js +2 -2
- package/dist/components/Stepper/Stepper.module.scss.es.js +4 -4
- package/dist/components/Tabs/Tab.module.scss.cjs.js +2 -2
- package/dist/components/Tabs/Tab.module.scss.es.js +3 -3
- package/dist/components/Tabs/TabButton.module.scss.cjs.js +2 -2
- package/dist/components/Tabs/TabButton.module.scss.es.js +12 -12
- package/dist/components/Tabs/Tabs.module.scss.cjs.js +2 -2
- package/dist/components/Tabs/Tabs.module.scss.es.js +10 -10
- package/dist/components/Tag/RemoveButton.module.scss.cjs.js +2 -2
- package/dist/components/Tag/RemoveButton.module.scss.es.js +3 -3
- package/dist/components/Tag/Tag.cjs.js +1 -1
- package/dist/components/Tag/Tag.cjs.js.map +1 -1
- package/dist/components/Tag/Tag.es.js +1 -1
- package/dist/components/Tag/Tag.es.js.map +1 -1
- package/dist/components/Tag/Tag.module.scss.cjs.js +2 -2
- package/dist/components/Tag/Tag.module.scss.es.js +6 -6
- package/dist/components/TextEllipsis/TextEllipsis.cjs.js.map +1 -1
- package/dist/components/TextEllipsis/TextEllipsis.es.js.map +1 -1
- package/dist/components/TextEllipsis/TextEllipsis.module.scss.cjs.js +2 -2
- package/dist/components/TextEllipsis/TextEllipsis.module.scss.es.js +3 -3
- package/dist/components/Tiles/Tile.cjs.js.map +1 -1
- package/dist/components/Tiles/Tile.es.js.map +1 -1
- package/dist/components/Tiles/Tile.module.scss.cjs.js +2 -2
- package/dist/components/Tiles/Tile.module.scss.es.js +8 -8
- package/dist/components/Tiles/Tiles.module.scss.cjs.js +2 -2
- package/dist/components/Tiles/Tiles.module.scss.es.js +2 -2
- package/dist/components/Tooltip/Tooltip.cjs.js +1 -1
- package/dist/components/Tooltip/Tooltip.cjs.js.map +1 -1
- package/dist/components/Tooltip/Tooltip.es.js +9 -16
- package/dist/components/Tooltip/Tooltip.es.js.map +1 -1
- package/dist/components/Tooltip/Tooltip.module.scss.cjs.js +2 -2
- package/dist/components/Tooltip/Tooltip.module.scss.es.js +28 -27
- package/dist/components/Tooltip/Tooltip.module.scss.es.js.map +1 -1
- package/dist/components/Typography/Typography.module.scss.cjs.js +2 -2
- package/dist/components/Typography/Typography.module.scss.es.js +13 -13
- package/dist/components/_BaseStyling_/BaseStyling.cjs.js +2 -2
- package/dist/components/_BaseStyling_/BaseStyling.cjs.js.map +1 -1
- package/dist/components/_BaseStyling_/BaseStyling.es.js +2 -4
- package/dist/components/_BaseStyling_/BaseStyling.es.js.map +1 -1
- package/dist/components/admin/layout/LeftNav/LeftNav.cjs.js.map +1 -1
- package/dist/components/admin/layout/LeftNav/LeftNav.es.js +1 -1
- package/dist/components/admin/layout/LeftNav/LeftNav.es.js.map +1 -1
- package/dist/components/admin/layout/LeftNav/LeftNav.module.scss.cjs.js +2 -2
- package/dist/components/admin/layout/LeftNav/LeftNav.module.scss.es.js +5 -5
- package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.cjs.js +2 -2
- package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.es.js +14 -14
- package/dist/components/admin/layout/LeftNav/useRefItems.cjs.js +1 -1
- package/dist/components/admin/layout/LeftNav/useRefItems.cjs.js.map +1 -1
- package/dist/components/admin/layout/LeftNav/useRefItems.es.js +7 -6
- package/dist/components/admin/layout/LeftNav/useRefItems.es.js.map +1 -1
- package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.cjs.js +2 -2
- package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.es.js +3 -3
- package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.cjs.js +2 -2
- package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.es.js +7 -7
- package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.cjs.js +2 -2
- package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.es.js +13 -13
- package/dist/components/miscellaneous/IdentityProviderButton.module.scss.cjs.js +2 -2
- package/dist/components/miscellaneous/IdentityProviderButton.module.scss.es.js +3 -3
- package/dist/components/withReadOnly.cjs.js +1 -1
- package/dist/components/withReadOnly.cjs.js.map +1 -1
- package/dist/components/withReadOnly.es.js +2 -4
- package/dist/components/withReadOnly.es.js.map +1 -1
- package/dist/hooks/useScreenSize.cjs.js +1 -1
- package/dist/hooks/useScreenSize.cjs.js.map +1 -1
- package/dist/hooks/useScreenSize.es.js +1 -1
- package/dist/hooks/useScreenSize.es.js.map +1 -1
- package/dist/hooks/useStickyStacking.cjs.js +2 -0
- package/dist/hooks/useStickyStacking.cjs.js.map +1 -0
- package/dist/hooks/useStickyStacking.es.js +208 -0
- package/dist/hooks/useStickyStacking.es.js.map +1 -0
- package/dist/hooks/useUploadFile.cjs.js +1 -1
- package/dist/hooks/useUploadFile.cjs.js.map +1 -1
- package/dist/hooks/useUploadFile.es.js +1 -1
- package/dist/hooks/useUploadFile.es.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +95 -7
- package/dist/index.es.js +2 -0
- package/dist/index.es.js.map +1 -1
- package/dist/readyclasses.module.scss.cjs.js +2 -2
- package/dist/readyclasses.module.scss.es.js +5 -5
- package/dist/util/helper.cjs.js +1 -1
- package/dist/util/helper.cjs.js.map +1 -1
- package/dist/util/helper.es.js +14 -16
- package/dist/util/helper.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -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 */.ActionBar_action-
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const 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 */.ActionBar_action-bar_PX3IM{display:flex;align-items:center;justify-content:space-between;padding:calc(.75 * var(--font-size)) 0;background-color:var(--color-white);width:100%;box-sizing:border-box;min-height:calc(3.5 * var(--font-size));gap:calc(1 * var(--font-size))}.ActionBar_inline_PX3IM{position:relative}.ActionBar_docked_PX3IM{position:fixed;bottom:0;left:0;right:0;padding-top:calc(.75 * var(--font-size));padding-bottom:calc(.75 * var(--font-size));padding-left:var(--action-bar-horizontal-padding, 2rem);padding-right:var(--action-bar-horizontal-padding, 2rem);z-index:10;box-shadow:0 -2px 4px #01053205,0 -4px 12px #0105320a,0 -8px 24px #0105320a}.ActionBar_sticky_PX3IM{position:sticky;bottom:0;z-index:10}.ActionBar_sticky_PX3IM.ActionBar_is-stuck_PX3IM{margin-left:calc(-1 * var(--action-bar-horizontal-padding, 2rem));margin-right:calc(-1 * var(--action-bar-horizontal-padding, 2rem));padding-left:var(--action-bar-horizontal-padding, 2rem);padding-right:var(--action-bar-horizontal-padding, 2rem);width:auto;box-shadow:0 -2px 4px #01053205,0 -4px 12px #0105320a,0 -8px 24px #0105320a}.ActionBar_placeholder_PX3IM{visibility:hidden;pointer-events:none}.ActionBar_button-area_PX3IM{display:flex;align-items:center;gap:calc(.5 * var(--font-size));flex-shrink:0}.ActionBar_status-area_PX3IM{display:flex;align-items:center;justify-content:flex-end;flex:1 1 auto;min-width:0}.ActionBar_status-text_PX3IM{color:var(--color-blue-grey500);font-size:calc(.875 * var(--font-size));line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="ActionBar_inline_PX3IM",e="ActionBar_docked_PX3IM",a="ActionBar_sticky_PX3IM",o="ActionBar_placeholder_PX3IM",r={"action-bar":"ActionBar_action-bar_PX3IM",inline:t,docked:e,sticky:a,"is-stuck":"ActionBar_is-stuck_PX3IM",placeholder:o,"button-area":"ActionBar_button-area_PX3IM","status-area":"ActionBar_status-area_PX3IM","status-text":"ActionBar_status-text_PX3IM"};exports.default=r,exports.docked=e,exports.inline=t,exports.placeholder=o,exports.sticky=a;
|
|
3
3
|
//# sourceMappingURL=ActionBar.module.scss.cjs.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
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 */.ActionBar_action-
|
|
2
|
-
const inline = "
|
|
3
|
-
const docked = "
|
|
4
|
-
const sticky = "
|
|
5
|
-
const placeholder = "
|
|
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 */.ActionBar_action-bar_PX3IM{display:flex;align-items:center;justify-content:space-between;padding:calc(.75 * var(--font-size)) 0;background-color:var(--color-white);width:100%;box-sizing:border-box;min-height:calc(3.5 * var(--font-size));gap:calc(1 * var(--font-size))}.ActionBar_inline_PX3IM{position:relative}.ActionBar_docked_PX3IM{position:fixed;bottom:0;left:0;right:0;padding-top:calc(.75 * var(--font-size));padding-bottom:calc(.75 * var(--font-size));padding-left:var(--action-bar-horizontal-padding, 2rem);padding-right:var(--action-bar-horizontal-padding, 2rem);z-index:10;box-shadow:0 -2px 4px #01053205,0 -4px 12px #0105320a,0 -8px 24px #0105320a}.ActionBar_sticky_PX3IM{position:sticky;bottom:0;z-index:10}.ActionBar_sticky_PX3IM.ActionBar_is-stuck_PX3IM{margin-left:calc(-1 * var(--action-bar-horizontal-padding, 2rem));margin-right:calc(-1 * var(--action-bar-horizontal-padding, 2rem));padding-left:var(--action-bar-horizontal-padding, 2rem);padding-right:var(--action-bar-horizontal-padding, 2rem);width:auto;box-shadow:0 -2px 4px #01053205,0 -4px 12px #0105320a,0 -8px 24px #0105320a}.ActionBar_placeholder_PX3IM{visibility:hidden;pointer-events:none}.ActionBar_button-area_PX3IM{display:flex;align-items:center;gap:calc(.5 * var(--font-size));flex-shrink:0}.ActionBar_status-area_PX3IM{display:flex;align-items:center;justify-content:flex-end;flex:1 1 auto;min-width:0}.ActionBar_status-text_PX3IM{color:var(--color-blue-grey500);font-size:calc(.875 * var(--font-size));line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
|
|
2
|
+
const inline = "ActionBar_inline_PX3IM";
|
|
3
|
+
const docked = "ActionBar_docked_PX3IM";
|
|
4
|
+
const sticky = "ActionBar_sticky_PX3IM";
|
|
5
|
+
const placeholder = "ActionBar_placeholder_PX3IM";
|
|
6
6
|
const classes = {
|
|
7
|
-
"action-bar": "ActionBar_action-
|
|
7
|
+
"action-bar": "ActionBar_action-bar_PX3IM",
|
|
8
8
|
inline,
|
|
9
9
|
docked,
|
|
10
10
|
sticky,
|
|
11
|
-
"is-stuck": "ActionBar_is-
|
|
11
|
+
"is-stuck": "ActionBar_is-stuck_PX3IM",
|
|
12
12
|
placeholder,
|
|
13
|
-
"button-area": "ActionBar_button-
|
|
14
|
-
"status-area": "ActionBar_status-
|
|
15
|
-
"status-text": "ActionBar_status-
|
|
13
|
+
"button-area": "ActionBar_button-area_PX3IM",
|
|
14
|
+
"status-area": "ActionBar_status-area_PX3IM",
|
|
15
|
+
"status-text": "ActionBar_status-text_PX3IM"
|
|
16
16
|
};
|
|
17
17
|
export {
|
|
18
18
|
classes as default,
|
|
@@ -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 */.
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const 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 */.Card_main_PX3IM{border-radius:calc(.25 * var(--font-size));min-width:calc(18.5 * var(--font-size));overflow:hidden}.Card_header_PX3IM{display:flex;align-items:center;padding:calc(.5 * var(--font-size)) calc(1.5 * var(--font-size));justify-content:space-between;gap:calc(.5 * var(--font-size));background-color:var(--color-primary100)}.Card_header_PX3IM .Card_title-left_PX3IM{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}.Card_header_PX3IM .Card_title-left_PX3IM .Card_title_PX3IM{margin:0;font-weight:500;max-width:100%;display:block}.Card_header_PX3IM .Card_title-left_PX3IM .Card_description_PX3IM{margin:0;max-width:100%;display:block}.Card_header_PX3IM .Card_title-right_PX3IM{flex:0 0 auto;display:flex;align-items:center;height:100%;gap:calc(.5 * var(--font-size));white-space:nowrap}.Card_body_PX3IM{padding:calc(1 * var(--font-size)) calc(1.5 * var(--font-size))}.Card_body_PX3IM.Card_default-body-style_PX3IM{background-color:var(--color-blue-grey50)}.Card_body_PX3IM.Card_white-body-style_PX3IM{background-color:var(--color-white);border:1px solid var(--color-blue-grey100)}.Card_body_PX3IM.Card_white-body-style_PX3IM.Card_without-header_PX3IM{border-radius:calc(.25 * var(--font-size))}.Card_body_PX3IM.Card_white-body-style_PX3IM.Card_with-header_PX3IM{border-top:none;border-bottom-left-radius:calc(.25 * var(--font-size));border-bottom-right-radius:calc(.25 * var(--font-size))}')),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="Card_main_PX3IM",t="Card_header_PX3IM",d="Card_title_PX3IM",r="Card_description_PX3IM",i="Card_body_PX3IM",a={main:e,header:t,"title-left":"Card_title-left_PX3IM",title:d,description:r,"title-right":"Card_title-right_PX3IM",body:i,"default-body-style":"Card_default-body-style_PX3IM","white-body-style":"Card_white-body-style_PX3IM","without-header":"Card_without-header_PX3IM","with-header":"Card_with-header_PX3IM"};exports.body=i,exports.default=a,exports.description=r,exports.header=t,exports.main=e,exports.title=d;
|
|
3
3
|
//# sourceMappingURL=Card.module.scss.cjs.js.map
|
|
@@ -1,21 +1,21 @@
|
|
|
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 */.
|
|
2
|
-
const main = "
|
|
3
|
-
const header = "
|
|
4
|
-
const title = "
|
|
5
|
-
const description = "
|
|
6
|
-
const body = "
|
|
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 */.Card_main_PX3IM{border-radius:calc(.25 * var(--font-size));min-width:calc(18.5 * var(--font-size));overflow:hidden}.Card_header_PX3IM{display:flex;align-items:center;padding:calc(.5 * var(--font-size)) calc(1.5 * var(--font-size));justify-content:space-between;gap:calc(.5 * var(--font-size));background-color:var(--color-primary100)}.Card_header_PX3IM .Card_title-left_PX3IM{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}.Card_header_PX3IM .Card_title-left_PX3IM .Card_title_PX3IM{margin:0;font-weight:500;max-width:100%;display:block}.Card_header_PX3IM .Card_title-left_PX3IM .Card_description_PX3IM{margin:0;max-width:100%;display:block}.Card_header_PX3IM .Card_title-right_PX3IM{flex:0 0 auto;display:flex;align-items:center;height:100%;gap:calc(.5 * var(--font-size));white-space:nowrap}.Card_body_PX3IM{padding:calc(1 * var(--font-size)) calc(1.5 * var(--font-size))}.Card_body_PX3IM.Card_default-body-style_PX3IM{background-color:var(--color-blue-grey50)}.Card_body_PX3IM.Card_white-body-style_PX3IM{background-color:var(--color-white);border:1px solid var(--color-blue-grey100)}.Card_body_PX3IM.Card_white-body-style_PX3IM.Card_without-header_PX3IM{border-radius:calc(.25 * var(--font-size))}.Card_body_PX3IM.Card_white-body-style_PX3IM.Card_with-header_PX3IM{border-top:none;border-bottom-left-radius:calc(.25 * var(--font-size));border-bottom-right-radius:calc(.25 * var(--font-size))}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
|
|
2
|
+
const main = "Card_main_PX3IM";
|
|
3
|
+
const header = "Card_header_PX3IM";
|
|
4
|
+
const title = "Card_title_PX3IM";
|
|
5
|
+
const description = "Card_description_PX3IM";
|
|
6
|
+
const body = "Card_body_PX3IM";
|
|
7
7
|
const classes = {
|
|
8
8
|
main,
|
|
9
9
|
header,
|
|
10
|
-
"title-left": "Card_title-
|
|
10
|
+
"title-left": "Card_title-left_PX3IM",
|
|
11
11
|
title,
|
|
12
12
|
description,
|
|
13
|
-
"title-right": "Card_title-
|
|
13
|
+
"title-right": "Card_title-right_PX3IM",
|
|
14
14
|
body,
|
|
15
|
-
"default-body-style": "Card_default-body-
|
|
16
|
-
"white-body-style": "Card_white-body-
|
|
17
|
-
"without-header": "Card_without-
|
|
18
|
-
"with-header": "Card_with-
|
|
15
|
+
"default-body-style": "Card_default-body-style_PX3IM",
|
|
16
|
+
"white-body-style": "Card_white-body-style_PX3IM",
|
|
17
|
+
"without-header": "Card_without-header_PX3IM",
|
|
18
|
+
"with-header": "Card_with-header_PX3IM"
|
|
19
19
|
};
|
|
20
20
|
export {
|
|
21
21
|
body,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),a=require("../../Typography/Typography.cjs.js"),t=require("./ContentHeader.module.scss.cjs.js"),l=require("../../Button/IconButton.cjs.js"),r=require("../../Icon/Icon.cjs.js"),n=require("../../Tag/Tag.cjs.js"),c=require("../../TextEllipsis/TextEllipsis.cjs.js"),s=require("../../../hooks/useStickyStacking.cjs.js"),i=({title:i,children:o,buttons:d,collapsed:u,subtitle:m,navigation:p,tags:f,error:E,errorMessage:g,errorTagText:v,sticky:h,...y})=>{const b=e.useRef(null),k=e.useRef(null),N=e.useRef(null),{isStuck:T}=s.useStickyStacking(b,{enabled:!!h,zIndex:12,disableScrollAnchoring:!0}),x=h&&T||!!u;e.useLayoutEffect(()=>{var e,a;p&&(x&&document.activeElement===k.current?null==(e=N.current)||e.focus():x||document.activeElement!==N.current||null==(a=k.current)||a.focus())},[x,p]);const j=e.createElement(n.Tag,{icon:r.Icons.Forbidden,backgroundColor:"var(--color-red100)",color:"var(--color-red900)"},v||"Blocked"),$=()=>f??[],S=e.useMemo(()=>E&&x?[j,...$().filter(e=>"enabled"!==e.props.variant)]:E?$().filter(e=>"enabled"!==e.props.variant):$(),[f,E,x]),I=`${t.default.collapsible} ${x?t.default.collapsed:""}`,q=(a,n,c={})=>e.createElement(l.IconButton,{ref:a,onClick:()=>null==p?void 0:p.navigateFN(-1),className:t.default["back-arrow"],iconSize:c.iconSize,tabIndex:n?0:-1},e.createElement(r.Icon,{icon:r.Icons.ArrowLeft}),c.withText&&e.createElement("span",{className:t.default["back-text"]},(null==p?void 0:p.displayText)?p.displayText:"Back"));return e.createElement("div",{className:`${t.default["header-background-color"]} ${h?t.default.sticky:""} ${h&&T?t.default["sticky-spacing"]:""}`,ref:b},e.createElement("div",{className:`${t.default.header} ${y.className} ${x?t.default["collapsed-header"]:""}`,...y},e.createElement("div",null,p&&e.createElement("div",{className:I},e.createElement("div",{className:`${t.default["collapsible-inner"]} ${t.default["navigation-top"]} ${x?t.default.collapsed:""}`,"aria-hidden":x},q(k,!x,{withText:!0,iconSize:"s"}))),e.createElement(a.Typography,{className:t.default["header-text"],variant:"h1"},p&&e.createElement("span",{className:`${t.default["inline-back"]} ${x?"":t.default.hidden}`,"aria-hidden":!x},q(N,x)),e.createElement(c.TextEllipsis,{"data-testid":"content-header-title"},i),e.createElement("span",{className:t.default["header-tags"]},S.map((a,t)=>e.createElement(e.Fragment,{key:a.key||t},a)))),m&&!E&&e.createElement("div",{className:I},e.createElement("div",{className:t.default["collapsible-inner"],"aria-hidden":x},e.createElement(a.Typography,{className:t.default["header-subtitle"],variant:"h4"},m))),e.createElement("div",{className:I},e.createElement("div",{className:t.default["collapsible-inner"],"aria-hidden":x},e.createElement(a.Typography,{variant:"body",spacing:{margin:0}},E?e.createElement(e.Fragment,null,j,e.createElement("span",{className:t.default["error-text"]},g)):o)))),d&&e.createElement("div",{className:t.default["buttons-wrapper"]},d)))},o=i;exports.ContentHeader=o,exports.ContentHeaderComponent=i;
|
|
2
2
|
//# sourceMappingURL=ContentHeader.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentHeader.cjs.js","sources":["../../../../src/components/Layout/ContentHeader/ContentHeader.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, { HTMLAttributes, ReactElement, useMemo } from \"react\";\nimport { Button, Props as ButtonProps } from \"../../Button/Button\";\nimport { Typography } from \"../../Typography/Typography\";\n\nimport classes from \"./ContentHeader.module.scss\";\nimport { IconButton } from \"../../Button/IconButton\";\nimport { Icon, Icons } from \"../../Icon/Icon\";\nimport { NavigateFunction } from \"react-router-dom\";\nimport { Tag, Props as TagProps } from \"../../Tag/Tag\";\nimport { TextEllipsis } from \"../../TextEllipsis/TextEllipsis\";\n\nexport interface ContentHeaderNavigationProps {\n displayText?: string;\n navigateFN: NavigateFunction;\n}\n\nexport interface Props extends HTMLAttributes<HTMLDivElement> {\n title: string;\n /**\n * @deprecated pass text as children\n */\n subtitle?: string;\n buttons?: ReactElement<ButtonProps, typeof Button> | ReactElement<ButtonProps, typeof Button>[];\n collapsed?: boolean;\n navigation?: ContentHeaderNavigationProps;\n tags?: ReactElement<TagProps, typeof Tag>[];\n error?: boolean;\n errorMessage?: string;\n errorTagText?: string;\n}\n\nexport const ContentHeaderComponent = ({\n title,\n children,\n buttons,\n collapsed,\n subtitle,\n navigation,\n tags,\n error,\n errorMessage,\n errorTagText,\n ...rest\n}: Props) => {\n const errorTag = (\n <Tag icon={Icons.Forbidden} backgroundColor=\"var(--color-red100)\" color=\"var(--color-red900)\">\n {errorTagText || \"Blocked\"}\n </Tag>\n );\n\n const getTags = () => tags ?? [];\n\n const renderTags = useMemo(() => {\n if (error && collapsed) {\n return [errorTag, ...getTags().filter(tag => tag.props.variant !== \"enabled\")];\n } else if (error) {\n return getTags().filter(tag => tag.props.variant !== \"enabled\");\n }\n return getTags();\n }, [tags, error, collapsed]);\n\n return (\n <div className={classes[\"header-background-color\"]}>\n <div\n className={`${classes[\"header\"]} ${rest.className} ${collapsed ? classes[\"collapsed-header\"] : \"\"}`}\n {...rest}\n >\n <div>\n {navigation && !collapsed && (\n <IconButton\n onClick={() => {\n navigation.navigateFN(-1);\n }}\n className={classes[\"back-arrow\"]}\n iconSize=\"s\"\n >\n <Icon icon={Icons.ArrowLeft} />\n <span className={classes[\"back-text\"]}>\n {navigation.displayText ? navigation.displayText : \"Back\"}\n </span>\n </IconButton>\n )}\n <Typography className={classes[\"header-text\"]} variant={\"h1\"}>\n {navigation && collapsed && (\n <IconButton\n onClick={() => {\n navigation.navigateFN(-1);\n }}\n className={classes[\"back-arrow\"]}\n >\n <Icon icon={Icons.ArrowLeft} />\n </IconButton>\n )}\n <TextEllipsis data-testid={\"content-header-title\"}>{title}</TextEllipsis>\n <span className={classes[\"header-tags\"]}>\n {renderTags.map((tag, index) => (\n <React.Fragment key={tag.key || index}>{tag}</React.Fragment>\n ))}\n </span>\n </Typography>\n {subtitle && !error && (\n <Typography\n className={`${classes[\"header-subtitle\"]} ${collapsed ? classes[\"hide-text\"] : \"\"}`}\n variant=\"h4\"\n >\n {subtitle}\n </Typography>\n )}\n <Typography\n className={`${collapsed ? classes[\"hide-text\"] : \"\"}`}\n variant=\"body\"\n spacing={{ margin: 0 }}\n >\n {error ? (\n <>\n {errorTag}\n <span className={classes[\"error-text\"]}>{errorMessage}</span>\n </>\n ) : (\n children\n )}\n </Typography>\n </div>\n {buttons && <div className={classes[\"buttons-wrapper\"]}>{buttons}</div>}\n </div>\n </div>\n );\n};\n\nexport const ContentHeader = ContentHeaderComponent;\n"],"names":["ContentHeaderComponent","title","children","buttons","collapsed","subtitle","navigation","tags","error","errorMessage","errorTagText","rest","errorTag","React","createElement","Tag","icon","Icons","Forbidden","backgroundColor","color","getTags","renderTags","useMemo","filter","tag","props","variant","className","classes","IconButton","onClick","navigateFN","iconSize","Icon","ArrowLeft","displayText","Typography","TextEllipsis","map","index","Fragment","key","spacing","margin","ContentHeader"],"mappings":"+WA+CaA,EAAyB,EACpCC,QACAC,WACAC,UACAC,YACAC,WACAC,aACAC,OACAC,QACAC,eACAC,kBACGC,MAEH,MAAMC,EACJC,EAAAC,cAACC,EAAAA,IAAA,CAAIC,KAAMC,EAAAA,MAAMC,UAAWC,gBAAgB,sBAAsBC,MAAM,uBACrEV,GAAgB,WAIfW,EAAU,IAAMd,GAAQ,GAExBe,EAAaC,EAAAA,QAAQ,IACrBf,GAASJ,EACJ,CAACQ,KAAaS,IAAUG,OAAOC,GAA6B,YAAtBA,EAAIC,MAAMC,UAC9CnB,EACFa,IAAUG,UAAoC,YAAtBC,EAAIC,MAAMC,SAEpCN,IACN,CAACd,EAAMC,EAAOJ,IAEjB,OACES,EAAAC,cAAC,MAAA,CAAIc,UAAWC,EAAAA,QAAQ,4BACtBhB,EAAAC,cAAC,MAAA,CACCc,UAAW,GAAGC,EAAAA,QAAgB,UAAKlB,EAAKiB,aAAaxB,EAAYyB,EAAAA,QAAQ,oBAAsB,QAC3FlB,KAEJG,cAAC,MAAA,KACER,IAAeF,GACdS,EAAAC,cAACgB,EAAAA,WAAA,CACCC,QAAS,KACPzB,EAAW0B,YAAW,IAExBJ,UAAWC,EAAAA,QAAQ,cACnBI,SAAS,KAETpB,EAAAC,cAACoB,EAAAA,KAAA,CAAKlB,KAAMC,EAAAA,MAAMkB,YAClBtB,EAAAC,cAAC,OAAA,CAAKc,UAAWC,EAAAA,QAAQ,cACtBvB,EAAW8B,YAAc9B,EAAW8B,YAAc,SAIzDvB,EAAAC,cAACuB,EAAAA,WAAA,CAAWT,UAAWC,EAAAA,QAAQ,eAAgBF,QAAS,MACrDrB,GAAcF,GACbS,EAAAC,cAACgB,EAAAA,WAAA,CACCC,QAAS,KACPzB,EAAW0B,YAAW,IAExBJ,UAAWC,EAAAA,QAAQ,eAEnBhB,EAAAC,cAACoB,EAAAA,KAAA,CAAKlB,KAAMC,EAAAA,MAAMkB,eAGtBrB,cAACwB,EAAAA,aAAA,CAAa,cAAa,wBAAyBrC,GACpDY,EAAAC,cAAC,OAAA,CAAKc,UAAWC,EAAAA,QAAQ,gBACtBP,EAAWiB,IAAI,CAACd,EAAKe,IACpB3B,EAAAC,cAACD,EAAM4B,SAAN,CAAeC,IAAKjB,EAAIiB,KAAOF,GAAQf,MAI7CpB,IAAaG,GACZK,EAAAC,cAACuB,EAAAA,WAAA,CACCT,UAAW,GAAGC,UAAQ,sBAAsBzB,EAAYyB,UAAQ,aAAe,KAC/EF,QAAQ,MAEPtB,GAGLQ,EAAAC,cAACuB,EAAAA,WAAA,CACCT,UAAW,GAAGxB,EAAYyB,EAAAA,QAAQ,aAAe,KACjDF,QAAQ,OACRgB,QAAS,CAAEC,OAAQ,IAElBpC,EACCK,EAAAC,cAAAD,EAAA4B,SAAA,KACG7B,EACDC,EAAAC,cAAC,OAAA,CAAKc,UAAWC,EAAAA,QAAQ,eAAgBpB,IAG3CP,IAILC,GAAWU,EAAAC,cAAC,MAAA,CAAIc,UAAWC,EAAAA,QAAQ,oBAAqB1B,MAMpD0C,EAAgB7C"}
|
|
1
|
+
{"version":3,"file":"ContentHeader.cjs.js","sources":["../../../../src/components/Layout/ContentHeader/ContentHeader.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, { HTMLAttributes, ReactElement, useLayoutEffect, useMemo, useRef } from \"react\";\nimport { Button, Props as ButtonProps } from \"../../Button/Button\";\nimport { Typography } from \"../../Typography/Typography\";\n\nimport classes from \"./ContentHeader.module.scss\";\nimport { IconButton } from \"../../Button/IconButton\";\nimport { Icon, Icons } from \"../../Icon/Icon\";\nimport { NavigateFunction } from \"react-router-dom\";\nimport { Tag, Props as TagProps } from \"../../Tag/Tag\";\nimport { TextEllipsis } from \"../../TextEllipsis/TextEllipsis\";\nimport { useStickyStacking } from \"../../../hooks/useStickyStacking\";\n\nconst STICKY_CONTENT_HEADER_Z_INDEX = 12; //Keeps the docked header above form fields(toggle).\n\nexport interface ContentHeaderNavigationProps {\n displayText?: string;\n navigateFN: NavigateFunction;\n}\n\nexport interface Props extends HTMLAttributes<HTMLDivElement> {\n title: string;\n /**\n * @deprecated pass text as children\n */\n subtitle?: string;\n buttons?: ReactElement<ButtonProps, typeof Button> | ReactElement<ButtonProps, typeof Button>[];\n collapsed?: boolean;\n navigation?: ContentHeaderNavigationProps;\n tags?: ReactElement<TagProps, typeof Tag>[];\n error?: boolean;\n errorMessage?: string;\n errorTagText?: string;\n sticky?: boolean;\n}\n\nexport const ContentHeaderComponent = ({\n title,\n children,\n buttons,\n collapsed,\n subtitle,\n navigation,\n tags,\n error,\n errorMessage,\n errorTagText,\n sticky,\n ...rest\n}: Props) => {\n const rootRef = useRef<HTMLDivElement>(null);\n const topBackButtonRef = useRef<HTMLButtonElement>(null);\n const inlineBackButtonRef = useRef<HTMLButtonElement>(null);\n\n const { isStuck } = useStickyStacking(rootRef, {\n enabled: !!sticky,\n zIndex: STICKY_CONTENT_HEADER_Z_INDEX,\n disableScrollAnchoring: true\n });\n const effectiveCollapsed = sticky ? isStuck || !!collapsed : !!collapsed;\n\n useLayoutEffect(() => {\n if (!navigation) {\n return;\n }\n if (effectiveCollapsed && document.activeElement === topBackButtonRef.current) {\n inlineBackButtonRef.current?.focus();\n } else if (!effectiveCollapsed && document.activeElement === inlineBackButtonRef.current) {\n topBackButtonRef.current?.focus();\n }\n }, [effectiveCollapsed, navigation]);\n\n const errorTag = (\n <Tag icon={Icons.Forbidden} backgroundColor=\"var(--color-red100)\" color=\"var(--color-red900)\">\n {errorTagText || \"Blocked\"}\n </Tag>\n );\n\n const getTags = () => tags ?? [];\n\n const renderTags = useMemo(() => {\n if (error && effectiveCollapsed) {\n return [errorTag, ...getTags().filter(tag => tag.props.variant !== \"enabled\")];\n } else if (error) {\n return getTags().filter(tag => tag.props.variant !== \"enabled\");\n }\n return getTags();\n }, [tags, error, effectiveCollapsed]);\n\n const collapsibleClassName = `${classes[\"collapsible\"]} ${\n effectiveCollapsed ? classes[\"collapsed\"] : \"\"\n }`;\n\n const renderBackButton = (\n ref: React.RefObject<HTMLButtonElement>,\n isActive: boolean,\n options: { withText?: boolean; iconSize?: \"s\" | \"m\" | \"l\" } = {}\n ) => (\n <IconButton\n ref={ref}\n onClick={() => navigation?.navigateFN(-1)}\n className={classes[\"back-arrow\"]}\n iconSize={options.iconSize}\n tabIndex={isActive ? 0 : -1}\n >\n <Icon icon={Icons.ArrowLeft} />\n {options.withText && (\n <span className={classes[\"back-text\"]}>\n {navigation?.displayText ? navigation.displayText : \"Back\"}\n </span>\n )}\n </IconButton>\n );\n\n return (\n <div\n className={`${classes[\"header-background-color\"]} ${sticky ? classes[\"sticky\"] : \"\"} ${\n sticky && isStuck ? classes[\"sticky-spacing\"] : \"\"\n }`}\n ref={rootRef}\n >\n <div\n className={`${classes[\"header\"]} ${rest.className} ${effectiveCollapsed ? classes[\"collapsed-header\"] : \"\"}`}\n {...rest}\n >\n <div>\n {navigation && (\n <div className={collapsibleClassName}>\n <div\n className={`${classes[\"collapsible-inner\"]} ${classes[\"navigation-top\"]} ${effectiveCollapsed ? classes[\"collapsed\"] : \"\"}`}\n aria-hidden={effectiveCollapsed}\n >\n {renderBackButton(topBackButtonRef, !effectiveCollapsed, {\n withText: true,\n iconSize: \"s\"\n })}\n </div>\n </div>\n )}\n <Typography className={classes[\"header-text\"]} variant={\"h1\"}>\n {navigation && (\n <span\n className={`${classes[\"inline-back\"]} ${effectiveCollapsed ? \"\" : classes[\"hidden\"]}`}\n aria-hidden={!effectiveCollapsed}\n >\n {renderBackButton(inlineBackButtonRef, effectiveCollapsed)}\n </span>\n )}\n <TextEllipsis data-testid={\"content-header-title\"}>{title}</TextEllipsis>\n <span className={classes[\"header-tags\"]}>\n {renderTags.map((tag, index) => (\n <React.Fragment key={tag.key || index}>{tag}</React.Fragment>\n ))}\n </span>\n </Typography>\n {subtitle && !error && (\n <div className={collapsibleClassName}>\n <div className={classes[\"collapsible-inner\"]} aria-hidden={effectiveCollapsed}>\n <Typography className={classes[\"header-subtitle\"]} variant=\"h4\">\n {subtitle}\n </Typography>\n </div>\n </div>\n )}\n <div className={collapsibleClassName}>\n <div className={classes[\"collapsible-inner\"]} aria-hidden={effectiveCollapsed}>\n <Typography variant=\"body\" spacing={{ margin: 0 }}>\n {error ? (\n <>\n {errorTag}\n <span className={classes[\"error-text\"]}>{errorMessage}</span>\n </>\n ) : (\n children\n )}\n </Typography>\n </div>\n </div>\n </div>\n {buttons && <div className={classes[\"buttons-wrapper\"]}>{buttons}</div>}\n </div>\n </div>\n );\n};\n\nexport const ContentHeader = ContentHeaderComponent;\n"],"names":["ContentHeaderComponent","title","children","buttons","collapsed","subtitle","navigation","tags","error","errorMessage","errorTagText","sticky","rest","rootRef","useRef","topBackButtonRef","inlineBackButtonRef","isStuck","useStickyStacking","enabled","zIndex","disableScrollAnchoring","effectiveCollapsed","useLayoutEffect","document","activeElement","current","_a","focus","_b","errorTag","React","createElement","Tag","icon","Icons","Forbidden","backgroundColor","color","getTags","renderTags","useMemo","filter","tag","props","variant","collapsibleClassName","classes","renderBackButton","ref","isActive","options","IconButton","onClick","navigateFN","className","iconSize","tabIndex","Icon","ArrowLeft","withText","displayText","Typography","TextEllipsis","map","index","Fragment","key","spacing","margin","ContentHeader"],"mappings":"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"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import React, { useMemo } from "react";
|
|
1
|
+
import React, { useRef, useLayoutEffect, useMemo } from "react";
|
|
2
2
|
import { Typography } from "../../Typography/Typography.es.js";
|
|
3
3
|
import classes from "./ContentHeader.module.scss.es.js";
|
|
4
4
|
import { IconButton } from "../../Button/IconButton.es.js";
|
|
5
5
|
import { Icons, Icon } from "../../Icon/Icon.es.js";
|
|
6
6
|
import { Tag } from "../../Tag/Tag.es.js";
|
|
7
7
|
import { TextEllipsis } from "../../TextEllipsis/TextEllipsis.es.js";
|
|
8
|
+
import { useStickyStacking } from "../../../hooks/useStickyStacking.es.js";
|
|
9
|
+
const STICKY_CONTENT_HEADER_Z_INDEX = 12;
|
|
8
10
|
const ContentHeaderComponent = ({
|
|
9
11
|
title,
|
|
10
12
|
children,
|
|
@@ -16,62 +18,85 @@ const ContentHeaderComponent = ({
|
|
|
16
18
|
error,
|
|
17
19
|
errorMessage,
|
|
18
20
|
errorTagText,
|
|
21
|
+
sticky,
|
|
19
22
|
...rest
|
|
20
23
|
}) => {
|
|
24
|
+
const rootRef = useRef(null);
|
|
25
|
+
const topBackButtonRef = useRef(null);
|
|
26
|
+
const inlineBackButtonRef = useRef(null);
|
|
27
|
+
const { isStuck } = useStickyStacking(rootRef, {
|
|
28
|
+
enabled: !!sticky,
|
|
29
|
+
zIndex: STICKY_CONTENT_HEADER_Z_INDEX,
|
|
30
|
+
disableScrollAnchoring: true
|
|
31
|
+
});
|
|
32
|
+
const effectiveCollapsed = sticky ? isStuck || !!collapsed : !!collapsed;
|
|
33
|
+
useLayoutEffect(() => {
|
|
34
|
+
var _a, _b;
|
|
35
|
+
if (!navigation) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
if (effectiveCollapsed && document.activeElement === topBackButtonRef.current) {
|
|
39
|
+
(_a = inlineBackButtonRef.current) == null ? void 0 : _a.focus();
|
|
40
|
+
} else if (!effectiveCollapsed && document.activeElement === inlineBackButtonRef.current) {
|
|
41
|
+
(_b = topBackButtonRef.current) == null ? void 0 : _b.focus();
|
|
42
|
+
}
|
|
43
|
+
}, [effectiveCollapsed, navigation]);
|
|
21
44
|
const errorTag = /* @__PURE__ */ React.createElement(Tag, { icon: Icons.Forbidden, backgroundColor: "var(--color-red100)", color: "var(--color-red900)" }, errorTagText || "Blocked");
|
|
22
45
|
const getTags = () => tags ?? [];
|
|
23
46
|
const renderTags = useMemo(() => {
|
|
24
|
-
if (error &&
|
|
47
|
+
if (error && effectiveCollapsed) {
|
|
25
48
|
return [errorTag, ...getTags().filter((tag) => tag.props.variant !== "enabled")];
|
|
26
49
|
} else if (error) {
|
|
27
50
|
return getTags().filter((tag) => tag.props.variant !== "enabled");
|
|
28
51
|
}
|
|
29
52
|
return getTags();
|
|
30
|
-
}, [tags, error,
|
|
31
|
-
|
|
53
|
+
}, [tags, error, effectiveCollapsed]);
|
|
54
|
+
const collapsibleClassName = `${classes["collapsible"]} ${effectiveCollapsed ? classes["collapsed"] : ""}`;
|
|
55
|
+
const renderBackButton = (ref, isActive, options = {}) => /* @__PURE__ */ React.createElement(
|
|
56
|
+
IconButton,
|
|
57
|
+
{
|
|
58
|
+
ref,
|
|
59
|
+
onClick: () => navigation == null ? void 0 : navigation.navigateFN(-1),
|
|
60
|
+
className: classes["back-arrow"],
|
|
61
|
+
iconSize: options.iconSize,
|
|
62
|
+
tabIndex: isActive ? 0 : -1
|
|
63
|
+
},
|
|
64
|
+
/* @__PURE__ */ React.createElement(Icon, { icon: Icons.ArrowLeft }),
|
|
65
|
+
options.withText && /* @__PURE__ */ React.createElement("span", { className: classes["back-text"] }, (navigation == null ? void 0 : navigation.displayText) ? navigation.displayText : "Back")
|
|
66
|
+
);
|
|
67
|
+
return /* @__PURE__ */ React.createElement(
|
|
32
68
|
"div",
|
|
33
69
|
{
|
|
34
|
-
className: `${classes["header"]} ${
|
|
35
|
-
|
|
70
|
+
className: `${classes["header-background-color"]} ${sticky ? classes["sticky"] : ""} ${sticky && isStuck ? classes["sticky-spacing"] : ""}`,
|
|
71
|
+
ref: rootRef
|
|
36
72
|
},
|
|
37
|
-
/* @__PURE__ */ React.createElement(
|
|
38
|
-
|
|
73
|
+
/* @__PURE__ */ React.createElement(
|
|
74
|
+
"div",
|
|
39
75
|
{
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
},
|
|
43
|
-
className: classes["back-arrow"],
|
|
44
|
-
iconSize: "s"
|
|
76
|
+
className: `${classes["header"]} ${rest.className} ${effectiveCollapsed ? classes["collapsed-header"] : ""}`,
|
|
77
|
+
...rest
|
|
45
78
|
},
|
|
46
|
-
/* @__PURE__ */ React.createElement(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
onClick: () => {
|
|
52
|
-
navigation.navigateFN(-1);
|
|
79
|
+
/* @__PURE__ */ React.createElement("div", null, navigation && /* @__PURE__ */ React.createElement("div", { className: collapsibleClassName }, /* @__PURE__ */ React.createElement(
|
|
80
|
+
"div",
|
|
81
|
+
{
|
|
82
|
+
className: `${classes["collapsible-inner"]} ${classes["navigation-top"]} ${effectiveCollapsed ? classes["collapsed"] : ""}`,
|
|
83
|
+
"aria-hidden": effectiveCollapsed
|
|
53
84
|
},
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
Typography,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
Typography,
|
|
66
|
-
{
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
spacing: { margin: 0 }
|
|
70
|
-
},
|
|
71
|
-
error ? /* @__PURE__ */ React.createElement(React.Fragment, null, errorTag, /* @__PURE__ */ React.createElement("span", { className: classes["error-text"] }, errorMessage)) : children
|
|
72
|
-
)),
|
|
73
|
-
buttons && /* @__PURE__ */ React.createElement("div", { className: classes["buttons-wrapper"] }, buttons)
|
|
74
|
-
));
|
|
85
|
+
renderBackButton(topBackButtonRef, !effectiveCollapsed, {
|
|
86
|
+
withText: true,
|
|
87
|
+
iconSize: "s"
|
|
88
|
+
})
|
|
89
|
+
)), /* @__PURE__ */ React.createElement(Typography, { className: classes["header-text"], variant: "h1" }, navigation && /* @__PURE__ */ React.createElement(
|
|
90
|
+
"span",
|
|
91
|
+
{
|
|
92
|
+
className: `${classes["inline-back"]} ${effectiveCollapsed ? "" : classes["hidden"]}`,
|
|
93
|
+
"aria-hidden": !effectiveCollapsed
|
|
94
|
+
},
|
|
95
|
+
renderBackButton(inlineBackButtonRef, effectiveCollapsed)
|
|
96
|
+
), /* @__PURE__ */ React.createElement(TextEllipsis, { "data-testid": "content-header-title" }, title), /* @__PURE__ */ React.createElement("span", { className: classes["header-tags"] }, renderTags.map((tag, index) => /* @__PURE__ */ React.createElement(React.Fragment, { key: tag.key || index }, tag)))), subtitle && !error && /* @__PURE__ */ React.createElement("div", { className: collapsibleClassName }, /* @__PURE__ */ React.createElement("div", { className: classes["collapsible-inner"], "aria-hidden": effectiveCollapsed }, /* @__PURE__ */ React.createElement(Typography, { className: classes["header-subtitle"], variant: "h4" }, subtitle))), /* @__PURE__ */ React.createElement("div", { className: collapsibleClassName }, /* @__PURE__ */ React.createElement("div", { className: classes["collapsible-inner"], "aria-hidden": effectiveCollapsed }, /* @__PURE__ */ React.createElement(Typography, { variant: "body", spacing: { margin: 0 } }, error ? /* @__PURE__ */ React.createElement(React.Fragment, null, errorTag, /* @__PURE__ */ React.createElement("span", { className: classes["error-text"] }, errorMessage)) : children)))),
|
|
97
|
+
buttons && /* @__PURE__ */ React.createElement("div", { className: classes["buttons-wrapper"] }, buttons)
|
|
98
|
+
)
|
|
99
|
+
);
|
|
75
100
|
};
|
|
76
101
|
const ContentHeader = ContentHeaderComponent;
|
|
77
102
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentHeader.es.js","sources":["../../../../src/components/Layout/ContentHeader/ContentHeader.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, { HTMLAttributes, ReactElement, useMemo } from \"react\";\nimport { Button, Props as ButtonProps } from \"../../Button/Button\";\nimport { Typography } from \"../../Typography/Typography\";\n\nimport classes from \"./ContentHeader.module.scss\";\nimport { IconButton } from \"../../Button/IconButton\";\nimport { Icon, Icons } from \"../../Icon/Icon\";\nimport { NavigateFunction } from \"react-router-dom\";\nimport { Tag, Props as TagProps } from \"../../Tag/Tag\";\nimport { TextEllipsis } from \"../../TextEllipsis/TextEllipsis\";\n\nexport interface ContentHeaderNavigationProps {\n displayText?: string;\n navigateFN: NavigateFunction;\n}\n\nexport interface Props extends HTMLAttributes<HTMLDivElement> {\n title: string;\n /**\n * @deprecated pass text as children\n */\n subtitle?: string;\n buttons?: ReactElement<ButtonProps, typeof Button> | ReactElement<ButtonProps, typeof Button>[];\n collapsed?: boolean;\n navigation?: ContentHeaderNavigationProps;\n tags?: ReactElement<TagProps, typeof Tag>[];\n error?: boolean;\n errorMessage?: string;\n errorTagText?: string;\n}\n\nexport const ContentHeaderComponent = ({\n title,\n children,\n buttons,\n collapsed,\n subtitle,\n navigation,\n tags,\n error,\n errorMessage,\n errorTagText,\n ...rest\n}: Props) => {\n const errorTag = (\n <Tag icon={Icons.Forbidden} backgroundColor=\"var(--color-red100)\" color=\"var(--color-red900)\">\n {errorTagText || \"Blocked\"}\n </Tag>\n );\n\n const getTags = () => tags ?? [];\n\n const renderTags = useMemo(() => {\n if (error && collapsed) {\n return [errorTag, ...getTags().filter(tag => tag.props.variant !== \"enabled\")];\n } else if (error) {\n return getTags().filter(tag => tag.props.variant !== \"enabled\");\n }\n return getTags();\n }, [tags, error, collapsed]);\n\n return (\n <div className={classes[\"header-background-color\"]}>\n <div\n className={`${classes[\"header\"]} ${rest.className} ${collapsed ? classes[\"collapsed-header\"] : \"\"}`}\n {...rest}\n >\n <div>\n {navigation && !collapsed && (\n <IconButton\n onClick={() => {\n navigation.navigateFN(-1);\n }}\n className={classes[\"back-arrow\"]}\n iconSize=\"s\"\n >\n <Icon icon={Icons.ArrowLeft} />\n <span className={classes[\"back-text\"]}>\n {navigation.displayText ? navigation.displayText : \"Back\"}\n </span>\n </IconButton>\n )}\n <Typography className={classes[\"header-text\"]} variant={\"h1\"}>\n {navigation && collapsed && (\n <IconButton\n onClick={() => {\n navigation.navigateFN(-1);\n }}\n className={classes[\"back-arrow\"]}\n >\n <Icon icon={Icons.ArrowLeft} />\n </IconButton>\n )}\n <TextEllipsis data-testid={\"content-header-title\"}>{title}</TextEllipsis>\n <span className={classes[\"header-tags\"]}>\n {renderTags.map((tag, index) => (\n <React.Fragment key={tag.key || index}>{tag}</React.Fragment>\n ))}\n </span>\n </Typography>\n {subtitle && !error && (\n <Typography\n className={`${classes[\"header-subtitle\"]} ${collapsed ? classes[\"hide-text\"] : \"\"}`}\n variant=\"h4\"\n >\n {subtitle}\n </Typography>\n )}\n <Typography\n className={`${collapsed ? classes[\"hide-text\"] : \"\"}`}\n variant=\"body\"\n spacing={{ margin: 0 }}\n >\n {error ? (\n <>\n {errorTag}\n <span className={classes[\"error-text\"]}>{errorMessage}</span>\n </>\n ) : (\n children\n )}\n </Typography>\n </div>\n {buttons && <div className={classes[\"buttons-wrapper\"]}>{buttons}</div>}\n </div>\n </div>\n );\n};\n\nexport const ContentHeader = ContentHeaderComponent;\n"],"names":[],"mappings":";;;;;;;AA+CO,MAAM,yBAAyB,CAAC;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAa;AACX,QAAM,WACJ,sBAAA,cAAC,KAAA,EAAI,MAAM,MAAM,WAAW,iBAAgB,uBAAsB,OAAM,sBAAA,GACrE,gBAAgB,SACnB;AAGF,QAAM,UAAU,MAAM,QAAQ,CAAA;AAE9B,QAAM,aAAa,QAAQ,MAAM;AAC/B,QAAI,SAAS,WAAW;AACtB,aAAO,CAAC,UAAU,GAAG,QAAA,EAAU,OAAO,CAAA,QAAO,IAAI,MAAM,YAAY,SAAS,CAAC;AAAA,IAC/E,WAAW,OAAO;AAChB,aAAO,UAAU,OAAO,SAAO,IAAI,MAAM,YAAY,SAAS;AAAA,IAChE;AACA,WAAO,QAAA;AAAA,EACT,GAAG,CAAC,MAAM,OAAO,SAAS,CAAC;AAE3B,SACE,sBAAA,cAAC,OAAA,EAAI,WAAW,QAAQ,yBAAyB,KAC/C,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,GAAG,QAAQ,QAAQ,CAAC,IAAI,KAAK,SAAS,IAAI,YAAY,QAAQ,kBAAkB,IAAI,EAAE;AAAA,MAChG,GAAG;AAAA,IAAA;AAAA,IAEJ,sBAAA,cAAC,OAAA,MACE,cAAc,CAAC,aACd,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,SAAS,MAAM;AACb,qBAAW,WAAW,EAAE;AAAA,QAC1B;AAAA,QACA,WAAW,QAAQ,YAAY;AAAA,QAC/B,UAAS;AAAA,MAAA;AAAA,MAET,sBAAA,cAAC,MAAA,EAAK,MAAM,MAAM,WAAW;AAAA,MAC7B,sBAAA,cAAC,QAAA,EAAK,WAAW,QAAQ,WAAW,KACjC,WAAW,cAAc,WAAW,cAAc,MACrD;AAAA,IAAA,GAGJ,sBAAA,cAAC,YAAA,EAAW,WAAW,QAAQ,aAAa,GAAG,SAAS,KAAA,GACrD,cAAc,aACb,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,SAAS,MAAM;AACb,qBAAW,WAAW,EAAE;AAAA,QAC1B;AAAA,QACA,WAAW,QAAQ,YAAY;AAAA,MAAA;AAAA,MAE/B,sBAAA,cAAC,MAAA,EAAK,MAAM,MAAM,UAAA,CAAW;AAAA,IAAA,GAGjC,sBAAA,cAAC,cAAA,EAAa,eAAa,0BAAyB,KAAM,GAC1D,sBAAA,cAAC,QAAA,EAAK,WAAW,QAAQ,aAAa,EAAA,GACnC,WAAW,IAAI,CAAC,KAAK,UACpB,sBAAA,cAAC,MAAM,UAAN,EAAe,KAAK,IAAI,OAAO,MAAA,GAAQ,GAAI,CAC7C,CACH,CACF,GACC,YAAY,CAAC,SACZ,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAW,GAAG,QAAQ,iBAAiB,CAAC,IAAI,YAAY,QAAQ,WAAW,IAAI,EAAE;AAAA,QACjF,SAAQ;AAAA,MAAA;AAAA,MAEP;AAAA,IAAA,GAGL,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAW,GAAG,YAAY,QAAQ,WAAW,IAAI,EAAE;AAAA,QACnD,SAAQ;AAAA,QACR,SAAS,EAAE,QAAQ,EAAA;AAAA,MAAE;AAAA,MAEpB,QACC,sBAAA,cAAA,MAAA,UAAA,MACG,UACD,sBAAA,cAAC,QAAA,EAAK,WAAW,QAAQ,YAAY,EAAA,GAAI,YAAa,CACxD,IAEA;AAAA,IAAA,CAGN;AAAA,IACC,WAAW,sBAAA,cAAC,OAAA,EAAI,WAAW,QAAQ,iBAAiB,KAAI,OAAQ;AAAA,EAAA,CAErE;AAEJ;AAEO,MAAM,gBAAgB;"}
|
|
1
|
+
{"version":3,"file":"ContentHeader.es.js","sources":["../../../../src/components/Layout/ContentHeader/ContentHeader.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, { HTMLAttributes, ReactElement, useLayoutEffect, useMemo, useRef } from \"react\";\nimport { Button, Props as ButtonProps } from \"../../Button/Button\";\nimport { Typography } from \"../../Typography/Typography\";\n\nimport classes from \"./ContentHeader.module.scss\";\nimport { IconButton } from \"../../Button/IconButton\";\nimport { Icon, Icons } from \"../../Icon/Icon\";\nimport { NavigateFunction } from \"react-router-dom\";\nimport { Tag, Props as TagProps } from \"../../Tag/Tag\";\nimport { TextEllipsis } from \"../../TextEllipsis/TextEllipsis\";\nimport { useStickyStacking } from \"../../../hooks/useStickyStacking\";\n\nconst STICKY_CONTENT_HEADER_Z_INDEX = 12; //Keeps the docked header above form fields(toggle).\n\nexport interface ContentHeaderNavigationProps {\n displayText?: string;\n navigateFN: NavigateFunction;\n}\n\nexport interface Props extends HTMLAttributes<HTMLDivElement> {\n title: string;\n /**\n * @deprecated pass text as children\n */\n subtitle?: string;\n buttons?: ReactElement<ButtonProps, typeof Button> | ReactElement<ButtonProps, typeof Button>[];\n collapsed?: boolean;\n navigation?: ContentHeaderNavigationProps;\n tags?: ReactElement<TagProps, typeof Tag>[];\n error?: boolean;\n errorMessage?: string;\n errorTagText?: string;\n sticky?: boolean;\n}\n\nexport const ContentHeaderComponent = ({\n title,\n children,\n buttons,\n collapsed,\n subtitle,\n navigation,\n tags,\n error,\n errorMessage,\n errorTagText,\n sticky,\n ...rest\n}: Props) => {\n const rootRef = useRef<HTMLDivElement>(null);\n const topBackButtonRef = useRef<HTMLButtonElement>(null);\n const inlineBackButtonRef = useRef<HTMLButtonElement>(null);\n\n const { isStuck } = useStickyStacking(rootRef, {\n enabled: !!sticky,\n zIndex: STICKY_CONTENT_HEADER_Z_INDEX,\n disableScrollAnchoring: true\n });\n const effectiveCollapsed = sticky ? isStuck || !!collapsed : !!collapsed;\n\n useLayoutEffect(() => {\n if (!navigation) {\n return;\n }\n if (effectiveCollapsed && document.activeElement === topBackButtonRef.current) {\n inlineBackButtonRef.current?.focus();\n } else if (!effectiveCollapsed && document.activeElement === inlineBackButtonRef.current) {\n topBackButtonRef.current?.focus();\n }\n }, [effectiveCollapsed, navigation]);\n\n const errorTag = (\n <Tag icon={Icons.Forbidden} backgroundColor=\"var(--color-red100)\" color=\"var(--color-red900)\">\n {errorTagText || \"Blocked\"}\n </Tag>\n );\n\n const getTags = () => tags ?? [];\n\n const renderTags = useMemo(() => {\n if (error && effectiveCollapsed) {\n return [errorTag, ...getTags().filter(tag => tag.props.variant !== \"enabled\")];\n } else if (error) {\n return getTags().filter(tag => tag.props.variant !== \"enabled\");\n }\n return getTags();\n }, [tags, error, effectiveCollapsed]);\n\n const collapsibleClassName = `${classes[\"collapsible\"]} ${\n effectiveCollapsed ? classes[\"collapsed\"] : \"\"\n }`;\n\n const renderBackButton = (\n ref: React.RefObject<HTMLButtonElement>,\n isActive: boolean,\n options: { withText?: boolean; iconSize?: \"s\" | \"m\" | \"l\" } = {}\n ) => (\n <IconButton\n ref={ref}\n onClick={() => navigation?.navigateFN(-1)}\n className={classes[\"back-arrow\"]}\n iconSize={options.iconSize}\n tabIndex={isActive ? 0 : -1}\n >\n <Icon icon={Icons.ArrowLeft} />\n {options.withText && (\n <span className={classes[\"back-text\"]}>\n {navigation?.displayText ? navigation.displayText : \"Back\"}\n </span>\n )}\n </IconButton>\n );\n\n return (\n <div\n className={`${classes[\"header-background-color\"]} ${sticky ? classes[\"sticky\"] : \"\"} ${\n sticky && isStuck ? classes[\"sticky-spacing\"] : \"\"\n }`}\n ref={rootRef}\n >\n <div\n className={`${classes[\"header\"]} ${rest.className} ${effectiveCollapsed ? classes[\"collapsed-header\"] : \"\"}`}\n {...rest}\n >\n <div>\n {navigation && (\n <div className={collapsibleClassName}>\n <div\n className={`${classes[\"collapsible-inner\"]} ${classes[\"navigation-top\"]} ${effectiveCollapsed ? classes[\"collapsed\"] : \"\"}`}\n aria-hidden={effectiveCollapsed}\n >\n {renderBackButton(topBackButtonRef, !effectiveCollapsed, {\n withText: true,\n iconSize: \"s\"\n })}\n </div>\n </div>\n )}\n <Typography className={classes[\"header-text\"]} variant={\"h1\"}>\n {navigation && (\n <span\n className={`${classes[\"inline-back\"]} ${effectiveCollapsed ? \"\" : classes[\"hidden\"]}`}\n aria-hidden={!effectiveCollapsed}\n >\n {renderBackButton(inlineBackButtonRef, effectiveCollapsed)}\n </span>\n )}\n <TextEllipsis data-testid={\"content-header-title\"}>{title}</TextEllipsis>\n <span className={classes[\"header-tags\"]}>\n {renderTags.map((tag, index) => (\n <React.Fragment key={tag.key || index}>{tag}</React.Fragment>\n ))}\n </span>\n </Typography>\n {subtitle && !error && (\n <div className={collapsibleClassName}>\n <div className={classes[\"collapsible-inner\"]} aria-hidden={effectiveCollapsed}>\n <Typography className={classes[\"header-subtitle\"]} variant=\"h4\">\n {subtitle}\n </Typography>\n </div>\n </div>\n )}\n <div className={collapsibleClassName}>\n <div className={classes[\"collapsible-inner\"]} aria-hidden={effectiveCollapsed}>\n <Typography variant=\"body\" spacing={{ margin: 0 }}>\n {error ? (\n <>\n {errorTag}\n <span className={classes[\"error-text\"]}>{errorMessage}</span>\n </>\n ) : (\n children\n )}\n </Typography>\n </div>\n </div>\n </div>\n {buttons && <div className={classes[\"buttons-wrapper\"]}>{buttons}</div>}\n </div>\n </div>\n );\n};\n\nexport const ContentHeader = ContentHeaderComponent;\n"],"names":[],"mappings":"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"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".ContentHeader_header_PX3IM{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;padding:2rem;z-index:1;transition:.5s;max-width:105rem}.ContentHeader_header_PX3IM.ContentHeader_collapsed-header_PX3IM{padding:1rem 2rem;transition:.5s}.ContentHeader_header_PX3IM.ContentHeader_collapsed-header_PX3IM .ContentHeader_buttons-wrapper_PX3IM{margin-bottom:.25rem}.ContentHeader_header-background-color_PX3IM{background-color:var(--color-blue-grey25)}.ContentHeader_header_PX3IM button.ContentHeader_back-arrow_PX3IM{width:auto;height:1rem;display:block;gap:.5rem}.ContentHeader_sticky_PX3IM{border-bottom:0 solid var(--color-white);transition:border-bottom-width .5s}.ContentHeader_sticky_PX3IM .ContentHeader_header_PX3IM,.ContentHeader_sticky_PX3IM .ContentHeader_header_PX3IM.ContentHeader_collapsed-header_PX3IM{transition:.5s}.ContentHeader_sticky-spacing_PX3IM{border-bottom-width:.5rem}.ContentHeader_collapsible_PX3IM{display:grid;grid-template-rows:1fr;transition:grid-template-rows .5s}.ContentHeader_collapsible_PX3IM.ContentHeader_collapsed_PX3IM{grid-template-rows:0fr}.ContentHeader_collapsible-inner_PX3IM{overflow:hidden;min-height:0}.ContentHeader_collapsible-inner_PX3IM.ContentHeader_navigation-top_PX3IM:not(.ContentHeader_collapsed_PX3IM){padding:.25rem;margin:-.25rem -.25rem .25rem}.ContentHeader_header-text_PX3IM{margin:0;font-weight:500;color:var(--color-blue-grey900);line-height:1.25;display:flex;align-items:center;max-width:65vw}@media screen and (max-width:900px){.ContentHeader_header-text_PX3IM{max-width:unset}.ContentHeader_header-text_PX3IM div{text-wrap:wrap}}.ContentHeader_header-text_PX3IM div{vertical-align:middle;align-self:center}.ContentHeader_header-text_PX3IM button.ContentHeader_back-arrow_PX3IM{margin-right:.5rem;width:2.5rem;height:2.5rem}.ContentHeader_header-tags_PX3IM{display:flex;margin-left:1rem;gap:.5rem}.ContentHeader_header-subtitle_PX3IM{color:var(--color-blue-grey400);font-weight:500}.ContentHeader_back-text_PX3IM{font-size:.875rem;font-weight:400;margin-left:.5rem}.ContentHeader_error-text_PX3IM{color:var(--color-red500);vertical-align:middle;margin-left:.5rem}.ContentHeader_navigation-top_PX3IM{margin-bottom:.5rem;transition:margin-bottom .5s,padding-bottom .5s}.ContentHeader_navigation-top_PX3IM.ContentHeader_collapsed_PX3IM{margin-bottom:0}.ContentHeader_inline-back_PX3IM{display:flex;overflow:hidden;max-width:4rem;transition:max-width .5s,opacity .5s;opacity:1}.ContentHeader_inline-back_PX3IM:not(.ContentHeader_hidden_PX3IM){padding:.25rem;margin:-.25rem}.ContentHeader_inline-back_PX3IM.ContentHeader_hidden_PX3IM{max-width:0;opacity:0}.ContentHeader_buttons-wrapper_PX3IM{display:flex;justify-content:flex-end;flex-shrink:0;gap:1rem;transition:margin-bottom .5s}")),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="ContentHeader_header_PX3IM",t="ContentHeader_sticky_PX3IM",a="ContentHeader_collapsible_PX3IM",r="ContentHeader_collapsed_PX3IM",n="ContentHeader_hidden_PX3IM",o={header:e,"collapsed-header":"ContentHeader_collapsed-header_PX3IM","buttons-wrapper":"ContentHeader_buttons-wrapper_PX3IM","header-background-color":"ContentHeader_header-background-color_PX3IM","back-arrow":"ContentHeader_back-arrow_PX3IM",sticky:t,"sticky-spacing":"ContentHeader_sticky-spacing_PX3IM",collapsible:a,collapsed:r,"collapsible-inner":"ContentHeader_collapsible-inner_PX3IM","navigation-top":"ContentHeader_navigation-top_PX3IM","header-text":"ContentHeader_header-text_PX3IM","header-tags":"ContentHeader_header-tags_PX3IM","header-subtitle":"ContentHeader_header-subtitle_PX3IM","back-text":"ContentHeader_back-text_PX3IM","error-text":"ContentHeader_error-text_PX3IM","inline-back":"ContentHeader_inline-back_PX3IM",hidden:n};exports.collapsed=r,exports.collapsible=a,exports.default=o,exports.header=e,exports.hidden=n,exports.sticky=t;
|
|
3
3
|
//# sourceMappingURL=ContentHeader.module.scss.cjs.js.map
|
|
@@ -1,20 +1,35 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".
|
|
2
|
-
const header = "
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".ContentHeader_header_PX3IM{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;padding:2rem;z-index:1;transition:.5s;max-width:105rem}.ContentHeader_header_PX3IM.ContentHeader_collapsed-header_PX3IM{padding:1rem 2rem;transition:.5s}.ContentHeader_header_PX3IM.ContentHeader_collapsed-header_PX3IM .ContentHeader_buttons-wrapper_PX3IM{margin-bottom:.25rem}.ContentHeader_header-background-color_PX3IM{background-color:var(--color-blue-grey25)}.ContentHeader_header_PX3IM button.ContentHeader_back-arrow_PX3IM{width:auto;height:1rem;display:block;gap:.5rem}.ContentHeader_sticky_PX3IM{border-bottom:0 solid var(--color-white);transition:border-bottom-width .5s}.ContentHeader_sticky_PX3IM .ContentHeader_header_PX3IM,.ContentHeader_sticky_PX3IM .ContentHeader_header_PX3IM.ContentHeader_collapsed-header_PX3IM{transition:.5s}.ContentHeader_sticky-spacing_PX3IM{border-bottom-width:.5rem}.ContentHeader_collapsible_PX3IM{display:grid;grid-template-rows:1fr;transition:grid-template-rows .5s}.ContentHeader_collapsible_PX3IM.ContentHeader_collapsed_PX3IM{grid-template-rows:0fr}.ContentHeader_collapsible-inner_PX3IM{overflow:hidden;min-height:0}.ContentHeader_collapsible-inner_PX3IM.ContentHeader_navigation-top_PX3IM:not(.ContentHeader_collapsed_PX3IM){padding:.25rem;margin:-.25rem -.25rem .25rem}.ContentHeader_header-text_PX3IM{margin:0;font-weight:500;color:var(--color-blue-grey900);line-height:1.25;display:flex;align-items:center;max-width:65vw}@media screen and (max-width:900px){.ContentHeader_header-text_PX3IM{max-width:unset}.ContentHeader_header-text_PX3IM div{text-wrap:wrap}}.ContentHeader_header-text_PX3IM div{vertical-align:middle;align-self:center}.ContentHeader_header-text_PX3IM button.ContentHeader_back-arrow_PX3IM{margin-right:.5rem;width:2.5rem;height:2.5rem}.ContentHeader_header-tags_PX3IM{display:flex;margin-left:1rem;gap:.5rem}.ContentHeader_header-subtitle_PX3IM{color:var(--color-blue-grey400);font-weight:500}.ContentHeader_back-text_PX3IM{font-size:.875rem;font-weight:400;margin-left:.5rem}.ContentHeader_error-text_PX3IM{color:var(--color-red500);vertical-align:middle;margin-left:.5rem}.ContentHeader_navigation-top_PX3IM{margin-bottom:.5rem;transition:margin-bottom .5s,padding-bottom .5s}.ContentHeader_navigation-top_PX3IM.ContentHeader_collapsed_PX3IM{margin-bottom:0}.ContentHeader_inline-back_PX3IM{display:flex;overflow:hidden;max-width:4rem;transition:max-width .5s,opacity .5s;opacity:1}.ContentHeader_inline-back_PX3IM:not(.ContentHeader_hidden_PX3IM){padding:.25rem;margin:-.25rem}.ContentHeader_inline-back_PX3IM.ContentHeader_hidden_PX3IM{max-width:0;opacity:0}.ContentHeader_buttons-wrapper_PX3IM{display:flex;justify-content:flex-end;flex-shrink:0;gap:1rem;transition:margin-bottom .5s}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
|
+
const header = "ContentHeader_header_PX3IM";
|
|
3
|
+
const sticky = "ContentHeader_sticky_PX3IM";
|
|
4
|
+
const collapsible = "ContentHeader_collapsible_PX3IM";
|
|
5
|
+
const collapsed = "ContentHeader_collapsed_PX3IM";
|
|
6
|
+
const hidden = "ContentHeader_hidden_PX3IM";
|
|
3
7
|
const classes = {
|
|
4
8
|
header,
|
|
5
|
-
"collapsed-header": "ContentHeader_collapsed-
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
"
|
|
9
|
+
"collapsed-header": "ContentHeader_collapsed-header_PX3IM",
|
|
10
|
+
"buttons-wrapper": "ContentHeader_buttons-wrapper_PX3IM",
|
|
11
|
+
"header-background-color": "ContentHeader_header-background-color_PX3IM",
|
|
12
|
+
"back-arrow": "ContentHeader_back-arrow_PX3IM",
|
|
13
|
+
sticky,
|
|
14
|
+
"sticky-spacing": "ContentHeader_sticky-spacing_PX3IM",
|
|
15
|
+
collapsible,
|
|
16
|
+
collapsed,
|
|
17
|
+
"collapsible-inner": "ContentHeader_collapsible-inner_PX3IM",
|
|
18
|
+
"navigation-top": "ContentHeader_navigation-top_PX3IM",
|
|
19
|
+
"header-text": "ContentHeader_header-text_PX3IM",
|
|
20
|
+
"header-tags": "ContentHeader_header-tags_PX3IM",
|
|
21
|
+
"header-subtitle": "ContentHeader_header-subtitle_PX3IM",
|
|
22
|
+
"back-text": "ContentHeader_back-text_PX3IM",
|
|
23
|
+
"error-text": "ContentHeader_error-text_PX3IM",
|
|
24
|
+
"inline-back": "ContentHeader_inline-back_PX3IM",
|
|
25
|
+
hidden
|
|
15
26
|
};
|
|
16
27
|
export {
|
|
28
|
+
collapsed,
|
|
29
|
+
collapsible,
|
|
17
30
|
classes as default,
|
|
18
|
-
header
|
|
31
|
+
header,
|
|
32
|
+
hidden,
|
|
33
|
+
sticky
|
|
19
34
|
};
|
|
20
35
|
//# sourceMappingURL=ContentHeader.module.scss.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentHeader.module.scss.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContentHeader.module.scss.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.cjs.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".FormSection_section-
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default={"section-wrapper":"FormSection_section-
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".FormSection_section-wrapper_PX3IM{padding-bottom:4rem}.FormSection_section-header-wrapper_PX3IM{margin-bottom:1rem}.FormSection_section-header_PX3IM{line-height:1.6;color:var(--color-primary500)}")),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"}}),exports.default={"section-wrapper":"FormSection_section-wrapper_PX3IM","section-header-wrapper":"FormSection_section-header-wrapper_PX3IM","section-header":"FormSection_section-header_PX3IM"};
|
|
3
3
|
//# sourceMappingURL=FormSection.module.scss.cjs.js.map
|
package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".FormSection_section-
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".FormSection_section-wrapper_PX3IM{padding-bottom:4rem}.FormSection_section-header-wrapper_PX3IM{margin-bottom:1rem}.FormSection_section-header_PX3IM{line-height:1.6;color:var(--color-primary500)}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
2
|
const classes = {
|
|
3
|
-
"section-wrapper": "FormSection_section-
|
|
4
|
-
"section-header-wrapper": "FormSection_section-header-
|
|
5
|
-
"section-header": "FormSection_section-
|
|
3
|
+
"section-wrapper": "FormSection_section-wrapper_PX3IM",
|
|
4
|
+
"section-header-wrapper": "FormSection_section-header-wrapper_PX3IM",
|
|
5
|
+
"section-header": "FormSection_section-header_PX3IM"
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
8
8
|
classes as default
|
package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.cjs.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".FormStepper_stepper_PX3IM{position:sticky;top:0}.FormStepper_stepper_PX3IM>div:first-child{height:auto;min-height:15rem;align-items:flex-start}")),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="FormStepper_stepper_PX3IM",t={stepper:e};exports.default=t,exports.stepper=e;
|
|
3
3
|
//# sourceMappingURL=FormStepper.module.scss.cjs.js.map
|
package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".
|
|
2
|
-
const stepper = "
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".FormStepper_stepper_PX3IM{position:sticky;top:0}.FormStepper_stepper_PX3IM>div:first-child{height:auto;min-height:15rem;align-items:flex-start}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
|
+
const stepper = "FormStepper_stepper_PX3IM";
|
|
3
3
|
const classes = {
|
|
4
4
|
stepper
|
|
5
5
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".FormWithStepper_content_PX3IM{margin:0 auto;font-family:var(--font-family);position:relative;display:flex;gap:3.5rem;background-color:var(--color-white);height:calc(100vh - 13.25rem);overflow:auto;scroll-behavior:smooth}.FormWithStepper_content_PX3IM .FormWithStepper_form-section_PX3IM{display:flex;flex-direction:column;flex:0 0 72%}")),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="FormWithStepper_content_PX3IM",t={content:e,"form-section":"FormWithStepper_form-section_PX3IM"};exports.content=e,exports.default=t;
|
|
3
3
|
//# sourceMappingURL=FormWithStepper.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(".
|
|
2
|
-
const content = "
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".FormWithStepper_content_PX3IM{margin:0 auto;font-family:var(--font-family);position:relative;display:flex;gap:3.5rem;background-color:var(--color-white);height:calc(100vh - 13.25rem);overflow:auto;scroll-behavior:smooth}.FormWithStepper_content_PX3IM .FormWithStepper_form-section_PX3IM{display:flex;flex-direction:column;flex:0 0 72%}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
|
+
const content = "FormWithStepper_content_PX3IM";
|
|
3
3
|
const classes = {
|
|
4
4
|
content,
|
|
5
|
-
"form-section": "FormWithStepper_form-
|
|
5
|
+
"form-section": "FormWithStepper_form-section_PX3IM"
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
8
8
|
content,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.cjs.js","sources":["../../../src/components/Link/Link.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, {\n ForwardRefRenderFunction,\n ComponentPropsWithRef,\n ForwardRefExoticComponent,\n ReactElement\n} from \"react\";\nimport classes from \"./Link.module.scss\";\nimport { IconProps, Icon } from \"../../index\";\n\nexport type AnchorType = \"external\" | \"internal\" | \"download\";\n\nexport interface Props extends ComponentPropsWithRef<\"a\"> {\n prefixIcon?: ReactElement<IconProps, typeof Icon>;\n color?: \"primary\" | \"success\" | \"danger\" | \"warning\" | \"inherit\";\n display?: \"link\" | \"button\";\n buttonVariant?: \"outline\" | \"text\" | \"fill\";\n type?: AnchorType;\n to: string;\n disabled?: boolean;\n /* eslint-disable-next-line @typescript-eslint/no-explicit-any */\n component?: ForwardRefExoticComponent<any>;\n}\n\nconst LinkComponent: ForwardRefRenderFunction<HTMLAnchorElement, Props> = (\n {\n children,\n className,\n disabled = false,\n prefixIcon = undefined,\n to,\n color = \"primary\",\n type = \"internal\",\n display = \"link\",\n buttonVariant = \"fill\",\n component,\n ...rest\n }: Props,\n ref\n) => {\n const determineTarget = () => {\n if (rest.target) {\n return rest.target;\n }\n\n if (type === \"external\") {\n return \"_blank\";\n }\n\n return \"\";\n };\n\n const classNames = [classes[color]];\n display === \"link\" && classNames.push(classes[\"link\"]);\n display === \"button\" && classNames.push(classes[\"button\"], classes[buttonVariant]);\n disabled && classNames.push(classes[\"disabled\"]);\n className && classNames.push(className);\n\n if (component) {\n return React.createElement(\n component,\n {\n ...rest,\n ref: ref,\n to: to,\n className: classNames.join(\" \"),\n \"aria-disabled\": disabled,\n style: {\n ...rest.style\n }\n },\n children\n );\n }\n\n return (\n <a\n {...rest}\n ref={ref}\n download={type === \"download\"}\n rel={type === \"external\" ? \"noopener noreferer\" : undefined}\n href={
|
|
1
|
+
{"version":3,"file":"Link.cjs.js","sources":["../../../src/components/Link/Link.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, {\n ForwardRefRenderFunction,\n ComponentPropsWithRef,\n ForwardRefExoticComponent,\n ReactElement\n} from \"react\";\nimport classes from \"./Link.module.scss\";\nimport { IconProps, Icon } from \"../../index\";\n\nexport type AnchorType = \"external\" | \"internal\" | \"download\";\n\nexport interface Props extends ComponentPropsWithRef<\"a\"> {\n prefixIcon?: ReactElement<IconProps, typeof Icon>;\n color?: \"primary\" | \"success\" | \"danger\" | \"warning\" | \"inherit\";\n display?: \"link\" | \"button\";\n buttonVariant?: \"outline\" | \"text\" | \"fill\";\n type?: AnchorType;\n to: string;\n disabled?: boolean;\n /* eslint-disable-next-line @typescript-eslint/no-explicit-any */\n component?: ForwardRefExoticComponent<any>;\n}\n\nconst LinkComponent: ForwardRefRenderFunction<HTMLAnchorElement, Props> = (\n {\n children,\n className,\n disabled = false,\n prefixIcon = undefined,\n to,\n color = \"primary\",\n type = \"internal\",\n display = \"link\",\n buttonVariant = \"fill\",\n component,\n ...rest\n }: Props,\n ref\n) => {\n const determineTarget = () => {\n if (rest.target) {\n return rest.target;\n }\n\n if (type === \"external\") {\n return \"_blank\";\n }\n\n return \"\";\n };\n\n const classNames = [classes[color]];\n display === \"link\" && classNames.push(classes[\"link\"]);\n display === \"button\" && classNames.push(classes[\"button\"], classes[buttonVariant]);\n disabled && classNames.push(classes[\"disabled\"]);\n className && classNames.push(className);\n\n if (component) {\n return React.createElement(\n component,\n {\n ...rest,\n ref: ref,\n to: to,\n className: classNames.join(\" \"),\n \"aria-disabled\": disabled,\n style: {\n ...rest.style\n }\n },\n children\n );\n }\n\n return (\n <a\n {...rest}\n ref={ref}\n download={type === \"download\"}\n rel={type === \"external\" ? \"noopener noreferer\" : undefined}\n href={disabled ? undefined : to}\n className={classNames.join(\" \")}\n aria-disabled={disabled}\n target={determineTarget()}\n style={{\n ...rest.style\n }}\n >\n {prefixIcon}\n <span data-underline=\"true\">{children}</span>\n </a>\n );\n};\n\nexport const Link = React.forwardRef(LinkComponent);\n"],"names":["Link","React","forwardRef","children","className","disabled","prefixIcon","to","color","type","display","buttonVariant","component","rest","ref","classNames","classes","push","createElement","join","style","download","rel","href","target"],"mappings":"gJA8GaA,EAAOC,EAAMC,WAvEgD,EAEtEC,WACAC,YACAC,YAAW,EACXC,aACAC,KACAC,QAAQ,UACRC,OAAO,WACPC,UAAU,OACVC,gBAAgB,OAChBC,eACGC,GAELC,KAEA,MAYMC,EAAa,CAACC,UAAQR,IAM5B,MALY,SAAZE,GAAsBK,EAAWE,KAAKD,EAAAA,QAAc,MACxC,WAAZN,GAAwBK,EAAWE,KAAKD,EAAAA,QAAgB,OAAGA,UAAQL,IACnEN,GAAYU,EAAWE,KAAKD,EAAAA,QAAkB,UAC9CZ,GAAaW,EAAWE,KAAKb,GAEzBQ,EACKX,EAAMiB,cACXN,EACA,IACKC,EACHC,MACAP,KACAH,UAAWW,EAAWI,KAAK,KAC3B,gBAAiBd,EACjBe,MAAO,IACFP,EAAKO,QAGZjB,GAKFF,EAAAiB,cAAC,IAAA,IACKL,EACJC,MACAO,SAAmB,aAATZ,EACVa,IAAc,aAATb,EAAsB,0BAAuB,EAClDc,KAAMlB,OAAW,EAAYE,EAC7BH,UAAWW,EAAWI,KAAK,KAC3B,gBAAed,EACfmB,OA3CEX,EAAKW,OACAX,EAAKW,OAGD,aAATf,EACK,SAGF,GAoCLW,MAAO,IACFP,EAAKO,QAGTd,IACDY,cAAC,OAAA,CAAK,iBAAe,QAAQf"}
|
|
@@ -50,7 +50,7 @@ const LinkComponent = ({
|
|
|
50
50
|
ref,
|
|
51
51
|
download: type === "download",
|
|
52
52
|
rel: type === "external" ? "noopener noreferer" : void 0,
|
|
53
|
-
href:
|
|
53
|
+
href: disabled ? void 0 : to,
|
|
54
54
|
className: classNames.join(" "),
|
|
55
55
|
"aria-disabled": disabled,
|
|
56
56
|
target: determineTarget(),
|