td-stylekit 24.8.0 → 25.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc.js +8 -23
- package/CHANGELOG.md +35 -0
- package/dist/es/ActionBar/ActionBar.js +42 -18
- package/dist/es/ActionBar/components/ActionMenu.js +41 -17
- package/dist/es/ActionBar/components/Container.d.ts +4 -126
- package/dist/es/ActionBar/components/Container.js +20 -5
- package/dist/es/ActionBar/components/IconButton.d.ts +7 -133
- package/dist/es/ActionBar/components/IconButton.js +22 -6
- package/dist/es/ActionBar/components/Prefix.js +24 -8
- package/dist/es/ActionBar/components/index.js +58 -5
- package/dist/es/ActionBar/index.js +17 -2
- package/dist/es/ActionBar/types.js +5 -0
- package/dist/es/Badge/Badge.d.ts +4 -126
- package/dist/es/Badge/Badge.js +42 -26
- package/dist/es/Badge/constants.js +9 -2
- package/dist/es/Badge/index.js +25 -3
- package/dist/es/BarChart/BarChart.d.ts +6 -7
- package/dist/es/BarChart/BarChart.js +67 -39
- package/dist/es/BarChart/index.js +17 -2
- package/dist/es/Box/Box.d.ts +4 -126
- package/dist/es/Box/Box.js +37 -12
- package/dist/es/Box/index.js +17 -2
- package/dist/es/Button/Button.js +130 -79
- package/dist/es/Button/elements.d.ts +4 -126
- package/dist/es/Button/elements.js +17 -3
- package/dist/es/Button/index.js +35 -3
- package/dist/es/Canvas/Canvas.js +31 -12
- package/dist/es/Canvas/elements.d.ts +55 -2537
- package/dist/es/Canvas/elements.js +84 -33
- package/dist/es/Canvas/index.js +17 -2
- package/dist/es/Card/Card.d.ts +4 -126
- package/dist/es/Card/Card.js +20 -7
- package/dist/es/Card/index.js +17 -2
- package/dist/es/ChartPrimitives/ChartLegend.d.ts +22 -635
- package/dist/es/ChartPrimitives/ChartLegend.js +62 -25
- package/dist/es/ChartPrimitives/Container.d.ts +4 -126
- package/dist/es/ChartPrimitives/Container.js +17 -5
- package/dist/es/ChartPrimitives/Defs.js +73 -41
- package/dist/es/ChartPrimitives/Noop.js +8 -1
- package/dist/es/ChartPrimitives/Tooltip.d.ts +2 -3
- package/dist/es/ChartPrimitives/Tooltip.js +96 -32
- package/dist/es/ChartPrimitives/index.d.ts +6 -126
- package/dist/es/ChartPrimitives/index.js +67 -14
- package/dist/es/ChartPrimitives/utils.d.ts +26 -277
- package/dist/es/ChartPrimitives/utils.js +112 -69
- package/dist/es/Checkbox/Checkbox.js +104 -48
- package/dist/es/Checkbox/index.js +17 -2
- package/dist/es/CheckboxField/CheckboxField.js +57 -26
- package/dist/es/CheckboxField/index.js +17 -2
- package/dist/es/CollapsibleToggle/CollapsibleToggle.js +53 -28
- package/dist/es/CollapsibleToggle/constants.js +8 -1
- package/dist/es/CollapsibleToggle/index.js +17 -2
- package/dist/es/Column/Column.js +30 -10
- package/dist/es/Column/index.js +17 -2
- package/dist/es/ComparisonChart/ComparisonChart.d.ts +41 -1
- package/dist/es/ComparisonChart/ComparisonChart.js +74 -44
- package/dist/es/ComparisonChart/constants.js +9 -2
- package/dist/es/ComparisonChart/index.js +17 -2
- package/dist/es/ComponentGroup/ComponentGroup.js +28 -7
- package/dist/es/ComponentGroup/index.js +17 -2
- package/dist/es/DataGrid/DataGrid.js +127 -67
- package/dist/es/DataGrid/components/BasicColumn.js +43 -21
- package/dist/es/DataGrid/components/CategoryFilter.js +42 -16
- package/dist/es/DataGrid/components/CollapsibleCell.d.ts +5 -128
- package/dist/es/DataGrid/components/CollapsibleCell.js +81 -33
- package/dist/es/DataGrid/components/ColumnHeader.js +73 -39
- package/dist/es/DataGrid/components/ColumnHeaderActions.js +71 -37
- package/dist/es/DataGrid/components/FocusableRow.js +53 -20
- package/dist/es/DataGrid/components/InputCell.js +63 -31
- package/dist/es/DataGrid/components/ScrollableTable.d.ts +7 -7
- package/dist/es/DataGrid/components/ScrollableTable.js +95 -56
- package/dist/es/DataGrid/components/index.js +73 -9
- package/dist/es/DataGrid/constants.js +15 -4
- package/dist/es/DataGrid/elements.d.ts +352 -2543
- package/dist/es/DataGrid/elements.js +214 -92
- package/dist/es/DataGrid/index.js +17 -2
- package/dist/es/DataGrid/renderers.js +138 -96
- package/dist/es/DataGrid/sampleData.js +24 -9
- package/dist/es/DataGrid/utils.js +43 -24
- package/dist/es/DateControl/DateControl.js +113 -60
- package/dist/es/DateControl/elements.d.ts +180 -887
- package/dist/es/DateControl/elements.js +58 -22
- package/dist/es/DateControl/index.js +17 -2
- package/dist/es/DateField/DateField.js +105 -53
- package/dist/es/DateField/elements.d.ts +9 -251
- package/dist/es/DateField/elements.js +34 -12
- package/dist/es/DateField/index.js +17 -2
- package/dist/es/DatePicker/DatePicker.js +97 -56
- package/dist/es/DatePicker/index.js +28 -4
- package/dist/es/DatePicker/utils.js +47 -19
- package/dist/es/DetailPanel/DetailPanel.js +31 -17
- package/dist/es/DetailPanel/elements.d.ts +20 -505
- package/dist/es/DetailPanel/elements.js +92 -50
- package/dist/es/DetailPanel/index.js +17 -2
- package/dist/es/DistributionChart/DistributionChart.js +36 -14
- package/dist/es/DistributionChart/index.js +21 -3
- package/dist/es/DistributionChart/utils.js +10 -2
- package/dist/es/Drawer/Drawer.js +37 -17
- package/dist/es/Drawer/elements.d.ts +30 -1015
- package/dist/es/Drawer/elements.js +120 -67
- package/dist/es/Drawer/index.js +17 -2
- package/dist/es/DropdownButton/DropdownButton.d.ts +1 -125
- package/dist/es/DropdownButton/DropdownButton.js +90 -44
- package/dist/es/DropdownButton/DropdownButtonElements.d.ts +22 -776
- package/dist/es/DropdownButton/DropdownButtonElements.js +129 -59
- package/dist/es/DropdownButton/DropdownButtonUtils.js +19 -4
- package/dist/es/DropdownButton/index.js +17 -2
- package/dist/es/FileInput/FileInput.js +66 -26
- package/dist/es/FileInput/index.js +17 -2
- package/dist/es/FormControl/FormControl.d.ts +4 -17
- package/dist/es/FormControl/FormControl.js +105 -63
- package/dist/es/FormControl/components/CheckboxGroup.js +43 -17
- package/dist/es/FormControl/components/RadioGroup.js +31 -16
- package/dist/es/FormControl/components/Textarea.js +24 -7
- package/dist/es/FormControl/components/index.js +31 -4
- package/dist/es/FormControl/elements.d.ts +57 -1770
- package/dist/es/FormControl/elements.js +107 -46
- package/dist/es/FormControl/index.js +17 -2
- package/dist/es/FormField/FormField.d.ts +1 -11
- package/dist/es/FormField/FormField.js +112 -67
- package/dist/es/FormField/elements.d.ts +13 -377
- package/dist/es/FormField/elements.js +54 -20
- package/dist/es/FormField/index.js +31 -3
- package/dist/es/FormField/utils.js +29 -5
- package/dist/es/FormFieldAddon/FormFieldAddon.js +65 -28
- package/dist/es/FormFieldAddon/FormFieldAddonElements.d.ts +15 -1266
- package/dist/es/FormFieldAddon/FormFieldAddonElements.js +47 -16
- package/dist/es/FormFieldAddon/index.js +17 -2
- package/dist/es/FormLabel/FormLabel.js +18 -5
- package/dist/es/FormLabel/elements.d.ts +5 -127
- package/dist/es/FormLabel/elements.js +19 -4
- package/dist/es/FormLabel/index.js +17 -2
- package/dist/es/FormModal/FormModal.js +47 -22
- package/dist/es/FormModal/index.js +17 -2
- package/dist/es/Grid/Grid.d.ts +4 -126
- package/dist/es/Grid/Grid.js +17 -4
- package/dist/es/Grid/GridItem.d.ts +4 -126
- package/dist/es/Grid/GridItem.js +17 -5
- package/dist/es/Grid/index.js +25 -4
- package/dist/es/GrowthRateChart/GrowthRateChart.d.ts +2 -2
- package/dist/es/GrowthRateChart/GrowthRateChart.js +40 -18
- package/dist/es/GrowthRateChart/index.js +17 -2
- package/dist/es/Heading/Heading.js +37 -11
- package/dist/es/Heading/index.js +17 -2
- package/dist/es/Highlighter/Highlighter.js +25 -11
- package/dist/es/Highlighter/index.js +17 -2
- package/dist/es/Histogram/Data.js +9 -2
- package/dist/es/Histogram/Histogram.js +85 -46
- package/dist/es/Histogram/index.js +17 -2
- package/dist/es/Icon/Icon.js +68 -30
- package/dist/es/Icon/index.js +33 -2
- package/dist/es/Icon/staticTypes.d.ts +4 -2
- package/dist/es/Icon/staticTypes.js +5 -0
- package/dist/es/Icon/types.js +7 -0
- package/dist/es/IconBar/IconBar.d.ts +33 -1272
- package/dist/es/IconBar/IconBar.js +74 -45
- package/dist/es/IconBar/IconItem.d.ts +16 -507
- package/dist/es/IconBar/IconItem.js +64 -31
- package/dist/es/IconBar/LogoItem.js +27 -14
- package/dist/es/IconBar/index.js +17 -2
- package/dist/es/IconBar/variants.js +24 -7
- package/dist/es/InfiniteList/InfiniteList.js +65 -24
- package/dist/es/InfiniteList/index.js +17 -2
- package/dist/es/Input/Input.d.ts +15 -391
- package/dist/es/Input/Input.js +139 -72
- package/dist/es/Input/index.js +17 -2
- package/dist/es/LeftTruncatedText/LeftTruncatedText.js +43 -22
- package/dist/es/LeftTruncatedText/index.js +17 -2
- package/dist/es/Link/Link.d.ts +8 -126
- package/dist/es/Link/Link.js +31 -7
- package/dist/es/Link/index.js +17 -2
- package/dist/es/Loader/Loader.js +21 -7
- package/dist/es/Loader/LoaderDiamond.js +96 -73
- package/dist/es/Loader/LoaderDots.js +41 -21
- package/dist/es/Loader/index.js +17 -2
- package/dist/es/Logo/Logo.d.ts +9 -2
- package/dist/es/Logo/Logo.js +79 -248
- package/dist/es/Logo/LogoDark.d.ts +11 -0
- package/dist/es/Logo/LogoDark.js +126 -0
- package/dist/es/Logo/LogoLight.d.ts +11 -0
- package/dist/es/Logo/LogoLight.js +123 -0
- package/dist/es/Logo/LogoV4.d.ts +11 -0
- package/dist/es/Logo/LogoV4.js +168 -0
- package/dist/es/Logo/index.js +17 -2
- package/dist/es/Menu/Menu.js +104 -74
- package/dist/es/Menu/MenuElements.d.ts +1 -126
- package/dist/es/Menu/MenuElements.js +87 -32
- package/dist/es/Menu/index.js +17 -2
- package/dist/es/MiddleTruncatedText/MiddleTruncatedText.js +34 -25
- package/dist/es/MiddleTruncatedText/index.js +17 -2
- package/dist/es/Modal/Modal.d.ts +9 -254
- package/dist/es/Modal/Modal.js +78 -35
- package/dist/es/Modal/components/Body.js +27 -8
- package/dist/es/Modal/components/Footer.d.ts +3 -125
- package/dist/es/Modal/components/Footer.js +34 -16
- package/dist/es/Modal/components/FooterConfirmation.js +30 -10
- package/dist/es/Modal/components/Header.js +37 -19
- package/dist/es/Modal/components/MenuBody.d.ts +16 -638
- package/dist/es/Modal/components/MenuBody.js +146 -75
- package/dist/es/Modal/components/ModalMessage.d.ts +37 -1026
- package/dist/es/Modal/components/ModalMessage.js +125 -45
- package/dist/es/Modal/components/ModalOverlay.js +26 -11
- package/dist/es/Modal/components/elements.d.ts +50 -1765
- package/dist/es/Modal/components/elements.js +142 -60
- package/dist/es/Modal/components/index.js +79 -9
- package/dist/es/Modal/constants.js +17 -5
- package/dist/es/Modal/context.js +12 -3
- package/dist/es/Modal/index.js +13 -2
- package/dist/es/MultiSelect/MultiSelect.d.ts +5 -2
- package/dist/es/MultiSelect/MultiSelect.js +86 -38
- package/dist/es/MultiSelect/elements.d.ts +25 -1762
- package/dist/es/MultiSelect/elements.js +136 -58
- package/dist/es/MultiSelect/index.js +35 -3
- package/dist/es/NavigationBar/LogoItem.js +21 -10
- package/dist/es/NavigationBar/NavigationBar.d.ts +16 -379
- package/dist/es/NavigationBar/NavigationBar.js +49 -24
- package/dist/es/NavigationBar/NavigationItem.d.ts +8 -254
- package/dist/es/NavigationBar/NavigationItem.js +81 -32
- package/dist/es/NavigationBar/index.js +17 -2
- package/dist/es/NavigationPopover/NavigationPopover.d.ts +16 -632
- package/dist/es/NavigationPopover/NavigationPopover.js +50 -28
- package/dist/es/NavigationPopover/index.js +17 -2
- package/dist/es/Overlay/Overlay.js +30 -13
- package/dist/es/Overlay/OverlayBody.d.ts +8 -382
- package/dist/es/Overlay/OverlayBody.js +28 -9
- package/dist/es/Overlay/OverlayHeader.d.ts +37 -508
- package/dist/es/Overlay/OverlayHeader.js +94 -52
- package/dist/es/Overlay/index.js +33 -4
- package/dist/es/Paragraph/Paragraph.d.ts +4 -126
- package/dist/es/Paragraph/Paragraph.js +22 -8
- package/dist/es/Paragraph/index.js +17 -2
- package/dist/es/PieChart/PieChart.js +77 -43
- package/dist/es/PieChart/index.js +15 -2
- package/dist/es/Popover/Popover.d.ts +9 -252
- package/dist/es/Popover/Popover.js +57 -22
- package/dist/es/Popover/index.js +17 -2
- package/dist/es/PositiveNegativeBarChart/PositiveNegativeBarChart.js +65 -41
- package/dist/es/PositiveNegativeBarChart/index.js +23 -3
- package/dist/es/PositiveNegativeBarChart/utils.js +10 -2
- package/dist/es/Radio/Radio.js +85 -40
- package/dist/es/Radio/index.js +17 -2
- package/dist/es/RatioPieChart/RatioPieChart.js +20 -6
- package/dist/es/RatioPieChart/index.js +15 -2
- package/dist/es/RightTruncatedText/RightTruncatedText.js +30 -12
- package/dist/es/RightTruncatedText/index.js +17 -2
- package/dist/es/Row/Row.js +23 -8
- package/dist/es/Row/index.js +17 -2
- package/dist/es/SecondaryNavigation/SecondaryNavigation.js +48 -22
- package/dist/es/SecondaryNavigation/elements/Item.d.ts +4 -126
- package/dist/es/SecondaryNavigation/elements/Item.js +17 -5
- package/dist/es/SecondaryNavigation/elements/Section.js +53 -22
- package/dist/es/SecondaryNavigation/elements/Title.d.ts +4 -126
- package/dist/es/SecondaryNavigation/elements/Title.js +17 -5
- package/dist/es/SecondaryNavigation/elements/Wrapper.d.ts +5 -127
- package/dist/es/SecondaryNavigation/elements/Wrapper.js +17 -5
- package/dist/es/SecondaryNavigation/index.d.ts +9 -251
- package/dist/es/SecondaryNavigation/index.js +24 -10
- package/dist/es/Section/Section.js +67 -27
- package/dist/es/Section/elements.d.ts +193 -1046
- package/dist/es/Section/elements.js +73 -30
- package/dist/es/Section/index.js +17 -2
- package/dist/es/Select/Select.d.ts +1 -1
- package/dist/es/Select/Select.js +110 -57
- package/dist/es/Select/components/CreatableSelect.js +41 -11
- package/dist/es/Select/components/MenuList.js +65 -26
- package/dist/es/Select/components/MenuPortal.js +27 -18
- package/dist/es/Select/components/Option.d.ts +2 -2
- package/dist/es/Select/components/Option.js +59 -18
- package/dist/es/Select/components/OptionTypes.js +5 -0
- package/dist/es/Select/components/index.js +41 -5
- package/dist/es/Select/elements.d.ts +10 -503
- package/dist/es/Select/elements.js +45 -16
- package/dist/es/Select/index.js +42 -4
- package/dist/es/Select/types.js +5 -0
- package/dist/es/Select/utils.js +82 -52
- package/dist/es/Select/variantProps.js +78 -37
- package/dist/es/Shuttle/Shuttle.js +70 -33
- package/dist/es/Shuttle/elements.d.ts +21 -751
- package/dist/es/Shuttle/elements.js +78 -36
- package/dist/es/Shuttle/index.js +17 -2
- package/dist/es/SimpleModal/SimpleModal.js +30 -11
- package/dist/es/SimpleModal/index.js +17 -2
- package/dist/es/Slider/Slider.js +60 -29
- package/dist/es/Slider/elements.d.ts +39 -388
- package/dist/es/Slider/elements.js +34 -10
- package/dist/es/Slider/index.js +17 -2
- package/dist/es/StatCard/StatCard.js +46 -26
- package/dist/es/StatCard/elements.d.ts +47 -1513
- package/dist/es/StatCard/elements.js +74 -24
- package/dist/es/StatCard/index.js +17 -2
- package/dist/es/Tabs/Tabs.js +36 -15
- package/dist/es/Tabs/elements.d.ts +34 -508
- package/dist/es/Tabs/elements.js +52 -17
- package/dist/es/Tabs/index.js +17 -2
- package/dist/es/Tagger/Tagger.d.ts +8 -126
- package/dist/es/Tagger/Tagger.js +77 -34
- package/dist/es/Tagger/TaggerElements.d.ts +22 -757
- package/dist/es/Tagger/TaggerElements.js +74 -33
- package/dist/es/Tagger/components/PopupSelector.js +124 -75
- package/dist/es/Tagger/components/PopupSelectorElements.d.ts +66 -2081
- package/dist/es/Tagger/components/PopupSelectorElements.js +108 -43
- package/dist/es/Tagger/components/constants.js +10 -2
- package/dist/es/Tagger/index.js +17 -2
- package/dist/es/Tagger/variantProps.js +116 -82
- package/dist/es/Text/Text.d.ts +4 -126
- package/dist/es/Text/Text.js +38 -10
- package/dist/es/Text/index.js +17 -2
- package/dist/es/ThemeProvider/ThemeProvider.d.ts +3403 -220
- package/dist/es/ThemeProvider/ThemeProvider.js +47 -24
- package/dist/es/ThemeProvider/accessibility.js +21 -11
- package/dist/es/ThemeProvider/icons.js +13 -4
- package/dist/es/ThemeProvider/index.js +80 -7
- package/dist/es/ThemeProvider/overridable.js +8 -1
- package/dist/es/ThemeProvider/theme.js +18 -6
- package/dist/es/ThemeProvider/types.d.ts +8 -29
- package/dist/es/ThemeProvider/types.js +5 -0
- package/dist/es/ThemeProvider/utils/themeUtils.js +8 -1
- package/dist/es/ThemeProvider/v4/Badge.js +18 -5
- package/dist/es/ThemeProvider/v4/Button.js +24 -9
- package/dist/es/ThemeProvider/v4/Card.js +19 -5
- package/dist/es/ThemeProvider/v4/Checkbox.js +18 -5
- package/dist/es/ThemeProvider/v4/CollapsibleToggle.js +18 -5
- package/dist/es/ThemeProvider/v4/Color.d.ts +1 -1
- package/dist/es/ThemeProvider/v4/Color.js +16 -4
- package/dist/es/ThemeProvider/v4/DataGrid.d.ts +2 -8
- package/dist/es/ThemeProvider/v4/DataGrid.js +18 -5
- package/dist/es/ThemeProvider/v4/DatePicker.js +29 -16
- package/dist/es/ThemeProvider/v4/DropdownButton.js +21 -7
- package/dist/es/ThemeProvider/v4/FormFieldAddon.js +18 -5
- package/dist/es/ThemeProvider/v4/FormLabel.d.ts +1 -5
- package/dist/es/ThemeProvider/v4/FormLabel.js +19 -5
- package/dist/es/ThemeProvider/v4/Icon.js +19 -5
- package/dist/es/ThemeProvider/v4/Input.d.ts +1 -1
- package/dist/es/ThemeProvider/v4/Input.js +17 -6
- package/dist/es/ThemeProvider/v4/Link.js +19 -5
- package/dist/es/ThemeProvider/v4/Menu.d.ts +1 -5
- package/dist/es/ThemeProvider/v4/Menu.js +21 -7
- package/dist/es/ThemeProvider/v4/Modal.d.ts +14 -42
- package/dist/es/ThemeProvider/v4/Modal.js +21 -7
- package/dist/es/ThemeProvider/v4/MultiSelect.d.ts +2 -24
- package/dist/es/ThemeProvider/v4/MultiSelect.js +18 -5
- package/dist/es/ThemeProvider/v4/Popover.js +15 -4
- package/dist/es/ThemeProvider/v4/Radio.d.ts +2 -30
- package/dist/es/ThemeProvider/v4/Radio.js +18 -5
- package/dist/es/ThemeProvider/v4/Section.d.ts +3 -39
- package/dist/es/ThemeProvider/v4/Section.js +18 -5
- package/dist/es/ThemeProvider/v4/Select.d.ts +1 -4
- package/dist/es/ThemeProvider/v4/Select.js +18 -5
- package/dist/es/ThemeProvider/v4/Shuttle.js +18 -5
- package/dist/es/ThemeProvider/v4/Tagger.d.ts +1 -12
- package/dist/es/ThemeProvider/v4/Tagger.js +18 -5
- package/dist/es/ThemeProvider/v4/Toast.js +18 -5
- package/dist/es/ThemeProvider/v4/Toggle.d.ts +4 -38
- package/dist/es/ThemeProvider/v4/Toggle.js +18 -5
- package/dist/es/ThemeProvider/v4/UserAvatar.js +18 -5
- package/dist/es/ThemeProvider/v4/View.js +19 -5
- package/dist/es/ThemeProvider/v4/index.d.ts +3403 -220
- package/dist/es/ThemeProvider/v4/index.js +69 -33
- package/dist/es/TimeControl/TimeControl.js +63 -26
- package/dist/es/TimeControl/elements.d.ts +186 -378
- package/dist/es/TimeControl/elements.js +41 -14
- package/dist/es/TimeControl/index.js +17 -2
- package/dist/es/TimeControl/utils.js +41 -18
- package/dist/es/TimeField/TimeField.d.ts +5 -1
- package/dist/es/TimeField/TimeField.js +40 -14
- package/dist/es/TimeField/index.js +17 -2
- package/dist/es/TimePicker/TimePicker.js +60 -30
- package/dist/es/TimePicker/components/Container.d.ts +5 -127
- package/dist/es/TimePicker/components/Container.js +20 -5
- package/dist/es/TimePicker/components/PeriodSelector.js +68 -38
- package/dist/es/TimePicker/components/Separator.d.ts +4 -126
- package/dist/es/TimePicker/components/Separator.js +17 -3
- package/dist/es/TimePicker/components/Spinner.d.ts +4 -126
- package/dist/es/TimePicker/components/Spinner.js +60 -26
- package/dist/es/TimePicker/components/index.js +58 -5
- package/dist/es/TimePicker/index.js +17 -2
- package/dist/es/TimePicker/utils.js +38 -14
- package/dist/es/Toast/Toast.js +71 -36
- package/dist/es/Toast/constants.js +9 -2
- package/dist/es/Toast/elements.d.ts +39 -1512
- package/dist/es/Toast/elements.js +118 -53
- package/dist/es/Toast/index.js +21 -3
- package/dist/es/Toggle/Toggle.d.ts +10 -252
- package/dist/es/Toggle/Toggle.js +87 -32
- package/dist/es/Toggle/index.js +17 -2
- package/dist/es/TooltipPopover/TooltipPopover.js +59 -22
- package/dist/es/TooltipPopover/index.js +17 -2
- package/dist/es/TooltipPopover/useWaitForDOMRef.js +25 -9
- package/dist/es/Tree/NodeContent.js +43 -23
- package/dist/es/Tree/NodeContextMenu.js +29 -11
- package/dist/es/Tree/Tree.js +66 -26
- package/dist/es/Tree/TreeNode.js +40 -16
- package/dist/es/Tree/elements.d.ts +40 -1268
- package/dist/es/Tree/elements.js +80 -31
- package/dist/es/Tree/index.js +38 -20
- package/dist/es/Tree/mockData.js +9 -2
- package/dist/es/UserAvatar/UserAvatar.d.ts +8 -254
- package/dist/es/UserAvatar/UserAvatar.js +62 -30
- package/dist/es/UserAvatar/index.js +17 -2
- package/dist/es/View/View.d.ts +4 -126
- package/dist/es/View/View.js +38 -10
- package/dist/es/View/index.js +17 -2
- package/dist/es/VisuallyHidden/VisuallyHidden.js +60 -19
- package/dist/es/VisuallyHidden/index.js +17 -2
- package/dist/es/VolumeChart/VolumeChart.d.ts +7 -6
- package/dist/es/VolumeChart/VolumeChart.js +55 -34
- package/dist/es/VolumeChart/index.js +17 -2
- package/dist/es/index.d.ts +3 -3
- package/dist/es/index.js +727 -86
- package/dist/es/mixins/border.js +15 -5
- package/dist/es/mixins/color.js +8 -1
- package/dist/es/mixins/index.js +33 -4
- package/dist/es/mixins/spacing.js +8 -1
- package/dist/es/utils/CloseWrapper.js +21 -7
- package/dist/es/utils/cloneElementWithCss.js +14 -6
- package/dist/es/utils/comparison.js +8 -1
- package/dist/es/utils/createChainedFunction.js +7 -1
- package/dist/es/utils/css.d.ts +2 -2
- package/dist/es/utils/css.js +33 -8
- package/dist/es/utils/enzyme.d.ts +0 -1
- package/dist/es/utils/enzyme.js +54 -31
- package/dist/es/utils/form.js +21 -2
- package/dist/es/utils/globalcss.d.ts +1 -1
- package/dist/es/utils/globalcss.js +12 -3
- package/dist/es/utils/hooks.js +33 -11
- package/dist/es/utils/isPropValid.js +14 -4
- package/dist/es/utils/resetcss.d.ts +1 -1
- package/dist/es/utils/resetcss.js +18 -7
- package/package.json +13 -12
- package/types/@emotion/styled.d.ts +0 -8
|
@@ -1,29 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ComparisonChart = ComparisonChart;
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
|
|
9
|
+
var _color = _interopRequireDefault(require("color"));
|
|
10
|
+
|
|
11
|
+
var _react = require("@emotion/react");
|
|
12
|
+
|
|
13
|
+
var _react2 = _interopRequireDefault(require("react"));
|
|
14
|
+
|
|
15
|
+
var _victory = require("victory");
|
|
16
|
+
|
|
17
|
+
var _ChartPrimitives = require("../ChartPrimitives");
|
|
18
|
+
|
|
19
|
+
var _excluded = ["animate", "chartColors", "height", "width", "data", "detailed", "grayscale", "theme", "xTickLabel", "xAxisLabel", "xTickValues", "yTickLabel", "yAxisLabel", "tooltipTitle", "tooltipLabel"];
|
|
20
|
+
|
|
21
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
22
|
+
|
|
23
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
24
|
|
|
6
25
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
7
26
|
|
|
8
27
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
9
28
|
|
|
29
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
30
|
+
|
|
31
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
32
|
+
|
|
33
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
34
|
+
|
|
10
35
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
11
36
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
12
|
-
import Color from 'color';
|
|
13
|
-
import { useTheme, withTheme } from 'emotion-theming';
|
|
14
|
-
import React from 'react';
|
|
15
|
-
import { VictoryAxis, VictoryChart, VictoryGroup, VictoryLine, VictoryPortal, VictoryScatter, VictoryVoronoiContainer } from 'victory';
|
|
16
|
-
import { chartUtils, Container, Defs, Noop, Tooltip } from '../ChartPrimitives';
|
|
17
37
|
|
|
18
38
|
/**
|
|
19
39
|
* Utilizes Victory
|
|
20
40
|
* https://formidable.com/open-source/victory/docs/common-props/
|
|
21
41
|
*/
|
|
22
|
-
|
|
42
|
+
function ComparisonChart(_ref) {
|
|
43
|
+
var _chartTheme$_labelSty;
|
|
44
|
+
|
|
23
45
|
var _ref$animate = _ref.animate,
|
|
24
|
-
animate = _ref$animate === void 0 ? chartUtils.ANIMATE : _ref$animate,
|
|
46
|
+
animate = _ref$animate === void 0 ? _ChartPrimitives.chartUtils.ANIMATE : _ref$animate,
|
|
25
47
|
_ref$chartColors = _ref.chartColors,
|
|
26
|
-
chartColors = _ref$chartColors === void 0 ? chartUtils.DEFAULT_COLORS : _ref$chartColors,
|
|
48
|
+
chartColors = _ref$chartColors === void 0 ? _ChartPrimitives.chartUtils.DEFAULT_COLORS : _ref$chartColors,
|
|
27
49
|
height = _ref.height,
|
|
28
50
|
width = _ref.width,
|
|
29
51
|
data = _ref.data,
|
|
@@ -37,7 +59,7 @@ export function ComparisonChart(_ref) {
|
|
|
37
59
|
yAxisLabel = _ref.yAxisLabel,
|
|
38
60
|
tooltipTitle = _ref.tooltipTitle,
|
|
39
61
|
tooltipLabel = _ref.tooltipLabel,
|
|
40
|
-
props = _objectWithoutProperties(_ref,
|
|
62
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
41
63
|
|
|
42
64
|
// Ensure dimensions are always positive, non-zero, numbers
|
|
43
65
|
// so that Victory doesn't create invalid props when using these
|
|
@@ -47,10 +69,10 @@ export function ComparisonChart(_ref) {
|
|
|
47
69
|
var flatData = data.reduce(function (allData, d) {
|
|
48
70
|
return allData.concat(d);
|
|
49
71
|
}, []);
|
|
50
|
-
var Chart = detailed ? VictoryChart : VictoryGroup;
|
|
51
|
-
var providerTheme = useTheme();
|
|
72
|
+
var Chart = detailed ? _victory.VictoryChart : _victory.VictoryGroup;
|
|
73
|
+
var providerTheme = (0, _react.useTheme)();
|
|
52
74
|
var isV5 = providerTheme.name === 'v5';
|
|
53
|
-
var chartTheme = isV5 ? chartUtils.getV5Theme({
|
|
75
|
+
var chartTheme = isV5 ? _ChartPrimitives.chartUtils.getV5Theme({
|
|
54
76
|
chartColors: chartColors,
|
|
55
77
|
height: height,
|
|
56
78
|
width: width,
|
|
@@ -60,7 +82,7 @@ export function ComparisonChart(_ref) {
|
|
|
60
82
|
yTickLabel: yTickLabel,
|
|
61
83
|
theme: theme,
|
|
62
84
|
grayscale: grayscale
|
|
63
|
-
}) : chartUtils.getTheme({
|
|
85
|
+
}) : _ChartPrimitives.chartUtils.getTheme({
|
|
64
86
|
height: height,
|
|
65
87
|
width: width,
|
|
66
88
|
detailed: detailed,
|
|
@@ -71,13 +93,15 @@ export function ComparisonChart(_ref) {
|
|
|
71
93
|
grayscale: grayscale
|
|
72
94
|
});
|
|
73
95
|
var shouldRenderBackground = isV5 && width > 1 && height > 1;
|
|
74
|
-
|
|
96
|
+
|
|
97
|
+
var minMaxY = _ChartPrimitives.chartUtils.findYMinMax(flatData);
|
|
98
|
+
|
|
75
99
|
var padding = (minMaxY[1] - minMaxY[0]) / 100 * 15;
|
|
76
100
|
var domain = {
|
|
77
101
|
// Add 15% padding to the top and bottom
|
|
78
102
|
y: [minMaxY[0] - padding, minMaxY[1] + padding]
|
|
79
103
|
};
|
|
80
|
-
var labelStyles = [_objectSpread({}, chartTheme._labelStyle[0])];
|
|
104
|
+
var labelStyles = [_objectSpread({}, (_chartTheme$_labelSty = chartTheme._labelStyle) === null || _chartTheme$_labelSty === void 0 ? void 0 : _chartTheme$_labelSty[0])];
|
|
81
105
|
|
|
82
106
|
var getComparisonColor = function getComparisonColor(i) {
|
|
83
107
|
return chartTheme._comparisonColors[i % chartTheme._comparisonColors.length];
|
|
@@ -85,9 +109,11 @@ export function ComparisonChart(_ref) {
|
|
|
85
109
|
|
|
86
110
|
|
|
87
111
|
data.forEach(function (_, i) {
|
|
112
|
+
var _chartTheme$_labelSty2;
|
|
113
|
+
|
|
88
114
|
var color = getComparisonColor(i);
|
|
89
|
-
labelStyles.push(_objectSpread({}, chartTheme._labelStyle[0], {
|
|
90
|
-
fill: isV5 ?
|
|
115
|
+
labelStyles.push(_objectSpread(_objectSpread({}, (_chartTheme$_labelSty2 = chartTheme._labelStyle) === null || _chartTheme$_labelSty2 === void 0 ? void 0 : _chartTheme$_labelSty2[0]), {}, {
|
|
116
|
+
fill: isV5 ? (0, _color["default"])(color).darken(0.4) : color
|
|
91
117
|
}));
|
|
92
118
|
});
|
|
93
119
|
|
|
@@ -105,7 +131,7 @@ export function ComparisonChart(_ref) {
|
|
|
105
131
|
return undefined;
|
|
106
132
|
}
|
|
107
133
|
|
|
108
|
-
var containerComponent = detailed ?
|
|
134
|
+
var containerComponent = detailed ? (0, _react.jsx)(_victory.VictoryVoronoiContainer, {
|
|
109
135
|
"data-gs": gs("src", "comparisonchart", "comparisonchart.tsx", "comparison-chart", "victory-voronoi-container"),
|
|
110
136
|
voronoiDimension: "x" // labels should only be generated when the datum `d.childName.includes('line-')`
|
|
111
137
|
// @ts-ignore: typed to always expect a return string
|
|
@@ -114,27 +140,27 @@ export function ComparisonChart(_ref) {
|
|
|
114
140
|
var datum = _ref2.datum;
|
|
115
141
|
return groupTooltipLabel(datum);
|
|
116
142
|
},
|
|
117
|
-
labelComponent: detailed ?
|
|
143
|
+
labelComponent: detailed ? (0, _react.jsx)(_ChartPrimitives.Tooltip, {
|
|
118
144
|
"data-gs": gs("src", "comparisonchart", "comparisonchart.tsx", "comparison-chart", "victory-voronoi-container", "tooltip"),
|
|
119
145
|
chartHeight: height,
|
|
120
146
|
chartWidth: width,
|
|
121
147
|
isGrouped: true,
|
|
122
148
|
chartTheme: chartTheme,
|
|
123
149
|
labelStyle: labelStyles
|
|
124
|
-
}) :
|
|
150
|
+
}) : (0, _react.jsx)(_ChartPrimitives.Noop, {
|
|
125
151
|
"data-gs": gs("src", "comparisonchart", "comparisonchart.tsx", "comparison-chart", "victory-voronoi-container", "noop")
|
|
126
152
|
})
|
|
127
153
|
}) : undefined;
|
|
128
|
-
return
|
|
154
|
+
return (0, _react.jsx)(_ChartPrimitives.Container, {
|
|
129
155
|
"data-gs": gs("src", "comparisonchart", "comparisonchart.tsx", "comparison-chart", "container"),
|
|
130
156
|
height: height,
|
|
131
157
|
width: width,
|
|
132
158
|
style: {
|
|
133
|
-
filter: grayscale ? Defs.GRAYSCALE : undefined
|
|
159
|
+
filter: grayscale ? _ChartPrimitives.Defs.GRAYSCALE : undefined
|
|
134
160
|
}
|
|
135
|
-
},
|
|
161
|
+
}, (0, _react.jsx)(_ChartPrimitives.Defs, {
|
|
136
162
|
"data-gs": gs("src", "comparisonchart", "comparisonchart.tsx", "comparison-chart", "container", "defs")
|
|
137
|
-
}),
|
|
163
|
+
}), (0, _react.jsx)(Chart, _extends({
|
|
138
164
|
"data-gs": gs("src", "comparisonchart", "comparisonchart.tsx", "comparison-chart", "container", "chart"),
|
|
139
165
|
chartColors: chartColors,
|
|
140
166
|
height: height,
|
|
@@ -144,26 +170,28 @@ export function ComparisonChart(_ref) {
|
|
|
144
170
|
style: shouldRenderBackground ? chartTheme._backgroundStyles : {},
|
|
145
171
|
theme: chartTheme
|
|
146
172
|
}, props), data.map(function (data, i) {
|
|
147
|
-
|
|
173
|
+
var _chartTheme$line, _chartTheme$scatter, _chartTheme$scatter$s;
|
|
174
|
+
|
|
175
|
+
return (0, _react.jsx)(_victory.VictoryPortal, {
|
|
148
176
|
"data-gs": gs("src", "comparisonchart", "comparisonchart.tsx", "comparison-chart", "container", "chart", "victory-portal"),
|
|
149
177
|
key: i
|
|
150
|
-
},
|
|
178
|
+
}, (0, _react.jsx)(_victory.VictoryGroup, {
|
|
151
179
|
"data-gs": gs("src", "comparisonchart", "comparisonchart.tsx", "comparison-chart", "container", "chart", "victory-portal", "victory-group"),
|
|
152
180
|
data: data,
|
|
153
181
|
color: getComparisonColor(i)
|
|
154
|
-
},
|
|
182
|
+
}, (0, _react.jsx)(_victory.VictoryLine, {
|
|
155
183
|
"data-gs": gs("src", "comparisonchart", "comparisonchart.tsx", "comparison-chart", "container", "chart", "victory-portal", "victory-group", "victory-line"),
|
|
156
184
|
interpolation: "monotoneX",
|
|
157
185
|
name: "line-".concat(i),
|
|
158
186
|
animate: animate,
|
|
159
|
-
style: chartTheme.line.style
|
|
160
|
-
}), detailed ?
|
|
187
|
+
style: (_chartTheme$line = chartTheme.line) === null || _chartTheme$line === void 0 ? void 0 : _chartTheme$line.style
|
|
188
|
+
}), detailed ? (0, _react.jsx)(_victory.VictoryScatter, {
|
|
161
189
|
"data-gs-c": gsC("scatters"),
|
|
162
190
|
"data-gs": gs("src", "comparisonchart", "comparisonchart.tsx", "comparison-chart", "container", "chart", "victory-portal", "victory-group", "victory-scatter"),
|
|
163
191
|
name: "scatters",
|
|
164
192
|
data: data,
|
|
165
193
|
style: isV5 ? {
|
|
166
|
-
data: _objectSpread({}, chartTheme.scatter.style.data, {
|
|
194
|
+
data: _objectSpread(_objectSpread({}, (_chartTheme$scatter = chartTheme.scatter) === null || _chartTheme$scatter === void 0 ? void 0 : (_chartTheme$scatter$s = _chartTheme$scatter.style) === null || _chartTheme$scatter$s === void 0 ? void 0 : _chartTheme$scatter$s.data), {}, {
|
|
167
195
|
fill: getComparisonColor(i)
|
|
168
196
|
})
|
|
169
197
|
} : {},
|
|
@@ -172,44 +200,46 @@ export function ComparisonChart(_ref) {
|
|
|
172
200
|
var active = _ref3.active;
|
|
173
201
|
return active ? 5 : 0;
|
|
174
202
|
}
|
|
175
|
-
}) :
|
|
203
|
+
}) : (0, _react.jsx)(_ChartPrimitives.Noop, {
|
|
176
204
|
"data-gs": gs("src", "comparisonchart", "comparisonchart.tsx", "comparison-chart", "container", "chart", "victory-portal", "victory-group", "noop")
|
|
177
205
|
})));
|
|
178
|
-
}), detailed ? [
|
|
206
|
+
}), detailed ? [(0, _react.jsx)(_victory.VictoryAxis, {
|
|
179
207
|
"data-gs": gs("src", "comparisonchart", "comparisonchart.tsx", "comparison-chart", "container", "chart", "victory-axis"),
|
|
180
208
|
animate: animate,
|
|
181
209
|
key: "xaxis",
|
|
182
|
-
axisComponent:
|
|
210
|
+
axisComponent: (0, _react.jsx)(_ChartPrimitives.Noop, {
|
|
183
211
|
"data-gs": gs("src", "comparisonchart", "comparisonchart.tsx", "comparison-chart", "container", "chart", "victory-axis", "noop")
|
|
184
212
|
}),
|
|
185
213
|
fixLabelOverlap: true,
|
|
186
214
|
tickValues: xTickValues,
|
|
187
215
|
tickFormat: xTickLabel,
|
|
188
216
|
label: xAxisLabel
|
|
189
|
-
}),
|
|
217
|
+
}), (0, _react.jsx)(_victory.VictoryAxis, {
|
|
190
218
|
"data-gs": gs("src", "comparisonchart", "comparisonchart.tsx", "comparison-chart", "container", "chart", "victory-axis"),
|
|
191
219
|
animate: animate,
|
|
192
220
|
key: "yaxis",
|
|
193
|
-
axisComponent:
|
|
221
|
+
axisComponent: (0, _react.jsx)(_ChartPrimitives.Noop, {
|
|
194
222
|
"data-gs": gs("src", "comparisonchart", "comparisonchart.tsx", "comparison-chart", "container", "chart", "victory-axis", "noop")
|
|
195
223
|
}),
|
|
196
224
|
dependentAxis: true,
|
|
197
225
|
tickFormat: yTickLabel,
|
|
198
226
|
label: yAxisLabel
|
|
199
|
-
})] :
|
|
227
|
+
})] : (0, _react.jsx)(_ChartPrimitives.Noop, {
|
|
200
228
|
"data-gs": gs("src", "comparisonchart", "comparisonchart.tsx", "comparison-chart", "container", "chart", "noop"),
|
|
201
229
|
key: "noop"
|
|
202
230
|
})));
|
|
203
231
|
}
|
|
232
|
+
|
|
204
233
|
ComparisonChart.defaultProps = {
|
|
205
|
-
xTickLabel: chartUtils.dateTickLabel(),
|
|
234
|
+
xTickLabel: _ChartPrimitives.chartUtils.dateTickLabel(),
|
|
206
235
|
tooltipTitle: function tooltipTitle(d) {
|
|
207
|
-
return chartUtils.dateTickLabel()(d.x);
|
|
236
|
+
return _ChartPrimitives.chartUtils.dateTickLabel()(d.x);
|
|
208
237
|
},
|
|
209
238
|
tooltipLabel: function tooltipLabel(d) {
|
|
210
239
|
return "".concat(d.y, " Profiles");
|
|
211
240
|
}
|
|
212
241
|
};
|
|
213
|
-
var ThemedChart = withTheme(ComparisonChart);
|
|
242
|
+
var ThemedChart = (0, _react.withTheme)(ComparisonChart);
|
|
214
243
|
ThemedChart.displayName = 'ComparisonChart';
|
|
215
|
-
|
|
244
|
+
var _default = ThemedChart;
|
|
245
|
+
exports["default"] = _default;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.argTypesForStories = void 0;
|
|
1
7
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
2
8
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
3
|
-
|
|
9
|
+
var argTypesForStories = {
|
|
4
10
|
backgroundComponent: {
|
|
5
11
|
control: false
|
|
6
12
|
},
|
|
@@ -67,4 +73,5 @@ export var argTypesForStories = {
|
|
|
67
73
|
singleQuadrantDomainPadding: {
|
|
68
74
|
control: false
|
|
69
75
|
}
|
|
70
|
-
};
|
|
76
|
+
};
|
|
77
|
+
exports.argTypesForStories = argTypesForStories;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _ComparisonChart["default"];
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
var _ComparisonChart = _interopRequireDefault(require("./ComparisonChart"));
|
|
14
|
+
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
16
|
+
|
|
1
17
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
2
|
-
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
3
|
-
export { default } from './ComparisonChart';
|
|
18
|
+
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
@@ -1,8 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _cloneElementWithCss = _interopRequireDefault(require("../utils/cloneElementWithCss"));
|
|
13
|
+
|
|
14
|
+
var _react2 = require("@emotion/react");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
19
|
+
|
|
20
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
+
|
|
2
22
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
3
23
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
4
|
-
import React, { Children } from 'react';
|
|
5
|
-
import cloneElementWithCss from '../utils/cloneElementWithCss';
|
|
6
24
|
|
|
7
25
|
var marginLeftStyle = function marginLeftStyle(_ref) {
|
|
8
26
|
var index = _ref.index,
|
|
@@ -17,19 +35,22 @@ var marginLeftStyle = function marginLeftStyle(_ref) {
|
|
|
17
35
|
var ComponentGroup = function ComponentGroup(_ref2) {
|
|
18
36
|
var children = _ref2.children,
|
|
19
37
|
spaceBetween = _ref2.spaceBetween;
|
|
20
|
-
|
|
38
|
+
|
|
39
|
+
var mappedChildren = _react.Children.map(children, function (child, index) {
|
|
21
40
|
if (!child) {
|
|
22
41
|
return null;
|
|
23
42
|
}
|
|
24
43
|
|
|
25
|
-
return
|
|
44
|
+
return (0, _cloneElementWithCss["default"])(child, {
|
|
26
45
|
css: marginLeftStyle({
|
|
27
46
|
index: index,
|
|
28
47
|
spaceBetween: spaceBetween
|
|
29
48
|
})
|
|
30
49
|
});
|
|
31
50
|
});
|
|
32
|
-
|
|
51
|
+
|
|
52
|
+
return (0, _react2.jsx)(_react["default"].Fragment, null, mappedChildren);
|
|
33
53
|
};
|
|
34
54
|
|
|
35
|
-
|
|
55
|
+
var _default = ComponentGroup;
|
|
56
|
+
exports["default"] = _default;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _ComponentGroup["default"];
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
var _ComponentGroup = _interopRequireDefault(require("./ComponentGroup"));
|
|
14
|
+
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
16
|
+
|
|
1
17
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
2
|
-
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
3
|
-
export { default } from './ComponentGroup';
|
|
18
|
+
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|