grommet 2.43.0 → 2.45.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/all/stories/AllComponents.js +8 -3
- package/components/Accordion/Accordion.js +1 -1
- package/components/Accordion/stories/CustomThemed/Custom.js +1 -1
- package/components/Accordion/stories/Simple.js +1 -1
- package/components/AccordionPanel/AccordionPanel.js +1 -1
- package/components/Anchor/Anchor.js +3 -2
- package/components/Avatar/Avatar.js +1 -1
- package/components/Box/Box.js +1 -1
- package/components/Box/stories/Background.js +1 -1
- package/components/Button/Button.js +1 -1
- package/components/Button/stories/CustomThemed/Typescript.tsx +1 -1
- package/components/Button/stories/Kind.js +6 -10
- package/components/Calendar/Calendar.js +16 -9
- package/components/Calendar/StyledCalendar.js +6 -5
- package/components/Calendar/index.d.ts +1 -0
- package/components/Calendar/propTypes.js +1 -0
- package/components/Calendar/stories/DaylightSavings.js +1 -1
- package/components/Calendar/stories/HeaderLevel.js +36 -0
- package/components/Calendar/stories/ShowAdjacentDays.js +3 -2
- package/components/Card/stories/CustomThemed/Clickable.js +3 -3
- package/components/Card/stories/CustomThemed/Stacked.js +2 -2
- package/components/Card/stories/CustomThemed/Themed.js +5 -5
- package/components/Cards/Cards.js +1 -1
- package/components/Cards/stories/Children.js +2 -2
- package/components/Carousel/Carousel.js +1 -1
- package/components/Carousel/stories/CustomThemed/Custom.js +1 -1
- package/components/Chart/Chart.js +1 -1
- package/components/CheckBox/CheckBox.js +1 -1
- package/components/CheckBox/stories/CustomThemed/Custom.js +1 -1
- package/components/CheckBox/stories/NoLabel.js +1 -1
- package/components/CheckBox/stories/Simple.js +1 -1
- package/components/CheckBoxGroup/CheckBoxGroup.js +1 -1
- package/components/Clock/Analog.js +1 -1
- package/components/Clock/Clock.js +1 -1
- package/components/Clock/Digital.js +1 -1
- package/components/Collapsible/stories/Nested.js +1 -1
- package/components/Data/Data.js +1 -1
- package/components/Data/DataForm.js +1 -1
- package/components/Data/stories/Inline.js +1 -1
- package/components/DataChart/DataChart.js +1 -1
- package/components/DataChart/Detail.js +55 -25
- package/components/DataChart/Legend.js +1 -0
- package/components/DataChart/XAxis.js +1 -1
- package/components/DataClearFilters/DataClearFilters.js +1 -1
- package/components/DataFilter/DataFilter.js +1 -1
- package/components/DataFilters/DataFilters.js +1 -1
- package/components/DataSearch/DataSearch.js +1 -1
- package/components/DataSort/DataSort.js +1 -1
- package/components/DataSummary/DataSummary.js +1 -1
- package/components/DataTable/Body.js +17 -3
- package/components/DataTable/Cell.js +1 -1
- package/components/DataTable/DataTable.js +1 -1
- package/components/DataTable/ExpanderCell.js +1 -1
- package/components/DataTable/Footer.js +1 -1
- package/components/DataTable/GroupedBody.js +1 -1
- package/components/DataTable/Header.js +2 -2
- package/components/DataTable/StyledDataTable.js +20 -12
- package/components/DataTable/stories/CustomThemed/Custom.js +8 -0
- package/components/DataTable/stories/CustomThemed/Fill.js +1 -0
- package/components/DataTableColumns/DataTableColumns.js +1 -1
- package/components/DataTableGroupBy/DataTableGroupBy.js +1 -1
- package/components/DataView/DataView.js +1 -1
- package/components/DateInput/DateInput.js +1 -1
- package/components/Diagram/Diagram.js +1 -1
- package/components/Diagram/stories/Progressing.js +1 -1
- package/components/Distribution/Distribution.js +1 -1
- package/components/Drop/Drop.js +1 -1
- package/components/Drop/DropContainer.js +1 -1
- package/components/Drop/stories/CustomThemed/Lazy.js +4 -4
- package/components/Drop/stories/CustomThemed/Themed.js +1 -1
- package/components/DropButton/DropButton.js +1 -1
- package/components/FileInput/FileInput.js +1 -1
- package/components/FocusedContainer.js +1 -1
- package/components/Form/Form.js +1 -1
- package/components/Form/stories/AggregateValidation.js +5 -2
- package/components/Form/stories/ArrayOfFormFields.js +19 -6
- package/components/Form/stories/Controlled.js +8 -1
- package/components/Form/stories/ControlledInput.js +8 -1
- package/components/Form/stories/ControlledInputLazy.js +5 -1
- package/components/Form/stories/ControlledLazy.js +5 -1
- package/components/Form/stories/CustomThemed/Custom.js +17 -1
- package/components/Form/stories/CustomThemed/FieldSpacingOptions.js +36 -36
- package/components/Form/stories/CustomThemed/RequiredLabel.js +3 -0
- package/components/Form/stories/CustomThemed/Themed.js +2 -2
- package/components/Form/stories/DynamicFields.js +9 -2
- package/components/Form/stories/FieldWithChildren.js +6 -1
- package/components/Form/stories/TriggerValidationUsingFormField.js +18 -6
- package/components/Form/stories/Uncontrolled.js +6 -1
- package/components/Form/stories/ValidateOnBlur.js +10 -3
- package/components/Form/stories/ValidateOnChange.js +11 -5
- package/components/Form/stories/ValidateOnMount.js +11 -4
- package/components/Form/stories/typescript/TypedForm.tsx +39 -45
- package/components/FormField/FormField.js +73 -18
- package/components/FormField/stories/CustomThemed/Custom.tsx +1 -1
- package/components/Grid/Grid.js +1 -1
- package/components/Grid/stories/AreasPropAlternative.js +4 -1
- package/components/Grid/stories/CustomThemed/Responsive.js +1 -1
- package/components/Grommet/Grommet.js +1 -1
- package/components/Grommet/index.d.ts +4 -0
- package/components/Grommet/propTypes.js +4 -0
- package/components/Header/Header.js +1 -1
- package/components/Heading/Heading.js +1 -1
- package/components/Image/Image.js +1 -1
- package/components/Keyboard/Keyboard.js +1 -1
- package/components/Layer/LayerContainer.js +4 -15
- package/components/Layer/StyledLayer.js +2 -1
- package/components/List/List.js +1 -1
- package/components/Markdown/Markdown.js +1 -1
- package/components/MaskedInput/MaskedInput.js +1 -1
- package/components/Menu/Menu.js +6 -5
- package/components/Menu/stories/CustomThemed/Themed.tsx +4 -0
- package/components/Meter/Bar.js +1 -1
- package/components/Meter/Circle.js +1 -1
- package/components/Meter/Meter.js +1 -1
- package/components/Meter/StyledMeter.js +2 -1
- package/components/NameValueList/NameValueList.js +1 -1
- package/components/Nav/stories/CustomThemed/JustifySidebar.js +2 -2
- package/components/Nav/stories/Sidebar.js +1 -1
- package/components/Notification/Notification.js +38 -27
- package/components/Notification/stories/CustomThemed/ThemedNotification.tsx +2 -1
- package/components/Page/Page.js +1 -1
- package/components/PageContent/PageContent.js +1 -1
- package/components/PageHeader/PageHeader.js +1 -1
- package/components/PageHeader/stories/Level.js +2 -2
- package/components/PageHeader/stories/Size.js +3 -2
- package/components/Pagination/PageControl.js +1 -1
- package/components/Pagination/Pagination.js +1 -1
- package/components/Pagination/PaginationStep.js +1 -1
- package/components/Pagination/PaginationSummary.js +1 -1
- package/components/Paragraph/Paragraph.js +1 -1
- package/components/RadioButton/RadioButton.js +1 -1
- package/components/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/components/RadioButtonGroup/stories/CustomThemed/CustomTheme.js +1 -1
- package/components/RadioButtonGroup/stories/Disabled.js +1 -1
- package/components/RangeInput/RangeInput.js +1 -1
- package/components/RangeSelector/EdgeControl.js +1 -1
- package/components/RangeSelector/RangeSelector.js +1 -1
- package/components/RangeSelector/stories/CustomThemed/Custom.js +1 -1
- package/components/RangeSelector/stories/CustomThemed/CustomEdgeControl.js +1 -1
- package/components/RangeSelector/stories/Step.js +1 -1
- package/components/RangeSelector/stories/Vertical.js +1 -1
- package/components/RoutedAnchor/RoutedAnchor.js +1 -1
- package/components/RoutedButton/RoutedButton.js +1 -1
- package/components/Select/DefaultSelectTextInput.js +1 -1
- package/components/Select/Select.js +1 -1
- package/components/Select/SelectContainer.js +2 -1
- package/components/Select/StyledSelect.js +4 -1
- package/components/Select/stories/components/SearchBorderBox.js +1 -1
- package/components/Select/stories/components/SearchInput.js +1 -1
- package/components/SelectMultiple/SelectMultiple.js +1 -1
- package/components/SelectMultiple/SelectMultipleContainer.js +2 -1
- package/components/Sidebar/Sidebar.js +1 -1
- package/components/Sidebar/stories/Labels.js +1 -1
- package/components/Skeleton/Skeleton.js +1 -1
- package/components/Skeleton/stories/CustomThemed/Custom.js +2 -0
- package/components/Skeleton/stories/GridContainer.js +2 -2
- package/components/Skeleton/stories/Group.js +1 -1
- package/components/Skeleton/stories/Individual.js +2 -3
- package/components/Skeleton/stories/Simple.js +1 -0
- package/components/SkipLink/SkipLink.js +1 -1
- package/components/SkipLinkTarget/SkipLinkTarget.js +1 -1
- package/components/SkipLinks/stories/CustomThemed/Themed.js +1 -1
- package/components/Spinner/Spinner.js +1 -1
- package/components/Stack/Stack.js +1 -1
- package/components/StarRating/StarRating.js +18 -4
- package/components/Tab/Tab.js +1 -1
- package/components/Table/Table.js +1 -1
- package/components/TableCell/TableCell.js +1 -1
- package/components/Tabs/Tabs.js +2 -2
- package/components/Tabs/stories/CustomThemed/Custom.js +3 -3
- package/components/Tag/Tag.js +1 -1
- package/components/Text/Text.js +1 -1
- package/components/Text/TextSkeleton.js +1 -1
- package/components/TextArea/TextArea.js +1 -1
- package/components/TextArea/stories/CustomThemed/Themed.js +1 -0
- package/components/TextInput/TextInput.js +1 -1
- package/components/TextInput/stories/Simple.js +1 -6
- package/components/TextInput/stories/WithTags.js +1 -1
- package/components/ThumbsRating/ThumbsRating.js +20 -5
- package/components/ToggleGroup/StyledToggleGroup.js +9 -1
- package/components/ToggleGroup/ToggleGroup.js +2 -2
- package/components/Toolbar/Toolbar.js +1 -1
- package/components/Video/Video.js +1 -1
- package/components/WorldMap/WorldMap.js +1 -1
- package/contexts/ResponsiveContext/stories/ResponsiveGrid.js +1 -1
- package/es6/all/stories/AllComponents.js +8 -3
- package/es6/components/Accordion/Accordion.js +1 -1
- package/es6/components/Accordion/stories/CustomThemed/Custom.js +1 -1
- package/es6/components/Accordion/stories/Simple.js +1 -1
- package/es6/components/AccordionPanel/AccordionPanel.js +1 -1
- package/es6/components/Anchor/Anchor.js +3 -2
- package/es6/components/Avatar/Avatar.js +1 -1
- package/es6/components/Box/Box.js +1 -1
- package/es6/components/Box/stories/Background.js +1 -1
- package/es6/components/Button/Button.js +1 -1
- package/es6/components/Button/stories/CustomThemed/Typescript.tsx +1 -1
- package/es6/components/Button/stories/Kind.js +6 -10
- package/es6/components/Calendar/Calendar.js +16 -9
- package/es6/components/Calendar/StyledCalendar.js +6 -5
- package/es6/components/Calendar/index.d.ts +1 -0
- package/es6/components/Calendar/propTypes.js +1 -0
- package/es6/components/Calendar/stories/DaylightSavings.js +2 -2
- package/es6/components/Calendar/stories/HeaderLevel.js +30 -0
- package/es6/components/Calendar/stories/ShowAdjacentDays.js +3 -2
- package/es6/components/Card/stories/CustomThemed/Clickable.js +4 -4
- package/es6/components/Card/stories/CustomThemed/Stacked.js +3 -3
- package/es6/components/Card/stories/CustomThemed/Themed.js +6 -6
- package/es6/components/Cards/Cards.js +1 -1
- package/es6/components/Cards/stories/Children.js +3 -3
- package/es6/components/Carousel/Carousel.js +1 -1
- package/es6/components/Carousel/stories/CustomThemed/Custom.js +1 -1
- package/es6/components/Chart/Chart.js +1 -1
- package/es6/components/CheckBox/CheckBox.js +1 -1
- package/es6/components/CheckBox/stories/CustomThemed/Custom.js +1 -1
- package/es6/components/CheckBox/stories/NoLabel.js +1 -1
- package/es6/components/CheckBox/stories/Simple.js +1 -1
- package/es6/components/CheckBoxGroup/CheckBoxGroup.js +1 -1
- package/es6/components/Clock/Analog.js +1 -1
- package/es6/components/Clock/Clock.js +1 -1
- package/es6/components/Clock/Digital.js +1 -1
- package/es6/components/Collapsible/stories/Nested.js +1 -1
- package/es6/components/Data/Data.js +1 -1
- package/es6/components/Data/DataForm.js +1 -1
- package/es6/components/Data/stories/Inline.js +1 -1
- package/es6/components/DataChart/DataChart.js +1 -1
- package/es6/components/DataChart/Detail.js +55 -25
- package/es6/components/DataChart/Legend.js +1 -0
- package/es6/components/DataChart/XAxis.js +1 -1
- package/es6/components/DataClearFilters/DataClearFilters.js +1 -1
- package/es6/components/DataFilter/DataFilter.js +1 -1
- package/es6/components/DataFilters/DataFilters.js +1 -1
- package/es6/components/DataSearch/DataSearch.js +1 -1
- package/es6/components/DataSort/DataSort.js +1 -1
- package/es6/components/DataSummary/DataSummary.js +1 -1
- package/es6/components/DataTable/Body.js +19 -5
- package/es6/components/DataTable/Cell.js +1 -1
- package/es6/components/DataTable/DataTable.js +1 -1
- package/es6/components/DataTable/ExpanderCell.js +1 -1
- package/es6/components/DataTable/Footer.js +1 -1
- package/es6/components/DataTable/GroupedBody.js +1 -1
- package/es6/components/DataTable/Header.js +3 -3
- package/es6/components/DataTable/StyledDataTable.js +20 -12
- package/es6/components/DataTable/stories/CustomThemed/Custom.js +8 -0
- package/es6/components/DataTable/stories/CustomThemed/Fill.js +1 -0
- package/es6/components/DataTableColumns/DataTableColumns.js +1 -1
- package/es6/components/DataTableGroupBy/DataTableGroupBy.js +1 -1
- package/es6/components/DataView/DataView.js +1 -1
- package/es6/components/DateInput/DateInput.js +1 -1
- package/es6/components/Diagram/Diagram.js +1 -1
- package/es6/components/Diagram/stories/Progressing.js +1 -1
- package/es6/components/Distribution/Distribution.js +1 -1
- package/es6/components/Drop/Drop.js +1 -1
- package/es6/components/Drop/DropContainer.js +1 -1
- package/es6/components/Drop/stories/CustomThemed/Lazy.js +4 -4
- package/es6/components/Drop/stories/CustomThemed/Themed.js +1 -1
- package/es6/components/DropButton/DropButton.js +1 -1
- package/es6/components/FileInput/FileInput.js +1 -1
- package/es6/components/FocusedContainer.js +1 -1
- package/es6/components/Form/Form.js +1 -1
- package/es6/components/Form/stories/AggregateValidation.js +5 -2
- package/es6/components/Form/stories/ArrayOfFormFields.js +20 -7
- package/es6/components/Form/stories/Controlled.js +8 -1
- package/es6/components/Form/stories/ControlledInput.js +8 -1
- package/es6/components/Form/stories/ControlledInputLazy.js +5 -1
- package/es6/components/Form/stories/ControlledLazy.js +5 -1
- package/es6/components/Form/stories/CustomThemed/Custom.js +17 -1
- package/es6/components/Form/stories/CustomThemed/FieldSpacingOptions.js +36 -36
- package/es6/components/Form/stories/CustomThemed/RequiredLabel.js +3 -0
- package/es6/components/Form/stories/CustomThemed/Themed.js +2 -2
- package/es6/components/Form/stories/DynamicFields.js +9 -2
- package/es6/components/Form/stories/FieldWithChildren.js +6 -1
- package/es6/components/Form/stories/TriggerValidationUsingFormField.js +19 -7
- package/es6/components/Form/stories/Uncontrolled.js +6 -1
- package/es6/components/Form/stories/ValidateOnBlur.js +10 -3
- package/es6/components/Form/stories/ValidateOnChange.js +12 -6
- package/es6/components/Form/stories/ValidateOnMount.js +11 -4
- package/es6/components/Form/stories/typescript/TypedForm.tsx +39 -45
- package/es6/components/FormField/FormField.js +73 -18
- package/es6/components/FormField/stories/CustomThemed/Custom.tsx +1 -1
- package/es6/components/Grid/Grid.js +1 -1
- package/es6/components/Grid/stories/AreasPropAlternative.js +4 -1
- package/es6/components/Grid/stories/CustomThemed/Responsive.js +1 -1
- package/es6/components/Grommet/Grommet.js +1 -1
- package/es6/components/Grommet/index.d.ts +4 -0
- package/es6/components/Grommet/propTypes.js +4 -0
- package/es6/components/Header/Header.js +1 -1
- package/es6/components/Heading/Heading.js +1 -1
- package/es6/components/Image/Image.js +1 -1
- package/es6/components/Keyboard/Keyboard.js +1 -1
- package/es6/components/Layer/LayerContainer.js +5 -16
- package/es6/components/Layer/StyledLayer.js +2 -1
- package/es6/components/List/List.js +1 -1
- package/es6/components/Markdown/Markdown.js +1 -1
- package/es6/components/MaskedInput/MaskedInput.js +1 -1
- package/es6/components/Menu/Menu.js +6 -5
- package/es6/components/Menu/stories/CustomThemed/Themed.tsx +4 -0
- package/es6/components/Meter/Bar.js +1 -1
- package/es6/components/Meter/Circle.js +1 -1
- package/es6/components/Meter/Meter.js +1 -1
- package/es6/components/Meter/StyledMeter.js +3 -1
- package/es6/components/NameValueList/NameValueList.js +1 -1
- package/es6/components/Nav/stories/CustomThemed/JustifySidebar.js +2 -2
- package/es6/components/Nav/stories/Sidebar.js +1 -1
- package/es6/components/Notification/Notification.js +38 -27
- package/es6/components/Notification/stories/CustomThemed/ThemedNotification.tsx +2 -1
- package/es6/components/Page/Page.js +1 -1
- package/es6/components/PageContent/PageContent.js +1 -1
- package/es6/components/PageHeader/PageHeader.js +1 -1
- package/es6/components/PageHeader/stories/Level.js +3 -3
- package/es6/components/PageHeader/stories/Size.js +3 -2
- package/es6/components/Pagination/PageControl.js +1 -1
- package/es6/components/Pagination/Pagination.js +1 -1
- package/es6/components/Pagination/PaginationStep.js +1 -1
- package/es6/components/Pagination/PaginationSummary.js +1 -1
- package/es6/components/Paragraph/Paragraph.js +1 -1
- package/es6/components/RadioButton/RadioButton.js +1 -1
- package/es6/components/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/es6/components/RadioButtonGroup/stories/CustomThemed/CustomTheme.js +1 -1
- package/es6/components/RadioButtonGroup/stories/Disabled.js +1 -1
- package/es6/components/RangeInput/RangeInput.js +1 -1
- package/es6/components/RangeSelector/EdgeControl.js +1 -1
- package/es6/components/RangeSelector/RangeSelector.js +1 -1
- package/es6/components/RangeSelector/stories/CustomThemed/Custom.js +1 -1
- package/es6/components/RangeSelector/stories/CustomThemed/CustomEdgeControl.js +1 -1
- package/es6/components/RangeSelector/stories/Step.js +1 -1
- package/es6/components/RangeSelector/stories/Vertical.js +1 -1
- package/es6/components/RoutedAnchor/RoutedAnchor.js +1 -1
- package/es6/components/RoutedButton/RoutedButton.js +1 -1
- package/es6/components/Select/DefaultSelectTextInput.js +1 -1
- package/es6/components/Select/Select.js +1 -1
- package/es6/components/Select/SelectContainer.js +2 -1
- package/es6/components/Select/StyledSelect.js +4 -1
- package/es6/components/Select/stories/components/SearchBorderBox.js +1 -1
- package/es6/components/Select/stories/components/SearchInput.js +1 -1
- package/es6/components/SelectMultiple/SelectMultiple.js +1 -1
- package/es6/components/SelectMultiple/SelectMultipleContainer.js +2 -1
- package/es6/components/Sidebar/Sidebar.js +1 -1
- package/es6/components/Sidebar/stories/Labels.js +1 -1
- package/es6/components/Skeleton/Skeleton.js +1 -1
- package/es6/components/Skeleton/stories/CustomThemed/Custom.js +2 -0
- package/es6/components/Skeleton/stories/GridContainer.js +3 -3
- package/es6/components/Skeleton/stories/Group.js +2 -2
- package/es6/components/Skeleton/stories/Individual.js +3 -4
- package/es6/components/Skeleton/stories/Simple.js +1 -0
- package/es6/components/SkipLink/SkipLink.js +1 -1
- package/es6/components/SkipLinkTarget/SkipLinkTarget.js +1 -1
- package/es6/components/SkipLinks/stories/CustomThemed/Themed.js +1 -1
- package/es6/components/Spinner/Spinner.js +1 -1
- package/es6/components/Stack/Stack.js +1 -1
- package/es6/components/StarRating/StarRating.js +17 -4
- package/es6/components/Tab/Tab.js +1 -1
- package/es6/components/Table/Table.js +1 -1
- package/es6/components/TableCell/TableCell.js +1 -1
- package/es6/components/Tabs/Tabs.js +2 -2
- package/es6/components/Tabs/stories/CustomThemed/Custom.js +3 -3
- package/es6/components/Tag/Tag.js +1 -1
- package/es6/components/Text/Text.js +1 -1
- package/es6/components/Text/TextSkeleton.js +1 -1
- package/es6/components/TextArea/TextArea.js +1 -1
- package/es6/components/TextArea/stories/CustomThemed/Themed.js +1 -0
- package/es6/components/TextInput/TextInput.js +1 -1
- package/es6/components/TextInput/stories/Simple.js +2 -7
- package/es6/components/TextInput/stories/WithTags.js +1 -1
- package/es6/components/ThumbsRating/ThumbsRating.js +20 -5
- package/es6/components/ToggleGroup/StyledToggleGroup.js +8 -0
- package/es6/components/ToggleGroup/ToggleGroup.js +3 -3
- package/es6/components/Toolbar/Toolbar.js +1 -1
- package/es6/components/Video/Video.js +1 -1
- package/es6/components/WorldMap/WorldMap.js +1 -1
- package/es6/contexts/ResponsiveContext/stories/ResponsiveGrid.js +1 -1
- package/es6/languages/default.json +4 -0
- package/es6/themes/base.d.ts +52 -5
- package/es6/themes/base.js +47 -14
- package/es6/utils/pagination.js +1 -1
- package/es6/utils/responsive.js +1 -0
- package/es6/utils/styles.js +49 -14
- package/grommet.min.js +1 -1
- package/grommet.min.js.map +1 -1
- package/languages/default.json +4 -0
- package/package.json +28 -28
- package/themes/base.d.ts +52 -5
- package/themes/base.js +47 -14
- package/tools/release-stable.js +1 -1
- package/utils/pagination.js +1 -1
- package/utils/responsive.js +1 -0
- package/utils/styles.js +49 -14
- package/components/Form/stories/FieldWithComponentProp.js +0 -138
- package/es6/components/Form/stories/FieldWithComponentProp.js +0 -133
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
-
import React, { Fragment, useCallback, useContext,
|
|
2
|
+
import React, { Fragment, useCallback, useContext, useMemo, useRef, useState } from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import { AnnounceContext } from '../../contexts';
|
|
4
|
+
import { AnnounceContext } from '../../contexts/AnnounceContext';
|
|
5
|
+
import { MessageContext } from '../../contexts/MessageContext';
|
|
5
6
|
import { Box } from '../Box';
|
|
6
7
|
import { Drop } from '../Drop';
|
|
7
8
|
import { Grid } from '../Grid';
|
|
@@ -25,6 +26,8 @@ var Detail = function Detail(_ref) {
|
|
|
25
26
|
renderValue = _ref.renderValue,
|
|
26
27
|
thickness = _ref.thickness;
|
|
27
28
|
var announce = useContext(AnnounceContext);
|
|
29
|
+
var _useContext = useContext(MessageContext),
|
|
30
|
+
format = _useContext.format;
|
|
28
31
|
var _useThemeValue = useThemeValue(),
|
|
29
32
|
theme = _useThemeValue.theme;
|
|
30
33
|
var _useState = useState(),
|
|
@@ -73,30 +76,48 @@ var Detail = function Detail(_ref) {
|
|
|
73
76
|
};
|
|
74
77
|
return res;
|
|
75
78
|
}, [data.length, detailIndex, horizontalProp]);
|
|
76
|
-
|
|
77
|
-
if (
|
|
78
|
-
|
|
79
|
-
var _data$
|
|
79
|
+
var getContent = useCallback(function (index) {
|
|
80
|
+
if (index !== undefined) {
|
|
81
|
+
return series.filter(function (_ref2) {
|
|
82
|
+
var _data$index;
|
|
80
83
|
var property = _ref2.property;
|
|
81
|
-
return (!activeProperty || activeProperty === property) && (data == null || (_data$
|
|
84
|
+
return (!activeProperty || activeProperty === property) && (data == null || (_data$index = data[index]) == null ? void 0 : _data$index[property]) !== undefined || axis && axis.x && axis.x.property === property;
|
|
82
85
|
}).map(function (serie) {
|
|
83
|
-
var axisValue = horizontalProp ? data[
|
|
84
|
-
return (serie.label || serie.property) + " " + renderValue(serie, axisValue);
|
|
86
|
+
var axisValue = horizontalProp ? data[index][serie.property] : index;
|
|
87
|
+
return (serie.label || serie.property) + " " + renderValue(serie, axisValue) + ".";
|
|
85
88
|
}).join(' ');
|
|
86
|
-
announce(content);
|
|
87
89
|
}
|
|
88
|
-
|
|
90
|
+
return undefined;
|
|
91
|
+
}, [activeProperty, axis, data, horizontalProp, renderValue, series]);
|
|
89
92
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Keyboard, {
|
|
90
|
-
onLeft: function onLeft() {
|
|
91
|
-
|
|
93
|
+
onLeft: function onLeft(event) {
|
|
94
|
+
event.preventDefault();
|
|
95
|
+
if (detailIndex === undefined) {
|
|
96
|
+
setDetailIndex(data.length - 1);
|
|
97
|
+
announce(getContent(data.length - 1), 'assertive');
|
|
98
|
+
} else if (detailIndex > 0) {
|
|
99
|
+
setDetailIndex(detailIndex - 1);
|
|
100
|
+
announce(getContent(detailIndex - 1), 'assertive');
|
|
101
|
+
}
|
|
92
102
|
},
|
|
93
|
-
onRight: function onRight() {
|
|
94
|
-
|
|
103
|
+
onRight: function onRight(event) {
|
|
104
|
+
event.preventDefault();
|
|
105
|
+
if (detailIndex === undefined) {
|
|
106
|
+
setDetailIndex(0);
|
|
107
|
+
announce(getContent(0), 'assertive');
|
|
108
|
+
} else if (detailIndex < data.length - 1) {
|
|
109
|
+
setDetailIndex(detailIndex + 1);
|
|
110
|
+
announce(getContent(detailIndex + 1), 'assertive');
|
|
111
|
+
}
|
|
95
112
|
}
|
|
96
113
|
}, /*#__PURE__*/React.createElement(DetailControl, _extends({
|
|
97
114
|
key: "band",
|
|
98
|
-
tabIndex: 0,
|
|
99
115
|
fill: true,
|
|
116
|
+
role: "list",
|
|
117
|
+
tabIndex: 0,
|
|
118
|
+
"aria-label": format({
|
|
119
|
+
id: 'dataChart.detailTitle'
|
|
120
|
+
}),
|
|
100
121
|
justify: "between",
|
|
101
122
|
responsive: false
|
|
102
123
|
}, horizontalProp ? {
|
|
@@ -105,7 +126,11 @@ var Detail = function Detail(_ref) {
|
|
|
105
126
|
direction: 'row',
|
|
106
127
|
pad: pad
|
|
107
128
|
}, {
|
|
108
|
-
onFocus: function onFocus() {
|
|
129
|
+
onFocus: function onFocus() {
|
|
130
|
+
announce(format({
|
|
131
|
+
id: 'dataChart.detailFocus'
|
|
132
|
+
}));
|
|
133
|
+
},
|
|
109
134
|
onBlur: function onBlur() {
|
|
110
135
|
return setDetailIndex(undefined);
|
|
111
136
|
}
|
|
@@ -117,6 +142,7 @@ var Detail = function Detail(_ref) {
|
|
|
117
142
|
// eslint-disable-next-line react/no-array-index-key
|
|
118
143
|
, _extends({
|
|
119
144
|
key: i,
|
|
145
|
+
role: "listitem",
|
|
120
146
|
responsive: false
|
|
121
147
|
}, horizontalProp ? {
|
|
122
148
|
justify: 'center',
|
|
@@ -128,15 +154,18 @@ var Detail = function Detail(_ref) {
|
|
|
128
154
|
onMouseOver: function onMouseOver(event) {
|
|
129
155
|
activeIndex.current = event.currentTarget;
|
|
130
156
|
setDetailIndex(i);
|
|
157
|
+
announce(getContent(i), 'assertive');
|
|
131
158
|
},
|
|
132
159
|
onMouseLeave: onMouseLeave,
|
|
133
160
|
onFocus: function onFocus() {},
|
|
134
161
|
onBlur: function onBlur() {}
|
|
135
|
-
}), /*#__PURE__*/React.createElement(Box
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
162
|
+
}), /*#__PURE__*/React.createElement(Box, _extends({
|
|
163
|
+
role: "img",
|
|
164
|
+
"aria-label": getContent(i)
|
|
165
|
+
// for horizontal, ref will be placed on child box so
|
|
166
|
+
// drop is restricted to drop dimensions as opposed
|
|
167
|
+
// to filling the chart width
|
|
168
|
+
}, horizontalProp ? {
|
|
140
169
|
fill: 'horizontal'
|
|
141
170
|
} : {
|
|
142
171
|
ref: ref,
|
|
@@ -152,7 +181,8 @@ var Detail = function Detail(_ref) {
|
|
|
152
181
|
target: detailRefs[detailIndex],
|
|
153
182
|
align: dropAlign,
|
|
154
183
|
plain: true,
|
|
155
|
-
onMouseLeave: onMouseLeave
|
|
184
|
+
onMouseLeave: onMouseLeave,
|
|
185
|
+
trapFocus: false
|
|
156
186
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
157
187
|
pad: "small",
|
|
158
188
|
background: {
|
|
@@ -163,9 +193,9 @@ var Detail = function Detail(_ref) {
|
|
|
163
193
|
gap: "xsmall",
|
|
164
194
|
align: "center"
|
|
165
195
|
}, series.filter(function (_ref3) {
|
|
166
|
-
var _data$
|
|
196
|
+
var _data$detailIndex;
|
|
167
197
|
var property = _ref3.property;
|
|
168
|
-
return (!activeProperty || activeProperty === property) && (data == null || (_data$
|
|
198
|
+
return (!activeProperty || activeProperty === property) && (data == null || (_data$detailIndex = data[detailIndex]) == null ? void 0 : _data$detailIndex[property]) !== undefined || axis && axis.x && axis.x.property === property;
|
|
169
199
|
}).map(function (serie) {
|
|
170
200
|
var propertyStyle = seriesStyles[serie.property];
|
|
171
201
|
var axisValue = horizontalProp ? data[detailIndex][serie.property] : detailIndex;
|
|
@@ -57,6 +57,7 @@ var Legend = function Legend(_ref) {
|
|
|
57
57
|
content = /*#__PURE__*/React.createElement(Button, {
|
|
58
58
|
key: property,
|
|
59
59
|
active: isActive,
|
|
60
|
+
"aria-pressed": isActive ? 'true' : 'false',
|
|
60
61
|
onClick: function onClick() {
|
|
61
62
|
return setActiveProperty(isActive ? undefined : property);
|
|
62
63
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["values", "pad", "renderValue", "serie", "theme", "thickness"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React, { forwardRef, useMemo } from 'react';
|
|
5
5
|
import { edgeToNum } from '../../utils';
|
|
6
6
|
import { Box } from '../Box';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["onClick"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React, { forwardRef, useContext } from 'react';
|
|
5
5
|
import { DataClearFiltersPropTypes } from './propTypes';
|
|
6
6
|
import { Button } from '../Button';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["children", "options", "property", "range"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React, { useContext, useMemo, useState } from 'react';
|
|
5
5
|
import { DataContext } from '../../contexts/DataContext';
|
|
6
6
|
import { DataForm } from '../Data/DataForm';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["drop", "children", "clearFilters", "heading", "layer", "updateOn"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React, { Children, useContext, useEffect, useMemo, useState } from 'react';
|
|
5
5
|
import { Filter } from 'grommet-icons/icons/Filter';
|
|
6
6
|
import { Close } from 'grommet-icons/icons/Close';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["drop", "id", "responsive", "updateOn"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React, { useContext, useEffect, useState } from 'react';
|
|
5
5
|
import { Search } from 'grommet-icons/icons/Search';
|
|
6
6
|
import { Box } from '../Box';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var _excluded = ["drop", "options"];
|
|
2
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
2
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
3
3
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
4
|
import React, { useContext, useMemo, useState } from 'react';
|
|
5
5
|
import { Descend } from 'grommet-icons/icons/Descend';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["messages"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React, { useContext } from 'react';
|
|
5
5
|
import { Text } from '../Text';
|
|
6
6
|
import { DataContext } from '../../contexts/DataContext';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var _excluded = ["cellProps", "columns", "data", "disabled", "onMore", "replace", "onClickRow", "onSelect", "pinnedOffset", "primaryProperty", "rowProps", "selected", "rowDetails", "show", "size", "step", "rowExpand", "setRowExpand", "verticalAlign"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
/* eslint-disable no-underscore-dangle */
|
|
5
|
-
import React, { forwardRef, memo } from 'react';
|
|
6
|
-
import { useKeyboard } from '../../utils';
|
|
5
|
+
import React, { forwardRef, memo, useEffect } from 'react';
|
|
6
|
+
import { useKeyboard, useForwardedRef } from '../../utils';
|
|
7
7
|
import { CheckBox } from '../CheckBox';
|
|
8
8
|
import { InfiniteScroll } from '../InfiniteScroll';
|
|
9
9
|
import { TableRow } from '../TableRow';
|
|
@@ -160,6 +160,10 @@ var Body = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
160
160
|
var _React$useState2 = React.useState(),
|
|
161
161
|
lastActive = _React$useState2[0],
|
|
162
162
|
setLastActive = _React$useState2[1];
|
|
163
|
+
var _React$useState3 = React.useState(),
|
|
164
|
+
scroll = _React$useState3[0],
|
|
165
|
+
setScroll = _React$useState3[1];
|
|
166
|
+
var containerRef = useForwardedRef(ref);
|
|
163
167
|
|
|
164
168
|
// Determine if using a keyboard to cover focus behavior
|
|
165
169
|
var usingKeyboard = useKeyboard();
|
|
@@ -175,6 +179,16 @@ var Body = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
175
179
|
}
|
|
176
180
|
};
|
|
177
181
|
var clickableRow = onClickRow && active >= 0 && (!disabled || activePrimaryValue !== undefined && !disabled.includes(activePrimaryValue));
|
|
182
|
+
|
|
183
|
+
// Determine if the DataTable body is scrollable
|
|
184
|
+
useEffect(function () {
|
|
185
|
+
if (containerRef.current) {
|
|
186
|
+
var element = containerRef.current;
|
|
187
|
+
if (element.scrollHeight > element.offsetHeight) {
|
|
188
|
+
setScroll(true);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}, [containerRef]);
|
|
178
192
|
return /*#__PURE__*/React.createElement(Keyboard, {
|
|
179
193
|
onEnter: clickableRow ? function (event) {
|
|
180
194
|
if (clickableRow) {
|
|
@@ -208,9 +222,9 @@ var Body = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
208
222
|
return setActive((active != null ? active : -1) + 1);
|
|
209
223
|
} : undefined
|
|
210
224
|
}, /*#__PURE__*/React.createElement(StyledDataTableBody, _extends({
|
|
211
|
-
ref:
|
|
225
|
+
ref: containerRef,
|
|
212
226
|
size: size,
|
|
213
|
-
tabIndex: onClickRow ? 0 : undefined,
|
|
227
|
+
tabIndex: onClickRow || scroll ? 0 : undefined,
|
|
214
228
|
onFocus: function onFocus() {
|
|
215
229
|
return setActive(onFocusActive);
|
|
216
230
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["background", "border", "column", "datum", "pad", "pin", "pinnedOffset", "primaryProperty", "scope", "verticalAlign"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React, { isValidElement, memo, useContext } from 'react';
|
|
5
5
|
import { Text } from '../Text';
|
|
6
6
|
import { StyledDataTableCell } from './StyledDataTable';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["allowSelectAll", "background", "border", "columns", "data", "disabled", "fill", "groupBy", "onClickRow", "onMore", "onSearch", "onSelect", "onSort", "onUpdate", "replace", "pad", "paginate", "pin", "placeholder", "primaryKey", "resizeable", "rowProps", "select", "show", "size", "sort", "sortable", "rowDetails", "step", "verticalAlign"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React, { useCallback, useContext, useEffect, useMemo, useRef, useState, Fragment } from 'react';
|
|
5
5
|
import { useLayoutEffect } from '../../utils/use-isomorphic-layout-effect';
|
|
6
6
|
import { DataContext } from '../../contexts/DataContext';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["context", "expanded", "onToggle", "pad"],
|
|
2
2
|
_excluded2 = ["background", "border", "context"];
|
|
3
3
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { Blank } from 'grommet-icons/icons/Blank';
|
|
7
7
|
import { Box } from '../Box';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["cellProps", "columns", "fill", "footerValues", "groups", "onSelect", "pin", "pinnedOffset", "primaryProperty", "selected", "verticalAlign"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React, { forwardRef } from 'react';
|
|
5
5
|
import { TableRow } from '../TableRow';
|
|
6
6
|
import { TableCell } from '../TableCell';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["cellProps", "columns", "data", "disabled", "groupBy", "groups", "groupState", "pinnedOffset", "primaryProperty", "onMore", "onSelect", "onToggle", "onUpdate", "replace", "rowProps", "selected", "size", "step", "verticalAlign"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React, { forwardRef, useMemo } from 'react';
|
|
5
5
|
import { Cell } from './Cell';
|
|
6
6
|
import { ExpanderCell } from './ExpanderCell';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["background", "border", "color", "font", "gap", "pad", "units"],
|
|
2
2
|
_excluded2 = ["allowSelectAll", "cellProps", "columns", "data", "disabled", "fill", "filtering", "filters", "groupBy", "groups", "groupState", "onFilter", "onFiltering", "onResize", "onSelect", "onSort", "onToggle", "onWidths", "pin", "pinnedOffset", "primaryProperty", "selected", "rowDetails", "sort", "widths", "verticalAlign"];
|
|
3
3
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
/* eslint-disable no-underscore-dangle */
|
|
6
6
|
import React, { forwardRef, useCallback, useContext, useEffect, useState } from 'react';
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
@@ -14,7 +14,7 @@ import { Text } from '../Text';
|
|
|
14
14
|
import { Resizer } from './Resizer';
|
|
15
15
|
import { Searcher } from './Searcher';
|
|
16
16
|
import { ExpanderCell } from './ExpanderCell';
|
|
17
|
-
import { StyledDataTableCell, StyledDataTableHeader,
|
|
17
|
+
import { StyledDataTableCell, StyledDataTableHeader, StyledDataTableRowHeader } from './StyledDataTable';
|
|
18
18
|
import { datumValue } from './buildState';
|
|
19
19
|
import { kindPartStyles } from '../../utils/styles';
|
|
20
20
|
import { normalizeColor } from '../../utils/colors';
|
|
@@ -196,7 +196,7 @@ var Header = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
196
196
|
return /*#__PURE__*/React.createElement(StyledDataTableHeader, _extends({
|
|
197
197
|
ref: ref,
|
|
198
198
|
fillProp: fill
|
|
199
|
-
}, rest), /*#__PURE__*/React.createElement(
|
|
199
|
+
}, rest), /*#__PURE__*/React.createElement(StyledDataTableRowHeader, null, groups && /*#__PURE__*/React.createElement(ExpanderCell, {
|
|
200
200
|
background: cellProps.background,
|
|
201
201
|
border: cellProps.border,
|
|
202
202
|
context: "header",
|
|
@@ -30,21 +30,29 @@ var hoverStyle = css(["", " color:", ";"], function (props) {
|
|
|
30
30
|
}, function (props) {
|
|
31
31
|
return normalizeColor(props.theme.table && props.theme.table.row && props.theme.table.row.hover && props.theme.table.row.hover.color || props.theme.global.hover.color, props.theme);
|
|
32
32
|
});
|
|
33
|
-
var
|
|
34
|
-
|
|
35
|
-
componentId: "sc-xrlyjm-2"
|
|
36
|
-
})(["", " ", " ", ""], function (props) {
|
|
37
|
-
return props.size && "\n display: table;\n width: 100%;\n table-layout: fixed;\n ";
|
|
33
|
+
var rowStyles = css(["", " ", " ", ""], function (props) {
|
|
34
|
+
return props.size && "display: table;\n width: 100%;\n table-layout: fixed;\n ";
|
|
38
35
|
}, function (props) {
|
|
39
|
-
return props.onClick && "
|
|
36
|
+
return props.onClick && "cursor: pointer;";
|
|
40
37
|
}, function (props) {
|
|
41
38
|
return props.active && hoverStyle;
|
|
42
39
|
});
|
|
40
|
+
var StyledDataTableRow = styled(TableRow).withConfig({
|
|
41
|
+
displayName: "StyledDataTable__StyledDataTableRow",
|
|
42
|
+
componentId: "sc-xrlyjm-2"
|
|
43
|
+
})(["", ";", ""], function (props) {
|
|
44
|
+
var _props$theme$dataTabl;
|
|
45
|
+
return (_props$theme$dataTabl = props.theme.dataTable) == null || (_props$theme$dataTabl = _props$theme$dataTabl.body) == null || (_props$theme$dataTabl = _props$theme$dataTabl.row) == null ? void 0 : _props$theme$dataTabl.extend;
|
|
46
|
+
}, rowStyles);
|
|
47
|
+
var StyledDataTableRowHeader = styled(TableRow).withConfig({
|
|
48
|
+
displayName: "StyledDataTable__StyledDataTableRowHeader",
|
|
49
|
+
componentId: "sc-xrlyjm-3"
|
|
50
|
+
})(["", ""], rowStyles);
|
|
43
51
|
|
|
44
52
|
// focus styling other than outline doesn't work on <tbody />
|
|
45
53
|
var StyledDataTableBody = styled(TableBody).withConfig({
|
|
46
54
|
displayName: "StyledDataTable__StyledDataTableBody",
|
|
47
|
-
componentId: "sc-xrlyjm-
|
|
55
|
+
componentId: "sc-xrlyjm-4"
|
|
48
56
|
})(["", " &:focus{", "}&:focus:not(:focus-visible){", "}"], function (props) {
|
|
49
57
|
return props.size && "\n display: block;\n width: 100%;\n max-height: " + (props.theme.global.size[props.size] || props.size) + ";\n overflow: auto;\n ";
|
|
50
58
|
}, focusStyle({
|
|
@@ -56,13 +64,13 @@ var StyledDataTableBody = styled(TableBody).withConfig({
|
|
|
56
64
|
}));
|
|
57
65
|
var StyledDataTableHeader = styled(TableHeader).withConfig({
|
|
58
66
|
displayName: "StyledDataTable__StyledDataTableHeader",
|
|
59
|
-
componentId: "sc-xrlyjm-
|
|
67
|
+
componentId: "sc-xrlyjm-5"
|
|
60
68
|
})(["", ""], function (props) {
|
|
61
69
|
return props.size && "\n height: fit-content;\n display: table;\n width: calc(100% - " + props.scrollOffset + "px);\n table-layout: fixed;\n ";
|
|
62
70
|
});
|
|
63
71
|
var StyledDataTableFooter = styled(TableFooter).withConfig({
|
|
64
72
|
displayName: "StyledDataTable__StyledDataTableFooter",
|
|
65
|
-
componentId: "sc-xrlyjm-
|
|
73
|
+
componentId: "sc-xrlyjm-6"
|
|
66
74
|
})(["", " ", ""], function (props) {
|
|
67
75
|
return props.size && "\n display: table;\n width: calc(100% - " + props.scrollOffset + "px);\n table-layout: fixed;\n ";
|
|
68
76
|
}, function (props) {
|
|
@@ -70,7 +78,7 @@ var StyledDataTableFooter = styled(TableFooter).withConfig({
|
|
|
70
78
|
});
|
|
71
79
|
var StyledDataTableCell = styled(TableCell).withConfig({
|
|
72
80
|
displayName: "StyledDataTable__StyledDataTableCell",
|
|
73
|
-
componentId: "sc-xrlyjm-
|
|
81
|
+
componentId: "sc-xrlyjm-7"
|
|
74
82
|
})(["", ";", " ", ""], function (props) {
|
|
75
83
|
return props.context === 'header' && props.theme.dataTable && props.theme.dataTable.header && props.theme.dataTable.header.extend;
|
|
76
84
|
}, function (props) {
|
|
@@ -82,10 +90,10 @@ var StyledDataTableCell = styled(TableCell).withConfig({
|
|
|
82
90
|
});
|
|
83
91
|
var StyledPlaceholder = styled('caption').withConfig(styledComponentsConfig).withConfig({
|
|
84
92
|
displayName: "StyledDataTable__StyledPlaceholder",
|
|
85
|
-
componentId: "sc-xrlyjm-
|
|
93
|
+
componentId: "sc-xrlyjm-8"
|
|
86
94
|
})(["position:absolute;", " ", " left:0;right:0;"], function (props) {
|
|
87
95
|
return "top: " + (props.top || 0) + "px;";
|
|
88
96
|
}, function (props) {
|
|
89
97
|
return "bottom: " + (props.bottom || 0) + "px;";
|
|
90
98
|
});
|
|
91
|
-
export { StyledContainer, StyledDataTable, StyledDataTableRow, StyledDataTableBody, StyledDataTableCell, StyledDataTableHeader, StyledDataTableFooter, StyledPlaceholder };
|
|
99
|
+
export { StyledContainer, StyledDataTable, StyledDataTableRow, StyledDataTableRowHeader, StyledDataTableBody, StyledDataTableCell, StyledDataTableHeader, StyledDataTableFooter, StyledPlaceholder };
|
|
@@ -24,6 +24,11 @@ var customTheme = {
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
dataTable: {
|
|
27
|
+
body: {
|
|
28
|
+
row: {
|
|
29
|
+
extend: "&:last-child td {\n border: none;\n }\n &:last-child th {\n border: none;\n }"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
27
32
|
header: {
|
|
28
33
|
color: 'text-strong',
|
|
29
34
|
extend: function extend(_ref) {
|
|
@@ -51,6 +56,9 @@ export var Custom = function Custom() {
|
|
|
51
56
|
align: "center",
|
|
52
57
|
pad: "large"
|
|
53
58
|
}, /*#__PURE__*/React.createElement(DataTable, {
|
|
59
|
+
border: {
|
|
60
|
+
body: 'bottom'
|
|
61
|
+
},
|
|
54
62
|
columns: columns,
|
|
55
63
|
data: DATA,
|
|
56
64
|
step: 10,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["drop", "options"],
|
|
2
2
|
_excluded2 = ["drop", "options"];
|
|
3
3
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import React, { useCallback, useContext, useMemo, useState } from 'react';
|
|
6
6
|
import { Search } from 'grommet-icons/icons/Search';
|
|
7
7
|
import { Splits } from 'grommet-icons/icons/Splits';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["id", "options"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React, { useContext, useEffect } from 'react';
|
|
5
5
|
import { DataForm } from '../Data/DataForm';
|
|
6
6
|
import { DataContext } from '../../contexts/DataContext';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["id"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React, { useContext, useEffect } from 'react';
|
|
5
5
|
import { DataForm } from '../Data/DataForm';
|
|
6
6
|
import { DataContext } from '../../contexts/DataContext';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["buttonProps", "calendarProps", "defaultValue", "disabled", "dropProps", "format", "id", "icon", "inline", "inputProps", "name", "onChange", "onFocus", "plain", "readOnly", "readOnlyCopy", "reverse", "value", "messages"],
|
|
2
2
|
_excluded2 = ["icon"];
|
|
3
3
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import React, { useRef, forwardRef, useContext, useEffect, useMemo, useState, useCallback } from 'react';
|
|
6
6
|
import styled from 'styled-components';
|
|
7
7
|
import { Calendar as CalendarIcon } from 'grommet-icons/icons/Calendar';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["connections"],
|
|
2
2
|
_excluded2 = ["anchor", "animation", "color", "offset", "round", "thickness", "type"];
|
|
3
3
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import React, { forwardRef, useCallback, useEffect, useRef, useState } from 'react';
|
|
6
6
|
import { normalizeColor, parseMetricToNum, useForwardedRef } from '../../utils';
|
|
7
7
|
import { StyledDiagram } from './StyledDiagram';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["id"],
|
|
2
2
|
_excluded2 = ["color"];
|
|
3
3
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import React, { useReducer, useEffect } from 'react';
|
|
6
6
|
import { Box, Diagram, Stack, Paragraph } from 'grommet';
|
|
7
7
|
var Node = function Node(_ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["basis", "children", "direction", "fill", "gap", "values"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { Box } from '../Box';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["inline", "restrictFocus", "target", "trapFocus"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React, { forwardRef, useEffect, useState, useContext, useRef } from 'react';
|
|
5
5
|
import { createPortal } from 'react-dom';
|
|
6
6
|
import { getNewContainer, setFocusWithoutScroll } from '../../utils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["a11yTitle", "aria-label", "align", "background", "onAlign", "children", "dropTarget", "elevation", "onClickOutside", "onEsc", "onKeyDown", "overflow", "plain", "responsive", "restrictFocus", "stretch", "trapFocus"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React, { forwardRef, useContext, useEffect, useMemo } from 'react';
|
|
5
5
|
import { ThemeContext } from 'styled-components';
|
|
6
6
|
import { ContainerTargetContext } from '../../contexts/ContainerTargetContext';
|
|
@@ -55,7 +55,7 @@ var LazyDrop = function LazyDrop() {
|
|
|
55
55
|
horizontal: 'small'
|
|
56
56
|
}
|
|
57
57
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
58
|
-
background: "dark-
|
|
58
|
+
background: "dark-2",
|
|
59
59
|
pad: "medium",
|
|
60
60
|
align: "center",
|
|
61
61
|
ref: topLeftTargetRef
|
|
@@ -70,7 +70,7 @@ var LazyDrop = function LazyDrop() {
|
|
|
70
70
|
vertical: pad
|
|
71
71
|
}
|
|
72
72
|
}, "align top to bottom")), /*#__PURE__*/React.createElement(Box, {
|
|
73
|
-
background: "dark-
|
|
73
|
+
background: "dark-2",
|
|
74
74
|
pad: "medium",
|
|
75
75
|
align: "center",
|
|
76
76
|
ref: topRightTargetRef
|
|
@@ -88,7 +88,7 @@ var LazyDrop = function LazyDrop() {
|
|
|
88
88
|
direction: "row",
|
|
89
89
|
justify: "between"
|
|
90
90
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
91
|
-
background: "dark-
|
|
91
|
+
background: "dark-2",
|
|
92
92
|
pad: "medium",
|
|
93
93
|
ref: bottomLeftTargetRef
|
|
94
94
|
}, "Target"), bottomLeftTargetRef.current && /*#__PURE__*/React.createElement(Drop, {
|
|
@@ -102,7 +102,7 @@ var LazyDrop = function LazyDrop() {
|
|
|
102
102
|
vertical: pad
|
|
103
103
|
}
|
|
104
104
|
}, "align bottom to top")), /*#__PURE__*/React.createElement(Box, {
|
|
105
|
-
background: "dark-
|
|
105
|
+
background: "dark-2",
|
|
106
106
|
pad: "medium",
|
|
107
107
|
ref: bottomRightTargetRef
|
|
108
108
|
}, "Target"), bottomRightTargetRef.current && /*#__PURE__*/React.createElement(Drop, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["a11yTitle", "onAlign", "disabled", "dropAlign", "dropProps", "dropContent", "dropTarget", "id", "open", "onClick", "onClose", "onOpen"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React, { forwardRef, useCallback, useEffect, useState } from 'react';
|
|
5
5
|
import { Button } from '../Button';
|
|
6
6
|
import { Drop } from '../Drop';
|