intergalactic 15.79.0 → 15.81.0-prerelease.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +129 -0
- package/accordion/lib/cjs/Accordion.js +17 -16
- package/accordion/lib/cjs/Accordion.js.map +1 -1
- package/accordion/lib/es6/Accordion.js +17 -16
- package/accordion/lib/es6/Accordion.js.map +1 -1
- package/animation/lib/cjs/Animation.js +11 -11
- package/animation/lib/cjs/Collapse.js +28 -28
- package/animation/lib/cjs/FadeInOut.js +28 -28
- package/animation/lib/cjs/Scale.js +28 -28
- package/animation/lib/cjs/Slide.js +28 -28
- package/animation/lib/cjs/Transform.js +28 -28
- package/animation/lib/es6/Animation.js +11 -11
- package/animation/lib/es6/Collapse.js +28 -28
- package/animation/lib/es6/FadeInOut.js +28 -28
- package/animation/lib/es6/Scale.js +28 -28
- package/animation/lib/es6/Slide.js +28 -28
- package/animation/lib/es6/Transform.js +28 -28
- package/badge/lib/cjs/Badge.js +6 -6
- package/badge/lib/es6/Badge.js +6 -6
- package/base-trigger/lib/cjs/BaseTrigger.js +18 -18
- package/base-trigger/lib/cjs/ButtonTrigger.js +3 -3
- package/base-trigger/lib/cjs/FilterTrigger.js +7 -7
- package/base-trigger/lib/cjs/LinkTrigger.js +12 -12
- package/base-trigger/lib/es6/BaseTrigger.js +18 -18
- package/base-trigger/lib/es6/ButtonTrigger.js +3 -3
- package/base-trigger/lib/es6/FilterTrigger.js +7 -7
- package/base-trigger/lib/es6/LinkTrigger.js +12 -12
- package/breadcrumbs/lib/cjs/Breadcrumbs.js +6 -6
- package/breadcrumbs/lib/es6/Breadcrumbs.js +6 -6
- package/button/lib/cjs/Button.js +26 -26
- package/button/lib/es6/Button.js +26 -26
- package/card/lib/cjs/Card.js +8 -8
- package/card/lib/es6/Card.js +8 -8
- package/carousel/lib/cjs/Carousel.js +19 -19
- package/carousel/lib/es6/Carousel.js +19 -19
- package/checkbox/lib/cjs/Checkbox.js +18 -18
- package/checkbox/lib/es6/Checkbox.js +18 -18
- package/color-picker/lib/cjs/ColorPicker.js +23 -23
- package/color-picker/lib/cjs/PaletteManager.js +23 -23
- package/color-picker/lib/cjs/components/InputColor.js +23 -23
- package/color-picker/lib/es6/ColorPicker.js +23 -23
- package/color-picker/lib/es6/PaletteManager.js +23 -23
- package/color-picker/lib/es6/components/InputColor.js +23 -23
- package/components.json +73 -73
- package/counter/lib/cjs/Counter.js +10 -10
- package/counter/lib/es6/Counter.js +10 -10
- package/d3-chart/Plot.d.ts +2 -2
- package/d3-chart/component/Chart/AbstractChart.type.d.ts +4 -0
- package/d3-chart/index.d.ts +2 -1
- package/d3-chart/lib/cjs/Area.js +11 -11
- package/d3-chart/lib/cjs/Axis.js +14 -14
- package/d3-chart/lib/cjs/Bar.js +10 -10
- package/d3-chart/lib/cjs/Bubble.js +17 -19
- package/d3-chart/lib/cjs/Bubble.js.map +1 -1
- package/d3-chart/lib/cjs/Donut.js +14 -14
- package/d3-chart/lib/cjs/Donut.js.map +1 -1
- package/d3-chart/lib/cjs/Dots.js +8 -8
- package/d3-chart/lib/cjs/HorizontalBar.js +10 -10
- package/d3-chart/lib/cjs/Hover.js +7 -23
- package/d3-chart/lib/cjs/Hover.js.map +1 -1
- package/d3-chart/lib/cjs/Line.js +9 -9
- package/d3-chart/lib/cjs/Plot.js +7 -5
- package/d3-chart/lib/cjs/Plot.js.map +1 -1
- package/d3-chart/lib/cjs/Radar.js +28 -34
- package/d3-chart/lib/cjs/Radar.js.map +1 -1
- package/d3-chart/lib/cjs/RadialTree.js +11 -11
- package/d3-chart/lib/cjs/ReferenceLine.js +9 -9
- package/d3-chart/lib/cjs/ScatterPlot.js +14 -14
- package/d3-chart/lib/cjs/ScatterPlot.js.map +1 -1
- package/d3-chart/lib/cjs/Tooltip.js +56 -31
- package/d3-chart/lib/cjs/Tooltip.js.map +1 -1
- package/d3-chart/lib/cjs/Venn.js +14 -14
- package/d3-chart/lib/cjs/Venn.js.map +1 -1
- package/d3-chart/lib/cjs/a11y/PlotA11yModule.js +2 -2
- package/d3-chart/lib/cjs/a11y/PlotA11yView.js +2 -2
- package/d3-chart/lib/cjs/component/Chart/AbstractChart.js +4 -2
- package/d3-chart/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +17 -17
- package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/d3-chart/lib/cjs/index.js +6 -0
- package/d3-chart/lib/cjs/index.js.map +1 -1
- package/d3-chart/lib/cjs/style/reference-line.shadow.css +1 -1
- package/d3-chart/lib/cjs/types/Plot.d.js.map +1 -1
- package/d3-chart/lib/cjs/types/index.d.js +8 -0
- package/d3-chart/lib/cjs/types/index.d.js.map +1 -1
- package/d3-chart/lib/cjs/utils.js +4 -5
- package/d3-chart/lib/cjs/utils.js.map +1 -1
- package/d3-chart/lib/es6/Area.js +11 -11
- package/d3-chart/lib/es6/Axis.js +14 -14
- package/d3-chart/lib/es6/Bar.js +10 -10
- package/d3-chart/lib/es6/Bubble.js +18 -20
- package/d3-chart/lib/es6/Bubble.js.map +1 -1
- package/d3-chart/lib/es6/Donut.js +15 -15
- package/d3-chart/lib/es6/Donut.js.map +1 -1
- package/d3-chart/lib/es6/Dots.js +8 -8
- package/d3-chart/lib/es6/HorizontalBar.js +10 -10
- package/d3-chart/lib/es6/Hover.js +8 -24
- package/d3-chart/lib/es6/Hover.js.map +1 -1
- package/d3-chart/lib/es6/Line.js +9 -9
- package/d3-chart/lib/es6/Plot.js +7 -5
- package/d3-chart/lib/es6/Plot.js.map +1 -1
- package/d3-chart/lib/es6/Radar.js +29 -35
- package/d3-chart/lib/es6/Radar.js.map +1 -1
- package/d3-chart/lib/es6/RadialTree.js +11 -11
- package/d3-chart/lib/es6/ReferenceLine.js +9 -9
- package/d3-chart/lib/es6/ScatterPlot.js +15 -15
- package/d3-chart/lib/es6/ScatterPlot.js.map +1 -1
- package/d3-chart/lib/es6/Tooltip.js +57 -32
- package/d3-chart/lib/es6/Tooltip.js.map +1 -1
- package/d3-chart/lib/es6/Venn.js +15 -15
- package/d3-chart/lib/es6/Venn.js.map +1 -1
- package/d3-chart/lib/es6/a11y/PlotA11yModule.js +2 -2
- package/d3-chart/lib/es6/a11y/PlotA11yView.js +2 -2
- package/d3-chart/lib/es6/component/Chart/AbstractChart.js +4 -2
- package/d3-chart/lib/es6/component/Chart/AbstractChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +17 -17
- package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/d3-chart/lib/es6/index.js +1 -1
- package/d3-chart/lib/es6/index.js.map +1 -1
- package/d3-chart/lib/es6/style/reference-line.shadow.css +1 -1
- package/d3-chart/lib/es6/types/Plot.d.js.map +1 -1
- package/d3-chart/lib/es6/types/index.d.js +2 -1
- package/d3-chart/lib/es6/types/index.d.js.map +1 -1
- package/d3-chart/lib/es6/utils.js +2 -4
- package/d3-chart/lib/es6/utils.js.map +1 -1
- package/d3-chart/lib/types/Plot.d.ts +2 -2
- package/d3-chart/lib/types/component/Chart/AbstractChart.type.d.ts +4 -0
- package/d3-chart/lib/types/index.d.ts +2 -1
- package/d3-chart/lib/types/utils.d.ts +12 -4
- package/d3-chart/utils.d.ts +12 -4
- package/data-table/lib/cjs/DataTable.js +35 -35
- package/data-table/lib/cjs/Head.js +1 -1
- package/data-table/lib/cjs/Head.js.map +1 -1
- package/data-table/lib/es6/DataTable.js +35 -35
- package/data-table/lib/es6/Head.js +1 -1
- package/data-table/lib/es6/Head.js.map +1 -1
- package/date-picker/lib/cjs/components/Calendar.js +21 -21
- package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js +29 -29
- package/date-picker/lib/cjs/components/InputTrigger.js +29 -29
- package/date-picker/lib/cjs/components/PickerAbstract.js +29 -29
- package/date-picker/lib/cjs/components/RangePickerAbstract.js +29 -29
- package/date-picker/lib/es6/components/Calendar.js +21 -21
- package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js +29 -29
- package/date-picker/lib/es6/components/InputTrigger.js +29 -29
- package/date-picker/lib/es6/components/PickerAbstract.js +29 -29
- package/date-picker/lib/es6/components/RangePickerAbstract.js +29 -29
- package/divider/lib/cjs/Divider.js +9 -9
- package/divider/lib/es6/Divider.js +9 -9
- package/dot/lib/cjs/Dot.js +10 -10
- package/dot/lib/es6/Dot.js +10 -10
- package/drag-and-drop/lib/cjs/DragAndDrop.js +192 -41
- package/drag-and-drop/lib/cjs/DragAndDrop.js.map +1 -1
- package/drag-and-drop/lib/cjs/style/drag-and-drop.shadow.css +73 -28
- package/drag-and-drop/lib/es6/DragAndDrop.js +192 -41
- package/drag-and-drop/lib/es6/DragAndDrop.js.map +1 -1
- package/drag-and-drop/lib/es6/style/drag-and-drop.shadow.css +73 -28
- package/dropdown/lib/cjs/Dropdown.js +2 -2
- package/dropdown/lib/es6/Dropdown.js +2 -2
- package/dropdown-menu/lib/cjs/DropdownMenu.js +19 -19
- package/dropdown-menu/lib/cjs/DropdownMenu.js.map +1 -1
- package/dropdown-menu/lib/cjs/styleScrollArea.js +6 -6
- package/dropdown-menu/lib/es6/DropdownMenu.js +19 -19
- package/dropdown-menu/lib/es6/DropdownMenu.js.map +1 -1
- package/dropdown-menu/lib/es6/styleScrollArea.js +6 -6
- package/ellipsis/lib/cjs/Ellipsis.js +11 -11
- package/ellipsis/lib/cjs/Ellipsis.js.map +1 -1
- package/ellipsis/lib/es6/Ellipsis.js +11 -11
- package/ellipsis/lib/es6/Ellipsis.js.map +1 -1
- package/errors/lib/cjs/Error.js +9 -9
- package/errors/lib/es6/Error.js +9 -9
- package/feature-popover/lib/cjs/FeaturePopover.js +10 -10
- package/feature-popover/lib/es6/FeaturePopover.js +10 -10
- package/feedback-form/lib/cjs/FeedbackForm.js +7 -7
- package/feedback-form/lib/es6/FeedbackForm.js +7 -7
- package/flags/lib/cjs/Flags.js +3 -3
- package/flags/lib/es6/Flags.js +3 -3
- package/flags/lib/sprites/sprite@1x.css +256 -256
- package/flags/lib/sprites/sprite@2x.css +257 -257
- package/flex-box/lib/cjs/Box/useBox.js +3 -3
- package/flex-box/lib/cjs/Flex/useFlex.js +3 -3
- package/flex-box/lib/cjs/invalid-state-box/InvalidStateBox.js +2 -2
- package/flex-box/lib/es6/Box/useBox.js +3 -3
- package/flex-box/lib/es6/Flex/useFlex.js +3 -3
- package/flex-box/lib/es6/invalid-state-box/InvalidStateBox.js +2 -2
- package/format-text/lib/cjs/FormatText.js +5 -5
- package/format-text/lib/es6/FormatText.js +5 -5
- package/fullscreen-modal/lib/cjs/FullscreenModal.js +13 -13
- package/fullscreen-modal/lib/es6/FullscreenModal.js +13 -13
- package/grid/lib/cjs/Grid.js +114 -114
- package/grid/lib/es6/Grid.js +114 -114
- package/icon/color/Confluence/l/index.js +4 -4
- package/icon/color/Confluence/l/index.mjs +4 -4
- package/icon/color/Confluence/m/index.js +4 -4
- package/icon/color/Confluence/m/index.mjs +4 -4
- package/icon/color/MicrosoftOffice/l/index.js +10 -10
- package/icon/color/MicrosoftOffice/l/index.mjs +10 -10
- package/icon/color/MicrosoftOffice/m/index.js +10 -10
- package/icon/color/MicrosoftOffice/m/index.mjs +10 -10
- package/icon/lib/cjs/Icon.js +5 -5
- package/icon/lib/es6/Icon.js +5 -5
- package/icon/pay/Discover/l/index.js +1 -1
- package/icon/pay/Discover/l/index.mjs +1 -1
- package/icon/pay/Discover/m/index.js +1 -1
- package/icon/pay/Discover/m/index.mjs +1 -1
- package/icon/pay/JCB/l/index.js +10 -10
- package/icon/pay/JCB/l/index.mjs +10 -10
- package/icon/pay/JCB/m/index.js +10 -10
- package/icon/pay/JCB/m/index.mjs +10 -10
- package/icon/pay/Visa/l/index.js +2 -2
- package/icon/pay/Visa/l/index.mjs +2 -2
- package/icon/pay/Visa/m/index.js +2 -2
- package/icon/pay/Visa/m/index.mjs +2 -2
- package/illustration/lib/cjs/index.js +1 -1
- package/illustration/lib/es6/index.js +1 -1
- package/inline-edit/lib/cjs/InlineEdit.js +4 -4
- package/inline-edit/lib/es6/InlineEdit.js +4 -4
- package/inline-input/lib/cjs/InlineInput.js +18 -18
- package/inline-input/lib/es6/InlineInput.js +18 -18
- package/input/lib/cjs/Input.js +17 -17
- package/input/lib/es6/Input.js +17 -17
- package/input-mask/lib/cjs/InputMask.js +6 -6
- package/input-mask/lib/es6/InputMask.js +6 -6
- package/input-number/lib/cjs/InputNumber.js +9 -9
- package/input-number/lib/es6/InputNumber.js +9 -9
- package/input-tags/lib/cjs/InputTags.js +12 -12
- package/input-tags/lib/es6/InputTags.js +12 -12
- package/link/lib/cjs/Link.js +16 -14
- package/link/lib/cjs/Link.js.map +1 -1
- package/link/lib/cjs/style/link.shadow.css +1 -1
- package/link/lib/es6/Link.js +16 -14
- package/link/lib/es6/Link.js.map +1 -1
- package/link/lib/es6/style/link.shadow.css +1 -1
- package/mini-chart/lib/cjs/component/score/Donut.js +9 -9
- package/mini-chart/lib/cjs/component/score/Line.js +17 -17
- package/mini-chart/lib/cjs/component/trend/Bar.js +7 -7
- package/mini-chart/lib/cjs/component/trend/Line.js +7 -7
- package/mini-chart/lib/es6/component/score/Donut.js +9 -9
- package/mini-chart/lib/es6/component/score/Line.js +17 -17
- package/mini-chart/lib/es6/component/trend/Bar.js +7 -7
- package/mini-chart/lib/es6/component/trend/Line.js +7 -7
- package/modal/lib/cjs/Modal.js +9 -9
- package/modal/lib/cjs/modal.vo-test.js +11 -14
- package/modal/lib/cjs/modal.vo-test.js.map +1 -1
- package/modal/lib/es6/Modal.js +9 -9
- package/modal/lib/es6/modal.vo-test.js +11 -14
- package/modal/lib/es6/modal.vo-test.js.map +1 -1
- package/notice/lib/cjs/Notice.js +13 -13
- package/notice/lib/es6/Notice.js +13 -13
- package/notice-bubble/lib/cjs/NoticeBubble.js +12 -12
- package/notice-bubble/lib/es6/NoticeBubble.js +12 -12
- package/notice-global/lib/cjs/NoticeGlobal.js +11 -11
- package/notice-global/lib/es6/NoticeGlobal.js +11 -11
- package/package.json +1 -1
- package/pagination/lib/cjs/Pagination.js +10 -10
- package/pagination/lib/es6/Pagination.js +10 -10
- package/pills/lib/cjs/Pills.js +13 -13
- package/pills/lib/es6/Pills.js +13 -13
- package/popper/index.d.ts +8 -0
- package/popper/lib/cjs/Popper.js +31 -10
- package/popper/lib/cjs/Popper.js.map +1 -1
- package/popper/lib/cjs/createPopper.js +2 -1
- package/popper/lib/cjs/createPopper.js.map +1 -1
- package/popper/lib/cjs/index.d.js.map +1 -1
- package/popper/lib/cjs/modifiers/cursorAnchoring.js +60 -0
- package/popper/lib/cjs/modifiers/cursorAnchoring.js.map +1 -0
- package/popper/lib/es6/Popper.js +31 -10
- package/popper/lib/es6/Popper.js.map +1 -1
- package/popper/lib/es6/createPopper.js +2 -1
- package/popper/lib/es6/createPopper.js.map +1 -1
- package/popper/lib/es6/index.d.js.map +1 -1
- package/popper/lib/es6/modifiers/cursorAnchoring.js +52 -0
- package/popper/lib/es6/modifiers/cursorAnchoring.js.map +1 -0
- package/popper/lib/types/index.d.ts +8 -0
- package/product-head/lib/cjs/Info.js +4 -4
- package/product-head/lib/cjs/ProductHead.js +5 -5
- package/product-head/lib/cjs/Title.js +4 -4
- package/product-head/lib/es6/Info.js +4 -4
- package/product-head/lib/es6/ProductHead.js +5 -5
- package/product-head/lib/es6/Title.js +4 -4
- package/progress-bar/lib/cjs/ProgressBar.js +15 -15
- package/progress-bar/lib/es6/ProgressBar.js +15 -15
- package/radio/lib/cjs/Radio.js +16 -16
- package/radio/lib/es6/Radio.js +16 -16
- package/scroll-area/lib/cjs/ScrollArea.js +21 -21
- package/scroll-area/lib/cjs/ScrollBar.js +6 -6
- package/scroll-area/lib/es6/ScrollArea.js +21 -21
- package/scroll-area/lib/es6/ScrollBar.js +6 -6
- package/select/lib/cjs/InputSearch.js +6 -6
- package/select/lib/cjs/Select.js +8 -8
- package/select/lib/es6/InputSearch.js +6 -6
- package/select/lib/es6/Select.js +8 -8
- package/side-panel/lib/cjs/SidePanel.js +15 -15
- package/side-panel/lib/es6/SidePanel.js +15 -15
- package/skeleton/lib/cjs/Charts/Area.js +9 -9
- package/skeleton/lib/cjs/Charts/Bar.js +9 -9
- package/skeleton/lib/cjs/Charts/Bubble.js +9 -9
- package/skeleton/lib/cjs/Charts/Donut.js +9 -9
- package/skeleton/lib/cjs/Charts/Histogram.js +9 -9
- package/skeleton/lib/cjs/Charts/Line.js +9 -9
- package/skeleton/lib/cjs/Charts/RadialTree.js +9 -9
- package/skeleton/lib/cjs/Charts/ScatterPlot.js +9 -9
- package/skeleton/lib/cjs/Charts/Venn.js +9 -9
- package/skeleton/lib/cjs/Skeleton.js +8 -8
- package/skeleton/lib/es6/Charts/Area.js +9 -9
- package/skeleton/lib/es6/Charts/Bar.js +9 -9
- package/skeleton/lib/es6/Charts/Bubble.js +9 -9
- package/skeleton/lib/es6/Charts/Donut.js +9 -9
- package/skeleton/lib/es6/Charts/Histogram.js +9 -9
- package/skeleton/lib/es6/Charts/Line.js +9 -9
- package/skeleton/lib/es6/Charts/RadialTree.js +9 -9
- package/skeleton/lib/es6/Charts/ScatterPlot.js +9 -9
- package/skeleton/lib/es6/Charts/Venn.js +9 -9
- package/skeleton/lib/es6/Skeleton.js +8 -8
- package/slider/lib/cjs/Slider.js +8 -7
- package/slider/lib/cjs/Slider.js.map +1 -1
- package/slider/lib/cjs/style/slider.shadow.css +9 -0
- package/slider/lib/es6/Slider.js +8 -7
- package/slider/lib/es6/Slider.js.map +1 -1
- package/slider/lib/es6/style/slider.shadow.css +9 -0
- package/spin/lib/cjs/Spin.js +13 -13
- package/spin/lib/es6/Spin.js +13 -13
- package/spin-container/lib/cjs/SpinContainer.js +8 -8
- package/spin-container/lib/es6/SpinContainer.js +8 -8
- package/sticky/lib/cjs/Sticky.js +2 -2
- package/sticky/lib/es6/Sticky.js +2 -2
- package/switch/lib/cjs/Switch.js +21 -21
- package/switch/lib/es6/Switch.js +21 -21
- package/tab-line/lib/cjs/TabLine.js +13 -13
- package/tab-line/lib/es6/TabLine.js +13 -13
- package/tab-panel/lib/cjs/TabPanel.js +8 -8
- package/tab-panel/lib/es6/TabPanel.js +8 -8
- package/tag/lib/cjs/Tag.js +20 -20
- package/tag/lib/es6/Tag.js +20 -20
- package/textarea/lib/cjs/Textarea.js +10 -8
- package/textarea/lib/cjs/Textarea.js.map +1 -1
- package/textarea/lib/es6/Textarea.js +10 -8
- package/textarea/lib/es6/Textarea.js.map +1 -1
- package/time-picker/lib/cjs/TimePicker.js +12 -12
- package/time-picker/lib/es6/TimePicker.js +12 -12
- package/tooltip/index.d.ts +13 -2
- package/tooltip/lib/cjs/Tooltip.js +9 -9
- package/tooltip/lib/cjs/index.d.js.map +1 -1
- package/tooltip/lib/es6/Tooltip.js +9 -9
- package/tooltip/lib/es6/index.d.js.map +1 -1
- package/tooltip/lib/types/index.d.ts +13 -2
- package/typography/index.d.ts +4 -1
- package/typography/lib/cjs/Blockquote.js +4 -4
- package/typography/lib/cjs/Hint.js +7 -7
- package/typography/lib/cjs/List.js +5 -5
- package/typography/lib/cjs/Text.js +34 -34
- package/typography/lib/cjs/index.d.js.map +1 -1
- package/typography/lib/es6/Blockquote.js +4 -4
- package/typography/lib/es6/Hint.js +7 -7
- package/typography/lib/es6/List.js +5 -5
- package/typography/lib/es6/Text.js +34 -34
- package/typography/lib/es6/index.d.js.map +1 -1
- package/typography/lib/types/index.d.ts +4 -1
- package/utils/lib/components/invalid-state-pattern/InvalidStatePattern.js +2 -2
- package/utils/lib/components/invalid-state-pattern/InvalidStatePattern.mjs +2 -2
- package/utils/lib/eventEmitter.d.ts +7 -3
- package/utils/lib/eventEmitter.js +28 -36
- package/utils/lib/eventEmitter.js.map +1 -1
- package/utils/lib/eventEmitter.mjs +28 -36
- package/utils/lib/eventEmitter.mjs.map +1 -1
- package/utils/lib/injectStyle.js +1 -1
- package/utils/lib/injectStyle.mjs +1 -1
- package/utils/lib/themes/auto.css +3 -1
- package/utils/lib/themes/default.css +3 -1
- package/utils/lib/themes/default.json +1 -0
- package/utils/lib/themes/light.css +3 -1
- package/utils/lib/themes/light.json +1 -0
- package/widget-empty/lib/cjs/WidgetEmpty.js +8 -6
- package/widget-empty/lib/cjs/WidgetEmpty.js.map +1 -1
- package/widget-empty/lib/es6/WidgetEmpty.js +8 -6
- package/widget-empty/lib/es6/WidgetEmpty.js.map +1 -1
- package/wizard/lib/cjs/Wizard.js +11 -11
- package/wizard/lib/es6/Wizard.js +11 -11
@@ -21,35 +21,35 @@ import { localizedMessages } from '../translations/__intergalactic-dynamic-local
|
|
21
21
|
import includesDate from '../utils/includesDate';
|
22
22
|
import { formatDDMMYY, formatMMYY } from '../utils/formatDate';
|
23
23
|
/*__reshadow-styles__:"../style/date-picker.shadow.css"*/
|
24
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
25
|
-
"__SHeader": "
|
26
|
-
"__STitle": "
|
27
|
-
"__SToday": "
|
28
|
-
"__SPeriod": "
|
29
|
-
"__SButton": "
|
30
|
-
"__SInner": "
|
31
|
-
"__SInputMask": "
|
32
|
-
"_animationsDisabled": "
|
33
|
-
"__SValue": "
|
34
|
-
"__SIndicator": "
|
35
|
-
"__SRangeIndicator": "
|
36
|
-
"_range_value": "
|
37
|
-
"_range_compare": "
|
38
|
-
"_disabled": "
|
39
|
-
"__SHumanizedDate": "
|
40
|
-
"__SMask": "
|
41
|
-
"__SSingleDateInput": "
|
42
|
-
"__SDateRange": "
|
43
|
-
"_noHumanizedDate": "
|
44
|
-
"__SRangeSep": "
|
45
|
-
"_fulfilled": "
|
46
|
-
"__SRangeComparatorHeader": "
|
47
|
-
"__SRangeCalendar": "
|
48
|
-
"__SFooter": "
|
49
|
-
"__SPeriodsList": "
|
50
|
-
"__STooltip": "
|
51
|
-
"__SCompareToggle": "
|
52
|
-
"__SPopper": "
|
24
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPopper_1dycy_gg_{padding:var(--intergalactic-spacing-4x, 16px);outline:0}.___SPopper_1dycy_gg_::-moz-focus-inner{border:0;padding:0}.___SPopper_1dycy_gg_:active,.___SPopper_1dycy_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SPopper_1dycy_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SPopper_1dycy_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SHeader_1dycy_gg_,.___STitle_1dycy_gg_{display:flex;align-items:center}.___STitle_1dycy_gg_{font-size:var(--intergalactic-fs-200, 14px);color:var(--intergalactic-text-primary, #191b23);height:32px;width:100%;justify-content:center}.___SToday_1dycy_gg_{display:flex;margin-top:var(--intergalactic-spacing-3x, 12px);justify-content:center}.___SPeriod_1dycy_gg_{display:flex;flex-direction:column;margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SButton_1dycy_gg_ .___SInner_1dycy_gg_{justify-content:flex-start}.___SInputMask_1dycy_gg_{color:var(--intergalactic-text-primary, #191b23);line-height:normal;padding-right:var(--intergalactic-spacing-2x, 8px);transition:width calc(var(--intergalactic-duration-medium, 300)*1ms) ease,min-width calc(var(--intergalactic-duration-medium, 300)*1ms) ease}.___SInputMask_1dycy_gg_.__animationsDisabled_1dycy_gg_{transition:none}.___SInputMask_1dycy_gg_ .___SValue_1dycy_gg_{letter-spacing:0}.___SIndicator_1dycy_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SRangeIndicator_1dycy_gg_{border-radius:50%;flex-shrink:0}.___SRangeIndicator_1dycy_gg_._range_value_1dycy_gg_{background-color:var(--intergalactic-date-picker-cell-active, #2bb3ff)}.___SRangeIndicator_1dycy_gg_._range_compare_1dycy_gg_{background-color:var(--intergalactic-date-picker-cell-comparison-active, #8649e1)}.___SRangeIndicator_1dycy_gg_.__disabled_1dycy_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3)}.___SHumanizedDate_1dycy_gg_{position:absolute;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.___SMask_1dycy_gg_{letter-spacing:0;white-space:nowrap;overflow:hidden}.___SDateRange_1dycy_gg_ .___SMask_1dycy_gg_,.___SDateRange_1dycy_gg_ .___SValue_1dycy_gg_,.___SSingleDateInput_1dycy_gg_ .___SMask_1dycy_gg_,.___SSingleDateInput_1dycy_gg_ .___SValue_1dycy_gg_{opacity:0}.___SSingleDateInput_1dycy_gg_:focus-within .___SHumanizedDate_1dycy_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_1dycy_gg_:focus-within .___SMask_1dycy_gg_,.___SSingleDateInput_1dycy_gg_:focus-within .___SValue_1dycy_gg_{opacity:1}.___SDateRange_1dycy_gg_:focus-within .___SHumanizedDate_1dycy_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_1dycy_gg_:focus-within .___SMask_1dycy_gg_,.___SDateRange_1dycy_gg_:focus-within .___SValue_1dycy_gg_{opacity:1}.___SInputMask_1dycy_gg_.__noHumanizedDate_1dycy_gg_ .___SMask_1dycy_gg_,.___SInputMask_1dycy_gg_.__noHumanizedDate_1dycy_gg_ .___SValue_1dycy_gg_{opacity:1}.___SDateRange_1dycy_gg_ .___SInputMask_1dycy_gg_:focus-within .___SMask_1dycy_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SDateRange_1dycy_gg_:focus-within .___SRangeSep_1dycy_gg_,.___SRangeSep_1dycy_gg_.__fulfilled_1dycy_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SRangeComparatorHeader_1dycy_gg_{border-bottom:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SRangeCalendar_1dycy_gg_,.___SRangeComparatorHeader_1dycy_gg_{padding:var(--intergalactic-spacing-4x, 16px)}.___SFooter_1dycy_gg_{border-top:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SFooter_1dycy_gg_,.___SPeriodsList_1dycy_gg_{padding:var(--intergalactic-spacing-4x, 16px)}.___STooltip_1dycy_gg_{padding:var(--intergalactic-spacing-3x, 12px)}.___SCompareToggle_1dycy_gg_{white-space:nowrap}@media (prefers-reduced-motion){.___SInputMask_1dycy_gg_{transition:none}}" /*__inner_css_end__*/, "1dycy_gg_") /*__reshadow_css_end__*/, {
|
25
|
+
"__SHeader": "___SHeader_1dycy_gg_",
|
26
|
+
"__STitle": "___STitle_1dycy_gg_",
|
27
|
+
"__SToday": "___SToday_1dycy_gg_",
|
28
|
+
"__SPeriod": "___SPeriod_1dycy_gg_",
|
29
|
+
"__SButton": "___SButton_1dycy_gg_",
|
30
|
+
"__SInner": "___SInner_1dycy_gg_",
|
31
|
+
"__SInputMask": "___SInputMask_1dycy_gg_",
|
32
|
+
"_animationsDisabled": "__animationsDisabled_1dycy_gg_",
|
33
|
+
"__SValue": "___SValue_1dycy_gg_",
|
34
|
+
"__SIndicator": "___SIndicator_1dycy_gg_",
|
35
|
+
"__SRangeIndicator": "___SRangeIndicator_1dycy_gg_",
|
36
|
+
"_range_value": "_range_value_1dycy_gg_",
|
37
|
+
"_range_compare": "_range_compare_1dycy_gg_",
|
38
|
+
"_disabled": "__disabled_1dycy_gg_",
|
39
|
+
"__SHumanizedDate": "___SHumanizedDate_1dycy_gg_",
|
40
|
+
"__SMask": "___SMask_1dycy_gg_",
|
41
|
+
"__SSingleDateInput": "___SSingleDateInput_1dycy_gg_",
|
42
|
+
"__SDateRange": "___SDateRange_1dycy_gg_",
|
43
|
+
"_noHumanizedDate": "__noHumanizedDate_1dycy_gg_",
|
44
|
+
"__SRangeSep": "___SRangeSep_1dycy_gg_",
|
45
|
+
"_fulfilled": "__fulfilled_1dycy_gg_",
|
46
|
+
"__SRangeComparatorHeader": "___SRangeComparatorHeader_1dycy_gg_",
|
47
|
+
"__SRangeCalendar": "___SRangeCalendar_1dycy_gg_",
|
48
|
+
"__SFooter": "___SFooter_1dycy_gg_",
|
49
|
+
"__SPeriodsList": "___SPeriodsList_1dycy_gg_",
|
50
|
+
"__STooltip": "___STooltip_1dycy_gg_",
|
51
|
+
"__SCompareToggle": "___SCompareToggle_1dycy_gg_",
|
52
|
+
"__SPopper": "___SPopper_1dycy_gg_"
|
53
53
|
});
|
54
54
|
var INTERACTION_TAGS = ['INPUT'];
|
55
55
|
var INTERACTION_KEYS = ['ArrowDown', 'Enter', ' '];
|
@@ -16,15 +16,15 @@ var _core = _interopRequireWildcard(require("intergalactic/core"));
|
|
16
16
|
var _react = _interopRequireDefault(require("react"));
|
17
17
|
var _flexBox = require("intergalactic/flex-box");
|
18
18
|
/*__reshadow-styles__:"./style/divider.shadow.css"*/
|
19
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
20
|
-
"__SDivider": "
|
21
|
-
"_use_primary": "
|
22
|
-
"--theme": "--
|
23
|
-
"_theme_default": "
|
24
|
-
"_theme_invert": "
|
25
|
-
"_orientation_horizontal": "
|
26
|
-
"_use_secondary": "
|
27
|
-
"_orientation_vertical": "
|
19
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SDivider_1wi00_gg_{display:block}.___SDivider_1wi00_gg_._use_primary_1wi00_gg_{background-color:var(--theme_1wi00, var(--intergalactic-border-primary, #c4c7cf))}.___SDivider_1wi00_gg_._use_primary_1wi00_gg_.___SDivider_1wi00_gg_._theme_default_1wi00_gg_{background:var(--intergalactic-border-primary, #c4c7cf)}.___SDivider_1wi00_gg_._use_primary_1wi00_gg_.___SDivider_1wi00_gg_._theme_invert_1wi00_gg_{background-color:var(--intergalactic-border-primary-invert, #ffffff);opacity:.2}.___SDivider_1wi00_gg_._orientation_horizontal_1wi00_gg_.___SDivider_1wi00_gg_._use_secondary_1wi00_gg_{background-image:linear-gradient(to right,var(--intergalactic-border-primary, #c4c7cf) 3px,transparent 1px);background-size:5px 1px}.___SDivider_1wi00_gg_._orientation_horizontal_1wi00_gg_.___SDivider_1wi00_gg_._use_secondary_1wi00_gg_.___SDivider_1wi00_gg_._theme_default_1wi00_gg_{background:linear-gradient(to right,var(--intergalactic-border-primary, #c4c7cf) 3px,transparent 1px);background-size:5px 1px}.___SDivider_1wi00_gg_._orientation_horizontal_1wi00_gg_.___SDivider_1wi00_gg_._use_secondary_1wi00_gg_.___SDivider_1wi00_gg_._theme_invert_1wi00_gg_{background-image:linear-gradient(to right,var(--intergalactic-border-primary-invert, #ffffff) 3px,transparent 1px);opacity:.2;background-size:5px 1px}.___SDivider_1wi00_gg_._orientation_vertical_1wi00_gg_.___SDivider_1wi00_gg_._use_secondary_1wi00_gg_,.___SDivider_1wi00_gg_._orientation_vertical_1wi00_gg_.___SDivider_1wi00_gg_._use_secondary_1wi00_gg_.___SDivider_1wi00_gg_._theme_default_1wi00_gg_{background-image:linear-gradient(to bottom,var(--intergalactic-border-primary, #c4c7cf) 3px,transparent 1px);background-size:1px 5px}.___SDivider_1wi00_gg_._orientation_vertical_1wi00_gg_.___SDivider_1wi00_gg_._use_secondary_1wi00_gg_.___SDivider_1wi00_gg_._theme_invert_1wi00_gg_{background-image:linear-gradient(to bottom,var(--intergalactic-border-primary-invert, #ffffff) 3px,transparent 1px);opacity:.2;background-size:1px 5px}.___SDivider_1wi00_gg_._orientation_horizontal_1wi00_gg_{width:100%;height:1px}.___SDivider_1wi00_gg_._orientation_vertical_1wi00_gg_{width:1px;height:auto;min-height:100%;align-self:stretch;flex-shrink:0}" /*__inner_css_end__*/, "1wi00_gg_") /*__reshadow_css_end__*/, {
|
20
|
+
"__SDivider": "___SDivider_1wi00_gg_",
|
21
|
+
"_use_primary": "_use_primary_1wi00_gg_",
|
22
|
+
"--theme": "--theme_1wi00",
|
23
|
+
"_theme_default": "_theme_default_1wi00_gg_",
|
24
|
+
"_theme_invert": "_theme_invert_1wi00_gg_",
|
25
|
+
"_orientation_horizontal": "_orientation_horizontal_1wi00_gg_",
|
26
|
+
"_use_secondary": "_use_secondary_1wi00_gg_",
|
27
|
+
"_orientation_vertical": "_orientation_vertical_1wi00_gg_"
|
28
28
|
});
|
29
29
|
var Divider = /*#__PURE__*/function (_Component) {
|
30
30
|
(0, _inherits2["default"])(Divider, _Component);
|
@@ -10,15 +10,15 @@ import React from 'react';
|
|
10
10
|
import createComponent, { Component, Root, sstyled } from 'intergalactic/core';
|
11
11
|
import { Box } from 'intergalactic/flex-box';
|
12
12
|
/*__reshadow-styles__:"./style/divider.shadow.css"*/
|
13
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
14
|
-
"__SDivider": "
|
15
|
-
"_use_primary": "
|
16
|
-
"--theme": "--
|
17
|
-
"_theme_default": "
|
18
|
-
"_theme_invert": "
|
19
|
-
"_orientation_horizontal": "
|
20
|
-
"_use_secondary": "
|
21
|
-
"_orientation_vertical": "
|
13
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SDivider_1wi00_gg_{display:block}.___SDivider_1wi00_gg_._use_primary_1wi00_gg_{background-color:var(--theme_1wi00, var(--intergalactic-border-primary, #c4c7cf))}.___SDivider_1wi00_gg_._use_primary_1wi00_gg_.___SDivider_1wi00_gg_._theme_default_1wi00_gg_{background:var(--intergalactic-border-primary, #c4c7cf)}.___SDivider_1wi00_gg_._use_primary_1wi00_gg_.___SDivider_1wi00_gg_._theme_invert_1wi00_gg_{background-color:var(--intergalactic-border-primary-invert, #ffffff);opacity:.2}.___SDivider_1wi00_gg_._orientation_horizontal_1wi00_gg_.___SDivider_1wi00_gg_._use_secondary_1wi00_gg_{background-image:linear-gradient(to right,var(--intergalactic-border-primary, #c4c7cf) 3px,transparent 1px);background-size:5px 1px}.___SDivider_1wi00_gg_._orientation_horizontal_1wi00_gg_.___SDivider_1wi00_gg_._use_secondary_1wi00_gg_.___SDivider_1wi00_gg_._theme_default_1wi00_gg_{background:linear-gradient(to right,var(--intergalactic-border-primary, #c4c7cf) 3px,transparent 1px);background-size:5px 1px}.___SDivider_1wi00_gg_._orientation_horizontal_1wi00_gg_.___SDivider_1wi00_gg_._use_secondary_1wi00_gg_.___SDivider_1wi00_gg_._theme_invert_1wi00_gg_{background-image:linear-gradient(to right,var(--intergalactic-border-primary-invert, #ffffff) 3px,transparent 1px);opacity:.2;background-size:5px 1px}.___SDivider_1wi00_gg_._orientation_vertical_1wi00_gg_.___SDivider_1wi00_gg_._use_secondary_1wi00_gg_,.___SDivider_1wi00_gg_._orientation_vertical_1wi00_gg_.___SDivider_1wi00_gg_._use_secondary_1wi00_gg_.___SDivider_1wi00_gg_._theme_default_1wi00_gg_{background-image:linear-gradient(to bottom,var(--intergalactic-border-primary, #c4c7cf) 3px,transparent 1px);background-size:1px 5px}.___SDivider_1wi00_gg_._orientation_vertical_1wi00_gg_.___SDivider_1wi00_gg_._use_secondary_1wi00_gg_.___SDivider_1wi00_gg_._theme_invert_1wi00_gg_{background-image:linear-gradient(to bottom,var(--intergalactic-border-primary-invert, #ffffff) 3px,transparent 1px);opacity:.2;background-size:1px 5px}.___SDivider_1wi00_gg_._orientation_horizontal_1wi00_gg_{width:100%;height:1px}.___SDivider_1wi00_gg_._orientation_vertical_1wi00_gg_{width:1px;height:auto;min-height:100%;align-self:stretch;flex-shrink:0}" /*__inner_css_end__*/, "1wi00_gg_") /*__reshadow_css_end__*/, {
|
14
|
+
"__SDivider": "___SDivider_1wi00_gg_",
|
15
|
+
"_use_primary": "_use_primary_1wi00_gg_",
|
16
|
+
"--theme": "--theme_1wi00",
|
17
|
+
"_theme_default": "_theme_default_1wi00_gg_",
|
18
|
+
"_theme_invert": "_theme_invert_1wi00_gg_",
|
19
|
+
"_orientation_horizontal": "_orientation_horizontal_1wi00_gg_",
|
20
|
+
"_use_secondary": "_use_secondary_1wi00_gg_",
|
21
|
+
"_orientation_vertical": "_orientation_vertical_1wi00_gg_"
|
22
22
|
});
|
23
23
|
var Divider = /*#__PURE__*/function (_Component) {
|
24
24
|
_inherits(Divider, _Component);
|
package/dot/lib/cjs/Dot.js
CHANGED
@@ -24,17 +24,17 @@ var _getOriginChildren = _interopRequireDefault(require("intergalactic/utils/lib
|
|
24
24
|
var _useCssVariable = require("intergalactic/utils/lib/useCssVariable");
|
25
25
|
var _ThemeProvider = require("intergalactic/utils/lib/ThemeProvider");
|
26
26
|
/*__reshadow-styles__:"./style/dot.shadow.css"*/
|
27
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
28
|
-
"__SDot": "
|
29
|
-
"_size_xl": "
|
30
|
-
"_size_l": "
|
31
|
-
"_size_m": "
|
32
|
-
"_up": "
|
33
|
-
"__SA11yAlert": "
|
27
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SDot_1e3g5_gg_{display:inline-flex;align-items:center;justify-content:center;font-size:var(--intergalactic-fs-50, 10px);line-height:normal;background-color:var(--intergalactic-icon-primary-warning, #ff642d);color:var(--intergalactic-text-primary-invert, #ffffff);box-sizing:border-box;z-index:1;border-radius:100%;vertical-align:middle;isolation:isolate}.___SDot_1e3g5_gg_._size_xl_1e3g5_gg_{height:16px;min-width:16px;padding:3px 4px;border-radius:var(--intergalactic-counter-rounded, 12px)}.___SDot_1e3g5_gg_._size_l_1e3g5_gg_{height:12px;min-width:12px;border-radius:100%}.___SDot_1e3g5_gg_._size_m_1e3g5_gg_{height:6px;min-width:6px;border-radius:100%}.___SDot_1e3g5_gg_.__up_1e3g5_gg_{position:absolute;top:0;right:0;margin-top:-3px;margin-right:-3px}.___SA11yAlert_1e3g5_gg_{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}" /*__inner_css_end__*/, "1e3g5_gg_") /*__reshadow_css_end__*/, {
|
28
|
+
"__SDot": "___SDot_1e3g5_gg_",
|
29
|
+
"_size_xl": "_size_xl_1e3g5_gg_",
|
30
|
+
"_size_l": "_size_l_1e3g5_gg_",
|
31
|
+
"_size_m": "_size_m_1e3g5_gg_",
|
32
|
+
"_up": "__up_1e3g5_gg_",
|
33
|
+
"__SA11yAlert": "___SA11yAlert_1e3g5_gg_"
|
34
34
|
});
|
35
|
-
var styleDot = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/"@keyframes
|
36
|
-
"@enter": "
|
37
|
-
"@exit": "
|
35
|
+
var styleDot = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/"@keyframes enter_x6s6d{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes exit_x6s6d{0%{transform:scale(1)}to{transform:scale(0)}}" /*__inner_css_end__*/, "x6s6d_gg_") /*__reshadow_css_end__*/, {
|
36
|
+
"@enter": "enter_x6s6d",
|
37
|
+
"@exit": "exit_x6s6d"
|
38
38
|
});
|
39
39
|
var Dot = /*#__PURE__*/function (_Component) {
|
40
40
|
(0, _inherits2["default"])(Dot, _Component);
|
package/dot/lib/es6/Dot.js
CHANGED
@@ -18,17 +18,17 @@ import getOriginChildren from 'intergalactic/utils/lib/getOriginChildren';
|
|
18
18
|
import { cssVariableEnhance } from 'intergalactic/utils/lib/useCssVariable';
|
19
19
|
import { contextThemeEnhance } from 'intergalactic/utils/lib/ThemeProvider';
|
20
20
|
/*__reshadow-styles__:"./style/dot.shadow.css"*/
|
21
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
22
|
-
"__SDot": "
|
23
|
-
"_size_xl": "
|
24
|
-
"_size_l": "
|
25
|
-
"_size_m": "
|
26
|
-
"_up": "
|
27
|
-
"__SA11yAlert": "
|
21
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SDot_1e3g5_gg_{display:inline-flex;align-items:center;justify-content:center;font-size:var(--intergalactic-fs-50, 10px);line-height:normal;background-color:var(--intergalactic-icon-primary-warning, #ff642d);color:var(--intergalactic-text-primary-invert, #ffffff);box-sizing:border-box;z-index:1;border-radius:100%;vertical-align:middle;isolation:isolate}.___SDot_1e3g5_gg_._size_xl_1e3g5_gg_{height:16px;min-width:16px;padding:3px 4px;border-radius:var(--intergalactic-counter-rounded, 12px)}.___SDot_1e3g5_gg_._size_l_1e3g5_gg_{height:12px;min-width:12px;border-radius:100%}.___SDot_1e3g5_gg_._size_m_1e3g5_gg_{height:6px;min-width:6px;border-radius:100%}.___SDot_1e3g5_gg_.__up_1e3g5_gg_{position:absolute;top:0;right:0;margin-top:-3px;margin-right:-3px}.___SA11yAlert_1e3g5_gg_{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}" /*__inner_css_end__*/, "1e3g5_gg_") /*__reshadow_css_end__*/, {
|
22
|
+
"__SDot": "___SDot_1e3g5_gg_",
|
23
|
+
"_size_xl": "_size_xl_1e3g5_gg_",
|
24
|
+
"_size_l": "_size_l_1e3g5_gg_",
|
25
|
+
"_size_m": "_size_m_1e3g5_gg_",
|
26
|
+
"_up": "__up_1e3g5_gg_",
|
27
|
+
"__SA11yAlert": "___SA11yAlert_1e3g5_gg_"
|
28
28
|
});
|
29
|
-
var styleDot = ( /*__reshadow_css_start__*/sstyled.insert( /*__inner_css_start__*/"@keyframes
|
30
|
-
"@enter": "
|
31
|
-
"@exit": "
|
29
|
+
var styleDot = ( /*__reshadow_css_start__*/sstyled.insert( /*__inner_css_start__*/"@keyframes enter_x6s6d{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes exit_x6s6d{0%{transform:scale(1)}to{transform:scale(0)}}" /*__inner_css_end__*/, "x6s6d_gg_") /*__reshadow_css_end__*/, {
|
30
|
+
"@enter": "enter_x6s6d",
|
31
|
+
"@exit": "exit_x6s6d"
|
32
32
|
});
|
33
33
|
var Dot = /*#__PURE__*/function (_Component) {
|
34
34
|
_inherits(Dot, _Component);
|
@@ -20,19 +20,24 @@ var _flexBox = require("intergalactic/flex-box");
|
|
20
20
|
var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynamic-locales");
|
21
21
|
var _i18nEnhance = _interopRequireDefault(require("intergalactic/utils/lib/enhances/i18nEnhance"));
|
22
22
|
var _useEnhancedEffect = _interopRequireDefault(require("intergalactic/utils/lib/use/useEnhancedEffect"));
|
23
|
+
var _keyboardFocusEnhance = _interopRequireDefault(require("intergalactic/utils/lib/enhances/keyboardFocusEnhance"));
|
23
24
|
/*__reshadow-styles__:"./style/drag-and-drop.shadow.css"*/
|
24
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
25
|
-
"__SDraggable": "
|
26
|
-
"_placement_top": "
|
27
|
-
"_placement_right": "
|
28
|
-
"_placement_left": "
|
29
|
-
"_placement_bottom": "
|
30
|
-
"__SDropZone": "
|
31
|
-
"_dropPreview": "
|
32
|
-
"_dark": "
|
33
|
-
"
|
34
|
-
"
|
35
|
-
"
|
25
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SDraggable_1ff86_gg_.__draggable_1ff86_gg_{position:relative;cursor:grab;-moz-user-select:none;-webkit-user-select:none;user-select:none}.___SDraggable_1ff86_gg_.__draggable_1ff86_gg_::before{content:\"\";position:absolute;display:none;pointer-events:none;background-image:radial-gradient(circle at center,var(--intergalactic-icon-primary-neutral, #6c6e79) 1px,transparent 0);background-size:6px 6px;background-position:2px 2px;background-repeat:repeat repeat}@media (hover:hover){.___SDraggable_1ff86_gg_.__draggable_1ff86_gg_:hover::before{display:block}}.___SDraggable_1ff86_gg_.__draggable_1ff86_gg_.__hideHoverEffect_1ff86_gg_::before{display:none}.___SDraggable_1ff86_gg_._placement_right_1ff86_gg_::before{right:0}.___SDraggable_1ff86_gg_._placement_bottom_1ff86_gg_::before{bottom:0}.___SDraggable_1ff86_gg_._placement_left_1ff86_gg_::before{left:0}.___SDraggable_1ff86_gg_._placement_top_1ff86_gg_::before{top:0;left:0;width:100%;height:16px}.___SDraggable_1ff86_gg_._placement_bottom_1ff86_gg_::before{left:0;width:100%;height:16px}.___SDraggable_1ff86_gg_._placement_left_1ff86_gg_::before,.___SDraggable_1ff86_gg_._placement_right_1ff86_gg_::before{top:0;width:16px;height:100%}.___SDropZone_1ff86_gg_{position:relative}.___SDraggable_1ff86_gg_.__dropPreview_1ff86_gg_,.___SDropZone_1ff86_gg_.__dropPreview_1ff86_gg_{background-color:var(--intergalactic-bg-secondary-neutral, #f4f5f9)}.___SDraggable_1ff86_gg_.__dark_1ff86_gg_.__dropPreview_1ff86_gg_,.___SDropZone_1ff86_gg_.__dark_1ff86_gg_.__dropPreview_1ff86_gg_{background-color:var(--intergalactic-bg-primary-invert-active, #484a54)}.___SDraggable_1ff86_gg_:focus{outline:0}.___SDraggable_1ff86_gg_.__keyboardFocused_1ff86_gg_:focus{box-shadow:none}.___SDraggable_1ff86_gg_.__keyboardFocused_1ff86_gg_:focus:after{position:absolute;display:block;content:\"\";top:3px;right:3px;bottom:3px;left:3px;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));pointer-events:none}.___SDraggable_1ff86_gg_.__keyboardDragging_1ff86_gg_{scale:1.1;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);box-shadow:var(--intergalactic-box-shadow-dnd, 0px 0px 1px 0px rgba(25, 27, 35, 0.16), 0px 12px 40px 0px rgba(25, 27, 35, 0.16))!important}.___SDraggable_1ff86_gg_.__keyboardDragging_1ff86_gg_.__hideHoverEffect_1ff86_gg_::before,.___SDraggable_1ff86_gg_.__keyboardDragging_1ff86_gg_::before{display:block}.___SDraggable_1ff86_gg_.__keyboardDragging_1ff86_gg_.__reversedScaling_1ff86_gg_{scale:.95}.___SDraggable_1ff86_gg_.__animatedScaling_1ff86_gg_{transition:all calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out}.___SA11yHint_1ff86_gg_{position:absolute;margin-top:-1px;height:1px;width:1px;clip:rect(0 0 0 0)}@media (prefers-reduced-motion:reduce){.___SDraggable_1ff86_gg_{transition:none}}" /*__inner_css_end__*/, "1ff86_gg_") /*__reshadow_css_end__*/, {
|
26
|
+
"__SDraggable": "___SDraggable_1ff86_gg_",
|
27
|
+
"_placement_top": "_placement_top_1ff86_gg_",
|
28
|
+
"_placement_right": "_placement_right_1ff86_gg_",
|
29
|
+
"_placement_left": "_placement_left_1ff86_gg_",
|
30
|
+
"_placement_bottom": "_placement_bottom_1ff86_gg_",
|
31
|
+
"__SDropZone": "___SDropZone_1ff86_gg_",
|
32
|
+
"_dropPreview": "__dropPreview_1ff86_gg_",
|
33
|
+
"_dark": "__dark_1ff86_gg_",
|
34
|
+
"_keyboardFocused": "__keyboardFocused_1ff86_gg_",
|
35
|
+
"_keyboardDragging": "__keyboardDragging_1ff86_gg_",
|
36
|
+
"_reversedScaling": "__reversedScaling_1ff86_gg_",
|
37
|
+
"_animatedScaling": "__animatedScaling_1ff86_gg_",
|
38
|
+
"__SA11yHint": "___SA11yHint_1ff86_gg_",
|
39
|
+
"_draggable": "__draggable_1ff86_gg_",
|
40
|
+
"_hideHoverEffect": "__hideHoverEffect_1ff86_gg_"
|
36
41
|
});
|
37
42
|
var noop = function noop() {
|
38
43
|
/* do nothing */
|
@@ -54,10 +59,13 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
54
59
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "state", {
|
55
60
|
items: [],
|
56
61
|
dragging: null,
|
57
|
-
|
62
|
+
dragOver: null,
|
58
63
|
hideHoverEffect: false,
|
59
64
|
// https://stackoverflow.com/questions/67118739/hover-effect-reset-when-hovering-over-other-letters
|
60
|
-
a11yHint: null
|
65
|
+
a11yHint: null,
|
66
|
+
keyboardDraggingIndex: null,
|
67
|
+
animatedScaling: null,
|
68
|
+
reversedScaling: false
|
61
69
|
});
|
62
70
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleItemDragStart", function (index) {
|
63
71
|
var items = _this.state.items;
|
@@ -71,7 +79,7 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
71
79
|
});
|
72
80
|
var itemsCount = zonedItems.length;
|
73
81
|
var itemPosition = zonedItems.findIndex(function (i) {
|
74
|
-
return (i === null || i === void 0 ? void 0 : i.id) === currentItem.id;
|
82
|
+
return (i === null || i === void 0 ? void 0 : i.node) === currentItem.node || (i === null || i === void 0 ? void 0 : i.id) && (i === null || i === void 0 ? void 0 : i.id) === currentItem.id;
|
75
83
|
});
|
76
84
|
var a11yHint = getI18nText(zoneName ? 'grabbedWithZone' : 'grabbed', {
|
77
85
|
itemText: itemText,
|
@@ -95,8 +103,9 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
95
103
|
event.preventDefault();
|
96
104
|
_this.setState({
|
97
105
|
dragging: null,
|
98
|
-
|
99
|
-
|
106
|
+
dragOver: null,
|
107
|
+
reversedScaling: false,
|
108
|
+
keyboardDraggingIndex: null
|
100
109
|
});
|
101
110
|
});
|
102
111
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleItemDragOver", function (event) {
|
@@ -121,7 +130,7 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
121
130
|
});
|
122
131
|
var itemsCount = zonedItems.length;
|
123
132
|
var itemPosition = zonedItems.findIndex(function (i) {
|
124
|
-
return (i === null || i === void 0 ? void 0 : i.id) === currentItem.id;
|
133
|
+
return (i === null || i === void 0 ? void 0 : i.node) === currentItem.node || (i === null || i === void 0 ? void 0 : i.id) && (i === null || i === void 0 ? void 0 : i.id) === currentItem.id;
|
125
134
|
});
|
126
135
|
var i18nKey = !zoneName ? 'grabbing' : currentItem.isDropZone ? 'grabbingJustWithZone' : 'grabbingFullWithZone';
|
127
136
|
var a11yHint = getI18nText(i18nKey, {
|
@@ -131,20 +140,19 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
131
140
|
zoneName: zoneName || ''
|
132
141
|
});
|
133
142
|
if (itemIndex === ((_this$state$dragging = _this.state.dragging) === null || _this$state$dragging === void 0 ? void 0 : _this$state$dragging.index)) _this.setState({
|
134
|
-
|
143
|
+
dragOver: null,
|
135
144
|
a11yHint: a11yHint
|
136
145
|
});else _this.setState({
|
137
|
-
|
146
|
+
dragOver: itemIndex,
|
138
147
|
a11yHint: a11yHint
|
139
148
|
});
|
140
149
|
});
|
141
150
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getSwapPreview", function (index) {
|
142
|
-
var _this$state$items$
|
151
|
+
var _this$state$items$pre;
|
143
152
|
if (!_this.state.dragging) return null;
|
144
|
-
|
145
|
-
if (
|
146
|
-
|
147
|
-
if (_this.state.previewSwap !== null && index === _this.state.dragging.index) return (_this$state$items$_th3 = _this.state.items[_this.state.previewSwap]) === null || _this$state$items$_th3 === void 0 ? void 0 : _this$state$items$_th3.children;
|
153
|
+
var previewIndex = _this.preview[index];
|
154
|
+
if (typeof previewIndex !== 'number') return null;
|
155
|
+
return (_this$state$items$pre = _this.state.items[previewIndex]) === null || _this$state$items$pre === void 0 ? void 0 : _this$state$items$pre.children;
|
148
156
|
});
|
149
157
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleItemDrop", function (index) {
|
150
158
|
var _this$asProps = _this.asProps,
|
@@ -166,7 +174,7 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
166
174
|
});
|
167
175
|
var itemsCount = zonedItems.length;
|
168
176
|
var itemPosition = zonedItems.findIndex(function (i) {
|
169
|
-
return (i === null || i === void 0 ? void 0 : i.id) === currentItem.id;
|
177
|
+
return (i === null || i === void 0 ? void 0 : i.node) === currentItem.node || (i === null || i === void 0 ? void 0 : i.id) && (i === null || i === void 0 ? void 0 : i.id) === currentItem.id;
|
170
178
|
});
|
171
179
|
var i18nKey = !zoneName ? 'dropped' : currentItem.isDropZone ? 'droppedJustWithZone' : 'droppedFullWithZone';
|
172
180
|
var a11yHint = getI18nText(i18nKey, {
|
@@ -178,8 +186,10 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
178
186
|
_this.setState({
|
179
187
|
a11yHint: a11yHint,
|
180
188
|
dragging: null,
|
181
|
-
|
182
|
-
|
189
|
+
dragOver: null,
|
190
|
+
keyboardDraggingIndex: null,
|
191
|
+
hideHoverEffect: true,
|
192
|
+
reversedScaling: false
|
183
193
|
});
|
184
194
|
if (dragging && items[dragging.index]) {
|
185
195
|
var fromNode = items[dragging.index];
|
@@ -209,24 +219,64 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
209
219
|
hideHoverEffect: false
|
210
220
|
});
|
211
221
|
});
|
222
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "updateItemScaling", function () {
|
223
|
+
var _this$state$items$;
|
224
|
+
var firstItemNode = (_this$state$items$ = _this.state.items[0]) === null || _this$state$items$ === void 0 ? void 0 : _this$state$items$.node;
|
225
|
+
if (!firstItemNode) return;
|
226
|
+
if (_this.state.reversedScaling) return;
|
227
|
+
var firstItemRect = firstItemNode.getBoundingClientRect();
|
228
|
+
var reversedScaling = false;
|
229
|
+
var parent = firstItemNode.parentElement;
|
230
|
+
while (parent && parent !== document.body) {
|
231
|
+
var computedStyle = getComputedStyle(parent);
|
232
|
+
var rect = parent.getBoundingClientRect();
|
233
|
+
if (computedStyle.overflow !== 'visible') {
|
234
|
+
if (rect.left >= firstItemRect.left || rect.right <= firstItemRect.right || rect.top >= firstItemRect.top || rect.bottom <= firstItemRect.bottom) {
|
235
|
+
reversedScaling = true;
|
236
|
+
break;
|
237
|
+
}
|
238
|
+
} else {
|
239
|
+
if (rect.left < firstItemRect.left && rect.right > firstItemRect.right && rect.top < firstItemRect.top && rect.bottom > firstItemRect.bottom) {
|
240
|
+
break;
|
241
|
+
}
|
242
|
+
}
|
243
|
+
parent = parent.parentElement;
|
244
|
+
}
|
245
|
+
if (_this.state.reversedScaling !== reversedScaling) {
|
246
|
+
_this.setState({
|
247
|
+
reversedScaling: reversedScaling
|
248
|
+
});
|
249
|
+
}
|
250
|
+
});
|
212
251
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleItemKeyDown", function (event, index) {
|
213
252
|
if (event.key === ' ') {
|
253
|
+
var _this$state$items$ind;
|
214
254
|
event.preventDefault();
|
215
255
|
event.stopPropagation();
|
216
256
|
if (_this.state.dragging) {
|
217
|
-
var
|
257
|
+
var dragOver = _this.state.dragOver;
|
258
|
+
var prevIndex = _this.state.dragging.index;
|
218
259
|
_this.handleItemDrop(index);
|
219
260
|
_this.setState({
|
220
261
|
dragging: null,
|
221
|
-
|
262
|
+
dragOver: null,
|
263
|
+
keyboardDraggingIndex: null,
|
264
|
+
animatedScaling: index,
|
222
265
|
hideHoverEffect: true
|
223
266
|
});
|
224
|
-
|
225
|
-
var _this$state$items;
|
226
|
-
(_this$state$items = _this.state.items[
|
227
|
-
|
228
|
-
|
267
|
+
requestAnimationFrame(function () {
|
268
|
+
var _this$state$items$pre2, _this$state$items;
|
269
|
+
var prevIndexNode = (_this$state$items$pre2 = _this.state.items[prevIndex]) === null || _this$state$items$pre2 === void 0 ? void 0 : _this$state$items$pre2.node;
|
270
|
+
if (prevIndexNode !== document.activeElement) return;
|
271
|
+
(_this$state$items = _this.state.items[dragOver]) === null || _this$state$items === void 0 ? void 0 : _this$state$items.node.focus();
|
272
|
+
});
|
273
|
+
} else if ((_this$state$items$ind = _this.state.items[index]) !== null && _this$state$items$ind !== void 0 && _this$state$items$ind.draggingAllowed) {
|
229
274
|
_this.handleItemDragStart(index);
|
275
|
+
_this.setState({
|
276
|
+
keyboardDraggingIndex: index,
|
277
|
+
animatedScaling: index
|
278
|
+
});
|
279
|
+
_this.updateItemScaling();
|
230
280
|
}
|
231
281
|
return false;
|
232
282
|
} else if (event.key === 'Escape' && _this.state.dragging) {
|
@@ -237,17 +287,49 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
237
287
|
_this.setState({
|
238
288
|
a11yHint: a11yHint,
|
239
289
|
dragging: null,
|
240
|
-
|
290
|
+
dragOver: null,
|
291
|
+
keyboardDraggingIndex: null,
|
241
292
|
hideHoverEffect: true
|
242
293
|
});
|
243
294
|
return false;
|
295
|
+
} else if (event.key.startsWith('Arrow')) {
|
296
|
+
if (_this.state.animatedScaling !== null) {
|
297
|
+
_this.setState({
|
298
|
+
animatedScaling: null
|
299
|
+
});
|
300
|
+
}
|
301
|
+
var item = _this.state.items[index];
|
302
|
+
if ((item === null || item === void 0 ? void 0 : item.node) !== document.activeElement) return;
|
303
|
+
event.preventDefault();
|
304
|
+
requestAnimationFrame(function () {
|
305
|
+
var _this$state$items$nex;
|
306
|
+
if ((item === null || item === void 0 ? void 0 : item.node) !== document.activeElement) return;
|
307
|
+
var rects = _this.state.items.map(function (item) {
|
308
|
+
return item === null || item === void 0 ? void 0 : item.node.getBoundingClientRect();
|
309
|
+
}).map(function (rect) {
|
310
|
+
return {
|
311
|
+
top: Math.round(rect.top),
|
312
|
+
right: Math.round(rect.right),
|
313
|
+
bottom: Math.round(rect.bottom),
|
314
|
+
left: Math.round(rect.left)
|
315
|
+
};
|
316
|
+
});
|
317
|
+
var nextIndex = findNextRectangleIndex(rects, rects[index], event.key);
|
318
|
+
if (nextIndex === -1) {
|
319
|
+
var indexDiff = event.key === 'ArrowUp' || event.key === 'ArrowLeft' ? -1 : 1;
|
320
|
+
nextIndex = index + indexDiff;
|
321
|
+
}
|
322
|
+
(_this$state$items$nex = _this.state.items[nextIndex]) === null || _this$state$items$nex === void 0 ? void 0 : _this$state$items$nex.node.focus();
|
323
|
+
});
|
244
324
|
}
|
245
325
|
});
|
246
326
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleItemFocus", function (index) {
|
247
327
|
if (!_this.state.dragging) return;
|
248
328
|
_this.setState({
|
249
|
-
|
329
|
+
dragOver: index,
|
330
|
+
keyboardDraggingIndex: index
|
250
331
|
});
|
332
|
+
_this.updateItemScaling();
|
251
333
|
});
|
252
334
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "makeItemDragStartHandler", function (index) {
|
253
335
|
return function () {
|
@@ -317,7 +399,7 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
317
399
|
var itemIndex = customFocus;
|
318
400
|
if (typeof itemIndex === 'string') {
|
319
401
|
itemIndex = _this.state.items.findIndex(function (item) {
|
320
|
-
return (item === null || item === void 0 ? void 0 : item.id) ===
|
402
|
+
return (item === null || item === void 0 ? void 0 : item.id) === customFocus;
|
321
403
|
});
|
322
404
|
}
|
323
405
|
if (itemIndex === -1 || typeof itemIndex !== 'number') return undefined;
|
@@ -326,6 +408,21 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
326
408
|
return _this;
|
327
409
|
}
|
328
410
|
(0, _createClass2["default"])(DragAndDropRoot, [{
|
411
|
+
key: "preview",
|
412
|
+
get: function get() {
|
413
|
+
var _this$state$dragging2;
|
414
|
+
var dragging = (_this$state$dragging2 = this.state.dragging) === null || _this$state$dragging2 === void 0 ? void 0 : _this$state$dragging2.index;
|
415
|
+
var dragOver = this.state.dragOver;
|
416
|
+
if (typeof dragging !== 'number' || typeof dragOver !== 'number') return {};
|
417
|
+
var result = {};
|
418
|
+
var shift = dragging < dragOver ? 1 : -1;
|
419
|
+
for (var i = dragging; i !== dragOver; i += shift) {
|
420
|
+
result[i] = i + shift;
|
421
|
+
}
|
422
|
+
result[dragOver] = dragging;
|
423
|
+
return result;
|
424
|
+
}
|
425
|
+
}, {
|
329
426
|
key: "getDraggableProps",
|
330
427
|
value: function getDraggableProps(_, index) {
|
331
428
|
return {
|
@@ -338,10 +435,13 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
338
435
|
onMouseMove: this.handleItemMouseMove,
|
339
436
|
onKeyDown: this.makeItemKeyDownHandler(index),
|
340
437
|
onFocus: this.makeItemFocusHandler(index),
|
341
|
-
dropPreview: index === this.state.
|
438
|
+
dropPreview: index === this.state.dragOver,
|
439
|
+
keyboardDragging: index === this.state.keyboardDraggingIndex,
|
440
|
+
reversedScaling: this.state.reversedScaling,
|
342
441
|
dark: this.asProps.theme === 'dark',
|
343
442
|
swapPreview: this.getSwapPreview(index),
|
344
|
-
hideHoverEffect: this.state.hideHoverEffect
|
443
|
+
hideHoverEffect: this.state.hideHoverEffect,
|
444
|
+
animatedScaling: index === this.state.animatedScaling
|
345
445
|
};
|
346
446
|
}
|
347
447
|
}, {
|
@@ -438,10 +538,61 @@ var Draggable = function Draggable(props) {
|
|
438
538
|
return _ref5 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SDraggable, _ref5.cn("SDraggable", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
439
539
|
"ref": ref,
|
440
540
|
"draggable": !noDrag,
|
441
|
-
"tabIndex": 0,
|
442
541
|
"placement": placement
|
443
542
|
}, _ref2))), swapPreview ? swapPreview : /*#__PURE__*/_react["default"].createElement(Children, _ref5.cn("Children", {})));
|
444
543
|
};
|
544
|
+
Draggable.enhance = [(0, _keyboardFocusEnhance["default"])()];
|
545
|
+
var findNextRectangleIndex = function findNextRectangleIndex(rectangles, current, direction) {
|
546
|
+
var candidate = null;
|
547
|
+
var minDistance = Infinity;
|
548
|
+
for (var i = 0; i < rectangles.length; i++) {
|
549
|
+
var rect = rectangles[i];
|
550
|
+
if (!rect) continue;
|
551
|
+
if (rect === current) continue;
|
552
|
+
var verticallyOverlaps = current.top <= rect.bottom && current.bottom >= rect.top;
|
553
|
+
var horizontallyOverlaps = current.left <= rect.right && current.right >= rect.left;
|
554
|
+
if (!verticallyOverlaps && !horizontallyOverlaps) continue;
|
555
|
+
switch (direction) {
|
556
|
+
case 'ArrowRight':
|
557
|
+
{
|
558
|
+
if (!verticallyOverlaps) continue;
|
559
|
+
var distance = rect.left - current.right;
|
560
|
+
if (distance < 0 || distance >= minDistance) continue;
|
561
|
+
candidate = rect;
|
562
|
+
minDistance = distance;
|
563
|
+
break;
|
564
|
+
}
|
565
|
+
case 'ArrowLeft':
|
566
|
+
{
|
567
|
+
if (!verticallyOverlaps) continue;
|
568
|
+
var _distance = current.left - rect.right;
|
569
|
+
if (_distance < 0 || _distance >= minDistance) continue;
|
570
|
+
candidate = rect;
|
571
|
+
minDistance = _distance;
|
572
|
+
break;
|
573
|
+
}
|
574
|
+
case 'ArrowUp':
|
575
|
+
{
|
576
|
+
if (!horizontallyOverlaps) continue;
|
577
|
+
var _distance2 = current.top - rect.bottom;
|
578
|
+
if (_distance2 < 0 || _distance2 >= minDistance) continue;
|
579
|
+
candidate = rect;
|
580
|
+
minDistance = _distance2;
|
581
|
+
break;
|
582
|
+
}
|
583
|
+
case 'ArrowDown':
|
584
|
+
{
|
585
|
+
if (!horizontallyOverlaps) continue;
|
586
|
+
var _distance3 = rect.top - current.bottom;
|
587
|
+
if (_distance3 < 0 || _distance3 >= minDistance) continue;
|
588
|
+
candidate = rect;
|
589
|
+
minDistance = _distance3;
|
590
|
+
break;
|
591
|
+
}
|
592
|
+
}
|
593
|
+
}
|
594
|
+
return rectangles.indexOf(candidate);
|
595
|
+
};
|
445
596
|
var DropZone = function DropZone(props) {
|
446
597
|
var _ref3 = arguments[0],
|
447
598
|
_ref6;
|