@tedi-design-system/react 17.0.0-rc.1 → 17.0.0-rc.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/_virtual/index.cjs10.js +1 -1
- package/_virtual/index.cjs11.js +1 -1
- package/_virtual/index.cjs12.js +1 -1
- package/_virtual/index.cjs13.js +1 -1
- package/_virtual/index.cjs5.js +1 -1
- package/_virtual/index.cjs6.js +1 -1
- package/_virtual/index.cjs7.js +1 -1
- package/_virtual/index.cjs8.js +1 -1
- package/_virtual/index.cjs9.js +1 -1
- package/_virtual/index.es10.js +1 -1
- package/_virtual/index.es11.js +1 -1
- package/_virtual/index.es12.js +1 -1
- package/_virtual/index.es13.js +4 -2
- package/_virtual/index.es5.js +2 -4
- package/_virtual/index.es6.js +1 -1
- package/_virtual/index.es7.js +1 -1
- package/_virtual/index.es8.js +1 -1
- package/_virtual/index.es9.js +1 -1
- package/bundle-stats.html +1 -1
- package/community.cjs.js +1 -1
- package/community.es.js +140 -140
- package/external/@dnd-kit/core/dist/core.esm.es.js +9 -9
- package/external/@dnd-kit/sortable/dist/sortable.esm.es.js +12 -12
- package/external/@dnd-kit/utilities/dist/utilities.esm.es.js +1 -1
- package/external/@floating-ui/core/dist/floating-ui.core.cjs.js +1 -1
- package/external/@floating-ui/core/dist/floating-ui.core.es.js +229 -225
- package/external/@floating-ui/dom/dist/floating-ui.dom.cjs.js +1 -1
- package/external/@floating-ui/dom/dist/floating-ui.dom.es.js +187 -186
- package/external/@floating-ui/react/dist/floating-ui.react.es.js +1 -1
- package/external/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs.js +1 -1
- package/external/@floating-ui/react-dom/dist/floating-ui.react-dom.es.js +107 -91
- package/external/@floating-ui/utils/dist/floating-ui.utils.cjs.js +1 -1
- package/external/@floating-ui/utils/dist/floating-ui.utils.dom.cjs.js +1 -1
- package/external/@floating-ui/utils/dist/floating-ui.utils.dom.es.js +97 -97
- package/external/@floating-ui/utils/dist/floating-ui.utils.es.js +66 -68
- package/external/@mui/material/Button/buttonClasses.cjs.js +1 -1
- package/external/@mui/material/Button/buttonClasses.es.js +4 -4
- package/external/@mui/material/ButtonBase/buttonBaseClasses.cjs.js +1 -1
- package/external/@mui/material/ButtonBase/buttonBaseClasses.es.js +4 -4
- package/external/@mui/material/Fade/Fade.es.js +1 -1
- package/external/@mui/material/Grow/Grow.es.js +1 -1
- package/external/@mui/material/IconButton/iconButtonClasses.cjs.js +1 -1
- package/external/@mui/material/IconButton/iconButtonClasses.es.js +4 -4
- package/external/@mui/material/InputAdornment/inputAdornmentClasses.cjs.js +1 -1
- package/external/@mui/material/InputAdornment/inputAdornmentClasses.es.js +4 -4
- package/external/@mui/material/Popper/BasePopper.cjs.js +1 -1
- package/external/@mui/material/Popper/BasePopper.es.js +1 -1
- package/external/@mui/material/Tab/tabClasses.cjs.js +1 -1
- package/external/@mui/material/Tab/tabClasses.es.js +4 -4
- package/external/@mui/material/TabScrollButton/tabScrollButtonClasses.cjs.js +1 -1
- package/external/@mui/material/TabScrollButton/tabScrollButtonClasses.es.js +4 -4
- package/external/@mui/material/Tabs/Tabs.cjs.js +2 -2
- package/external/@mui/material/Tabs/Tabs.es.js +7 -7
- package/external/@mui/styled-engine/index.cjs.js +2 -2
- package/external/@mui/styled-engine/index.es.js +4 -4
- package/external/@mui/system/colorManipulator.cjs.js +1 -1
- package/external/@mui/system/colorManipulator.es.js +2 -2
- package/external/@mui/system/createStyled.cjs.js +1 -1
- package/external/@mui/system/createStyled.es.js +6 -6
- package/external/@mui/system/useThemeWithoutDefault.cjs.js +1 -1
- package/external/@mui/system/useThemeWithoutDefault.es.js +1 -1
- package/external/@mui/x-date-pickers/CalendarPicker/CalendarPicker.cjs.js +1 -1
- package/external/@mui/x-date-pickers/CalendarPicker/CalendarPicker.es.js +1 -1
- package/external/@mui/x-date-pickers/CalendarPicker/DayPicker.cjs.js +1 -1
- package/external/@mui/x-date-pickers/CalendarPicker/DayPicker.es.js +1 -1
- package/external/@mui/x-date-pickers/CalendarPicker/PickersCalendarHeader.cjs.js +1 -1
- package/external/@mui/x-date-pickers/CalendarPicker/PickersCalendarHeader.es.js +1 -1
- package/external/@mui/x-date-pickers/CalendarPicker/PickersFadeTransitionGroup.cjs.js +1 -1
- package/external/@mui/x-date-pickers/CalendarPicker/PickersFadeTransitionGroup.es.js +6 -6
- package/external/@mui/x-date-pickers/CalendarPicker/PickersSlideTransition.cjs.js +1 -1
- package/external/@mui/x-date-pickers/CalendarPicker/PickersSlideTransition.es.js +6 -6
- package/external/@mui/x-date-pickers/ClockPicker/Clock.cjs.js +1 -1
- package/external/@mui/x-date-pickers/ClockPicker/Clock.es.js +1 -1
- package/external/@mui/x-date-pickers/ClockPicker/ClockNumber.cjs.js +1 -1
- package/external/@mui/x-date-pickers/ClockPicker/ClockNumber.es.js +4 -4
- package/external/@mui/x-date-pickers/ClockPicker/ClockPicker.cjs.js +1 -1
- package/external/@mui/x-date-pickers/ClockPicker/ClockPicker.es.js +1 -1
- package/external/@mui/x-date-pickers/ClockPicker/ClockPointer.cjs.js +1 -1
- package/external/@mui/x-date-pickers/ClockPicker/ClockPointer.es.js +1 -1
- package/external/@mui/x-date-pickers/ClockPicker/clockNumberClasses.cjs.js +1 -1
- package/external/@mui/x-date-pickers/ClockPicker/clockNumberClasses.es.js +4 -4
- package/external/@mui/x-date-pickers/DatePicker/DatePickerToolbar.cjs.js +1 -1
- package/external/@mui/x-date-pickers/DatePicker/DatePickerToolbar.es.js +1 -1
- package/external/@mui/x-date-pickers/DateTimePicker/DateTimePickerTabs.cjs.js +1 -1
- package/external/@mui/x-date-pickers/DateTimePicker/DateTimePickerTabs.es.js +4 -4
- package/external/@mui/x-date-pickers/DateTimePicker/DateTimePickerToolbar.cjs.js +1 -1
- package/external/@mui/x-date-pickers/DateTimePicker/DateTimePickerToolbar.es.js +1 -1
- package/external/@mui/x-date-pickers/MonthPicker/MonthPicker.cjs.js +1 -1
- package/external/@mui/x-date-pickers/MonthPicker/MonthPicker.es.js +6 -6
- package/external/@mui/x-date-pickers/MonthPicker/PickersMonth.cjs.js +1 -1
- package/external/@mui/x-date-pickers/MonthPicker/PickersMonth.es.js +4 -4
- package/external/@mui/x-date-pickers/MonthPicker/pickersMonthClasses.cjs.js +1 -1
- package/external/@mui/x-date-pickers/MonthPicker/pickersMonthClasses.es.js +4 -4
- package/external/@mui/x-date-pickers/PickersDay/PickersDay.cjs.js +1 -1
- package/external/@mui/x-date-pickers/PickersDay/PickersDay.es.js +1 -1
- package/external/@mui/x-date-pickers/TimePicker/TimePickerToolbar.cjs.js +1 -1
- package/external/@mui/x-date-pickers/TimePicker/TimePickerToolbar.es.js +1 -1
- package/external/@mui/x-date-pickers/TimePicker/timePickerToolbarClasses.cjs.js +1 -1
- package/external/@mui/x-date-pickers/TimePicker/timePickerToolbarClasses.es.js +4 -4
- package/external/@mui/x-date-pickers/YearPicker/PickersYear.cjs.js +1 -1
- package/external/@mui/x-date-pickers/YearPicker/PickersYear.es.js +1 -1
- package/external/@mui/x-date-pickers/YearPicker/YearPicker.cjs.js +1 -1
- package/external/@mui/x-date-pickers/YearPicker/YearPicker.es.js +6 -6
- package/external/@mui/x-date-pickers/YearPicker/pickersYearClasses.cjs.js +1 -1
- package/external/@mui/x-date-pickers/YearPicker/pickersYearClasses.es.js +4 -4
- package/external/@mui/x-date-pickers/internals/components/CalendarOrClockPicker/CalendarOrClockPicker.cjs.js +1 -1
- package/external/@mui/x-date-pickers/internals/components/CalendarOrClockPicker/CalendarOrClockPicker.es.js +1 -1
- package/external/@mui/x-date-pickers/internals/components/PickersArrowSwitcher.cjs.js +1 -1
- package/external/@mui/x-date-pickers/internals/components/PickersArrowSwitcher.es.js +1 -1
- package/external/@mui/x-date-pickers/internals/components/PickersPopper.cjs.js +1 -1
- package/external/@mui/x-date-pickers/internals/components/PickersPopper.es.js +1 -1
- package/external/@mui/x-date-pickers/internals/components/PickersToolbar.cjs.js +1 -1
- package/external/@mui/x-date-pickers/internals/components/PickersToolbar.es.js +1 -1
- package/external/@mui/x-date-pickers/internals/components/PickersToolbarButton.cjs.js +1 -1
- package/external/@mui/x-date-pickers/internals/components/PickersToolbarButton.es.js +4 -4
- package/external/@mui/x-date-pickers/internals/components/PickersToolbarText.cjs.js +1 -1
- package/external/@mui/x-date-pickers/internals/components/PickersToolbarText.es.js +4 -4
- package/external/@mui/x-date-pickers/internals/components/pickersToolbarTextClasses.cjs.js +1 -1
- package/external/@mui/x-date-pickers/internals/components/pickersToolbarTextClasses.es.js +4 -4
- package/external/draft-js/lib/AtomicBlockUtils.cjs.js +1 -1
- package/external/draft-js/lib/AtomicBlockUtils.es.js +13 -74
- package/external/draft-js/lib/CompositeDraftDecorator.cjs.js +1 -1
- package/external/draft-js/lib/CompositeDraftDecorator.es.js +3 -39
- package/external/draft-js/lib/Draft.cjs.js +1 -1
- package/external/draft-js/lib/Draft.es.js +29 -51
- package/external/draft-js/lib/moveBlockInContentState.cjs.js +1 -1
- package/external/draft-js/lib/moveBlockInContentState.es.js +6 -90
- package/external/formik/dist/formik.esm.cjs.js +2 -2
- package/external/formik/dist/formik.esm.es.js +95 -94
- package/external/hoist-non-react-statics/external/react-is/cjs/react-is.development.cjs.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/cjs/react-is.development.es.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/cjs/react-is.production.min.cjs.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/cjs/react-is.production.min.es.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/index.cjs.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/index.es.js +1 -1
- package/external/lodash-es/_baseUnset.cjs.js +1 -1
- package/external/lodash-es/_baseUnset.es.js +12 -19
- package/external/prop-types/external/react-is/cjs/react-is.development.cjs.js +1 -1
- package/external/prop-types/external/react-is/cjs/react-is.development.es.js +1 -1
- package/external/prop-types/external/react-is/cjs/react-is.production.min.cjs.js +1 -1
- package/external/prop-types/external/react-is/cjs/react-is.production.min.es.js +1 -1
- package/external/prop-types/external/react-is/index.cjs.js +1 -1
- package/external/prop-types/external/react-is/index.es.js +1 -1
- package/external/property-expr/index.cjs.js +1 -1
- package/external/property-expr/index.es.js +37 -48
- package/external/react-dropzone/dist/es/index.cjs.js +3 -3
- package/external/react-dropzone/dist/es/index.es.js +279 -247
- package/external/react-dropzone/dist/es/utils/index.cjs.js +3 -3
- package/external/react-dropzone/dist/es/utils/index.es.js +104 -100
- package/external/react-toastify/dist/index.es.js +1 -1
- package/external/tabbable/dist/index.esm.cjs.js +2 -2
- package/external/tabbable/dist/index.esm.es.js +84 -67
- package/external/tiny-case/index.cjs.js +1 -1
- package/external/tiny-case/index.es.js +6 -12
- package/external/toposort/index.cjs.js +1 -1
- package/external/toposort/index.es.js +1 -1
- package/external/what-input/dist/what-input.cjs.js +2 -2
- package/external/what-input/dist/what-input.es.js +20 -20
- package/index.css +1 -1
- package/package.json +2 -2
- package/src/community/components/accordion/accordion-item/accordion-item.cjs.js +1 -1
- package/src/community/components/accordion/accordion-item/accordion-item.es.js +16 -17
- package/src/community/components/accordion/accordion-item-content/accordion-item-content.cjs.js +1 -1
- package/src/community/components/accordion/accordion-item-content/accordion-item-content.es.js +8 -9
- package/src/community/components/accordion/accordion-item-header/accordion-item-header.cjs.js +1 -1
- package/src/community/components/accordion/accordion-item-header/accordion-item-header.es.js +1 -2
- package/src/community/components/accordion/accordion.cjs.js +1 -1
- package/src/community/components/accordion/accordion.es.js +3 -4
- package/src/community/components/card/card-content/card-content.cjs.js +1 -1
- package/src/community/components/card/card-content/card-content.es.js +4 -4
- package/src/community/components/card/card-header/card-header.cjs.js +1 -1
- package/src/community/components/card/card-header/card-header.es.js +4 -5
- package/src/community/components/card/card-notification/card-notification.cjs.js +1 -1
- package/src/community/components/card/card-notification/card-notification.es.js +6 -7
- package/src/community/components/dropdown/dropdown.cjs.js +1 -1
- package/src/community/components/dropdown/dropdown.es.js +6 -6
- package/src/community/components/feedback/feedback.cjs.js +1 -1
- package/src/community/components/feedback/feedback.es.js +7 -8
- package/src/community/components/form/choice-group/choice-group.cjs.js +1 -1
- package/src/community/components/form/choice-group/choice-group.es.js +10 -11
- package/src/community/components/form/file-upload/file-upload.cjs.js +1 -1
- package/src/community/components/form/file-upload/file-upload.es.js +12 -13
- package/src/community/components/form/hidden-field/hidden-field.cjs.js +1 -1
- package/src/community/components/form/hidden-field/hidden-field.es.js +1 -2
- package/src/community/components/form/pickers/calendar/calendar.cjs.js +1 -1
- package/src/community/components/form/pickers/calendar/calendar.es.js +1 -2
- package/src/community/components/form/pickers/datepicker/datepicker.cjs.js +1 -1
- package/src/community/components/form/pickers/datepicker/datepicker.es.js +1 -2
- package/src/community/components/form/pickers/datetimepicker/datetimepicker.cjs.js +1 -1
- package/src/community/components/form/pickers/datetimepicker/datetimepicker.es.js +1 -2
- package/src/community/components/form/pickers/timepicker/timepicker.cjs.js +1 -1
- package/src/community/components/form/pickers/timepicker/timepicker.es.js +12 -13
- package/src/community/components/form/select/select.cjs.js +1 -1
- package/src/community/components/form/select/select.es.js +1 -1
- package/src/community/components/form/text-editor/text-editor.cjs.js +1 -1
- package/src/community/components/form/text-editor/text-editor.es.js +1 -2
- package/src/community/components/layout/breadcrumbs/breadcrumbs.cjs.js +1 -1
- package/src/community/components/layout/breadcrumbs/breadcrumbs.es.js +1 -1
- package/src/community/components/layout/footer/footer.cjs.js +1 -1
- package/src/community/components/layout/footer/footer.es.js +14 -15
- package/src/community/components/layout/header/components/header-language/header-language.cjs.js +1 -1
- package/src/community/components/layout/header/components/header-language/header-language.es.js +6 -6
- package/src/community/components/layout/header/components/header-modal/header-modal.cjs.js +1 -1
- package/src/community/components/layout/header/components/header-modal/header-modal.es.js +10 -10
- package/src/community/components/layout/header/components/header-settings/header-settings.cjs.js +1 -1
- package/src/community/components/layout/header/components/header-settings/header-settings.es.js +1 -1
- package/src/community/components/layout/header/header/header.cjs.js +1 -1
- package/src/community/components/layout/header/header/header.es.js +2 -3
- package/src/community/components/layout/layout/layout.cjs.js +1 -1
- package/src/community/components/layout/layout/layout.es.js +6 -7
- package/src/community/components/layout/sidenav/sidenav.cjs.js +1 -1
- package/src/community/components/layout/sidenav/sidenav.es.js +1 -1
- package/src/community/components/layout/sidenav/utility.cjs.js +1 -1
- package/src/community/components/layout/sidenav/utility.es.js +1 -1
- package/src/community/components/map-components/base-map-selection/base-map-selection.cjs.js +1 -1
- package/src/community/components/map-components/base-map-selection/base-map-selection.es.js +11 -12
- package/src/community/components/map-components/button-group/button-group.cjs.js +1 -1
- package/src/community/components/map-components/button-group/button-group.es.js +3 -4
- package/src/community/components/map-components/carousel/carousel.cjs.js +1 -1
- package/src/community/components/map-components/carousel/carousel.es.js +7 -8
- package/src/community/components/map-components/color-and-icon-picker/color-and-icon-picker.cjs.js +1 -1
- package/src/community/components/map-components/color-and-icon-picker/color-and-icon-picker.es.js +20 -21
- package/src/community/components/map-components/comparison/comparison.cjs.js +1 -1
- package/src/community/components/map-components/comparison/comparison.es.js +2 -3
- package/src/community/components/map-components/directions/directions.cjs.js +1 -1
- package/src/community/components/map-components/directions/directions.es.js +1 -2
- package/src/community/components/map-components/edit-actions/editing-actions.cjs.js +1 -1
- package/src/community/components/map-components/edit-actions/editing-actions.es.js +5 -6
- package/src/community/components/map-components/left-panel/left-panel.cjs.js +1 -1
- package/src/community/components/map-components/left-panel/left-panel.es.js +7 -8
- package/src/community/components/map-components/legend/legend.cjs.js +1 -1
- package/src/community/components/map-components/legend/legend.es.js +4 -5
- package/src/community/components/map-components/map-dropdown/map-dropdown.cjs.js +1 -1
- package/src/community/components/map-components/map-dropdown/map-dropdown.es.js +6 -6
- package/src/community/components/map-components/map-info/map-info.cjs.js +1 -1
- package/src/community/components/map-components/map-info/map-info.es.js +5 -6
- package/src/community/components/map-components/map-layer/map-layer.cjs.js +1 -1
- package/src/community/components/map-components/map-layer/map-layer.es.js +28 -29
- package/src/community/components/map-components/map-preview/map-preview.cjs.js +1 -1
- package/src/community/components/map-components/map-preview/map-preview.es.js +9 -10
- package/src/community/components/map-components/right-panel/right-panel.cjs.js +1 -1
- package/src/community/components/map-components/right-panel/right-panel.es.js +24 -25
- package/src/community/components/map-components/scale-bar/scale-bar.cjs.js +1 -1
- package/src/community/components/map-components/scale-bar/scale-bar.es.js +6 -7
- package/src/community/components/map-components/timeline/timeline.cjs.js +1 -1
- package/src/community/components/map-components/timeline/timeline.es.js +17 -18
- package/src/community/components/modal/modal.cjs.js +1 -1
- package/src/community/components/modal/modal.es.js +1 -2
- package/src/community/components/placeholder/placeholder.cjs.js +1 -1
- package/src/community/components/placeholder/placeholder.es.js +1 -1
- package/src/community/components/status/status.cjs.js +1 -1
- package/src/community/components/status/status.es.js +7 -8
- package/src/community/components/stepper/stepper-nav.cjs.js +1 -1
- package/src/community/components/stepper/stepper-nav.es.js +1 -1
- package/src/community/components/stepper/stepper.cjs.js +1 -1
- package/src/community/components/stepper/stepper.es.js +13 -14
- package/src/community/components/table/components/pagination/pagination.cjs.js +1 -1
- package/src/community/components/table/components/pagination/pagination.es.js +1 -1
- package/src/community/components/table/components/table-filter/components/table-date-filter.cjs.js +1 -1
- package/src/community/components/table/components/table-filter/components/table-date-filter.es.js +1 -1
- package/src/community/components/table/components/table-filter/components/table-select-filter.cjs.js +1 -1
- package/src/community/components/table/components/table-filter/components/table-select-filter.es.js +6 -6
- package/src/community/components/table/table.cjs.js +1 -1
- package/src/community/components/table/table.es.js +14 -15
- package/src/community/components/table-of-contents/table-of-contents-items.cjs.js +1 -1
- package/src/community/components/table-of-contents/table-of-contents-items.es.js +3 -3
- package/src/community/components/table-of-contents/table-of-contents.cjs.js +1 -1
- package/src/community/components/table-of-contents/table-of-contents.es.js +12 -13
- package/src/community/components/tabs/tabs/tabs.cjs.js +1 -1
- package/src/community/components/tabs/tabs/tabs.es.js +9 -10
- package/src/community/components/tooltip/tooltip-provider.cjs.js +1 -1
- package/src/community/components/tooltip/tooltip-provider.es.js +19 -20
- package/src/community/components/tooltip/tooltip-trigger.cjs.js +1 -1
- package/src/community/components/tooltip/tooltip-trigger.es.js +4 -5
- package/src/community/components/tooltip/tooltip.cjs.js +1 -1
- package/src/community/components/tooltip/tooltip.es.js +6 -7
- package/src/community/components/vertical-progress/vertical-progress-item.cjs.js +1 -1
- package/src/community/components/vertical-progress/vertical-progress-item.es.js +1 -2
- package/src/community/components/vertical-progress/vertical-progress.cjs.js +1 -1
- package/src/community/components/vertical-progress/vertical-progress.es.js +1 -2
- package/src/community/components/vertical-stepper/vertical-stepper.cjs.js +1 -1
- package/src/community/components/vertical-stepper/vertical-stepper.es.js +4 -5
- package/src/community/helpers/hooks/use-breakpoint-props.cjs.js +1 -1
- package/src/community/helpers/hooks/use-breakpoint-props.es.js +1 -1
- package/src/community/helpers/hooks/use-layout.cjs.js +1 -1
- package/src/community/helpers/hooks/use-layout.es.js +1 -1
- package/src/tedi/components/buttons/button-group/button-group.cjs.js +1 -1
- package/src/tedi/components/buttons/button-group/button-group.es.js +10 -11
- package/src/tedi/components/cards/card/card.cjs.js +1 -1
- package/src/tedi/components/cards/card/card.d.ts +14 -9
- package/src/tedi/components/cards/card/card.es.js +26 -27
- package/src/tedi/components/cards/card/card.module.scss.cjs.js +1 -1
- package/src/tedi/components/cards/card/card.module.scss.es.js +6 -6
- package/src/tedi/components/cards/card/utility.cjs.js +1 -1
- package/src/tedi/components/cards/card/utility.d.ts +17 -0
- package/src/tedi/components/cards/card/utility.es.js +35 -14
- package/src/tedi/components/content/heading-with-icon/heading-with-icon.cjs.js +1 -1
- package/src/tedi/components/content/heading-with-icon/heading-with-icon.es.js +11 -12
- package/src/tedi/components/content/list/list-item.cjs.js +1 -1
- package/src/tedi/components/content/list/list-item.es.js +4 -4
- package/src/tedi/components/content/list/list.cjs.js +1 -1
- package/src/tedi/components/content/list/list.es.js +1 -2
- package/src/tedi/components/content/section/section.cjs.js +1 -1
- package/src/tedi/components/content/section/section.es.js +7 -8
- package/src/tedi/components/content/truncate/truncate.cjs.js +1 -1
- package/src/tedi/components/content/truncate/truncate.es.js +10 -11
- package/src/tedi/components/form/choice-group/choice-group.cjs.js +1 -1
- package/src/tedi/components/form/choice-group/choice-group.es.js +14 -15
- package/src/tedi/components/form/file-dropzone/file-dropzone.cjs.js +1 -1
- package/src/tedi/components/form/file-dropzone/file-dropzone.es.js +18 -19
- package/src/tedi/components/form/file-upload/file-upload.cjs.js +1 -1
- package/src/tedi/components/form/file-upload/file-upload.es.js +12 -13
- package/src/tedi/components/form/number-field/number-field.cjs.js +1 -1
- package/src/tedi/components/form/number-field/number-field.es.js +10 -11
- package/src/tedi/components/form/select/select.cjs.js +1 -1
- package/src/tedi/components/form/select/select.es.js +1 -2
- package/src/tedi/components/form/textarea/textarea.cjs.js +1 -1
- package/src/tedi/components/form/textarea/textarea.es.js +7 -8
- package/src/tedi/components/layout/grid/col.cjs.js +1 -1
- package/src/tedi/components/layout/grid/col.es.js +10 -11
- package/src/tedi/components/layout/grid/row.cjs.js +1 -1
- package/src/tedi/components/layout/grid/row.es.js +12 -13
- package/src/tedi/components/layout/sidenav/components/sidenav-dropdown/sidenav-dropdown.cjs.js +1 -1
- package/src/tedi/components/layout/sidenav/components/sidenav-dropdown/sidenav-dropdown.es.js +6 -6
- package/src/tedi/components/layout/sidenav/sidenav.cjs.js +1 -1
- package/src/tedi/components/layout/sidenav/sidenav.es.js +2 -3
- package/src/tedi/components/layout/vertical-spacing/vertical-spacing.cjs.js +1 -1
- package/src/tedi/components/layout/vertical-spacing/vertical-spacing.es.js +9 -10
- package/src/tedi/components/loaders/skeleton/skeleton.cjs.js +1 -1
- package/src/tedi/components/loaders/skeleton/skeleton.es.js +5 -6
- package/src/tedi/components/loaders/spinner/spinner.cjs.js +1 -1
- package/src/tedi/components/loaders/spinner/spinner.es.js +3 -3
- package/src/tedi/components/misc/affix/affix.cjs.js +1 -1
- package/src/tedi/components/misc/affix/affix.es.js +7 -8
- package/src/tedi/components/misc/ellipsis/ellipsis.cjs.js +1 -1
- package/src/tedi/components/misc/ellipsis/ellipsis.es.js +4 -5
- package/src/tedi/components/misc/scroll-visibility/scroll-visibility.es.js +2 -2
- package/src/tedi/components/misc/stretch-content/stretch-content.cjs.js +1 -1
- package/src/tedi/components/misc/stretch-content/stretch-content.es.js +8 -9
- package/src/tedi/components/navigation/hash-trigger/hash-trigger.es.js +2 -2
- package/src/tedi/components/notifications/alert/alert.cjs.js +1 -1
- package/src/tedi/components/notifications/alert/alert.es.js +4 -4
- package/src/tedi/components/overlays/dropdown/dropdown.cjs.js +1 -1
- package/src/tedi/components/overlays/dropdown/dropdown.es.js +8 -8
- package/src/tedi/components/overlays/overlay/overlay.cjs.js +1 -1
- package/src/tedi/components/overlays/overlay/overlay.es.js +20 -20
- package/src/tedi/helpers/hooks/use-breakpoint-props.cjs.js +1 -1
- package/src/tedi/helpers/hooks/use-breakpoint-props.es.js +1 -1
- package/src/tedi/helpers/hooks/use-is-mounted.cjs.js +1 -1
- package/src/tedi/helpers/hooks/use-is-mounted.es.js +0 -1
- package/src/tedi/providers/accessibility-provider/accessibility-provider.es.js +1 -1
- package/src/tedi/providers/label-provider/label-provider.cjs.js +1 -1
- package/src/tedi/providers/label-provider/label-provider.es.js +7 -8
- package/src/tedi/providers/printing-provider/printing-provider.es.js +3 -3
- package/src/tedi/providers/theme-provider/theme-provider.es.js +5 -5
- package/tedi.cjs.js +1 -1
- package/tedi.es.js +94 -94
- package/_virtual/RawDraftContentState.cjs.js +0 -1
- package/_virtual/RawDraftContentState.es.js +0 -4
- package/external/draft-js/lib/getRangeBoundingClientRect.cjs.js +0 -1
- package/external/draft-js/lib/getRangeBoundingClientRect.es.js +0 -30
- package/external/draft-js/lib/getVisibleSelectionRect.cjs.js +0 -1
- package/external/draft-js/lib/getVisibleSelectionRect.es.js +0 -13
- package/fonts/SpaceGrotesk-Light.woff +0 -0
- package/fonts/SpaceGrotesk-Light.woff2 +0 -0
|
@@ -1,119 +1,119 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { fromEvent as
|
|
4
|
-
import { acceptPropAsAcceptAttr as
|
|
5
|
-
var
|
|
6
|
-
function
|
|
7
|
-
return
|
|
1
|
+
import Ne, { useMemo as P, useRef as k, useReducer as $e, useEffect as B, useCallback as m, forwardRef as Ue, useImperativeHandle as qe, Fragment as Je } from "react";
|
|
2
|
+
import i from "../../../prop-types/index.es.js";
|
|
3
|
+
import { fromEvent as Ye } from "../../../file-selector/dist/es2015/file-selector.es.js";
|
|
4
|
+
import { acceptPropAsAcceptAttr as Qe, pickerOptionsFromAccept as Ve, canUseFileSystemAccessAPI as Xe, onDocumentDragOver as Re, isEvtWithFiles as L, isPropagationStopped as ke, allFilesAccepted as Ze, fileAccepted as er, fileMatchSize as rr, TOO_MANY_FILES_REJECTION as nr, isAbort as tr, isSecurityError as or, isIeOrEdge as ar, composeEventHandlers as y } from "./utils/index.es.js";
|
|
5
|
+
var ir = ["children"], cr = ["open"], ur = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], lr = ["refKey", "onChange", "onClick"];
|
|
6
|
+
function Le(r) {
|
|
7
|
+
return pr(r) || fr(r) || ze(r) || sr();
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function sr() {
|
|
10
10
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
11
11
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
if (typeof Symbol < "u" &&
|
|
13
|
+
function fr(r) {
|
|
14
|
+
if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null) return Array.from(r);
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
if (Array.isArray(
|
|
16
|
+
function pr(r) {
|
|
17
|
+
if (Array.isArray(r)) return fe(r);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
return
|
|
19
|
+
function se(r, n) {
|
|
20
|
+
return Dr(r) || dr(r, n) || ze(r, n) || gr();
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function gr() {
|
|
23
23
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
24
24
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
if (
|
|
28
|
-
if (typeof
|
|
29
|
-
var o = Object.prototype.toString.call(
|
|
30
|
-
if (o === "Object" &&
|
|
31
|
-
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return
|
|
26
|
+
function ze(r, n) {
|
|
27
|
+
if (r) {
|
|
28
|
+
if (typeof r == "string") return fe(r, n);
|
|
29
|
+
var o = Object.prototype.toString.call(r).slice(8, -1);
|
|
30
|
+
if (o === "Object" && r.constructor && (o = r.constructor.name), o === "Map" || o === "Set") return Array.from(r);
|
|
31
|
+
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return fe(r, n);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
(n == null || n >
|
|
36
|
-
for (var o = 0,
|
|
37
|
-
|
|
38
|
-
return
|
|
34
|
+
function fe(r, n) {
|
|
35
|
+
(n == null || n > r.length) && (n = r.length);
|
|
36
|
+
for (var o = 0, a = new Array(n); o < n; o++)
|
|
37
|
+
a[o] = r[o];
|
|
38
|
+
return a;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
var o =
|
|
40
|
+
function dr(r, n) {
|
|
41
|
+
var o = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
42
42
|
if (o != null) {
|
|
43
|
-
var
|
|
43
|
+
var a = [], u = !0, f = !1, h, D;
|
|
44
44
|
try {
|
|
45
|
-
for (o = o.call(
|
|
45
|
+
for (o = o.call(r); !(u = (h = o.next()).done) && (a.push(h.value), !(n && a.length === n)); u = !0)
|
|
46
46
|
;
|
|
47
|
-
} catch (
|
|
48
|
-
|
|
47
|
+
} catch (E) {
|
|
48
|
+
f = !0, D = E;
|
|
49
49
|
} finally {
|
|
50
50
|
try {
|
|
51
|
-
!
|
|
51
|
+
!u && o.return != null && o.return();
|
|
52
52
|
} finally {
|
|
53
|
-
if (
|
|
53
|
+
if (f) throw D;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
return
|
|
56
|
+
return a;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
if (Array.isArray(
|
|
59
|
+
function Dr(r) {
|
|
60
|
+
if (Array.isArray(r)) return r;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
var o = Object.keys(
|
|
62
|
+
function xe(r, n) {
|
|
63
|
+
var o = Object.keys(r);
|
|
64
64
|
if (Object.getOwnPropertySymbols) {
|
|
65
|
-
var
|
|
66
|
-
n && (
|
|
67
|
-
return Object.getOwnPropertyDescriptor(
|
|
68
|
-
})), o.push.apply(o,
|
|
65
|
+
var a = Object.getOwnPropertySymbols(r);
|
|
66
|
+
n && (a = a.filter(function(u) {
|
|
67
|
+
return Object.getOwnPropertyDescriptor(r, u).enumerable;
|
|
68
|
+
})), o.push.apply(o, a);
|
|
69
69
|
}
|
|
70
70
|
return o;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function c(r) {
|
|
73
73
|
for (var n = 1; n < arguments.length; n++) {
|
|
74
74
|
var o = arguments[n] != null ? arguments[n] : {};
|
|
75
|
-
n % 2 ?
|
|
76
|
-
|
|
77
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
78
|
-
Object.defineProperty(
|
|
75
|
+
n % 2 ? xe(Object(o), !0).forEach(function(a) {
|
|
76
|
+
pe(r, a, o[a]);
|
|
77
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(o)) : xe(Object(o)).forEach(function(a) {
|
|
78
|
+
Object.defineProperty(r, a, Object.getOwnPropertyDescriptor(o, a));
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
-
return
|
|
81
|
+
return r;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
return n in
|
|
83
|
+
function pe(r, n, o) {
|
|
84
|
+
return n in r ? Object.defineProperty(r, n, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : r[n] = o, r;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
if (
|
|
88
|
-
var o =
|
|
86
|
+
function W(r, n) {
|
|
87
|
+
if (r == null) return {};
|
|
88
|
+
var o = vr(r, n), a, u;
|
|
89
89
|
if (Object.getOwnPropertySymbols) {
|
|
90
|
-
var
|
|
91
|
-
for (
|
|
92
|
-
|
|
90
|
+
var f = Object.getOwnPropertySymbols(r);
|
|
91
|
+
for (u = 0; u < f.length; u++)
|
|
92
|
+
a = f[u], !(n.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(r, a) && (o[a] = r[a]);
|
|
93
93
|
}
|
|
94
94
|
return o;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
if (
|
|
98
|
-
var o = {},
|
|
99
|
-
for (
|
|
100
|
-
|
|
96
|
+
function vr(r, n) {
|
|
97
|
+
if (r == null) return {};
|
|
98
|
+
var o = {}, a = Object.keys(r), u, f;
|
|
99
|
+
for (f = 0; f < a.length; f++)
|
|
100
|
+
u = a[f], !(n.indexOf(u) >= 0) && (o[u] = r[u]);
|
|
101
101
|
return o;
|
|
102
102
|
}
|
|
103
|
-
var
|
|
104
|
-
var o =
|
|
105
|
-
return
|
|
103
|
+
var de = /* @__PURE__ */ Ue(function(r, n) {
|
|
104
|
+
var o = r.children, a = W(r, ir), u = mr(a), f = u.open, h = W(u, cr);
|
|
105
|
+
return qe(n, function() {
|
|
106
106
|
return {
|
|
107
|
-
open:
|
|
107
|
+
open: f
|
|
108
108
|
};
|
|
109
|
-
}, [
|
|
110
|
-
open:
|
|
109
|
+
}, [f]), /* @__PURE__ */ Ne.createElement(Je, null, o(c(c({}, h), {}, {
|
|
110
|
+
open: f
|
|
111
111
|
})));
|
|
112
112
|
});
|
|
113
|
-
|
|
114
|
-
var
|
|
113
|
+
de.displayName = "Dropzone";
|
|
114
|
+
var Ke = {
|
|
115
115
|
disabled: !1,
|
|
116
|
-
getFilesFromEvent:
|
|
116
|
+
getFilesFromEvent: Ye,
|
|
117
117
|
maxSize: 1 / 0,
|
|
118
118
|
minSize: 0,
|
|
119
119
|
multiple: !0,
|
|
@@ -127,8 +127,8 @@ var ze = {
|
|
|
127
127
|
useFsAccessApi: !1,
|
|
128
128
|
autoFocus: !1
|
|
129
129
|
};
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
de.defaultProps = Ke;
|
|
131
|
+
de.propTypes = {
|
|
132
132
|
/**
|
|
133
133
|
* Render function that exposes the dropzone state and prop getter fns
|
|
134
134
|
*
|
|
@@ -141,10 +141,11 @@ ge.propTypes = {
|
|
|
141
141
|
* @param {boolean} params.isDragActive Active drag is in progress
|
|
142
142
|
* @param {boolean} params.isDragAccept Dragged files are accepted
|
|
143
143
|
* @param {boolean} params.isDragReject Some dragged files are rejected
|
|
144
|
+
* @param {boolean} params.isDragGlobal Files are being dragged anywhere on the document
|
|
144
145
|
* @param {File[]} params.acceptedFiles Accepted files
|
|
145
146
|
* @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
|
|
146
147
|
*/
|
|
147
|
-
children:
|
|
148
|
+
children: i.func,
|
|
148
149
|
/**
|
|
149
150
|
* Set accepted file types.
|
|
150
151
|
* Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
|
|
@@ -152,90 +153,90 @@ ge.propTypes = {
|
|
|
152
153
|
* for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
|
|
153
154
|
* Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
|
|
154
155
|
*/
|
|
155
|
-
accept:
|
|
156
|
+
accept: i.objectOf(i.arrayOf(i.string)),
|
|
156
157
|
/**
|
|
157
158
|
* Allow drag 'n' drop (or selection from the file dialog) of multiple files
|
|
158
159
|
*/
|
|
159
|
-
multiple:
|
|
160
|
+
multiple: i.bool,
|
|
160
161
|
/**
|
|
161
162
|
* If false, allow dropped items to take over the current browser window
|
|
162
163
|
*/
|
|
163
|
-
preventDropOnDocument:
|
|
164
|
+
preventDropOnDocument: i.bool,
|
|
164
165
|
/**
|
|
165
166
|
* If true, disables click to open the native file selection dialog
|
|
166
167
|
*/
|
|
167
|
-
noClick:
|
|
168
|
+
noClick: i.bool,
|
|
168
169
|
/**
|
|
169
170
|
* If true, disables SPACE/ENTER to open the native file selection dialog.
|
|
170
171
|
* Note that it also stops tracking the focus state.
|
|
171
172
|
*/
|
|
172
|
-
noKeyboard:
|
|
173
|
+
noKeyboard: i.bool,
|
|
173
174
|
/**
|
|
174
175
|
* If true, disables drag 'n' drop
|
|
175
176
|
*/
|
|
176
|
-
noDrag:
|
|
177
|
+
noDrag: i.bool,
|
|
177
178
|
/**
|
|
178
179
|
* If true, stops drag event propagation to parents
|
|
179
180
|
*/
|
|
180
|
-
noDragEventsBubbling:
|
|
181
|
+
noDragEventsBubbling: i.bool,
|
|
181
182
|
/**
|
|
182
183
|
* Minimum file size (in bytes)
|
|
183
184
|
*/
|
|
184
|
-
minSize:
|
|
185
|
+
minSize: i.number,
|
|
185
186
|
/**
|
|
186
187
|
* Maximum file size (in bytes)
|
|
187
188
|
*/
|
|
188
|
-
maxSize:
|
|
189
|
+
maxSize: i.number,
|
|
189
190
|
/**
|
|
190
191
|
* Maximum accepted number of files
|
|
191
192
|
* The default value is 0 which means there is no limitation to how many files are accepted.
|
|
192
193
|
*/
|
|
193
|
-
maxFiles:
|
|
194
|
+
maxFiles: i.number,
|
|
194
195
|
/**
|
|
195
196
|
* Enable/disable the dropzone
|
|
196
197
|
*/
|
|
197
|
-
disabled:
|
|
198
|
+
disabled: i.bool,
|
|
198
199
|
/**
|
|
199
200
|
* Use this to provide a custom file aggregator
|
|
200
201
|
*
|
|
201
202
|
* @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
|
|
202
203
|
*/
|
|
203
|
-
getFilesFromEvent:
|
|
204
|
+
getFilesFromEvent: i.func,
|
|
204
205
|
/**
|
|
205
206
|
* Cb for when closing the file dialog with no selection
|
|
206
207
|
*/
|
|
207
|
-
onFileDialogCancel:
|
|
208
|
+
onFileDialogCancel: i.func,
|
|
208
209
|
/**
|
|
209
210
|
* Cb for when opening the file dialog
|
|
210
211
|
*/
|
|
211
|
-
onFileDialogOpen:
|
|
212
|
+
onFileDialogOpen: i.func,
|
|
212
213
|
/**
|
|
213
214
|
* Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
|
|
214
215
|
* to open the file picker instead of using an `<input type="file">` click event.
|
|
215
216
|
*/
|
|
216
|
-
useFsAccessApi:
|
|
217
|
+
useFsAccessApi: i.bool,
|
|
217
218
|
/**
|
|
218
219
|
* Set to true to focus the root element on render
|
|
219
220
|
*/
|
|
220
|
-
autoFocus:
|
|
221
|
+
autoFocus: i.bool,
|
|
221
222
|
/**
|
|
222
223
|
* Cb for when the `dragenter` event occurs.
|
|
223
224
|
*
|
|
224
225
|
* @param {DragEvent} event
|
|
225
226
|
*/
|
|
226
|
-
onDragEnter:
|
|
227
|
+
onDragEnter: i.func,
|
|
227
228
|
/**
|
|
228
229
|
* Cb for when the `dragleave` event occurs
|
|
229
230
|
*
|
|
230
231
|
* @param {DragEvent} event
|
|
231
232
|
*/
|
|
232
|
-
onDragLeave:
|
|
233
|
+
onDragLeave: i.func,
|
|
233
234
|
/**
|
|
234
235
|
* Cb for when the `dragover` event occurs
|
|
235
236
|
*
|
|
236
237
|
* @param {DragEvent} event
|
|
237
238
|
*/
|
|
238
|
-
onDragOver:
|
|
239
|
+
onDragOver: i.func,
|
|
239
240
|
/**
|
|
240
241
|
* Cb for when the `drop` event occurs.
|
|
241
242
|
* Note that this callback is invoked after the `getFilesFromEvent` callback is done.
|
|
@@ -266,7 +267,7 @@ ge.propTypes = {
|
|
|
266
267
|
* @param {FileRejection[]} fileRejections
|
|
267
268
|
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
|
268
269
|
*/
|
|
269
|
-
onDrop:
|
|
270
|
+
onDrop: i.func,
|
|
270
271
|
/**
|
|
271
272
|
* Cb for when the `drop` event occurs.
|
|
272
273
|
* Note that if no files are accepted, this callback is not invoked.
|
|
@@ -274,7 +275,7 @@ ge.propTypes = {
|
|
|
274
275
|
* @param {File[]} files
|
|
275
276
|
* @param {(DragEvent|Event)} event
|
|
276
277
|
*/
|
|
277
|
-
onDropAccepted:
|
|
278
|
+
onDropAccepted: i.func,
|
|
278
279
|
/**
|
|
279
280
|
* Cb for when the `drop` event occurs.
|
|
280
281
|
* Note that if no files are rejected, this callback is not invoked.
|
|
@@ -282,210 +283,238 @@ ge.propTypes = {
|
|
|
282
283
|
* @param {FileRejection[]} fileRejections
|
|
283
284
|
* @param {(DragEvent|Event)} event
|
|
284
285
|
*/
|
|
285
|
-
onDropRejected:
|
|
286
|
+
onDropRejected: i.func,
|
|
286
287
|
/**
|
|
287
288
|
* Cb for when there's some error from any of the promises.
|
|
288
289
|
*
|
|
289
290
|
* @param {Error} error
|
|
290
291
|
*/
|
|
291
|
-
onError:
|
|
292
|
+
onError: i.func,
|
|
292
293
|
/**
|
|
293
294
|
* Custom validation function. It must return null if there's no errors.
|
|
294
295
|
* @param {File} file
|
|
295
296
|
* @returns {FileError|FileError[]|null}
|
|
296
297
|
*/
|
|
297
|
-
validator:
|
|
298
|
+
validator: i.func
|
|
298
299
|
};
|
|
299
|
-
var
|
|
300
|
+
var ge = {
|
|
300
301
|
isFocused: !1,
|
|
301
302
|
isFileDialogActive: !1,
|
|
302
303
|
isDragActive: !1,
|
|
303
304
|
isDragAccept: !1,
|
|
304
305
|
isDragReject: !1,
|
|
306
|
+
isDragGlobal: !1,
|
|
305
307
|
acceptedFiles: [],
|
|
306
308
|
fileRejections: []
|
|
307
309
|
};
|
|
308
|
-
function
|
|
309
|
-
var
|
|
310
|
-
return
|
|
311
|
-
}, [o]), ye =
|
|
312
|
-
return
|
|
313
|
-
}, [o]),
|
|
314
|
-
return typeof
|
|
315
|
-
}, [
|
|
316
|
-
return typeof
|
|
317
|
-
}, [
|
|
318
|
-
!
|
|
310
|
+
function mr() {
|
|
311
|
+
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = c(c({}, Ke), r), o = n.accept, a = n.disabled, u = n.getFilesFromEvent, f = n.maxSize, h = n.minSize, D = n.multiple, E = n.maxFiles, M = n.onDragEnter, N = n.onDragLeave, $ = n.onDragOver, U = n.onDrop, q = n.onDropAccepted, J = n.onDropRejected, Y = n.onFileDialogCancel, Q = n.onFileDialogOpen, De = n.useFsAccessApi, ve = n.autoFocus, V = n.preventDropOnDocument, me = n.noClick, X = n.noKeyboard, be = n.noDrag, A = n.noDragEventsBubbling, Z = n.onError, S = n.validator, R = P(function() {
|
|
312
|
+
return Qe(o);
|
|
313
|
+
}, [o]), ye = P(function() {
|
|
314
|
+
return Ve(o);
|
|
315
|
+
}, [o]), ee = P(function() {
|
|
316
|
+
return typeof Q == "function" ? Q : Ie;
|
|
317
|
+
}, [Q]), x = P(function() {
|
|
318
|
+
return typeof Y == "function" ? Y : Ie;
|
|
319
|
+
}, [Y]), d = k(null), v = k(null), Te = $e(br, ge), he = se(Te, 2), re = he[0], p = he[1], Ge = re.isFocused, Fe = re.isFileDialogActive, I = k(typeof window < "u" && window.isSecureContext && De && Xe()), Ee = function() {
|
|
320
|
+
!I.current && Fe && setTimeout(function() {
|
|
319
321
|
if (v.current) {
|
|
320
322
|
var t = v.current.files;
|
|
321
|
-
t.length || (
|
|
323
|
+
t.length || (p({
|
|
322
324
|
type: "closeDialog"
|
|
323
|
-
}),
|
|
325
|
+
}), x());
|
|
324
326
|
}
|
|
325
327
|
}, 300);
|
|
326
328
|
};
|
|
327
|
-
|
|
328
|
-
return window.addEventListener("focus",
|
|
329
|
-
window.removeEventListener("focus",
|
|
329
|
+
B(function() {
|
|
330
|
+
return window.addEventListener("focus", Ee, !1), function() {
|
|
331
|
+
window.removeEventListener("focus", Ee, !1);
|
|
330
332
|
};
|
|
331
|
-
}, [v,
|
|
332
|
-
var O =
|
|
333
|
-
|
|
333
|
+
}, [v, Fe, x, I]);
|
|
334
|
+
var w = k([]), O = k([]), Ae = function(t) {
|
|
335
|
+
d.current && d.current.contains(t.target) || (t.preventDefault(), w.current = []);
|
|
334
336
|
};
|
|
335
|
-
|
|
336
|
-
return
|
|
337
|
-
|
|
337
|
+
B(function() {
|
|
338
|
+
return V && (document.addEventListener("dragover", Re, !1), document.addEventListener("drop", Ae, !1)), function() {
|
|
339
|
+
V && (document.removeEventListener("dragover", Re), document.removeEventListener("drop", Ae));
|
|
338
340
|
};
|
|
339
|
-
}, [
|
|
340
|
-
|
|
341
|
+
}, [d, V]), B(function() {
|
|
342
|
+
var e = function(b) {
|
|
343
|
+
O.current = [].concat(Le(O.current), [b.target]), L(b) && p({
|
|
344
|
+
isDragGlobal: !0,
|
|
345
|
+
type: "setDragGlobal"
|
|
346
|
+
});
|
|
347
|
+
}, t = function(b) {
|
|
348
|
+
O.current = O.current.filter(function(F) {
|
|
349
|
+
return F !== b.target && F !== null;
|
|
350
|
+
}), !(O.current.length > 0) && p({
|
|
351
|
+
isDragGlobal: !1,
|
|
352
|
+
type: "setDragGlobal"
|
|
353
|
+
});
|
|
354
|
+
}, l = function() {
|
|
355
|
+
O.current = [], p({
|
|
356
|
+
isDragGlobal: !1,
|
|
357
|
+
type: "setDragGlobal"
|
|
358
|
+
});
|
|
359
|
+
}, s = function() {
|
|
360
|
+
O.current = [], p({
|
|
361
|
+
isDragGlobal: !1,
|
|
362
|
+
type: "setDragGlobal"
|
|
363
|
+
});
|
|
364
|
+
};
|
|
365
|
+
return document.addEventListener("dragenter", e, !1), document.addEventListener("dragleave", t, !1), document.addEventListener("dragend", l, !1), document.addEventListener("drop", s, !1), function() {
|
|
366
|
+
document.removeEventListener("dragenter", e), document.removeEventListener("dragleave", t), document.removeEventListener("dragend", l), document.removeEventListener("drop", s);
|
|
341
367
|
};
|
|
342
|
-
}, [
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
}, [
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
368
|
+
}, [d]), B(function() {
|
|
369
|
+
return !a && ve && d.current && d.current.focus(), function() {
|
|
370
|
+
};
|
|
371
|
+
}, [d, ve, a]);
|
|
372
|
+
var _ = m(function(e) {
|
|
373
|
+
Z ? Z(e) : console.error(e);
|
|
374
|
+
}, [Z]), Oe = m(function(e) {
|
|
375
|
+
e.preventDefault(), e.persist(), G(e), w.current = [].concat(Le(w.current), [e.target]), L(e) && Promise.resolve(u(e)).then(function(t) {
|
|
376
|
+
if (!(ke(e) && !A)) {
|
|
377
|
+
var l = t.length, s = l > 0 && Ze({
|
|
349
378
|
files: t,
|
|
350
|
-
accept:
|
|
351
|
-
minSize:
|
|
352
|
-
maxSize:
|
|
379
|
+
accept: R,
|
|
380
|
+
minSize: h,
|
|
381
|
+
maxSize: f,
|
|
353
382
|
multiple: D,
|
|
354
|
-
maxFiles:
|
|
355
|
-
validator:
|
|
356
|
-
}),
|
|
357
|
-
|
|
358
|
-
isDragAccept:
|
|
359
|
-
isDragReject:
|
|
383
|
+
maxFiles: E,
|
|
384
|
+
validator: S
|
|
385
|
+
}), g = l > 0 && !s;
|
|
386
|
+
p({
|
|
387
|
+
isDragAccept: s,
|
|
388
|
+
isDragReject: g,
|
|
360
389
|
isDragActive: !0,
|
|
361
390
|
type: "setDraggedFiles"
|
|
362
|
-
}),
|
|
391
|
+
}), M && M(e);
|
|
363
392
|
}
|
|
364
393
|
}).catch(function(t) {
|
|
365
|
-
return
|
|
394
|
+
return _(t);
|
|
366
395
|
});
|
|
367
|
-
}, [
|
|
368
|
-
|
|
369
|
-
var t =
|
|
370
|
-
if (t &&
|
|
396
|
+
}, [u, M, _, A, R, h, f, D, E, S]), _e = m(function(e) {
|
|
397
|
+
e.preventDefault(), e.persist(), G(e);
|
|
398
|
+
var t = L(e);
|
|
399
|
+
if (t && e.dataTransfer)
|
|
371
400
|
try {
|
|
372
|
-
|
|
401
|
+
e.dataTransfer.dropEffect = "copy";
|
|
373
402
|
} catch {
|
|
374
403
|
}
|
|
375
|
-
return t &&
|
|
376
|
-
}, [
|
|
377
|
-
|
|
378
|
-
var t =
|
|
379
|
-
return
|
|
380
|
-
}), l = t.indexOf(
|
|
381
|
-
l !== -1 && t.splice(l, 1),
|
|
404
|
+
return t && $ && $(e), !1;
|
|
405
|
+
}, [$, A]), we = m(function(e) {
|
|
406
|
+
e.preventDefault(), e.persist(), G(e);
|
|
407
|
+
var t = w.current.filter(function(s) {
|
|
408
|
+
return d.current && d.current.contains(s);
|
|
409
|
+
}), l = t.indexOf(e.target);
|
|
410
|
+
l !== -1 && t.splice(l, 1), w.current = t, !(t.length > 0) && (p({
|
|
382
411
|
type: "setDraggedFiles",
|
|
383
412
|
isDragActive: !1,
|
|
384
413
|
isDragAccept: !1,
|
|
385
414
|
isDragReject: !1
|
|
386
|
-
}),
|
|
387
|
-
}, [
|
|
388
|
-
var l = [],
|
|
389
|
-
|
|
390
|
-
var
|
|
391
|
-
if (
|
|
392
|
-
l.push(
|
|
415
|
+
}), L(e) && N && N(e));
|
|
416
|
+
}, [d, N, A]), z = m(function(e, t) {
|
|
417
|
+
var l = [], s = [];
|
|
418
|
+
e.forEach(function(g) {
|
|
419
|
+
var b = er(g, R), F = se(b, 2), te = F[0], oe = F[1], ae = rr(g, h, f), H = se(ae, 2), ie = H[0], ce = H[1], ue = S ? S(g) : null;
|
|
420
|
+
if (te && ie && !ue)
|
|
421
|
+
l.push(g);
|
|
393
422
|
else {
|
|
394
|
-
var
|
|
395
|
-
|
|
396
|
-
file:
|
|
397
|
-
errors:
|
|
398
|
-
return
|
|
423
|
+
var le = [oe, ce];
|
|
424
|
+
ue && (le = le.concat(ue)), s.push({
|
|
425
|
+
file: g,
|
|
426
|
+
errors: le.filter(function(Me) {
|
|
427
|
+
return Me;
|
|
399
428
|
})
|
|
400
429
|
});
|
|
401
430
|
}
|
|
402
|
-
}), (!D && l.length > 1 || D &&
|
|
403
|
-
|
|
404
|
-
file:
|
|
405
|
-
errors: [
|
|
431
|
+
}), (!D && l.length > 1 || D && E >= 1 && l.length > E) && (l.forEach(function(g) {
|
|
432
|
+
s.push({
|
|
433
|
+
file: g,
|
|
434
|
+
errors: [nr]
|
|
406
435
|
});
|
|
407
|
-
}), l.splice(0)),
|
|
436
|
+
}), l.splice(0)), p({
|
|
408
437
|
acceptedFiles: l,
|
|
409
|
-
fileRejections:
|
|
410
|
-
isDragReject:
|
|
438
|
+
fileRejections: s,
|
|
439
|
+
isDragReject: s.length > 0,
|
|
411
440
|
type: "setFiles"
|
|
412
|
-
}),
|
|
413
|
-
}, [
|
|
414
|
-
|
|
415
|
-
|
|
441
|
+
}), U && U(l, s, t), s.length > 0 && J && J(s, t), l.length > 0 && q && q(l, t);
|
|
442
|
+
}, [p, D, R, h, f, E, U, q, J, S]), K = m(function(e) {
|
|
443
|
+
e.preventDefault(), e.persist(), G(e), w.current = [], L(e) && Promise.resolve(u(e)).then(function(t) {
|
|
444
|
+
ke(e) && !A || z(t, e);
|
|
416
445
|
}).catch(function(t) {
|
|
417
|
-
return
|
|
418
|
-
}),
|
|
446
|
+
return _(t);
|
|
447
|
+
}), p({
|
|
419
448
|
type: "reset"
|
|
420
449
|
});
|
|
421
|
-
}, [
|
|
422
|
-
if (
|
|
423
|
-
|
|
450
|
+
}, [u, z, _, A]), C = m(function() {
|
|
451
|
+
if (I.current) {
|
|
452
|
+
p({
|
|
424
453
|
type: "openDialog"
|
|
425
|
-
}),
|
|
426
|
-
var
|
|
454
|
+
}), ee();
|
|
455
|
+
var e = {
|
|
427
456
|
multiple: D,
|
|
428
457
|
types: ye
|
|
429
458
|
};
|
|
430
|
-
window.showOpenFilePicker(
|
|
431
|
-
return
|
|
459
|
+
window.showOpenFilePicker(e).then(function(t) {
|
|
460
|
+
return u(t);
|
|
432
461
|
}).then(function(t) {
|
|
433
|
-
|
|
462
|
+
z(t, null), p({
|
|
434
463
|
type: "closeDialog"
|
|
435
464
|
});
|
|
436
465
|
}).catch(function(t) {
|
|
437
|
-
|
|
466
|
+
tr(t) ? (x(t), p({
|
|
438
467
|
type: "closeDialog"
|
|
439
|
-
})) :
|
|
468
|
+
})) : or(t) ? (I.current = !1, v.current ? (v.current.value = null, v.current.click()) : _(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : _(t);
|
|
440
469
|
});
|
|
441
470
|
return;
|
|
442
471
|
}
|
|
443
|
-
v.current && (
|
|
472
|
+
v.current && (p({
|
|
444
473
|
type: "openDialog"
|
|
445
|
-
}),
|
|
446
|
-
}, [
|
|
447
|
-
!
|
|
448
|
-
}, [
|
|
449
|
-
|
|
474
|
+
}), ee(), v.current.value = null, v.current.click());
|
|
475
|
+
}, [p, ee, x, De, z, _, ye, D]), Ce = m(function(e) {
|
|
476
|
+
!d.current || !d.current.isEqualNode(e.target) || (e.key === " " || e.key === "Enter" || e.keyCode === 32 || e.keyCode === 13) && (e.preventDefault(), C());
|
|
477
|
+
}, [d, C]), je = m(function() {
|
|
478
|
+
p({
|
|
450
479
|
type: "focus"
|
|
451
480
|
});
|
|
452
|
-
}, []),
|
|
453
|
-
|
|
481
|
+
}, []), Pe = m(function() {
|
|
482
|
+
p({
|
|
454
483
|
type: "blur"
|
|
455
484
|
});
|
|
456
|
-
}, []),
|
|
457
|
-
|
|
458
|
-
}, [
|
|
459
|
-
return
|
|
460
|
-
},
|
|
461
|
-
return
|
|
462
|
-
},
|
|
463
|
-
return
|
|
464
|
-
},
|
|
465
|
-
|
|
466
|
-
},
|
|
485
|
+
}, []), Se = m(function() {
|
|
486
|
+
me || (ar() ? setTimeout(C, 0) : C());
|
|
487
|
+
}, [me, C]), j = function(t) {
|
|
488
|
+
return a ? null : t;
|
|
489
|
+
}, ne = function(t) {
|
|
490
|
+
return X ? null : j(t);
|
|
491
|
+
}, T = function(t) {
|
|
492
|
+
return be ? null : j(t);
|
|
493
|
+
}, G = function(t) {
|
|
494
|
+
A && t.stopPropagation();
|
|
495
|
+
}, He = P(function() {
|
|
467
496
|
return function() {
|
|
468
|
-
var
|
|
469
|
-
return
|
|
470
|
-
onKeyDown:
|
|
471
|
-
onFocus:
|
|
472
|
-
onBlur:
|
|
473
|
-
onClick:
|
|
474
|
-
onDragEnter:
|
|
475
|
-
onDragOver:
|
|
476
|
-
onDragLeave:
|
|
477
|
-
onDrop:
|
|
478
|
-
role: typeof
|
|
479
|
-
}, l,
|
|
497
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.refKey, l = t === void 0 ? "ref" : t, s = e.role, g = e.onKeyDown, b = e.onFocus, F = e.onBlur, te = e.onClick, oe = e.onDragEnter, ae = e.onDragOver, H = e.onDragLeave, ie = e.onDrop, ce = W(e, ur);
|
|
498
|
+
return c(c(pe({
|
|
499
|
+
onKeyDown: ne(y(g, Ce)),
|
|
500
|
+
onFocus: ne(y(b, je)),
|
|
501
|
+
onBlur: ne(y(F, Pe)),
|
|
502
|
+
onClick: j(y(te, Se)),
|
|
503
|
+
onDragEnter: T(y(oe, Oe)),
|
|
504
|
+
onDragOver: T(y(ae, _e)),
|
|
505
|
+
onDragLeave: T(y(H, we)),
|
|
506
|
+
onDrop: T(y(ie, K)),
|
|
507
|
+
role: typeof s == "string" && s !== "" ? s : "presentation"
|
|
508
|
+
}, l, d), !a && !X ? {
|
|
480
509
|
tabIndex: 0
|
|
481
|
-
} : {}),
|
|
510
|
+
} : {}), ce);
|
|
482
511
|
};
|
|
483
|
-
}, [
|
|
484
|
-
|
|
485
|
-
}, []),
|
|
512
|
+
}, [d, Ce, je, Pe, Se, Oe, _e, we, K, X, be, a]), Be = m(function(e) {
|
|
513
|
+
e.stopPropagation();
|
|
514
|
+
}, []), We = P(function() {
|
|
486
515
|
return function() {
|
|
487
|
-
var
|
|
488
|
-
accept:
|
|
516
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.refKey, l = t === void 0 ? "ref" : t, s = e.onChange, g = e.onClick, b = W(e, lr), F = pe({
|
|
517
|
+
accept: R,
|
|
489
518
|
multiple: D,
|
|
490
519
|
type: "file",
|
|
491
520
|
style: {
|
|
@@ -500,61 +529,64 @@ function vr() {
|
|
|
500
529
|
width: "1px",
|
|
501
530
|
whiteSpace: "nowrap"
|
|
502
531
|
},
|
|
503
|
-
onChange:
|
|
504
|
-
onClick:
|
|
532
|
+
onChange: j(y(s, K)),
|
|
533
|
+
onClick: j(y(g, Be)),
|
|
505
534
|
tabIndex: -1
|
|
506
535
|
}, l, v);
|
|
507
|
-
return
|
|
536
|
+
return c(c({}, F), b);
|
|
508
537
|
};
|
|
509
|
-
}, [v, o, D,
|
|
510
|
-
return
|
|
511
|
-
isFocused:
|
|
512
|
-
getRootProps:
|
|
513
|
-
getInputProps:
|
|
514
|
-
rootRef:
|
|
538
|
+
}, [v, o, D, K, a]);
|
|
539
|
+
return c(c({}, re), {}, {
|
|
540
|
+
isFocused: Ge && !a,
|
|
541
|
+
getRootProps: He,
|
|
542
|
+
getInputProps: We,
|
|
543
|
+
rootRef: d,
|
|
515
544
|
inputRef: v,
|
|
516
|
-
open:
|
|
545
|
+
open: j(C)
|
|
517
546
|
});
|
|
518
547
|
}
|
|
519
|
-
function
|
|
548
|
+
function br(r, n) {
|
|
520
549
|
switch (n.type) {
|
|
521
550
|
case "focus":
|
|
522
|
-
return
|
|
551
|
+
return c(c({}, r), {}, {
|
|
523
552
|
isFocused: !0
|
|
524
553
|
});
|
|
525
554
|
case "blur":
|
|
526
|
-
return
|
|
555
|
+
return c(c({}, r), {}, {
|
|
527
556
|
isFocused: !1
|
|
528
557
|
});
|
|
529
558
|
case "openDialog":
|
|
530
|
-
return
|
|
559
|
+
return c(c({}, ge), {}, {
|
|
531
560
|
isFileDialogActive: !0
|
|
532
561
|
});
|
|
533
562
|
case "closeDialog":
|
|
534
|
-
return
|
|
563
|
+
return c(c({}, r), {}, {
|
|
535
564
|
isFileDialogActive: !1
|
|
536
565
|
});
|
|
537
566
|
case "setDraggedFiles":
|
|
538
|
-
return
|
|
567
|
+
return c(c({}, r), {}, {
|
|
539
568
|
isDragActive: n.isDragActive,
|
|
540
569
|
isDragAccept: n.isDragAccept,
|
|
541
570
|
isDragReject: n.isDragReject
|
|
542
571
|
});
|
|
543
572
|
case "setFiles":
|
|
544
|
-
return
|
|
573
|
+
return c(c({}, r), {}, {
|
|
545
574
|
acceptedFiles: n.acceptedFiles,
|
|
546
575
|
fileRejections: n.fileRejections,
|
|
547
576
|
isDragReject: n.isDragReject
|
|
548
577
|
});
|
|
578
|
+
case "setDragGlobal":
|
|
579
|
+
return c(c({}, r), {}, {
|
|
580
|
+
isDragGlobal: n.isDragGlobal
|
|
581
|
+
});
|
|
549
582
|
case "reset":
|
|
550
|
-
return
|
|
583
|
+
return c({}, ge);
|
|
551
584
|
default:
|
|
552
|
-
return
|
|
585
|
+
return r;
|
|
553
586
|
}
|
|
554
587
|
}
|
|
555
|
-
function
|
|
588
|
+
function Ie() {
|
|
556
589
|
}
|
|
557
590
|
export {
|
|
558
|
-
|
|
559
|
-
vr as useDropzone
|
|
591
|
+
mr as useDropzone
|
|
560
592
|
};
|