intergalactic 15.111.0-prerelease.0 → 15.112.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 +53 -0
- package/accordion/lib/cjs/Accordion.js +9 -9
- package/accordion/lib/es6/Accordion.js +9 -9
- package/accordion/package.json +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/animation/package.json +1 -1
- package/badge/lib/cjs/Badge.js +6 -6
- package/badge/lib/es6/Badge.js +6 -6
- package/badge/package.json +1 -1
- 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/base-trigger/package.json +1 -1
- package/breadcrumbs/lib/cjs/Breadcrumbs.js +8 -8
- package/breadcrumbs/lib/es6/Breadcrumbs.js +8 -8
- package/breadcrumbs/package.json +1 -1
- package/breakpoints/package.json +1 -1
- package/button/lib/cjs/component/Button/Button.js +27 -27
- package/button/lib/cjs/component/ButtonLink/ButtonLink.js +20 -20
- package/button/lib/es6/component/Button/Button.js +27 -27
- package/button/lib/es6/component/ButtonLink/ButtonLink.js +20 -20
- package/button/package.json +1 -1
- package/card/lib/cjs/Card.js +6 -6
- package/card/lib/es6/Card.js +6 -6
- package/card/package.json +1 -1
- package/carousel/lib/cjs/Carousel.js +23 -26
- package/carousel/lib/cjs/Carousel.js.map +1 -1
- package/carousel/lib/es6/Carousel.js +23 -26
- package/carousel/lib/es6/Carousel.js.map +1 -1
- package/carousel/package.json +1 -1
- package/checkbox/lib/cjs/Checkbox.js +18 -18
- package/checkbox/lib/es6/Checkbox.js +18 -18
- package/checkbox/package.json +1 -1
- package/color-picker/PaletteManager.d.ts +20 -31
- package/color-picker/lib/cjs/ColorPicker.js +24 -24
- package/color-picker/lib/cjs/PaletteManager.js +26 -29
- package/color-picker/lib/cjs/PaletteManager.js.map +1 -1
- package/color-picker/lib/cjs/components/InputColor.js +24 -24
- package/color-picker/lib/es6/ColorPicker.js +24 -24
- package/color-picker/lib/es6/PaletteManager.js +26 -29
- package/color-picker/lib/es6/PaletteManager.js.map +1 -1
- package/color-picker/lib/es6/components/InputColor.js +24 -24
- package/color-picker/lib/types/PaletteManager.d.ts +20 -31
- package/color-picker/package.json +1 -1
- package/components.json +73 -73
- package/core/package.json +1 -1
- package/counter/lib/cjs/Counter.js +13 -15
- package/counter/lib/cjs/Counter.js.map +1 -1
- package/counter/lib/es6/Counter.js +13 -15
- package/counter/lib/es6/Counter.js.map +1 -1
- package/counter/package.json +1 -1
- package/d3-chart/a11y/PlotA11yModule.d.ts +1 -1
- package/d3-chart/component/Chart/AbstractChart.d.ts +2 -1
- package/d3-chart/component/Chart/AbstractChart.type.d.ts +11 -1
- package/d3-chart/component/ChartLegend/BaseLegend.d.ts +1 -1
- package/d3-chart/component/ChartLegend/BaseLegend.type.d.ts +2 -1
- package/d3-chart/component/ChartLegend/LegendItem/LegendItem.type.d.ts +14 -4
- package/d3-chart/component/ChartLegend/LegendTable/LegendTable.type.d.ts +1 -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 +16 -16
- package/d3-chart/lib/cjs/Bubble.js +12 -12
- package/d3-chart/lib/cjs/CompactHorizontalBar.js +16 -16
- package/d3-chart/lib/cjs/Donut.js +9 -9
- package/d3-chart/lib/cjs/Dots.js +8 -8
- package/d3-chart/lib/cjs/HorizontalBar.js +16 -16
- package/d3-chart/lib/cjs/Hover.js +3 -3
- package/d3-chart/lib/cjs/Line.js +9 -9
- package/d3-chart/lib/cjs/Plot.js +3 -3
- package/d3-chart/lib/cjs/Radar.js +19 -19
- package/d3-chart/lib/cjs/RadialTree.js +12 -12
- package/d3-chart/lib/cjs/Reference.js +12 -12
- package/d3-chart/lib/cjs/ScatterPlot.js +9 -9
- package/d3-chart/lib/cjs/Tooltip.js +9 -9
- package/d3-chart/lib/cjs/Venn.js +9 -9
- package/d3-chart/lib/cjs/a11y/PlotA11yModule.js +2 -2
- package/d3-chart/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
- package/d3-chart/lib/cjs/a11y/PlotA11yView.js +21 -18
- package/d3-chart/lib/cjs/a11y/PlotA11yView.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/AbstractChart.js +5 -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/Chart/AreaChart.js +10 -0
- package/d3-chart/lib/cjs/component/Chart/AreaChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/BarChart.js +10 -0
- package/d3-chart/lib/cjs/component/Chart/BarChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/BubbleChart.js +10 -0
- package/d3-chart/lib/cjs/component/Chart/BubbleChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/CigaretteChart.js +10 -1
- package/d3-chart/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/CompactHorizontalBarChart.js +10 -0
- package/d3-chart/lib/cjs/component/Chart/CompactHorizontalBarChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/DonutChart.js +10 -0
- package/d3-chart/lib/cjs/component/Chart/DonutChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/HistogramChart.js +10 -0
- package/d3-chart/lib/cjs/component/Chart/HistogramChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/LineChart.js +10 -0
- package/d3-chart/lib/cjs/component/Chart/LineChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/RadarChart.js +11 -0
- package/d3-chart/lib/cjs/component/Chart/RadarChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/ScatterPlotChart.js +10 -0
- package/d3-chart/lib/cjs/component/Chart/ScatterPlotChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/VennChart.js +11 -3
- package/d3-chart/lib/cjs/component/Chart/VennChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/BaseLegend.js +4 -10
- package/d3-chart/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/BaseLegend.type.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +7 -5
- package/d3-chart/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +35 -30
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +8 -7
- package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
- package/d3-chart/lib/cjs/translations/de.json +2 -1
- package/d3-chart/lib/cjs/translations/en.json +2 -1
- package/d3-chart/lib/cjs/translations/es.json +2 -1
- package/d3-chart/lib/cjs/translations/fr.json +2 -1
- package/d3-chart/lib/cjs/translations/it.json +2 -1
- package/d3-chart/lib/cjs/translations/ja.json +2 -1
- package/d3-chart/lib/cjs/translations/ko.json +2 -1
- package/d3-chart/lib/cjs/translations/nl.json +2 -1
- package/d3-chart/lib/cjs/translations/pl.json +2 -1
- package/d3-chart/lib/cjs/translations/pt.json +2 -1
- package/d3-chart/lib/cjs/translations/sv.json +2 -1
- package/d3-chart/lib/cjs/translations/tr.json +2 -1
- package/d3-chart/lib/cjs/translations/vi.json +2 -1
- package/d3-chart/lib/cjs/translations/zh.json +2 -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 +16 -16
- package/d3-chart/lib/es6/Bubble.js +12 -12
- package/d3-chart/lib/es6/CompactHorizontalBar.js +16 -16
- package/d3-chart/lib/es6/Donut.js +9 -9
- package/d3-chart/lib/es6/Dots.js +8 -8
- package/d3-chart/lib/es6/HorizontalBar.js +16 -16
- package/d3-chart/lib/es6/Hover.js +3 -3
- package/d3-chart/lib/es6/Line.js +9 -9
- package/d3-chart/lib/es6/Plot.js +3 -3
- package/d3-chart/lib/es6/Radar.js +19 -19
- package/d3-chart/lib/es6/RadialTree.js +12 -12
- package/d3-chart/lib/es6/Reference.js +12 -12
- package/d3-chart/lib/es6/ScatterPlot.js +9 -9
- package/d3-chart/lib/es6/Tooltip.js +9 -9
- package/d3-chart/lib/es6/Venn.js +9 -9
- package/d3-chart/lib/es6/a11y/PlotA11yModule.js +2 -2
- package/d3-chart/lib/es6/a11y/PlotA11yModule.js.map +1 -1
- package/d3-chart/lib/es6/a11y/PlotA11yView.js +21 -18
- package/d3-chart/lib/es6/a11y/PlotA11yView.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/AbstractChart.js +5 -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/Chart/AreaChart.js +10 -0
- package/d3-chart/lib/es6/component/Chart/AreaChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/BarChart.js +10 -0
- package/d3-chart/lib/es6/component/Chart/BarChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/BubbleChart.js +10 -0
- package/d3-chart/lib/es6/component/Chart/BubbleChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/CigaretteChart.js +10 -1
- package/d3-chart/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/CompactHorizontalBarChart.js +10 -0
- package/d3-chart/lib/es6/component/Chart/CompactHorizontalBarChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/DonutChart.js +10 -0
- package/d3-chart/lib/es6/component/Chart/DonutChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/HistogramChart.js +10 -0
- package/d3-chart/lib/es6/component/Chart/HistogramChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/LineChart.js +10 -0
- package/d3-chart/lib/es6/component/Chart/LineChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/RadarChart.js +11 -0
- package/d3-chart/lib/es6/component/Chart/RadarChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/ScatterPlotChart.js +10 -0
- package/d3-chart/lib/es6/component/Chart/ScatterPlotChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/VennChart.js +11 -3
- package/d3-chart/lib/es6/component/Chart/VennChart.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/BaseLegend.js +4 -10
- package/d3-chart/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/BaseLegend.type.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +7 -5
- package/d3-chart/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +35 -30
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +8 -7
- package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
- package/d3-chart/lib/es6/translations/de.json +2 -1
- package/d3-chart/lib/es6/translations/en.json +2 -1
- package/d3-chart/lib/es6/translations/es.json +2 -1
- package/d3-chart/lib/es6/translations/fr.json +2 -1
- package/d3-chart/lib/es6/translations/it.json +2 -1
- package/d3-chart/lib/es6/translations/ja.json +2 -1
- package/d3-chart/lib/es6/translations/ko.json +2 -1
- package/d3-chart/lib/es6/translations/nl.json +2 -1
- package/d3-chart/lib/es6/translations/pl.json +2 -1
- package/d3-chart/lib/es6/translations/pt.json +2 -1
- package/d3-chart/lib/es6/translations/sv.json +2 -1
- package/d3-chart/lib/es6/translations/tr.json +2 -1
- package/d3-chart/lib/es6/translations/vi.json +2 -1
- package/d3-chart/lib/es6/translations/zh.json +2 -1
- package/d3-chart/lib/types/a11y/PlotA11yModule.d.ts +1 -1
- package/d3-chart/lib/types/component/Chart/AbstractChart.d.ts +2 -1
- package/d3-chart/lib/types/component/Chart/AbstractChart.type.d.ts +11 -1
- package/d3-chart/lib/types/component/ChartLegend/BaseLegend.d.ts +1 -1
- package/d3-chart/lib/types/component/ChartLegend/BaseLegend.type.d.ts +2 -1
- package/d3-chart/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +14 -4
- package/d3-chart/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +1 -1
- package/d3-chart/lib/types/translations/__intergalactic-dynamic-locales.d.ts +13 -0
- package/d3-chart/package.json +1 -1
- package/d3-chart/translations/__intergalactic-dynamic-locales.d.ts +13 -0
- package/data-table/lib/cjs/Body.js +3 -3
- package/data-table/lib/cjs/DataTable.js +36 -36
- package/data-table/lib/es6/Body.js +3 -3
- package/data-table/lib/es6/DataTable.js +36 -36
- package/data-table/package.json +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/date-picker/package.json +1 -1
- package/divider/lib/cjs/Divider.js +10 -10
- package/divider/lib/es6/Divider.js +10 -10
- package/divider/package.json +1 -1
- package/dot/lib/cjs/Dot.js +10 -10
- package/dot/lib/es6/Dot.js +10 -10
- package/dot/package.json +1 -1
- package/drag-and-drop/index.d.ts +22 -8
- package/drag-and-drop/lib/cjs/DragAndDrop.js +172 -125
- package/drag-and-drop/lib/cjs/DragAndDrop.js.map +1 -1
- package/drag-and-drop/lib/cjs/index.d.js.map +1 -1
- package/drag-and-drop/lib/cjs/translations/de.json +6 -5
- package/drag-and-drop/lib/cjs/translations/en.json +6 -5
- package/drag-and-drop/lib/cjs/translations/es.json +6 -5
- package/drag-and-drop/lib/cjs/translations/fr.json +6 -5
- package/drag-and-drop/lib/cjs/translations/it.json +6 -5
- package/drag-and-drop/lib/cjs/translations/ja.json +6 -5
- package/drag-and-drop/lib/cjs/translations/ko.json +6 -5
- package/drag-and-drop/lib/cjs/translations/nl.json +6 -5
- package/drag-and-drop/lib/cjs/translations/pl.json +6 -5
- package/drag-and-drop/lib/cjs/translations/pt.json +6 -5
- package/drag-and-drop/lib/cjs/translations/sv.json +6 -5
- package/drag-and-drop/lib/cjs/translations/tr.json +6 -5
- package/drag-and-drop/lib/cjs/translations/vi.json +6 -5
- package/drag-and-drop/lib/cjs/translations/zh.json +6 -5
- package/drag-and-drop/lib/es6/DragAndDrop.js +172 -125
- package/drag-and-drop/lib/es6/DragAndDrop.js.map +1 -1
- package/drag-and-drop/lib/es6/index.d.js.map +1 -1
- package/drag-and-drop/lib/es6/translations/de.json +6 -5
- package/drag-and-drop/lib/es6/translations/en.json +6 -5
- package/drag-and-drop/lib/es6/translations/es.json +6 -5
- package/drag-and-drop/lib/es6/translations/fr.json +6 -5
- package/drag-and-drop/lib/es6/translations/it.json +6 -5
- package/drag-and-drop/lib/es6/translations/ja.json +6 -5
- package/drag-and-drop/lib/es6/translations/ko.json +6 -5
- package/drag-and-drop/lib/es6/translations/nl.json +6 -5
- package/drag-and-drop/lib/es6/translations/pl.json +6 -5
- package/drag-and-drop/lib/es6/translations/pt.json +6 -5
- package/drag-and-drop/lib/es6/translations/sv.json +6 -5
- package/drag-and-drop/lib/es6/translations/tr.json +6 -5
- package/drag-and-drop/lib/es6/translations/vi.json +6 -5
- package/drag-and-drop/lib/es6/translations/zh.json +6 -5
- package/drag-and-drop/lib/types/index.d.ts +22 -8
- package/drag-and-drop/package.json +1 -1
- package/dropdown/lib/cjs/AbstractDropdown.js +1 -5
- package/dropdown/lib/cjs/AbstractDropdown.js.map +1 -1
- package/dropdown/lib/cjs/Dropdown.js +15 -15
- package/dropdown/lib/es6/AbstractDropdown.js +1 -5
- package/dropdown/lib/es6/AbstractDropdown.js.map +1 -1
- package/dropdown/lib/es6/Dropdown.js +15 -15
- package/dropdown/package.json +1 -1
- package/dropdown-menu/index.d.ts +2 -0
- package/dropdown-menu/lib/cjs/DropdownMenu.js +83 -73
- package/dropdown-menu/lib/cjs/DropdownMenu.js.map +1 -1
- package/dropdown-menu/lib/cjs/index.d.js.map +1 -1
- package/dropdown-menu/lib/cjs/style/dropdown-menu.shadow.css +3 -3
- package/dropdown-menu/lib/es6/DropdownMenu.js +80 -69
- package/dropdown-menu/lib/es6/DropdownMenu.js.map +1 -1
- package/dropdown-menu/lib/es6/index.d.js.map +1 -1
- package/dropdown-menu/lib/es6/style/dropdown-menu.shadow.css +3 -3
- package/dropdown-menu/lib/types/index.d.ts +2 -0
- package/dropdown-menu/package.json +1 -1
- package/ellipsis/lib/cjs/Ellipsis.js +23 -19
- package/ellipsis/lib/cjs/Ellipsis.js.map +1 -1
- package/ellipsis/lib/es6/Ellipsis.js +23 -19
- package/ellipsis/lib/es6/Ellipsis.js.map +1 -1
- package/ellipsis/package.json +1 -1
- package/errors/lib/cjs/Error.js +9 -9
- package/errors/lib/es6/Error.js +9 -9
- package/errors/package.json +1 -1
- package/feature-popover/lib/cjs/FeaturePopover.js +11 -11
- package/feature-popover/lib/es6/FeaturePopover.js +11 -11
- package/feature-popover/package.json +1 -1
- package/feedback-form/component/feedback-rating/FeedbackRating.d.ts +5 -11
- package/feedback-form/lib/cjs/FeedbackForm.js +7 -7
- package/feedback-form/lib/cjs/component/checkbox-button/CheckboxButton.js +3 -3
- package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js +2 -2
- package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js.map +1 -1
- package/feedback-form/lib/cjs/component/slider-rating/SliderRating.js +6 -6
- package/feedback-form/lib/es6/FeedbackForm.js +7 -7
- package/feedback-form/lib/es6/component/checkbox-button/CheckboxButton.js +3 -3
- package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js +2 -2
- package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js.map +1 -1
- package/feedback-form/lib/es6/component/slider-rating/SliderRating.js +6 -6
- package/feedback-form/lib/types/component/feedback-rating/FeedbackRating.d.ts +5 -11
- package/feedback-form/package.json +1 -1
- 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/flags/package.json +1 -1
- 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/flex-box/package.json +1 -1
- package/format-text/lib/cjs/FormatText.js +5 -5
- package/format-text/lib/es6/FormatText.js +5 -5
- package/format-text/package.json +1 -1
- package/fullscreen-modal/lib/cjs/FullscreenModal.js +13 -13
- package/fullscreen-modal/lib/es6/FullscreenModal.js +13 -13
- package/fullscreen-modal/package.json +1 -1
- package/grid/lib/cjs/Grid.js +114 -114
- package/grid/lib/es6/Grid.js +114 -114
- package/grid/package.json +1 -1
- package/i18n-unplugin/package.json +1 -1
- package/icon/Tack/l/index.d.ts +6 -0
- package/icon/Tack/l/index.js +38 -0
- package/icon/Tack/l/index.mjs +26 -0
- package/icon/Tack/m/index.d.ts +6 -0
- package/icon/Tack/m/index.js +38 -0
- package/icon/Tack/m/index.mjs +26 -0
- package/icon/TackNo/l/index.d.ts +6 -0
- package/icon/TackNo/l/index.js +41 -0
- package/icon/TackNo/l/index.mjs +29 -0
- package/icon/TackNo/m/index.d.ts +6 -0
- package/icon/TackNo/m/index.js +41 -0
- package/icon/TackNo/m/index.mjs +29 -0
- package/icon/Yext/l/index.d.ts +6 -0
- package/icon/Yext/l/index.js +52 -0
- package/icon/Yext/l/index.mjs +40 -0
- package/icon/Yext/m/index.d.ts +6 -0
- package/icon/Yext/m/index.js +52 -0
- package/icon/Yext/m/index.mjs +40 -0
- package/icon/color/BirdeyeColored/l/index.d.ts +6 -0
- package/icon/color/BirdeyeColored/l/index.js +39 -0
- package/icon/color/BirdeyeColored/l/index.mjs +27 -0
- package/icon/color/BirdeyeColored/m/index.d.ts +6 -0
- package/icon/color/BirdeyeColored/m/index.js +39 -0
- package/icon/color/BirdeyeColored/m/index.mjs +27 -0
- package/icon/color/CallTrackingMetricsColored/l/index.d.ts +6 -0
- package/icon/color/CallTrackingMetricsColored/l/index.js +43 -0
- package/icon/color/CallTrackingMetricsColored/l/index.mjs +31 -0
- package/icon/color/CallTrackingMetricsColored/m/index.d.ts +6 -0
- package/icon/color/CallTrackingMetricsColored/m/index.js +43 -0
- package/icon/color/CallTrackingMetricsColored/m/index.mjs +31 -0
- package/icon/color/CampaignMonitorColored/l/index.d.ts +6 -0
- package/icon/color/CampaignMonitorColored/l/index.js +37 -0
- package/icon/color/CampaignMonitorColored/l/index.mjs +25 -0
- package/icon/color/CampaignMonitorColored/m/index.d.ts +6 -0
- package/icon/color/CampaignMonitorColored/m/index.js +37 -0
- package/icon/color/CampaignMonitorColored/m/index.mjs +25 -0
- 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/ConstantContactColored/l/index.d.ts +6 -0
- package/icon/color/ConstantContactColored/l/index.js +45 -0
- package/icon/color/ConstantContactColored/l/index.mjs +33 -0
- package/icon/color/ConstantContactColored/m/index.d.ts +6 -0
- package/icon/color/ConstantContactColored/m/index.js +45 -0
- package/icon/color/ConstantContactColored/m/index.mjs +33 -0
- package/icon/color/GoogleDisplayVideoAds/l/index.d.ts +6 -0
- package/icon/color/GoogleDisplayVideoAds/l/index.js +53 -0
- package/icon/color/GoogleDisplayVideoAds/l/index.mjs +41 -0
- package/icon/color/GoogleDisplayVideoAds/m/index.d.ts +6 -0
- package/icon/color/GoogleDisplayVideoAds/m/index.js +53 -0
- package/icon/color/GoogleDisplayVideoAds/m/index.mjs +41 -0
- package/icon/color/InstagramColored/l/index.d.ts +6 -0
- package/icon/color/InstagramColored/l/index.js +188 -0
- package/icon/color/InstagramColored/l/index.mjs +176 -0
- package/icon/color/InstagramColored/m/index.d.ts +6 -0
- package/icon/color/InstagramColored/m/index.js +188 -0
- package/icon/color/InstagramColored/m/index.mjs +176 -0
- package/icon/color/MetaColored/l/index.d.ts +6 -0
- package/icon/color/MetaColored/l/index.js +75 -0
- package/icon/color/MetaColored/l/index.mjs +63 -0
- package/icon/color/MetaColored/m/index.d.ts +6 -0
- package/icon/color/MetaColored/m/index.js +83 -0
- package/icon/color/MetaColored/m/index.mjs +71 -0
- 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/color/PipedriveColored/l/index.d.ts +6 -0
- package/icon/color/PipedriveColored/l/index.js +43 -0
- package/icon/color/PipedriveColored/l/index.mjs +31 -0
- package/icon/color/PipedriveColored/m/index.d.ts +6 -0
- package/icon/color/PipedriveColored/m/index.js +43 -0
- package/icon/color/PipedriveColored/m/index.mjs +31 -0
- package/icon/color/ShopifyColored/l/index.d.ts +6 -0
- package/icon/color/ShopifyColored/l/index.js +45 -0
- package/icon/color/ShopifyColored/l/index.mjs +33 -0
- package/icon/color/ShopifyColored/m/index.d.ts +6 -0
- package/icon/color/ShopifyColored/m/index.js +45 -0
- package/icon/color/ShopifyColored/m/index.mjs +33 -0
- package/icon/color/WhatConvertsColored/l/index.d.ts +6 -0
- package/icon/color/WhatConvertsColored/l/index.js +39 -0
- package/icon/color/WhatConvertsColored/l/index.mjs +27 -0
- package/icon/color/WhatConvertsColored/m/index.d.ts +6 -0
- package/icon/color/WhatConvertsColored/m/index.js +39 -0
- package/icon/color/WhatConvertsColored/m/index.mjs +27 -0
- package/icon/color/WooCommerceColored/l/index.d.ts +6 -0
- package/icon/color/WooCommerceColored/l/index.js +43 -0
- package/icon/color/WooCommerceColored/l/index.mjs +31 -0
- package/icon/color/WooCommerceColored/m/index.d.ts +6 -0
- package/icon/color/WooCommerceColored/m/index.js +43 -0
- package/icon/color/WooCommerceColored/m/index.mjs +31 -0
- package/icon/lib/cjs/Icon.js +5 -5
- package/icon/lib/es6/Icon.js +5 -5
- package/icon/package.json +1 -1
- 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/illustration/package.json +1 -1
- package/inline-edit/lib/cjs/InlineEdit.js +4 -4
- package/inline-edit/lib/es6/InlineEdit.js +4 -4
- package/inline-edit/package.json +1 -1
- package/inline-input/lib/cjs/InlineInput.js +14 -14
- package/inline-input/lib/es6/InlineInput.js +14 -14
- package/inline-input/package.json +1 -1
- package/input/lib/cjs/Input.js +17 -17
- package/input/lib/es6/Input.js +17 -17
- package/input/package.json +1 -1
- package/input-mask/lib/cjs/InputMask.js +6 -6
- package/input-mask/lib/cjs/InputMask.js.map +1 -1
- package/input-mask/lib/es6/InputMask.js +6 -6
- package/input-mask/lib/es6/InputMask.js.map +1 -1
- package/input-mask/package.json +1 -1
- package/input-number/lib/cjs/InputNumber.js +9 -9
- package/input-number/lib/es6/InputNumber.js +9 -9
- package/input-number/package.json +1 -1
- package/input-tags/lib/cjs/InputTags.js +12 -12
- package/input-tags/lib/es6/InputTags.js +12 -12
- package/input-tags/package.json +1 -1
- package/link/lib/cjs/Link.js +12 -12
- package/link/lib/es6/Link.js +12 -12
- package/link/package.json +1 -1
- package/mini-chart/component/trend/Trend.d.ts +1 -1
- package/mini-chart/lib/cjs/component/score/Donut.js +9 -9
- package/mini-chart/lib/cjs/component/score/Donut.js.map +1 -1
- package/mini-chart/lib/cjs/component/score/Line.js +17 -17
- package/mini-chart/lib/cjs/component/score/Line.js.map +1 -1
- package/mini-chart/lib/cjs/component/trend/Bar.js +7 -7
- package/mini-chart/lib/cjs/component/trend/Bar.js.map +1 -1
- package/mini-chart/lib/cjs/component/trend/Line.js +7 -7
- package/mini-chart/lib/cjs/component/trend/Line.js.map +1 -1
- package/mini-chart/lib/cjs/component/trend/Trend.js +1 -1
- package/mini-chart/lib/cjs/component/trend/Trend.js.map +1 -1
- package/mini-chart/lib/es6/component/score/Donut.js +9 -9
- package/mini-chart/lib/es6/component/score/Donut.js.map +1 -1
- package/mini-chart/lib/es6/component/score/Line.js +17 -17
- package/mini-chart/lib/es6/component/score/Line.js.map +1 -1
- package/mini-chart/lib/es6/component/trend/Bar.js +7 -7
- package/mini-chart/lib/es6/component/trend/Bar.js.map +1 -1
- package/mini-chart/lib/es6/component/trend/Line.js +7 -7
- package/mini-chart/lib/es6/component/trend/Line.js.map +1 -1
- package/mini-chart/lib/es6/component/trend/Trend.js +1 -1
- package/mini-chart/lib/es6/component/trend/Trend.js.map +1 -1
- package/mini-chart/lib/types/component/trend/Trend.d.ts +1 -1
- package/mini-chart/package.json +1 -1
- package/modal/lib/cjs/Modal.js +8 -8
- package/modal/lib/es6/Modal.js +8 -8
- package/modal/package.json +1 -1
- package/neighbor-location/package.json +1 -1
- package/notice/lib/cjs/Notice.js +14 -14
- package/notice/lib/es6/Notice.js +14 -14
- package/notice/package.json +1 -1
- package/notice-bubble/lib/cjs/NoticeBubble.js +15 -15
- package/notice-bubble/lib/es6/NoticeBubble.js +15 -15
- package/notice-bubble/package.json +1 -1
- package/notice-global/lib/cjs/NoticeGlobal.js +11 -11
- package/notice-global/lib/es6/NoticeGlobal.js +11 -11
- package/notice-global/package.json +1 -1
- package/outside-click/package.json +1 -1
- package/package.json +1 -1
- package/pagination/lib/cjs/Pagination.js +11 -10
- package/pagination/lib/cjs/Pagination.js.map +1 -1
- package/pagination/lib/es6/Pagination.js +11 -10
- package/pagination/lib/es6/Pagination.js.map +1 -1
- package/pagination/package.json +1 -1
- package/pills/lib/cjs/Pills.js +13 -13
- package/pills/lib/es6/Pills.js +13 -13
- package/pills/package.json +1 -1
- package/popper/lib/cjs/Popper.js +6 -6
- package/popper/lib/es6/Popper.js +6 -6
- package/popper/package.json +1 -1
- package/portal/package.json +1 -1
- 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/product-head/package.json +1 -1
- package/progress-bar/lib/cjs/ProgressBar.js +15 -15
- package/progress-bar/lib/es6/ProgressBar.js +15 -15
- package/progress-bar/package.json +1 -1
- package/radio/lib/cjs/Radio.js +16 -16
- package/radio/lib/es6/Radio.js +16 -16
- package/radio/package.json +1 -1
- 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/scroll-area/package.json +1 -1
- 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/select/package.json +1 -1
- package/side-panel/lib/cjs/SidePanel.js +16 -16
- package/side-panel/lib/es6/SidePanel.js +16 -16
- package/side-panel/package.json +1 -1
- 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/CompactHorizontalBar.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/CompactHorizontalBar.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/skeleton/package.json +1 -1
- package/slider/lib/cjs/Slider.js +8 -8
- package/slider/lib/es6/Slider.js +8 -8
- package/slider/package.json +1 -1
- package/spin/lib/cjs/Spin.js +13 -13
- package/spin/lib/es6/Spin.js +13 -13
- package/spin/package.json +1 -1
- package/spin-container/lib/cjs/SpinContainer.js +8 -8
- package/spin-container/lib/es6/SpinContainer.js +8 -8
- package/spin-container/package.json +1 -1
- package/sticky/lib/cjs/Sticky.js +2 -2
- package/sticky/lib/es6/Sticky.js +2 -2
- package/sticky/package.json +1 -1
- package/switch/lib/cjs/Switch.js +23 -30
- package/switch/lib/cjs/Switch.js.map +1 -1
- package/switch/lib/es6/Switch.js +23 -30
- package/switch/lib/es6/Switch.js.map +1 -1
- package/switch/package.json +1 -1
- package/tab-line/lib/cjs/TabLine.js +13 -13
- package/tab-line/lib/es6/TabLine.js +13 -13
- package/tab-line/package.json +1 -1
- package/tab-panel/lib/cjs/TabPanel.js +8 -8
- package/tab-panel/lib/es6/TabPanel.js +8 -8
- package/tab-panel/package.json +1 -1
- package/tag/lib/cjs/Tag.js +23 -23
- package/tag/lib/es6/Tag.js +23 -23
- package/tag/package.json +1 -1
- package/textarea/lib/cjs/Textarea.js +8 -8
- package/textarea/lib/es6/Textarea.js +8 -8
- package/textarea/package.json +1 -1
- package/time-picker/lib/cjs/TimePicker.js +12 -12
- package/time-picker/lib/es6/TimePicker.js +12 -12
- package/time-picker/package.json +1 -1
- package/tooltip/lib/cjs/Tooltip.js +9 -9
- package/tooltip/lib/es6/Tooltip.js +9 -9
- package/tooltip/package.json +1 -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/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/package.json +1 -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/core/types/Component.d.ts +23 -2
- package/utils/lib/core/types/Component.js +1 -1
- package/utils/lib/core/types/Component.js.map +1 -1
- package/utils/lib/core/types/Component.mjs +1 -1
- package/utils/lib/core/types/Component.mjs.map +1 -1
- package/utils/lib/injectStyle.js +1 -1
- package/utils/lib/injectStyle.mjs +1 -1
- package/widget-empty/lib/cjs/WidgetEmpty.js +5 -5
- package/widget-empty/lib/es6/WidgetEmpty.js +5 -5
- package/widget-empty/package.json +1 -1
- package/wizard/lib/cjs/Wizard.js +12 -12
- package/wizard/lib/es6/Wizard.js +12 -12
- package/wizard/package.json +1 -1
@@ -17,24 +17,27 @@ import { localizedMessages } from './translations/__intergalactic-dynamic-locale
|
|
17
17
|
import i18nEnhance from 'intergalactic/utils/lib/enhances/i18nEnhance';
|
18
18
|
import useEnhancedEffect from 'intergalactic/utils/lib/use/useEnhancedEffect';
|
19
19
|
/*__reshadow-styles__:"./style/drag-and-drop.shadow.css"*/
|
20
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
21
|
-
"__SDraggable": "
|
22
|
-
"_placement_top": "
|
23
|
-
"_placement_right": "
|
24
|
-
"_placement_left": "
|
25
|
-
"_placement_bottom": "
|
26
|
-
"__SDropZone": "
|
27
|
-
"_dropPreview": "
|
28
|
-
"_dark": "
|
29
|
-
"_keyboardFocused": "
|
30
|
-
"_keyboardDragging": "
|
31
|
-
"_reversedScaling": "
|
32
|
-
"_animatedScaling": "
|
33
|
-
"__SA11yHint": "
|
34
|
-
"_draggable": "
|
35
|
-
"_hideHoverEffect": "
|
20
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SDraggable_qj0ea_gg_.__draggable_qj0ea_gg_{position:relative;cursor:grab;-moz-user-select:none;-webkit-user-select:none;user-select:none}.___SDraggable_qj0ea_gg_.__draggable_qj0ea_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_qj0ea_gg_.__draggable_qj0ea_gg_:hover::before{display:block}}.___SDraggable_qj0ea_gg_.__draggable_qj0ea_gg_.__hideHoverEffect_qj0ea_gg_::before{display:none}.___SDraggable_qj0ea_gg_._placement_right_qj0ea_gg_::before{right:0}.___SDraggable_qj0ea_gg_._placement_bottom_qj0ea_gg_::before{bottom:0}.___SDraggable_qj0ea_gg_._placement_left_qj0ea_gg_::before{left:0}.___SDraggable_qj0ea_gg_._placement_top_qj0ea_gg_::before{top:0;left:0;width:100%;height:16px}.___SDraggable_qj0ea_gg_._placement_bottom_qj0ea_gg_::before{left:0;width:100%;height:16px}.___SDraggable_qj0ea_gg_._placement_left_qj0ea_gg_::before,.___SDraggable_qj0ea_gg_._placement_right_qj0ea_gg_::before{top:0;width:16px;height:100%}.___SDropZone_qj0ea_gg_{position:relative}.___SDraggable_qj0ea_gg_.__dropPreview_qj0ea_gg_,.___SDropZone_qj0ea_gg_.__dropPreview_qj0ea_gg_{background-color:var(--intergalactic-bg-secondary-neutral, #f4f5f9)}.___SDraggable_qj0ea_gg_.__dark_qj0ea_gg_.__dropPreview_qj0ea_gg_,.___SDropZone_qj0ea_gg_.__dark_qj0ea_gg_.__dropPreview_qj0ea_gg_{background-color:var(--intergalactic-bg-primary-invert-active, #484a54)}.___SDraggable_qj0ea_gg_:focus{outline:0}.___SDraggable_qj0ea_gg_.__keyboardFocused_qj0ea_gg_:focus{box-shadow:none}.___SDraggable_qj0ea_gg_.__keyboardFocused_qj0ea_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_qj0ea_gg_.__keyboardDragging_qj0ea_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_qj0ea_gg_.__keyboardDragging_qj0ea_gg_.__hideHoverEffect_qj0ea_gg_::before,.___SDraggable_qj0ea_gg_.__keyboardDragging_qj0ea_gg_::before{display:block}.___SDraggable_qj0ea_gg_.__keyboardDragging_qj0ea_gg_.__reversedScaling_qj0ea_gg_{scale:.95}.___SDraggable_qj0ea_gg_.__animatedScaling_qj0ea_gg_{transition:all calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out}.___SA11yHint_qj0ea_gg_{position:absolute;margin-top:-1px;height:1px;width:1px;clip:rect(0 0 0 0)}@media (prefers-reduced-motion:reduce){.___SDraggable_qj0ea_gg_{transition:none}}" /*__inner_css_end__*/, "qj0ea_gg_") /*__reshadow_css_end__*/, {
|
21
|
+
"__SDraggable": "___SDraggable_qj0ea_gg_",
|
22
|
+
"_placement_top": "_placement_top_qj0ea_gg_",
|
23
|
+
"_placement_right": "_placement_right_qj0ea_gg_",
|
24
|
+
"_placement_left": "_placement_left_qj0ea_gg_",
|
25
|
+
"_placement_bottom": "_placement_bottom_qj0ea_gg_",
|
26
|
+
"__SDropZone": "___SDropZone_qj0ea_gg_",
|
27
|
+
"_dropPreview": "__dropPreview_qj0ea_gg_",
|
28
|
+
"_dark": "__dark_qj0ea_gg_",
|
29
|
+
"_keyboardFocused": "__keyboardFocused_qj0ea_gg_",
|
30
|
+
"_keyboardDragging": "__keyboardDragging_qj0ea_gg_",
|
31
|
+
"_reversedScaling": "__reversedScaling_qj0ea_gg_",
|
32
|
+
"_animatedScaling": "__animatedScaling_qj0ea_gg_",
|
33
|
+
"__SA11yHint": "___SA11yHint_qj0ea_gg_",
|
34
|
+
"_draggable": "__draggable_qj0ea_gg_",
|
35
|
+
"_hideHoverEffect": "__hideHoverEffect_qj0ea_gg_"
|
36
36
|
});
|
37
37
|
import keyboardFocusEnhance from 'intergalactic/utils/lib/enhances/keyboardFocusEnhance';
|
38
|
+
import { ScreenReaderOnly } from 'intergalactic/utils/lib/ScreenReaderOnly';
|
39
|
+
import uniqueIDEnhance from 'intergalactic/utils/lib/uniqueID';
|
40
|
+
import canUseDOM from 'intergalactic/utils/lib/canUseDOM';
|
38
41
|
var noop = function noop() {
|
39
42
|
/* do nothing */
|
40
43
|
};
|
@@ -63,12 +66,13 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
63
66
|
animatedScaling: null,
|
64
67
|
reversedScaling: false
|
65
68
|
});
|
69
|
+
_defineProperty(_assertThisInitialized(_this), "containerRef", /*#__PURE__*/React.createRef());
|
70
|
+
_defineProperty(_assertThisInitialized(_this), "clearA11yHintTimeout", 0);
|
66
71
|
_defineProperty(_assertThisInitialized(_this), "handleItemDragStart", function (index) {
|
67
72
|
var items = _this.state.items;
|
68
73
|
var currentItem = items[index];
|
69
74
|
if (!currentItem) return;
|
70
75
|
var itemText = currentItem.node.getAttribute('aria-label') || currentItem.node.textContent || "".concat(index + 1);
|
71
|
-
var getI18nText = _this.asProps.getI18nText;
|
72
76
|
var zoneName = currentItem.zoneName;
|
73
77
|
var zonedItems = !zoneName ? items : items.filter(function (i) {
|
74
78
|
return (i === null || i === void 0 ? void 0 : i.zoneName) === zoneName;
|
@@ -77,7 +81,7 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
77
81
|
var itemPosition = zonedItems.findIndex(function (i) {
|
78
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;
|
79
83
|
});
|
80
|
-
|
84
|
+
_this.setA11yHint(zoneName ? 'grabbedWithZone' : 'grabbed', {
|
81
85
|
itemText: itemText,
|
82
86
|
itemPosition: itemPosition + 1,
|
83
87
|
itemsCount: itemsCount,
|
@@ -85,7 +89,6 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
85
89
|
});
|
86
90
|
_this.setState(function (prevState) {
|
87
91
|
return {
|
88
|
-
a11yHint: a11yHint,
|
89
92
|
dragging: {
|
90
93
|
index: index,
|
91
94
|
initialItemsRects: prevState.items.map(function (item) {
|
@@ -105,19 +108,18 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
105
108
|
});
|
106
109
|
});
|
107
110
|
_defineProperty(_assertThisInitialized(_this), "handleItemDragOver", function (event) {
|
108
|
-
var _this$state$dragging;
|
109
111
|
event.preventDefault();
|
110
|
-
var getI18nText = _this.asProps.getI18nText;
|
111
112
|
var _this$state = _this.state,
|
112
113
|
items = _this$state.items,
|
113
|
-
dragging = _this$state.dragging
|
114
|
+
dragging = _this$state.dragging,
|
115
|
+
dragOver = _this$state.dragOver;
|
114
116
|
if (!dragging) return;
|
115
117
|
var itemIndex = dragging.initialItemsRects.findIndex(function (rect) {
|
116
118
|
return rect && event.clientX > rect.x && event.clientX < rect.x + rect.width && event.clientY > rect.y && event.clientY < rect.y + rect.height;
|
117
119
|
});
|
118
120
|
var currentItem = items[itemIndex];
|
119
121
|
var draggingItem = items[dragging.index];
|
120
|
-
if (!currentItem || !draggingItem) return;
|
122
|
+
if (!currentItem || !draggingItem || itemIndex === dragOver) return;
|
121
123
|
var node = currentItem.isDropZone ? draggingItem.node : currentItem.node;
|
122
124
|
var itemText = node.getAttribute('aria-label') || node.textContent || "".concat(itemIndex + 1);
|
123
125
|
var zoneName = currentItem.zoneName;
|
@@ -129,41 +131,29 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
129
131
|
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;
|
130
132
|
});
|
131
133
|
var i18nKey = !zoneName ? 'grabbing' : currentItem.isDropZone ? 'grabbingJustWithZone' : 'grabbingFullWithZone';
|
132
|
-
|
134
|
+
_this.setA11yHint(i18nKey, {
|
133
135
|
itemText: itemText,
|
134
136
|
itemPosition: itemPosition + 1,
|
135
137
|
itemsCount: itemsCount,
|
136
138
|
zoneName: zoneName || ''
|
137
139
|
});
|
138
|
-
|
139
|
-
dragOver:
|
140
|
-
|
141
|
-
});else _this.setState({
|
142
|
-
dragOver: itemIndex,
|
143
|
-
a11yHint: a11yHint
|
144
|
-
});
|
145
|
-
});
|
146
|
-
_defineProperty(_assertThisInitialized(_this), "getSwapPreview", function (index) {
|
147
|
-
var _this$state$items$pre;
|
148
|
-
if (!_this.state.dragging) return null;
|
149
|
-
var previewIndex = _this.preview[index];
|
150
|
-
if (typeof previewIndex !== 'number') return null;
|
151
|
-
return (_this$state$items$pre = _this.state.items[previewIndex]) === null || _this$state$items$pre === void 0 ? void 0 : _this$state$items$pre.children;
|
140
|
+
_this.setState({
|
141
|
+
dragOver: itemIndex
|
142
|
+
}, _this.swapElements);
|
152
143
|
});
|
153
|
-
_defineProperty(_assertThisInitialized(_this), "handleItemDrop", function (
|
154
|
-
var
|
155
|
-
onDnD = _this$asProps.onDnD,
|
156
|
-
getI18nText = _this$asProps.getI18nText;
|
144
|
+
_defineProperty(_assertThisInitialized(_this), "handleItemDrop", function () {
|
145
|
+
var onDnD = _this.asProps.onDnD;
|
157
146
|
if (!onDnD) return;
|
158
147
|
var _this$state2 = _this.state,
|
159
148
|
items = _this$state2.items,
|
160
|
-
dragging = _this$state2.dragging
|
149
|
+
dragging = _this$state2.dragging,
|
150
|
+
dragOver = _this$state2.dragOver;
|
161
151
|
if (!dragging) return;
|
162
|
-
var currentItem = items[index];
|
152
|
+
var currentItem = dragOver !== null ? items[dragOver] : items[dragging.index];
|
163
153
|
var draggingItem = items[dragging.index];
|
164
154
|
if (!currentItem || !draggingItem) return;
|
165
155
|
var node = currentItem.isDropZone ? draggingItem.node : currentItem.node;
|
166
|
-
var itemText = node.getAttribute('aria-label') || node.textContent || "".concat(index + 1);
|
156
|
+
var itemText = node.getAttribute('aria-label') || node.textContent || "".concat((dragOver !== null && dragOver !== void 0 ? dragOver : dragging.index) + 1);
|
167
157
|
var zoneName = currentItem.zoneName;
|
168
158
|
var zonedItems = !zoneName ? items : items.filter(function (i) {
|
169
159
|
return (i === null || i === void 0 ? void 0 : i.zoneName) === zoneName;
|
@@ -173,14 +163,13 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
173
163
|
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;
|
174
164
|
});
|
175
165
|
var i18nKey = !zoneName ? 'dropped' : currentItem.isDropZone ? 'droppedJustWithZone' : 'droppedFullWithZone';
|
176
|
-
|
166
|
+
_this.setA11yHint(i18nKey, {
|
177
167
|
itemText: itemText,
|
178
168
|
itemPosition: itemPosition + 1,
|
179
169
|
itemsCount: itemsCount,
|
180
170
|
zoneName: zoneName || ''
|
181
171
|
});
|
182
172
|
_this.setState({
|
183
|
-
a11yHint: a11yHint,
|
184
173
|
dragging: null,
|
185
174
|
dragOver: null,
|
186
175
|
keyboardDraggingIndex: null,
|
@@ -194,16 +183,16 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
194
183
|
fromId: fromNode.id,
|
195
184
|
fromIndex: dragging.index,
|
196
185
|
toId: currentItem.id,
|
197
|
-
toIndex: index
|
186
|
+
toIndex: dragOver !== null && dragOver !== void 0 ? dragOver : dragging.index
|
198
187
|
});
|
199
188
|
}
|
200
189
|
}
|
201
190
|
if (!currentItem.draggingAllowed) {
|
202
|
-
var _this$asProps$onInser, _this$
|
203
|
-
(_this$asProps$onInser = (_this$
|
191
|
+
var _this$asProps$onInser, _this$asProps, _items$index;
|
192
|
+
(_this$asProps$onInser = (_this$asProps = _this.asProps).onInsertDroppable) === null || _this$asProps$onInser === void 0 ? void 0 : _this$asProps$onInser.call(_this$asProps, (_items$index = items[dragging.index]) === null || _items$index === void 0 ? void 0 : _items$index.children, currentItem.children);
|
204
193
|
} else {
|
205
|
-
var _this$asProps$onSwapD, _this$
|
206
|
-
(_this$asProps$onSwapD = (_this$
|
194
|
+
var _this$asProps$onSwapD, _this$asProps2, _items$index2;
|
195
|
+
(_this$asProps$onSwapD = (_this$asProps2 = _this.asProps).onSwapDraggable) === null || _this$asProps$onSwapD === void 0 ? void 0 : _this$asProps$onSwapD.call(_this$asProps2, (_items$index2 = items[dragging.index]) === null || _items$index2 === void 0 ? void 0 : _items$index2.children, currentItem.children);
|
207
196
|
}
|
208
197
|
});
|
209
198
|
_defineProperty(_assertThisInitialized(_this), "handleItemDragEnter", function (event) {
|
@@ -244,15 +233,44 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
244
233
|
});
|
245
234
|
}
|
246
235
|
});
|
236
|
+
_defineProperty(_assertThisInitialized(_this), "swapElements", function () {
|
237
|
+
var _dragging$index, _items$draggingIndex, _items$dragOver;
|
238
|
+
var _this$state3 = _this.state,
|
239
|
+
items = _this$state3.items,
|
240
|
+
dragging = _this$state3.dragging,
|
241
|
+
dragOver = _this$state3.dragOver;
|
242
|
+
var draggingIndex = (_dragging$index = dragging === null || dragging === void 0 ? void 0 : dragging.index) !== null && _dragging$index !== void 0 ? _dragging$index : null;
|
243
|
+
if (draggingIndex === null || dragOver === null) return;
|
244
|
+
var node = (_items$draggingIndex = items[draggingIndex]) === null || _items$draggingIndex === void 0 ? void 0 : _items$draggingIndex.node;
|
245
|
+
var dragNode = (_items$dragOver = items[dragOver]) === null || _items$dragOver === void 0 ? void 0 : _items$dragOver.node;
|
246
|
+
if (!node || !dragNode) return;
|
247
|
+
if (draggingIndex === dragOver) {
|
248
|
+
var _items$node, _items, _this$containerRef$cu;
|
249
|
+
var nextDragNode = (_items$node = (_items = items[dragOver + 1]) === null || _items === void 0 ? void 0 : _items.node) !== null && _items$node !== void 0 ? _items$node : null;
|
250
|
+
(_this$containerRef$cu = _this.containerRef.current) === null || _this$containerRef$cu === void 0 ? void 0 : _this$containerRef$cu.insertBefore(node, nextDragNode);
|
251
|
+
} else if (draggingIndex > dragOver) {
|
252
|
+
var _this$containerRef$cu2;
|
253
|
+
(_this$containerRef$cu2 = _this.containerRef.current) === null || _this$containerRef$cu2 === void 0 ? void 0 : _this$containerRef$cu2.insertBefore(node, dragNode);
|
254
|
+
} else {
|
255
|
+
var _this$containerRef$cu3;
|
256
|
+
(_this$containerRef$cu3 = _this.containerRef.current) === null || _this$containerRef$cu3 === void 0 ? void 0 : _this$containerRef$cu3.insertBefore(node, dragNode.nextSibling);
|
257
|
+
}
|
258
|
+
node.focus();
|
259
|
+
});
|
247
260
|
_defineProperty(_assertThisInitialized(_this), "handleItemKeyDown", function (event, index) {
|
261
|
+
if (event.target !== event.currentTarget) {
|
262
|
+
return;
|
263
|
+
}
|
264
|
+
if (_this.state.dragging && event.key === 'Tab') {
|
265
|
+
event.preventDefault();
|
266
|
+
event.stopPropagation();
|
267
|
+
}
|
248
268
|
if (event.key === ' ') {
|
249
269
|
var _this$state$items$ind;
|
250
270
|
event.preventDefault();
|
251
271
|
event.stopPropagation();
|
252
272
|
if (_this.state.dragging) {
|
253
|
-
|
254
|
-
var prevIndex = _this.state.dragging.index;
|
255
|
-
_this.handleItemDrop(index);
|
273
|
+
_this.handleItemDrop();
|
256
274
|
_this.setState({
|
257
275
|
dragging: null,
|
258
276
|
dragOver: null,
|
@@ -260,12 +278,6 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
260
278
|
animatedScaling: index,
|
261
279
|
hideHoverEffect: true
|
262
280
|
});
|
263
|
-
requestAnimationFrame(function () {
|
264
|
-
var _this$state$items$pre2, _this$state$items;
|
265
|
-
var prevIndexNode = (_this$state$items$pre2 = _this.state.items[prevIndex]) === null || _this$state$items$pre2 === void 0 ? void 0 : _this$state$items$pre2.node;
|
266
|
-
if (prevIndexNode !== document.activeElement) return;
|
267
|
-
(_this$state$items = _this.state.items[dragOver]) === null || _this$state$items === void 0 ? void 0 : _this$state$items.node.focus();
|
268
|
-
});
|
269
281
|
} else if ((_this$state$items$ind = _this.state.items[index]) !== null && _this$state$items$ind !== void 0 && _this$state$items$ind.draggingAllowed) {
|
270
282
|
_this.handleItemDragStart(index);
|
271
283
|
_this.setState({
|
@@ -278,53 +290,80 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
278
290
|
} else if (event.key === 'Escape' && _this.state.dragging) {
|
279
291
|
event.preventDefault();
|
280
292
|
event.stopPropagation();
|
281
|
-
|
282
|
-
var a11yHint = getI18nText('discarded');
|
293
|
+
_this.setA11yHint('discarded');
|
283
294
|
_this.setState({
|
284
|
-
a11yHint: a11yHint,
|
285
295
|
dragging: null,
|
286
296
|
dragOver: null,
|
287
297
|
keyboardDraggingIndex: null,
|
288
298
|
hideHoverEffect: true
|
289
299
|
});
|
300
|
+
var items = _this.state.items;
|
301
|
+
for (var i = items.length - 1; i >= 0; i--) {
|
302
|
+
var _items$i, _items$node2, _items2;
|
303
|
+
var node = (_items$i = items[i]) === null || _items$i === void 0 ? void 0 : _items$i.node;
|
304
|
+
var prevNode = (_items$node2 = (_items2 = items[i + 1]) === null || _items2 === void 0 ? void 0 : _items2.node) !== null && _items$node2 !== void 0 ? _items$node2 : null;
|
305
|
+
if (node) {
|
306
|
+
var _this$containerRef$cu4;
|
307
|
+
(_this$containerRef$cu4 = _this.containerRef.current) === null || _this$containerRef$cu4 === void 0 ? void 0 : _this$containerRef$cu4.insertBefore(node, prevNode);
|
308
|
+
}
|
309
|
+
}
|
310
|
+
if (event.target instanceof HTMLElement) {
|
311
|
+
event.target.focus();
|
312
|
+
}
|
290
313
|
return false;
|
291
|
-
} else if (event.key.startsWith('Arrow')) {
|
314
|
+
} else if (event.key.startsWith('Arrow') && _this.state.dragging) {
|
292
315
|
if (_this.state.animatedScaling !== null) {
|
293
316
|
_this.setState({
|
294
317
|
animatedScaling: null
|
295
318
|
});
|
296
319
|
}
|
297
|
-
var
|
298
|
-
if (
|
320
|
+
var _node = event.currentTarget;
|
321
|
+
if (!_node || _node !== document.activeElement) return;
|
299
322
|
event.preventDefault();
|
300
323
|
requestAnimationFrame(function () {
|
301
|
-
var _this$
|
302
|
-
if ((
|
303
|
-
var rects =
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
324
|
+
var _this$containerRef$cu5;
|
325
|
+
if (!(_node instanceof HTMLElement) || _node !== document.activeElement) return;
|
326
|
+
var rects = [];
|
327
|
+
var nodeRect = {
|
328
|
+
top: 0,
|
329
|
+
right: 0,
|
330
|
+
bottom: 0,
|
331
|
+
left: 0
|
332
|
+
};
|
333
|
+
(_this$containerRef$cu5 = _this.containerRef.current) === null || _this$containerRef$cu5 === void 0 ? void 0 : _this$containerRef$cu5.childNodes.forEach(function (childNode, index) {
|
334
|
+
if (childNode instanceof HTMLElement) {
|
335
|
+
var rect = childNode.getBoundingClientRect();
|
336
|
+
var roundedRect = {
|
337
|
+
top: Math.round(rect.top),
|
338
|
+
right: Math.round(rect.right),
|
339
|
+
bottom: Math.round(rect.bottom),
|
340
|
+
left: Math.round(rect.left)
|
341
|
+
};
|
342
|
+
rects.push(roundedRect);
|
343
|
+
if (childNode === _node) {
|
344
|
+
nodeRect = roundedRect;
|
345
|
+
}
|
346
|
+
}
|
312
347
|
});
|
313
|
-
var nextIndex = findNextRectangleIndex(rects,
|
314
|
-
if (nextIndex === -1)
|
315
|
-
|
316
|
-
|
348
|
+
var nextIndex = findNextRectangleIndex(rects, nodeRect, event.key);
|
349
|
+
if (nextIndex === -1) return false;
|
350
|
+
if (_node && _this.state.dragging !== null) {
|
351
|
+
_this.setA11yHint('grabbing', {
|
352
|
+
itemPosition: nextIndex + 1,
|
353
|
+
itemsCount: _this.state.items.length
|
354
|
+
});
|
355
|
+
_this.setState({
|
356
|
+
dragOver: nextIndex
|
357
|
+
}, function () {
|
358
|
+
_this.swapElements();
|
359
|
+
});
|
317
360
|
}
|
318
|
-
|
361
|
+
return false;
|
319
362
|
});
|
320
363
|
}
|
321
364
|
});
|
322
|
-
_defineProperty(_assertThisInitialized(_this), "handleItemFocus", function (
|
365
|
+
_defineProperty(_assertThisInitialized(_this), "handleItemFocus", function () {
|
323
366
|
if (!_this.state.dragging) return;
|
324
|
-
_this.setState({
|
325
|
-
dragOver: index,
|
326
|
-
keyboardDraggingIndex: index
|
327
|
-
});
|
328
367
|
_this.updateItemScaling();
|
329
368
|
});
|
330
369
|
_defineProperty(_assertThisInitialized(_this), "makeItemDragStartHandler", function (index) {
|
@@ -332,16 +371,6 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
332
371
|
return _this.handleItemDragStart(index);
|
333
372
|
};
|
334
373
|
});
|
335
|
-
_defineProperty(_assertThisInitialized(_this), "makeItemDropHandler", function (index) {
|
336
|
-
return function () {
|
337
|
-
return _this.handleItemDrop(index);
|
338
|
-
};
|
339
|
-
});
|
340
|
-
_defineProperty(_assertThisInitialized(_this), "makeItemFocusHandler", function (index) {
|
341
|
-
return function () {
|
342
|
-
return _this.handleItemFocus(index);
|
343
|
-
};
|
344
|
-
});
|
345
374
|
_defineProperty(_assertThisInitialized(_this), "makeItemKeyDownHandler", function (index) {
|
346
375
|
return function (event) {
|
347
376
|
return _this.handleItemKeyDown(event, index);
|
@@ -401,41 +430,42 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
401
430
|
if (itemIndex === -1 || typeof itemIndex !== 'number') return undefined;
|
402
431
|
return itemIndex;
|
403
432
|
});
|
433
|
+
_defineProperty(_assertThisInitialized(_this), "setA11yHint", function (key) {
|
434
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
435
|
+
clearTimeout(_this.clearA11yHintTimeout);
|
436
|
+
var getI18nText = _this.asProps.getI18nText;
|
437
|
+
_this.setState({
|
438
|
+
a11yHint: getI18nText(key, options)
|
439
|
+
});
|
440
|
+
if ((key === 'dropped' || key === 'discarded') && canUseDOM()) {
|
441
|
+
_this.clearA11yHintTimeout = window.setTimeout(function () {
|
442
|
+
_this.setState({
|
443
|
+
a11yHint: null
|
444
|
+
});
|
445
|
+
}, 2000);
|
446
|
+
}
|
447
|
+
});
|
404
448
|
return _this;
|
405
449
|
}
|
406
450
|
_createClass(DragAndDropRoot, [{
|
407
|
-
key: "preview",
|
408
|
-
get: function get() {
|
409
|
-
var _this$state$dragging2;
|
410
|
-
var dragging = (_this$state$dragging2 = this.state.dragging) === null || _this$state$dragging2 === void 0 ? void 0 : _this$state$dragging2.index;
|
411
|
-
var dragOver = this.state.dragOver;
|
412
|
-
if (typeof dragging !== 'number' || typeof dragOver !== 'number') return {};
|
413
|
-
var result = {};
|
414
|
-
var shift = dragging < dragOver ? 1 : -1;
|
415
|
-
for (var i = dragging; i !== dragOver; i += shift) {
|
416
|
-
result[i] = i + shift;
|
417
|
-
}
|
418
|
-
result[dragOver] = dragging;
|
419
|
-
return result;
|
420
|
-
}
|
421
|
-
}, {
|
422
451
|
key: "getDraggableProps",
|
423
452
|
value: function getDraggableProps(_, index) {
|
453
|
+
var uid = this.asProps.uid;
|
424
454
|
return {
|
455
|
+
uid: uid,
|
425
456
|
index: index,
|
426
457
|
onDragStart: this.makeItemDragStartHandler(index),
|
427
458
|
onDragEnd: this.handleItemDragEnd,
|
428
459
|
onDragOver: this.handleItemDragOver,
|
429
460
|
onDragEnter: this.handleItemDragEnter,
|
430
|
-
onDrop: this.
|
461
|
+
onDrop: this.handleItemDrop,
|
431
462
|
onMouseMove: this.handleItemMouseMove,
|
432
463
|
onKeyDown: this.makeItemKeyDownHandler(index),
|
433
|
-
onFocus: this.
|
464
|
+
onFocus: this.handleItemFocus,
|
434
465
|
dropPreview: index === this.state.dragOver,
|
435
466
|
keyboardDragging: index === this.state.keyboardDraggingIndex,
|
436
467
|
reversedScaling: this.state.reversedScaling,
|
437
468
|
dark: this.asProps.theme === 'dark',
|
438
|
-
swapPreview: this.getSwapPreview(index),
|
439
469
|
hideHoverEffect: this.state.hideHoverEffect,
|
440
470
|
animatedScaling: index === this.state.animatedScaling
|
441
471
|
};
|
@@ -450,6 +480,7 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
450
480
|
}, {
|
451
481
|
key: "componentWillUnmount",
|
452
482
|
value: function componentWillUnmount() {
|
483
|
+
clearTimeout(this.clearA11yHintTimeout);
|
453
484
|
document.removeEventListener('keydown', this.handlePageKeyDown, {
|
454
485
|
capture: true
|
455
486
|
});
|
@@ -459,7 +490,7 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
459
490
|
value: function componentDidUpdate(prevProps) {
|
460
491
|
if (prevProps.customFocus !== this.asProps.customFocus) {
|
461
492
|
var itemIndex = this.getCustomFocusItemIndex(this.asProps.customFocus);
|
462
|
-
if (this.state.items[itemIndex]) this.handleItemFocus(
|
493
|
+
if (this.state.items[itemIndex]) this.handleItemFocus();
|
463
494
|
}
|
464
495
|
}
|
465
496
|
}, {
|
@@ -470,23 +501,36 @@ var DragAndDropRoot = /*#__PURE__*/function (_Component) {
|
|
470
501
|
var attach = this.attach,
|
471
502
|
detach = this.detach;
|
472
503
|
var SA11yHint = 'div';
|
473
|
-
var
|
504
|
+
var _this$state4 = this.state,
|
505
|
+
a11yHint = _this$state4.a11yHint,
|
506
|
+
dragging = _this$state4.dragging;
|
474
507
|
var context = {
|
475
508
|
attach: attach,
|
476
509
|
detach: detach
|
477
510
|
};
|
511
|
+
var _this$asProps3 = this.asProps,
|
512
|
+
getI18nText = _this$asProps3.getI18nText,
|
513
|
+
uid = _this$asProps3.uid;
|
478
514
|
return _ref4 = sstyled(this.asProps.styles), /*#__PURE__*/React.createElement(DragAndDropContext.Provider, {
|
479
515
|
value: context
|
480
516
|
}, a11yHint && /*#__PURE__*/React.createElement(SA11yHint, _ref4.cn("SA11yHint", {
|
481
517
|
"role": 'alert',
|
482
518
|
"aria-live": 'assertive'
|
483
|
-
}), a11yHint), /*#__PURE__*/React.createElement(Box, _assignProps({
|
519
|
+
}), a11yHint), /*#__PURE__*/React.createElement(Box, _assignProps({
|
520
|
+
"role": 'group',
|
521
|
+
"ref": this.containerRef
|
522
|
+
}, _ref)), /*#__PURE__*/React.createElement(ScreenReaderOnly, _ref4.cn("ScreenReaderOnly", {
|
523
|
+
"id": "describe-draggable-".concat(uid),
|
524
|
+
"aria-hidden": 'true'
|
525
|
+
}), getI18nText('describe', {
|
526
|
+
control: 'Space'
|
527
|
+
})));
|
484
528
|
}
|
485
529
|
}]);
|
486
530
|
return DragAndDropRoot;
|
487
531
|
}(Component);
|
488
532
|
_defineProperty(DragAndDropRoot, "displayName", 'DragAndDrop');
|
489
|
-
_defineProperty(DragAndDropRoot, "enhance", [i18nEnhance(localizedMessages)]);
|
533
|
+
_defineProperty(DragAndDropRoot, "enhance", [i18nEnhance(localizedMessages), uniqueIDEnhance()]);
|
490
534
|
_defineProperty(DragAndDropRoot, "defaultProps", {
|
491
535
|
theme: 'default',
|
492
536
|
i18n: localizedMessages,
|
@@ -508,12 +552,12 @@ var Draggable = function Draggable(props) {
|
|
508
552
|
noDrag = _props$noDrag === void 0 ? false : _props$noDrag,
|
509
553
|
index = props.index,
|
510
554
|
children = props.children,
|
511
|
-
swapPreview = props.swapPreview,
|
512
555
|
Children = props.Children,
|
513
556
|
id = props.id,
|
514
557
|
zoneName = props.zoneName,
|
515
558
|
_props$isDropZone = props.isDropZone,
|
516
|
-
isDropZone = _props$isDropZone === void 0 ? false : _props$isDropZone
|
559
|
+
isDropZone = _props$isDropZone === void 0 ? false : _props$isDropZone,
|
560
|
+
uid = props.uid;
|
517
561
|
var resolvedChildren = React.useMemo(function () {
|
518
562
|
return typeof children === 'function' ? children(props) : children;
|
519
563
|
}, [children, props]);
|
@@ -534,8 +578,10 @@ var Draggable = function Draggable(props) {
|
|
534
578
|
return _ref5 = sstyled(styles), /*#__PURE__*/React.createElement(SDraggable, _ref5.cn("SDraggable", _objectSpread({}, _assignProps2({
|
535
579
|
"ref": ref,
|
536
580
|
"draggable": !noDrag,
|
537
|
-
"placement": placement
|
538
|
-
|
581
|
+
"placement": placement,
|
582
|
+
"role": 'group',
|
583
|
+
"aria-describedby": "describe-draggable-".concat(uid)
|
584
|
+
}, _ref2))), /*#__PURE__*/React.createElement(Children, _ref5.cn("Children", {})));
|
539
585
|
};
|
540
586
|
Draggable.enhance = [keyboardFocusEnhance()];
|
541
587
|
var findNextRectangleIndex = function findNextRectangleIndex(rectangles, current, direction) {
|
@@ -596,7 +642,8 @@ var DropZone = function DropZone(props) {
|
|
596
642
|
var styles = props.styles;
|
597
643
|
return _ref6 = sstyled(styles), /*#__PURE__*/React.createElement(SDropZone, _ref6.cn("SDropZone", _objectSpread({}, _assignProps3({
|
598
644
|
"noDrag": true,
|
599
|
-
"isDropZone": true
|
645
|
+
"isDropZone": true,
|
646
|
+
"aria-describedby": null
|
600
647
|
}, _ref3))));
|
601
648
|
};
|
602
649
|
var DragAndDrop = createComponent(DragAndDropRoot, {
|