intergalactic 15.128.0-prerelease.0 → 15.128.0-prerelease.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/accordion/lib/cjs/Accordion.js +9 -9
- package/accordion/lib/es6/Accordion.js +9 -9
- package/accordion/lib/esm/Accordion.mjs +85 -85
- package/accordion/package.json +1 -1
- package/add-filter/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/lib/esm/Animation.mjs +57 -57
- package/animation/lib/esm/Collapse.mjs +47 -47
- package/animation/lib/esm/FadeInOut.mjs +35 -35
- package/animation/lib/esm/Scale.mjs +45 -45
- package/animation/lib/esm/Slide.mjs +34 -34
- package/animation/lib/esm/Transform.mjs +42 -42
- package/animation/package.json +1 -1
- package/badge/lib/cjs/Badge.js +6 -6
- package/badge/lib/es6/Badge.js +6 -6
- package/badge/lib/esm/Badge.mjs +19 -19
- 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/lib/esm/BaseTrigger.mjs +51 -51
- package/base-trigger/lib/esm/ButtonTrigger.mjs +19 -19
- package/base-trigger/lib/esm/FilterTrigger.mjs +67 -67
- package/base-trigger/lib/esm/LinkTrigger.mjs +45 -45
- 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/lib/esm/Breadcrumbs.mjs +46 -46
- package/breadcrumbs/package.json +1 -1
- package/breakpoints/package.json +1 -1
- package/bulk-textarea/package.json +1 -1
- package/button/lib/cjs/component/Button/Button.js +28 -28
- package/button/lib/cjs/component/ButtonLink/ButtonLink.js +20 -20
- package/button/lib/es6/component/Button/Button.js +28 -28
- package/button/lib/es6/component/ButtonLink/ButtonLink.js +20 -20
- package/button/lib/esm/component/Button/Button.mjs +56 -56
- package/button/lib/esm/component/ButtonLink/ButtonLink.mjs +54 -54
- package/button/package.json +1 -1
- package/card/lib/cjs/Card.js +6 -6
- package/card/lib/es6/Card.js +6 -6
- package/card/lib/esm/Card.mjs +31 -31
- package/card/package.json +1 -1
- package/carousel/lib/cjs/Carousel.js +21 -21
- package/carousel/lib/es6/Carousel.js +21 -21
- package/carousel/lib/esm/Carousel.mjs +132 -132
- package/carousel/package.json +1 -1
- package/checkbox/lib/cjs/Checkbox.js +18 -18
- package/checkbox/lib/es6/Checkbox.js +18 -18
- package/checkbox/lib/esm/Checkbox.mjs +88 -88
- package/checkbox/package.json +1 -1
- package/color-picker/lib/cjs/ColorPicker.js +24 -24
- package/color-picker/lib/cjs/PaletteManager.js +24 -24
- 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 +24 -24
- package/color-picker/lib/es6/components/InputColor.js +24 -24
- package/color-picker/lib/esm/ColorPicker.mjs +96 -96
- package/color-picker/lib/esm/PaletteManager.mjs +61 -61
- package/color-picker/lib/esm/components/InputColor.mjs +86 -86
- package/color-picker/package.json +1 -1
- package/components.json +68 -68
- package/core/package.json +1 -1
- package/counter/lib/cjs/Counter.js +11 -11
- package/counter/lib/es6/Counter.js +11 -11
- package/counter/lib/esm/Counter.mjs +21 -21
- package/counter/package.json +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/PlotA11yView.js +2 -2
- 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/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/PlotA11yView.js +2 -2
- 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/esm/semcore/d3-chart/src/Area.mjs +72 -72
- package/d3-chart/lib/esm/semcore/d3-chart/src/Axis.mjs +169 -169
- package/d3-chart/lib/esm/semcore/d3-chart/src/Bar.mjs +63 -63
- package/d3-chart/lib/esm/semcore/d3-chart/src/Bubble.mjs +104 -104
- package/d3-chart/lib/esm/semcore/d3-chart/src/CompactHorizontalBar.mjs +75 -75
- package/d3-chart/lib/esm/semcore/d3-chart/src/Donut.mjs +127 -127
- package/d3-chart/lib/esm/semcore/d3-chart/src/Dots.mjs +46 -46
- package/d3-chart/lib/esm/semcore/d3-chart/src/HorizontalBar.mjs +55 -55
- package/d3-chart/lib/esm/semcore/d3-chart/src/Hover.mjs +37 -37
- package/d3-chart/lib/esm/semcore/d3-chart/src/Line.mjs +80 -80
- package/d3-chart/lib/esm/semcore/d3-chart/src/Plot.mjs +18 -18
- package/d3-chart/lib/esm/semcore/d3-chart/src/Radar.mjs +206 -206
- package/d3-chart/lib/esm/semcore/d3-chart/src/RadialTree.mjs +102 -102
- package/d3-chart/lib/esm/semcore/d3-chart/src/Reference.mjs +95 -95
- package/d3-chart/lib/esm/semcore/d3-chart/src/ScatterPlot.mjs +32 -32
- package/d3-chart/lib/esm/semcore/d3-chart/src/Tooltip.mjs +49 -49
- package/d3-chart/lib/esm/semcore/d3-chart/src/Venn.mjs +69 -69
- package/d3-chart/lib/esm/semcore/d3-chart/src/a11y/PlotA11yModule.mjs +31 -31
- package/d3-chart/lib/esm/semcore/d3-chart/src/a11y/PlotA11yView.mjs +39 -39
- package/d3-chart/lib/esm/semcore/d3-chart/src/component/ChartLegend/LegendFlex/LegendFlex.mjs +27 -27
- package/d3-chart/lib/esm/semcore/d3-chart/src/component/ChartLegend/LegendItem/LegendItem.mjs +92 -92
- package/d3-chart/lib/esm/semcore/d3-chart/src/component/ChartLegend/LegendTable/LegendTable.mjs +34 -34
- package/d3-chart/package.json +1 -1
- 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/lib/esm/Body.mjs +66 -66
- package/data-table/lib/esm/DataTable.mjs +237 -237
- 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/lib/esm/components/Calendar.mjs +134 -134
- package/date-picker/lib/esm/components/DateRangeComparatorAbstract.mjs +114 -114
- package/date-picker/lib/esm/components/InputTrigger.mjs +150 -150
- package/date-picker/lib/esm/components/PickerAbstract.mjs +58 -58
- package/date-picker/lib/esm/components/RangePickerAbstract.mjs +46 -46
- 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/lib/esm/Divider.mjs +37 -37
- package/divider/package.json +1 -1
- package/dot/lib/cjs/Dot.js +10 -10
- package/dot/lib/es6/Dot.js +10 -10
- package/dot/lib/esm/Dot.mjs +37 -37
- package/dot/package.json +1 -1
- package/drag-and-drop/lib/cjs/DragAndDrop.js +17 -17
- package/drag-and-drop/lib/es6/DragAndDrop.js +17 -17
- package/drag-and-drop/lib/esm/DragAndDrop.mjs +186 -186
- package/drag-and-drop/package.json +1 -1
- package/dropdown/lib/cjs/Dropdown.js +16 -16
- package/dropdown/lib/es6/Dropdown.js +16 -16
- package/dropdown/lib/esm/Dropdown.mjs +84 -84
- package/dropdown/package.json +1 -1
- package/dropdown-menu/lib/cjs/DropdownMenu.js +18 -18
- package/dropdown-menu/lib/es6/DropdownMenu.js +18 -18
- package/dropdown-menu/lib/esm/DropdownMenu.mjs +138 -138
- package/dropdown-menu/package.json +1 -1
- package/ellipsis/lib/cjs/Ellipsis.js +10 -10
- package/ellipsis/lib/es6/Ellipsis.js +10 -10
- package/ellipsis/lib/esm/Ellipsis.mjs +73 -73
- package/ellipsis/package.json +1 -1
- package/errors/lib/cjs/Error.js +9 -9
- package/errors/lib/es6/Error.js +9 -9
- package/errors/lib/esm/Error.mjs +35 -35
- 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/lib/esm/FeaturePopover.mjs +58 -58
- package/feature-popover/package.json +1 -1
- 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/cjs/screen-reader-only-box/ScreenReaderOnlyBox.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/lib/es6/screen-reader-only-box/ScreenReaderOnlyBox.js +2 -2
- package/flex-box/lib/esm/Box/useBox.mjs +50 -50
- package/flex-box/lib/esm/Flex/useFlex.mjs +15 -15
- package/flex-box/lib/esm/invalid-state-box/InvalidStateBox.mjs +8 -8
- package/flex-box/lib/esm/screen-reader-only-box/ScreenReaderOnlyBox.mjs +10 -10
- 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/lib/esm/FullscreenModal.mjs +73 -73
- 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/lib/esm/Grid.mjs +160 -160
- package/grid/package.json +1 -1
- package/i18n-unplugin/package.json +1 -1
- 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/MetaColored/l/index.js +4 -4
- package/icon/color/MetaColored/l/index.mjs +4 -4
- package/icon/color/MetaColored/m/index.js +4 -4
- package/icon/color/MetaColored/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/lib/esm/Icon.mjs +32 -32
- 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/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/lib/esm/InlineEdit.mjs +38 -38
- 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/lib/esm/InlineInput.mjs +125 -125
- 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/lib/esm/Input.mjs +91 -91
- package/input/package.json +1 -1
- package/input-mask/lib/cjs/InputMask.js +6 -6
- package/input-mask/lib/es6/InputMask.js +6 -6
- package/input-mask/lib/esm/InputMask.mjs +70 -70
- 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/lib/esm/InputNumber.mjs +126 -126
- 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/lib/esm/InputTags.mjs +112 -112
- 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/lib/esm/Link.mjs +54 -54
- package/link/package.json +1 -1
- package/mini-chart/lib/cjs/component/score/Donut.js +9 -9
- package/mini-chart/lib/cjs/component/score/Line.js +18 -18
- 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 +18 -18
- package/mini-chart/lib/es6/component/trend/Bar.js +7 -7
- package/mini-chart/lib/es6/component/trend/Line.js +7 -7
- package/mini-chart/lib/esm/component/score/Donut.mjs +38 -38
- package/mini-chart/lib/esm/component/score/Line.mjs +47 -47
- package/mini-chart/lib/esm/component/trend/Bar.mjs +31 -31
- package/mini-chart/lib/esm/component/trend/Line.mjs +32 -32
- 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/lib/esm/Modal.mjs +96 -96
- package/modal/package.json +1 -1
- package/neighbor-location/package.json +1 -1
- package/notice/lib/cjs/Notice.js +16 -16
- package/notice/lib/es6/Notice.js +16 -16
- package/notice/lib/esm/Notice.mjs +70 -70
- 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/lib/esm/NoticeBubble.mjs +115 -115
- 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/lib/esm/NoticeGlobal.mjs +51 -51
- 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 +12 -12
- package/pagination/lib/es6/Pagination.js +12 -12
- package/pagination/lib/esm/Pagination.mjs +69 -69
- package/pagination/package.json +1 -1
- package/pills/lib/cjs/Pills.js +13 -13
- package/pills/lib/es6/Pills.js +13 -13
- package/pills/lib/esm/Pills.mjs +74 -74
- package/pills/package.json +1 -1
- package/popper/lib/cjs/Popper.js +6 -6
- package/popper/lib/es6/Popper.js +6 -6
- package/popper/lib/esm/Popper.mjs +79 -79
- 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/lib/esm/Info.mjs +26 -26
- package/product-head/lib/esm/ProductHead.mjs +37 -37
- package/product-head/lib/esm/Title.mjs +17 -17
- 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/lib/esm/ProgressBar.mjs +60 -60
- 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/lib/esm/Radio.mjs +113 -113
- 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/lib/esm/ScrollArea.mjs +98 -98
- package/scroll-area/lib/esm/ScrollBar.mjs +40 -40
- package/scroll-area/package.json +1 -1
- 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/lib/esm/SidePanel.mjs +56 -56
- 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/lib/esm/Charts/Area.mjs +27 -27
- package/skeleton/lib/esm/Charts/Bar.mjs +23 -23
- package/skeleton/lib/esm/Charts/Bubble.mjs +24 -24
- package/skeleton/lib/esm/Charts/CompactHorizontalBar.mjs +22 -22
- package/skeleton/lib/esm/Charts/Donut.mjs +24 -24
- package/skeleton/lib/esm/Charts/Histogram.mjs +22 -22
- package/skeleton/lib/esm/Charts/Line.mjs +25 -25
- package/skeleton/lib/esm/Charts/RadialTree.mjs +10 -10
- package/skeleton/lib/esm/Charts/ScatterPlot.mjs +19 -19
- package/skeleton/lib/esm/Charts/Venn.mjs +24 -24
- package/skeleton/lib/esm/Skeleton.mjs +44 -44
- package/skeleton/package.json +1 -1
- package/slider/lib/cjs/Slider.js +8 -8
- package/slider/lib/es6/Slider.js +8 -8
- package/slider/lib/esm/Slider.mjs +78 -78
- package/slider/package.json +1 -1
- package/spin/lib/cjs/Spin.js +13 -13
- package/spin/lib/es6/Spin.js +13 -13
- package/spin/lib/esm/Spin.mjs +41 -41
- 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/lib/esm/SpinContainer.mjs +43 -43
- 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/lib/esm/Sticky.mjs +18 -18
- package/sticky/package.json +1 -1
- package/switch/lib/cjs/Switch.js +21 -21
- package/switch/lib/es6/Switch.js +21 -21
- package/switch/lib/esm/Switch.mjs +104 -104
- 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/lib/esm/TabLine.mjs +76 -76
- 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/lib/esm/TabPanel.mjs +39 -39
- 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/lib/esm/Tag.mjs +114 -114
- package/tag/package.json +1 -1
- package/textarea/lib/cjs/Textarea.js +8 -8
- package/textarea/lib/es6/Textarea.js +8 -8
- package/textarea/lib/esm/Textarea.mjs +49 -49
- package/textarea/package.json +1 -1
- 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/lib/esm/Tooltip.mjs +113 -113
- 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/lib/esm/Blockquote.mjs +15 -15
- package/typography/lib/esm/Hint.mjs +41 -41
- package/typography/lib/esm/List.mjs +48 -48
- package/typography/lib/esm/Text.mjs +53 -53
- 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/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/lib/esm/WidgetEmpty.mjs +19 -19
- 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/lib/esm/Wizard.mjs +94 -94
- package/wizard/package.json +1 -1
@@ -4,11 +4,11 @@ import W from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
4
|
import L from "@babel/runtime/helpers/esm/createClass";
|
5
5
|
import p from "@babel/runtime/helpers/esm/assertThisInitialized";
|
6
6
|
import U from "@babel/runtime/helpers/esm/inherits";
|
7
|
-
import
|
7
|
+
import q from "@babel/runtime/helpers/esm/createSuper";
|
8
8
|
import s from "@babel/runtime/helpers/esm/defineProperty";
|
9
|
-
import { sstyled as
|
10
|
-
import
|
11
|
-
import
|
9
|
+
import { sstyled as J } from 'intergalactic/utils/lib/core/index';
|
10
|
+
import X, { sstyled as F, assignProps as Z, Component as Y } from 'intergalactic/core';
|
11
|
+
import I from "react";
|
12
12
|
import { Box as O, ScreenReaderOnly as G } from 'intergalactic/flex-box';
|
13
13
|
import { localizedMessages as R } from "./translations/__intergalactic-dynamic-locales.mjs";
|
14
14
|
import Q from 'intergalactic/utils/lib/enhances/i18nEnhance';
|
@@ -16,43 +16,43 @@ import V from 'intergalactic/utils/lib/use/useEnhancedEffect';
|
|
16
16
|
import $ from 'intergalactic/utils/lib/enhances/keyboardFocusEnhance';
|
17
17
|
import ee from 'intergalactic/utils/lib/uniqueID';
|
18
18
|
import te from 'intergalactic/utils/lib/canUseDOM';
|
19
|
-
var
|
19
|
+
var ae = (
|
20
20
|
/*__reshadow_css_start__*/
|
21
|
-
(
|
21
|
+
(J.insert(
|
22
22
|
/*__inner_css_start__*/
|
23
|
-
'.
|
24
|
-
"
|
23
|
+
'.___SDraggable_1ajtv_gg_.__draggable_1ajtv_gg_{position:relative;cursor:grab;-moz-user-select:none;-webkit-user-select:none;user-select:none}.___SDraggable_1ajtv_gg_.__draggable_1ajtv_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_1ajtv_gg_.__draggable_1ajtv_gg_:hover::before{display:block}}.___SDraggable_1ajtv_gg_.__draggable_1ajtv_gg_.__hideHoverEffect_1ajtv_gg_:not(._role_menuitemcheckbox_1ajtv_gg_)::before{display:none}.___SDraggable_1ajtv_gg_._placement_right_1ajtv_gg_::before{right:0}.___SDraggable_1ajtv_gg_._placement_bottom_1ajtv_gg_::before{bottom:0}.___SDraggable_1ajtv_gg_._placement_left_1ajtv_gg_::before{left:0}.___SDraggable_1ajtv_gg_._placement_top_1ajtv_gg_::before{top:0;left:0;width:100%;height:16px}.___SDraggable_1ajtv_gg_._placement_bottom_1ajtv_gg_::before{left:0;width:100%;height:16px}.___SDraggable_1ajtv_gg_._placement_left_1ajtv_gg_::before,.___SDraggable_1ajtv_gg_._placement_right_1ajtv_gg_::before{top:0;width:16px;height:100%}.___SDropZone_1ajtv_gg_{position:relative}.___SDraggable_1ajtv_gg_.__dropPreview_1ajtv_gg_,.___SDropZone_1ajtv_gg_.__dropPreview_1ajtv_gg_{background-color:var(--intergalactic-bg-secondary-neutral, #f4f5f9)}.___SDraggable_1ajtv_gg_.__dark_1ajtv_gg_.__dropPreview_1ajtv_gg_,.___SDropZone_1ajtv_gg_.__dark_1ajtv_gg_.__dropPreview_1ajtv_gg_{background-color:var(--intergalactic-bg-primary-invert-active, #484a54)}.___SDraggable_1ajtv_gg_:focus{outline:0}.___SDraggable_1ajtv_gg_.__keyboardFocused_1ajtv_gg_:focus{box-shadow:none}.___SDraggable_1ajtv_gg_.__keyboardFocused_1ajtv_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_1ajtv_gg_.__keyboardDragging_1ajtv_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_1ajtv_gg_.__keyboardDragging_1ajtv_gg_.__hideHoverEffect_1ajtv_gg_::before,.___SDraggable_1ajtv_gg_.__keyboardDragging_1ajtv_gg_::before{display:block}.___SDraggable_1ajtv_gg_.__keyboardDragging_1ajtv_gg_.__reversedScaling_1ajtv_gg_{scale:.95}.___SDraggable_1ajtv_gg_.__animatedScaling_1ajtv_gg_{transition:all calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out}.___SA11yHint_1ajtv_gg_{position:absolute;margin-top:-1px;height:1px;width:1px;clip:rect(0 0 0 0)}@media (prefers-reduced-motion:reduce){.___SDraggable_1ajtv_gg_{transition:none}}',
|
24
|
+
"1ajtv_gg_"
|
25
25
|
), {
|
26
|
-
__SDraggable: "
|
27
|
-
_placement_top: "
|
28
|
-
_placement_right: "
|
29
|
-
_placement_left: "
|
30
|
-
_placement_bottom: "
|
31
|
-
__SDropZone: "
|
32
|
-
_dropPreview: "
|
33
|
-
_dark: "
|
34
|
-
_keyboardFocused: "
|
35
|
-
_keyboardDragging: "
|
36
|
-
_reversedScaling: "
|
37
|
-
_animatedScaling: "
|
38
|
-
__SA11yHint: "
|
39
|
-
_draggable: "
|
40
|
-
_hideHoverEffect: "
|
41
|
-
_role_menuitemcheckbox: "
|
26
|
+
__SDraggable: "___SDraggable_1ajtv_gg_",
|
27
|
+
_placement_top: "_placement_top_1ajtv_gg_",
|
28
|
+
_placement_right: "_placement_right_1ajtv_gg_",
|
29
|
+
_placement_left: "_placement_left_1ajtv_gg_",
|
30
|
+
_placement_bottom: "_placement_bottom_1ajtv_gg_",
|
31
|
+
__SDropZone: "___SDropZone_1ajtv_gg_",
|
32
|
+
_dropPreview: "__dropPreview_1ajtv_gg_",
|
33
|
+
_dark: "__dark_1ajtv_gg_",
|
34
|
+
_keyboardFocused: "__keyboardFocused_1ajtv_gg_",
|
35
|
+
_keyboardDragging: "__keyboardDragging_1ajtv_gg_",
|
36
|
+
_reversedScaling: "__reversedScaling_1ajtv_gg_",
|
37
|
+
_animatedScaling: "__animatedScaling_1ajtv_gg_",
|
38
|
+
__SA11yHint: "___SA11yHint_1ajtv_gg_",
|
39
|
+
_draggable: "__draggable_1ajtv_gg_",
|
40
|
+
_hideHoverEffect: "__hideHoverEffect_1ajtv_gg_",
|
41
|
+
_role_menuitemcheckbox: "_role_menuitemcheckbox_1ajtv_gg_"
|
42
42
|
})
|
43
43
|
), T = function() {
|
44
|
-
}, K = /* @__PURE__ */
|
44
|
+
}, K = /* @__PURE__ */ I.createContext({
|
45
45
|
attach: T,
|
46
46
|
detach: T
|
47
47
|
}), P = /* @__PURE__ */ function(H) {
|
48
48
|
U(b, H);
|
49
|
-
var
|
49
|
+
var v = q(b);
|
50
50
|
function b() {
|
51
51
|
var e;
|
52
52
|
W(this, b);
|
53
|
-
for (var h = arguments.length,
|
54
|
-
|
55
|
-
return e =
|
53
|
+
for (var h = arguments.length, _ = new Array(h), D = 0; D < h; D++)
|
54
|
+
_[D] = arguments[D];
|
55
|
+
return e = v.call.apply(v, [this].concat(_)), s(p(e), "state", {
|
56
56
|
items: [],
|
57
57
|
dragging: null,
|
58
58
|
dragOver: null,
|
@@ -62,25 +62,25 @@ var ne = (
|
|
62
62
|
keyboardDraggingIndex: null,
|
63
63
|
animatedScaling: null,
|
64
64
|
reversedScaling: !1
|
65
|
-
}), s(p(e), "containerRef", /* @__PURE__ */
|
66
|
-
var
|
67
|
-
if (
|
68
|
-
var
|
65
|
+
}), s(p(e), "containerRef", /* @__PURE__ */ I.createRef()), s(p(e), "clearA11yHintTimeout", 0), s(p(e), "handleItemDragStart", function(t) {
|
66
|
+
var n = e.state.items, a = n[t];
|
67
|
+
if (a) {
|
68
|
+
var r = a.node.getAttribute("aria-label") || a.node.textContent || "".concat(t + 1), i = a.zoneName, g = i ? n.filter(function(l) {
|
69
69
|
return (l == null ? void 0 : l.zoneName) === i;
|
70
|
-
}) :
|
71
|
-
return (l == null ? void 0 : l.node) ===
|
70
|
+
}) : n, o = g.length, u = g.findIndex(function(l) {
|
71
|
+
return (l == null ? void 0 : l.node) === a.node || (l == null ? void 0 : l.id) && (l == null ? void 0 : l.id) === a.id;
|
72
72
|
});
|
73
73
|
e.setA11yHint(i ? "grabbedWithZone" : "grabbed", {
|
74
|
-
itemText:
|
75
|
-
itemPosition:
|
74
|
+
itemText: r,
|
75
|
+
itemPosition: u + 1,
|
76
76
|
itemsCount: o,
|
77
77
|
zoneName: i || ""
|
78
78
|
}), e.setState(function(l) {
|
79
79
|
return {
|
80
80
|
dragging: {
|
81
81
|
index: t,
|
82
|
-
initialItemsRects: l.items.map(function(
|
83
|
-
return
|
82
|
+
initialItemsRects: l.items.map(function(c) {
|
83
|
+
return c == null ? void 0 : c.node.getBoundingClientRect();
|
84
84
|
})
|
85
85
|
}
|
86
86
|
};
|
@@ -95,22 +95,22 @@ var ne = (
|
|
95
95
|
});
|
96
96
|
}), s(p(e), "handleItemDragOver", function(t) {
|
97
97
|
t.preventDefault();
|
98
|
-
var
|
99
|
-
if (
|
100
|
-
var g =
|
98
|
+
var n = e.state, a = n.items, r = n.dragging, i = n.dragOver;
|
99
|
+
if (r) {
|
100
|
+
var g = r.initialItemsRects.findIndex(function(d) {
|
101
101
|
return d && t.clientX > d.x && t.clientX < d.x + d.width && t.clientY > d.y && t.clientY < d.y + d.height;
|
102
|
-
}), o =
|
103
|
-
if (!(!o || !
|
104
|
-
var l = o.isDropZone ?
|
105
|
-
return (d == null ? void 0 : d.zoneName) ===
|
106
|
-
}) :
|
102
|
+
}), o = a[g], u = a[r.index];
|
103
|
+
if (!(!o || !u || g === i)) {
|
104
|
+
var l = o.isDropZone ? u.node : o.node, c = l.getAttribute("aria-label") || l.textContent || "".concat(g + 1), f = o.zoneName, m = f ? a.filter(function(d) {
|
105
|
+
return (d == null ? void 0 : d.zoneName) === f;
|
106
|
+
}) : a, y = m.length, k = m.findIndex(function(d) {
|
107
107
|
return (d == null ? void 0 : d.node) === o.node || (d == null ? void 0 : d.id) && (d == null ? void 0 : d.id) === o.id;
|
108
|
-
}), S =
|
108
|
+
}), S = f ? o.isDropZone ? "grabbingJustWithZone" : "grabbingFullWithZone" : "grabbing";
|
109
109
|
e.setA11yHint(S, {
|
110
|
-
itemText:
|
110
|
+
itemText: c,
|
111
111
|
itemPosition: k + 1,
|
112
112
|
itemsCount: y,
|
113
|
-
zoneName:
|
113
|
+
zoneName: f || ""
|
114
114
|
}), e.setState({
|
115
115
|
dragOver: g
|
116
116
|
}, e.swapElements);
|
@@ -119,41 +119,41 @@ var ne = (
|
|
119
119
|
}), s(p(e), "handleItemDrop", function() {
|
120
120
|
var t = e.asProps.onDnD;
|
121
121
|
if (t) {
|
122
|
-
var
|
123
|
-
if (
|
124
|
-
var g = i !== null ?
|
122
|
+
var n = e.state, a = n.items, r = n.dragging, i = n.dragOver;
|
123
|
+
if (r) {
|
124
|
+
var g = i !== null ? a[i] : a[r.index], o = a[r.index];
|
125
125
|
if (!(!g || !o)) {
|
126
|
-
var
|
127
|
-
return (x == null ? void 0 : x.zoneName) ===
|
128
|
-
}) :
|
126
|
+
var u = g.isDropZone ? o.node : g.node, l = u.getAttribute("aria-label") || u.textContent || "".concat((i ?? r.index) + 1), c = g.zoneName, f = c ? a.filter(function(x) {
|
127
|
+
return (x == null ? void 0 : x.zoneName) === c;
|
128
|
+
}) : a, m = f.length, y = f.findIndex(function(x) {
|
129
129
|
return (x == null ? void 0 : x.node) === g.node || (x == null ? void 0 : x.id) && (x == null ? void 0 : x.id) === g.id;
|
130
|
-
}), k =
|
130
|
+
}), k = c ? g.isDropZone ? "droppedJustWithZone" : "droppedFullWithZone" : "dropped";
|
131
131
|
if (e.setA11yHint(k, {
|
132
132
|
itemText: l,
|
133
133
|
itemPosition: y + 1,
|
134
|
-
itemsCount:
|
135
|
-
zoneName:
|
134
|
+
itemsCount: m,
|
135
|
+
zoneName: c || ""
|
136
136
|
}), e.setState({
|
137
137
|
dragging: null,
|
138
138
|
dragOver: null,
|
139
139
|
keyboardDraggingIndex: null,
|
140
140
|
hideHoverEffect: !0,
|
141
141
|
reversedScaling: !1
|
142
|
-
}),
|
143
|
-
var S =
|
142
|
+
}), r && a[r.index]) {
|
143
|
+
var S = a[r.index];
|
144
144
|
S && t({
|
145
145
|
fromId: S.id,
|
146
|
-
fromIndex:
|
146
|
+
fromIndex: r.index,
|
147
147
|
toId: g.id,
|
148
|
-
toIndex: i ??
|
148
|
+
toIndex: i ?? r.index
|
149
149
|
});
|
150
150
|
}
|
151
151
|
if (g.draggingAllowed) {
|
152
|
-
var
|
153
|
-
(
|
152
|
+
var j, A, C;
|
153
|
+
(j = (A = e.asProps).onSwapDraggable) === null || j === void 0 || j.call(A, (C = a[r.index]) === null || C === void 0 ? void 0 : C.children, g.children);
|
154
154
|
} else {
|
155
155
|
var d, w, E;
|
156
|
-
(d = (w = e.asProps).onInsertDroppable) === null || d === void 0 || d.call(w, (E =
|
156
|
+
(d = (w = e.asProps).onInsertDroppable) === null || d === void 0 || d.call(w, (E = a[r.index]) === null || E === void 0 ? void 0 : E.children, g.children);
|
157
157
|
}
|
158
158
|
}
|
159
159
|
}
|
@@ -165,54 +165,54 @@ var ne = (
|
|
165
165
|
hideHoverEffect: !1
|
166
166
|
});
|
167
167
|
}), s(p(e), "updateItemScaling", function() {
|
168
|
-
var t,
|
169
|
-
if (
|
170
|
-
for (var
|
168
|
+
var t, n = (t = e.state.items[0]) === null || t === void 0 ? void 0 : t.node;
|
169
|
+
if (n && !e.state.reversedScaling) {
|
170
|
+
for (var a = n.getBoundingClientRect(), r = !1, i = n.parentElement; i && i !== document.body; ) {
|
171
171
|
var g = getComputedStyle(i), o = i.getBoundingClientRect();
|
172
172
|
if (g.overflow !== "visible") {
|
173
|
-
if (o.left >=
|
174
|
-
|
173
|
+
if (o.left >= a.left || o.right <= a.right || o.top >= a.top || o.bottom <= a.bottom) {
|
174
|
+
r = !0;
|
175
175
|
break;
|
176
176
|
}
|
177
|
-
} else if (o.left <
|
177
|
+
} else if (o.left < a.left && o.right > a.right && o.top < a.top && o.bottom > a.bottom)
|
178
178
|
break;
|
179
179
|
i = i.parentElement;
|
180
180
|
}
|
181
|
-
e.state.reversedScaling !==
|
182
|
-
reversedScaling:
|
181
|
+
e.state.reversedScaling !== r && e.setState({
|
182
|
+
reversedScaling: r
|
183
183
|
});
|
184
184
|
}
|
185
185
|
}), s(p(e), "swapElements", function() {
|
186
|
-
var t,
|
187
|
-
if (!(
|
188
|
-
var l = (
|
189
|
-
if (!(!l || !
|
190
|
-
if (
|
191
|
-
var
|
186
|
+
var t, n, a, r = e.state, i = r.items, g = r.dragging, o = r.dragOver, u = (t = g == null ? void 0 : g.index) !== null && t !== void 0 ? t : null;
|
187
|
+
if (!(u === null || o === null)) {
|
188
|
+
var l = (n = i[u]) === null || n === void 0 ? void 0 : n.node, c = (a = i[o]) === null || a === void 0 ? void 0 : a.node;
|
189
|
+
if (!(!l || !c)) {
|
190
|
+
if (u === o) {
|
191
|
+
var f, m, y, k = (f = (m = i[o + 1]) === null || m === void 0 ? void 0 : m.node) !== null && f !== void 0 ? f : null;
|
192
192
|
(y = e.containerRef.current) === null || y === void 0 || y.insertBefore(l, k);
|
193
|
-
} else if (
|
193
|
+
} else if (u > o) {
|
194
194
|
var S;
|
195
|
-
(S = e.containerRef.current) === null || S === void 0 || S.insertBefore(l,
|
195
|
+
(S = e.containerRef.current) === null || S === void 0 || S.insertBefore(l, c);
|
196
196
|
} else {
|
197
197
|
var d;
|
198
|
-
(d = e.containerRef.current) === null || d === void 0 || d.insertBefore(l,
|
198
|
+
(d = e.containerRef.current) === null || d === void 0 || d.insertBefore(l, c.nextSibling);
|
199
199
|
}
|
200
200
|
l.focus();
|
201
201
|
}
|
202
202
|
}
|
203
|
-
}), s(p(e), "handleItemKeyDown", function(t,
|
203
|
+
}), s(p(e), "handleItemKeyDown", function(t, n) {
|
204
204
|
if (t.target === t.currentTarget) {
|
205
205
|
if (e.state.dragging && t.key === "Tab" && (t.preventDefault(), t.stopPropagation()), t.key === " ") {
|
206
|
-
var
|
206
|
+
var a;
|
207
207
|
return t.preventDefault(), t.stopPropagation(), e.state.dragging ? (e.handleItemDrop(), e.setState({
|
208
208
|
dragging: null,
|
209
209
|
dragOver: null,
|
210
210
|
keyboardDraggingIndex: null,
|
211
|
-
animatedScaling:
|
211
|
+
animatedScaling: n,
|
212
212
|
hideHoverEffect: !0
|
213
|
-
})) : (
|
214
|
-
keyboardDraggingIndex:
|
215
|
-
animatedScaling:
|
213
|
+
})) : (a = e.state.items[n]) !== null && a !== void 0 && a.draggingAllowed && (e.handleItemDragStart(n), e.setState({
|
214
|
+
keyboardDraggingIndex: n,
|
215
|
+
animatedScaling: n
|
216
216
|
}), e.updateItemScaling()), !1;
|
217
217
|
} else if (t.key === "Escape" && e.state.dragging) {
|
218
218
|
t.preventDefault(), t.stopPropagation(), e.setA11yHint("discarded"), e.setState({
|
@@ -221,11 +221,11 @@ var ne = (
|
|
221
221
|
keyboardDraggingIndex: null,
|
222
222
|
hideHoverEffect: !0
|
223
223
|
});
|
224
|
-
for (var
|
225
|
-
var g, o,
|
224
|
+
for (var r = e.state.items, i = r.length - 1; i >= 0; i--) {
|
225
|
+
var g, o, u, l = (g = r[i]) === null || g === void 0 ? void 0 : g.node, c = (o = (u = r[i + 1]) === null || u === void 0 ? void 0 : u.node) !== null && o !== void 0 ? o : null;
|
226
226
|
if (l) {
|
227
|
-
var
|
228
|
-
(
|
227
|
+
var f;
|
228
|
+
(f = e.containerRef.current) === null || f === void 0 || f.insertBefore(l, c);
|
229
229
|
}
|
230
230
|
}
|
231
231
|
return t.target instanceof HTMLElement && t.target.focus(), !1;
|
@@ -233,11 +233,11 @@ var ne = (
|
|
233
233
|
e.state.animatedScaling !== null && e.setState({
|
234
234
|
animatedScaling: null
|
235
235
|
});
|
236
|
-
var
|
237
|
-
if (!
|
236
|
+
var m = t.currentTarget;
|
237
|
+
if (!m || m !== document.activeElement) return;
|
238
238
|
t.preventDefault(), t.stopPropagation(), requestAnimationFrame(function() {
|
239
239
|
var y;
|
240
|
-
if (!(!(
|
240
|
+
if (!(!(m instanceof HTMLElement) || m !== document.activeElement)) {
|
241
241
|
var k = [], S = {
|
242
242
|
top: 0,
|
243
243
|
right: 0,
|
@@ -246,17 +246,17 @@ var ne = (
|
|
246
246
|
};
|
247
247
|
(y = e.containerRef.current) === null || y === void 0 || y.childNodes.forEach(function(w, E) {
|
248
248
|
if (w instanceof HTMLElement && w.getAttribute("draggable") !== null) {
|
249
|
-
var
|
250
|
-
top: Math.round(
|
251
|
-
right: Math.round(
|
252
|
-
bottom: Math.round(
|
253
|
-
left: Math.round(
|
249
|
+
var j = w.getBoundingClientRect(), A = {
|
250
|
+
top: Math.round(j.top),
|
251
|
+
right: Math.round(j.right),
|
252
|
+
bottom: Math.round(j.bottom),
|
253
|
+
left: Math.round(j.left)
|
254
254
|
};
|
255
|
-
k.push(A), w ===
|
255
|
+
k.push(A), w === m && (S = A);
|
256
256
|
}
|
257
257
|
});
|
258
|
-
var d =
|
259
|
-
return d === -1 ||
|
258
|
+
var d = ne(k, S, t.key);
|
259
|
+
return d === -1 || m && e.state.dragging !== null && (e.setA11yHint("grabbing", {
|
260
260
|
itemPosition: d + 1,
|
261
261
|
itemsCount: e.state.items.length
|
262
262
|
}), e.setState({
|
@@ -275,53 +275,53 @@ var ne = (
|
|
275
275
|
return e.handleItemDragStart(t);
|
276
276
|
};
|
277
277
|
}), s(p(e), "makeItemKeyDownHandler", function(t) {
|
278
|
-
return function(
|
279
|
-
return e.handleItemKeyDown(
|
278
|
+
return function(n) {
|
279
|
+
return e.handleItemKeyDown(n, t);
|
280
280
|
};
|
281
281
|
}), s(p(e), "handlePageKeyDown", function(t) {
|
282
282
|
if (e.asProps.customFocus !== void 0) {
|
283
|
-
var
|
284
|
-
e.state.items[
|
283
|
+
var n = e.getCustomFocusItemIndex(e.asProps.customFocus);
|
284
|
+
e.state.items[n] && e.handleItemKeyDown(t, n);
|
285
285
|
}
|
286
286
|
}), s(p(e), "attach", function(t) {
|
287
|
-
var
|
287
|
+
var n = t.index, a = t.children, r = t.node, i = t.id, g = t.draggingAllowed, o = t.zoneName, u = t.isDropZone;
|
288
288
|
e.setState(function(l) {
|
289
|
-
var
|
290
|
-
if (((
|
291
|
-
var
|
292
|
-
return
|
293
|
-
children:
|
294
|
-
node:
|
289
|
+
var c, f;
|
290
|
+
if (((c = l.items[n]) === null || c === void 0 ? void 0 : c.children) === a && ((f = l.items[n]) === null || f === void 0 ? void 0 : f.node) === r) return l;
|
291
|
+
var m = l.items;
|
292
|
+
return m[n] = {
|
293
|
+
children: a,
|
294
|
+
node: r,
|
295
295
|
id: i,
|
296
296
|
draggingAllowed: g,
|
297
297
|
zoneName: o,
|
298
|
-
isDropZone:
|
298
|
+
isDropZone: u
|
299
299
|
}, {
|
300
|
-
items: z(
|
300
|
+
items: z(m)
|
301
301
|
};
|
302
302
|
});
|
303
303
|
}), s(p(e), "detach", function(t) {
|
304
|
-
e.setState(function(
|
305
|
-
if (!
|
306
|
-
var
|
307
|
-
return
|
308
|
-
items: z(
|
304
|
+
e.setState(function(n) {
|
305
|
+
if (!n.items[t]) return n;
|
306
|
+
var a = n.items;
|
307
|
+
return a[t] = void 0, {
|
308
|
+
items: z(a)
|
309
309
|
};
|
310
310
|
});
|
311
311
|
}), s(p(e), "getCustomFocusItemIndex", function(t) {
|
312
312
|
if (t !== void 0) {
|
313
|
-
var
|
314
|
-
if (typeof
|
315
|
-
return (
|
316
|
-
})), !(
|
317
|
-
return
|
313
|
+
var n = t;
|
314
|
+
if (typeof n == "string" && (n = e.state.items.findIndex(function(a) {
|
315
|
+
return (a == null ? void 0 : a.id) === t;
|
316
|
+
})), !(n === -1 || typeof n != "number"))
|
317
|
+
return n;
|
318
318
|
}
|
319
319
|
}), s(p(e), "setA11yHint", function(t) {
|
320
|
-
var
|
320
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
321
321
|
clearTimeout(e.clearA11yHintTimeout);
|
322
|
-
var
|
322
|
+
var a = e.asProps.getI18nText;
|
323
323
|
e.setState({
|
324
|
-
a11yHint:
|
324
|
+
a11yHint: a(t, n)
|
325
325
|
}), (t === "dropped" || t === "discarded") && te() && (e.clearA11yHintTimeout = window.setTimeout(function() {
|
326
326
|
e.setState({
|
327
327
|
a11yHint: null
|
@@ -331,25 +331,25 @@ var ne = (
|
|
331
331
|
}
|
332
332
|
return L(b, [{
|
333
333
|
key: "getDraggableProps",
|
334
|
-
value: function(h,
|
334
|
+
value: function(h, _) {
|
335
335
|
var D = this.asProps.uid;
|
336
336
|
return {
|
337
337
|
uid: D,
|
338
|
-
index:
|
339
|
-
onDragStart: this.makeItemDragStartHandler(
|
338
|
+
index: _,
|
339
|
+
onDragStart: this.makeItemDragStartHandler(_),
|
340
340
|
onDragEnd: this.handleItemDragEnd,
|
341
341
|
onDragOver: this.handleItemDragOver,
|
342
342
|
onDragEnter: this.handleItemDragEnter,
|
343
343
|
onDrop: this.handleItemDrop,
|
344
344
|
onMouseMove: this.handleItemMouseMove,
|
345
|
-
onKeyDown: this.makeItemKeyDownHandler(
|
345
|
+
onKeyDown: this.makeItemKeyDownHandler(_),
|
346
346
|
onFocus: this.handleItemFocus,
|
347
|
-
dropPreview:
|
348
|
-
keyboardDragging:
|
347
|
+
dropPreview: _ === this.state.dragOver,
|
348
|
+
keyboardDragging: _ === this.state.keyboardDraggingIndex,
|
349
349
|
reversedScaling: this.state.reversedScaling,
|
350
350
|
dark: this.asProps.theme === "dark",
|
351
351
|
hideHoverEffect: this.state.hideHoverEffect,
|
352
|
-
animatedScaling:
|
352
|
+
animatedScaling: _ === this.state.animatedScaling
|
353
353
|
};
|
354
354
|
}
|
355
355
|
}, {
|
@@ -370,36 +370,36 @@ var ne = (
|
|
370
370
|
key: "componentDidUpdate",
|
371
371
|
value: function(h) {
|
372
372
|
if (h.customFocus !== this.asProps.customFocus) {
|
373
|
-
var
|
374
|
-
this.state.items[
|
373
|
+
var _ = this.getCustomFocusItemIndex(this.asProps.customFocus);
|
374
|
+
this.state.items[_] && this.handleItemFocus();
|
375
375
|
}
|
376
376
|
}
|
377
377
|
}, {
|
378
378
|
key: "render",
|
379
379
|
value: function() {
|
380
|
-
var h = this.asProps,
|
381
|
-
|
380
|
+
var h = this.asProps, _, D = this.attach, t = this.detach, n = "div", a = this.state, r = a.a11yHint;
|
381
|
+
a.dragging;
|
382
382
|
var i = {
|
383
383
|
attach: D,
|
384
384
|
detach: t
|
385
|
-
}, g = this.asProps, o = g.getI18nText,
|
386
|
-
return
|
385
|
+
}, g = this.asProps, o = g.getI18nText, u = g.uid;
|
386
|
+
return _ = F(this.asProps.styles), /* @__PURE__ */ I.createElement(K.Provider, {
|
387
387
|
value: i
|
388
|
-
},
|
388
|
+
}, r && /* @__PURE__ */ I.createElement(n, _.cn("SA11yHint", {
|
389
389
|
role: "alert",
|
390
390
|
"aria-live": "assertive"
|
391
|
-
}),
|
391
|
+
}), r), /* @__PURE__ */ I.createElement(O, Z({
|
392
392
|
role: "group",
|
393
393
|
ref: this.containerRef
|
394
|
-
}, h)), /* @__PURE__ */
|
395
|
-
id: "describe-draggable-".concat(
|
394
|
+
}, h)), /* @__PURE__ */ I.createElement(G, _.cn("ScreenReaderOnly", {
|
395
|
+
id: "describe-draggable-".concat(u),
|
396
396
|
"aria-hidden": "true"
|
397
397
|
}), o("describe", {
|
398
398
|
control: "Space"
|
399
399
|
})));
|
400
400
|
}
|
401
401
|
}]), b;
|
402
|
-
}(
|
402
|
+
}(Y);
|
403
403
|
s(P, "displayName", "DragAndDrop");
|
404
404
|
s(P, "enhance", [Q(R), ee()]);
|
405
405
|
s(P, "defaultProps", {
|
@@ -407,84 +407,84 @@ s(P, "defaultProps", {
|
|
407
407
|
i18n: R,
|
408
408
|
locale: "en"
|
409
409
|
});
|
410
|
-
s(P, "style",
|
411
|
-
var B = function(
|
412
|
-
var b = arguments[0], e, h = O,
|
413
|
-
return typeof l == "function" ? l(
|
414
|
-
}, [l,
|
410
|
+
s(P, "style", ae);
|
411
|
+
var B = function(v) {
|
412
|
+
var b = arguments[0], e, h = O, _ = I.useRef(), D = I.useContext(K), t = D.attach, n = D.detach, a = v.styles, r = v.placement, i = r === void 0 ? "right" : r, g = v.noDrag, o = g === void 0 ? !1 : g, u = v.index, l = v.children, c = v.Children, f = v.id, m = v.zoneName, y = v.isDropZone, k = y === void 0 ? !1 : y, S = v.uid, d = v.isCustomFocus, w = d === void 0 ? !1 : d, E = v.keyboardFocused, j = I.useMemo(function() {
|
413
|
+
return typeof l == "function" ? l(v) : l;
|
414
|
+
}, [l, v]);
|
415
415
|
return V(function() {
|
416
416
|
return t({
|
417
|
-
index:
|
418
|
-
children:
|
419
|
-
node:
|
420
|
-
id:
|
417
|
+
index: u,
|
418
|
+
children: j,
|
419
|
+
node: _.current,
|
420
|
+
id: f,
|
421
421
|
draggingAllowed: !o,
|
422
|
-
zoneName:
|
422
|
+
zoneName: m,
|
423
423
|
isDropZone: k
|
424
424
|
}), function() {
|
425
|
-
return
|
425
|
+
return n(u);
|
426
426
|
};
|
427
|
-
}, [
|
428
|
-
ref:
|
427
|
+
}, [u, j, t, n, f]), e = F(a), /* @__PURE__ */ I.createElement(h, e.cn("SDraggable", N({}, Z({
|
428
|
+
ref: _,
|
429
429
|
draggable: !o,
|
430
430
|
placement: i,
|
431
431
|
role: "group",
|
432
432
|
"aria-describedby": "describe-draggable-".concat(S),
|
433
433
|
"use:keyboardFocused": w ? !1 : E
|
434
|
-
}, b))), /* @__PURE__ */
|
434
|
+
}, b))), /* @__PURE__ */ I.createElement(c, e.cn("Children", {})));
|
435
435
|
};
|
436
436
|
B.enhance = [$()];
|
437
|
-
var
|
438
|
-
for (var h = null,
|
439
|
-
var t =
|
437
|
+
var ne = function(v, b, e) {
|
438
|
+
for (var h = null, _ = 1 / 0, D = 0; D < v.length; D++) {
|
439
|
+
var t = v[D];
|
440
440
|
if (t && t !== b) {
|
441
|
-
var
|
442
|
-
if (!(!
|
441
|
+
var n = b.top <= t.bottom && b.bottom >= t.top, a = b.left <= t.right && b.right >= t.left;
|
442
|
+
if (!(!n && !a))
|
443
443
|
switch (e) {
|
444
444
|
case "ArrowRight": {
|
445
|
-
if (!
|
446
|
-
var
|
447
|
-
if (
|
448
|
-
h = t,
|
445
|
+
if (!n) continue;
|
446
|
+
var r = t.left - b.right;
|
447
|
+
if (r < 0 || r >= _) continue;
|
448
|
+
h = t, _ = r;
|
449
449
|
break;
|
450
450
|
}
|
451
451
|
case "ArrowLeft": {
|
452
|
-
if (!
|
452
|
+
if (!n) continue;
|
453
453
|
var i = b.left - t.right;
|
454
|
-
if (i < 0 || i >=
|
455
|
-
h = t,
|
454
|
+
if (i < 0 || i >= _) continue;
|
455
|
+
h = t, _ = i;
|
456
456
|
break;
|
457
457
|
}
|
458
458
|
case "ArrowUp": {
|
459
|
-
if (!
|
459
|
+
if (!a) continue;
|
460
460
|
var g = b.top - t.bottom;
|
461
|
-
if (g < 0 || g >=
|
462
|
-
h = t,
|
461
|
+
if (g < 0 || g >= _) continue;
|
462
|
+
h = t, _ = g;
|
463
463
|
break;
|
464
464
|
}
|
465
465
|
case "ArrowDown": {
|
466
|
-
if (!
|
466
|
+
if (!a) continue;
|
467
467
|
var o = t.top - b.bottom;
|
468
|
-
if (o < 0 || o >=
|
469
|
-
h = t,
|
468
|
+
if (o < 0 || o >= _) continue;
|
469
|
+
h = t, _ = o;
|
470
470
|
break;
|
471
471
|
}
|
472
472
|
}
|
473
473
|
}
|
474
474
|
}
|
475
|
-
return
|
476
|
-
}, M = function(
|
477
|
-
var b = arguments[0], e, h =
|
478
|
-
return e = F(
|
475
|
+
return v.indexOf(h);
|
476
|
+
}, M = function(v) {
|
477
|
+
var b = arguments[0], e, h = re.Draggable, _ = v.styles;
|
478
|
+
return e = F(_), /* @__PURE__ */ I.createElement(h, e.cn("SDropZone", N({}, Z({
|
479
479
|
noDrag: !0,
|
480
480
|
isDropZone: !0,
|
481
481
|
"aria-describedby": null
|
482
482
|
}, b))));
|
483
|
-
},
|
483
|
+
}, re = X(P, {
|
484
484
|
Draggable: B,
|
485
485
|
DropZone: M,
|
486
486
|
Dropable: M
|
487
487
|
});
|
488
488
|
export {
|
489
|
-
|
489
|
+
re as default
|
490
490
|
};
|