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
package/.babelrc.js
CHANGED
|
@@ -1,34 +1,19 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
+
presets: [
|
|
3
|
+
'@babel/preset-react',
|
|
4
|
+
['@babel/preset-env'],
|
|
5
|
+
'@emotion/babel-preset-css-prop',
|
|
6
|
+
'@babel/preset-typescript'
|
|
7
|
+
],
|
|
2
8
|
// babel-preset-css-prop needs to be inserted after both overrides:
|
|
3
9
|
// https://emotion.sh/docs/@emotion/babel-preset-css-prop
|
|
4
|
-
overrides: [
|
|
5
|
-
{
|
|
6
|
-
test: ['./**/*.js'],
|
|
7
|
-
presets: [
|
|
8
|
-
['react-app', { absoluteRuntime: false, typescript: false }],
|
|
9
|
-
['@emotion/babel-preset-css-prop']
|
|
10
|
-
]
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
test: [
|
|
14
|
-
'./src/**/*.ts',
|
|
15
|
-
'./src/**/*.tsx',
|
|
16
|
-
'./docs/**/*.ts',
|
|
17
|
-
'./docs/**/*.tsx'
|
|
18
|
-
],
|
|
19
|
-
presets: [
|
|
20
|
-
['react-app', { absoluteRuntime: false, typescript: true }],
|
|
21
|
-
['@emotion/babel-preset-css-prop']
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
10
|
plugins: [
|
|
26
11
|
'babel-plugin-autoinstrument',
|
|
27
|
-
'@babel/plugin-transform-typescript',
|
|
28
12
|
'@babel/plugin-proposal-class-properties',
|
|
29
13
|
'@babel/plugin-proposal-optional-chaining',
|
|
30
14
|
'@babel/plugin-proposal-nullish-coalescing-operator'
|
|
31
|
-
]
|
|
15
|
+
],
|
|
16
|
+
overrides: []
|
|
32
17
|
}
|
|
33
18
|
|
|
34
19
|
// hack to prevent dangerjs from using the same babel config as our build step
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
# [25.2.0](https://github.com/treasure-data/td-stylekit/compare/v25.1.0...v25.2.0) (2022-02-03)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **CON-9200:** Add more Marketplace icons ([#1222](https://github.com/treasure-data/td-stylekit/issues/1222)) ([3d93e2b](https://github.com/treasure-data/td-stylekit/commit/3d93e2b))
|
|
7
|
+
|
|
8
|
+
# [25.1.0](https://github.com/treasure-data/td-stylekit/compare/v25.0.0...v25.1.0) (2022-01-27)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* Fix emotion export ([#1221](https://github.com/treasure-data/td-stylekit/issues/1221)) ([88d6e30](https://github.com/treasure-data/td-stylekit/commit/88d6e30))
|
|
14
|
+
|
|
15
|
+
# [25.0.0](https://github.com/treasure-data/td-stylekit/compare/v24.8.1...v25.0.0) (2022-01-25)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **CON-8887:** Upgrade Emotion to v11 ([#1212](https://github.com/treasure-data/td-stylekit/issues/1212)) ([08f8377](https://github.com/treasure-data/td-stylekit/commit/08f8377))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### BREAKING CHANGES
|
|
24
|
+
|
|
25
|
+
* **CON-8887:** Typescript consumers will have to update the typing for useTheme and some styled components might have broken types. In Tests using Enzyme, simulate calls need to be performed on the raw html element.
|
|
26
|
+
|
|
27
|
+
Co-authored-by: Bert Froeba <bert.froeba@treasure-data.com>
|
|
28
|
+
|
|
29
|
+
## [24.8.1](https://github.com/treasure-data/td-stylekit/compare/v24.8.0...v24.8.1) (2022-01-21)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* **CON-9130:** Added dark version of the TD Logo ([#1214](https://github.com/treasure-data/td-stylekit/issues/1214)) ([4d58762](https://github.com/treasure-data/td-stylekit/commit/4d58762))
|
|
35
|
+
|
|
1
36
|
# [24.8.0](https://github.com/treasure-data/td-stylekit/compare/v24.7.0...v24.8.0) (2022-01-14)
|
|
2
37
|
|
|
3
38
|
|
|
@@ -1,38 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = exports.IconButtonLink = exports.ActionBar = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _components = require("./components");
|
|
11
|
+
|
|
12
|
+
var _react2 = require("@emotion/react");
|
|
13
|
+
|
|
14
|
+
var _excluded = ["renderContainer", "children"];
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
5
17
|
|
|
6
18
|
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
19
|
|
|
8
20
|
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
21
|
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
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); }
|
|
25
|
+
|
|
26
|
+
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; }
|
|
27
|
+
|
|
28
|
+
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; }
|
|
29
|
+
|
|
10
30
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
11
31
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export var IconButtonLink = function IconButtonLink(_ref) {
|
|
32
|
+
|
|
33
|
+
var IconButtonLink = function IconButtonLink(_ref) {
|
|
15
34
|
var _ref$renderContainer = _ref.renderContainer,
|
|
16
35
|
renderContainer = _ref$renderContainer === void 0 ? function (props) {
|
|
17
|
-
return
|
|
36
|
+
return (0, _react2.jsx)(_components.IconButton, _extends({
|
|
18
37
|
"data-gs": gs("src", "actionbar", "actionbar.tsx", "icon-button")
|
|
19
38
|
}, props));
|
|
20
39
|
} : _ref$renderContainer,
|
|
21
40
|
children = _ref.children,
|
|
22
|
-
props = _objectWithoutProperties(_ref,
|
|
41
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
23
42
|
|
|
24
43
|
return renderContainer(_objectSpread({
|
|
25
44
|
children: children
|
|
26
45
|
}, props));
|
|
27
46
|
};
|
|
28
47
|
|
|
48
|
+
exports.IconButtonLink = IconButtonLink;
|
|
49
|
+
|
|
29
50
|
var createActionItem = function createActionItem(item, index, dataInstrumentation) {
|
|
30
51
|
if (item.hidden || item.visibility === 'menu') {
|
|
31
52
|
return null;
|
|
32
53
|
}
|
|
33
54
|
|
|
34
55
|
var Icon = item.iconComponent;
|
|
35
|
-
return
|
|
56
|
+
return (0, _react2.jsx)(_components.IconButton, {
|
|
36
57
|
"data-gs-c": gsC(item.tooltip),
|
|
37
58
|
"data-gs": gs("src", "actionbar", "actionbar.tsx", "icon-button"),
|
|
38
59
|
key: index,
|
|
@@ -42,12 +63,12 @@ var createActionItem = function createActionItem(item, index, dataInstrumentatio
|
|
|
42
63
|
icon: !item.label || Icon && item.iconOnly,
|
|
43
64
|
disabled: item.disabled,
|
|
44
65
|
onClick: item.onClick
|
|
45
|
-
}, Icon ?
|
|
66
|
+
}, Icon ? (0, _react2.jsx)(Icon, {
|
|
46
67
|
"data-gs": gs("src", "actionbar", "actionbar.tsx", "icon-button", "icon")
|
|
47
68
|
}) : null, item.label && !item.iconOnly ? item.label : null);
|
|
48
69
|
};
|
|
49
70
|
|
|
50
|
-
|
|
71
|
+
var ActionBar = function ActionBar(props) {
|
|
51
72
|
var records = props.records,
|
|
52
73
|
actions = props.actions,
|
|
53
74
|
menu = props.menu,
|
|
@@ -55,15 +76,15 @@ export var ActionBar = function ActionBar(props) {
|
|
|
55
76
|
menuLabel = _props$menuLabel === void 0 ? 'More Menu Items' : _props$menuLabel,
|
|
56
77
|
children = props.children,
|
|
57
78
|
dataInstrumentation = props['data-instrumentation'];
|
|
58
|
-
return
|
|
79
|
+
return (0, _react2.jsx)(_components.Container, {
|
|
59
80
|
"data-gs": gs("src", "actionbar", "actionbar.tsx", "container"),
|
|
60
81
|
"data-instrumentation": "".concat(dataInstrumentation, "-container")
|
|
61
|
-
},
|
|
82
|
+
}, (0, _react2.jsx)(_components.Prefix, {
|
|
62
83
|
"data-gs": gs("src", "actionbar", "actionbar.tsx", "container", "prefix"),
|
|
63
84
|
records: records
|
|
64
85
|
}), actions === null || actions === void 0 ? void 0 : actions.map(function (item, index) {
|
|
65
86
|
return createActionItem(item, index, dataInstrumentation || 'actionbar');
|
|
66
|
-
}), children,
|
|
87
|
+
}), children, (0, _react2.jsx)(_components.ActionMenu, {
|
|
67
88
|
"data-gs": gs("src", "actionbar", "actionbar.tsx", "container", "action-menu"),
|
|
68
89
|
actions: actions,
|
|
69
90
|
hidden: menu === false,
|
|
@@ -71,11 +92,14 @@ export var ActionBar = function ActionBar(props) {
|
|
|
71
92
|
menuLabel: menuLabel
|
|
72
93
|
}));
|
|
73
94
|
};
|
|
95
|
+
|
|
96
|
+
exports.ActionBar = ActionBar;
|
|
74
97
|
ActionBar.displayName = 'ActionBar';
|
|
75
|
-
ActionBar.Button = IconButton;
|
|
98
|
+
ActionBar.Button = _components.IconButton;
|
|
76
99
|
ActionBar.ButtonLink = IconButtonLink;
|
|
77
|
-
ActionBar.Menu = ActionMenu;
|
|
100
|
+
ActionBar.Menu = _components.ActionMenu;
|
|
78
101
|
ActionBar.defaultProps = {
|
|
79
102
|
'data-instrumentation': 'actionbar'
|
|
80
103
|
};
|
|
81
|
-
|
|
104
|
+
var _default = ActionBar;
|
|
105
|
+
exports["default"] = _default;
|
|
@@ -1,19 +1,41 @@
|
|
|
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.ActionMenu = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _IconButton = require("./IconButton");
|
|
13
|
+
|
|
14
|
+
var _Menu = _interopRequireDefault(require("../../Menu"));
|
|
15
|
+
|
|
16
|
+
var _Icon = _interopRequireDefault(require("../../Icon"));
|
|
17
|
+
|
|
18
|
+
var _TooltipPopover = _interopRequireDefault(require("../../TooltipPopover"));
|
|
19
|
+
|
|
20
|
+
var _VisuallyHidden = _interopRequireDefault(require("../../VisuallyHidden"));
|
|
21
|
+
|
|
22
|
+
var _react2 = require("@emotion/react");
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
27
|
+
|
|
28
|
+
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; }
|
|
29
|
+
|
|
2
30
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
3
31
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
4
|
-
import React, { useRef } from 'react';
|
|
5
|
-
import { IconButton } from './IconButton';
|
|
6
|
-
import Menu from '../../Menu';
|
|
7
|
-
import Icon from '../../Icon';
|
|
8
|
-
import TooltipPopover from '../../TooltipPopover';
|
|
9
|
-
import VisuallyHidden from '../../VisuallyHidden';
|
|
10
32
|
|
|
11
33
|
var createMenuItem = function createMenuItem(item, index, dataInstrumentation) {
|
|
12
34
|
if (item.hidden || item.visibility === 'bar' || !item.label) {
|
|
13
35
|
return null;
|
|
14
36
|
}
|
|
15
37
|
|
|
16
|
-
return
|
|
38
|
+
return (0, _react2.jsx)(_Menu["default"].MenuItem, {
|
|
17
39
|
"data-gs-c": gsC(item.label),
|
|
18
40
|
"data-gs": gs("src", "actionbar", "components", "menu-menuitem"),
|
|
19
41
|
key: index,
|
|
@@ -23,18 +45,18 @@ var createMenuItem = function createMenuItem(item, index, dataInstrumentation) {
|
|
|
23
45
|
}, item.label);
|
|
24
46
|
};
|
|
25
47
|
|
|
26
|
-
|
|
48
|
+
var ActionMenu = function ActionMenu(props) {
|
|
27
49
|
var _props$actions;
|
|
28
50
|
|
|
29
|
-
var ref = useRef(null);
|
|
51
|
+
var ref = (0, _react.useRef)(null);
|
|
30
52
|
|
|
31
53
|
if (props.hidden || props.actions === undefined && !props.children) {
|
|
32
54
|
return null;
|
|
33
55
|
}
|
|
34
56
|
|
|
35
|
-
var DropdownIcon = props.icon ||
|
|
36
|
-
return
|
|
37
|
-
"data-gs-c": gsC(props.children ?
|
|
57
|
+
var DropdownIcon = props.icon || _Icon["default"].Medium.More;
|
|
58
|
+
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_TooltipPopover["default"], {
|
|
59
|
+
"data-gs-c": gsC(props.children ? (0, _react2.jsx)(_react["default"].Fragment, null, props.children) : (0, _react2.jsx)(_Menu["default"], {
|
|
38
60
|
"data-gs-c": gsC((_props$actions = props.actions) === null || _props$actions === void 0 ? void 0 : _props$actions.map(function (item, index) {
|
|
39
61
|
return createMenuItem(item, index, props['data-instrumentation']);
|
|
40
62
|
})),
|
|
@@ -47,24 +69,26 @@ export var ActionMenu = function ActionMenu(props) {
|
|
|
47
69
|
placement: "bottom",
|
|
48
70
|
target: ref,
|
|
49
71
|
trigger: "click"
|
|
50
|
-
}, props.children ?
|
|
72
|
+
}, props.children ? (0, _react2.jsx)(_react["default"].Fragment, null, props.children) : (0, _react2.jsx)(_Menu["default"], {
|
|
51
73
|
"data-gs-c": gsC((_props$actions = props.actions) === null || _props$actions === void 0 ? void 0 : _props$actions.map(function (item, index) {
|
|
52
74
|
return createMenuItem(item, index, props['data-instrumentation']);
|
|
53
75
|
})),
|
|
54
76
|
"data-gs": gs("src", "actionbar", "components", "tooltip-popover", "menu")
|
|
55
77
|
}, _props$actions.map(function (item, index) {
|
|
56
78
|
return createMenuItem(item, index, props['data-instrumentation']);
|
|
57
|
-
}))),
|
|
79
|
+
}))), (0, _react2.jsx)(_IconButton.IconButton, {
|
|
58
80
|
"data-gs-c": gsC("dropdownicon"),
|
|
59
81
|
"data-gs": gs("src", "actionbar", "components", "icon-button"),
|
|
60
82
|
icon: true,
|
|
61
83
|
"data-instrumentation": "".concat(props['data-instrumentation'], "-more"),
|
|
62
84
|
ref: ref
|
|
63
|
-
},
|
|
85
|
+
}, (0, _react2.jsx)(_VisuallyHidden["default"], {
|
|
64
86
|
"data-gs-c": gsC(props.menuLabel),
|
|
65
87
|
"data-gs": gs("src", "actionbar", "components", "icon-button", "visually-hidden")
|
|
66
|
-
}, props.menuLabel),
|
|
88
|
+
}, props.menuLabel), (0, _react2.jsx)(DropdownIcon, {
|
|
67
89
|
"data-gs": gs("src", "actionbar", "components", "icon-button", "dropdown-icon")
|
|
68
90
|
})));
|
|
69
91
|
};
|
|
92
|
+
|
|
93
|
+
exports.ActionMenu = ActionMenu;
|
|
70
94
|
ActionMenu.displayName = 'ActionMenu';
|
|
@@ -1,128 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
success: string[];
|
|
7
|
-
warning: string[];
|
|
8
|
-
error: string[];
|
|
9
|
-
primary: string[];
|
|
10
|
-
secondary: string[];
|
|
11
|
-
neutral: string[];
|
|
12
|
-
};
|
|
13
|
-
readonly fontFamily: {
|
|
14
|
-
body: string;
|
|
15
|
-
monospace: string;
|
|
16
|
-
};
|
|
17
|
-
readonly fontSize: string[];
|
|
18
|
-
readonly lineHeight: number[];
|
|
19
|
-
readonly radius: string[];
|
|
20
|
-
readonly borderWidth: string[];
|
|
21
|
-
readonly grid: number[];
|
|
22
|
-
readonly shadows: {
|
|
23
|
-
small: string;
|
|
24
|
-
big: string;
|
|
25
|
-
pill: string;
|
|
26
|
-
bigCentered: string;
|
|
27
|
-
popover: string;
|
|
28
|
-
secondaryNavActiveItem: string;
|
|
29
|
-
};
|
|
30
|
-
readonly sizes: {
|
|
31
|
-
PageHeaderIcon: number;
|
|
32
|
-
};
|
|
33
|
-
readonly zIndex: {
|
|
34
|
-
Base: number;
|
|
35
|
-
Overlay: number;
|
|
36
|
-
FormControl: number;
|
|
37
|
-
SecondaryNav: number;
|
|
38
|
-
SecondaryNavActiveItem: number;
|
|
39
|
-
PrimaryNav: number;
|
|
40
|
-
PopOver: number;
|
|
41
|
-
PageHeaderSearch: number;
|
|
42
|
-
Modal: number;
|
|
43
|
-
Tether: number;
|
|
44
|
-
GlobalNav: number;
|
|
45
|
-
Toast: number;
|
|
46
|
-
};
|
|
47
|
-
readonly color: {
|
|
48
|
-
Dune: string;
|
|
49
|
-
CuriousBlue: string;
|
|
50
|
-
FlushMahogany: string;
|
|
51
|
-
Maroon: string;
|
|
52
|
-
PinkSwan: string;
|
|
53
|
-
Matisse: string;
|
|
54
|
-
HummingBird: string;
|
|
55
|
-
Primary: string;
|
|
56
|
-
PrimaryContrast: string;
|
|
57
|
-
PrimaryFade: string;
|
|
58
|
-
PrimaryLight: string;
|
|
59
|
-
PrimaryLightFade: string;
|
|
60
|
-
PrimaryLightHighlight: string;
|
|
61
|
-
PrimaryAccent: string;
|
|
62
|
-
DarkBackground: string;
|
|
63
|
-
DarkBar: string;
|
|
64
|
-
DarkHover: string;
|
|
65
|
-
DarkPrimary: string;
|
|
66
|
-
DarkSecondary: string;
|
|
67
|
-
LightBackground: string;
|
|
68
|
-
LightBar: string;
|
|
69
|
-
LightDisabled: string;
|
|
70
|
-
LightDivider: string;
|
|
71
|
-
LightDividerNew: string;
|
|
72
|
-
LightHint: string;
|
|
73
|
-
LightHover: string;
|
|
74
|
-
LightPrimary: string;
|
|
75
|
-
LightSecondary: string;
|
|
76
|
-
BorderGrey: string;
|
|
77
|
-
Blue: string;
|
|
78
|
-
BlueFade: string;
|
|
79
|
-
Green: string;
|
|
80
|
-
GreenFade: string;
|
|
81
|
-
GreenBackground: string;
|
|
82
|
-
Red: string;
|
|
83
|
-
RedFade: string;
|
|
84
|
-
Yellow: string;
|
|
85
|
-
YellowFade: string;
|
|
86
|
-
YellowHighlight: string;
|
|
87
|
-
Orange: string;
|
|
88
|
-
OrangeFill: string;
|
|
89
|
-
OrangeBackground: string;
|
|
90
|
-
Error: string;
|
|
91
|
-
ErrorFade: string;
|
|
92
|
-
ErrorBackground: string;
|
|
93
|
-
DraggableDraggingBackground: string;
|
|
94
|
-
Aquamarine: string;
|
|
95
|
-
Azure: string;
|
|
96
|
-
AzureNew: string;
|
|
97
|
-
AzureFade: string;
|
|
98
|
-
AzureHighlight: string;
|
|
99
|
-
Silver: string;
|
|
100
|
-
BlueNavy: string;
|
|
101
|
-
Black: string;
|
|
102
|
-
TurquoiseBlue: string;
|
|
103
|
-
SummerSky: string;
|
|
104
|
-
Mondo: string;
|
|
105
|
-
HeavyMetal: string;
|
|
106
|
-
BokaraGrey: string;
|
|
107
|
-
Cyan: string;
|
|
108
|
-
Eucalyptus: string;
|
|
109
|
-
Flamingo: string;
|
|
110
|
-
Zorba: string;
|
|
111
|
-
Flint: string;
|
|
112
|
-
Maya: string;
|
|
113
|
-
Bondi: string;
|
|
114
|
-
Emerald: string;
|
|
115
|
-
Carissma: string;
|
|
116
|
-
Solitude: string;
|
|
117
|
-
WhiteSmoke: string;
|
|
118
|
-
Violet: string;
|
|
119
|
-
FireBrick: string;
|
|
120
|
-
Purple: string;
|
|
121
|
-
Buckthorn: string;
|
|
122
|
-
};
|
|
123
|
-
readonly gradient: {
|
|
124
|
-
main: string;
|
|
125
|
-
neutral: string;
|
|
126
|
-
};
|
|
127
|
-
}>;
|
|
2
|
+
export declare const Container: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
128
6
|
//# sourceMappingURL=Container.d.ts.map
|
|
@@ -1,9 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Container = void 0;
|
|
7
|
+
|
|
8
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
9
|
+
|
|
10
|
+
var _color = _interopRequireDefault(require("color"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
|
|
2
14
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
3
15
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
4
|
-
|
|
5
|
-
export var Container = /*#__PURE__*/_styled('div', {
|
|
16
|
+
var Container = ( /*#__PURE__*/0, _base["default"])('div', process.env.NODE_ENV === "production" ? {
|
|
6
17
|
target: "e5g4ckp0"
|
|
18
|
+
} : {
|
|
19
|
+
target: "e5g4ckp0",
|
|
20
|
+
label: "Container"
|
|
7
21
|
})(function (_ref) {
|
|
8
22
|
var theme = _ref.theme;
|
|
9
23
|
return {
|
|
@@ -11,11 +25,12 @@ export var Container = /*#__PURE__*/_styled('div', {
|
|
|
11
25
|
backgroundColor: theme.palette.primary[0],
|
|
12
26
|
border: "".concat(theme.borderWidth[1], " solid ").concat(theme.palette.primary[2]),
|
|
13
27
|
boxSizing: 'border-box',
|
|
14
|
-
boxShadow: "0px ".concat(theme.borderWidth[3], " ").concat(theme.borderWidth[3], " ").concat(
|
|
28
|
+
boxShadow: "0px ".concat(theme.borderWidth[3], " ").concat(theme.borderWidth[3], " ").concat((0, _color["default"])(theme.palette.neutral[3]).alpha(0.3).string()),
|
|
15
29
|
borderRadius: 100,
|
|
16
30
|
display: 'flex',
|
|
17
31
|
flexDirection: 'row',
|
|
18
32
|
padding: "".concat(theme.space[1], " ").concat(theme.space[4], " ").concat(theme.space[1], " ").concat(theme.space[4]),
|
|
19
33
|
alignItems: 'center'
|
|
20
34
|
};
|
|
21
|
-
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9BY3Rpb25CYXIvY29tcG9uZW50cy9Db250YWluZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUd5QiIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMvQWN0aW9uQmFyL2NvbXBvbmVudHMvQ29udGFpbmVyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuaW1wb3J0IGNvbG9yIGZyb20gJ2NvbG9yJ1xuXG5leHBvcnQgY29uc3QgQ29udGFpbmVyID0gc3R5bGVkKCdkaXYnKSgoeyB0aGVtZSB9KSA9PiAoe1xuICBoZWlnaHQ6IDQ4LFxuICBiYWNrZ3JvdW5kQ29sb3I6IHRoZW1lLnBhbGV0dGUucHJpbWFyeVswXSxcbiAgYm9yZGVyOiBgJHt0aGVtZS5ib3JkZXJXaWR0aFsxXX0gc29saWQgJHt0aGVtZS5wYWxldHRlLnByaW1hcnlbMl19YCxcbiAgYm94U2l6aW5nOiAnYm9yZGVyLWJveCcsXG4gIGJveFNoYWRvdzogYDBweCAke3RoZW1lLmJvcmRlcldpZHRoWzNdfSAke3RoZW1lLmJvcmRlcldpZHRoWzNdfSAke2NvbG9yKFxuICAgIHRoZW1lLnBhbGV0dGUubmV1dHJhbFszXVxuICApXG4gICAgLmFscGhhKDAuMylcbiAgICAuc3RyaW5nKCl9YCxcbiAgYm9yZGVyUmFkaXVzOiAxMDAsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgZmxleERpcmVjdGlvbjogJ3JvdycsXG4gIHBhZGRpbmc6IGAke3RoZW1lLnNwYWNlWzFdfSAke3RoZW1lLnNwYWNlWzRdfSAke3RoZW1lLnNwYWNlWzFdfSAke3RoZW1lLnNwYWNlWzRdfWAsXG4gIGFsaWduSXRlbXM6ICdjZW50ZXInXG59KSlcbiJdfQ== */");
|
|
35
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9BY3Rpb25CYXIvY29tcG9uZW50cy9Db250YWluZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUd5QiIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMvQWN0aW9uQmFyL2NvbXBvbmVudHMvQ29udGFpbmVyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuaW1wb3J0IGNvbG9yIGZyb20gJ2NvbG9yJ1xuXG5leHBvcnQgY29uc3QgQ29udGFpbmVyID0gc3R5bGVkKCdkaXYnKSgoeyB0aGVtZSB9KSA9PiAoe1xuICBoZWlnaHQ6IDQ4LFxuICBiYWNrZ3JvdW5kQ29sb3I6IHRoZW1lLnBhbGV0dGUucHJpbWFyeVswXSxcbiAgYm9yZGVyOiBgJHt0aGVtZS5ib3JkZXJXaWR0aFsxXX0gc29saWQgJHt0aGVtZS5wYWxldHRlLnByaW1hcnlbMl19YCxcbiAgYm94U2l6aW5nOiAnYm9yZGVyLWJveCcsXG4gIGJveFNoYWRvdzogYDBweCAke3RoZW1lLmJvcmRlcldpZHRoWzNdfSAke3RoZW1lLmJvcmRlcldpZHRoWzNdfSAke2NvbG9yKFxuICAgIHRoZW1lLnBhbGV0dGUubmV1dHJhbFszXVxuICApXG4gICAgLmFscGhhKDAuMylcbiAgICAuc3RyaW5nKCl9YCxcbiAgYm9yZGVyUmFkaXVzOiAxMDAsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgZmxleERpcmVjdGlvbjogJ3JvdycsXG4gIHBhZGRpbmc6IGAke3RoZW1lLnNwYWNlWzFdfSAke3RoZW1lLnNwYWNlWzRdfSAke3RoZW1lLnNwYWNlWzFdfSAke3RoZW1lLnNwYWNlWzRdfWAsXG4gIGFsaWduSXRlbXM6ICdjZW50ZXInXG59KSlcbiJdfQ== */");
|
|
36
|
+
exports.Container = Container;
|
|
@@ -1,138 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
2
|
+
export declare const IconButton: import("@emotion/styled").StyledComponent<Partial<import("../../Button").UnstyledButtonProps> & import("react").RefAttributes<import("../../Button").UnstyledButton> & {
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
} & Omit<Partial<import("../../Button").UnstyledButtonProps> & import("react").RefAttributes<import("../../Button").UnstyledButton>, "small" | "circle" | "plain" | "primary" | "borderless" | "borderlessAlt" | "danger" | "dangerAlt" | "component"> & {
|
|
5
5
|
/** Accent color */
|
|
6
|
-
accent?: string;
|
|
6
|
+
accent?: string | undefined;
|
|
7
7
|
/** The hover background color. */
|
|
8
|
-
hoverBackgroundColor?: string;
|
|
8
|
+
hoverBackgroundColor?: string | undefined;
|
|
9
9
|
/** The hover foreground color. */
|
|
10
|
-
hoverForegroundColor?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const IconButton: import("@emotion/styled-base").StyledComponent<Partial<import("../../Button").UnstyledButtonProps> & import("react").RefAttributes<import("../../Button").UnstyledButton>, IconButtonProps, {
|
|
13
|
-
readonly space: string[];
|
|
14
|
-
readonly palette: {
|
|
15
|
-
success: string[];
|
|
16
|
-
warning: string[];
|
|
17
|
-
error: string[];
|
|
18
|
-
primary: string[];
|
|
19
|
-
secondary: string[];
|
|
20
|
-
neutral: string[];
|
|
21
|
-
};
|
|
22
|
-
readonly fontFamily: {
|
|
23
|
-
body: string;
|
|
24
|
-
monospace: string;
|
|
25
|
-
};
|
|
26
|
-
readonly fontSize: string[];
|
|
27
|
-
readonly lineHeight: number[];
|
|
28
|
-
readonly radius: string[];
|
|
29
|
-
readonly borderWidth: string[];
|
|
30
|
-
readonly grid: number[];
|
|
31
|
-
readonly shadows: {
|
|
32
|
-
small: string;
|
|
33
|
-
big: string;
|
|
34
|
-
pill: string;
|
|
35
|
-
bigCentered: string;
|
|
36
|
-
popover: string;
|
|
37
|
-
secondaryNavActiveItem: string;
|
|
38
|
-
};
|
|
39
|
-
readonly sizes: {
|
|
40
|
-
PageHeaderIcon: number;
|
|
41
|
-
};
|
|
42
|
-
readonly zIndex: {
|
|
43
|
-
Base: number;
|
|
44
|
-
Overlay: number;
|
|
45
|
-
FormControl: number;
|
|
46
|
-
SecondaryNav: number;
|
|
47
|
-
SecondaryNavActiveItem: number;
|
|
48
|
-
PrimaryNav: number;
|
|
49
|
-
PopOver: number;
|
|
50
|
-
PageHeaderSearch: number;
|
|
51
|
-
Modal: number;
|
|
52
|
-
Tether: number;
|
|
53
|
-
GlobalNav: number;
|
|
54
|
-
Toast: number;
|
|
55
|
-
};
|
|
56
|
-
readonly color: {
|
|
57
|
-
Dune: string;
|
|
58
|
-
CuriousBlue: string;
|
|
59
|
-
FlushMahogany: string;
|
|
60
|
-
Maroon: string;
|
|
61
|
-
PinkSwan: string;
|
|
62
|
-
Matisse: string;
|
|
63
|
-
HummingBird: string;
|
|
64
|
-
Primary: string;
|
|
65
|
-
PrimaryContrast: string;
|
|
66
|
-
PrimaryFade: string;
|
|
67
|
-
PrimaryLight: string;
|
|
68
|
-
PrimaryLightFade: string;
|
|
69
|
-
PrimaryLightHighlight: string;
|
|
70
|
-
PrimaryAccent: string;
|
|
71
|
-
DarkBackground: string;
|
|
72
|
-
DarkBar: string;
|
|
73
|
-
DarkHover: string;
|
|
74
|
-
DarkPrimary: string;
|
|
75
|
-
DarkSecondary: string;
|
|
76
|
-
LightBackground: string;
|
|
77
|
-
LightBar: string;
|
|
78
|
-
LightDisabled: string;
|
|
79
|
-
LightDivider: string;
|
|
80
|
-
LightDividerNew: string;
|
|
81
|
-
LightHint: string;
|
|
82
|
-
LightHover: string;
|
|
83
|
-
LightPrimary: string;
|
|
84
|
-
LightSecondary: string;
|
|
85
|
-
BorderGrey: string;
|
|
86
|
-
Blue: string;
|
|
87
|
-
BlueFade: string;
|
|
88
|
-
Green: string;
|
|
89
|
-
GreenFade: string;
|
|
90
|
-
GreenBackground: string;
|
|
91
|
-
Red: string;
|
|
92
|
-
RedFade: string;
|
|
93
|
-
Yellow: string;
|
|
94
|
-
YellowFade: string;
|
|
95
|
-
YellowHighlight: string;
|
|
96
|
-
Orange: string;
|
|
97
|
-
OrangeFill: string;
|
|
98
|
-
OrangeBackground: string;
|
|
99
|
-
Error: string;
|
|
100
|
-
ErrorFade: string;
|
|
101
|
-
ErrorBackground: string;
|
|
102
|
-
DraggableDraggingBackground: string;
|
|
103
|
-
Aquamarine: string;
|
|
104
|
-
Azure: string;
|
|
105
|
-
AzureNew: string;
|
|
106
|
-
AzureFade: string;
|
|
107
|
-
AzureHighlight: string;
|
|
108
|
-
Silver: string;
|
|
109
|
-
BlueNavy: string;
|
|
110
|
-
Black: string;
|
|
111
|
-
TurquoiseBlue: string;
|
|
112
|
-
SummerSky: string;
|
|
113
|
-
Mondo: string;
|
|
114
|
-
HeavyMetal: string;
|
|
115
|
-
BokaraGrey: string;
|
|
116
|
-
Cyan: string;
|
|
117
|
-
Eucalyptus: string;
|
|
118
|
-
Flamingo: string;
|
|
119
|
-
Zorba: string;
|
|
120
|
-
Flint: string;
|
|
121
|
-
Maya: string;
|
|
122
|
-
Bondi: string;
|
|
123
|
-
Emerald: string;
|
|
124
|
-
Carissma: string;
|
|
125
|
-
Solitude: string;
|
|
126
|
-
WhiteSmoke: string;
|
|
127
|
-
Violet: string;
|
|
128
|
-
FireBrick: string;
|
|
129
|
-
Purple: string;
|
|
130
|
-
Buckthorn: string;
|
|
131
|
-
};
|
|
132
|
-
readonly gradient: {
|
|
133
|
-
main: string;
|
|
134
|
-
neutral: string;
|
|
135
|
-
};
|
|
136
|
-
}>;
|
|
137
|
-
export {};
|
|
10
|
+
hoverForegroundColor?: string | undefined;
|
|
11
|
+
}, {}, {}>;
|
|
138
12
|
//# sourceMappingURL=IconButton.d.ts.map
|