intergalactic 15.109.0 → 15.110.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 +55 -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 +9 -9
- package/base-trigger/lib/cjs/FilterTrigger.js.map +1 -1
- 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 +10 -10
- package/base-trigger/lib/es6/FilterTrigger.js.map +1 -1
- 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/AbstractButton/AbstractButton.js +1 -1
- package/button/lib/cjs/component/AbstractButton/AbstractButton.js.map +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/AbstractButton/AbstractButton.js +1 -1
- package/button/lib/es6/component/AbstractButton/AbstractButton.js.map +1 -1
- 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 +21 -21
- package/carousel/lib/es6/Carousel.js +21 -21
- 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/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/package.json +1 -1
- package/components.json +73 -73
- package/core/package.json +1 -1
- package/counter/lib/cjs/Counter.js +11 -11
- package/counter/lib/es6/Counter.js +11 -11
- 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/package.json +1 -1
- package/data-table/lib/cjs/Body.js +5 -3
- package/data-table/lib/cjs/Body.js.map +1 -1
- package/data-table/lib/cjs/DataTable.js +36 -36
- package/data-table/lib/es6/Body.js +5 -3
- package/data-table/lib/es6/Body.js.map +1 -1
- package/data-table/lib/es6/DataTable.js +36 -36
- package/data-table/package.json +1 -1
- package/date-picker/lib/cjs/DateRangeComparator.js +2 -4
- package/date-picker/lib/cjs/DateRangeComparator.js.map +1 -1
- package/date-picker/lib/cjs/components/Calendar.js +75 -47
- package/date-picker/lib/cjs/components/Calendar.js.map +1 -1
- package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js +42 -34
- package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js.map +1 -1
- package/date-picker/lib/cjs/components/InputTrigger.js +39 -37
- package/date-picker/lib/cjs/components/InputTrigger.js.map +1 -1
- package/date-picker/lib/cjs/components/PickerAbstract.js +47 -35
- package/date-picker/lib/cjs/components/PickerAbstract.js.map +1 -1
- package/date-picker/lib/cjs/components/RangePickerAbstract.js +54 -46
- package/date-picker/lib/cjs/components/RangePickerAbstract.js.map +1 -1
- package/date-picker/lib/cjs/components/index.js +5 -6
- package/date-picker/lib/cjs/components/index.js.map +1 -1
- package/date-picker/lib/cjs/style/calendar.shadow.css +17 -8
- package/date-picker/lib/cjs/translations/en.json +7 -2
- package/date-picker/lib/es6/DateRangeComparator.js +2 -4
- package/date-picker/lib/es6/DateRangeComparator.js.map +1 -1
- package/date-picker/lib/es6/components/Calendar.js +75 -47
- package/date-picker/lib/es6/components/Calendar.js.map +1 -1
- package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js +42 -34
- package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js.map +1 -1
- package/date-picker/lib/es6/components/InputTrigger.js +39 -37
- package/date-picker/lib/es6/components/InputTrigger.js.map +1 -1
- package/date-picker/lib/es6/components/PickerAbstract.js +47 -35
- package/date-picker/lib/es6/components/PickerAbstract.js.map +1 -1
- package/date-picker/lib/es6/components/RangePickerAbstract.js +54 -46
- package/date-picker/lib/es6/components/RangePickerAbstract.js.map +1 -1
- package/date-picker/lib/es6/components/index.js +5 -6
- package/date-picker/lib/es6/components/index.js.map +1 -1
- package/date-picker/lib/es6/style/calendar.shadow.css +17 -8
- package/date-picker/lib/es6/translations/en.json +7 -2
- 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/lib/cjs/DragAndDrop.js +16 -16
- package/drag-and-drop/lib/es6/DragAndDrop.js +16 -16
- package/drag-and-drop/package.json +1 -1
- package/dropdown/index.d.ts +15 -2
- package/dropdown/lib/cjs/AbstractDropdown.js +365 -0
- package/dropdown/lib/cjs/AbstractDropdown.js.map +1 -0
- package/dropdown/lib/cjs/Dropdown.js +79 -28
- package/dropdown/lib/cjs/Dropdown.js.map +1 -1
- package/dropdown/lib/cjs/DropdownItem.js +18 -0
- package/dropdown/lib/cjs/DropdownItem.js.map +1 -0
- package/dropdown/lib/cjs/index.d.js.map +1 -1
- package/dropdown/lib/cjs/index.js +19 -0
- package/dropdown/lib/cjs/index.js.map +1 -1
- package/dropdown/lib/cjs/style/dropdown.shadow.css +95 -0
- package/dropdown/lib/es6/AbstractDropdown.js +355 -0
- package/dropdown/lib/es6/AbstractDropdown.js.map +1 -0
- package/dropdown/lib/es6/Dropdown.js +80 -27
- package/dropdown/lib/es6/Dropdown.js.map +1 -1
- package/dropdown/lib/es6/DropdownItem.js +12 -0
- package/dropdown/lib/es6/DropdownItem.js.map +1 -0
- package/dropdown/lib/es6/index.d.js.map +1 -1
- package/dropdown/lib/es6/index.js +1 -0
- package/dropdown/lib/es6/index.js.map +1 -1
- package/dropdown/lib/es6/style/dropdown.shadow.css +95 -0
- package/dropdown/lib/types/index.d.ts +15 -2
- package/dropdown/package.json +1 -1
- package/dropdown-menu/index.d.ts +3 -11
- package/dropdown-menu/lib/cjs/DropdownMenu.js +167 -418
- 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/index.js +0 -7
- package/dropdown-menu/lib/cjs/index.js.map +1 -1
- package/dropdown-menu/lib/cjs/style/dropdown-menu.shadow.css +3 -91
- package/dropdown-menu/lib/cjs/translations/en.json +1 -3
- package/dropdown-menu/lib/es6/DropdownMenu.js +167 -419
- 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/index.js +0 -1
- package/dropdown-menu/lib/es6/index.js.map +1 -1
- package/dropdown-menu/lib/es6/style/dropdown-menu.shadow.css +3 -91
- package/dropdown-menu/lib/es6/translations/en.json +1 -3
- package/dropdown-menu/lib/types/index.d.ts +3 -11
- 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/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/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/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/slider-rating/SliderRating.js +6 -6
- 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/color/Confluence/l/index.js +4 -4
- package/icon/color/Confluence/l/index.mjs +4 -4
- package/icon/color/Confluence/m/index.js +4 -4
- package/icon/color/Confluence/m/index.mjs +4 -4
- package/icon/color/MicrosoftOffice/l/index.js +10 -10
- package/icon/color/MicrosoftOffice/l/index.mjs +10 -10
- package/icon/color/MicrosoftOffice/m/index.js +10 -10
- package/icon/color/MicrosoftOffice/m/index.mjs +10 -10
- package/icon/lib/cjs/Icon.js +6 -6
- package/icon/lib/es6/Icon.js +6 -6
- 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/InputMask.d.ts +4 -0
- package/input-mask/lib/cjs/InputMask.js +11 -9
- package/input-mask/lib/cjs/InputMask.js.map +1 -1
- package/input-mask/lib/es6/InputMask.js +11 -9
- package/input-mask/lib/es6/InputMask.js.map +1 -1
- package/input-mask/lib/types/InputMask.d.ts +4 -0
- 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 +13 -13
- package/link/lib/cjs/Link.js.map +1 -1
- package/link/lib/es6/Link.js +13 -13
- package/link/lib/es6/Link.js.map +1 -1
- 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 +17 -17
- package/mini-chart/lib/cjs/component/trend/Bar.js +7 -7
- package/mini-chart/lib/cjs/component/trend/Line.js +7 -7
- package/mini-chart/lib/es6/component/score/Donut.js +9 -9
- package/mini-chart/lib/es6/component/score/Line.js +17 -17
- package/mini-chart/lib/es6/component/trend/Bar.js +7 -7
- package/mini-chart/lib/es6/component/trend/Line.js +7 -7
- package/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 +10 -10
- package/pagination/lib/es6/Pagination.js +10 -10
- 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/index.d.ts +16 -2
- package/select/lib/cjs/InputSearch.js +12 -13
- package/select/lib/cjs/InputSearch.js.map +1 -1
- package/select/lib/cjs/Select.js +149 -119
- package/select/lib/cjs/Select.js.map +1 -1
- package/select/lib/cjs/index.d.js.map +1 -1
- package/select/lib/cjs/style/input-search.shadow.css +5 -1
- package/select/lib/cjs/style/select.shadow.css +1 -1
- package/select/lib/cjs/translations/en.json +1 -3
- package/select/lib/es6/InputSearch.js +12 -13
- package/select/lib/es6/InputSearch.js.map +1 -1
- package/select/lib/es6/Select.js +142 -112
- package/select/lib/es6/Select.js.map +1 -1
- package/select/lib/es6/index.d.js.map +1 -1
- package/select/lib/es6/style/input-search.shadow.css +5 -1
- package/select/lib/es6/style/select.shadow.css +1 -1
- package/select/lib/es6/translations/en.json +1 -3
- package/select/lib/types/index.d.ts +16 -2
- package/select/package.json +1 -1
- package/side-panel/lib/cjs/SidePanel.js +17 -17
- package/side-panel/lib/cjs/SidePanel.js.map +1 -1
- package/side-panel/lib/es6/SidePanel.js +17 -17
- package/side-panel/lib/es6/SidePanel.js.map +1 -1
- 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 +21 -21
- package/switch/lib/es6/Switch.js +21 -21
- 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/enhances/focusSourceEnhance.d.ts +2 -0
- package/utils/lib/enhances/focusSourceEnhance.js.map +1 -1
- package/utils/lib/enhances/focusSourceEnhance.mjs.map +1 -1
- package/utils/lib/getAccessibleName.d.ts +1 -0
- package/utils/lib/getAccessibleName.js +56 -0
- package/utils/lib/getAccessibleName.js.map +1 -0
- package/utils/lib/getAccessibleName.mjs +49 -0
- package/utils/lib/getAccessibleName.mjs.map +1 -0
- package/utils/lib/getEventTarget.js +38 -4
- package/utils/lib/getEventTarget.js.map +1 -1
- package/utils/lib/getEventTarget.mjs +37 -4
- package/utils/lib/getEventTarget.mjs.map +1 -1
- package/utils/lib/injectStyle.js +1 -1
- package/utils/lib/injectStyle.mjs +1 -1
- package/utils/lib/inputProps.d.ts +1 -1
- package/utils/lib/inputProps.js +3 -3
- package/utils/lib/inputProps.js.map +1 -1
- package/utils/lib/inputProps.mjs +2 -2
- package/utils/lib/inputProps.mjs.map +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 +14 -14
- package/wizard/lib/cjs/Wizard.js.map +1 -1
- package/wizard/lib/es6/Wizard.js +14 -14
- package/wizard/lib/es6/Wizard.js.map +1 -1
- package/wizard/package.json +1 -1
- package/dropdown-menu/lib/cjs/DropdownMenuOld.js +0 -682
- package/dropdown-menu/lib/cjs/DropdownMenuOld.js.map +0 -1
- package/dropdown-menu/lib/cjs/style/dropdown-menu-old.shadow.css +0 -224
- package/dropdown-menu/lib/es6/DropdownMenuOld.js +0 -683
- package/dropdown-menu/lib/es6/DropdownMenuOld.js.map +0 -1
- package/dropdown-menu/lib/es6/style/dropdown-menu-old.shadow.css +0 -224
package/dot/lib/cjs/Dot.js
CHANGED
@@ -25,17 +25,17 @@ var _getOriginChildren = _interopRequireDefault(require("intergalactic/utils/lib
|
|
25
25
|
var _useCssVariable = require("intergalactic/utils/lib/useCssVariable");
|
26
26
|
var _ThemeProvider = require("intergalactic/utils/lib/ThemeProvider");
|
27
27
|
/*__reshadow-styles__:"./style/dot.shadow.css"*/
|
28
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".
|
29
|
-
"__SDot": "
|
30
|
-
"_size_xl": "
|
31
|
-
"_size_l": "
|
32
|
-
"_size_m": "
|
33
|
-
"_up": "
|
34
|
-
"__SA11yAlert": "
|
28
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SDot_csfsv_gg_{display:inline-flex;align-items:center;justify-content:center;font-size:var(--intergalactic-fs-50, 10px);line-height:normal;background-color:var(--intergalactic-icon-primary-warning, #ff642d);color:var(--intergalactic-text-primary-invert, #ffffff);box-sizing:border-box;z-index:1;border-radius:100%;vertical-align:middle;isolation:isolate}.___SDot_csfsv_gg_._size_xl_csfsv_gg_{height:16px;min-width:16px;padding:3px 4px;border-radius:var(--intergalactic-counter-rounded, 12px)}.___SDot_csfsv_gg_._size_l_csfsv_gg_{height:12px;min-width:12px;border-radius:100%}.___SDot_csfsv_gg_._size_m_csfsv_gg_{height:6px;min-width:6px;border-radius:100%}.___SDot_csfsv_gg_.__up_csfsv_gg_{position:absolute;top:0;right:0;margin-top:-3px;margin-right:-3px}.___SA11yAlert_csfsv_gg_{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}" /*__inner_css_end__*/, "csfsv_gg_") /*__reshadow_css_end__*/, {
|
29
|
+
"__SDot": "___SDot_csfsv_gg_",
|
30
|
+
"_size_xl": "_size_xl_csfsv_gg_",
|
31
|
+
"_size_l": "_size_l_csfsv_gg_",
|
32
|
+
"_size_m": "_size_m_csfsv_gg_",
|
33
|
+
"_up": "__up_csfsv_gg_",
|
34
|
+
"__SA11yAlert": "___SA11yAlert_csfsv_gg_"
|
35
35
|
});
|
36
|
-
var styleDot = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/"@keyframes
|
37
|
-
"@enter": "
|
38
|
-
"@exit": "
|
36
|
+
var styleDot = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/"@keyframes enter_15rom{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes exit_15rom{0%{transform:scale(1)}to{transform:scale(0)}}" /*__inner_css_end__*/, "15rom_gg_") /*__reshadow_css_end__*/, {
|
37
|
+
"@enter": "enter_15rom",
|
38
|
+
"@exit": "exit_15rom"
|
39
39
|
});
|
40
40
|
var Dot = /*#__PURE__*/function (_Component) {
|
41
41
|
(0, _inherits2["default"])(Dot, _Component);
|
package/dot/lib/es6/Dot.js
CHANGED
@@ -18,17 +18,17 @@ import getOriginChildren from 'intergalactic/utils/lib/getOriginChildren';
|
|
18
18
|
import { cssVariableEnhance } from 'intergalactic/utils/lib/useCssVariable';
|
19
19
|
import { contextThemeEnhance } from 'intergalactic/utils/lib/ThemeProvider';
|
20
20
|
/*__reshadow-styles__:"./style/dot.shadow.css"*/
|
21
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
22
|
-
"__SDot": "
|
23
|
-
"_size_xl": "
|
24
|
-
"_size_l": "
|
25
|
-
"_size_m": "
|
26
|
-
"_up": "
|
27
|
-
"__SA11yAlert": "
|
21
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SDot_csfsv_gg_{display:inline-flex;align-items:center;justify-content:center;font-size:var(--intergalactic-fs-50, 10px);line-height:normal;background-color:var(--intergalactic-icon-primary-warning, #ff642d);color:var(--intergalactic-text-primary-invert, #ffffff);box-sizing:border-box;z-index:1;border-radius:100%;vertical-align:middle;isolation:isolate}.___SDot_csfsv_gg_._size_xl_csfsv_gg_{height:16px;min-width:16px;padding:3px 4px;border-radius:var(--intergalactic-counter-rounded, 12px)}.___SDot_csfsv_gg_._size_l_csfsv_gg_{height:12px;min-width:12px;border-radius:100%}.___SDot_csfsv_gg_._size_m_csfsv_gg_{height:6px;min-width:6px;border-radius:100%}.___SDot_csfsv_gg_.__up_csfsv_gg_{position:absolute;top:0;right:0;margin-top:-3px;margin-right:-3px}.___SA11yAlert_csfsv_gg_{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}" /*__inner_css_end__*/, "csfsv_gg_") /*__reshadow_css_end__*/, {
|
22
|
+
"__SDot": "___SDot_csfsv_gg_",
|
23
|
+
"_size_xl": "_size_xl_csfsv_gg_",
|
24
|
+
"_size_l": "_size_l_csfsv_gg_",
|
25
|
+
"_size_m": "_size_m_csfsv_gg_",
|
26
|
+
"_up": "__up_csfsv_gg_",
|
27
|
+
"__SA11yAlert": "___SA11yAlert_csfsv_gg_"
|
28
28
|
});
|
29
|
-
var styleDot = ( /*__reshadow_css_start__*/sstyled.insert( /*__inner_css_start__*/"@keyframes
|
30
|
-
"@enter": "
|
31
|
-
"@exit": "
|
29
|
+
var styleDot = ( /*__reshadow_css_start__*/sstyled.insert( /*__inner_css_start__*/"@keyframes enter_15rom{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes exit_15rom{0%{transform:scale(1)}to{transform:scale(0)}}" /*__inner_css_end__*/, "15rom_gg_") /*__reshadow_css_end__*/, {
|
30
|
+
"@enter": "enter_15rom",
|
31
|
+
"@exit": "exit_15rom"
|
32
32
|
});
|
33
33
|
var Dot = /*#__PURE__*/function (_Component) {
|
34
34
|
_inherits(Dot, _Component);
|
package/dot/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"intergalactic/dot","description":"Semrush Dot Component","version":"5.
|
1
|
+
{"name":"intergalactic/dot","description":"Semrush Dot Component","version":"5.33.0","main":"lib/cjs/index.js","module":"lib/es6/index.js","typings":"lib/types/index.d.ts","sideEffects":false,"author":"UI-kit team <ui-kit-team@semrush.com>","license":"MIT","scripts":{"build":"pnpm semcore-builder --source=js"},"dependencies":{"@semcore/animation":"2.34.0","@semcore/flex-box":"5.34.0","@semcore/portal":"3.34.0","@semcore/utils":"4.38.0"},"peerDependencies":{"@semcore/core":"^2.17.5","react":"16.8 - 18","react-dom":"16.8 - 18"},"repository":{"type":"git","url":"https://github.com/semrush/intergalactic.git","directory":"semcore/dot"},"devDependencies":{"@semcore/button":"*","@semcore/testing-utils":"1.0.0","@types/react":"18.0.21"}}
|
@@ -23,22 +23,22 @@ var _i18nEnhance = _interopRequireDefault(require("intergalactic/utils/lib/enhan
|
|
23
23
|
var _useEnhancedEffect = _interopRequireDefault(require("intergalactic/utils/lib/use/useEnhancedEffect"));
|
24
24
|
var _keyboardFocusEnhance = _interopRequireDefault(require("intergalactic/utils/lib/enhances/keyboardFocusEnhance"));
|
25
25
|
/*__reshadow-styles__:"./style/drag-and-drop.shadow.css"*/
|
26
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".
|
27
|
-
"__SDraggable": "
|
28
|
-
"_placement_top": "
|
29
|
-
"_placement_right": "
|
30
|
-
"_placement_left": "
|
31
|
-
"_placement_bottom": "
|
32
|
-
"__SDropZone": "
|
33
|
-
"_dropPreview": "
|
34
|
-
"_dark": "
|
35
|
-
"_keyboardFocused": "
|
36
|
-
"_keyboardDragging": "
|
37
|
-
"_reversedScaling": "
|
38
|
-
"_animatedScaling": "
|
39
|
-
"__SA11yHint": "
|
40
|
-
"_draggable": "
|
41
|
-
"_hideHoverEffect": "
|
26
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SDraggable_6aozh_gg_.__draggable_6aozh_gg_{position:relative;cursor:grab;-moz-user-select:none;-webkit-user-select:none;user-select:none}.___SDraggable_6aozh_gg_.__draggable_6aozh_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_6aozh_gg_.__draggable_6aozh_gg_:hover::before{display:block}}.___SDraggable_6aozh_gg_.__draggable_6aozh_gg_.__hideHoverEffect_6aozh_gg_::before{display:none}.___SDraggable_6aozh_gg_._placement_right_6aozh_gg_::before{right:0}.___SDraggable_6aozh_gg_._placement_bottom_6aozh_gg_::before{bottom:0}.___SDraggable_6aozh_gg_._placement_left_6aozh_gg_::before{left:0}.___SDraggable_6aozh_gg_._placement_top_6aozh_gg_::before{top:0;left:0;width:100%;height:16px}.___SDraggable_6aozh_gg_._placement_bottom_6aozh_gg_::before{left:0;width:100%;height:16px}.___SDraggable_6aozh_gg_._placement_left_6aozh_gg_::before,.___SDraggable_6aozh_gg_._placement_right_6aozh_gg_::before{top:0;width:16px;height:100%}.___SDropZone_6aozh_gg_{position:relative}.___SDraggable_6aozh_gg_.__dropPreview_6aozh_gg_,.___SDropZone_6aozh_gg_.__dropPreview_6aozh_gg_{background-color:var(--intergalactic-bg-secondary-neutral, #f4f5f9)}.___SDraggable_6aozh_gg_.__dark_6aozh_gg_.__dropPreview_6aozh_gg_,.___SDropZone_6aozh_gg_.__dark_6aozh_gg_.__dropPreview_6aozh_gg_{background-color:var(--intergalactic-bg-primary-invert-active, #484a54)}.___SDraggable_6aozh_gg_:focus{outline:0}.___SDraggable_6aozh_gg_.__keyboardFocused_6aozh_gg_:focus{box-shadow:none}.___SDraggable_6aozh_gg_.__keyboardFocused_6aozh_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_6aozh_gg_.__keyboardDragging_6aozh_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_6aozh_gg_.__keyboardDragging_6aozh_gg_.__hideHoverEffect_6aozh_gg_::before,.___SDraggable_6aozh_gg_.__keyboardDragging_6aozh_gg_::before{display:block}.___SDraggable_6aozh_gg_.__keyboardDragging_6aozh_gg_.__reversedScaling_6aozh_gg_{scale:.95}.___SDraggable_6aozh_gg_.__animatedScaling_6aozh_gg_{transition:all calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out}.___SA11yHint_6aozh_gg_{position:absolute;margin-top:-1px;height:1px;width:1px;clip:rect(0 0 0 0)}@media (prefers-reduced-motion:reduce){.___SDraggable_6aozh_gg_{transition:none}}" /*__inner_css_end__*/, "6aozh_gg_") /*__reshadow_css_end__*/, {
|
27
|
+
"__SDraggable": "___SDraggable_6aozh_gg_",
|
28
|
+
"_placement_top": "_placement_top_6aozh_gg_",
|
29
|
+
"_placement_right": "_placement_right_6aozh_gg_",
|
30
|
+
"_placement_left": "_placement_left_6aozh_gg_",
|
31
|
+
"_placement_bottom": "_placement_bottom_6aozh_gg_",
|
32
|
+
"__SDropZone": "___SDropZone_6aozh_gg_",
|
33
|
+
"_dropPreview": "__dropPreview_6aozh_gg_",
|
34
|
+
"_dark": "__dark_6aozh_gg_",
|
35
|
+
"_keyboardFocused": "__keyboardFocused_6aozh_gg_",
|
36
|
+
"_keyboardDragging": "__keyboardDragging_6aozh_gg_",
|
37
|
+
"_reversedScaling": "__reversedScaling_6aozh_gg_",
|
38
|
+
"_animatedScaling": "__animatedScaling_6aozh_gg_",
|
39
|
+
"__SA11yHint": "___SA11yHint_6aozh_gg_",
|
40
|
+
"_draggable": "__draggable_6aozh_gg_",
|
41
|
+
"_hideHoverEffect": "__hideHoverEffect_6aozh_gg_"
|
42
42
|
});
|
43
43
|
var noop = function noop() {
|
44
44
|
/* do nothing */
|
@@ -17,22 +17,22 @@ 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_6aozh_gg_.__draggable_6aozh_gg_{position:relative;cursor:grab;-moz-user-select:none;-webkit-user-select:none;user-select:none}.___SDraggable_6aozh_gg_.__draggable_6aozh_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_6aozh_gg_.__draggable_6aozh_gg_:hover::before{display:block}}.___SDraggable_6aozh_gg_.__draggable_6aozh_gg_.__hideHoverEffect_6aozh_gg_::before{display:none}.___SDraggable_6aozh_gg_._placement_right_6aozh_gg_::before{right:0}.___SDraggable_6aozh_gg_._placement_bottom_6aozh_gg_::before{bottom:0}.___SDraggable_6aozh_gg_._placement_left_6aozh_gg_::before{left:0}.___SDraggable_6aozh_gg_._placement_top_6aozh_gg_::before{top:0;left:0;width:100%;height:16px}.___SDraggable_6aozh_gg_._placement_bottom_6aozh_gg_::before{left:0;width:100%;height:16px}.___SDraggable_6aozh_gg_._placement_left_6aozh_gg_::before,.___SDraggable_6aozh_gg_._placement_right_6aozh_gg_::before{top:0;width:16px;height:100%}.___SDropZone_6aozh_gg_{position:relative}.___SDraggable_6aozh_gg_.__dropPreview_6aozh_gg_,.___SDropZone_6aozh_gg_.__dropPreview_6aozh_gg_{background-color:var(--intergalactic-bg-secondary-neutral, #f4f5f9)}.___SDraggable_6aozh_gg_.__dark_6aozh_gg_.__dropPreview_6aozh_gg_,.___SDropZone_6aozh_gg_.__dark_6aozh_gg_.__dropPreview_6aozh_gg_{background-color:var(--intergalactic-bg-primary-invert-active, #484a54)}.___SDraggable_6aozh_gg_:focus{outline:0}.___SDraggable_6aozh_gg_.__keyboardFocused_6aozh_gg_:focus{box-shadow:none}.___SDraggable_6aozh_gg_.__keyboardFocused_6aozh_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_6aozh_gg_.__keyboardDragging_6aozh_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_6aozh_gg_.__keyboardDragging_6aozh_gg_.__hideHoverEffect_6aozh_gg_::before,.___SDraggable_6aozh_gg_.__keyboardDragging_6aozh_gg_::before{display:block}.___SDraggable_6aozh_gg_.__keyboardDragging_6aozh_gg_.__reversedScaling_6aozh_gg_{scale:.95}.___SDraggable_6aozh_gg_.__animatedScaling_6aozh_gg_{transition:all calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out}.___SA11yHint_6aozh_gg_{position:absolute;margin-top:-1px;height:1px;width:1px;clip:rect(0 0 0 0)}@media (prefers-reduced-motion:reduce){.___SDraggable_6aozh_gg_{transition:none}}" /*__inner_css_end__*/, "6aozh_gg_") /*__reshadow_css_end__*/, {
|
21
|
+
"__SDraggable": "___SDraggable_6aozh_gg_",
|
22
|
+
"_placement_top": "_placement_top_6aozh_gg_",
|
23
|
+
"_placement_right": "_placement_right_6aozh_gg_",
|
24
|
+
"_placement_left": "_placement_left_6aozh_gg_",
|
25
|
+
"_placement_bottom": "_placement_bottom_6aozh_gg_",
|
26
|
+
"__SDropZone": "___SDropZone_6aozh_gg_",
|
27
|
+
"_dropPreview": "__dropPreview_6aozh_gg_",
|
28
|
+
"_dark": "__dark_6aozh_gg_",
|
29
|
+
"_keyboardFocused": "__keyboardFocused_6aozh_gg_",
|
30
|
+
"_keyboardDragging": "__keyboardDragging_6aozh_gg_",
|
31
|
+
"_reversedScaling": "__reversedScaling_6aozh_gg_",
|
32
|
+
"_animatedScaling": "__animatedScaling_6aozh_gg_",
|
33
|
+
"__SA11yHint": "___SA11yHint_6aozh_gg_",
|
34
|
+
"_draggable": "__draggable_6aozh_gg_",
|
35
|
+
"_hideHoverEffect": "__hideHoverEffect_6aozh_gg_"
|
36
36
|
});
|
37
37
|
import keyboardFocusEnhance from 'intergalactic/utils/lib/enhances/keyboardFocusEnhance';
|
38
38
|
var noop = function noop() {
|
@@ -1 +1 @@
|
|
1
|
-
{"name":"intergalactic/drag-and-drop","description":"Semrush DragAndDrop Component","version":"3.42.
|
1
|
+
{"name":"intergalactic/drag-and-drop","description":"Semrush DragAndDrop Component","version":"3.42.2","main":"lib/cjs/index.js","module":"lib/es6/index.js","typings":"lib/types/index.d.ts","sideEffects":false,"author":"UI-kit team <ui-kit-team@semrush.com>","license":"MIT","scripts":{"build":"pnpm semcore-builder --source=js"},"dependencies":{"@semcore/card":"5.41.2","@semcore/flex-box":"5.34.0","@semcore/grid":"5.33.0","@semcore/utils":"4.38.0"},"peerDependencies":{"@semcore/core":"^2.17.5","react":"16.8 - 18","react-dom":"16.8 - 18"},"repository":{"type":"git","url":"https://github.com/semrush/intergalactic.git","directory":"semcore/drag-and-drop"},"devDependencies":{"@semcore/badge":"*","@semcore/icon":"*","@semcore/testing-utils":"1.0.0","@semcore/tab-panel":"*","@types/react":"18.0.21"}}
|
package/dropdown/index.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import React from 'react';
|
2
|
+
import { Intergalactic, UnknownProperties, PropGetterFn } from 'intergalactic/core';
|
2
3
|
import Popper, {
|
3
4
|
PopperContext,
|
4
5
|
PopperProps,
|
@@ -6,6 +7,7 @@ import Popper, {
|
|
6
7
|
PopperTriggerProps,
|
7
8
|
PopperPopperProps,
|
8
9
|
} from 'intergalactic/popper';
|
10
|
+
import { Box, BoxProps } from 'intergalactic/flex-box';
|
9
11
|
|
10
12
|
/** @deprecated */
|
11
13
|
export interface IDropdownProps extends DropdownProps, UnknownProperties {}
|
@@ -23,7 +25,9 @@ export type DropdownProps = PopperProps & {
|
|
23
25
|
|
24
26
|
/** @deprecated */
|
25
27
|
export interface IDropdownContext extends DropdownContext, UnknownProperties {}
|
26
|
-
export type DropdownContext = PopperContext & {
|
28
|
+
export type DropdownContext = PopperContext & {
|
29
|
+
getGroupProps: PropGetterFn;
|
30
|
+
};
|
27
31
|
|
28
32
|
/** @deprecated */
|
29
33
|
export interface IDropdownHandlers extends DropdownHandlers, UnknownProperties {}
|
@@ -50,6 +54,13 @@ export type DropdownPopperProps = PopperPopperProps &
|
|
50
54
|
role?: 'dialog';
|
51
55
|
};
|
52
56
|
|
57
|
+
export type DropdownGroupProps = BoxProps & {
|
58
|
+
/** Title for group of dropdown menu items */
|
59
|
+
title: React.ReactNode;
|
60
|
+
/** Subtitle for group of dropdown menu items */
|
61
|
+
subTitle?: string;
|
62
|
+
};
|
63
|
+
|
53
64
|
declare const Dropdown: Intergalactic.Component<
|
54
65
|
'div',
|
55
66
|
DropdownProps,
|
@@ -63,6 +74,8 @@ declare const Dropdown: Intergalactic.Component<
|
|
63
74
|
PopperContext,
|
64
75
|
[handlers: PopperHandlers]
|
65
76
|
>;
|
77
|
+
Item: Intergalactic.Component<typeof Box>;
|
78
|
+
Group: Intergalactic.Component<'div', DropdownGroupProps>;
|
66
79
|
};
|
67
80
|
|
68
81
|
export default Dropdown;
|
@@ -0,0 +1,365 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
5
|
+
value: true
|
6
|
+
});
|
7
|
+
exports.selectedIndexContext = exports.enhance = exports.AbstractDropdown = void 0;
|
8
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
9
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
10
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
11
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
12
|
+
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
13
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
15
|
+
var _core = require("intergalactic/core");
|
16
|
+
var _uniqueID = _interopRequireDefault(require("intergalactic/utils/lib/uniqueID"));
|
17
|
+
var _i18nEnhance = _interopRequireDefault(require("intergalactic/utils/lib/enhances/i18nEnhance"));
|
18
|
+
var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynamic-locales");
|
19
|
+
var _useFocusLock = require("intergalactic/utils/lib/use/useFocusLock");
|
20
|
+
var _focusSourceEnhance = _interopRequireDefault(require("intergalactic/utils/lib/enhances/focusSourceEnhance"));
|
21
|
+
var _getAccessibleName = require("intergalactic/utils/lib/getAccessibleName");
|
22
|
+
var enhance = {
|
23
|
+
uid: (0, _uniqueID["default"])(),
|
24
|
+
getI18nText: (0, _i18nEnhance["default"])(_intergalacticDynamicLocales.localizedMessages),
|
25
|
+
focusSourceRef: (0, _focusSourceEnhance["default"])()
|
26
|
+
};
|
27
|
+
exports.enhance = enhance;
|
28
|
+
var selectedIndexContext = /*#__PURE__*/_react["default"].createContext(0);
|
29
|
+
exports.selectedIndexContext = selectedIndexContext;
|
30
|
+
var AbstractDropdown = /*#__PURE__*/function (_Component) {
|
31
|
+
(0, _inherits2["default"])(AbstractDropdown, _Component);
|
32
|
+
var _super = (0, _createSuper2["default"])(AbstractDropdown);
|
33
|
+
function AbstractDropdown() {
|
34
|
+
var _this;
|
35
|
+
(0, _classCallCheck2["default"])(this, AbstractDropdown);
|
36
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
37
|
+
args[_key] = arguments[_key];
|
38
|
+
}
|
39
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
40
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "role", void 0);
|
41
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "popperRef", /*#__PURE__*/_react["default"].createRef());
|
42
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "triggerRef", /*#__PURE__*/_react["default"].createRef());
|
43
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "menuRef", /*#__PURE__*/_react["default"].createRef());
|
44
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "itemProps", []);
|
45
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "itemRefs", []);
|
46
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "highlightedItemRef", /*#__PURE__*/_react["default"].createRef());
|
47
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "prevHighlightedIndex", null);
|
48
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleClickTrigger", function (e) {
|
49
|
+
var interaction = _this.asProps.interaction;
|
50
|
+
if (interaction === 'none') return false;
|
51
|
+
e.preventDefault();
|
52
|
+
_this.handlers.visible(true);
|
53
|
+
if (_this.role === 'menu') {
|
54
|
+
setTimeout(function () {
|
55
|
+
var highlightedIndex = _this.asProps.highlightedIndex;
|
56
|
+
var element = _this.itemRefs[highlightedIndex !== null && highlightedIndex !== void 0 ? highlightedIndex : 0];
|
57
|
+
element === null || element === void 0 ? void 0 : element.focus();
|
58
|
+
}, 0);
|
59
|
+
}
|
60
|
+
});
|
61
|
+
return _this;
|
62
|
+
}
|
63
|
+
(0, _createClass2["default"])(AbstractDropdown, [{
|
64
|
+
key: "uncontrolledProps",
|
65
|
+
value: function uncontrolledProps() {
|
66
|
+
var _this2 = this;
|
67
|
+
return {
|
68
|
+
selectedIndex: null,
|
69
|
+
highlightedIndex: [null, function (index) {
|
70
|
+
_this2.handlers.selectedIndex(index);
|
71
|
+
}],
|
72
|
+
visible: null
|
73
|
+
};
|
74
|
+
}
|
75
|
+
}, {
|
76
|
+
key: "childRole",
|
77
|
+
get: function get() {
|
78
|
+
if (this.role === 'listbox') {
|
79
|
+
return 'option';
|
80
|
+
}
|
81
|
+
return 'menuitem';
|
82
|
+
}
|
83
|
+
}, {
|
84
|
+
key: "getTriggerProps",
|
85
|
+
value: function getTriggerProps() {
|
86
|
+
var _this$asProps = this.asProps,
|
87
|
+
size = _this$asProps.size,
|
88
|
+
uid = _this$asProps.uid,
|
89
|
+
disablePortal = _this$asProps.disablePortal,
|
90
|
+
visible = _this$asProps.visible,
|
91
|
+
getI18nText = _this$asProps.getI18nText;
|
92
|
+
return {
|
93
|
+
size: size,
|
94
|
+
id: "igc-".concat(uid, "-trigger"),
|
95
|
+
focusHint: visible && !disablePortal ? getI18nText('triggerHint') : undefined,
|
96
|
+
'aria-haspopup': 'true',
|
97
|
+
'aria-expanded': visible ? 'true' : 'false',
|
98
|
+
onClick: this.handleClickTrigger,
|
99
|
+
ref: this.triggerRef
|
100
|
+
};
|
101
|
+
}
|
102
|
+
}, {
|
103
|
+
key: "getListProps",
|
104
|
+
value: function getListProps() {
|
105
|
+
var _this$triggerRef$curr;
|
106
|
+
var _this$asProps2 = this.asProps,
|
107
|
+
size = _this$asProps2.size,
|
108
|
+
uid = _this$asProps2.uid;
|
109
|
+
var triggerId = (_this$triggerRef$curr = this.triggerRef.current) === null || _this$triggerRef$curr === void 0 ? void 0 : _this$triggerRef$curr.id;
|
110
|
+
var triggerElement = triggerId ? document.getElementById(triggerId) : null;
|
111
|
+
return {
|
112
|
+
size: size,
|
113
|
+
index: this.asProps.highlightedIndex,
|
114
|
+
tabIndex: -1,
|
115
|
+
ref: this.menuRef,
|
116
|
+
id: "igc-".concat(uid, "-list"),
|
117
|
+
role: this.role,
|
118
|
+
'aria-label': (0, _getAccessibleName.getAccessibleName)(triggerElement)
|
119
|
+
};
|
120
|
+
}
|
121
|
+
}, {
|
122
|
+
key: "getMenuProps",
|
123
|
+
value: function getMenuProps() {
|
124
|
+
return this.getListProps();
|
125
|
+
}
|
126
|
+
}, {
|
127
|
+
key: "getPopperProps",
|
128
|
+
value: function getPopperProps() {
|
129
|
+
var _this$asProps3 = this.asProps,
|
130
|
+
uid = _this$asProps3.uid,
|
131
|
+
disablePortal = _this$asProps3.disablePortal,
|
132
|
+
ignorePortalsStacking = _this$asProps3.ignorePortalsStacking,
|
133
|
+
interaction = _this$asProps3.interaction,
|
134
|
+
highlightedIndex = _this$asProps3.highlightedIndex;
|
135
|
+
return {
|
136
|
+
ref: this.popperRef,
|
137
|
+
tabIndex: -1,
|
138
|
+
id: "igc-".concat(uid, "-popper"),
|
139
|
+
disablePortal: disablePortal,
|
140
|
+
ignorePortalsStacking: ignorePortalsStacking,
|
141
|
+
focusMaster: interaction === 'click',
|
142
|
+
hideFocus: highlightedIndex !== null,
|
143
|
+
'use:autoFocus': false
|
144
|
+
};
|
145
|
+
}
|
146
|
+
}, {
|
147
|
+
key: "getGroupProps",
|
148
|
+
value: function getGroupProps() {
|
149
|
+
var size = this.asProps.size;
|
150
|
+
return {
|
151
|
+
size: size
|
152
|
+
};
|
153
|
+
}
|
154
|
+
}, {
|
155
|
+
key: "getItemProps",
|
156
|
+
value: function getItemProps(_, index) {
|
157
|
+
var _this3 = this;
|
158
|
+
var _this$asProps4 = this.asProps,
|
159
|
+
size = _this$asProps4.size,
|
160
|
+
uid = _this$asProps4.uid;
|
161
|
+
return {
|
162
|
+
id: "igc-".concat(uid, "-option-").concat(index),
|
163
|
+
size: size,
|
164
|
+
index: index,
|
165
|
+
onMouseEnter: function onMouseEnter() {
|
166
|
+
return _this3.handlers.selectedIndex(index);
|
167
|
+
},
|
168
|
+
role: this.childRole
|
169
|
+
};
|
170
|
+
}
|
171
|
+
}, {
|
172
|
+
key: "getItemHintProps",
|
173
|
+
value: function getItemHintProps() {
|
174
|
+
var size = this.asProps.size;
|
175
|
+
return {
|
176
|
+
size: size
|
177
|
+
};
|
178
|
+
}
|
179
|
+
}, {
|
180
|
+
key: "getItemTitleProps",
|
181
|
+
value: function getItemTitleProps() {
|
182
|
+
var size = this.asProps.size;
|
183
|
+
return {
|
184
|
+
size: size
|
185
|
+
};
|
186
|
+
}
|
187
|
+
}, {
|
188
|
+
key: "scrollToNode",
|
189
|
+
value: function scrollToNode(node) {
|
190
|
+
var _this4 = this;
|
191
|
+
if (node) {
|
192
|
+
// @ts-ignore
|
193
|
+
this.highlightedItemRef.current = node;
|
194
|
+
}
|
195
|
+
setTimeout(function () {
|
196
|
+
if (node !== null && node !== void 0 && node.scrollIntoView) {
|
197
|
+
if (_this4.asProps.highlightedIndex !== _this4.prevHighlightedIndex) {
|
198
|
+
_this4.prevHighlightedIndex = _this4.asProps.highlightedIndex;
|
199
|
+
node.scrollIntoView({
|
200
|
+
block: 'nearest',
|
201
|
+
inline: 'nearest'
|
202
|
+
});
|
203
|
+
}
|
204
|
+
}
|
205
|
+
}, 0);
|
206
|
+
}
|
207
|
+
}, {
|
208
|
+
key: "getHighlightedIndex",
|
209
|
+
value: function getHighlightedIndex(amount) {
|
210
|
+
var _this$itemProps$newIn;
|
211
|
+
var highlightedIndex = this.asProps.highlightedIndex;
|
212
|
+
var itemsLastIndex = this.itemProps.length - 1;
|
213
|
+
var selectedIndex = this.itemProps.findIndex(function (item) {
|
214
|
+
return item.selected;
|
215
|
+
});
|
216
|
+
if (itemsLastIndex < 0) return 0;
|
217
|
+
var innerHighlightedIndex;
|
218
|
+
if (highlightedIndex == null) {
|
219
|
+
if (selectedIndex !== -1) {
|
220
|
+
innerHighlightedIndex = selectedIndex;
|
221
|
+
} else if (this.highlightedItemRef.current && this.prevHighlightedIndex !== null) {
|
222
|
+
innerHighlightedIndex = this.prevHighlightedIndex;
|
223
|
+
} else {
|
224
|
+
innerHighlightedIndex = amount < 0 ? 0 : itemsLastIndex;
|
225
|
+
}
|
226
|
+
} else {
|
227
|
+
innerHighlightedIndex = highlightedIndex;
|
228
|
+
}
|
229
|
+
var newIndex = innerHighlightedIndex + amount;
|
230
|
+
if (newIndex < 0) {
|
231
|
+
newIndex = amount + itemsLastIndex + 1;
|
232
|
+
} else if (newIndex > itemsLastIndex) {
|
233
|
+
newIndex = newIndex - itemsLastIndex - 1;
|
234
|
+
}
|
235
|
+
if ((_this$itemProps$newIn = this.itemProps[newIndex]) !== null && _this$itemProps$newIn !== void 0 && _this$itemProps$newIn.disabled) {
|
236
|
+
return this.getHighlightedIndex(amount < 0 ? amount - 1 : amount + 1);
|
237
|
+
} else if (!this.itemProps[newIndex]) {
|
238
|
+
return 0;
|
239
|
+
} else {
|
240
|
+
return newIndex;
|
241
|
+
}
|
242
|
+
}
|
243
|
+
}, {
|
244
|
+
key: "componentDidUpdate",
|
245
|
+
value: function componentDidUpdate(prevProps) {
|
246
|
+
var _this$asProps5 = this.asProps,
|
247
|
+
visible = _this$asProps5.visible,
|
248
|
+
focusSourceRef = _this$asProps5.focusSourceRef;
|
249
|
+
var visibilityChanged = visible !== prevProps.visible;
|
250
|
+
if (visibilityChanged && prevProps.visible !== undefined) {
|
251
|
+
if (!visible) {
|
252
|
+
this.handlers.highlightedIndex(null);
|
253
|
+
// @ts-ignore
|
254
|
+
this.highlightedItemRef.current = null;
|
255
|
+
if (this.popperRef.current && this.triggerRef.current && (document.activeElement === document.body || (0, _useFocusLock.isFocusInside)(this.popperRef.current)) && focusSourceRef.current === 'keyboard') {
|
256
|
+
(0, _useFocusLock.setFocus)(this.triggerRef.current);
|
257
|
+
}
|
258
|
+
}
|
259
|
+
}
|
260
|
+
}
|
261
|
+
}, {
|
262
|
+
key: "itemRef",
|
263
|
+
value: function itemRef(props, index, node) {
|
264
|
+
if ((node === null || node === void 0 ? void 0 : node.getAttribute('role')) === this.childRole) {
|
265
|
+
this.itemRefs[index] = node;
|
266
|
+
this.itemProps[index] = props;
|
267
|
+
}
|
268
|
+
}
|
269
|
+
}, {
|
270
|
+
key: "handlePreventCommonKeyDown",
|
271
|
+
value: function handlePreventCommonKeyDown(e) {
|
272
|
+
if (e.target instanceof Element) {
|
273
|
+
var targetTagName = e.target.tagName;
|
274
|
+
if (e.key === ' ' && ['INPUT', 'TEXTAREA'].includes(targetTagName)) return false;
|
275
|
+
if (e.key === 'Enter' && targetTagName === 'TEXTAREA') return false;
|
276
|
+
}
|
277
|
+
}
|
278
|
+
}, {
|
279
|
+
key: "handlePreventPopperKeyDown",
|
280
|
+
value: function handlePreventPopperKeyDown(e) {
|
281
|
+
if (e.target instanceof Element) {
|
282
|
+
var targetTagName = e.target.tagName;
|
283
|
+
if ((e.key === ' ' || e.key === 'Enter') && (targetTagName === 'BUTTON' || targetTagName === 'A')) return false;
|
284
|
+
}
|
285
|
+
}
|
286
|
+
}, {
|
287
|
+
key: "handleOpenKeyDown",
|
288
|
+
value: function handleOpenKeyDown(e) {
|
289
|
+
if (this.asProps.visible !== true && ['ArrowDown', 'ArrowUp', 'Enter', ' '].includes(e.key) && e.currentTarget.getAttribute('role') !== this.childRole) {
|
290
|
+
this.handleClickTrigger(e);
|
291
|
+
}
|
292
|
+
}
|
293
|
+
}, {
|
294
|
+
key: "handleArrowKeyDown",
|
295
|
+
value: function handleArrowKeyDown(e) {
|
296
|
+
var amountCount = e.shiftKey ? 5 : 1;
|
297
|
+
var _this$asProps6 = this.asProps,
|
298
|
+
highlightedIndex = _this$asProps6.highlightedIndex,
|
299
|
+
inlineActions = _this$asProps6.inlineActions;
|
300
|
+
var amount = null;
|
301
|
+
switch (e.key) {
|
302
|
+
case 'ArrowDown':
|
303
|
+
{
|
304
|
+
if (!inlineActions) {
|
305
|
+
amount = amountCount;
|
306
|
+
}
|
307
|
+
break;
|
308
|
+
}
|
309
|
+
case 'ArrowUp':
|
310
|
+
{
|
311
|
+
if (!inlineActions) {
|
312
|
+
amount = -amountCount;
|
313
|
+
}
|
314
|
+
break;
|
315
|
+
}
|
316
|
+
case 'ArrowRight':
|
317
|
+
{
|
318
|
+
if (inlineActions) {
|
319
|
+
amount = amountCount;
|
320
|
+
}
|
321
|
+
break;
|
322
|
+
}
|
323
|
+
case 'ArrowLeft':
|
324
|
+
{
|
325
|
+
if (inlineActions) {
|
326
|
+
amount = -amountCount;
|
327
|
+
}
|
328
|
+
break;
|
329
|
+
}
|
330
|
+
case ' ':
|
331
|
+
case 'Enter':
|
332
|
+
if (this.highlightedItemRef.current && highlightedIndex !== null) {
|
333
|
+
e.stopPropagation();
|
334
|
+
e.preventDefault();
|
335
|
+
this.highlightedItemRef.current.click();
|
336
|
+
}
|
337
|
+
break;
|
338
|
+
}
|
339
|
+
if (amount !== null) {
|
340
|
+
var newHighlightedIndex = this.getHighlightedIndex(amount);
|
341
|
+
if (newHighlightedIndex !== undefined && this.role === 'menu') {
|
342
|
+
var _this$itemRefs$newHig;
|
343
|
+
(_this$itemRefs$newHig = this.itemRefs[newHighlightedIndex]) === null || _this$itemRefs$newHig === void 0 ? void 0 : _this$itemRefs$newHig.focus();
|
344
|
+
}
|
345
|
+
if (this.role === 'listbox' && this.triggerRef.current && !(0, _useFocusLock.isFocusInside)(this.triggerRef.current)) {
|
346
|
+
this.focusTrigger();
|
347
|
+
}
|
348
|
+
this.handlers.highlightedIndex(newHighlightedIndex, e);
|
349
|
+
e.preventDefault();
|
350
|
+
e.stopPropagation();
|
351
|
+
}
|
352
|
+
}
|
353
|
+
}, {
|
354
|
+
key: "focusTrigger",
|
355
|
+
value: function focusTrigger() {
|
356
|
+
var trigger = this.triggerRef.current;
|
357
|
+
if (!trigger) return;
|
358
|
+
if ((0, _useFocusLock.isFocusInside)(trigger)) return;
|
359
|
+
(0, _useFocusLock.setFocus)(trigger);
|
360
|
+
}
|
361
|
+
}]);
|
362
|
+
return AbstractDropdown;
|
363
|
+
}(_core.Component);
|
364
|
+
exports.AbstractDropdown = AbstractDropdown;
|
365
|
+
//# sourceMappingURL=AbstractDropdown.js.map
|