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,7 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.onEsc = exports.onEnterOrSpace = exports.noop = 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
|
-
|
|
4
|
-
|
|
9
|
+
|
|
10
|
+
var noop = function noop() {};
|
|
11
|
+
|
|
12
|
+
exports.noop = noop;
|
|
13
|
+
|
|
14
|
+
var onEnterOrSpace = function onEnterOrSpace(fn) {
|
|
5
15
|
return function (event) {
|
|
6
16
|
switch (event.key) {
|
|
7
17
|
case 'Enter':
|
|
@@ -13,10 +23,15 @@ export var onEnterOrSpace = function onEnterOrSpace(fn) {
|
|
|
13
23
|
}
|
|
14
24
|
};
|
|
15
25
|
};
|
|
16
|
-
|
|
26
|
+
|
|
27
|
+
exports.onEnterOrSpace = onEnterOrSpace;
|
|
28
|
+
|
|
29
|
+
var onEsc = function onEsc(fn) {
|
|
17
30
|
return function (event) {
|
|
18
31
|
if (event.key === 'Escape') {
|
|
19
32
|
fn();
|
|
20
33
|
}
|
|
21
34
|
};
|
|
22
|
-
};
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
exports.onEsc = onEsc;
|
|
@@ -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 _DropdownButton["default"];
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
var _DropdownButton = _interopRequireDefault(require("./DropdownButton"));
|
|
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 './DropdownButton';
|
|
18
|
+
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
@@ -1,34 +1,73 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _Button = _interopRequireDefault(require("../Button"));
|
|
13
|
+
|
|
14
|
+
var _react2 = require("@emotion/react");
|
|
15
|
+
|
|
16
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
17
|
+
|
|
18
|
+
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; }
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
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); }
|
|
23
|
+
|
|
24
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25
|
+
|
|
26
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
27
|
+
|
|
28
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
29
|
+
|
|
30
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31
|
+
|
|
32
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
|
+
|
|
34
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
35
|
+
|
|
36
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
37
|
+
|
|
38
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
39
|
+
|
|
40
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
41
|
+
|
|
42
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
|
+
|
|
44
|
+
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; }
|
|
45
|
+
|
|
46
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
47
|
+
|
|
10
48
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
11
49
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
12
|
-
|
|
13
|
-
import Button from '../Button';
|
|
14
|
-
|
|
15
|
-
var HiddenInput = /*#__PURE__*/_styled('input', {
|
|
50
|
+
var HiddenInput = ( /*#__PURE__*/0, _base["default"])('input', process.env.NODE_ENV === "production" ? {
|
|
16
51
|
target: "e151cpsi0"
|
|
52
|
+
} : {
|
|
53
|
+
target: "e151cpsi0",
|
|
54
|
+
label: "HiddenInput"
|
|
17
55
|
})(process.env.NODE_ENV === "production" ? {
|
|
18
|
-
name: "
|
|
19
|
-
styles: "display:none
|
|
56
|
+
name: "eivff4",
|
|
57
|
+
styles: "display:none"
|
|
20
58
|
} : {
|
|
21
|
-
name: "
|
|
22
|
-
styles: "display:none
|
|
23
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9GaWxlSW5wdXQvRmlsZUlucHV0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJb0IiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL0ZpbGVJbnB1dC9GaWxlSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IENvbXBvbmVudCB9IGZyb20gJ3JlYWN0J1xuaW1wb3J0IEJ1dHRvbiBmcm9tICcuLi9CdXR0b24nXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcblxuY29uc3QgSGlkZGVuSW5wdXQgPSBzdHlsZWQoJ2lucHV0Jykoe1xuICBkaXNwbGF5OiAnbm9uZSdcbn0pXG5cbmV4cG9ydCB0eXBlIEZpbGVJbnB1dFByb3BzID0ge1xuICAvKiogY29tbWEtc2VwYXJhdGVkIGxpc3Qgb2YgW2NvbnRlbnQgdHlwZSBzcGVjaWZpZXJzXShodHRwczovL2RldmVsb3Blci5tb3ppbGxhLm9yZy9lbi1VUy9kb2NzL1dlYi9IVE1ML0VsZW1lbnQvaW5wdXQvZmlsZSNhdHRyLWFjY2VwdCkuICovXG4gIGFjY2VwdD86IHN0cmluZ1xuXG4gIC8qKiBBbGxvdyBtdWx0aXBsZSBmaWxlcyB0byBiZSBzZWxlY3RlZC4gKi9cbiAgbXVsdGlwbGU6IGJvb2xlYW5cblxuICAvKiogVmFsdWUgZm9yIHRoZSBodG1sIG5hbWUgcHJvcGVydHkuICovXG4gIG5hbWU/OiBzdHJpbmdcblxuICAvKiogUmVjZWl2ZXMgYW4gQXJyYXkgb2YgW0ZpbGVzXShodHRwczovL2RldmVsb3Blci5tb3ppbGxhLm9yZy9lbi1VUy9kb2NzL1dlYi9BUEkvRmlsZSkgYXMgYXJndW1lbnQuICovXG4gIG9uQ2hhbmdlOiAoZmlsZXM6IEFycmF5PEZpbGU+KSA9PiB2b2lkXG5cbiAgLyoqIE9wdGlvbmFsIHRleHQgZm9yIHRoZSBmaWxlIGlucHV0IGJ1dHRvbi4gKi9cbiAgdGV4dD86IHN0cmluZ1xuXG4gIC8qKiBJbnN0cnVtZW50YXRpb24gKi9cbiAgJ2RhdGEtaW5zdHJ1bWVudGF0aW9uJz86IHN0cmluZ1xufVxuY2xhc3MgRmlsZUlucHV0IGV4dGVuZHMgQ29tcG9uZW50PEZpbGVJbnB1dFByb3BzPiB7XG4gIHN0YXRpYyBkZWZhdWx0UHJvcHMgPSB7XG4gICAgYWNjZXB0OiAnJyxcbiAgICBtdWx0aXBsZTogZmFsc2UsXG4gICAgJ2RhdGEtaW5zdHJ1bWVudGF0aW9uJzogJ2ZpbGVpbnB1dCdcbiAgfVxuXG4gIGlucHV0ID0gUmVhY3QuY3JlYXRlUmVmPEhUTUxJbnB1dEVsZW1lbnQ+KClcblxuICByZW5kZXIoKSB7XG4gICAgY29uc3Qge1xuICAgICAgYWNjZXB0LFxuICAgICAgJ2RhdGEtaW5zdHJ1bWVudGF0aW9uJzogZGF0YUluc3RydW1lbnRhdGlvbixcbiAgICAgIG5hbWUsXG4gICAgICBtdWx0aXBsZSxcbiAgICAgIHRleHRcbiAgICB9ID0gdGhpcy5wcm9wc1xuXG4gICAgcmV0dXJuIChcbiAgICAgIDxCdXR0b25cbiAgICAgICAgb25DbGljaz17KCkgPT4ge1xuICAgICAgICAgIHRoaXMuaW5wdXQuY3VycmVudCAmJiB0aGlzLmlucHV0LmN1cnJlbnQuY2xpY2soKVxuICAgICAgICB9fVxuICAgICAgICBkYXRhLWluc3RydW1lbnRhdGlvbj17YCR7ZGF0YUluc3RydW1lbnRhdGlvbn0tYnV0dG9uYH1cbiAgICAgID5cbiAgICAgICAge3RleHQgfHwgJ0Jyb3dzZS4uLid9XG4gICAgICAgIDxIaWRkZW5JbnB1dFxuICAgICAgICAgIGFjY2VwdD17YWNjZXB0fVxuICAgICAgICAgIG11bHRpcGxlPXttdWx0aXBsZX1cbiAgICAgICAgICBuYW1lPXtuYW1lfVxuICAgICAgICAgIG9uQ2hhbmdlPXt0aGlzLl9vbkNoYW5nZX1cbiAgICAgICAgICByZWY9e3RoaXMuaW5wdXR9XG4gICAgICAgICAgdHlwZT1cImZpbGVcIlxuICAgICAgICAgIGRhdGEtaW5zdHJ1bWVudGF0aW9uPXtgJHtkYXRhSW5zdHJ1bWVudGF0aW9ufS1pbnB1dGB9XG4gICAgICAgIC8+XG4gICAgICA8L0J1dHRvbj5cbiAgICApXG4gIH1cblxuICBfb25DaGFuZ2UgPSAoeyB0YXJnZXQgfTogUmVhY3QuQ2hhbmdlRXZlbnQ8SFRNTElucHV0RWxlbWVudD4pID0+IHtcbiAgICB0aGlzLnByb3BzLm9uQ2hhbmdlKEFycmF5LmZyb20odGFyZ2V0LmZpbGVzIGFzIEZpbGVMaXN0KSlcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBGaWxlSW5wdXRcbiJdfQ== */"
|
|
59
|
+
name: "eivff4",
|
|
60
|
+
styles: "display:none",
|
|
61
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9GaWxlSW5wdXQvRmlsZUlucHV0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJb0IiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL0ZpbGVJbnB1dC9GaWxlSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IENvbXBvbmVudCB9IGZyb20gJ3JlYWN0J1xuaW1wb3J0IEJ1dHRvbiBmcm9tICcuLi9CdXR0b24nXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcblxuY29uc3QgSGlkZGVuSW5wdXQgPSBzdHlsZWQoJ2lucHV0Jykoe1xuICBkaXNwbGF5OiAnbm9uZSdcbn0pXG5cbmV4cG9ydCB0eXBlIEZpbGVJbnB1dFByb3BzID0ge1xuICAvKiogY29tbWEtc2VwYXJhdGVkIGxpc3Qgb2YgW2NvbnRlbnQgdHlwZSBzcGVjaWZpZXJzXShodHRwczovL2RldmVsb3Blci5tb3ppbGxhLm9yZy9lbi1VUy9kb2NzL1dlYi9IVE1ML0VsZW1lbnQvaW5wdXQvZmlsZSNhdHRyLWFjY2VwdCkuICovXG4gIGFjY2VwdD86IHN0cmluZ1xuXG4gIC8qKiBBbGxvdyBtdWx0aXBsZSBmaWxlcyB0byBiZSBzZWxlY3RlZC4gKi9cbiAgbXVsdGlwbGU6IGJvb2xlYW5cblxuICAvKiogVmFsdWUgZm9yIHRoZSBodG1sIG5hbWUgcHJvcGVydHkuICovXG4gIG5hbWU/OiBzdHJpbmdcblxuICAvKiogUmVjZWl2ZXMgYW4gQXJyYXkgb2YgW0ZpbGVzXShodHRwczovL2RldmVsb3Blci5tb3ppbGxhLm9yZy9lbi1VUy9kb2NzL1dlYi9BUEkvRmlsZSkgYXMgYXJndW1lbnQuICovXG4gIG9uQ2hhbmdlOiAoZmlsZXM6IEFycmF5PEZpbGU+KSA9PiB2b2lkXG5cbiAgLyoqIE9wdGlvbmFsIHRleHQgZm9yIHRoZSBmaWxlIGlucHV0IGJ1dHRvbi4gKi9cbiAgdGV4dD86IHN0cmluZ1xuXG4gIC8qKiBJbnN0cnVtZW50YXRpb24gKi9cbiAgJ2RhdGEtaW5zdHJ1bWVudGF0aW9uJz86IHN0cmluZ1xufVxuY2xhc3MgRmlsZUlucHV0IGV4dGVuZHMgQ29tcG9uZW50PEZpbGVJbnB1dFByb3BzPiB7XG4gIHN0YXRpYyBkZWZhdWx0UHJvcHMgPSB7XG4gICAgYWNjZXB0OiAnJyxcbiAgICBtdWx0aXBsZTogZmFsc2UsXG4gICAgJ2RhdGEtaW5zdHJ1bWVudGF0aW9uJzogJ2ZpbGVpbnB1dCdcbiAgfVxuXG4gIGlucHV0ID0gUmVhY3QuY3JlYXRlUmVmPEhUTUxJbnB1dEVsZW1lbnQ+KClcblxuICByZW5kZXIoKSB7XG4gICAgY29uc3Qge1xuICAgICAgYWNjZXB0LFxuICAgICAgJ2RhdGEtaW5zdHJ1bWVudGF0aW9uJzogZGF0YUluc3RydW1lbnRhdGlvbixcbiAgICAgIG5hbWUsXG4gICAgICBtdWx0aXBsZSxcbiAgICAgIHRleHRcbiAgICB9ID0gdGhpcy5wcm9wc1xuXG4gICAgcmV0dXJuIChcbiAgICAgIDxCdXR0b25cbiAgICAgICAgb25DbGljaz17KCkgPT4ge1xuICAgICAgICAgIHRoaXMuaW5wdXQuY3VycmVudCAmJiB0aGlzLmlucHV0LmN1cnJlbnQuY2xpY2soKVxuICAgICAgICB9fVxuICAgICAgICBkYXRhLWluc3RydW1lbnRhdGlvbj17YCR7ZGF0YUluc3RydW1lbnRhdGlvbn0tYnV0dG9uYH1cbiAgICAgID5cbiAgICAgICAge3RleHQgfHwgJ0Jyb3dzZS4uLid9XG4gICAgICAgIDxIaWRkZW5JbnB1dFxuICAgICAgICAgIGFjY2VwdD17YWNjZXB0fVxuICAgICAgICAgIG11bHRpcGxlPXttdWx0aXBsZX1cbiAgICAgICAgICBuYW1lPXtuYW1lfVxuICAgICAgICAgIG9uQ2hhbmdlPXt0aGlzLl9vbkNoYW5nZX1cbiAgICAgICAgICByZWY9e3RoaXMuaW5wdXR9XG4gICAgICAgICAgdHlwZT1cImZpbGVcIlxuICAgICAgICAgIGRhdGEtaW5zdHJ1bWVudGF0aW9uPXtgJHtkYXRhSW5zdHJ1bWVudGF0aW9ufS1pbnB1dGB9XG4gICAgICAgIC8+XG4gICAgICA8L0J1dHRvbj5cbiAgICApXG4gIH1cblxuICBfb25DaGFuZ2UgPSAoeyB0YXJnZXQgfTogUmVhY3QuQ2hhbmdlRXZlbnQ8SFRNTElucHV0RWxlbWVudD4pID0+IHtcbiAgICB0aGlzLnByb3BzLm9uQ2hhbmdlKEFycmF5LmZyb20odGFyZ2V0LmZpbGVzIGFzIEZpbGVMaXN0KSlcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBGaWxlSW5wdXRcbiJdfQ== */",
|
|
62
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
24
63
|
});
|
|
25
64
|
|
|
26
65
|
var FileInput = /*#__PURE__*/function (_Component) {
|
|
27
66
|
_inherits(FileInput, _Component);
|
|
28
67
|
|
|
29
|
-
|
|
30
|
-
var _getPrototypeOf2;
|
|
68
|
+
var _super = _createSuper(FileInput);
|
|
31
69
|
|
|
70
|
+
function FileInput() {
|
|
32
71
|
var _this;
|
|
33
72
|
|
|
34
73
|
_classCallCheck(this, FileInput);
|
|
@@ -37,9 +76,9 @@ var FileInput = /*#__PURE__*/function (_Component) {
|
|
|
37
76
|
args[_key] = arguments[_key];
|
|
38
77
|
}
|
|
39
78
|
|
|
40
|
-
_this =
|
|
79
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
41
80
|
|
|
42
|
-
_defineProperty(_assertThisInitialized(_this), "input",
|
|
81
|
+
_defineProperty(_assertThisInitialized(_this), "input", /*#__PURE__*/_react["default"].createRef());
|
|
43
82
|
|
|
44
83
|
_defineProperty(_assertThisInitialized(_this), "_onChange", function (_ref) {
|
|
45
84
|
var target = _ref.target;
|
|
@@ -61,13 +100,13 @@ var FileInput = /*#__PURE__*/function (_Component) {
|
|
|
61
100
|
name = _this$props.name,
|
|
62
101
|
multiple = _this$props.multiple,
|
|
63
102
|
text = _this$props.text;
|
|
64
|
-
return
|
|
103
|
+
return (0, _react2.jsx)(_Button["default"], {
|
|
65
104
|
"data-gs": gs("src", "fileinput", "fileinput.tsx", "button"),
|
|
66
105
|
onClick: function onClick() {
|
|
67
106
|
_this2.input.current && _this2.input.current.click();
|
|
68
107
|
},
|
|
69
108
|
"data-instrumentation": "".concat(dataInstrumentation, "-button")
|
|
70
|
-
}, text || 'Browse...',
|
|
109
|
+
}, text || 'Browse...', (0, _react2.jsx)(HiddenInput, {
|
|
71
110
|
"data-gs-c": gsC(name),
|
|
72
111
|
"data-gs": gs("src", "fileinput", "fileinput.tsx", "button", "hidden-input"),
|
|
73
112
|
accept: accept,
|
|
@@ -82,7 +121,7 @@ var FileInput = /*#__PURE__*/function (_Component) {
|
|
|
82
121
|
}]);
|
|
83
122
|
|
|
84
123
|
return FileInput;
|
|
85
|
-
}(Component);
|
|
124
|
+
}(_react.Component);
|
|
86
125
|
|
|
87
126
|
_defineProperty(FileInput, "defaultProps", {
|
|
88
127
|
accept: '',
|
|
@@ -90,4 +129,5 @@ _defineProperty(FileInput, "defaultProps", {
|
|
|
90
129
|
'data-instrumentation': 'fileinput'
|
|
91
130
|
});
|
|
92
131
|
|
|
93
|
-
|
|
132
|
+
var _default = FileInput;
|
|
133
|
+
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 _FileInput["default"];
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
var _FileInput = _interopRequireDefault(require("./FileInput"));
|
|
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 './FileInput';
|
|
18
|
+
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
@@ -5,7 +5,7 @@ import type { InputProps } from '../Input';
|
|
|
5
5
|
import type { SelectComponentProps } from '../Select';
|
|
6
6
|
import type { RadioGroupProps } from './components/RadioGroup';
|
|
7
7
|
import type { CheckboxGroupProps } from './components/CheckboxGroup';
|
|
8
|
-
import type {
|
|
8
|
+
import type { Interpolation } from '@emotion/react';
|
|
9
9
|
declare type FormControlTypeSelect = 'select';
|
|
10
10
|
declare type FormControlTypeRadio = 'radio';
|
|
11
11
|
declare type FormControlTypeCheckbox = 'checkbox';
|
|
@@ -47,24 +47,11 @@ export declare type FormControlProps<T extends FormControlTypes = 'text'> = {
|
|
|
47
47
|
* Optional Emotion style for the input component.
|
|
48
48
|
* Note that you still have access to `FormControl.style` for basic styling.
|
|
49
49
|
*/
|
|
50
|
-
inputCss?:
|
|
50
|
+
inputCss?: Interpolation<any>;
|
|
51
|
+
options?: any;
|
|
51
52
|
} & FormControlElementTypes<T>;
|
|
52
53
|
declare class FormControl<T extends FormControlTypes = 'text'> extends PureComponent<FormControlProps<T>> {
|
|
53
|
-
static defaultProps:
|
|
54
|
-
disabled: boolean;
|
|
55
|
-
error: never[];
|
|
56
|
-
info: string;
|
|
57
|
-
hint: string;
|
|
58
|
-
invalid: boolean;
|
|
59
|
-
'data-instrumentation': string;
|
|
60
|
-
placeholder: string;
|
|
61
|
-
size: string;
|
|
62
|
-
truncateErrors: boolean;
|
|
63
|
-
type: string;
|
|
64
|
-
showFullInfo: boolean;
|
|
65
|
-
showFullLabel: boolean;
|
|
66
|
-
warning: never[];
|
|
67
|
-
};
|
|
54
|
+
static defaultProps: Partial<FormControlProps>;
|
|
68
55
|
hintIconRef: React.RefObject<SVGSVGElement>;
|
|
69
56
|
warningIconRef: React.RefObject<HTMLDivElement>;
|
|
70
57
|
getTypeComponent: (type: FormControlTypes) => typeof Input | React.FunctionComponent<CheckboxGroupProps> | React.FunctionComponent<RadioGroupProps> | ((props: any) => JSX.Element);
|
|
@@ -1,32 +1,79 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
10
|
+
var _FormField = require("../FormField");
|
|
11
|
+
|
|
12
|
+
var _FormFieldAddon = _interopRequireDefault(require("../FormFieldAddon"));
|
|
13
|
+
|
|
14
|
+
var _FormLabel = _interopRequireDefault(require("../FormLabel"));
|
|
15
|
+
|
|
16
|
+
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
17
|
+
|
|
18
|
+
var _Input = _interopRequireDefault(require("../Input"));
|
|
19
|
+
|
|
20
|
+
var _TooltipPopover = _interopRequireDefault(require("../TooltipPopover"));
|
|
21
|
+
|
|
22
|
+
var _Select = _interopRequireDefault(require("../Select"));
|
|
23
|
+
|
|
24
|
+
var _components = require("./components");
|
|
25
|
+
|
|
26
|
+
var _elements = require("./elements");
|
|
27
|
+
|
|
28
|
+
var _react2 = require("@emotion/react");
|
|
29
|
+
|
|
30
|
+
var _excluded = ["addOnClassName", "blockLabel", "className", "isClearable", "data-gs-c", "data-instrumentation", "showFullError", "showFullHint", "showFullInfo", "showFullLabel", "showFullWarning", "error", "info", "getRef", "hint", "hintNode", "id", "invalid", "label", "name", "onChange", "required", "size", "truncateErrors", "truncateWarnings", "type", "value", "warning", "labelWidth", "inputCss"];
|
|
31
|
+
|
|
32
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
33
|
+
|
|
34
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
35
|
+
|
|
36
|
+
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; }
|
|
37
|
+
|
|
38
|
+
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); }
|
|
39
|
+
|
|
40
|
+
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); }
|
|
41
|
+
|
|
42
|
+
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; }
|
|
43
|
+
|
|
44
|
+
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; }
|
|
45
|
+
|
|
46
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
47
|
+
|
|
48
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
49
|
+
|
|
50
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
51
|
+
|
|
52
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
53
|
+
|
|
54
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
55
|
+
|
|
56
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
57
|
+
|
|
58
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
59
|
+
|
|
60
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
61
|
+
|
|
62
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
63
|
+
|
|
64
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
65
|
+
|
|
66
|
+
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; }
|
|
67
|
+
|
|
11
68
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
12
69
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
13
|
-
import React, { createRef, PureComponent } from 'react';
|
|
14
|
-
import { getErrorList, getWarningList } from '../FormField';
|
|
15
|
-
import FormFieldAddon from '../FormFieldAddon';
|
|
16
|
-
import FormLabel from '../FormLabel';
|
|
17
|
-
import Icon from '../Icon';
|
|
18
|
-
import Input from '../Input';
|
|
19
|
-
import TooltipPopover from '../TooltipPopover';
|
|
20
|
-
import Select from '../Select';
|
|
21
|
-
import { CheckboxGroup, RadioGroup, Textarea } from './components';
|
|
22
|
-
import { ClearButton, FormControlWrapper, GroupWrapper, HintIcon, InlineFormControlWrapper, LabelWrapper, EditorWrapper, StyledPopover, WarningIcon, InputWrapper } from './elements';
|
|
23
70
|
|
|
24
71
|
var FormControl = /*#__PURE__*/function (_PureComponent) {
|
|
25
72
|
_inherits(FormControl, _PureComponent);
|
|
26
73
|
|
|
27
|
-
|
|
28
|
-
var _getPrototypeOf2;
|
|
74
|
+
var _super = _createSuper(FormControl);
|
|
29
75
|
|
|
76
|
+
function FormControl() {
|
|
30
77
|
var _this;
|
|
31
78
|
|
|
32
79
|
_classCallCheck(this, FormControl);
|
|
@@ -35,28 +82,28 @@ var FormControl = /*#__PURE__*/function (_PureComponent) {
|
|
|
35
82
|
args[_key] = arguments[_key];
|
|
36
83
|
}
|
|
37
84
|
|
|
38
|
-
_this =
|
|
85
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
39
86
|
|
|
40
|
-
_defineProperty(_assertThisInitialized(_this), "hintIconRef", createRef());
|
|
87
|
+
_defineProperty(_assertThisInitialized(_this), "hintIconRef", /*#__PURE__*/(0, _react.createRef)());
|
|
41
88
|
|
|
42
|
-
_defineProperty(_assertThisInitialized(_this), "warningIconRef", createRef());
|
|
89
|
+
_defineProperty(_assertThisInitialized(_this), "warningIconRef", /*#__PURE__*/(0, _react.createRef)());
|
|
43
90
|
|
|
44
91
|
_defineProperty(_assertThisInitialized(_this), "getTypeComponent", function (type) {
|
|
45
92
|
switch (type) {
|
|
46
93
|
case 'select':
|
|
47
|
-
return
|
|
94
|
+
return _Select["default"];
|
|
48
95
|
|
|
49
96
|
case 'textarea':
|
|
50
|
-
return Textarea;
|
|
97
|
+
return _components.Textarea;
|
|
51
98
|
|
|
52
99
|
case 'radio':
|
|
53
|
-
return RadioGroup;
|
|
100
|
+
return _components.RadioGroup;
|
|
54
101
|
|
|
55
102
|
case 'checkbox':
|
|
56
|
-
return CheckboxGroup;
|
|
103
|
+
return _components.CheckboxGroup;
|
|
57
104
|
|
|
58
105
|
default:
|
|
59
|
-
return
|
|
106
|
+
return _Input["default"];
|
|
60
107
|
}
|
|
61
108
|
});
|
|
62
109
|
|
|
@@ -65,12 +112,12 @@ var FormControl = /*#__PURE__*/function (_PureComponent) {
|
|
|
65
112
|
|
|
66
113
|
_createClass(FormControl, [{
|
|
67
114
|
key: "render",
|
|
68
|
-
|
|
115
|
+
value:
|
|
69
116
|
/**
|
|
70
117
|
* @typescript-eslint/no-unused-vars is added because even though the props are not used in this component
|
|
71
118
|
* they are getting destructured into ...props and passed further down the tree
|
|
72
119
|
*/
|
|
73
|
-
|
|
120
|
+
function render() {
|
|
74
121
|
var _this$props = this.props,
|
|
75
122
|
addOnClassName = _this$props.addOnClassName,
|
|
76
123
|
blockLabel = _this$props.blockLabel,
|
|
@@ -102,15 +149,14 @@ var FormControl = /*#__PURE__*/function (_PureComponent) {
|
|
|
102
149
|
warning = _this$props.warning,
|
|
103
150
|
labelWidth = _this$props.labelWidth,
|
|
104
151
|
inputCss = _this$props.inputCss,
|
|
105
|
-
props = _objectWithoutProperties(_this$props,
|
|
152
|
+
props = _objectWithoutProperties(_this$props, _excluded);
|
|
106
153
|
|
|
107
154
|
var InputComponent = this.getTypeComponent(type);
|
|
108
|
-
var errorList = getErrorList(error);
|
|
109
|
-
var warningList = getWarningList(warning);
|
|
155
|
+
var errorList = (0, _FormField.getErrorList)(error);
|
|
156
|
+
var warningList = (0, _FormField.getWarningList)(warning);
|
|
110
157
|
var isInvalid = !!errorList.length || invalid;
|
|
111
|
-
var Wrapper = blockLabel ? FormControlWrapper : type === 'checkbox' || type === 'radio' ? GroupWrapper : InlineFormControlWrapper;
|
|
112
|
-
|
|
113
|
-
var input = ___EmotionJSX(InputComponent, _extends({
|
|
158
|
+
var Wrapper = blockLabel ? _elements.FormControlWrapper : type === 'checkbox' || type === 'radio' ? _elements.GroupWrapper : _elements.InlineFormControlWrapper;
|
|
159
|
+
var input = (0, _react2.jsx)(InputComponent, _extends({
|
|
114
160
|
"data-gs-c": gsC(name, value),
|
|
115
161
|
"data-gs": gs("src", "formcontrol", "formcontrol.tsx", "input-component"),
|
|
116
162
|
id: id || name,
|
|
@@ -126,8 +172,7 @@ var FormControl = /*#__PURE__*/function (_PureComponent) {
|
|
|
126
172
|
width: '100%'
|
|
127
173
|
}, inputCss)
|
|
128
174
|
}, props));
|
|
129
|
-
|
|
130
|
-
var hintAddon = ___EmotionJSX(FormFieldAddon, {
|
|
175
|
+
var hintAddon = (0, _react2.jsx)(_FormFieldAddon["default"], {
|
|
131
176
|
"data-gs": gs("src", "formcontrol", "formcontrol.tsx", "form-field-addon"),
|
|
132
177
|
className: addOnClassName,
|
|
133
178
|
hint: hint,
|
|
@@ -136,8 +181,7 @@ var FormControl = /*#__PURE__*/function (_PureComponent) {
|
|
|
136
181
|
showFullHint: showFullHint,
|
|
137
182
|
truncateErrors: truncateErrors
|
|
138
183
|
});
|
|
139
|
-
|
|
140
|
-
var warningAddon = ___EmotionJSX(FormFieldAddon, {
|
|
184
|
+
var warningAddon = (0, _react2.jsx)(_FormFieldAddon["default"], {
|
|
141
185
|
"data-gs": gs("src", "formcontrol", "formcontrol.tsx", "form-field-addon"),
|
|
142
186
|
className: addOnClassName,
|
|
143
187
|
showFullWarning: showFullWarning,
|
|
@@ -145,8 +189,7 @@ var FormControl = /*#__PURE__*/function (_PureComponent) {
|
|
|
145
189
|
showAddOnInTooltip: true,
|
|
146
190
|
truncateWarnings: truncateWarnings
|
|
147
191
|
});
|
|
148
|
-
|
|
149
|
-
var errorAddon = ___EmotionJSX(FormFieldAddon, {
|
|
192
|
+
var errorAddon = (0, _react2.jsx)(_FormFieldAddon["default"], {
|
|
150
193
|
"data-gs": gs("src", "formcontrol", "formcontrol.tsx", "form-field-addon"),
|
|
151
194
|
className: addOnClassName,
|
|
152
195
|
showFullError: showFullError,
|
|
@@ -155,16 +198,14 @@ var FormControl = /*#__PURE__*/function (_PureComponent) {
|
|
|
155
198
|
spacer: true,
|
|
156
199
|
truncateErrors: truncateErrors
|
|
157
200
|
});
|
|
158
|
-
|
|
159
|
-
var infoAddon = ___EmotionJSX(FormFieldAddon, {
|
|
201
|
+
var infoAddon = (0, _react2.jsx)(_FormFieldAddon["default"], {
|
|
160
202
|
"data-gs": gs("src", "formcontrol", "formcontrol.tsx", "form-field-addon"),
|
|
161
203
|
className: addOnClassName,
|
|
162
204
|
info: info,
|
|
163
205
|
spacer: true,
|
|
164
206
|
showFullInfo: showFullInfo
|
|
165
207
|
});
|
|
166
|
-
|
|
167
|
-
return ___EmotionJSX(Wrapper, {
|
|
208
|
+
return (0, _react2.jsx)(Wrapper, {
|
|
168
209
|
"data-gs": gs("src", "formcontrol", "formcontrol.tsx", "wrapper"),
|
|
169
210
|
"data-gs-c": dataGsC || label || name,
|
|
170
211
|
ref: getRef,
|
|
@@ -174,46 +215,46 @@ var FormControl = /*#__PURE__*/function (_PureComponent) {
|
|
|
174
215
|
size: size,
|
|
175
216
|
"data-label": label === null || label === void 0 ? void 0 : label.toString(),
|
|
176
217
|
showFullLabel: showFullLabel
|
|
177
|
-
}, (label || labelWidth) &&
|
|
218
|
+
}, (label || labelWidth) && (0, _react2.jsx)(_elements.LabelWrapper, {
|
|
178
219
|
"data-gs": gs("src", "formcontrol", "formcontrol.tsx", "wrapper", "label-wrapper"),
|
|
179
220
|
blockLabel: blockLabel,
|
|
180
221
|
size: size,
|
|
181
222
|
labelWidth: labelWidth
|
|
182
|
-
},
|
|
223
|
+
}, (0, _react2.jsx)(_FormLabel["default"], {
|
|
183
224
|
"data-gs-c": gsC(label),
|
|
184
225
|
"data-gs": gs("src", "formcontrol", "formcontrol.tsx", "wrapper", "label-wrapper", "form-label"),
|
|
185
226
|
htmlFor: id || name,
|
|
186
227
|
required: label && required ? required : false,
|
|
187
228
|
showFullLabel: showFullLabel
|
|
188
|
-
}, label), (hint || hintNode) && label &&
|
|
229
|
+
}, label), (hint || hintNode) && label && (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_TooltipPopover["default"], {
|
|
189
230
|
"data-gs": gs("src", "formcontrol", "formcontrol.tsx", "wrapper", "label-wrapper", "tooltip-popover"),
|
|
190
231
|
target: this.hintIconRef
|
|
191
|
-
},
|
|
232
|
+
}, (0, _react2.jsx)(_elements.StyledPopover, {
|
|
192
233
|
"data-gs-c": gsC(hintAddon),
|
|
193
234
|
"data-gs": gs("src", "formcontrol", "formcontrol.tsx", "wrapper", "label-wrapper", "tooltip-popover", "styled-popover")
|
|
194
|
-
}, hintAddon)),
|
|
235
|
+
}, hintAddon)), (0, _react2.jsx)(_elements.HintIcon, {
|
|
195
236
|
"data-gs": gs("src", "formcontrol", "formcontrol.tsx", "wrapper", "label-wrapper", "hint-icon"),
|
|
196
237
|
"data-testid": "hint-icon",
|
|
197
238
|
ref: this.hintIconRef
|
|
198
|
-
}))),
|
|
239
|
+
}))), (0, _react2.jsx)(_elements.EditorWrapper, {
|
|
199
240
|
"data-gs": gs("src", "formcontrol", "formcontrol.tsx", "wrapper", "editor-wrapper")
|
|
200
|
-
},
|
|
241
|
+
}, (0, _react2.jsx)(_elements.InputWrapper, {
|
|
201
242
|
"data-gs": gs("src", "formcontrol", "formcontrol.tsx", "wrapper", "editor-wrapper", "input-wrapper")
|
|
202
|
-
}, input, warningList.length > 0 &&
|
|
243
|
+
}, input, warningList.length > 0 && (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_TooltipPopover["default"], {
|
|
203
244
|
"data-gs": gs("src", "formcontrol", "formcontrol.tsx", "wrapper", "editor-wrapper", "input-wrapper", "tooltip-popover"),
|
|
204
245
|
placement: "bottom-end",
|
|
205
246
|
target: this.warningIconRef
|
|
206
|
-
},
|
|
247
|
+
}, (0, _react2.jsx)(_elements.StyledPopover, {
|
|
207
248
|
"data-gs-c": gsC(warningAddon),
|
|
208
249
|
"data-gs": gs("src", "formcontrol", "formcontrol.tsx", "wrapper", "editor-wrapper", "input-wrapper", "tooltip-popover", "styled-popover")
|
|
209
|
-
}, warningAddon)),
|
|
250
|
+
}, warningAddon)), (0, _react2.jsx)("div", {
|
|
210
251
|
"data-gs-c": gsC("warningicon"),
|
|
211
252
|
"data-gs": gs("src", "formcontrol", "formcontrol.tsx", "wrapper", "editor-wrapper", "input-wrapper", "div"),
|
|
212
253
|
ref: this.warningIconRef,
|
|
213
254
|
"data-testid": "warning-icon-container"
|
|
214
|
-
},
|
|
255
|
+
}, (0, _react2.jsx)(_elements.WarningIcon, {
|
|
215
256
|
"data-gs": gs("src", "formcontrol", "formcontrol.tsx", "wrapper", "editor-wrapper", "input-wrapper", "div", "warning-icon")
|
|
216
|
-
})))), isClearable &&
|
|
257
|
+
})))), isClearable && (0, _react2.jsx)(_elements.ClearButton, {
|
|
217
258
|
"data-gs-c": gsC("icon-small-close"),
|
|
218
259
|
"data-gs": gs("src", "formcontrol", "formcontrol.tsx", "wrapper", "editor-wrapper", "clear-button"),
|
|
219
260
|
plain: true,
|
|
@@ -225,14 +266,14 @@ var FormControl = /*#__PURE__*/function (_PureComponent) {
|
|
|
225
266
|
});
|
|
226
267
|
event.stopPropagation();
|
|
227
268
|
}
|
|
228
|
-
},
|
|
269
|
+
}, (0, _react2.jsx)(_Icon["default"].Small.Close, {
|
|
229
270
|
"data-gs": gs("src", "formcontrol", "formcontrol.tsx", "wrapper", "editor-wrapper", "clear-button", "icon-small-close")
|
|
230
271
|
})), errorList.length > 0 && errorAddon, errorList.length === 0 && info && infoAddon));
|
|
231
272
|
}
|
|
232
273
|
}]);
|
|
233
274
|
|
|
234
275
|
return FormControl;
|
|
235
|
-
}(PureComponent);
|
|
276
|
+
}(_react.PureComponent);
|
|
236
277
|
|
|
237
278
|
_defineProperty(FormControl, "defaultProps", {
|
|
238
279
|
disabled: false,
|
|
@@ -250,4 +291,5 @@ _defineProperty(FormControl, "defaultProps", {
|
|
|
250
291
|
warning: []
|
|
251
292
|
});
|
|
252
293
|
|
|
253
|
-
|
|
294
|
+
var _default = FormControl;
|
|
295
|
+
exports["default"] = _default;
|