intergalactic 15.96.1 → 15.97.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 +56 -0
- package/accordion/lib/cjs/Accordion.js +7 -7
- package/accordion/lib/es6/Accordion.js +7 -7
- package/animation/lib/cjs/Animation.js +11 -11
- package/animation/lib/cjs/Collapse.js +28 -28
- package/animation/lib/cjs/FadeInOut.js +28 -28
- package/animation/lib/cjs/Scale.js +28 -28
- package/animation/lib/cjs/Slide.js +28 -28
- package/animation/lib/cjs/Transform.js +28 -28
- package/animation/lib/es6/Animation.js +11 -11
- package/animation/lib/es6/Collapse.js +28 -28
- package/animation/lib/es6/FadeInOut.js +28 -28
- package/animation/lib/es6/Scale.js +28 -28
- package/animation/lib/es6/Slide.js +28 -28
- package/animation/lib/es6/Transform.js +28 -28
- package/badge/lib/cjs/Badge.js +6 -6
- package/badge/lib/es6/Badge.js +6 -6
- package/base-trigger/lib/cjs/BaseTrigger.js +18 -18
- package/base-trigger/lib/cjs/ButtonTrigger.js +3 -3
- package/base-trigger/lib/cjs/FilterTrigger.js +7 -7
- package/base-trigger/lib/cjs/LinkTrigger.js +12 -12
- package/base-trigger/lib/es6/BaseTrigger.js +18 -18
- package/base-trigger/lib/es6/ButtonTrigger.js +3 -3
- package/base-trigger/lib/es6/FilterTrigger.js +7 -7
- package/base-trigger/lib/es6/LinkTrigger.js +12 -12
- package/breadcrumbs/lib/cjs/Breadcrumbs.js +8 -8
- package/breadcrumbs/lib/cjs/style/breadcrumbs.shadow.css +4 -0
- package/breadcrumbs/lib/es6/Breadcrumbs.js +8 -8
- package/breadcrumbs/lib/es6/style/breadcrumbs.shadow.css +4 -0
- package/button/lib/cjs/Button.js +26 -26
- package/button/lib/es6/Button.js +26 -26
- package/card/lib/cjs/Card.js +8 -8
- package/card/lib/es6/Card.js +8 -8
- package/carousel/lib/cjs/Carousel.js +19 -19
- package/carousel/lib/es6/Carousel.js +19 -19
- package/checkbox/lib/cjs/Checkbox.js +18 -18
- package/checkbox/lib/es6/Checkbox.js +18 -18
- package/color-picker/lib/cjs/ColorPicker.js +23 -23
- package/color-picker/lib/cjs/PaletteManager.js +23 -23
- package/color-picker/lib/cjs/components/InputColor.js +23 -23
- package/color-picker/lib/es6/ColorPicker.js +23 -23
- package/color-picker/lib/es6/PaletteManager.js +23 -23
- package/color-picker/lib/es6/components/InputColor.js +23 -23
- package/components.json +73 -73
- package/counter/lib/cjs/Counter.js +11 -11
- package/counter/lib/es6/Counter.js +11 -11
- package/d3-chart/Bar.d.ts +7 -1
- package/d3-chart/HorizontalBar.d.ts +10 -0
- package/d3-chart/Hover.d.ts +3 -0
- package/d3-chart/Tooltip.d.ts +3 -0
- package/d3-chart/component/Chart/BarChart.type.d.ts +7 -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 +11 -11
- package/d3-chart/lib/cjs/Bar.js.map +1 -1
- package/d3-chart/lib/cjs/Bubble.js +12 -12
- 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 +17 -12
- package/d3-chart/lib/cjs/HorizontalBar.js.map +1 -1
- 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 +11 -11
- 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 +21 -11
- package/d3-chart/lib/cjs/Tooltip.js.map +1 -1
- 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/Chart/BarChart.js +29 -12
- package/d3-chart/lib/cjs/component/Chart/BarChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/BarChart.type.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +17 -17
- package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/d3-chart/lib/cjs/types/Bar.d.js.map +1 -1
- package/d3-chart/lib/cjs/types/HorizontalBar.d.js.map +1 -1
- package/d3-chart/lib/cjs/types/Hover.d.js.map +1 -1
- package/d3-chart/lib/cjs/types/Tooltip.d.js.map +1 -1
- package/d3-chart/lib/es6/Area.js +11 -11
- package/d3-chart/lib/es6/Axis.js +14 -14
- package/d3-chart/lib/es6/Bar.js +11 -11
- package/d3-chart/lib/es6/Bar.js.map +1 -1
- package/d3-chart/lib/es6/Bubble.js +12 -12
- 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 +17 -12
- package/d3-chart/lib/es6/HorizontalBar.js.map +1 -1
- 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 +11 -11
- 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 +21 -11
- package/d3-chart/lib/es6/Tooltip.js.map +1 -1
- 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/Chart/BarChart.js +29 -12
- package/d3-chart/lib/es6/component/Chart/BarChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/BarChart.type.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +17 -17
- package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/d3-chart/lib/es6/types/Bar.d.js.map +1 -1
- package/d3-chart/lib/es6/types/HorizontalBar.d.js.map +1 -1
- package/d3-chart/lib/es6/types/Hover.d.js.map +1 -1
- package/d3-chart/lib/es6/types/Tooltip.d.js.map +1 -1
- package/d3-chart/lib/types/Bar.d.ts +7 -1
- package/d3-chart/lib/types/HorizontalBar.d.ts +10 -0
- package/d3-chart/lib/types/Hover.d.ts +3 -0
- package/d3-chart/lib/types/Tooltip.d.ts +3 -0
- package/d3-chart/lib/types/component/Chart/BarChart.type.d.ts +7 -1
- package/data-table/Body.d.ts +1 -0
- package/data-table/lib/cjs/Body.js +7 -2
- package/data-table/lib/cjs/Body.js.map +1 -1
- package/data-table/lib/cjs/DataTable.js +39 -37
- package/data-table/lib/cjs/DataTable.js.map +1 -1
- package/data-table/lib/es6/Body.js +7 -2
- package/data-table/lib/es6/Body.js.map +1 -1
- package/data-table/lib/es6/DataTable.js +39 -37
- package/data-table/lib/es6/DataTable.js.map +1 -1
- package/data-table/lib/types/Body.d.ts +1 -0
- package/date-picker/lib/cjs/components/Calendar.js +21 -21
- package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js +29 -29
- package/date-picker/lib/cjs/components/InputTrigger.js +29 -29
- package/date-picker/lib/cjs/components/PickerAbstract.js +29 -29
- package/date-picker/lib/cjs/components/RangePickerAbstract.js +29 -29
- package/date-picker/lib/es6/components/Calendar.js +21 -21
- package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js +29 -29
- package/date-picker/lib/es6/components/InputTrigger.js +29 -29
- package/date-picker/lib/es6/components/PickerAbstract.js +29 -29
- package/date-picker/lib/es6/components/RangePickerAbstract.js +29 -29
- package/divider/lib/cjs/Divider.js +9 -9
- package/divider/lib/es6/Divider.js +9 -9
- package/dot/lib/cjs/Dot.js +10 -10
- package/dot/lib/es6/Dot.js +10 -10
- package/drag-and-drop/lib/cjs/DragAndDrop.js +16 -16
- package/drag-and-drop/lib/es6/DragAndDrop.js +16 -16
- package/dropdown/lib/cjs/Dropdown.js +2 -2
- package/dropdown/lib/es6/Dropdown.js +2 -2
- package/dropdown-menu/index.d.ts +3 -3
- package/dropdown-menu/lib/cjs/DropdownMenu.js +16 -16
- package/dropdown-menu/lib/cjs/index.d.js.map +1 -1
- package/dropdown-menu/lib/cjs/styleScrollArea.js +6 -6
- package/dropdown-menu/lib/es6/DropdownMenu.js +16 -16
- package/dropdown-menu/lib/es6/index.d.js.map +1 -1
- package/dropdown-menu/lib/es6/styleScrollArea.js +6 -6
- package/dropdown-menu/lib/types/index.d.ts +3 -3
- package/ellipsis/lib/cjs/Ellipsis.js +12 -10
- package/ellipsis/lib/cjs/Ellipsis.js.map +1 -1
- package/ellipsis/lib/es6/Ellipsis.js +12 -10
- package/ellipsis/lib/es6/Ellipsis.js.map +1 -1
- package/errors/lib/cjs/Error.js +9 -9
- package/errors/lib/es6/Error.js +9 -9
- package/feature-popover/lib/cjs/FeaturePopover.js +10 -10
- package/feature-popover/lib/es6/FeaturePopover.js +10 -10
- package/feedback-form/lib/cjs/FeedbackForm.js +7 -7
- package/feedback-form/lib/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/flags/lib/cjs/Flags.js +3 -3
- package/flags/lib/es6/Flags.js +3 -3
- package/flags/lib/sprites/sprite@1x.css +256 -256
- package/flags/lib/sprites/sprite@2x.css +257 -257
- package/flex-box/lib/cjs/Box/useBox.js +3 -3
- package/flex-box/lib/cjs/Flex/useFlex.js +3 -3
- package/flex-box/lib/cjs/invalid-state-box/InvalidStateBox.js +2 -2
- package/flex-box/lib/es6/Box/useBox.js +3 -3
- package/flex-box/lib/es6/Flex/useFlex.js +3 -3
- package/flex-box/lib/es6/invalid-state-box/InvalidStateBox.js +2 -2
- package/format-text/lib/cjs/FormatText.js +5 -5
- package/format-text/lib/es6/FormatText.js +5 -5
- package/fullscreen-modal/lib/cjs/FullscreenModal.js +13 -13
- package/fullscreen-modal/lib/es6/FullscreenModal.js +13 -13
- package/grid/lib/cjs/Grid.js +114 -114
- package/grid/lib/es6/Grid.js +114 -114
- package/icon/AddressPack/l/index.js +4 -1
- package/icon/AddressPack/l/index.mjs +4 -1
- package/icon/AddressPack/m/index.js +1 -1
- package/icon/AddressPack/m/index.mjs +1 -1
- package/icon/ChatQuestion/l/index.js +2 -2
- package/icon/ChatQuestion/l/index.mjs +2 -2
- package/icon/ChatQuestion/m/index.js +2 -2
- package/icon/ChatQuestion/m/index.mjs +2 -2
- package/icon/OrganicCarousel/l/index.d.ts +6 -0
- package/icon/OrganicCarousel/l/index.js +44 -0
- package/icon/OrganicCarousel/l/index.mjs +32 -0
- package/icon/OrganicCarousel/m/index.d.ts +6 -0
- package/icon/OrganicCarousel/m/index.js +44 -0
- package/icon/OrganicCarousel/m/index.mjs +32 -0
- package/icon/PopularProducts/l/index.js +2 -2
- package/icon/PopularProducts/l/index.mjs +2 -2
- package/icon/PopularProducts/m/index.js +2 -5
- package/icon/PopularProducts/m/index.mjs +2 -5
- package/icon/PopularStores/l/index.d.ts +6 -0
- package/icon/PopularStores/l/index.js +41 -0
- package/icon/PopularStores/l/index.mjs +29 -0
- package/icon/PopularStores/m/index.d.ts +6 -0
- package/icon/PopularStores/m/index.js +41 -0
- package/icon/PopularStores/m/index.mjs +29 -0
- package/icon/QuestionsAnswers/l/index.d.ts +6 -0
- package/icon/QuestionsAnswers/l/index.js +41 -0
- package/icon/QuestionsAnswers/l/index.mjs +29 -0
- package/icon/QuestionsAnswers/m/index.d.ts +6 -0
- package/icon/QuestionsAnswers/m/index.js +41 -0
- package/icon/QuestionsAnswers/m/index.mjs +29 -0
- package/icon/Report/l/index.js +2 -2
- package/icon/Report/l/index.mjs +2 -2
- package/icon/Report/m/index.js +2 -2
- package/icon/Report/m/index.mjs +2 -2
- package/icon/color/Confluence/l/index.js +4 -4
- package/icon/color/Confluence/l/index.mjs +4 -4
- package/icon/color/Confluence/m/index.js +4 -4
- package/icon/color/Confluence/m/index.mjs +4 -4
- package/icon/color/MicrosoftOffice/l/index.js +10 -10
- package/icon/color/MicrosoftOffice/l/index.mjs +10 -10
- package/icon/color/MicrosoftOffice/m/index.js +10 -10
- package/icon/color/MicrosoftOffice/m/index.mjs +10 -10
- package/icon/lib/cjs/Icon.js +5 -5
- package/icon/lib/es6/Icon.js +5 -5
- package/icon/pay/Discover/l/index.js +1 -1
- package/icon/pay/Discover/l/index.mjs +1 -1
- package/icon/pay/Discover/m/index.js +1 -1
- package/icon/pay/Discover/m/index.mjs +1 -1
- package/icon/pay/JCB/l/index.js +10 -10
- package/icon/pay/JCB/l/index.mjs +10 -10
- package/icon/pay/JCB/m/index.js +10 -10
- package/icon/pay/JCB/m/index.mjs +10 -10
- package/icon/pay/Visa/l/index.js +2 -2
- package/icon/pay/Visa/l/index.mjs +2 -2
- package/icon/pay/Visa/m/index.js +2 -2
- package/icon/pay/Visa/m/index.mjs +2 -2
- package/illustration/lib/cjs/index.js +1 -1
- package/illustration/lib/es6/index.js +1 -1
- package/inline-edit/lib/cjs/InlineEdit.js +4 -4
- package/inline-edit/lib/es6/InlineEdit.js +4 -4
- package/inline-input/lib/cjs/InlineInput.js +14 -14
- package/inline-input/lib/es6/InlineInput.js +14 -14
- package/input/lib/cjs/Input.js +17 -17
- package/input/lib/es6/Input.js +17 -17
- package/input-mask/lib/cjs/InputMask.js +6 -6
- package/input-mask/lib/es6/InputMask.js +6 -6
- package/input-number/lib/cjs/InputNumber.js +9 -9
- package/input-number/lib/es6/InputNumber.js +9 -9
- package/input-tags/lib/cjs/InputTags.js +12 -12
- package/input-tags/lib/es6/InputTags.js +12 -12
- package/link/lib/cjs/Link.js +12 -12
- package/link/lib/es6/Link.js +12 -12
- package/mini-chart/lib/cjs/component/score/Donut.js +9 -9
- package/mini-chart/lib/cjs/component/score/Line.js +17 -17
- package/mini-chart/lib/cjs/component/trend/Bar.js +7 -7
- package/mini-chart/lib/cjs/component/trend/Line.js +7 -7
- package/mini-chart/lib/es6/component/score/Donut.js +9 -9
- package/mini-chart/lib/es6/component/score/Line.js +17 -17
- package/mini-chart/lib/es6/component/trend/Bar.js +7 -7
- package/mini-chart/lib/es6/component/trend/Line.js +7 -7
- package/modal/lib/cjs/Modal.js +9 -9
- package/modal/lib/es6/Modal.js +9 -9
- package/notice/index.d.ts +1 -1
- package/notice/lib/cjs/Notice.js +21 -16
- package/notice/lib/cjs/Notice.js.map +1 -1
- package/notice/lib/cjs/index.d.js.map +1 -1
- package/notice/lib/cjs/style/notice.shadow.css +17 -0
- package/notice/lib/cjs/translations/de.json +1 -0
- package/notice/lib/cjs/translations/en.json +1 -0
- package/notice/lib/cjs/translations/es.json +1 -0
- package/notice/lib/cjs/translations/fr.json +1 -0
- package/notice/lib/cjs/translations/it.json +1 -0
- package/notice/lib/cjs/translations/ja.json +1 -0
- package/notice/lib/cjs/translations/ko.json +1 -0
- package/notice/lib/cjs/translations/nl.json +1 -0
- package/notice/lib/cjs/translations/pl.json +1 -0
- package/notice/lib/cjs/translations/pt.json +1 -0
- package/notice/lib/cjs/translations/sv.json +1 -0
- package/notice/lib/cjs/translations/tr.json +1 -0
- package/notice/lib/cjs/translations/vi.json +1 -0
- package/notice/lib/cjs/translations/zh.json +1 -0
- package/notice/lib/es6/Notice.js +21 -16
- package/notice/lib/es6/Notice.js.map +1 -1
- package/notice/lib/es6/index.d.js.map +1 -1
- package/notice/lib/es6/style/notice.shadow.css +17 -0
- package/notice/lib/es6/translations/de.json +1 -0
- package/notice/lib/es6/translations/en.json +1 -0
- package/notice/lib/es6/translations/es.json +1 -0
- package/notice/lib/es6/translations/fr.json +1 -0
- package/notice/lib/es6/translations/it.json +1 -0
- package/notice/lib/es6/translations/ja.json +1 -0
- package/notice/lib/es6/translations/ko.json +1 -0
- package/notice/lib/es6/translations/nl.json +1 -0
- package/notice/lib/es6/translations/pl.json +1 -0
- package/notice/lib/es6/translations/pt.json +1 -0
- package/notice/lib/es6/translations/sv.json +1 -0
- package/notice/lib/es6/translations/tr.json +1 -0
- package/notice/lib/es6/translations/vi.json +1 -0
- package/notice/lib/es6/translations/zh.json +1 -0
- package/notice/lib/types/index.d.ts +1 -1
- package/notice-bubble/index.d.ts +27 -13
- package/notice-bubble/lib/cjs/NoticeBubble.js +60 -34
- package/notice-bubble/lib/cjs/NoticeBubble.js.map +1 -1
- package/notice-bubble/lib/cjs/NoticeBubbleManager.js +13 -2
- package/notice-bubble/lib/cjs/NoticeBubbleManager.js.map +1 -1
- package/notice-bubble/lib/cjs/index.d.js +0 -18
- package/notice-bubble/lib/cjs/index.d.js.map +1 -1
- package/notice-bubble/lib/cjs/style/notice-bubble.shadow.css +9 -5
- package/notice-bubble/lib/cjs/translations/de.json +2 -1
- package/notice-bubble/lib/cjs/translations/en.json +2 -1
- package/notice-bubble/lib/cjs/translations/es.json +2 -1
- package/notice-bubble/lib/cjs/translations/fr.json +2 -1
- package/notice-bubble/lib/cjs/translations/it.json +2 -1
- package/notice-bubble/lib/cjs/translations/ja.json +2 -1
- package/notice-bubble/lib/cjs/translations/ko.json +2 -1
- package/notice-bubble/lib/cjs/translations/nl.json +2 -1
- package/notice-bubble/lib/cjs/translations/pl.json +2 -1
- package/notice-bubble/lib/cjs/translations/pt.json +2 -1
- package/notice-bubble/lib/cjs/translations/sv.json +2 -1
- package/notice-bubble/lib/cjs/translations/tr.json +2 -1
- package/notice-bubble/lib/cjs/translations/vi.json +2 -1
- package/notice-bubble/lib/cjs/translations/zh.json +2 -1
- package/notice-bubble/lib/es6/NoticeBubble.js +61 -35
- package/notice-bubble/lib/es6/NoticeBubble.js.map +1 -1
- package/notice-bubble/lib/es6/NoticeBubbleManager.js +13 -2
- package/notice-bubble/lib/es6/NoticeBubbleManager.js.map +1 -1
- package/notice-bubble/lib/es6/index.d.js +0 -16
- package/notice-bubble/lib/es6/index.d.js.map +1 -1
- package/notice-bubble/lib/es6/style/notice-bubble.shadow.css +9 -5
- package/notice-bubble/lib/es6/translations/de.json +2 -1
- package/notice-bubble/lib/es6/translations/en.json +2 -1
- package/notice-bubble/lib/es6/translations/es.json +2 -1
- package/notice-bubble/lib/es6/translations/fr.json +2 -1
- package/notice-bubble/lib/es6/translations/it.json +2 -1
- package/notice-bubble/lib/es6/translations/ja.json +2 -1
- package/notice-bubble/lib/es6/translations/ko.json +2 -1
- package/notice-bubble/lib/es6/translations/nl.json +2 -1
- package/notice-bubble/lib/es6/translations/pl.json +2 -1
- package/notice-bubble/lib/es6/translations/pt.json +2 -1
- package/notice-bubble/lib/es6/translations/sv.json +2 -1
- package/notice-bubble/lib/es6/translations/tr.json +2 -1
- package/notice-bubble/lib/es6/translations/vi.json +2 -1
- package/notice-bubble/lib/es6/translations/zh.json +2 -1
- package/notice-bubble/lib/types/index.d.ts +27 -13
- package/notice-global/lib/cjs/NoticeGlobal.js +15 -13
- package/notice-global/lib/cjs/NoticeGlobal.js.map +1 -1
- package/notice-global/lib/cjs/translations/de.json +3 -1
- package/notice-global/lib/cjs/translations/en.json +3 -1
- package/notice-global/lib/cjs/translations/es.json +3 -1
- package/notice-global/lib/cjs/translations/fr.json +3 -1
- package/notice-global/lib/cjs/translations/it.json +3 -1
- package/notice-global/lib/cjs/translations/ja.json +3 -1
- package/notice-global/lib/cjs/translations/ko.json +3 -1
- package/notice-global/lib/cjs/translations/nl.json +3 -1
- package/notice-global/lib/cjs/translations/pl.json +3 -1
- package/notice-global/lib/cjs/translations/pt.json +3 -1
- package/notice-global/lib/cjs/translations/sv.json +3 -1
- package/notice-global/lib/cjs/translations/tr.json +3 -1
- package/notice-global/lib/cjs/translations/vi.json +3 -1
- package/notice-global/lib/cjs/translations/zh.json +3 -1
- package/notice-global/lib/es6/NoticeGlobal.js +15 -13
- package/notice-global/lib/es6/NoticeGlobal.js.map +1 -1
- package/notice-global/lib/es6/translations/de.json +3 -1
- package/notice-global/lib/es6/translations/en.json +3 -1
- package/notice-global/lib/es6/translations/es.json +3 -1
- package/notice-global/lib/es6/translations/fr.json +3 -1
- package/notice-global/lib/es6/translations/it.json +3 -1
- package/notice-global/lib/es6/translations/ja.json +3 -1
- package/notice-global/lib/es6/translations/ko.json +3 -1
- package/notice-global/lib/es6/translations/nl.json +3 -1
- package/notice-global/lib/es6/translations/pl.json +3 -1
- package/notice-global/lib/es6/translations/pt.json +3 -1
- package/notice-global/lib/es6/translations/sv.json +3 -1
- package/notice-global/lib/es6/translations/tr.json +3 -1
- package/notice-global/lib/es6/translations/vi.json +3 -1
- package/notice-global/lib/es6/translations/zh.json +3 -1
- package/package.json +1 -1
- package/pagination/index.d.ts +0 -1
- package/pagination/lib/cjs/Pagination.js +47 -56
- package/pagination/lib/cjs/Pagination.js.map +1 -1
- package/pagination/lib/cjs/index.d.js.map +1 -1
- package/pagination/lib/cjs/style/pagination.shadow.css +0 -1
- package/pagination/lib/cjs/translations/de.json +1 -6
- package/pagination/lib/cjs/translations/en.json +1 -6
- package/pagination/lib/cjs/translations/es.json +1 -6
- package/pagination/lib/cjs/translations/fr.json +1 -6
- package/pagination/lib/cjs/translations/it.json +1 -6
- package/pagination/lib/cjs/translations/ja.json +1 -6
- package/pagination/lib/cjs/translations/ko.json +1 -6
- package/pagination/lib/cjs/translations/nl.json +1 -6
- package/pagination/lib/cjs/translations/pl.json +1 -6
- package/pagination/lib/cjs/translations/pt.json +1 -6
- package/pagination/lib/cjs/translations/sv.json +1 -6
- package/pagination/lib/cjs/translations/tr.json +1 -6
- package/pagination/lib/cjs/translations/vi.json +1 -6
- package/pagination/lib/cjs/translations/zh.json +1 -6
- package/pagination/lib/es6/Pagination.js +47 -56
- package/pagination/lib/es6/Pagination.js.map +1 -1
- package/pagination/lib/es6/index.d.js.map +1 -1
- package/pagination/lib/es6/style/pagination.shadow.css +0 -1
- package/pagination/lib/es6/translations/de.json +1 -6
- package/pagination/lib/es6/translations/en.json +1 -6
- package/pagination/lib/es6/translations/es.json +1 -6
- package/pagination/lib/es6/translations/fr.json +1 -6
- package/pagination/lib/es6/translations/it.json +1 -6
- package/pagination/lib/es6/translations/ja.json +1 -6
- package/pagination/lib/es6/translations/ko.json +1 -6
- package/pagination/lib/es6/translations/nl.json +1 -6
- package/pagination/lib/es6/translations/pl.json +1 -6
- package/pagination/lib/es6/translations/pt.json +1 -6
- package/pagination/lib/es6/translations/sv.json +1 -6
- package/pagination/lib/es6/translations/tr.json +1 -6
- package/pagination/lib/es6/translations/vi.json +1 -6
- package/pagination/lib/es6/translations/zh.json +1 -6
- package/pagination/lib/types/index.d.ts +0 -1
- package/pills/lib/cjs/Pills.js +13 -13
- package/pills/lib/es6/Pills.js +13 -13
- package/popper/lib/cjs/Popper.js +6 -6
- package/popper/lib/es6/Popper.js +6 -6
- package/product-head/lib/cjs/Info.js +4 -4
- package/product-head/lib/cjs/ProductHead.js +5 -5
- package/product-head/lib/cjs/Title.js +4 -4
- package/product-head/lib/es6/Info.js +4 -4
- package/product-head/lib/es6/ProductHead.js +5 -5
- package/product-head/lib/es6/Title.js +4 -4
- package/progress-bar/lib/cjs/ProgressBar.js +15 -15
- package/progress-bar/lib/es6/ProgressBar.js +15 -15
- package/radio/lib/cjs/Radio.js +19 -18
- package/radio/lib/cjs/Radio.js.map +1 -1
- package/radio/lib/es6/Radio.js +19 -18
- package/radio/lib/es6/Radio.js.map +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/select/lib/cjs/InputSearch.js +6 -6
- package/select/lib/cjs/Select.js +8 -8
- package/select/lib/es6/InputSearch.js +6 -6
- package/select/lib/es6/Select.js +8 -8
- package/side-panel/lib/cjs/SidePanel.js +15 -15
- package/side-panel/lib/es6/SidePanel.js +15 -15
- package/skeleton/lib/cjs/Charts/Area.js +9 -9
- package/skeleton/lib/cjs/Charts/Bar.js +9 -9
- package/skeleton/lib/cjs/Charts/Bubble.js +9 -9
- package/skeleton/lib/cjs/Charts/Donut.js +9 -9
- package/skeleton/lib/cjs/Charts/Histogram.js +9 -9
- package/skeleton/lib/cjs/Charts/Line.js +9 -9
- package/skeleton/lib/cjs/Charts/RadialTree.js +9 -9
- package/skeleton/lib/cjs/Charts/ScatterPlot.js +9 -9
- package/skeleton/lib/cjs/Charts/Venn.js +9 -9
- package/skeleton/lib/cjs/Skeleton.js +22 -15
- package/skeleton/lib/cjs/Skeleton.js.map +1 -1
- package/skeleton/lib/es6/Charts/Area.js +9 -9
- package/skeleton/lib/es6/Charts/Bar.js +9 -9
- package/skeleton/lib/es6/Charts/Bubble.js +9 -9
- package/skeleton/lib/es6/Charts/Donut.js +9 -9
- package/skeleton/lib/es6/Charts/Histogram.js +9 -9
- package/skeleton/lib/es6/Charts/Line.js +9 -9
- package/skeleton/lib/es6/Charts/RadialTree.js +9 -9
- package/skeleton/lib/es6/Charts/ScatterPlot.js +9 -9
- package/skeleton/lib/es6/Charts/Venn.js +9 -9
- package/skeleton/lib/es6/Skeleton.js +22 -15
- package/skeleton/lib/es6/Skeleton.js.map +1 -1
- package/slider/lib/cjs/Slider.js +8 -8
- package/slider/lib/es6/Slider.js +8 -8
- package/spin/lib/cjs/Spin.js +13 -13
- package/spin/lib/es6/Spin.js +13 -13
- package/spin-container/lib/cjs/SpinContainer.js +8 -8
- package/spin-container/lib/es6/SpinContainer.js +8 -8
- package/sticky/lib/cjs/Sticky.js +2 -2
- package/sticky/lib/es6/Sticky.js +2 -2
- package/switch/lib/cjs/Switch.js +21 -21
- package/switch/lib/es6/Switch.js +21 -21
- package/tab-line/lib/cjs/TabLine.js +13 -13
- package/tab-line/lib/es6/TabLine.js +13 -13
- package/tab-panel/lib/cjs/TabPanel.js +8 -8
- package/tab-panel/lib/es6/TabPanel.js +8 -8
- package/tag/lib/cjs/Tag.js +20 -20
- package/tag/lib/es6/Tag.js +20 -20
- package/textarea/lib/cjs/Textarea.js +8 -8
- package/textarea/lib/es6/Textarea.js +8 -8
- package/time-picker/lib/cjs/TimePicker.js +12 -12
- package/time-picker/lib/es6/TimePicker.js +12 -12
- package/tooltip/index.d.ts +21 -2
- package/tooltip/lib/cjs/Tooltip.js +54 -34
- package/tooltip/lib/cjs/Tooltip.js.map +1 -1
- package/tooltip/lib/cjs/index.d.js.map +1 -1
- package/tooltip/lib/es6/Tooltip.js +54 -34
- package/tooltip/lib/es6/Tooltip.js.map +1 -1
- package/tooltip/lib/es6/index.d.js.map +1 -1
- package/tooltip/lib/types/index.d.ts +21 -2
- 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/utils/lib/components/invalid-state-pattern/InvalidStatePattern.js +2 -2
- package/utils/lib/components/invalid-state-pattern/InvalidStatePattern.mjs +2 -2
- package/utils/lib/core/types/Component.d.ts +3 -0
- package/utils/lib/core/types/Component.js.map +1 -1
- package/utils/lib/core/types/Component.mjs.map +1 -1
- package/utils/lib/injectStyle.js +1 -1
- package/utils/lib/injectStyle.mjs +1 -1
- package/widget-empty/lib/cjs/WidgetEmpty.js +5 -5
- package/widget-empty/lib/es6/WidgetEmpty.js +5 -5
- package/wizard/lib/cjs/Wizard.js +11 -11
- package/wizard/lib/es6/Wizard.js +11 -11
@@ -40,7 +40,7 @@ export interface INoticeBubbleInfoProps extends NoticeBubbleInfoProps, UnknownPr
|
|
40
40
|
export type NoticeBubbleInfoProps = NoticeBubbleProps & {
|
41
41
|
readonly type?: 'info';
|
42
42
|
/**
|
43
|
-
* Notice display duration.
|
43
|
+
* Notice display duration. Set to 0 to disable auto-close.
|
44
44
|
*/
|
45
45
|
duration?: number;
|
46
46
|
/**
|
@@ -48,6 +48,13 @@ export type NoticeBubbleInfoProps = NoticeBubbleProps & {
|
|
48
48
|
* @default false
|
49
49
|
*/
|
50
50
|
initialAnimation?: boolean;
|
51
|
+
/**
|
52
|
+
* Use it for complex notices with important controls.
|
53
|
+
* If enabled, browser focus will be locked in the notice
|
54
|
+
* until it's closed. After close focus should return to the element
|
55
|
+
* where it was placed before notice appear.
|
56
|
+
*/
|
57
|
+
focusLock?: boolean;
|
51
58
|
};
|
52
59
|
|
53
60
|
/** @deprecated */
|
@@ -63,6 +70,13 @@ export type NoticeBubbleWarningProps = NoticeBubbleProps & {
|
|
63
70
|
* @default false
|
64
71
|
*/
|
65
72
|
initialAnimation?: boolean;
|
73
|
+
/**
|
74
|
+
* Use it for complex notices with important controls.
|
75
|
+
* If enabled, browser focus will be locked in the notice
|
76
|
+
* until it's closed. After close focus should return to the element
|
77
|
+
* where it was placed before notice appear.
|
78
|
+
*/
|
79
|
+
focusLock?: boolean;
|
66
80
|
};
|
67
81
|
|
68
82
|
/** @deprecated */
|
@@ -75,6 +89,8 @@ export type NoticeBubbleManagerClass = {
|
|
75
89
|
uid: string;
|
76
90
|
update: (props: Partial<NoticeBubbleInfoProps> | Partial<NoticeBubbleWarningProps>) => boolean;
|
77
91
|
remove: () => boolean;
|
92
|
+
ref: React.RefObject<HTMLDivElement>;
|
93
|
+
focus: () => void;
|
78
94
|
};
|
79
95
|
/**
|
80
96
|
* Updates notice by uid.
|
@@ -92,12 +108,15 @@ export type NoticeBubbleManagerClass = {
|
|
92
108
|
/**
|
93
109
|
* @deprecated use `NoticeBubbleManager` instead.
|
94
110
|
* */
|
95
|
-
declare const NoticeBubble: Intergalactic.Component<'div', NoticeBubbleInfoProps>;
|
111
|
+
export declare const NoticeBubble: Intergalactic.Component<'div', NoticeBubbleInfoProps>;
|
96
112
|
/**
|
97
113
|
* @deprecated use `NoticeBubbleManager` instead.
|
98
114
|
* */
|
99
|
-
declare const NoticeBubbleWarning: Intergalactic.Component<'div', NoticeBubbleWarningProps>;
|
100
|
-
declare const NoticeBubbleContainer: Intergalactic.Component<
|
115
|
+
export declare const NoticeBubbleWarning: Intergalactic.Component<'div', NoticeBubbleWarningProps>;
|
116
|
+
export declare const NoticeBubbleContainer: Intergalactic.Component<
|
117
|
+
'div',
|
118
|
+
NoticeBubbleContainerProps
|
119
|
+
> & {
|
101
120
|
/**
|
102
121
|
* @deprecated use `NoticeBubbleManager` instead.
|
103
122
|
* */
|
@@ -108,7 +127,7 @@ declare const NoticeBubbleContainer: Intergalactic.Component<'div', NoticeBubble
|
|
108
127
|
* */
|
109
128
|
Warning: typeof NoticeBubbleWarning;
|
110
129
|
};
|
111
|
-
declare class NoticeBubbleManager implements NoticeBubbleManagerClass {
|
130
|
+
export declare class NoticeBubbleManager implements NoticeBubbleManagerClass {
|
112
131
|
/**
|
113
132
|
* Creates and shows a notice.
|
114
133
|
* */
|
@@ -116,6 +135,8 @@ declare class NoticeBubbleManager implements NoticeBubbleManagerClass {
|
|
116
135
|
uid: string;
|
117
136
|
update: (props: Partial<NoticeBubbleInfoProps> | Partial<NoticeBubbleWarningProps>) => boolean;
|
118
137
|
remove: () => boolean;
|
138
|
+
ref: React.RefObject<HTMLDivElement>;
|
139
|
+
focus: () => void;
|
119
140
|
};
|
120
141
|
/**
|
121
142
|
* Updates notice by uid.
|
@@ -130,15 +151,8 @@ declare class NoticeBubbleManager implements NoticeBubbleManagerClass {
|
|
130
151
|
remove(uid: string): boolean;
|
131
152
|
}
|
132
153
|
|
133
|
-
declare const noticeBubbleDefaultManager: NoticeBubbleManager;
|
154
|
+
export declare const noticeBubbleDefaultManager: NoticeBubbleManager;
|
134
155
|
|
135
|
-
export {
|
136
|
-
NoticeBubbleContainer,
|
137
|
-
NoticeBubble,
|
138
|
-
NoticeBubbleWarning,
|
139
|
-
NoticeBubbleManager,
|
140
|
-
noticeBubbleDefaultManager,
|
141
|
-
};
|
142
156
|
/**
|
143
157
|
* @deprecated Use `import { noticeBubbleDefaultManager } from ...` instead
|
144
158
|
*/
|
@@ -25,17 +25,17 @@ var _i18nEnhance = _interopRequireDefault(require("intergalactic/utils/lib/enhan
|
|
25
25
|
var _useCssVariable = require("intergalactic/utils/lib/useCssVariable");
|
26
26
|
var _keyboardFocusEnhance = _interopRequireDefault(require("intergalactic/utils/lib/enhances/keyboardFocusEnhance"));
|
27
27
|
/*__reshadow-styles__:"./style/notice-global.shadow.css"*/
|
28
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".
|
29
|
-
"__SNoticeGlobal": "
|
30
|
-
"_theme_neutral": "
|
31
|
-
"_theme_custom": "
|
32
|
-
"--backgroundColor": "--
|
33
|
-
"__SContent": "
|
34
|
-
"__SCloseIcon": "
|
35
|
-
"_theme_info": "
|
36
|
-
"_theme_danger": "
|
37
|
-
"_theme_warning": "
|
38
|
-
"_theme_success": "
|
28
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SNoticeGlobal_ncdvc_gg_{display:flex;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);box-sizing:border-box;padding:var(--intergalactic-spacing-2x, 8px) var(--intergalactic-spacing-8x, 32px)}.___SCloseIcon_ncdvc_gg_{flex-shrink:0;margin-top:var(--intergalactic-spacing-05x, 2px);margin-left:var(--intergalactic-spacing-4x, 16px)}@media (hover:hover){.___SCloseIcon_ncdvc_gg_:hover{cursor:pointer}}.___SNoticeGlobal_ncdvc_gg_._theme_neutral_ncdvc_gg_{background-color:var(--intergalactic-bg-primary-muted, #6c6e79);color:var(--intergalactic-text-primary-invert, #ffffff)}.___SNoticeGlobal_ncdvc_gg_._theme_info_ncdvc_gg_{background-color:var(--intergalactic-bg-primary-info, #008ff8);color:var(--intergalactic-text-primary-invert, #ffffff)}.___SNoticeGlobal_ncdvc_gg_._theme_danger_ncdvc_gg_ .___SCloseIcon_ncdvc_gg_,.___SNoticeGlobal_ncdvc_gg_._theme_info_ncdvc_gg_ .___SCloseIcon_ncdvc_gg_,.___SNoticeGlobal_ncdvc_gg_._theme_success_ncdvc_gg_ .___SCloseIcon_ncdvc_gg_,.___SNoticeGlobal_ncdvc_gg_._theme_warning_ncdvc_gg_ .___SCloseIcon_ncdvc_gg_{color:var(--intergalactic-icon-primary-invert, #ffffff)}@media (hover:hover){.___SNoticeGlobal_ncdvc_gg_._theme_info_ncdvc_gg_ .___SCloseIcon_ncdvc_gg_:hover{color:var(--intergalactic-icon-primary-invert-hover-active, #e0e1e9)}}.___SNoticeGlobal_ncdvc_gg_._theme_danger_ncdvc_gg_{background-color:var(--intergalactic-bg-primary-critical, #ff4953);color:var(--intergalactic-text-primary-invert, #ffffff)}@media (hover:hover){.___SNoticeGlobal_ncdvc_gg_._theme_danger_ncdvc_gg_ .___SCloseIcon_ncdvc_gg_:hover{color:var(--intergalactic-icon-primary-invert-hover-active, #e0e1e9)}}.___SNoticeGlobal_ncdvc_gg_._theme_warning_ncdvc_gg_{background-color:var(--intergalactic-bg-primary-warning, #ff642d);color:var(--intergalactic-text-primary-invert, #ffffff)}@media (hover:hover){.___SNoticeGlobal_ncdvc_gg_._theme_warning_ncdvc_gg_ .___SCloseIcon_ncdvc_gg_:hover{color:var(--intergalactic-icon-primary-invert-hover-active, #e0e1e9)}}.___SNoticeGlobal_ncdvc_gg_._theme_success_ncdvc_gg_{background-color:var(--intergalactic-bg-primary-success, #009f81);color:var(--intergalactic-text-primary-invert, #ffffff)}@media (hover:hover){.___SNoticeGlobal_ncdvc_gg_._theme_success_ncdvc_gg_ .___SCloseIcon_ncdvc_gg_:hover{color:var(--intergalactic-icon-primary-invert-hover-active, #e0e1e9)}}.___SNoticeGlobal_ncdvc_gg_._theme_custom_ncdvc_gg_{background-color:var(--backgroundColor_ncdvc)}.___SContent_ncdvc_gg_{flex:1 1 auto;width:100%;justify-content:center}" /*__inner_css_end__*/, "ncdvc_gg_") /*__reshadow_css_end__*/, {
|
29
|
+
"__SNoticeGlobal": "___SNoticeGlobal_ncdvc_gg_",
|
30
|
+
"_theme_neutral": "_theme_neutral_ncdvc_gg_",
|
31
|
+
"_theme_custom": "_theme_custom_ncdvc_gg_",
|
32
|
+
"--backgroundColor": "--backgroundColor_ncdvc",
|
33
|
+
"__SContent": "___SContent_ncdvc_gg_",
|
34
|
+
"__SCloseIcon": "___SCloseIcon_ncdvc_gg_",
|
35
|
+
"_theme_info": "_theme_info_ncdvc_gg_",
|
36
|
+
"_theme_danger": "_theme_danger_ncdvc_gg_",
|
37
|
+
"_theme_warning": "_theme_warning_ncdvc_gg_",
|
38
|
+
"_theme_success": "_theme_success_ncdvc_gg_"
|
39
39
|
});
|
40
40
|
function isCustomTheme(theme) {
|
41
41
|
return !['danger', 'warning', 'success', 'info', 'neutral'].includes(theme);
|
@@ -69,7 +69,8 @@ var NoticeGlobalRoot = /*#__PURE__*/function (_Component) {
|
|
69
69
|
closable = _this$asProps.closable,
|
70
70
|
onClose = _this$asProps.onClose,
|
71
71
|
forcedAdvancedMode = _this$asProps.forcedAdvancedMode,
|
72
|
-
resolveColor = _this$asProps.resolveColor
|
72
|
+
resolveColor = _this$asProps.resolveColor,
|
73
|
+
getI18nText = _this$asProps.getI18nText;
|
73
74
|
var isAssertive = theme === 'danger' || theme === 'warning';
|
74
75
|
var color = resolveColor(theme);
|
75
76
|
var useTheme = isCustomTheme(theme) ? 'custom' : theme;
|
@@ -79,7 +80,8 @@ var NoticeGlobalRoot = /*#__PURE__*/function (_Component) {
|
|
79
80
|
"use:theme": useTheme,
|
80
81
|
"backgroundColor": color,
|
81
82
|
"role": 'region',
|
82
|
-
"aria-live": isAssertive ? 'assertive' : 'polite'
|
83
|
+
"aria-live": isAssertive ? 'assertive' : 'polite',
|
84
|
+
"aria-label": getI18nText(isAssertive ? 'criticalNotification' : 'notification')
|
83
85
|
}, _ref))), advancedMode ? /*#__PURE__*/_react["default"].createElement(Children, _ref4.cn("Children", {})) : /*#__PURE__*/_react["default"].createElement(NoticeGlobal.Content, null, /*#__PURE__*/_react["default"].createElement(Children, _ref4.cn("Children", {}))), closable && /*#__PURE__*/_react["default"].createElement(NoticeGlobal.CloseIcon, {
|
84
86
|
onClick: onClose
|
85
87
|
}));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NoticeGlobal.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_flexBox","_m","_resolveColorEnhance","_animation","_findComponent","_intergalacticDynamicLocales","_i18nEnhance","_useCssVariable","_keyboardFocusEnhance","style","_index","sstyled","insert","isCustomTheme","theme","includes","NoticeGlobalRoot","_Component","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","value","getCloseIconProps","getI18nText","asProps","render","_ref","_ref4","SNoticeGlobal","FadeInOut","_this$asProps","Children","styles","hidden","closable","onClose","forcedAdvancedMode","resolveColor","isAssertive","color","useTheme","advancedMode","isAdvanceMode","NoticeGlobal","Content","displayName","createElement","cn","_objectSpread2","assignProps","CloseIcon","onClick","Component","_defineProperty2","i18nEnhance","localizedMessages","cssVariableEnhance","variable","fallback","map","Number","parseInt","prop","resolveColorEnhance","i18n","locale","_ref7","_ref2","arguments[0]","_ref5","SContent","Flex","_ref8","_ref3","_ref6","SCloseIcon","Box","Close","enhance","keyboardFocusEnhance","createComponent","_default","exports"],"sources":["../../src/NoticeGlobal.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { Flex, Box } from '@semcore/flex-box';\nimport Close from '@semcore/icon/Close/m';\nimport resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';\nimport { FadeInOut } from '@semcore/animation';\nimport { isAdvanceMode } from '@semcore/utils/lib/findComponent';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport { cssVariableEnhance } from '@semcore/utils/lib/useCssVariable';\n\nimport style from './style/notice-global.shadow.css';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\n\nfunction isCustomTheme(theme) {\n return !['danger', 'warning', 'success', 'info', 'neutral'].includes(theme);\n}\n\nclass NoticeGlobalRoot extends Component {\n static displayName = 'NoticeGlobal';\n static style = style;\n static enhance = [\n i18nEnhance(localizedMessages),\n cssVariableEnhance({\n variable: '--intergalactic-duration-popper',\n fallback: '200',\n map: Number.parseInt,\n prop: 'duration',\n }),\n resolveColorEnhance(),\n ];\n static defaultProps = {\n theme: 'neutral',\n i18n: localizedMessages,\n locale: 'en',\n };\n\n getCloseIconProps() {\n const { getI18nText } = this.asProps;\n\n return { getI18nText };\n }\n\n render() {\n const SNoticeGlobal = Root;\n const {
|
1
|
+
{"version":3,"file":"NoticeGlobal.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_flexBox","_m","_resolveColorEnhance","_animation","_findComponent","_intergalacticDynamicLocales","_i18nEnhance","_useCssVariable","_keyboardFocusEnhance","style","_index","sstyled","insert","isCustomTheme","theme","includes","NoticeGlobalRoot","_Component","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","value","getCloseIconProps","getI18nText","asProps","render","_ref","_ref4","SNoticeGlobal","FadeInOut","_this$asProps","Children","styles","hidden","closable","onClose","forcedAdvancedMode","resolveColor","isAssertive","color","useTheme","advancedMode","isAdvanceMode","NoticeGlobal","Content","displayName","createElement","cn","_objectSpread2","assignProps","CloseIcon","onClick","Component","_defineProperty2","i18nEnhance","localizedMessages","cssVariableEnhance","variable","fallback","map","Number","parseInt","prop","resolveColorEnhance","i18n","locale","_ref7","_ref2","arguments[0]","_ref5","SContent","Flex","_ref8","_ref3","_ref6","SCloseIcon","Box","Close","enhance","keyboardFocusEnhance","createComponent","_default","exports"],"sources":["../../src/NoticeGlobal.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { Flex, Box } from '@semcore/flex-box';\nimport Close from '@semcore/icon/Close/m';\nimport resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';\nimport { FadeInOut } from '@semcore/animation';\nimport { isAdvanceMode } from '@semcore/utils/lib/findComponent';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport { cssVariableEnhance } from '@semcore/utils/lib/useCssVariable';\n\nimport style from './style/notice-global.shadow.css';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\n\nfunction isCustomTheme(theme) {\n return !['danger', 'warning', 'success', 'info', 'neutral'].includes(theme);\n}\n\nclass NoticeGlobalRoot extends Component {\n static displayName = 'NoticeGlobal';\n static style = style;\n static enhance = [\n i18nEnhance(localizedMessages),\n cssVariableEnhance({\n variable: '--intergalactic-duration-popper',\n fallback: '200',\n map: Number.parseInt,\n prop: 'duration',\n }),\n resolveColorEnhance(),\n ];\n static defaultProps = {\n theme: 'neutral',\n i18n: localizedMessages,\n locale: 'en',\n };\n\n getCloseIconProps() {\n const { getI18nText } = this.asProps;\n\n return { getI18nText };\n }\n\n render() {\n const SNoticeGlobal = Root;\n const {\n Children,\n styles,\n hidden,\n theme,\n closable,\n onClose,\n forcedAdvancedMode,\n resolveColor,\n getI18nText,\n } = this.asProps;\n const isAssertive = theme === 'danger' || theme === 'warning';\n const color = resolveColor(theme);\n const useTheme = isCustomTheme(theme) ? 'custom' : theme;\n\n const advancedMode =\n forcedAdvancedMode || isAdvanceMode(Children, [NoticeGlobal.Content.displayName]);\n\n return sstyled(styles)(\n <SNoticeGlobal\n render={FadeInOut}\n visible={!hidden}\n use:theme={useTheme}\n backgroundColor={color}\n role='region'\n aria-live={isAssertive ? 'assertive' : 'polite'}\n aria-label={getI18nText(isAssertive ? 'criticalNotification' : 'notification')}\n >\n {advancedMode ? (\n <Children />\n ) : (\n <NoticeGlobal.Content>\n <Children />\n </NoticeGlobal.Content>\n )}\n {closable && <NoticeGlobal.CloseIcon onClick={onClose} />}\n </SNoticeGlobal>,\n );\n }\n}\n\nfunction Content({ styles }) {\n const SContent = Root;\n return sstyled(styles)(<SContent render={Flex} />);\n}\n\nfunction CloseIcon({ styles, getI18nText }) {\n const SCloseIcon = Root;\n return sstyled(styles)(\n <SCloseIcon render={Box} tag={Close} interactive aria-label={getI18nText('close')} />,\n );\n}\nCloseIcon.enhance = [keyboardFocusEnhance()];\n\nconst NoticeGlobal = createComponent(NoticeGlobalRoot, {\n Content,\n CloseIcon,\n});\n\nexport default NoticeGlobal;\n"],"mappings":";;;;;;;;;;;;;;;AACA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AADA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,EAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,oBAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,cAAA,GAAAP,OAAA;AACA,IAAAQ,4BAAA,GAAAR,OAAA;AACA,IAAAS,YAAA,GAAAP,sBAAA,CAAAF,OAAA;AACA,IAAAU,eAAA,GAAAV,OAAA;AAGA,IAAAW,qBAAA,GAAAT,sBAAA,CAAAF,OAAA;AAAoF;AAAA,IAAAY,KAAA,+BAAAC,MAAA,CAAAC,OAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAEpF,SAAS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,GAAG,IAAAqC,gBAAe,EAACrE,gBAAgB,EAAE;EACrDiC,OAAO,EAAPA,OAAO;EACPM,SAAS,EAATA;AACF,CAAC,CAAC;AAAC,IAAA+B,QAAA,GAEYtC,YAAY;AAAAuC,OAAA,cAAAD,QAAA"}
|
@@ -19,17 +19,17 @@ import { localizedMessages } from './translations/__intergalactic-dynamic-locale
|
|
19
19
|
import i18nEnhance from 'intergalactic/utils/lib/enhances/i18nEnhance';
|
20
20
|
import { cssVariableEnhance } from 'intergalactic/utils/lib/useCssVariable';
|
21
21
|
/*__reshadow-styles__:"./style/notice-global.shadow.css"*/
|
22
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
23
|
-
"__SNoticeGlobal": "
|
24
|
-
"_theme_neutral": "
|
25
|
-
"_theme_custom": "
|
26
|
-
"--backgroundColor": "--
|
27
|
-
"__SContent": "
|
28
|
-
"__SCloseIcon": "
|
29
|
-
"_theme_info": "
|
30
|
-
"_theme_danger": "
|
31
|
-
"_theme_warning": "
|
32
|
-
"_theme_success": "
|
22
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SNoticeGlobal_ncdvc_gg_{display:flex;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);box-sizing:border-box;padding:var(--intergalactic-spacing-2x, 8px) var(--intergalactic-spacing-8x, 32px)}.___SCloseIcon_ncdvc_gg_{flex-shrink:0;margin-top:var(--intergalactic-spacing-05x, 2px);margin-left:var(--intergalactic-spacing-4x, 16px)}@media (hover:hover){.___SCloseIcon_ncdvc_gg_:hover{cursor:pointer}}.___SNoticeGlobal_ncdvc_gg_._theme_neutral_ncdvc_gg_{background-color:var(--intergalactic-bg-primary-muted, #6c6e79);color:var(--intergalactic-text-primary-invert, #ffffff)}.___SNoticeGlobal_ncdvc_gg_._theme_info_ncdvc_gg_{background-color:var(--intergalactic-bg-primary-info, #008ff8);color:var(--intergalactic-text-primary-invert, #ffffff)}.___SNoticeGlobal_ncdvc_gg_._theme_danger_ncdvc_gg_ .___SCloseIcon_ncdvc_gg_,.___SNoticeGlobal_ncdvc_gg_._theme_info_ncdvc_gg_ .___SCloseIcon_ncdvc_gg_,.___SNoticeGlobal_ncdvc_gg_._theme_success_ncdvc_gg_ .___SCloseIcon_ncdvc_gg_,.___SNoticeGlobal_ncdvc_gg_._theme_warning_ncdvc_gg_ .___SCloseIcon_ncdvc_gg_{color:var(--intergalactic-icon-primary-invert, #ffffff)}@media (hover:hover){.___SNoticeGlobal_ncdvc_gg_._theme_info_ncdvc_gg_ .___SCloseIcon_ncdvc_gg_:hover{color:var(--intergalactic-icon-primary-invert-hover-active, #e0e1e9)}}.___SNoticeGlobal_ncdvc_gg_._theme_danger_ncdvc_gg_{background-color:var(--intergalactic-bg-primary-critical, #ff4953);color:var(--intergalactic-text-primary-invert, #ffffff)}@media (hover:hover){.___SNoticeGlobal_ncdvc_gg_._theme_danger_ncdvc_gg_ .___SCloseIcon_ncdvc_gg_:hover{color:var(--intergalactic-icon-primary-invert-hover-active, #e0e1e9)}}.___SNoticeGlobal_ncdvc_gg_._theme_warning_ncdvc_gg_{background-color:var(--intergalactic-bg-primary-warning, #ff642d);color:var(--intergalactic-text-primary-invert, #ffffff)}@media (hover:hover){.___SNoticeGlobal_ncdvc_gg_._theme_warning_ncdvc_gg_ .___SCloseIcon_ncdvc_gg_:hover{color:var(--intergalactic-icon-primary-invert-hover-active, #e0e1e9)}}.___SNoticeGlobal_ncdvc_gg_._theme_success_ncdvc_gg_{background-color:var(--intergalactic-bg-primary-success, #009f81);color:var(--intergalactic-text-primary-invert, #ffffff)}@media (hover:hover){.___SNoticeGlobal_ncdvc_gg_._theme_success_ncdvc_gg_ .___SCloseIcon_ncdvc_gg_:hover{color:var(--intergalactic-icon-primary-invert-hover-active, #e0e1e9)}}.___SNoticeGlobal_ncdvc_gg_._theme_custom_ncdvc_gg_{background-color:var(--backgroundColor_ncdvc)}.___SContent_ncdvc_gg_{flex:1 1 auto;width:100%;justify-content:center}" /*__inner_css_end__*/, "ncdvc_gg_") /*__reshadow_css_end__*/, {
|
23
|
+
"__SNoticeGlobal": "___SNoticeGlobal_ncdvc_gg_",
|
24
|
+
"_theme_neutral": "_theme_neutral_ncdvc_gg_",
|
25
|
+
"_theme_custom": "_theme_custom_ncdvc_gg_",
|
26
|
+
"--backgroundColor": "--backgroundColor_ncdvc",
|
27
|
+
"__SContent": "___SContent_ncdvc_gg_",
|
28
|
+
"__SCloseIcon": "___SCloseIcon_ncdvc_gg_",
|
29
|
+
"_theme_info": "_theme_info_ncdvc_gg_",
|
30
|
+
"_theme_danger": "_theme_danger_ncdvc_gg_",
|
31
|
+
"_theme_warning": "_theme_warning_ncdvc_gg_",
|
32
|
+
"_theme_success": "_theme_success_ncdvc_gg_"
|
33
33
|
});
|
34
34
|
import keyboardFocusEnhance from 'intergalactic/utils/lib/enhances/keyboardFocusEnhance';
|
35
35
|
function isCustomTheme(theme) {
|
@@ -64,7 +64,8 @@ var NoticeGlobalRoot = /*#__PURE__*/function (_Component) {
|
|
64
64
|
closable = _this$asProps.closable,
|
65
65
|
onClose = _this$asProps.onClose,
|
66
66
|
forcedAdvancedMode = _this$asProps.forcedAdvancedMode,
|
67
|
-
resolveColor = _this$asProps.resolveColor
|
67
|
+
resolveColor = _this$asProps.resolveColor,
|
68
|
+
getI18nText = _this$asProps.getI18nText;
|
68
69
|
var isAssertive = theme === 'danger' || theme === 'warning';
|
69
70
|
var color = resolveColor(theme);
|
70
71
|
var useTheme = isCustomTheme(theme) ? 'custom' : theme;
|
@@ -74,7 +75,8 @@ var NoticeGlobalRoot = /*#__PURE__*/function (_Component) {
|
|
74
75
|
"use:theme": useTheme,
|
75
76
|
"backgroundColor": color,
|
76
77
|
"role": 'region',
|
77
|
-
"aria-live": isAssertive ? 'assertive' : 'polite'
|
78
|
+
"aria-live": isAssertive ? 'assertive' : 'polite',
|
79
|
+
"aria-label": getI18nText(isAssertive ? 'criticalNotification' : 'notification')
|
78
80
|
}, _ref))), advancedMode ? /*#__PURE__*/React.createElement(Children, _ref4.cn("Children", {})) : /*#__PURE__*/React.createElement(NoticeGlobal.Content, null, /*#__PURE__*/React.createElement(Children, _ref4.cn("Children", {}))), closable && /*#__PURE__*/React.createElement(NoticeGlobal.CloseIcon, {
|
79
81
|
onClick: onClose
|
80
82
|
}));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NoticeGlobal.js","names":["React","createComponent","Component","sstyled","Root","Flex","Box","Close","resolveColorEnhance","FadeInOut","isAdvanceMode","localizedMessages","i18nEnhance","cssVariableEnhance","style","_sstyled","insert","keyboardFocusEnhance","isCustomTheme","theme","includes","NoticeGlobalRoot","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","getCloseIconProps","getI18nText","asProps","render","_ref","_ref4","SNoticeGlobal","_this$asProps","Children","styles","hidden","closable","onClose","forcedAdvancedMode","resolveColor","isAssertive","color","useTheme","advancedMode","NoticeGlobal","Content","displayName","createElement","cn","_objectSpread","_assignProps","CloseIcon","onClick","_defineProperty","variable","fallback","map","Number","parseInt","prop","i18n","locale","_ref7","_ref2","arguments[0]","_ref5","SContent","_assignProps2","_ref8","_ref3","_ref6","SCloseIcon","_assignProps3","enhance"],"sources":["../../src/NoticeGlobal.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { Flex, Box } from '@semcore/flex-box';\nimport Close from '@semcore/icon/Close/m';\nimport resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';\nimport { FadeInOut } from '@semcore/animation';\nimport { isAdvanceMode } from '@semcore/utils/lib/findComponent';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport { cssVariableEnhance } from '@semcore/utils/lib/useCssVariable';\n\nimport style from './style/notice-global.shadow.css';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\n\nfunction isCustomTheme(theme) {\n return !['danger', 'warning', 'success', 'info', 'neutral'].includes(theme);\n}\n\nclass NoticeGlobalRoot extends Component {\n static displayName = 'NoticeGlobal';\n static style = style;\n static enhance = [\n i18nEnhance(localizedMessages),\n cssVariableEnhance({\n variable: '--intergalactic-duration-popper',\n fallback: '200',\n map: Number.parseInt,\n prop: 'duration',\n }),\n resolveColorEnhance(),\n ];\n static defaultProps = {\n theme: 'neutral',\n i18n: localizedMessages,\n locale: 'en',\n };\n\n getCloseIconProps() {\n const { getI18nText } = this.asProps;\n\n return { getI18nText };\n }\n\n render() {\n const SNoticeGlobal = Root;\n const {
|
1
|
+
{"version":3,"file":"NoticeGlobal.js","names":["React","createComponent","Component","sstyled","Root","Flex","Box","Close","resolveColorEnhance","FadeInOut","isAdvanceMode","localizedMessages","i18nEnhance","cssVariableEnhance","style","_sstyled","insert","keyboardFocusEnhance","isCustomTheme","theme","includes","NoticeGlobalRoot","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","getCloseIconProps","getI18nText","asProps","render","_ref","_ref4","SNoticeGlobal","_this$asProps","Children","styles","hidden","closable","onClose","forcedAdvancedMode","resolveColor","isAssertive","color","useTheme","advancedMode","NoticeGlobal","Content","displayName","createElement","cn","_objectSpread","_assignProps","CloseIcon","onClick","_defineProperty","variable","fallback","map","Number","parseInt","prop","i18n","locale","_ref7","_ref2","arguments[0]","_ref5","SContent","_assignProps2","_ref8","_ref3","_ref6","SCloseIcon","_assignProps3","enhance"],"sources":["../../src/NoticeGlobal.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { Flex, Box } from '@semcore/flex-box';\nimport Close from '@semcore/icon/Close/m';\nimport resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';\nimport { FadeInOut } from '@semcore/animation';\nimport { isAdvanceMode } from '@semcore/utils/lib/findComponent';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport { cssVariableEnhance } from '@semcore/utils/lib/useCssVariable';\n\nimport style from './style/notice-global.shadow.css';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\n\nfunction isCustomTheme(theme) {\n return !['danger', 'warning', 'success', 'info', 'neutral'].includes(theme);\n}\n\nclass NoticeGlobalRoot extends Component {\n static displayName = 'NoticeGlobal';\n static style = style;\n static enhance = [\n i18nEnhance(localizedMessages),\n cssVariableEnhance({\n variable: '--intergalactic-duration-popper',\n fallback: '200',\n map: Number.parseInt,\n prop: 'duration',\n }),\n resolveColorEnhance(),\n ];\n static defaultProps = {\n theme: 'neutral',\n i18n: localizedMessages,\n locale: 'en',\n };\n\n getCloseIconProps() {\n const { getI18nText } = this.asProps;\n\n return { getI18nText };\n }\n\n render() {\n const SNoticeGlobal = Root;\n const {\n Children,\n styles,\n hidden,\n theme,\n closable,\n onClose,\n forcedAdvancedMode,\n resolveColor,\n getI18nText,\n } = this.asProps;\n const isAssertive = theme === 'danger' || theme === 'warning';\n const color = resolveColor(theme);\n const useTheme = isCustomTheme(theme) ? 'custom' : theme;\n\n const advancedMode =\n forcedAdvancedMode || isAdvanceMode(Children, [NoticeGlobal.Content.displayName]);\n\n return sstyled(styles)(\n <SNoticeGlobal\n render={FadeInOut}\n visible={!hidden}\n use:theme={useTheme}\n backgroundColor={color}\n role='region'\n aria-live={isAssertive ? 'assertive' : 'polite'}\n aria-label={getI18nText(isAssertive ? 'criticalNotification' : 'notification')}\n >\n {advancedMode ? (\n <Children />\n ) : (\n <NoticeGlobal.Content>\n <Children />\n </NoticeGlobal.Content>\n )}\n {closable && <NoticeGlobal.CloseIcon onClick={onClose} />}\n </SNoticeGlobal>,\n );\n }\n}\n\nfunction Content({ styles }) {\n const SContent = Root;\n return sstyled(styles)(<SContent render={Flex} />);\n}\n\nfunction CloseIcon({ styles, getI18nText }) {\n const SCloseIcon = Root;\n return sstyled(styles)(\n <SCloseIcon render={Box} tag={Close} interactive aria-label={getI18nText('close')} />,\n );\n}\nCloseIcon.enhance = [keyboardFocusEnhance()];\n\nconst NoticeGlobal = createComponent(NoticeGlobalRoot, {\n Content,\n CloseIcon,\n});\n\nexport default NoticeGlobal;\n"],"mappings":";;;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,eAAe,IAAIC,SAAS,EAAEC,OAAO,EAAEC,IAAI,QAAQ,eAAe;AACzE,SAASC,IAAI,EAAEC,GAAG,QAAQ,mBAAmB;AAC7C,OAAOC,KAAK,MAAM,uBAAuB;AACzC,OAAOC,mBAAmB,MAAM,iDAAiD;AACjF,SAASC,SAAS,QAAQ,oBAAoB;AAC9C,SAASC,aAAa,QAAQ,kCAAkC;AAChE,SAASC,iBAAiB,QAAQ,gDAAgD;AAClF,OAAOC,WAAW,MAAM,yCAAyC;AACjE,SAASC,kBAAkB,QAAQ,mCAAmC;AAAC;AAAA,IAAAC,KAAA,+BAAAC,QAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAGvE,OAAOC,oBAAoB,MAAM,kDAAkD;AAEnF,SAASC,aAAaA,CAACC,KAAK,EAAE;EAC5B,OAAO,CAAC,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,CAAC,CAACC,QAAQ,CAACD,KAAK,CAAC;AAC7E;AAAC,IAEKE,gBAAgB,0BAAAC,UAAA;EAAAC,SAAA,CAAAF,gBAAA,EAAAC,UAAA;EAAA,IAAAE,MAAA,GAAAC,YAAA,CAAAJ,gBAAA;EAAA,SAAAA,iBAAA;IAAAK,eAAA,OAAAL,gBAAA;IAAA,OAAAG,MAAA,CAAAG,KAAA,OAAAC,SAAA;EAAA;EAAAC,YAAA,CAAAR,gBAAA;IAAAS,GAAA;IAAAC,KAAA,EAmBpB,SAAAC,kBAAA,EAAoB;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