intergalactic 15.52.0-prerelease.0-prerelease-3f2a94a7 → 15.53.0-prerelease-77cebec3
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 +31 -4
- package/accordion/lib/cjs/Accordion.js +7 -6
- package/accordion/lib/cjs/Accordion.js.map +1 -1
- package/accordion/lib/cjs/style/accordion.shadow.css +2 -2
- package/accordion/lib/es6/Accordion.js +7 -6
- package/accordion/lib/es6/Accordion.js.map +1 -1
- package/accordion/lib/es6/style/accordion.shadow.css +2 -2
- package/animation/lib/cjs/Animation.js +11 -11
- package/animation/lib/cjs/Collapse.js +28 -28
- package/animation/lib/cjs/FadeInOut.js +28 -28
- package/animation/lib/cjs/Scale.js +28 -28
- package/animation/lib/cjs/Slide.js +28 -28
- package/animation/lib/cjs/Transform.js +28 -28
- package/animation/lib/es6/Animation.js +11 -11
- package/animation/lib/es6/Collapse.js +28 -28
- package/animation/lib/es6/FadeInOut.js +28 -28
- package/animation/lib/es6/Scale.js +28 -28
- package/animation/lib/es6/Slide.js +28 -28
- package/animation/lib/es6/Transform.js +28 -28
- package/badge/lib/cjs/Badge.js +6 -6
- package/badge/lib/es6/Badge.js +6 -6
- package/base-trigger/lib/cjs/BaseTrigger.js +18 -18
- package/base-trigger/lib/cjs/ButtonTrigger.js +3 -3
- package/base-trigger/lib/cjs/FilterTrigger.js +7 -7
- package/base-trigger/lib/cjs/LinkTrigger.js +12 -12
- package/base-trigger/lib/es6/BaseTrigger.js +18 -18
- package/base-trigger/lib/es6/ButtonTrigger.js +3 -3
- package/base-trigger/lib/es6/FilterTrigger.js +7 -7
- package/base-trigger/lib/es6/LinkTrigger.js +12 -12
- package/breadcrumbs/lib/cjs/Breadcrumbs.js +6 -6
- package/breadcrumbs/lib/es6/Breadcrumbs.js +6 -6
- package/button/lib/cjs/Button.js +26 -26
- package/button/lib/es6/Button.js +26 -26
- package/card/lib/cjs/Card.js +8 -8
- package/card/lib/es6/Card.js +8 -8
- package/carousel/lib/cjs/Carousel.js +16 -16
- package/carousel/lib/es6/Carousel.js +16 -16
- package/checkbox/lib/cjs/Checkbox.js +16 -16
- package/checkbox/lib/es6/Checkbox.js +16 -16
- package/color-picker/lib/cjs/ColorPicker.js +23 -23
- package/color-picker/lib/cjs/PaletteManager.js +23 -23
- package/color-picker/lib/cjs/components/InputColor.js +23 -23
- package/color-picker/lib/es6/ColorPicker.js +23 -23
- package/color-picker/lib/es6/PaletteManager.js +23 -23
- package/color-picker/lib/es6/components/InputColor.js +23 -23
- package/components.json +12 -12
- package/counter/lib/cjs/Counter.js +10 -10
- package/counter/lib/es6/Counter.js +10 -10
- package/d3-chart/Pattern.d.ts +336 -0
- package/d3-chart/Plot.d.ts +4 -0
- package/d3-chart/RadialTree.d.ts +7 -2
- package/d3-chart/component/Chart/AbstractChart.type.d.ts +3 -0
- package/d3-chart/component/ChartLegend/BaseLegend.type.d.ts +3 -0
- package/d3-chart/component/ChartLegend/LegendItem/LegendItem.type.d.ts +7 -1
- package/d3-chart/index.d.ts +3 -0
- package/d3-chart/lib/cjs/Area.js +25 -13
- package/d3-chart/lib/cjs/Area.js.map +1 -1
- package/d3-chart/lib/cjs/Axis.js +14 -14
- package/d3-chart/lib/cjs/Bar.js +23 -12
- package/d3-chart/lib/cjs/Bar.js.map +1 -1
- package/d3-chart/lib/cjs/Bubble.js +25 -13
- package/d3-chart/lib/cjs/Bubble.js.map +1 -1
- package/d3-chart/lib/cjs/Donut.js +28 -12
- package/d3-chart/lib/cjs/Donut.js.map +1 -1
- package/d3-chart/lib/cjs/Dots.js +55 -28
- package/d3-chart/lib/cjs/Dots.js.map +1 -1
- package/d3-chart/lib/cjs/GroupBar.js +4 -2
- package/d3-chart/lib/cjs/GroupBar.js.map +1 -1
- package/d3-chart/lib/cjs/HorizontalBar.js +23 -12
- package/d3-chart/lib/cjs/HorizontalBar.js.map +1 -1
- package/d3-chart/lib/cjs/Hover.js +9 -6
- package/d3-chart/lib/cjs/Hover.js.map +1 -1
- package/d3-chart/lib/cjs/Line.js +23 -15
- package/d3-chart/lib/cjs/Line.js.map +1 -1
- package/d3-chart/lib/cjs/Pattern.js +540 -0
- package/d3-chart/lib/cjs/Pattern.js.map +1 -0
- package/d3-chart/lib/cjs/Plot.js +7 -5
- package/d3-chart/lib/cjs/Plot.js.map +1 -1
- package/d3-chart/lib/cjs/Radar.js +126 -83
- package/d3-chart/lib/cjs/Radar.js.map +1 -1
- package/d3-chart/lib/cjs/RadialTree.js +126 -100
- package/d3-chart/lib/cjs/RadialTree.js.map +1 -1
- package/d3-chart/lib/cjs/ReferenceLine.js +9 -9
- package/d3-chart/lib/cjs/ScatterPlot.js +22 -10
- package/d3-chart/lib/cjs/ScatterPlot.js.map +1 -1
- package/d3-chart/lib/cjs/StackBar.js +8 -4
- package/d3-chart/lib/cjs/StackBar.js.map +1 -1
- package/d3-chart/lib/cjs/StackedArea.js +4 -1
- package/d3-chart/lib/cjs/StackedArea.js.map +1 -1
- package/d3-chart/lib/cjs/Tooltip.js +21 -11
- package/d3-chart/lib/cjs/Tooltip.js.map +1 -1
- package/d3-chart/lib/cjs/Venn.js +28 -12
- package/d3-chart/lib/cjs/Venn.js.map +1 -1
- package/d3-chart/lib/cjs/a11y/PlotA11yModule.js +2 -2
- package/d3-chart/lib/cjs/a11y/PlotA11yView.js +2 -2
- package/d3-chart/lib/cjs/component/Chart/AbstractChart.js +7 -3
- package/d3-chart/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/BaseLegend.js +4 -2
- package/d3-chart/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/BaseLegend.type.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +80 -53
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/legend-item.shadow.css +17 -3
- package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/d3-chart/lib/cjs/index.js +19 -0
- package/d3-chart/lib/cjs/index.js.map +1 -1
- package/d3-chart/lib/cjs/style/area.shadow.css +6 -1
- package/d3-chart/lib/cjs/style/bar.shadow.css +7 -1
- package/d3-chart/lib/cjs/style/bubble.shadow.css +8 -1
- package/d3-chart/lib/cjs/style/donut.shadow.css +7 -1
- package/d3-chart/lib/cjs/style/dot.shadow.css +2 -2
- package/d3-chart/lib/cjs/style/radar.shadow.css +7 -1
- package/d3-chart/lib/cjs/style/radial-tree.shadow.css +5 -0
- package/d3-chart/lib/cjs/style/scatterplot.shadow.css +8 -1
- package/d3-chart/lib/cjs/style/tooltip.shadow.css +6 -6
- package/d3-chart/lib/cjs/style/venn.shadow.css +11 -0
- package/d3-chart/lib/cjs/types/Plot.d.js.map +1 -1
- package/d3-chart/lib/cjs/types/index.d.js +12 -0
- package/d3-chart/lib/cjs/types/index.d.js.map +1 -1
- package/d3-chart/lib/es6/Area.js +25 -13
- package/d3-chart/lib/es6/Area.js.map +1 -1
- package/d3-chart/lib/es6/Axis.js +14 -14
- package/d3-chart/lib/es6/Bar.js +23 -12
- package/d3-chart/lib/es6/Bar.js.map +1 -1
- package/d3-chart/lib/es6/Bubble.js +25 -13
- package/d3-chart/lib/es6/Bubble.js.map +1 -1
- package/d3-chart/lib/es6/Donut.js +28 -12
- package/d3-chart/lib/es6/Donut.js.map +1 -1
- package/d3-chart/lib/es6/Dots.js +56 -29
- package/d3-chart/lib/es6/Dots.js.map +1 -1
- package/d3-chart/lib/es6/GroupBar.js +4 -2
- package/d3-chart/lib/es6/GroupBar.js.map +1 -1
- package/d3-chart/lib/es6/HorizontalBar.js +23 -12
- package/d3-chart/lib/es6/HorizontalBar.js.map +1 -1
- package/d3-chart/lib/es6/Hover.js +9 -6
- package/d3-chart/lib/es6/Hover.js.map +1 -1
- package/d3-chart/lib/es6/Line.js +24 -16
- package/d3-chart/lib/es6/Line.js.map +1 -1
- package/d3-chart/lib/es6/Pattern.js +534 -0
- package/d3-chart/lib/es6/Pattern.js.map +1 -0
- package/d3-chart/lib/es6/Plot.js +7 -5
- package/d3-chart/lib/es6/Plot.js.map +1 -1
- package/d3-chart/lib/es6/Radar.js +126 -83
- package/d3-chart/lib/es6/Radar.js.map +1 -1
- package/d3-chart/lib/es6/RadialTree.js +127 -101
- package/d3-chart/lib/es6/RadialTree.js.map +1 -1
- package/d3-chart/lib/es6/ReferenceLine.js +9 -9
- package/d3-chart/lib/es6/ScatterPlot.js +22 -10
- package/d3-chart/lib/es6/ScatterPlot.js.map +1 -1
- package/d3-chart/lib/es6/StackBar.js +8 -4
- package/d3-chart/lib/es6/StackBar.js.map +1 -1
- package/d3-chart/lib/es6/StackedArea.js +4 -1
- package/d3-chart/lib/es6/StackedArea.js.map +1 -1
- package/d3-chart/lib/es6/Tooltip.js +22 -11
- package/d3-chart/lib/es6/Tooltip.js.map +1 -1
- package/d3-chart/lib/es6/Venn.js +28 -12
- package/d3-chart/lib/es6/Venn.js.map +1 -1
- package/d3-chart/lib/es6/a11y/PlotA11yModule.js +2 -2
- package/d3-chart/lib/es6/a11y/PlotA11yView.js +2 -2
- package/d3-chart/lib/es6/component/Chart/AbstractChart.js +7 -3
- package/d3-chart/lib/es6/component/Chart/AbstractChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/BaseLegend.js +4 -2
- package/d3-chart/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/BaseLegend.type.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +80 -53
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/legend-item.shadow.css +17 -3
- package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/d3-chart/lib/es6/index.js +1 -0
- package/d3-chart/lib/es6/index.js.map +1 -1
- package/d3-chart/lib/es6/style/area.shadow.css +6 -1
- package/d3-chart/lib/es6/style/bar.shadow.css +7 -1
- package/d3-chart/lib/es6/style/bubble.shadow.css +8 -1
- package/d3-chart/lib/es6/style/donut.shadow.css +7 -1
- package/d3-chart/lib/es6/style/dot.shadow.css +2 -2
- package/d3-chart/lib/es6/style/radar.shadow.css +7 -1
- package/d3-chart/lib/es6/style/radial-tree.shadow.css +5 -0
- package/d3-chart/lib/es6/style/scatterplot.shadow.css +8 -1
- package/d3-chart/lib/es6/style/tooltip.shadow.css +6 -6
- package/d3-chart/lib/es6/style/venn.shadow.css +11 -0
- package/d3-chart/lib/es6/types/Plot.d.js.map +1 -1
- package/d3-chart/lib/es6/types/index.d.js +3 -0
- package/d3-chart/lib/es6/types/index.d.js.map +1 -1
- package/d3-chart/lib/types/Pattern.d.ts +336 -0
- package/d3-chart/lib/types/Plot.d.ts +4 -0
- package/d3-chart/lib/types/RadialTree.d.ts +7 -2
- package/d3-chart/lib/types/component/Chart/AbstractChart.type.d.ts +3 -0
- package/d3-chart/lib/types/component/ChartLegend/BaseLegend.type.d.ts +3 -0
- package/d3-chart/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +7 -1
- package/d3-chart/lib/types/index.d.ts +3 -0
- package/data-table/lib/cjs/Body.js +4 -4
- package/data-table/lib/cjs/DataTable.js +41 -41
- package/data-table/lib/cjs/Head.js +4 -4
- package/data-table/lib/es6/Body.js +4 -4
- package/data-table/lib/es6/DataTable.js +41 -41
- package/data-table/lib/es6/Head.js +4 -4
- package/date-picker/lib/cjs/components/Calendar.js +21 -21
- package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js +26 -26
- package/date-picker/lib/cjs/components/InputTrigger.js +26 -26
- package/date-picker/lib/cjs/components/PickerAbstract.js +26 -26
- package/date-picker/lib/cjs/components/RangePickerAbstract.js +34 -30
- package/date-picker/lib/cjs/components/RangePickerAbstract.js.map +1 -1
- package/date-picker/lib/es6/components/Calendar.js +21 -21
- package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js +26 -26
- package/date-picker/lib/es6/components/InputTrigger.js +26 -26
- package/date-picker/lib/es6/components/PickerAbstract.js +26 -26
- package/date-picker/lib/es6/components/RangePickerAbstract.js +34 -30
- package/date-picker/lib/es6/components/RangePickerAbstract.js.map +1 -1
- package/divider/lib/cjs/Divider.js +9 -9
- package/divider/lib/es6/Divider.js +9 -9
- package/dot/lib/cjs/Dot.js +10 -10
- package/dot/lib/es6/Dot.js +10 -10
- package/drag-and-drop/index.d.ts +13 -2
- package/drag-and-drop/lib/cjs/DragAndDrop.js +108 -56
- package/drag-and-drop/lib/cjs/DragAndDrop.js.map +1 -1
- package/drag-and-drop/lib/cjs/index.d.js.map +1 -1
- package/drag-and-drop/lib/cjs/translations/de.json +5 -0
- package/drag-and-drop/lib/cjs/translations/en.json +5 -0
- package/drag-and-drop/lib/cjs/translations/es.json +5 -0
- package/drag-and-drop/lib/cjs/translations/fr.json +5 -0
- package/drag-and-drop/lib/cjs/translations/it.json +5 -0
- package/drag-and-drop/lib/cjs/translations/ja.json +5 -0
- package/drag-and-drop/lib/cjs/translations/ko.json +5 -0
- package/drag-and-drop/lib/cjs/translations/nl.json +5 -0
- package/drag-and-drop/lib/cjs/translations/pl.json +5 -0
- package/drag-and-drop/lib/cjs/translations/pt.json +5 -0
- package/drag-and-drop/lib/cjs/translations/sv.json +5 -0
- package/drag-and-drop/lib/cjs/translations/tr.json +5 -0
- package/drag-and-drop/lib/cjs/translations/vi.json +5 -0
- package/drag-and-drop/lib/cjs/translations/zh.json +5 -0
- package/drag-and-drop/lib/es6/DragAndDrop.js +108 -56
- package/drag-and-drop/lib/es6/DragAndDrop.js.map +1 -1
- package/drag-and-drop/lib/es6/index.d.js.map +1 -1
- package/drag-and-drop/lib/es6/translations/de.json +5 -0
- package/drag-and-drop/lib/es6/translations/en.json +5 -0
- package/drag-and-drop/lib/es6/translations/es.json +5 -0
- package/drag-and-drop/lib/es6/translations/fr.json +5 -0
- package/drag-and-drop/lib/es6/translations/it.json +5 -0
- package/drag-and-drop/lib/es6/translations/ja.json +5 -0
- package/drag-and-drop/lib/es6/translations/ko.json +5 -0
- package/drag-and-drop/lib/es6/translations/nl.json +5 -0
- package/drag-and-drop/lib/es6/translations/pl.json +5 -0
- package/drag-and-drop/lib/es6/translations/pt.json +5 -0
- package/drag-and-drop/lib/es6/translations/sv.json +5 -0
- package/drag-and-drop/lib/es6/translations/tr.json +5 -0
- package/drag-and-drop/lib/es6/translations/vi.json +5 -0
- package/drag-and-drop/lib/es6/translations/zh.json +5 -0
- package/drag-and-drop/lib/types/index.d.ts +13 -2
- package/dropdown/lib/cjs/Dropdown.js +2 -2
- package/dropdown/lib/es6/Dropdown.js +2 -2
- package/dropdown-menu/lib/cjs/DropdownMenu.js +12 -12
- package/dropdown-menu/lib/cjs/styleScrollArea.js +6 -6
- package/dropdown-menu/lib/es6/DropdownMenu.js +12 -12
- package/dropdown-menu/lib/es6/styleScrollArea.js +6 -6
- package/ellipsis/lib/cjs/Ellipsis.js +10 -10
- package/ellipsis/lib/es6/Ellipsis.js +10 -10
- package/errors/lib/cjs/Error.js +9 -9
- package/errors/lib/es6/Error.js +9 -9
- package/feature-popover/lib/cjs/FeaturePopover.js +10 -10
- package/feature-popover/lib/es6/FeaturePopover.js +10 -10
- package/feedback-form/lib/cjs/FeedbackForm.js +7 -7
- package/feedback-form/lib/es6/FeedbackForm.js +7 -7
- package/flags/lib/cjs/Flags.js +3 -3
- package/flags/lib/es6/Flags.js +3 -3
- package/flags/lib/sprites/sprite@1x.css +256 -256
- package/flags/lib/sprites/sprite@2x.css +257 -257
- package/flex-box/lib/cjs/Box/useBox.js +3 -3
- package/flex-box/lib/cjs/Flex/useFlex.js +3 -3
- package/flex-box/lib/es6/Box/useBox.js +3 -3
- package/flex-box/lib/es6/Flex/useFlex.js +3 -3
- package/format-text/lib/cjs/FormatText.js +5 -5
- package/format-text/lib/es6/FormatText.js +5 -5
- package/fullscreen-modal/lib/cjs/FullscreenModal.js +13 -13
- package/fullscreen-modal/lib/es6/FullscreenModal.js +13 -13
- package/grid/lib/cjs/Grid.js +114 -114
- package/grid/lib/es6/Grid.js +114 -114
- package/icon/color/Confluence/l/index.js +4 -4
- package/icon/color/Confluence/l/index.mjs +4 -4
- package/icon/color/Confluence/m/index.js +4 -4
- package/icon/color/Confluence/m/index.mjs +4 -4
- package/icon/color/MicrosoftOffice/l/index.js +10 -10
- package/icon/color/MicrosoftOffice/l/index.mjs +10 -10
- package/icon/color/MicrosoftOffice/m/index.js +10 -10
- package/icon/color/MicrosoftOffice/m/index.mjs +10 -10
- package/icon/lib/cjs/Icon.js +5 -5
- package/icon/lib/es6/Icon.js +5 -5
- package/icon/pay/Discover/l/index.js +1 -1
- package/icon/pay/Discover/l/index.mjs +1 -1
- package/icon/pay/Discover/m/index.js +1 -1
- package/icon/pay/Discover/m/index.mjs +1 -1
- package/icon/pay/JCB/l/index.js +10 -10
- package/icon/pay/JCB/l/index.mjs +10 -10
- package/icon/pay/JCB/m/index.js +10 -10
- package/icon/pay/JCB/m/index.mjs +10 -10
- package/icon/pay/Visa/l/index.js +2 -2
- package/icon/pay/Visa/l/index.mjs +2 -2
- package/icon/pay/Visa/m/index.js +2 -2
- package/icon/pay/Visa/m/index.mjs +2 -2
- package/illustration/lib/cjs/index.js +1 -1
- package/illustration/lib/es6/index.js +1 -1
- package/inline-edit/lib/cjs/InlineEdit.js +4 -4
- package/inline-edit/lib/es6/InlineEdit.js +4 -4
- package/inline-input/lib/cjs/InlineInput.js +18 -18
- package/inline-input/lib/es6/InlineInput.js +18 -18
- package/input/lib/cjs/Input.js +17 -17
- package/input/lib/es6/Input.js +17 -17
- package/input-mask/lib/cjs/InputMask.js +6 -6
- package/input-mask/lib/es6/InputMask.js +6 -6
- package/input-number/lib/cjs/InputNumber.js +9 -9
- package/input-number/lib/es6/InputNumber.js +9 -9
- package/input-tags/lib/cjs/InputTags.js +12 -12
- package/input-tags/lib/es6/InputTags.js +12 -12
- package/link/lib/cjs/Link.js +12 -12
- package/link/lib/es6/Link.js +12 -12
- package/mini-chart/lib/cjs/component/score/Donut.js +9 -9
- package/mini-chart/lib/cjs/component/score/Line.js +17 -17
- package/mini-chart/lib/cjs/component/trend/Bar.js +7 -7
- package/mini-chart/lib/cjs/component/trend/Line.js +7 -7
- package/mini-chart/lib/es6/component/score/Donut.js +9 -9
- package/mini-chart/lib/es6/component/score/Line.js +17 -17
- package/mini-chart/lib/es6/component/trend/Bar.js +7 -7
- package/mini-chart/lib/es6/component/trend/Line.js +7 -7
- package/modal/lib/cjs/Modal.js +7 -7
- package/modal/lib/es6/Modal.js +7 -7
- package/notice/lib/cjs/Notice.js +13 -13
- package/notice/lib/es6/Notice.js +13 -13
- package/notice-bubble/lib/cjs/NoticeBubble.js +12 -12
- package/notice-bubble/lib/es6/NoticeBubble.js +12 -12
- package/notice-global/lib/cjs/NoticeGlobal.js +11 -11
- package/notice-global/lib/es6/NoticeGlobal.js +11 -11
- package/package.json +2 -2
- package/pagination/lib/cjs/Pagination.js +10 -10
- package/pagination/lib/es6/Pagination.js +10 -10
- package/pills/lib/cjs/Pills.js +44 -57
- package/pills/lib/cjs/Pills.js.map +1 -1
- package/pills/lib/cjs/style/pills.shadow.css +3 -9
- package/pills/lib/es6/Pills.js +44 -57
- package/pills/lib/es6/Pills.js.map +1 -1
- package/pills/lib/es6/style/pills.shadow.css +3 -9
- package/popper/lib/cjs/Popper.js +6 -6
- package/popper/lib/es6/Popper.js +6 -6
- package/product-head/lib/cjs/Info.js +4 -4
- package/product-head/lib/cjs/ProductHead.js +5 -5
- package/product-head/lib/cjs/Title.js +4 -4
- package/product-head/lib/es6/Info.js +4 -4
- package/product-head/lib/es6/ProductHead.js +5 -5
- package/product-head/lib/es6/Title.js +4 -4
- package/progress-bar/lib/cjs/ProgressBar.js +15 -15
- package/progress-bar/lib/es6/ProgressBar.js +15 -15
- package/radio/lib/cjs/Radio.js +14 -14
- package/radio/lib/es6/Radio.js +14 -14
- package/scroll-area/lib/cjs/ScrollArea.js +9 -9
- package/scroll-area/lib/cjs/ScrollBar.js +5 -5
- package/scroll-area/lib/es6/ScrollArea.js +9 -9
- package/scroll-area/lib/es6/ScrollBar.js +5 -5
- package/select/lib/cjs/InputSearch.js +6 -6
- package/select/lib/cjs/Select.js +7 -7
- package/select/lib/es6/InputSearch.js +6 -6
- package/select/lib/es6/Select.js +7 -7
- package/side-panel/lib/cjs/SidePanel.js +15 -15
- package/side-panel/lib/es6/SidePanel.js +15 -15
- package/skeleton/lib/cjs/Charts/Area.js +9 -9
- package/skeleton/lib/cjs/Charts/Bar.js +9 -9
- package/skeleton/lib/cjs/Charts/Bubble.js +9 -9
- package/skeleton/lib/cjs/Charts/Donut.js +9 -9
- package/skeleton/lib/cjs/Charts/Histogram.js +9 -9
- package/skeleton/lib/cjs/Charts/Line.js +9 -9
- package/skeleton/lib/cjs/Charts/RadialTree.js +9 -9
- package/skeleton/lib/cjs/Charts/ScatterPlot.js +9 -9
- package/skeleton/lib/cjs/Charts/Venn.js +9 -9
- package/skeleton/lib/cjs/Skeleton.js +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/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/slider/lib/cjs/Slider.js +7 -7
- package/slider/lib/es6/Slider.js +7 -7
- package/spin/lib/cjs/Spin.js +13 -13
- package/spin/lib/es6/Spin.js +13 -13
- package/spin-container/lib/cjs/SpinContainer.js +8 -8
- package/spin-container/lib/es6/SpinContainer.js +8 -8
- package/sticky/lib/cjs/Sticky.js +2 -2
- package/sticky/lib/es6/Sticky.js +2 -2
- package/switch/lib/cjs/Switch.js +21 -21
- package/switch/lib/es6/Switch.js +21 -21
- package/tab-line/lib/cjs/TabLine.js +13 -13
- package/tab-line/lib/es6/TabLine.js +13 -13
- package/tab-panel/lib/cjs/TabPanel.js +8 -8
- package/tab-panel/lib/es6/TabPanel.js +8 -8
- package/tag/lib/cjs/Tag.js +19 -19
- package/tag/lib/es6/Tag.js +19 -19
- package/textarea/lib/cjs/Textarea.js +8 -8
- package/textarea/lib/es6/Textarea.js +8 -8
- package/time-picker/lib/cjs/TimePicker.js +12 -12
- package/time-picker/lib/es6/TimePicker.js +12 -12
- package/tooltip/lib/cjs/Tooltip.js +6 -6
- package/tooltip/lib/es6/Tooltip.js +6 -6
- package/typography/lib/cjs/Blockquote.js +4 -4
- package/typography/lib/cjs/Hint.js +7 -7
- package/typography/lib/cjs/List.js +5 -5
- package/typography/lib/cjs/Text.js +34 -34
- package/typography/lib/es6/Blockquote.js +4 -4
- package/typography/lib/es6/Hint.js +7 -7
- package/typography/lib/es6/List.js +5 -5
- package/typography/lib/es6/Text.js +34 -34
- package/utils/lib/components/invalid-state-pattern/InvalidStatePattern.js +2 -2
- package/utils/lib/components/invalid-state-pattern/InvalidStatePattern.mjs +2 -2
- package/utils/lib/enhances/a11yEnhance.d.ts +9 -3
- package/utils/lib/enhances/a11yEnhance.js +11 -11
- package/utils/lib/enhances/a11yEnhance.js.map +1 -1
- package/utils/lib/enhances/a11yEnhance.mjs +11 -11
- package/utils/lib/enhances/a11yEnhance.mjs.map +1 -1
- package/utils/lib/injectStyle.js +1 -1
- package/utils/lib/injectStyle.mjs +1 -1
- package/utils/lib/themes/auto.css +3 -3
- package/utils/lib/themes/dark.css +2 -2
- package/utils/lib/themes/dark.json +1 -1
- package/utils/lib/themes/default.css +1 -1
- package/utils/lib/themes/light.css +1 -1
- package/widget-empty/lib/cjs/WidgetEmpty.js +5 -5
- package/widget-empty/lib/es6/WidgetEmpty.js +5 -5
- package/wizard/lib/cjs/Wizard.js +11 -11
- package/wizard/lib/es6/Wizard.js +11 -11
@@ -11,40 +11,40 @@ var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _flexBox = require("intergalactic/flex-box");
|
12
12
|
var _useColorResolver = require("intergalactic/utils/lib/use/useColorResolver");
|
13
13
|
/*__reshadow-styles__:"./style/text.shadow.css"*/
|
14
|
-
var styles = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
15
|
-
"__SText": "
|
16
|
-
"_size_100": "
|
17
|
-
"_size_200": "
|
18
|
-
"_size_300": "
|
19
|
-
"_size_400": "
|
20
|
-
"_size_500": "
|
21
|
-
"_size_600": "
|
22
|
-
"_size_700": "
|
23
|
-
"_size_800": "
|
24
|
-
"_noWrap": "
|
25
|
-
"_medium": "
|
26
|
-
"_semibold": "
|
27
|
-
"_bold": "
|
28
|
-
"_italic": "
|
29
|
-
"_monospace": "
|
30
|
-
"_uppercase": "
|
31
|
-
"_lowercase": "
|
32
|
-
"_capitalize": "
|
33
|
-
"_decoration": "
|
34
|
-
"--decoration": "--
|
35
|
-
"_color": "
|
36
|
-
"--color": "--
|
37
|
-
"_fontSize": "
|
38
|
-
"--fontSize": "--
|
39
|
-
"_lineHeight": "
|
40
|
-
"--lineHeight": "--
|
41
|
-
"_fontWeight": "
|
42
|
-
"--fontWeight": "--
|
43
|
-
"_textAlign": "
|
44
|
-
"--textAlign": "--
|
45
|
-
"_use_primary": "
|
46
|
-
"_use_secondary": "
|
47
|
-
"_disabled": "
|
14
|
+
var styles = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SText_zatyq_gg_{padding:0;margin:0}.___SText_zatyq_gg_._size_100_zatyq_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%)}.___SText_zatyq_gg_._size_200_zatyq_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_zatyq_gg_._size_300_zatyq_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SText_zatyq_gg_._size_400_zatyq_gg_{font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%)}.___SText_zatyq_gg_._size_500_zatyq_gg_{font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%)}.___SText_zatyq_gg_._size_600_zatyq_gg_{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%)}.___SText_zatyq_gg_._size_700_zatyq_gg_{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%)}.___SText_zatyq_gg_._size_800_zatyq_gg_{font-size:var(--intergalactic-fs-800, 48px);line-height:var(--intergalactic-lh-800, 117%)}.___SText_zatyq_gg_.__noWrap_zatyq_gg_{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.___SText_zatyq_gg_.__medium_zatyq_gg_{font-weight:var(--intergalactic-medium, 500)}.___SText_zatyq_gg_.__semibold_zatyq_gg_{font-weight:var(--intergalactic-semi-bold, 600)}.___SText_zatyq_gg_.__bold_zatyq_gg_{font-weight:var(--intergalactic-bold, 700)}.___SText_zatyq_gg_.__italic_zatyq_gg_{font-style:italic}.___SText_zatyq_gg_.__monospace_zatyq_gg_{font-family:Consolas,\"Roboto Mono\",Menlo,Courier,monospace}.___SText_zatyq_gg_.__uppercase_zatyq_gg_{text-transform:uppercase}.___SText_zatyq_gg_.__lowercase_zatyq_gg_{text-transform:lowercase}.___SText_zatyq_gg_.__capitalize_zatyq_gg_{text-transform:capitalize}.___SText_zatyq_gg_.__decoration_zatyq_gg_{-webkit-text-decoration:var(--decoration_zatyq);text-decoration:var(--decoration_zatyq)}.___SText_zatyq_gg_.__color_zatyq_gg_{color:var(--color_zatyq)}.___SText_zatyq_gg_.__fontSize_zatyq_gg_{font-size:var(--fontSize_zatyq)}.___SText_zatyq_gg_.__lineHeight_zatyq_gg_{line-height:var(--lineHeight_zatyq)}.___SText_zatyq_gg_.__fontWeight_zatyq_gg_{font-weight:var(--fontWeight_zatyq)}.___SText_zatyq_gg_.__textAlign_zatyq_gg_{text-align:var(--textAlign_zatyq)}.___SText_zatyq_gg_._use_primary_zatyq_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SText_zatyq_gg_._use_secondary_zatyq_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SText_zatyq_gg_.__disabled_zatyq_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3)}" /*__inner_css_end__*/, "zatyq_gg_") /*__reshadow_css_end__*/, {
|
15
|
+
"__SText": "___SText_zatyq_gg_",
|
16
|
+
"_size_100": "_size_100_zatyq_gg_",
|
17
|
+
"_size_200": "_size_200_zatyq_gg_",
|
18
|
+
"_size_300": "_size_300_zatyq_gg_",
|
19
|
+
"_size_400": "_size_400_zatyq_gg_",
|
20
|
+
"_size_500": "_size_500_zatyq_gg_",
|
21
|
+
"_size_600": "_size_600_zatyq_gg_",
|
22
|
+
"_size_700": "_size_700_zatyq_gg_",
|
23
|
+
"_size_800": "_size_800_zatyq_gg_",
|
24
|
+
"_noWrap": "__noWrap_zatyq_gg_",
|
25
|
+
"_medium": "__medium_zatyq_gg_",
|
26
|
+
"_semibold": "__semibold_zatyq_gg_",
|
27
|
+
"_bold": "__bold_zatyq_gg_",
|
28
|
+
"_italic": "__italic_zatyq_gg_",
|
29
|
+
"_monospace": "__monospace_zatyq_gg_",
|
30
|
+
"_uppercase": "__uppercase_zatyq_gg_",
|
31
|
+
"_lowercase": "__lowercase_zatyq_gg_",
|
32
|
+
"_capitalize": "__capitalize_zatyq_gg_",
|
33
|
+
"_decoration": "__decoration_zatyq_gg_",
|
34
|
+
"--decoration": "--decoration_zatyq",
|
35
|
+
"_color": "__color_zatyq_gg_",
|
36
|
+
"--color": "--color_zatyq",
|
37
|
+
"_fontSize": "__fontSize_zatyq_gg_",
|
38
|
+
"--fontSize": "--fontSize_zatyq",
|
39
|
+
"_lineHeight": "__lineHeight_zatyq_gg_",
|
40
|
+
"--lineHeight": "--lineHeight_zatyq",
|
41
|
+
"_fontWeight": "__fontWeight_zatyq_gg_",
|
42
|
+
"--fontWeight": "--fontWeight_zatyq",
|
43
|
+
"_textAlign": "__textAlign_zatyq_gg_",
|
44
|
+
"--textAlign": "--textAlign_zatyq",
|
45
|
+
"_use_primary": "_use_primary_zatyq_gg_",
|
46
|
+
"_use_secondary": "_use_secondary_zatyq_gg_",
|
47
|
+
"_disabled": "__disabled_zatyq_gg_"
|
48
48
|
});
|
49
49
|
function getTextDecoration(underline, lineThrough) {
|
50
50
|
if (underline) {
|
@@ -6,10 +6,10 @@ import { createBaseComponent, Root, sstyled } from 'intergalactic/core';
|
|
6
6
|
import isNode from 'intergalactic/utils/lib/isNode';
|
7
7
|
import { Box } from 'intergalactic/flex-box';
|
8
8
|
/*__reshadow-styles__:"./style/blockquote.shadow.css"*/
|
9
|
-
var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
10
|
-
"__SBlockquote": "
|
11
|
-
"__SDoubleQuotation": "
|
12
|
-
"__SAuthor": "
|
9
|
+
var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SBlockquote_1tmpd_gg_{position:relative;display:flex;font-style:italic;font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%);color:var(--intergalactic-text-primary, #191b23)}.___SDoubleQuotation_1tmpd_gg_{position:relative;margin-right:var(--intergalactic-spacing-5x, 20px);font-family:\"Times New Roman\",serif;font-style:normal;font-size:68px;line-height:52px;color:var(--intergalactic-text-large-secondary, #a9abb6)}.___SAuthor_1tmpd_gg_{display:block;margin-top:var(--intergalactic-spacing-4x, 16px);color:var(--intergalactic-text-secondary, #6c6e79);font-style:normal;font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}" /*__inner_css_end__*/, "1tmpd_gg_") /*__reshadow_css_end__*/, {
|
10
|
+
"__SBlockquote": "___SBlockquote_1tmpd_gg_",
|
11
|
+
"__SDoubleQuotation": "___SDoubleQuotation_1tmpd_gg_",
|
12
|
+
"__SAuthor": "___SAuthor_1tmpd_gg_"
|
13
13
|
});
|
14
14
|
function Blockquote(props, ref) {
|
15
15
|
var _ref = arguments[0],
|
@@ -15,13 +15,13 @@ import keyboardFocusEnhance from 'intergalactic/utils/lib/enhances/keyboardFocus
|
|
15
15
|
import addonTextChildren from 'intergalactic/utils/lib/addonTextChildren';
|
16
16
|
import Text from './Text';
|
17
17
|
/*__reshadow-styles__:"./style/hint.shadow.css"*/
|
18
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
19
|
-
"__SHint": "
|
20
|
-
"_keyboardFocused": "
|
21
|
-
"_disabled": "
|
22
|
-
"__SAddon": "
|
23
|
-
"__SText": "
|
24
|
-
"_active": "
|
18
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SHint_1qdca_gg_{display:inline-block;transition:all .15s ease-in-out;-webkit-text-decoration:none;text-decoration:none;outline:0;cursor:pointer;color:var(--intergalactic-text-secondary, #6c6e79)}.___SHint_1qdca_gg_.__active_1qdca_gg_,.___SHint_1qdca_gg_:active{color:var(--intergalactic-text-hint-hover-active, #484a54)}@media (hover:hover){.___SHint_1qdca_gg_:hover{color:var(--intergalactic-text-hint-hover-active, #484a54)}}.___SHint_1qdca_gg_.__keyboardFocused_1qdca_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SHint_1qdca_gg_.__disabled_1qdca_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___SAddon_1qdca_gg_{vertical-align:middle;display:inline-flex}.___SHint_1qdca_gg_ .___SAddon_1qdca_gg_:not(:only-child):first-child{margin-right:var(--intergalactic-spacing-1x, 4px)}.___SHint_1qdca_gg_ .___SAddon_1qdca_gg_:not(:only-child):last-child{margin-left:var(--intergalactic-spacing-1x, 4px)}.___SText_1qdca_gg_{border-bottom-width:1px;border-bottom-style:dashed;border-color:currentColor}@media (prefers-reduced-motion){.___SHint_1qdca_gg_{transition:none}}" /*__inner_css_end__*/, "1qdca_gg_") /*__reshadow_css_end__*/, {
|
19
|
+
"__SHint": "___SHint_1qdca_gg_",
|
20
|
+
"_keyboardFocused": "__keyboardFocused_1qdca_gg_",
|
21
|
+
"_disabled": "__disabled_1qdca_gg_",
|
22
|
+
"__SAddon": "___SAddon_1qdca_gg_",
|
23
|
+
"__SText": "___SText_1qdca_gg_",
|
24
|
+
"_active": "__active_1qdca_gg_"
|
25
25
|
});
|
26
26
|
var RootHint = /*#__PURE__*/function (_Component) {
|
27
27
|
_inherits(RootHint, _Component);
|
@@ -12,11 +12,11 @@ import createComponent, { Component, Root, sstyled } from 'intergalactic/core';
|
|
12
12
|
import isNode from 'intergalactic/utils/lib/isNode';
|
13
13
|
import Text from './Text';
|
14
14
|
/*__reshadow-styles__:"./style/list.shadow.css"*/
|
15
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
16
|
-
"__SList": "
|
17
|
-
"__SContent": "
|
18
|
-
"__SItem": "
|
19
|
-
"__SMarker": "
|
15
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SList_1y4fh_gg_{padding:0;margin:0;list-style-type:none}.___SContent_1y4fh_gg_{overflow:inherit;text-overflow:inherit}.___SItem_1y4fh_gg_+.___SItem_1y4fh_gg_,.___SList_1y4fh_gg_ .___SList_1y4fh_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}.___SItem_1y4fh_gg_{display:flex}.___SMarker_1y4fh_gg_{margin-right:calc(var(--intergalactic-spacing-2x, 8px) + var(--intergalactic-spacing-05x, 2px));color:var(--intergalactic-text-secondary, #6c6e79)}" /*__inner_css_end__*/, "1y4fh_gg_") /*__reshadow_css_end__*/, {
|
16
|
+
"__SList": "___SList_1y4fh_gg_",
|
17
|
+
"__SContent": "___SContent_1y4fh_gg_",
|
18
|
+
"__SItem": "___SItem_1y4fh_gg_",
|
19
|
+
"__SMarker": "___SMarker_1y4fh_gg_"
|
20
20
|
});
|
21
21
|
var List = /*#__PURE__*/function (_Component) {
|
22
22
|
_inherits(List, _Component);
|
@@ -5,40 +5,40 @@ import React from 'react';
|
|
5
5
|
import { createBaseComponent, Root, sstyled } from 'intergalactic/core';
|
6
6
|
import { Box } from 'intergalactic/flex-box';
|
7
7
|
/*__reshadow-styles__:"./style/text.shadow.css"*/
|
8
|
-
var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
9
|
-
"__SText": "
|
10
|
-
"_size_100": "
|
11
|
-
"_size_200": "
|
12
|
-
"_size_300": "
|
13
|
-
"_size_400": "
|
14
|
-
"_size_500": "
|
15
|
-
"_size_600": "
|
16
|
-
"_size_700": "
|
17
|
-
"_size_800": "
|
18
|
-
"_noWrap": "
|
19
|
-
"_medium": "
|
20
|
-
"_semibold": "
|
21
|
-
"_bold": "
|
22
|
-
"_italic": "
|
23
|
-
"_monospace": "
|
24
|
-
"_uppercase": "
|
25
|
-
"_lowercase": "
|
26
|
-
"_capitalize": "
|
27
|
-
"_decoration": "
|
28
|
-
"--decoration": "--
|
29
|
-
"_color": "
|
30
|
-
"--color": "--
|
31
|
-
"_fontSize": "
|
32
|
-
"--fontSize": "--
|
33
|
-
"_lineHeight": "
|
34
|
-
"--lineHeight": "--
|
35
|
-
"_fontWeight": "
|
36
|
-
"--fontWeight": "--
|
37
|
-
"_textAlign": "
|
38
|
-
"--textAlign": "--
|
39
|
-
"_use_primary": "
|
40
|
-
"_use_secondary": "
|
41
|
-
"_disabled": "
|
8
|
+
var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SText_zatyq_gg_{padding:0;margin:0}.___SText_zatyq_gg_._size_100_zatyq_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%)}.___SText_zatyq_gg_._size_200_zatyq_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_zatyq_gg_._size_300_zatyq_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SText_zatyq_gg_._size_400_zatyq_gg_{font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%)}.___SText_zatyq_gg_._size_500_zatyq_gg_{font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%)}.___SText_zatyq_gg_._size_600_zatyq_gg_{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%)}.___SText_zatyq_gg_._size_700_zatyq_gg_{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%)}.___SText_zatyq_gg_._size_800_zatyq_gg_{font-size:var(--intergalactic-fs-800, 48px);line-height:var(--intergalactic-lh-800, 117%)}.___SText_zatyq_gg_.__noWrap_zatyq_gg_{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.___SText_zatyq_gg_.__medium_zatyq_gg_{font-weight:var(--intergalactic-medium, 500)}.___SText_zatyq_gg_.__semibold_zatyq_gg_{font-weight:var(--intergalactic-semi-bold, 600)}.___SText_zatyq_gg_.__bold_zatyq_gg_{font-weight:var(--intergalactic-bold, 700)}.___SText_zatyq_gg_.__italic_zatyq_gg_{font-style:italic}.___SText_zatyq_gg_.__monospace_zatyq_gg_{font-family:Consolas,\"Roboto Mono\",Menlo,Courier,monospace}.___SText_zatyq_gg_.__uppercase_zatyq_gg_{text-transform:uppercase}.___SText_zatyq_gg_.__lowercase_zatyq_gg_{text-transform:lowercase}.___SText_zatyq_gg_.__capitalize_zatyq_gg_{text-transform:capitalize}.___SText_zatyq_gg_.__decoration_zatyq_gg_{-webkit-text-decoration:var(--decoration_zatyq);text-decoration:var(--decoration_zatyq)}.___SText_zatyq_gg_.__color_zatyq_gg_{color:var(--color_zatyq)}.___SText_zatyq_gg_.__fontSize_zatyq_gg_{font-size:var(--fontSize_zatyq)}.___SText_zatyq_gg_.__lineHeight_zatyq_gg_{line-height:var(--lineHeight_zatyq)}.___SText_zatyq_gg_.__fontWeight_zatyq_gg_{font-weight:var(--fontWeight_zatyq)}.___SText_zatyq_gg_.__textAlign_zatyq_gg_{text-align:var(--textAlign_zatyq)}.___SText_zatyq_gg_._use_primary_zatyq_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SText_zatyq_gg_._use_secondary_zatyq_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SText_zatyq_gg_.__disabled_zatyq_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3)}" /*__inner_css_end__*/, "zatyq_gg_") /*__reshadow_css_end__*/, {
|
9
|
+
"__SText": "___SText_zatyq_gg_",
|
10
|
+
"_size_100": "_size_100_zatyq_gg_",
|
11
|
+
"_size_200": "_size_200_zatyq_gg_",
|
12
|
+
"_size_300": "_size_300_zatyq_gg_",
|
13
|
+
"_size_400": "_size_400_zatyq_gg_",
|
14
|
+
"_size_500": "_size_500_zatyq_gg_",
|
15
|
+
"_size_600": "_size_600_zatyq_gg_",
|
16
|
+
"_size_700": "_size_700_zatyq_gg_",
|
17
|
+
"_size_800": "_size_800_zatyq_gg_",
|
18
|
+
"_noWrap": "__noWrap_zatyq_gg_",
|
19
|
+
"_medium": "__medium_zatyq_gg_",
|
20
|
+
"_semibold": "__semibold_zatyq_gg_",
|
21
|
+
"_bold": "__bold_zatyq_gg_",
|
22
|
+
"_italic": "__italic_zatyq_gg_",
|
23
|
+
"_monospace": "__monospace_zatyq_gg_",
|
24
|
+
"_uppercase": "__uppercase_zatyq_gg_",
|
25
|
+
"_lowercase": "__lowercase_zatyq_gg_",
|
26
|
+
"_capitalize": "__capitalize_zatyq_gg_",
|
27
|
+
"_decoration": "__decoration_zatyq_gg_",
|
28
|
+
"--decoration": "--decoration_zatyq",
|
29
|
+
"_color": "__color_zatyq_gg_",
|
30
|
+
"--color": "--color_zatyq",
|
31
|
+
"_fontSize": "__fontSize_zatyq_gg_",
|
32
|
+
"--fontSize": "--fontSize_zatyq",
|
33
|
+
"_lineHeight": "__lineHeight_zatyq_gg_",
|
34
|
+
"--lineHeight": "--lineHeight_zatyq",
|
35
|
+
"_fontWeight": "__fontWeight_zatyq_gg_",
|
36
|
+
"--fontWeight": "--fontWeight_zatyq",
|
37
|
+
"_textAlign": "__textAlign_zatyq_gg_",
|
38
|
+
"--textAlign": "--textAlign_zatyq",
|
39
|
+
"_use_primary": "_use_primary_zatyq_gg_",
|
40
|
+
"_use_secondary": "_use_secondary_zatyq_gg_",
|
41
|
+
"_disabled": "__disabled_zatyq_gg_"
|
42
42
|
});
|
43
43
|
import { useColorResolver } from 'intergalactic/utils/lib/use/useColorResolver';
|
44
44
|
function getTextDecoration(underline, lineThrough) {
|
@@ -10,8 +10,8 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/obje
|
|
10
10
|
var _core = _interopRequireWildcard(require("intergalactic/core"));
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
12
12
|
/*__reshadow-styles__:"./invalidStatePattern.shadow.css"*/
|
13
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
14
|
-
"__SPattern": "
|
13
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SPattern_1gmzb_gg_{width:6px;height:100%;position:absolute;background-image:var(--intergalactic-border-critical-pattern, repeating-linear-gradient(315deg, rgba(209, 0, 47, 1) 0, rgba(209, 0, 47, 1) 2px, transparent 0, transparent 50%));background-size:6px 6px;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);border-bottom-left-radius:var(--intergalactic-control-rounded, 6px);border-top-left-radius:var(--intergalactic-control-rounded, 6px)}" /*__inner_css_end__*/, "1gmzb_gg_") /*__reshadow_css_end__*/, {
|
14
|
+
"__SPattern": "___SPattern_1gmzb_gg_"
|
15
15
|
});
|
16
16
|
var InvalidStatePatternComponent = function InvalidStatePatternComponent() {
|
17
17
|
var _ref = arguments[0],
|
@@ -4,8 +4,8 @@ import { assignProps as _assignProps } from 'intergalactic/core';
|
|
4
4
|
import React from 'react';
|
5
5
|
import createComponent, { sstyled, Root } from 'intergalactic/core';
|
6
6
|
/*__reshadow-styles__:"./invalidStatePattern.shadow.css"*/
|
7
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
8
|
-
"__SPattern": "
|
7
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPattern_1gmzb_gg_{width:6px;height:100%;position:absolute;background-image:var(--intergalactic-border-critical-pattern, repeating-linear-gradient(315deg, rgba(209, 0, 47, 1) 0, rgba(209, 0, 47, 1) 2px, transparent 0, transparent 50%));background-size:6px 6px;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);border-bottom-left-radius:var(--intergalactic-control-rounded, 6px);border-top-left-radius:var(--intergalactic-control-rounded, 6px)}" /*__inner_css_end__*/, "1gmzb_gg_") /*__reshadow_css_end__*/, {
|
8
|
+
"__SPattern": "___SPattern_1gmzb_gg_"
|
9
9
|
});
|
10
10
|
var InvalidStatePatternComponent = function InvalidStatePatternComponent() {
|
11
11
|
var _ref = arguments[0],
|
@@ -1,4 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
type OnNeighborChange<P> = (neighborElement: HTMLElement, props: P) => void;
|
2
|
+
type FindNeighbor = (listSelectors: HTMLElement[], element: HTMLElement, direction: string) => HTMLElement | undefined;
|
3
|
+
type ChildSelector<P> = [string, string] | ((props: P) => [string, string]);
|
4
|
+
type A11yEnhanceOptions<P = any> = {
|
5
|
+
findNeighbor?: FindNeighbor;
|
6
|
+
onNeighborChange?: OnNeighborChange<P>;
|
7
|
+
childSelector: ChildSelector<P>;
|
8
|
+
};
|
9
|
+
declare const a11yEnhance: (options: A11yEnhanceOptions) => (props: any) => any;
|
4
10
|
export default a11yEnhance;
|
@@ -23,8 +23,7 @@ var defaultFindNeighbor = function defaultFindNeighbor(listSelectors, element, d
|
|
23
23
|
if (indexNext > lastIndex) indexNext = 0;
|
24
24
|
return listSelectors[indexNext];
|
25
25
|
};
|
26
|
-
var a11yEnhance = function a11yEnhance() {
|
27
|
-
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
26
|
+
var a11yEnhance = function a11yEnhance(options) {
|
28
27
|
var findNeighbor = options.findNeighbor || defaultFindNeighbor;
|
29
28
|
var onNeighborChange = options.onNeighborChange || defaultOnNeighborChange;
|
30
29
|
var childSelector = options.childSelector;
|
@@ -33,32 +32,33 @@ var a11yEnhance = function a11yEnhance() {
|
|
33
32
|
var getNeighbor = function getNeighbor(listSelectors, element, direction) {
|
34
33
|
var neighbor = findNeighbor(listSelectors, element, direction);
|
35
34
|
if (!neighbor) return element;
|
36
|
-
if (neighbor.disabled) return getNeighbor(listSelectors, neighbor, direction);
|
35
|
+
if ('disabled' in neighbor && neighbor.disabled) return getNeighbor(listSelectors, neighbor, direction);
|
37
36
|
return neighbor;
|
38
37
|
};
|
39
38
|
var handleKeyDown = function handleKeyDown(event) {
|
40
39
|
var parent = event.currentTarget;
|
41
40
|
var selectedElement = event.target;
|
42
|
-
var
|
43
|
-
|
44
|
-
|
41
|
+
var _ref = typeof childSelector === 'function' ? childSelector(props) : childSelector,
|
42
|
+
_ref2 = (0, _slicedToArray2["default"])(_ref, 2),
|
43
|
+
childAttrName = _ref2[0],
|
44
|
+
childAttrValue = _ref2[1];
|
45
45
|
if (!selectedElement.getAttribute(childAttrName)) return;
|
46
46
|
var listSelectors = Array.from(parent.querySelectorAll("[".concat(childAttrName, "=\"").concat(childAttrValue, "\"]")));
|
47
47
|
if (!listSelectors.length) throw "no children found querySelectorAll([".concat(childAttrName, "=\"").concat(childAttrValue, "\"] a11yEnhance for ").concat(props['data-ui-name']);
|
48
|
-
switch (event.
|
49
|
-
case
|
48
|
+
switch (event.key) {
|
49
|
+
case 'ArrowLeft':
|
50
50
|
onNeighborChange(getNeighbor(listSelectors, selectedElement, 'left'), props);
|
51
51
|
event.preventDefault();
|
52
52
|
break;
|
53
|
-
case
|
53
|
+
case 'ArrowTop':
|
54
54
|
onNeighborChange(getNeighbor(listSelectors, selectedElement, 'top'), props);
|
55
55
|
event.preventDefault();
|
56
56
|
break;
|
57
|
-
case
|
57
|
+
case 'ArrowRight':
|
58
58
|
onNeighborChange(getNeighbor(listSelectors, selectedElement, 'right'), props);
|
59
59
|
event.preventDefault();
|
60
60
|
break;
|
61
|
-
case
|
61
|
+
case 'ArrowBottom':
|
62
62
|
onNeighborChange(getNeighbor(listSelectors, selectedElement, 'bottom'), props);
|
63
63
|
event.preventDefault();
|
64
64
|
break;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"a11yEnhance.js","names":["_assignProps","require","defaultOnNeighborChange","neighborElement","focus","defaultFindNeighbor","listSelectors","element","direction","elementSibling","includes","indexElement","findIndex","node","lengthList","length","lastIndex","indexNext","a11yEnhance","options","
|
1
|
+
{"version":3,"file":"a11yEnhance.js","names":["_assignProps","require","defaultOnNeighborChange","neighborElement","focus","defaultFindNeighbor","listSelectors","element","direction","elementSibling","includes","indexElement","findIndex","node","lengthList","length","lastIndex","indexNext","a11yEnhance","options","findNeighbor","onNeighborChange","childSelector","props","concat","getNeighbor","neighbor","disabled","handleKeyDown","event","parent","currentTarget","selectedElement","target","_ref","_ref2","_slicedToArray2","childAttrName","childAttrValue","getAttribute","Array","from","querySelectorAll","key","preventDefault","_objectSpread2","onKeyDown","callAllEventHandlers","_default","exports"],"sources":["../../src/enhances/a11yEnhance.tsx"],"sourcesContent":["import { callAllEventHandlers } from '../assignProps';\nimport React from 'react';\n\ntype OnNeighborChange<P> = (neighborElement: HTMLElement, props: P) => void;\ntype FindNeighbor = (\n listSelectors: HTMLElement[],\n element: HTMLElement,\n direction: string,\n) => HTMLElement | undefined;\ntype ChildSelector<P> = [string, string] | ((props: P) => [string, string]);\n\ntype A11yEnhanceOptions<P = any> = {\n findNeighbor?: FindNeighbor;\n onNeighborChange?: OnNeighborChange<P>;\n childSelector: ChildSelector<P>;\n};\n\nconst defaultOnNeighborChange: OnNeighborChange<any> = (neighborElement) => {\n neighborElement?.focus();\n};\n\nconst defaultFindNeighbor: FindNeighbor = (listSelectors, element, direction) => {\n const elementSibling = ['right', 'top'].includes(direction) ? 1 : -1;\n const indexElement = listSelectors.findIndex((node) => node === element);\n const lengthList = listSelectors.length;\n\n const lastIndex = lengthList - 1;\n let indexNext = indexElement + elementSibling;\n if (indexNext < 0) indexNext = lastIndex;\n if (indexNext > lastIndex) indexNext = 0;\n return listSelectors[indexNext];\n};\n\nconst a11yEnhance = (options: A11yEnhanceOptions) => {\n const findNeighbor = options.findNeighbor || defaultFindNeighbor;\n const onNeighborChange = options.onNeighborChange || defaultOnNeighborChange;\n const { childSelector } = options;\n\n return (props: any) => {\n if (!childSelector)\n throw `parameter childSelector not passed in options for a11yEnhance for ${props['data-ui-name']}`;\n const getNeighbor = (\n listSelectors: any,\n element: HTMLElement,\n direction: string,\n ): HTMLElement => {\n const neighbor = findNeighbor(listSelectors, element, direction);\n if (!neighbor) return element;\n if ('disabled' in neighbor && neighbor.disabled)\n return getNeighbor(listSelectors, neighbor, direction);\n return neighbor;\n };\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLElement>) => {\n const parent = event.currentTarget;\n const selectedElement = event.target as HTMLElement;\n const [childAttrName, childAttrValue] =\n typeof childSelector === 'function' ? childSelector(props) : childSelector;\n if (!selectedElement.getAttribute(childAttrName)) return;\n\n const listSelectors = Array.from(\n parent.querySelectorAll(`[${childAttrName}=\"${childAttrValue}\"]`),\n );\n if (!listSelectors.length)\n throw `no children found querySelectorAll([${childAttrName}=\"${childAttrValue}\"] a11yEnhance for ${props['data-ui-name']}`;\n\n switch (event.key) {\n case 'ArrowLeft':\n onNeighborChange(getNeighbor(listSelectors, selectedElement, 'left'), props);\n event.preventDefault();\n break;\n case 'ArrowTop':\n onNeighborChange(getNeighbor(listSelectors, selectedElement, 'top'), props);\n event.preventDefault();\n break;\n case 'ArrowRight':\n onNeighborChange(getNeighbor(listSelectors, selectedElement, 'right'), props);\n event.preventDefault();\n break;\n case 'ArrowBottom':\n onNeighborChange(getNeighbor(listSelectors, selectedElement, 'bottom'), props);\n event.preventDefault();\n break;\n }\n };\n\n return {\n ...props,\n onKeyDown: callAllEventHandlers(props.onKeyDown, handleKeyDown),\n };\n };\n};\n\nexport default a11yEnhance;\n"],"mappings":"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"}
|
@@ -16,8 +16,7 @@ var defaultFindNeighbor = function defaultFindNeighbor(listSelectors, element, d
|
|
16
16
|
if (indexNext > lastIndex) indexNext = 0;
|
17
17
|
return listSelectors[indexNext];
|
18
18
|
};
|
19
|
-
var a11yEnhance = function a11yEnhance() {
|
20
|
-
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
19
|
+
var a11yEnhance = function a11yEnhance(options) {
|
21
20
|
var findNeighbor = options.findNeighbor || defaultFindNeighbor;
|
22
21
|
var onNeighborChange = options.onNeighborChange || defaultOnNeighborChange;
|
23
22
|
var childSelector = options.childSelector;
|
@@ -26,32 +25,33 @@ var a11yEnhance = function a11yEnhance() {
|
|
26
25
|
var getNeighbor = function getNeighbor(listSelectors, element, direction) {
|
27
26
|
var neighbor = findNeighbor(listSelectors, element, direction);
|
28
27
|
if (!neighbor) return element;
|
29
|
-
if (neighbor.disabled) return getNeighbor(listSelectors, neighbor, direction);
|
28
|
+
if ('disabled' in neighbor && neighbor.disabled) return getNeighbor(listSelectors, neighbor, direction);
|
30
29
|
return neighbor;
|
31
30
|
};
|
32
31
|
var handleKeyDown = function handleKeyDown(event) {
|
33
32
|
var parent = event.currentTarget;
|
34
33
|
var selectedElement = event.target;
|
35
|
-
var
|
36
|
-
|
37
|
-
|
34
|
+
var _ref = typeof childSelector === 'function' ? childSelector(props) : childSelector,
|
35
|
+
_ref2 = _slicedToArray(_ref, 2),
|
36
|
+
childAttrName = _ref2[0],
|
37
|
+
childAttrValue = _ref2[1];
|
38
38
|
if (!selectedElement.getAttribute(childAttrName)) return;
|
39
39
|
var listSelectors = Array.from(parent.querySelectorAll("[".concat(childAttrName, "=\"").concat(childAttrValue, "\"]")));
|
40
40
|
if (!listSelectors.length) throw "no children found querySelectorAll([".concat(childAttrName, "=\"").concat(childAttrValue, "\"] a11yEnhance for ").concat(props['data-ui-name']);
|
41
|
-
switch (event.
|
42
|
-
case
|
41
|
+
switch (event.key) {
|
42
|
+
case 'ArrowLeft':
|
43
43
|
onNeighborChange(getNeighbor(listSelectors, selectedElement, 'left'), props);
|
44
44
|
event.preventDefault();
|
45
45
|
break;
|
46
|
-
case
|
46
|
+
case 'ArrowTop':
|
47
47
|
onNeighborChange(getNeighbor(listSelectors, selectedElement, 'top'), props);
|
48
48
|
event.preventDefault();
|
49
49
|
break;
|
50
|
-
case
|
50
|
+
case 'ArrowRight':
|
51
51
|
onNeighborChange(getNeighbor(listSelectors, selectedElement, 'right'), props);
|
52
52
|
event.preventDefault();
|
53
53
|
break;
|
54
|
-
case
|
54
|
+
case 'ArrowBottom':
|
55
55
|
onNeighborChange(getNeighbor(listSelectors, selectedElement, 'bottom'), props);
|
56
56
|
event.preventDefault();
|
57
57
|
break;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"a11yEnhance.mjs","names":["callAllEventHandlers","defaultOnNeighborChange","neighborElement","focus","defaultFindNeighbor","listSelectors","element","direction","elementSibling","includes","indexElement","findIndex","node","lengthList","length","lastIndex","indexNext","a11yEnhance","options","
|
1
|
+
{"version":3,"file":"a11yEnhance.mjs","names":["callAllEventHandlers","defaultOnNeighborChange","neighborElement","focus","defaultFindNeighbor","listSelectors","element","direction","elementSibling","includes","indexElement","findIndex","node","lengthList","length","lastIndex","indexNext","a11yEnhance","options","findNeighbor","onNeighborChange","childSelector","props","concat","getNeighbor","neighbor","disabled","handleKeyDown","event","parent","currentTarget","selectedElement","target","_ref","_ref2","_slicedToArray","childAttrName","childAttrValue","getAttribute","Array","from","querySelectorAll","key","preventDefault","_objectSpread","onKeyDown"],"sources":["../../src/enhances/a11yEnhance.tsx"],"sourcesContent":["import { callAllEventHandlers } from '../assignProps';\nimport React from 'react';\n\ntype OnNeighborChange<P> = (neighborElement: HTMLElement, props: P) => void;\ntype FindNeighbor = (\n listSelectors: HTMLElement[],\n element: HTMLElement,\n direction: string,\n) => HTMLElement | undefined;\ntype ChildSelector<P> = [string, string] | ((props: P) => [string, string]);\n\ntype A11yEnhanceOptions<P = any> = {\n findNeighbor?: FindNeighbor;\n onNeighborChange?: OnNeighborChange<P>;\n childSelector: ChildSelector<P>;\n};\n\nconst defaultOnNeighborChange: OnNeighborChange<any> = (neighborElement) => {\n neighborElement?.focus();\n};\n\nconst defaultFindNeighbor: FindNeighbor = (listSelectors, element, direction) => {\n const elementSibling = ['right', 'top'].includes(direction) ? 1 : -1;\n const indexElement = listSelectors.findIndex((node) => node === element);\n const lengthList = listSelectors.length;\n\n const lastIndex = lengthList - 1;\n let indexNext = indexElement + elementSibling;\n if (indexNext < 0) indexNext = lastIndex;\n if (indexNext > lastIndex) indexNext = 0;\n return listSelectors[indexNext];\n};\n\nconst a11yEnhance = (options: A11yEnhanceOptions) => {\n const findNeighbor = options.findNeighbor || defaultFindNeighbor;\n const onNeighborChange = options.onNeighborChange || defaultOnNeighborChange;\n const { childSelector } = options;\n\n return (props: any) => {\n if (!childSelector)\n throw `parameter childSelector not passed in options for a11yEnhance for ${props['data-ui-name']}`;\n const getNeighbor = (\n listSelectors: any,\n element: HTMLElement,\n direction: string,\n ): HTMLElement => {\n const neighbor = findNeighbor(listSelectors, element, direction);\n if (!neighbor) return element;\n if ('disabled' in neighbor && neighbor.disabled)\n return getNeighbor(listSelectors, neighbor, direction);\n return neighbor;\n };\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLElement>) => {\n const parent = event.currentTarget;\n const selectedElement = event.target as HTMLElement;\n const [childAttrName, childAttrValue] =\n typeof childSelector === 'function' ? childSelector(props) : childSelector;\n if (!selectedElement.getAttribute(childAttrName)) return;\n\n const listSelectors = Array.from(\n parent.querySelectorAll(`[${childAttrName}=\"${childAttrValue}\"]`),\n );\n if (!listSelectors.length)\n throw `no children found querySelectorAll([${childAttrName}=\"${childAttrValue}\"] a11yEnhance for ${props['data-ui-name']}`;\n\n switch (event.key) {\n case 'ArrowLeft':\n onNeighborChange(getNeighbor(listSelectors, selectedElement, 'left'), props);\n event.preventDefault();\n break;\n case 'ArrowTop':\n onNeighborChange(getNeighbor(listSelectors, selectedElement, 'top'), props);\n event.preventDefault();\n break;\n case 'ArrowRight':\n onNeighborChange(getNeighbor(listSelectors, selectedElement, 'right'), props);\n event.preventDefault();\n break;\n case 'ArrowBottom':\n onNeighborChange(getNeighbor(listSelectors, selectedElement, 'bottom'), props);\n event.preventDefault();\n break;\n }\n };\n\n return {\n ...props,\n onKeyDown: callAllEventHandlers(props.onKeyDown, handleKeyDown),\n };\n };\n};\n\nexport default a11yEnhance;\n"],"mappings":";;AAAA,SAASA,oBAAoB,QAAQ,oBAAgB;AAiBrD,IAAMC,uBAA8C,GAAG,SAAjDA,uBAA8CA,CAAIC,eAAe,EAAK;EAC1EA,eAAe,aAAfA,eAAe,uBAAfA,eAAe,CAAEC,KAAK,EAAE;AAC1B,CAAC;AAED,IAAMC,mBAAiC,GAAG,SAApCA,mBAAiCA,CAAIC,aAAa,EAAEC,OAAO,EAAEC,SAAS,EAAK;EAC/E,IAAMC,cAAc,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAACC,QAAQ,CAACF,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;EACpE,IAAMG,YAAY,GAAGL,aAAa,CAACM,SAAS,CAAC,UAACC,IAAI;IAAA,OAAKA,IAAI,KAAKN,OAAO;EAAA,EAAC;EACxE,IAAMO,UAAU,GAAGR,aAAa,CAACS,MAAM;EAEvC,IAAMC,SAAS,GAAGF,UAAU,GAAG,CAAC;EAChC,IAAIG,SAAS,GAAGN,YAAY,GAAGF,cAAc;EAC7C,IAAIQ,SAAS,GAAG,CAAC,EAAEA,SAAS,GAAGD,SAAS;EACxC,IAAIC,SAAS,GAAGD,SAAS,EAAEC,SAAS,GAAG,CAAC;EACxC,OAAOX,aAAa,CAACW,SAAS,CAAC;AACjC,CAAC;AAED,IAAMC,WAAW,GAAG,SAAdA,WAAWA,CAAIC,OAA2B,EAAK;EACnD,IAAMC,YAAY,GAAGD,OAAO,CAACC,YAAY,IAAIf,mBAAmB;EAChE,IAAMgB,gBAAgB,GAAGF,OAAO,CAACE,gBAAgB,IAAInB,uBAAuB;EAC5E,IAAQoB,aAAa,GAAKH,OAAO,CAAzBG,aAAa;EAErB,OAAO,UAACC,KAAU,EAAK;IACrB,IAAI,CAACD,aAAa,EAChB,2EAAAE,MAAA,CAA2ED,KAAK,CAAC,cAAc,CAAC;IAClG,IAAME,WAAW,GAAG,SAAdA,WAAWA,CACfnB,aAAkB,EAClBC,OAAoB,EACpBC,SAAiB,EACD;MAChB,IAAMkB,QAAQ,GAAGN,YAAY,CAACd,aAAa,EAAEC,OAAO,EAAEC,SAAS,CAAC;MAChE,IAAI,CAACkB,QAAQ,EAAE,OAAOnB,OAAO;MAC7B,IAAI,UAAU,IAAImB,QAAQ,IAAIA,QAAQ,CAACC,QAAQ,EAC7C,OAAOF,WAAW,CAACnB,aAAa,EAAEoB,QAAQ,EAAElB,SAAS,CAAC;MACxD,OAAOkB,QAAQ;IACjB,CAAC;IAED,IAAME,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,KAAuC,EAAK;MACjE,IAAMC,MAAM,GAAGD,KAAK,CAACE,aAAa;MAClC,IAAMC,eAAe,GAAGH,KAAK,CAACI,MAAqB;MACnD,IAAAC,IAAA,GACE,OAAOZ,aAAa,KAAK,UAAU,GAAGA,aAAa,CAACC,KAAK,CAAC,GAAGD,aAAa;QAAAa,KAAA,GAAAC,cAAA,CAAAF,IAAA;QADrEG,aAAa,GAAAF,KAAA;QAAEG,cAAc,GAAAH,KAAA;MAEpC,IAAI,CAACH,eAAe,CAACO,YAAY,CAACF,aAAa,CAAC,EAAE;MAElD,IAAM/B,aAAa,GAAGkC,KAAK,CAACC,IAAI,CAC9BX,MAAM,CAACY,gBAAgB,KAAAlB,MAAA,CAAKa,aAAa,SAAAb,MAAA,CAAKc,cAAc,SAAK,CAClE;MACD,IAAI,CAAChC,aAAa,CAACS,MAAM,EACvB,6CAAAS,MAAA,CAA6Ca,aAAa,SAAAb,MAAA,CAAKc,cAAc,0BAAAd,MAAA,CAAsBD,KAAK,CAAC,cAAc,CAAC;MAE1H,QAAQM,KAAK,CAACc,GAAG;QACf,KAAK,WAAW;UACdtB,gBAAgB,CAACI,WAAW,CAACnB,aAAa,EAAE0B,eAAe,EAAE,MAAM,CAAC,EAAET,KAAK,CAAC;UAC5EM,KAAK,CAACe,cAAc,EAAE;UACtB;QACF,KAAK,UAAU;UACbvB,gBAAgB,CAACI,WAAW,CAACnB,aAAa,EAAE0B,eAAe,EAAE,KAAK,CAAC,EAAET,KAAK,CAAC;UAC3EM,KAAK,CAACe,cAAc,EAAE;UACtB;QACF,KAAK,YAAY;UACfvB,gBAAgB,CAACI,WAAW,CAACnB,aAAa,EAAE0B,eAAe,EAAE,OAAO,CAAC,EAAET,KAAK,CAAC;UAC7EM,KAAK,CAACe,cAAc,EAAE;UACtB;QACF,KAAK,aAAa;UAChBvB,gBAAgB,CAACI,WAAW,CAACnB,aAAa,EAAE0B,eAAe,EAAE,QAAQ,CAAC,EAAET,KAAK,CAAC;UAC9EM,KAAK,CAACe,cAAc,EAAE;UACtB;MAAM;IAEZ,CAAC;IAED,OAAAC,aAAA,CAAAA,aAAA,KACKtB,KAAK;MACRuB,SAAS,EAAE7C,oBAAoB,CAACsB,KAAK,CAACuB,SAAS,EAAElB,aAAa;IAAC;EAEnE,CAAC;AACH,CAAC;AAED,eAAeV,WAAW"}
|
package/utils/lib/injectStyle.js
CHANGED
@@ -695,7 +695,7 @@
|
|
695
695
|
--intergalactic-chart-grid-bar-chart-base-bg: #e0e1e9;
|
696
696
|
/* Use for highlighting the period on the chart grid. */
|
697
697
|
--intergalactic-chart-grid-period-bg: rgba(196, 199, 207, 0.2);
|
698
|
-
/* Border
|
698
|
+
/* Border for distinguishing data sets and chart dots on the chart grid. */
|
699
699
|
--intergalactic-chart-grid-border: #ffffff;
|
700
700
|
/* Background color for the clickable date on the X-axis of the chart grid. */
|
701
701
|
--intergalactic-chart-x-axis-accent-period-active: #6c6e79;
|
@@ -1396,8 +1396,8 @@
|
|
1396
1396
|
--intergalactic-chart-grid-bar-chart-base-bg: #e0e1e9;
|
1397
1397
|
/* Use for highlighting the period on the chart grid. */
|
1398
1398
|
--intergalactic-chart-grid-period-bg: rgba(196, 199, 207, 0.2);
|
1399
|
-
/* Border
|
1400
|
-
--intergalactic-chart-grid-border: #
|
1399
|
+
/* Border for distinguishing data sets and chart dots on the chart grid. */
|
1400
|
+
--intergalactic-chart-grid-border: #191b23;
|
1401
1401
|
/* Background color for the clickable date on the X-axis of the chart grid. */
|
1402
1402
|
--intergalactic-chart-x-axis-accent-period-active: #8a8e9b;
|
1403
1403
|
/* Background color for the "Start tracking" date on the X-axis of the chart grid. */
|
@@ -670,8 +670,8 @@
|
|
670
670
|
--intergalactic-chart-grid-bar-chart-base-bg: #e0e1e9;
|
671
671
|
/* Use for highlighting the period on the chart grid. */
|
672
672
|
--intergalactic-chart-grid-period-bg: rgba(196, 199, 207, 0.2);
|
673
|
-
/* Border
|
674
|
-
--intergalactic-chart-grid-border: #
|
673
|
+
/* Border for distinguishing data sets and chart dots on the chart grid. */
|
674
|
+
--intergalactic-chart-grid-border: #191b23;
|
675
675
|
/* Background color for the clickable date on the X-axis of the chart grid. */
|
676
676
|
--intergalactic-chart-x-axis-accent-period-active: #8a8e9b;
|
677
677
|
/* Background color for the "Start tracking" date on the X-axis of the chart grid. */
|
@@ -346,7 +346,7 @@
|
|
346
346
|
"--intergalactic-chart-grid-bar-chart-hover": "rgba(196, 199, 207, 0.3)",
|
347
347
|
"--intergalactic-chart-grid-bar-chart-base-bg": "#e0e1e9",
|
348
348
|
"--intergalactic-chart-grid-period-bg": "rgba(196, 199, 207, 0.2)",
|
349
|
-
"--intergalactic-chart-grid-border": "#
|
349
|
+
"--intergalactic-chart-grid-border": "#191b23",
|
350
350
|
"--intergalactic-chart-x-axis-accent-period-active": "#8a8e9b",
|
351
351
|
"--intergalactic-chart-x-axis-accent-data-start-tracking": "rgba(0, 159, 129, 0.2)",
|
352
352
|
"--intergalactic-duration-extra-slow": "500",
|
@@ -695,7 +695,7 @@
|
|
695
695
|
--intergalactic-chart-grid-bar-chart-base-bg: #e0e1e9;
|
696
696
|
/* Use for highlighting the period on the chart grid. */
|
697
697
|
--intergalactic-chart-grid-period-bg: rgba(196, 199, 207, 0.2);
|
698
|
-
/* Border
|
698
|
+
/* Border for distinguishing data sets and chart dots on the chart grid. */
|
699
699
|
--intergalactic-chart-grid-border: #ffffff;
|
700
700
|
/* Background color for the clickable date on the X-axis of the chart grid. */
|
701
701
|
--intergalactic-chart-x-axis-accent-period-active: #6c6e79;
|
@@ -695,7 +695,7 @@
|
|
695
695
|
--intergalactic-chart-grid-bar-chart-base-bg: #e0e1e9;
|
696
696
|
/* Use for highlighting the period on the chart grid. */
|
697
697
|
--intergalactic-chart-grid-period-bg: rgba(196, 199, 207, 0.2);
|
698
|
-
/* Border
|
698
|
+
/* Border for distinguishing data sets and chart dots on the chart grid. */
|
699
699
|
--intergalactic-chart-grid-border: #ffffff;
|
700
700
|
/* Background color for the clickable date on the X-axis of the chart grid. */
|
701
701
|
--intergalactic-chart-x-axis-accent-period-active: #6c6e79;
|
@@ -18,11 +18,11 @@ var _illustration = require("intergalactic/illustration");
|
|
18
18
|
var _flexBox = require("intergalactic/flex-box");
|
19
19
|
var _isNode = _interopRequireDefault(require("intergalactic/utils/lib/isNode"));
|
20
20
|
/*__reshadow-styles__:"./style/widget-empty.shadow.css"*/
|
21
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
22
|
-
"__SWidgetEmpty": "
|
23
|
-
"__SImage": "
|
24
|
-
"__STitle": "
|
25
|
-
"__SDescription": "
|
21
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SWidgetEmpty_rib3b_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SImage_rib3b_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px)}.___SDescription_rib3b_gg_,.___STitle_rib3b_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___STitle_rib3b_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}.___SDescription_rib3b_gg_{text-align:center;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);max-width:400px}.___STitle_rib3b_gg_+.___SDescription_rib3b_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_rib3b_gg_+.___SDescription_rib3b_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}" /*__inner_css_end__*/, "rib3b_gg_") /*__reshadow_css_end__*/, {
|
22
|
+
"__SWidgetEmpty": "___SWidgetEmpty_rib3b_gg_",
|
23
|
+
"__SImage": "___SImage_rib3b_gg_",
|
24
|
+
"__STitle": "___STitle_rib3b_gg_",
|
25
|
+
"__SDescription": "___SDescription_rib3b_gg_"
|
26
26
|
});
|
27
27
|
var getIconPath = function getIconPath(name) {
|
28
28
|
return (0, _illustration.getIllustrationPath)(name);
|