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
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Notice.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_flexBox","_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","render","_ref","_ref6","SNotice","FadeInOut","_this$asProps2","Children","styles","hidden","use","isAssertive","color","useTheme","logger","warn","displayName","createElement","cn","_objectSpread2","assignProps","Component","_defineProperty2","i18nEnhance","localizedMessages","cssVariableEnhance","variable","fallback","map","Number","parseInt","prop","resolveColorEnhance","i18n","locale","Label","_ref11","_ref2","arguments[0]","_ref7","SLabel","Box","Actions","_ref12","_ref3","_ref8","SActions","Content","_ref13","_ref4","_ref9","SContent","CloseIcon","_ref14","_ref5","_ref10","SCloseIcon","Close","_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 Close 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'].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 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 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={
|
1
|
+
{"version":3,"file":"Notice.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_flexBox","_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","render","_ref","_ref6","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","_ref11","_ref2","arguments[0]","_ref7","SLabel","Box","Actions","_ref12","_ref3","_ref8","SActions","Content","_ref13","_ref4","_ref9","SContent","CloseIcon","_ref14","_ref5","_ref10","SCloseIcon","Close","_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 Close 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 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(isAssertive ? '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={Close} interactive aria-label={getI18nText('close')} />,\n );\n}\n\nexport default createComponent(RootNotice, {\n Label,\n Actions,\n Content,\n CloseIcon,\n});\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,OAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,aAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,4BAAA,GAAAT,OAAA;AACA,IAAAU,YAAA,GAAAR,sBAAA,CAAAF,OAAA;AACA,IAAAW,eAAA,GAAAX,OAAA;AAAuE;AAAA,IAAAY,KAAA,+BAAAC,MAAA,CAAAC,OAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;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AAA,cAAAF,QAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { Box, BoxProps } from '@semcore/flex-box';\nimport { IconProps } from '@semcore/icon';\nimport { FadeInOutProps } from '@semcore/animation';\n\nexport type NoticeTheme = 'danger' | 'warning' | 'success' | 'info';\nexport type NoticeUse = 'primary' | 'secondary';\n\n/** @deprecated */\nexport interface INoticeProps extends NoticeProps, UnknownProperties {}\nexport type NoticeProps = BoxProps &\n FadeInOutProps & {\n /** Property for managing visibility of Notice */\n hidden?: boolean;\n /** Notice type\n * @deprecated since version ^4.1.0\n */\n use?: NoticeUse;\n /**\n * Notice theme\n * @default info\n */\n theme?: NoticeTheme;\n /** Duration of animation, ms\n * @default 250\n */\n duration?: number;\n locale?: string;\n };\n\n/** @deprecated */\nexport interface INoticeLabelProps extends NoticeLabelProps, UnknownProperties {}\nexport type NoticeLabelProps = BoxProps & {\n theme?: NoticeTheme;\n};\n\n/** @deprecated */\nexport interface INoticeContext extends NoticeContext, UnknownProperties {}\nexport type NoticeContext = {\n getLabelProps: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface INoticeSmartProps extends NoticeSmartProps, UnknownProperties {}\nexport type NoticeSmartProps = NoticeProps & {\n /**\n * A custom element for additional information\n */\n label?: React.ReactNode;\n /**\n * Custom action element\n */\n actions?: React.ReactNode;\n /**\n * Adds a Close icon\n */\n closable?: boolean;\n /**\n * Callback on a click on the close button\n */\n onClose?: (event: React.SyntheticEvent) => void;\n};\n\ndeclare const Notice: Intergalactic.Component<'div', NoticeProps, NoticeContext> & {\n Label: Intergalactic.Component<'div', NoticeLabelProps>;\n Actions: typeof Box;\n Content: typeof Box;\n CloseIcon: Intergalactic.Component<'div', IconProps>;\n};\n\ndeclare const NoticeSmart: Intergalactic.Component<'div', NoticeSmartProps>;\n\nexport { NoticeSmart };\nexport default Notice;\n"],"mappings":""}
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { Box, BoxProps } from '@semcore/flex-box';\nimport { IconProps } from '@semcore/icon';\nimport { FadeInOutProps } from '@semcore/animation';\n\nexport type NoticeTheme = 'danger' | 'warning' | 'success' | 'info' | 'muted';\nexport type NoticeUse = 'primary' | 'secondary';\n\n/** @deprecated */\nexport interface INoticeProps extends NoticeProps, UnknownProperties {}\nexport type NoticeProps = BoxProps &\n FadeInOutProps & {\n /** Property for managing visibility of Notice */\n hidden?: boolean;\n /** Notice type\n * @deprecated since version ^4.1.0\n */\n use?: NoticeUse;\n /**\n * Notice theme\n * @default info\n */\n theme?: NoticeTheme;\n /** Duration of animation, ms\n * @default 250\n */\n duration?: number;\n locale?: string;\n };\n\n/** @deprecated */\nexport interface INoticeLabelProps extends NoticeLabelProps, UnknownProperties {}\nexport type NoticeLabelProps = BoxProps & {\n theme?: NoticeTheme;\n};\n\n/** @deprecated */\nexport interface INoticeContext extends NoticeContext, UnknownProperties {}\nexport type NoticeContext = {\n getLabelProps: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface INoticeSmartProps extends NoticeSmartProps, UnknownProperties {}\nexport type NoticeSmartProps = NoticeProps & {\n /**\n * A custom element for additional information\n */\n label?: React.ReactNode;\n /**\n * Custom action element\n */\n actions?: React.ReactNode;\n /**\n * Adds a Close icon\n */\n closable?: boolean;\n /**\n * Callback on a click on the close button\n */\n onClose?: (event: React.SyntheticEvent) => void;\n};\n\ndeclare const Notice: Intergalactic.Component<'div', NoticeProps, NoticeContext> & {\n Label: Intergalactic.Component<'div', NoticeLabelProps>;\n Actions: typeof Box;\n Content: typeof Box;\n CloseIcon: Intergalactic.Component<'div', IconProps>;\n};\n\ndeclare const NoticeSmart: Intergalactic.Component<'div', NoticeSmartProps>;\n\nexport { NoticeSmart };\nexport default Notice;\n"],"mappings":""}
|
@@ -62,6 +62,19 @@ SNotice[theme='success'] {
|
|
62
62
|
}
|
63
63
|
}
|
64
64
|
|
65
|
+
SNotice[theme='muted'] {
|
66
|
+
background-color: var(--intergalactic-bg-secondary-neutral, #f4f5f9);
|
67
|
+
border-color: var(--intergalactic-border-secondary, #e0e1e9);
|
68
|
+
|
69
|
+
& SCloseIcon {
|
70
|
+
color: var(--intergalactic-icon-primary-neutral, #6c6e79);
|
71
|
+
|
72
|
+
&:hover {
|
73
|
+
color: var(--intergalactic-icon-primary-neutral-hover-active, #565861);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
65
78
|
SContent {
|
66
79
|
flex: 1 1 auto;
|
67
80
|
width: 100%;
|
@@ -94,6 +107,10 @@ SLabel[theme='success'] {
|
|
94
107
|
color: var(--intergalactic-icon-primary-success, #009f81);
|
95
108
|
}
|
96
109
|
|
110
|
+
SLabel[theme='muted'] {
|
111
|
+
color: var(--intergalactic-icon-primary-neutral, #6c6e79);
|
112
|
+
}
|
113
|
+
|
97
114
|
SLabel[theme='custom'] {
|
98
115
|
color: var(--color);
|
99
116
|
}
|
package/notice/lib/es6/Notice.js
CHANGED
@@ -22,22 +22,23 @@ import { localizedMessages } from './translations/__intergalactic-dynamic-locale
|
|
22
22
|
import i18nEnhance from 'intergalactic/utils/lib/enhances/i18nEnhance';
|
23
23
|
import { cssVariableEnhance } from 'intergalactic/utils/lib/useCssVariable';
|
24
24
|
/*__reshadow-styles__:"./style/notice.shadow.css"*/
|
25
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
26
|
-
"__SNotice": "
|
27
|
-
"__SContent": "
|
28
|
-
"__SActions": "
|
29
|
-
"__SLabel": "
|
30
|
-
"_theme_info": "
|
31
|
-
"_theme_danger": "
|
32
|
-
"_theme_warning": "
|
33
|
-
"_theme_success": "
|
34
|
-
"
|
35
|
-
"
|
36
|
-
"
|
37
|
-
"
|
25
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SNotice_1kdg2_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_1kdg2_gg_._theme_info_1kdg2_gg_{background-color:var(--intergalactic-bg-secondary-info, #e9f7ff);border-color:var(--intergalactic-border-info, #8ecdff)}.___SNotice_1kdg2_gg_._theme_info_1kdg2_gg_ .___SCloseIcon_1kdg2_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_1kdg2_gg_._theme_info_1kdg2_gg_ .___SCloseIcon_1kdg2_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SNotice_1kdg2_gg_._theme_danger_1kdg2_gg_{background-color:var(--intergalactic-bg-secondary-critical, #fff0f7);border-color:var(--intergalactic-border-critical, #ffaeb5)}.___SNotice_1kdg2_gg_._theme_danger_1kdg2_gg_ .___SCloseIcon_1kdg2_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}@media (hover:hover){.___SNotice_1kdg2_gg_._theme_danger_1kdg2_gg_ .___SCloseIcon_1kdg2_gg_:hover{color:var(--intergalactic-icon-primary-critical-hover-active, #CC3A42)}}.___SNotice_1kdg2_gg_._theme_warning_1kdg2_gg_{background-color:var(--intergalactic-bg-secondary-warning, #fff3d9);border-color:var(--intergalactic-border-warning, #ffb26e)}.___SNotice_1kdg2_gg_._theme_warning_1kdg2_gg_ .___SCloseIcon_1kdg2_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}@media (hover:hover){.___SNotice_1kdg2_gg_._theme_warning_1kdg2_gg_ .___SCloseIcon_1kdg2_gg_:hover{color:var(--intergalactic-icon-primary-warning-hover-active, #CC5024)}}.___SNotice_1kdg2_gg_._theme_success_1kdg2_gg_{background-color:var(--intergalactic-bg-secondary-success, #dbfee8);border-color:var(--intergalactic-border-success, #59ddaa)}.___SNotice_1kdg2_gg_._theme_success_1kdg2_gg_ .___SCloseIcon_1kdg2_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}@media (hover:hover){.___SNotice_1kdg2_gg_._theme_success_1kdg2_gg_ .___SCloseIcon_1kdg2_gg_:hover{color:var(--intergalactic-icon-primary-success-hover-active, #037E68)}}.___SNotice_1kdg2_gg_._theme_muted_1kdg2_gg_{background-color:var(--intergalactic-bg-secondary-neutral, #f4f5f9);border-color:var(--intergalactic-border-secondary, #e0e1e9)}.___SLabel_1kdg2_gg_._theme_info_1kdg2_gg_,.___SNotice_1kdg2_gg_._theme_muted_1kdg2_gg_ .___SCloseIcon_1kdg2_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_1kdg2_gg_._theme_muted_1kdg2_gg_ .___SCloseIcon_1kdg2_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SContent_1kdg2_gg_{flex:1 1 auto;width:100%}.___SActions_1kdg2_gg_{flex-shrink:0;margin-top:var(--intergalactic-spacing-3x, 12px)}.___SLabel_1kdg2_gg_{margin-top:var(--intergalactic-spacing-05x, 2px);margin-right:var(--intergalactic-spacing-2x, 8px);display:inline-flex}.___SLabel_1kdg2_gg_._theme_danger_1kdg2_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}.___SLabel_1kdg2_gg_._theme_warning_1kdg2_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}.___SLabel_1kdg2_gg_._theme_success_1kdg2_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}.___SLabel_1kdg2_gg_._theme_muted_1kdg2_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SLabel_1kdg2_gg_._theme_custom_1kdg2_gg_{color:var(--color_1kdg2)}.___SCloseIcon_1kdg2_gg_{flex-shrink:0;margin-left:var(--intergalactic-spacing-4x, 16px)}.___SNotice_1kdg2_gg_._theme_custom_1kdg2_gg_{background-color:var(--backgroundColor_1kdg2);border-color:var(--backgroundColor_1kdg2)}" /*__inner_css_end__*/, "1kdg2_gg_") /*__reshadow_css_end__*/, {
|
26
|
+
"__SNotice": "___SNotice_1kdg2_gg_",
|
27
|
+
"__SContent": "___SContent_1kdg2_gg_",
|
28
|
+
"__SActions": "___SActions_1kdg2_gg_",
|
29
|
+
"__SLabel": "___SLabel_1kdg2_gg_",
|
30
|
+
"_theme_info": "_theme_info_1kdg2_gg_",
|
31
|
+
"_theme_danger": "_theme_danger_1kdg2_gg_",
|
32
|
+
"_theme_warning": "_theme_warning_1kdg2_gg_",
|
33
|
+
"_theme_success": "_theme_success_1kdg2_gg_",
|
34
|
+
"_theme_muted": "_theme_muted_1kdg2_gg_",
|
35
|
+
"_theme_custom": "_theme_custom_1kdg2_gg_",
|
36
|
+
"--color": "--color_1kdg2",
|
37
|
+
"__SCloseIcon": "___SCloseIcon_1kdg2_gg_",
|
38
|
+
"--backgroundColor": "--backgroundColor_1kdg2"
|
38
39
|
});
|
39
40
|
function isCustomTheme(theme) {
|
40
|
-
return !['danger', 'warning', 'success', 'info'].includes(theme);
|
41
|
+
return !['danger', 'warning', 'success', 'info', 'muted'].includes(theme);
|
41
42
|
}
|
42
43
|
var RootNotice = /*#__PURE__*/function (_Component) {
|
43
44
|
_inherits(RootNotice, _Component);
|
@@ -82,6 +83,10 @@ var RootNotice = /*#__PURE__*/function (_Component) {
|
|
82
83
|
var isAssertive = theme === 'danger' || theme === 'warning';
|
83
84
|
var color = resolveColor(theme);
|
84
85
|
var useTheme = isCustomTheme(theme) ? 'custom' : theme;
|
86
|
+
var ariaLive = isAssertive ? 'assertive' : 'polite';
|
87
|
+
if (theme === 'neutral') {
|
88
|
+
ariaLive = undefined;
|
89
|
+
}
|
85
90
|
if (use === 'primary') {
|
86
91
|
logger.warn(true, "Deprecated property-value pair \"use=primary\", use component <NoticeGlobal/> instead", RootNotice.displayName);
|
87
92
|
return /*#__PURE__*/React.createElement(NoticeGlobal, this.asProps);
|
@@ -91,8 +96,8 @@ var RootNotice = /*#__PURE__*/function (_Component) {
|
|
91
96
|
"use:theme": useTheme,
|
92
97
|
"backgroundColor": color,
|
93
98
|
"role": 'region',
|
94
|
-
"aria-live":
|
95
|
-
"aria-label": getI18nText('notification')
|
99
|
+
"aria-live": ariaLive,
|
100
|
+
"aria-label": getI18nText(isAssertive ? 'criticalNotification' : 'notification')
|
96
101
|
}, _ref))), /*#__PURE__*/React.createElement(Children, _ref6.cn("Children", {})));
|
97
102
|
}
|
98
103
|
}]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Notice.js","names":["React","createComponent","Component","sstyled","Root","Box","Close","resolveColorEnhance","FadeInOut","logger","NoticeGlobal","localizedMessages","i18nEnhance","cssVariableEnhance","style","_sstyled","insert","isCustomTheme","theme","includes","RootNotice","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","getLabelProps","_this$asProps","asProps","resolveColor","getCloseIconProps","getI18nText","render","_ref","_ref6","SNotice","_this$asProps2","Children","styles","hidden","use","isAssertive","color","useTheme","warn","displayName","createElement","cn","_objectSpread","_assignProps","_defineProperty","variable","fallback","map","Number","parseInt","prop","i18n","locale","Label","_ref11","_ref2","arguments[0]","_ref7","SLabel","_assignProps2","Actions","_ref12","_ref3","_ref8","SActions","_assignProps3","Content","_ref13","_ref4","_ref9","SContent","_assignProps4","CloseIcon","_ref14","_ref5","_ref10","SCloseIcon","_assignProps5"],"sources":["../../src/Notice.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { 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 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'].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 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 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={
|
1
|
+
{"version":3,"file":"Notice.js","names":["React","createComponent","Component","sstyled","Root","Box","Close","resolveColorEnhance","FadeInOut","logger","NoticeGlobal","localizedMessages","i18nEnhance","cssVariableEnhance","style","_sstyled","insert","isCustomTheme","theme","includes","RootNotice","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","getLabelProps","_this$asProps","asProps","resolveColor","getCloseIconProps","getI18nText","render","_ref","_ref6","SNotice","_this$asProps2","Children","styles","hidden","use","isAssertive","color","useTheme","ariaLive","undefined","warn","displayName","createElement","cn","_objectSpread","_assignProps","_defineProperty","variable","fallback","map","Number","parseInt","prop","i18n","locale","Label","_ref11","_ref2","arguments[0]","_ref7","SLabel","_assignProps2","Actions","_ref12","_ref3","_ref8","SActions","_assignProps3","Content","_ref13","_ref4","_ref9","SContent","_assignProps4","CloseIcon","_ref14","_ref5","_ref10","SCloseIcon","_assignProps5"],"sources":["../../src/Notice.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { 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 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 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(isAssertive ? '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={Close} interactive aria-label={getI18nText('close')} />,\n );\n}\n\nexport default createComponent(RootNotice, {\n Label,\n Actions,\n Content,\n CloseIcon,\n});\n"],"mappings":";;;;;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,eAAe,IAAIC,SAAS,EAAEC,OAAO,EAAEC,IAAI,QAAQ,eAAe;AACzE,SAASC,GAAG,QAAQ,mBAAmB;AACvC,OAAOC,KAAK,MAAM,uBAAuB;AACzC,OAAOC,mBAAmB,MAAM,iDAAiD;AACjF,SAASC,SAAS,QAAQ,oBAAoB;AAC9C,OAAOC,MAAM,MAAM,2BAA2B;AAC9C,OAAOC,YAAY,MAAM,wBAAwB;AACjD,SAASC,iBAAiB,QAAQ,gDAAgD;AAClF,OAAOC,WAAW,MAAM,yCAAyC;AACjE,SAASC,kBAAkB,QAAQ,mCAAmC;AAAC;AAAA,I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ic } from '@semcore/core';\nimport { Box, BoxProps } from '@semcore/flex-box';\nimport { IconProps } from '@semcore/icon';\nimport { FadeInOutProps } from '@semcore/animation';\n\nexport type NoticeTheme = 'danger' | 'warning' | 'success' | 'info';\nexport type NoticeUse = 'primary' | 'secondary';\n\n/** @deprecated */\nexport interface INoticeProps extends NoticeProps, UnknownProperties {}\nexport type NoticeProps = BoxProps &\n FadeInOutProps & {\n /** Property for managing visibility of Notice */\n hidden?: boolean;\n /** Notice type\n * @deprecated since version ^4.1.0\n */\n use?: NoticeUse;\n /**\n * Notice theme\n * @default info\n */\n theme?: NoticeTheme;\n /** Duration of animation, ms\n * @default 250\n */\n duration?: number;\n locale?: string;\n };\n\n/** @deprecated */\nexport interface INoticeLabelProps extends NoticeLabelProps, UnknownProperties {}\nexport type NoticeLabelProps = BoxProps & {\n theme?: NoticeTheme;\n};\n\n/** @deprecated */\nexport interface INoticeContext extends NoticeContext, UnknownProperties {}\nexport type NoticeContext = {\n getLabelProps: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface INoticeSmartProps extends NoticeSmartProps, UnknownProperties {}\nexport type NoticeSmartProps = NoticeProps & {\n /**\n * A custom element for additional information\n */\n label?: React.ReactNode;\n /**\n * Custom action element\n */\n actions?: React.ReactNode;\n /**\n * Adds a Close icon\n */\n closable?: boolean;\n /**\n * Callback on a click on the close button\n */\n onClose?: (event: React.SyntheticEvent) => void;\n};\n\ndeclare const Notice: Intergalactic.Component<'div', NoticeProps, NoticeContext> & {\n Label: Intergalactic.Component<'div', NoticeLabelProps>;\n Actions: typeof Box;\n Content: typeof Box;\n CloseIcon: Intergalactic.Component<'div', IconProps>;\n};\n\ndeclare const NoticeSmart: Intergalactic.Component<'div', NoticeSmartProps>;\n\nexport { NoticeSmart };\nexport default Notice;\n"],"mappings":""}
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { Box, BoxProps } from '@semcore/flex-box';\nimport { IconProps } from '@semcore/icon';\nimport { FadeInOutProps } from '@semcore/animation';\n\nexport type NoticeTheme = 'danger' | 'warning' | 'success' | 'info' | 'muted';\nexport type NoticeUse = 'primary' | 'secondary';\n\n/** @deprecated */\nexport interface INoticeProps extends NoticeProps, UnknownProperties {}\nexport type NoticeProps = BoxProps &\n FadeInOutProps & {\n /** Property for managing visibility of Notice */\n hidden?: boolean;\n /** Notice type\n * @deprecated since version ^4.1.0\n */\n use?: NoticeUse;\n /**\n * Notice theme\n * @default info\n */\n theme?: NoticeTheme;\n /** Duration of animation, ms\n * @default 250\n */\n duration?: number;\n locale?: string;\n };\n\n/** @deprecated */\nexport interface INoticeLabelProps extends NoticeLabelProps, UnknownProperties {}\nexport type NoticeLabelProps = BoxProps & {\n theme?: NoticeTheme;\n};\n\n/** @deprecated */\nexport interface INoticeContext extends NoticeContext, UnknownProperties {}\nexport type NoticeContext = {\n getLabelProps: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface INoticeSmartProps extends NoticeSmartProps, UnknownProperties {}\nexport type NoticeSmartProps = NoticeProps & {\n /**\n * A custom element for additional information\n */\n label?: React.ReactNode;\n /**\n * Custom action element\n */\n actions?: React.ReactNode;\n /**\n * Adds a Close icon\n */\n closable?: boolean;\n /**\n * Callback on a click on the close button\n */\n onClose?: (event: React.SyntheticEvent) => void;\n};\n\ndeclare const Notice: Intergalactic.Component<'div', NoticeProps, NoticeContext> & {\n Label: Intergalactic.Component<'div', NoticeLabelProps>;\n Actions: typeof Box;\n Content: typeof Box;\n CloseIcon: Intergalactic.Component<'div', IconProps>;\n};\n\ndeclare const NoticeSmart: Intergalactic.Component<'div', NoticeSmartProps>;\n\nexport { NoticeSmart };\nexport default Notice;\n"],"mappings":""}
|
@@ -62,6 +62,19 @@ SNotice[theme='success'] {
|
|
62
62
|
}
|
63
63
|
}
|
64
64
|
|
65
|
+
SNotice[theme='muted'] {
|
66
|
+
background-color: var(--intergalactic-bg-secondary-neutral, #f4f5f9);
|
67
|
+
border-color: var(--intergalactic-border-secondary, #e0e1e9);
|
68
|
+
|
69
|
+
& SCloseIcon {
|
70
|
+
color: var(--intergalactic-icon-primary-neutral, #6c6e79);
|
71
|
+
|
72
|
+
&:hover {
|
73
|
+
color: var(--intergalactic-icon-primary-neutral-hover-active, #565861);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
65
78
|
SContent {
|
66
79
|
flex: 1 1 auto;
|
67
80
|
width: 100%;
|
@@ -94,6 +107,10 @@ SLabel[theme='success'] {
|
|
94
107
|
color: var(--intergalactic-icon-primary-success, #009f81);
|
95
108
|
}
|
96
109
|
|
110
|
+
SLabel[theme='muted'] {
|
111
|
+
color: var(--intergalactic-icon-primary-neutral, #6c6e79);
|
112
|
+
}
|
113
|
+
|
97
114
|
SLabel[theme='custom'] {
|
98
115
|
color: var(--color);
|
99
116
|
}
|
@@ -3,7 +3,7 @@ import { Box, BoxProps } from 'intergalactic/flex-box';
|
|
3
3
|
import { IconProps } from 'intergalactic/icon';
|
4
4
|
import { FadeInOutProps } from 'intergalactic/animation';
|
5
5
|
|
6
|
-
export type NoticeTheme = 'danger' | 'warning' | 'success' | 'info';
|
6
|
+
export type NoticeTheme = 'danger' | 'warning' | 'success' | 'info' | 'muted';
|
7
7
|
export type NoticeUse = 'primary' | 'secondary';
|
8
8
|
|
9
9
|
/** @deprecated */
|
package/notice-bubble/index.d.ts
CHANGED
@@ -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
|
*/
|