intergalactic 15.107.0 → 15.108.0-prerelease.1
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 +53 -0
- package/accordion/lib/cjs/Accordion.js +9 -9
- package/accordion/lib/es6/Accordion.js +9 -9
- package/accordion/package.json +1 -1
- package/animation/lib/cjs/Animation.js +11 -11
- package/animation/lib/cjs/Collapse.js +28 -28
- package/animation/lib/cjs/FadeInOut.js +28 -28
- package/animation/lib/cjs/Scale.js +28 -28
- package/animation/lib/cjs/Slide.js +28 -28
- package/animation/lib/cjs/Transform.js +28 -28
- package/animation/lib/es6/Animation.js +11 -11
- package/animation/lib/es6/Collapse.js +28 -28
- package/animation/lib/es6/FadeInOut.js +28 -28
- package/animation/lib/es6/Scale.js +28 -28
- package/animation/lib/es6/Slide.js +28 -28
- package/animation/lib/es6/Transform.js +28 -28
- package/animation/package.json +1 -1
- package/badge/lib/cjs/Badge.js +6 -6
- package/badge/lib/es6/Badge.js +6 -6
- package/badge/package.json +1 -1
- package/base-trigger/lib/cjs/BaseTrigger.js +18 -18
- package/base-trigger/lib/cjs/ButtonTrigger.js +3 -3
- package/base-trigger/lib/cjs/FilterTrigger.js +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 +8 -8
- package/breadcrumbs/lib/es6/Breadcrumbs.js +8 -8
- package/breadcrumbs/package.json +1 -1
- package/breakpoints/package.json +1 -1
- package/button/component/AbstractButton/AbstractButton.d.ts +24 -0
- package/button/component/AbstractButton/AbstractButton.type.d.ts +39 -0
- package/button/component/AbstractButton/SpinButton.d.ts +3 -0
- package/button/component/Button/Button.d.ts +3 -0
- package/button/component/Button/Button.type.d.ts +39 -0
- package/button/component/ButtonLink/ButtonLink.d.ts +2 -0
- package/button/component/ButtonLink/ButtonLink.type.d.ts +25 -0
- package/button/index.d.ts +5 -68
- package/button/lib/cjs/component/AbstractButton/AbstractButton.js +182 -0
- package/button/lib/cjs/component/AbstractButton/AbstractButton.js.map +1 -0
- package/button/lib/cjs/component/AbstractButton/AbstractButton.type.js +2 -0
- package/button/lib/cjs/component/AbstractButton/AbstractButton.type.js.map +1 -0
- package/button/lib/cjs/component/AbstractButton/SpinButton.js.map +1 -0
- package/button/lib/cjs/component/Button/Button.js +94 -0
- package/button/lib/cjs/component/Button/Button.js.map +1 -0
- package/button/lib/cjs/component/Button/Button.type.js +2 -0
- package/button/lib/cjs/component/Button/Button.type.js.map +1 -0
- package/button/lib/cjs/{style → component/Button}/button.shadow.css +1 -1
- package/button/lib/cjs/component/ButtonLink/ButtonLink.js +92 -0
- package/button/lib/cjs/component/ButtonLink/ButtonLink.js.map +1 -0
- package/button/lib/cjs/component/ButtonLink/ButtonLink.type.js +2 -0
- package/button/lib/cjs/component/ButtonLink/ButtonLink.type.js.map +1 -0
- package/button/lib/cjs/component/ButtonLink/buttonLink.shadow.css +160 -0
- package/button/lib/cjs/index.js +40 -6
- package/button/lib/cjs/index.js.map +1 -1
- package/button/lib/es6/component/AbstractButton/AbstractButton.js +175 -0
- package/button/lib/es6/component/AbstractButton/AbstractButton.js.map +1 -0
- package/button/lib/es6/component/AbstractButton/AbstractButton.type.js +2 -0
- package/button/lib/es6/component/AbstractButton/AbstractButton.type.js.map +1 -0
- package/button/lib/es6/component/AbstractButton/SpinButton.js.map +1 -0
- package/button/lib/es6/component/Button/Button.js +87 -0
- package/button/lib/es6/component/Button/Button.js.map +1 -0
- package/button/lib/es6/component/Button/Button.type.js +2 -0
- package/button/lib/es6/component/Button/Button.type.js.map +1 -0
- package/button/lib/es6/{style → component/Button}/button.shadow.css +1 -1
- package/button/lib/es6/component/ButtonLink/ButtonLink.js +85 -0
- package/button/lib/es6/component/ButtonLink/ButtonLink.js.map +1 -0
- package/button/lib/es6/component/ButtonLink/ButtonLink.type.js +2 -0
- package/button/lib/es6/component/ButtonLink/ButtonLink.type.js.map +1 -0
- package/button/lib/es6/component/ButtonLink/buttonLink.shadow.css +160 -0
- package/button/lib/es6/index.js +5 -2
- package/button/lib/es6/index.js.map +1 -1
- package/button/lib/types/component/AbstractButton/AbstractButton.d.ts +24 -0
- package/button/lib/types/component/AbstractButton/AbstractButton.type.d.ts +39 -0
- package/button/lib/types/component/AbstractButton/SpinButton.d.ts +3 -0
- package/button/lib/types/component/Button/Button.d.ts +3 -0
- package/button/lib/types/component/Button/Button.type.d.ts +39 -0
- package/button/lib/types/component/ButtonLink/ButtonLink.d.ts +2 -0
- package/button/lib/types/component/ButtonLink/ButtonLink.type.d.ts +25 -0
- package/button/lib/types/index.d.ts +5 -68
- package/button/package.json +1 -1
- package/card/lib/cjs/Card.js +19 -22
- package/card/lib/cjs/Card.js.map +1 -1
- package/card/lib/cjs/style/card.shadow.css +13 -15
- package/card/lib/es6/Card.js +19 -22
- package/card/lib/es6/Card.js.map +1 -1
- package/card/lib/es6/style/card.shadow.css +13 -15
- package/card/package.json +1 -1
- package/carousel/lib/cjs/Carousel.js +79 -57
- package/carousel/lib/cjs/Carousel.js.map +1 -1
- package/carousel/lib/cjs/style/carousel.shadow.css +48 -4
- package/carousel/lib/cjs/translations/de.json +4 -2
- package/carousel/lib/cjs/translations/en.json +4 -2
- package/carousel/lib/cjs/translations/es.json +4 -2
- package/carousel/lib/cjs/translations/fr.json +4 -2
- package/carousel/lib/cjs/translations/it.json +4 -2
- package/carousel/lib/cjs/translations/ja.json +4 -2
- package/carousel/lib/cjs/translations/ko.json +4 -2
- package/carousel/lib/cjs/translations/nl.json +4 -2
- package/carousel/lib/cjs/translations/pl.json +4 -2
- package/carousel/lib/cjs/translations/pt.json +4 -2
- package/carousel/lib/cjs/translations/sv.json +4 -2
- package/carousel/lib/cjs/translations/tr.json +4 -2
- package/carousel/lib/cjs/translations/vi.json +4 -2
- package/carousel/lib/cjs/translations/zh.json +4 -2
- package/carousel/lib/es6/Carousel.js +79 -57
- package/carousel/lib/es6/Carousel.js.map +1 -1
- package/carousel/lib/es6/style/carousel.shadow.css +48 -4
- package/carousel/lib/es6/translations/de.json +4 -2
- package/carousel/lib/es6/translations/en.json +4 -2
- package/carousel/lib/es6/translations/es.json +4 -2
- package/carousel/lib/es6/translations/fr.json +4 -2
- package/carousel/lib/es6/translations/it.json +4 -2
- package/carousel/lib/es6/translations/ja.json +4 -2
- package/carousel/lib/es6/translations/ko.json +4 -2
- package/carousel/lib/es6/translations/nl.json +4 -2
- package/carousel/lib/es6/translations/pl.json +4 -2
- package/carousel/lib/es6/translations/pt.json +4 -2
- package/carousel/lib/es6/translations/sv.json +4 -2
- package/carousel/lib/es6/translations/tr.json +4 -2
- package/carousel/lib/es6/translations/vi.json +4 -2
- package/carousel/lib/es6/translations/zh.json +4 -2
- package/carousel/lib/types/translations/__intergalactic-dynamic-locales.d.ts +28 -0
- package/carousel/package.json +1 -1
- package/carousel/translations/__intergalactic-dynamic-locales.d.ts +28 -0
- package/checkbox/lib/cjs/Checkbox.js +18 -18
- package/checkbox/lib/es6/Checkbox.js +18 -18
- package/checkbox/package.json +1 -1
- package/color-picker/lib/cjs/ColorPicker.js +24 -24
- package/color-picker/lib/cjs/PaletteManager.js +24 -24
- package/color-picker/lib/cjs/components/InputColor.js +24 -24
- package/color-picker/lib/es6/ColorPicker.js +24 -24
- package/color-picker/lib/es6/PaletteManager.js +24 -24
- package/color-picker/lib/es6/components/InputColor.js +24 -24
- package/color-picker/package.json +1 -1
- package/components.json +73 -73
- package/core/package.json +1 -1
- package/counter/lib/cjs/Counter.js +11 -11
- package/counter/lib/es6/Counter.js +11 -11
- package/counter/package.json +1 -1
- package/d3-chart/lib/cjs/Area.js +11 -11
- package/d3-chart/lib/cjs/Axis.js +14 -14
- package/d3-chart/lib/cjs/Bar.js +16 -16
- package/d3-chart/lib/cjs/Bubble.js +12 -12
- package/d3-chart/lib/cjs/CompactHorizontalBar.js +16 -16
- package/d3-chart/lib/cjs/Donut.js +9 -9
- package/d3-chart/lib/cjs/Dots.js +8 -8
- package/d3-chart/lib/cjs/HorizontalBar.js +16 -16
- package/d3-chart/lib/cjs/Hover.js +3 -3
- package/d3-chart/lib/cjs/Line.js +9 -9
- package/d3-chart/lib/cjs/Plot.js +3 -3
- package/d3-chart/lib/cjs/Radar.js +19 -19
- package/d3-chart/lib/cjs/RadialTree.js +12 -12
- package/d3-chart/lib/cjs/Reference.js +12 -12
- package/d3-chart/lib/cjs/ScatterPlot.js +9 -9
- package/d3-chart/lib/cjs/Tooltip.js +9 -9
- package/d3-chart/lib/cjs/Venn.js +9 -9
- package/d3-chart/lib/cjs/a11y/PlotA11yModule.js +2 -2
- package/d3-chart/lib/cjs/a11y/PlotA11yView.js +2 -2
- package/d3-chart/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +17 -17
- package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/d3-chart/lib/es6/Area.js +11 -11
- package/d3-chart/lib/es6/Axis.js +14 -14
- package/d3-chart/lib/es6/Bar.js +16 -16
- package/d3-chart/lib/es6/Bubble.js +12 -12
- package/d3-chart/lib/es6/CompactHorizontalBar.js +16 -16
- package/d3-chart/lib/es6/Donut.js +9 -9
- package/d3-chart/lib/es6/Dots.js +8 -8
- package/d3-chart/lib/es6/HorizontalBar.js +16 -16
- package/d3-chart/lib/es6/Hover.js +3 -3
- package/d3-chart/lib/es6/Line.js +9 -9
- package/d3-chart/lib/es6/Plot.js +3 -3
- package/d3-chart/lib/es6/Radar.js +19 -19
- package/d3-chart/lib/es6/RadialTree.js +12 -12
- package/d3-chart/lib/es6/Reference.js +12 -12
- package/d3-chart/lib/es6/ScatterPlot.js +9 -9
- package/d3-chart/lib/es6/Tooltip.js +9 -9
- package/d3-chart/lib/es6/Venn.js +9 -9
- package/d3-chart/lib/es6/a11y/PlotA11yModule.js +2 -2
- package/d3-chart/lib/es6/a11y/PlotA11yView.js +2 -2
- package/d3-chart/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +17 -17
- package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/d3-chart/package.json +1 -1
- package/data-table/Body.d.ts +4 -1
- package/data-table/DataTable.d.ts +15 -58
- package/data-table/Head.d.ts +8 -2
- package/data-table/lib/cjs/Body.js +62 -12
- package/data-table/lib/cjs/Body.js.map +1 -1
- package/data-table/lib/cjs/DataTable.js +206 -45
- package/data-table/lib/cjs/DataTable.js.map +1 -1
- package/data-table/lib/cjs/Head.js +87 -16
- package/data-table/lib/cjs/Head.js.map +1 -1
- package/data-table/lib/cjs/style/data-table.shadow.css +14 -0
- package/data-table/lib/cjs/translations/__intergalactic-dynamic-locales.js +39 -0
- package/data-table/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -0
- package/data-table/lib/cjs/translations/de.json +3 -0
- package/data-table/lib/cjs/translations/en.json +3 -0
- package/data-table/lib/cjs/translations/es.json +3 -0
- package/data-table/lib/cjs/translations/fr.json +3 -0
- package/data-table/lib/cjs/translations/it.json +3 -0
- package/data-table/lib/cjs/translations/ja.json +3 -0
- package/data-table/lib/cjs/translations/ko.json +3 -0
- package/data-table/lib/cjs/translations/nl.json +3 -0
- package/data-table/lib/cjs/translations/pl.json +3 -0
- package/data-table/lib/cjs/translations/pt.json +3 -0
- package/data-table/lib/cjs/translations/sv.json +3 -0
- package/data-table/lib/cjs/translations/tr.json +3 -0
- package/data-table/lib/cjs/translations/vi.json +3 -0
- package/data-table/lib/cjs/translations/zh.json +3 -0
- package/data-table/lib/cjs/types.js.map +1 -1
- package/data-table/lib/es6/Body.js +62 -12
- package/data-table/lib/es6/Body.js.map +1 -1
- package/data-table/lib/es6/DataTable.js +207 -45
- package/data-table/lib/es6/DataTable.js.map +1 -1
- package/data-table/lib/es6/Head.js +87 -16
- package/data-table/lib/es6/Head.js.map +1 -1
- package/data-table/lib/es6/style/data-table.shadow.css +14 -0
- package/data-table/lib/es6/translations/__intergalactic-dynamic-locales.js +31 -0
- package/data-table/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -0
- package/data-table/lib/es6/translations/de.json +3 -0
- package/data-table/lib/es6/translations/en.json +3 -0
- package/data-table/lib/es6/translations/es.json +3 -0
- package/data-table/lib/es6/translations/fr.json +3 -0
- package/data-table/lib/es6/translations/it.json +3 -0
- package/data-table/lib/es6/translations/ja.json +3 -0
- package/data-table/lib/es6/translations/ko.json +3 -0
- package/data-table/lib/es6/translations/nl.json +3 -0
- package/data-table/lib/es6/translations/pl.json +3 -0
- package/data-table/lib/es6/translations/pt.json +3 -0
- package/data-table/lib/es6/translations/sv.json +3 -0
- package/data-table/lib/es6/translations/tr.json +3 -0
- package/data-table/lib/es6/translations/vi.json +3 -0
- package/data-table/lib/es6/translations/zh.json +3 -0
- package/data-table/lib/es6/types.js.map +1 -1
- package/data-table/lib/types/Body.d.ts +4 -1
- package/data-table/lib/types/DataTable.d.ts +15 -58
- package/data-table/lib/types/Head.d.ts +8 -2
- package/data-table/lib/types/translations/__intergalactic-dynamic-locales.d.ts +44 -0
- package/data-table/lib/types/types.d.ts +2 -0
- package/data-table/package.json +1 -1
- package/data-table/translations/__intergalactic-dynamic-locales.d.ts +44 -0
- package/data-table/types.d.ts +2 -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/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/Dropdown.js +2 -2
- package/dropdown/lib/es6/Dropdown.js +2 -2
- package/dropdown/package.json +1 -1
- package/dropdown-menu/lib/cjs/DropdownMenu.js +25 -25
- package/dropdown-menu/lib/cjs/DropdownMenuOld.js +21 -21
- package/dropdown-menu/lib/es6/DropdownMenu.js +25 -25
- package/dropdown-menu/lib/es6/DropdownMenuOld.js +21 -21
- package/dropdown-menu/package.json +1 -1
- package/ellipsis/lib/cjs/Ellipsis.js +10 -10
- package/ellipsis/lib/es6/Ellipsis.js +10 -10
- package/ellipsis/package.json +1 -1
- package/errors/lib/cjs/Error.js +9 -9
- package/errors/lib/es6/Error.js +9 -9
- package/errors/package.json +1 -1
- package/feature-popover/lib/cjs/FeaturePopover.js +11 -11
- package/feature-popover/lib/es6/FeaturePopover.js +11 -11
- package/feature-popover/package.json +1 -1
- package/feedback-form/lib/cjs/FeedbackForm.js +7 -7
- package/feedback-form/lib/cjs/component/checkbox-button/CheckboxButton.js +3 -3
- package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js +2 -2
- package/feedback-form/lib/cjs/component/slider-rating/SliderRating.js +6 -6
- package/feedback-form/lib/es6/FeedbackForm.js +7 -7
- package/feedback-form/lib/es6/component/checkbox-button/CheckboxButton.js +3 -3
- package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js +2 -2
- package/feedback-form/lib/es6/component/slider-rating/SliderRating.js +6 -6
- package/feedback-form/package.json +1 -1
- package/flags/lib/cjs/Flags.js +3 -3
- package/flags/lib/es6/Flags.js +3 -3
- package/flags/lib/sprites/sprite@1x.css +256 -256
- package/flags/lib/sprites/sprite@2x.css +257 -257
- package/flags/package.json +1 -1
- package/flex-box/lib/cjs/Box/useBox.js +3 -3
- package/flex-box/lib/cjs/Flex/useFlex.js +3 -3
- package/flex-box/lib/cjs/invalid-state-box/InvalidStateBox.js +2 -2
- package/flex-box/lib/es6/Box/useBox.js +3 -3
- package/flex-box/lib/es6/Flex/useFlex.js +3 -3
- package/flex-box/lib/es6/invalid-state-box/InvalidStateBox.js +2 -2
- package/flex-box/package.json +1 -1
- package/format-text/lib/cjs/FormatText.js +5 -5
- package/format-text/lib/es6/FormatText.js +5 -5
- package/format-text/package.json +1 -1
- package/fullscreen-modal/lib/cjs/FullscreenModal.js +13 -13
- package/fullscreen-modal/lib/es6/FullscreenModal.js +13 -13
- package/fullscreen-modal/package.json +1 -1
- package/grid/lib/cjs/Grid.js +114 -114
- package/grid/lib/es6/Grid.js +114 -114
- package/grid/package.json +1 -1
- package/i18n-unplugin/package.json +1 -1
- package/icon/color/Confluence/l/index.js +4 -4
- package/icon/color/Confluence/l/index.mjs +4 -4
- package/icon/color/Confluence/m/index.js +4 -4
- package/icon/color/Confluence/m/index.mjs +4 -4
- package/icon/color/MicrosoftOffice/l/index.js +10 -10
- package/icon/color/MicrosoftOffice/l/index.mjs +10 -10
- package/icon/color/MicrosoftOffice/m/index.js +10 -10
- package/icon/color/MicrosoftOffice/m/index.mjs +10 -10
- package/icon/lib/cjs/Icon.js +6 -6
- package/icon/lib/es6/Icon.js +6 -6
- package/icon/package.json +1 -1
- package/icon/pay/Discover/l/index.js +1 -1
- package/icon/pay/Discover/l/index.mjs +1 -1
- package/icon/pay/Discover/m/index.js +1 -1
- package/icon/pay/Discover/m/index.mjs +1 -1
- package/icon/pay/JCB/l/index.js +10 -10
- package/icon/pay/JCB/l/index.mjs +10 -10
- package/icon/pay/JCB/m/index.js +10 -10
- package/icon/pay/JCB/m/index.mjs +10 -10
- package/icon/pay/Visa/l/index.js +2 -2
- package/icon/pay/Visa/l/index.mjs +2 -2
- package/icon/pay/Visa/m/index.js +2 -2
- package/icon/pay/Visa/m/index.mjs +2 -2
- package/illustration/lib/cjs/index.js +1 -1
- package/illustration/lib/es6/index.js +1 -1
- package/illustration/package.json +1 -1
- package/inline-edit/lib/cjs/InlineEdit.js +4 -4
- package/inline-edit/lib/es6/InlineEdit.js +4 -4
- package/inline-edit/package.json +1 -1
- package/inline-input/index.d.ts +11 -2
- package/inline-input/lib/cjs/InlineInput.js +31 -35
- package/inline-input/lib/cjs/InlineInput.js.map +1 -1
- package/inline-input/lib/cjs/index.d.js.map +1 -1
- package/inline-input/lib/cjs/style/inline-input.shadow.css +1 -1
- package/inline-input/lib/es6/InlineInput.js +31 -35
- package/inline-input/lib/es6/InlineInput.js.map +1 -1
- package/inline-input/lib/es6/index.d.js.map +1 -1
- package/inline-input/lib/es6/style/inline-input.shadow.css +1 -1
- package/inline-input/lib/types/index.d.ts +11 -2
- 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/InputTags.d.ts +1 -0
- package/input-tags/lib/cjs/InputTags.js +67 -36
- package/input-tags/lib/cjs/InputTags.js.map +1 -1
- package/input-tags/lib/cjs/style/input-tag.shadow.css +2 -2
- package/input-tags/lib/cjs/translations/__intergalactic-dynamic-locales.js +39 -0
- package/input-tags/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -0
- package/input-tags/lib/cjs/translations/de.json +3 -0
- package/input-tags/lib/cjs/translations/en.json +3 -0
- package/input-tags/lib/cjs/translations/es.json +3 -0
- package/input-tags/lib/cjs/translations/fr.json +3 -0
- package/input-tags/lib/cjs/translations/it.json +3 -0
- package/input-tags/lib/cjs/translations/ja.json +3 -0
- package/input-tags/lib/cjs/translations/ko.json +3 -0
- package/input-tags/lib/cjs/translations/nl.json +3 -0
- package/input-tags/lib/cjs/translations/pl.json +3 -0
- package/input-tags/lib/cjs/translations/pt.json +3 -0
- package/input-tags/lib/cjs/translations/sv.json +3 -0
- package/input-tags/lib/cjs/translations/tr.json +3 -0
- package/input-tags/lib/cjs/translations/vi.json +3 -0
- package/input-tags/lib/cjs/translations/zh.json +3 -0
- package/input-tags/lib/es6/InputTags.js +68 -36
- package/input-tags/lib/es6/InputTags.js.map +1 -1
- package/input-tags/lib/es6/style/input-tag.shadow.css +2 -2
- package/input-tags/lib/es6/translations/__intergalactic-dynamic-locales.js +31 -0
- package/input-tags/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -0
- package/input-tags/lib/es6/translations/de.json +3 -0
- package/input-tags/lib/es6/translations/en.json +3 -0
- package/input-tags/lib/es6/translations/es.json +3 -0
- package/input-tags/lib/es6/translations/fr.json +3 -0
- package/input-tags/lib/es6/translations/it.json +3 -0
- package/input-tags/lib/es6/translations/ja.json +3 -0
- package/input-tags/lib/es6/translations/ko.json +3 -0
- package/input-tags/lib/es6/translations/nl.json +3 -0
- package/input-tags/lib/es6/translations/pl.json +3 -0
- package/input-tags/lib/es6/translations/pt.json +3 -0
- package/input-tags/lib/es6/translations/sv.json +3 -0
- package/input-tags/lib/es6/translations/tr.json +3 -0
- package/input-tags/lib/es6/translations/vi.json +3 -0
- package/input-tags/lib/es6/translations/zh.json +3 -0
- package/input-tags/lib/types/InputTags.d.ts +1 -0
- package/input-tags/lib/types/translations/__intergalactic-dynamic-locales.d.ts +44 -0
- package/input-tags/package.json +1 -1
- package/input-tags/translations/__intergalactic-dynamic-locales.d.ts +44 -0
- package/link/lib/cjs/Link.js +12 -12
- package/link/lib/es6/Link.js +12 -12
- package/link/package.json +1 -1
- package/mini-chart/lib/cjs/component/score/Donut.js +9 -9
- package/mini-chart/lib/cjs/component/score/Line.js +17 -17
- package/mini-chart/lib/cjs/component/trend/Bar.js +7 -7
- package/mini-chart/lib/cjs/component/trend/Line.js +7 -7
- package/mini-chart/lib/es6/component/score/Donut.js +9 -9
- package/mini-chart/lib/es6/component/score/Line.js +17 -17
- package/mini-chart/lib/es6/component/trend/Bar.js +7 -7
- package/mini-chart/lib/es6/component/trend/Line.js +7 -7
- package/mini-chart/package.json +1 -1
- package/modal/lib/cjs/Modal.js +8 -8
- package/modal/lib/es6/Modal.js +8 -8
- package/modal/package.json +1 -1
- package/neighbor-location/package.json +1 -1
- package/notice/lib/cjs/Notice.js +14 -14
- package/notice/lib/es6/Notice.js +14 -14
- package/notice/package.json +1 -1
- package/notice-bubble/lib/cjs/NoticeBubble.js +15 -15
- package/notice-bubble/lib/es6/NoticeBubble.js +15 -15
- package/notice-bubble/package.json +1 -1
- package/notice-global/lib/cjs/NoticeGlobal.js +11 -11
- package/notice-global/lib/es6/NoticeGlobal.js +11 -11
- package/notice-global/package.json +1 -1
- package/outside-click/package.json +1 -1
- package/package.json +1 -1
- package/pagination/lib/cjs/Pagination.js +12 -16
- package/pagination/lib/cjs/Pagination.js.map +1 -1
- package/pagination/lib/es6/Pagination.js +12 -16
- package/pagination/lib/es6/Pagination.js.map +1 -1
- 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/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/select/package.json +1 -1
- package/side-panel/lib/cjs/SidePanel.js +23 -28
- package/side-panel/lib/cjs/SidePanel.js.map +1 -1
- package/side-panel/lib/cjs/style/side-panel.shadow.css +8 -30
- package/side-panel/lib/es6/SidePanel.js +23 -28
- package/side-panel/lib/es6/SidePanel.js.map +1 -1
- package/side-panel/lib/es6/style/side-panel.shadow.css +8 -30
- package/side-panel/package.json +1 -1
- package/skeleton/lib/cjs/Charts/Area.js +9 -9
- package/skeleton/lib/cjs/Charts/Bar.js +9 -9
- package/skeleton/lib/cjs/Charts/Bubble.js +9 -9
- package/skeleton/lib/cjs/Charts/CompactHorizontalBar.js +9 -9
- package/skeleton/lib/cjs/Charts/Donut.js +9 -9
- package/skeleton/lib/cjs/Charts/Histogram.js +9 -9
- package/skeleton/lib/cjs/Charts/Line.js +9 -9
- package/skeleton/lib/cjs/Charts/RadialTree.js +9 -9
- package/skeleton/lib/cjs/Charts/ScatterPlot.js +9 -9
- package/skeleton/lib/cjs/Charts/Venn.js +9 -9
- package/skeleton/lib/cjs/Skeleton.js +8 -8
- package/skeleton/lib/es6/Charts/Area.js +9 -9
- package/skeleton/lib/es6/Charts/Bar.js +9 -9
- package/skeleton/lib/es6/Charts/Bubble.js +9 -9
- package/skeleton/lib/es6/Charts/CompactHorizontalBar.js +9 -9
- package/skeleton/lib/es6/Charts/Donut.js +9 -9
- package/skeleton/lib/es6/Charts/Histogram.js +9 -9
- package/skeleton/lib/es6/Charts/Line.js +9 -9
- package/skeleton/lib/es6/Charts/RadialTree.js +9 -9
- package/skeleton/lib/es6/Charts/ScatterPlot.js +9 -9
- package/skeleton/lib/es6/Charts/Venn.js +9 -9
- package/skeleton/lib/es6/Skeleton.js +8 -8
- package/skeleton/package.json +1 -1
- package/slider/lib/cjs/Slider.js +8 -8
- package/slider/lib/es6/Slider.js +8 -8
- package/slider/package.json +1 -1
- package/spin/lib/cjs/Spin.js +13 -13
- package/spin/lib/es6/Spin.js +13 -13
- package/spin/package.json +1 -1
- package/spin-container/lib/cjs/SpinContainer.js +8 -8
- package/spin-container/lib/es6/SpinContainer.js +8 -8
- package/spin-container/package.json +1 -1
- package/sticky/lib/cjs/Sticky.js +2 -2
- package/sticky/lib/es6/Sticky.js +2 -2
- package/sticky/package.json +1 -1
- package/switch/lib/cjs/Switch.js +21 -21
- package/switch/lib/es6/Switch.js +21 -21
- package/switch/package.json +1 -1
- package/tab-line/lib/cjs/TabLine.js +13 -13
- package/tab-line/lib/es6/TabLine.js +13 -13
- package/tab-line/package.json +1 -1
- package/tab-panel/lib/cjs/TabPanel.js +8 -8
- package/tab-panel/lib/es6/TabPanel.js +8 -8
- package/tab-panel/package.json +1 -1
- package/tag/index.d.ts +2 -0
- package/tag/lib/cjs/Tag.js +167 -95
- package/tag/lib/cjs/Tag.js.map +1 -1
- package/tag/lib/cjs/index.d.js.map +1 -1
- package/tag/lib/cjs/style/tag.shadow.css +125 -90
- package/tag/lib/cjs/translations/de.json +1 -1
- package/tag/lib/cjs/translations/en.json +1 -1
- package/tag/lib/cjs/translations/es.json +1 -1
- package/tag/lib/cjs/translations/fr.json +1 -1
- package/tag/lib/cjs/translations/it.json +1 -1
- package/tag/lib/cjs/translations/ja.json +1 -1
- package/tag/lib/cjs/translations/ko.json +1 -1
- package/tag/lib/cjs/translations/nl.json +1 -1
- package/tag/lib/cjs/translations/pl.json +1 -1
- package/tag/lib/cjs/translations/pt.json +1 -1
- package/tag/lib/cjs/translations/sv.json +1 -1
- package/tag/lib/cjs/translations/tr.json +1 -1
- package/tag/lib/cjs/translations/vi.json +1 -1
- package/tag/lib/cjs/translations/zh.json +1 -1
- package/tag/lib/es6/Tag.js +168 -95
- package/tag/lib/es6/Tag.js.map +1 -1
- package/tag/lib/es6/index.d.js.map +1 -1
- package/tag/lib/es6/style/tag.shadow.css +125 -90
- package/tag/lib/es6/translations/de.json +1 -1
- package/tag/lib/es6/translations/en.json +1 -1
- package/tag/lib/es6/translations/es.json +1 -1
- package/tag/lib/es6/translations/fr.json +1 -1
- package/tag/lib/es6/translations/it.json +1 -1
- package/tag/lib/es6/translations/ja.json +1 -1
- package/tag/lib/es6/translations/ko.json +1 -1
- package/tag/lib/es6/translations/nl.json +1 -1
- package/tag/lib/es6/translations/pl.json +1 -1
- package/tag/lib/es6/translations/pt.json +1 -1
- package/tag/lib/es6/translations/sv.json +1 -1
- package/tag/lib/es6/translations/tr.json +1 -1
- package/tag/lib/es6/translations/vi.json +1 -1
- package/tag/lib/es6/translations/zh.json +1 -1
- package/tag/lib/types/index.d.ts +2 -0
- package/tag/package.json +1 -1
- package/textarea/lib/cjs/Textarea.js +8 -8
- package/textarea/lib/es6/Textarea.js +8 -8
- package/textarea/package.json +1 -1
- package/time-picker/lib/cjs/TimePicker.js +12 -12
- package/time-picker/lib/es6/TimePicker.js +12 -12
- package/time-picker/package.json +1 -1
- package/tooltip/lib/cjs/Tooltip.js +9 -9
- package/tooltip/lib/es6/Tooltip.js +9 -9
- package/tooltip/package.json +1 -1
- package/typography/lib/cjs/Blockquote.js +4 -4
- package/typography/lib/cjs/Hint.js +7 -7
- package/typography/lib/cjs/List.js +5 -5
- package/typography/lib/cjs/Text.js +34 -34
- package/typography/lib/es6/Blockquote.js +4 -4
- package/typography/lib/es6/Hint.js +7 -7
- package/typography/lib/es6/List.js +5 -5
- package/typography/lib/es6/Text.js +34 -34
- package/typography/package.json +1 -1
- package/utils/lib/components/invalid-state-pattern/InvalidStatePattern.js +2 -2
- package/utils/lib/components/invalid-state-pattern/InvalidStatePattern.mjs +2 -2
- package/utils/lib/focus-lock/isFocusable.js +6 -1
- package/utils/lib/focus-lock/isFocusable.js.map +1 -1
- package/utils/lib/focus-lock/isFocusable.mjs +6 -1
- package/utils/lib/focus-lock/isFocusable.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/widget-empty/package.json +1 -1
- package/wizard/index.d.ts +17 -0
- package/wizard/lib/cjs/Wizard.js +201 -47
- package/wizard/lib/cjs/Wizard.js.map +1 -1
- package/wizard/lib/cjs/index.d.js.map +1 -1
- package/wizard/lib/cjs/style/wizard.shadow.css +4 -0
- package/wizard/lib/cjs/translations/de.json +3 -1
- package/wizard/lib/cjs/translations/en.json +3 -1
- package/wizard/lib/cjs/translations/es.json +3 -1
- package/wizard/lib/cjs/translations/fr.json +3 -1
- package/wizard/lib/cjs/translations/it.json +3 -1
- package/wizard/lib/cjs/translations/ja.json +3 -1
- package/wizard/lib/cjs/translations/ko.json +3 -1
- package/wizard/lib/cjs/translations/nl.json +3 -1
- package/wizard/lib/cjs/translations/pl.json +3 -1
- package/wizard/lib/cjs/translations/pt.json +3 -1
- package/wizard/lib/cjs/translations/sv.json +3 -1
- package/wizard/lib/cjs/translations/tr.json +3 -1
- package/wizard/lib/cjs/translations/vi.json +3 -1
- package/wizard/lib/cjs/translations/zh.json +3 -1
- package/wizard/lib/es6/Wizard.js +203 -47
- package/wizard/lib/es6/Wizard.js.map +1 -1
- package/wizard/lib/es6/index.d.js.map +1 -1
- package/wizard/lib/es6/style/wizard.shadow.css +4 -0
- package/wizard/lib/es6/translations/de.json +3 -1
- package/wizard/lib/es6/translations/en.json +3 -1
- package/wizard/lib/es6/translations/es.json +3 -1
- package/wizard/lib/es6/translations/fr.json +3 -1
- package/wizard/lib/es6/translations/it.json +3 -1
- package/wizard/lib/es6/translations/ja.json +3 -1
- package/wizard/lib/es6/translations/ko.json +3 -1
- package/wizard/lib/es6/translations/nl.json +3 -1
- package/wizard/lib/es6/translations/pl.json +3 -1
- package/wizard/lib/es6/translations/pt.json +3 -1
- package/wizard/lib/es6/translations/sv.json +3 -1
- package/wizard/lib/es6/translations/tr.json +3 -1
- package/wizard/lib/es6/translations/vi.json +3 -1
- package/wizard/lib/es6/translations/zh.json +3 -1
- package/wizard/lib/types/index.d.ts +17 -0
- package/wizard/package.json +1 -1
- package/button/lib/cjs/Button.js +0 -237
- package/button/lib/cjs/Button.js.map +0 -1
- package/button/lib/cjs/SpinButton.js.map +0 -1
- package/button/lib/cjs/index.d.js +0 -2
- package/button/lib/cjs/index.d.js.map +0 -1
- package/button/lib/es6/Button.js +0 -231
- package/button/lib/es6/Button.js.map +0 -1
- package/button/lib/es6/SpinButton.js.map +0 -1
- package/button/lib/es6/index.d.js +0 -2
- package/button/lib/es6/index.d.js.map +0 -1
- /package/button/lib/cjs/{SpinButton.js → component/AbstractButton/SpinButton.js} +0 -0
- /package/button/lib/es6/{SpinButton.js → component/AbstractButton/SpinButton.js} +0 -0
@@ -8,23 +8,21 @@ SCard {
|
|
8
8
|
--intergalactic-box-shadow-card,
|
9
9
|
0px 0px 1px 0px rgba(25, 27, 35, 0.16), 0px 1px 2px 0px rgba(25, 27, 35, 0.12)
|
10
10
|
);
|
11
|
-
}
|
12
11
|
|
13
|
-
STitle {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
}
|
12
|
+
STitle {
|
13
|
+
color: var(--intergalactic-text-primary, #191b23);
|
14
|
+
font-size: var(--intergalactic-fs-300, 16px);
|
15
|
+
line-height: var(--intergalactic-lh-300, 150%);
|
16
|
+
font-weight: var(--intergalactic-bold, 700);
|
17
|
+
margin-right: var(--intergalactic-spacing-1x, 4px);
|
18
|
+
}
|
20
19
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
vertical-align: middle;
|
20
|
+
[data-ui-name='DescriptionTooltip.Trigger'] {
|
21
|
+
margin-right: var(--intergalactic-spacing-1x, 4px);
|
22
|
+
line-height: normal;
|
23
|
+
vertical-align: top;
|
24
|
+
margin-top: calc(var(--intergalactic-spacing-1x, 4px) / 2);
|
25
|
+
}
|
28
26
|
}
|
29
27
|
|
30
28
|
SDescription {
|
package/card/lib/es6/Card.js
CHANGED
@@ -14,17 +14,16 @@ import React from 'react';
|
|
14
14
|
import createComponent, { Component, sstyled, Root } from 'intergalactic/core';
|
15
15
|
import { Box } from 'intergalactic/flex-box';
|
16
16
|
import { Text } from 'intergalactic/typography';
|
17
|
+
import { ButtonLink } from 'intergalactic/button';
|
17
18
|
import { DescriptionTooltip } from 'intergalactic/tooltip';
|
18
19
|
import InfoM from 'intergalactic/icon/Info/m';
|
19
20
|
/*__reshadow-styles__:"./style/card.shadow.css"*/
|
20
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
21
|
-
"
|
22
|
-
"
|
23
|
-
"
|
24
|
-
"
|
25
|
-
"
|
26
|
-
"__SHeader": "___SHeader_1qu85_gg_",
|
27
|
-
"__SBody": "___SBody_1qu85_gg_"
|
21
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SCard_1c81w_gg_{box-sizing:border-box;background:var(--intergalactic-bg-primary-neutral, #ffffff);padding:0;border:0;border-radius:var(--intergalactic-surface-rounded, 6px);box-shadow:var(--intergalactic-box-shadow-card,\n 0px 0px 1px 0px rgba(25, 27, 35, 0.16), 0px 1px 2px 0px rgba(25, 27, 35, 0.12)\n )}.___SCard_1c81w_gg_ .___STitle_1c81w_gg_{color:var(--intergalactic-text-primary, #191b23);font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700);margin-right:var(--intergalactic-spacing-1x, 4px)}.___SCard_1c81w_gg_ [data-ui-name=\"DescriptionTooltip.Trigger\"]{margin-right:var(--intergalactic-spacing-1x, 4px);line-height:normal;vertical-align:top;margin-top:calc(var(--intergalactic-spacing-1x, 4px)/2)}.___SDescription_1c81w_gg_{margin-bottom:0;margin-top:var(--intergalactic-spacing-2x, 8px);font-size:var(--intergalactic-fs-200, 14px);color:var(--intergalactic-text-secondary, #6c6e79)}.___SBody_1c81w_gg_,.___SHeader_1c81w_gg_{padding-left:var(--intergalactic-spacing-5x, 20px);padding-right:var(--intergalactic-spacing-5x, 20px)}.___SHeader_1c81w_gg_{padding-top:var(--intergalactic-spacing-2x, 8px);padding-bottom:var(--intergalactic-spacing-2x, 8px);box-shadow:inset 0-1px 0 var(--intergalactic-border-secondary, #e0e1e9)}.___SBody_1c81w_gg_{color:var(--intergalactic-text-primary, #191b23);padding-bottom:var(--intergalactic-spacing-5x, 20px);padding-top:var(--intergalactic-spacing-5x, 20px)}" /*__inner_css_end__*/, "1c81w_gg_") /*__reshadow_css_end__*/, {
|
22
|
+
"__SDescription": "___SDescription_1c81w_gg_",
|
23
|
+
"__SHeader": "___SHeader_1c81w_gg_",
|
24
|
+
"__SBody": "___SBody_1c81w_gg_",
|
25
|
+
"__SCard": "___SCard_1c81w_gg_",
|
26
|
+
"__STitle": "___STitle_1c81w_gg_"
|
28
27
|
});
|
29
28
|
import { isAdvanceMode } from 'intergalactic/utils/lib/findComponent';
|
30
29
|
var CardRoot = /*#__PURE__*/function (_Component) {
|
@@ -62,20 +61,18 @@ function Title(props) {
|
|
62
61
|
hintAfterAriaLabel = props.hintAfterAriaLabel;
|
63
62
|
var hintAfter = props.hintAfter || props.hint;
|
64
63
|
var STitle = Text;
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
"
|
70
|
-
|
71
|
-
}), /*#__PURE__*/React.createElement(
|
72
|
-
|
73
|
-
|
74
|
-
"
|
75
|
-
|
76
|
-
}
|
77
|
-
"interactive": true
|
78
|
-
}))));
|
64
|
+
return _ref7 = sstyled(styles), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(STitle, _ref7.cn("STitle", _objectSpread({}, _assignProps2({}, _ref2))), /*#__PURE__*/React.createElement(Children, _ref7.cn("Children", {})), innerHint && /*#__PURE__*/React.createElement(DescriptionTooltip, _ref7.cn("DescriptionTooltip", {}), /*#__PURE__*/React.createElement(DescriptionTooltip.Trigger, {
|
65
|
+
tag: ButtonLink,
|
66
|
+
ml: 1,
|
67
|
+
use: 'secondary',
|
68
|
+
"aria-label": innerHintAriaLabel,
|
69
|
+
color: '--intergalactic-icon-secondary-neutral'
|
70
|
+
}, /*#__PURE__*/React.createElement(ButtonLink.Addon, null, /*#__PURE__*/React.createElement(InfoM, _ref7.cn("InfoM", {})))), /*#__PURE__*/React.createElement(DescriptionTooltip.Popper, null, innerHint))), hintAfter && /*#__PURE__*/React.createElement(DescriptionTooltip, _ref7.cn("DescriptionTooltip", {}), /*#__PURE__*/React.createElement(DescriptionTooltip.Trigger, {
|
71
|
+
tag: ButtonLink,
|
72
|
+
use: 'secondary',
|
73
|
+
"aria-label": hintAfterAriaLabel,
|
74
|
+
color: '--intergalactic-icon-secondary-neutral'
|
75
|
+
}, /*#__PURE__*/React.createElement(ButtonLink.Addon, null, /*#__PURE__*/React.createElement(InfoM, _ref7.cn("InfoM", {})))), /*#__PURE__*/React.createElement(DescriptionTooltip.Popper, null, hintAfter)));
|
79
76
|
}
|
80
77
|
function Description(props) {
|
81
78
|
var _ref3 = arguments[0],
|
package/card/lib/es6/Card.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Card.js","names":["React","createComponent","Component","sstyled","Root","Box","Text","DescriptionTooltip","InfoM","style","_sstyled","insert","isAdvanceMode","CardRoot","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","render","_ref","asProps","_ref6","SCard","_this$asProps","Children","styles","forcedAdvancedMode","advancedMode","Card","Header","displayName","Body","createElement","cn","_objectSpread","_assignProps","_defineProperty","Title","props","_ref2","arguments[0]","_ref7","innerHint","innerHintAriaLabel","hintAfterAriaLabel","hintAfter","hint","STitle","
|
1
|
+
{"version":3,"file":"Card.js","names":["React","createComponent","Component","sstyled","Root","Box","Text","ButtonLink","DescriptionTooltip","InfoM","style","_sstyled","insert","isAdvanceMode","CardRoot","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","render","_ref","asProps","_ref6","SCard","_this$asProps","Children","styles","forcedAdvancedMode","advancedMode","Card","Header","displayName","Body","createElement","cn","_objectSpread","_assignProps","_defineProperty","Title","props","_ref2","arguments[0]","_ref7","innerHint","innerHintAriaLabel","hintAfterAriaLabel","hintAfter","hint","STitle","Fragment","_assignProps2","Trigger","tag","ml","use","color","Addon","Popper","Description","_ref3","_ref8","SDescription","_assignProps3","_ref4","_ref9","SHeader","_assignProps4","_ref5","_ref10","SBody","_assignProps5"],"sources":["../../src/Card.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport { Text } from '@semcore/typography';\nimport { ButtonLink } from '@semcore/button';\nimport { DescriptionTooltip } from '@semcore/tooltip';\nimport InfoM from '@semcore/icon/Info/m';\nimport style from './style/card.shadow.css';\nimport { isAdvanceMode } from '@semcore/utils/lib/findComponent';\n\nclass CardRoot extends Component {\n static displayName = 'Card';\n\n static style = style;\n\n render() {\n const SCard = Root;\n const { Children, styles, forcedAdvancedMode } = this.asProps;\n\n const advancedMode =\n forcedAdvancedMode ||\n isAdvanceMode(Children, [Card.Header.displayName, Card.Body.displayName]);\n\n return sstyled(styles)(\n <SCard render={Box}>\n {advancedMode ? (\n <Children />\n ) : (\n <Card.Body>\n <Children />\n </Card.Body>\n )}\n </SCard>,\n );\n }\n}\n\nfunction Title(props) {\n const { styles, innerHint, Children, innerHintAriaLabel, hintAfterAriaLabel } = props;\n const hintAfter = props.hintAfter || props.hint;\n const STitle = Root;\n\n return sstyled(styles)(\n <>\n <STitle render={Text}>\n <Children />\n {innerHint && (\n <DescriptionTooltip>\n <DescriptionTooltip.Trigger\n tag={ButtonLink}\n ml={1}\n use={'secondary'}\n aria-label={innerHintAriaLabel}\n color={'--intergalactic-icon-secondary-neutral'}\n >\n <ButtonLink.Addon>\n <InfoM />\n </ButtonLink.Addon>\n </DescriptionTooltip.Trigger>\n <DescriptionTooltip.Popper>{innerHint}</DescriptionTooltip.Popper>\n </DescriptionTooltip>\n )}\n </STitle>\n {hintAfter && (\n <DescriptionTooltip>\n <DescriptionTooltip.Trigger\n tag={ButtonLink}\n use={'secondary'}\n aria-label={hintAfterAriaLabel}\n color={'--intergalactic-icon-secondary-neutral'}\n >\n <ButtonLink.Addon>\n <InfoM />\n </ButtonLink.Addon>\n </DescriptionTooltip.Trigger>\n <DescriptionTooltip.Popper>{hintAfter}</DescriptionTooltip.Popper>\n </DescriptionTooltip>\n )}\n </>,\n );\n}\n\nfunction Description(props) {\n const { styles } = props;\n const SDescription = Root;\n return sstyled(styles)(<SDescription render={Text} tag='p' />);\n}\n\nfunction Header(props) {\n const { styles } = props;\n const SHeader = Root;\n return sstyled(styles)(<SHeader render={Box} {...props} />);\n}\n\nfunction Body(props) {\n const { styles } = props;\n const SBody = Root;\n return sstyled(styles)(<SBody render={Box} {...props} />);\n}\n\nconst Card = createComponent(CardRoot, {\n Title,\n Description,\n Header,\n Body,\n});\n\nexport default Card;\n"],"mappings":";;;;;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,eAAe,IAAIC,SAAS,EAAEC,OAAO,EAAEC,IAAI,QAAQ,eAAe;AACzE,SAASC,GAAG,QAAQ,mBAAmB;AACvC,SAASC,IAAI,QAAQ,qBAAqB;AAC1C,SAASC,UAAU,QAAQ,iBAAiB;AAC5C,SAASC,kBAAkB,QAAQ,kBAAkB;AACrD,OAAOC,KAAK,MAAM,sBAAsB;AAAC;AAAA,IAAAC,KAAA,+BAAAC,QAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAEzC,SAASC,aAAa,QAAQ,kCAAkC;AAAC,IAE3DC,QAAQ,0BAAAC,UAAA;EAAAC,SAAA,CAAAF,QAAA,EAAAC,UAAA;EAAA,IAAAE,MAAA,GAAAC,YAAA,CAAAJ,QAAA;EAAA,SAAAA,SAAA;IAAAK,eAAA,OAAAL,QAAA;IAAA,OAAAG,MAAA,CAAAG,KAAA,OAAAC,SAAA;EAAA;EAAAC,YAAA,CAAAR,QAAA;IAAAS,GAAA;IAAAC,KAAA,EAKZ,SAAAC,OAAA,EAAS;MAAA,IAAAC,IAAA,QAAAC,OAAA;QAAAC,KAAA;MACP,IAAMC,KAAK,GAQMxB,GAAG;MAPpB,IAAAyB,aAAA,GAAiD,IAAI,CAACH,OAAO;QAArDI,QAAQ,GAAAD,aAAA,CAARC,QAAQ;QAAEC,MAAM,GAAAF,aAAA,CAANE,MAAM;QAAEC,kBAAkB,GAAAH,aAAA,CAAlBG,kBAAkB;MAE5C,IAAMC,YAAY,GAChBD,kBAAkB,IAClBpB,aAAa,CAACkB,QAAQ,EAAE,CAACI,IAAI,CAACC,MAAM,CAACC,WAAW,EAAEF,IAAI,CAACG,IAAI,CAACD,WAAW,CAAC,CAAC;MAE3E,OAAAT,KAAA,GAAOzB,OAAO,CAAC6B,MAAM,CAAC,eACpBhC,KAAA,CAAAuC,aAAA,CAACV,KAAK,EAAAD,KAAA,CAAAY,EAAA,UAAAC,aAAA,KAAAC,YAAA,KAAAhB,IAAA,KACHQ,YAAY,gBACXlC,KAAA,CAAAuC,aAAA,CAACR,QAAQ,EAAAH,KAAA,CAAAY,EAAA,iBAAG,gBAEZxC,KAAA,CAAAuC,aAAA,CAACJ,IAAI,CAACG,IAAI,qBACRtC,KAAA,CAAAuC,aAAA,CAACR,QAAQ,EAAAH,KAAA,CAAAY,EAAA,iBAAG,CAEf,CACK;IAEZ;EAAC;EAAA,OAAA1B,QAAA;AAAA,EAxBoBZ,SAAS;AAAAyC,eAAA,CAA1B7B,QAAQ,iBACS,MAAM;AAAA6B,eAAA,CADvB7B,QAAQ,WAGGJ,KAAK;AAwBtB,SAASkC,KAAKA,CAACC,KAAK,EAAE;EAAA,IAAAC,KAAA,GAAAC,YAAA;IAAAC,KAAA;EACpB,IAAQhB,MAAM,GAAkEa,KAAK,CAA7Eb,MAAM;IAAEiB,SAAS,GAAuDJ,KAAK,CAArEI,SAAS;IAAElB,QAAQ,GAA6Cc,KAAK,CAA1Dd,QAAQ;IAAEmB,kBAAkB,GAAyBL,KAAK,CAAhDK,kBAAkB;IAAEC,kBAAkB,GAAKN,KAAK,CAA5BM,kBAAkB;EAC3E,IAAMC,SAAS,GAAGP,KAAK,CAACO,SAAS,IAAIP,KAAK,CAACQ,IAAI;EAC/C,IAAMC,MAAM,GAIQhD,IAAI;EAFxB,OAAA0C,KAAA,GAAO7C,OAAO,CAAC6B,MAAM,CAAC,eACpBhC,KAAA,CAAAuC,aAAA,CAAAvC,KAAA,CAAAuD,QAAA,qBACEvD,KAAA,CAAAuC,aAAA,CAACe,MAAM,EAAAN,KAAA,CAAAR,EAAA,WAAAC,aAAA,KAAAe,aAAA,KAAAV,KAAA,kBACL9C,KAAA,CAAAuC,aAAA,CAACR,QAAQ,EAAAiB,KAAA,CAAAR,EAAA,iBAAG,EACXS,SAAS,iBACRjD,KAAA,CAAAuC,aAAA,CAAC/B,kBAAkB,EAAAwC,KAAA,CAAAR,EAAA,yCACjBxC,KAAA,CAAAuC,aAAA,CAAC/B,kBAAkB,CAACiD,OAAO;IACzBC,GAAG,EAAEnD,UAAW;IAChBoD,EAAE,EAAE,CAAE;IACNC,GAAG,EAAE,WAAY;IACjB,cAAYV,kBAAmB;IAC/BW,KAAK,EAAE;EAAyC,gBAEhD7D,KAAA,CAAAuC,aAAA,CAAChC,UAAU,CAACuD,KAAK,qBACf9D,KAAA,CAAAuC,aAAA,CAAC9B,KAAK,EAAAuC,KAAA,CAAAR,EAAA,cAAG,CACQ,CACQ,eAC7BxC,KAAA,CAAAuC,aAAA,CAAC/B,kBAAkB,CAACuD,MAAM,QAAEd,SAAS,CAA6B,CAErE,CACM,EACRG,SAAS,iBACRpD,KAAA,CAAAuC,aAAA,CAAC/B,kBAAkB,EAAAwC,KAAA,CAAAR,EAAA,yCACjBxC,KAAA,CAAAuC,aAAA,CAAC/B,kBAAkB,CAACiD,OAAO;IACzBC,GAAG,EAAEnD,UAAW;IAChBqD,GAAG,EAAE,WAAY;IACjB,cAAYT,kBAAmB;IAC/BU,KAAK,EAAE;EAAyC,gBAEhD7D,KAAA,CAAAuC,aAAA,CAAChC,UAAU,CAACuD,KAAK,qBACf9D,KAAA,CAAAuC,aAAA,CAAC9B,KAAK,EAAAuC,KAAA,CAAAR,EAAA,cAAG,CACQ,CACQ,eAC7BxC,KAAA,CAAAuC,aAAA,CAAC/B,kBAAkB,CAACuD,MAAM,QAAEX,SAAS,CAA6B,CAErE,CACA;AAEP;AAEA,SAASY,WAAWA,CAACnB,KAAK,EAAE;EAAA,IAAAoB,KAAA,GAAAlB,YAAA;IAAAmB,KAAA;EAC1B,IAAQlC,MAAM,GAAKa,KAAK,CAAhBb,MAAM;EACd,IAAMmC,YAAY,GAC2B7D,IAAI;EAAjD,OAAA4D,KAAA,GAAO/D,OAAO,CAAC6B,MAAM,CAAC,eAAChC,KAAA,CAAAuC,aAAA,CAAC4B,YAAY,EAAAD,KAAA,CAAA1B,EAAA,iBAAAC,aAAA,KAAA2B,aAAA;IAAA,OAAmB;EAAG,GAAAH,KAAA,IAAG;AAC/D;AAEA,SAAS7B,MAAMA,CAACS,KAAK,EAAE;EAAA,IAAAwB,KAAA,GAAAtB,YAAA;IAAAuB,KAAA;EACrB,IAAQtC,MAAM,GAAKa,KAAK,CAAhBb,MAAM;EACd,IAAMuC,OAAO,GAC2BlE,GAAG;EAA3C,OAAAiE,KAAA,GAAOnE,OAAO,CAAC6B,MAAM,CAAC,eAAChC,KAAA,CAAAuC,aAAA,CAACgC,OAAO,EAAAD,KAAA,CAAA9B,EAAA,YAAAC,aAAA,KAAA+B,aAAA,CAAA/B,aAAA,KAAkBI,KAAK,GAAAwB,KAAA,IAAI;AAC5D;AAEA,SAAS/B,IAAIA,CAACO,KAAK,EAAE;EAAA,IAAA4B,KAAA,GAAA1B,YAAA;IAAA2B,MAAA;EACnB,IAAQ1C,MAAM,GAAKa,KAAK,CAAhBb,MAAM;EACd,IAAM2C,KAAK,GAC2BtE,GAAG;EAAzC,OAAAqE,MAAA,GAAOvE,OAAO,CAAC6B,MAAM,CAAC,eAAChC,KAAA,CAAAuC,aAAA,CAACoC,KAAK,EAAAD,MAAA,CAAAlC,EAAA,UAAAC,aAAA,KAAAmC,aAAA,CAAAnC,aAAA,KAAkBI,KAAK,GAAA4B,KAAA,IAAI;AAC1D;AAEA,IAAMtC,IAAI,GAAGlC,eAAe,CAACa,QAAQ,EAAE;EACrC8B,KAAK,EAALA,KAAK;EACLoB,WAAW,EAAXA,WAAW;EACX5B,MAAM,EAANA,MAAM;EACNE,IAAI,EAAJA;AACF,CAAC,CAAC;AAEF,eAAeH,IAAI"}
|
@@ -8,23 +8,21 @@ SCard {
|
|
8
8
|
--intergalactic-box-shadow-card,
|
9
9
|
0px 0px 1px 0px rgba(25, 27, 35, 0.16), 0px 1px 2px 0px rgba(25, 27, 35, 0.12)
|
10
10
|
);
|
11
|
-
}
|
12
11
|
|
13
|
-
STitle {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
}
|
12
|
+
STitle {
|
13
|
+
color: var(--intergalactic-text-primary, #191b23);
|
14
|
+
font-size: var(--intergalactic-fs-300, 16px);
|
15
|
+
line-height: var(--intergalactic-lh-300, 150%);
|
16
|
+
font-weight: var(--intergalactic-bold, 700);
|
17
|
+
margin-right: var(--intergalactic-spacing-1x, 4px);
|
18
|
+
}
|
20
19
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
vertical-align: middle;
|
20
|
+
[data-ui-name='DescriptionTooltip.Trigger'] {
|
21
|
+
margin-right: var(--intergalactic-spacing-1x, 4px);
|
22
|
+
line-height: normal;
|
23
|
+
vertical-align: top;
|
24
|
+
margin-top: calc(var(--intergalactic-spacing-1x, 4px) / 2);
|
25
|
+
}
|
28
26
|
}
|
29
27
|
|
30
28
|
SDescription {
|
package/card/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"intergalactic/card","description":"Semrush Card Component","version":"5.
|
1
|
+
{"name":"intergalactic/card","description":"Semrush Card Component","version":"5.41.0-prerelease.1","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.36.0-prerelease.1","@semcore/flex-box":"5.33.0-prerelease.1","@semcore/typography":"5.42.0-prerelease.1","@semcore/tooltip":"6.42.0-prerelease.1","@semcore/button":"5.37.0-prerelease.1","@semcore/icon":"4.45.0-prerelease.1"},"peerDependencies":{"@semcore/core":"^2.31.0-prerelease.1","react":"16.8 - 18","react-dom":"16.8 - 18"},"repository":{"type":"git","url":"https://github.com/semrush/intergalactic.git","directory":"semcore/card"},"devDependencies":{"@types/react":"18.0.21","@semcore/testing-utils":"1.0.0","@semcore/typography":"*","@semcore/icon":"*"}}
|
@@ -31,27 +31,27 @@ var _findComponent = require("intergalactic/utils/lib/findComponent");
|
|
31
31
|
var _breakpoints = require("intergalactic/breakpoints");
|
32
32
|
var _keyboardFocusEnhance = _interopRequireDefault(require("intergalactic/utils/lib/enhances/keyboardFocusEnhance"));
|
33
33
|
/*__reshadow-styles__:"./style/carousel.shadow.css"*/
|
34
|
-
var style = ( /*__reshadow_css_start__*/_index2.sstyled.insert( /*__inner_css_start__*/".
|
35
|
-
"__SCarousel": "
|
36
|
-
"
|
37
|
-
"
|
38
|
-
"
|
39
|
-
"
|
40
|
-
"
|
41
|
-
"
|
42
|
-
"
|
43
|
-
"
|
44
|
-
"
|
45
|
-
"
|
46
|
-
"
|
47
|
-
"
|
48
|
-
"
|
49
|
-
"
|
50
|
-
"
|
51
|
-
"
|
52
|
-
"
|
53
|
-
"__SPrevButton": "
|
54
|
-
"__SNextButton": "
|
34
|
+
var style = ( /*__reshadow_css_start__*/_index2.sstyled.insert( /*__inner_css_start__*/".___SCarousel_11eq6_gg_{overflow:hidden;outline:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.___SContainer_11eq6_gg_{display:flex;transition:transform var(--duration_11eq6) ease-in-out}.___SContentBox_11eq6_gg_,.___SModalBox_11eq6_gg_{position:relative;overflow:hidden;border-radius:var(--intergalactic-surface-rounded, 6px)}.___SContentBox_11eq6_gg_:has(.___SItem_11eq6_gg_.__keyboardFocused_11eq6_gg_):after,.___SModalBox_11eq6_gg_:has(.___SItem_11eq6_gg_.__keyboardFocused_11eq6_gg_):after{content:\"\";display:block;position:absolute;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));z-index:1;width:calc(100% - 3px*2);height:calc(100% - 3px*2);top:3px;left:3px}.___SModalContainer_11eq6_gg_{display:flex;transition:transform var(--duration_11eq6) ease-in-out}.___SItem_11eq6_gg_{flex:0 0 100%;max-width:100%;box-sizing:border-box;transform:var(--transform_11eq6);border-radius:var(--intergalactic-surface-rounded, 6px);overflow:hidden;outline:0}.___SItem_11eq6_gg_.__zoomIn_11eq6_gg_{cursor:zoom-in}.___SItem_11eq6_gg_.__zoomOut_11eq6_gg_{cursor:zoom-out}.___SIndicators_11eq6_gg_{display:flex;justify-content:center;margin-top:var(--intergalactic-spacing-4x, 16px);outline:0;position:relative}.___SIndicators_11eq6_gg_.__keyboardFocused_11eq6_gg_:after{content:\"\";display:block;position:absolute;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));z-index:1;width:calc(100% - 3px*2);height:calc(100% - 3px);top:0;left:3px}.___SIndicator_11eq6_gg_{margin:0 calc(.5*var(--intergalactic-spacing-3x, 12px));cursor:pointer;display:block;width:12px;height:12px;border-radius:var(--intergalactic-control-rounded, 6px);background-color:var(--intergalactic-icon-secondary-neutral, #a9abb6);opacity:var(--intergalactic-disabled-opacity, 0.3);-o-object-fit:cover;object-fit:cover;transition:ease-in-out opacity .1s}@media (hover:hover){.___SIndicator_11eq6_gg_:hover{opacity:calc(2*var(--intergalactic-disabled-opacity, 0.3))}}.___SIndicator_11eq6_gg_.__active_11eq6_gg_{opacity:1}.___SIndicator_11eq6_gg_.__inverted_11eq6_gg_{background-color:var(--intergalactic-icon-primary-invert, #ffffff)}.___SNext_11eq6_gg_,.___SPrev_11eq6_gg_{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SNext_11eq6_gg_ .___SNextButton_11eq6_gg_ span:has(>svg:only-child),.___SNext_11eq6_gg_ .___SPrevButton_11eq6_gg_ span:has(>svg:only-child),.___SPrev_11eq6_gg_ .___SNextButton_11eq6_gg_ span:has(>svg:only-child),.___SPrev_11eq6_gg_ .___SPrevButton_11eq6_gg_ span:has(>svg:only-child){margin-left:calc(2*var(--intergalactic-spacing-1x, 4px) - 1px);margin-right:calc(2*var(--intergalactic-spacing-1x, 4px) - 1px)}.___SNextButton_11eq6_gg_:focus-visible,.___SPrevButton_11eq6_gg_:focus-visible{box-shadow:none}.___SNextButton_11eq6_gg_:focus-visible:after,.___SPrevButton_11eq6_gg_:focus-visible:after{content:\"\";display:block;position:absolute;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));z-index:1;width:calc(100% - 3px*2);height:calc(100% - 3px*2);top:3px;left:3px;border-radius:var(--intergalactic-control-rounded, 6px)}.___SPrev_11eq6_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SNext_11eq6_gg_{margin-left:var(--intergalactic-spacing-2x, 8px)}.___SNext_11eq6_gg_.__disabled_11eq6_gg_,.___SPrev_11eq6_gg_.__disabled_11eq6_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}@media (prefers-reduced-motion){.___SContainer_11eq6_gg_{transition:none}}" /*__inner_css_end__*/, "11eq6_gg_") /*__reshadow_css_end__*/, {
|
35
|
+
"__SCarousel": "___SCarousel_11eq6_gg_",
|
36
|
+
"__SContainer": "___SContainer_11eq6_gg_",
|
37
|
+
"--duration": "--duration_11eq6",
|
38
|
+
"__SModalContainer": "___SModalContainer_11eq6_gg_",
|
39
|
+
"__SItem": "___SItem_11eq6_gg_",
|
40
|
+
"--transform": "--transform_11eq6",
|
41
|
+
"_zoomIn": "__zoomIn_11eq6_gg_",
|
42
|
+
"_zoomOut": "__zoomOut_11eq6_gg_",
|
43
|
+
"__SIndicators": "___SIndicators_11eq6_gg_",
|
44
|
+
"_keyboardFocused": "__keyboardFocused_11eq6_gg_",
|
45
|
+
"__SIndicator": "___SIndicator_11eq6_gg_",
|
46
|
+
"_active": "__active_11eq6_gg_",
|
47
|
+
"_inverted": "__inverted_11eq6_gg_",
|
48
|
+
"__SPrev": "___SPrev_11eq6_gg_",
|
49
|
+
"__SNext": "___SNext_11eq6_gg_",
|
50
|
+
"_disabled": "__disabled_11eq6_gg_",
|
51
|
+
"__SContentBox": "___SContentBox_11eq6_gg_",
|
52
|
+
"__SModalBox": "___SModalBox_11eq6_gg_",
|
53
|
+
"__SPrevButton": "___SPrevButton_11eq6_gg_",
|
54
|
+
"__SNextButton": "___SNextButton_11eq6_gg_"
|
55
55
|
});
|
56
56
|
var MAP_TRANSFORM = {
|
57
57
|
ArrowLeft: 'left',
|
@@ -59,8 +59,7 @@ var MAP_TRANSFORM = {
|
|
59
59
|
};
|
60
60
|
var enhance = {
|
61
61
|
uid: (0, _uniqueID["default"])(),
|
62
|
-
|
63
|
-
keyboardFocusEnhance: (0, _keyboardFocusEnhance["default"])()
|
62
|
+
i18nEnahnce: (0, _i18nEnhance["default"])(_intergalacticDynamicLocales.localizedMessages)
|
64
63
|
};
|
65
64
|
var media = ['(min-width: 481px)', '(max-width: 480px)'];
|
66
65
|
var BreakPoints = (0, _breakpoints.createBreakpoints)(media);
|
@@ -347,7 +346,8 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
347
346
|
value: function getPrevProps() {
|
348
347
|
var _this$asProps = this.asProps,
|
349
348
|
bounded = _this$asProps.bounded,
|
350
|
-
getI18nText = _this$asProps.getI18nText
|
349
|
+
getI18nText = _this$asProps.getI18nText,
|
350
|
+
uid = _this$asProps.uid;
|
351
351
|
var _this$state3 = this.state,
|
352
352
|
items = _this$state3.items,
|
353
353
|
selectedIndex = _this$state3.selectedIndex;
|
@@ -360,7 +360,7 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
360
360
|
onKeyDown: this.bindHandlerKeydownControl('left'),
|
361
361
|
disabled: disabled,
|
362
362
|
label: getI18nText('prev'),
|
363
|
-
|
363
|
+
'aria-controls': "igc-".concat(uid, "-carousel")
|
364
364
|
};
|
365
365
|
}
|
366
366
|
}, {
|
@@ -368,7 +368,8 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
368
368
|
value: function getNextProps() {
|
369
369
|
var _this$asProps2 = this.asProps,
|
370
370
|
bounded = _this$asProps2.bounded,
|
371
|
-
getI18nText = _this$asProps2.getI18nText
|
371
|
+
getI18nText = _this$asProps2.getI18nText,
|
372
|
+
uid = _this$asProps2.uid;
|
372
373
|
var _this$state4 = this.state,
|
373
374
|
items = _this$state4.items,
|
374
375
|
selectedIndex = _this$state4.selectedIndex;
|
@@ -381,7 +382,7 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
381
382
|
onKeyDown: this.bindHandlerKeydownControl('right'),
|
382
383
|
disabled: disabled,
|
383
384
|
label: getI18nText('next'),
|
384
|
-
|
385
|
+
'aria-controls': "igc-".concat(uid, "-carousel")
|
385
386
|
};
|
386
387
|
}
|
387
388
|
}, {
|
@@ -389,6 +390,7 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
389
390
|
value: function getIndicatorsProps() {
|
390
391
|
var _this4 = this;
|
391
392
|
var items = this.state.items;
|
393
|
+
var getI18nText = this.asProps.getI18nText;
|
392
394
|
return {
|
393
395
|
items: items.map(function (item, key) {
|
394
396
|
return {
|
@@ -396,6 +398,22 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
396
398
|
onClick: _this4.bindHandlerClickIndicator(key),
|
397
399
|
key: key
|
398
400
|
};
|
401
|
+
}),
|
402
|
+
role: 'tablist',
|
403
|
+
'aria-label': getI18nText('slides')
|
404
|
+
};
|
405
|
+
}
|
406
|
+
}, {
|
407
|
+
key: "getIndicatorProps",
|
408
|
+
value: function getIndicatorProps(_, index) {
|
409
|
+
var isCurrent = this.isSelected(index);
|
410
|
+
var getI18nText = this.asProps.getI18nText;
|
411
|
+
return {
|
412
|
+
role: 'tab',
|
413
|
+
'aria-selected': isCurrent,
|
414
|
+
'aria-controls': "igc-".concat(this.asProps.uid, "-carousel-item-").concat(index),
|
415
|
+
'aria-label': getI18nText('slide', {
|
416
|
+
slideNumber: index + 1
|
399
417
|
})
|
400
418
|
};
|
401
419
|
}
|
@@ -427,9 +445,7 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
427
445
|
}, {
|
428
446
|
key: "isSelected",
|
429
447
|
value: function isSelected(index) {
|
430
|
-
var
|
431
|
-
items = _this$state7.items,
|
432
|
-
selectedIndex = _this$state7.selectedIndex;
|
448
|
+
var items = this.state.items;
|
433
449
|
if (items.length === 0) {
|
434
450
|
return true;
|
435
451
|
}
|
@@ -447,10 +463,7 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
447
463
|
styles = _this$asProps3.styles,
|
448
464
|
uid = _this$asProps3.uid,
|
449
465
|
duration = _this$asProps3.duration,
|
450
|
-
|
451
|
-
zoomWidth = _this$asProps3.zoomWidth,
|
452
|
-
ariaLabel = _this$asProps3['aria-label'],
|
453
|
-
ariaRoledescription = _this$asProps3['aria-roledescription'];
|
466
|
+
zoomWidth = _this$asProps3.zoomWidth;
|
454
467
|
var isOpenZoom = this.state.isOpenZoom;
|
455
468
|
return _ref9 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(_modal["default"], _ref9.cn("Modal", {
|
456
469
|
"visible": isOpenZoom,
|
@@ -462,7 +475,7 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
462
475
|
}), !isSmall && /*#__PURE__*/_react["default"].createElement(Carousel.Prev, {
|
463
476
|
inverted: true
|
464
477
|
}), /*#__PURE__*/_react["default"].createElement(SModalBox, _ref9.cn("SModalBox", {}), /*#__PURE__*/_react["default"].createElement(SModalContainer, _ref9.cn("SModalContainer", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
465
|
-
"
|
478
|
+
"aria-live": 'polite',
|
466
479
|
"use:duration": "".concat(duration, "ms"),
|
467
480
|
"ref": this.refModalContainer,
|
468
481
|
"use:w": undefined,
|
@@ -502,6 +515,7 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
502
515
|
var _this$asProps4 = this.asProps,
|
503
516
|
styles = _this$asProps4.styles,
|
504
517
|
Children = _this$asProps4.Children,
|
518
|
+
uid = _this$asProps4.uid,
|
505
519
|
hasZoom = _this$asProps4.zoom,
|
506
520
|
ariaLabel = _this$asProps4['aria-label'],
|
507
521
|
ariaRoledescription = _this$asProps4['aria-roledescription'],
|
@@ -509,13 +523,15 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
509
523
|
var ComponentItems = (0, _findComponent.findAllComponents)(Children, ['Carousel.Item']);
|
510
524
|
var Controls = (0, _findComponent.findAllComponents)(Children, ['Carousel.Prev', 'Carousel.Next', 'Carousel.Indicators']);
|
511
525
|
return _ref10 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SCarousel, _ref10.cn("SCarousel", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
512
|
-
"role": '
|
526
|
+
"role": 'region',
|
527
|
+
"roledescription": 'carousel',
|
513
528
|
"onKeyDown": this.handlerKeyDown,
|
514
529
|
"onTouchStart": this.handlerTouchStart,
|
515
530
|
"onTouchEnd": this.handlerTouchEnd,
|
516
|
-
"ref": this.refCarousel
|
531
|
+
"ref": this.refCarousel,
|
532
|
+
"id": "igc-".concat(uid, "-carousel"),
|
533
|
+
"aria-roledescription": ariaRoledescription
|
517
534
|
}, _ref2))), Controls.length === 0 ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_flexBox.Flex, _ref10.cn("Flex", {}), /*#__PURE__*/_react["default"].createElement(Carousel.Prev, null), /*#__PURE__*/_react["default"].createElement(SContentBox, _ref10.cn("SContentBox", {}), /*#__PURE__*/_react["default"].createElement(Carousel.Container, {
|
518
|
-
"aria-roledescription": ariaRoledescription,
|
519
535
|
"aria-label": ariaLabel
|
520
536
|
}, /*#__PURE__*/_react["default"].createElement(Children, _ref10.cn("Children", {})))), /*#__PURE__*/_react["default"].createElement(Carousel.Next, null)), indicators === 'default' && /*#__PURE__*/_react["default"].createElement(Carousel.Indicators, null), indicators === 'preview' && /*#__PURE__*/_react["default"].createElement(Carousel.Indicators, null, function () {
|
521
537
|
return ComponentItems.map(function (item, index) {
|
@@ -554,8 +570,8 @@ var Container = function Container(props) {
|
|
554
570
|
var styles = props.styles,
|
555
571
|
duration = props.duration;
|
556
572
|
return _ref11 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SContainer, _ref11.cn("SContainer", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
557
|
-
"
|
558
|
-
"
|
573
|
+
"use:duration": "".concat(duration, "ms"),
|
574
|
+
"aria-live": 'polite'
|
559
575
|
}, _ref3))));
|
560
576
|
};
|
561
577
|
var Item = /*#__PURE__*/function (_Component2) {
|
@@ -569,6 +585,7 @@ var Item = /*#__PURE__*/function (_Component2) {
|
|
569
585
|
}
|
570
586
|
_this7 = _super2.call.apply(_super2, [this].concat(args));
|
571
587
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this7), "refItem", /*#__PURE__*/_react["default"].createRef());
|
588
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this7), "keepFocusTimeout", void 0);
|
572
589
|
return _this7;
|
573
590
|
}
|
574
591
|
(0, _createClass2["default"])(Item, [{
|
@@ -593,15 +610,25 @@ var Item = /*#__PURE__*/function (_Component2) {
|
|
593
610
|
toggleItem && refItem && toggleItem({
|
594
611
|
node: refItem
|
595
612
|
}, true);
|
613
|
+
clearTimeout(this.keepFocusTimeout);
|
596
614
|
}
|
597
615
|
}, {
|
598
616
|
key: "componentDidUpdate",
|
599
617
|
value: function componentDidUpdate(prevProps) {
|
618
|
+
clearTimeout(this.keepFocusTimeout);
|
600
619
|
var transform = this.props.transform;
|
601
620
|
var refItem = this.refItem.current;
|
602
621
|
if (prevProps.transform !== transform && refItem) {
|
603
622
|
refItem.style.transform = "translateX(".concat(transform, "%)");
|
604
623
|
}
|
624
|
+
if (this.props.current) {
|
625
|
+
this.keepFocusTimeout = setTimeout(function () {
|
626
|
+
var _document$activeEleme;
|
627
|
+
if (document.activeElement !== refItem && ((_document$activeEleme = document.activeElement) === null || _document$activeEleme === void 0 ? void 0 : _document$activeEleme.dataset.carousel) === (refItem === null || refItem === void 0 ? void 0 : refItem.dataset.carousel)) {
|
628
|
+
refItem === null || refItem === void 0 ? void 0 : refItem.focus();
|
629
|
+
}
|
630
|
+
}, 100);
|
631
|
+
}
|
605
632
|
}
|
606
633
|
}, {
|
607
634
|
key: "render",
|
@@ -614,14 +641,15 @@ var Item = /*#__PURE__*/function (_Component2) {
|
|
614
641
|
uid = _this$props2.uid,
|
615
642
|
current = _this$props2.current,
|
616
643
|
zoomIn = _this$props2.zoomIn,
|
617
|
-
onToggleZoomModal = _this$props2.onToggleZoomModal
|
618
|
-
transform = _this$props2.transform;
|
644
|
+
onToggleZoomModal = _this$props2.onToggleZoomModal;
|
619
645
|
var SItem = _flexBox.Box;
|
620
646
|
return _ref12 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SItem, _ref12.cn("SItem", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
621
647
|
"ref": this.refItem,
|
622
|
-
"role": '
|
648
|
+
"role": 'tabpanel',
|
649
|
+
"data-carousel": "igc-".concat(uid, "-carousel"),
|
623
650
|
"id": "igc-".concat(uid, "-carousel-item-").concat(index),
|
624
651
|
"aria-current": current,
|
652
|
+
"use:tabIndex": current ? 0 : -1,
|
625
653
|
"onClick": zoomIn ? onToggleZoomModal : undefined,
|
626
654
|
"zoomIn": zoomIn
|
627
655
|
}, _ref4))));
|
@@ -629,6 +657,7 @@ var Item = /*#__PURE__*/function (_Component2) {
|
|
629
657
|
}]);
|
630
658
|
return Item;
|
631
659
|
}(_core.Component);
|
660
|
+
(0, _defineProperty2["default"])(Item, "enhance", [(0, _keyboardFocusEnhance["default"])(false)]);
|
632
661
|
var Prev = function Prev(props) {
|
633
662
|
var _ref5 = arguments[0],
|
634
663
|
_ref13;
|
@@ -638,8 +667,7 @@ var Prev = function Prev(props) {
|
|
638
667
|
label = props.label,
|
639
668
|
_props$top = props.top,
|
640
669
|
top = _props$top === void 0 ? 0 : _props$top,
|
641
|
-
inverted = props.inverted
|
642
|
-
tabIndex = props.tabIndex;
|
670
|
+
inverted = props.inverted;
|
643
671
|
var SPrev = _flexBox.Box;
|
644
672
|
var SPrevButton = _button["default"];
|
645
673
|
return _ref13 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SPrev, _ref13.cn("SPrev", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
@@ -649,8 +677,7 @@ var Prev = function Prev(props) {
|
|
649
677
|
"aria-label": label,
|
650
678
|
"theme": inverted ? 'invert' : 'muted',
|
651
679
|
"use": 'tertiary',
|
652
|
-
"size": 'l'
|
653
|
-
"tabIndex": tabIndex
|
680
|
+
"size": 'l'
|
654
681
|
})));
|
655
682
|
};
|
656
683
|
var Next = function Next(props) {
|
@@ -662,8 +689,7 @@ var Next = function Next(props) {
|
|
662
689
|
label = props.label,
|
663
690
|
_props$top2 = props.top,
|
664
691
|
top = _props$top2 === void 0 ? 0 : _props$top2,
|
665
|
-
inverted = props.inverted
|
666
|
-
tabIndex = props.tabIndex;
|
692
|
+
inverted = props.inverted;
|
667
693
|
var SNext = _flexBox.Box;
|
668
694
|
var SNextButton = _button["default"];
|
669
695
|
return _ref14 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SNext, _ref14.cn("SNext", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
@@ -673,8 +699,7 @@ var Next = function Next(props) {
|
|
673
699
|
"aria-label": label,
|
674
700
|
"theme": inverted ? 'invert' : 'muted',
|
675
701
|
"use": 'tertiary',
|
676
|
-
"size": 'l'
|
677
|
-
"tabIndex": tabIndex
|
702
|
+
"size": 'l'
|
678
703
|
})));
|
679
704
|
};
|
680
705
|
var Indicators = function Indicators(_ref19) {
|
@@ -687,13 +712,9 @@ var Indicators = function Indicators(_ref19) {
|
|
687
712
|
var SIndicators = _flexBox.Box;
|
688
713
|
if (Children.origin) {
|
689
714
|
var _ref15;
|
690
|
-
return _ref15 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SIndicators, _ref15.cn("SIndicators", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
691
|
-
"aria-hidden": 'true'
|
692
|
-
}, _ref7))), /*#__PURE__*/_react["default"].createElement(Children, _ref15.cn("Children", {})));
|
715
|
+
return _ref15 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SIndicators, _ref15.cn("SIndicators", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({}, _ref7))), /*#__PURE__*/_react["default"].createElement(Children, _ref15.cn("Children", {})));
|
693
716
|
}
|
694
|
-
return _ref16 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SIndicators, _ref16.cn("SIndicators", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
695
|
-
"aria-hidden": 'true'
|
696
|
-
}, _ref7))), items === null || items === void 0 ? void 0 : items.map(function (item, index) {
|
717
|
+
return _ref16 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SIndicators, _ref16.cn("SIndicators", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({}, _ref7))), items === null || items === void 0 ? void 0 : items.map(function (item, index) {
|
697
718
|
return /*#__PURE__*/_react["default"].createElement(Carousel.Indicator, (0, _extends2["default"])({
|
698
719
|
key: index
|
699
720
|
}, item, {
|
@@ -701,6 +722,7 @@ var Indicators = function Indicators(_ref19) {
|
|
701
722
|
}));
|
702
723
|
}));
|
703
724
|
};
|
725
|
+
Indicators.enhance = [(0, _keyboardFocusEnhance["default"])()];
|
704
726
|
var Indicator = function Indicator(_ref20) {
|
705
727
|
var _ref8 = arguments[0],
|
706
728
|
_ref17;
|