@onewelcome/react-lib-components 12.0.1 → 12.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Breadcrumbs/Breadcrumbs.cjs.js +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.cjs.js.map +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.es.js.map +1 -1
- 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.cjs.js +1 -1
- package/dist/components/Button/BaseButton.cjs.js.map +1 -1
- package/dist/components/Button/BaseButton.es.js.map +1 -1
- 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.cjs.js +1 -1
- package/dist/components/Button/Button.cjs.js.map +1 -1
- package/dist/components/Button/Button.es.js.map +1 -1
- 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.cjs.js.map +1 -1
- package/dist/components/Button/IconButton.es.js.map +1 -1
- 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/Button/Spinner.cjs.js.map +1 -1
- package/dist/components/Button/Spinner.es.js.map +1 -1
- package/dist/components/ContextMenu/ContextMenu.cjs.js +1 -1
- package/dist/components/ContextMenu/ContextMenu.cjs.js.map +1 -1
- package/dist/components/ContextMenu/ContextMenu.es.js +28 -11
- 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 +8 -5
- package/dist/components/ContextMenu/ContextMenu.module.scss.es.js.map +1 -1
- package/dist/components/ContextMenu/ContextMenuDivider.cjs.js.map +1 -1
- package/dist/components/ContextMenu/ContextMenuDivider.es.js.map +1 -1
- 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.cjs.js +1 -1
- package/dist/components/ContextMenu/ContextMenuItem.cjs.js.map +1 -1
- package/dist/components/ContextMenu/ContextMenuItem.es.js.map +1 -1
- 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.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.map +1 -1
- package/dist/components/DataGrid/DataGrid.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGrid.module.scss.es.js +6 -6
- package/dist/components/DataGrid/DataGridActions/DataGridActions.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridActions/DataGridActions.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridActions/DataGridActions.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.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.es.js.map +1 -1
- 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.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.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.es.js.map +1 -1
- 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.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.es.js.map +1 -1
- 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.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.es.js.map +1 -1
- 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.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.es.js +2 -1
- package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.es.js.map +1 -1
- 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 +1 -1
- package/dist/components/DataGrid/DataGridBody/DataGridRow/useNestedRow.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridBody/DataGridRow/useNestedRow.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridDateFilter.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridDateFilter.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.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/DataGridFilterPopover.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterPopover.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterPopover.es.js.map +1 -1
- 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.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.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.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/DataGridSearchbar.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridSearchbar.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridSearchbar.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.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 +8 -8
- package/dist/components/DataGrid/DataGridFilters/DataGridToolbarWrapper.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridToolbarWrapper.es.js.map +1 -1
- 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.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.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerInputSection.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerInputSection.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerInputSection.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimeService.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimeService.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/SideMenu.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/SideMenu.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/SideMenu.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/FilterKeyMapper.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridFilters/FilterKeyMapper.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/FilterKeyMapper.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.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.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 +3 -3
- package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.cjs.js.map +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 +7 -7
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.cjs.js.map +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js.map +1 -1
- 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.cjs.js +1 -1
- package/dist/components/Form/Checkbox/Checkbox.cjs.js.map +1 -1
- package/dist/components/Form/Checkbox/Checkbox.es.js +1 -0
- package/dist/components/Form/Checkbox/Checkbox.es.js.map +1 -1
- 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.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 +5 -5
- 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.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 +18 -4
- 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.cjs.js +1 -1
- package/dist/components/Form/Form.cjs.js.map +1 -1
- package/dist/components/Form/Form.es.js.map +1 -1
- 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.cjs.js +1 -1
- package/dist/components/Form/FormControl/FormControl.cjs.js.map +1 -1
- package/dist/components/Form/FormControl/FormControl.es.js.map +1 -1
- 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.cjs.js.map +1 -1
- package/dist/components/Form/FormErrorText/FormErrorText.es.js.map +1 -1
- package/dist/components/Form/FormErrorText/FormErrorText.module.scss.cjs.js +2 -2
- package/dist/components/Form/FormErrorText/FormErrorText.module.scss.es.js +5 -5
- package/dist/components/Form/FormGroup/FormGroup.cjs.js +1 -1
- package/dist/components/Form/FormGroup/FormGroup.cjs.js.map +1 -1
- package/dist/components/Form/FormGroup/FormGroup.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.cjs.js +1 -1
- package/dist/components/Form/FormHelperText/FormHelperText.cjs.js.map +1 -1
- package/dist/components/Form/FormHelperText/FormHelperText.es.js.map +1 -1
- 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.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/FormStatusIndicator/FormStatusIndicator.cjs.js.map +1 -1
- package/dist/components/Form/FormStatusIndicator/FormStatusIndicator.es.js.map +1 -1
- 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 +1 -0
- 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 +9 -9
- package/dist/components/Form/Label/Label.cjs.js +1 -1
- package/dist/components/Form/Label/Label.cjs.js.map +1 -1
- package/dist/components/Form/Label/Label.es.js.map +1 -1
- 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 +1 -1
- package/dist/components/Form/Radio/Radio.cjs.js.map +1 -1
- package/dist/components/Form/Radio/Radio.es.js +1 -0
- 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.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.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 +15 -15
- package/dist/components/Form/Select/MultiSelect/SelectButton.cjs.js +1 -1
- package/dist/components/Form/Select/MultiSelect/SelectButton.cjs.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/SelectButton.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 +1 -1
- 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.map +1 -1
- package/dist/components/Form/Select/MultiSelect/useMultiSelect.cjs.js +1 -1
- package/dist/components/Form/Select/MultiSelect/useMultiSelect.cjs.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/useMultiSelect.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.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.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.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 +17 -17
- 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.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.map +1 -1
- package/dist/components/Form/Select/useAddNewBtn.cjs.js +1 -1
- package/dist/components/Form/Select/useAddNewBtn.cjs.js.map +1 -1
- package/dist/components/Form/Select/useAddNewBtn.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/Select/useSelectPositionList.cjs.js +1 -1
- package/dist/components/Form/Select/useSelectPositionList.cjs.js.map +1 -1
- package/dist/components/Form/Select/useSelectPositionList.es.js.map +1 -1
- 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 +1 -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.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.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 +3 -3
- package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.cjs.js +1 -1
- package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.cjs.js.map +1 -1
- package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.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 +4 -4
- package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.cjs.js +1 -1
- package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.cjs.js.map +1 -1
- package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.es.js.map +1 -1
- 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.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 +3 -3
- package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.cjs.js +1 -1
- package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.cjs.js.map +1 -1
- package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.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.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.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.map +1 -1
- package/dist/components/Icon/Icon.module.scss.cjs.js +2 -2
- package/dist/components/Icon/Icon.module.scss.es.js +107 -107
- package/dist/components/InlineEditing/InlineCheckbox/InlineCheckbox.cjs.js +1 -1
- package/dist/components/InlineEditing/InlineCheckbox/InlineCheckbox.cjs.js.map +1 -1
- package/dist/components/InlineEditing/InlineCheckbox/InlineCheckbox.es.js +11 -9
- package/dist/components/InlineEditing/InlineCheckbox/InlineCheckbox.es.js.map +1 -1
- package/dist/components/InlineEditing/InlineEditingContext.cjs.js +1 -1
- package/dist/components/InlineEditing/InlineEditingContext.cjs.js.map +1 -1
- package/dist/components/InlineEditing/InlineEditingContext.es.js +40 -2
- package/dist/components/InlineEditing/InlineEditingContext.es.js.map +1 -1
- package/dist/components/InlineEditing/InlineEditingSelect/InlineSelect.cjs.js +1 -1
- package/dist/components/InlineEditing/InlineEditingSelect/InlineSelect.cjs.js.map +1 -1
- package/dist/components/InlineEditing/InlineEditingSelect/InlineSelect.es.js +13 -10
- package/dist/components/InlineEditing/InlineEditingSelect/InlineSelect.es.js.map +1 -1
- package/dist/components/Layout/Card/Card.cjs.js.map +1 -1
- package/dist/components/Layout/Card/Card.es.js.map +1 -1
- 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.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 +12 -12
- package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.cjs.js.map +1 -1
- package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.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.cjs.js +1 -1
- package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.cjs.js.map +1 -1
- package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.es.js +1 -1
- package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.es.js.map +1 -1
- 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.cjs.js.map +1 -1
- package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.es.js.map +1 -1
- 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 +1 -1
- package/dist/components/Link/Link.cjs.js.map +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 +19 -16
- package/dist/components/Link/Link.module.scss.es.js.map +1 -1
- package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.cjs.js.map +1 -1
- package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.es.js.map +1 -1
- 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.map +1 -1
- package/dist/components/Notifications/Alert/AlertItem/AlertItem.cjs.js +1 -1
- package/dist/components/Notifications/Alert/AlertItem/AlertItem.cjs.js.map +1 -1
- package/dist/components/Notifications/Alert/AlertItem/AlertItem.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/Alert/AlertProvider/AlertContext.cjs.js.map +1 -1
- package/dist/components/Notifications/Alert/AlertProvider/AlertContext.es.js.map +1 -1
- package/dist/components/Notifications/Alert/AlertProvider/AlertProvider.cjs.js +1 -1
- package/dist/components/Notifications/Alert/AlertProvider/AlertProvider.cjs.js.map +1 -1
- package/dist/components/Notifications/Alert/AlertProvider/AlertProvider.es.js.map +1 -1
- package/dist/components/Notifications/Alert/useAlert.cjs.js.map +1 -1
- package/dist/components/Notifications/Alert/useAlert.es.js.map +1 -1
- package/dist/components/Notifications/Banner/Banner.cjs.js +1 -1
- package/dist/components/Notifications/Banner/Banner.cjs.js.map +1 -1
- package/dist/components/Notifications/Banner/Banner.es.js.map +1 -1
- 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.cjs.js +1 -1
- package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.cjs.js.map +1 -1
- package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.es.js.map +1 -1
- 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.cjs.js +1 -1
- package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.cjs.js.map +1 -1
- package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.es.js.map +1 -1
- 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.cjs.js +1 -1
- package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.cjs.js.map +1 -1
- package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.es.js.map +1 -1
- 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.cjs.js +1 -1
- package/dist/components/Notifications/Dialog/Dialog.cjs.js.map +1 -1
- package/dist/components/Notifications/Dialog/Dialog.es.js +2 -2
- package/dist/components/Notifications/Dialog/Dialog.es.js.map +1 -1
- 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.cjs.js +1 -1
- package/dist/components/Notifications/Dialog/DialogActions/DialogActions.cjs.js.map +1 -1
- package/dist/components/Notifications/Dialog/DialogActions/DialogActions.es.js.map +1 -1
- 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.cjs.js +1 -1
- package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.cjs.js.map +1 -1
- package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.es.js.map +1 -1
- 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/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.cjs.js +1 -1
- package/dist/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.cjs.js.map +1 -1
- package/dist/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.es.js.map +1 -1
- package/dist/components/Notifications/DiscardChangesModal/DiscardChangesModal.cjs.js.map +1 -1
- package/dist/components/Notifications/DiscardChangesModal/DiscardChangesModal.es.js.map +1 -1
- package/dist/components/Notifications/NotificationProvider/NotificationContext.cjs.js +1 -1
- package/dist/components/Notifications/NotificationProvider/NotificationContext.cjs.js.map +1 -1
- package/dist/components/Notifications/NotificationProvider/NotificationContext.es.js +1 -1
- package/dist/components/Notifications/NotificationProvider/NotificationContext.es.js.map +1 -1
- package/dist/components/Notifications/NotificationProvider/NotificationService.es.js.map +1 -1
- package/dist/components/Notifications/SideSheet/SideSheet.cjs.js +1 -1
- package/dist/components/Notifications/SideSheet/SideSheet.cjs.js.map +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.cjs.js.map +1 -1
- package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.es.js.map +1 -1
- 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.cjs.js.map +1 -1
- package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.es.js.map +1 -1
- 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 +1 -1
- package/dist/components/Notifications/SlideInModal/SlideInModal.cjs.js.map +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.map +1 -1
- package/dist/components/Pagination/Pagination.module.scss.cjs.js +2 -2
- package/dist/components/Pagination/Pagination.module.scss.es.js +14 -14
- package/dist/components/Popover/Popover.cjs.js +1 -1
- package/dist/components/Popover/Popover.cjs.js.map +1 -1
- package/dist/components/Popover/Popover.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 +1 -1
- 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/RequiredSign/RequiredSign.cjs.js.map +1 -1
- package/dist/components/RequiredSign/RequiredSign.es.js.map +1 -1
- package/dist/components/Skeleton/Skeleton.cjs.js +1 -1
- package/dist/components/Skeleton/Skeleton.cjs.js.map +1 -1
- package/dist/components/Skeleton/Skeleton.es.js.map +1 -1
- 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.cjs.js.map +1 -1
- package/dist/components/Spinner/Spinner.es.js.map +1 -1
- 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.cjs.js.map +1 -1
- package/dist/components/Stepper/Step.es.js.map +1 -1
- 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.cjs.js +1 -1
- package/dist/components/Stepper/Stepper.cjs.js.map +1 -1
- package/dist/components/Stepper/Stepper.es.js.map +1 -1
- 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.cjs.js.map +1 -1
- package/dist/components/Tabs/Tab.es.js.map +1 -1
- 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.cjs.js +1 -1
- package/dist/components/Tabs/TabButton.cjs.js.map +1 -1
- package/dist/components/Tabs/TabButton.es.js.map +1 -1
- 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.cjs.js +1 -1
- package/dist/components/Tabs/Tabs.cjs.js.map +1 -1
- package/dist/components/Tabs/Tabs.es.js.map +1 -1
- 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.cjs.js +1 -1
- package/dist/components/Tag/RemoveButton.cjs.js.map +1 -1
- package/dist/components/Tag/RemoveButton.es.js.map +1 -1
- 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.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 +1 -1
- 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 +1 -1
- 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.cjs.js +1 -1
- package/dist/components/Tiles/Tiles.cjs.js.map +1 -1
- package/dist/components/Tiles/Tiles.es.js.map +1 -1
- 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 +1 -1
- 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 +27 -27
- package/dist/components/Typography/Typography.cjs.js +1 -1
- package/dist/components/Typography/Typography.cjs.js.map +1 -1
- package/dist/components/Typography/Typography.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 +1 -1
- package/dist/components/_BaseStyling_/BaseStyling.cjs.js.map +1 -1
- package/dist/components/_BaseStyling_/BaseStyling.es.js.map +1 -1
- package/dist/components/admin/layout/LeftNav/LeftNav.cjs.js +1 -1
- package/dist/components/admin/layout/LeftNav/LeftNav.cjs.js.map +1 -1
- package/dist/components/admin/layout/LeftNav/LeftNav.es.js +2 -0
- 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/ButtonLeftNavItem.cjs.js +1 -1
- package/dist/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.cjs.js.map +1 -1
- package/dist/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.es.js +2 -0
- package/dist/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.es.js.map +1 -1
- package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.cjs.js +1 -1
- package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.cjs.js.map +1 -1
- package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.es.js.map +1 -1
- 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/LeftNavItem/LinkLeftNavItem.cjs.js +1 -1
- package/dist/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.cjs.js.map +1 -1
- package/dist/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.es.js +90 -2
- package/dist/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.es.js.map +1 -1
- package/dist/components/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.cjs.js.map +1 -1
- package/dist/components/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.es.js.map +1 -1
- 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.map +1 -1
- package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.cjs.js +1 -1
- package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.cjs.js.map +1 -1
- package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.es.js +1 -1
- package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.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.cjs.js +2 -0
- package/dist/components/admin/layout/ProfileMenu/ProfileMenu.cjs.js.map +1 -0
- package/dist/components/admin/layout/ProfileMenu/ProfileMenu.es.js +33 -0
- package/dist/components/admin/layout/ProfileMenu/ProfileMenu.es.js.map +1 -0
- package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.cjs.js +3 -0
- package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.cjs.js.map +1 -0
- package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.es.js +25 -0
- package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.es.js.map +1 -0
- package/dist/components/admin/layout/TopNavBar/TopNavBar.cjs.js +2 -0
- package/dist/components/admin/layout/TopNavBar/TopNavBar.cjs.js.map +1 -0
- package/dist/components/admin/layout/TopNavBar/TopNavBar.es.js +45 -0
- package/dist/components/admin/layout/TopNavBar/TopNavBar.es.js.map +1 -0
- package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.cjs.js +3 -0
- package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.cjs.js.map +1 -0
- package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.es.js +25 -0
- package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.es.js.map +1 -0
- package/dist/components/miscellaneous/IdentityProviderButton.cjs.js.map +1 -1
- package/dist/components/miscellaneous/IdentityProviderButton.es.js.map +1 -1
- 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.map +1 -1
- package/dist/hooks/useAnimation.cjs.js +1 -1
- package/dist/hooks/useAnimation.cjs.js.map +1 -1
- package/dist/hooks/useAnimation.es.js.map +1 -1
- package/dist/hooks/useClickOutside.cjs.js +1 -1
- package/dist/hooks/useClickOutside.cjs.js.map +1 -1
- package/dist/hooks/useClickOutside.es.js.map +1 -1
- package/dist/hooks/useDebouncedCallback.cjs.js +1 -1
- package/dist/hooks/useDebouncedCallback.cjs.js.map +1 -1
- package/dist/hooks/useDebouncedCallback.es.js.map +1 -1
- package/dist/hooks/useDescribedBy.cjs.js.map +1 -1
- package/dist/hooks/useDescribedBy.es.js.map +1 -1
- package/dist/hooks/useDetermineStatusIcon.cjs.js.map +1 -1
- package/dist/hooks/useDetermineStatusIcon.es.js.map +1 -1
- package/dist/hooks/useFormSelector.cjs.js.map +1 -1
- package/dist/hooks/useFormSelector.es.js.map +1 -1
- package/dist/hooks/useFullHeightCollapse.cjs.js.map +1 -1
- package/dist/hooks/useFullHeightCollapse.es.js.map +1 -1
- package/dist/hooks/useGetDomRoot.cjs.js +1 -1
- package/dist/hooks/useGetDomRoot.cjs.js.map +1 -1
- package/dist/hooks/useGetDomRoot.es.js.map +1 -1
- package/dist/hooks/usePosition.cjs.js +1 -1
- package/dist/hooks/usePosition.cjs.js.map +1 -1
- package/dist/hooks/usePosition.es.js.map +1 -1
- package/dist/hooks/useRepeatFocus.cjs.js +1 -1
- package/dist/hooks/useRepeatFocus.cjs.js.map +1 -1
- package/dist/hooks/useRepeatFocus.es.js +6 -23
- package/dist/hooks/useRepeatFocus.es.js.map +1 -1
- package/dist/hooks/useRepeater.cjs.js +1 -1
- package/dist/hooks/useRepeater.cjs.js.map +1 -1
- package/dist/hooks/useRepeater.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.map +1 -1
- package/dist/hooks/useSpacing.cjs.js +1 -1
- package/dist/hooks/useSpacing.cjs.js.map +1 -1
- package/dist/hooks/useSpacing.es.js.map +1 -1
- package/dist/hooks/useUploadFile.cjs.js +1 -1
- package/dist/hooks/useUploadFile.cjs.js.map +1 -1
- package/dist/hooks/useUploadFile.es.js.map +1 -1
- package/dist/hooks/useWrapper.cjs.js.map +1 -1
- package/dist/hooks/useWrapper.es.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +48 -4
- package/dist/index.es.js +6 -0
- package/dist/index.es.js.map +1 -1
- package/dist/node_modules/tabbable/dist/index.esm.cjs.js +2 -0
- package/dist/node_modules/tabbable/dist/index.esm.cjs.js.map +1 -0
- package/dist/node_modules/tabbable/dist/index.esm.es.js +322 -0
- package/dist/node_modules/tabbable/dist/index.esm.es.js.map +1 -0
- 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 +1 -1
- package/dist/util/helper.es.js.map +1 -1
- package/dist/utils/focusManagement.cjs.js +2 -0
- package/dist/utils/focusManagement.cjs.js.map +1 -0
- package/dist/utils/focusManagement.es.js +8 -0
- package/dist/utils/focusManagement.es.js.map +1 -0
- package/dist/utils/statusUtils.cjs.js.map +1 -1
- package/dist/utils/statusUtils.es.js.map +1 -1
- package/dist/variables.cjs.js.map +1 -1
- package/dist/variables.es.js.map +1 -1
- package/package.json +26 -21
package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MicrofrontendContainer.cjs.js","sources":["../../../../../src/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.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, { ReactElement } from \"react\";\nimport classes from \"./MicrofrontendContainer.module.scss\";\n\nexport interface Props {\n header?: ReactElement | ReactElement[];\n children: ReactElement | ReactElement[];\n contentMargins?: boolean;\n contentMaxWidth?: boolean;\n}\n\nexport const MicrofrontendContainer = ({\n header,\n children,\n contentMargins = true,\n contentMaxWidth = true,\n ...rest\n}: Props) => {\n const appliedClasses = [];\n\n contentMargins && appliedClasses.push(classes[\"microfrontend-container-margin\"]);\n contentMaxWidth && appliedClasses.push(classes[\"microfrontend-container-max-width\"]);\n\n return (\n <>\n <div>{header}</div>\n <
|
|
1
|
+
{"version":3,"file":"MicrofrontendContainer.cjs.js","sources":["../../../../../src/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.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, { ReactElement } from \"react\";\nimport classes from \"./MicrofrontendContainer.module.scss\";\n\nexport interface Props {\n header?: ReactElement | ReactElement[];\n children: ReactElement | ReactElement[];\n contentMargins?: boolean;\n contentMaxWidth?: boolean;\n}\n\nexport const MicrofrontendContainer = ({\n header,\n children,\n contentMargins = true,\n contentMaxWidth = true,\n ...rest\n}: Props) => {\n const appliedClasses = [];\n\n contentMargins && appliedClasses.push(classes[\"microfrontend-container-margin\"]);\n contentMaxWidth && appliedClasses.push(classes[\"microfrontend-container-max-width\"]);\n\n return (\n <>\n <div>{header}</div>\n <main role=\"main\" className={appliedClasses.join(\" \")} {...rest}>\n {children}\n </main>\n </>\n );\n};\n"],"names":["header","children","contentMargins","contentMaxWidth","rest","appliedClasses","push","classes","React","createElement","role","className","join"],"mappings":"iMA0BsC,EACpCA,SACAC,WACAC,kBAAiB,EACjBC,mBAAkB,KACfC,MAEH,MAAMC,EAAiB,GAKvB,OAHAH,GAAkBG,EAAeC,KAAKC,EAAAA,QAAQ,mCAC9CJ,GAAmBE,EAAeC,KAAKC,EAAAA,QAAQ,sEAI3CC,EAAAC,cAAC,MAAA,KAAKT,mBACL,OAAA,CAAKU,KAAK,OAAOC,UAAWN,EAAeO,KAAK,QAAUR,GACxDH"}
|
|
@@ -10,7 +10,7 @@ const MicrofrontendContainer = ({
|
|
|
10
10
|
const appliedClasses = [];
|
|
11
11
|
contentMargins && appliedClasses.push(classes["microfrontend-container-margin"]);
|
|
12
12
|
contentMaxWidth && appliedClasses.push(classes["microfrontend-container-max-width"]);
|
|
13
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", null, header), /* @__PURE__ */ React.createElement("
|
|
13
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", null, header), /* @__PURE__ */ React.createElement("main", { role: "main", className: appliedClasses.join(" "), ...rest }, children));
|
|
14
14
|
};
|
|
15
15
|
export {
|
|
16
16
|
MicrofrontendContainer
|
package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MicrofrontendContainer.es.js","sources":["../../../../../src/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.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, { ReactElement } from \"react\";\nimport classes from \"./MicrofrontendContainer.module.scss\";\n\nexport interface Props {\n header?: ReactElement | ReactElement[];\n children: ReactElement | ReactElement[];\n contentMargins?: boolean;\n contentMaxWidth?: boolean;\n}\n\nexport const MicrofrontendContainer = ({\n header,\n children,\n contentMargins = true,\n contentMaxWidth = true,\n ...rest\n}: Props) => {\n const appliedClasses = [];\n\n contentMargins && appliedClasses.push(classes[\"microfrontend-container-margin\"]);\n contentMaxWidth && appliedClasses.push(classes[\"microfrontend-container-max-width\"]);\n\n return (\n <>\n <div>{header}</div>\n <
|
|
1
|
+
{"version":3,"file":"MicrofrontendContainer.es.js","sources":["../../../../../src/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.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, { ReactElement } from \"react\";\nimport classes from \"./MicrofrontendContainer.module.scss\";\n\nexport interface Props {\n header?: ReactElement | ReactElement[];\n children: ReactElement | ReactElement[];\n contentMargins?: boolean;\n contentMaxWidth?: boolean;\n}\n\nexport const MicrofrontendContainer = ({\n header,\n children,\n contentMargins = true,\n contentMaxWidth = true,\n ...rest\n}: Props) => {\n const appliedClasses = [];\n\n contentMargins && appliedClasses.push(classes[\"microfrontend-container-margin\"]);\n contentMaxWidth && appliedClasses.push(classes[\"microfrontend-container-max-width\"]);\n\n return (\n <>\n <div>{header}</div>\n <main role=\"main\" className={appliedClasses.join(\" \")} {...rest}>\n {children}\n </main>\n </>\n );\n};\n"],"names":[],"mappings":";;AA0BO,MAAM,yBAAyB,CAAC;AAAA,EACrC;AAAA,EACA;AAAA,EACA,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,GAAG;AACL,MAAa;AACX,QAAM,iBAAiB,CAAA;AAEvB,oBAAkB,eAAe,KAAK,QAAQ,gCAAgC,CAAC;AAC/E,qBAAmB,eAAe,KAAK,QAAQ,mCAAmC,CAAC;AAEnF,mEAEI,sBAAA,cAAC,OAAA,MAAK,MAAO,uCACZ,QAAA,EAAK,MAAK,QAAO,WAAW,eAAe,KAAK,GAAG,GAAI,GAAG,KAAA,GACxD,QACH,CACF;AAEJ;"}
|
|
@@ -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 */.MicrofrontendContainer_microfrontend-container-
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default={"microfrontend-container-margin":"MicrofrontendContainer_microfrontend-container-
|
|
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 */.MicrofrontendContainer_microfrontend-container-margin_jyx43{padding:2rem}.MicrofrontendContainer_microfrontend-container-max-width_jyx43{max-width:105rem}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default={"microfrontend-container-margin":"MicrofrontendContainer_microfrontend-container-margin_jyx43","microfrontend-container-max-width":"MicrofrontendContainer_microfrontend-container-max-width_jyx43"};
|
|
3
3
|
//# sourceMappingURL=MicrofrontendContainer.module.scss.cjs.js.map
|
package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.MicrofrontendContainer_microfrontend-container-
|
|
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 */.MicrofrontendContainer_microfrontend-container-margin_jyx43{padding:2rem}.MicrofrontendContainer_microfrontend-container-max-width_jyx43{max-width:105rem}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
|
|
2
2
|
const classes = {
|
|
3
|
-
"microfrontend-container-margin": "MicrofrontendContainer_microfrontend-container-
|
|
4
|
-
"microfrontend-container-max-width": "MicrofrontendContainer_microfrontend-container-max-
|
|
3
|
+
"microfrontend-container-margin": "MicrofrontendContainer_microfrontend-container-margin_jyx43",
|
|
4
|
+
"microfrontend-container-max-width": "MicrofrontendContainer_microfrontend-container-max-width_jyx43"
|
|
5
5
|
};
|
|
6
6
|
export {
|
|
7
7
|
classes as default
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("./ProfileMenu.module.scss.cjs.js"),r=require("../../../ContextMenu/ContextMenu.cjs.js");exports.ProfileMenu=({initials:a,imgSrc:i,imgAlt:l,menuTriggerTitle:n,headerContent:o,children:s,...c})=>{const[u,m]=e.useState(!1),g=a?a.substring(0,2):"";return e.createElement("div",{...c},e.createElement(r.ContextMenu,{decorativeElement:o,placement:{horizontal:"right",vertical:"bottom"},transformOrigin:{horizontal:"right",vertical:"top"},onShow:()=>m(!0),onClose:()=>m(!1),popoverProps:{className:t.default.popover},showChevron:!0,trigger:e.createElement("button",{className:t.default.trigger,title:n},e.createElement("div",{className:`${t.default.circle} ${u?t.default.active:""}`},i?e.createElement("img",{className:t.default.img,src:i,alt:l??g}):e.createElement("span",{className:t.default.initials},g)))},s))};
|
|
2
|
+
//# sourceMappingURL=ProfileMenu.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileMenu.cjs.js","sources":["../../../../../src/components/admin/layout/ProfileMenu/ProfileMenu.tsx"],"sourcesContent":["import React, { ComponentPropsWithRef, ReactElement, ReactNode, useState } from \"react\";\nimport classes from \"./ProfileMenu.module.scss\";\nimport { ContextMenu } from \"../../../ContextMenu/ContextMenu\";\nimport { ContextMenuDivider } from \"../../../ContextMenu/ContextMenuDivider\";\nimport { Props as ContextMenuItemProps } from \"../../../ContextMenu/ContextMenuItem\";\n\nexport interface ProfileMenuProps extends Omit<ComponentPropsWithRef<\"div\">, \"children\"> {\n initials?: string;\n imgSrc?: string;\n imgAlt?: string;\n menuTriggerTitle?: string;\n headerContent?: ReactNode;\n children:\n | ReactElement<ContextMenuItemProps>\n | ReactElement<typeof ContextMenuDivider>\n | (ReactElement<ContextMenuItemProps> | ReactElement<typeof ContextMenuDivider>)[];\n}\n\nexport const ProfileMenu = ({\n initials,\n imgSrc,\n imgAlt,\n menuTriggerTitle,\n headerContent,\n children,\n ...rest\n}: ProfileMenuProps) => {\n const [menuOpen, setMenuOpen] = useState(false);\n const safeInitials = initials ? initials.substring(0, 2) : \"\";\n\n return (\n <div {...rest}>\n <ContextMenu\n decorativeElement={headerContent}\n placement={{ horizontal: \"right\", vertical: \"bottom\" }}\n transformOrigin={{ horizontal: \"right\", vertical: \"top\" }}\n onShow={() => setMenuOpen(true)}\n onClose={() => setMenuOpen(false)}\n popoverProps={{ className: classes[\"popover\"] }}\n showChevron\n trigger={\n <button className={classes[\"trigger\"]} title={menuTriggerTitle}>\n <div className={`${classes[\"circle\"]} ${menuOpen ? classes[\"active\"] : \"\"}`}>\n {imgSrc ? (\n <img className={classes[\"img\"]} src={imgSrc} alt={imgAlt ?? safeInitials} />\n ) : (\n <span className={classes[\"initials\"]}>{safeInitials}</span>\n )}\n </div>\n </button>\n }\n >\n {children}\n </ContextMenu>\n </div>\n );\n};\n"],"names":["initials","imgSrc","imgAlt","menuTriggerTitle","headerContent","children","rest","menuOpen","setMenuOpen","useState","safeInitials","substring","createElement","React","ContextMenu","decorativeElement","placement","horizontal","vertical","transformOrigin","onShow","onClose","popoverProps","className","classes","showChevron","trigger","title","src","alt"],"mappings":"gOAkB2B,EACzBA,WACAC,SACAC,SACAC,mBACAC,gBACAC,cACGC,MAEH,MAAOC,EAAUC,GAAeC,EAAAA,UAAS,GACnCC,EAAeV,EAAWA,EAASW,UAAU,EAAG,GAAK,GAE3D,SACEC,cAAC,MAAA,IAAQN,GACPO,EAAAD,cAACE,EAAAA,YAAA,CACCC,kBAAmBX,EACnBY,UAAW,CAAEC,WAAY,QAASC,SAAU,UAC5CC,gBAAiB,CAAEF,WAAY,QAASC,SAAU,OAClDE,OAAQ,IAAMZ,GAAY,GAC1Ba,QAAS,IAAMb,GAAY,GAC3Bc,aAAc,CAAEC,UAAWC,EAAAA,QAAiB,SAC5CC,aAAW,EACXC,wBACG,SAAA,CAAOH,UAAWC,EAAAA,QAAiB,QAAGG,MAAOxB,GAC5CU,EAAAD,cAAC,OAAIW,UAAW,GAAGC,UAAgB,UAAKjB,EAAWiB,UAAgB,OAAI,MACpEvB,EACCY,EAAAD,cAAC,OAAIW,UAAWC,EAAAA,QAAa,IAAGI,IAAK3B,EAAQ4B,IAAK3B,GAAUQ,IAE5DG,EAAAD,cAAC,QAAKW,UAAWC,UAAkB,UAAId,MAM9CL"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import classes from "./ProfileMenu.module.scss.es.js";
|
|
3
|
+
import { ContextMenu } from "../../../ContextMenu/ContextMenu.es.js";
|
|
4
|
+
const ProfileMenu = ({
|
|
5
|
+
initials,
|
|
6
|
+
imgSrc,
|
|
7
|
+
imgAlt,
|
|
8
|
+
menuTriggerTitle,
|
|
9
|
+
headerContent,
|
|
10
|
+
children,
|
|
11
|
+
...rest
|
|
12
|
+
}) => {
|
|
13
|
+
const [menuOpen, setMenuOpen] = useState(false);
|
|
14
|
+
const safeInitials = initials ? initials.substring(0, 2) : "";
|
|
15
|
+
return /* @__PURE__ */ React.createElement("div", { ...rest }, /* @__PURE__ */ React.createElement(
|
|
16
|
+
ContextMenu,
|
|
17
|
+
{
|
|
18
|
+
decorativeElement: headerContent,
|
|
19
|
+
placement: { horizontal: "right", vertical: "bottom" },
|
|
20
|
+
transformOrigin: { horizontal: "right", vertical: "top" },
|
|
21
|
+
onShow: () => setMenuOpen(true),
|
|
22
|
+
onClose: () => setMenuOpen(false),
|
|
23
|
+
popoverProps: { className: classes["popover"] },
|
|
24
|
+
showChevron: true,
|
|
25
|
+
trigger: /* @__PURE__ */ React.createElement("button", { className: classes["trigger"], title: menuTriggerTitle }, /* @__PURE__ */ React.createElement("div", { className: `${classes["circle"]} ${menuOpen ? classes["active"] : ""}` }, imgSrc ? /* @__PURE__ */ React.createElement("img", { className: classes["img"], src: imgSrc, alt: imgAlt ?? safeInitials }) : /* @__PURE__ */ React.createElement("span", { className: classes["initials"] }, safeInitials)))
|
|
26
|
+
},
|
|
27
|
+
children
|
|
28
|
+
));
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
ProfileMenu
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=ProfileMenu.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileMenu.es.js","sources":["../../../../../src/components/admin/layout/ProfileMenu/ProfileMenu.tsx"],"sourcesContent":["import React, { ComponentPropsWithRef, ReactElement, ReactNode, useState } from \"react\";\nimport classes from \"./ProfileMenu.module.scss\";\nimport { ContextMenu } from \"../../../ContextMenu/ContextMenu\";\nimport { ContextMenuDivider } from \"../../../ContextMenu/ContextMenuDivider\";\nimport { Props as ContextMenuItemProps } from \"../../../ContextMenu/ContextMenuItem\";\n\nexport interface ProfileMenuProps extends Omit<ComponentPropsWithRef<\"div\">, \"children\"> {\n initials?: string;\n imgSrc?: string;\n imgAlt?: string;\n menuTriggerTitle?: string;\n headerContent?: ReactNode;\n children:\n | ReactElement<ContextMenuItemProps>\n | ReactElement<typeof ContextMenuDivider>\n | (ReactElement<ContextMenuItemProps> | ReactElement<typeof ContextMenuDivider>)[];\n}\n\nexport const ProfileMenu = ({\n initials,\n imgSrc,\n imgAlt,\n menuTriggerTitle,\n headerContent,\n children,\n ...rest\n}: ProfileMenuProps) => {\n const [menuOpen, setMenuOpen] = useState(false);\n const safeInitials = initials ? initials.substring(0, 2) : \"\";\n\n return (\n <div {...rest}>\n <ContextMenu\n decorativeElement={headerContent}\n placement={{ horizontal: \"right\", vertical: \"bottom\" }}\n transformOrigin={{ horizontal: \"right\", vertical: \"top\" }}\n onShow={() => setMenuOpen(true)}\n onClose={() => setMenuOpen(false)}\n popoverProps={{ className: classes[\"popover\"] }}\n showChevron\n trigger={\n <button className={classes[\"trigger\"]} title={menuTriggerTitle}>\n <div className={`${classes[\"circle\"]} ${menuOpen ? classes[\"active\"] : \"\"}`}>\n {imgSrc ? (\n <img className={classes[\"img\"]} src={imgSrc} alt={imgAlt ?? safeInitials} />\n ) : (\n <span className={classes[\"initials\"]}>{safeInitials}</span>\n )}\n </div>\n </button>\n }\n >\n {children}\n </ContextMenu>\n </div>\n );\n};\n"],"names":[],"mappings":";;;AAkBO,MAAM,cAAc,CAAC;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAwB;AACtB,QAAM,CAAC,UAAU,WAAW,IAAI,SAAS,KAAK;AAC9C,QAAM,eAAe,WAAW,SAAS,UAAU,GAAG,CAAC,IAAI;AAE3D,SACE,sBAAA,cAAC,OAAA,EAAK,GAAG,KAAA,GACP,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,mBAAmB;AAAA,MACnB,WAAW,EAAE,YAAY,SAAS,UAAU,SAAA;AAAA,MAC5C,iBAAiB,EAAE,YAAY,SAAS,UAAU,MAAA;AAAA,MAClD,QAAQ,MAAM,YAAY,IAAI;AAAA,MAC9B,SAAS,MAAM,YAAY,KAAK;AAAA,MAChC,cAAc,EAAE,WAAW,QAAQ,SAAS,EAAA;AAAA,MAC5C,aAAW;AAAA,MACX,6CACG,UAAA,EAAO,WAAW,QAAQ,SAAS,GAAG,OAAO,iBAAA,GAC5C,sBAAA,cAAC,SAAI,WAAW,GAAG,QAAQ,QAAQ,CAAC,IAAI,WAAW,QAAQ,QAAQ,IAAI,EAAE,MACtE,SACC,sBAAA,cAAC,SAAI,WAAW,QAAQ,KAAK,GAAG,KAAK,QAAQ,KAAK,UAAU,cAAc,IAE1E,sBAAA,cAAC,UAAK,WAAW,QAAQ,UAAU,EAAA,GAAI,YAAa,CAExD,CACF;AAAA,IAAA;AAAA,IAGD;AAAA,EAAA,CAEL;AAEJ;"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.ProfileMenu_sr-only_jyx43{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.ProfileMenu_hidden_jyx43{display:none}.ProfileMenu_slide-in_jyx43{animation:ProfileMenu_slide-in_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.ProfileMenu_slide-in_jyx43{animation-duration:.1ms}}.ProfileMenu_slide-out_jyx43{animation:ProfileMenu_slide-out_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.ProfileMenu_slide-out_jyx43{animation-duration:.1ms}}@keyframes ProfileMenu_slide-in_jyx43{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes ProfileMenu_slide-out_jyx43{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.ProfileMenu_trigger_jyx43{display:flex;align-items:center;background:none;border:none;cursor:pointer;padding:0 .75rem}.ProfileMenu_trigger_jyx43:focus-visible{outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:calc(.125 * var(--font-size));border-radius:var(--focus-border-radius)}.ProfileMenu_circle_jyx43{width:2.5rem;height:2.5rem;border-radius:50%;background-color:var(--color-primary);color:var(--light);display:flex;align-items:center;justify-content:center;overflow:hidden}.ProfileMenu_circle_jyx43:hover{background-color:var(--color-primary600)}.ProfileMenu_circle_jyx43.ProfileMenu_active_jyx43{background-color:var(--color-primary700)}.ProfileMenu_initials_jyx43{font-weight:700;font-size:1rem;pointer-events:none}.ProfileMenu_img_jyx43{width:100%;height:100%;object-fit:cover;border-radius:50%}.ProfileMenu_popover_jyx43{z-index:11;--font-size: .875rem}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="ProfileMenu_trigger_jyx43",i="ProfileMenu_circle_jyx43",r="ProfileMenu_active_jyx43",o="ProfileMenu_initials_jyx43",t="ProfileMenu_img_jyx43",l="ProfileMenu_popover_jyx43",s={trigger:e,circle:i,active:r,initials:o,img:t,popover:l};exports.active=r,exports.circle=i,exports.default=s,exports.img=t,exports.initials=o,exports.popover=l,exports.trigger=e;
|
|
3
|
+
//# sourceMappingURL=ProfileMenu.module.scss.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileMenu.module.scss.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.ProfileMenu_sr-only_jyx43{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.ProfileMenu_hidden_jyx43{display:none}.ProfileMenu_slide-in_jyx43{animation:ProfileMenu_slide-in_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.ProfileMenu_slide-in_jyx43{animation-duration:.1ms}}.ProfileMenu_slide-out_jyx43{animation:ProfileMenu_slide-out_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.ProfileMenu_slide-out_jyx43{animation-duration:.1ms}}@keyframes ProfileMenu_slide-in_jyx43{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes ProfileMenu_slide-out_jyx43{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.ProfileMenu_trigger_jyx43{display:flex;align-items:center;background:none;border:none;cursor:pointer;padding:0 .75rem}.ProfileMenu_trigger_jyx43:focus-visible{outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:calc(.125 * var(--font-size));border-radius:var(--focus-border-radius)}.ProfileMenu_circle_jyx43{width:2.5rem;height:2.5rem;border-radius:50%;background-color:var(--color-primary);color:var(--light);display:flex;align-items:center;justify-content:center;overflow:hidden}.ProfileMenu_circle_jyx43:hover{background-color:var(--color-primary600)}.ProfileMenu_circle_jyx43.ProfileMenu_active_jyx43{background-color:var(--color-primary700)}.ProfileMenu_initials_jyx43{font-weight:700;font-size:1rem;pointer-events:none}.ProfileMenu_img_jyx43{width:100%;height:100%;object-fit:cover;border-radius:50%}.ProfileMenu_popover_jyx43{z-index:11;--font-size: .875rem}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
|
|
2
|
+
const trigger = "ProfileMenu_trigger_jyx43";
|
|
3
|
+
const circle = "ProfileMenu_circle_jyx43";
|
|
4
|
+
const active = "ProfileMenu_active_jyx43";
|
|
5
|
+
const initials = "ProfileMenu_initials_jyx43";
|
|
6
|
+
const img = "ProfileMenu_img_jyx43";
|
|
7
|
+
const popover = "ProfileMenu_popover_jyx43";
|
|
8
|
+
const classes = {
|
|
9
|
+
trigger,
|
|
10
|
+
circle,
|
|
11
|
+
active,
|
|
12
|
+
initials,
|
|
13
|
+
img,
|
|
14
|
+
popover
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
active,
|
|
18
|
+
circle,
|
|
19
|
+
classes as default,
|
|
20
|
+
img,
|
|
21
|
+
initials,
|
|
22
|
+
popover,
|
|
23
|
+
trigger
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=ProfileMenu.module.scss.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileMenu.module.scss.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),a=require("./TopNavBar.module.scss.cjs.js"),t=require("../../../Icon/Icon.cjs.js"),l=require("../../../Button/IconButton.cjs.js");exports.TopNavBar=({logo:n,logoSmall:o,homeHref:s="/",homeLabel:r="Home",homeComponent:c,middleComponent:d,rightComponent:i,showSeparator:m=!1,isBurgerDisabled:u=!1,isSideMenuOpen:p=!1,isSideMenuCollapsed:f=!1,onSideMenuOpen:g,burgerMenuLabel:E="Toggle side menu","data-testid":N="topnavbar"})=>e.createElement("nav",{className:a.default.topnavbar,"data-testid":N},!u&&e.createElement(l.IconButton,{"aria-controls":"sidemenu","data-testid":"sidemenu-btn","aria-expanded":p,title:E,color:"default",className:`${a.default["menu-button"]} ${f?a.default["menu--collapsed"]:""}`,onClick:()=>null==g?void 0:g(!p)},p?e.createElement(t.Icon,{icon:t.Icons.Times}):e.createElement(t.Icon,{icon:t.Icons.Hamburger})),e.createElement("div",{className:a.default["left-section"]},c??e.createElement("a",{href:s,className:a.default["logo-link"]},e.createElement("div",{className:a.default["logo-container"]},e.createElement("span",{className:a.default["logo-small"]},o),e.createElement("span",{className:a.default.logo},n)),e.createElement("span",{className:a.default["sr-only"]},r))),m&&e.createElement("hr",{"aria-hidden":"true",className:a.default.separator,"data-testid":`${N}-separator`}),d&&e.createElement("div",{className:a.default["middle-section"]},d),e.createElement("div",{className:a.default["right-section"]},i));
|
|
2
|
+
//# sourceMappingURL=TopNavBar.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TopNavBar.cjs.js","sources":["../../../../../src/components/admin/layout/TopNavBar/TopNavBar.tsx"],"sourcesContent":["import React, { ReactNode } from \"react\";\nimport classes from \"./TopNavBar.module.scss\";\nimport { Icon, Icons } from \"../../../Icon/Icon\";\nimport { IconButton } from \"../../../Button/IconButton\";\n\nexport interface TopNavBarProps {\n logo?: ReactNode;\n logoSmall?: ReactNode;\n homeHref?: string;\n homeLabel?: string;\n homeComponent?: ReactNode;\n middleComponent?: ReactNode;\n rightComponent?: ReactNode;\n showSeparator?: boolean;\n isBurgerDisabled?: boolean;\n isSideMenuOpen?: boolean;\n isSideMenuCollapsed?: boolean;\n onSideMenuOpen?: (open: boolean) => void;\n burgerMenuLabel?: string;\n \"data-testid\"?: string;\n}\n\nexport const TopNavBar = ({\n logo,\n logoSmall,\n homeHref = \"/\",\n homeLabel = \"Home\",\n homeComponent,\n middleComponent,\n rightComponent,\n showSeparator = false,\n isBurgerDisabled = false,\n isSideMenuOpen = false,\n isSideMenuCollapsed = false,\n onSideMenuOpen,\n burgerMenuLabel = \"Toggle side menu\",\n \"data-testid\": testId = \"topnavbar\"\n}: TopNavBarProps) => {\n return (\n <nav className={classes[\"topnavbar\"]} data-testid={testId}>\n {!isBurgerDisabled && (\n <IconButton\n aria-controls=\"sidemenu\"\n data-testid=\"sidemenu-btn\"\n aria-expanded={isSideMenuOpen}\n title={burgerMenuLabel}\n color=\"default\"\n className={`${classes[\"menu-button\"]} ${isSideMenuCollapsed ? classes[\"menu--collapsed\"] : \"\"}`}\n onClick={() => onSideMenuOpen?.(!isSideMenuOpen)}\n >\n {isSideMenuOpen ? <Icon icon={Icons.Times} /> : <Icon icon={Icons.Hamburger} />}\n </IconButton>\n )}\n\n <div className={classes[\"left-section\"]}>\n {homeComponent ?? (\n <a href={homeHref} className={classes[\"logo-link\"]}>\n <div className={classes[\"logo-container\"]}>\n <span className={classes[\"logo-small\"]}>{logoSmall}</span>\n <span className={classes[\"logo\"]}>{logo}</span>\n </div>\n <span className={classes[\"sr-only\"]}>{homeLabel}</span>\n </a>\n )}\n </div>\n\n {showSeparator && (\n <hr\n aria-hidden=\"true\"\n className={classes[\"separator\"]}\n data-testid={`${testId}-separator`}\n />\n )}\n\n {middleComponent && <div className={classes[\"middle-section\"]}>{middleComponent}</div>}\n\n <div className={classes[\"right-section\"]}>{rightComponent}</div>\n </nav>\n );\n};\n"],"names":["logo","logoSmall","homeHref","homeLabel","homeComponent","middleComponent","rightComponent","showSeparator","isBurgerDisabled","isSideMenuOpen","isSideMenuCollapsed","onSideMenuOpen","burgerMenuLabel","testId","React","createElement","className","classes","IconButton","title","color","onClick","Icon","icon","Icons","Times","Hamburger","href"],"mappings":"6PAsByB,EACvBA,OACAC,YACAC,WAAW,IACXC,YAAY,OACZC,gBACAC,kBACAC,iBACAC,iBAAgB,EAChBC,oBAAmB,EACnBC,kBAAiB,EACjBC,uBAAsB,EACtBC,iBACAC,kBAAkB,mBAClB,cAAeC,EAAS,eAGtBC,EAAAC,cAAC,OAAIC,UAAWC,EAAAA,QAAmB,UAAG,cAAaJ,IAC/CL,GACAM,EAAAC,cAACG,EAAAA,WAAA,CACC,gBAAc,WACd,cAAY,eACZ,gBAAeT,EACfU,MAAOP,EACPQ,MAAM,UACNJ,UAAW,GAAGC,UAAQ,kBAAkBP,EAAsBO,UAAQ,mBAAqB,KAC3FI,QAAS,IAAM,MAAAV,OAAA,EAAAA,GAAkBF,IAEhCA,IAAiBM,cAACO,EAAAA,KAAA,CAAKC,KAAMC,EAAAA,MAAMC,QAAYX,EAAAC,cAACO,EAAAA,KAAA,CAAKC,KAAMC,EAAAA,MAAME,6BAIrE,MAAA,CAAIV,UAAWC,EAAAA,QAAQ,iBACrBb,GACCU,EAAAC,cAAC,IAAA,CAAEY,KAAMzB,EAAUc,UAAWC,EAAAA,QAAQ,gBACpCF,cAAC,OAAIC,UAAWC,EAAAA,QAAQ,qBACtBF,cAAC,OAAA,CAAKC,UAAWC,EAAAA,QAAQ,eAAgBhB,mBACxC,OAAA,CAAKe,UAAWC,EAAAA,QAAc,MAAIjB,IAErCc,EAAAC,cAAC,OAAA,CAAKC,UAAWC,EAAAA,QAAQ,YAAad,KAK3CI,GACCO,EAAAC,cAAC,KAAA,CACC,cAAY,OACZC,UAAWC,EAAAA,QAAmB,UAC9B,cAAa,GAAGJ,gBAInBR,GAAmBS,EAAAC,cAAC,MAAA,CAAIC,UAAWC,EAAAA,QAAQ,mBAAoBZ,mBAE/D,MAAA,CAAIW,UAAWC,EAAAA,QAAQ,kBAAmBX"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import classes from "./TopNavBar.module.scss.es.js";
|
|
3
|
+
import { Icon, Icons } from "../../../Icon/Icon.es.js";
|
|
4
|
+
import { IconButton } from "../../../Button/IconButton.es.js";
|
|
5
|
+
const TopNavBar = ({
|
|
6
|
+
logo,
|
|
7
|
+
logoSmall,
|
|
8
|
+
homeHref = "/",
|
|
9
|
+
homeLabel = "Home",
|
|
10
|
+
homeComponent,
|
|
11
|
+
middleComponent,
|
|
12
|
+
rightComponent,
|
|
13
|
+
showSeparator = false,
|
|
14
|
+
isBurgerDisabled = false,
|
|
15
|
+
isSideMenuOpen = false,
|
|
16
|
+
isSideMenuCollapsed = false,
|
|
17
|
+
onSideMenuOpen,
|
|
18
|
+
burgerMenuLabel = "Toggle side menu",
|
|
19
|
+
"data-testid": testId = "topnavbar"
|
|
20
|
+
}) => {
|
|
21
|
+
return /* @__PURE__ */ React.createElement("nav", { className: classes["topnavbar"], "data-testid": testId }, !isBurgerDisabled && /* @__PURE__ */ React.createElement(
|
|
22
|
+
IconButton,
|
|
23
|
+
{
|
|
24
|
+
"aria-controls": "sidemenu",
|
|
25
|
+
"data-testid": "sidemenu-btn",
|
|
26
|
+
"aria-expanded": isSideMenuOpen,
|
|
27
|
+
title: burgerMenuLabel,
|
|
28
|
+
color: "default",
|
|
29
|
+
className: `${classes["menu-button"]} ${isSideMenuCollapsed ? classes["menu--collapsed"] : ""}`,
|
|
30
|
+
onClick: () => onSideMenuOpen == null ? void 0 : onSideMenuOpen(!isSideMenuOpen)
|
|
31
|
+
},
|
|
32
|
+
isSideMenuOpen ? /* @__PURE__ */ React.createElement(Icon, { icon: Icons.Times }) : /* @__PURE__ */ React.createElement(Icon, { icon: Icons.Hamburger })
|
|
33
|
+
), /* @__PURE__ */ React.createElement("div", { className: classes["left-section"] }, homeComponent ?? /* @__PURE__ */ React.createElement("a", { href: homeHref, className: classes["logo-link"] }, /* @__PURE__ */ React.createElement("div", { className: classes["logo-container"] }, /* @__PURE__ */ React.createElement("span", { className: classes["logo-small"] }, logoSmall), /* @__PURE__ */ React.createElement("span", { className: classes["logo"] }, logo)), /* @__PURE__ */ React.createElement("span", { className: classes["sr-only"] }, homeLabel))), showSeparator && /* @__PURE__ */ React.createElement(
|
|
34
|
+
"hr",
|
|
35
|
+
{
|
|
36
|
+
"aria-hidden": "true",
|
|
37
|
+
className: classes["separator"],
|
|
38
|
+
"data-testid": `${testId}-separator`
|
|
39
|
+
}
|
|
40
|
+
), middleComponent && /* @__PURE__ */ React.createElement("div", { className: classes["middle-section"] }, middleComponent), /* @__PURE__ */ React.createElement("div", { className: classes["right-section"] }, rightComponent));
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
TopNavBar
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=TopNavBar.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TopNavBar.es.js","sources":["../../../../../src/components/admin/layout/TopNavBar/TopNavBar.tsx"],"sourcesContent":["import React, { ReactNode } from \"react\";\nimport classes from \"./TopNavBar.module.scss\";\nimport { Icon, Icons } from \"../../../Icon/Icon\";\nimport { IconButton } from \"../../../Button/IconButton\";\n\nexport interface TopNavBarProps {\n logo?: ReactNode;\n logoSmall?: ReactNode;\n homeHref?: string;\n homeLabel?: string;\n homeComponent?: ReactNode;\n middleComponent?: ReactNode;\n rightComponent?: ReactNode;\n showSeparator?: boolean;\n isBurgerDisabled?: boolean;\n isSideMenuOpen?: boolean;\n isSideMenuCollapsed?: boolean;\n onSideMenuOpen?: (open: boolean) => void;\n burgerMenuLabel?: string;\n \"data-testid\"?: string;\n}\n\nexport const TopNavBar = ({\n logo,\n logoSmall,\n homeHref = \"/\",\n homeLabel = \"Home\",\n homeComponent,\n middleComponent,\n rightComponent,\n showSeparator = false,\n isBurgerDisabled = false,\n isSideMenuOpen = false,\n isSideMenuCollapsed = false,\n onSideMenuOpen,\n burgerMenuLabel = \"Toggle side menu\",\n \"data-testid\": testId = \"topnavbar\"\n}: TopNavBarProps) => {\n return (\n <nav className={classes[\"topnavbar\"]} data-testid={testId}>\n {!isBurgerDisabled && (\n <IconButton\n aria-controls=\"sidemenu\"\n data-testid=\"sidemenu-btn\"\n aria-expanded={isSideMenuOpen}\n title={burgerMenuLabel}\n color=\"default\"\n className={`${classes[\"menu-button\"]} ${isSideMenuCollapsed ? classes[\"menu--collapsed\"] : \"\"}`}\n onClick={() => onSideMenuOpen?.(!isSideMenuOpen)}\n >\n {isSideMenuOpen ? <Icon icon={Icons.Times} /> : <Icon icon={Icons.Hamburger} />}\n </IconButton>\n )}\n\n <div className={classes[\"left-section\"]}>\n {homeComponent ?? (\n <a href={homeHref} className={classes[\"logo-link\"]}>\n <div className={classes[\"logo-container\"]}>\n <span className={classes[\"logo-small\"]}>{logoSmall}</span>\n <span className={classes[\"logo\"]}>{logo}</span>\n </div>\n <span className={classes[\"sr-only\"]}>{homeLabel}</span>\n </a>\n )}\n </div>\n\n {showSeparator && (\n <hr\n aria-hidden=\"true\"\n className={classes[\"separator\"]}\n data-testid={`${testId}-separator`}\n />\n )}\n\n {middleComponent && <div className={classes[\"middle-section\"]}>{middleComponent}</div>}\n\n <div className={classes[\"right-section\"]}>{rightComponent}</div>\n </nav>\n );\n};\n"],"names":[],"mappings":";;;;AAsBO,MAAM,YAAY,CAAC;AAAA,EACxB;AAAA,EACA;AAAA,EACA,WAAW;AAAA,EACX,YAAY;AAAA,EACZ;AAAA,EACA;AAAA,EACA;AAAA,EACA,gBAAgB;AAAA,EAChB,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,sBAAsB;AAAA,EACtB;AAAA,EACA,kBAAkB;AAAA,EAClB,eAAe,SAAS;AAC1B,MAAsB;AACpB,SACE,sBAAA,cAAC,SAAI,WAAW,QAAQ,WAAW,GAAG,eAAa,OAAA,GAChD,CAAC,oBACA,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,iBAAc;AAAA,MACd,eAAY;AAAA,MACZ,iBAAe;AAAA,MACf,OAAO;AAAA,MACP,OAAM;AAAA,MACN,WAAW,GAAG,QAAQ,aAAa,CAAC,IAAI,sBAAsB,QAAQ,iBAAiB,IAAI,EAAE;AAAA,MAC7F,SAAS,MAAM,iDAAiB,CAAC;AAAA,IAAc;AAAA,IAE9C,iBAAiB,sBAAA,cAAC,MAAA,EAAK,MAAM,MAAM,MAAA,CAAO,IAAK,sBAAA,cAAC,MAAA,EAAK,MAAM,MAAM,UAAA,CAAW;AAAA,EAAA,uCAIhF,OAAA,EAAI,WAAW,QAAQ,cAAc,EAAA,GACnC,iBACC,sBAAA,cAAC,KAAA,EAAE,MAAM,UAAU,WAAW,QAAQ,WAAW,EAAA,GAC/C,sBAAA,cAAC,SAAI,WAAW,QAAQ,gBAAgB,EAAA,GACtC,sBAAA,cAAC,QAAA,EAAK,WAAW,QAAQ,YAAY,KAAI,SAAU,uCAClD,QAAA,EAAK,WAAW,QAAQ,MAAM,EAAA,GAAI,IAAK,CAC1C,GACA,sBAAA,cAAC,QAAA,EAAK,WAAW,QAAQ,SAAS,KAAI,SAAU,CAClD,CAEJ,GAEC,iBACC,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,eAAY;AAAA,MACZ,WAAW,QAAQ,WAAW;AAAA,MAC9B,eAAa,GAAG,MAAM;AAAA,IAAA;AAAA,EAAA,GAIzB,mBAAmB,sBAAA,cAAC,OAAA,EAAI,WAAW,QAAQ,gBAAgB,KAAI,eAAgB,uCAE/E,OAAA,EAAI,WAAW,QAAQ,eAAe,KAAI,cAAe,CAC5D;AAEJ;"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var a=document.createElement("style");a.appendChild(document.createTextNode('.TopNavBar_sr-only_jyx43{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.TopNavBar_hidden_jyx43{display:none}.TopNavBar_slide-in_jyx43{animation:TopNavBar_slide-in_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.TopNavBar_slide-in_jyx43{animation-duration:.1ms}}.TopNavBar_slide-out_jyx43{animation:TopNavBar_slide-out_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.TopNavBar_slide-out_jyx43{animation-duration:.1ms}}@keyframes TopNavBar_slide-in_jyx43{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes TopNavBar_slide-out_jyx43{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.TopNavBar_topnavbar_jyx43{position:sticky;top:0;left:0;z-index:3;width:100%;display:flex;align-items:center;height:4rem;padding:0 .75rem 0 0;background-color:var(--sidenavbar-background);box-shadow:0 2px 4px #0105320a,0 4px 5px #0105320a,0 1px 10px #01053214;--font-size: .875rem;flex-wrap:nowrap}.TopNavBar_topnavbar_jyx43 .TopNavBar_left-section_jyx43{flex-shrink:0;display:flex;align-items:center}.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-link_jyx43{display:flex;align-items:center;text-decoration:none}.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-container_jyx43{display:flex;align-items:center}.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-container_jyx43 .TopNavBar_logo-small_jyx43{height:2.5rem;display:flex;align-items:center;margin:0 1rem}.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-container_jyx43 .TopNavBar_logo_jyx43{display:none}@media screen and (min-width:30em){.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-container_jyx43 .TopNavBar_logo-small_jyx43{display:none;height:0}.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-container_jyx43 .TopNavBar_logo_jyx43{display:block;margin-left:1rem}}@media screen and (min-width:30em)and (min-width:50em){.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-container_jyx43 .TopNavBar_logo_jyx43{margin-left:.75rem;margin-right:0}}.TopNavBar_topnavbar_jyx43 .TopNavBar_sr-only_jyx43{position:absolute;margin:-1px;height:1px;width:1px;overflow:hidden}.TopNavBar_topnavbar_jyx43 .TopNavBar_separator_jyx43{border:none;width:1px;height:2.5rem;background-color:#dedee6;flex-shrink:0;align-self:center;margin:0 3rem}.TopNavBar_topnavbar_jyx43 .TopNavBar_middle-section_jyx43{flex:1;display:flex;align-items:center;min-width:0;margin-left:6.0625rem}.TopNavBar_topnavbar_jyx43 .TopNavBar_separator_jyx43+.TopNavBar_middle-section_jyx43{margin-left:0}.TopNavBar_topnavbar_jyx43 .TopNavBar_right-section_jyx43{display:flex;align-items:center;margin-left:auto;justify-content:flex-end;gap:1rem;padding-left:1rem}.TopNavBar_topnavbar_jyx43 .TopNavBar_menu-button_jyx43{flex-shrink:0;margin-left:.75rem;display:none;--font-size: 1rem}@media screen and (max-width:50em){.TopNavBar_topnavbar_jyx43 .TopNavBar_menu-button_jyx43{display:initial}}.TopNavBar_topnavbar_jyx43 .TopNavBar_menu-button_jyx43.TopNavBar_menu--collapsed_jyx43{display:initial}')),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="TopNavBar_topnavbar_jyx43",a="TopNavBar_logo_jyx43",e="TopNavBar_separator_jyx43",r={"sr-only":"TopNavBar_sr-only_jyx43",topnavbar:o,"left-section":"TopNavBar_left-section_jyx43","logo-link":"TopNavBar_logo-link_jyx43","logo-container":"TopNavBar_logo-container_jyx43","logo-small":"TopNavBar_logo-small_jyx43",logo:a,separator:e,"middle-section":"TopNavBar_middle-section_jyx43","right-section":"TopNavBar_right-section_jyx43","menu-button":"TopNavBar_menu-button_jyx43","menu--collapsed":"TopNavBar_menu--collapsed_jyx43"};exports.default=r,exports.logo=a,exports.separator=e,exports.topnavbar=o;
|
|
3
|
+
//# sourceMappingURL=TopNavBar.module.scss.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TopNavBar.module.scss.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var a=document.createElement("style");a.appendChild(document.createTextNode('.TopNavBar_sr-only_jyx43{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.TopNavBar_hidden_jyx43{display:none}.TopNavBar_slide-in_jyx43{animation:TopNavBar_slide-in_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.TopNavBar_slide-in_jyx43{animation-duration:.1ms}}.TopNavBar_slide-out_jyx43{animation:TopNavBar_slide-out_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.TopNavBar_slide-out_jyx43{animation-duration:.1ms}}@keyframes TopNavBar_slide-in_jyx43{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes TopNavBar_slide-out_jyx43{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.TopNavBar_topnavbar_jyx43{position:sticky;top:0;left:0;z-index:3;width:100%;display:flex;align-items:center;height:4rem;padding:0 .75rem 0 0;background-color:var(--sidenavbar-background);box-shadow:0 2px 4px #0105320a,0 4px 5px #0105320a,0 1px 10px #01053214;--font-size: .875rem;flex-wrap:nowrap}.TopNavBar_topnavbar_jyx43 .TopNavBar_left-section_jyx43{flex-shrink:0;display:flex;align-items:center}.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-link_jyx43{display:flex;align-items:center;text-decoration:none}.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-container_jyx43{display:flex;align-items:center}.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-container_jyx43 .TopNavBar_logo-small_jyx43{height:2.5rem;display:flex;align-items:center;margin:0 1rem}.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-container_jyx43 .TopNavBar_logo_jyx43{display:none}@media screen and (min-width:30em){.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-container_jyx43 .TopNavBar_logo-small_jyx43{display:none;height:0}.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-container_jyx43 .TopNavBar_logo_jyx43{display:block;margin-left:1rem}}@media screen and (min-width:30em)and (min-width:50em){.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-container_jyx43 .TopNavBar_logo_jyx43{margin-left:.75rem;margin-right:0}}.TopNavBar_topnavbar_jyx43 .TopNavBar_sr-only_jyx43{position:absolute;margin:-1px;height:1px;width:1px;overflow:hidden}.TopNavBar_topnavbar_jyx43 .TopNavBar_separator_jyx43{border:none;width:1px;height:2.5rem;background-color:#dedee6;flex-shrink:0;align-self:center;margin:0 3rem}.TopNavBar_topnavbar_jyx43 .TopNavBar_middle-section_jyx43{flex:1;display:flex;align-items:center;min-width:0;margin-left:6.0625rem}.TopNavBar_topnavbar_jyx43 .TopNavBar_separator_jyx43+.TopNavBar_middle-section_jyx43{margin-left:0}.TopNavBar_topnavbar_jyx43 .TopNavBar_right-section_jyx43{display:flex;align-items:center;margin-left:auto;justify-content:flex-end;gap:1rem;padding-left:1rem}.TopNavBar_topnavbar_jyx43 .TopNavBar_menu-button_jyx43{flex-shrink:0;margin-left:.75rem;display:none;--font-size: 1rem}@media screen and (max-width:50em){.TopNavBar_topnavbar_jyx43 .TopNavBar_menu-button_jyx43{display:initial}}.TopNavBar_topnavbar_jyx43 .TopNavBar_menu-button_jyx43.TopNavBar_menu--collapsed_jyx43{display:initial}')),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
|
|
2
|
+
const topnavbar = "TopNavBar_topnavbar_jyx43";
|
|
3
|
+
const logo = "TopNavBar_logo_jyx43";
|
|
4
|
+
const separator = "TopNavBar_separator_jyx43";
|
|
5
|
+
const classes = {
|
|
6
|
+
"sr-only": "TopNavBar_sr-only_jyx43",
|
|
7
|
+
topnavbar,
|
|
8
|
+
"left-section": "TopNavBar_left-section_jyx43",
|
|
9
|
+
"logo-link": "TopNavBar_logo-link_jyx43",
|
|
10
|
+
"logo-container": "TopNavBar_logo-container_jyx43",
|
|
11
|
+
"logo-small": "TopNavBar_logo-small_jyx43",
|
|
12
|
+
logo,
|
|
13
|
+
separator,
|
|
14
|
+
"middle-section": "TopNavBar_middle-section_jyx43",
|
|
15
|
+
"right-section": "TopNavBar_right-section_jyx43",
|
|
16
|
+
"menu-button": "TopNavBar_menu-button_jyx43",
|
|
17
|
+
"menu--collapsed": "TopNavBar_menu--collapsed_jyx43"
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
classes as default,
|
|
21
|
+
logo,
|
|
22
|
+
separator,
|
|
23
|
+
topnavbar
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=TopNavBar.module.scss.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TopNavBar.module.scss.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityProviderButton.cjs.js","sources":["../../../src/components/miscellaneous/IdentityProviderButton.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, { ComponentPropsWithRef, CSSProperties, ForwardRefRenderFunction } from \"react\";\nimport classes from \"./IdentityProviderButton.module.scss\";\nimport { Button } from \"../Button/Button\";\n\nexport interface SupportedCustomizationKeys {\n backgroundColor: string;\n focusBorderColor: string;\n focusBackgroundColor: string;\n hoverBackgroundColor: string;\n pressedBackgroundColor: string;\n textColor: string;\n borderColor: string;\n}\n\nexport interface Props extends Omit<ComponentPropsWithRef<\"button\">, \"color\"> {\n iconUrl?: string;\n imgAltText?: string;\n idpType: string;\n customization?: SupportedCustomizationKeys;\n loading?: boolean;\n}\n\nexport const IdentityProviderButton: ForwardRefRenderFunction<HTMLButtonElement, Props> = ({\n children,\n iconUrl,\n imgAltText,\n idpType,\n customization,\n loading,\n ...rest\n}) => {\n const DEFAULT_BACKGROUND_COLOR = \"#FFFFFF\";\n const DEFAULT_BORDER_COLOR = \"#000000\";\n const DEFAULT_TEXT_COLOR = \"#000000\";\n const DEFAULT_FOCUS_OUTLINE_COLOR = \"var(--color-black50)\";\n const DEFAULT_HOVER_COLOR = \"var(--color-black10)\";\n const DEFAULT_PRESSED_COLOR = \"var(--color-black20)\";\n\n const generateCSSProperties = () => {\n return {\n \"--button-fill-primary-default-color\":\n customization?.backgroundColor ?? DEFAULT_BACKGROUND_COLOR,\n borderColor: customization?.borderColor ?? DEFAULT_BORDER_COLOR,\n \"--button-fill-text-color\": customization?.textColor ?? DEFAULT_TEXT_COLOR,\n \"--color-focus\": customization?.focusBorderColor ?? DEFAULT_FOCUS_OUTLINE_COLOR,\n \"--button-fill-primary-focused-color\":\n customization?.focusBackgroundColor ?? DEFAULT_BACKGROUND_COLOR,\n \"--button-fill-primary-hover-color\":\n customization?.hoverBackgroundColor ?? DEFAULT_HOVER_COLOR,\n \"--button-fill-primary-pressed-color\":\n customization?.pressedBackgroundColor ?? DEFAULT_PRESSED_COLOR\n } as CSSProperties;\n };\n\n return (\n <Button\n style={generateCSSProperties()}\n color=\"primary\"\n variant=\"fill\"\n className={classes[\"idp-button\"]}\n loading={loading}\n {...rest}\n >\n <span className={classes[\"idp-button--with-icon\"]}>\n <img\n height={24}\n width={24}\n aria-hidden={!imgAltText}\n src={iconUrl || `/ui-resources-static/common/idb/icons/${idpType}.svg`}\n alt={imgAltText || \"Identity Provider icon\"}\n />\n {children}\n </span>\n </Button>\n );\n};\n"],"names":["children","iconUrl","imgAltText","idpType","customization","loading","rest","DEFAULT_BACKGROUND_COLOR","React","createElement","Button","style","backgroundColor","borderColor","textColor","focusBorderColor","focusBackgroundColor","hoverBackgroundColor","pressedBackgroundColor","color","variant","className","classes","height","width","src","alt"],"mappings":"sOAsC0F,EACxFA,WACAC,UACAC,aACAC,UACAC,gBACAC,aACGC,MAEH,MAAMC,EAA2B,
|
|
1
|
+
{"version":3,"file":"IdentityProviderButton.cjs.js","sources":["../../../src/components/miscellaneous/IdentityProviderButton.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, { ComponentPropsWithRef, CSSProperties, ForwardRefRenderFunction } from \"react\";\nimport classes from \"./IdentityProviderButton.module.scss\";\nimport { Button } from \"../Button/Button\";\n\nexport interface SupportedCustomizationKeys {\n backgroundColor: string;\n focusBorderColor: string;\n focusBackgroundColor: string;\n hoverBackgroundColor: string;\n pressedBackgroundColor: string;\n textColor: string;\n borderColor: string;\n}\n\nexport interface Props extends Omit<ComponentPropsWithRef<\"button\">, \"color\"> {\n iconUrl?: string;\n imgAltText?: string;\n idpType: string;\n customization?: SupportedCustomizationKeys;\n loading?: boolean;\n}\n\nexport const IdentityProviderButton: ForwardRefRenderFunction<HTMLButtonElement, Props> = ({\n children,\n iconUrl,\n imgAltText,\n idpType,\n customization,\n loading,\n ...rest\n}) => {\n const DEFAULT_BACKGROUND_COLOR = \"#FFFFFF\";\n const DEFAULT_BORDER_COLOR = \"#000000\";\n const DEFAULT_TEXT_COLOR = \"#000000\";\n const DEFAULT_FOCUS_OUTLINE_COLOR = \"var(--color-black50)\";\n const DEFAULT_HOVER_COLOR = \"var(--color-black10)\";\n const DEFAULT_PRESSED_COLOR = \"var(--color-black20)\";\n\n const generateCSSProperties = () => {\n return {\n \"--button-fill-primary-default-color\":\n customization?.backgroundColor ?? DEFAULT_BACKGROUND_COLOR,\n borderColor: customization?.borderColor ?? DEFAULT_BORDER_COLOR,\n \"--button-fill-text-color\": customization?.textColor ?? DEFAULT_TEXT_COLOR,\n \"--color-focus\": customization?.focusBorderColor ?? DEFAULT_FOCUS_OUTLINE_COLOR,\n \"--button-fill-primary-focused-color\":\n customization?.focusBackgroundColor ?? DEFAULT_BACKGROUND_COLOR,\n \"--button-fill-primary-hover-color\":\n customization?.hoverBackgroundColor ?? DEFAULT_HOVER_COLOR,\n \"--button-fill-primary-pressed-color\":\n customization?.pressedBackgroundColor ?? DEFAULT_PRESSED_COLOR\n } as CSSProperties;\n };\n\n return (\n <Button\n style={generateCSSProperties()}\n color=\"primary\"\n variant=\"fill\"\n className={classes[\"idp-button\"]}\n loading={loading}\n {...rest}\n >\n <span className={classes[\"idp-button--with-icon\"]}>\n <img\n height={24}\n width={24}\n aria-hidden={!imgAltText}\n src={iconUrl || `/ui-resources-static/common/idb/icons/${idpType}.svg`}\n alt={imgAltText || \"Identity Provider icon\"}\n />\n {children}\n </span>\n </Button>\n );\n};\n"],"names":["children","iconUrl","imgAltText","idpType","customization","loading","rest","DEFAULT_BACKGROUND_COLOR","React","createElement","Button","style","backgroundColor","borderColor","textColor","focusBorderColor","focusBackgroundColor","hoverBackgroundColor","pressedBackgroundColor","color","variant","className","classes","height","width","src","alt"],"mappings":"sOAsC0F,EACxFA,WACAC,UACAC,aACAC,UACAC,gBACAC,aACGC,MAEH,MAAMC,EAA2B,UAuBjC,OACEC,EAAAC,cAACC,EAAAA,OAAA,CACCC,MAjBK,CACL,6CACEP,WAAeQ,kBAAmBL,EACpCM,mBAAaT,WAAeS,cAVH,UAWzB,kCAA4BT,WAAeU,YAVpB,UAWvB,uBAAiBV,WAAeW,mBAVA,uBAWhC,6CACEX,WAAeY,uBAAwBT,EACzC,2CACEH,WAAea,uBAbO,uBAcxB,6CACEb,WAAec,yBAdS,wBAqB1BC,MAAM,UACNC,QAAQ,OACRC,UAAWC,EAAAA,QAAQ,cACnBjB,aACIC,GAEJE,EAAAC,cAAC,OAAA,CAAKY,UAAWC,EAAAA,QAAQ,0BACvBd,EAAAC,cAAC,MAAA,CACCc,OAAQ,GACRC,MAAO,GACP,eAActB,EACduB,IAAKxB,GAAW,yCAAyCE,QACzDuB,IAAKxB,GAAc,2BAEpBF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityProviderButton.es.js","sources":["../../../src/components/miscellaneous/IdentityProviderButton.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, { ComponentPropsWithRef, CSSProperties, ForwardRefRenderFunction } from \"react\";\nimport classes from \"./IdentityProviderButton.module.scss\";\nimport { Button } from \"../Button/Button\";\n\nexport interface SupportedCustomizationKeys {\n backgroundColor: string;\n focusBorderColor: string;\n focusBackgroundColor: string;\n hoverBackgroundColor: string;\n pressedBackgroundColor: string;\n textColor: string;\n borderColor: string;\n}\n\nexport interface Props extends Omit<ComponentPropsWithRef<\"button\">, \"color\"> {\n iconUrl?: string;\n imgAltText?: string;\n idpType: string;\n customization?: SupportedCustomizationKeys;\n loading?: boolean;\n}\n\nexport const IdentityProviderButton: ForwardRefRenderFunction<HTMLButtonElement, Props> = ({\n children,\n iconUrl,\n imgAltText,\n idpType,\n customization,\n loading,\n ...rest\n}) => {\n const DEFAULT_BACKGROUND_COLOR = \"#FFFFFF\";\n const DEFAULT_BORDER_COLOR = \"#000000\";\n const DEFAULT_TEXT_COLOR = \"#000000\";\n const DEFAULT_FOCUS_OUTLINE_COLOR = \"var(--color-black50)\";\n const DEFAULT_HOVER_COLOR = \"var(--color-black10)\";\n const DEFAULT_PRESSED_COLOR = \"var(--color-black20)\";\n\n const generateCSSProperties = () => {\n return {\n \"--button-fill-primary-default-color\":\n customization?.backgroundColor ?? DEFAULT_BACKGROUND_COLOR,\n borderColor: customization?.borderColor ?? DEFAULT_BORDER_COLOR,\n \"--button-fill-text-color\": customization?.textColor ?? DEFAULT_TEXT_COLOR,\n \"--color-focus\": customization?.focusBorderColor ?? DEFAULT_FOCUS_OUTLINE_COLOR,\n \"--button-fill-primary-focused-color\":\n customization?.focusBackgroundColor ?? DEFAULT_BACKGROUND_COLOR,\n \"--button-fill-primary-hover-color\":\n customization?.hoverBackgroundColor ?? DEFAULT_HOVER_COLOR,\n \"--button-fill-primary-pressed-color\":\n customization?.pressedBackgroundColor ?? DEFAULT_PRESSED_COLOR\n } as CSSProperties;\n };\n\n return (\n <Button\n style={generateCSSProperties()}\n color=\"primary\"\n variant=\"fill\"\n className={classes[\"idp-button\"]}\n loading={loading}\n {...rest}\n >\n <span className={classes[\"idp-button--with-icon\"]}>\n <img\n height={24}\n width={24}\n aria-hidden={!imgAltText}\n src={iconUrl || `/ui-resources-static/common/idb/icons/${idpType}.svg`}\n alt={imgAltText || \"Identity Provider icon\"}\n />\n {children}\n </span>\n </Button>\n );\n};\n"],"names":[],"mappings":";;;AAsCO,MAAM,yBAA6E,CAAC;AAAA,EACzF;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,2BAA2B;AACjC,QAAM,uBAAuB;AAC7B,QAAM,qBAAqB;AAC3B,QAAM,8BAA8B;AACpC,QAAM,sBAAsB;AAC5B,QAAM,wBAAwB;AAE9B,QAAM,wBAAwB,MAAM;
|
|
1
|
+
{"version":3,"file":"IdentityProviderButton.es.js","sources":["../../../src/components/miscellaneous/IdentityProviderButton.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, { ComponentPropsWithRef, CSSProperties, ForwardRefRenderFunction } from \"react\";\nimport classes from \"./IdentityProviderButton.module.scss\";\nimport { Button } from \"../Button/Button\";\n\nexport interface SupportedCustomizationKeys {\n backgroundColor: string;\n focusBorderColor: string;\n focusBackgroundColor: string;\n hoverBackgroundColor: string;\n pressedBackgroundColor: string;\n textColor: string;\n borderColor: string;\n}\n\nexport interface Props extends Omit<ComponentPropsWithRef<\"button\">, \"color\"> {\n iconUrl?: string;\n imgAltText?: string;\n idpType: string;\n customization?: SupportedCustomizationKeys;\n loading?: boolean;\n}\n\nexport const IdentityProviderButton: ForwardRefRenderFunction<HTMLButtonElement, Props> = ({\n children,\n iconUrl,\n imgAltText,\n idpType,\n customization,\n loading,\n ...rest\n}) => {\n const DEFAULT_BACKGROUND_COLOR = \"#FFFFFF\";\n const DEFAULT_BORDER_COLOR = \"#000000\";\n const DEFAULT_TEXT_COLOR = \"#000000\";\n const DEFAULT_FOCUS_OUTLINE_COLOR = \"var(--color-black50)\";\n const DEFAULT_HOVER_COLOR = \"var(--color-black10)\";\n const DEFAULT_PRESSED_COLOR = \"var(--color-black20)\";\n\n const generateCSSProperties = () => {\n return {\n \"--button-fill-primary-default-color\":\n customization?.backgroundColor ?? DEFAULT_BACKGROUND_COLOR,\n borderColor: customization?.borderColor ?? DEFAULT_BORDER_COLOR,\n \"--button-fill-text-color\": customization?.textColor ?? DEFAULT_TEXT_COLOR,\n \"--color-focus\": customization?.focusBorderColor ?? DEFAULT_FOCUS_OUTLINE_COLOR,\n \"--button-fill-primary-focused-color\":\n customization?.focusBackgroundColor ?? DEFAULT_BACKGROUND_COLOR,\n \"--button-fill-primary-hover-color\":\n customization?.hoverBackgroundColor ?? DEFAULT_HOVER_COLOR,\n \"--button-fill-primary-pressed-color\":\n customization?.pressedBackgroundColor ?? DEFAULT_PRESSED_COLOR\n } as CSSProperties;\n };\n\n return (\n <Button\n style={generateCSSProperties()}\n color=\"primary\"\n variant=\"fill\"\n className={classes[\"idp-button\"]}\n loading={loading}\n {...rest}\n >\n <span className={classes[\"idp-button--with-icon\"]}>\n <img\n height={24}\n width={24}\n aria-hidden={!imgAltText}\n src={iconUrl || `/ui-resources-static/common/idb/icons/${idpType}.svg`}\n alt={imgAltText || \"Identity Provider icon\"}\n />\n {children}\n </span>\n </Button>\n );\n};\n"],"names":[],"mappings":";;;AAsCO,MAAM,yBAA6E,CAAC;AAAA,EACzF;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,2BAA2B;AACjC,QAAM,uBAAuB;AAC7B,QAAM,qBAAqB;AAC3B,QAAM,8BAA8B;AACpC,QAAM,sBAAsB;AAC5B,QAAM,wBAAwB;AAE9B,QAAM,wBAAwB,MAAM;AAClC,WAAO;AAAA,MACL,wCACE,+CAAe,oBAAmB;AAAA,MACpC,cAAa,+CAAe,gBAAe;AAAA,MAC3C,6BAA4B,+CAAe,cAAa;AAAA,MACxD,kBAAiB,+CAAe,qBAAoB;AAAA,MACpD,wCACE,+CAAe,yBAAwB;AAAA,MACzC,sCACE,+CAAe,yBAAwB;AAAA,MACzC,wCACE,+CAAe,2BAA0B;AAAA,IAAA;AAAA,EAE/C;AAEA,SACE,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAO,sBAAA;AAAA,MACP,OAAM;AAAA,MACN,SAAQ;AAAA,MACR,WAAW,QAAQ,YAAY;AAAA,MAC/B;AAAA,MACC,GAAG;AAAA,IAAA;AAAA,IAEJ,sBAAA,cAAC,QAAA,EAAK,WAAW,QAAQ,uBAAuB,KAC9C,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,eAAa,CAAC;AAAA,QACd,KAAK,WAAW,yCAAyC,OAAO;AAAA,QAChE,KAAK,cAAc;AAAA,MAAA;AAAA,IAAA,GAEpB,QACH;AAAA,EAAA;AAGN;"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.IdentityProviderButton_sr-
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default={"idp-button":"IdentityProviderButton_idp-
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.IdentityProviderButton_sr-only_jyx43{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.IdentityProviderButton_hidden_jyx43{display:none}.IdentityProviderButton_slide-in_jyx43{animation:IdentityProviderButton_slide-in_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.IdentityProviderButton_slide-in_jyx43{animation-duration:.1ms}}.IdentityProviderButton_slide-out_jyx43{animation:IdentityProviderButton_slide-out_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.IdentityProviderButton_slide-out_jyx43{animation-duration:.1ms}}@keyframes IdentityProviderButton_slide-in_jyx43{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes IdentityProviderButton_slide-out_jyx43{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.IdentityProviderButton_idp-button_jyx43{width:100%}.IdentityProviderButton_idp-button--with-icon_jyx43{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-top:-.125rem;margin-bottom:-.125rem}')),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={"idp-button":"IdentityProviderButton_idp-button_jyx43","idp-button--with-icon":"IdentityProviderButton_idp-button--with-icon_jyx43"};
|
|
3
3
|
//# sourceMappingURL=IdentityProviderButton.module.scss.cjs.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.IdentityProviderButton_sr-
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.IdentityProviderButton_sr-only_jyx43{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.IdentityProviderButton_hidden_jyx43{display:none}.IdentityProviderButton_slide-in_jyx43{animation:IdentityProviderButton_slide-in_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.IdentityProviderButton_slide-in_jyx43{animation-duration:.1ms}}.IdentityProviderButton_slide-out_jyx43{animation:IdentityProviderButton_slide-out_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.IdentityProviderButton_slide-out_jyx43{animation-duration:.1ms}}@keyframes IdentityProviderButton_slide-in_jyx43{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes IdentityProviderButton_slide-out_jyx43{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.IdentityProviderButton_idp-button_jyx43{width:100%}.IdentityProviderButton_idp-button--with-icon_jyx43{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-top:-.125rem;margin-bottom:-.125rem}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
2
|
const classes = {
|
|
3
|
-
"idp-button": "IdentityProviderButton_idp-
|
|
4
|
-
"idp-button--with-icon": "IdentityProviderButton_idp-button--with-
|
|
3
|
+
"idp-button": "IdentityProviderButton_idp-button_jyx43",
|
|
4
|
+
"idp-button--with-icon": "IdentityProviderButton_idp-button--with-icon_jyx43"
|
|
5
5
|
};
|
|
6
6
|
export {
|
|
7
7
|
classes as default
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),r=["CheckboxWrapper"],t=(e,r,t)=>{const n={};return e?(n.style={pointerEvents:"none",userSelect:"text"},t&&(n.helperText="")):t&&(n.helperText=t),r&&(n.type=r),n};exports.withReadOnly=(n,a)=>{const{isWrapperComponent:o}=a||{},p=e=>{const t=e=>{var r;("Enter"===(r=e).key||" "===r.key)&&(e.stopPropagation(),e.preventDefault())};if(e&&r.includes(n.displayName||n.name)){return{onKeyUp:e=>{t(e)},onKeyDown:e=>{t(e)}}}return{}},i=e.forwardRef((
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),r=["CheckboxWrapper"],t=(e,r,t)=>{const n={};return e?(n.style={pointerEvents:"none",userSelect:"text"},t&&(n.helperText="")):t&&(n.helperText=t),r&&(n.type=r),n};exports.withReadOnly=(n,a)=>{const{isWrapperComponent:o}=a||{},p=e=>{const t=e=>{var r;("Enter"===(r=e).key||" "===r.key)&&(e.stopPropagation(),e.preventDefault())};if(e&&r.includes(n.displayName||n.name)){return{onKeyUp:e=>{t(e)},onKeyDown:e=>{t(e)}}}return{}},i=e.forwardRef((r,a)=>{const{readOnlyView:i=!1,required:l,children:s,helperText:d,type:y="",...u}=r;return e.createElement(n,{ref:a,...u,"data-readonlyview":i,"aria-readonly":o?void 0:i,required:!i&&l,...t(i,y,d),...p(i)},s)});return i.displayName=`withReadOnly_${(e=>e.displayName??e.name??"Component")(n)}`,i};
|
|
2
2
|
//# sourceMappingURL=withReadOnly.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withReadOnly.cjs.js","sources":["../../src/components/withReadOnly.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, { ComponentType, ForwardedRef, PropsWithChildren } from \"react\";\n\nexport interface WithReadOnlyProps {\n readOnlyView?: boolean;\n required?: boolean;\n helperText?: string;\n type?: string;\n}\n\nconst componentsWithKeyEventsToPrevent: string[] = [\"CheckboxWrapper\"];\n\nconst getDisplayName = <P,>(WrappedComponent: ComponentType<P>) => {\n return WrappedComponent.displayName ?? WrappedComponent.name ?? \"Component\";\n};\n\nconst getConditionalProps = (readOnlyView: boolean, type: string, helperText?: string) => {\n const props: Record<string, unknown> = {};\n\n if (readOnlyView) {\n props.style = { pointerEvents: \"none\", userSelect: \"text\" };\n if (helperText) {\n props.helperText = \"\";\n }\n } else if (helperText) {\n props.helperText = helperText;\n }\n\n if (type) {\n props.type = type;\n }\n\n return props;\n};\n\ntype WithReadOnlyOptions = {\n isWrapperComponent: boolean;\n};\n\nexport const withReadOnly = <P extends object>(\n WrappedComponent: ComponentType<P>,\n options?: WithReadOnlyOptions\n) => {\n const { isWrapperComponent } = options || {};\n\n const preventKeyUpAndKeyDownHandlerForSpecificComponents = (readOnlyView: boolean) => {\n const preventSubmissionKeys = (e: KeyboardEvent) => {\n const isEnterOrSpace = (e: KeyboardEvent) => e.key === \"Enter\" || e.key === \" \";\n if (isEnterOrSpace(e)) {\n e.stopPropagation();\n e.preventDefault();\n }\n };\n\n if (\n readOnlyView &&\n componentsWithKeyEventsToPrevent.includes(\n WrappedComponent.displayName || WrappedComponent.name\n )\n ) {\n const props: Record<string, unknown> = {};\n\n props.onKeyUp = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n props.onKeyDown = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n return props;\n }\n\n return {};\n };\n\n const WithReadOnlyComponent = React.forwardRef(\n (props: PropsWithChildren<P & WithReadOnlyProps
|
|
1
|
+
{"version":3,"file":"withReadOnly.cjs.js","sources":["../../src/components/withReadOnly.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, { ComponentType, ForwardedRef, PropsWithChildren, PropsWithoutRef } from \"react\";\n\nexport interface WithReadOnlyProps {\n readOnlyView?: boolean;\n required?: boolean;\n helperText?: string;\n type?: string;\n}\n\nconst componentsWithKeyEventsToPrevent: string[] = [\"CheckboxWrapper\"];\n\nconst getDisplayName = <P,>(WrappedComponent: ComponentType<P>) => {\n return WrappedComponent.displayName ?? WrappedComponent.name ?? \"Component\";\n};\n\nconst getConditionalProps = (readOnlyView: boolean, type: string, helperText?: string) => {\n const props: Record<string, unknown> = {};\n\n if (readOnlyView) {\n props.style = { pointerEvents: \"none\", userSelect: \"text\" };\n if (helperText) {\n props.helperText = \"\";\n }\n } else if (helperText) {\n props.helperText = helperText;\n }\n\n if (type) {\n props.type = type;\n }\n\n return props;\n};\n\ntype WithReadOnlyOptions = {\n isWrapperComponent: boolean;\n};\n\nexport const withReadOnly = <P extends object>(\n WrappedComponent: ComponentType<P>,\n options?: WithReadOnlyOptions\n) => {\n const { isWrapperComponent } = options || {};\n\n const preventKeyUpAndKeyDownHandlerForSpecificComponents = (readOnlyView: boolean) => {\n const preventSubmissionKeys = (e: KeyboardEvent) => {\n const isEnterOrSpace = (e: KeyboardEvent) => e.key === \"Enter\" || e.key === \" \";\n if (isEnterOrSpace(e)) {\n e.stopPropagation();\n e.preventDefault();\n }\n };\n\n if (\n readOnlyView &&\n componentsWithKeyEventsToPrevent.includes(\n WrappedComponent.displayName || WrappedComponent.name\n )\n ) {\n const props: Record<string, unknown> = {};\n\n props.onKeyUp = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n props.onKeyDown = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n return props;\n }\n\n return {};\n };\n\n const WithReadOnlyComponent = React.forwardRef(\n (\n props: PropsWithoutRef<PropsWithChildren<P & WithReadOnlyProps>>,\n ref: ForwardedRef<unknown>\n ) => {\n const {\n readOnlyView = false,\n required,\n children,\n helperText,\n type = \"\",\n ...restProps\n } = props;\n\n return (\n <WrappedComponent\n ref={ref}\n {...(restProps as P)}\n data-readonlyview={readOnlyView}\n aria-readonly={isWrapperComponent ? undefined : readOnlyView}\n required={readOnlyView ? false : required}\n {...getConditionalProps(readOnlyView, type, helperText)}\n {...preventKeyUpAndKeyDownHandlerForSpecificComponents(readOnlyView)}\n >\n {children}\n </WrappedComponent>\n );\n }\n );\n\n WithReadOnlyComponent.displayName = `withReadOnly_${getDisplayName(WrappedComponent)}`;\n return WithReadOnlyComponent;\n};\n"],"names":["componentsWithKeyEventsToPrevent","getConditionalProps","readOnlyView","type","helperText","props","style","pointerEvents","userSelect","WrappedComponent","options","isWrapperComponent","preventKeyUpAndKeyDownHandlerForSpecificComponents","preventSubmissionKeys","e","key","stopPropagation","preventDefault","includes","displayName","name","WithReadOnlyComponent","React","forwardRef","ref","required","children","restProps","createElement","getDisplayName"],"mappings":"yGAyBMA,EAA6C,CAAC,mBAM9CC,EAAsB,CAACC,EAAuBC,EAAcC,KAChE,MAAMC,EAAiC,CAAA,EAevC,OAbIH,GACFG,EAAMC,MAAQ,CAAEC,cAAe,OAAQC,WAAY,QAC/CJ,IACFC,EAAMD,WAAa,KAEZA,IACTC,EAAMD,WAAaA,GAGjBD,IACFE,EAAMF,KAAOA,GAGRE,wBAOmB,CAC1BI,EACAC,KAEA,MAAMC,mBAAEA,GAAuBD,GAAW,CAAA,EAEpCE,EAAsDV,IAC1D,MAAMW,EAAyBC,IACN,IAACA,GAA+B,WAA/BA,EACLA,GAD4BC,KAA6B,MAAVD,EAAEC,OAElED,EAAEE,kBACFF,EAAEG,mBAIN,GACEf,GACAF,EAAiCkB,SAC/BT,EAAiBU,aAAeV,EAAiBW,MAEnD,CAWA,MAVuC,CAEvCf,QAAiBS,IACfD,EAAsBC,IAGxBT,UAAmBS,IACjBD,EAAsBC,IAI1B,CAEA,MAAO,CAAA,GAGHO,EAAwBC,EAAMC,WAClC,CACElB,EACAmB,KAEA,MAAMtB,aACJA,GAAe,EAAAuB,SACfA,EAAAC,SACAA,EAAAtB,WACAA,EAAAD,KACAA,EAAO,MACJwB,GACDtB,EAEJ,OACEiB,EAAAM,cAACnB,EAAA,CACCe,SACKG,EACL,oBAAmBzB,EACnB,gBAAeS,OAAqB,EAAYT,EAChDuB,UAAUvB,GAAuBuB,KAC7BxB,EAAoBC,EAAcC,EAAMC,MACxCQ,EAAmDV,IAEtDwB,KAOT,OADAL,EAAsBF,YAAc,gBA9Ff,CAAKV,GACnBA,EAAiBU,aAAeV,EAAiBW,MAAQ,YA6FZS,CAAepB,KAC5DY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withReadOnly.es.js","sources":["../../src/components/withReadOnly.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, { ComponentType, ForwardedRef, PropsWithChildren } from \"react\";\n\nexport interface WithReadOnlyProps {\n readOnlyView?: boolean;\n required?: boolean;\n helperText?: string;\n type?: string;\n}\n\nconst componentsWithKeyEventsToPrevent: string[] = [\"CheckboxWrapper\"];\n\nconst getDisplayName = <P,>(WrappedComponent: ComponentType<P>) => {\n return WrappedComponent.displayName ?? WrappedComponent.name ?? \"Component\";\n};\n\nconst getConditionalProps = (readOnlyView: boolean, type: string, helperText?: string) => {\n const props: Record<string, unknown> = {};\n\n if (readOnlyView) {\n props.style = { pointerEvents: \"none\", userSelect: \"text\" };\n if (helperText) {\n props.helperText = \"\";\n }\n } else if (helperText) {\n props.helperText = helperText;\n }\n\n if (type) {\n props.type = type;\n }\n\n return props;\n};\n\ntype WithReadOnlyOptions = {\n isWrapperComponent: boolean;\n};\n\nexport const withReadOnly = <P extends object>(\n WrappedComponent: ComponentType<P>,\n options?: WithReadOnlyOptions\n) => {\n const { isWrapperComponent } = options || {};\n\n const preventKeyUpAndKeyDownHandlerForSpecificComponents = (readOnlyView: boolean) => {\n const preventSubmissionKeys = (e: KeyboardEvent) => {\n const isEnterOrSpace = (e: KeyboardEvent) => e.key === \"Enter\" || e.key === \" \";\n if (isEnterOrSpace(e)) {\n e.stopPropagation();\n e.preventDefault();\n }\n };\n\n if (\n readOnlyView &&\n componentsWithKeyEventsToPrevent.includes(\n WrappedComponent.displayName || WrappedComponent.name\n )\n ) {\n const props: Record<string, unknown> = {};\n\n props.onKeyUp = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n props.onKeyDown = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n return props;\n }\n\n return {};\n };\n\n const WithReadOnlyComponent = React.forwardRef(\n (props: PropsWithChildren<P & WithReadOnlyProps
|
|
1
|
+
{"version":3,"file":"withReadOnly.es.js","sources":["../../src/components/withReadOnly.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, { ComponentType, ForwardedRef, PropsWithChildren, PropsWithoutRef } from \"react\";\n\nexport interface WithReadOnlyProps {\n readOnlyView?: boolean;\n required?: boolean;\n helperText?: string;\n type?: string;\n}\n\nconst componentsWithKeyEventsToPrevent: string[] = [\"CheckboxWrapper\"];\n\nconst getDisplayName = <P,>(WrappedComponent: ComponentType<P>) => {\n return WrappedComponent.displayName ?? WrappedComponent.name ?? \"Component\";\n};\n\nconst getConditionalProps = (readOnlyView: boolean, type: string, helperText?: string) => {\n const props: Record<string, unknown> = {};\n\n if (readOnlyView) {\n props.style = { pointerEvents: \"none\", userSelect: \"text\" };\n if (helperText) {\n props.helperText = \"\";\n }\n } else if (helperText) {\n props.helperText = helperText;\n }\n\n if (type) {\n props.type = type;\n }\n\n return props;\n};\n\ntype WithReadOnlyOptions = {\n isWrapperComponent: boolean;\n};\n\nexport const withReadOnly = <P extends object>(\n WrappedComponent: ComponentType<P>,\n options?: WithReadOnlyOptions\n) => {\n const { isWrapperComponent } = options || {};\n\n const preventKeyUpAndKeyDownHandlerForSpecificComponents = (readOnlyView: boolean) => {\n const preventSubmissionKeys = (e: KeyboardEvent) => {\n const isEnterOrSpace = (e: KeyboardEvent) => e.key === \"Enter\" || e.key === \" \";\n if (isEnterOrSpace(e)) {\n e.stopPropagation();\n e.preventDefault();\n }\n };\n\n if (\n readOnlyView &&\n componentsWithKeyEventsToPrevent.includes(\n WrappedComponent.displayName || WrappedComponent.name\n )\n ) {\n const props: Record<string, unknown> = {};\n\n props.onKeyUp = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n props.onKeyDown = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n return props;\n }\n\n return {};\n };\n\n const WithReadOnlyComponent = React.forwardRef(\n (\n props: PropsWithoutRef<PropsWithChildren<P & WithReadOnlyProps>>,\n ref: ForwardedRef<unknown>\n ) => {\n const {\n readOnlyView = false,\n required,\n children,\n helperText,\n type = \"\",\n ...restProps\n } = props;\n\n return (\n <WrappedComponent\n ref={ref}\n {...(restProps as P)}\n data-readonlyview={readOnlyView}\n aria-readonly={isWrapperComponent ? undefined : readOnlyView}\n required={readOnlyView ? false : required}\n {...getConditionalProps(readOnlyView, type, helperText)}\n {...preventKeyUpAndKeyDownHandlerForSpecificComponents(readOnlyView)}\n >\n {children}\n </WrappedComponent>\n );\n }\n );\n\n WithReadOnlyComponent.displayName = `withReadOnly_${getDisplayName(WrappedComponent)}`;\n return WithReadOnlyComponent;\n};\n"],"names":["e"],"mappings":";AAyBA,MAAM,mCAA6C,CAAC,iBAAiB;AAErE,MAAM,iBAAiB,CAAK,qBAAuC;AACjE,SAAO,iBAAiB,eAAe,iBAAiB,QAAQ;AAClE;AAEA,MAAM,sBAAsB,CAAC,cAAuB,MAAc,eAAwB;AACxF,QAAM,QAAiC,CAAA;AAEvC,MAAI,cAAc;AAChB,UAAM,QAAQ,EAAE,eAAe,QAAQ,YAAY,OAAA;AACnD,QAAI,YAAY;AACd,YAAM,aAAa;AAAA,IACrB;AAAA,EACF,WAAW,YAAY;AACrB,UAAM,aAAa;AAAA,EACrB;AAEA,MAAI,MAAM;AACR,UAAM,OAAO;AAAA,EACf;AAEA,SAAO;AACT;AAMO,MAAM,eAAe,CAC1B,kBACA,YACG;AACH,QAAM,EAAE,uBAAuB,WAAW,CAAA;AAE1C,QAAM,qDAAqD,CAAC,iBAA0B;AACpF,UAAM,wBAAwB,CAAC,MAAqB;AAClD,YAAM,iBAAiB,CAACA,OAAqBA,GAAE,QAAQ,WAAWA,GAAE,QAAQ;AAC5E,UAAI,eAAe,CAAC,GAAG;AACrB,UAAE,gBAAA;AACF,UAAE,eAAA;AAAA,MACJ;AAAA,IACF;AAEA,QACE,gBACA,iCAAiC;AAAA,MAC/B,iBAAiB,eAAe,iBAAiB;AAAA,IAAA,GAEnD;AACA,YAAM,QAAiC,CAAA;AAEvC,YAAM,UAAU,CAAC,MAAqB;AACpC,8BAAsB,CAAC;AAAA,MACzB;AAEA,YAAM,YAAY,CAAC,MAAqB;AACtC,8BAAsB,CAAC;AAAA,MACzB;AAEA,aAAO;AAAA,IACT;AAEA,WAAO,CAAA;AAAA,EACT;AAEA,QAAM,wBAAwB,MAAM;AAAA,IAClC,CACE,OACA,QACG;AACH,YAAM;AAAA,QACJ,eAAe;AAAA,QACf;AAAA,QACA;AAAA,QACA;AAAA,QACA,OAAO;AAAA,QACP,GAAG;AAAA,MAAA,IACD;AAEJ,aACE,sBAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC;AAAA,UACC,GAAI;AAAA,UACL,qBAAmB;AAAA,UACnB,iBAAe,qBAAqB,SAAY;AAAA,UAChD,UAAU,eAAe,QAAQ;AAAA,UAChC,GAAG,oBAAoB,cAAc,MAAM,UAAU;AAAA,UACrD,GAAG,mDAAmD,YAAY;AAAA,QAAA;AAAA,QAElE;AAAA,MAAA;AAAA,IAGP;AAAA,EAAA;AAGF,wBAAsB,cAAc,gBAAgB,eAAe,gBAAgB,CAAC;AACpF,SAAO;AACT;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");exports.useAnimation=t=>{const n=e.useRef(null),[r,a]=e.useState(!1),i=()=>r&&t();return e.useEffect((
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");exports.useAnimation=t=>{const n=e.useRef(null),[r,a]=e.useState(!1),i=()=>r&&t();return e.useEffect(()=>{var e;return null==(e=n.current)||e.addEventListener("animationend",i),()=>{var e;return null==(e=n.current)?void 0:e.removeEventListener("animationend",i)}},[r]),{ref:n,animationStarted:r,startAnimation:()=>a(!0)}};
|
|
2
2
|
//# sourceMappingURL=useAnimation.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAnimation.cjs.js","sources":["../../src/hooks/useAnimation.ts"],"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 { useEffect, useRef, useState } from \"react\";\n\nexport const useAnimation = <RefElement extends HTMLElement>(callback: () => void) => {\n const animatedObjectRef = useRef<RefElement>(null);\n /** We need to store flag that says us when to call the callback */\n const [animationStarted, setAnimationStarted] = useState(false);\n\n const onAnimationEnd = () => animationStarted && callback();\n\n useEffect(() => {\n animatedObjectRef.current?.addEventListener(\"animationend\", onAnimationEnd);\n return () => animatedObjectRef.current?.removeEventListener(\"animationend\", onAnimationEnd);\n }, [animationStarted]);\n\n return {\n ref: animatedObjectRef,\n animationStarted,\n startAnimation: () => setAnimationStarted(true)\n };\n};\n"],"names":["callback","animatedObjectRef","useRef","animationStarted","setAnimationStarted","useState","onAnimationEnd","useEffect","_a","current","addEventListener","removeEventListener","ref","startAnimation"],"mappings":"8HAkB6DA,
|
|
1
|
+
{"version":3,"file":"useAnimation.cjs.js","sources":["../../src/hooks/useAnimation.ts"],"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 { useEffect, useRef, useState } from \"react\";\n\nexport const useAnimation = <RefElement extends HTMLElement>(callback: () => void) => {\n const animatedObjectRef = useRef<RefElement>(null);\n /** We need to store flag that says us when to call the callback */\n const [animationStarted, setAnimationStarted] = useState(false);\n\n const onAnimationEnd = () => animationStarted && callback();\n\n useEffect(() => {\n animatedObjectRef.current?.addEventListener(\"animationend\", onAnimationEnd);\n return () => animatedObjectRef.current?.removeEventListener(\"animationend\", onAnimationEnd);\n }, [animationStarted]);\n\n return {\n ref: animatedObjectRef,\n animationStarted,\n startAnimation: () => setAnimationStarted(true)\n };\n};\n"],"names":["callback","animatedObjectRef","useRef","animationStarted","setAnimationStarted","useState","onAnimationEnd","useEffect","_a","current","addEventListener","removeEventListener","ref","startAnimation"],"mappings":"8HAkB6DA,IAC3D,MAAMC,EAAoBC,EAAAA,OAAmB,OAEtCC,EAAkBC,GAAuBC,EAAAA,UAAS,GAEnDC,EAAiB,IAAMH,GAAoBH,IAOjD,OALAO,EAAAA,UAAU,WAER,OADA,OAAAC,EAAAP,EAAkBQ,UAAlBD,EAA2BE,iBAAiB,eAAgBJ,GACrD,WAAM,OAAA,OAAAE,EAAAP,EAAkBQ,cAAlB,EAAAD,EAA2BG,oBAAoB,eAAgBL,KAC3E,CAACH,IAEG,CACLS,IAAKX,EACLE,mBACAU,eAAgB,IAAMT,GAAoB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAnimation.es.js","sources":["../../src/hooks/useAnimation.ts"],"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 { useEffect, useRef, useState } from \"react\";\n\nexport const useAnimation = <RefElement extends HTMLElement>(callback: () => void) => {\n const animatedObjectRef = useRef<RefElement>(null);\n /** We need to store flag that says us when to call the callback */\n const [animationStarted, setAnimationStarted] = useState(false);\n\n const onAnimationEnd = () => animationStarted && callback();\n\n useEffect(() => {\n animatedObjectRef.current?.addEventListener(\"animationend\", onAnimationEnd);\n return () => animatedObjectRef.current?.removeEventListener(\"animationend\", onAnimationEnd);\n }, [animationStarted]);\n\n return {\n ref: animatedObjectRef,\n animationStarted,\n startAnimation: () => setAnimationStarted(true)\n };\n};\n"],"names":["_a"],"mappings":";
|
|
1
|
+
{"version":3,"file":"useAnimation.es.js","sources":["../../src/hooks/useAnimation.ts"],"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 { useEffect, useRef, useState } from \"react\";\n\nexport const useAnimation = <RefElement extends HTMLElement>(callback: () => void) => {\n const animatedObjectRef = useRef<RefElement>(null);\n /** We need to store flag that says us when to call the callback */\n const [animationStarted, setAnimationStarted] = useState(false);\n\n const onAnimationEnd = () => animationStarted && callback();\n\n useEffect(() => {\n animatedObjectRef.current?.addEventListener(\"animationend\", onAnimationEnd);\n return () => animatedObjectRef.current?.removeEventListener(\"animationend\", onAnimationEnd);\n }, [animationStarted]);\n\n return {\n ref: animatedObjectRef,\n animationStarted,\n startAnimation: () => setAnimationStarted(true)\n };\n};\n"],"names":["_a"],"mappings":";AAkBO,MAAM,eAAe,CAAiC,aAAyB;AACpF,QAAM,oBAAoB,OAAmB,IAAI;AAEjD,QAAM,CAAC,kBAAkB,mBAAmB,IAAI,SAAS,KAAK;AAE9D,QAAM,iBAAiB,MAAM,oBAAoB,SAAA;AAEjD,YAAU,MAAM;;AACd,4BAAkB,YAAlB,mBAA2B,iBAAiB,gBAAgB;AAC5D,WAAO,MAAA;;AAAM,cAAAA,MAAA,kBAAkB,YAAlB,gBAAAA,IAA2B,oBAAoB,gBAAgB;AAAA;AAAA,EAC9E,GAAG,CAAC,gBAAgB,CAAC;AAErB,SAAO;AAAA,IACL,KAAK;AAAA,IACL;AAAA,IACA,gBAAgB,MAAM,oBAAoB,IAAI;AAAA,EAAA;AAElD;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");exports.useClickOutside=(t,i,n)=>{function o(e){const n=null==t?void 0:t.current;n&&(n.contains(e.target)||i(e))}e.useEffect((
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");exports.useClickOutside=(t,i,n)=>{function o(e){const n=null==t?void 0:t.current;n&&(n.contains(e.target)||i(e))}e.useEffect(()=>(setTimeout(()=>window.addEventListener("click",o)),()=>{setTimeout(()=>window.removeEventListener("click",o))}),n)};
|
|
2
2
|
//# sourceMappingURL=useClickOutside.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useClickOutside.cjs.js","sources":["../../src/hooks/useClickOutside.ts"],"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 { DependencyList, useEffect } from \"react\";\n\nexport const useClickOutside = (\n myElementRef: React.RefObject<HTMLElement>,\n onClickOutside: (event: MouseEvent) => void,\n dependencies?: DependencyList\n) => {\n function eventListener(event: MouseEvent) {\n const myElement = myElementRef?.current;\n if (!myElement) {\n return;\n }\n const clickedInsideMyElement = myElement.contains(event.target as Node);\n\n if (!clickedInsideMyElement) {\n onClickOutside(event);\n }\n }\n useEffect(() => {\n setTimeout(() => window.addEventListener(\"click\", eventListener));\n\n return () => {\n setTimeout(() => window.removeEventListener(\"click\", eventListener));\n };\n }, dependencies);\n};\n"],"names":["myElementRef","onClickOutside","dependencies","eventListener","event","myElement","current","contains","target","useEffect","setTimeout","window","addEventListener","removeEventListener"],"mappings":"iIAkB+B,CAC7BA,EACAC,EACAC,KAEA,SAASC,EAAcC,GACrB,MAAMC,
|
|
1
|
+
{"version":3,"file":"useClickOutside.cjs.js","sources":["../../src/hooks/useClickOutside.ts"],"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 { DependencyList, useEffect } from \"react\";\n\nexport const useClickOutside = (\n myElementRef: React.RefObject<HTMLElement>,\n onClickOutside: (event: MouseEvent) => void,\n dependencies?: DependencyList\n) => {\n function eventListener(event: MouseEvent) {\n const myElement = myElementRef?.current;\n if (!myElement) {\n return;\n }\n const clickedInsideMyElement = myElement.contains(event.target as Node);\n\n if (!clickedInsideMyElement) {\n onClickOutside(event);\n }\n }\n useEffect(() => {\n setTimeout(() => window.addEventListener(\"click\", eventListener));\n\n return () => {\n setTimeout(() => window.removeEventListener(\"click\", eventListener));\n };\n }, dependencies);\n};\n"],"names":["myElementRef","onClickOutside","dependencies","eventListener","event","myElement","current","contains","target","useEffect","setTimeout","window","addEventListener","removeEventListener"],"mappings":"iIAkB+B,CAC7BA,EACAC,EACAC,KAEA,SAASC,EAAcC,GACrB,MAAMC,EAAY,MAAAL,OAAA,EAAAA,EAAcM,QAC3BD,IAG0BA,EAAUE,SAASH,EAAMI,SAGtDP,EAAeG,GAEnB,CACAK,EAAAA,UAAU,KACRC,WAAW,IAAMC,OAAOC,iBAAiB,QAAST,IAE3C,KACLO,WAAW,IAAMC,OAAOE,oBAAoB,QAASV,MAEtDD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useClickOutside.es.js","sources":["../../src/hooks/useClickOutside.ts"],"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 { DependencyList, useEffect } from \"react\";\n\nexport const useClickOutside = (\n myElementRef: React.RefObject<HTMLElement>,\n onClickOutside: (event: MouseEvent) => void,\n dependencies?: DependencyList\n) => {\n function eventListener(event: MouseEvent) {\n const myElement = myElementRef?.current;\n if (!myElement) {\n return;\n }\n const clickedInsideMyElement = myElement.contains(event.target as Node);\n\n if (!clickedInsideMyElement) {\n onClickOutside(event);\n }\n }\n useEffect(() => {\n setTimeout(() => window.addEventListener(\"click\", eventListener));\n\n return () => {\n setTimeout(() => window.removeEventListener(\"click\", eventListener));\n };\n }, dependencies);\n};\n"],"names":[],"mappings":";AAkBO,MAAM,kBAAkB,CAC7B,cACA,gBACA,iBACG;AACH,WAAS,cAAc,OAAmB;AACxC,UAAM,YAAY,6CAAc;AAChC,QAAI,CAAC,WAAW;AACd;AAAA,
|
|
1
|
+
{"version":3,"file":"useClickOutside.es.js","sources":["../../src/hooks/useClickOutside.ts"],"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 { DependencyList, useEffect } from \"react\";\n\nexport const useClickOutside = (\n myElementRef: React.RefObject<HTMLElement>,\n onClickOutside: (event: MouseEvent) => void,\n dependencies?: DependencyList\n) => {\n function eventListener(event: MouseEvent) {\n const myElement = myElementRef?.current;\n if (!myElement) {\n return;\n }\n const clickedInsideMyElement = myElement.contains(event.target as Node);\n\n if (!clickedInsideMyElement) {\n onClickOutside(event);\n }\n }\n useEffect(() => {\n setTimeout(() => window.addEventListener(\"click\", eventListener));\n\n return () => {\n setTimeout(() => window.removeEventListener(\"click\", eventListener));\n };\n }, dependencies);\n};\n"],"names":[],"mappings":";AAkBO,MAAM,kBAAkB,CAC7B,cACA,gBACA,iBACG;AACH,WAAS,cAAc,OAAmB;AACxC,UAAM,YAAY,6CAAc;AAChC,QAAI,CAAC,WAAW;AACd;AAAA,IACF;AACA,UAAM,yBAAyB,UAAU,SAAS,MAAM,MAAc;AAEtE,QAAI,CAAC,wBAAwB;AAC3B,qBAAe,KAAK;AAAA,IACtB;AAAA,EACF;AACA,YAAU,MAAM;AACd,eAAW,MAAM,OAAO,iBAAiB,SAAS,aAAa,CAAC;AAEhE,WAAO,MAAM;AACX,iBAAW,MAAM,OAAO,oBAAoB,SAAS,aAAa,CAAC;AAAA,IACrE;AAAA,EACF,GAAG,YAAY;AACjB;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");exports.useDebouncedCallback=(r,t,u)=>{const c=e.useRef(),o=u?[r,t,...u]:[r,t];return e.useCallback((
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");exports.useDebouncedCallback=(r,t,u)=>{const c=e.useRef(),o=u?[r,t,...u]:[r,t];return e.useCallback((...e)=>{null!=c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{r(...e)},t)},o)};
|
|
2
2
|
//# sourceMappingURL=useDebouncedCallback.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDebouncedCallback.cjs.js","sources":["../../src/hooks/useDebouncedCallback.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 from \"react\";\n\
|
|
1
|
+
{"version":3,"file":"useDebouncedCallback.cjs.js","sources":["../../src/hooks/useDebouncedCallback.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 from \"react\";\n\nexport const useDebouncedCallback = <T extends unknown[]>(\n callback: (...args: T) => void,\n delay: number,\n dependencies?: React.DependencyList\n) => {\n const timeout = React.useRef<ReturnType<typeof setTimeout>>();\n const comboDeps = dependencies ? [callback, delay, ...dependencies] : [callback, delay];\n\n return React.useCallback((...args: T) => {\n if (timeout.current != null) {\n clearTimeout(timeout.current);\n }\n\n timeout.current = setTimeout(() => {\n callback(...args);\n }, delay);\n }, comboDeps);\n};\n"],"names":["callback","delay","dependencies","timeout","React","useRef","comboDeps","useCallback","args","current","clearTimeout","setTimeout"],"mappings":"sIAkBoC,CAClCA,EACAC,EACAC,KAEA,MAAMC,EAAUC,EAAMC,SAChBC,EAAYJ,EAAe,CAACF,EAAUC,KAAUC,GAAgB,CAACF,EAAUC,GAEjF,OAAOG,EAAMG,YAAY,IAAIC,KACJ,MAAnBL,EAAQM,SACVC,aAAaP,EAAQM,SAGvBN,EAAQM,QAAUE,WAAW,KAC3BX,KAAYQ,IACXP,IACFK"}
|