intergalactic 15.107.0-prerelease.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
@@ -1,6 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { UnknownProperties, Intergalactic } from 'intergalactic/core';
|
3
3
|
import { Box, BoxProps } from 'intergalactic/flex-box';
|
4
|
+
import { ButtonProps } from 'intergalactic/button';
|
4
5
|
import { ModalProps } from 'intergalactic/modal';
|
5
6
|
|
6
7
|
export type WizardStep = string | number | boolean;
|
@@ -12,6 +13,7 @@ export type WizardProps = ModalProps & {
|
|
12
13
|
* Active step value
|
13
14
|
*/
|
14
15
|
step: WizardStep;
|
16
|
+
locale?: string;
|
15
17
|
};
|
16
18
|
|
17
19
|
/** @deprecated */
|
@@ -62,6 +64,19 @@ export type WizardStepperProps<T extends WizardStep = WizardStep> = BoxProps & {
|
|
62
64
|
disabled?: boolean;
|
63
65
|
};
|
64
66
|
|
67
|
+
export type WizardStepBackProps<T extends WizardStep = WizardStep> = ButtonProps & {
|
68
|
+
onActive?:
|
69
|
+
| ((step: T, e: React.SyntheticEvent<HTMLElement>) => void)
|
70
|
+
| React.Dispatch<React.SetStateAction<T>>;
|
71
|
+
stepName?: string;
|
72
|
+
};
|
73
|
+
export type WizardStepNextProps<T extends WizardStep = WizardStep> = ButtonProps & {
|
74
|
+
onActive?:
|
75
|
+
| ((step: T, e: React.SyntheticEvent<HTMLElement>) => void)
|
76
|
+
| React.Dispatch<React.SetStateAction<T>>;
|
77
|
+
stepName?: string;
|
78
|
+
};
|
79
|
+
|
65
80
|
type IntergalacticWizardStepperComponent<PropsExtending = {}> = (<
|
66
81
|
Value extends WizardStep,
|
67
82
|
Tag extends Intergalactic.Tag = 'div',
|
@@ -76,6 +91,8 @@ declare const Wizard: Intergalactic.Component<'div', WizardProps> & {
|
|
76
91
|
Step: Intergalactic.Component<'div', WizardStepProps>;
|
77
92
|
Stepper: IntergalacticWizardStepperComponent;
|
78
93
|
Content: typeof Box;
|
94
|
+
StepBack: Intergalactic.Component<'button', WizardStepBackProps>;
|
95
|
+
StepNext: Intergalactic.Component<'button', WizardStepNextProps>;
|
79
96
|
};
|
80
97
|
|
81
98
|
declare const wrapWizardStepper: <PropsExtending extends {}>(
|
package/wizard/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"intergalactic/wizard","description":"Semrush Wizard Component","version":"2.
|
1
|
+
{"name":"intergalactic/wizard","description":"Semrush Wizard Component","version":"2.44.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/icon":"4.45.0-prerelease.1","@semcore/modal":"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/wizard"},"devDependencies":{"@types/react":"18.0.21","@semcore/testing-utils":"1.0.0"}}
|
package/button/lib/cjs/Button.js
DELETED
@@ -1,237 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports["default"] = exports.MAP_USE_DEFAULT_THEME = void 0;
|
9
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
10
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
11
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
12
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
13
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
14
|
-
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
15
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
16
|
-
var _index = require("intergalactic/utils/lib/core/index");
|
17
|
-
var _core = _interopRequireWildcard(require("intergalactic/core"));
|
18
|
-
var _react = _interopRequireDefault(require("react"));
|
19
|
-
var _flexBox = require("intergalactic/flex-box");
|
20
|
-
var _tooltip = require("intergalactic/tooltip");
|
21
|
-
var _neighborLocation = _interopRequireDefault(require("intergalactic/neighbor-location"));
|
22
|
-
var _keyboardFocusEnhance = _interopRequireDefault(require("intergalactic/utils/lib/enhances/keyboardFocusEnhance"));
|
23
|
-
var _addonTextChildren = _interopRequireDefault(require("intergalactic/utils/lib/addonTextChildren"));
|
24
|
-
var _logger = _interopRequireDefault(require("intergalactic/utils/lib/logger"));
|
25
|
-
var _SpinButton = _interopRequireDefault(require("./SpinButton"));
|
26
|
-
var _hasLabels = _interopRequireDefault(require("intergalactic/utils/lib/hasLabels"));
|
27
|
-
/*__reshadow-styles__:"./style/button.shadow.css"*/
|
28
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SButton_i9ui3_gg_{position:relative;display:inline-block;align-items:center;justify-content:center;padding:0;margin:0;white-space:nowrap;font-family:inherit;line-height:normal;-webkit-text-decoration:none;text-decoration:none;text-align:center;vertical-align:middle;border:1px solid transparent;outline:0;box-shadow:none;cursor:pointer;box-sizing:border-box;overflow:visible;-webkit-user-select:none;-moz-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;font-weight:var(--intergalactic-medium, 500);color:var(--intergalactic-text-secondary, #6c6e79);min-width:-moz-fit-content;min-width:fit-content}.___SButton_i9ui3_gg_::-moz-focus-inner{padding:0;border:0}.___SButton_i9ui3_gg_:active,.___SButton_i9ui3_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SButton_i9ui3_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SButton_i9ui3_gg_.__keyboardFocused_i9ui3_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));z-index:1}.___SButton_i9ui3_gg_.__disabled_i9ui3_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none;box-shadow:none;z-index:0}.___SButton_i9ui3_gg_._size_s_i9ui3_gg_{width:var(--intergalactic-form-control-s, 20px);height:var(--intergalactic-form-control-s, 20px);border-radius:var(--intergalactic-addon-rounded, 4px)}.___SButton_i9ui3_gg_._size_m_i9ui3_gg_{height:var(--intergalactic-form-control-m, 28px);border-radius:var(--intergalactic-control-rounded, 6px);font-size:var(--intergalactic-fs-200, 14px)}.___SButton_i9ui3_gg_._size_l_i9ui3_gg_{height:var(--intergalactic-form-control-l, 40px);border-radius:var(--intergalactic-control-rounded, 6px);font-size:var(--intergalactic-fs-300, 16px)}.___SButton_i9ui3_gg_._theme_primary-info_i9ui3_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-info, #008ff8)}@media (hover:hover){.___SButton_i9ui3_gg_._theme_primary-info_i9ui3_gg_:hover{background-color:var(--intergalactic-control-primary-info-hover, #006dca)}}.___SButton_i9ui3_gg_._theme_primary-info_i9ui3_gg_.__active_i9ui3_gg_,.___SButton_i9ui3_gg_._theme_primary-info_i9ui3_gg_:active{background-color:var(--intergalactic-control-primary-info-active, #044792)}.___SButton_i9ui3_gg_._theme_primary-success_i9ui3_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-success, #009f81)}@media (hover:hover){.___SButton_i9ui3_gg_._theme_primary-success_i9ui3_gg_:hover{background-color:var(--intergalactic-control-primary-success-hover, #007c65)}}.___SButton_i9ui3_gg_._theme_primary-success_i9ui3_gg_.__active_i9ui3_gg_,.___SButton_i9ui3_gg_._theme_primary-success_i9ui3_gg_:active{background-color:var(--intergalactic-control-primary-success-active, #055345)}.___SButton_i9ui3_gg_._theme_primary-warning_i9ui3_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-brand, #ff642d)}@media (hover:hover){.___SButton_i9ui3_gg_._theme_primary-warning_i9ui3_gg_:hover{background-color:var(--intergalactic-control-primary-brand-hover, #c33909)}}.___SButton_i9ui3_gg_._theme_primary-warning_i9ui3_gg_.__active_i9ui3_gg_,.___SButton_i9ui3_gg_._theme_primary-warning_i9ui3_gg_:active{background-color:var(--intergalactic-control-primary-brand-active, #c33909)}.___SButton_i9ui3_gg_._theme_primary-danger_i9ui3_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-critical, #ff4953)}@media (hover:hover){.___SButton_i9ui3_gg_._theme_primary-danger_i9ui3_gg_:hover{background-color:var(--intergalactic-control-primary-critical-hover, #d1002f)}}.___SButton_i9ui3_gg_._theme_primary-danger_i9ui3_gg_.__active_i9ui3_gg_,.___SButton_i9ui3_gg_._theme_primary-danger_i9ui3_gg_:active{background-color:var(--intergalactic-control-primary-critical-active, #8e0016)}.___SButton_i9ui3_gg_._theme_primary-invert_i9ui3_gg_{color:var(--intergalactic-text-primary, #191b23);background-color:var(--intergalactic-control-primary-invert, #ffffff)}@media (hover:hover){.___SButton_i9ui3_gg_._theme_primary-invert_i9ui3_gg_:hover{background-color:var(--intergalactic-control-primary-invert-hover, #f4f5f9)}}.___SButton_i9ui3_gg_._theme_primary-invert_i9ui3_gg_.__active_i9ui3_gg_,.___SButton_i9ui3_gg_._theme_primary-invert_i9ui3_gg_:active{background-color:var(--intergalactic-control-primary-invert-active, #e0e1e9)}.___SButton_i9ui3_gg_._theme_secondary-muted_i9ui3_gg_{color:var(--intergalactic-text-secondary, #6c6e79);border-color:var(--intergalactic-border-primary, #c4c7cf);background-color:var(--intergalactic-control-secondary-neutral, rgba(138, 142, 155, 0.1))}@media (hover:hover){.___SButton_i9ui3_gg_._theme_secondary-muted_i9ui3_gg_:hover{background-color:var(--intergalactic-control-secondary-neutral-hover,\n rgba(138, 142, 155, 0.2));color:var(--intergalactic-text-primary, #191b23)}}.___SButton_i9ui3_gg_._theme_secondary-muted_i9ui3_gg_.__active_i9ui3_gg_,.___SButton_i9ui3_gg_._theme_secondary-muted_i9ui3_gg_:active{background-color:var(--intergalactic-control-secondary-neutral-active,\n rgba(138, 142, 155, 0.3));color:var(--intergalactic-text-primary, #191b23)}.___SButton_i9ui3_gg_._theme_secondary-info_i9ui3_gg_{background-color:var(--intergalactic-control-secondary-info, rgba(0, 143, 248, 0.1));color:var(--intergalactic-text-link, #006dca);border-color:var(--intergalactic-control-primary-info, #008ff8)}@media (hover:hover){.___SButton_i9ui3_gg_._theme_secondary-info_i9ui3_gg_:hover{background-color:var(--intergalactic-control-secondary-info-hover, rgba(0, 143, 248, 0.2))}}.___SButton_i9ui3_gg_._theme_secondary-info_i9ui3_gg_.__active_i9ui3_gg_,.___SButton_i9ui3_gg_._theme_secondary-info_i9ui3_gg_:active{background-color:var(--intergalactic-control-secondary-info-active, rgba(0, 143, 248, 0.3))}.___SButton_i9ui3_gg_._theme_secondary-invert_i9ui3_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);border-color:var(--intergalactic-border-primary-invert, #ffffff);background-color:var(--intergalactic-control-secondary-invert, rgba(255, 255, 255, 0.05))}@media (hover:hover){.___SButton_i9ui3_gg_._theme_secondary-invert_i9ui3_gg_:hover{background-color:var(--intergalactic-control-secondary-invert-hover, rgba(255, 255, 255, 0.1))}}.___SButton_i9ui3_gg_._theme_secondary-invert_i9ui3_gg_.__active_i9ui3_gg_,.___SButton_i9ui3_gg_._theme_secondary-invert_i9ui3_gg_:active{background-color:var(--intergalactic-control-secondary-invert-active,\n rgba(255, 255, 255, 0.3))}.___SButton_i9ui3_gg_._theme_tertiary-info_i9ui3_gg_{color:var(--intergalactic-text-link, #006dca);background-color:var(--intergalactic-control-tertiary-info, rgba(0, 143, 248, 0))}@media (hover:hover){.___SButton_i9ui3_gg_._theme_tertiary-info_i9ui3_gg_:hover{background-color:var(--intergalactic-control-tertiary-info-hover, rgba(0, 143, 248, 0.2))}}.___SButton_i9ui3_gg_._theme_tertiary-info_i9ui3_gg_.__active_i9ui3_gg_,.___SButton_i9ui3_gg_._theme_tertiary-info_i9ui3_gg_:active{background-color:var(--intergalactic-control-tertiary-info-active, rgba(0, 143, 248, 0.3))}.___SButton_i9ui3_gg_._theme_tertiary-muted_i9ui3_gg_{color:var(--intergalactic-text-secondary, #6c6e79);background-color:var(--intergalactic-control-tertiary-neutral, rgba(138, 142, 155, 0))}@media (hover:hover){.___SButton_i9ui3_gg_._theme_tertiary-muted_i9ui3_gg_:hover{background-color:var(--intergalactic-control-tertiary-neutral-hover, rgba(138, 142, 155, 0.2));color:var(--intergalactic-text-primary, #191b23)}}.___SButton_i9ui3_gg_._theme_tertiary-muted_i9ui3_gg_.__active_i9ui3_gg_,.___SButton_i9ui3_gg_._theme_tertiary-muted_i9ui3_gg_:active{background-color:var(--intergalactic-control-tertiary-neutral-active,\n rgba(138, 142, 155, 0.3));color:var(--intergalactic-text-primary, #191b23)}.___SButton_i9ui3_gg_._theme_tertiary-invert_i9ui3_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-tertiary-invert, rgba(255, 255, 255, 0))}@media (hover:hover){.___SButton_i9ui3_gg_._theme_tertiary-invert_i9ui3_gg_:hover{background-color:var(--intergalactic-control-tertiary-invert-hover, rgba(255, 255, 255, 0.1))}}.___SButton_i9ui3_gg_._theme_tertiary-invert_i9ui3_gg_.__active_i9ui3_gg_,.___SButton_i9ui3_gg_._theme_tertiary-invert_i9ui3_gg_:active{background-color:var(--intergalactic-control-tertiary-invert-active, rgba(255, 255, 255, 0.3))}.___SButton_i9ui3_gg_._neighborLocation_right_i9ui3_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SButton_i9ui3_gg_._neighborLocation_both_i9ui3_gg_{border-radius:0;margin-left:-1px}.___SButton_i9ui3_gg_._neighborLocation_left_i9ui3_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SButton_i9ui3_gg_._neighborLocation_both_i9ui3_gg_,.___SButton_i9ui3_gg_._neighborLocation_left_i9ui3_gg_{position:relative}.___SButton_i9ui3_gg_._neighborLocation_both_i9ui3_gg_:after,.___SButton_i9ui3_gg_._neighborLocation_left_i9ui3_gg_:after{background-color:var(--intergalactic-text-primary-invert, #ffffff)}.___SButton_i9ui3_gg_._neighborLocation_both_i9ui3_gg_._theme_secondary-muted_i9ui3_gg_:after,.___SButton_i9ui3_gg_._neighborLocation_left_i9ui3_gg_._theme_secondary-muted_i9ui3_gg_:after{background-color:var(--intergalactic-border-primary, #c4c7cf)}.___SButton_i9ui3_gg_+.___SButton_i9ui3_gg_._neighborLocation_both_i9ui3_gg_:after,.___SButton_i9ui3_gg_+.___SButton_i9ui3_gg_._neighborLocation_left_i9ui3_gg_:after{content:\"\";position:absolute;top:-1px;left:-1px;width:1px;height:calc(100% + 2px)}.___SSpin_i9ui3_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.___SInner_i9ui3_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SInner_i9ui3_gg_.__loading_i9ui3_gg_{visibility:hidden}.___SText_i9ui3_gg_{display:inline-flex}.___SText_i9ui3_gg_._size_l_i9ui3_gg_,.___SText_i9ui3_gg_._size_m_i9ui3_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SText_i9ui3_gg_._size_m_i9ui3_gg_{line-height:var(--intergalactic-lh-200, 142%)}.___SText_i9ui3_gg_._size_l_i9ui3_gg_{line-height:var(--intergalactic-lh-300, 150%)}.___SText_i9ui3_gg_._size_l_i9ui3_gg_:only-child{margin-left:var(--intergalactic-spacing-3x, 12px);margin-right:var(--intergalactic-spacing-3x, 12px)}.___SText_i9ui3_gg_._size_l_i9ui3_gg_:first-child{margin-left:var(--intergalactic-spacing-3x, 12px)}.___SText_i9ui3_gg_._size_l_i9ui3_gg_:last-child{margin-right:var(--intergalactic-spacing-3x, 12px)}.___SAddon_i9ui3_gg_{display:inline-flex;align-items:center;justify-content:center}.___SAddon_i9ui3_gg_._size_m_i9ui3_gg_:not(:only-child):first-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SAddon_i9ui3_gg_._size_m_i9ui3_gg_:not(:only-child):last-child{margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SAddon_i9ui3_gg_._size_m_i9ui3_gg_:only-child{margin-left:calc(1.5*var(--intergalactic-spacing-1x, 4px) - 1px);margin-right:calc(1.5*var(--intergalactic-spacing-1x, 4px) - 1px)}.___SAddon_i9ui3_gg_._size_l_i9ui3_gg_:not(:only-child):first-child{margin-left:calc(var(--intergalactic-spacing-3x, 12px) - 1px)}.___SAddon_i9ui3_gg_._size_l_i9ui3_gg_:not(:only-child):last-child{margin-right:calc(var(--intergalactic-spacing-3x, 12px) - 1px)}.___SAddon_i9ui3_gg_._size_l_i9ui3_gg_:only-child{margin-left:calc(3*var(--intergalactic-spacing-1x, 4px) - 1px);margin-right:calc(3*var(--intergalactic-spacing-1x, 4px) - 1px)}" /*__inner_css_end__*/, "i9ui3_gg_") /*__reshadow_css_end__*/, {
|
29
|
-
"__SButton": "___SButton_i9ui3_gg_",
|
30
|
-
"_keyboardFocused": "__keyboardFocused_i9ui3_gg_",
|
31
|
-
"_disabled": "__disabled_i9ui3_gg_",
|
32
|
-
"_size_s": "_size_s_i9ui3_gg_",
|
33
|
-
"_size_m": "_size_m_i9ui3_gg_",
|
34
|
-
"_size_l": "_size_l_i9ui3_gg_",
|
35
|
-
"_neighborLocation_right": "_neighborLocation_right_i9ui3_gg_",
|
36
|
-
"_neighborLocation_both": "_neighborLocation_both_i9ui3_gg_",
|
37
|
-
"_neighborLocation_left": "_neighborLocation_left_i9ui3_gg_",
|
38
|
-
"__SSpin": "___SSpin_i9ui3_gg_",
|
39
|
-
"__SInner": "___SInner_i9ui3_gg_",
|
40
|
-
"_loading": "__loading_i9ui3_gg_",
|
41
|
-
"__SText": "___SText_i9ui3_gg_",
|
42
|
-
"__SAddon": "___SAddon_i9ui3_gg_",
|
43
|
-
"_theme_primary-info": "_theme_primary-info_i9ui3_gg_",
|
44
|
-
"_active": "__active_i9ui3_gg_",
|
45
|
-
"_theme_primary-success": "_theme_primary-success_i9ui3_gg_",
|
46
|
-
"_theme_primary-warning": "_theme_primary-warning_i9ui3_gg_",
|
47
|
-
"_theme_primary-danger": "_theme_primary-danger_i9ui3_gg_",
|
48
|
-
"_theme_primary-invert": "_theme_primary-invert_i9ui3_gg_",
|
49
|
-
"_theme_secondary-muted": "_theme_secondary-muted_i9ui3_gg_",
|
50
|
-
"_theme_secondary-info": "_theme_secondary-info_i9ui3_gg_",
|
51
|
-
"_theme_secondary-invert": "_theme_secondary-invert_i9ui3_gg_",
|
52
|
-
"_theme_tertiary-info": "_theme_tertiary-info_i9ui3_gg_",
|
53
|
-
"_theme_tertiary-muted": "_theme_tertiary-muted_i9ui3_gg_",
|
54
|
-
"_theme_tertiary-invert": "_theme_tertiary-invert_i9ui3_gg_"
|
55
|
-
});
|
56
|
-
var MAP_USE_DEFAULT_THEME = {
|
57
|
-
primary: 'info',
|
58
|
-
secondary: 'muted',
|
59
|
-
tertiary: 'info'
|
60
|
-
};
|
61
|
-
exports.MAP_USE_DEFAULT_THEME = MAP_USE_DEFAULT_THEME;
|
62
|
-
var RootButton = /*#__PURE__*/function (_Component) {
|
63
|
-
(0, _inherits2["default"])(RootButton, _Component);
|
64
|
-
var _super = (0, _createSuper2["default"])(RootButton);
|
65
|
-
function RootButton() {
|
66
|
-
var _this;
|
67
|
-
(0, _classCallCheck2["default"])(this, RootButton);
|
68
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
69
|
-
args[_key] = arguments[_key];
|
70
|
-
}
|
71
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
72
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "containerRef", /*#__PURE__*/_react["default"].createRef());
|
73
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "state", {
|
74
|
-
ariaLabelledByContent: null
|
75
|
-
});
|
76
|
-
return _this;
|
77
|
-
}
|
78
|
-
(0, _createClass2["default"])(RootButton, [{
|
79
|
-
key: "getTextProps",
|
80
|
-
value: function getTextProps() {
|
81
|
-
var size = this.asProps.size;
|
82
|
-
return {
|
83
|
-
size: size
|
84
|
-
};
|
85
|
-
}
|
86
|
-
}, {
|
87
|
-
key: "getAddonProps",
|
88
|
-
value: function getAddonProps() {
|
89
|
-
var size = this.asProps.size;
|
90
|
-
return {
|
91
|
-
size: size
|
92
|
-
};
|
93
|
-
}
|
94
|
-
}, {
|
95
|
-
key: "componentDidMount",
|
96
|
-
value: function componentDidMount() {
|
97
|
-
var _this2 = this;
|
98
|
-
if (process.env.NODE_ENV !== 'production') {
|
99
|
-
_logger["default"].warn(this.containerRef.current && !(0, _hasLabels["default"])(this.containerRef.current) && !this.asProps.title, "'title' or 'aria-label' or 'aria-labelledby' are required props for buttons without text content", this.asProps['data-ui-name'] || RootButton.displayName);
|
100
|
-
}
|
101
|
-
if (this.asProps['aria-labelledby']) {
|
102
|
-
setTimeout(function () {
|
103
|
-
var _document$getElementB, _document$getElementB2;
|
104
|
-
_this2.setState({
|
105
|
-
ariaLabelledByContent: (_document$getElementB = (_document$getElementB2 = document.getElementById(_this2.asProps['aria-labelledby'])) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.textContent) !== null && _document$getElementB !== void 0 ? _document$getElementB : ''
|
106
|
-
});
|
107
|
-
}, 0);
|
108
|
-
}
|
109
|
-
}
|
110
|
-
}, {
|
111
|
-
key: "renderButton",
|
112
|
-
value: function renderButton(_ref10) {
|
113
|
-
var _ref = this.asProps,
|
114
|
-
_ref5;
|
115
|
-
var buttonProps = _ref10.buttonProps,
|
116
|
-
children = _ref10.children;
|
117
|
-
var styles = this.asProps.styles;
|
118
|
-
var SButton = _flexBox.Box;
|
119
|
-
return _ref5 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SButton, _ref5.cn("SButton", (0, _objectSpread2["default"])({}, (0, _core.assignProps)((0, _objectSpread2["default"])({}, buttonProps), _ref))), children);
|
120
|
-
}
|
121
|
-
}, {
|
122
|
-
key: "renderButtonWithHint",
|
123
|
-
value: function renderButtonWithHint(_ref11) {
|
124
|
-
var _ref2 = this.asProps,
|
125
|
-
_ref6;
|
126
|
-
var buttonProps = _ref11.buttonProps,
|
127
|
-
children = _ref11.children,
|
128
|
-
hintProps = _ref11.hintProps;
|
129
|
-
var styles = this.asProps.styles;
|
130
|
-
var SButton = _tooltip.Hint;
|
131
|
-
return _ref6 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SButton, _ref6.cn("SButton", (0, _objectSpread2["default"])({}, (0, _core.assignProps)((0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, buttonProps), hintProps), _ref2))), children);
|
132
|
-
}
|
133
|
-
}, {
|
134
|
-
key: "render",
|
135
|
-
value: function render() {
|
136
|
-
var _ref12,
|
137
|
-
_ref13,
|
138
|
-
_this3 = this;
|
139
|
-
var _this$asProps = this.asProps,
|
140
|
-
styles = _this$asProps.styles,
|
141
|
-
use = _this$asProps.use,
|
142
|
-
_this$asProps$theme = _this$asProps.theme,
|
143
|
-
theme = _this$asProps$theme === void 0 ? typeof use === 'string' && MAP_USE_DEFAULT_THEME[use] : _this$asProps$theme,
|
144
|
-
loading = _this$asProps.loading,
|
145
|
-
_this$asProps$disable = _this$asProps.disabled,
|
146
|
-
disabled = _this$asProps$disable === void 0 ? loading : _this$asProps$disable,
|
147
|
-
size = _this$asProps.size,
|
148
|
-
neighborLocation = _this$asProps.neighborLocation,
|
149
|
-
hasChildren = _this$asProps.children,
|
150
|
-
title = _this$asProps.title,
|
151
|
-
ariaLabel = _this$asProps['aria-label'],
|
152
|
-
Children = _this$asProps.Children,
|
153
|
-
AddonLeft = _this$asProps.addonLeft,
|
154
|
-
AddonRight = _this$asProps.addonRight,
|
155
|
-
hintPlacement = _this$asProps.hintPlacement;
|
156
|
-
var useTheme = use && theme ? "".concat(use, "-").concat(theme) : false;
|
157
|
-
var SInner = _flexBox.Box;
|
158
|
-
var SSpin = _flexBox.Box;
|
159
|
-
var buttonAriaLabel = (_ref12 = (_ref13 = title !== null && title !== void 0 ? title : ariaLabel) !== null && _ref13 !== void 0 ? _ref13 : this.state.ariaLabelledByContent) !== null && _ref12 !== void 0 ? _ref12 : '';
|
160
|
-
var buttonProps = {
|
161
|
-
type: 'button',
|
162
|
-
tag: 'button',
|
163
|
-
disabled: disabled,
|
164
|
-
'use:theme': useTheme,
|
165
|
-
ref: this.containerRef,
|
166
|
-
'aria-busy': loading,
|
167
|
-
'aria-disabled': disabled,
|
168
|
-
__excludeProps: ['title']
|
169
|
-
};
|
170
|
-
var hintProps = {
|
171
|
-
title: buttonAriaLabel,
|
172
|
-
timeout: [250, 50],
|
173
|
-
placement: hintPlacement,
|
174
|
-
theme: theme === 'invert' ? 'invert' : undefined,
|
175
|
-
__excludeProps: []
|
176
|
-
};
|
177
|
-
return /*#__PURE__*/_react["default"].createElement(_neighborLocation["default"].Detect, {
|
178
|
-
neighborLocation: neighborLocation
|
179
|
-
}, function (neighborLocation) {
|
180
|
-
var _ref7;
|
181
|
-
var children = (_ref7 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(SInner, _ref7.cn("SInner", {
|
182
|
-
"tag": 'span',
|
183
|
-
"loading": loading
|
184
|
-
}), AddonLeft ? /*#__PURE__*/_react["default"].createElement(Button.Addon, null, /*#__PURE__*/_react["default"].createElement(AddonLeft, _ref7.cn("AddonLeft", {}))) : null, (0, _addonTextChildren["default"])(Children, Button.Text, Button.Addon), AddonRight ? /*#__PURE__*/_react["default"].createElement(Button.Addon, null, /*#__PURE__*/_react["default"].createElement(AddonRight, _ref7.cn("AddonRight", {}))) : null), loading && /*#__PURE__*/_react["default"].createElement(SSpin, _ref7.cn("SSpin", {
|
185
|
-
"tag": 'span'
|
186
|
-
}), /*#__PURE__*/_react["default"].createElement(_SpinButton["default"], _ref7.cn("SpinButton", {
|
187
|
-
"centered": true,
|
188
|
-
"size": size,
|
189
|
-
"theme": useTheme
|
190
|
-
})))));
|
191
|
-
buttonProps.neighborLocation = neighborLocation;
|
192
|
-
if (!hasChildren || title) {
|
193
|
-
return _this3.renderButtonWithHint({
|
194
|
-
buttonProps: buttonProps,
|
195
|
-
hintProps: hintProps,
|
196
|
-
children: children
|
197
|
-
});
|
198
|
-
}
|
199
|
-
return _this3.renderButton({
|
200
|
-
buttonProps: buttonProps,
|
201
|
-
children: children
|
202
|
-
});
|
203
|
-
});
|
204
|
-
}
|
205
|
-
}]);
|
206
|
-
return RootButton;
|
207
|
-
}(_core.Component);
|
208
|
-
(0, _defineProperty2["default"])(RootButton, "displayName", 'Button');
|
209
|
-
(0, _defineProperty2["default"])(RootButton, "enhance", [(0, _keyboardFocusEnhance["default"])()]);
|
210
|
-
(0, _defineProperty2["default"])(RootButton, "style", style);
|
211
|
-
(0, _defineProperty2["default"])(RootButton, "defaultProps", {
|
212
|
-
use: 'secondary',
|
213
|
-
size: 'm'
|
214
|
-
});
|
215
|
-
function Text(props) {
|
216
|
-
var _ref3 = arguments[0],
|
217
|
-
_ref8;
|
218
|
-
var SText = _flexBox.Box;
|
219
|
-
return _ref8 = (0, _core.sstyled)(props.styles), /*#__PURE__*/_react["default"].createElement(SText, _ref8.cn("SText", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
220
|
-
"tag": 'span'
|
221
|
-
}, _ref3))));
|
222
|
-
}
|
223
|
-
function Addon(props) {
|
224
|
-
var _ref4 = arguments[0],
|
225
|
-
_ref9;
|
226
|
-
var SAddon = _flexBox.Box;
|
227
|
-
return _ref9 = (0, _core.sstyled)(props.styles), /*#__PURE__*/_react["default"].createElement(SAddon, _ref9.cn("SAddon", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
228
|
-
"tag": 'span'
|
229
|
-
}, _ref4))));
|
230
|
-
}
|
231
|
-
var Button = (0, _core["default"])(RootButton, {
|
232
|
-
Text: Text,
|
233
|
-
Addon: Addon
|
234
|
-
});
|
235
|
-
var _default = Button;
|
236
|
-
exports["default"] = _default;
|
237
|
-
//# sourceMappingURL=Button.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Button.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_flexBox","_tooltip","_neighborLocation","_keyboardFocusEnhance","_addonTextChildren","_logger","_SpinButton","_hasLabels","style","_index","sstyled","insert","MAP_USE_DEFAULT_THEME","primary","secondary","tertiary","exports","RootButton","_Component","_inherits2","_super","_createSuper2","_this","_classCallCheck2","_len","arguments","length","args","Array","_key","call","apply","concat","_defineProperty2","_assertThisInitialized2","React","createRef","ariaLabelledByContent","_createClass2","key","value","getTextProps","size","asProps","getAddonProps","componentDidMount","_this2","process","env","NODE_ENV","logger","warn","containerRef","current","hasLabels","title","displayName","setTimeout","_document$getElementB","_document$getElementB2","setState","document","getElementById","textContent","renderButton","_ref10","_ref","_ref5","buttonProps","children","styles","SButton","Box","createElement","cn","_objectSpread2","assignProps","renderButtonWithHint","_ref11","_ref2","_ref6","hintProps","Hint","render","_ref12","_ref13","_this3","_this$asProps","use","_this$asProps$theme","theme","loading","_this$asProps$disable","disabled","neighborLocation","hasChildren","ariaLabel","Children","AddonLeft","addonLeft","AddonRight","addonRight","hintPlacement","useTheme","SInner","SSpin","buttonAriaLabel","state","type","tag","ref","__excludeProps","timeout","placement","undefined","Detect","_ref7","Fragment","Button","Addon","addonTextChildren","Text","Component","keyboardFocusEnhance","props","_ref3","arguments[0]","_ref8","SText","_ref4","_ref9","SAddon","createComponent","_default"],"sources":["../../src/Button.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport { Hint } from '@semcore/tooltip';\nimport NeighborLocation from '@semcore/neighbor-location';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport addonTextChildren from '@semcore/utils/lib/addonTextChildren';\nimport logger from '@semcore/utils/lib/logger';\nimport SpinButton from './SpinButton';\n\nimport style from './style/button.shadow.css';\nimport hasLabels from '@semcore/utils/lib/hasLabels';\n\nexport const MAP_USE_DEFAULT_THEME = {\n primary: 'info',\n secondary: 'muted',\n tertiary: 'info',\n};\n\nclass RootButton extends Component {\n static displayName = 'Button';\n static enhance = [keyboardFocusEnhance()];\n static style = style;\n static defaultProps = {\n use: 'secondary',\n size: 'm',\n };\n containerRef = React.createRef();\n\n state = {\n ariaLabelledByContent: null,\n };\n\n getTextProps() {\n const { size } = this.asProps;\n return {\n size,\n };\n }\n\n getAddonProps() {\n const { size } = this.asProps;\n return {\n size,\n };\n }\n\n componentDidMount() {\n if (process.env.NODE_ENV !== 'production') {\n logger.warn(\n this.containerRef.current && !hasLabels(this.containerRef.current) && !this.asProps.title,\n `'title' or 'aria-label' or 'aria-labelledby' are required props for buttons without text content`,\n this.asProps['data-ui-name'] || RootButton.displayName,\n );\n }\n\n if (this.asProps['aria-labelledby']) {\n setTimeout(() => {\n this.setState({\n ariaLabelledByContent:\n document.getElementById(this.asProps['aria-labelledby'])?.textContent ?? '',\n });\n }, 0);\n }\n }\n\n renderButton({ buttonProps, children }) {\n const { styles } = this.asProps;\n const SButton = Root;\n\n return sstyled(styles)(\n <SButton render={Box} {...buttonProps}>\n {children}\n </SButton>,\n );\n }\n\n renderButtonWithHint({ buttonProps, children, hintProps }) {\n const { styles } = this.asProps;\n const SButton = Root;\n\n return sstyled(styles)(\n <SButton render={Hint} {...buttonProps} {...hintProps}>\n {children}\n </SButton>,\n );\n }\n\n render() {\n const {\n styles,\n use,\n theme = typeof use === 'string' && MAP_USE_DEFAULT_THEME[use],\n loading,\n disabled = loading,\n size,\n neighborLocation,\n children: hasChildren,\n title,\n ['aria-label']: ariaLabel,\n Children,\n addonLeft: AddonLeft,\n addonRight: AddonRight,\n hintPlacement,\n } = this.asProps;\n const useTheme = use && theme ? `${use}-${theme}` : false;\n const SInner = Box;\n const SSpin = Box;\n const buttonAriaLabel = title ?? ariaLabel ?? this.state.ariaLabelledByContent ?? '';\n\n const buttonProps = {\n type: 'button',\n tag: 'button',\n disabled,\n 'use:theme': useTheme,\n ref: this.containerRef,\n 'aria-busy': loading,\n 'aria-disabled': disabled,\n __excludeProps: ['title'],\n };\n\n const hintProps = {\n title: buttonAriaLabel,\n timeout: [250, 50],\n placement: hintPlacement,\n theme: theme === 'invert' ? 'invert' : undefined,\n __excludeProps: [],\n };\n\n return (\n <NeighborLocation.Detect neighborLocation={neighborLocation}>\n {(neighborLocation) => {\n const children = sstyled(styles)(\n <>\n <SInner tag='span' loading={loading}>\n {AddonLeft ? (\n <Button.Addon>\n <AddonLeft />\n </Button.Addon>\n ) : null}\n {addonTextChildren(Children, Button.Text, Button.Addon)}\n {AddonRight ? (\n <Button.Addon>\n <AddonRight />\n </Button.Addon>\n ) : null}\n </SInner>\n {loading && (\n <SSpin tag='span'>\n <SpinButton centered size={size} theme={useTheme} />\n </SSpin>\n )}\n </>,\n );\n buttonProps.neighborLocation = neighborLocation;\n\n if (!hasChildren || title) {\n return this.renderButtonWithHint({ buttonProps, hintProps, children });\n }\n\n return this.renderButton({ buttonProps, children });\n }}\n </NeighborLocation.Detect>\n );\n }\n}\n\nfunction Text(props) {\n const SText = Root;\n return sstyled(props.styles)(<SText render={Box} tag='span' />);\n}\n\nfunction Addon(props) {\n const SAddon = Root;\n return sstyled(props.styles)(<SAddon render={Box} tag='span' />);\n}\n\nconst Button = createComponent(RootButton, {\n Text,\n Addon,\n});\n\nexport default Button;\n"],"mappings":";;;;;;;;;;;;;;;;AACA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AADA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,qBAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,kBAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,OAAA,GAAAN,sBAAA,CAAAF,OA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A,IAAAK,KAAA,GAAAH,YAAA;IAAAI,KAAA;EACpB,IAAMC,MAAM,GACiC3D,YAAG;EAAhD,OAAA0D,KAAA,GAAO,IAAAxH,aAAO,EAACkH,KAAK,CAACtD,MAAM,CAAC,eAACxE,MAAA,YAAA2E,aAAA,CAAC0D,MAAM,EAAAD,KAAA,CAAAxD,EAAA,eAAAC,cAAA,qBAAAhF,KAAA,CAAAiF,WAAA;IAAA,OAAkB;EAAM,GAAAqD,KAAA,IAAG;AACjE;AAEA,IAAMX,MAAM,GAAG,IAAAc,gBAAe,EAACnH,UAAU,EAAE;EACzCwG,IAAI,EAAJA,IAAI;EACJF,KAAK,EAALA;AACF,CAAC,CAAC;AAAC,IAAAc,QAAA,GAEYf,MAAM;AAAAtG,OAAA,cAAAqH,QAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"SpinButton.js","names":["_react","_interopRequireDefault","require","_spin","_excluded","SPIN_SIZE_MAP","xl","l","m","s","exports","SpinButton","_ref","theme","size","others","_objectWithoutProperties2","createElement","_extends2"],"sources":["../../src/SpinButton.jsx"],"sourcesContent":["import React from 'react';\nimport Spin from '@semcore/spin';\n\nexport const SPIN_SIZE_MAP = {\n xl: 'm',\n l: 's',\n m: 'xs',\n s: 'xxs',\n};\n\nexport default function SpinButton({ theme, size, ...others }) {\n return (\n <Spin\n size={typeof size === 'string' ? SPIN_SIZE_MAP[size] : size}\n theme='currentColor'\n {...others}\n />\n );\n}\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAiC,IAAAE,SAAA;AAE1B,IAAMC,aAAa,GAAG;EAC3BC,EAAE,EAAE,GAAG;EACPC,CAAC,EAAE,GAAG;EACNC,CAAC,EAAE,IAAI;EACPC,CAAC,EAAE;AACL,CAAC;AAACC,OAAA,CAAAL,aAAA,GAAAA,aAAA;AAEa,SAASM,UAAUA,CAAAC,IAAA,EAA6B;EAAA,IAA1BC,KAAK,GAAAD,IAAA,CAALC,KAAK;IAAEC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IAAKC,MAAM,OAAAC,yBAAA,aAAAJ,IAAA,EAAAR,SAAA;EACzD,oBACEJ,MAAA,YAAAiB,aAAA,CAACd,KAAA,WAAI,MAAAe,SAAA;IACHJ,IAAI,EAAE,OAAOA,IAAI,KAAK,QAAQ,GAAGT,aAAa,CAACS,IAAI,CAAC,GAAGA,IAAK;IAC5DD,KAAK,EAAC;EAAc,GAChBE,MAAM,EACV;AAEN"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React from 'react';\nimport { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { KeyboardFocusProps } from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport { BoxProps } from '@semcore/flex-box';\nimport { NeighborItemProps } from '@semcore/neighbor-location';\nimport { TooltipHintProps } from '@semcore/tooltip';\n\nexport type ButtonSize = 'l' | 'm';\n\n/** @deprecated */\nexport interface IButtonProps extends ButtonProps, UnknownProperties {}\nexport type ButtonProps = BoxProps &\n NeighborItemProps &\n KeyboardFocusProps & {\n /**\n * Button type\n * @default secondary\n */\n use?: 'primary' | 'secondary' | 'tertiary';\n /** Button theme */\n theme?: 'info' | 'success' | 'warning' | 'danger' | 'muted' | 'invert';\n /** Button activity state */\n active?: boolean;\n /**\n * Button size\n * @default m\n */\n size?: ButtonSize;\n /** Disabled button state */\n disabled?: boolean;\n /** Loading button state */\n loading?: boolean;\n /** Tag for the left Addon */\n addonLeft?: React.ElementType;\n /** Tag for the right Addon */\n addonRight?: React.ElementType;\n /**\n * Placement for hint\n * @default top\n */\n hintPlacement?: TooltipHintProps['placement'];\n };\n\n/** @deprecated */\nexport interface IButtonTextProps extends ButtonTextProps, UnknownProperties {}\nexport type ButtonTextProps = BoxProps & {\n size?: ButtonSize;\n};\n\n/** @deprecated */\nexport interface IButtonAddonProps extends ButtonAddonProps, UnknownProperties {}\nexport type ButtonAddonProps = BoxProps & {\n size?: ButtonSize;\n};\n\n/** @deprecated */\nexport interface IButtonContext extends ButtonContext, UnknownProperties {}\nexport type ButtonContext = {\n getTextProps: PropGetterFn;\n getAddonProps: PropGetterFn;\n};\n\ndeclare const Button: Intergalactic.Component<'button', ButtonProps, ButtonContext> & {\n Text: Intergalactic.Component<'span', ButtonTextProps>;\n Addon: Intergalactic.Component<'span', ButtonAddonProps>;\n};\n\nexport default Button;\n"],"mappings":""}
|