intergalactic 15.120.0-prerelease.0 → 15.121.0-prerelease.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +142 -27
- package/accordion/lib/cjs/Accordion.js +9 -9
- package/accordion/lib/es6/Accordion.js +9 -9
- package/accordion/package.json +1 -1
- package/animation/lib/cjs/Animation.js +11 -11
- package/animation/lib/cjs/Collapse.js +28 -28
- package/animation/lib/cjs/FadeInOut.js +28 -28
- package/animation/lib/cjs/Scale.js +28 -28
- package/animation/lib/cjs/Slide.js +28 -28
- package/animation/lib/cjs/Transform.js +28 -28
- package/animation/lib/es6/Animation.js +11 -11
- package/animation/lib/es6/Collapse.js +28 -28
- package/animation/lib/es6/FadeInOut.js +28 -28
- package/animation/lib/es6/Scale.js +28 -28
- package/animation/lib/es6/Slide.js +28 -28
- package/animation/lib/es6/Transform.js +28 -28
- package/animation/package.json +1 -1
- package/badge/lib/cjs/Badge.js +6 -6
- package/badge/lib/es6/Badge.js +6 -6
- package/badge/package.json +1 -1
- package/base-trigger/lib/cjs/BaseTrigger.js +18 -18
- package/base-trigger/lib/cjs/ButtonTrigger.js +3 -3
- package/base-trigger/lib/cjs/FilterTrigger.js +7 -7
- package/base-trigger/lib/cjs/LinkTrigger.js +12 -12
- package/base-trigger/lib/es6/BaseTrigger.js +18 -18
- package/base-trigger/lib/es6/ButtonTrigger.js +3 -3
- package/base-trigger/lib/es6/FilterTrigger.js +7 -7
- package/base-trigger/lib/es6/LinkTrigger.js +12 -12
- package/base-trigger/package.json +1 -1
- package/breadcrumbs/lib/cjs/Breadcrumbs.js +12 -10
- package/breadcrumbs/lib/cjs/Breadcrumbs.js.map +1 -1
- package/breadcrumbs/lib/es6/Breadcrumbs.js +12 -10
- package/breadcrumbs/lib/es6/Breadcrumbs.js.map +1 -1
- package/breadcrumbs/package.json +1 -1
- package/breakpoints/package.json +1 -1
- package/button/lib/cjs/component/Button/Button.js +27 -27
- package/button/lib/cjs/component/ButtonLink/ButtonLink.js +20 -20
- package/button/lib/es6/component/Button/Button.js +27 -27
- package/button/lib/es6/component/ButtonLink/ButtonLink.js +20 -20
- package/button/package.json +1 -1
- package/card/lib/cjs/Card.js +6 -6
- package/card/lib/es6/Card.js +6 -6
- package/card/package.json +1 -1
- package/carousel/Carousel.types.d.ts +6 -0
- package/carousel/lib/cjs/Carousel.js +83 -65
- package/carousel/lib/cjs/Carousel.js.map +1 -1
- package/carousel/lib/cjs/Carousel.types.js.map +1 -1
- package/carousel/lib/cjs/style/carousel.shadow.css +0 -1
- package/carousel/lib/es6/Carousel.js +84 -65
- package/carousel/lib/es6/Carousel.js.map +1 -1
- package/carousel/lib/es6/Carousel.types.js.map +1 -1
- package/carousel/lib/es6/style/carousel.shadow.css +0 -1
- package/carousel/lib/types/Carousel.types.d.ts +6 -0
- 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 +10 -6
- package/d3-chart/lib/cjs/Plot.js.map +1 -1
- 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 +13 -11
- package/d3-chart/lib/cjs/ScatterPlot.js.map +1 -1
- 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/Chart/AbstractChart.js +5 -2
- package/d3-chart/lib/cjs/component/Chart/AbstractChart.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 +36 -24
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/d3-chart/lib/cjs/style/hover.shadow.css +2 -0
- package/d3-chart/lib/cjs/style/radar.shadow.css +2 -1
- package/d3-chart/lib/cjs/translations/en.json +1 -0
- 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 +10 -6
- package/d3-chart/lib/es6/Plot.js.map +1 -1
- 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 +13 -11
- package/d3-chart/lib/es6/ScatterPlot.js.map +1 -1
- 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/Chart/AbstractChart.js +5 -2
- package/d3-chart/lib/es6/component/Chart/AbstractChart.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 +36 -24
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/d3-chart/lib/es6/style/hover.shadow.css +2 -0
- package/d3-chart/lib/es6/style/radar.shadow.css +2 -1
- package/d3-chart/lib/es6/translations/en.json +1 -0
- package/d3-chart/lib/types/translations/__intergalactic-dynamic-locales.d.ts +1 -0
- package/d3-chart/package.json +1 -1
- package/d3-chart/translations/__intergalactic-dynamic-locales.d.ts +1 -0
- package/data-table/lib/cjs/Body.js +8 -6
- package/data-table/lib/cjs/Body.js.map +1 -1
- package/data-table/lib/cjs/DataTable.js +81 -95
- package/data-table/lib/cjs/DataTable.js.map +1 -1
- package/data-table/lib/cjs/Head.js +8 -5
- package/data-table/lib/cjs/Head.js.map +1 -1
- package/data-table/lib/es6/Body.js +8 -6
- package/data-table/lib/es6/Body.js.map +1 -1
- package/data-table/lib/es6/DataTable.js +81 -95
- package/data-table/lib/es6/DataTable.js.map +1 -1
- package/data-table/lib/es6/Head.js +7 -5
- package/data-table/lib/es6/Head.js.map +1 -1
- package/data-table/package.json +1 -1
- package/date-picker/lib/cjs/components/Calendar.js +21 -21
- package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js +36 -29
- package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js.map +1 -1
- package/date-picker/lib/cjs/components/InputTrigger.js +33 -31
- package/date-picker/lib/cjs/components/InputTrigger.js.map +1 -1
- 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 +36 -29
- package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js.map +1 -1
- package/date-picker/lib/es6/components/InputTrigger.js +33 -31
- package/date-picker/lib/es6/components/InputTrigger.js.map +1 -1
- package/date-picker/lib/es6/components/PickerAbstract.js +29 -29
- package/date-picker/lib/es6/components/RangePickerAbstract.js +29 -29
- package/date-picker/package.json +1 -1
- package/divider/lib/cjs/Divider.js +10 -10
- package/divider/lib/es6/Divider.js +10 -10
- package/divider/package.json +1 -1
- package/dot/lib/cjs/Dot.js +10 -10
- package/dot/lib/es6/Dot.js +10 -10
- package/dot/package.json +1 -1
- package/drag-and-drop/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/lib/cjs/AbstractDropdown.js +49 -34
- package/dropdown/lib/cjs/AbstractDropdown.js.map +1 -1
- package/dropdown/lib/cjs/Dropdown.js +16 -15
- package/dropdown/lib/cjs/Dropdown.js.map +1 -1
- package/dropdown/lib/cjs/style/dropdown.shadow.css +45 -2
- package/dropdown/lib/es6/AbstractDropdown.js +49 -34
- package/dropdown/lib/es6/AbstractDropdown.js.map +1 -1
- package/dropdown/lib/es6/Dropdown.js +16 -15
- package/dropdown/lib/es6/Dropdown.js.map +1 -1
- package/dropdown/lib/es6/style/dropdown.shadow.css +45 -2
- package/dropdown/package.json +1 -1
- package/dropdown-menu/index.d.ts +9 -2
- package/dropdown-menu/lib/cjs/DropdownMenu.js +79 -40
- 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/es6/DropdownMenu.js +79 -40
- 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/types/index.d.ts +9 -2
- 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 +10 -8
- package/feedback-form/lib/cjs/FeedbackForm.js.map +1 -1
- 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/cjs/style/feedback-form.shadow.css +1 -0
- package/feedback-form/lib/es6/FeedbackForm.js +10 -8
- package/feedback-form/lib/es6/FeedbackForm.js.map +1 -1
- 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/lib/es6/style/feedback-form.shadow.css +1 -0
- package/feedback-form/package.json +1 -1
- package/flags/lib/cjs/Flags.js +3 -3
- package/flags/lib/es6/Flags.js +3 -3
- package/flags/lib/sprites/sprite@1x.css +256 -256
- package/flags/lib/sprites/sprite@2x.css +257 -257
- package/flags/package.json +1 -1
- package/flex-box/lib/cjs/Box/useBox.js +3 -3
- package/flex-box/lib/cjs/Flex/useFlex.js +3 -3
- package/flex-box/lib/cjs/invalid-state-box/InvalidStateBox.js +2 -2
- package/flex-box/lib/cjs/screen-reader-only-box/ScreenReaderOnlyBox.js +2 -2
- package/flex-box/lib/es6/Box/useBox.js +3 -3
- package/flex-box/lib/es6/Flex/useFlex.js +3 -3
- package/flex-box/lib/es6/invalid-state-box/InvalidStateBox.js +2 -2
- package/flex-box/lib/es6/screen-reader-only-box/ScreenReaderOnlyBox.js +2 -2
- package/flex-box/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/MetaColored/l/index.js +4 -4
- package/icon/color/MetaColored/l/index.mjs +4 -4
- package/icon/color/MetaColored/m/index.js +4 -4
- package/icon/color/MetaColored/m/index.mjs +4 -4
- package/icon/color/MicrosoftOffice/l/index.js +10 -10
- package/icon/color/MicrosoftOffice/l/index.mjs +10 -10
- package/icon/color/MicrosoftOffice/m/index.js +10 -10
- package/icon/color/MicrosoftOffice/m/index.mjs +10 -10
- package/icon/lib/cjs/Icon.js +5 -5
- package/icon/lib/es6/Icon.js +5 -5
- package/icon/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/AccessDenied/index.js +1 -0
- package/illustration/AccessDenied/index.mjs +1 -0
- package/illustration/AccessLogIn/index.js +1 -0
- package/illustration/AccessLogIn/index.mjs +1 -0
- package/illustration/AreaChart/index.js +1 -0
- package/illustration/AreaChart/index.mjs +1 -0
- package/illustration/Blocked/index.js +1 -0
- package/illustration/Blocked/index.mjs +1 -0
- package/illustration/ChoroplethMapChart/index.js +1 -0
- package/illustration/ChoroplethMapChart/index.mjs +1 -0
- package/illustration/Coffee/index.js +1 -0
- package/illustration/Coffee/index.mjs +1 -0
- package/illustration/Collection/index.js +1 -0
- package/illustration/Collection/index.mjs +1 -0
- package/illustration/CombinedChart/index.js +1 -0
- package/illustration/CombinedChart/index.mjs +1 -0
- package/illustration/Configuration/index.js +1 -0
- package/illustration/Configuration/index.mjs +1 -0
- package/illustration/Confirmation/index.js +1 -0
- package/illustration/Confirmation/index.mjs +1 -0
- package/illustration/Congrats/index.js +1 -0
- package/illustration/Congrats/index.mjs +1 -0
- package/illustration/ConnectionLost/index.js +1 -0
- package/illustration/ConnectionLost/index.mjs +1 -0
- package/illustration/DeletedAccount/index.js +1 -0
- package/illustration/DeletedAccount/index.mjs +1 -0
- package/illustration/DeletedPage/index.js +1 -0
- package/illustration/DeletedPage/index.mjs +1 -0
- package/illustration/Dns/index.js +1 -0
- package/illustration/Dns/index.mjs +1 -0
- package/illustration/DonutChart/index.js +1 -0
- package/illustration/DonutChart/index.mjs +1 -0
- package/illustration/Duplicates/index.js +1 -0
- package/illustration/Duplicates/index.mjs +1 -0
- package/illustration/Feedback/index.js +1 -0
- package/illustration/Feedback/index.mjs +1 -0
- package/illustration/FunnelChart/index.js +1 -0
- package/illustration/FunnelChart/index.mjs +1 -0
- package/illustration/Good/index.js +1 -0
- package/illustration/Good/index.mjs +1 -0
- package/illustration/HeatMapChart/index.js +1 -0
- package/illustration/HeatMapChart/index.mjs +1 -0
- package/illustration/HorizontalBarChart/index.js +1 -0
- package/illustration/HorizontalBarChart/index.mjs +1 -0
- package/illustration/KagiChart/index.js +1 -0
- package/illustration/KagiChart/index.mjs +1 -0
- package/illustration/LineChart/index.js +1 -0
- package/illustration/LineChart/index.mjs +1 -0
- package/illustration/LollipopChart/index.js +1 -0
- package/illustration/LollipopChart/index.mjs +1 -0
- package/illustration/MailSent/index.js +1 -0
- package/illustration/MailSent/index.mjs +1 -0
- package/illustration/Maintenance/index.js +1 -0
- package/illustration/Maintenance/index.mjs +1 -0
- package/illustration/Nexttime/index.js +1 -0
- package/illustration/Nexttime/index.mjs +1 -0
- package/illustration/NoPayment/index.js +1 -0
- package/illustration/NoPayment/index.mjs +1 -0
- package/illustration/NothingFound/index.js +1 -0
- package/illustration/NothingFound/index.mjs +1 -0
- package/illustration/OtherData/index.js +1 -0
- package/illustration/OtherData/index.mjs +1 -0
- package/illustration/PageError/index.js +1 -0
- package/illustration/PageError/index.mjs +1 -0
- package/illustration/PageNotFound/index.js +1 -0
- package/illustration/PageNotFound/index.mjs +1 -0
- package/illustration/PieChart/index.js +1 -0
- package/illustration/PieChart/index.mjs +1 -0
- package/illustration/Processing/index.js +1 -0
- package/illustration/Processing/index.mjs +1 -0
- package/illustration/ProjectNotFound/index.js +1 -0
- package/illustration/ProjectNotFound/index.mjs +1 -0
- package/illustration/RadarChart/index.js +1 -0
- package/illustration/RadarChart/index.mjs +1 -0
- package/illustration/RadialTreeChart/index.js +1 -0
- package/illustration/RadialTreeChart/index.mjs +1 -0
- package/illustration/SankeyChart/index.js +1 -0
- package/illustration/SankeyChart/index.mjs +1 -0
- package/illustration/ScatterPlotChart/index.js +1 -0
- package/illustration/ScatterPlotChart/index.mjs +1 -0
- package/illustration/StackedAreaChart/index.js +1 -0
- package/illustration/StackedAreaChart/index.mjs +1 -0
- package/illustration/Suggestion/index.js +1 -0
- package/illustration/Suggestion/index.mjs +1 -0
- package/illustration/Suggestions/index.js +1 -0
- package/illustration/Suggestions/index.mjs +1 -0
- package/illustration/Table/index.js +1 -0
- package/illustration/Table/index.mjs +1 -0
- package/illustration/TagCloud/index.js +1 -0
- package/illustration/TagCloud/index.mjs +1 -0
- package/illustration/TextLinksEtc/index.js +1 -0
- package/illustration/TextLinksEtc/index.mjs +1 -0
- package/illustration/Timeout/index.js +1 -0
- package/illustration/Timeout/index.mjs +1 -0
- package/illustration/UnderConstruction/index.js +1 -0
- package/illustration/UnderConstruction/index.mjs +1 -0
- package/illustration/VennChart/index.js +1 -0
- package/illustration/VennChart/index.mjs +1 -0
- package/illustration/VerticalBarChart/index.js +1 -0
- package/illustration/VerticalBarChart/index.mjs +1 -0
- package/illustration/Waiting/index.js +1 -0
- package/illustration/Waiting/index.mjs +1 -0
- package/illustration/Warning/index.js +1 -0
- package/illustration/Warning/index.mjs +1 -0
- 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 +25 -6
- package/inline-edit/lib/cjs/InlineEdit.js.map +1 -1
- package/inline-edit/lib/es6/InlineEdit.js +25 -6
- package/inline-edit/lib/es6/InlineEdit.js.map +1 -1
- package/inline-edit/package.json +1 -1
- package/inline-input/lib/cjs/InlineInput.js +14 -14
- package/inline-input/lib/es6/InlineInput.js +14 -14
- package/inline-input/package.json +1 -1
- package/input/lib/cjs/Input.js +17 -17
- package/input/lib/es6/Input.js +17 -17
- package/input/package.json +1 -1
- package/input-mask/lib/cjs/InputMask.js +6 -6
- package/input-mask/lib/es6/InputMask.js +6 -6
- 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 +24 -14
- package/input-tags/lib/cjs/InputTags.js.map +1 -1
- package/input-tags/lib/es6/InputTags.js +24 -14
- package/input-tags/lib/es6/InputTags.js.map +1 -1
- package/input-tags/package.json +1 -1
- package/link/lib/cjs/Link.js +32 -16
- package/link/lib/cjs/Link.js.map +1 -1
- package/link/lib/es6/Link.js +32 -16
- 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 +18 -18
- package/mini-chart/lib/cjs/component/trend/Bar.js +7 -7
- package/mini-chart/lib/cjs/component/trend/Line.js +7 -7
- package/mini-chart/lib/es6/component/score/Donut.js +9 -9
- package/mini-chart/lib/es6/component/score/Line.js +18 -18
- package/mini-chart/lib/es6/component/trend/Bar.js +7 -7
- package/mini-chart/lib/es6/component/trend/Line.js +7 -7
- package/mini-chart/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 +41 -22
- package/notice/lib/cjs/Notice.js.map +1 -1
- package/notice/lib/es6/Notice.js +41 -22
- package/notice/lib/es6/Notice.js.map +1 -1
- package/notice/package.json +1 -1
- package/notice-bubble/lib/cjs/NoticeBubble.js +41 -20
- package/notice-bubble/lib/cjs/NoticeBubble.js.map +1 -1
- package/notice-bubble/lib/cjs/NoticeBubbleManager.js +1 -1
- package/notice-bubble/lib/cjs/NoticeBubbleManager.js.map +1 -1
- package/notice-bubble/lib/es6/NoticeBubble.js +42 -20
- package/notice-bubble/lib/es6/NoticeBubble.js.map +1 -1
- package/notice-bubble/lib/es6/NoticeBubbleManager.js +1 -1
- package/notice-bubble/lib/es6/NoticeBubbleManager.js.map +1 -1
- 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/lib/cjs/OutsideClick.js +40 -5
- package/outside-click/lib/cjs/OutsideClick.js.map +1 -1
- package/outside-click/lib/es6/OutsideClick.js +35 -0
- package/outside-click/lib/es6/OutsideClick.js.map +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 +0 -4
- package/select/lib/cjs/InputSearch.js +6 -6
- package/select/lib/cjs/Select.js +8 -8
- package/select/lib/cjs/index.d.js.map +1 -1
- package/select/lib/es6/InputSearch.js +6 -6
- package/select/lib/es6/Select.js +8 -8
- package/select/lib/es6/index.d.js.map +1 -1
- package/select/lib/types/index.d.ts +0 -4
- package/select/package.json +1 -1
- package/side-panel/lib/cjs/SidePanel.js +16 -16
- package/side-panel/lib/es6/SidePanel.js +16 -16
- package/side-panel/package.json +1 -1
- package/skeleton/lib/cjs/Charts/Area.js +9 -9
- package/skeleton/lib/cjs/Charts/Bar.js +9 -9
- package/skeleton/lib/cjs/Charts/Bubble.js +9 -9
- package/skeleton/lib/cjs/Charts/CompactHorizontalBar.js +9 -9
- package/skeleton/lib/cjs/Charts/Donut.js +9 -9
- package/skeleton/lib/cjs/Charts/Histogram.js +9 -9
- package/skeleton/lib/cjs/Charts/Line.js +9 -9
- package/skeleton/lib/cjs/Charts/RadialTree.js +9 -9
- package/skeleton/lib/cjs/Charts/ScatterPlot.js +9 -9
- package/skeleton/lib/cjs/Charts/Venn.js +9 -9
- package/skeleton/lib/cjs/Skeleton.js +9 -8
- 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/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 +9 -8
- package/skeleton/lib/es6/Skeleton.js.map +1 -1
- 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 +13 -19
- package/tooltip/lib/cjs/Tooltip.js.map +1 -1
- package/tooltip/lib/es6/Tooltip.js +13 -19
- package/tooltip/lib/es6/Tooltip.js.map +1 -1
- 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/injectStyle.js +1 -1
- package/utils/lib/injectStyle.mjs +1 -1
- package/utils/lib/propsForElement.js +1 -1
- package/utils/lib/propsForElement.js.map +1 -1
- package/utils/lib/propsForElement.mjs +1 -1
- package/utils/lib/propsForElement.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 +12 -12
- package/wizard/lib/es6/Wizard.js +12 -12
- package/wizard/package.json +1 -1
@@ -22,13 +22,13 @@ var _Trend2 = require("./Trend");
|
|
22
22
|
var _flexBox = require("intergalactic/flex-box");
|
23
23
|
var _ariaProps = require("intergalactic/utils/lib/ariaProps");
|
24
24
|
/*__reshadow-styles__:"../skeleton/skeleton.shadow.css"*/
|
25
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/"@keyframes
|
26
|
-
"__SLineGauge": "
|
27
|
-
"_loading": "
|
28
|
-
"__SDonutContainer": "
|
29
|
-
"__STrendLine": "
|
30
|
-
"__STrendBar": "
|
31
|
-
"@pulse": "
|
25
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/"@keyframes pulse_y4fcr{0%,to{opacity:1}50%{opacity:.4}}.___SDonutContainer_y4fcr_gg_.__loading_y4fcr_gg_,.___SLineGauge_y4fcr_gg_.__loading_y4fcr_gg_,.___STrendBar_y4fcr_gg_.__loading_y4fcr_gg_,.___STrendLine_y4fcr_gg_.__loading_y4fcr_gg_{animation-name:pulse_y4fcr;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}" /*__inner_css_end__*/, "y4fcr_gg_") /*__reshadow_css_end__*/, {
|
26
|
+
"__SLineGauge": "___SLineGauge_y4fcr_gg_",
|
27
|
+
"_loading": "__loading_y4fcr_gg_",
|
28
|
+
"__SDonutContainer": "___SDonutContainer_y4fcr_gg_",
|
29
|
+
"__STrendLine": "___STrendLine_y4fcr_gg_",
|
30
|
+
"__STrendBar": "___STrendBar_y4fcr_gg_",
|
31
|
+
"@pulse": "pulse_y4fcr"
|
32
32
|
});
|
33
33
|
var TrendLineRoot = /*#__PURE__*/function (_Trend) {
|
34
34
|
(0, _inherits2["default"])(TrendLineRoot, _Trend);
|
@@ -12,15 +12,15 @@ import { Box } from 'intergalactic/flex-box';
|
|
12
12
|
import resolveColorEnhance from 'intergalactic/utils/lib/enhances/resolveColorEnhance';
|
13
13
|
import { assignProps } from 'intergalactic/core';
|
14
14
|
/*__reshadow-styles__:"./donut.shadow.css"*/
|
15
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/"@keyframes
|
16
|
-
"__SLineGauge": "
|
17
|
-
"_loading": "
|
18
|
-
"__SDonutContainer": "
|
19
|
-
"__STrendLine": "
|
20
|
-
"__STrendBar": "
|
21
|
-
"@pulse": "
|
22
|
-
"_animate": "
|
23
|
-
"_semi": "
|
15
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/"@keyframes pulse_135qf{0%,to{opacity:1}50%{opacity:.4}}.___SDonutContainer_135qf_gg_.__loading_135qf_gg_,.___SLineGauge_135qf_gg_.__loading_135qf_gg_,.___STrendBar_135qf_gg_.__loading_135qf_gg_,.___STrendLine_135qf_gg_.__loading_135qf_gg_{animation-name:pulse_135qf;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}.___SDonutContainer_135qf_gg_.__semi_135qf_gg_ g{transform:rotate(180deg) translate(-24px,-24px)}.___SDonutContainer_135qf_gg_ g{transform:rotate(-90deg) translate(-24px)}.___SDonutContainer_135qf_gg_.__animate_135qf_gg_ circle{transition:all var(--intergalactic-duration-extra-slow, 500) ease-in-out}" /*__inner_css_end__*/, "135qf_gg_") /*__reshadow_css_end__*/, {
|
16
|
+
"__SLineGauge": "___SLineGauge_135qf_gg_",
|
17
|
+
"_loading": "__loading_135qf_gg_",
|
18
|
+
"__SDonutContainer": "___SDonutContainer_135qf_gg_",
|
19
|
+
"__STrendLine": "___STrendLine_135qf_gg_",
|
20
|
+
"__STrendBar": "___STrendBar_135qf_gg_",
|
21
|
+
"@pulse": "pulse_135qf",
|
22
|
+
"_animate": "__animate_135qf_gg_",
|
23
|
+
"_semi": "__semi_135qf_gg_"
|
24
24
|
});
|
25
25
|
import { extractAriaProps } from 'intergalactic/utils/lib/ariaProps';
|
26
26
|
var DonutRoot = /*#__PURE__*/function (_Component) {
|
@@ -13,24 +13,24 @@ import createComponent, { Component, Root, sstyled } from 'intergalactic/core';
|
|
13
13
|
import { Box, Flex } from 'intergalactic/flex-box';
|
14
14
|
import resolveColorEnhance from 'intergalactic/utils/lib/enhances/resolveColorEnhance';
|
15
15
|
/*__reshadow-styles__:"./line.shadow.css"*/
|
16
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/"@keyframes
|
17
|
-
"__SLineGauge": "
|
18
|
-
"_loading": "
|
19
|
-
"__SDonutContainer": "
|
20
|
-
"__STrendLine": "
|
21
|
-
"__STrendBar": "
|
22
|
-
"@pulse": "
|
23
|
-
"--base-bg-color": "--base-bg-
|
24
|
-
"__SLineValue": "
|
25
|
-
"_percent": "
|
26
|
-
"--percent": "--
|
27
|
-
"_color": "
|
28
|
-
"__SLineSegmentItem": "
|
29
|
-
"--color": "--
|
30
|
-
"_segments": "
|
31
|
-
"__SLineGaugeSegment": "
|
32
|
-
"__SAnimationLine": "
|
33
|
-
"@move-line": "move-
|
16
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/"@keyframes pulse_1ca4o{0%,to{opacity:1}50%{opacity:.4}}@keyframes move-line_1ca4o{0%{transform:translateX(0)}to{transform:translateX(100%)}}.___SDonutContainer_1ca4o_gg_.__loading_1ca4o_gg_,.___SLineGauge_1ca4o_gg_.__loading_1ca4o_gg_,.___STrendBar_1ca4o_gg_.__loading_1ca4o_gg_,.___STrendLine_1ca4o_gg_.__loading_1ca4o_gg_{animation-name:pulse_1ca4o;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}.___SLineGauge_1ca4o_gg_{height:8px;background-color:var(--base-bg-color_1ca4o, var(--intergalactic-chart-grid-bar-chart-base-bg, #e0e1e9));border-radius:var(--intergalactic-chart-rounded, 2px);overflow:hidden;position:relative}.___SLineValue_1ca4o_gg_{height:8px;border-radius:var(--intergalactic-chart-rounded, 2px)0 0 var(--intergalactic-chart-rounded, 2px)}.___SLineValue_1ca4o_gg_.__percent_1ca4o_gg_{width:var(--percent_1ca4o)}.___SLineSegmentItem_1ca4o_gg_.__color_1ca4o_gg_,.___SLineValue_1ca4o_gg_.__color_1ca4o_gg_{background-color:var(--color_1ca4o, var(--intergalactic-chart-palette-order-1, #2bb3ff))}.___SLineGauge_1ca4o_gg_.__segments_1ca4o_gg_{border-radius:var(--intergalactic-progress-bar-rounded, 6px)}.___SAnimationLine_1ca4o_gg_,.___SLineGaugeSegment_1ca4o_gg_{position:absolute;top:0;left:0;right:0;bottom:0}.___SLineSegmentItem_1ca4o_gg_:last-child{margin-right:0;border-right:none}.___SLineSegmentItem_1ca4o_gg_{height:8px;background:0 0;border-right-color:var(--intergalactic-chart-grid-border, #ffffff);border-right-style:solid;border-right-width:1px;box-sizing:content-box}.___SAnimationLine_1ca4o_gg_{background-color:var(--intergalactic-chart-grid-bar-chart-base-bg, #e0e1e9);transition:all var(--intergalactic-duration-extra-slow, 500) ease-in-out;animation-name:move-line_1ca4o;animation-duration:.5s;animation-timing-function:ease-in-out;animation-fill-mode:forwards}" /*__inner_css_end__*/, "1ca4o_gg_") /*__reshadow_css_end__*/, {
|
17
|
+
"__SLineGauge": "___SLineGauge_1ca4o_gg_",
|
18
|
+
"_loading": "__loading_1ca4o_gg_",
|
19
|
+
"__SDonutContainer": "___SDonutContainer_1ca4o_gg_",
|
20
|
+
"__STrendLine": "___STrendLine_1ca4o_gg_",
|
21
|
+
"__STrendBar": "___STrendBar_1ca4o_gg_",
|
22
|
+
"@pulse": "pulse_1ca4o",
|
23
|
+
"--base-bg-color": "--base-bg-color_1ca4o",
|
24
|
+
"__SLineValue": "___SLineValue_1ca4o_gg_",
|
25
|
+
"_percent": "__percent_1ca4o_gg_",
|
26
|
+
"--percent": "--percent_1ca4o",
|
27
|
+
"_color": "__color_1ca4o_gg_",
|
28
|
+
"__SLineSegmentItem": "___SLineSegmentItem_1ca4o_gg_",
|
29
|
+
"--color": "--color_1ca4o",
|
30
|
+
"_segments": "__segments_1ca4o_gg_",
|
31
|
+
"__SLineGaugeSegment": "___SLineGaugeSegment_1ca4o_gg_",
|
32
|
+
"__SAnimationLine": "___SAnimationLine_1ca4o_gg_",
|
33
|
+
"@move-line": "move-line_1ca4o"
|
34
34
|
});
|
35
35
|
var LineRoot = /*#__PURE__*/function (_Component) {
|
36
36
|
_inherits(LineRoot, _Component);
|
@@ -13,13 +13,13 @@ import resolveColorEnhance from 'intergalactic/utils/lib/enhances/resolveColorEn
|
|
13
13
|
import { Trend } from './Trend';
|
14
14
|
import { Box } from 'intergalactic/flex-box';
|
15
15
|
/*__reshadow-styles__:"../skeleton/skeleton.shadow.css"*/
|
16
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/"@keyframes
|
17
|
-
"__SLineGauge": "
|
18
|
-
"_loading": "
|
19
|
-
"__SDonutContainer": "
|
20
|
-
"__STrendLine": "
|
21
|
-
"__STrendBar": "
|
22
|
-
"@pulse": "
|
16
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/"@keyframes pulse_y4fcr{0%,to{opacity:1}50%{opacity:.4}}.___SDonutContainer_y4fcr_gg_.__loading_y4fcr_gg_,.___SLineGauge_y4fcr_gg_.__loading_y4fcr_gg_,.___STrendBar_y4fcr_gg_.__loading_y4fcr_gg_,.___STrendLine_y4fcr_gg_.__loading_y4fcr_gg_{animation-name:pulse_y4fcr;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}" /*__inner_css_end__*/, "y4fcr_gg_") /*__reshadow_css_end__*/, {
|
17
|
+
"__SLineGauge": "___SLineGauge_y4fcr_gg_",
|
18
|
+
"_loading": "__loading_y4fcr_gg_",
|
19
|
+
"__SDonutContainer": "___SDonutContainer_y4fcr_gg_",
|
20
|
+
"__STrendLine": "___STrendLine_y4fcr_gg_",
|
21
|
+
"__STrendBar": "___STrendBar_y4fcr_gg_",
|
22
|
+
"@pulse": "pulse_y4fcr"
|
23
23
|
});
|
24
24
|
import { extractAriaProps } from 'intergalactic/utils/lib/ariaProps';
|
25
25
|
var TrendBarRoot = /*#__PURE__*/function (_Trend) {
|
@@ -14,13 +14,13 @@ import uniqueIDEnhancement from 'intergalactic/utils/lib/uniqueID';
|
|
14
14
|
import { Trend } from './Trend';
|
15
15
|
import { Box } from 'intergalactic/flex-box';
|
16
16
|
/*__reshadow-styles__:"../skeleton/skeleton.shadow.css"*/
|
17
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/"@keyframes
|
18
|
-
"__SLineGauge": "
|
19
|
-
"_loading": "
|
20
|
-
"__SDonutContainer": "
|
21
|
-
"__STrendLine": "
|
22
|
-
"__STrendBar": "
|
23
|
-
"@pulse": "
|
17
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/"@keyframes pulse_y4fcr{0%,to{opacity:1}50%{opacity:.4}}.___SDonutContainer_y4fcr_gg_.__loading_y4fcr_gg_,.___SLineGauge_y4fcr_gg_.__loading_y4fcr_gg_,.___STrendBar_y4fcr_gg_.__loading_y4fcr_gg_,.___STrendLine_y4fcr_gg_.__loading_y4fcr_gg_{animation-name:pulse_y4fcr;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}" /*__inner_css_end__*/, "y4fcr_gg_") /*__reshadow_css_end__*/, {
|
18
|
+
"__SLineGauge": "___SLineGauge_y4fcr_gg_",
|
19
|
+
"_loading": "__loading_y4fcr_gg_",
|
20
|
+
"__SDonutContainer": "___SDonutContainer_y4fcr_gg_",
|
21
|
+
"__STrendLine": "___STrendLine_y4fcr_gg_",
|
22
|
+
"__STrendBar": "___STrendBar_y4fcr_gg_",
|
23
|
+
"@pulse": "pulse_y4fcr"
|
24
24
|
});
|
25
25
|
import { extractAriaProps } from 'intergalactic/utils/lib/ariaProps';
|
26
26
|
var TrendLineRoot = /*#__PURE__*/function (_Trend) {
|
package/mini-chart/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"intergalactic/mini-chart","description":"Semrush MiniChart Component","version":"0.27.
|
1
|
+
{"name":"intergalactic/mini-chart","description":"Semrush MiniChart Component","version":"0.27.1-prerelease.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=ts"},"dependencies":{"@semcore/flex-box":"5.39.1-prerelease.2","@semcore/utils":"4.44.1-prerelease.2"},"peerDependencies":{"@semcore/core":"^2.37.1-prerelease.2","react":"16.8 - 18","react-dom":"16.8 - 18"},"repository":{"type":"git","url":"https://github.com/semrush/intergalactic.git","directory":"semcore/mini-chart"},"devDependencies":{"@types/react":"18.0.21","@semcore/testing-utils":"1.0.0"}}
|
package/modal/lib/cjs/Modal.js
CHANGED
@@ -35,14 +35,14 @@ var _ThemeProvider = require("intergalactic/utils/lib/ThemeProvider");
|
|
35
35
|
var _useColorResolver = require("intergalactic/utils/lib/use/useColorResolver");
|
36
36
|
var _zIndexStacking = require("intergalactic/utils/lib/zIndexStacking");
|
37
37
|
/*__reshadow-styles__:"./style/modal.shadow.css"*/
|
38
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".
|
39
|
-
"__SWindow": "
|
40
|
-
"_ghost": "
|
41
|
-
"__SOverlay": "
|
42
|
-
"__STitle": "
|
43
|
-
"_color": "
|
44
|
-
"--color": "--
|
45
|
-
"__SClose": "
|
38
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SWindow_19z5y_gg_{position:relative;border-radius:var(--intergalactic-modal-rounded, 12px);background:var(--intergalactic-bg-primary-neutral, #ffffff);box-sizing:border-box;margin:auto;padding:var(--intergalactic-spacing-10x, 40px);box-shadow:var(--intergalactic-box-shadow-modal, 0px 3px 8px 0px rgba(25, 27, 35, 0.2));color:var(--intergalactic-text-primary, #191b23)}.___SWindow_19z5y_gg_:focus{outline:0}.___SWindow_19z5y_gg_ .___STitle_19z5y_gg_{color:var(--intergalactic-text-primary, #191b23);font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%);font-weight:var(--intergalactic-semi-bold, 600);margin-bottom:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-4x, 16px)}.___SWindow_19z5y_gg_ .___STitle_19z5y_gg_.__color_19z5y_gg_{color:var(--color_19z5y)}.___SWindow_19z5y_gg_ .___SClose_19z5y_gg_{display:inline-flex;position:absolute;right:var(--intergalactic-spacing-2x, 8px);top:var(--intergalactic-spacing-2x, 8px)}.___SWindow_19z5y_gg_ .___SClose_19z5y_gg_.__ghost_19z5y_gg_{right:0;top:0}.___SWindow_19z5y_gg_.__ghost_19z5y_gg_{background:0 0;padding:0;box-shadow:none}.___SOverlay_19z5y_gg_{position:fixed;top:0;bottom:0;left:0;right:0;margin:0;display:flex;justify-content:center;align-items:center;padding:var(--intergalactic-spacing-10x, 40px);background:var(--intergalactic-overlay-primary, rgba(25, 27, 35, 0.7));overflow:auto;-webkit-overflow-scrolling:touch}.___SOverlay_19z5y_gg_ .___SOverlay_19z5y_gg_{background:var(--intergalactic-overlay-secondary, rgba(25, 27, 35, 0.4))}@media (max-width:767px){.___SWindow_19z5y_gg_{min-width:60%}.___SOverlay_19z5y_gg_{padding:var(--intergalactic-spacing-3x, 12px)}}" /*__inner_css_end__*/, "19z5y_gg_") /*__reshadow_css_end__*/, {
|
39
|
+
"__SWindow": "___SWindow_19z5y_gg_",
|
40
|
+
"_ghost": "__ghost_19z5y_gg_",
|
41
|
+
"__SOverlay": "___SOverlay_19z5y_gg_",
|
42
|
+
"__STitle": "___STitle_19z5y_gg_",
|
43
|
+
"_color": "__color_19z5y_gg_",
|
44
|
+
"--color": "--color_19z5y",
|
45
|
+
"__SClose": "___SClose_19z5y_gg_"
|
46
46
|
});
|
47
47
|
var ModalRoot = /*#__PURE__*/function (_Component) {
|
48
48
|
(0, _inherits2["default"])(ModalRoot, _Component);
|
package/modal/lib/es6/Modal.js
CHANGED
@@ -23,14 +23,14 @@ import usePreventScroll from 'intergalactic/utils/lib/use/usePreventScroll';
|
|
23
23
|
import { isAdvanceMode } from 'intergalactic/utils/lib/findComponent';
|
24
24
|
import keyboardFocusEnhance from 'intergalactic/utils/lib/enhances/keyboardFocusEnhance';
|
25
25
|
/*__reshadow-styles__:"./style/modal.shadow.css"*/
|
26
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
27
|
-
"__SWindow": "
|
28
|
-
"_ghost": "
|
29
|
-
"__SOverlay": "
|
30
|
-
"__STitle": "
|
31
|
-
"_color": "
|
32
|
-
"--color": "--
|
33
|
-
"__SClose": "
|
26
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SWindow_19z5y_gg_{position:relative;border-radius:var(--intergalactic-modal-rounded, 12px);background:var(--intergalactic-bg-primary-neutral, #ffffff);box-sizing:border-box;margin:auto;padding:var(--intergalactic-spacing-10x, 40px);box-shadow:var(--intergalactic-box-shadow-modal, 0px 3px 8px 0px rgba(25, 27, 35, 0.2));color:var(--intergalactic-text-primary, #191b23)}.___SWindow_19z5y_gg_:focus{outline:0}.___SWindow_19z5y_gg_ .___STitle_19z5y_gg_{color:var(--intergalactic-text-primary, #191b23);font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%);font-weight:var(--intergalactic-semi-bold, 600);margin-bottom:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-4x, 16px)}.___SWindow_19z5y_gg_ .___STitle_19z5y_gg_.__color_19z5y_gg_{color:var(--color_19z5y)}.___SWindow_19z5y_gg_ .___SClose_19z5y_gg_{display:inline-flex;position:absolute;right:var(--intergalactic-spacing-2x, 8px);top:var(--intergalactic-spacing-2x, 8px)}.___SWindow_19z5y_gg_ .___SClose_19z5y_gg_.__ghost_19z5y_gg_{right:0;top:0}.___SWindow_19z5y_gg_.__ghost_19z5y_gg_{background:0 0;padding:0;box-shadow:none}.___SOverlay_19z5y_gg_{position:fixed;top:0;bottom:0;left:0;right:0;margin:0;display:flex;justify-content:center;align-items:center;padding:var(--intergalactic-spacing-10x, 40px);background:var(--intergalactic-overlay-primary, rgba(25, 27, 35, 0.7));overflow:auto;-webkit-overflow-scrolling:touch}.___SOverlay_19z5y_gg_ .___SOverlay_19z5y_gg_{background:var(--intergalactic-overlay-secondary, rgba(25, 27, 35, 0.4))}@media (max-width:767px){.___SWindow_19z5y_gg_{min-width:60%}.___SOverlay_19z5y_gg_{padding:var(--intergalactic-spacing-3x, 12px)}}" /*__inner_css_end__*/, "19z5y_gg_") /*__reshadow_css_end__*/, {
|
27
|
+
"__SWindow": "___SWindow_19z5y_gg_",
|
28
|
+
"_ghost": "__ghost_19z5y_gg_",
|
29
|
+
"__SOverlay": "___SOverlay_19z5y_gg_",
|
30
|
+
"__STitle": "___STitle_19z5y_gg_",
|
31
|
+
"_color": "__color_19z5y_gg_",
|
32
|
+
"--color": "--color_19z5y",
|
33
|
+
"__SClose": "___SClose_19z5y_gg_"
|
34
34
|
});
|
35
35
|
import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
|
36
36
|
import i18nEnhance from 'intergalactic/utils/lib/enhances/i18nEnhance';
|
package/modal/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"intergalactic/modal","description":"Semrush Modal Component","version":"4.50.
|
1
|
+
{"name":"intergalactic/modal","description":"Semrush Modal Component","version":"4.50.1-prerelease.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/animation":"2.39.1-prerelease.2","@semcore/flex-box":"5.39.1-prerelease.2","@semcore/icon":"4.53.1-prerelease.2","@semcore/outside-click":"3.37.1-prerelease.2","@semcore/portal":"3.39.1-prerelease.2","@semcore/typography":"5.48.1-prerelease.2","@semcore/utils":"4.44.1-prerelease.2"},"peerDependencies":{"@semcore/core":"^2.37.1-prerelease.2","react":"16.8 - 18","react-dom":"16.8 - 18"},"repository":{"type":"git","url":"https://github.com/semrush/intergalactic.git","directory":"semcore/modal"},"devDependencies":{"@types/react":"18.0.21","@semcore/testing-utils":"1.0.0"}}
|
@@ -1 +1 @@
|
|
1
|
-
{"name":"intergalactic/neighbor-location","description":"Semrush NeighborLocation Component","version":"4.37.
|
1
|
+
{"name":"intergalactic/neighbor-location","description":"Semrush NeighborLocation Component","version":"4.37.1-prerelease.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/utils":"4.44.1-prerelease.2"},"peerDependencies":{"@semcore/core":"^2.37.1-prerelease.2","react":"16.8 - 18","react-dom":"16.8 - 18"},"repository":{"type":"git","url":"https://github.com/semrush/intergalactic.git","directory":"semcore/neighbor-location"},"devDependencies":{"@types/react":"18.0.21","@semcore/testing-utils":"1.0.0"}}
|
package/notice/lib/cjs/Notice.js
CHANGED
@@ -9,6 +9,7 @@ exports["default"] = void 0;
|
|
9
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
10
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
11
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
12
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
12
13
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
13
14
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
14
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
@@ -26,20 +27,20 @@ var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynam
|
|
26
27
|
var _i18nEnhance = _interopRequireDefault(require("intergalactic/utils/lib/enhances/i18nEnhance"));
|
27
28
|
var _useCssVariable = require("intergalactic/utils/lib/useCssVariable");
|
28
29
|
/*__reshadow-styles__:"./style/notice.shadow.css"*/
|
29
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".
|
30
|
-
"__SNotice": "
|
31
|
-
"__SContent": "
|
32
|
-
"__SActions": "
|
33
|
-
"__SLabel": "
|
34
|
-
"_theme_info": "
|
35
|
-
"_theme_danger": "
|
36
|
-
"_theme_warning": "
|
37
|
-
"_theme_success": "
|
38
|
-
"_theme_muted": "
|
39
|
-
"_theme_custom": "
|
40
|
-
"--color": "--
|
41
|
-
"__SCloseIcon": "
|
42
|
-
"--backgroundColor": "--
|
30
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SNotice_1y8j6_gg_{display:flex;padding:var(--intergalactic-spacing-4x, 16px);font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);box-sizing:border-box;border-style:solid;border-width:1px;border-radius:var(--intergalactic-surface-rounded, 6px);color:var(--intergalactic-text-primary, #191b23)}.___SNotice_1y8j6_gg_._theme_info_1y8j6_gg_{background-color:var(--intergalactic-bg-secondary-info, #e9f7ff);border-color:var(--intergalactic-border-info, #8ecdff)}.___SNotice_1y8j6_gg_._theme_info_1y8j6_gg_ .___SCloseIcon_1y8j6_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_1y8j6_gg_._theme_info_1y8j6_gg_ .___SCloseIcon_1y8j6_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SNotice_1y8j6_gg_._theme_danger_1y8j6_gg_{background-color:var(--intergalactic-bg-secondary-critical, #fff0f7);border-color:var(--intergalactic-border-critical, #ffaeb5)}.___SNotice_1y8j6_gg_._theme_danger_1y8j6_gg_ .___SCloseIcon_1y8j6_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}@media (hover:hover){.___SNotice_1y8j6_gg_._theme_danger_1y8j6_gg_ .___SCloseIcon_1y8j6_gg_:hover{color:var(--intergalactic-icon-primary-critical-hover-active, #CC3A42)}}.___SNotice_1y8j6_gg_._theme_warning_1y8j6_gg_{background-color:var(--intergalactic-bg-secondary-warning, #fff3d9);border-color:var(--intergalactic-border-warning, #ffb26e)}.___SNotice_1y8j6_gg_._theme_warning_1y8j6_gg_ .___SCloseIcon_1y8j6_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}@media (hover:hover){.___SNotice_1y8j6_gg_._theme_warning_1y8j6_gg_ .___SCloseIcon_1y8j6_gg_:hover{color:var(--intergalactic-icon-primary-warning-hover-active, #CC5024)}}.___SNotice_1y8j6_gg_._theme_success_1y8j6_gg_{background-color:var(--intergalactic-bg-secondary-success, #dbfee8);border-color:var(--intergalactic-border-success, #59ddaa)}.___SNotice_1y8j6_gg_._theme_success_1y8j6_gg_ .___SCloseIcon_1y8j6_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}@media (hover:hover){.___SNotice_1y8j6_gg_._theme_success_1y8j6_gg_ .___SCloseIcon_1y8j6_gg_:hover{color:var(--intergalactic-icon-primary-success-hover-active, #037E68)}}.___SNotice_1y8j6_gg_._theme_muted_1y8j6_gg_{background-color:var(--intergalactic-bg-secondary-neutral, #f4f5f9);border-color:var(--intergalactic-border-secondary, #e0e1e9)}.___SLabel_1y8j6_gg_._theme_info_1y8j6_gg_,.___SNotice_1y8j6_gg_._theme_muted_1y8j6_gg_ .___SCloseIcon_1y8j6_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_1y8j6_gg_._theme_muted_1y8j6_gg_ .___SCloseIcon_1y8j6_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SContent_1y8j6_gg_{flex:1 1 auto;width:100%}.___SActions_1y8j6_gg_{flex-shrink:0;margin-top:var(--intergalactic-spacing-3x, 12px)}.___SLabel_1y8j6_gg_{min-height:var(--intergalactic-form-control-m, 28px);height:-moz-fit-content;height:fit-content;margin-right:var(--intergalactic-spacing-2x, 8px);display:inline-flex;align-items:center}.___SLabel_1y8j6_gg_._theme_danger_1y8j6_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}.___SLabel_1y8j6_gg_._theme_warning_1y8j6_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}.___SLabel_1y8j6_gg_._theme_success_1y8j6_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}.___SLabel_1y8j6_gg_._theme_muted_1y8j6_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SLabel_1y8j6_gg_._theme_custom_1y8j6_gg_{color:var(--color_1y8j6)}.___SCloseIcon_1y8j6_gg_{flex-shrink:0;margin-left:var(--intergalactic-spacing-4x, 16px)}.___SNotice_1y8j6_gg_._theme_custom_1y8j6_gg_{background-color:var(--backgroundColor_1y8j6);border-color:var(--backgroundColor_1y8j6)}" /*__inner_css_end__*/, "1y8j6_gg_") /*__reshadow_css_end__*/, {
|
31
|
+
"__SNotice": "___SNotice_1y8j6_gg_",
|
32
|
+
"__SContent": "___SContent_1y8j6_gg_",
|
33
|
+
"__SActions": "___SActions_1y8j6_gg_",
|
34
|
+
"__SLabel": "___SLabel_1y8j6_gg_",
|
35
|
+
"_theme_info": "_theme_info_1y8j6_gg_",
|
36
|
+
"_theme_danger": "_theme_danger_1y8j6_gg_",
|
37
|
+
"_theme_warning": "_theme_warning_1y8j6_gg_",
|
38
|
+
"_theme_success": "_theme_success_1y8j6_gg_",
|
39
|
+
"_theme_muted": "_theme_muted_1y8j6_gg_",
|
40
|
+
"_theme_custom": "_theme_custom_1y8j6_gg_",
|
41
|
+
"--color": "--color_1y8j6",
|
42
|
+
"__SCloseIcon": "___SCloseIcon_1y8j6_gg_",
|
43
|
+
"--backgroundColor": "--backgroundColor_1y8j6"
|
43
44
|
});
|
44
45
|
function isCustomTheme(theme) {
|
45
46
|
return !['danger', 'warning', 'success', 'info', 'muted'].includes(theme);
|
@@ -48,10 +49,29 @@ var RootNotice = /*#__PURE__*/function (_Component) {
|
|
48
49
|
(0, _inherits2["default"])(RootNotice, _Component);
|
49
50
|
var _super = (0, _createSuper2["default"])(RootNotice);
|
50
51
|
function RootNotice() {
|
52
|
+
var _this;
|
51
53
|
(0, _classCallCheck2["default"])(this, RootNotice);
|
52
|
-
|
54
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
55
|
+
args[_key] = arguments[_key];
|
56
|
+
}
|
57
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
58
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "ref", /*#__PURE__*/_react["default"].createRef());
|
59
|
+
return _this;
|
53
60
|
}
|
54
61
|
(0, _createClass2["default"])(RootNotice, [{
|
62
|
+
key: "componentDidMount",
|
63
|
+
value: function componentDidMount() {
|
64
|
+
if (this.ref.current && process.env.NODE_ENV !== 'production' && !['muted', 'danger'].includes(this.props.theme)) {
|
65
|
+
var hasTitle = function hasTitle(node) {
|
66
|
+
if (node.hasAttribute('aria-label')) return true;
|
67
|
+
if (node.hasAttribute('aria-labelledby')) return true;
|
68
|
+
if (node.hasAttribute('title')) return true;
|
69
|
+
return false;
|
70
|
+
};
|
71
|
+
_logger["default"].warn(!hasTitle(this.ref.current), "Provide unique 'title' or 'aria-label' or 'aria-labelledby' to help identify the type and importance of notification", this.props['data-ui-name'] || RootNotice.displayName);
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}, {
|
55
75
|
key: "getLabelProps",
|
56
76
|
value: function getLabelProps() {
|
57
77
|
var _this$asProps = this.asProps,
|
@@ -92,24 +112,23 @@ var RootNotice = /*#__PURE__*/function (_Component) {
|
|
92
112
|
use = _this$asProps2.use,
|
93
113
|
resolveColor = _this$asProps2.resolveColor,
|
94
114
|
getI18nText = _this$asProps2.getI18nText;
|
95
|
-
var isAssertive = theme === 'danger' || theme === 'warning';
|
96
115
|
var color = resolveColor(theme);
|
97
116
|
var useTheme = isCustomTheme(theme) ? 'custom' : theme;
|
98
|
-
var ariaLive = isAssertive ? 'assertive' : 'polite';
|
99
|
-
if (theme === 'neutral') {
|
100
|
-
ariaLive = undefined;
|
101
|
-
}
|
102
117
|
if (use === 'primary') {
|
103
118
|
_logger["default"].warn(true, "Deprecated property-value pair \"use=primary\", use component <NoticeGlobal/> instead", RootNotice.displayName);
|
104
119
|
return /*#__PURE__*/_react["default"].createElement(_noticeGlobal["default"], this.asProps);
|
105
120
|
}
|
121
|
+
var ariaLabel = getI18nText(theme === 'danger' ? 'criticalNotification' : 'notification');
|
122
|
+
if (theme === 'muted') {
|
123
|
+
ariaLabel = undefined;
|
124
|
+
}
|
106
125
|
return _ref7 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SNotice, _ref7.cn("SNotice", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
107
126
|
"visible": !hidden,
|
108
127
|
"use:theme": useTheme,
|
109
128
|
"backgroundColor": color,
|
110
129
|
"role": 'region',
|
111
|
-
"aria-
|
112
|
-
"
|
130
|
+
"aria-label": ariaLabel,
|
131
|
+
"ref": this.ref
|
113
132
|
}, _ref))), /*#__PURE__*/_react["default"].createElement(Children, _ref7.cn("Children", {})));
|
114
133
|
}
|
115
134
|
}]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Notice.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_flexBox","_button","_m","_resolveColorEnhance","_animation","_logger","_noticeGlobal","_intergalacticDynamicLocales","_i18nEnhance","_useCssVariable","style","_index","sstyled","insert","isCustomTheme","theme","includes","RootNotice","_Component","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","value","getLabelProps","_this$asProps","asProps","resolveColor","getCloseIconProps","getI18nText","getCloseProps","render","_ref","_ref7","SNotice","FadeInOut","_this$asProps2","Children","styles","hidden","use","isAssertive","color","useTheme","ariaLive","undefined","logger","warn","displayName","createElement","cn","_objectSpread2","assignProps","Component","_defineProperty2","i18nEnhance","localizedMessages","cssVariableEnhance","variable","fallback","map","Number","parseInt","prop","resolveColorEnhance","i18n","locale","Label","_ref13","_ref2","arguments[0]","_ref8","SLabel","Box","Actions","_ref14","_ref3","_ref9","SActions","Content","_ref15","_ref4","_ref10","SContent","CloseIcon","_ref16","_ref5","_ref11","SCloseIcon","CloseIconM","Close","_ref17","_ref6","_ref12","Button","_default","createComponent","exports"],"sources":["../../src/Notice.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport Button from '@semcore/button';\nimport CloseIconM from '@semcore/icon/Close/m';\nimport resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';\nimport { FadeInOut } from '@semcore/animation';\nimport logger from '@semcore/utils/lib/logger';\nimport NoticeGlobal from '@semcore/notice-global';\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.shadow.css';\n\nfunction isCustomTheme(theme) {\n return !['danger', 'warning', 'success', 'info', 'muted'].includes(theme);\n}\n\nclass RootNotice extends Component {\n static displayName = 'Notice';\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: 'info',\n i18n: localizedMessages,\n locale: 'en',\n };\n\n getLabelProps() {\n const { theme, resolveColor } = this.asProps;\n\n return { theme, resolveColor };\n }\n\n getCloseIconProps() {\n const { getI18nText } = this.asProps;\n\n return { getI18nText };\n }\n\n getCloseProps() {\n const { getI18nText } = this.asProps;\n\n return { getI18nText };\n }\n\n render() {\n const SNotice = Root;\n const { Children, styles, hidden, theme, use, resolveColor, getI18nText } = this.asProps;\n const isAssertive = theme === 'danger' || theme === 'warning';\n const color = resolveColor(theme);\n const useTheme = isCustomTheme(theme) ? 'custom' : theme;\n\n let ariaLive = isAssertive ? 'assertive' : 'polite';\n if (theme === 'neutral') {\n ariaLive = undefined;\n }\n\n if (use === 'primary') {\n logger.warn(\n true,\n `Deprecated property-value pair \"use=primary\", use component <NoticeGlobal/> instead`,\n RootNotice.displayName,\n );\n return <NoticeGlobal {...this.asProps} />;\n }\n\n return sstyled(styles)(\n <SNotice\n render={FadeInOut}\n visible={!hidden}\n use:theme={useTheme}\n backgroundColor={color}\n role='region'\n aria-live={ariaLive}\n aria-label={getI18nText(theme === 'danger' ? 'criticalNotification' : 'notification')}\n >\n <Children />\n </SNotice>,\n );\n }\n}\n\nfunction Label({ styles, theme, resolveColor }) {\n const SLabel = Root;\n const useTheme = isCustomTheme(theme) ? 'custom' : theme;\n const color = resolveColor(theme);\n return sstyled(styles)(<SLabel render={Box} use:theme={useTheme} color={color} />);\n}\n\nfunction Actions({ styles }) {\n const SActions = Root;\n return sstyled(styles)(<SActions render={Box} />);\n}\n\nfunction Content({ styles }) {\n const SContent = Root;\n return sstyled(styles)(<SContent render={Box} />);\n}\n\nfunction CloseIcon({ styles, getI18nText }) {\n const SCloseIcon = Root;\n return sstyled(styles)(\n <SCloseIcon render={Box} tag={CloseIconM} interactive aria-label={getI18nText('close')} />,\n );\n}\n\nfunction Close({ styles, getI18nText }) {\n const SCloseIcon = Root;\n return sstyled(styles)(\n <SCloseIcon\n render={Button}\n addonLeft={CloseIconM}\n use='tertiary'\n theme='muted'\n aria-label={getI18nText('close')}\n />,\n );\n}\n\nexport default createComponent(RootNotice, {\n Label,\n Actions,\n Content,\n CloseIcon,\n Close,\n});\n"],"mappings":";;;;;;;;;;;;;;;AACA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AADA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,EAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,oBAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,aAAA,GAAAP,sBAAA,CAAAF,OAAA;AACA,IAAAU,4BAAA,GAAAV,OAAA;AACA,IAAAW,YAAA,GAAAT,sBAAA,CAAAF,OAAA;AACA,IAAAY,eAAA,GAAAZ,OAAA;AAAuE;AAAA,IAAAa,KAAA,+BAAAC,MAAA,CAAAC,OAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAIvE,SAASC,aAAaA,CAACC,KAAK,EAAE;EAC5B,OAAO,CAAC,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAACC,QAAQ,CAACD,KAAK,CAAC;AAC3E;AAAC,IAEKE,UAAU,0BAAAC,UAAA;EAAA,IAAAC,UAAA,aAAAF,UAAA,EAAAC,UAAA;EAAA,IAAAE,MAAA,OAAAC,aAAA,aAAAJ,UAAA;EAAA,SAAAA,WAAA;IAAA,IAAAK,gBAAA,mBAAAL,UAAA;IAAA,OAAAG,MA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,aAEEqC,aAAU;IAAA,OACjB,UAAU;IAAA,SACR,OAAO;IAAA,cACD5D,WAAW,CAAC,OAAO;EAAC,GAAA+D,KAAA,IAChC;AAEN;AAAC,IAAAG,QAAA,GAEc,IAAAC,gBAAe,EAACnF,UAAU,EAAE;EACzCsD,KAAK,EAALA,KAAK;EACLO,OAAO,EAAPA,OAAO;EACPK,OAAO,EAAPA,OAAO;EACPK,SAAS,EAATA,SAAS;EACTM,KAAK,EAALA;AACF,CAAC,CAAC;AAAAO,OAAA,cAAAF,QAAA"}
|
1
|
+
{"version":3,"file":"Notice.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_flexBox","_button","_m","_resolveColorEnhance","_animation","_logger","_noticeGlobal","_intergalacticDynamicLocales","_i18nEnhance","_useCssVariable","style","_index","sstyled","insert","isCustomTheme","theme","includes","RootNotice","_Component","_inherits2","_super","_createSuper2","_this","_classCallCheck2","_len","arguments","length","args","Array","_key","call","apply","concat","_defineProperty2","_assertThisInitialized2","React","createRef","_createClass2","key","value","componentDidMount","ref","current","process","env","NODE_ENV","props","hasTitle","node","hasAttribute","logger","warn","displayName","getLabelProps","_this$asProps","asProps","resolveColor","getCloseIconProps","getI18nText","getCloseProps","render","_ref","_ref7","SNotice","FadeInOut","_this$asProps2","Children","styles","hidden","use","color","useTheme","createElement","ariaLabel","undefined","cn","_objectSpread2","assignProps","Component","i18nEnhance","localizedMessages","cssVariableEnhance","variable","fallback","map","Number","parseInt","prop","resolveColorEnhance","i18n","locale","Label","_ref13","_ref2","arguments[0]","_ref8","SLabel","Box","Actions","_ref14","_ref3","_ref9","SActions","Content","_ref15","_ref4","_ref10","SContent","CloseIcon","_ref16","_ref5","_ref11","SCloseIcon","CloseIconM","Close","_ref17","_ref6","_ref12","Button","_default","createComponent","exports"],"sources":["../../src/Notice.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport Button from '@semcore/button';\nimport CloseIconM from '@semcore/icon/Close/m';\nimport resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';\nimport { FadeInOut } from '@semcore/animation';\nimport logger from '@semcore/utils/lib/logger';\nimport NoticeGlobal from '@semcore/notice-global';\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.shadow.css';\n\nfunction isCustomTheme(theme) {\n return !['danger', 'warning', 'success', 'info', 'muted'].includes(theme);\n}\n\nclass RootNotice extends Component {\n static displayName = 'Notice';\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: 'info',\n i18n: localizedMessages,\n locale: 'en',\n };\n\n ref = React.createRef();\n\n componentDidMount() {\n if (\n this.ref.current &&\n process.env.NODE_ENV !== 'production' &&\n !['muted', 'danger'].includes(this.props.theme)\n ) {\n const hasTitle = (node) => {\n if (node.hasAttribute('aria-label')) return true;\n if (node.hasAttribute('aria-labelledby')) return true;\n if (node.hasAttribute('title')) return true;\n\n return false;\n };\n\n logger.warn(\n !hasTitle(this.ref.current),\n `Provide unique 'title' or 'aria-label' or 'aria-labelledby' to help identify the type and importance of notification`,\n this.props['data-ui-name'] || RootNotice.displayName,\n );\n }\n }\n\n getLabelProps() {\n const { theme, resolveColor } = this.asProps;\n\n return { theme, resolveColor };\n }\n\n getCloseIconProps() {\n const { getI18nText } = this.asProps;\n\n return { getI18nText };\n }\n\n getCloseProps() {\n const { getI18nText } = this.asProps;\n\n return { getI18nText };\n }\n\n render() {\n const SNotice = Root;\n const { Children, styles, hidden, theme, use, resolveColor, getI18nText } = this.asProps;\n const color = resolveColor(theme);\n const useTheme = isCustomTheme(theme) ? 'custom' : theme;\n\n if (use === 'primary') {\n logger.warn(\n true,\n `Deprecated property-value pair \"use=primary\", use component <NoticeGlobal/> instead`,\n RootNotice.displayName,\n );\n return <NoticeGlobal {...this.asProps} />;\n }\n\n let ariaLabel = getI18nText(theme === 'danger' ? 'criticalNotification' : 'notification');\n\n if (theme === 'muted') {\n ariaLabel = undefined;\n }\n\n return sstyled(styles)(\n <SNotice\n render={FadeInOut}\n visible={!hidden}\n use:theme={useTheme}\n backgroundColor={color}\n role='region'\n aria-label={ariaLabel}\n ref={this.ref}\n >\n <Children />\n </SNotice>,\n );\n }\n}\n\nfunction Label({ styles, theme, resolveColor }) {\n const SLabel = Root;\n const useTheme = isCustomTheme(theme) ? 'custom' : theme;\n const color = resolveColor(theme);\n return sstyled(styles)(<SLabel render={Box} use:theme={useTheme} color={color} />);\n}\n\nfunction Actions({ styles }) {\n const SActions = Root;\n return sstyled(styles)(<SActions render={Box} />);\n}\n\nfunction Content({ styles }) {\n const SContent = Root;\n return sstyled(styles)(<SContent render={Box} />);\n}\n\nfunction CloseIcon({ styles, getI18nText }) {\n const SCloseIcon = Root;\n return sstyled(styles)(\n <SCloseIcon render={Box} tag={CloseIconM} interactive aria-label={getI18nText('close')} />,\n );\n}\n\nfunction Close({ styles, getI18nText }) {\n const SCloseIcon = Root;\n return sstyled(styles)(\n <SCloseIcon\n render={Button}\n addonLeft={CloseIconM}\n use='tertiary'\n theme='muted'\n aria-label={getI18nText('close')}\n />,\n );\n}\n\nexport default createComponent(RootNotice, {\n Label,\n Actions,\n Content,\n CloseIcon,\n Close,\n});\n"],"mappings":";;;;;;;;;;;;;;;;AACA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AADA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,EAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,oBAAA,GAAA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MAAA,CAAApC,EAAA,mBAAAC,cAAA,qBAAAjF,KAAA,CAAAkF,WAAA;IAAA,OAAmBoC,aAAU;IAAA;IAAA,cAA0BvD,WAAW,CAAC,OAAO;EAAC,GAAAoD,KAAA,IAAI;AAE9F;AAEA,SAASI,KAAKA,CAAAC,MAAA,EAA0B;EAAA,IAAAC,KAAA,GAAAtB,YAAA;IAAAuB,MAAA;EAAA,IAAvBlD,MAAM,GAAAgD,MAAA,CAANhD,MAAM;IAAET,WAAW,GAAAyD,MAAA,CAAXzD,WAAW;EAClC,IAAMsD,UAAU,GAGJM,kBAAM;EAFlB,OAAAD,MAAA,GAAO,IAAAzG,aAAO,EAACuD,MAAM,CAAC,eACpBrE,MAAA,YAAA0E,aAAA,CAACwC,UAAU,EAAAK,MAAA,CAAA1C,EAAA,mBAAAC,cAAA,qBAAAjF,KAAA,CAAAkF,WAAA;IAAA,aAEEoC,aAAU;IAAA,OACjB,UAAU;IAAA,SACR,OAAO;IAAA,cACDvD,WAAW,CAAC,OAAO;EAAC,GAAA0D,KAAA,IAChC;AAEN;AAAC,IAAAG,QAAA,GAEc,IAAAC,gBAAe,EAACvG,UAAU,EAAE;EACzC0E,KAAK,EAALA,KAAK;EACLO,OAAO,EAAPA,OAAO;EACPK,OAAO,EAAPA,OAAO;EACPK,SAAS,EAATA,SAAS;EACTM,KAAK,EAALA;AACF,CAAC,CAAC;AAAAO,OAAA,cAAAF,QAAA"}
|
package/notice/lib/es6/Notice.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
4
|
+
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
4
5
|
import _inherits from "@babel/runtime/helpers/inherits";
|
5
6
|
import _createSuper from "@babel/runtime/helpers/createSuper";
|
6
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
@@ -24,20 +25,20 @@ import { localizedMessages } from './translations/__intergalactic-dynamic-locale
|
|
24
25
|
import i18nEnhance from 'intergalactic/utils/lib/enhances/i18nEnhance';
|
25
26
|
import { cssVariableEnhance } from 'intergalactic/utils/lib/useCssVariable';
|
26
27
|
/*__reshadow-styles__:"./style/notice.shadow.css"*/
|
27
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
28
|
-
"__SNotice": "
|
29
|
-
"__SContent": "
|
30
|
-
"__SActions": "
|
31
|
-
"__SLabel": "
|
32
|
-
"_theme_info": "
|
33
|
-
"_theme_danger": "
|
34
|
-
"_theme_warning": "
|
35
|
-
"_theme_success": "
|
36
|
-
"_theme_muted": "
|
37
|
-
"_theme_custom": "
|
38
|
-
"--color": "--
|
39
|
-
"__SCloseIcon": "
|
40
|
-
"--backgroundColor": "--
|
28
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SNotice_1y8j6_gg_{display:flex;padding:var(--intergalactic-spacing-4x, 16px);font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);box-sizing:border-box;border-style:solid;border-width:1px;border-radius:var(--intergalactic-surface-rounded, 6px);color:var(--intergalactic-text-primary, #191b23)}.___SNotice_1y8j6_gg_._theme_info_1y8j6_gg_{background-color:var(--intergalactic-bg-secondary-info, #e9f7ff);border-color:var(--intergalactic-border-info, #8ecdff)}.___SNotice_1y8j6_gg_._theme_info_1y8j6_gg_ .___SCloseIcon_1y8j6_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_1y8j6_gg_._theme_info_1y8j6_gg_ .___SCloseIcon_1y8j6_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SNotice_1y8j6_gg_._theme_danger_1y8j6_gg_{background-color:var(--intergalactic-bg-secondary-critical, #fff0f7);border-color:var(--intergalactic-border-critical, #ffaeb5)}.___SNotice_1y8j6_gg_._theme_danger_1y8j6_gg_ .___SCloseIcon_1y8j6_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}@media (hover:hover){.___SNotice_1y8j6_gg_._theme_danger_1y8j6_gg_ .___SCloseIcon_1y8j6_gg_:hover{color:var(--intergalactic-icon-primary-critical-hover-active, #CC3A42)}}.___SNotice_1y8j6_gg_._theme_warning_1y8j6_gg_{background-color:var(--intergalactic-bg-secondary-warning, #fff3d9);border-color:var(--intergalactic-border-warning, #ffb26e)}.___SNotice_1y8j6_gg_._theme_warning_1y8j6_gg_ .___SCloseIcon_1y8j6_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}@media (hover:hover){.___SNotice_1y8j6_gg_._theme_warning_1y8j6_gg_ .___SCloseIcon_1y8j6_gg_:hover{color:var(--intergalactic-icon-primary-warning-hover-active, #CC5024)}}.___SNotice_1y8j6_gg_._theme_success_1y8j6_gg_{background-color:var(--intergalactic-bg-secondary-success, #dbfee8);border-color:var(--intergalactic-border-success, #59ddaa)}.___SNotice_1y8j6_gg_._theme_success_1y8j6_gg_ .___SCloseIcon_1y8j6_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}@media (hover:hover){.___SNotice_1y8j6_gg_._theme_success_1y8j6_gg_ .___SCloseIcon_1y8j6_gg_:hover{color:var(--intergalactic-icon-primary-success-hover-active, #037E68)}}.___SNotice_1y8j6_gg_._theme_muted_1y8j6_gg_{background-color:var(--intergalactic-bg-secondary-neutral, #f4f5f9);border-color:var(--intergalactic-border-secondary, #e0e1e9)}.___SLabel_1y8j6_gg_._theme_info_1y8j6_gg_,.___SNotice_1y8j6_gg_._theme_muted_1y8j6_gg_ .___SCloseIcon_1y8j6_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_1y8j6_gg_._theme_muted_1y8j6_gg_ .___SCloseIcon_1y8j6_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SContent_1y8j6_gg_{flex:1 1 auto;width:100%}.___SActions_1y8j6_gg_{flex-shrink:0;margin-top:var(--intergalactic-spacing-3x, 12px)}.___SLabel_1y8j6_gg_{min-height:var(--intergalactic-form-control-m, 28px);height:-moz-fit-content;height:fit-content;margin-right:var(--intergalactic-spacing-2x, 8px);display:inline-flex;align-items:center}.___SLabel_1y8j6_gg_._theme_danger_1y8j6_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}.___SLabel_1y8j6_gg_._theme_warning_1y8j6_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}.___SLabel_1y8j6_gg_._theme_success_1y8j6_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}.___SLabel_1y8j6_gg_._theme_muted_1y8j6_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SLabel_1y8j6_gg_._theme_custom_1y8j6_gg_{color:var(--color_1y8j6)}.___SCloseIcon_1y8j6_gg_{flex-shrink:0;margin-left:var(--intergalactic-spacing-4x, 16px)}.___SNotice_1y8j6_gg_._theme_custom_1y8j6_gg_{background-color:var(--backgroundColor_1y8j6);border-color:var(--backgroundColor_1y8j6)}" /*__inner_css_end__*/, "1y8j6_gg_") /*__reshadow_css_end__*/, {
|
29
|
+
"__SNotice": "___SNotice_1y8j6_gg_",
|
30
|
+
"__SContent": "___SContent_1y8j6_gg_",
|
31
|
+
"__SActions": "___SActions_1y8j6_gg_",
|
32
|
+
"__SLabel": "___SLabel_1y8j6_gg_",
|
33
|
+
"_theme_info": "_theme_info_1y8j6_gg_",
|
34
|
+
"_theme_danger": "_theme_danger_1y8j6_gg_",
|
35
|
+
"_theme_warning": "_theme_warning_1y8j6_gg_",
|
36
|
+
"_theme_success": "_theme_success_1y8j6_gg_",
|
37
|
+
"_theme_muted": "_theme_muted_1y8j6_gg_",
|
38
|
+
"_theme_custom": "_theme_custom_1y8j6_gg_",
|
39
|
+
"--color": "--color_1y8j6",
|
40
|
+
"__SCloseIcon": "___SCloseIcon_1y8j6_gg_",
|
41
|
+
"--backgroundColor": "--backgroundColor_1y8j6"
|
41
42
|
});
|
42
43
|
function isCustomTheme(theme) {
|
43
44
|
return !['danger', 'warning', 'success', 'info', 'muted'].includes(theme);
|
@@ -46,10 +47,29 @@ var RootNotice = /*#__PURE__*/function (_Component) {
|
|
46
47
|
_inherits(RootNotice, _Component);
|
47
48
|
var _super = _createSuper(RootNotice);
|
48
49
|
function RootNotice() {
|
50
|
+
var _this;
|
49
51
|
_classCallCheck(this, RootNotice);
|
50
|
-
|
52
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
53
|
+
args[_key] = arguments[_key];
|
54
|
+
}
|
55
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
56
|
+
_defineProperty(_assertThisInitialized(_this), "ref", /*#__PURE__*/React.createRef());
|
57
|
+
return _this;
|
51
58
|
}
|
52
59
|
_createClass(RootNotice, [{
|
60
|
+
key: "componentDidMount",
|
61
|
+
value: function componentDidMount() {
|
62
|
+
if (this.ref.current && process.env.NODE_ENV !== 'production' && !['muted', 'danger'].includes(this.props.theme)) {
|
63
|
+
var hasTitle = function hasTitle(node) {
|
64
|
+
if (node.hasAttribute('aria-label')) return true;
|
65
|
+
if (node.hasAttribute('aria-labelledby')) return true;
|
66
|
+
if (node.hasAttribute('title')) return true;
|
67
|
+
return false;
|
68
|
+
};
|
69
|
+
logger.warn(!hasTitle(this.ref.current), "Provide unique 'title' or 'aria-label' or 'aria-labelledby' to help identify the type and importance of notification", this.props['data-ui-name'] || RootNotice.displayName);
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}, {
|
53
73
|
key: "getLabelProps",
|
54
74
|
value: function getLabelProps() {
|
55
75
|
var _this$asProps = this.asProps,
|
@@ -90,24 +110,23 @@ var RootNotice = /*#__PURE__*/function (_Component) {
|
|
90
110
|
use = _this$asProps2.use,
|
91
111
|
resolveColor = _this$asProps2.resolveColor,
|
92
112
|
getI18nText = _this$asProps2.getI18nText;
|
93
|
-
var isAssertive = theme === 'danger' || theme === 'warning';
|
94
113
|
var color = resolveColor(theme);
|
95
114
|
var useTheme = isCustomTheme(theme) ? 'custom' : theme;
|
96
|
-
var ariaLive = isAssertive ? 'assertive' : 'polite';
|
97
|
-
if (theme === 'neutral') {
|
98
|
-
ariaLive = undefined;
|
99
|
-
}
|
100
115
|
if (use === 'primary') {
|
101
116
|
logger.warn(true, "Deprecated property-value pair \"use=primary\", use component <NoticeGlobal/> instead", RootNotice.displayName);
|
102
117
|
return /*#__PURE__*/React.createElement(NoticeGlobal, this.asProps);
|
103
118
|
}
|
119
|
+
var ariaLabel = getI18nText(theme === 'danger' ? 'criticalNotification' : 'notification');
|
120
|
+
if (theme === 'muted') {
|
121
|
+
ariaLabel = undefined;
|
122
|
+
}
|
104
123
|
return _ref7 = sstyled(styles), /*#__PURE__*/React.createElement(SNotice, _ref7.cn("SNotice", _objectSpread({}, _assignProps({
|
105
124
|
"visible": !hidden,
|
106
125
|
"use:theme": useTheme,
|
107
126
|
"backgroundColor": color,
|
108
127
|
"role": 'region',
|
109
|
-
"aria-
|
110
|
-
"
|
128
|
+
"aria-label": ariaLabel,
|
129
|
+
"ref": this.ref
|
111
130
|
}, _ref))), /*#__PURE__*/React.createElement(Children, _ref7.cn("Children", {})));
|
112
131
|
}
|
113
132
|
}]);
|