{"version":3,"sources":["webpack://Grommet/webpack/bootstrap","webpack://Grommet/external \"React\"","webpack://Grommet/external \"styled\"","webpack://Grommet/./src/js/default-props.js","webpack://Grommet/./src/js/utils/index.js","webpack://Grommet/./node_modules/prop-types/index.js","webpack://Grommet/./src/js/components/Box/index.js","webpack://Grommet/./src/js/utils/general-prop-types.js","webpack://Grommet/./node_modules/grommet-icons/StyledIcon.js","webpack://Grommet/./src/js/components/Text/index.js","webpack://Grommet/./src/js/components/Button/index.js","webpack://Grommet/./src/js/components/Keyboard/index.js","webpack://Grommet/./src/js/contexts/MessageContext/index.js","webpack://Grommet/./src/js/components/Form/FormContext.js","webpack://Grommet/./src/js/utils/use-isomorphic-layout-effect.js","webpack://Grommet/./src/js/components/Drop/index.js","webpack://Grommet/./src/js/components/TableCell/index.js","webpack://Grommet/./src/js/components/Anchor/index.js","webpack://Grommet/./src/js/utils/colors.js","webpack://Grommet/./src/js/components/Table/StyledTable.js","webpack://Grommet/./src/js/components/InfiniteScroll/index.js","webpack://Grommet/./src/js/components/DataTable/StyledDataTable.js","webpack://Grommet/./src/js/components/TableRow/index.js","webpack://Grommet/./src/js/utils/mixins.js","webpack://Grommet/./src/js/utils/styles.js","webpack://Grommet/./src/js/utils/object.js","webpack://Grommet/./src/js/components/Stack/index.js","webpack://Grommet/./src/js/contexts/ResponsiveContext/index.js","webpack://Grommet/./src/js/components/CheckBox/index.js","webpack://Grommet/./src/js/components/Table/TableContext.js","webpack://Grommet/./src/js/components/TextInput/index.js","webpack://Grommet/./src/js/components/DataTable/buildState.js","webpack://Grommet/./src/js/components/Heading/index.js","webpack://Grommet/./src/js/contexts/AnnounceContext/index.js","webpack://Grommet/./src/js/contexts/index.js","webpack://Grommet/./src/js/components/Grid/index.js","webpack://Grommet/./src/js/components/DropButton/index.js","webpack://Grommet/./src/js/utils/animation.js","webpack://Grommet/./src/js/utils/background.js","webpack://Grommet/./src/js/utils/refs.js","webpack://Grommet/./src/js/components/Tip/index.js","webpack://Grommet/./src/js/contexts/RootsContext.js","webpack://Grommet/./src/js/contexts/ContainerTargetContext/index.js","webpack://Grommet/./src/js/components/Calendar/utils.js","webpack://Grommet/./src/js/components/Chart/index.js","webpack://Grommet/./src/js/components/DataChart/utils.js","webpack://Grommet/./src/js/components/DataTable/ExpanderCell.js","webpack://Grommet/./src/js/components/Table/index.js","webpack://Grommet/./src/js/components/TableBody/index.js","webpack://Grommet/./src/js/components/TableHeader/index.js","webpack://Grommet/./src/js/components/TableFooter/index.js","webpack://Grommet/./src/js/components/DataTable/Cell.js","webpack://Grommet/./src/js/components/Pagination/index.js","webpack://Grommet/./src/js/components/Layer/index.js","webpack://Grommet/./src/js/components/Paragraph/index.js","webpack://Grommet/./src/js/utils/DOM.js","webpack://Grommet/./src/js/utils/responsive.js","webpack://Grommet/./src/js/themes/base.js","webpack://Grommet/./node_modules/grommet-icons/themes/base.js","webpack://Grommet/./node_modules/grommet-icons/icons/FormClose.js","webpack://Grommet/./src/js/components/Box/propTypes.js","webpack://Grommet/./src/js/components/Accordion/AccordionContext.js","webpack://Grommet/external \"ReactDOM\"","webpack://Grommet/./src/js/components/FocusedContainer.js","webpack://Grommet/./src/js/components/Collapsible/index.js","webpack://Grommet/./src/js/components/Anchor/propTypes.js","webpack://Grommet/./src/js/components/Calendar/index.js","webpack://Grommet/./src/js/components/Footer/index.js","webpack://Grommet/./src/js/components/Header/index.js","webpack://Grommet/./src/js/components/Carousel/StyledCarousel.js","webpack://Grommet/./src/js/components/Carousel/propTypes.js","webpack://Grommet/./src/js/components/CheckBoxGroup/index.js","webpack://Grommet/./src/js/components/CheckBox/CheckBox.js","webpack://Grommet/./src/js/components/Chart/utils.js","webpack://Grommet/./src/js/components/Clock/StyledClock.js","webpack://Grommet/./src/js/components/DataChart/Swatch.js","webpack://Grommet/./src/js/components/Nav/index.js","webpack://Grommet/./src/js/components/Form/index.js","webpack://Grommet/./src/js/components/MaskedInput/index.js","webpack://Grommet/./src/js/components/RadioButtonGroup/index.js","webpack://Grommet/./src/js/components/RadioButton/index.js","webpack://Grommet/./src/js/themes/index.js","webpack://Grommet/./src/js/contexts/OptionsContext.js","webpack://Grommet/./src/js/components/Image/index.js","webpack://Grommet/./src/js/components/Layer/StyledLayer.js","webpack://Grommet/./src/js/components/Menu/index.js","webpack://Grommet/./src/js/components/Meter/index.js","webpack://Grommet/./src/js/components/Meter/StyledMeter.js","webpack://Grommet/./src/js/components/Meter/utils.js","webpack://Grommet/./src/js/components/Page/index.js","webpack://Grommet/./src/js/components/Page/PageContext.js","webpack://Grommet/./src/js/components/NameValueList/NameValueListContext.js","webpack://Grommet/./src/js/components/Select/utils.js","webpack://Grommet/./src/js/components/Tabs/TabsContext.js","webpack://Grommet/./src/js/index.js","webpack://Grommet/./src/js/components/index.js","webpack://Grommet/./src/js/components/Accordion/index.js","webpack://Grommet/./src/js/components/Accordion/Accordion.js","webpack://Grommet/./src/js/components/Accordion/propTypes.js","webpack://Grommet/./node_modules/prop-types/factoryWithThrowingShims.js","webpack://Grommet/./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://Grommet/./src/js/components/Box/Box.js","webpack://Grommet/./src/js/utils/border.js","webpack://Grommet/./src/js/utils/graphics.js","webpack://Grommet/./src/js/utils/pagination.js","webpack://Grommet/./src/js/utils/PortalContext.js","webpack://Grommet/./node_modules/grommet-icons/icons/Actions.js","webpack://Grommet/./node_modules/grommet-icons/default-props.js","webpack://Grommet/./node_modules/grommet-icons/utils.js","webpack://Grommet/./node_modules/grommet-icons/themes/index.js","webpack://Grommet/./node_modules/grommet-icons/icons/CircleInformation.js","webpack://Grommet/./node_modules/grommet-icons/icons/ClosedCaption.js","webpack://Grommet/./node_modules/grommet-icons/icons/Expand.js","webpack://Grommet/./node_modules/grommet-icons/icons/FormDown.js","webpack://Grommet/./node_modules/grommet-icons/icons/FormNext.js","webpack://Grommet/./node_modules/grommet-icons/icons/FormPrevious.js","webpack://Grommet/./node_modules/grommet-icons/icons/FormUp.js","webpack://Grommet/./node_modules/grommet-icons/icons/Next.js","webpack://Grommet/./node_modules/grommet-icons/icons/Pause.js","webpack://Grommet/./node_modules/grommet-icons/icons/Play.js","webpack://Grommet/./node_modules/grommet-icons/icons/Previous.js","webpack://Grommet/./node_modules/grommet-icons/icons/StatusCriticalSmall.js","webpack://Grommet/./node_modules/grommet-icons/icons/StatusGoodSmall.js","webpack://Grommet/./node_modules/grommet-icons/icons/StatusWarningSmall.js","webpack://Grommet/./node_modules/grommet-icons/icons/StatusUnknownSmall.js","webpack://Grommet/./node_modules/grommet-icons/icons/Subtract.js","webpack://Grommet/./node_modules/grommet-icons/icons/Volume.js","webpack://Grommet/./node_modules/grommet-icons/icons/VolumeLow.js","webpack://Grommet/./src/js/components/Keyboard/Keyboard.js","webpack://Grommet/./src/js/components/Keyboard/propTypes.js","webpack://Grommet/./src/js/components/Box/StyledBox.js","webpack://Grommet/./src/js/components/AccordionPanel/index.js","webpack://Grommet/./src/js/components/AccordionPanel/AccordionPanel.js","webpack://Grommet/./src/js/components/Button/Button.js","webpack://Grommet/./src/js/components/Button/propTypes.js","webpack://Grommet/./src/js/components/Tip/Tip.js","webpack://Grommet/./src/js/components/Drop/Drop.js","webpack://Grommet/./src/js/components/Drop/DropContainer.js","webpack://Grommet/./src/js/components/Drop/StyledDrop.js","webpack://Grommet/./src/js/contexts/ContainerTargetContext/ContainerTargetContext.js","webpack://Grommet/./src/js/components/Drop/propTypes.js","webpack://Grommet/./src/js/components/Tip/propTypes.js","webpack://Grommet/./src/js/components/Button/Badge.js","webpack://Grommet/./src/js/components/Stack/Stack.js","webpack://Grommet/./src/js/components/Stack/StyledStack.js","webpack://Grommet/./src/js/components/Stack/propTypes.js","webpack://Grommet/./src/js/components/Text/Text.js","webpack://Grommet/./src/js/components/Text/StyledText.js","webpack://Grommet/./src/js/components/Text/propTypes.js","webpack://Grommet/./src/js/components/Button/StyledButton.js","webpack://Grommet/./src/js/components/Button/StyledButtonKind.js","webpack://Grommet/./src/js/components/Collapsible/Collapsible.js","webpack://Grommet/./src/js/components/Collapsible/propTypes.js","webpack://Grommet/./src/js/components/Heading/Heading.js","webpack://Grommet/./src/js/components/Heading/StyledHeading.js","webpack://Grommet/./src/js/components/Heading/propTypes.js","webpack://Grommet/./src/js/components/AccordionPanel/propTypes.js","webpack://Grommet/./src/js/components/Anchor/Anchor.js","webpack://Grommet/./src/js/components/Anchor/StyledAnchor.js","webpack://Grommet/./src/js/components/Avatar/index.js","webpack://Grommet/./src/js/components/Avatar/Avatar.js","webpack://Grommet/./src/js/components/Avatar/StyledAvatar.js","webpack://Grommet/./src/js/components/Avatar/propTypes.js","webpack://Grommet/./src/js/components/Calendar/Calendar.js","webpack://Grommet/./src/js/contexts/AnnounceContext/AnnounceContext.js","webpack://Grommet/./src/js/contexts/AnnounceContext/propTypes.js","webpack://Grommet/./src/js/contexts/MessageContext/MessageContext.js","webpack://Grommet/./src/js/components/Calendar/StyledCalendar.js","webpack://Grommet/./src/js/components/Calendar/propTypes.js","webpack://Grommet/./src/js/components/Card/index.js","webpack://Grommet/./src/js/components/Card/Card.js","webpack://Grommet/./src/js/components/CardBody/index.js","webpack://Grommet/./src/js/components/CardBody/CardBody.js","webpack://Grommet/./src/js/components/CardFooter/index.js","webpack://Grommet/./src/js/components/CardFooter/CardFooter.js","webpack://Grommet/./src/js/components/Footer/Footer.js","webpack://Grommet/./src/js/components/CardHeader/index.js","webpack://Grommet/./src/js/components/CardHeader/CardHeader.js","webpack://Grommet/./src/js/components/Header/Header.js","webpack://Grommet/./src/js/components/Carousel/index.js","webpack://Grommet/./src/js/components/Carousel/Carousel.js","webpack://Grommet/./src/js/contexts/ResponsiveContext/ResponsiveContext.js","webpack://Grommet/./src/js/contexts/ResponsiveContext/propTypes.js","webpack://Grommet/./src/js/contexts/ThemeContext/index.js","webpack://Grommet/./src/js/contexts/ThemeContext/ThemeContext.js","webpack://Grommet/./src/js/contexts/ThemeContext/propTypes.js","webpack://Grommet/./src/js/components/Carousel/CarouselChild.js","webpack://Grommet/./src/js/components/CheckBoxGroup/CheckBoxGroup.js","webpack://Grommet/./src/js/components/CheckBox/propTypes.js","webpack://Grommet/./src/js/components/CheckBox/StyledCheckBox.js","webpack://Grommet/./src/js/components/CheckBoxGroup/StyledCheckBoxGroup.js","webpack://Grommet/./src/js/components/CheckBoxGroup/propTypes.js","webpack://Grommet/./src/js/components/Chart/Chart.js","webpack://Grommet/./src/js/components/Chart/StyledChart.js","webpack://Grommet/./src/js/components/Chart/propTypes.js","webpack://Grommet/./src/js/components/Chart/calcs.js","webpack://Grommet/./src/js/components/Clock/index.js","webpack://Grommet/./src/js/components/Clock/Clock.js","webpack://Grommet/./src/js/components/Clock/Analog.js","webpack://Grommet/./src/js/components/Clock/Digital.js","webpack://Grommet/./src/js/components/Clock/propTypes.js","webpack://Grommet/./src/js/components/DataChart/index.js","webpack://Grommet/./src/js/components/DataChart/DataChart.js","webpack://Grommet/./src/js/components/Grid/Grid.js","webpack://Grommet/./src/js/components/Grid/StyledGrid.js","webpack://Grommet/./src/js/components/Grid/propTypes.js","webpack://Grommet/./src/js/components/DataChart/Detail.js","webpack://Grommet/./src/js/components/DataChart/Legend.js","webpack://Grommet/./src/js/components/DataChart/XAxis.js","webpack://Grommet/./src/js/components/DataChart/YAxis.js","webpack://Grommet/./src/js/components/DataChart/XGuide.js","webpack://Grommet/./src/js/components/DataChart/YGuide.js","webpack://Grommet/./src/js/components/DataChart/propTypes.js","webpack://Grommet/./src/js/components/DataTable/index.js","webpack://Grommet/./src/js/components/DataTable/DataTable.js","webpack://Grommet/./src/js/components/DataTable/Header.js","webpack://Grommet/./src/js/components/TableCell/TableCell.js","webpack://Grommet/./src/js/components/TableCell/propTypes.js","webpack://Grommet/./src/js/components/DataTable/Resizer.js","webpack://Grommet/./src/js/components/DataTable/Searcher.js","webpack://Grommet/./node_modules/grommet-icons/icons/FormSearch.js","webpack://Grommet/./src/js/components/TextInput/TextInput.js","webpack://Grommet/./src/js/components/InfiniteScroll/InfiniteScroll.js","webpack://Grommet/./src/js/components/InfiniteScroll/propTypes.js","webpack://Grommet/./src/js/components/TextInput/StyledTextInput.js","webpack://Grommet/./src/js/components/TextInput/propTypes.js","webpack://Grommet/./node_modules/grommet-icons/icons/Blank.js","webpack://Grommet/./src/js/components/TableRow/TableRow.js","webpack://Grommet/./src/js/components/Table/Table.js","webpack://Grommet/./src/js/components/Table/propTypes.js","webpack://Grommet/./src/js/components/TableBody/TableBody.js","webpack://Grommet/./src/js/components/TableHeader/TableHeader.js","webpack://Grommet/./src/js/components/TableFooter/TableFooter.js","webpack://Grommet/./src/js/components/DataTable/Footer.js","webpack://Grommet/./src/js/components/DataTable/Body.js","webpack://Grommet/./src/js/components/DataTable/GroupedBody.js","webpack://Grommet/./src/js/components/Pagination/Pagination.js","webpack://Grommet/./src/js/components/Nav/Nav.js","webpack://Grommet/./src/js/components/Pagination/PageControl.js","webpack://Grommet/./src/js/components/Pagination/StyledPageControl.js","webpack://Grommet/./src/js/components/Pagination/propTypes.js","webpack://Grommet/./src/js/components/DataTable/propTypes.js","webpack://Grommet/./src/js/components/DataTable/PlaceholderBody.js","webpack://Grommet/./src/js/components/DateInput/index.js","webpack://Grommet/./src/js/components/DateInput/DateInput.js","webpack://Grommet/./node_modules/grommet-icons/icons/Calendar.js","webpack://Grommet/./src/js/components/DropButton/DropButton.js","webpack://Grommet/./src/js/components/DropButton/propTypes.js","webpack://Grommet/./src/js/components/Form/Form.js","webpack://Grommet/./src/js/components/Form/propTypes.js","webpack://Grommet/./src/js/components/MaskedInput/MaskedInput.js","webpack://Grommet/./src/js/components/MaskedInput/StyledMaskedInput.js","webpack://Grommet/./src/js/components/MaskedInput/propTypes.js","webpack://Grommet/./src/js/components/DateInput/utils.js","webpack://Grommet/./src/js/components/DateInput/propTypes.js","webpack://Grommet/./src/js/components/Diagram/index.js","webpack://Grommet/./src/js/components/Diagram/Diagram.js","webpack://Grommet/./src/js/components/Diagram/StyledDiagram.js","webpack://Grommet/./src/js/components/Diagram/propTypes.js","webpack://Grommet/./src/js/components/Distribution/index.js","webpack://Grommet/./src/js/components/Distribution/Distribution.js","webpack://Grommet/./src/js/components/Distribution/propTypes.js","webpack://Grommet/./src/js/components/FileInput/index.js","webpack://Grommet/./src/js/components/FileInput/FileInput.js","webpack://Grommet/./node_modules/grommet-icons/icons/CircleAlert.js","webpack://Grommet/./src/js/components/FileInput/StyledFileInput.js","webpack://Grommet/./src/js/components/FileInput/propTypes.js","webpack://Grommet/./src/js/components/FormField/index.js","webpack://Grommet/./src/js/components/FormField/FormField.js","webpack://Grommet/./src/js/components/RadioButtonGroup/RadioButtonGroup.js","webpack://Grommet/./src/js/components/RadioButton/RadioButton.js","webpack://Grommet/./src/js/components/RadioButton/StyledRadioButton.js","webpack://Grommet/./src/js/components/RadioButton/propTypes.js","webpack://Grommet/./src/js/components/RadioButtonGroup/propTypes.js","webpack://Grommet/./src/js/components/FormField/propTypes.js","webpack://Grommet/./src/js/components/Grommet/index.js","webpack://Grommet/./src/js/components/Grommet/Grommet.js","webpack://Grommet/./src/js/themes/grommet.js","webpack://Grommet/./src/js/themes/dark.js","webpack://Grommet/./src/js/components/Grommet/StyledGrommet.js","webpack://Grommet/./src/js/components/Grommet/propTypes.js","webpack://Grommet/./src/js/components/Image/Image.js","webpack://Grommet/./src/js/components/Image/StyledImage.js","webpack://Grommet/./src/js/components/Image/propTypes.js","webpack://Grommet/./src/js/components/Layer/Layer.js","webpack://Grommet/./src/js/components/Layer/LayerContainer.js","webpack://Grommet/./src/js/components/Layer/propTypes.js","webpack://Grommet/./src/js/components/List/index.js","webpack://Grommet/./src/js/components/List/List.js","webpack://Grommet/./src/js/components/List/propTypes.js","webpack://Grommet/./src/js/components/Main/index.js","webpack://Grommet/./src/js/components/Main/Main.js","webpack://Grommet/./src/js/components/Markdown/index.js","webpack://Grommet/./src/js/components/Markdown/Markdown.js","webpack://Grommet/./node_modules/markdown-to-jsx/dist/index.module.js","webpack://Grommet/./src/js/components/Paragraph/Paragraph.js","webpack://Grommet/./src/js/components/Paragraph/StyledParagraph.js","webpack://Grommet/./src/js/components/Paragraph/propTypes.js","webpack://Grommet/./src/js/components/Markdown/propTypes.js","webpack://Grommet/./src/js/components/Menu/Menu.js","webpack://Grommet/./src/js/components/Menu/propTypes.js","webpack://Grommet/./src/js/components/Meter/Meter.js","webpack://Grommet/./src/js/components/Meter/Bar.js","webpack://Grommet/./src/js/components/Meter/Circle.js","webpack://Grommet/./src/js/components/Meter/propTypes.js","webpack://Grommet/./src/js/components/Page/Page.js","webpack://Grommet/./src/js/components/Page/propTypes.js","webpack://Grommet/./src/js/components/PageContent/index.js","webpack://Grommet/./src/js/components/PageContent/PageContent.js","webpack://Grommet/./src/js/components/PageContent/propTypes.js","webpack://Grommet/./src/js/components/NameValuePair/index.js","webpack://Grommet/./src/js/components/NameValuePair/NameValuePair.js","webpack://Grommet/./src/js/components/NameValueList/index.js","webpack://Grommet/./src/js/components/NameValueList/NameValueList.js","webpack://Grommet/./src/js/components/Notification/index.js","webpack://Grommet/./src/js/components/Notification/Notification.js","webpack://Grommet/./src/js/components/Notification/propTypes.js","webpack://Grommet/./src/js/components/RangeInput/index.js","webpack://Grommet/./src/js/components/RangeInput/RangeInput.js","webpack://Grommet/./src/js/components/RangeInput/StyledRangeInput.js","webpack://Grommet/./src/js/components/RangeInput/propTypes.js","webpack://Grommet/./src/js/components/RangeSelector/index.js","webpack://Grommet/./src/js/components/RangeSelector/RangeSelector.js","webpack://Grommet/./src/js/components/RangeSelector/EdgeControl.js","webpack://Grommet/./src/js/components/RangeSelector/propTypes.js","webpack://Grommet/./src/js/components/RoutedAnchor/index.js","webpack://Grommet/./src/js/components/RoutedAnchor/RoutedAnchor.js","webpack://Grommet/./src/js/components/RoutedButton/index.js","webpack://Grommet/./src/js/components/RoutedButton/RoutedButton.js","webpack://Grommet/./src/js/components/Select/index.js","webpack://Grommet/./src/js/components/Select/Select.js","webpack://Grommet/./src/js/components/Select/SelectContainer.js","webpack://Grommet/./src/js/components/Select/StyledSelect.js","webpack://Grommet/./src/js/components/Select/propTypes.js","webpack://Grommet/./src/js/components/Sidebar/index.js","webpack://Grommet/./src/js/components/Sidebar/Sidebar.js","webpack://Grommet/./src/js/components/Sidebar/propTypes.js","webpack://Grommet/./src/js/components/SkipLink/index.js","webpack://Grommet/./src/js/components/SkipLink/SkipLink.js","webpack://Grommet/./src/js/components/SkipLinks/index.js","webpack://Grommet/./src/js/components/SkipLinks/SkipLinks.js","webpack://Grommet/./src/js/components/SkipLinks/propTypes.js","webpack://Grommet/./src/js/components/SkipLinkTarget/index.js","webpack://Grommet/./src/js/components/SkipLinkTarget/SkipLinkTarget.js","webpack://Grommet/./src/js/components/Spinner/index.js","webpack://Grommet/./src/js/components/Spinner/Spinner.js","webpack://Grommet/./src/js/components/Spinner/propTypes.js","webpack://Grommet/./src/js/components/Tab/index.js","webpack://Grommet/./src/js/components/Tab/Tab.js","webpack://Grommet/./src/js/components/Tab/StyledTab.js","webpack://Grommet/./src/js/components/Tab/propTypes.js","webpack://Grommet/./src/js/components/Tabs/index.js","webpack://Grommet/./src/js/components/Tabs/Tabs.js","webpack://Grommet/./src/js/components/Tabs/StyledTabs.js","webpack://Grommet/./src/js/components/Tabs/propTypes.js","webpack://Grommet/./src/js/components/Tag/index.js","webpack://Grommet/./src/js/components/Tag/Tag.js","webpack://Grommet/./src/js/components/Tag/propTypes.js","webpack://Grommet/./src/js/components/Tag/StyledTag.js","webpack://Grommet/./src/js/components/TextArea/index.js","webpack://Grommet/./src/js/components/TextArea/TextArea.js","webpack://Grommet/./src/js/components/TextArea/StyledTextArea.js","webpack://Grommet/./src/js/components/TextArea/propTypes.js","webpack://Grommet/./src/js/components/Video/index.js","webpack://Grommet/./src/js/components/Video/Video.js","webpack://Grommet/./src/js/components/Video/StyledVideo.js","webpack://Grommet/./src/js/components/Video/propTypes.js","webpack://Grommet/./src/js/components/WorldMap/index.js","webpack://Grommet/./src/js/components/WorldMap/WorldMap.js","webpack://Grommet/./src/js/components/WorldMap/StyledWorldMap.js","webpack://Grommet/./src/js/components/WorldMap/propTypes.js","webpack://Grommet/./node_modules/grommet-styles/es6/utils/colors.js","webpack://Grommet/./node_modules/grommet-styles/es6/styles/color.js","webpack://Grommet/./node_modules/grommet-styles/es6/styles/size.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","React","styled","defaultProps","theme","base","deepMerge","a11yTitlePropType","PropTypes","string","alignPropType","oneOfType","oneOf","colorPropType","shape","dark","light","backgroundPropType","color","bool","image","position","opacity","number","repeat","size","backgroundDoc","MARGIN_SIZES","marginProp","bottom","end","horizontal","left","right","start","top","vertical","PAD_SIZES","padPropType","genericProps","a11yTitle","alignSelf","gridArea","margin","elevationPropType","hoverIndicatorPropType","background","elevation","pointPropType","patternPropType","roundPropType","corner","dimSizeType","heightPropType","height","min","max","widthPropType","width","StyledIcon","_react","_interopRequireWildcard","_styledComponents","_grommetStyles","_defaultProps","_excluded","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","cache","has","newObj","hasPropertyDescriptor","getOwnPropertyDescriptor","desc","set","_extends","assign","target","arguments","length","source","apply","this","colorCss","css","props","colorStyle","global","colors","icon","IconInner","forwardRef","_ref","ref","rest","excluded","sourceKeys","keys","indexOf","_objectWithoutPropertiesLoose","createElement","displayName","withConfig","componentId","_ref2","_ref2$size","_split","viewBox","split","w","h","scale","dimension","parseFloat","match","_ref3","_ref4","extend","setPrototypeOf","FormContext","createContext","useFormField","error","info","disabled","useFormInput","valueProp","initialValue","useState","undefined","setValue","nextValue","useLayoutEffect","window","vanillaUseLayoutEffect","useEffect","normalizeColor","colorSpec","result","hexExp","rgbExp","rgbaExp","hslExp","canExtractRGBArray","test","getRGBArray","map","v","parseInt","parseHexToRGB","red","green","blue","alpha","splice","g","b","hue2rgb","q","inT","Math","round","hslToRGB","SIZE_MAP","sizeStyle","StyledTableCell","td","verticalAlign","align","backgroundStyle","border","borderStyle","responsive","pad","edgeStyle","box","responsiveBreakpoint","tableContextTheme","StyledTableDataCaption","caption","edgeSize","xxsmall","StyledTableRow","tr","StyledTableBody","tbody","StyledTableHeader","thead","StyledTableFooter","tfoot","StyledTable","table","genericStyles","StyledDataTable","Table","fillProp","fillStyle","dataTable","body","StyledContainer","Box","container","hoverStyle","row","hover","StyledDataTableRow","TableRow","onClick","active","StyledDataTableBody","TableBody","focusStyle","skipSvgChildren","forceOutline","unfocusStyle","StyledDataTableHeader","TableHeader","scrollOffset","StyledDataTableFooter","TableFooter","pin","StyledDataTableCell","TableCell","context","header","pinnedOffset","join","pinned","StyledPlaceholder","parseMetricToNum","metric","lineHeight","font","ceil","breakpoint","content","findAllByType","component","type","matches","push","children","forEach","child","concat","availableAt","componentType","url","badge","label","toLowerCase","baseStyle","family","weight","plain","baseBackground","controlBorderStyle","control","radius","kind","data","breakpoints","breakpointStyle","horizontalVerticalEqual","focusStyles","justBorder","focus","outline","shadow","unfocusStyles","adjustPad","side","orientation","input","padding","placeholderColor","placeholder","placeholderStyle","inputStyle","text","inputSizeStyle","focusIndicator","overflowProp","ALIGN_SELF_MAP","center","stretch","componentStyle","plainInputStyle","colorValue","styles","medium","ROUND_MAP","full","getBreakpointStyle","responsiveSize","TEXT_ALIGN_MAP","justify","textAlignStyle","textAlign","ALIGN_ITEMS_MAP","baseline","alignStyle","ALIGN_CONTENT_MAP","around","between","evenly","alignContentStyle","alignContent","getSize","widthObjectStyle","widthStringStyle","heightObjectStyle","heightStringStyle","isObject","item","Array","isArray","freeze","sources","output","TableContext","path","parts","toString","slice","reduce","acc","index","abs","datumValue","datum","columns","primaryKey","column","primary","search","filters","onSearch","sort","regexps","filter","RegExp","replace","some","external","direction","sortAsc","before","after","d1","d2","d1Val","d2Val","sortResult","localeCompare","sensitivity","sumReducer","accumulated","next","reducers","sum","reducersInitValues","Number","MAX_VALUE","MIN_VALUE","aggregateColumn","aggregate","aggregateValues","footer","groupBy","primaryProperty","groupMap","isGroup","expandable","includes","groupByProperty","groupValue","group","groups","expanded","expand","normalizeBackgroundColor","rowProp","prop","tableContextNames","cellPropertyNames","propName","every","rowProps","cellProps","cell","rowPin","cellPin","PULSE_SIZES","xsmall","small","large","xlarge","SLIDE_SIZES","JIGGLE_SIZES","ZOOM_SIZES","animationBounds","deg","normalizeTiming","time","defaultTiming","animationEnding","animation","themeObj","bounds","animationTheme","animationTransition","keyframes","duration","delay","normalizeBackground","arg","evalStyle","backgroundArg","backgroundColor","colorIsDark","darkContext","isDark","backgroundAndTextColors","textArg","textColor","getRGBA","shade","textColorArg","lastIndexOf","backgroundStyles","activeStyle","selectedStyle","selected","hoverIndicator","updateRef","innerRef","current","useRef","RootsContext","addDays","date","days","Date","getTime","hourDelta","getHours","setHours","addMonths","months","years","floor","getMonth","setFullYear","getFullYear","targetMonth","setMonth","setDate","sameDay","date1","date2","getDate","sameDayOrAfter","sameDayOrBefore","formatToLocalYYYYMMDD","normalize","adjustedDate","getTimezoneOffset","toISOString","betweenDates","dates","from","to","inDaylightSavings","day","jan","july","timestamp","valueOffset","localOffset","today","formatDateToPropStructure","nextDate","nextDates","range","adjustedDates","fine","firstValue","lastValue","dateFormat","startDate","endDate","isNaN","options","delta","hour","minute","second","month","year","Intl","DateTimeFormat","format","ExpanderControl","onToggle","useContext","ThemeContext","ExpandIcon","icons","Blank","normalizedThemeProps","fill","Button","ExpanderCell","Cell","memo","columnPin","render","scope","renderContexts","textProps","Text","element","parent","parentNode","getBoundingClientRect","rect","scrollWidth","scrollHeight","tagName","document","documentTags","node","activeElement","parentElement","isFocusable","getFirstFocusableDescendant","getElementsByTagName","targetChildPosition","prepend","appendChild","x","scrollX","y","scrollY","scrollTo","hasAttribute","removeAttribute","elements","prior","getAttribute","setAttribute","autoFocusingTags","findVisibleParent","offsetParent","viewportWidth","sortedBreakpoints","a","first","lastBreakpoint","find","deviceBreakpoints","breakpointSize","borderSize","accentColors","statusColors","critical","warning","ok","unknown","black","brand","white","colorArray","array","prefix","generate","baseSpacing","baseFontSize","fontScale","fontSizing","factor","maxWidth","iconBase","jiggle","none","hair","phone","tablet","computer","controlBorderWidth","debounceDelay","drop","shadowSize","zIndex","strong","weak","spacing","xxlarge","accordion","panel","heading","level","collapse","FormUp","FormDown","anchor","textDecoration","fontWeight","avatar","button","gap","borderWidth","transition","timing","properties","calendar","fontSize","daySize","slideDuration","previous","Previous","Next","FormPrevious","FormNext","card","carousel","Subtract","chart","checkBox","check","thickness","toggle","knob","checkBoxGroup","clock","analog","huge","digital","collapsible","minSpeed","dateInput","groupHeader","groupEnd","units","ascending","contract","descending","resize","diagram","line","fileInput","style","dragOver","remove","FormClose","message","formField","help","grommet","1","2","3","4","5","6","layer","overlay","list","down","up","maskedInput","menu","meter","nameValueList","pair","nameValuePair","notification","actions","toast","iconContainer","flex","textContainer","title","close","StatusCriticalSmall","StatusWarningSmall","normal","StatusGoodSmall","CircleInformation","StatusUnknownSmall","page","wide","narrow","pagination","controls","paragraph","spinner","radioButton","radioButtonGroup","rangeInput","track","thumb","rangeSelector","invert","select","clear","step","skipLinks","tab","tabs","tag","separator","textArea","textInput","tip","video","captions","closedCaption","ClosedCaption","configure","Actions","fullScreen","Expand","pause","Pause","play","Play","reduceVolume","VolumeLow","volume","Volume","scrubber","worldMap","continent","place","deepFreeze","_StyledIcon","stroke","strokeWidth","OVERFLOW_VALUES","ANIMATION_TYPE","BoxPropTypes","AccordionContext","ReactDOM","hidden","restrictScroll","trapFocus","bodyOverflowStyle","setBodyOverflowStyle","roots","nextRoots","setNextRoots","overflow","timer","setTimeout","makeNodeUnfocusable","makeNodeFocusable","clearTimeout","Provider","aria-hidden","AnchorPropTypes","StyledCarouselContainer","animationKeyframes","slideRightPrevious","slideRightCurrent","slideLeftPrevious","slideLeftCurrent","StyledCarouselChild","visibilityProp","positionProp","animationType","animationDuration","StyledControl","offsetProp","CarouselPropType","CarouselChildPropType","stopLabelClick","event","stopPropagation","CheckBox","ariaLabel","checkedProp","checked","defaultChecked","focusProp","id","onBlur","onChange","onFocus","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver","reverse","indeterminate","setChecked","setFocus","console","warn","themeableProps","CheckedIcon","IndeterminateIcon","borderColor","visual","StyledCheckBoxToggle","StyledCheckBoxKnob","StyledCheckBoxBox","as","StyledCheckBoxIcon","preserveAspectRatio","checkBoxNode","StyledCheckBox","StyledCheckBoxInput","removeUndefined","normalizedLabel","StyledCheckBoxContainer","aria-label","htmlFor","propTypes","CheckBoxPropTypes","values","valuesX","valuesY","_","boundsX","boundsY","StyledHour","StyledMinute","StyledSecond","StyledAnalog","svg","StyledDigitalDigit","div","previousUp","previousDown","StyledDigitalPrevious","nextUp","nextDown","StyledDigitalNext","aspect","point","dim","half","cx","cy","off1","off2","OptionsContext","hiddenPositionStyle","StyledLayer","layerTarget","StyledOverlay","getMargin","axis","marginValue","marginApplied","getBounds","KEYFRAMES","true","false","getAnimationStyle","animate","POSITIONS","desktopContainerStyle","modal","customCSS","intelligentRounding","responsiveContainerStyle","elevationStyle","shouldForwardProp","defaultValidatorFn","roundStyle","StyledMeter","strokeOpacity","neutralExp","valuesLength","colorIndex","neutralColors","k","PageContext","NameValueListContext","applyKey","option","TabsContext","Accordion","activeIndex","multiple","onActive","activeIndexes","setActiveIndexes","stateActiveIndex","setStateActiveIndex","derivedActiveIndexes","getAccordionContext","useCallback","onPanelChange","nextIndex","nextActiveIndexes","nextActiveIndex","role","Children","toArray","AccordionPropTypes","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","componentName","location","propFullName","secret","err","Error","getShim","isRequired","ReactPropTypes","bigint","func","symbol","any","arrayOf","elementType","instanceOf","objectOf","exact","checkPropTypes","wrap","tabIndex","focusable","useMemo","clickProps","adjustedTabIndex","contents","firstIndex","boxAs","StyledBoxGap","directionProp","nextTheme","darkChanged","backgroundIsDark","StyledBox","elevationProp","kindProp","wrapProp","widthProp","heightProp","Keyboard","onEnter","responsiveBorderStyle","borderData","borderStyles","responsiveStyle","polarToCartesian","centerX","centerY","angleInDegrees","angleInRadians","PI","cos","sin","startAngle","endAngle","normalizedEndAngle","arcSweep","toFixed","anglePer","showProp","totalPages","activePage","setActivePage","itemsBeginIndex","itemsEndIndex","numberItems","PortalContext","extendDefaultTheme","_utils","_themes","_len","_key","_default","_base","fillRule","strokeLinejoin","rx","KEYS","8","9","13","27","32","37","38","39","40","188","16","capture","onKeyDown","restProps","onKeyDownHandler","keyCode","which","callbackName","addEventListener","removeEventListener","cloneElement","only","KeyboardPropTypes","BASIS_MAP","auto","basisStyle","basis","FLEX_MAP","grow","shrink","flexStyle","JUSTIFY_MAP","justifyStyle","WRAP_MAP","wrapStyle","animationObjectInitialStyle","animationAncilaries","animationStyle","animationItemStyle","animationObjectStyle","interactiveStyle","getHoverIndicatorStyle","directionStyle","heightStyle","widthStyle","overflowStyle","responsiveMetric","borderMetric","borderOffset","responsiveBorderMetric","responsiveBorderOffset","adjustedBorder","adjustedBorder2","gapStyle","AccordionPanel","setHover","iconColor","AccordionIcon","defaultHoverColor","JSON","stringify","abutMargin","headingColor","contentBorder","panelBorder","aria-selected","aria-expanded","Heading","Collapsible","open","AccordionPanelPropTypes","getIconColor","paths","colorProp","shift","objColor","getPropertyColor","badgeProp","href","kindArg","secondary","kindObj","themePaths","onMouseOverButton","onMouseOutButton","buttonIcon","domTag","styledButtonResult","innerBadge","Badge","StyledButtonKind","hasIcon","hasLabel","fillContainer","count","sizeProp","StyledButton","Tip","ButtonPropTypes","tipRef","dropProps","over","setOver","usingKeyboard","setUsingKeyboard","onMouseDown","componentRef","useForwardedRef","isValidElement","callerRef","Drop","TipPropTypes","inline","restrictFocus","dropTarget","originalFocusedElement","setOriginalFocusedElement","dropContainer","setDropContainer","containerTarget","ContainerTargetContext","getNewContainer","setFocusWithoutScroll","removeChild","DropContainer","dir","createPortal","DropPropTypes","preventLayerClose","defaultAlign","defaultPortalContext","onAlign","onClickOutside","onEsc","portalContext","portalId","nextPortalContext","dropRef","scrollParents","preserveHeight","alignControl","windowWidth","innerWidth","windowHeight","innerHeight","maxHeight","targetRect","containerRect","percentVisibleAreaBelow","addScrollListeners","findScrollParents","scrollParent","removeScrollListeners","onClickDocument","clickedPortalId","attr","onResize","StyledDrop","alignProp","data-g-portal-id","themeContextValue","FocusedContainer","dropKeyFrames","adjustedMargin","intelligentMargin","getTransformOriginStyle","StyledBadgeContainer","contentRef","stackRef","defaultBadgeDimension","setHeight","setWidth","contentHeight","contentWidth","verticalSpace","divisor","offset","Stack","guidingChild","interactiveChild","prunedChildren","toChildIndex","guidingIndex","interactiveIndex","styledChildren","interactive","guiding","StyledStackLayer","buildStyledChildren","StyledStack","StackPropTypes","stack","styleMap","tipProp","truncate","textRef","textTruncated","setTextTruncated","updateTip","offsetWidth","styledTextResult","StyledText","TextPropTypes","weightStyle","wordBreakStyle","wordBreak","fontFamily","radiusStyle","isIconOnly","basicStyle","padStyle","fontStyle","getHoverColor","plainStyle","primaryStyle","activeButtonStyle","disabledStyle","disabledButtonStyle","padFromTheme","getPath","adjustPadStyle","themePath","kindPartStyles","partStyles","adjPadStyles","kindStyle","themishObj","hoverIndicatorStyle","AnimatedBox","shouldOpen","speedProp","openArg","setOpen","setAnimate","speed","setSpeed","containerRef","sizeRef","shouldClose","parentPrevPosition","nextSpeed","requestAnimationFrame","CollapsiblePropTypes","StyledHeading","HeadingPropTypes","h1","headingTheme","levelStyle","responsiveData","Anchor","coloredIcon","StyledAnchor","display","Avatar","src","avatarSize","avatarTextSize","avatarProps","AvatarChildren","StyledAvatar","StyledAvatarText","AvatarPropTypes","headingPadMap","activeDates","formatSelectedDatesString","getAccessibilityString","normalizeDate","dateValue","normalizeForTimezone","dateArray","normalizeReference","reference","normalizedReference","buildDisplayBounds","firstDayOfWeek","getDay","subtractDays","CalendarDayButton","CalendarDay","isInRange","isSelected","otherMonth","buttonProps","StyledDayContainer","StyledDay","disabledProp","inRange","CalendarCustomDay","Calendar","activeDateProp","activeDate","boundsProp","dateProp","datesProp","daysOfWeek","initialFocus","locale","messages","normalizeProp","onReference","onSelect","referenceProp","showAdjacentDays","timestampProp","announce","AnnounceContext","MessageContext","mouseDown","setMouseDown","onMouseUp","setNormalize","setActiveDate","getTimestamp","normalizedDate","normalizedDates","setDates","setReference","setBounds","displayBounds","setDisplayBounds","targetDisplayBounds","setTargetDisplayBounds","slide","setSlide","animating","setAnimating","nextDisplayBounds","diffBoundsAboveYear","weeks","daysApart","previousMonth","endOfMonth","subtractMonths","startOfMonth","nextMonth","daysRef","setActive","firstDayInMonth","PreviousIcon","NextIcon","changeReference","nextReference","selectDate","selectedDate","nextNormalize","handleSelection","priorDates","selDate","priorDate","formattedDate","getFormattedDate","blankWeek","StyledWeek","dateString","selectedState","withinDates","dayDisabled","toDateString","StyledCalendar","onPreviousMonth","toLocaleDateString","onNextMonth","previousInBound","nextInBound","weekday","renderDaysOfWeek","onUp","preventDefault","onDown","onLeft","onRight","StyledWeeksContainer","StyledWeeks","CalendarPropTypes","timeout","announcer","querySelector","insertBefore","firstChild","createAnnouncer","innerHTML","AnnounceContextPropTypes","idParts","baseId","messageObj","idPart","defaultMessage","newMessage","tokens","token","names","substr","defaultValue","defaultMessages","weeksContainerSizeStyle","amount","translateYFrom","translateYTo","slideTransition","slideStyle","daySizeStyle","Card","Footer","Header","Carousel","activeChild","initialChild","onChild","timerRef","indexes","setIndexes","activeChildState","setActiveChildState","setDirection","inTransition","setInTransition","priorActiveIndex","lastIndex","onChildChange","clearInterval","onControlledNavigation","transitionTimer","setInterval","showArrows","showSelectors","CurrentIcon","selectors","wrappedChildren","CarouselChild","nextIconDisabled","previousIconDisabled","CarouselPropTypes","ResponsiveContext","ResponsiveContextPropTypes","Extend","Consumer","ThemeContextPropTypes","setAnimation","visibility","setVisibility","CarouselChildPropTypes","CheckBoxGroup","labelKey","valueKey","optionsProp","formContext","onCheckBoxChange","optionValue","parse","optionIndex","persist","adjustedEvent","StyledCheckBoxGroup","valueOption","optionProps","state","CheckBoxGroupPropTypes","span","defaultSize","defaultValues","Chart","propsBounds","dash","onHover","propsOpacity","pattern","propsSize","propsValues","normalizeValues","normalizeBounds","inset","padSize","strokeDasharray","containerSize","setContainerSize","needContainerSize","gapWidth","autoWidth","sizeWidth","sizeHeight","viewBounds","containerNode","patternId","valueToCoordinate","xValue","yValue","useGradient","getOpacity","valueOpacity","hoverProps","valueArg","valueColor","valueOnHover","valueThickness","valueRest","renderArea","renderPoint","valueX","valueY","off","colorName","gradientRect","drawing","strokeLinecap","defs","uniqueGradientId","gradientId","maskId","x1","y1","x2","y2","c1","c2","gradientColor","stopColor","mask","unit","sqrt","double","pColor","patternUnits","StyledChart","typeProp","ChartPropTypes","animateBounds","thicknessPad","decimals","alignMax","interval","alignMin","calcBounds","minX","maxX","minY","maxY","coarseness","steps","calcValues","cX","cY","deltaX","intervalX","toPrecision","deltaY","intervalY","stepInterval","minSteps","maxSteps","dimensions","yAxis","yStepInterval","xAxis","xStepInterval","TIME_REGEXP","DURATION_REGEXP","parseTime","hourLimit","exec","hours","hours12","minutes","seconds","getMinutes","getSeconds","Clock","precision","run","setElements","atDurationEnd","increment","nextElements","e","Analog","Digital","ClockPropTypes","secondHand","minuteHand","hourAngle","minuteAngle","secondAngle","secondSize","minuteSize","hourSize","getClockDimensions","halfSize","transform","transformOrigin","version","Digit","setPrevious","changing","setChanging","Element","sep","tens","ones","unshift","stackedChartType","areas","bars","lines","DataChart","axisProp","detail","guideProp","guide","legend","padProp","seriesProp","series","activeProperty","setActiveProperty","xRef","spacerRef","getPropertySeries","charts","seriesValues","chartValues","totals","cp","aProperty","aValue","granularities","coarse","heightYGranularity","granularity","chartProps","chartBounds","mergedValues","__","alignedBounds","calcs","seriesStyles","calcThickness","pointIndex","seriesStyle","points","halfPad","thicknesses","offsets","offsetPad","detailThickness","dateFormats","createDateFormat","renderValue","serie","dataIndex","suffix","xAxisElement","XAxis","yAxisElement","YAxis","stackFill","stackElement","XGuide","YGuide","chartRest","chartPad","offsetProps","cProp","j","pProp","propRest","Detail","legendElement","Legend","Grid","available","rows","DataChartPropTypes","StyledGrid","a11yTitleProp","rowsProp","GridPropTypes","CSS","supports","JUSTIFY_CONTENT_MAP","justifyContentStyle","justifyContent","gapSizes","normalizeSize","getRepeatSize","minFill","gaps","minSize","maxSize","attrs","area","cells","areasStyle","columnsStyle","sizes","rowsStyle","grid","DetailControl","detailIndex","setDetailIndex","detailRefs","pageX","pageY","currentTarget","propertyStyle","Fragment","Swatch","isActive","itemProps","divideBy","maxValue","doublePad","axisValue","padArg","colorType","thicknessType","DataTable","onClickRow","onMore","onSortProp","onSort","onUpdate","paginate","resizeable","show","sortProp","sortable","rowDetails","normalizePrimaryProperty","showFooter","filtering","setFiltering","initializeFilters","setFilters","setSort","adjustedData","filterAndSortData","footerValues","buildFooterValues","normalizeCellProps","buildGroups","buildGroupState","groupState","setGroupState","prevDeps","setPrevDeps","prevGroups","prevGroupBy","nextGroupState","useGroupState","limit","setLimit","setSelected","rowExpand","setRowExpand","widths","setWidths","headerRef","bodyRef","footerRef","headerHeight","setHeaderHeight","footerHeight","setFooterHeight","setScrollOffset","setPinnedOffset","onHeaderWidths","columnWidths","hasSelectColumn","Boolean","pinnedProperties","pinnedColumn","nextPinnedOffset","columnIndex","findIndex","nextScrollOffset","clientWidth","nextHeaderHeight","nextFooterHeight","nextWidths","usePagination","normalizeShow","items","paginationProps","Container","containterProps","OverflowContainer","overflowContainerProps","paginatedDataTableProps","minWidth","placeholderContent","bodyContent","GroupedBody","opts","prev","nextSelected","expandedKeys","onExpand","Body","pinnedCellProps","onFiltering","onFilter","nextFilters","nextSort","onWidths","PlaceholderBody","Pagination","DataTablePropTypes","separateThemeProps","iconProps","StyledHeaderCellButton","layoutProps","buttonStyle","StyledContentBox","pinProp","cellWidths","setCellWidths","updateWidths","selectPin","_grommetDataTableSelect","totalSelectedGroups","total","cur","totalSelected","onWidth","nextGroupSelected","Icon","unitsContent","resizer","Resizer","searcher","Searcher","verticalAlignToJustify","middle","className","colSpan","rowSpan","tableContext","cellRef","updateHeight","cellRect","mergedProps","TableCellPropTypes","InteractionBox","setStart","nodeName","clientX","onMouseMove","nextWidth","inputRef","needsFocus","TextInput","FormSearch","renderLabel","suggestion","stringLabel","ContainerBox","dropHeight","defaultDropAlign","defaultSuggestion","dropAlign","onSuggestionSelect","onSuggestionsClose","onSuggestionsOpen","readOnly","suggestions","suggestionsRef","showDrop","setShowDrop","handleSuggestionSelect","handleTextSelect","suggestionsAtClose","setSuggestionsAtClose","openDrop","closeDrop","clickOutside","valueSuggestionIndex","resetSuggestionIndex","activeSuggestionIndex","setActiveSuggestionIndex","mouseMovedSinceLastKey","setMouseMovedSinceLastKey","isNodeAfterScroll","offsetTop","isNodeBeforeScroll","setValueFromSuggestion","onNextSuggestion","onPreviousSuggestion","hasValue","showStyledPlaceholder","extraProps","StyledSuggestions","InfiniteScroll","itemRef","renderedLabel","keyboardProps","onTab","StyledTextInputContainer","StyledTextInput","autoComplete","relatedTarget","TextInputPropTypes","calculateLastPageBound","renderMarker","scrollShow","setScrollShow","lastPage","renderPageBounds","setRenderPageBounds","pageHeights","setPageHeights","pendingLength","setPendingLength","aboveMarkerRef","belowMarkerRef","evaluate","documentElement","scrollTop","nextBeginPage","pagesHeight","nextEndPage","showPage","debounce","sp","showIndex","showNode","findScrollParent","scrollIntoView","rendered","nextPageHeights","lastBottom","topIndex","bottomIndex","aboveHeight","belowHeight","marker","renderedMarker","InfiniteScrollPropTypes","getInputPadBySide","ol","TablePropTypes","Row","primaryValue","rowRef","isRowExpanded","cellPropsProp","lastActive","setLastActive","normalizeRowCellProps","nextItems","memberCount","groupSelected","isGroupSelected","primaryKeys","val","StyledPaginationContainer","getPageIndices","begin","indices","numberEdgePages","numberMiddlePages","numberMiddlePagesProp","pageProp","startingMiddlePages","beginPages","endPages","middlePagesBegin","middlePagesEnd","middlePages","beginFlex","endFlex","handleClick","nextPage","startIndex","endIndex","getItemIndices","navProps","Nav","PageControl","PaginationPropTypes","StyledSeparator","StyledPaginationButton","sides","padShapeSides","padShapeParts","part","backgroundShape","borderTypes","borderShape","DateInput","refArg","calendarProps","inputProps","formatMessage","iconSize","schema","formatToSchema","schemaToMask","valueToText","textValue","setTextValue","MaskedInputIcon","restOfInputProps","nextTextValue","valuesAreEqual","textToValue","openCalendar","closeCalendar","normalizedValue","formContextValue","DropButton","dropContent","onSpace","MaskedInput","localTimestamp","contains","DateInputPropTypes","onClose","onOpen","buttonRef","setShow","onDropClose","onClickInternal","DropButtonPropTypes","defaultTouched","defaultValidationResults","errors","infos","stringToArray","arrayName","indexOfArray","arrayObjName","getFieldValue","isArrayField","setFieldValue","componentValue","prevValue","validate","rule","fieldValue","formValue","regexp","status","validateName","validationRules","required","validationResult","validateForm","omitValid","nextErrors","nextInfos","field","Form","errorsProp","infosProp","onReset","onSubmit","onValidate","validateOn","valueState","setValueState","touched","setTouched","validationResults","setValidationResults","validationResultsRef","mounted","setMounted","pendingValidation","setPendingValidation","validationRulesRef","requiredFields","buildValid","valid","filterRemovedFields","prevValidations","nextValidations","applyValidationRules","validatedErrors","validatedInfos","prevValidationResults","nextValidationResults","entries","errorArg","infoArg","validateArg","inForm","inputValue","setInputValue","keyCreated","nextComponentValue","nextTouched","FormPropTypes","parseValue","valueParts","valueIndex","maskIndex","found","fixed","matching","beginIndex","restrictToOptions","minLength","defaultMask","setValueParts","dropPropsTarget","setDropPropsTarget","nextDropPropsTarget","activeMaskIndex","setActiveMaskIndex","activeOptionIndex","setActiveOptionIndex","caretIndex","selectionStart","HTMLInputElement","Event","bubbles","dispatchEvent","onChangeInput","onOption","nextValueParts","onNextOption","onPreviousOption","onSelectOption","nativeEvent","stopImmediatePropagation","onHideDrop","StyledMaskedInputContainer","StyledMaskedInput","MaskedInputPropTypes","masks","mm","dd","yy","yyyy","lower","char","dateIndex","charCodeZero","charCodeAt","charCodeNine","pullDigits","addDate","leapYear","value1","value2","computeMidPoint","fromPoint","toPoint","COMMANDS","curved","midPoint","cmds","direct","rectilinear","findTarget","getElementById","Diagram","connections","setDimensions","connectionPoints","setConnectionPoints","svgRef","savedOnResize","onResizeHandler","placeConnections","updatedConnectionPoints","fromTarget","toTarget","fromElement","toElement","fromRect","toRect","cleanedRest","StyledDiagram","DiagramPropTypes","connectionStyle","connection","availableAnimations","connectionCopy","animationCopy","Value","Distribution","subIndex","childBasis","accumulator","subTotal","DistributionPropTypes","formatBytes","num","ContentsBox","Label","Message","defaultPendingRemoval","FileInput","rightPad","rightOffset","confirmRemove","renderFile","setDragOver","showRemoveConfirmation","setShowRemoveConfirmation","pendingRemoval","setPendingRemoval","aggregateThreshold","controlRef","removeRef","ConfirmRemove","RemoveIcon","numOfInvalidFiles","files","messageId","numOfFiles","setFiles","mergeTheme","propertyName","defaultKey","themeProp","hoverThemeProp","dragOverThemeProp","rightOffsetBrowse","rightOffsetRemove","removeFile","nextFiles","click","file","CircleAlert","StyledFileInput","onDragOver","onDragLeave","fileList","onConfirm","onCancel","FileInputPropTypes","grommetInputNames","grommetInputPadNames","FormFieldBox","FormFieldContentBox","StyledMessageContainer","messageType","RequiredText","containerProps","messageContent","Input","comp","invalid","InputComponent","aria-invalid","FormField","contentProps","errorProp","infoProp","contextOnBlur","contextOnChange","formFieldRef","formFieldTheme","themeBorder","wantContentPad","RadioButtonGroup","containerRest","isFileInputComponent","themeContentProps","abut","labelStyle","outerBackground","outerStyle","innerProps","mergedMargin","outerProps","requiredIndicator","showRequiredIndicator","indicator","containsFocus","shouldKeepFocus","wait","args","later","FormFieldPropTypes","optionRefs","onNext","onPrevious","optionDisabled","optionRest","RadioButton","aRef","RadioButtonGroupPropTypes","StyledRadioButtonLabel","circle","StyledRadioButtonContainer","StyledRadioButton","StyledRadioButtonInput","StyledRadioButtonBox","StyledRadioButtonIcon","RadioButtonPropTypes","FullGlobalStyle","createGlobalStyle","defaultOptions","Grommet","messagesProp","themeMode","userAgent","stateResponsive","setResponsive","setRoots","baseTheme","themeBackground","defaultMode","nextMessages","getBreakpoint","getDeviceBreakpoint","deviceResponsive","grommetRef","StyledGrommet","GrommetPropTypes","face","cssVars","Image","fallback","onError","isFallbackInUse","setFallbackInUse","onLoad","StyledImage","opacityProp","ImagePropTypes","FIT_MAP","cover","contain","fitStyle","fit","img","Layer","layerContainer","setLayerContainer","layerClone","cloneNode","clonedContainer","animationDirection","clone","LayerContainer","LayerPropTypes","HiddenAnchor","layerOptions","anchorRef","layerRef","updateBounds","layerRect","singleId","hitResponsiveBreakpoint","StyledList","ul","itemFocus","StyledItem","draggable","reorder","tmp","getKey","primaryContent","getItemId","getPrimaryContent","List","action","defaultItemProps","itemKey","onOrder","secondaryKey","onClickItem","listRef","setItemFocus","dragging","setDragging","orderingData","setOrderingData","draggingRef","ariaProps","activeId","buttonId","itemIndex","trunc","itemId","boxProps","adjustedBackground","orderProps","orderControls","onDragStart","dataTransfer","setData","effectAllowed","onDragEnd","dropEffect","onDrop","Up","Down","ListPropTypes","GrommetMarkdown","components","overrides","Paragraph","th","wrapper","MarkdownPropTypes","for","amp","apos","gt","lt","nbsp","quot","u","f","S","$","z","E","A","R","I","M","O","B","L","T","C","D","N","Z","F","P","G","H","U","V","W","Q","X","J","K","Y","nn","tn","rn","en","on","un","an","cn","fn","ln","sn","_n","dn","pn","trim","gn","mn","vn","yn","hn","kn","xn","endsWith","trimEnd","bn","decodeURIComponent","Sn","$n","wn","zn","En","An","Rn","In","Mn","On","Bn","Ln","slugify","namedCodesToUnicode","forceInline","forceBlock","pop","forceWrapper","toUpperCase","blockQuote","HIGH","breakLine","breakThematic","codeBlock","MAX","lang","codeFenced","codeInline","LOW","footnote","identifier","footnoteReference","gfmTask","completed","headingSetext","htmlComment","alt","link","linkAngleBraceStyleDetector","linkBareUrlDetector","linkMailtoDetector","ordered","newlineCoalescer","refImage","refLink","fallbackContent","tableSeparator","MIN","textBolded","MED","textEmphasized","textEscaped","textStrikethroughed","disableParsingRawHTML","htmlBlock","noInnerParse","htmlSelfClosing","substring","Tn","StyledParagraph","ParagraphPropTypes","Menu","dropBackground","themeDropAlign","themeDropProps","controlButtonIndex","alignControlMirror","setAlignControlMirror","initialAlignTop","dropContainerRef","buttonRefs","constants","controlTop","controlBottom","activeItemIndex","setActiveItemIndex","isOpen","MenuIcon","onDropOpen","optionsNode","onSelectMenuItem","isTab","onNextMenuItem","onPreviousMenuItem","menuIcon","controlMirror","aria-haspopup","shiftKey","MenuPropTypes","Meter","valuesProp","memoizedMax","deriveMax","Bar","Circle","MeterPropTypes","thicknessProp","capOffset","mid","someHighlight","highlight","pathRest","defaultColor","strokeProps","backgroundPath","startValue","pathCaps","translateEndAngle","arcCommands","pathCap","viewBoxHeight","Page","contentValue","PagePropTypes","PageContent","pageContext","PageContentPropTypes","valueGap","nameProp","nameProps","pairProps","valueProps","nameAlign","valueAlign","NameValueList","layout","valueWidth","nameWidth","listContextValue","NotificationAnchor","Notification","actionsProp","messageProp","autoClose","visible","setVisible","CloseIcon","StatusIcon","closeIconColor","textPad","closeButtonPad","TextWrapper","textStyle","closeButtonStyle","adaptThemeStyle","NotificationType","RangeInput","scroll","setScroll","rangeInputRef","handleScrollTo","setRangeInputValue","StyledRangeInput","aria-valuemax","aria-valuemin","aria-valuenow","onWheel","newValue","RangeInputPropTypes","getBoundOpacity","bound","getBoundColor","trackColorStyle","defaultTrackColor","thumbPosition","upper","upperTrackColor","lowerTrackColor","arrayOfTrackColors","valuePercentage","disabledRangeInputStyle","rangeTrackStyle","rangeThumbStyle","firefoxMicrosoftThumbStyle","RangeSelector","lastChange","setLastChange","moveValue","setMoveValue","valueForMouseCoord","clientY","scaleY","scaleX","nextValues","onTouchMove","touchEvent","changedTouches","EdgeControl","edge","onTouchStart","onDecrease","onIncrease","cursor","nextMoveValue","RangeSelectorPropTypes","DIRECTION_PROPS","boxDirection","justifySelf","minHeight","RoutedAnchor","method","router","modifierKey","ctrlKey","metaKey","history","Component","contextTypes","RoutedButton","SelectTextInput","defaultCursor","HiddenInput","StyledSelectDropButton","callerPlain","Select","closeOnChange","disabledKey","emptySearchMessage","propOpen","searchPlaceholder","valueLabel","onKeyPress","valuedValue","setSearch","allOptions","setAllOptions","optionIndexesInValue","SelectIcon","onRequestOpen","onRequestClose","triggerChangeEvent","onSelectChange","constructor","defineProperties","selectValue","Function","displayLabelKey","optionLabelKey","currentSelectedValue","SelectContainer","SelectPropTypes","OptionsBox","SelectOption","textComponent","ClearButton","onClear","buttonLabel","setActiveIndex","keyboardNavigation","setKeyboardNavigation","searchRef","optionsRef","clearRef","clearButton","searchInput","optionLabel","isDisabled","optionVal","valueItem","selectOption","nextOptionIndexesInValue","allOptionsIndex","onKeyDownOption","charAt","onActiveOption","customSearchInput","selectOptionsStyle","nextSearch","aria-multiselectable","optionRef","optionSelected","optionActive","aria-setsize","aria-posinset","aria-disabled","Sidebar","SidebarPropTypes","SkipLink","SkipLinks","showLayer","setShowLayer","removeLayer","layerNode","SkipLinksPropTypes","BasicSpinner","Spinner","sizeThemeProp","colorThemeProp","borderThemeProp","themeProps","normalizedSize","spinnerSize","defaultBorder","spinnerBorder","borderSide","SpinnerPropTypes","Tab","onActivate","setActiveContent","setActiveTitle","normalizedTitle","tabStyles","normalizedIcon","iconProp","withIconStyles","StyledTab","TabPropTypes","tabHoverStyle","Tabs","alignControls","propsActiveIndex","activeContent","activeTitle","getTabsContext","tabsHeaderStyles","tabContentTitle","StyledTabs","StyledTabsHeader","StyledTabPanel","TabsPropTypes","Tag","onRemove","StyledRemoveButton","StyledTagButton","TagPropTypes","TextArea","StyledTextArea","fillArg","TextAreaPropTypes","textarea","Video","autoPlay","controlsProp","loop","mute","onDurationChange","onEnded","onPause","onPlay","onTimeUpdate","onVolumeChange","setCaptions","currentTime","setCurrentTime","setDuration","percentagePlayed","setPercentagePlayed","playing","setPlaying","scrubTime","setScrubTime","setVolume","hasPlayed","setHasPlayed","interacting","setInteracting","scrubberRef","videoRef","muted","textTracks","videoHeight","ratio","videoRatio","videoWidth","nextHeight","nextCaptions","controlsElement","mouseEventListeners","scrub","scrubberRect","percent","seek","louder","quieter","fullscreen","requestFullscreen","msRequestFullscreen","mozRequestFullScreen","webkitRequestFullscreen","formattedTime","formatTime","Icons","Configure","FullScreen","ReduceVolume","captionControls","showCaptions","volumeControls","controlsMenuItems","StyledVideoControls","StyledVideoScrubber","openMenu","closeMenu","StyledVideoContainer","StyledVideo","VideoPropTypes","positionStyle","headStyle","CONTINENTS","origin","dots","mergeBounds","bounds1","bounds2","buildContinent","areaProp","dotsProp","segment","spots","dotCommands","buildWorld","continents","buildInteractiveProps","activeFunc","WorldMap","continentsProp","hoverColor","onSelectPlace","placesProp","places","world","setContinents","setPlaces","lat","scaledLon","latRad","mercN","coords","log","tan","activeCoords","setActiveCoords","activeContinent","setActiveContinent","activePlace","setActivePlace","targets","setTargets","placeRef","prevTargets","nextTargets","continentElements","continentColor","restContinents","interactiveProps","activate","fillOpacity","placesContent","placeElements","placeColor","restPlace","scaledLat","atan","exp","StyledWorldMap","WorldMapPropTypes","_getRGBArray"],"mappings":"wBACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QA0Df,OArDAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb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KAyCO,IAAMy1F,EAvCE,G,sPCMXvsF,EAAc,SAAqBnI,GACrC,MAAI,KAAKkI,KAAKlI,GATI,SAAuBA,GACzC,OAAOA,EAAMwU,QAAQ,oCAAoC,SAAUrX,EAAGU,EAAGgL,EAAGC,GAC1E,MAAO,IAAMjL,EAAIA,EAAIgL,EAAIA,EAAIC,EAAIA,KAChC8yE,UAAU,GAAGx1E,MAAM,SAASgC,KAAI,SAAU2Y,GAC3C,OAAOzY,SAASyY,EAAG,OAMZxY,CAAcvI,GAGnB,OAAOkI,KAAKlI,GACPA,EAAMoG,MAAM,4DAA4DwC,OAAO,GAGjF5I,GAGEsZ,EAAc,SAAqBtZ,GAC5C,IAAI20F,EAAexsF,EAAYnI,GAQ/B,OADkB,IANR20F,EAAa,GAMO,IALlBA,EAAa,GAKmB,IAJjCA,EAAa,IAIkC,IACtC,KAEXjtF,EAAiB,SAASA,EAAe1H,EAAOd,GACzD,IAAIyI,EAAYzI,EAAMuF,OAAOC,OAAO1E,IAAUA,EAE1C4H,EAASD,EAab,OAXIzI,EAAMW,MAAQ8H,EAAU9H,KAC1B+H,EAASD,EAAU9H,MACTX,EAAMW,MAAQ8H,EAAU7H,QAClC8H,EAASD,EAAU7H,OAIjB8H,GAAU1I,EAAMuF,OAAOC,OAAOkD,IAAW1I,EAAMuF,OAAOC,OAAOkD,KAAYA,IAC3EA,EAASF,EAAeE,EAAQ1I,IAG3B0I,GC9CE,EAAa,SAAoBtK,EAAMU,EAAOkB,EAAO8+D,GAC9D,OAAO,cAAI,CAAC,GAAI,IAAK,KAAM1gE,EAAMoK,EAAe1J,EAAOkB,EAAO8+D,KCFrD,EAAY,SAAmB1gE,EAAMU,EAAOkB,GACrD,OAAO,cAAI,CAAC,GAAI,IAAK,KAAM5B,EAAM4B,EAAMuF,OAAOlE,KAAKvC,IAAUA","file":"grommet.min.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 94);\n","module.exports = React;","module.exports = styled;","import { deepMerge } from './utils';\nimport { base } from './themes/base';\n\nexport const defaultProps = {\n theme: base,\n};\n\nexport const extendDefaultTheme = theme => {\n defaultProps.theme = deepMerge(base, theme);\n};\n","export * from './animation';\nexport * from './mixins';\nexport * from './background';\nexport * from './border';\nexport * from './colors';\nexport * from './DOM';\nexport * from './graphics';\nexport * from './styles';\nexport * from './object';\nexport * from './pagination';\nexport * from './PortalContext';\nexport * from './refs';\nexport * from './responsive';\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","export { Box } from './Box';\n","import PropTypes from 'prop-types';\n\nexport const a11yTitlePropType = PropTypes.string;\n\nexport const alignPropType = PropTypes.oneOfType([\n PropTypes.oneOf(['baseline', 'center', 'end', 'start', 'stretch']),\n PropTypes.string,\n]);\n\nexport const colorPropType = PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.shape({ dark: PropTypes.string, light: PropTypes.string }),\n]);\n\nexport const backgroundPropType = PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.shape({\n color: colorPropType,\n dark: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),\n image: PropTypes.string,\n position: PropTypes.string,\n opacity: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.bool,\n PropTypes.number,\n PropTypes.oneOf(['weak', 'medium', 'strong']),\n ]),\n repeat: PropTypes.oneOfType([\n PropTypes.oneOf(['no-repeat', 'repeat']),\n PropTypes.string,\n ]),\n size: PropTypes.oneOfType([\n PropTypes.oneOf(['cover', 'contain']),\n PropTypes.string,\n ]),\n light: PropTypes.string,\n }),\n]);\n\nexport const backgroundDoc = backgroundPropType;\n\nexport const MARGIN_SIZES = [\n 'xxsmall',\n 'xsmall',\n 'small',\n 'medium',\n 'large',\n 'xlarge',\n];\n\nexport const marginProp = PropTypes.oneOfType([\n PropTypes.oneOf(['none', ...MARGIN_SIZES]),\n PropTypes.shape({\n bottom: PropTypes.oneOfType([\n PropTypes.oneOf(MARGIN_SIZES),\n PropTypes.string,\n ]),\n end: PropTypes.oneOfType([PropTypes.oneOf(MARGIN_SIZES), PropTypes.string]),\n horizontal: PropTypes.oneOfType([\n PropTypes.oneOf(MARGIN_SIZES),\n PropTypes.string,\n ]),\n left: PropTypes.oneOfType([\n PropTypes.oneOf(MARGIN_SIZES),\n PropTypes.string,\n ]),\n right: PropTypes.oneOfType([\n PropTypes.oneOf(MARGIN_SIZES),\n PropTypes.string,\n ]),\n start: PropTypes.oneOfType([\n PropTypes.oneOf(MARGIN_SIZES),\n PropTypes.string,\n ]),\n top: PropTypes.oneOfType([PropTypes.oneOf(MARGIN_SIZES), PropTypes.string]),\n vertical: PropTypes.oneOfType([\n PropTypes.oneOf(MARGIN_SIZES),\n PropTypes.string,\n ]),\n }),\n PropTypes.string,\n]);\n\nconst PAD_SIZES = ['xxsmall', 'xsmall', 'small', 'medium', 'large', 'xlarge'];\n\nexport const padPropType = PropTypes.oneOfType([\n PropTypes.oneOf(['none', ...PAD_SIZES]),\n PropTypes.shape({\n bottom: PropTypes.oneOfType([PropTypes.oneOf(PAD_SIZES), PropTypes.string]),\n end: PropTypes.oneOfType([PropTypes.oneOf(PAD_SIZES), PropTypes.string]),\n horizontal: PropTypes.oneOfType([\n PropTypes.oneOf(PAD_SIZES),\n PropTypes.string,\n ]),\n left: PropTypes.oneOfType([PropTypes.oneOf(PAD_SIZES), PropTypes.string]),\n right: PropTypes.oneOfType([PropTypes.oneOf(PAD_SIZES), PropTypes.string]),\n start: PropTypes.oneOfType([PropTypes.oneOf(PAD_SIZES), PropTypes.string]),\n top: PropTypes.oneOfType([PropTypes.oneOf(PAD_SIZES), PropTypes.string]),\n vertical: PropTypes.oneOfType([\n PropTypes.oneOf(PAD_SIZES),\n PropTypes.string,\n ]),\n }),\n PropTypes.string,\n]);\n\nexport const genericProps = {\n a11yTitle: a11yTitlePropType,\n alignSelf: PropTypes.oneOf(['start', 'center', 'end', 'stretch']),\n gridArea: PropTypes.string,\n margin: marginProp,\n};\n\nexport const elevationPropType = PropTypes.oneOfType([\n PropTypes.oneOf(['none', 'xsmall', 'small', 'medium', 'large', 'xlarge']),\n PropTypes.string,\n]);\n\nexport const hoverIndicatorPropType = PropTypes.oneOfType([\n PropTypes.bool,\n PropTypes.string,\n PropTypes.oneOf(['background']),\n backgroundPropType,\n PropTypes.shape({\n background: backgroundPropType,\n elevation: elevationPropType,\n }),\n]);\n\nexport const pointPropType = PropTypes.oneOf([\n 'circle',\n 'diamond',\n 'square',\n 'star',\n 'triangle',\n 'triangleDown',\n]);\n\nexport const patternPropType = PropTypes.oneOf([\n 'squares',\n 'circles',\n 'stripesHorizontal',\n 'stripesVertical',\n 'stripesDiagonalDown',\n 'stripesDiagonalUp',\n]);\n\nexport const roundPropType = PropTypes.oneOfType([\n PropTypes.bool,\n PropTypes.oneOf(['xsmall', 'small', 'medium', 'large', 'xlarge', 'full']),\n PropTypes.string,\n PropTypes.shape({\n corner: PropTypes.oneOf([\n 'top',\n 'left',\n 'bottom',\n 'right',\n 'top-left',\n 'top-right',\n 'bottom-left',\n 'bottom-right',\n ]),\n size: PropTypes.oneOfType([\n PropTypes.oneOf(['xsmall', 'small', 'medium', 'large', 'xlarge']),\n PropTypes.string,\n ]),\n }),\n]);\n\nconst dimSizeType = PropTypes.oneOf([\n 'xxsmall',\n 'xsmall',\n 'small',\n 'medium',\n 'large',\n 'xlarge',\n 'xxlarge',\n]);\n\nexport const heightPropType = PropTypes.oneOfType([\n dimSizeType,\n PropTypes.string,\n PropTypes.shape({\n height: PropTypes.oneOfType([dimSizeType, PropTypes.string]),\n min: PropTypes.oneOfType([dimSizeType, PropTypes.string]),\n max: PropTypes.oneOfType([dimSizeType, PropTypes.string]),\n }),\n]);\n\nexport const widthPropType = PropTypes.oneOfType([\n dimSizeType,\n PropTypes.string,\n PropTypes.shape({\n width: PropTypes.oneOfType([dimSizeType, PropTypes.string]),\n min: PropTypes.oneOfType([dimSizeType, PropTypes.string]),\n max: PropTypes.oneOfType([dimSizeType, PropTypes.string]),\n }),\n]);\n\nexport const OVERFLOW_VALUES = ['auto', 'hidden', 'scroll', 'visible'];\n","\"use strict\";\n\nexports.__esModule = true;\nexports.StyledIcon = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _styledComponents = _interopRequireWildcard(require(\"styled-components\"));\n\nvar _grommetStyles = require(\"grommet-styles\");\n\nvar _defaultProps = require(\"./default-props\");\n\nvar _excluded = [\"a11yTitle\", \"color\", \"size\", \"theme\"];\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && 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; }\n\nfunction _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); }\n\nfunction _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; }\n\nvar colorCss = (0, _styledComponents.css)([\"\", \" \", \" g{fill:inherit;stroke:inherit;}*:not([stroke]){&[fill=\\\"none\\\"]{stroke-width:0;}}*[stroke*=\\\"#\\\"],*[STROKE*=\\\"#\\\"]{stroke:inherit;fill:none;}*[fill-rule],*[FILL-RULE],*[fill*=\\\"#\\\"],*[FILL*=\\\"#\\\"]{fill:inherit;stroke:none;}\"], function (props) {\n return (0, _grommetStyles.colorStyle)('fill', props.color || props.theme.global.colors.icon, props.theme);\n}, function (props) {\n return (0, _grommetStyles.colorStyle)('stroke', props.color || props.theme.global.colors.icon, props.theme);\n});\nvar IconInner = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {\n var a11yTitle = _ref.a11yTitle,\n color = _ref.color,\n size = _ref.size,\n theme = _ref.theme,\n rest = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n return /*#__PURE__*/_react[\"default\"].createElement(\"svg\", _extends({\n ref: ref,\n \"aria-label\": a11yTitle\n }, rest));\n});\nIconInner.displayName = 'Icon';\n\nvar parseMetricToNum = function parseMetricToNum(string) {\n return parseFloat(string.match(/\\d+(\\.\\d+)?/), 10);\n};\n\nvar StyledIcon = (0, _styledComponents[\"default\"])(IconInner).withConfig({\n displayName: \"StyledIcon\",\n componentId: \"sc-ofa7kd-0\"\n})([\"display:inline-block;flex:0 0 auto;\", \" \", \" \", \"\"], function (_ref2) {\n var _ref2$size = _ref2.size,\n size = _ref2$size === void 0 ? 'medium' : _ref2$size,\n theme = _ref2.theme,\n viewBox = _ref2.viewBox;\n\n var _split = (viewBox || '0 0 24 24').split(' '),\n w = _split[2],\n h = _split[3];\n\n var scale = w / h;\n var dimension = parseMetricToNum(theme.icon.size[size] || size);\n\n if (w < h) {\n return \"\\n width: \" + dimension + \"px;\\n height: \" + dimension / scale + \"px;\\n \";\n }\n\n if (h < w) {\n return \"\\n width: \" + dimension * scale + \"px;\\n height: \" + dimension + \"px;\\n \";\n }\n\n return \"\\n width: \" + dimension + \"px;\\n height: \" + dimension + \"px;\\n \";\n}, function (_ref3) {\n var color = _ref3.color;\n return color !== 'plain' && colorCss;\n}, function (_ref4) {\n var theme = _ref4.theme;\n return theme && theme.icon.extend;\n});\nexports.StyledIcon = StyledIcon;\nStyledIcon.defaultProps = {};\nObject.setPrototypeOf(StyledIcon.defaultProps, _defaultProps.defaultProps);","export { Text } from './Text';\n","export { Button } from './Button';\n","export { Keyboard } from './Keyboard';\n","export { format, MessageContext } from './MessageContext';\n","import React, { useState } from 'react';\n\n// When not a descendant of a Form, FormContext still provides a basic\n// useFormInput. It doesn't do anything for components like TextInput.\n// But, it does store the value for components like CheckBox or Select\n// where the grommet component needs to know the value in order to\n// render custom visuals.\nconst useFormInput = ({ value: valueProp, initialValue }) => {\n const [value, setValue] = useState(\n valueProp !== undefined ? valueProp : initialValue,\n );\n\n // Returns an array [value and function to set the value]\n return [\n valueProp !== undefined ? valueProp : value,\n (nextValue) => {\n if (initialValue !== undefined) setValue(nextValue);\n },\n ];\n};\n\nconst useFormField = ({ error, info, disabled }) => ({ error, info, disabled });\n\nexport const FormContext = React.createContext({ useFormField, useFormInput });\n","/* eslint-disable no-restricted-imports */\nimport { useLayoutEffect as vanillaUseLayoutEffect, useEffect } from 'react';\n\n/**\n * A substitute for React's useLayoutEffect, which does not generate warnings on\n * SSR. It is named useLayoutEffect so that all eslint rules applying to the\n * original useLayoutEffect would also apply to it.\n * This solution was suggested by Alex Reardon.\n * @see https://medium.com/@alexandereardon/uselayouteffect-and-ssr-192986cdcf7a\n * @see https://github.com/grommet/grommet/issues/4765\n */\nexport const useLayoutEffect =\n typeof window !== 'undefined' ? vanillaUseLayoutEffect : useEffect;\n\nexport default useLayoutEffect;\n","export { Drop } from './Drop';\n","export { TableCell } from './TableCell';\n","export { Anchor } from './Anchor';\n","// Returns the specific color that should be used according to the theme.\n// If 'dark' is supplied, it takes precedence over 'theme.dark'.\n// Can return undefined.\nexport const normalizeColor = (color, theme, dark) => {\n const colorSpec =\n theme.global && theme.global.colors[color] !== undefined\n ? theme.global.colors[color]\n : color;\n // If the color has a light or dark object, use that\n let result = colorSpec;\n if (colorSpec) {\n if (\n (dark === true || (dark === undefined && theme.dark)) &&\n colorSpec.dark !== undefined\n ) {\n result = colorSpec.dark;\n } else if (\n (dark === false || !theme.dark) &&\n colorSpec.light !== undefined\n ) {\n result = colorSpec.light;\n }\n }\n // allow one level of indirection in color names\n if (result && theme.global && theme.global.colors[result] !== undefined) {\n result = normalizeColor(result, theme, dark);\n }\n\n return result;\n};\n\nconst parseHexToRGB = (color) =>\n color.length < 7 // 7 is what's needed for '#RRGGBB'\n ? color.match(/[A-Za-z0-9]{1}/g).map((v) => parseInt(`${v}${v}`, 16))\n : // https://stackoverflow.com/a/42429333\n color.match(/[A-Za-z0-9]{2}/g).map((v) => parseInt(v, 16));\n\n// From: https://stackoverflow.com/a/9493060/8513067\n// Converts an HSL color value to RGB. Conversion formula\n// adapted from http://en.wikipedia.org/wiki/HSL_color_space.\n// Assumes h, s, and l are contained in the set [0, 1] and\n// returns r, g, and b in the set [0, 255].\nconst hslToRGB = (h, s, l) => {\n let r;\n let g;\n let b;\n\n if (s === 0 || s === '0') {\n // achromatic\n r = l;\n g = l;\n b = l;\n } else {\n const hue2rgb = (p, q, inT) => {\n let t = inT;\n if (t < 0) t += 1;\n if (t > 1) t -= 1;\n if (t < 0.16666667) return p + (q - p) * 6 * t;\n if (t < 1 / 2) return q;\n if (t < 0.66666667) return p + (q - p) * (0.66666667 - t) * 6;\n return p;\n };\n\n const q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n const p = 2 * l - q;\n r = hue2rgb(p, q, h + 0.33333333);\n g = hue2rgb(p, q, h);\n b = hue2rgb(p, q, h - 0.33333333);\n }\n\n return [Math.round(r * 255), Math.round(g * 255), Math.round(b * 255)];\n};\n\n// allow for alpha: #RGB, #RGBA, #RRGGBB, or #RRGGBBAA\nconst hexExp = /^#[A-Za-z0-9]{3,4}$|^#[A-Za-z0-9]{6,8}$/;\nconst rgbExp = /^rgba?\\(\\s?([0-9]*)\\s?,\\s?([0-9]*)\\s?,\\s?([0-9]*)\\s?\\)/;\nconst rgbaExp =\n /^rgba?\\(\\s?([0-9]*)\\s?,\\s?([0-9]*)\\s?,\\s?([0-9]*)\\s?,\\s?([.0-9]*)\\s?\\)/;\n// e.g. hsl(240, 60%, 50%)\nconst hslExp = /^hsla?\\(\\s?([0-9]*)\\s?,\\s?([0-9]*)%?\\s?,\\s?([0-9]*)%?\\s?.*?\\)/;\n\nconst canExtractRGBArray = (color) =>\n hexExp.test(color) ||\n rgbExp.test(color) ||\n rgbaExp.test(color) ||\n hslExp.test(color);\n\nconst getRGBArray = (color) => {\n if (hexExp.test(color)) {\n const [red, green, blue, alpha] = parseHexToRGB(color);\n return [red, green, blue, alpha !== undefined ? alpha / 255.0 : undefined];\n }\n let match = color.match(rgbExp);\n if (match) {\n return match.splice(1).map((v) => parseInt(v, 10));\n }\n match = color.match(rgbaExp);\n if (match) {\n return match.splice(1).map((v) => parseFloat(v, 10));\n }\n match = color.match(hslExp);\n if (match) {\n const [h, s, l] = match.splice(1).map((v) => parseInt(v, 10));\n return hslToRGB(h / 360.0, s / 100.0, l / 100.0);\n }\n return color;\n};\n\nexport const colorIsDark = (color) => {\n if (color && canExtractRGBArray(color)) {\n const [red, green, blue, alpha] = getRGBArray(color);\n // if there is an alpha and it's greater than 50%, we can't really tell\n if (alpha < 0.5) return undefined;\n const brightness = (299 * red + 587 * green + 114 * blue) / 1000;\n // From: http://www.had2know.com/technology/color-contrast-calculator-web-design.html\n // Above domain is no longer registered.\n return brightness < 125;\n }\n return undefined;\n};\n\nexport const getRGBA = (color, opacity) => {\n if (color && canExtractRGBArray(color)) {\n const [red, green, blue, alpha] = getRGBArray(color);\n let normalizedAlpha;\n if (opacity !== undefined) {\n normalizedAlpha = opacity;\n } else if (alpha !== undefined) {\n normalizedAlpha = alpha;\n } else {\n normalizedAlpha = 1;\n }\n return `rgba(${red}, ${green}, ${blue}, ${normalizedAlpha})`;\n }\n return undefined;\n};\n","import styled, { css } from 'styled-components';\n\nimport {\n backgroundStyle,\n borderStyle,\n edgeStyle,\n genericStyles,\n} from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst SIZE_MAP = {\n '1/2': '50%',\n '1/4': '25%',\n '2/4': '50%',\n '3/4': '75%',\n '1/3': '33.33%',\n '2/3': '66.66%',\n};\n\nconst sizeStyle = css`\n width: ${(props) =>\n props.size === 'auto'\n ? // setting width to a small value will allow\n // the cell to fit width of its content. this\n // is a commonly implemented CSS pattern to\n // allow an auto-width behavior on fixed table\n // layouts (which is what DataTable applies)\n // https://stackoverflow.com/questions/4757844/css-table-column-autowidth?noredirect=1&lq=1\n '1px'\n : SIZE_MAP[props.size] ||\n props.theme.global.size[props.size] ||\n props.size};\n max-width: ${(props) =>\n props.size !== 'auto'\n ? SIZE_MAP[props.size] ||\n props.theme.global.size[props.size] ||\n props.size\n : undefined};\n overflow: hidden;\n`;\n\nconst StyledTableCell = styled.td`\n margin: 0;\n padding: 0;\n font-weight: inherit;\n text-align: inherit;\n\n ${(props) => props.size && sizeStyle}\n ${(props) => props.verticalAlign && `vertical-align: ${props.verticalAlign};`}\n ${(props) => props.align && `text-align: ${props.align};`}\n ${(props) =>\n props.background && backgroundStyle(props.background, props.theme)}\n ${(props) =>\n props.border && borderStyle(props.border, props.responsive, props.theme)}\n ${(props) =>\n props.pad &&\n edgeStyle(\n 'padding',\n props.pad,\n props.responsive,\n props.theme.box.responsiveBreakpoint,\n props.theme,\n )}\n ${(props) => props.tableContextTheme && props.tableContextTheme.extend}\n`;\n\nStyledTableCell.defaultProps = {};\nObject.setPrototypeOf(StyledTableCell.defaultProps, defaultProps);\n\nconst StyledTableDataCaption = styled.caption`\n margin-bottom: ${(props) => props.theme.global.edgeSize.xxsmall};\n`;\n\nStyledTableDataCaption.defaultProps = {};\nObject.setPrototypeOf(StyledTableDataCaption.defaultProps, defaultProps);\n\nconst StyledTableRow = styled.tr``;\n\nStyledTableRow.defaultProps = {};\nObject.setPrototypeOf(StyledTableRow.defaultProps, defaultProps);\n\nconst StyledTableBody = styled.tbody``;\n\nStyledTableBody.defaultProps = {};\nObject.setPrototypeOf(StyledTableBody.defaultProps, defaultProps);\n\nconst StyledTableHeader = styled.thead``;\n\nStyledTableHeader.defaultProps = {};\nObject.setPrototypeOf(StyledTableHeader.defaultProps, defaultProps);\n\nconst StyledTableFooter = styled.tfoot``;\n\nStyledTableFooter.defaultProps = {};\nObject.setPrototypeOf(StyledTableFooter.defaultProps, defaultProps);\n\nconst StyledTable = styled.table`\n border-spacing: 0;\n border-collapse: collapse;\n width: inherit;\n @media all and (min--moz-device-pixel-ratio: 0) {\n table-layout: fixed;\n }\n ${genericStyles} ${(props) => props.theme.table && props.theme.table.extend};\n`;\n\nStyledTable.defaultProps = {};\nObject.setPrototypeOf(StyledTable.defaultProps, defaultProps);\n\nexport {\n StyledTableCell,\n StyledTableDataCaption,\n StyledTableRow,\n StyledTableBody,\n StyledTableHeader,\n StyledTableFooter,\n StyledTable,\n};\n","export { InfiniteScroll } from './InfiniteScroll';\n","import styled, { css } from 'styled-components';\n\nimport {\n backgroundStyle,\n fillStyle,\n focusStyle,\n unfocusStyle,\n genericStyles,\n normalizeColor,\n} from '../../utils';\nimport { defaultProps } from '../../default-props';\nimport { Box } from '../Box';\nimport { TableRow } from '../TableRow';\nimport { Table } from '../Table';\nimport { TableBody } from '../TableBody';\nimport { TableCell } from '../TableCell';\nimport { TableHeader } from '../TableHeader';\nimport { TableFooter } from '../TableFooter';\n\n// border-collapse: separate is needed so pinned header/footer borders work\nconst StyledDataTable = styled(Table)`\n position: relative;\n border-spacing: 0;\n border-collapse: separate;\n height: auto; /* helps Firefox to get table contents to not overflow */\n ${genericStyles}\n ${(props) => props.fillProp && fillStyle(props.fillProp)}\n ${(props) =>\n props.theme.dataTable &&\n props.theme.dataTable.body &&\n props.theme.dataTable.body.extend};\n`;\n\nStyledDataTable.defaultProps = {};\nObject.setPrototypeOf(StyledDataTable.defaultProps, defaultProps);\n\n// when paginated, this wraps the data table and pagination component\nconst StyledContainer = styled(Box)`\n ${(props) =>\n props.theme.dataTable &&\n props.theme.dataTable.container &&\n props.theme.dataTable.container.extend};\n`;\n\nStyledContainer.defaultProps = {};\nObject.setPrototypeOf(StyledContainer.defaultProps, defaultProps);\n\nconst hoverStyle = css`\n ${(props) =>\n backgroundStyle(\n normalizeColor(\n (props.theme.table &&\n props.theme.table.row &&\n props.theme.table.row.hover &&\n props.theme.table.row.hover.background) ||\n props.theme.global.hover.background,\n props.theme,\n ),\n props.theme,\n )}\n color: ${(props) =>\n normalizeColor(\n (props.theme.table &&\n props.theme.table.row &&\n props.theme.table.row.hover &&\n props.theme.table.row.hover.color) ||\n props.theme.global.hover.color,\n props.theme,\n )};\n`;\n\nconst StyledDataTableRow = styled(TableRow)`\n ${(props) =>\n props.size &&\n `\n display: table;\n width: 100%;\n table-layout: fixed;\n `}\n ${(props) =>\n props.onClick &&\n `\n cursor: pointer;\n `}\n ${(props) => props.active && hoverStyle}\n`;\n\nStyledDataTableRow.defaultProps = {};\nObject.setPrototypeOf(StyledDataTableRow.defaultProps, defaultProps);\n\n// focus styling other than outline doesn't work on \nconst StyledDataTableBody = styled(TableBody)`\n ${(props) =>\n props.size &&\n `\n display: block;\n width: 100%;\n max-height: ${props.theme.global.size[props.size]};\n overflow: auto;\n `}\n\n &:focus {\n ${focusStyle({ skipSvgChildren: true, forceOutline: true })}\n }\n\n &:focus:not(:focus-visible) {\n ${unfocusStyle({ skipSvgChildren: true, forceOutline: true })}\n }\n`;\n\nStyledDataTableBody.defaultProps = {};\nObject.setPrototypeOf(StyledDataTableBody.defaultProps, defaultProps);\n\nconst StyledDataTableHeader = styled(TableHeader)`\n ${(props) =>\n props.size &&\n `\n display: table;\n width: calc(100% - ${props.scrollOffset}px);\n table-layout: fixed;\n `}\n`;\n\nStyledDataTableHeader.defaultProps = {};\nObject.setPrototypeOf(StyledDataTableHeader.defaultProps, defaultProps);\n\nconst StyledDataTableFooter = styled(TableFooter)`\n ${(props) =>\n props.size &&\n `\n display: table;\n width: calc(100% - ${props.scrollOffset}px);\n table-layout: fixed;\n `}\n ${(props) =>\n props.pin &&\n `\n /* Safari needs the relative positioning of tfoot specified */\n position: sticky;\n bottom: 0;\n z-index: 1;\n `}\n`;\n\nStyledDataTableFooter.defaultProps = {};\nObject.setPrototypeOf(StyledDataTableFooter.defaultProps, defaultProps);\n\nconst StyledDataTableCell = styled(TableCell)`\n ${(props) =>\n props.context === 'header' &&\n props.theme.dataTable &&\n props.theme.dataTable.header &&\n props.theme.dataTable.header.extend};\n ${(props) =>\n props.pin &&\n props.pin.length > 0 &&\n `position: sticky;\n ${props.pin\n .map(\n (p) =>\n `${p}: ${\n (props.pinnedOffset &&\n props.pinnedOffset[p] &&\n `${props.pinnedOffset[p]}px`) ||\n 0\n };`,\n )\n .join(' ')}\n z-index: ${Object.keys(props.pin).length};\n `}\n ${(props) =>\n props.pin &&\n props.pin.length > 0 &&\n props.theme.dataTable.pinned &&\n props.theme.dataTable.pinned[props.context] &&\n props.theme.dataTable.pinned[props.context].extend\n ? props.theme.dataTable.pinned[props.context].extend\n : ''}\n`;\n\nStyledDataTableCell.defaultProps = {};\nObject.setPrototypeOf(StyledDataTableCell.defaultProps, defaultProps);\n\nconst StyledPlaceholder = styled('caption')`\n position: absolute;\n ${(props) => `top: ${props.top || 0}px;`}\n ${(props) => `bottom: ${props.bottom || 0}px;`}\n left: 0;\n right: 0;\n`;\n\nexport {\n StyledContainer,\n StyledDataTable,\n StyledDataTableRow,\n StyledDataTableBody,\n StyledDataTableCell,\n StyledDataTableHeader,\n StyledDataTableFooter,\n StyledPlaceholder,\n};\n","export { TableRow } from './TableRow';\n","import { css } from 'styled-components';\n\nexport const parseMetricToNum = metric => {\n if (typeof metric === 'number') return metric;\n if (metric.match(/\\s/) && process.env.NODE_ENV !== 'production') {\n console.warn(`Invalid single measurement value: \"${metric}\"`);\n }\n return parseFloat(metric.match(/\\d+(\\.\\d+)?/), 10);\n};\n\nexport const fontSize = (size, lineHeight) => css`\n font-size: ${props =>\n `${(parseMetricToNum(size) /\n parseMetricToNum(props.theme.global.font.size)) *\n 1}rem`};\n line-height: ${props =>\n lineHeight ||\n `${Math.ceil(\n parseMetricToNum(size) / parseMetricToNum(props.theme.global.lineHeight),\n ) *\n (parseMetricToNum(props.theme.global.lineHeight) /\n parseMetricToNum(size))}px`};\n`;\n\nexport const breakpointStyle = (breakpoint, content) => css`\n @media only screen ${breakpoint.value &&\n `and (max-width: ${breakpoint.value}px)`} {\n ${content};\n }\n`;\n\nexport const findAllByType = (component, type) => {\n let matches = [];\n\n if (component.type === type) {\n matches.push(component);\n }\n\n if (component.children) {\n component.children.forEach(child => {\n matches = matches.concat(findAllByType(child, type));\n });\n }\n\n return matches;\n};\n\nexport const getAvailableAtBadge = (availableAt, componentType) => [\n {\n url: `https://storybook.grommet.io/?selectedKind=${componentType}-${availableAt}&full=0&stories=1&panelRight=0`,\n badge:\n 'https://cdn-images-1.medium.com/fit/c/120/120/1*TD1P0HtIH9zF0UEH28zYtw.png',\n label: 'Storybook',\n },\n {\n url: `https://codesandbox.io/s/github/grommet/grommet-sandbox?initialpath=/${availableAt.toLowerCase()}&module=%2Fsrc%2F${availableAt}.js`,\n badge: 'https://codesandbox.io/static/img/play-codesandbox.svg',\n label: 'CodeSandbox',\n },\n];\n","import { css } from 'styled-components';\nimport { backgroundStyle } from './background';\nimport { normalizeColor } from './colors';\nimport { getBreakpointStyle } from './responsive';\nimport { breakpointStyle, parseMetricToNum } from './mixins';\n\nexport const baseStyle = css`\n font-family: ${(props) => props.theme.global.font.family};\n font-size: ${(props) => props.theme.global.font.size};\n line-height: ${(props) => props.theme.global.font.height};\n font-weight: ${(props) => props.theme.global.font.weight};\n ${(props) =>\n !props.plain && backgroundStyle(props.theme.baseBackground, props.theme)}\n box-sizing: border-box;\n -webkit-text-size-adjust: 100%;\n -ms-text-size-adjust: 100%;\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n`;\n\nexport const controlBorderStyle = css`\n border: ${(props) => props.theme.global.control.border.width} solid\n ${(props) =>\n normalizeColor(\n props.theme.global.control.border.color || 'border',\n props.theme,\n )};\n border-radius: ${(props) => props.theme.global.control.border.radius};\n`;\n\nexport const edgeStyle = (\n kind,\n data,\n responsive,\n responsiveBreakpoint,\n theme,\n) => {\n const breakpoint =\n responsiveBreakpoint && theme.global.breakpoints[responsiveBreakpoint];\n\n if (typeof data === 'string') {\n return css`\n ${kind}: ${theme.global.edgeSize[data] || data};\n ${responsive && breakpoint\n ? breakpointStyle(\n breakpoint,\n `\n ${kind}: ${breakpoint.edgeSize[data] || data};\n `,\n )\n : ''};\n `;\n }\n const result = [];\n\n const { horizontal, vertical, top, bottom, left, right } = data;\n\n // if horizontal and vertical are equal OR all sides are equal,\n // we can just return a single css value such as padding: 12px\n // instead of breaking out by sides.\n const horizontalVerticalEqual =\n horizontal && vertical && horizontal === vertical;\n const allSidesEqual =\n top && bottom && left && right && ((top === bottom) === left) === right;\n\n if (horizontalVerticalEqual || allSidesEqual) {\n // since the values will be the same between vertical & horizontal OR\n // left, right, top, & bottom, we can just choose one\n const value = horizontalVerticalEqual ? horizontal : top;\n return css`\n ${kind}: ${theme.global.edgeSize[value] || value};\n ${responsive && breakpoint\n ? breakpointStyle(\n breakpoint,\n `\n ${kind}: ${breakpoint.edgeSize[value] || value};\n `,\n )\n : ''};\n `;\n }\n\n if (horizontal) {\n result.push(css`\n ${kind}-left: ${theme.global.edgeSize[horizontal] || horizontal};\n ${kind}-right: ${theme.global.edgeSize[horizontal] || horizontal};\n ${responsive && breakpoint\n ? breakpointStyle(\n breakpoint,\n `\n ${kind}-left: ${breakpoint.edgeSize[horizontal] || horizontal};\n ${kind}-right: ${breakpoint.edgeSize[horizontal] || horizontal};\n `,\n )\n : ''};\n `);\n }\n if (vertical) {\n result.push(css`\n ${kind}-top: ${theme.global.edgeSize[vertical] || vertical};\n ${kind}-bottom: ${theme.global.edgeSize[vertical] || vertical};\n ${responsive && breakpoint\n ? breakpointStyle(\n breakpoint,\n `\n ${kind}-top: ${breakpoint.edgeSize[vertical] || vertical};\n ${kind}-bottom: ${breakpoint.edgeSize[vertical] || vertical};\n `,\n )\n : ''};\n `);\n }\n if (top) {\n result.push(css`\n ${kind}-top: ${theme.global.edgeSize[top] || top};\n ${responsive && breakpoint\n ? breakpointStyle(\n breakpoint,\n `\n ${kind}-top: ${breakpoint.edgeSize[top] || top};\n `,\n )\n : ''};\n `);\n }\n if (bottom) {\n result.push(css`\n ${kind}-bottom: ${theme.global.edgeSize[bottom] || bottom};\n ${responsive && breakpoint\n ? breakpointStyle(\n breakpoint,\n `\n ${kind}-bottom: ${breakpoint.edgeSize[bottom] || bottom};\n `,\n )\n : ''};\n `);\n }\n if (left) {\n result.push(css`\n ${kind}-left: ${theme.global.edgeSize[left] || left};\n ${responsive && breakpoint\n ? breakpointStyle(\n breakpoint,\n `\n ${kind}-left: ${breakpoint.edgeSize[left] || left};\n `,\n )\n : ''};\n `);\n }\n if (right) {\n result.push(css`\n ${kind}-right: ${theme.global.edgeSize[right] || right};\n ${responsive && breakpoint\n ? breakpointStyle(\n breakpoint,\n `\n ${kind}-right: ${breakpoint.edgeSize[right] || right};\n `,\n )\n : ''};\n `);\n }\n if (data.start) {\n result.push(css`\n ${kind}-inline-start: ${theme.global.edgeSize[data.start] || data.start};\n ${responsive && breakpoint\n ? breakpointStyle(\n breakpoint,\n `\n ${kind}-inline-start: ${\n breakpoint.edgeSize[data.start] || data.start\n };\n `,\n )\n : ''};\n `);\n }\n if (data.end) {\n result.push(css`\n ${kind}-inline-end: ${theme.global.edgeSize[data.end] || data.end};\n ${responsive && breakpoint\n ? breakpointStyle(\n breakpoint,\n `\n ${kind}-inline-end: ${breakpoint.edgeSize[data.end] || data.end};\n `,\n )\n : ''};\n `);\n }\n\n return result;\n};\n\nexport const fillStyle = (fillProp) => {\n if (fillProp === 'horizontal') {\n return 'width: 100%;';\n }\n if (fillProp === 'vertical') {\n return 'height: 100%;';\n }\n if (fillProp) {\n return `\n width: 100%;\n height: 100%;\n `;\n }\n return undefined;\n};\n\nconst focusStyles = (props, { forceOutline, justBorder } = {}) => {\n const {\n theme: {\n global: { focus },\n },\n } = props;\n if (!focus || (forceOutline && !focus.outline)) {\n const color = normalizeColor('focus', props.theme);\n if (color) return `outline: 2px solid ${color};`;\n return ''; // native\n }\n if (focus.outline && (!focus.border || !justBorder)) {\n if (typeof focus.outline === 'object') {\n const color = normalizeColor(focus.outline.color || 'focus', props.theme);\n const size = focus.outline.size || '2px';\n return `\n outline-offset: 0px;\n outline: ${size} solid ${color};\n `;\n }\n return `outline: ${focus.outline};`;\n }\n if (focus.shadow && (!focus.border || !justBorder)) {\n if (typeof focus.shadow === 'object') {\n const color = normalizeColor(\n // If there is a focus.border.color, use that for shadow too.\n // This is for backwards compatibility in v2.\n (focus.border && focus.border.color) || focus.shadow.color || 'focus',\n props.theme,\n );\n const size = focus.shadow.size || '2px'; // backwards compatible default\n return `\n outline: none;\n box-shadow: 0 0 ${size} ${size} ${color};\n `;\n }\n return `\n outline: none;\n box-shadow: ${focus.shadow};\n `;\n }\n if (focus.border) {\n const color = normalizeColor(focus.border.color || 'focus', props.theme);\n return `\n outline: none;\n border-color: ${color};\n `;\n }\n return ''; // defensive\n};\n\nconst unfocusStyles = (props, { forceOutline, justBorder } = {}) => {\n const {\n theme: {\n global: { focus },\n },\n } = props;\n if (!focus || (forceOutline && !focus.outline)) {\n const color = normalizeColor('focus', props.theme);\n if (color) return `outline: none;`;\n return ''; // native\n }\n if (focus.outline && (!focus.border || !justBorder)) {\n if (typeof focus.outline === 'object') {\n return `\n outline-offset: 0px;\n outline: none;\n `;\n }\n return `outline: none;`;\n }\n if (focus.shadow && (!focus.border || !justBorder)) {\n if (typeof focus.shadow === 'object') {\n return `\n outline: none;\n box-shadow: none;\n `;\n }\n return `\n outline: none;\n box-shadow: none;\n `;\n }\n if (focus.border) {\n return `\n outline: none;\n border-color: none;\n `;\n }\n return ''; // defensive\n};\n\n// focus also supports clickable elements inside svg\nexport const focusStyle = ({\n forceOutline,\n justBorder,\n skipSvgChildren,\n} = {}) => css`\n ${(props) =>\n !skipSvgChildren &&\n `\n > circle,\n > ellipse,\n > line,\n > path,\n > polygon,\n > polyline,\n > rect {\n ${focusStyles(props)}\n }`}\n ${(props) => focusStyles(props, { forceOutline, justBorder })}\n ${!forceOutline &&\n `\n ::-moz-focus-inner {\n border: 0;\n }\n `}\n`;\n\n// This is placed next to focusStyle for easy maintainability\n// of code since changes to focusStyle should be reflected in\n// unfocusStyle as well.\n// this function can be used to reset focus styles which is\n// applicable when turning the focus ring off when using the mouse\n// see https://nelo.is/writing/styling-better-focus-states/\nexport const unfocusStyle = ({\n forceOutline,\n justBorder,\n skipSvgChildren,\n} = {}) => css`\n ${(props) =>\n !skipSvgChildren &&\n `\n > circle,\n > ellipse,\n > line,\n > path,\n > polygon,\n > polyline,\n > rect {\n ${unfocusStyles(props)}\n }`}\n ${(props) => unfocusStyles(props, { forceOutline, justBorder })}\n ${!forceOutline &&\n `\n ::-moz-focus-inner {\n border: 0;\n }\n `}\n`;\n\n// For backwards compatibility we need to add back the control border width.\n// Based on how grommet was functioning prior to https://github.com/grommet/grommet/pull/3939,\n// the padding was subtracting the border width from the theme value, but the\n// placeholder was not. Because we're now placing the subtraction into the\n// theme itself, we have to add back in the border width here.\n// This is used for placeholder/icon in TextInput and MaskedInput.\nconst adjustPad = (props, value) =>\n `${\n parseMetricToNum(`${props.theme.global.edgeSize[value] || value}px`) +\n parseMetricToNum(`${props.theme.global.control.border.width}px`)\n }px`;\n\nexport const getInputPadBySide = (props, side) => {\n if (typeof props.theme.global.input.padding !== 'object') {\n const adjustedPad = adjustPad(props, props.theme.global.input.padding);\n return adjustedPad;\n }\n\n let orientation;\n if (side === 'left' || side === 'right') orientation = 'horizontal';\n else if (side === 'top' || side === 'bottom') orientation = 'vertical';\n else orientation = undefined;\n\n // if individual side isn't available, fallback to the\n // orientation if possible\n const pad =\n props.theme.global.input.padding[side] ||\n props.theme.global.input.padding[orientation];\n\n const adjustedPad = adjustPad(props, pad);\n\n return adjustedPad;\n};\n\nconst placeholderColor = css`\n color: ${(props) =>\n normalizeColor(props.theme.global.colors.placeholder, props.theme)};\n`;\n\nconst placeholderStyle = css`\n &::-webkit-input-placeholder {\n ${placeholderColor};\n }\n\n &::-moz-placeholder {\n ${placeholderColor};\n }\n\n &:-ms-input-placeholder {\n ${placeholderColor};\n }\n`;\n\nconst inputSizeStyle = (props) => {\n const data = props.theme.text[props.size];\n\n if (!data) {\n return css`\n font-size: ${props.size};\n `;\n }\n\n return css`\n font-size: ${data.size};\n line-height: ${data.height};\n `;\n};\n\nexport const inputStyle = css`\n box-sizing: border-box;\n ${(props) =>\n `font-size: ${\n props.theme.global.input.font.size\n ? props.theme.text[props.theme.global.input.font.size]?.size ||\n props.theme.global.input.font.size\n : 'inherit'\n };`}\n font-family: inherit;\n border: none;\n -webkit-appearance: none;\n background: transparent;\n color: inherit;\n width: 100%;\n ${(props) =>\n props.theme.global.input.font.height &&\n `line-height: ${props.theme.global.input.font.height};`}\n ${(props) =>\n props.theme.global.input.padding &&\n typeof props.theme.global.input.padding !== 'object'\n ? // On a breaking change release, this condition could be removed and\n // just the edgeStyle could remain. Currently, this is needed for\n // backwards compatibility since we are placing the calculation in\n // base.js\n `padding: ${\n parseMetricToNum(\n props.theme.global.edgeSize[props.theme.global.input.padding] ||\n props.theme.global.input.padding,\n ) - parseMetricToNum(props.theme.global.control.border.width)\n }px;`\n : edgeStyle(\n 'padding',\n props.theme.global.input.padding,\n props.responsive,\n props.theme.box.responsiveBreakpoint,\n props.theme,\n )}\n ${(props) =>\n // for backwards compatibility, check if props.theme.global.input.weight\n (props.theme.global.input.weight || props.theme.global.input.font.weight) &&\n css`\n font-weight: ${props.theme.global.input.weight ||\n props.theme.global.input.font.weight};\n `} margin: 0;\n ${(props) => props.size && inputSizeStyle(props)}\n &:focus {\n ${(props) => (!props.plain || props.focusIndicator) && focusStyle()};\n }\n ${controlBorderStyle}\n ${placeholderStyle}\n\n ::-webkit-search-decoration {\n -webkit-appearance: none;\n }\n\n &::-moz-focus-inner {\n border: none;\n outline: none;\n }\n\n &:-moz-placeholder, // FF 18-\n &::-moz-placeholder {\n // FF 19+\n opacity: 1;\n }\n\n ${(props) => props.theme.global.input.extend}\n`;\n\nexport const overflowStyle = (overflowProp) => {\n if (typeof overflowProp === 'string') {\n return css`\n overflow: ${overflowProp};\n `;\n }\n\n return css`\n ${overflowProp.horizontal &&\n `overflow-x: ${overflowProp.horizontal};`} ${overflowProp.vertical &&\n `overflow-y: ${overflowProp.vertical};`};\n `;\n};\n\nconst ALIGN_SELF_MAP = {\n center: 'center',\n end: 'flex-end',\n start: 'flex-start',\n stretch: 'stretch',\n};\n\nexport const genericStyles = css`\n ${(props) =>\n props.alignSelf && `align-self: ${ALIGN_SELF_MAP[props.alignSelf]};`}\n ${(props) => props.gridArea && `grid-area: ${props.gridArea};`}\n ${(props) =>\n props.margin &&\n props.theme.global &&\n edgeStyle(\n 'margin',\n props.margin,\n props.responsive,\n props.theme.global.edgeSize.responsiveBreakpoint,\n props.theme,\n )}\n`;\n\nexport const disabledStyle = (componentStyle) => css`\n opacity: ${(props) =>\n componentStyle || props.theme.global.control.disabled.opacity};\n cursor: default;\n`;\n\nexport const sizeStyle = (name, value, theme) => css`\n ${name}: ${theme.global.size[value] || value};\n`;\n\nexport const plainInputStyle = css`\n outline: none;\n border: none;\n`;\n\n// CSS for this sub-object in the theme\nexport const kindPartStyles = (obj, theme, colorValue) => {\n const styles = [];\n if (obj.padding || obj.pad) {\n // button uses `padding` but other components use Grommet `pad`\n const pad = obj.padding || obj.pad;\n if (pad.vertical || pad.horizontal)\n styles.push(\n `padding: ${theme.global.edgeSize[pad.vertical] || pad.vertical || 0} ${\n theme.global.edgeSize[pad.horizontal] || pad.horizontal || 0\n };`,\n );\n else styles.push(`padding: ${theme.global.edgeSize[pad] || pad || 0};`);\n }\n if (obj.background)\n styles.push(\n backgroundStyle(\n colorValue || obj.background,\n theme,\n obj.color ||\n (Object.prototype.hasOwnProperty.call(obj, 'color') &&\n obj.color === undefined\n ? false\n : undefined),\n ),\n );\n else if (obj.color)\n styles.push(`color: ${normalizeColor(obj.color, theme)};`);\n if (obj.border) {\n if (obj.border.width)\n styles.push(css`\n border-style: solid;\n border-width: ${obj.border.width};\n `);\n if (obj.border.color)\n styles.push(css`\n border-color: ${normalizeColor(\n (!obj.background && colorValue) || obj.border.color || 'border',\n theme,\n )};\n `);\n if (obj.border.radius)\n styles.push(css`\n border-radius: ${obj.border.radius};\n `);\n } else if (obj.border === false) styles.push('border: none;');\n if (colorValue && !obj.border && !obj.background)\n styles.push(`color: ${normalizeColor(colorValue, theme)};`);\n if (obj.font) {\n if (obj.font.size) {\n styles.push(\n `font-size: ${theme.text[obj.font.size].size || obj.font.size};`,\n );\n }\n if (obj.font.height) {\n styles.push(`line-height: ${obj.font.height};`);\n }\n if (obj.font.weight) {\n styles.push(`font-weight: ${obj.font.weight};`);\n }\n }\n if (obj.opacity) {\n const opacity =\n obj.opacity === true\n ? theme.global.opacity.medium\n : theme.global.opacity[obj.opacity] || obj.opacity;\n styles.push(`opacity: ${opacity};`);\n }\n if (obj.extend) styles.push(obj.extend);\n return styles;\n};\n\nconst ROUND_MAP = {\n full: '100%',\n};\n\nexport const roundStyle = (data, responsive, theme) => {\n const breakpoint = getBreakpointStyle(theme, theme.box.responsiveBreakpoint);\n const styles = [];\n if (typeof data === 'object') {\n const size =\n ROUND_MAP[data.size] ||\n theme.global.edgeSize[data.size || 'medium'] ||\n data.size;\n const responsiveSize =\n responsive &&\n breakpoint &&\n breakpoint.edgeSize[data.size] &&\n (breakpoint.edgeSize[data.size] || data.size);\n if (data.corner === 'top') {\n styles.push(css`\n border-top-left-radius: ${size};\n border-top-right-radius: ${size};\n `);\n if (responsiveSize) {\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n border-top-left-radius: ${responsiveSize};\n border-top-right-radius: ${responsiveSize};\n `,\n ),\n );\n }\n } else if (data.corner === 'bottom') {\n styles.push(css`\n border-bottom-left-radius: ${size};\n border-bottom-right-radius: ${size};\n `);\n if (responsiveSize) {\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n border-bottom-left-radius: ${responsiveSize};\n border-bottom-right-radius: ${responsiveSize};\n `,\n ),\n );\n }\n } else if (data.corner === 'left') {\n styles.push(css`\n border-top-left-radius: ${size};\n border-bottom-left-radius: ${size};\n `);\n if (responsiveSize) {\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n border-top-left-radius: ${responsiveSize};\n border-bottom-left-radius: ${responsiveSize};\n `,\n ),\n );\n }\n } else if (data.corner === 'right') {\n styles.push(css`\n border-top-right-radius: ${size};\n border-bottom-right-radius: ${size};\n `);\n if (responsiveSize) {\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n border-top-right-radius: ${responsiveSize};\n border-bottom-right-radius: ${responsiveSize};\n `,\n ),\n );\n }\n } else if (data.corner) {\n styles.push(css`\n border-${data.corner}-radius: ${size};\n `);\n if (responsiveSize) {\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n border-${data.corner}-radius: ${responsiveSize};\n `,\n ),\n );\n }\n } else {\n styles.push(css`\n border-radius: ${size};\n `);\n if (responsiveSize) {\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n border-radius: ${responsiveSize};\n `,\n ),\n );\n }\n }\n } else {\n const size = data === true ? 'medium' : data;\n styles.push(css`\n border-radius: ${ROUND_MAP[size] || theme.global.edgeSize[size] || size};\n `);\n const responsiveSize = breakpoint && breakpoint.edgeSize[size];\n if (responsiveSize) {\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n border-radius: ${responsiveSize};\n `,\n ),\n );\n }\n }\n return styles;\n};\n\nconst TEXT_ALIGN_MAP = {\n center: 'center',\n end: 'right',\n justify: 'justify',\n start: 'left',\n};\n\nexport const textAlignStyle = css`\n text-align: ${(props) => TEXT_ALIGN_MAP[props.textAlign]};\n`;\n\nconst ALIGN_ITEMS_MAP = {\n baseline: 'baseline',\n center: 'center',\n end: 'flex-end',\n start: 'flex-start',\n stretch: 'stretch',\n};\n\nexport const alignStyle = css`\n align-items: ${(props) => ALIGN_ITEMS_MAP[props.align] ?? props.align};\n`;\n\nconst ALIGN_CONTENT_MAP = {\n around: 'space-around',\n baseline: 'baseline',\n between: 'space-between',\n center: 'center',\n evenly: 'space-evenly',\n end: 'flex-end',\n start: 'flex-start',\n stretch: 'stretch',\n};\n\nexport const alignContentStyle = css`\n align-content: ${(props) =>\n ALIGN_CONTENT_MAP[props.alignContent] ?? props.alignContent};\n`;\nconst getSize = (theme, size) => theme.global.size[size] || size;\n\nconst widthObjectStyle = (width, theme) => {\n const result = [];\n if (width.max)\n result.push(\n css`\n max-width: ${getSize(theme, width.max)};\n `,\n );\n if (width.min)\n result.push(\n css`\n min-width: ${getSize(theme, width.min)};\n `,\n );\n if (width.width)\n result.push(\n css`\n width: ${getSize(theme, width.width)};\n `,\n );\n return result;\n};\n\nconst widthStringStyle = (width, theme) =>\n css`\n width: ${getSize(theme, width)};\n `;\n\nexport const widthStyle = (width, theme) =>\n typeof width === 'object'\n ? widthObjectStyle(width, theme)\n : widthStringStyle(width, theme);\n\nconst heightObjectStyle = (height, theme) => {\n const result = [];\n if (height.max)\n result.push(\n css`\n max-height: ${getSize(theme, height.max)};\n `,\n );\n if (height.min)\n result.push(\n css`\n min-height: ${getSize(theme, height.min)};\n `,\n );\n // backwards compatibile\n if (height.width)\n result.push(\n css`\n height: ${getSize(theme, height.height)};\n `,\n );\n if (height.height)\n result.push(\n css`\n height: ${getSize(theme, height.height)};\n `,\n );\n return result;\n};\n\nconst heightStringStyle = (height, theme) =>\n css`\n height: ${getSize(theme, height)};\n `;\n\nexport const heightStyle = (height, theme) =>\n typeof height === 'object'\n ? heightObjectStyle(height, theme)\n : heightStringStyle(height, theme);\n","export const isObject = item =>\n item && typeof item === 'object' && !Array.isArray(item);\n\nexport const deepFreeze = obj => {\n Object.keys(obj).forEach(\n key => key && isObject(obj[key]) && Object.freeze(obj[key]),\n );\n return Object.freeze(obj);\n};\n\nexport const deepMerge = (target, ...sources) => {\n if (!sources.length) {\n return target;\n }\n // making sure to not change target (immutable)\n const output = { ...target };\n sources.forEach(source => {\n if (isObject(source)) {\n Object.keys(source).forEach(key => {\n if (isObject(source[key])) {\n if (!output[key]) {\n output[key] = { ...source[key] };\n } else {\n output[key] = deepMerge(output[key], source[key]);\n }\n } else {\n output[key] = source[key];\n }\n });\n }\n });\n return output;\n};\n\nexport const removeUndefined = obj => {\n const result = {};\n Object.keys(obj).forEach(key => {\n if (obj[key] !== undefined) {\n result[key] = obj[key];\n }\n });\n return result;\n};\n","export { Stack } from './Stack';\n","export { ResponsiveContext } from './ResponsiveContext';\n","export { CheckBox } from './CheckBox';\n","import React from 'react';\n\nexport const TableContext = React.createContext(undefined);\n","export { TextInput } from './TextInput';\n","// This file contains helper functions for DataTable, to keep the component\n// files simpler.\n\nexport const set = (obj, path, value) => {\n let parts = path;\n if (Object(obj) !== obj) return obj;\n if (!Array.isArray(path)) parts = path.toString().match(/[^.[\\]]+/g) || [];\n\n parts.slice(0, -1).reduce((acc, item, index) => {\n if (Object(acc[item]) === acc[item]) {\n return acc[item];\n }\n acc[item] = Math.abs(parts[index + 1]) > 0 === +parts[index + 1] ? [] : {};\n return acc[item];\n }, obj)[parts[parts.length - 1]] = value;\n\n return obj;\n};\n\n// get the value for the property in the datum object\nexport const datumValue = (datum, property) => {\n if (!property) return undefined;\n const parts = property.split('.');\n if (parts.length === 1) {\n return datum[property];\n }\n if (!datum[parts[0]]) {\n return undefined;\n }\n return datumValue(datum[parts[0]], parts.slice(1).join('.'));\n};\n\n// get the primary property name\nexport const normalizePrimaryProperty = (columns, primaryKey) => {\n let result;\n columns.forEach((column) => {\n // remember the first key property\n if (column.primary && !result) {\n result = column.property;\n }\n });\n if (!result) {\n if (primaryKey === false) result = undefined;\n else if (primaryKey) result = primaryKey;\n else if (columns.length > 0) result = columns[0].property;\n }\n return result;\n};\n\n// initialize filters with empty strings\nexport const initializeFilters = (columns) => {\n const result = {};\n columns.forEach((column) => {\n if (column.search) {\n result[column.property] = '';\n }\n });\n return result;\n};\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Escaping\nconst escapeRegExp = (input) => input.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n\n// filter data based on filters then sort\nexport const filterAndSortData = (data, filters, onSearch, sort) => {\n let result = data;\n if (!onSearch) {\n const regexps = {};\n Object.keys(filters)\n .filter((n) => filters[n])\n .forEach((n) => {\n regexps[n] = new RegExp(escapeRegExp(filters[n]), 'i');\n });\n if (Object.keys(regexps).length > 0) {\n result = data.filter(\n (datum) =>\n !Object.keys(regexps).some(\n (property) => !regexps[property].test(datumValue(datum, property)),\n ),\n );\n }\n }\n\n if (sort && !sort.external) {\n const { property, direction } = sort;\n result = result === data ? [...data] : result; // don't sort caller's data\n const sortAsc = direction === 'asc';\n const before = sortAsc ? 1 : -1;\n const after = sortAsc ? -1 : 1;\n result.sort((d1, d2) => {\n const d1Val = datumValue(d1, property);\n const d2Val = datumValue(d2, property);\n if (typeof d1Val === 'string' && typeof d2Val === 'string') {\n const sortResult = d1Val.localeCompare(d2Val, undefined, {\n sensitivity: 'base',\n });\n return sortAsc ? sortResult : -sortResult;\n }\n if (d1Val > d2Val) return before;\n if (d1Val < d2Val) return after;\n return 0;\n });\n }\n\n return result;\n};\n\n// aggregate reducers\nconst sumReducer = (accumulated, next) => accumulated + next;\nconst minReducer = (accumulated, next) =>\n accumulated === undefined ? next : Math.min(accumulated, next);\nconst maxReducer = (accumulated, next) =>\n accumulated === undefined ? next : Math.max(accumulated, next);\n\nconst reducers = {\n max: maxReducer,\n min: minReducer,\n sum: sumReducer,\n};\n\n// aggregate reducers init values\nconst reducersInitValues = {\n min: Number.MAX_VALUE,\n max: Number.MIN_VALUE,\n sum: 0,\n};\n\n// aggregate a single column\nconst aggregateColumn = (column, data) => {\n let value;\n if (column.aggregate === 'avg') {\n value = data.map((d) => datumValue(d, column.property)).reduce(sumReducer);\n value /= data.length;\n } else {\n value = data\n .map((d) => datumValue(d, column.property))\n .reduce(reducers[column.aggregate], reducersInitValues[column.aggregate]);\n }\n return value;\n};\n\n// aggregate all columns that can\nconst aggregate = (columns, data) => {\n let result = {};\n columns.forEach((column) => {\n if (column.aggregate) {\n const value = aggregateColumn(column, data);\n result = set(result, column.property, value);\n }\n });\n\n return result;\n};\n\n// build the values for the footer cells\nexport const buildFooterValues = (columns, data) => {\n const aggregateValues = aggregate(columns, data);\n\n let result = {};\n columns.forEach((column) => {\n if (column.footer) {\n if (column.footer.aggregate) {\n const value = datumValue(aggregateValues, column.property);\n result = set(result, column.property, value);\n } else {\n result = set(result, column.property, column.footer);\n }\n }\n });\n\n return result;\n};\n\n// looks at the groupBy property of each data object and returns an\n// array with one item for each unique value of that property.\nexport const buildGroups = (columns, data, groupBy, primaryProperty) => {\n let result;\n if (groupBy?.property || typeof groupBy === 'string') {\n result = [];\n const groupMap = {};\n data.forEach((datum) => {\n const key = datumValue(datum, primaryProperty);\n const isGroup = key && groupBy.expandable?.includes(key);\n\n const groupByProperty = groupBy.property ? groupBy.property : groupBy;\n const groupValue = isGroup ? key : datumValue(datum, groupByProperty);\n if (!groupMap[groupValue]) {\n const group = {\n data: [],\n datum: isGroup ? datum : {},\n key: groupValue,\n };\n group.datum[groupByProperty] = groupValue;\n result.push(group);\n groupMap[groupValue] = group;\n }\n if (!isGroup) groupMap[groupValue].data.push(datum);\n });\n\n // include any aggregate column values across the data for each group\n // If expandable was specified we let the onUpdate callback do it since\n // we may not have access to all the data to aggregate it.\n if (!groupBy.expandable) {\n columns.forEach((column) => {\n if (column.aggregate) {\n result.forEach((group) => {\n const { datum } = group;\n datum[column.property] = aggregateColumn(column, group.data);\n });\n }\n });\n }\n } else if (groupBy?.expandable) {\n result = groupBy.expandable.map((key) => ({ data: [], datum: {}, key }));\n }\n\n return result;\n};\n\n// build group expanded state, expanding any in groupBy.expand\nexport const buildGroupState = (groups, groupBy) => {\n const result = {};\n if (groups) {\n groups.forEach(({ key }) => {\n if (key) result[key] = { expanded: false };\n });\n }\n if (groupBy && groupBy.expand) {\n groupBy.expand.forEach((value) => {\n result[value] = { expanded: true };\n });\n }\n return result;\n};\n\nexport const normalizeBackgroundColor = (theme) => {\n const { background } = theme; // context background\n if (typeof background === 'string') return background;\n if (background.light && background.dark) return background;\n if (background.color) return background.color;\n return undefined;\n};\n\nexport const normalizeRowProp = (name, rowProp, prop) => {\n if (rowProp && rowProp[name]) return rowProp[name];\n return prop;\n};\n\nconst tableContextNames = ['header', 'body', 'footer'];\nconst cellPropertyNames = ['background', 'border', 'pad'];\n\n// Convert property specific cell props to context specific cell props.\n// For example, background={{ header: { background } }}\n// will become cellProps.header.background\nexport const normalizeCellProps = (props, theme) => {\n const result = {};\n tableContextNames.forEach((context) => {\n result[context] = { pinned: {} };\n cellPropertyNames.forEach((propName) => {\n let value =\n props?.[propName]?.[context] ||\n // if the propName is used without context, it applies to all contexts\n (tableContextNames.every((n) => !props?.[propName]?.[n]) &&\n props?.[propName]) ||\n theme?.dataTable?.[context]?.[propName] ||\n theme?.table?.[context]?.[propName];\n if (value !== undefined) result[context][propName] = value;\n\n // pinned case\n value =\n props?.[propName]?.pinned?.[context] ||\n (context === 'body' &&\n tableContextNames.every((n) => !props?.[propName]?.pinned?.[n]) &&\n props?.[propName]?.pinned) ||\n theme?.dataTable?.pinned?.[context]?.[propName];\n if (value !== undefined) {\n if (\n propName === 'background' &&\n theme.background &&\n value.opacity &&\n !value.color\n )\n // theme context has an active background color but the\n // theme doesn't set an explicit color, repeat the context\n // background explicitly\n value.color = normalizeBackgroundColor(theme);\n\n if (context === 'body')\n // in case we have pinned columns, store the pinned stuff in\n // cellProps.body.pinned\n result[context].pinned[propName] = value;\n else if (props.pin === true || props.pin === context)\n // this context is pinned, use the pinned value directly\n result[context][propName] = value;\n }\n });\n });\n return result;\n};\n\nexport const normalizeRowCellProps = (\n rowProps,\n cellProps,\n primaryKey,\n index,\n) => {\n const result = { pinned: {} };\n ['background', 'border', 'pad'].forEach((propName) => {\n const row = primaryKey && rowProps && rowProps?.[primaryKey]?.[propName];\n const cell = cellProps[propName];\n let value =\n (row && (Array.isArray(row) ? row[index % row.length] : row)) ||\n (Array.isArray(cell) ? cell[index % cell.length] : cell);\n if (value !== undefined) result[propName] = value;\n\n const rowPin = rowProps && rowProps.pinned && rowProps.pinned[propName];\n const cellPin = cellProps.pinned[propName];\n value =\n (rowPin &&\n (Array.isArray(rowPin) ? rowPin[index % rowPin.length] : rowPin)) ||\n (Array.isArray(cellPin) ? cellPin[index % cellPin.length] : cellPin);\n if (value !== undefined) result.pinned[propName] = value;\n });\n return result;\n};\n","export { Heading } from './Heading';\n","export { AnnounceContext } from './AnnounceContext';\n","export * from './AnnounceContext';\nexport * from './ContainerTargetContext';\nexport * from './ResponsiveContext';\nexport * from './RootsContext';\nexport * from './ThemeContext';\n","export { Grid } from './Grid';\n","export { DropButton } from './DropButton';\n","import { css, keyframes } from 'styled-components';\n\nconst PULSE_SIZES = {\n xsmall: 1.001,\n small: 1.01,\n medium: 1.1,\n large: 1.5,\n xlarge: 2,\n};\nconst SLIDE_SIZES = {\n xsmall: 1,\n small: 5,\n medium: 10,\n large: 50,\n xlarge: 200,\n};\nconst JIGGLE_SIZES = {\n xsmall: 0.1,\n small: 1,\n medium: 5,\n large: 400,\n xlarge: 1000,\n};\nconst ZOOM_SIZES = {\n xsmall: 0.001,\n small: 0.01,\n medium: 0.05,\n large: 0.1,\n xlarge: 0.5,\n};\nexport const animationBounds = (type, size = 'medium') => {\n if (type === 'draw') {\n return ['', `stroke-dashoffset: 0`];\n }\n if (type === 'fadeIn') {\n return ['opacity: 0;', 'opacity: 1;'];\n }\n if (type === 'fadeOut') {\n return ['opacity: 1;', 'opacity: 0;'];\n }\n if (type === 'jiggle') {\n const deg = JIGGLE_SIZES[size];\n return [`transform: rotate(-${deg}deg);`, `transform: rotate(${deg}deg);`];\n }\n if (type === 'pulse') {\n return ['transform: scale(1);', `transform: scale(${PULSE_SIZES[size]})`];\n }\n if (type === 'rotateRight') {\n return [`transform: rotate(0deg);`, `transform: rotate(359deg);`];\n }\n if (type === 'rotateLeft') {\n return [`transform: rotate(0deg);`, `transform: rotate(-359deg);`];\n }\n if (type === 'flipIn') {\n return ['transform: rotateY(90deg);', 'transform: rotateY(0);'];\n }\n if (type === 'flipOut') {\n return ['transform: rotateY(0);', 'transform: rotateY(90deg);'];\n }\n if (type === 'slideDown') {\n return [\n `transform: translateY(-${SLIDE_SIZES[size]}%);`,\n 'transform: none;',\n ];\n }\n if (type === 'slideLeft') {\n return [\n `transform: translateX(${SLIDE_SIZES[size]}%);`,\n 'transform: none;',\n ];\n }\n if (type === 'slideRight') {\n return [\n `transform: translateX(-${SLIDE_SIZES[size]}%);`,\n 'transform: none;',\n ];\n }\n if (type === 'slideUp') {\n return [\n `transform: translateY(${SLIDE_SIZES[size]}%);`,\n 'transform: none;',\n ];\n }\n if (type === 'zoomIn') {\n return [`transform: scale(${1 - ZOOM_SIZES[size]});`, 'transform: none;'];\n }\n if (type === 'zoomOut') {\n return [`transform: scale(${1 + ZOOM_SIZES[size]});`, 'transform: none;'];\n }\n return [];\n};\n\nexport const normalizeTiming = (time, defaultTiming) =>\n typeof time === 'number' ? `${time / 1000.0}s` : time || defaultTiming;\n\nexport const animationEnding = (type) => {\n if (type === 'draw') {\n return 'linear forwards';\n }\n if (type === 'jiggle') {\n return 'alternate infinite';\n }\n if (type === 'pulse') {\n return 'alternate infinite';\n }\n if (type === 'rotateRight' || type === 'rotateLeft') {\n return 'infinite linear';\n }\n return 'forwards';\n};\n\nexport const animationObjectStyle = (animation, theme, themeObj) => {\n const bounds = animationBounds(animation.type, animation.size);\n const animationTheme =\n (themeObj && themeObj.animation) || theme.global.animation;\n\n if (bounds) {\n const animationTransition = css`\n from {\n ${bounds[0]};\n }\n to {\n ${bounds[1]};\n }\n `;\n\n const defaultDuration = () =>\n normalizeTiming(\n animationTheme[animation.type]\n ? animationTheme[animation.type].duration\n : animation.duration,\n animationTheme.duration,\n );\n\n return css`\n ${keyframes`${animationTransition}`}\n ${normalizeTiming(animation.duration, defaultDuration())}\n ${normalizeTiming(animation.delay, '0s')}\n ${animationEnding(animation.type)}\n `;\n }\n return '';\n};\n","import { css } from 'styled-components';\n\nimport { colorIsDark, getRGBA, normalizeColor } from './colors';\n\n// evalStyle() converts a styled-components item into a string\nconst evalStyle = (arg, theme) => {\n if (arg && Array.isArray(arg) && typeof arg[0] === 'function') {\n return arg[0]({ theme });\n }\n return arg;\n};\n\nexport const normalizeBackground = (background, theme) => {\n // If the background has a light or dark object, use that\n let result = background;\n if (background) {\n if (theme.dark && background.dark && typeof background.dark !== 'boolean') {\n result = background.dark;\n } else if (\n !theme.dark &&\n background.light &&\n typeof background.light !== 'boolean'\n ) {\n result = background.light;\n }\n result = evalStyle(result, theme);\n }\n return result;\n};\n\nexport const backgroundIsDark = (backgroundArg, theme) => {\n const background = normalizeBackground(backgroundArg, theme);\n let result;\n if (background) {\n if (typeof background === 'object') {\n const { color, dark, opacity } = background;\n if (typeof dark === 'boolean') {\n result = dark;\n } else if (\n color &&\n // weak opacity means we keep the existing darkness\n (!opacity || opacity !== 'weak')\n ) {\n const backgroundColor = normalizeColor(background.color, theme);\n if (backgroundColor) {\n result = colorIsDark(backgroundColor);\n }\n }\n } else {\n const color = normalizeColor(background, theme);\n if (color) {\n result = colorIsDark(color);\n }\n }\n }\n return result;\n};\n\nconst darkContext = (backgroundColor) => {\n const isDark = colorIsDark(backgroundColor);\n if (isDark === undefined) return undefined;\n return isDark ? 'dark' : 'light';\n};\n\n// Returns an array of two CSS colors: [background, color]\n// Either could be undefined.\n// background could be a CSS gradient, like \"linear-gradient(...)\"\nexport const backgroundAndTextColors = (backgroundArg, textArg, theme) => {\n if (!backgroundArg) return [undefined, textArg];\n\n const { global } = theme;\n const background = normalizeBackground(backgroundArg, theme);\n const text = textArg || global.colors.text;\n\n let backgroundColor;\n let textColor;\n if (typeof background === 'object') {\n if (background.dark === false) {\n textColor = text.light || text;\n } else if (background.dark) {\n textColor = text.dark || text;\n }\n\n if (background.color) {\n const color = normalizeColor(background.color, theme, background.dark);\n const opacity =\n background.opacity === true\n ? global.opacity.medium\n : global.opacity[background.opacity] || background.opacity;\n backgroundColor = getRGBA(color, opacity) || color;\n\n // If we don't have a textColor already, and we aren't too translucent,\n // set the textColor to have the best contrast against the background\n // color.\n if (!textColor && (opacity === undefined || opacity > 0.3)) {\n const shade = darkContext(backgroundColor, theme);\n textColor = normalizeColor((shade && text[shade]) || text, theme);\n }\n }\n } else {\n backgroundColor = normalizeColor(background, theme);\n const shade = darkContext(backgroundColor, theme);\n if (shade) {\n textColor = normalizeColor(text[shade] || text, theme, shade === 'dark');\n } else {\n // If we can't determine the shade, we assume this isn't a simple color.\n // It could be a gradient. backgroundStyle() will take care of that case.\n if (backgroundColor !== 'transparent') backgroundColor = undefined;\n if (text) textColor = normalizeColor(text, theme);\n }\n }\n // if textArg is false, we don't want the textColor, used for Button hover\n if (textArg === false) textColor = undefined;\n\n return [backgroundColor, textColor];\n};\n\nexport const backgroundStyle = (backgroundArg, theme, textColorArg) => {\n // for Grommet component, if the background isn't defined, don't set it\n if (backgroundArg === undefined) return undefined;\n\n const background = normalizeBackground(backgroundArg, theme);\n\n if (\n typeof background === 'string' &&\n background.lastIndexOf('url', 0) === 0\n ) {\n return css`\n background: ${background} no-repeat center center;\n background-size: cover;\n `;\n }\n\n const [backgroundColor, textColor] = backgroundAndTextColors(\n background,\n textColorArg,\n theme,\n );\n\n if (background.image) {\n const backgroundStyles = `\n ${backgroundColor ? `background-color: ${backgroundColor};` : ''}\n background-image: ${background.image};\n background-repeat: ${background.repeat || 'no-repeat'};\n background-position: ${background.position || 'center center'};\n background-size: ${background.size || 'cover'};\n `;\n\n // allow both background color and image, in case the image doesn't fill\n // when image and opacity are used together, we need to use pseudo :before\n // to ensure that only image and background color are affected by opacity\n // but not the container contents\n return css`\n ${textColor ? `color: ${textColor};` : ''}\n ${!background.opacity\n ? backgroundStyles\n : `position: relative;\n z-index: 0;\n &:before {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n z-index: -1;\n ${backgroundStyles}\n opacity: ${\n background.opacity === true\n ? theme.global.opacity.medium\n : theme.global.opacity[background.opacity] || background.opacity\n };\n }`}\n `;\n }\n\n if (backgroundColor) {\n return css`\n background-color: ${backgroundColor};\n ${textColor ? `color: ${textColor};` : ''}\n `;\n }\n\n if (typeof background === 'string')\n // This case takes care of gradients\n // or theme colors that use CSS names like 'crimson' that we don't parse\n return css`\n background: ${normalizeColor(background, theme)};\n `;\n\n return undefined;\n};\n\nexport const activeStyle = css`\n ${(props) =>\n backgroundStyle(\n normalizeColor(props.theme.global.active.background, props.theme),\n props.theme,\n props.theme.global.active.color,\n )}\n`;\n\nexport const selectedStyle = css`\n ${(props) =>\n backgroundStyle(\n normalizeColor(props.theme.global.selected.background, props.theme),\n props.theme,\n props.theme.global.selected.color,\n )}\n`;\n\nexport const getHoverIndicatorStyle = (hoverIndicator, theme) => {\n let background;\n let elevation;\n if (hoverIndicator === true || hoverIndicator === 'background') {\n ({ background } = theme.global.hover);\n } else if (typeof hoverIndicator === 'object') {\n if (hoverIndicator.elevation || hoverIndicator.background)\n ({ elevation, background } = hoverIndicator);\n else background = hoverIndicator;\n } else {\n background = hoverIndicator;\n }\n return css`\n ${backgroundStyle(background, theme, theme.global.hover.color)}\n ${elevation &&\n `box-shadow: ${\n theme.global.elevation[theme.dark ? 'dark' : 'light'][elevation]\n };`}\n `;\n};\n","import { useEffect, useRef } from 'react';\nimport { useLayoutEffect } from './use-isomorphic-layout-effect';\n\nconst updateRef = (ref, innerRef) => {\n if (!ref) return;\n if (typeof ref === 'function') {\n ref(innerRef.current);\n } else {\n // eslint-disable-next-line no-param-reassign\n ref.current = innerRef.current;\n }\n};\n\n// https://medium.com/the-non-traditional-developer/how-to-use-the-forwarded-ref-in-react-1fb108f4e6af\nexport const useForwardedRef = (ref) => {\n const innerRef = useRef(null);\n updateRef(ref, innerRef);\n useLayoutEffect(() => updateRef(ref, innerRef));\n useEffect(() => updateRef(ref, innerRef));\n return innerRef;\n};\n","export { Tip } from './Tip';\n","import React from 'react';\n\n// When toggling aria-hidden values, we only want to affect elements\n// in the DOM that come from Grommet, so we track those elements in this\n// context value. See FocusedContainer.js\nexport const RootsContext = React.createContext([]);\n","export { ContainerTargetContext } from './ContainerTargetContext';\n","// Utility functions for the Calendar.\n// Just what's needed to avoid having to include a dependency like momentjs.\n\nconst DAY_MILLISECONDS = 24 * 60 * 60 * 1000;\n\nexport const addDays = (date, days) => {\n const result = new Date(date.getTime() + DAY_MILLISECONDS * days);\n // Deal with crossing the daylight savings time boundary,\n // where adding a day's worth when the time is midnight results in\n // being a day off.\n let hourDelta = result.getHours() - date.getHours();\n // At this point, hourDelta is typically 0 (normal day),\n // +23 (November daylight saving), or -23 (March Daylight saving)\n // depending on which side of the switch we are on.\n // Convert so that hourDelta is either +1 or -1.\n if (hourDelta === 23) {\n hourDelta -= 24;\n } else if (hourDelta === -23) {\n hourDelta += 24;\n }\n result.setHours(result.getHours() - hourDelta);\n return result;\n};\n\nexport const subtractDays = (date, days) => addDays(date, -days);\n\nexport const addMonths = (date, months) => {\n const result = new Date(date);\n const years = Math.floor((date.getMonth() + months) / 12);\n result.setFullYear(date.getFullYear() + years);\n const targetMonth = (date.getMonth() + months) % 12;\n result.setMonth(targetMonth < 0 ? 12 + targetMonth : targetMonth);\n return result;\n};\n\nexport const subtractMonths = (date, months) => addMonths(date, -months);\n\nexport const startOfMonth = (date) => {\n const result = new Date(date);\n result.setDate(1);\n return result;\n};\n\nexport const endOfMonth = (date) => {\n const result = addMonths(date, 1);\n result.setDate(0);\n return result;\n};\n\nexport const sameDay = (date1, date2) =>\n date1.getFullYear() === date2.getFullYear() &&\n date1.getMonth() === date2.getMonth() &&\n date1.getDate() === date2.getDate();\n\nexport const sameDayOrAfter = (date1, date2) =>\n date1.getFullYear() > date2.getFullYear() ||\n (date1.getFullYear() === date2.getFullYear() &&\n (date1.getMonth() > date2.getMonth() ||\n (date1.getMonth() === date2.getMonth() &&\n date1.getDate() >= date2.getDate())));\n\nexport const sameDayOrBefore = (date1, date2) =>\n date1.getFullYear() < date2.getFullYear() ||\n (date1.getFullYear() === date2.getFullYear() &&\n (date1.getMonth() < date2.getMonth() ||\n (date1.getMonth() === date2.getMonth() &&\n date1.getDate() <= date2.getDate())));\n\nexport const daysApart = (date1, date2) =>\n Math.floor((date1.getTime() - date2.getTime()) / DAY_MILLISECONDS);\n\nexport const formatToLocalYYYYMMDD = (date, normalize) => {\n const adjustedDate = new Date(date);\n const nextDate = normalize\n ? new Date(\n adjustedDate.getTime() - adjustedDate.getTimezoneOffset() * 60000,\n )\n : new Date(adjustedDate.getTime());\n return nextDate.toISOString().split('T')[0];\n};\n// betweenDates takes an array of two elements and checks if the\n// supplied date lies between them, inclusive.\n// returns 2 if exact match to one end, 1 if between, undefined otherwise\nexport const betweenDates = (date, dates) => {\n let result;\n if (dates) {\n const [from, to] = dates.map((d) => (d ? new Date(d) : undefined));\n if ((from && sameDay(date, from)) || (to && sameDay(date, to))) {\n result = 2;\n } else if (\n from &&\n sameDayOrAfter(date, from) &&\n to &&\n sameDayOrBefore(date, to)\n ) {\n result = 1;\n }\n } else {\n result = 1;\n }\n return result;\n};\n\n// withinDates takes an array of string dates or 2 element arrays and\n// checks whether the supplied date matches any string or is between\n// any dates in arrays.\n// returns 2 if exact match, 1 if between, undefined otherwise\nexport const withinDates = (date, dates) => {\n let result;\n if (dates) {\n if (Array.isArray(dates)) {\n dates.some((d) => {\n if (typeof d === 'string') {\n if (sameDay(date, new Date(d))) {\n result = 2;\n }\n } else {\n result = betweenDates(date, d);\n }\n return result;\n });\n } else if (sameDay(date, new Date(dates))) {\n result = 2;\n }\n }\n return result;\n};\n\nexport const getTimestamp = (date) =>\n /T.*/.test(date)\n ? new Date(date).toISOString().split('T')[1]\n : // for Calendar, explicitly mark that caller has provided\n // value with no timestamp\n false;\n\n// Checks if daylight savings is in effect for a timezone and date\n// Reference: https://stackoverflow.com/questions/11887934/how-to-check-if-dst-daylight-saving-time-is-in-effect-and-if-so-the-offset\nconst inDaylightSavings = (day) => {\n const jan = new Date(day.getFullYear(), 0, 1).getTimezoneOffset();\n const july = new Date(day.getFullYear(), 6, 1).getTimezoneOffset();\n return Math.max(jan, july) !== day.getTimezoneOffset();\n};\n\n// Adjust for differences between timestamp on value and\n// local timezone of user. Internal Calendar logic relies\n// on Javascript date contructor which translates the provided\n// date into the equivalent moment for the user's timezone, which\n// can create undesired results. The standardizes the input value\n// for internal calculations\n// Reference: https://www.ursahealth.com/new-insights/dates-and-timezones-in-javascript\n\n// If normalize is false just convert the value toISOString(),\n// valueOffset/localOffset will be 0.\nexport const normalizeForTimezone = (value, timestamp, normalize = true) => {\n let adjustedDate;\n let hourDelta = 0;\n let valueOffset = 0;\n let localOffset = 0;\n if (normalize) {\n if (timestamp && typeof timestamp === 'string') {\n hourDelta = parseInt(timestamp?.split(':')[0], 10);\n }\n const today = new Date();\n adjustedDate =\n value &&\n (Array.isArray(value) ? value : [value]).map((v) => {\n const day = new Date(v);\n // If one of the days either day or today is in daylight savings and the\n // other is not the timezoneOffset will be different. If they are both\n // in or out of daylight savings the timezoneOffset will be the same.\n if (\n day &&\n !inDaylightSavings(day) &&\n day.getTimezoneOffset() > today.getTimezoneOffset()\n ) {\n // today is in daylight savings but the selected day is not\n hourDelta -= 1;\n } else if (\n day &&\n inDaylightSavings(day) &&\n day.getTimezoneOffset() < today.getTimezoneOffset()\n ) {\n // the selected day is in daylight savings but today is not\n hourDelta += 1;\n }\n valueOffset = hourDelta === 0 ? 0 : hourDelta * 60 * 60 * 1000;\n localOffset = new Date().getTimezoneOffset() * 60 * 1000;\n return new Date(\n new Date(v).getTime() - valueOffset + localOffset,\n ).toISOString();\n });\n } else {\n adjustedDate =\n value &&\n (Array.isArray(value) ? value : [value]).map((v) =>\n new Date(new Date(v).getTime()).toISOString(),\n );\n }\n\n if (typeof value === 'string') [adjustedDate] = adjustedDate;\n\n return adjustedDate;\n};\n\n// format the date to align with date format caller passed in\nexport const formatDateToPropStructure = (date, timestamp, normalize) => {\n let adjustedDate;\n if (date) {\n if (timestamp) {\n adjustedDate = `${\n formatToLocalYYYYMMDD(date, normalize).split('T')[0]\n }T${timestamp}`;\n } else if (timestamp === false)\n [adjustedDate] = formatToLocalYYYYMMDD(date, normalize).split('T');\n else adjustedDate = date;\n }\n return adjustedDate;\n};\n\nexport const getFormattedDate = (\n nextDate,\n nextDates,\n normalize,\n range,\n timestamp,\n) => {\n let adjustedDate;\n let adjustedDates;\n\n if (\n nextDates &&\n Array.isArray(nextDates[0]) &&\n (!nextDates[0][0] || !nextDates[0][1]) &&\n range === true\n ) {\n // return string for backwards compatibility\n [adjustedDates] = nextDates[0].filter((d) => d);\n adjustedDates = formatDateToPropStructure(\n adjustedDates,\n timestamp,\n normalize,\n );\n } else if (nextDates) {\n adjustedDates = [\n [\n formatDateToPropStructure(nextDates[0][0], timestamp, normalize),\n formatDateToPropStructure(nextDates[0][1], timestamp, normalize),\n ],\n ];\n } else {\n adjustedDate = formatDateToPropStructure(nextDate, timestamp, normalize);\n }\n\n return adjustedDates || adjustedDate;\n};\n","export { Chart } from './Chart';\nexport { calcBounds, calcs, round } from './calcs';\n","export const points = [\n 'circle',\n 'diamond',\n 'square',\n 'star',\n 'triangle',\n 'triangleDown',\n];\n\nexport const heightYGranularity = {\n xxsmall: { fine: 2, medium: 2 },\n xsmall: { fine: 3, medium: 2 },\n small: { fine: 5, medium: 3 },\n medium: { fine: 7, medium: 5 },\n large: { fine: 9, medium: 5 },\n xlarge: { fine: 11, medium: 5 },\n};\n\nexport const halfPad = {\n xlarge: 'large',\n large: 'medium',\n medium: 'small',\n small: 'xsmall',\n xsmall: 'xxsmall',\n};\n\nexport const doublePad = {\n large: 'xlarge',\n medium: 'large',\n small: 'medium',\n xsmall: 'small',\n xxsmall: 'xsmall',\n};\n\nexport const createDateFormat = (firstValue, lastValue, full) => {\n let dateFormat;\n const startDate = new Date(firstValue);\n const endDate = new Date(lastValue);\n if (\n // check for valid dates, this is the fastest way\n !Number.isNaN(startDate.getTime()) &&\n !Number.isNaN(endDate.getTime())\n ) {\n const delta = Math.abs(endDate - startDate);\n let options;\n if (delta < 60000)\n // less than 1 minute\n options = full\n ? {\n hour: '2-digit',\n minute: '2-digit',\n second: '2-digit',\n day: undefined,\n }\n : { second: '2-digit', day: undefined };\n else if (delta < 3600000)\n // less than 1 hour\n options = full\n ? { hour: 'numeric', minute: '2-digit', day: undefined }\n : { minute: '2-digit', day: undefined };\n else if (delta < 86400000)\n // less than 1 day\n options = { hour: 'numeric' };\n else if (delta < 2592000000)\n // less than 30 days\n options = {\n month: full ? 'short' : 'numeric',\n day: 'numeric',\n };\n else if (delta < 31557600000)\n // less than 1 year\n options = { month: full ? 'long' : 'short' };\n // 1 year or more\n else options = { year: 'numeric' };\n if (options)\n dateFormat = new Intl.DateTimeFormat(undefined, options).format;\n }\n return dateFormat;\n};\n","import React, { useContext } from 'react';\nimport { ThemeContext } from 'styled-components';\nimport { Blank } from 'grommet-icons/icons/Blank';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { TableCell } from '../TableCell';\nimport { normalizeColor } from '../../utils';\n\n// ExpanderControl is separated from ExpanderCell to give TableCell a chance\n// to set the ThemeContext dark context.\nconst ExpanderControl = ({ context, expanded, onToggle, pad, ...rest }) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n\n let content;\n if (onToggle) {\n const ExpandIcon = theme.dataTable.icons[expanded ? 'contract' : 'expand'];\n content = ;\n } else {\n content = ;\n }\n\n const normalizedThemeProps = {\n ...theme.table[context],\n ...theme.dataTable[context],\n };\n delete normalizedThemeProps.background;\n delete normalizedThemeProps.border;\n delete normalizedThemeProps.pad;\n\n content = (\n \n {content}\n \n );\n\n if (onToggle) {\n content = (\n \n {content}\n \n );\n }\n\n return content;\n};\n\nconst ExpanderCell = ({ background, border, context, ...rest }) => (\n \n \n \n);\n\nExpanderCell.displayName = 'ExpanderCell';\n\nExpanderCell.defaultProps = {};\nObject.setPrototypeOf(ExpanderCell.defaultProps, defaultProps);\n\nexport { ExpanderCell };\n","export { Table } from './Table';\n","export { TableBody } from './TableBody';\n","export { TableHeader } from './TableHeader';\n","export { TableFooter } from './TableFooter';\n","import React, { memo, useContext } from 'react';\nimport { ThemeContext } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Text } from '../Text';\nimport { StyledDataTableCell } from './StyledDataTable';\nimport { datumValue } from './buildState';\nimport { TableContext } from '../Table/TableContext';\n\nconst Cell = memo(\n ({\n background,\n border,\n column: {\n align,\n pin: columnPin,\n plain,\n footer,\n property,\n render,\n verticalAlign,\n size,\n },\n datum,\n pad,\n pin: cellPin,\n pinnedOffset,\n primaryProperty,\n scope,\n }) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n const value = datumValue(datum, property);\n const context = useContext(TableContext);\n const renderContexts =\n context === 'body' ||\n (context === 'footer' && footer && footer.aggregate);\n\n let content;\n if (render && renderContexts) {\n content = render(datum);\n } else if (value !== undefined) {\n content = value;\n }\n\n if (typeof content === 'string' || typeof content === 'number') {\n const textProps =\n property === primaryProperty ? theme.dataTable.primary : {};\n content = {content};\n }\n\n const pin = [];\n if (cellPin) pin.push(...cellPin);\n if (columnPin) pin.push('left');\n\n return (\n \n {content}\n \n );\n },\n);\n\nCell.displayName = 'Cell';\n\nCell.defaultProps = {};\nObject.setPrototypeOf(Cell.defaultProps, defaultProps);\n\nexport { Cell };\n","export { Pagination } from './Pagination';\n","export { Layer } from './Layer';\n","export { Paragraph } from './Paragraph';\n","export const findScrollParent = (element, horizontal) => {\n let result;\n if (element) {\n let parent = element.parentNode;\n while (!result && parent && parent.getBoundingClientRect) {\n const rect = parent.getBoundingClientRect();\n // 10px is to account for borders and scrollbars in a lazy way\n if (horizontal) {\n if (rect.width && parent.scrollWidth > rect.width + 10) {\n result = parent;\n }\n } else if (rect.height && parent.scrollHeight > rect.height + 10) {\n result = parent;\n }\n parent = parent.parentNode;\n }\n // last scrollable element will be the document\n // if nothing else is scrollable in the page\n if (!result) {\n result = document;\n } else if (result.tagName.toLowerCase() === 'body') {\n result = document;\n }\n }\n return result;\n};\n\nconst documentTags = ['html', 'body'];\n\nexport const findScrollParents = (element, horizontal) => {\n const result = [];\n if (element) {\n let parent = element.parentNode;\n while (parent && parent.getBoundingClientRect) {\n const rect = parent.getBoundingClientRect();\n // 10px is to account for borders and scrollbars in a lazy way\n if (horizontal) {\n if (rect.width && parent.scrollWidth > rect.width + 10) {\n result.push(parent);\n }\n } else if (rect.height && parent.scrollHeight > rect.height + 10) {\n result.push(parent);\n }\n parent = parent.parentNode;\n }\n if (\n result.length &&\n documentTags.includes(result[0].tagName.toLowerCase())\n ) {\n result.length = 0;\n }\n // last scrollable element will be the document\n result.push(document);\n }\n return result;\n};\n\nexport const containsFocus = (node) => {\n let element = document.activeElement;\n while (element) {\n if (element === node) break;\n element = element.parentElement;\n }\n return !!element;\n};\n\n// Check if the element.tagName is an input, select or textarea\nexport const isFocusable = (element) => {\n const tagName = element.tagName.toLowerCase();\n return tagName === 'input' || tagName === 'select' || tagName === 'textarea';\n};\n\n// Get the first element that can receive focus\nexport const getFirstFocusableDescendant = (element) => {\n const children = element.getElementsByTagName('*');\n for (let i = 0; i < children.length; i += 1) {\n const child = children[i];\n if (isFocusable(child)) {\n return child;\n }\n }\n return undefined;\n};\n\nexport const shouldKeepFocus = () => {\n const element = document.activeElement;\n if (isFocusable(element)) return true;\n return !!getFirstFocusableDescendant(element);\n};\n\nexport const getNewContainer = (\n target = document.body,\n targetChildPosition,\n) => {\n // setup DOM\n const container = document.createElement('div');\n if (targetChildPosition === 'first') {\n // for SkipLinks\n target.prepend(container);\n } else {\n target.appendChild(container);\n }\n return container;\n};\n\nexport const setFocusWithoutScroll = (element) => {\n const x = window.scrollX;\n const y = window.scrollY;\n element.focus();\n window.scrollTo(x, y);\n};\n\nconst TABINDEX = 'tabindex';\nconst TABINDEX_STATE = 'data-g-tabindex';\n\nexport const makeNodeFocusable = (node) => {\n // do not touch aria live containers so that announcements work\n if (!node.hasAttribute('aria-live')) {\n node.removeAttribute('aria-hidden');\n // allow children to receive focus again\n const elements = node.getElementsByTagName('*');\n // only reset elements we've changed in makeNodeUnfocusable()\n Array.prototype.filter\n .call(elements || [], (element) => element.hasAttribute(TABINDEX_STATE))\n .forEach((element) => {\n const prior = element.getAttribute(TABINDEX_STATE);\n if (prior >= 0) {\n element.setAttribute(TABINDEX, element.getAttribute(TABINDEX_STATE));\n } else if (prior === 'none') {\n element.removeAttribute(TABINDEX);\n }\n element.removeAttribute(TABINDEX_STATE);\n });\n }\n};\n\nconst autoFocusingTags = /(a|area|input|select|textarea|button|iframe)$/;\n\nexport const makeNodeUnfocusable = (node) => {\n // do not touch aria live containers so that announcements work\n if (!node.hasAttribute('aria-live')) {\n node.setAttribute('aria-hidden', true);\n // prevent children to receive focus\n const elements = node.getElementsByTagName('*');\n // first, save off the tabIndex of any element with one\n Array.prototype.filter\n .call(\n elements || [],\n (element) => element.getAttribute(TABINDEX) !== null,\n )\n .forEach((element) => {\n element.setAttribute(TABINDEX_STATE, element.getAttribute(TABINDEX));\n element.setAttribute(TABINDEX, -1);\n });\n // then, if any element is inherently focusable and not handled above,\n // give it a tabIndex of -1 so it can't receive focus\n Array.prototype.filter\n .call(elements || [], (element) => {\n const currentTag = element.tagName.toLowerCase();\n return (\n currentTag.match(autoFocusingTags) &&\n element.focus &&\n element.getAttribute(TABINDEX_STATE) === null\n );\n })\n .forEach((element) => {\n element.setAttribute(TABINDEX_STATE, 'none');\n element.setAttribute(TABINDEX, -1);\n });\n }\n};\n\nexport const findVisibleParent = (element) => {\n if (element) {\n // Get the closest ancestor element that is positioned.\n return element.offsetParent\n ? element\n : findVisibleParent(element.parentElement) || element;\n }\n return undefined;\n};\n\nexport const isNodeAfterScroll = (node, target) => {\n const { bottom } = node.getBoundingClientRect();\n // target will be the document from findScrollParent()\n const { height, top } = target.getBoundingClientRect\n ? target.getBoundingClientRect()\n : { height: 0, top: 0 };\n return bottom >= top + height;\n};\n\nexport const isNodeBeforeScroll = (node, target) => {\n const { top } = node.getBoundingClientRect();\n // target will be the document from findScrollParent()\n const { top: targetTop } = target.getBoundingClientRect\n ? target.getBoundingClientRect()\n : { top: 0 };\n return top <= targetTop;\n};\n","export const getBreakpoint = (viewportWidth, theme) => {\n const sortedBreakpoints = Object.keys(theme.global.breakpoints).sort(\n (a, b) => {\n const first = theme.global.breakpoints[a];\n const second = theme.global.breakpoints[b];\n if (!first) return 1;\n if (!second) return -1;\n if (!first.value) return 1;\n if (!second.value) return -1;\n return first.value - second.value;\n },\n );\n\n // the last breakpoint on the sorted array should have\n // no windowWidth boundaries\n const lastBreakpoint = sortedBreakpoints[sortedBreakpoints.length - 1];\n const result = sortedBreakpoints.find(name => {\n const breakpoint = theme.global.breakpoints[name];\n return !breakpoint.value || breakpoint.value >= viewportWidth\n ? name\n : false;\n });\n\n return result || lastBreakpoint;\n};\n\nexport const getDeviceBreakpoint = (type, theme) =>\n theme.global.deviceBreakpoints[type];\n\nexport const getBreakpointStyle = (theme, breakpointSize) => {\n const breakpoint =\n (breakpointSize && theme.global.breakpoints[breakpointSize]) || {};\n if (!breakpoint.edgeSize) breakpoint.edgeSize = theme.global.edgeSize;\n if (!breakpoint.borderSize) breakpoint.borderSize = theme.global.borderSize;\n if (!breakpoint.size) breakpoint.size = theme.global.size;\n return breakpoint;\n};\n","import { Actions } from 'grommet-icons/icons/Actions';\nimport { CircleInformation } from 'grommet-icons/icons/CircleInformation';\nimport { ClosedCaption } from 'grommet-icons/icons/ClosedCaption';\nimport { Expand } from 'grommet-icons/icons/Expand';\nimport { FormClose } from 'grommet-icons/icons/FormClose';\nimport { FormDown } from 'grommet-icons/icons/FormDown';\nimport { FormNext } from 'grommet-icons/icons/FormNext';\nimport { FormPrevious } from 'grommet-icons/icons/FormPrevious';\nimport { FormUp } from 'grommet-icons/icons/FormUp';\nimport { Next } from 'grommet-icons/icons/Next';\nimport { Pause } from 'grommet-icons/icons/Pause';\nimport { Play } from 'grommet-icons/icons/Play';\nimport { Previous } from 'grommet-icons/icons/Previous';\nimport { StatusCriticalSmall } from 'grommet-icons/icons/StatusCriticalSmall';\nimport { StatusGoodSmall } from 'grommet-icons/icons/StatusGoodSmall';\nimport { StatusWarningSmall } from 'grommet-icons/icons/StatusWarningSmall';\nimport { StatusUnknownSmall } from 'grommet-icons/icons/StatusUnknownSmall';\nimport { Subtract } from 'grommet-icons/icons/Subtract';\nimport { Volume } from 'grommet-icons/icons/Volume';\nimport { VolumeLow } from 'grommet-icons/icons/VolumeLow';\nimport { base as iconBase } from 'grommet-icons/themes/base';\n\nimport { deepFreeze, deepMerge } from '../utils/object';\nimport { parseMetricToNum } from '../utils/mixins';\n\nconst brandColor = '#7D4CDB';\nconst accentColors = ['#6FFFB0', '#FD6FFF', '#81FCED', '#FFCA58'];\nconst neutralColors = ['#00873D', '#3D138D', '#00739D', '#A2423D'];\nconst statusColors = {\n critical: '#FF4040',\n error: '#FF4040',\n warning: '#FFAA15',\n ok: '#00C781',\n unknown: '#CCCCCC',\n disabled: '#CCCCCC',\n};\nconst darkColors = [\n '#333333',\n '#555555',\n '#777777',\n '#999999',\n '#999999',\n '#999999',\n];\nconst lightColors = [\n '#F8F8F8',\n '#F2F2F2',\n '#EDEDED',\n '#DADADA',\n '#DADADA',\n '#DADADA',\n];\nconst focusColor = accentColors[0];\n\nconst colors = {\n active: 'rgba(221, 221, 221, 0.5)',\n 'background-back': {\n dark: '#33333308',\n light: '#EDEDED',\n },\n 'background-front': {\n dark: '#444444',\n light: '#FFFFFF',\n },\n 'background-contrast': {\n light: '#33333310',\n dark: '#FFFFFF18',\n },\n 'active-background': 'background-contrast',\n 'active-text': 'text-strong',\n black: '#000000',\n border: {\n dark: 'rgba(255, 255, 255, 0.33)',\n light: 'rgba(0, 0, 0, 0.33)',\n },\n brand: brandColor,\n control: {\n dark: 'accent-1',\n light: 'brand',\n },\n focus: focusColor,\n 'graph-0': 'accent-1',\n 'graph-1': 'neutral-1',\n 'graph-2': 'neutral-2',\n 'graph-3': 'neutral-3',\n 'graph-4': 'neutral-4',\n placeholder: '#AAAAAA',\n selected: 'brand',\n text: {\n dark: '#f8f8f8',\n light: '#444444',\n },\n 'text-strong': {\n dark: '#FFFFFF',\n light: '#000000',\n },\n 'text-weak': {\n dark: '#CCCCCC',\n light: '#555555',\n },\n 'text-xweak': {\n dark: '#BBBBBB',\n light: '#666666',\n },\n icon: {\n dark: '#f8f8f8',\n light: '#666666',\n },\n 'selected-background': 'brand',\n 'selected-text': 'text-strong',\n white: '#FFFFFF',\n};\n\nconst colorArray = (array, prefix) =>\n array.forEach((color, index) => {\n colors[`${prefix}-${index + 1}`] = color;\n });\n\ncolorArray(accentColors, 'accent');\ncolorArray(darkColors, 'dark');\ncolorArray(lightColors, 'light');\ncolorArray(neutralColors, 'neutral');\nObject.keys(statusColors).forEach((color) => {\n colors[`status-${color}`] = statusColors[color];\n});\n\nexport const generate = (baseSpacing = 24, scale = 6) => {\n // 24\n const baseFontSize = baseSpacing * 0.75; // 18\n const fontScale = baseSpacing / scale; // 4\n\n const fontSizing = (factor) => ({\n size: `${baseFontSize + factor * fontScale}px`,\n height: `${baseSpacing + factor * fontScale}px`,\n // maxWidth chosen to be ~50 characters wide\n // see: https://ux.stackexchange.com/a/34125\n maxWidth: `${baseSpacing * (baseFontSize + factor * fontScale)}px`,\n });\n\n const borderWidth = 2;\n const controlBorderWidth = 1;\n\n const result = deepMerge(iconBase, {\n global: {\n active: {\n background: {\n color: 'active',\n opacity: 'medium',\n },\n color: {\n dark: 'white',\n light: 'black',\n },\n },\n animation: {\n duration: '1s',\n jiggle: {\n duration: '0.1s',\n },\n },\n borderSize: {\n xsmall: '1px',\n small: '2px',\n medium: `${baseSpacing / 6}px`, // 4\n large: `${baseSpacing / 2}px`, // 12\n xlarge: `${baseSpacing}px`, // 24\n },\n breakpoints: {\n small: {\n value: baseSpacing * 32, // 768\n borderSize: {\n xsmall: '1px',\n small: '2px',\n medium: `${baseSpacing / 6}px`, // 4\n large: `${baseSpacing / 4}px`, // 6\n xlarge: `${baseSpacing / 2}px`, // 12\n },\n edgeSize: {\n none: '0px',\n hair: '1px', // for Chart\n xxsmall: '2px',\n xsmall: `${baseSpacing / 8}px`, // 3\n small: `${baseSpacing / 4}px`, // 6\n medium: `${baseSpacing / 2}px`, // 12\n large: `${baseSpacing}px`, // 24\n xlarge: `${baseSpacing * 2}px`, // 48\n },\n size: {\n xxsmall: `${baseSpacing}px`, // 24\n xsmall: `${baseSpacing * 2}px`, // 48\n small: `${baseSpacing * 4}px`, // 96\n medium: `${baseSpacing * 8}px`, // 192\n large: `${baseSpacing * 16}px`, // 384\n xlarge: `${baseSpacing * 32}px`, // 768\n full: '100%',\n },\n },\n medium: {\n value: baseSpacing * 64, // 1536\n },\n large: {}, // anything above 'medium'\n },\n // Breakpoints used at Server Side Rendering for the initial rendering\n // These values correspond to the theme breakpoints\n deviceBreakpoints: {\n phone: 'small',\n tablet: 'medium',\n computer: 'large',\n },\n colors,\n control: {\n border: {\n width: `${controlBorderWidth}px`,\n radius: '4px',\n color: 'border',\n },\n disabled: {\n opacity: 0.3,\n },\n },\n // The time to wait after the user stopped typing, measured in ms.\n debounceDelay: 300,\n drop: {\n // intelligentMargin: undefined,\n background: {\n dark: 'black',\n light: 'white',\n },\n border: {\n radius: '0px',\n },\n // margin: undefined\n shadowSize: 'small', // shadowSize is deprecated, use 'elevation'\n zIndex: '20',\n },\n edgeSize: {\n none: '0px',\n hair: '1px', // for Chart\n xxsmall: `${baseSpacing / 8}px`, // 3\n xsmall: `${baseSpacing / 4}px`, // 6\n small: `${baseSpacing / 2}px`, // 12\n medium: `${baseSpacing}px`, // 24\n large: `${baseSpacing * 2}px`, // 48\n xlarge: `${baseSpacing * 4}px`, // 96\n responsiveBreakpoint: 'small',\n },\n elevation: {\n light: {\n none: 'none',\n xsmall: '0px 1px 2px rgba(0, 0, 0, 0.20)',\n small: '0px 2px 4px rgba(0, 0, 0, 0.20)',\n medium: '0px 4px 8px rgba(0, 0, 0, 0.20)',\n large: '0px 8px 16px rgba(0, 0, 0, 0.20)',\n xlarge: '0px 12px 24px rgba(0, 0, 0, 0.20)',\n },\n dark: {\n none: 'none',\n xsmall: '0px 2px 2px rgba(255, 255, 255, 0.40)',\n small: '0px 4px 4px rgba(255, 255, 255, 0.40)',\n medium: '0px 6px 8px rgba(255, 255, 255, 0.40)',\n large: '0px 8px 16px rgba(255, 255, 255, 0.40)',\n xlarge: '0px 12px 24px rgba(255, 255, 255, 0.40)',\n },\n },\n focus: {\n // shadow or outline are required for accessibility\n border: {\n // remove to only have shadow\n color: 'focus',\n },\n // outline: { color: undefined, size: undefined },\n shadow: {\n color: 'focus',\n size: '2px',\n },\n },\n font: {\n ...fontSizing(0),\n // face: undefined,\n // family: undefined,\n },\n hover: {\n background: {\n color: 'active',\n opacity: 'medium',\n },\n color: {\n dark: 'white',\n light: 'black',\n },\n },\n input: {\n padding: {\n horizontal: `${\n parseMetricToNum(`${baseSpacing / 2}px`) -\n parseMetricToNum(`${controlBorderWidth}px`)\n }px`,\n vertical: `${\n parseMetricToNum(`${baseSpacing / 2}px`) -\n parseMetricToNum(`${controlBorderWidth}px`)\n }px`,\n },\n font: {\n // size: undefined,\n // height: undefined,\n weight: 600,\n },\n // deprecate in v3\n // weight: undefined,\n },\n opacity: {\n strong: 0.8,\n medium: 0.4,\n weak: 0.1,\n },\n selected: {\n background: 'selected',\n color: 'white',\n },\n spacing: `${baseSpacing}px`,\n size: {\n xxsmall: `${baseSpacing * 2}px`, // 48\n xsmall: `${baseSpacing * 4}px`, // 96\n small: `${baseSpacing * 8}px`, // 192\n medium: `${baseSpacing * 16}px`, // 384\n large: `${baseSpacing * 32}px`, // 768\n xlarge: `${baseSpacing * 48}px`, // 1152\n xxlarge: `${baseSpacing * 64}px`, // 1536\n full: '100%',\n },\n },\n accordion: {\n panel: {\n // border: {\n // side: 'bottom',\n // color: 'border',\n // },\n },\n border: {\n side: 'bottom',\n color: 'border',\n },\n heading: {\n level: '4', // level ranges from 1-6\n // margin: undefined\n },\n hover: {\n color: { dark: 'light-4', light: 'dark-3' }, // deprecated\n heading: {\n color: { dark: 'light-4', light: 'dark-3' },\n },\n },\n icons: {\n collapse: FormUp,\n expand: FormDown,\n // color: { dark: undefined, light: undefined },\n },\n },\n anchor: {\n textDecoration: 'none',\n fontWeight: 600,\n color: {\n dark: 'accent-1',\n light: 'brand',\n },\n hover: {\n textDecoration: 'underline',\n // fontWeight: undefined,\n // extend: undefined,\n },\n // extend: undefined,\n },\n avatar: {\n // extend: undefined,\n size: {\n xsmall: `${baseSpacing * 0.75}px`, // 18px\n small: `${baseSpacing}px`, // 24px\n medium: `${baseSpacing * 2}px`, // default 48px\n large: `${baseSpacing * 3}px`, // 72px\n xlarge: `${baseSpacing * 4}px`, // 96px\n '2xl': `${baseSpacing * 5}px`, // 120px\n '3xl': `${baseSpacing * 6}px`, // 144px\n '4xl': `${baseSpacing * 7}px`, // 168px\n '5xl': `${baseSpacing * 8}px`, // 192px\n },\n text: {\n size: {\n xsmall: 'small', // 14px\n small: 'medium', // 18px\n medium: 'large', // 22px\n large: 'xlarge', // 26px\n xlarge: 'xxlarge', // 34px\n '2xl': '3xl', // 42px\n '3xl': '4xl', // 54px\n '4xl': '5xl', // 70px\n '5xl': '6xl', // 90px\n },\n // fontWeight: undefined,\n // extend: undefined\n },\n },\n box: {\n responsiveBreakpoint: 'small', // when we switch rows to columns\n // extend: undefined,\n },\n button: {\n badge: {\n container: {\n background: 'brand',\n // pad: undefined,\n // extend: undefined,\n },\n size: {\n medium: `${baseSpacing}px`, // 24px\n },\n text: {\n size: {\n medium: 'small', // 14px\n },\n },\n },\n gap: 'small',\n size: {\n small: {\n border: {\n radius: `${baseSpacing * 0.75}px`,\n },\n pad: {\n vertical: `${baseSpacing / 4 - borderWidth}px`, // 4px\n horizontal: `${baseSpacing - borderWidth * 2}px`, // 20px,\n },\n },\n medium: {\n border: {\n radius: `${baseSpacing * 0.75}px`, // 18px\n },\n pad: {\n vertical: `${baseSpacing / 4 - borderWidth}px`, // 4px\n horizontal: `${baseSpacing - borderWidth}px`, // 22px\n },\n },\n large: {\n border: {\n radius: `${baseSpacing}px`, // 24px\n },\n pad: {\n vertical: `${baseSpacing / 4 + borderWidth}px`, // 8px\n horizontal: `${baseSpacing + borderWidth * 4}px`, // 32px,\n },\n },\n },\n border: {\n // color: { dark: undefined, light: undefined }\n width: `${borderWidth}px`,\n radius: `${baseSpacing * 0.75}px`,\n },\n // color: { dark: undefined, light: undefined }\n // default: {\n // background: undefined,\n // border: undefined,\n // color: undefined,\n // font: {\n // weight: undefined,\n // },\n // padding: {\n // vertical: undefined,\n // horizontal: undefined,\n // },\n // extend: undefined,\n // },\n // primary: {\n // font: {\n // weight: undefined,\n // },\n // background: undefined,\n // border: undefined,\n // color: undefined,\n // padding: {\n // vertical: undefined,\n // horizontal: undefined,\n // },\n // extend: undefined,\n // },\n // secondary: {\n // font: {\n // weight: undefined,\n // },\n // background: undefined,\n // border: undefined,\n // color: undefined,\n // padding: {\n // vertical: undefined,\n // horizontal: undefined,\n // },\n // extend: undefined,\n // },\n // option: {\n // background: undefined,\n // border: undefined,\n // color: undefined,\n // padding: {\n // vertical: undefined,\n // horizontal: undefined,\n // },\n // extend: undefined,\n // },\n active: {\n background: 'active-background',\n // border: undefined,\n color: 'active-text',\n // extend: undefined,\n // default: {},\n // primary: {},\n // secondary: {},\n },\n disabled: {\n // background: undefined,\n // border: undefined,\n // color: undefined,\n opacity: 0.3,\n // extend: undefined,\n // default: {},\n // primary: {},\n // secondary: {},\n },\n // hover: {\n // background: undefined,\n // border: undefined,\n // color: undefined,\n // extend: undefined,\n // default: {},\n // primary: {},\n // secondary: {},\n // },\n padding: {\n vertical: `${baseSpacing / 4 - borderWidth}px`,\n horizontal: `${baseSpacing - borderWidth}px`,\n },\n transition: {\n timing: 'ease-in-out',\n duration: 0.1,\n properties: ['color', 'background-color', 'border-color', 'box-shadow'],\n },\n },\n calendar: {\n // daySize must align with global.size\n small: {\n fontSize: `${baseFontSize - fontScale}px`,\n lineHeight: 1.375,\n daySize: `${(baseSpacing * 8) / 7}px`,\n slideDuration: '0.2s',\n },\n medium: {\n fontSize: `${baseFontSize}px`,\n lineHeight: 1.45,\n daySize: `${(baseSpacing * 16) / 7}px`,\n slideDuration: '0.5s',\n },\n large: {\n fontSize: `${baseFontSize + 3 * fontScale}px`,\n lineHeight: 1.11,\n daySize: `${(baseSpacing * 32) / 7}px`,\n slideDuration: '0.8s',\n },\n icons: {\n previous: Previous,\n next: Next,\n small: {\n previous: FormPrevious,\n next: FormNext,\n },\n },\n heading: { level: '4' }, // level ranges from 1-6\n },\n card: {\n container: {\n round: 'small',\n elevation: 'small',\n // extend: undefined,\n },\n // hover: {\n // container: {\n // elevation: undefined,\n // },\n // },\n header: {},\n body: {},\n footer: {},\n },\n carousel: {\n icons: {\n current: Subtract,\n next: Next,\n previous: Previous,\n // color: { dark: undefined, light: undefined },\n },\n animation: {\n duration: 1000,\n },\n disabled: {\n icons: {\n // color: { dark: undefined, light: undefined },\n },\n },\n },\n chart: {\n color: 'graph-0',\n // extend: undefined,\n },\n checkBox: {\n border: {\n color: {\n dark: 'rgba(255, 255, 255, 0.5)',\n light: 'rgba(0, 0, 0, 0.15)',\n },\n width: '2px',\n },\n check: {\n // extend: undefined,\n radius: '4px',\n thickness: '4px',\n },\n label: {\n align: 'center',\n },\n // color: { dark: undefined, light: undefined },\n // extend: undefined,\n // gap: undefined\n hover: {\n border: {\n color: {\n dark: 'white',\n light: 'black',\n },\n },\n // background: undefined,\n },\n icon: {\n // size: undefined,\n // extend: undefined,\n },\n icons: {\n // checked: undefined,\n // indeterminate: undefined,\n },\n // pad: undefined,\n size: `${baseSpacing}px`,\n toggle: {\n // background: undefined\n color: {\n dark: '#d9d9d9',\n light: '#d9d9d9',\n },\n knob: {\n // extend: undefined,\n },\n radius: `${baseSpacing}px`,\n size: `${baseSpacing * 2}px`,\n // extend: undefined,\n },\n },\n checkBoxGroup: {\n // container: {\n // // any box props\n // extend: undefined,\n // },\n },\n clock: {\n analog: {\n // extend: undefined,\n hour: {\n color: {\n dark: 'light-2',\n light: 'dark-3',\n },\n width: `${baseSpacing / 3}px`,\n size: `${baseSpacing}px`,\n shape: 'round',\n },\n minute: {\n color: {\n dark: 'light-4',\n light: 'dark-3',\n },\n width: `${baseSpacing / 6}px`,\n size: `${Math.round(baseSpacing / 2)}px`,\n shape: 'round',\n },\n second: {\n color: {\n dark: 'accent-1',\n light: 'accent-1',\n },\n width: `${baseSpacing / 8}px`,\n size: `${Math.round(baseSpacing / 2.666)}px`,\n shape: 'round',\n },\n size: {\n xsmall: `${baseSpacing * 2}px`,\n small: `${baseSpacing * 3}px`,\n medium: `${baseSpacing * 4}px`,\n large: `${baseSpacing * 6}px`,\n xlarge: `${baseSpacing * 9}px`,\n xxlarge: `${baseSpacing * 12}px`,\n huge: `${baseSpacing * 12}px`, // kept for backwards compatibility\n },\n },\n digital: {\n text: {\n xsmall: { size: `${baseFontSize - 2 * fontScale}px`, height: 1.5 },\n small: { size: `${baseFontSize - fontScale}px`, height: 1.43 },\n medium: { size: `${baseFontSize}px`, height: 1.375 },\n large: { size: `${baseFontSize + fontScale}px`, height: 1.167 },\n xlarge: { size: `${baseFontSize + 2 * fontScale}px`, height: 1.1875 },\n xxlarge: { size: `${baseFontSize + 4 * fontScale}px`, height: 1.125 },\n },\n },\n },\n collapsible: {\n minSpeed: 200,\n baseline: 500,\n },\n dateInput: {\n // icon: {\n // size: undefined,\n // },\n },\n dataTable: {\n // body: {\n // extend: undefined,\n // },\n pinned: {\n // body: {\n // background: undefined,\n // extend: undefined,\n // },\n header: {\n background: { opacity: 'strong' },\n // extend: undefined,\n },\n footer: {\n background: { opacity: 'strong' },\n // extend: undefined,\n },\n },\n container: {\n // any box props\n gap: 'xsmall',\n // extend: undefined,\n },\n groupHeader: {\n background: {\n dark: 'dark-2',\n light: 'light-2',\n },\n border: { side: 'bottom', size: 'xsmall' },\n pad: { horizontal: 'small', vertical: 'xsmall' },\n },\n groupEnd: {\n border: { side: 'bottom', size: 'xsmall' },\n },\n header: {\n // background: undefined,\n // border: undefined,\n // color: undefined,\n // extend: undefined,\n // font: {\n // weight: undefined,\n // size: undefined,\n // },\n gap: 'small',\n // hover: {\n // background: undefined,\n // },\n // pad: undefined,\n units: {\n color: 'text-xweak',\n margin: { left: 'xsmall' },\n },\n },\n icons: {\n ascending: FormDown,\n contract: FormUp,\n descending: FormUp,\n expand: FormDown,\n // sortable: undefined,\n },\n primary: {\n weight: 'bold',\n },\n resize: {\n border: {\n color: 'border',\n side: 'end',\n },\n // hover: {\n // border: {\n // color: undefined,\n // side: undefined,\n // size: undefined,\n // },\n // },\n },\n },\n diagram: {\n // extend: undefined,\n line: {\n color: 'graph-0',\n },\n },\n // drop: {\n // extend: undefined,\n // maxHeight: undefined,\n // },\n fileInput: {\n // background: {},\n border: {\n // color: undefined,\n side: 'all',\n size: 'small',\n style: 'dashed',\n },\n dragOver: {\n border: {\n color: 'control',\n },\n // extend: undefined,\n },\n hover: {\n border: {\n color: 'brand',\n },\n // extend: undefined,\n },\n icons: {\n remove: FormClose,\n },\n // pad: {},\n label: {\n margin: 'small',\n // extend: undefined,\n },\n message: {\n margin: 'small',\n // extend: undefined,\n },\n // extend: undefined,\n },\n formField: {\n border: {\n color: 'border',\n error: {\n color: {\n dark: 'white',\n light: 'status-critical',\n },\n },\n position: 'inner',\n side: 'bottom',\n },\n content: {\n // margin: undefined,\n pad: 'small',\n },\n disabled: {\n background: {\n color: 'status-disabled',\n opacity: 'medium',\n },\n // border: {\n // color: undefined,\n // },\n // label: {\n // color: undefined,\n // },\n },\n // focus: {\n // background: {\n // color: undefined,\n // },\n // border: {\n // color: undefined,\n // },\n // },\n error: {\n color: 'status-critical',\n margin: { vertical: 'xsmall', horizontal: 'small' },\n // background: undefined,\n // container: {}, // any Box props\n // icon: undefined,\n },\n // extend: undefined,\n help: {\n color: 'dark-3',\n margin: {\n start: 'small',\n },\n },\n info: {\n color: 'text-xweak',\n margin: { vertical: 'xsmall', horizontal: 'small' },\n // container: {}, // any Box props\n // icon: undefined,\n },\n label: {\n margin: { vertical: 'xsmall', horizontal: 'small' },\n // requiredIndicator: undefined,\n },\n margin: { bottom: 'small' },\n // round: undefined,\n },\n grommet: {\n // extend: undefined\n },\n heading: {\n // color: undefined,\n font: {\n // family: undefined\n },\n level: {\n 1: {\n font: {\n // family: undefined,\n // weight: undefined,\n },\n small: { ...fontSizing(4) },\n medium: { ...fontSizing(8) },\n large: { ...fontSizing(16) },\n xlarge: { ...fontSizing(24) },\n },\n 2: {\n font: {\n // family: undefined,\n // weight: undefined,\n },\n small: { ...fontSizing(2) },\n medium: { ...fontSizing(4) },\n large: { ...fontSizing(8) },\n xlarge: { ...fontSizing(12) },\n },\n 3: {\n font: {\n // family: undefined,\n // weight: undefined,\n },\n small: { ...fontSizing(1) },\n medium: { ...fontSizing(2) },\n large: { ...fontSizing(4) },\n xlarge: { ...fontSizing(6) },\n },\n 4: {\n font: {\n // family: undefined,\n // weight: undefined,\n },\n small: { ...fontSizing(0) },\n medium: { ...fontSizing(0) },\n large: { ...fontSizing(0) },\n xlarge: { ...fontSizing(0) },\n },\n 5: {\n font: {\n // family: undefined,\n // weight: undefined,\n },\n small: { ...fontSizing(-0.5) },\n medium: { ...fontSizing(-0.5) },\n large: { ...fontSizing(-0.5) },\n xlarge: { ...fontSizing(-0.5) },\n },\n 6: {\n font: {\n // family: undefined,\n // weight: undefined,\n },\n small: { ...fontSizing(-1) },\n medium: { ...fontSizing(-1) },\n large: { ...fontSizing(-1) },\n xlarge: { ...fontSizing(-1) },\n },\n },\n responsiveBreakpoint: 'small', // when we scale the font size down\n weight: 600,\n },\n layer: {\n background: {\n dark: 'black',\n light: 'white',\n },\n border: {\n radius: '4px',\n // intelligentRounding: undefined,\n },\n container: {\n // elevation: undefined,\n zIndex: '20',\n },\n // extend: undefined,\n overlay: {\n background: 'rgba(0, 0, 0, 0.5)',\n },\n responsiveBreakpoint: 'small', // when Layer takes over the full screen\n zIndex: '20',\n },\n list: {\n container: {\n // any box props\n gap: 'xsmall',\n // extend: undefined,\n },\n item: {\n // background: undefined,\n border: 'horizontal',\n pad: { horizontal: 'medium', vertical: 'small' },\n // extend: undefined,\n },\n icons: {\n down: FormDown,\n up: FormUp,\n },\n // extend: undefined,\n },\n maskedInput: {\n // container: {\n // extend: undefined,\n // },\n // extend: undefined,\n // disabled: { opacity: undefined },\n },\n menu: {\n // background: undefined,\n // extend: undefined,\n drop: {\n align: {\n top: 'top',\n left: 'left',\n },\n // any drop props\n },\n icons: {\n down: FormDown,\n // up: undefined,\n // color: { dark: undefined, light: undefined },\n },\n },\n meter: {\n color: 'graph-0',\n // colors: [] || colors: ['graph-0', 'graph-1', 'graph-2', 'graph-3'],\n // extend: undefined,\n },\n nameValueList: {\n gap: {\n column: 'large',\n row: 'small',\n },\n pair: {\n column: {\n gap: {\n column: 'large',\n row: 'medium',\n },\n },\n },\n name: {\n width: 'small',\n },\n value: {\n width: 'medium',\n },\n },\n nameValuePair: {\n column: {\n gap: 'xxsmall',\n },\n name: {\n // any text props\n color: 'text',\n weight: 'bold',\n },\n value: {\n // any text props\n color: 'text',\n },\n },\n notification: {\n actions: {\n // any anchor props\n },\n direction: 'column',\n container: {\n // any box props\n pad: { horizontal: 'small', vertical: 'xsmall' },\n background: {\n color: 'background-front',\n },\n },\n global: {\n direction: 'row',\n container: {\n // any box props\n pad: {\n horizontal: 'large',\n vertical: 'xsmall',\n },\n },\n },\n toast: {\n // direction: undefined,\n container: {\n // any box props\n elevation: 'medium',\n round: 'xsmall',\n width: 'medium',\n },\n layer: {\n position: 'top',\n margin: 'medium',\n },\n time: 8000,\n },\n iconContainer: {\n // any box props\n pad: { right: 'small' },\n flex: false,\n },\n textContainer: {\n // any box props\n gap: 'medium',\n },\n title: {\n // any text props\n weight: 'bold',\n },\n message: {\n // any text props\n margin: 'none',\n },\n close: {\n icon: FormClose,\n },\n critical: {\n icon: StatusCriticalSmall,\n // background: undefined,\n color: 'status-critical',\n global: {\n background: {\n color: 'status-critical',\n opacity: 'weak',\n },\n },\n // toast: {},\n },\n warning: {\n icon: StatusWarningSmall,\n // background: undefined,\n color: 'status-warning',\n global: {\n background: {\n color: 'status-warning',\n opacity: 'weak',\n },\n },\n // toast: {},\n },\n normal: {\n icon: StatusGoodSmall,\n // background: undefined,\n color: 'status-ok',\n global: {\n background: {\n color: 'status-ok',\n opacity: 'weak',\n },\n },\n // toast: {},\n },\n info: {\n icon: CircleInformation,\n // background: undefined,\n color: 'text-strong',\n // global: {},\n // toast: {},\n },\n unknown: {\n icon: StatusUnknownSmall,\n // background: undefined,\n color: 'status-unknown',\n global: {\n background: {\n color: 'status-unknown',\n opacity: 'weak',\n },\n },\n // toast: {},\n },\n // deprecate \"undefined\" in v3\n // and if undefined, no icon\n undefined: {\n icon: StatusUnknownSmall,\n // background: undefined,\n color: 'status-unknown',\n // global: {},\n // toast: {},\n },\n },\n page: {\n wide: {\n alignSelf: 'center',\n width: {\n min: 'medium',\n max: 'xxlarge',\n },\n small: {\n pad: { horizontal: 'large' },\n },\n medium: {\n pad: { horizontal: 'medium' },\n },\n large: {\n pad: { horizontal: 'large' },\n },\n },\n narrow: {\n alignSelf: 'center',\n width: {\n min: 'medium',\n max: 'large',\n },\n small: {\n pad: { horizontal: 'large' },\n },\n medium: {\n pad: { horizontal: 'medium' },\n },\n large: {\n pad: { horizontal: 'large' },\n },\n },\n full: {\n alignSelf: 'start',\n width: {\n min: 'medium',\n max: '100%',\n },\n small: {\n pad: { horizontal: 'large' },\n },\n medium: {\n pad: { horizontal: 'medium' },\n },\n large: {\n pad: { horizontal: 'large' },\n },\n },\n },\n pagination: {\n button: {\n active: {\n background: {\n color: 'active-background',\n },\n },\n color: 'text-strong',\n hover: {\n background: {\n color: 'background-contrast',\n },\n color: undefined,\n },\n size: {\n small: {\n border: {\n radius: `${baseSpacing / 8}px`, // 3\n width: '2px',\n },\n pad: {\n vertical: `4px`,\n horizontal: `4px`,\n },\n font: { ...fontSizing(-1) },\n height: `${baseSpacing * 1.25}px`,\n width: `${baseSpacing * 1.25}px`,\n },\n medium: {\n border: {\n radius: `${baseSpacing / 6}px`, // 4\n width: '2px',\n },\n pad: {\n vertical: `4px`,\n horizontal: `4px`,\n },\n font: { ...fontSizing(0) },\n height: `${baseSpacing * 1.5}px`,\n width: `${baseSpacing * 1.5}px`,\n },\n large: {\n border: {\n radius: `${baseSpacing / 4}px`, // 6\n width: '2px',\n },\n pad: {\n vertical: `4px`,\n horizontal: `4px`,\n },\n font: { ...fontSizing(1) },\n height: `${baseSpacing * 2}px`,\n width: `${baseSpacing * 2}px`,\n },\n },\n },\n // container: {\n // // any box props,\n // extend: undefined,\n // },\n controls: {\n align: 'center',\n direction: 'row',\n gap: 'xxsmall',\n margin: 'none',\n pad: 'none',\n },\n icons: {\n // color: undefined,\n next: Next,\n previous: Previous,\n },\n },\n paragraph: {\n font: {\n // family: undefined\n },\n small: { ...fontSizing(-1) },\n medium: { ...fontSizing(0) },\n large: { ...fontSizing(1) },\n xlarge: { ...fontSizing(2) },\n xxlarge: { ...fontSizing(4) },\n },\n spinner: {\n container: {\n animation: 'rotateRight',\n color: 'brand',\n pad: 'small',\n round: 'full',\n size: 'small',\n },\n // icon: undefined\n size: {\n xsmall: `${baseSpacing * 0.75}px`,\n small: `${baseSpacing}px`, // default 24\n medium: `${baseSpacing * 2}px`,\n large: `${baseSpacing * 3}px`,\n xlarge: `${baseSpacing * 4}px`,\n },\n },\n radioButton: {\n border: {\n color: {\n dark: 'rgba(255, 255, 255, 0.5)',\n light: 'rgba(0, 0, 0, 0.15)',\n },\n width: '2px',\n },\n check: {\n radius: '100%',\n // background: {\n // color: undefined,\n // },\n // color: { dark: undefined, light: undefined },\n // extend: undefined,\n },\n // color: undefined,\n hover: {\n // background: {\n // color: undefined,\n // },\n border: {\n color: {\n dark: 'white',\n light: 'black',\n },\n },\n },\n icon: {\n // size: undefined,\n // extend: undefined,\n },\n icons: {\n // circle: undefined,\n },\n gap: 'small',\n size: `${baseSpacing}px`,\n font: {\n // weight: undefined,\n },\n container: {\n // extend: undefined\n },\n },\n radioButtonGroup: {\n // container: {}, // any box props\n },\n rangeInput: {\n disabled: {\n opacity: 0.3,\n // thumb: {\n // color: undefined,\n // },\n // track: {\n // color: undefined,\n // },\n },\n // extend: undefined\n track: {\n height: '4px',\n color: 'border',\n // opacity: undefined,\n // lower: {\n // color: 'undefined',\n // opacity: undefined,\n // },\n // upper: {\n // color: undefined,\n // opacity: undefined,\n // },\n // extend: undefined\n },\n thumb: {\n // color: { dark: undefined, light: undefined },\n // extend: undefined\n },\n },\n rangeSelector: {\n background: {\n invert: {\n color: 'light-4',\n },\n },\n // edge: {\n // type: undefined,\n // },\n },\n select: {\n // background: undefined,\n clear: {\n container: {\n pad: 'small',\n background: 'background-contrast',\n }, // any box props\n text: {\n color: 'text-weak',\n }, // any text props\n },\n container: {\n // extend: undefined,\n },\n control: {\n // extend: undefined,\n // open: undefined,\n },\n icons: {\n // color: { dark: undefined, light: undefined },\n margin: { horizontal: 'small' },\n down: FormDown,\n // up: undefined\n },\n options: {\n container: {\n align: 'start',\n pad: 'small',\n },\n text: {\n margin: 'none',\n },\n },\n // searchInput: undefined,\n step: 20,\n },\n skipLinks: {\n position: 'top',\n container: {\n elevation: 'large',\n round: 'small',\n pad: 'medium',\n },\n label: {\n margin: { bottom: 'medium' },\n size: 'medium',\n },\n },\n tab: {\n active: {\n color: 'text',\n // background: undefined,\n },\n // background: undefined,\n border: {\n side: 'bottom',\n size: 'small',\n color: {\n dark: 'accent-1',\n light: 'brand',\n },\n active: {\n color: {\n dark: 'white',\n light: 'black',\n },\n },\n disabled: {\n // color: undefined,\n },\n hover: {\n color: {\n dark: 'white',\n light: 'black',\n },\n // extend: undefined,\n },\n },\n color: 'control',\n // disabled: {\n // color: undefined,\n // },\n // extend: undefined,\n hover: {\n // background: undefined,\n // extend: undefined,\n color: {\n dark: 'white',\n light: 'black',\n },\n },\n margin: {\n vertical: 'xxsmall',\n horizontal: 'small',\n },\n pad: {\n bottom: 'xsmall',\n },\n },\n tabs: {\n // background: undefined,\n // extend: undefined,\n // gap: undefined,\n header: {\n // background: undefined,\n // border: {\n // side: undefined,\n // size: undefined,\n // style: undefined,\n // color: undefined,\n // },\n // extend: undefined,\n },\n panel: {\n // extend: undefined,\n },\n },\n table: {\n header: {\n align: 'start',\n pad: { horizontal: 'small', vertical: 'xsmall' },\n border: 'bottom',\n // verticalAlign: undefined,\n // background: undefined,\n // extend: undefined,\n },\n body: {\n align: 'start',\n pad: { horizontal: 'small', vertical: 'xsmall' },\n // background: undefined,\n // border: undefined,\n // extend: undefined,\n },\n // row: {\n // hover: {\n // background: undefined,\n // color: undefined,\n // },\n // },\n footer: {\n align: 'start',\n pad: { horizontal: 'small', vertical: 'xsmall' },\n border: 'top',\n // verticalAlign: undefined,\n // background: undefined,\n // extend: undefined,\n },\n },\n tag: {\n // background: undefined,\n border: true,\n round: 'large',\n // name: undefined,\n pad: {\n horizontal: 'small',\n vertical: 'xsmall',\n },\n remove: {\n margin: { right: 'xsmall' },\n },\n separator: ' : ',\n size: {\n xsmall: {\n pad: { horizontal: `${baseSpacing / 3}px`, vertical: 'xxsmall' },\n icon: { size: `${baseSpacing * 0.75}px` },\n },\n small: {\n pad: { horizontal: `${baseSpacing * 0.4}px`, vertical: 'xxsmall' },\n icon: { size: `${baseSpacing * 0.75}px` },\n },\n large: {\n pad: { horizontal: `${(baseSpacing / 3) * 2}px`, vertical: `xsmall` },\n icon: { size: `${baseSpacing * 1.25}px` },\n },\n xlarge: {\n pad: { horizontal: `${baseSpacing * 0.75}px`, vertical: 'xsmall' },\n icon: { size: `${baseSpacing * 1.5}px` },\n },\n },\n value: {\n weight: 600,\n },\n },\n text: {\n font: {\n // family: undefined\n },\n xsmall: { ...fontSizing(-1.5) },\n small: { ...fontSizing(-1) },\n medium: { ...fontSizing(0) }, // 18px\n large: { ...fontSizing(1) }, // 22px\n xlarge: { ...fontSizing(2) },\n xxlarge: { ...fontSizing(4) },\n '2xl': { ...fontSizing(4) },\n '3xl': { ...fontSizing(6) },\n '4xl': { ...fontSizing(9) },\n '5xl': { ...fontSizing(13) },\n '6xl': { ...fontSizing(18) },\n },\n textArea: {\n // extend: undefined,\n // disabled: { opacity: undefined },\n },\n textInput: {\n // extend: undefined,\n // disabled: { opacity: undefined },\n },\n tip: {\n content: {\n // any Box props\n background: 'background-contrast',\n elevation: 'small',\n margin: 'xsmall',\n pad: { vertical: 'xsmall', horizontal: 'small' },\n round: 'small',\n },\n drop: {\n // any props for the drop\n align: { top: 'bottom' }, // most common use case is Header with Buttons\n background: 'none',\n elevation: 'none',\n margin: 'none',\n },\n },\n video: {\n captions: {\n background: 'rgba(0, 0, 0, 0.7)',\n },\n // controls: { background: undefined },\n icons: {\n closedCaption: ClosedCaption,\n configure: Actions,\n fullScreen: Expand,\n pause: Pause,\n play: Play,\n reduceVolume: VolumeLow,\n volume: Volume,\n // color: { dark: undefined, light: undefined },\n },\n // scrubber: { track: { color: undefined } },\n scrubber: {\n color: 'light-4',\n },\n },\n worldMap: {\n color: 'light-3',\n continent: {\n active: '8px',\n base: '6px',\n },\n hover: {\n color: 'light-4',\n },\n place: {\n active: '20px',\n base: '8px',\n },\n },\n });\n\n return deepFreeze(result);\n};\n\nexport const base = generate(24);\n","\"use strict\";\n\nexports.__esModule = true;\nexports.base = void 0;\nvar base = {\n global: {\n colors: {\n icon: '#666666'\n }\n },\n icon: {\n size: {\n small: '12px',\n medium: '24px',\n large: '48px',\n xlarge: '96px'\n }\n }\n};\nexports.base = base;","\"use strict\";\n\nexports.__esModule = true;\nexports.FormClose = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && 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; }\n\nfunction _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); }\n\nvar FormClose = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {\n return /*#__PURE__*/_react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n ref: ref,\n viewBox: \"0 0 24 24\",\n a11yTitle: \"FormClose\"\n }, props), /*#__PURE__*/_react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"m7 7 10 10M7 17 17 7\"\n }));\n});\nexports.FormClose = FormClose;\nFormClose.displayName = 'FormClose';","import PropTypes from 'prop-types';\nimport {\n backgroundDoc,\n elevationPropType,\n genericProps,\n heightPropType,\n hoverIndicatorPropType,\n padPropType,\n roundPropType,\n widthPropType,\n} from '../../utils/general-prop-types';\n\nconst OVERFLOW_VALUES = ['auto', 'hidden', 'scroll', 'visible'];\n\nconst ANIMATION_TYPE = PropTypes.oneOf([\n 'fadeIn',\n 'fadeOut',\n 'jiggle',\n 'pulse',\n 'rotateLeft',\n 'rotateRight',\n 'slideUp',\n 'slideDown',\n 'slideLeft',\n 'slideRight',\n 'zoomIn',\n 'zoomOut',\n]);\nconst ANIMATION_SHAPE = PropTypes.shape({\n type: ANIMATION_TYPE,\n delay: PropTypes.number,\n duration: PropTypes.number,\n size: PropTypes.oneOf(['xsmall', 'small', 'medium', 'large', 'xlarge']),\n});\n\nconst BORDER_SHAPE = PropTypes.shape({\n color: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.shape({\n dark: PropTypes.string,\n light: PropTypes.string,\n }),\n ]),\n side: PropTypes.oneOf([\n 'top',\n 'left',\n 'bottom',\n 'right',\n 'start',\n 'end',\n 'horizontal',\n 'vertical',\n 'all',\n 'between',\n ]),\n size: PropTypes.oneOfType([\n PropTypes.oneOf(['xsmall', 'small', 'medium', 'large', 'xlarge']),\n PropTypes.string,\n ]),\n style: PropTypes.oneOf([\n 'solid',\n 'dashed',\n 'dotted',\n 'double',\n 'groove',\n 'ridge',\n 'inset',\n 'outset',\n 'hidden',\n ]),\n});\n\n// if you update values here, make sure to update in Drop/doc too.\nconst overflowPropType = PropTypes.oneOfType([\n PropTypes.oneOf(OVERFLOW_VALUES),\n PropTypes.shape({\n horizontal: PropTypes.oneOf(OVERFLOW_VALUES),\n vertical: PropTypes.oneOf(OVERFLOW_VALUES),\n }),\n PropTypes.string,\n]);\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n ...genericProps,\n align: PropTypes.oneOfType([\n PropTypes.oneOf(['baseline', 'center', 'end', 'start', 'stretch']),\n PropTypes.string,\n ]),\n alignContent: PropTypes.oneOfType([\n PropTypes.oneOf([\n 'around',\n 'baseline',\n 'between',\n 'center',\n 'evenly',\n 'end',\n 'start',\n 'stretch',\n ]),\n PropTypes.string,\n ]),\n animation: PropTypes.oneOfType([\n ANIMATION_TYPE,\n ANIMATION_SHAPE,\n PropTypes.arrayOf(PropTypes.oneOfType([ANIMATION_TYPE, ANIMATION_SHAPE])),\n ]),\n background: backgroundDoc,\n basis: PropTypes.oneOfType([\n PropTypes.oneOf([\n 'xxsmall',\n 'xsmall',\n 'small',\n 'medium',\n 'large',\n 'xlarge',\n 'xxlarge',\n 'full',\n '1/2',\n '1/3',\n '2/3',\n '1/4',\n '2/4',\n '3/4',\n 'auto',\n ]),\n PropTypes.string,\n ]),\n border: PropTypes.oneOfType([\n PropTypes.bool,\n PropTypes.oneOf([\n 'top',\n 'left',\n 'bottom',\n 'right',\n 'start',\n 'end',\n 'horizontal',\n 'vertical',\n 'all',\n 'between',\n ]),\n BORDER_SHAPE,\n PropTypes.arrayOf(BORDER_SHAPE),\n ]),\n direction: PropTypes.oneOf([\n 'row',\n 'column',\n 'row-responsive',\n 'row-reverse',\n 'column-reverse',\n ]),\n elevation: elevationPropType,\n flex: PropTypes.oneOfType([\n PropTypes.oneOf(['grow', 'shrink']),\n PropTypes.bool,\n PropTypes.shape({\n grow: PropTypes.number,\n shrink: PropTypes.number,\n }),\n ]),\n fill: PropTypes.oneOfType([\n PropTypes.oneOf(['horizontal', 'vertical']),\n PropTypes.bool,\n ]),\n focusIndicator: PropTypes.bool,\n gap: PropTypes.oneOfType([\n PropTypes.oneOf([\n 'none',\n 'xxsmall',\n 'xsmall',\n 'small',\n 'medium',\n 'large',\n 'xlarge',\n ]),\n PropTypes.string,\n ]),\n height: heightPropType,\n hoverIndicator: hoverIndicatorPropType,\n justify: PropTypes.oneOf([\n 'around',\n 'between',\n 'center',\n 'end',\n 'evenly',\n 'start',\n 'stretch',\n ]),\n onClick: PropTypes.func,\n overflow: overflowPropType,\n pad: padPropType,\n responsive: PropTypes.bool,\n round: roundPropType,\n tag: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),\n as: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),\n width: widthPropType,\n wrap: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['reverse'])]),\n };\n}\nexport const BoxPropTypes = PropType;\n","import { createContext } from 'react';\n\nexport const AccordionContext = createContext({});\n","module.exports = ReactDOM;","import React, { useContext, useEffect, useRef, useState } from 'react';\n\nimport { makeNodeFocusable, makeNodeUnfocusable } from '../utils';\nimport { RootsContext } from '../contexts/RootsContext';\n\nexport const FocusedContainer = ({\n hidden = false,\n restrictScroll = false,\n children,\n trapFocus,\n ...rest\n}) => {\n const [bodyOverflowStyle, setBodyOverflowStyle] = useState('');\n const ref = useRef(null);\n\n const roots = useContext(RootsContext);\n const [nextRoots, setNextRoots] = useState(roots);\n useEffect(() => {\n // make sure value of null is not added to array\n if (ref.current) setNextRoots([...roots, ref.current]);\n }, [roots]);\n\n useEffect(() => {\n if (\n bodyOverflowStyle !== 'hidden' &&\n !hidden &&\n restrictScroll &&\n trapFocus\n ) {\n setBodyOverflowStyle(document.body.style.overflow);\n document.body.style.overflow = 'hidden';\n }\n\n return () => {\n if (\n bodyOverflowStyle !== 'hidden' &&\n !hidden &&\n restrictScroll &&\n trapFocus\n ) {\n document.body.style.overflow = bodyOverflowStyle;\n }\n };\n }, [bodyOverflowStyle, hidden, trapFocus, restrictScroll]);\n\n useEffect(() => {\n const timer = setTimeout(() => {\n if (!hidden && trapFocus && roots && roots[0]) {\n roots.forEach(makeNodeUnfocusable);\n }\n }, 0);\n\n return () => {\n // remove trap and restore ability to focus on the last root only\n if (roots && roots[0]) makeNodeFocusable(roots[roots.length - 1]);\n clearTimeout(timer);\n };\n }, [hidden, roots, trapFocus]);\n\n return (\n \n
\n {children}\n
\n
\n );\n};\n","export { Collapsible } from './Collapsible';\n","import PropTypes from 'prop-types';\nimport { colorPropType, genericProps } from '../../utils/general-prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n ...genericProps,\n a11yTitle: PropTypes.string,\n as: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.func,\n PropTypes.elementType,\n ]),\n color: colorPropType,\n disabled: PropTypes.bool,\n gap: PropTypes.oneOfType([\n PropTypes.oneOf([\n 'none',\n 'xxsmall',\n 'xsmall',\n 'small',\n 'medium',\n 'large',\n 'xlarge',\n ]),\n PropTypes.string,\n ]),\n href: PropTypes.string,\n icon: PropTypes.element,\n label: PropTypes.node,\n onClick: PropTypes.func,\n reverse: PropTypes.bool,\n size: PropTypes.oneOfType([\n PropTypes.oneOf([\n 'xsmall',\n 'small',\n 'medium',\n 'large',\n 'xlarge',\n 'xxlarge',\n ]),\n PropTypes.string,\n ]),\n weight: PropTypes.oneOfType([\n PropTypes.oneOf(['normal', 'bold']),\n PropTypes.string,\n PropTypes.number,\n ]),\n };\n}\nexport const AnchorPropTypes = PropType;\n","export { Calendar } from './Calendar';\n","export { Footer } from './Footer';\n","export { Header } from './Header';\n","import styled, { css, keyframes } from 'styled-components';\nimport { Box } from '../Box';\n\nconst StyledCarouselContainer = styled(Box)`\n position: relative;\n overflow: hidden;\n`;\n\nconst animationKeyframes = {\n // Slide Right = Previous or Backward\n slideRightPrevious: keyframes`\n 0% {transform: translateX(0%)}\n 100% {transform: translateX(100%)}\n `,\n slideRightCurrent: keyframes`\n 0% {transform: translateX(-100%)}\n 100% {transform: translateX(0%)}\n `,\n // Slide Left = Next or Forward\n slideLeftPrevious: keyframes`\n 0% {transform: translateX(0%)}\n 100% {transform: translateX(-100%)}\n `,\n slideLeftCurrent: keyframes`\n 0% {transform: translateX(100%)}\n 100% {transform: translateX(0%)}\n `,\n};\n\nconst StyledCarouselChild = styled(Box)`\n visibility: ${(props) => props.visibilityProp};\n position: ${(props) => props.positionProp};\n width: 100%;\n height: 100%;\n overflow: hidden;\n ${(props) =>\n props.animationType\n ? css`\n animation: ${animationKeyframes[props.animationType]}\n ${props.animationDuration / 1000}s ease-in-out;\n `\n : ``};\n animation-fill-mode: both;\n`;\n\nconst StyledControl = styled(Box)`\n position: absolute;\n z-index: 1;\n ${(props) => `${props.offsetProp}: 0;`}\n align-items: center;\n justify-content: center;\n`;\n\nexport { StyledCarouselContainer, StyledCarouselChild, StyledControl };\n","import PropTypes from 'prop-types';\nimport {\n genericProps,\n widthPropType,\n heightPropType,\n} from '../../utils/general-prop-types';\n\nlet CarouselPropType;\nif (process.env.NODE_ENV !== 'production') {\n CarouselPropType = {\n ...genericProps,\n activeChild: PropTypes.number,\n initialChild: PropTypes.number,\n fill: PropTypes.bool,\n wrap: PropTypes.bool,\n controls: PropTypes.oneOfType([\n PropTypes.oneOf(['arrows', 'selectors']),\n PropTypes.bool,\n ]),\n onChild: PropTypes.func,\n width: widthPropType,\n height: heightPropType,\n play: PropTypes.number,\n };\n}\nexport const CarouselPropTypes = CarouselPropType;\n\nlet CarouselChildPropType;\nif (process.env.NODE_ENV !== 'production') {\n CarouselChildPropType = {\n animationDuration: PropTypes.number.isRequired,\n fill: PropTypes.bool,\n index: PropTypes.number.isRequired,\n activeIndex: PropTypes.number.isRequired,\n priorActiveIndex: PropTypes.number,\n direction: PropTypes.oneOf(['left', 'right']),\n };\n}\nexport const CarouselChildPropTypes = CarouselChildPropType;\n","export { CheckBoxGroup } from './CheckBoxGroup';\n","import React, { forwardRef, useContext, useEffect, useState } from 'react';\nimport { ThemeContext } from 'styled-components';\n\nimport { removeUndefined } from '../../utils/object';\nimport { defaultProps } from '../../default-props';\nimport { Box } from '../Box';\nimport { FormContext } from '../Form/FormContext';\nimport { CheckBoxPropTypes } from './propTypes';\n\nimport {\n StyledCheckBox,\n StyledCheckBoxBox,\n StyledCheckBoxIcon,\n StyledCheckBoxContainer,\n StyledCheckBoxInput,\n StyledCheckBoxToggle,\n StyledCheckBoxKnob,\n} from './StyledCheckBox';\n\nimport { normalizeColor } from '../../utils';\n\nconst stopLabelClick = (event) => {\n // prevents clicking on the label trigging the event twice\n // https://stackoverflow.com/questions/24501497/why-the-onclick-element-will-trigger-twice-for-label-element\n if (event.target.type !== 'checkbox') {\n event.stopPropagation();\n }\n};\n\nconst CheckBox = forwardRef(\n (\n {\n a11yTitle,\n 'aria-label': ariaLabel,\n checked: checkedProp,\n children,\n defaultChecked = false,\n disabled,\n fill,\n focus: focusProp,\n focusIndicator = true,\n id,\n label,\n name,\n onBlur,\n onChange,\n onFocus,\n onMouseEnter,\n onMouseLeave,\n onMouseOut,\n onMouseOver,\n pad,\n reverse,\n toggle,\n indeterminate,\n ...rest\n },\n ref,\n ) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n const formContext = useContext(FormContext);\n\n const [checked, setChecked] = formContext.useFormInput({\n name,\n value: checkedProp,\n initialValue: defaultChecked,\n });\n\n const [focus, setFocus] = useState(focusProp);\n useEffect(() => {\n // don't allow checkbox to have focus when disabled\n if (disabled && focusProp) setFocus(false);\n else setFocus(focusProp);\n }, [disabled, focusProp]);\n\n useEffect(() => {\n if (checkedProp && indeterminate) {\n console.warn(\n 'Checkbox cannot be \"checked\" and \"indeterminate\" at the same time.',\n );\n }\n\n if (toggle && indeterminate) {\n console.warn(\n 'Checkbox of type toggle does not have \"indeterminate\" state.',\n );\n }\n }, [checkedProp, toggle, indeterminate]);\n\n const themeableProps = {\n checked,\n disabled,\n focus,\n // when contained in a FormField, focusIndicator = false,\n // so that the FormField has focus style. However, we still\n // need to visually indicate when a CheckBox is active.\n // If focus = true but focusIndicator = false,\n // we will apply the hover treament.\n focusIndicator,\n reverse,\n toggle,\n indeterminate,\n };\n\n let hidden;\n if (disabled && checked) {\n hidden = ;\n }\n\n const { checked: CheckedIcon, indeterminate: IndeterminateIcon } =\n theme.checkBox.icons;\n\n let borderColor = normalizeColor(theme.checkBox.border.color, theme);\n if (checked) {\n borderColor = normalizeColor(theme.checkBox.color || 'control', theme);\n }\n\n const visual = toggle ? (\n \n \n \n ) : (\n \n {!indeterminate &&\n checked &&\n (CheckedIcon ? (\n \n ) : (\n \n \n \n ))}\n {!checked &&\n indeterminate &&\n (IndeterminateIcon ? (\n \n ) : (\n \n \n \n ))}\n \n );\n\n const side = reverse ? 'left' : 'right';\n const checkBoxNode = (\n \n {\n setFocus(true);\n if (onFocus) onFocus(event);\n }}\n onBlur={(event) => {\n setFocus(false);\n if (onBlur) onBlur(event);\n }}\n onChange={(event) => {\n setChecked(event.target.checked);\n if (onChange) onChange(event);\n }}\n />\n {children ? children({ checked, indeterminate }) : visual}\n {hidden}\n \n );\n\n const normalizedLabel =\n typeof label === 'string' ? {label} : label;\n\n const first = reverse ? normalizedLabel : checkBoxNode;\n const second = reverse ? checkBoxNode : normalizedLabel;\n\n return (\n onMouseEnter?.(event)}\n onMouseOver={(event) => onMouseOver?.(event)}\n onMouseLeave={(event) => onMouseLeave?.(event)}\n onMouseOut={(event) => onMouseOut?.(event)}\n {...themeableProps}\n >\n {first}\n {second}\n \n );\n },\n);\n\nCheckBox.displayName = 'CheckBox';\nCheckBox.propTypes = CheckBoxPropTypes;\n\nexport { CheckBox };\n","export const normalizeValues = (values) =>\n (values || []).map((value, index) => {\n if (value === undefined) return { value: [index, undefined] };\n if (Array.isArray(value)) return { value };\n if (typeof value === 'object') return value;\n return { value: [index, value] };\n });\n\nexport const normalizeBounds = (bounds, values) => {\n let result = bounds;\n if (!result) {\n result = [\n [0, 1],\n [0, 1],\n ];\n (values || []).forEach((value) => {\n if (value.value[0] !== undefined) {\n result[0][0] = Math.min(result[0][0], value.value[0]);\n result[0][1] = Math.max(result[0][1], value.value[0]);\n }\n if (value.value[1] !== undefined) {\n result[1][0] = Math.min(result[1][0], value.value[1]);\n result[1][1] = Math.max(result[1][1], value.value[1]);\n }\n if (value.value[2] !== undefined) {\n result[1][0] = Math.min(result[1][0], value.value[2]);\n result[1][1] = Math.max(result[1][1], value.value[2]);\n }\n });\n }\n return result;\n};\n\nexport const areNormalizedValuesEquals = (valuesX, valuesY) => {\n console.warn(\n `This function will be removed in the upcoming releases.\nPlease get in touch with us if you have concerns.`,\n );\n\n if (!valuesX || !valuesY) return false;\n\n if (valuesX.length !== valuesY.length) return false;\n\n if (valuesX.length === 0) return true;\n\n if (!valuesX[0].value || !valuesY[0].value) return false;\n\n return valuesX.every((_, i) =>\n valuesX[i].value.every((value, index) => value === valuesY[i].value[index]),\n );\n};\n\nexport const areNormalizedBoundsEquals = (boundsX, boundsY) => {\n console.warn(\n `This function will be removed in the upcoming releases.\nPlease get in touch with us if you have concerns.`,\n );\n\n if (!boundsX || !boundsY) return false;\n\n if (boundsX.length !== boundsY.length || !(boundsX.length > 0)) return false;\n\n return boundsX.every((_, i) =>\n boundsX[i].every((value, index) => value === boundsY[i][index]),\n );\n};\n","import styled, { css, keyframes } from 'styled-components';\n\nimport { normalizeColor, genericStyles } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst StyledHour = styled.line`\n stroke-width: ${props => props.theme.clock.analog.hour.width};\n stroke: ${props =>\n normalizeColor(props.theme.clock.analog.hour.color, props.theme)};\n transition: stroke 1s ease-out;\n`;\n\nStyledHour.defaultProps = {};\nObject.setPrototypeOf(StyledHour.defaultProps, defaultProps);\n\nconst StyledMinute = styled.line`\n stroke-width: ${props => props.theme.clock.analog.minute.width};\n stroke: ${props =>\n normalizeColor(props.theme.clock.analog.minute.color, props.theme)};\n transition: stroke 1s ease-out;\n`;\n\nStyledMinute.defaultProps = {};\nObject.setPrototypeOf(StyledMinute.defaultProps, defaultProps);\n\nconst StyledSecond = styled.line`\n stroke-width: ${props => props.theme.clock.analog.second.width};\n stroke: ${props =>\n normalizeColor(props.theme.clock.analog.second.color, props.theme)};\n transition: stroke 1s ease-out;\n`;\n\nStyledSecond.defaultProps = {};\nObject.setPrototypeOf(StyledSecond.defaultProps, defaultProps);\n\nconst StyledAnalog = styled.svg`\n width: ${props => props.theme.clock.analog.size[props.size]};\n height: ${props => props.theme.clock.analog.size[props.size]};\n\n ${genericStyles}\n ${props => props.theme.clock.analog && props.theme.clock.analog.extend};\n`;\n\nStyledAnalog.defaultProps = {};\nObject.setPrototypeOf(StyledAnalog.defaultProps, defaultProps);\n\nconst sizeStyle = props => {\n // size is a combination of the size and height properties\n const size = props.size || 'medium';\n const data = props.theme.clock.digital.text[size] || {};\n return css`\n font-size: ${data.size || props.theme.clock.digital.text.medium.size};\n line-height: ${data.height || props.theme.clock.digital.text.medium.height};\n `;\n};\n\nconst StyledDigitalDigit = styled.div`\n position: relative;\n width: 0.8em;\n text-align: center;\n overflow: hidden;\n ${props => sizeStyle(props)};\n`;\n\nStyledDigitalDigit.defaultProps = {};\nObject.setPrototypeOf(StyledDigitalDigit.defaultProps, defaultProps);\n\nconst previousUp = keyframes`\n 0% { transform: translateY(0); }\n 100% { transform: translateY(-100%); }\n`;\n\nconst previousDown = keyframes`\n 0% { transform: translateY(0); }\n 100% { transform: translateY(100%); }\n`;\n\nconst StyledDigitalPrevious = styled.div`\n position: absolute;\n top: 0;\n left: 0;\n width: 0.8em;\n text-align: center;\n animation: ${props =>\n props.direction === 'down' ? previousDown : previousUp}\n 0.5s forwards;\n`;\n\nStyledDigitalPrevious.defaultProps = {};\nObject.setPrototypeOf(StyledDigitalPrevious.defaultProps, defaultProps);\n\nconst nextUp = keyframes`\n 0% { transform: translateY(100%); }\n 100% { transform: translateY(0); }\n`;\n\nconst nextDown = keyframes`\n 0% { transform: translateY(-100%); }\n 100% { transform: translateY(0); }\n`;\n\nconst StyledDigitalNext = styled.div`\n position: absolute;\n top: 0;\n left: 0;\n width: 0.8em;\n text-align: center;\n animation: ${props => (props.direction === 'down' ? nextDown : nextUp)} 0.5s\n forwards;\n`;\n\nStyledDigitalNext.defaultProps = {};\nObject.setPrototypeOf(StyledDigitalNext.defaultProps, defaultProps);\n\nexport {\n StyledHour,\n StyledMinute,\n StyledSecond,\n StyledAnalog,\n StyledDigitalDigit,\n StyledDigitalPrevious,\n StyledDigitalNext,\n};\n","import React, { useContext } from 'react';\nimport { ThemeContext } from 'styled-components';\nimport { normalizeColor, parseMetricToNum } from '../../utils';\n\nconst Swatch = ({ aspect, color, point, thickness }) => {\n const theme = useContext(ThemeContext);\n const dim = parseInt(theme.global.spacing, 10) / 2;\n const half = dim / 2;\n let width = dim;\n let content;\n if (aspect === 'x')\n content = ;\n else if (aspect === 'y')\n content = ;\n else if (aspect === 'thickness')\n content = (\n \n \n \n \n );\n else if (aspect === 'color')\n content = (\n \n \n \n \n );\n else if (point === 'circle')\n content = ;\n else {\n let d;\n if (point === 'diamond')\n d = `M ${half} 0 L ${dim} ${half} L ${half} ${dim} L 0 ${half} Z`;\n else if (point === 'star') {\n const off1 = half / 3;\n const off2 = off1 * 2;\n d = `M ${half} 0 L ${half - off2} ${dim} L ${dim} ${half -\n off1} L 0 ${half - off1} L ${half + off2} ${dim} Z`;\n } else if (point === 'triangle')\n d = `M ${half} 0 L ${dim} ${dim} L 0 ${dim} Z`;\n else if (point === 'triangleDown')\n d = `M 0 0 L ${dim} 0 L ${half} ${dim} Z`;\n else if (point === 'square')\n d = `M 0 0 L ${dim} 0 L ${dim} ${dim} L 0 ${dim} Z`;\n // TODO: dash\n else if (thickness) {\n width = parseMetricToNum(theme.global.edgeSize[thickness]) || dim;\n d = `M 0 0 L ${width} 0 L ${width} ${dim} L 0 ${dim} Z`;\n } // box\n else d = `M 0 0 L ${dim} 0 L ${dim} ${dim} L 0 ${dim} Z`;\n content = ;\n }\n const opacity =\n color && color.opacity ? theme.global.opacity[color.opacity] : undefined;\n return (\n \n {content}\n \n );\n};\n\nexport { Swatch };\n","export { Nav } from './Nav';\n","export { Form } from './Form';\nexport { FormContext } from './FormContext';\n","export { MaskedInput } from './MaskedInput';\n","export { RadioButtonGroup } from './RadioButtonGroup';\n","export { RadioButton } from './RadioButton';\n","export { base, generate } from './base';\nexport { grommet } from './grommet';\nexport { dark } from './dark';\n","import React from 'react';\n\nexport const OptionsContext = React.createContext({});\n","export { Image } from './Image';\n","import styled, { css, keyframes } from 'styled-components';\n\nimport {\n baseStyle,\n backgroundStyle,\n breakpointStyle,\n parseMetricToNum,\n} from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst hiddenPositionStyle = css`\n left: -100%;\n right: 100%;\n z-index: -1;\n position: fixed;\n`;\n\nconst desktopLayerStyle = `\n position: fixed;\n top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n`;\n\nconst responsiveLayerStyle = `\n position: fixed;\n width: 100%;\n height: 100%;\n min-height: 100vh;\n`;\n\nconst StyledLayer = styled.div`\n ${baseStyle}\n background: transparent;\n position: relative;\n z-index: ${(props) => props.theme.layer.zIndex};\n pointer-events: none;\n outline: none;\n\n ${(props) => {\n if (props.position === 'hidden') {\n return hiddenPositionStyle;\n }\n const styles = [];\n styles.push(desktopLayerStyle);\n if (\n props.responsive &&\n props.theme.layer.responsiveBreakpoint &&\n !props.layerTarget\n ) {\n const breakpoint =\n props.theme.global.breakpoints[props.theme.layer.responsiveBreakpoint];\n styles.push(breakpointStyle(breakpoint, responsiveLayerStyle));\n }\n return styles;\n }}\n ${(props) => props.theme.layer && props.theme.layer.extend};\n`;\n\nStyledLayer.defaultProps = {};\nObject.setPrototypeOf(StyledLayer.defaultProps, defaultProps);\n\nconst StyledOverlay = styled.div`\n position: absolute;\n ${(props) => {\n if (props.responsive && props.theme.layer.responsiveBreakpoint) {\n const breakpoint =\n props.theme.global.breakpoints[props.theme.layer.responsiveBreakpoint];\n return breakpointStyle(breakpoint, 'position: relative;');\n }\n return '';\n }} top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n ${(props) =>\n !props.plain &&\n props.theme.layer.overlay.background &&\n backgroundStyle(\n props.theme.layer.overlay.background,\n props.theme,\n )} pointer-events: all;\n // necessary so overlay doesn't get repainted on scroll\n // improves scroll performance\n // https://dev.opera.com/articles/css-will-change-property/\n will-change: transform;\n`;\n\nconst getMargin = (margin, theme, position) => {\n const axis =\n position.indexOf('top') !== -1 || position.indexOf('bottom') !== -1\n ? 'vertical'\n : 'horizontal';\n const marginValue = margin[position] || margin[axis] || margin;\n const marginApplied = theme.global.edgeSize[marginValue] || marginValue;\n const marginInTheme = !!theme.global.edgeSize[marginValue];\n\n return !marginInTheme && typeof marginValue !== 'string'\n ? 0\n : parseMetricToNum(marginApplied);\n};\n\nconst getBounds = (bounds, margin, theme, position = undefined) => {\n if (position) {\n return bounds[position] + getMargin(margin, theme, position);\n }\n return {\n bottom: bounds.bottom + getMargin(margin, theme, 'bottom'),\n // 'bottom-left': getMargin(margin, theme, 'bottom-left'),\n // 'bottom-right': getMargin(margin, theme, 'bottom-right'),\n end: bounds.right + getMargin(margin, theme, 'end'),\n left: bounds.left + getMargin(margin, theme, 'left'),\n right: bounds.right + getMargin(margin, theme, 'right'),\n start: bounds.left + getMargin(margin, theme, 'start'),\n top: bounds.top + getMargin(margin, theme, 'top'),\n // 'top-right': getMargin(margin, theme, 'top-right'),\n // 'top-left': getMargin(margin, theme, 'top-left'),\n };\n};\n\nconst KEYFRAMES = {\n center: {\n vertical: keyframes`\n 0% { transform: translateX(-50%) scale(0.8); }\n 100% { transform: translateX(-50%) scale(1); }\n `,\n horizontal: keyframes`\n 0% { transform: translateY(-50%) scale(0.8); }\n 100% { transform: translateY(-50) scale(1); }\n `,\n true: keyframes`\n 0% { transform: scale(0.8); }\n 100% { transform: scale(1); }\n `,\n false: keyframes`\n 0% { transform: translate(-50%, -50%) scale(0.8); }\n 100% { transform: translate(-50%, -50%) scale(1); }\n `,\n },\n top: {\n vertical: keyframes`\n 0% { transform: translate(-50%, -100%); }\n 100% { transform: translate(-50%, 0); }\n `,\n horizontal: keyframes`\n 0% { transform: translateY(-100%); }\n 100% { transform: translateY(0); }\n `,\n true: keyframes`\n 0% { transform: translateY(-100%); }\n 100% { transform: translateY(0); }\n `,\n false: keyframes`\n 0% { transform: translate(-50%, -100%); }\n 100% { transform: translate(-50%, 0); }\n `,\n },\n bottom: {\n vertical: keyframes`\n 0% { transform: translate(-50%, 100%); }\n 100% { transform: translate(-50%, 0); }\n `,\n horizontal: keyframes`\n 0% { transform: translateY(100%); }\n 100% { transform: translateY(0); }\n `,\n true: keyframes`\n 0% { transform: translateY(100%); }\n 100% { transform: translateY(0); }\n `,\n false: keyframes`\n 0% { transform: translate(-50%, 100%); }\n 100% { transform: translate(-50%, 0); }\n `,\n },\n left: {\n vertical: keyframes`\n 0% { transform: translateX(-100%); }\n 100% { transform: translateX(0); }\n `,\n horizontal: keyframes`\n 0% { transform: translate(-100%, -50%); }\n 100% { transform: translate(0, -50%); }\n `,\n true: keyframes`\n 0% { transform: translateX(-100%); }\n 100% { transform: translateX(0); }\n `,\n false: keyframes`\n 0% { transform: translate(-100%, -50%); }\n 100% { transform: translate(0, -50%); }\n `,\n },\n right: {\n vertical: keyframes`\n 0% { transform: translateX(100%); }\n 100% { transform: translateX(0); }\n `,\n horizontal: keyframes`\n 0% { transform: translate(100%, -50%); }\n 100% { transform: translate(0, -50%); }\n `,\n true: keyframes`\n 0% { transform: translateX(100%); }\n 100% { transform: translateX(0); }\n `,\n false: keyframes`\n 0% { transform: translate(100%, -50%); }\n 100% { transform: translate(0, -50%); }\n `,\n },\n start: {\n vertical: keyframes`\n 0% { transform: translateX(-100%); }\n 100% { transform: translateX(0); }\n `,\n horizontal: keyframes`\n 0% { transform: translate(-100%, -50%); }\n 100% { transform: translate(0, -50%); }\n `,\n true: keyframes`\n 0% { transform: translateX(-100%); }\n 100% { transform: translateX(0); }\n `,\n false: keyframes`\n 0% { transform: translate(-100%, -50%); }\n 100% { transform: translate(0, -50%); }\n `,\n },\n end: {\n vertical: keyframes`\n 0% { transform: translateX(100%); }\n 100% { transform: translateX(0); }\n `,\n horizontal: keyframes`\n 0% { transform: translate(100%, -50%); }\n 100% { transform: translate(0, -50%); }\n `,\n true: keyframes`\n 0% { transform: translateX(100%); }\n 100% { transform: translateX(0); }\n `,\n false: keyframes`\n 0% { transform: translate(100%, -50%); }\n 100% { transform: translate(0, -50%); }\n `,\n },\n};\n\nconst animationDuration = 200;\n\nconst getAnimationStyle = (props, position, full) => {\n let animation =\n props.animation !== undefined ? props.animation : props.animate;\n if (animation === undefined) animation = 'slide';\n let keys;\n if (animation === 'slide' || animation === true) {\n keys = KEYFRAMES[position][full];\n } else if (animation === 'fadeIn') {\n keys = keyframes`0% { opacity: 0 } 100% { opacity: 1 }`;\n }\n return keys\n ? css`\n animation: ${keys} ${animationDuration / 1000.0}s ease-in-out forwards;\n `\n : '';\n};\n\n// POSITIONS combines 'position', 'full', and 'margin' properties, since\n// they are all interdependent.\n// Basically, non-full axes combine 50% position with -50% translation.\n// full axes pin to the window edges offset by any margin.\n// The keyframe animations are included as they are done via translations\n// as well so they must take into account the non-animated positioning.\nconst POSITIONS = {\n center: {\n vertical: (bounds) => css`\n top: ${bounds.top}px;\n bottom: ${bounds.bottom}px;\n left: 50%;\n transform: translateX(-50%);\n ${(props) => getAnimationStyle(props, 'center', 'vertical')}\n `,\n horizontal: (bounds) => css`\n left: ${bounds.left}px;\n right: ${bounds.right}px;\n top: 50%;\n transform: translateY(-50%);\n ${(props) => getAnimationStyle(props, 'center', 'horizontal')}\n `,\n true: (bounds) => css`\n top: ${bounds.top}px;\n bottom: ${bounds.bottom}px;\n left: ${bounds.left}px;\n right: ${bounds.right}px;\n ${(props) => getAnimationStyle(props, 'center', 'true')}\n `,\n false: () => css`\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n ${(props) => getAnimationStyle(props, 'center', 'false')}\n `,\n },\n\n top: {\n vertical: (bounds) => css`\n top: ${bounds.top}px;\n bottom: ${bounds.bottom}px;\n left: 50%;\n transform: translate(-50%, 0%);\n ${(props) => getAnimationStyle(props, 'top', 'vertical')}\n `,\n horizontal: (bounds) => css`\n left: ${bounds.left}px;\n right: ${bounds.right}px;\n top: ${bounds.top}px;\n transform: translateY(0);\n ${(props) => getAnimationStyle(props, 'top', 'horizontal')}\n `,\n true: (bounds) => css`\n top: ${bounds.top}px;\n bottom: ${bounds.bottom}px;\n left: ${bounds.left}px;\n right: ${bounds.right}px;\n transform: translateY(0);\n ${(props) => getAnimationStyle(props, 'top', 'true')}\n `,\n false: (bounds) => css`\n top: ${bounds.top}px;\n left: 50%;\n transform: translate(-50%, 0);\n ${(props) => getAnimationStyle(props, 'top', 'false')}\n `,\n },\n\n bottom: {\n vertical: (bounds) => css`\n top: ${bounds.top}px;\n bottom: ${bounds.bottom}px;\n left: 50%;\n transform: translate(-50%, 0);\n ${(props) => getAnimationStyle(props, 'bottom', 'vertical')}\n `,\n horizontal: (bounds) => css`\n left: ${bounds.left}px;\n right: ${bounds.top}px;\n bottom: ${bounds.bottom}px;\n transform: translateY(0);\n ${(props) => getAnimationStyle(props, 'bottom', 'horizontal')}\n `,\n true: (bounds) => css`\n top: ${bounds.top}px;\n bottom: ${bounds.bottom}px;\n left: ${bounds.left}px;\n right: ${bounds.right}px;\n transform: translateY(0);\n ${(props) => getAnimationStyle(props, 'bottom', 'true')}\n `,\n false: (bounds) => css`\n bottom: ${bounds.bottom}px;\n left: 50%;\n transform: translate(-50%, 0);\n ${(props) => getAnimationStyle(props, 'bottom', 'false')}\n `,\n },\n\n left: {\n vertical: (bounds) => css`\n top: ${bounds.top}px;\n bottom: ${bounds.bottom}px;\n left: ${bounds.left}px;\n transform: translateX(0);\n ${(props) => getAnimationStyle(props, 'left', 'vertical')}\n `,\n horizontal: (bounds) => css`\n left: ${bounds.left}px;\n right: ${bounds.right}px;\n top: 50%;\n transform: translate(0, -50%);\n ${(props) => getAnimationStyle(props, 'left', 'horizontal')}\n `,\n true: (bounds) => css`\n top: ${bounds.top}px;\n bottom: ${bounds.bottom}px;\n left: ${bounds.left}px;\n right: ${bounds.right}px;\n transform: translateX(0);\n ${(props) => getAnimationStyle(props, 'left', 'true')}\n `,\n false: (bounds) => css`\n left: ${bounds.left}px;\n top: 50%;\n transform: translate(0, -50%);\n ${(props) => getAnimationStyle(props, 'left', 'false')}\n `,\n },\n\n right: {\n vertical: (bounds) => css`\n top: ${bounds.top}px;\n bottom: ${bounds.bottom}px;\n right: ${bounds.right}px;\n transform: translateX(0);\n ${(props) => getAnimationStyle(props, 'right', 'vertical')}\n `,\n horizontal: (bounds) => css`\n left: ${bounds.left}px;\n right: ${bounds.right}px;\n top: 50%;\n transform: translate(0, -50%);\n ${(props) => getAnimationStyle(props, 'right', 'horizontal')}\n `,\n true: (bounds) => css`\n top: ${bounds.top}px;\n bottom: ${bounds.bottom}px;\n left: ${bounds.left}px;\n right: ${bounds.right}px;\n transform: translateX(0);\n ${(props) => getAnimationStyle(props, 'right', 'true')}\n `,\n false: (bounds) => css`\n right: ${bounds.right}px;\n top: 50%;\n transform: translate(0, -50%);\n ${(props) => getAnimationStyle(props, 'right', 'false')}\n `,\n },\n\n start: {\n vertical: (bounds) => css`\n top: ${bounds.top}px;\n bottom: ${bounds.bottom}px;\n inset-inline-start: ${bounds.start}px;\n transform: translateX(0);\n ${(props) => getAnimationStyle(props, 'start', 'vertical')}\n `,\n horizontal: (bounds) => css`\n inset-inline-start: ${bounds.start}px;\n inset-inline-end: ${bounds.end}px;\n top: 50%;\n transform: translate(0, -50%);\n ${(props) => getAnimationStyle(props, 'start', 'horizontal')}\n `,\n true: (bounds) => css`\n top: ${bounds.top}px;\n bottom: ${bounds.bottom}px;\n inset-inline-start: ${bounds.start}px;\n inset-inline-end: ${bounds.end}px;\n transform: translateX(0);\n ${(props) => getAnimationStyle(props, 'start', 'true')}\n `,\n false: (bounds) => css`\n inset-inline-start: ${bounds.start}px;\n top: 50%;\n transform: translate(0, -50%);\n ${(props) => getAnimationStyle(props, 'start', 'false')}\n `,\n },\n\n end: {\n vertical: (bounds) => css`\n top: ${bounds.top}px;\n bottom: ${bounds.bottom}px;\n inset-inline-end: ${bounds.end}px;\n transform: translateX(0);\n ${(props) => getAnimationStyle(props, 'end', 'vertical')}\n `,\n horizontal: (bounds) => css`\n inset-inline-start: ${bounds.start}px;\n inset-inline-end: ${bounds.end}px;\n top: 50%;\n transform: translate(0, -50%);\n ${(props) => getAnimationStyle(props, 'end', 'horizontal')}\n `,\n true: (bounds) => css`\n top: ${bounds.top}px;\n bottom: ${bounds.bottom}px;\n inset-inline-start: ${bounds.start}px;\n inset-inline-end: ${bounds.end}px;\n transform: translateX(0);\n ${(props) => getAnimationStyle(props, 'end', 'true')}\n `,\n false: (bounds) => css`\n inset-inline-end: ${bounds.end}px;\n top: 50%;\n transform: translate(0, -50%);\n ${(props) => getAnimationStyle(props, 'end', 'false')}\n `,\n },\n\n 'top-right': {\n vertical: (bounds) => css`\n top: ${bounds.top}px;\n bottom: ${bounds.bottom}px;\n right: ${bounds.right}px;\n transform: translateX(0);\n ${(props) => getAnimationStyle(props, 'top', 'true')};\n `,\n horizontal: (bounds) => css`\n left: ${bounds.left}px;\n right: ${bounds.right}px;\n top: 0;\n transform: translateX(0);\n ${(props) => getAnimationStyle(props, 'top', 'true')};\n `,\n true: (bounds) => css`\n top: ${bounds.top}px;\n bottom: ${bounds.bottom}px;\n left: ${bounds.left}px;\n right: ${bounds.right}px;\n transform: translateX(0);\n ${(props) => getAnimationStyle(props, 'top', 'true')};\n `,\n false: (bounds) => css`\n top: ${bounds.top}px;\n right: ${bounds.right}px;\n transform: translateY(0);\n ${(props) => getAnimationStyle(props, 'top', 'true')};\n `,\n },\n\n 'top-left': {\n vertical: (bounds) => css`\n top: ${bounds.top}px;\n bottom: ${bounds.bottom}px;\n left: ${bounds.left}px;\n transform: translateX(0);\n ${(props) => getAnimationStyle(props, 'top', 'true')}\n `,\n horizontal: (bounds) => css`\n left: ${bounds.left}px;\n right: ${bounds.right}px;\n top: 0;\n transform: translateX(0);\n ${(props) => getAnimationStyle(props, 'top', 'true')}\n `,\n true: (bounds) => css`\n top: ${bounds.top}px;\n bottom: ${bounds.bottom}px;\n left: ${bounds.left}px;\n right: ${bounds.right}px;\n transform: translateX(0);\n ${(props) => getAnimationStyle(props, 'top', 'true')}\n `,\n false: (bounds) => css`\n top: ${bounds.top}px;\n left: ${bounds.left}px;\n transform: translateY(0);\n ${(props) => getAnimationStyle(props, 'top', 'true')}\n `,\n },\n\n 'bottom-right': {\n vertical: (bounds) => css`\n top: ${bounds.top}px;\n bottom: ${bounds.bottom}px;\n right: ${bounds.right}px;\n transform: translateX(0);\n ${(props) => getAnimationStyle(props, 'bottom', 'true')}\n `,\n horizontal: (bounds) => css`\n left: ${bounds.left}px;\n right: ${bounds.right}px;\n bottom: ${bounds.bottom}px;\n transform: translateY(0);\n ${(props) => getAnimationStyle(props, 'bottom', 'true')}\n `,\n true: (bounds) => css`\n top: ${bounds.top}px;\n bottom: ${bounds.bottom}px;\n left: ${bounds.left}px;\n right: ${bounds.right}px;\n transform: translateX(0);\n ${(props) => getAnimationStyle(props, 'bottom', 'true')}\n `,\n false: (bounds) => css`\n bottom: ${bounds.bottom}px;\n right: ${bounds.right}px;\n transform: translateY(0);\n ${(props) => getAnimationStyle(props, 'bottom', 'true')}\n `,\n },\n\n 'bottom-left': {\n vertical: (bounds) => css`\n top: ${bounds.top}px;\n bottom: ${bounds.bottom}px;\n left: ${bounds.left}px;\n transform: translateX(0);\n ${(props) => getAnimationStyle(props, 'bottom', 'true')}\n `,\n horizontal: (bounds) => css`\n left: ${bounds.left}px;\n right: ${bounds.right}px;\n bottom: ${bounds.bottom}px;\n transform: translateY(0);\n ${(props) => getAnimationStyle(props, 'bottom', 'true')}\n `,\n true: (bounds) => css`\n top: ${bounds.top}px;\n bottom: ${bounds.bottom}px;\n left: ${bounds.left}px;\n right: ${bounds.right}px;\n transform: translateX(0);\n ${(props) => getAnimationStyle(props, 'bottom', 'true')}\n `,\n false: (bounds) => css`\n bottom: ${bounds.bottom}px;\n left: ${bounds.left}px;\n transform: translateY(0);\n ${(props) => getAnimationStyle(props, 'bottom', 'true')}\n `,\n },\n};\n\nconst roundStyle = (data, theme, position, margin) => {\n const styles = [];\n const size = data === true ? 'medium' : data;\n const round = theme.global.edgeSize[size] || size;\n // if user provides CSS string such as '50px 12px', apply that always\n const customCSS = round.split(' ').length > 1;\n\n if (\n margin === 'none' &&\n !customCSS &&\n theme.layer.border.intelligentRounding === true\n ) {\n if (position === 'bottom') {\n styles.push(\n css`\n border-radius: ${round} ${round} 0 0;\n `,\n );\n } else if (position === 'bottom-left') {\n styles.push(\n css`\n border-radius: 0 ${round} 0 0;\n `,\n );\n } else if (position === 'bottom-right') {\n styles.push(\n css`\n border-radius: ${round} 0 0 0;\n `,\n );\n } else if (position === 'end') {\n // only works on Firefox, what should be fallback?\n styles.push(css`\n border-start-start-radius: ${round};\n border-end-start-radius: ${round};\n `);\n } else if (position === 'left') {\n styles.push(\n css`\n border-radius: 0 ${round} ${round} 0;\n `,\n );\n } else if (position === 'right') {\n styles.push(\n css`\n border-radius: ${round} 0 0 ${round};\n `,\n );\n } else if (position === 'start') {\n // only works on Firefox, what should be fallback?\n styles.push(css`\n border-end-end-radius: ${round};\n border-start-end-radius: ${round};\n `);\n } else if (position === 'top') {\n styles.push(\n css`\n border-radius: 0 0 ${round} ${round};\n `,\n );\n } else if (position === 'top-left') {\n styles.push(\n css`\n border-radius: 0 0 ${round} 0;\n `,\n );\n } else if (position === 'top-right') {\n styles.push(\n css`\n border-radius: 0 0 0 ${round};\n `,\n );\n } else {\n // position is center, apply uniform border-radius\n styles.push(\n css`\n border-radius: ${round};\n `,\n );\n }\n } else {\n // if there's a margin apply uniform border-radius, or if user has supplied\n // a complex CSS string such as \"50px 20px\" apply this\n styles.push(css`\n border-radius: ${round};\n `);\n }\n\n return styles;\n};\n\nconst bounds = { left: 0, right: 0, top: 0, bottom: 0 };\n\nconst desktopContainerStyle = css`\n ${(props) => {\n if (!props.modal && props.position === 'hidden') {\n return hiddenPositionStyle;\n }\n return css`\n // when there is a target (modal or non-modal) we need to position\n // layer with respect to the target's position\n // ensures positioning and animations stay aligned\n position: ${props.modal || props.layerTarget ? 'absolute' : 'fixed'};\n `;\n }}\n max-height: ${(props) =>\n `calc(100% - ${getBounds(\n bounds,\n props.margin,\n props.theme,\n 'top',\n )}px - ${getBounds(bounds, props.margin, props.theme, 'bottom')}px)`};\n max-width: ${(props) =>\n `calc(100% - ${getBounds(\n bounds,\n props.margin,\n props.theme,\n 'left',\n )}px - ${getBounds(bounds, props.margin, props.theme, 'right')}px)`};\n ${(props) =>\n props.plain || (props.full && props.margin === 'none')\n ? `border-radius: 0;`\n : roundStyle(\n props.theme.layer.border.radius,\n props.theme,\n props.position,\n props.margin,\n )};\n ${(props) =>\n (props.position !== 'hidden' &&\n POSITIONS[props.position][props.full](\n getBounds(bounds, props.margin, props.theme),\n bounds,\n )) ||\n ''};\n`;\n\nconst responsiveContainerStyle = (props) => css`\n position: relative;\n max-height: none;\n max-width: none;\n border-radius: 0;\n height: ${!props.layerTarget ? '100vh' : '100%'};\n width: ${!props.layerTarget ? '100vw' : '100%'};\n`;\n\nconst elevationStyle = css`\n box-shadow: ${(props) =>\n props.theme.global.elevation[props.theme.dark ? 'dark' : 'light'][\n props.theme.layer.container.elevation\n ]};\n`;\n\nconst StyledContainer = styled.div.withConfig({\n // don't let elevation leak to DOM\n // https://styled-components.com/docs/api#shouldforwardprop\n shouldForwardProp: (prop, defaultValidatorFn) =>\n !['elevation'].includes(prop) && defaultValidatorFn(prop),\n})`\n ${(props) => (!props.modal ? baseStyle : '')}\n display: flex;\n flex-direction: column;\n min-height: ${(props) => props.theme.global.size.xxsmall};\n ${(props) =>\n !props.plain &&\n (props.background || props.theme.layer.background) &&\n backgroundStyle(\n props.background || props.theme.layer.background,\n props.theme,\n )} outline: none;\n pointer-events: all;\n z-index: ${(props) => props.theme.layer.container.zIndex};\n ${(props) =>\n !props.plain && props.theme.layer.container.elevation && elevationStyle}\n ${desktopContainerStyle}\n ${(props) => {\n if (props.responsive && props.theme.layer.responsiveBreakpoint) {\n const breakpoint =\n props.theme.global.breakpoints[props.theme.layer.responsiveBreakpoint];\n if (breakpoint) {\n return breakpointStyle(breakpoint, responsiveContainerStyle);\n }\n }\n return '';\n }};\n ${(props) =>\n props.theme.layer.container && props.theme.layer.container.extend};\n`;\n\nStyledContainer.defaultProps = {};\nObject.setPrototypeOf(StyledContainer.defaultProps, defaultProps);\n\nexport { animationDuration, StyledLayer, StyledOverlay, StyledContainer };\n","export { Menu } from './Menu';\n","export { Meter } from './Meter';\n","import styled, { css } from 'styled-components';\n\nimport { genericStyles } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst roundStyle = css`\n border-radius: ${props => props.theme.global.edgeSize[props.round.size]};\n`;\n\n// overflow: hidden is needed for ie11\nconst StyledMeter = styled.svg`\n max-width: 100%;\n overflow: hidden;\n\n ${genericStyles} ${props => props.round && roundStyle}\n\n path {\n transition: stroke 0.3s, stroke-width 0.3s;\n }\n\n ${props => props.theme.meter && props.theme.meter.extend};\n`;\n\nStyledMeter.defaultProps = {};\nObject.setPrototypeOf(StyledMeter.defaultProps, defaultProps);\n\nexport { StyledMeter };\n","import { normalizeColor } from '../../utils';\n\nexport const strokeProps = (color, theme) => {\n const result = {};\n if (color) {\n if (typeof color === 'object') {\n result.stroke = normalizeColor(color.color, theme);\n if (color.opacity) {\n result.strokeOpacity = `${\n color.opacity === true\n ? theme.global.opacity.medium\n : theme.global.opacity[color.opacity] || color.opacity\n }`;\n }\n } else {\n result.stroke = normalizeColor(color, theme);\n }\n }\n return result;\n};\n\nconst neutralExp = /^neutral-\\d+/;\n\nexport const defaultColor = (index, theme, valuesLength) => {\n if (index === valuesLength - 1 && theme.meter.color) {\n return theme.meter.color;\n }\n // We want the last value to have the first color\n const colorIndex = valuesLength - index - 1;\n if (theme.meter && theme.meter.colors) {\n const colors =\n theme.meter.colors[theme.dark ? 'dark' : 'light'] || theme.meter.colors;\n return colors[colorIndex % colors.length];\n }\n const colors = Object.keys(theme.global.colors).filter(n =>\n n.match(/^graph-[0-9]$/),\n );\n if (colors.length > 0) {\n return colors[colorIndex % colors.length];\n }\n // Deprecate using \"neutral-*\" color names. Remove eventually.\n const neutralColors = Object.keys(theme.global.colors).filter(k =>\n neutralExp.test(k),\n );\n return neutralColors[colorIndex % neutralColors.length];\n};\n","export { Page } from './Page';\nexport { PageContext } from './PageContext';\n","import { createContext } from 'react';\n\nexport const PageContext = createContext({});\n","import React from 'react';\n\nexport const NameValueListContext = React.createContext({});\n","export const applyKey = (option, key) => {\n if (option === undefined) return undefined;\n if (typeof key === 'object') return applyKey(option, key.key);\n if (typeof key === 'function') return key(option);\n if (key !== undefined) return option[key];\n return option;\n};\n","import React from 'react';\n\nexport const TabsContext = React.createContext({});\n","export * from './components';\nexport * from './contexts';\nexport * from './default-props';\nexport * from './themes';\n","export * from './Accordion';\nexport * from './AccordionPanel';\nexport * from './Anchor';\nexport * from './Avatar';\nexport * from './Box';\nexport * from './Button';\nexport * from './Calendar';\nexport * from './Card';\nexport * from './CardBody';\nexport * from './CardFooter';\nexport * from './CardHeader';\nexport * from './Carousel';\nexport * from './CheckBoxGroup';\nexport * from './Chart';\nexport * from './CheckBox';\nexport * from './Clock';\nexport * from './Collapsible';\nexport * from './DataChart';\nexport * from './DataTable';\nexport * from './DateInput';\nexport * from './Diagram';\nexport * from './Distribution';\nexport * from './Drop';\nexport * from './DropButton';\nexport * from './FileInput';\nexport * from './Footer';\nexport * from './Form';\nexport * from './FormField';\nexport * from './Grid';\nexport * from './Grommet';\nexport * from './Header';\nexport * from './Heading';\nexport * from './Image';\nexport * from './InfiniteScroll';\nexport * from './Keyboard';\nexport * from './Layer';\nexport * from './List';\nexport * from './Main';\nexport * from './Markdown';\nexport * from './MaskedInput';\nexport * from './Menu';\nexport * from './Meter';\nexport * from './Page';\nexport * from './PageContent';\nexport * from './Pagination';\nexport * from './Paragraph';\nexport * from './NameValuePair';\nexport * from './NameValueList';\nexport * from './Nav';\nexport * from './Notification';\nexport * from './RadioButton';\nexport * from './RadioButtonGroup';\nexport * from './RangeInput';\nexport * from './RangeSelector';\nexport * from './RoutedAnchor';\nexport * from './RoutedButton';\nexport * from './Select';\nexport * from './Sidebar';\nexport * from './SkipLink';\nexport * from './SkipLinks';\nexport * from './SkipLinkTarget';\nexport * from './Spinner';\nexport * from './Stack';\nexport * from './Table';\nexport * from './TableBody';\nexport * from './TableCell';\nexport * from './TableFooter';\nexport * from './TableHeader';\nexport * from './TableRow';\nexport * from './Tab';\nexport * from './Tabs';\nexport * from './Tag';\nexport * from './Text';\nexport * from './TextArea';\nexport * from './TextInput';\nexport * from './Tip';\nexport * from './Video';\nexport * from './WorldMap';\n","export { Accordion } from './Accordion';\n","import React, { Children, forwardRef, useCallback, useState } from 'react';\nimport { AccordionPropTypes } from './propTypes';\nimport { Box } from '../Box';\n\nimport { AccordionContext } from './AccordionContext';\n\nconst activeAsArray = (active) =>\n typeof active === 'number' ? [active] : active;\n\nconst Accordion = forwardRef(\n (\n { activeIndex, animate = true, children, multiple, onActive, ...rest },\n ref,\n ) => {\n const [activeIndexes, setActiveIndexes] = useState([]);\n const [stateActiveIndex, setStateActiveIndex] = useState();\n\n // Derived state from props\n // https://reactjs.org/docs/hooks-faq.html#how-do-i-implement-getderivedstatefromprops\n const derivedActiveIndexes = activeAsArray(activeIndex) || [];\n if (\n (typeof activeIndex !== 'undefined' ||\n activeIndex !== stateActiveIndex) &&\n derivedActiveIndexes.join() !== activeIndexes.join()\n ) {\n setActiveIndexes(derivedActiveIndexes);\n setStateActiveIndex(activeIndex);\n }\n\n const getAccordionContext = useCallback(\n (index) => {\n const onPanelChange = (nextIndex) => {\n let nextActiveIndexes = [...(activeIndexes || [])];\n\n const nextActiveIndex = nextActiveIndexes.indexOf(nextIndex);\n if (nextActiveIndex > -1) {\n nextActiveIndexes.splice(nextActiveIndex, 1);\n } else if (multiple) {\n nextActiveIndexes.push(nextIndex);\n } else {\n nextActiveIndexes = [nextIndex];\n }\n\n setActiveIndexes(nextActiveIndexes);\n if (onActive) {\n onActive(nextActiveIndexes);\n }\n };\n\n return {\n active: activeIndexes.indexOf(index) > -1,\n animate,\n onPanelChange: () => onPanelChange(index),\n };\n },\n [activeIndexes, animate, multiple, onActive],\n );\n\n return (\n \n {Children.toArray(children)\n .filter((child) => child)\n .map((child, index) => (\n \n {child}\n \n ))}\n \n );\n },\n);\n\nAccordion.propTypes = AccordionPropTypes;\n\nexport { Accordion };\n","import PropTypes from 'prop-types';\nimport { genericProps } from '../../utils/general-prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n ...genericProps,\n activeIndex: PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.arrayOf(PropTypes.number),\n ]),\n animate: PropTypes.bool,\n children: PropTypes.node,\n onActive: PropTypes.func,\n multiple: PropTypes.bool,\n messages: PropTypes.shape({\n tabContents: PropTypes.string,\n }),\n };\n}\nexport const AccordionPropTypes = PropType;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","import React, {\n Children,\n forwardRef,\n useContext,\n useMemo,\n useState,\n} from 'react';\n\nimport { ThemeContext } from 'styled-components';\nimport { defaultProps } from '../../default-props';\nimport { backgroundIsDark } from '../../utils';\nimport { Keyboard } from '../Keyboard';\n\nimport { StyledBox, StyledBoxGap } from './StyledBox';\nimport { BoxPropTypes } from './propTypes';\n\nconst Box = forwardRef(\n (\n {\n a11yTitle,\n background,\n border,\n children,\n direction = 'column',\n elevation, // munged to avoid styled-components putting it in the DOM\n fill, // munged to avoid styled-components putting it in the DOM\n gap,\n kind, // munged to avoid styled-components putting it in the DOM\n onBlur,\n onClick,\n onFocus,\n overflow, // munged to avoid styled-components putting it in the DOM\n responsive = true,\n tag,\n as,\n wrap, // munged to avoid styled-components putting it in the DOM,\n width, // munged to avoid styled-components putting it in the DOM\n height, // munged to avoid styled-components putting it in the DOM\n tabIndex,\n ...rest\n },\n ref,\n ) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n\n const focusable = useMemo(\n () => onClick && !(tabIndex < 0),\n [onClick, tabIndex],\n );\n\n const [focus, setFocus] = useState();\n\n const clickProps = useMemo(() => {\n if (focusable) {\n return {\n onClick,\n onFocus: (event) => {\n setFocus(true);\n if (onFocus) onFocus(event);\n },\n onBlur: (event) => {\n setFocus(false);\n if (onBlur) onBlur(event);\n },\n };\n }\n const result = {};\n if (onBlur) result.onBlur = onBlur;\n if (onClick) result.onClick = onClick;\n if (onFocus) result.onFocus = onFocus;\n return result;\n }, [focusable, onClick, onFocus, onBlur]);\n\n const adjustedTabIndex = useMemo(() => {\n if (tabIndex !== undefined) return tabIndex;\n if (focusable) return 0;\n return undefined;\n }, [focusable, tabIndex]);\n\n if (\n (border === 'between' || (border && border.side === 'between')) &&\n !gap\n ) {\n console.warn('Box must have a gap to use border between');\n }\n\n let contents = children;\n if (gap && gap !== 'none') {\n const boxAs = !as && tag ? tag : as;\n contents = [];\n let firstIndex;\n Children.forEach(children, (child, index) => {\n if (child) {\n if (firstIndex === undefined) {\n firstIndex = index;\n } else {\n contents.push(\n ,\n );\n }\n }\n contents.push(child);\n });\n }\n\n // construct a new theme object in case we have a background that wants\n // to change the background color context\n const nextTheme = useMemo(() => {\n let result;\n if (background || theme.darkChanged) {\n const dark = backgroundIsDark(background, theme);\n const darkChanged = dark !== undefined && dark !== theme.dark;\n if (darkChanged || theme.darkChanged) {\n result = { ...theme };\n result.dark = dark === undefined ? theme.dark : dark;\n result.background = background;\n } else if (background) {\n // This allows DataTable to intelligently set the background\n // of a pinned header or footer.\n result = { ...theme };\n result.background = background;\n }\n }\n return result || theme;\n }, [background, theme]);\n\n let content = (\n \n \n {contents}\n \n \n );\n\n if (onClick) {\n content = {content};\n }\n\n return content;\n },\n);\n\nBox.displayName = 'Box';\nBox.propTypes = BoxPropTypes;\nexport { Box };\n","import { css } from 'styled-components';\nimport { normalizeColor } from './colors';\nimport { breakpointStyle } from './mixins';\n\nexport const responsiveBorderStyle = (data, theme) => {\n const color = normalizeColor(data.color || 'border', theme);\n const borderSize = data.size || 'xsmall';\n const style = data.style || 'solid';\n const side = typeof data === 'string' ? data : data.side || 'all';\n const breakpoint =\n theme.box.responsiveBreakpoint &&\n theme.global.breakpoints[theme.box.responsiveBreakpoint];\n if (!breakpoint.borderSize) breakpoint.borderSize = theme.global.borderSize;\n const value =\n breakpoint &&\n (breakpoint.borderSize[borderSize] || borderSize) &&\n `${style} ${breakpoint.borderSize[borderSize] || borderSize} ${color}`;\n if (!value) return undefined;\n if (\n side === 'top' ||\n side === 'bottom' ||\n side === 'left' ||\n side === 'right'\n )\n return `border-${side}: ${value};`;\n if (side === 'end' || side === 'start')\n return `border-inline-${side}: ${value};`;\n if (side === 'vertical')\n return `\n border-left: ${value};\n border-right: ${value};\n `;\n if (side === 'horizontal')\n return `\n border-top: ${value};\n border-bottom: ${value};\n `;\n if (side === 'between') return undefined; // no-op\n return `border: ${value};`;\n};\n\nexport const borderStyle = (borderData, responsive, theme) => {\n const borderStyles = [];\n\n (Array.isArray(borderData) ? borderData : [borderData]).forEach((data) => {\n const styles = [];\n const color = normalizeColor(data.color || 'border', theme);\n const borderSize = data.size || 'xsmall';\n const style = data.style || 'solid';\n const side = typeof data === 'string' ? data : data.side || 'all';\n const value = `${style} ${\n theme.global.borderSize[borderSize] || borderSize\n } ${color}`;\n const responsiveStyle = responsive && responsiveBorderStyle(data, theme);\n const breakpoint =\n responsiveStyle &&\n theme.box.responsiveBreakpoint &&\n theme.global.breakpoints[theme.box.responsiveBreakpoint];\n if (\n side === 'top' ||\n side === 'bottom' ||\n side === 'left' ||\n side === 'right'\n ) {\n styles.push(`border-${side}: ${value};`);\n if (responsiveStyle) {\n styles.push(breakpointStyle(breakpoint, responsiveStyle));\n }\n } else if (side === 'end' || side === 'start') {\n styles.push(css`border-inline-${side}: ${value};`);\n if (responsiveStyle) {\n styles.push(breakpointStyle(breakpoint, responsiveStyle));\n }\n } else if (side === 'vertical') {\n styles.push(css`\n border-left: ${value};\n border-right: ${value};\n `);\n if (responsiveStyle) {\n styles.push(breakpointStyle(breakpoint, responsiveStyle));\n }\n } else if (side === 'horizontal') {\n styles.push(css`\n border-top: ${value};\n border-bottom: ${value};\n `);\n if (responsiveStyle) {\n styles.push(breakpointStyle(breakpoint, responsiveStyle));\n }\n } else if (side === 'between') {\n // no-op\n } else {\n styles.push(\n css`\n border: ${value};\n `,\n );\n if (responsiveStyle) {\n styles.push(breakpointStyle(breakpoint, responsiveStyle));\n }\n }\n borderStyles.push(styles);\n });\n\n return borderStyles;\n};\n","const POST_DECIMAL_DIGITS = 10;\n\nexport const baseUnit = 24;\n\nexport const polarToCartesian = (centerX, centerY, radius, angleInDegrees) => {\n const angleInRadians = ((angleInDegrees - 90) * Math.PI) / 180.0;\n return {\n x: centerX + radius * Math.cos(angleInRadians),\n y: centerY + radius * Math.sin(angleInRadians),\n };\n};\n\nexport const arcCommands = (centerX, centerY, radius, startAngle, endAngle) => {\n // handle that we can't draw a complete circle\n let normalizedEndAngle = endAngle;\n /* \n added endAngle - startAngle >= 360 \n for SemiCircle the endAngle will never be greater then startAngle \n since it starts with a startAngle of 270.\n */\n if (endAngle > startAngle && endAngle - startAngle >= 360) {\n normalizedEndAngle = startAngle + 359.99;\n }\n const start = polarToCartesian(centerX, centerY, radius, normalizedEndAngle);\n const end = polarToCartesian(centerX, centerY, radius, startAngle);\n const arcSweep = normalizedEndAngle - startAngle <= 180 ? '0' : '1';\n const d = [\n 'M',\n start.x.toFixed(POST_DECIMAL_DIGITS),\n start.y.toFixed(POST_DECIMAL_DIGITS),\n 'A',\n radius.toFixed(POST_DECIMAL_DIGITS),\n radius.toFixed(POST_DECIMAL_DIGITS),\n 0,\n arcSweep,\n 0,\n end.x.toFixed(POST_DECIMAL_DIGITS),\n end.y.toFixed(POST_DECIMAL_DIGITS),\n ].join(' ');\n return d;\n};\n\n/* TranslatedEngAngle will now take the value of the\nstartAngle + anglePer * value and mod by 360. This was added\nto take account the startAngle not being 0. So no matter the\nvalue it will be % 360 to get the correct angle. \n*/\nexport const translateEndAngle = (startAngle, anglePer, value) =>\n Math.max(0, startAngle + anglePer * value) % 360;\n","import { useMemo, useState } from 'react';\n\nexport const normalizeShow = (showProp, step) => {\n let page;\n // by default, show refers to the index of an item,\n // but if using pagination, show can take the form of { page: # },\n // where page refers to the page # to show\n if (typeof showProp === 'number') page = Math.ceil((showProp + 1) / step);\n else if (typeof showProp === 'object' && 'page' in showProp)\n page = showProp.page;\n\n return page;\n};\n\nexport const usePagination = ({ data, page, step, ...rest }) => {\n const totalPages = data ? Math.ceil(data.length / step) : 0;\n const [activePage, setActivePage] = useState(Math.min(page, totalPages) || 1);\n\n // ensure activePage is never lower than 1 to ensure that itemsBeginIndex\n // and itemsEndIndex aren't negative\n if (activePage > totalPages && data?.length > 0)\n setActivePage(Math.max(totalPages, 1));\n\n const itemsBeginIndex = step * (activePage - 1);\n const itemsEndIndex = itemsBeginIndex + step;\n\n const currentItems = useMemo(() => {\n if (Array.isArray(data)) return data.slice(itemsBeginIndex, itemsEndIndex);\n return [];\n }, [data, itemsBeginIndex, itemsEndIndex]);\n\n const paginationProps = {\n numberItems: data && data.length,\n onChange: (event) => setActivePage(event.page),\n page: activePage,\n step,\n ...rest, // let anything coming from paginate prop override component\n };\n\n return [currentItems, paginationProps];\n};\n","import React from 'react';\n\nexport const PortalContext = React.createContext(undefined);\n","\"use strict\";\n\nexports.__esModule = true;\nexports.Actions = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && 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; }\n\nfunction _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); }\n\nvar Actions = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {\n return /*#__PURE__*/_react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n ref: ref,\n viewBox: \"0 0 24 24\",\n a11yTitle: \"Actions\"\n }, props), /*#__PURE__*/_react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"M12 17.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11zm0-11V1m0 22v-5.5M1 12h5.5m11 0H23M4.437 4.437l4.125 4.125m6.876 6.876 4.124 4.124m0-15.125-4.125 4.125m-6.874 6.876-4.126 4.124\"\n }));\n});\nexports.Actions = Actions;\nActions.displayName = 'Actions';","\"use strict\";\n\nexports.__esModule = true;\nexports.extendDefaultTheme = exports.defaultProps = void 0;\n\nvar _utils = require(\"./utils\");\n\nvar _themes = require(\"./themes\");\n\nvar defaultProps = {\n theme: _themes.base\n};\nexports.defaultProps = defaultProps;\n\nvar extendDefaultTheme = function extendDefaultTheme(theme) {\n defaultProps.theme = (0, _utils.deepMerge)(_themes.base, theme);\n};\n\nexports.extendDefaultTheme = extendDefaultTheme;","\"use strict\";\n\nexports.__esModule = true;\nexports.isObject = isObject;\nexports.deepMerge = deepMerge;\nexports[\"default\"] = void 0;\n\nfunction _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); }\n\nfunction isObject(item) {\n return item && typeof item === 'object' && !Array.isArray(item);\n}\n\nfunction deepMerge(target) {\n for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n sources[_key - 1] = arguments[_key];\n }\n\n if (!sources.length) {\n return target;\n } // making sure to not change target (immutable)\n\n\n var output = _extends({}, target);\n\n sources.forEach(function (source) {\n if (isObject(source)) {\n Object.keys(source).forEach(function (key) {\n if (isObject(source[key])) {\n if (!output[key]) {\n output[key] = _extends({}, source[key]);\n } else {\n output[key] = deepMerge(output[key], source[key]);\n }\n } else {\n output[key] = source[key];\n }\n });\n }\n });\n return output;\n}\n\nvar _default = {\n deepMerge: deepMerge,\n isObject: isObject\n};\nexports[\"default\"] = _default;","\"use strict\";\n\nexports.__esModule = true;\nexports.base = void 0;\n\nvar _base = require(\"./base\");\n\nexports.base = _base.base;","\"use strict\";\n\nexports.__esModule = true;\nexports.CircleInformation = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && 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; }\n\nfunction _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); }\n\nvar CircleInformation = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {\n return /*#__PURE__*/_react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n ref: ref,\n viewBox: \"0 0 24 24\",\n a11yTitle: \"CircleInformation\"\n }, props), /*#__PURE__*/_react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10zm0-12v8m0-12v2\"\n }));\n});\nexports.CircleInformation = CircleInformation;\nCircleInformation.displayName = 'CircleInformation';","\"use strict\";\n\nexports.__esModule = true;\nexports.ClosedCaption = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && 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; }\n\nfunction _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); }\n\nvar ClosedCaption = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {\n return /*#__PURE__*/_react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n ref: ref,\n viewBox: \"0 0 24 24\",\n a11yTitle: \"ClosedCaption\"\n }, props), /*#__PURE__*/_react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"M1 12c0-7 1.5-8 11-8s11 1 11 8-1.5 8-11 8-11-1-11-8zm4.25 2c0 1.5.75 2 2.5 2s2.5-.5 2.5-2h-.271c0 1.25-1 2-2.229 2-1.23 0-2.229-.75-2.229-2v-4C5.5 8.75 6.5 8 7.75 8s2.25.75 2.229 2h.271c0-1.25-1.021-2-2.5-2s-2.5.75-2.5 2v4zm8 0c0 1.5.75 2 2.5 2s2.5-.5 2.5-2h-.271c0 1.25-1 2-2.229 2-1.23 0-2.229-.75-2.229-2v-4c-.021-1.25.979-2 2.229-2s2.25.75 2.229 2h.271c0-1.25-1.021-2-2.5-2s-2.5.75-2.5 2v4z\"\n }));\n});\nexports.ClosedCaption = ClosedCaption;\nClosedCaption.displayName = 'ClosedCaption';","\"use strict\";\n\nexports.__esModule = true;\nexports.Expand = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && 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; }\n\nfunction _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); }\n\nvar Expand = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {\n return /*#__PURE__*/_react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n ref: ref,\n viewBox: \"0 0 24 24\",\n a11yTitle: \"Expand\"\n }, props), /*#__PURE__*/_react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"m10 14-8 8m-1-7v8h8M22 2l-8 8m1-9h8v8\"\n }));\n});\nexports.Expand = Expand;\nExpand.displayName = 'Expand';","\"use strict\";\n\nexports.__esModule = true;\nexports.FormDown = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && 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; }\n\nfunction _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); }\n\nvar FormDown = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {\n return /*#__PURE__*/_react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n ref: ref,\n viewBox: \"0 0 24 24\",\n a11yTitle: \"FormDown\"\n }, props), /*#__PURE__*/_react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"m18 9-6 6-6-6\"\n }));\n});\nexports.FormDown = FormDown;\nFormDown.displayName = 'FormDown';","\"use strict\";\n\nexports.__esModule = true;\nexports.FormNext = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && 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; }\n\nfunction _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); }\n\nvar FormNext = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {\n return /*#__PURE__*/_react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n ref: ref,\n viewBox: \"0 0 24 24\",\n a11yTitle: \"FormNext\"\n }, props), /*#__PURE__*/_react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"m9 6 6 6-6 6\"\n }));\n});\nexports.FormNext = FormNext;\nFormNext.displayName = 'FormNext';","\"use strict\";\n\nexports.__esModule = true;\nexports.FormPrevious = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && 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; }\n\nfunction _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); }\n\nvar FormPrevious = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {\n return /*#__PURE__*/_react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n ref: ref,\n viewBox: \"0 0 24 24\",\n a11yTitle: \"FormPrevious\"\n }, props), /*#__PURE__*/_react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"m15 6-6 6 6 6\"\n }));\n});\nexports.FormPrevious = FormPrevious;\nFormPrevious.displayName = 'FormPrevious';","\"use strict\";\n\nexports.__esModule = true;\nexports.FormUp = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && 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; }\n\nfunction _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); }\n\nvar FormUp = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {\n return /*#__PURE__*/_react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n ref: ref,\n viewBox: \"0 0 24 24\",\n a11yTitle: \"FormUp\"\n }, props), /*#__PURE__*/_react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"m18 15-6-6-6 6\"\n }));\n});\nexports.FormUp = FormUp;\nFormUp.displayName = 'FormUp';","\"use strict\";\n\nexports.__esModule = true;\nexports.Next = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && 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; }\n\nfunction _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); }\n\nvar Next = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {\n return /*#__PURE__*/_react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n ref: ref,\n viewBox: \"0 0 24 24\",\n a11yTitle: \"Next\"\n }, props), /*#__PURE__*/_react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"m7 2 10 10L7 22\"\n }));\n});\nexports.Next = Next;\nNext.displayName = 'Next';","\"use strict\";\n\nexports.__esModule = true;\nexports.Pause = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && 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; }\n\nfunction _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); }\n\nvar Pause = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {\n return /*#__PURE__*/_react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n ref: ref,\n viewBox: \"0 0 24 24\",\n a11yTitle: \"Pause\"\n }, props), /*#__PURE__*/_react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"M3 21h6V3H3v18zm12 0h6V3h-6v18z\"\n }));\n});\nexports.Pause = Pause;\nPause.displayName = 'Pause';","\"use strict\";\n\nexports.__esModule = true;\nexports.Play = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && 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; }\n\nfunction _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); }\n\nvar Play = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {\n return /*#__PURE__*/_react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n ref: ref,\n viewBox: \"0 0 24 24\",\n a11yTitle: \"Play\"\n }, props), /*#__PURE__*/_react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"m3 22 18-10L3 2z\"\n }));\n});\nexports.Play = Play;\nPlay.displayName = 'Play';","\"use strict\";\n\nexports.__esModule = true;\nexports.Previous = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && 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; }\n\nfunction _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); }\n\nvar Previous = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {\n return /*#__PURE__*/_react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n ref: ref,\n viewBox: \"0 0 24 24\",\n a11yTitle: \"Previous\"\n }, props), /*#__PURE__*/_react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"M17 2 7 12l10 10\"\n }));\n});\nexports.Previous = Previous;\nPrevious.displayName = 'Previous';","\"use strict\";\n\nexports.__esModule = true;\nexports.StatusCriticalSmall = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && 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; }\n\nfunction _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); }\n\nvar StatusCriticalSmall = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {\n return /*#__PURE__*/_react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n ref: ref,\n viewBox: \"0 0 12 12\",\n a11yTitle: \"Status is critical\"\n }, props), /*#__PURE__*/_react[\"default\"].createElement(\"path\", {\n fillRule: \"evenodd\",\n stroke: \"#000\",\n d: \"M6.712 1.263a1.005 1.005 0 0 0-1.424 0L1.263 5.288a1.005 1.005 0 0 0 0 1.424l4.025 4.025a1.005 1.005 0 0 0 1.424 0l4.025-4.025a1.005 1.005 0 0 0 0-1.424L6.712 1.263z\"\n }));\n});\nexports.StatusCriticalSmall = StatusCriticalSmall;\nStatusCriticalSmall.displayName = 'StatusCriticalSmall';","\"use strict\";\n\nexports.__esModule = true;\nexports.StatusGoodSmall = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && 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; }\n\nfunction _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); }\n\nvar StatusGoodSmall = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {\n return /*#__PURE__*/_react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n ref: ref,\n viewBox: \"0 0 12 12\",\n a11yTitle: \"Status is okay\"\n }, props), /*#__PURE__*/_react[\"default\"].createElement(\"circle\", {\n cx: \"6\",\n cy: \"6\",\n r: \"5\",\n fillRule: \"evenodd\",\n stroke: \"#000\"\n }));\n});\nexports.StatusGoodSmall = StatusGoodSmall;\nStatusGoodSmall.displayName = 'StatusGoodSmall';","\"use strict\";\n\nexports.__esModule = true;\nexports.StatusWarningSmall = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && 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; }\n\nfunction _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); }\n\nvar StatusWarningSmall = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {\n return /*#__PURE__*/_react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n ref: ref,\n viewBox: \"0 0 12 12\",\n a11yTitle: \"Status is warning\"\n }, props), /*#__PURE__*/_react[\"default\"].createElement(\"path\", {\n fillRule: \"evenodd\",\n stroke: \"#000\",\n strokeLinejoin: \"round\",\n d: \"m6 1 5 9H1z\"\n }));\n});\nexports.StatusWarningSmall = StatusWarningSmall;\nStatusWarningSmall.displayName = 'StatusWarningSmall';","\"use strict\";\n\nexports.__esModule = true;\nexports.StatusUnknownSmall = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && 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; }\n\nfunction _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); }\n\nvar StatusUnknownSmall = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {\n return /*#__PURE__*/_react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n ref: ref,\n viewBox: \"0 0 12 12\",\n a11yTitle: \"Status is unknown\"\n }, props), /*#__PURE__*/_react[\"default\"].createElement(\"rect\", {\n width: \"10\",\n height: \"10\",\n x: \"1\",\n y: \"1\",\n fillRule: \"evenodd\",\n stroke: \"#000\",\n rx: \"1\"\n }));\n});\nexports.StatusUnknownSmall = StatusUnknownSmall;\nStatusUnknownSmall.displayName = 'StatusUnknownSmall';","\"use strict\";\n\nexports.__esModule = true;\nexports.Subtract = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && 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; }\n\nfunction _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); }\n\nvar Subtract = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {\n return /*#__PURE__*/_react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n ref: ref,\n viewBox: \"0 0 24 24\",\n a11yTitle: \"Subtract\"\n }, props), /*#__PURE__*/_react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"M2 12h20\"\n }));\n});\nexports.Subtract = Subtract;\nSubtract.displayName = 'Subtract';","\"use strict\";\n\nexports.__esModule = true;\nexports.Volume = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && 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; }\n\nfunction _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); }\n\nvar Volume = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {\n return /*#__PURE__*/_react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n ref: ref,\n viewBox: \"0 0 24 24\",\n a11yTitle: \"Volume\"\n }, props), /*#__PURE__*/_react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"M15 16a4 4 0 0 0 0-8m0 12c5 0 8-3.589 8-8s-3.589-8-8-8M1 12V8h5l6-5v18l-6-5H1v-4\"\n }));\n});\nexports.Volume = Volume;\nVolume.displayName = 'Volume';","\"use strict\";\n\nexports.__esModule = true;\nexports.VolumeLow = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && 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; }\n\nfunction _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); }\n\nvar VolumeLow = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {\n return /*#__PURE__*/_react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n ref: ref,\n viewBox: \"0 0 24 24\",\n a11yTitle: \"VolumeLow\"\n }, props), /*#__PURE__*/_react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"M1 8v8h5.099L12 21V3L6 8H1zm14 8a4 4 0 1 0 0-8\"\n }));\n});\nexports.VolumeLow = VolumeLow;\nVolumeLow.displayName = 'VolumeLow';","import { Children, cloneElement, useCallback, useEffect } from 'react';\nimport { KeyboardPropTypes } from './propTypes';\n\nconst KEYS = {\n 8: 'onBackspace',\n 9: 'onTab',\n 13: 'onEnter',\n 27: 'onEsc',\n 32: 'onSpace',\n 37: 'onLeft',\n 38: 'onUp',\n 39: 'onRight',\n 40: 'onDown',\n 188: 'onComma',\n 16: 'onShift',\n};\n\nconst Keyboard = ({ capture, target, children, onKeyDown, ...restProps }) => {\n const onKeyDownHandler = useCallback(\n (event, ...rest) => {\n const key = event.keyCode ? event.keyCode : event.which;\n const callbackName = KEYS[key];\n\n if (callbackName && restProps[callbackName]) {\n restProps[callbackName](event, ...rest);\n }\n\n if (onKeyDown) {\n onKeyDown(event, ...rest);\n }\n },\n [onKeyDown, restProps],\n );\n\n useEffect(() => {\n if (target === 'document') {\n document.addEventListener('keydown', onKeyDownHandler, capture);\n }\n\n return () => {\n if (target === 'document') {\n document.removeEventListener('keydown', onKeyDownHandler, capture);\n }\n };\n }, [capture, onKeyDownHandler, target]);\n\n return target === 'document'\n ? children\n : cloneElement(Children.only(children), {\n onKeyDown: onKeyDownHandler,\n });\n};\n\nKeyboard.propTypes = KeyboardPropTypes;\n\nexport { Keyboard };\n","import PropTypes from 'prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n target: PropTypes.oneOf(['component', 'document']),\n onBackspace: PropTypes.func,\n onComma: PropTypes.func,\n onDown: PropTypes.func,\n onEnter: PropTypes.func,\n onEsc: PropTypes.func,\n onKeyDown: PropTypes.func,\n onLeft: PropTypes.func,\n onRight: PropTypes.func,\n onShift: PropTypes.func,\n onSpace: PropTypes.func,\n onTab: PropTypes.func,\n onUp: PropTypes.func,\n };\n}\nexport const KeyboardPropTypes = PropType;\n","import styled, { css } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\nimport {\n alignContentStyle,\n alignStyle,\n backgroundStyle,\n borderStyle,\n breakpointStyle,\n edgeStyle,\n fillStyle,\n focusStyle,\n genericStyles,\n getBreakpointStyle,\n getHoverIndicatorStyle,\n heightStyle,\n overflowStyle,\n parseMetricToNum,\n responsiveBorderStyle,\n widthStyle,\n} from '../../utils';\n\nimport { roundStyle } from '../../utils/styles';\n\nimport { animationBounds, animationObjectStyle } from '../../utils/animation';\n\nconst BASIS_MAP = {\n auto: 'auto',\n full: '100%',\n '1/2': '50%',\n '1/4': '25%',\n '2/4': '50%',\n '3/4': '75%',\n '1/3': '33.33%',\n '2/3': '66.66%',\n};\n\nconst basisStyle = css`\n flex-basis: ${(props) =>\n BASIS_MAP[props.basis] ||\n props.theme.global.size[props.basis] ||\n props.basis};\n`;\n\n// min-width and min-height needed because of this\n// https://stackoverflow.com/questions/36247140/why-doesnt-flex-item-shrink-past-content-size\n// we assume we are in the context of a Box going the other direction\n// TODO: revisit this\nconst directionStyle = (direction, theme) => {\n const styles = [\n css`\n min-width: 0;\n min-height: 0;\n flex-direction: ${direction === 'row-responsive' ? 'row' : direction};\n `,\n ];\n if (direction === 'row-responsive' && theme.box.responsiveBreakpoint) {\n const breakpoint = getBreakpointStyle(\n theme,\n theme.box.responsiveBreakpoint,\n );\n if (breakpoint) {\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n flex-direction: column;\n flex-basis: auto;\n justify-content: flex-start;\n align-items: stretch;\n `,\n ),\n );\n }\n }\n return styles;\n};\n\nconst elevationStyle = (elevation) => css`\n box-shadow: ${(props) =>\n props.theme.global.elevation[props.theme.dark ? 'dark' : 'light'][\n elevation\n ]};\n`;\n\nconst FLEX_MAP = {\n [true]: '1 1',\n [false]: '0 0',\n grow: '1 0',\n shrink: '0 1',\n};\n\nconst flexGrowShrinkProp = (flex) => {\n if (typeof flex === 'boolean' || typeof flex === 'string') {\n return FLEX_MAP[flex];\n }\n\n return `${flex.grow ? flex.grow : 0} ${flex.shrink ? flex.shrink : 0}`;\n};\n\nconst flexStyle = css`\n flex: ${(props) =>\n `${flexGrowShrinkProp(props.flex)}${\n props.flex !== true && !props.basis ? ' auto' : ''\n }`};\n`;\n\nconst JUSTIFY_MAP = {\n around: 'space-around',\n between: 'space-between',\n center: 'center',\n end: 'flex-end',\n evenly: 'space-evenly',\n start: 'flex-start',\n};\n\nconst justifyStyle = css`\n justify-content: ${(props) => JUSTIFY_MAP[props.justify]};\n`;\n\nconst WRAP_MAP = {\n true: 'wrap',\n reverse: 'wrap-reverse',\n};\n\nconst wrapStyle = css`\n flex-wrap: ${(props) => WRAP_MAP[props.wrapProp]};\n`;\n\nconst animationItemStyle = (item, theme) => {\n if (typeof item === 'string') {\n return animationObjectStyle({ type: item }, theme);\n }\n if (Array.isArray(item)) {\n return item.reduce(\n (style, a, index) =>\n css`\n ${style}${index > 0 ? ',' : ''} ${animationItemStyle(a, theme)}\n `,\n '',\n );\n }\n if (typeof item === 'object') {\n return animationObjectStyle(item, theme);\n }\n return '';\n};\n\nconst animationAncilaries = (animation) => {\n if (animation.type === 'flipIn' || animation.type === 'flipOut') {\n return 'perspective: 1000px; transform-style: preserve-3d;';\n }\n return '';\n};\n\nconst animationObjectInitialStyle = (animation) => {\n const bounds = animationBounds(animation.type, animation.size);\n if (bounds) {\n return `${bounds[0]} ${animationAncilaries(animation)}`;\n }\n return '';\n};\n\nconst animationInitialStyle = (item) => {\n if (typeof item === 'string') {\n return animationObjectInitialStyle({ type: item });\n }\n if (Array.isArray(item)) {\n return item\n .map((a) =>\n typeof a === 'string'\n ? animationObjectInitialStyle({ type: a })\n : animationObjectInitialStyle(a),\n )\n .join('');\n }\n if (typeof item === 'object') {\n return animationObjectInitialStyle(item);\n }\n return '';\n};\n\nconst animationStyle = css`\n ${(props) => css`\n ${animationInitialStyle(props.animation)}\n animation: ${animationItemStyle(props.animation, props.theme)};\n `};\n`;\n\nconst interactiveStyle = css`\n cursor: pointer;\n\n &:hover {\n ${(props) =>\n props.kindProp?.hover &&\n getHoverIndicatorStyle(props.kindProp.hover, props.theme)}\n ${(props) =>\n props.hoverIndicator &&\n getHoverIndicatorStyle(props.hoverIndicator, props.theme)}\n }\n`;\n\n// NOTE: basis must be after flex! Otherwise, flex overrides basis\nconst StyledBox = styled.div`\n display: flex;\n box-sizing: border-box;\n ${(props) => !props.basis && 'max-width: 100%;'};\n\n ${genericStyles}\n ${(props) => props.align && alignStyle}\n ${(props) => props.alignContent && alignContentStyle}\n ${(props) =>\n props.background && backgroundStyle(props.background, props.theme)}\n ${(props) =>\n props.border && borderStyle(props.border, props.responsive, props.theme)}\n ${(props) =>\n props.directionProp && directionStyle(props.directionProp, props.theme)}\n ${(props) => props.heightProp && heightStyle(props.heightProp, props.theme)}\n ${(props) => props.widthProp && widthStyle(props.widthProp, props.theme)}\n ${(props) => props.flex !== undefined && flexStyle}\n ${(props) => props.basis && basisStyle}\n ${(props) => props.fillProp && fillStyle(props.fillProp)}\n ${(props) => props.justify && justifyStyle}\n ${(props) =>\n props.pad &&\n edgeStyle(\n 'padding',\n props.pad,\n props.responsive,\n props.theme.box.responsiveBreakpoint,\n props.theme,\n )}\n ${(props) =>\n props.round && roundStyle(props.round, props.responsive, props.theme)}\n ${(props) => props.wrapProp && wrapStyle}\n ${(props) => props.overflowProp && overflowStyle(props.overflowProp)}\n ${(props) => props.elevationProp && elevationStyle(props.elevationProp)}\n ${(props) => props.animation && animationStyle}\n ${(props) => props.onClick && interactiveStyle}\n ${(props) =>\n props.onClick &&\n props.focus &&\n props.focusIndicator !== false &&\n focusStyle()}\n ${(props) => props.theme.box && props.theme.box.extend}\n ${(props) => props.kindProp && props.kindProp.extend}\n`;\n\nconst gapStyle = (directionProp, gap, responsive, border, theme) => {\n const metric = theme.global.edgeSize[gap] || gap;\n const breakpoint = getBreakpointStyle(theme, theme.box.responsiveBreakpoint);\n const responsiveMetric = responsive && breakpoint && breakpoint.edgeSize[gap];\n\n const styles = [];\n if (directionProp === 'column' || directionProp === 'column-reverse') {\n styles.push(`height: ${metric};`);\n if (responsiveMetric) {\n styles.push(breakpointStyle(breakpoint, `height: ${responsiveMetric};`));\n }\n } else {\n styles.push(`width: ${metric};`);\n if (responsiveMetric) {\n if (directionProp === 'row' || directionProp === 'row-reverse') {\n styles.push(breakpointStyle(breakpoint, `width: ${responsiveMetric};`));\n } else if (directionProp === 'row-responsive') {\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n width: auto;\n height: ${responsiveMetric};\n `,\n ),\n );\n }\n }\n }\n\n if (border === 'between' || (border && border.side === 'between')) {\n const borderSize = border.size || 'xsmall';\n const borderMetric = theme.global.borderSize[borderSize] || borderSize;\n const borderOffset = `${\n parseMetricToNum(metric) / 2 - parseMetricToNum(borderMetric) / 2\n }px`;\n const responsiveBorderMetric =\n responsive &&\n breakpoint &&\n (breakpoint.borderSize[borderSize] || borderSize);\n const responsiveBorderOffset =\n responsiveBorderMetric &&\n `${\n parseMetricToNum(responsiveMetric) / 2 -\n parseMetricToNum(responsiveBorderMetric) / 2\n }px`;\n\n if (directionProp === 'column' || directionProp === 'column-reverse') {\n const adjustedBorder =\n typeof border === 'string' ? 'top' : { ...border, side: 'top' };\n styles.push(css`\n position: relative;\n &:after {\n content: '';\n position: absolute;\n width: 100%;\n top: ${borderOffset};\n ${borderStyle(adjustedBorder, responsive, theme)}\n }\n `);\n if (responsiveBorderOffset) {\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n &:after {\n content: '';\n top: ${responsiveBorderOffset};\n }`,\n ),\n );\n }\n } else {\n const adjustedBorder =\n typeof border === 'string' ? 'left' : { ...border, side: 'left' };\n styles.push(css`\n position: relative;\n &:after {\n content: '';\n position: absolute;\n height: 100%;\n left: ${borderOffset};\n ${borderStyle(\n adjustedBorder,\n directionProp !== 'row-responsive' && responsive,\n theme,\n )}\n }\n `);\n if (responsiveBorderOffset) {\n if (directionProp === 'row' || directionProp === 'row-reverse') {\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n &:after {\n content: '';\n left: ${responsiveBorderOffset};\n }`,\n ),\n );\n } else if (directionProp === 'row-responsive') {\n const adjustedBorder2 =\n typeof border === 'string' ? 'top' : { ...border, side: 'top' };\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n &:after {\n content: '';\n height: auto;\n left: unset;\n width: 100%;\n top: ${responsiveBorderOffset};\n border-left: none;\n ${responsiveBorderStyle(adjustedBorder2, theme)}\n }`,\n ),\n );\n }\n }\n }\n }\n\n return styles;\n};\n\nStyledBox.defaultProps = {};\nObject.setPrototypeOf(StyledBox.defaultProps, defaultProps);\n\nconst StyledBoxGap = styled.div`\n flex: 0 0 auto;\n align-self: stretch;\n ${(props) =>\n props.gap &&\n gapStyle(\n props.directionProp,\n props.gap,\n props.responsive,\n props.border,\n props.theme,\n )};\n`;\n\nStyledBoxGap.defaultProps = {};\nObject.setPrototypeOf(StyledBoxGap.defaultProps, defaultProps);\n\nexport { StyledBox, StyledBoxGap };\n","export { AccordionPanel } from './AccordionPanel';\n","import React, { forwardRef, useContext, useMemo, useState } from 'react';\nimport { ThemeContext } from 'styled-components';\nimport { defaultProps } from '../../default-props';\n\nimport { normalizeColor, parseMetricToNum } from '../../utils';\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { Collapsible } from '../Collapsible';\nimport { Heading } from '../Heading';\n\nimport { AccordionContext } from '../Accordion/AccordionContext';\nimport { AccordionPanelPropTypes } from './propTypes';\n\nconst AccordionPanel = forwardRef(\n (\n {\n children,\n header,\n label,\n onClick,\n onMouseOut,\n onMouseOver,\n onFocus,\n onBlur,\n ...rest\n },\n ref,\n ) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n const { active, animate, onPanelChange } = useContext(AccordionContext);\n const [hover, setHover] = useState(undefined);\n const [focus, setFocus] = useState();\n\n const iconColor = useMemo(\n () => normalizeColor(theme.accordion.icons.color || 'control', theme),\n [theme],\n );\n\n const AccordionIcon = useMemo(\n () =>\n active ? theme.accordion.icons.collapse : theme.accordion.icons.expand,\n [active, theme.accordion.icons],\n );\n\n const defaultHoverColor = JSON.stringify({\n dark: 'light-4',\n light: 'dark-3',\n });\n\n // accordion.hover.color will be deprecated in v3.\n if (JSON.stringify(theme.accordion.hover.color) !== defaultHoverColor)\n console.warn(\n `The theme style for accordion.hover.color is deprecated, \n use accordion.hover.heading.color instead.`,\n );\n\n // accordion.hover.heading.color will trump accordion.hover.color in case\n // the user sets its value to be any other value than the\n // default value (defaultHoverColor).\n // accordion.hover.color will be deprecated in v3.\n const headingColor =\n theme.accordion.hover &&\n JSON.stringify(theme.accordion.hover.heading.color) !== defaultHoverColor\n ? theme.accordion.hover.heading.color\n : theme.accordion.hover.color;\n\n const { border: contentBorder } = theme.accordion;\n const { border: panelBorder } = theme.accordion.panel;\n\n let abutMargin;\n if (panelBorder)\n // abutMargin 'bottom' is set to overlap adjacent border panels\n abutMargin = {\n bottom: `-${parseMetricToNum(\n // in case border.size defined as a t-shirt size\n // or in case border size is a custom size i.e. '5px'\n theme.global.borderSize[panelBorder.size] ||\n panelBorder.size ||\n theme.global.borderSize.xsmall, // '-1px'\n )}px`,\n };\n\n return (\n \n {\n setHover(headingColor);\n if (onMouseOver) onMouseOver(event);\n }}\n onMouseOut={(event) => {\n setHover(undefined);\n if (onMouseOut) onMouseOut(event);\n }}\n onFocus={(event) => {\n setHover(headingColor);\n setFocus(true);\n if (onFocus) onFocus(event);\n }}\n onBlur={(event) => {\n setHover(undefined);\n setFocus(false);\n if (onBlur) onBlur(event);\n }}\n style={focus ? { zIndex: 1 } : undefined}\n >\n {header || (\n \n {typeof label === 'string' ? (\n \n \n {label}\n \n \n ) : (\n label\n )}\n {AccordionIcon && (\n \n \n \n )}\n \n )}\n \n \n {animate ? (\n {children}\n ) : (\n active && children\n )}\n \n \n );\n },\n);\n\nAccordionPanel.displayName = 'AccordionPanel';\n\nAccordionPanel.propTypes = AccordionPanelPropTypes;\nexport { AccordionPanel };\n","import React, {\n cloneElement,\n Children,\n forwardRef,\n useContext,\n useMemo,\n useState,\n} from 'react';\n\nimport { ThemeContext } from 'styled-components';\nimport {\n backgroundAndTextColors,\n colorIsDark,\n normalizeBackground,\n normalizeColor,\n} from '../../utils';\nimport { defaultProps } from '../../default-props';\nimport { ButtonPropTypes } from './propTypes';\n\nimport { Box } from '../Box';\nimport { Tip } from '../Tip';\n\nimport { Badge } from './Badge';\nimport { StyledButton } from './StyledButton';\nimport { StyledButtonKind } from './StyledButtonKind';\n\n// We have two Styled* components to separate\n// the newer default|primary|secondary approach,\n// which we use the term \"kind\" to refer to,\n// from the previous approach. Hopefully, when we get to grommet v3,\n// we can drop the old way and just use kind.\n//\n// In the kind approach, we rely on the basic structure of the theme\n// being repeated. For example: button.default, button.active,\n// button.active.default all refer to a similar object containing\n// { background, border, color, padding }.\n// This allows us to use the same code to evaluate color and generate CSS.\n// We just need to build up CSS, since selectors override previous ones.\n// See StyledButtonKind.kindStyles() for this.\n// And we build down to determine icon color, once we have a color from\n// the latest applicable state, we can stop. See Button.getIconColor() for this.\n// backgroundAndTextColor() is used in both cases to ensure we are determining\n// color in the same way, so the icon and label align.\n\n// only when default is in the theme\n// Used to get the color for the icon to match what StyledButtonKind\n// and backgroundStyle() will do for the label.\n// The paths are ordered from basic to specific. Go through them\n// specific to base until we find one that has a color and use that.\nconst getIconColor = (paths = [], theme, colorProp, kind) => {\n let result = [];\n let index = paths.length - 1;\n // caller has specified a themeObj to use for styling\n // relevant for cases like pagination which looks to theme.pagination.button\n if (typeof kind === 'object') index = 0;\n // stop when we have a color or no more paths\n while (index >= 0 && !result[1]) {\n let obj = (typeof kind === 'object' && kind) || theme.button;\n // find the sub-object under the button them that corresponds with this path\n // for example: 'active.primary'\n if (paths[index]) {\n const parts = paths[index].split('.');\n while (obj && parts.length) obj = obj[parts.shift()];\n }\n\n if (obj) {\n // use passed in color for background if the theme has a background color\n const background =\n colorProp && obj.background && obj.background.color\n ? colorProp\n : obj.background;\n\n // if theme object explicitly sets the color to undefined, pass false\n // to indicate that the theme doesn't want any text color\n const objColor =\n obj.color ||\n (Object.prototype.hasOwnProperty.call(obj, 'color') &&\n obj.color === undefined\n ? false\n : undefined);\n // use passed in color for text if the theme doesn't have\n // background or border color\n const color =\n colorProp &&\n (!obj.background || !obj.background.color) &&\n (!obj.border || !obj.border.color)\n ? colorProp\n : objColor;\n\n result = backgroundAndTextColors(background, color, theme);\n }\n index -= 1;\n }\n return result[1] || undefined;\n};\n\nconst getPropertyColor = (property, paths = [], theme, kind, primary) => {\n let result;\n if (kind) {\n let obj = (typeof kind === 'object' && kind) || theme.button;\n // index 0 is default state\n if (paths[0]) {\n const parts = paths[0].split('.');\n while (obj && parts.length) obj = obj[parts.shift()];\n }\n if (obj) {\n result = obj[property] || (obj[property] && obj[property].color);\n }\n } else if (primary && theme && theme.button && theme.button.primary) {\n result =\n theme.button.primary[property] ||\n (theme.button.primary[property] && theme.button.primary[property].color);\n } else {\n result =\n (theme && theme.button && theme.button[property]) ||\n (theme &&\n theme.button &&\n theme.button[property] &&\n theme.button[property].color);\n }\n return result;\n};\n\nconst Button = forwardRef(\n (\n {\n active,\n align = 'center',\n 'aria-label': ariaLabel,\n badge: badgeProp,\n color, // munged to avoid styled-components putting it in the DOM\n children,\n disabled,\n icon,\n focusIndicator = true,\n gap,\n fill, // munged to avoid styled-components putting it in the DOM\n href,\n justify,\n kind: kindArg,\n label,\n onBlur,\n onClick,\n onFocus,\n onMouseOut,\n onMouseOver,\n plain,\n primary,\n reverse,\n secondary,\n selected,\n size,\n tip,\n type = 'button',\n // can't alphabetize a11yTitle before tip is defined\n a11yTitle = typeof tip === 'string' ? tip : undefined,\n as,\n ...rest\n },\n ref,\n ) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n const [focus, setFocus] = useState();\n const [hover, setHover] = useState(false);\n\n if ((icon || label) && children) {\n console.warn(\n 'Button should not have children if icon or label is provided',\n );\n }\n\n // kindArg is object if we are referencing a theme object\n // outside of theme.button\n const kindObj = useMemo(() => typeof kindArg === 'object', [kindArg]);\n\n // if the theme has button.default, what kind of Button is this\n const kind = useMemo(() => {\n if (theme.button.default || kindObj) {\n if (kindArg) return kindArg;\n if (primary) return 'primary';\n if (secondary) return 'secondary';\n return 'default';\n }\n return undefined; // pre-default, no kind\n }, [kindArg, kindObj, primary, secondary, theme]);\n\n // When we have a kind and are not plain, themePaths stores the relative\n // paths within the theme for the current kind and state of the button.\n // These paths are used with getIconColor() above and kindStyle() within\n // StyledButtonKind.\n const themePaths = useMemo(() => {\n if (!kind || plain) return undefined;\n const result = { base: [], hover: [] };\n if (!kindObj) result.base.push(kind);\n if (selected) {\n result.base.push('selected');\n if (!kindObj) result.base.push(`selected.${kind}`);\n }\n if (disabled) {\n result.base.push('disabled');\n if (!kindObj) result.base.push(`disabled.${kind}`);\n } else {\n if (active) {\n result.base.push('active');\n if (!kindObj) result.base.push(`active.${kind}`);\n }\n result.hover.push('hover');\n if (!kindObj) result.hover.push(`hover.${kind}`);\n if (active) {\n result.hover.push(`hover.active`);\n if (!kindObj) {\n result.hover.push(`hover.active.${kind}`);\n }\n }\n }\n return result;\n }, [active, disabled, kind, kindObj, plain, selected]);\n\n // only used when theme does not have button.default\n const isDarkBackground = () => {\n const backgroundColor = normalizeBackground(\n normalizeColor(\n color ||\n (theme.button.primary && theme.button.primary.color) ||\n theme.global.colors.control ||\n 'brand',\n theme,\n ),\n theme,\n );\n\n return colorIsDark(backgroundColor, theme);\n };\n\n const onMouseOverButton = (event) => {\n setHover(true);\n if (onMouseOver) {\n onMouseOver(event);\n }\n };\n\n const onMouseOutButton = (event) => {\n setHover(false);\n if (onMouseOut) {\n onMouseOut(event);\n }\n };\n\n let buttonIcon = icon;\n // only change color if user did not specify the color themselves...\n if (icon && !icon.props.color) {\n if (kind) {\n if (!plain) {\n // match what the label will use\n const iconColor =\n (hover && getIconColor(themePaths.hover, theme)) ||\n getIconColor(themePaths.base, theme, color, kind);\n if (iconColor) buttonIcon = cloneElement(icon, { color: iconColor });\n }\n } else if (primary) {\n buttonIcon = cloneElement(icon, {\n color:\n theme.global.colors.text[isDarkBackground() ? 'dark' : 'light'],\n });\n }\n }\n\n const domTag = !as && href ? 'a' : as;\n const first = reverse ? label : buttonIcon;\n const second = reverse ? buttonIcon : label;\n\n let contents;\n if (first && second) {\n contents = (\n \n {first}\n {second}\n \n );\n } else if (typeof children === 'function') {\n contents = children({ disabled, hover, focus });\n } else {\n contents = first || second || children;\n }\n\n const background = getPropertyColor(\n 'background',\n themePaths && themePaths.base,\n theme,\n kind,\n primary,\n );\n const border = getPropertyColor(\n 'border',\n themePaths && themePaths.base,\n theme,\n kind,\n primary,\n );\n // set the badge relative to the button content\n // when the button doesn't have background or border\n // (!kind && icon && !label) is necessary because for old button logic,\n // if button has icon but not label, it will be considered \"plain\",\n // so no border or background will be applied\n const innerBadge = (!background && !border) || (!kind && icon && !label);\n if (badgeProp && innerBadge) {\n contents = {contents};\n }\n\n let styledButtonResult;\n if (kind) {\n styledButtonResult = (\n {\n setFocus(true);\n if (onFocus) onFocus(event);\n }}\n onBlur={(event) => {\n setFocus(false);\n if (onBlur) onBlur(event);\n }}\n onMouseOver={onMouseOverButton}\n onMouseOut={onMouseOutButton}\n plain={plain || Children.count(children) > 0}\n primary={primary}\n sizeProp={size}\n type={!href ? type : undefined}\n >\n {contents}\n \n );\n } else {\n styledButtonResult = (\n {\n setFocus(true);\n if (onFocus) onFocus(event);\n }}\n onBlur={(event) => {\n setFocus(false);\n if (onBlur) onBlur(event);\n }}\n onMouseOver={onMouseOverButton}\n onMouseOut={onMouseOutButton}\n pad={!plain}\n plain={\n typeof plain !== 'undefined'\n ? plain\n : Children.count(children) > 0 || (icon && !label)\n }\n primary={primary}\n sizeProp={size}\n type={!href ? type : undefined}\n >\n {contents}\n \n );\n }\n if (tip) {\n if (typeof tip === 'string') {\n styledButtonResult = {styledButtonResult};\n } else {\n styledButtonResult = {styledButtonResult};\n }\n }\n\n // if button has background or border, place badge relative\n // to outer edge of button\n if (badgeProp && !innerBadge) {\n styledButtonResult = (\n {styledButtonResult}\n );\n }\n return styledButtonResult;\n },\n);\n\nButton.displayName = 'Button';\nButton.propTypes = ButtonPropTypes;\n\nexport { Button };\n","import PropTypes from 'prop-types';\nimport {\n backgroundPropType,\n genericProps,\n colorPropType,\n hoverIndicatorPropType,\n} from '../../utils/general-prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n ...genericProps,\n children: PropTypes.oneOfType([\n PropTypes.func,\n PropTypes.object,\n PropTypes.node,\n ]),\n active: PropTypes.bool,\n as: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),\n badge: PropTypes.oneOfType([\n PropTypes.bool,\n PropTypes.element,\n PropTypes.number,\n PropTypes.shape({\n background: backgroundPropType,\n max: PropTypes.number,\n value: PropTypes.oneOfType([PropTypes.bool, PropTypes.number]),\n }),\n ]),\n color: colorPropType,\n disabled: PropTypes.bool,\n fill: PropTypes.oneOfType([\n PropTypes.oneOf(['horizontal', 'vertical']),\n PropTypes.bool,\n ]),\n focusIndicator: PropTypes.bool,\n gap: PropTypes.oneOfType([\n PropTypes.oneOf([\n 'none',\n 'xxsmall',\n 'xsmall',\n 'small',\n 'medium',\n 'large',\n 'xlarge',\n ]),\n PropTypes.string,\n ]),\n hoverIndicator: hoverIndicatorPropType,\n href: PropTypes.string,\n icon: PropTypes.element,\n justify: PropTypes.oneOf([\n 'around',\n 'between',\n 'center',\n 'end',\n 'evenly',\n 'start',\n 'stretch',\n ]),\n label: PropTypes.node,\n onClick: PropTypes.func,\n plain: PropTypes.bool,\n primary: PropTypes.bool,\n reverse: PropTypes.bool,\n secondary: PropTypes.bool,\n size: PropTypes.oneOf(['small', 'medium', 'large']),\n target: PropTypes.oneOfType([\n PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),\n PropTypes.string,\n ]),\n tip: PropTypes.oneOfType([\n PropTypes.shape({\n content: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),\n dropProps: PropTypes.shape({}),\n plain: PropTypes.bool,\n }),\n PropTypes.string,\n ]),\n type: PropTypes.oneOf(['button', 'reset', 'submit']),\n };\n}\nexport const ButtonPropTypes = PropType;\n","import React, {\n Children,\n cloneElement,\n forwardRef,\n useContext,\n useState,\n useEffect,\n} from 'react';\nimport { ThemeContext } from 'styled-components';\n\nimport { Box } from '../Box';\nimport { Drop } from '../Drop';\nimport { useForwardedRef } from '../../utils/refs';\nimport { TipPropTypes } from './propTypes';\n\nconst Tip = forwardRef(({ children, content, dropProps, plain }, tipRef) => {\n const theme = useContext(ThemeContext);\n const [over, setOver] = useState(false);\n const [usingKeyboard, setUsingKeyboard] = useState();\n\n const onMouseDown = () => setUsingKeyboard(false);\n const onKeyDown = () => setUsingKeyboard(true);\n useEffect(() => {\n document.addEventListener('mousedown', onMouseDown);\n document.addEventListener('keydown', onKeyDown);\n return () => {\n document.removeEventListener('mousedown', onMouseDown);\n document.removeEventListener('keydown', onKeyDown);\n };\n }, []);\n\n const componentRef = useForwardedRef(tipRef);\n\n // Three use case for children\n // 1. Tip has a single child + it is a React Element => Great!\n // 2. Tip has a single child + not React Element =>\n // span will wrap the child so we can use ref and events.\n // 3. Tip has more than one child => Abort, display Children.only error\n const child =\n (Children.count(children) <= 1 && !React.isValidElement(children) && (\n {children}\n )) ||\n Children.only(children);\n\n const clonedChild = cloneElement(child, {\n onMouseEnter: () => setOver(true),\n onMouseLeave: () => setOver(false),\n onFocus: () => {\n if (usingKeyboard) setOver(true);\n },\n onBlur: () => {\n if (usingKeyboard) setOver(false);\n },\n key: 'tip-child',\n ref: (node) => {\n // https://github.com/facebook/react/issues/8873#issuecomment-287873307\n if (typeof componentRef === 'function') {\n componentRef(node);\n } else if (componentRef) {\n // eslint-disable-next-line no-param-reassign\n componentRef.current = node;\n }\n // Call the original ref, if any\n const { ref: callerRef } = child;\n if (typeof callerRef === 'function') {\n callerRef(node);\n } else if (callerRef) {\n callerRef.current = node;\n }\n },\n });\n\n return [\n clonedChild,\n over && (\n \n {plain ? content : {content}}\n \n ),\n ];\n});\n\nTip.displayName = 'Tip';\nTip.propTypes = TipPropTypes;\n\nexport { Tip };\n","import React, { forwardRef, useEffect, useState, useContext } from 'react';\nimport { createPortal } from 'react-dom';\n\nimport { ThemeContext } from 'styled-components';\nimport { defaultProps } from '../../default-props';\nimport { getNewContainer, setFocusWithoutScroll } from '../../utils';\nimport { DropContainer } from './DropContainer';\nimport { ContainerTargetContext } from '../../contexts/ContainerTargetContext';\nimport { DropPropTypes } from './propTypes';\n\nconst Drop = forwardRef(\n (\n {\n inline,\n restrictFocus,\n target: dropTarget, // avoid DOM leakage\n trapFocus = true,\n ...rest\n },\n ref,\n ) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n const [originalFocusedElement, setOriginalFocusedElement] = useState();\n useEffect(() => setOriginalFocusedElement(document.activeElement), []);\n const [dropContainer, setDropContainer] = useState();\n const containerTarget = useContext(ContainerTargetContext);\n useEffect(\n () =>\n setDropContainer(\n !inline ? getNewContainer(containerTarget) : undefined,\n ),\n [containerTarget, inline],\n );\n\n // just a few things to clean up when the Drop is unmounted\n useEffect(\n () => () => {\n if (restrictFocus && originalFocusedElement) {\n if (originalFocusedElement.focus) {\n setFocusWithoutScroll(originalFocusedElement);\n } else if (\n originalFocusedElement.parentNode &&\n originalFocusedElement.parentNode.focus\n ) {\n // required for IE11 and Edge\n setFocusWithoutScroll(originalFocusedElement.parentNode);\n }\n }\n if (dropContainer) {\n containerTarget.removeChild(dropContainer);\n }\n },\n [containerTarget, dropContainer, originalFocusedElement, restrictFocus],\n );\n\n const content = (\n \n );\n\n if (inline) return content;\n\n if (dropContainer) return createPortal(content, dropContainer);\n\n return null;\n },\n);\n\nDrop.displayName = 'Drop';\nDrop.propTypes = DropPropTypes;\n\nexport { Drop };\n","import React, {\n forwardRef,\n useContext,\n useEffect,\n useMemo,\n useRef,\n} from 'react';\nimport { ThemeContext } from 'styled-components';\n\nimport { FocusedContainer } from '../FocusedContainer';\nimport {\n backgroundIsDark,\n findScrollParents,\n parseMetricToNum,\n PortalContext,\n} from '../../utils';\nimport { defaultProps } from '../../default-props';\nimport { Box } from '../Box';\nimport { Keyboard } from '../Keyboard';\n\nimport { StyledDrop } from './StyledDrop';\n\n// using react synthetic event to be able to stop propagation that\n// would otherwise close the layer on ESC.\nconst preventLayerClose = (event) => {\n const key = event.keyCode ? event.keyCode : event.which;\n\n if (key === 27) {\n event.stopPropagation();\n }\n};\n\nconst defaultAlign = { top: 'top', left: 'left' };\nconst defaultPortalContext = [];\n\nconst DropContainer = forwardRef(\n (\n {\n align = defaultAlign,\n background,\n onAlign,\n children,\n dropTarget,\n elevation,\n onClickOutside,\n onEsc,\n onKeyDown,\n overflow = 'auto',\n plain,\n responsive,\n restrictFocus,\n stretch = 'width',\n trapFocus,\n ...rest\n },\n ref,\n ) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n const portalContext = useContext(PortalContext) || defaultPortalContext;\n const portalId = useMemo(() => portalContext.length, [portalContext]);\n const nextPortalContext = useMemo(\n () => [...portalContext, portalId],\n [portalContext, portalId],\n );\n const dropRef = useRef();\n useEffect(() => {\n const notifyAlign = () => {\n const styleCurrent = (ref || dropRef).current.style;\n const alignControl = styleCurrent.top !== '' ? 'top' : 'bottom';\n\n onAlign(alignControl);\n };\n\n // We try to preserve the maxHeight as changing it causes any scroll\n // position to be lost. We set the maxHeight on mount and if the window\n // is resized.\n const place = (preserveHeight) => {\n const windowWidth = window.innerWidth;\n const windowHeight = window.innerHeight;\n const target = dropTarget;\n const container = (ref || dropRef).current;\n if (container && target) {\n // clear prior styling\n container.style.left = '';\n container.style.top = '';\n container.style.bottom = '';\n container.style.width = '';\n if (!preserveHeight) {\n container.style.maxHeight = '';\n }\n // get bounds\n const targetRect = target.getBoundingClientRect();\n const containerRect = container.getBoundingClientRect();\n // determine width\n let width;\n if (stretch) {\n width = Math.min(\n stretch === 'align'\n ? Math.min(targetRect.width, containerRect.width)\n : Math.max(targetRect.width, containerRect.width),\n windowWidth,\n );\n } else {\n width = Math.min(containerRect.width, windowWidth);\n }\n // set left position\n let left;\n if (align.left) {\n if (align.left === 'left') {\n ({ left } = targetRect);\n } else if (align.left === 'right') {\n left = targetRect.left + targetRect.width;\n }\n } else if (align.right) {\n if (align.right === 'left') {\n left = targetRect.left - width;\n } else if (align.right === 'right') {\n left = targetRect.left + targetRect.width - width;\n }\n } else {\n left = targetRect.left + targetRect.width / 2 - width / 2;\n }\n if (left + width > windowWidth) {\n left -= left + width - windowWidth;\n } else if (left < 0) {\n left = 0;\n }\n // set top or bottom position\n let top;\n let bottom;\n let maxHeight = containerRect.height;\n if (align.top) {\n if (align.top === 'top') {\n ({ top } = targetRect);\n } else {\n top = targetRect.bottom;\n }\n\n // Calculate visible area underneath the control w.r.t window height\n const percentVisibleAreaBelow =\n 100 - (targetRect.bottom / windowHeight) * 100;\n\n // Check whether it is within 20% from bottom of the window or\n // visible area to flip the control\n // DropContainer doesn't fit well within visible area when\n // percentVisibleAreaBelow value<=20%\n // There is enough space from DropContainer to bottom of the window\n // when percentVisibleAreaBelow>20%.\n\n if (windowHeight === top || percentVisibleAreaBelow <= 20) {\n // We need more room than we have.\n // We put it below, but there's more room above, put it above\n top = '';\n if (align.top === 'bottom') {\n bottom = targetRect.top;\n } else {\n ({ bottom } = targetRect);\n }\n maxHeight = bottom;\n container.style.maxHeight = `${maxHeight}px`;\n } else if (top > 0) {\n maxHeight = windowHeight - top;\n container.style.maxHeight = `${maxHeight}px`;\n } else {\n maxHeight = windowHeight - top;\n }\n } else if (align.bottom) {\n if (align.bottom === 'bottom') {\n ({ bottom } = targetRect);\n } else {\n bottom = targetRect.top;\n }\n maxHeight = bottom;\n container.style.maxHeight = `${maxHeight}px`;\n } else {\n // center\n top =\n targetRect.top + targetRect.height / 2 - containerRect.height / 2;\n maxHeight = windowHeight - top;\n }\n // if we can't fit it all, or we're rather close,\n // see if there's more room the other direction\n if (\n responsive &&\n (containerRect.height > maxHeight || maxHeight < windowHeight / 10)\n ) {\n // We need more room than we have.\n if (align.top && top > windowHeight / 2) {\n // We put it below, but there's more room above, put it above\n top = '';\n if (align.top === 'bottom') {\n // top = Math.max(targetRect.top - containerRect.height, 0);\n // maxHeight = targetRect.top - top;\n bottom = targetRect.top;\n } else {\n // top = Math.max(targetRect.bottom - containerRect.height, 0);\n // maxHeight = targetRect.bottom - top;\n ({ bottom } = targetRect);\n }\n maxHeight = bottom;\n } else if (align.bottom && maxHeight < windowHeight / 2) {\n // We put it above but there's more room below, put it below\n bottom = '';\n if (align.bottom === 'bottom') {\n ({ top } = targetRect);\n } else {\n top = targetRect.bottom;\n }\n maxHeight = windowHeight - top;\n }\n }\n container.style.left = `${left}px`;\n if (stretch) {\n // offset width by 0.1 to avoid a bug in ie11 that\n // unnecessarily wraps the text if width is the same\n // NOTE: turned off for now\n container.style.width = `${width + 0.1}px`;\n }\n // the (position:absolute + scrollTop)\n // is presenting issues with desktop scroll flickering\n if (top !== '') {\n container.style.top = `${top}px`;\n }\n if (bottom !== '') {\n container.style.bottom = `${windowHeight - bottom}px`;\n }\n if (!preserveHeight) {\n if (theme.drop && theme.drop.maxHeight) {\n maxHeight = Math.min(\n maxHeight,\n parseMetricToNum(theme.drop.maxHeight),\n );\n }\n container.style.maxHeight = `${maxHeight}px`;\n }\n }\n if (onAlign) notifyAlign();\n };\n\n let scrollParents;\n\n const addScrollListeners = () => {\n scrollParents = findScrollParents(dropTarget);\n scrollParents.forEach((scrollParent) =>\n scrollParent.addEventListener('scroll', place),\n );\n };\n\n const removeScrollListeners = () => {\n scrollParents.forEach((scrollParent) =>\n scrollParent.removeEventListener('scroll', place),\n );\n scrollParents = [];\n };\n\n const onClickDocument = (event) => {\n // determine which portal id the target is in, if any\n let clickedPortalId = null;\n let node = event.target;\n while (clickedPortalId === null && node !== document) {\n const attr = node.getAttribute('data-g-portal-id');\n if (attr !== null) clickedPortalId = parseInt(attr, 10);\n node = node.parentNode;\n }\n if (\n clickedPortalId === null ||\n portalContext.indexOf(clickedPortalId) !== -1\n ) {\n onClickOutside(event);\n }\n };\n\n const onResize = () => {\n removeScrollListeners();\n addScrollListeners();\n place(false);\n };\n\n addScrollListeners();\n window.addEventListener('resize', onResize);\n if (onClickOutside) {\n document.addEventListener('mousedown', onClickDocument);\n }\n\n place(false);\n\n return () => {\n removeScrollListeners();\n window.removeEventListener('resize', onResize);\n if (onClickOutside) {\n document.removeEventListener('mousedown', onClickDocument);\n }\n };\n }, [\n align,\n onAlign,\n dropTarget,\n onClickOutside,\n portalContext,\n portalId,\n ref,\n responsive,\n restrictFocus,\n stretch,\n theme.drop,\n ]);\n\n useEffect(() => {\n if (restrictFocus) {\n (ref || dropRef).current.focus();\n }\n }, [ref, restrictFocus]);\n\n let content = (\n \n {children}\n \n );\n\n const themeContextValue = useMemo(() => {\n let dark;\n if (background || theme.global.drop.background) {\n dark = backgroundIsDark(\n background || theme.global.drop.background,\n theme,\n );\n }\n return { ...theme, dark };\n }, [background, theme]);\n\n const { dark } = themeContextValue;\n if (dark !== undefined && dark !== theme.dark) {\n content = (\n \n {content}\n \n );\n }\n\n return (\n \n \n {\n event.stopPropagation();\n onEsc(event);\n }\n : undefined\n }\n onKeyDown={onKeyDown}\n target=\"document\"\n >\n {content}\n \n \n \n );\n },\n);\n\nexport { DropContainer };\n","import styled, { keyframes } from 'styled-components';\n\nimport { baseStyle, edgeStyle, roundStyle } from '../../utils/styles';\nimport { backgroundStyle } from '../../utils/background';\nimport { defaultProps } from '../../default-props';\n\nfunction getTransformOriginStyle(align) {\n let vertical = 'top';\n if (align.bottom) {\n vertical = 'bottom';\n }\n let horizontal = 'left';\n if (align.right) {\n horizontal = 'right';\n }\n return `${vertical} ${horizontal}`;\n}\n\nconst dropKeyFrames = keyframes`\n 0% {\n opacity: 0.5;\n transform: scale(0.8);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n`;\n\n// The desired margin may be adjusted depending on drops alignment\nconst marginStyle = (theme, align, data, responsive, marginProp) => {\n const margin = theme.global.edgeSize[data] || data;\n let adjustedMargin = {};\n // if user provides CSS string such as '50px 12px', apply that always\n const customCSS = typeof margin === 'string' && margin.split(' ').length > 1;\n if (\n theme.global.drop.intelligentMargin === true &&\n !customCSS &&\n typeof margin === 'string'\n ) {\n if (align.top === 'bottom') adjustedMargin.top = margin;\n else if (align.bottom === 'top') adjustedMargin.bottom = margin;\n if (align.right === 'left') adjustedMargin.left = `-${margin}`;\n else if (align.left === 'right') adjustedMargin.left = margin;\n if (!Object.keys(adjustedMargin)) adjustedMargin = 'none';\n } else {\n return edgeStyle(\n 'margin',\n marginProp || theme.global.drop.margin,\n responsive,\n theme.global.edgeSize.responsiveBreakpoint,\n theme,\n );\n }\n return edgeStyle(\n 'margin',\n adjustedMargin,\n responsive,\n theme.global.edgeSize.responsiveBreakpoint,\n theme,\n );\n};\n\nconst StyledDrop = styled.div`\n ${baseStyle}\n\n ${(props) =>\n !props.plain &&\n ((props.round && roundStyle(props.round, true, props.theme)) ||\n `border-radius: ${props.theme.global.drop.border.radius};`)}\n\n position: fixed;\n z-index: ${(props) => props.theme.global.drop.zIndex};\n outline: none;\n\n ${(props) =>\n !props.plain &&\n backgroundStyle(\n props.background || props.theme.global.drop.background,\n props.theme,\n )}\n\n ${(props) =>\n !props.plain &&\n (props.margin || props.theme.global.drop.margin) &&\n props.theme.global &&\n marginStyle(\n props.theme,\n props.alignProp,\n props.theme.global.drop.margin,\n props.responsive,\n props.margin,\n )}\n\n opacity: 0;\n transform-origin: ${(props) => getTransformOriginStyle(props.alignProp)};\n animation: ${dropKeyFrames} 0.1s forwards;\n animation-delay: 0.01s;\n\n /* IE11 hack to get drop contents to not overflow */\n @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n display: flex;\n align-items: stretch;\n }\n\n ${(props) => props.theme.global.drop && props.theme.global.drop.extend}\n`;\n\nStyledDrop.defaultProps = {};\nObject.setPrototypeOf(StyledDrop.defaultProps, defaultProps);\n\nexport { StyledDrop };\n","import React from 'react';\n\nexport const ContainerTargetContext = React.createContext(\n typeof document === 'object' ? document.body : undefined,\n);\n","import PropTypes from 'prop-types';\nimport {\n backgroundDoc,\n roundPropType,\n marginProp,\n OVERFLOW_VALUES,\n} from '../../utils/general-prop-types';\n\n// if you update values here, make sure to update in Box too.\nconst dropOverflowPropTypes = PropTypes.oneOfType([\n PropTypes.oneOf(OVERFLOW_VALUES),\n PropTypes.shape({\n horizontal: PropTypes.oneOf(OVERFLOW_VALUES),\n vertical: PropTypes.oneOf(OVERFLOW_VALUES),\n }),\n PropTypes.string,\n]);\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n align: PropTypes.shape({\n top: PropTypes.oneOf(['top', 'bottom']),\n bottom: PropTypes.oneOf(['top', 'bottom']),\n right: PropTypes.oneOf(['left', 'right']),\n left: PropTypes.oneOf(['left', 'right']),\n }),\n background: backgroundDoc,\n elevation: PropTypes.oneOfType([\n PropTypes.oneOf(['none', 'xsmall', 'small', 'medium', 'large', 'xlarge']),\n PropTypes.string,\n ]),\n inline: PropTypes.bool,\n margin: marginProp,\n onClickOutside: PropTypes.func,\n onEsc: PropTypes.func,\n overflow: dropOverflowPropTypes,\n plain: PropTypes.bool,\n responsive: PropTypes.bool,\n restrictFocus: PropTypes.bool,\n round: roundPropType,\n stretch: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['align'])]),\n target: PropTypes.object.isRequired,\n trapFocus: PropTypes.bool,\n };\n}\nexport const DropPropTypes = PropType;\n","import PropTypes from 'prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n content: PropTypes.node,\n dropProps: PropTypes.object,\n plain: PropTypes.bool,\n };\n}\nexport const TipPropTypes = PropType;\n","import React, { useContext, useRef, useState } from 'react';\nimport styled, { ThemeContext } from 'styled-components';\nimport { parseMetricToNum } from '../../utils';\nimport { useLayoutEffect } from '../../utils/use-isomorphic-layout-effect';\n\nimport { Box } from '../Box';\nimport { Stack } from '../Stack';\nimport { Text } from '../Text';\n\nconst StyledBadgeContainer = styled(Box)`\n ${(props) => props.theme.button.badge.container.extend}\n`;\n\nexport const Badge = ({ children, content }) => {\n const theme = useContext(ThemeContext);\n const contentRef = useRef();\n const stackRef = useRef();\n\n const defaultBadgeDimension =\n typeof content === 'boolean' ||\n (content && content.value && typeof content.value === 'boolean')\n ? // empty badge should be smaller. this value was chosen as a default\n // after experimenting with various values\n `${parseMetricToNum(theme.button.badge.size.medium) / 2}px`\n : theme.button.badge.size.medium;\n\n // size should drive height, match width to height by default\n // allow width to grow when content is wide\n const [height, setHeight] = useState(defaultBadgeDimension);\n const [width, setWidth] = useState(height);\n\n // scale badge to fit its contents, leaving space horizontally\n // that is proportional to vertical space\n useLayoutEffect(() => {\n // when window resizes and hits a responsive breakpoint, width of the badge\n // can change (because pad is responsive, etc.). we want to recalculate\n // width since badge offset is reliant on its dimensions.\n const onResize = () => {\n if (contentRef && contentRef.current) {\n if (\n typeof content === 'number' ||\n (typeof content === 'object' && content.value)\n ) {\n const { height: contentHeight, width: contentWidth } =\n contentRef.current.getBoundingClientRect();\n\n // only adjust the width if contentHeight > 0\n // jest returns 0 for all getBoundingClientRect values,\n // so this ensures snapshots are closer to correct values\n if (contentHeight) {\n // height of content includes extra space around font from\n // line-height. account for this extra space with 2.5 multiplier\n // to add proportional horizontal space\n const verticalSpace =\n (parseMetricToNum(height) - contentHeight) * 2.5;\n\n setWidth(\n `${Math.max(\n parseMetricToNum(width),\n Math.ceil(contentWidth + verticalSpace),\n )}px`,\n );\n }\n } else {\n // caller has provided custom JSX\n setWidth(`${contentRef.current.getBoundingClientRect().width}px`);\n setHeight(`${contentRef.current.getBoundingClientRect().height}px`);\n }\n }\n };\n window.addEventListener('resize', onResize);\n onResize();\n return () => {\n window.removeEventListener('resize', onResize);\n };\n }, [content, height, width]);\n\n // offset the badge so it overlaps content\n useLayoutEffect(() => {\n if (stackRef && stackRef.current) {\n // when badge has content, offset should be 50%.\n // when badge is empty, offset by a smaller amount to keep the badge\n // closer to the content. this value was chosen as a reasonable default\n // after testing with various grommet icons.\n const divisor =\n typeof content === 'boolean' || (content && content.value === true)\n ? 3.5\n : 2;\n const offset = {\n right: `-${Math.round(parseMetricToNum(width) / divisor)}px`,\n top: `-${Math.round(parseMetricToNum(height) / divisor)}px`,\n };\n // second child of Stack is the div that receives absolute positioning\n // and contains our badge content\n stackRef.current.children[1].style.top = offset.top;\n stackRef.current.children[1].style.right = offset.right;\n }\n }, [content, height, width]);\n\n let value;\n if (typeof content === 'number') value = content;\n else if (typeof content === 'object') value = content.value;\n\n let badge;\n if (\n typeof value === 'number' ||\n typeof value === 'boolean' ||\n typeof content === 'boolean'\n ) {\n if (typeof value === 'number') {\n const max = content.max || 9;\n badge = (\n \n {value > max ? `${max}+` : value}\n \n );\n }\n badge = (\n \n {badge}\n \n );\n // caller has provided their own JSX and we will just render that\n } else badge = {content};\n\n return (\n \n {children}\n {badge}\n \n );\n};\n","import React, { Children, forwardRef } from 'react';\n\nimport { StyledStack, StyledStackLayer } from './StyledStack';\nimport { StackPropTypes } from './propTypes';\n\nconst buildStyledChildren =\n ({ anchor, fill, guidingIndex, interactiveChild, interactiveIndex }) =>\n (child, index) => {\n const interactive =\n interactiveChild === undefined || interactiveIndex === index;\n const isGuidingIndex = index === guidingIndex;\n const props = isGuidingIndex\n ? { guiding: true, fillContainer: fill }\n : { anchor };\n\n return (\n \n {child}\n \n );\n };\n\nconst Stack = forwardRef(\n (\n { anchor, children, fill, guidingChild, interactiveChild, ...rest },\n ref,\n ) => {\n const prunedChildren = Children.toArray(children).filter((c) => c);\n const toChildIndex = (child) => {\n let index = child;\n if (index === 'first' || !index) index = 0;\n else if (index === 'last') index = prunedChildren.length - 1;\n return index;\n };\n\n const guidingIndex = toChildIndex(guidingChild);\n const interactiveIndex = interactiveChild && toChildIndex(interactiveChild);\n\n const styledChildren = prunedChildren.map(\n buildStyledChildren({\n anchor,\n fill,\n guidingIndex,\n interactiveChild,\n interactiveIndex,\n }),\n );\n\n return (\n \n {styledChildren}\n \n );\n },\n);\n\nStack.displayName = 'Stack';\nStack.propTypes = StackPropTypes;\n\nexport { Stack };\n","import styled, { css } from 'styled-components';\n\nimport { genericStyles } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst fillStyle = css`\n ${props =>\n props.fillContainer === true || props.fillContainer === 'horizontal'\n ? `\n width: 100%;\n max-width: none;\n `\n : ''}\n ${props =>\n props.fillContainer === true || props.fillContainer === 'vertical'\n ? 'height: 100%;'\n : ''}\n flex-grow: 1;\n display: flex;\n`;\n\nconst StyledStack = styled.div`\n position: relative;\n ${genericStyles}\n ${props => props.fillContainer && fillStyle}\n ${props => props.theme.stack && props.theme.stack.extend}\n`;\n\nStyledStack.defaultProps = {};\nObject.setPrototypeOf(StyledStack.defaultProps, defaultProps);\n\nconst styleMap = {\n fill: `\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n `,\n center: `\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n `,\n left: `\n top: 50%;\n left: 0;\n transform: translateY(-50%);\n `,\n right: `\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n `,\n top: `\n top: 0;\n left: 50%;\n transform: translateX(-50%);\n `,\n bottom: `\n bottom: 0;\n left: 50%;\n transform: translateX(-50%);\n `,\n 'top-left': `\n top: 0;\n left: 0;\n `,\n 'bottom-left': `\n bottom: 0;\n left: 0;\n `,\n 'top-right': `\n top: 0;\n right: 0;\n `,\n 'bottom-right': `\n bottom: 0;\n right: 0;\n `,\n};\n\nconst StyledStackLayer = styled.div`\n position: ${props => (props.guiding ? 'relative' : 'absolute')};\n ${props => props.guiding && 'display: block;'}\n ${props => !props.guiding && `${styleMap[props.anchor || 'fill']};`}\n ${props =>\n props.fillContainer &&\n `\n width: 100%;\n height: 100%;\n `}\n ${props => !props.interactive && `pointer-events: none;`}\n`;\n\nStyledStackLayer.defaultProps = {};\nObject.setPrototypeOf(StyledStackLayer.defaultProps, defaultProps);\n\nexport { StyledStack, StyledStackLayer };\n","import PropTypes from 'prop-types';\nimport { genericProps } from '../../utils/general-prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n ...genericProps,\n anchor: PropTypes.oneOf([\n 'center',\n 'left',\n 'right',\n 'top',\n 'bottom',\n 'top-left',\n 'bottom-left',\n 'top-right',\n 'bottom-right',\n ]),\n fill: PropTypes.oneOfType([\n PropTypes.oneOf(['horizontal', 'vertical']),\n PropTypes.bool,\n ]),\n guidingChild: PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.oneOf(['first', 'last']),\n ]),\n interactiveChild: PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.oneOf(['first', 'last']),\n ]),\n };\n}\nexport const StackPropTypes = PropType;\n","import React, { forwardRef, useState } from 'react';\n\nimport { useLayoutEffect } from '../../utils/use-isomorphic-layout-effect';\n\nimport { StyledText } from './StyledText';\nimport { Tip } from '../Tip';\nimport { useForwardedRef } from '../../utils';\nimport { TextPropTypes } from './propTypes';\n\nconst Text = forwardRef(\n (\n {\n children,\n color,\n tag,\n as,\n tip: tipProp,\n // can't alphabetize a11yTitle before tip is defined\n a11yTitle = (typeof tipProp === 'string' && tipProp) ||\n tipProp?.content ||\n undefined,\n truncate,\n ...rest\n },\n ref,\n ) => {\n const textRef = useForwardedRef(ref);\n const [textTruncated, setTextTruncated] = useState(false);\n\n useLayoutEffect(() => {\n const updateTip = () => {\n setTextTruncated(false);\n if (\n truncate === 'tip' &&\n textRef.current &&\n textRef.current.scrollWidth > textRef.current.offsetWidth\n ) {\n setTextTruncated(true);\n }\n };\n window.addEventListener('resize', updateTip);\n updateTip();\n return () => window.removeEventListener('resize', updateTip);\n }, [textRef, truncate]);\n\n const styledTextResult = (\n \n {children}\n \n );\n\n if (tipProp || textTruncated) {\n // place the text content in a tip if truncate === 'tip'\n // and the text has been truncated\n if (textTruncated) {\n return (\n \n {styledTextResult}\n \n );\n }\n // place the text content in a tip if truncate !== 'tip'\n // it displays even if the text has not truncated\n if (truncate !== 'tip') {\n return {styledTextResult};\n }\n }\n\n return styledTextResult;\n },\n);\n\nText.displayName = 'Text';\nText.defaultProps = {\n level: 1,\n};\nText.propTypes = TextPropTypes;\n\nexport { Text };\n","import styled, { css } from 'styled-components';\n\nimport { genericStyles, normalizeColor, textAlignStyle } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst sizeStyle = props => {\n const size = props.size || 'medium';\n const data = props.theme.text[size];\n if (data) {\n return css`\n font-size: ${data.size};\n line-height: ${data.height};\n `;\n }\n return css`\n font-size: ${size};\n line-height: normal;\n `;\n};\n\nconst truncateStyle = `\n white-space: nowrap;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\nconst colorStyle = css`\n color: ${props => normalizeColor(props.colorProp, props.theme)};\n`;\n\nconst weightStyle = css`\n font-weight: ${props => props.weight};\n`;\n\nconst wordBreakStyle = css`\n word-break: ${props => props.wordBreak};\n`;\n\nconst fontFamily = css`\n font-family: ${props => props.theme.text.font.family};\n`;\n\nconst StyledText = styled('span').withConfig({\n shouldForwardProp: (prop, defaultValidatorFn) =>\n defaultValidatorFn(prop) && prop !== 'size',\n})`\n ${genericStyles}\n ${props => sizeStyle(props)}\n ${props => props.textAlign && textAlignStyle}\n ${props => props.truncate && truncateStyle}\n ${props => props.colorProp && colorStyle}\n ${props => props.weight && weightStyle}\n ${props => props.wordBreak && wordBreakStyle}\n ${props =>\n props.theme.text.font && props.theme.text.font.family && fontFamily}\n\n ${props => props.theme.text && props.theme.text.extend}\n`;\n\nStyledText.defaultProps = {};\nObject.setPrototypeOf(StyledText.defaultProps, defaultProps);\n\nexport { StyledText };\n","import PropTypes from 'prop-types';\nimport {\n colorPropType,\n genericProps,\n MARGIN_SIZES,\n} from '../../utils/general-prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n ...genericProps,\n color: colorPropType,\n margin: PropTypes.oneOfType([\n PropTypes.oneOf(['none', ...MARGIN_SIZES]),\n PropTypes.shape({\n bottom: PropTypes.oneOfType([\n PropTypes.oneOf(MARGIN_SIZES),\n PropTypes.string,\n ]),\n end: PropTypes.oneOfType([\n PropTypes.oneOf(MARGIN_SIZES),\n PropTypes.string,\n ]),\n horizontal: PropTypes.oneOfType([\n PropTypes.oneOf(MARGIN_SIZES),\n PropTypes.string,\n ]),\n left: PropTypes.oneOfType([\n PropTypes.oneOf(MARGIN_SIZES),\n PropTypes.string,\n ]),\n right: PropTypes.oneOfType([\n PropTypes.oneOf(MARGIN_SIZES),\n PropTypes.string,\n ]),\n start: PropTypes.oneOfType([\n PropTypes.oneOf(MARGIN_SIZES),\n PropTypes.string,\n ]),\n top: PropTypes.oneOfType([\n PropTypes.oneOf(MARGIN_SIZES),\n PropTypes.string,\n ]),\n vertical: PropTypes.oneOfType([\n PropTypes.oneOf(MARGIN_SIZES),\n PropTypes.string,\n ]),\n }),\n PropTypes.string,\n ]),\n size: PropTypes.oneOfType([\n PropTypes.oneOf([\n 'xsmall',\n 'small',\n 'medium',\n 'large',\n 'xlarge',\n 'xxlarge',\n '2xl',\n '3xl',\n '4xl',\n '5xl',\n '6xl',\n ]),\n PropTypes.string,\n ]),\n tag: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),\n as: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.func,\n PropTypes.element,\n ]),\n textAlign: PropTypes.oneOf(['start', 'center', 'end', 'justify']),\n tip: PropTypes.oneOfType([\n PropTypes.shape({\n content: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),\n dropProps: PropTypes.shape({}),\n plain: PropTypes.bool,\n }),\n PropTypes.string,\n ]),\n truncate: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['tip'])]),\n weight: PropTypes.oneOfType([\n PropTypes.oneOf(['normal', 'bold', 'bolder', 'lighter']),\n PropTypes.number,\n ]),\n wordBreak: PropTypes.oneOf([\n 'normal',\n 'break-all',\n 'keep-all',\n 'break-word',\n ]),\n };\n}\nexport const TextPropTypes = PropType;\n","import styled, { css } from 'styled-components';\n\nimport {\n activeStyle,\n backgroundStyle,\n disabledStyle,\n focusStyle,\n unfocusStyle,\n genericStyles,\n getHoverIndicatorStyle,\n normalizeColor,\n} from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst radiusStyle = (props) => {\n // border.radius shouldn't impact an only-icon rendering.\n const isIconOnly = props.hasIcon && !props.hasLabel;\n const size = props.sizeProp;\n\n if (\n !isIconOnly &&\n size &&\n props.theme.button.size &&\n props.theme.button.size[size]\n ) {\n return props.theme.button.size[size].border.radius;\n }\n return props.theme.button.border.radius;\n};\n\nconst fontStyle = (props) => {\n const size = props.sizeProp || 'medium';\n const data = props.theme.text[size];\n return css`\n font-size: ${data.size};\n line-height: ${data.height};\n `;\n};\n\nconst padStyle = (props) => {\n const size = props.sizeProp;\n\n if (size && props.theme.button.size && props.theme.button.size[size]) {\n return css`\n ${props.theme.button.size[size].pad.vertical}\n ${props.theme.button.size[size].pad.horizontal}\n `;\n }\n return css`\n ${props.theme.button.padding.vertical}\n ${props.theme.button.padding.horizontal}\n `;\n};\n\nconst basicStyle = (props) => css`\n border: ${props.theme.button.border.width} solid\n ${normalizeColor(\n props.colorValue || props.theme.button.border.color || 'control',\n props.theme,\n )};\n border-radius: ${radiusStyle(props)};\n color: ${normalizeColor(props.theme.button.color || 'text', props.theme)};\n padding: ${padStyle(props)};\n ${fontStyle(props)}\n`;\n\nconst primaryStyle = (props) => css`\n ${backgroundStyle(\n normalizeColor(\n props.colorValue ||\n (props.theme.button.primary && props.theme.button.primary.color) ||\n 'control',\n props.theme,\n ),\n props.theme,\n props.theme.button.color,\n )}\n border-radius: ${radiusStyle(props)};\n ${props.theme.button.primary && props.theme.button.primary.extend}\n`;\n\nfunction getHoverColor(props) {\n if (props.colorValue) {\n return normalizeColor(props.colorValue, props.theme);\n }\n if (\n props.active &&\n props.primary &&\n props.theme.button.primary &&\n props.theme.button.primary.active &&\n props.theme.button.primary.active.border &&\n props.theme.button.primary.active.border.color\n ) {\n return normalizeColor(\n props.theme.button.primary.active.border.color,\n props.theme,\n );\n }\n return normalizeColor(\n props.theme.button.border.color || 'control',\n props.theme,\n );\n}\n\nconst hoverStyle = css`\n &:hover {\n ${(props) =>\n props.hoverIndicator &&\n getHoverIndicatorStyle(props.hoverIndicator, props.theme)} ${(props) =>\n !props.plain &&\n css`\n box-shadow: 0px 0px 0px 2px ${getHoverColor(props)};\n `};\n }\n`;\n\nconst fillStyle = (fillContainer) => {\n if (fillContainer === 'horizontal') {\n return 'width: 100%;';\n }\n if (fillContainer === 'vertical') {\n return 'height: 100%;';\n }\n if (fillContainer) {\n return `\n width: 100%;\n height: 100%;\n max-width: none;\n flex: 1 0 auto;\n `;\n }\n return undefined;\n};\n\nconst plainStyle = (props) => css`\n color: ${normalizeColor(props.colorValue || 'inherit', props.theme)};\n outline: none;\n border: none;\n padding: 0;\n text-align: inherit;\n`;\n\nconst activeButtonStyle = (props) => css`\n ${activeStyle}\n ${props.primary &&\n props.theme.button.primary &&\n props.theme.button.primary.active &&\n props.theme.button.primary.active.border &&\n props.theme.button.primary.active.border.color &&\n `border: ${props.theme.button.border.width} solid\n ${normalizeColor(\n props.theme.button.primary.active.border.color,\n props.theme,\n )};\n `}\n ${props.primary &&\n props.theme.button.primary &&\n props.theme.button.primary.active &&\n props.theme.button.primary.active.extend}\n`;\n\nconst disabledButtonStyle = (props) => css`\n ${disabledStyle(props.theme.button.disabled.opacity)}\n ${!props.plain &&\n props.theme.button.disabled.border &&\n props.theme.button.disabled.border.color &&\n `border: ${props.theme.button.border.width} solid\n ${normalizeColor(props.theme.button.disabled.border.color, props.theme)};`}\n ${props.theme.button.disabled.color &&\n // if primary button, apply disabled color to background. otherwise,\n // apply disabled color to the label\n (props.primary\n ? backgroundStyle(\n normalizeColor(props.theme.button.disabled.color, props.theme),\n props.theme,\n props.theme.button.color,\n )\n : `color: ${normalizeColor(\n props.theme.button.disabled.color,\n props.theme,\n )};`)}\n ${props.theme.button.disabled && props.theme.button.disabled.extend}\n`;\n\n// Deprecate props.theme.button.disabled.opacity in V3\nconst StyledButton = styled.button`\n display: inline-block;\n box-sizing: border-box;\n cursor: pointer;\n font: inherit;\n text-decoration: none;\n margin: 0;\n background: transparent;\n overflow: visible;\n text-transform: none;\n\n ${genericStyles}\n ${(props) => props.plain && plainStyle(props)}\n ${(props) => !props.plain && basicStyle(props)}\n ${(props) => props.primary && primaryStyle(props)}\n\n ${(props) => !props.disabled && !props.selected && !props.focus && hoverStyle}\n\n ${(props) => !props.disabled && props.active && activeButtonStyle(props)}\n ${(props) =>\n props.disabled &&\n props.theme.button &&\n props.theme.button.disabled &&\n disabledButtonStyle(props)}\n\n &:focus {\n ${(props) => (!props.plain || props.focusIndicator) && focusStyle()}\n }\n\n &:focus:not(:focus-visible) {\n ${unfocusStyle()}\n }\n\n ${(props) =>\n !props.plain &&\n props.theme.button.transition &&\n `\n transition-property: ${props.theme.button.transition.properties.join(',')};\n transition-duration: ${props.theme.button.transition.duration}s;\n transition-timing-function: ${props.theme.button.transition.timing};\n `}\n ${(props) => props.fillContainer && fillStyle(props.fillContainer)}\n ${(props) =>\n props.hasIcon &&\n !props.hasLabel &&\n `\n line-height: 0;\n `}\n ${(props) =>\n props.pad &&\n props.hasIcon &&\n !props.hasLabel &&\n `\n padding: ${props.theme.global.edgeSize.small};\n `}\n ${(props) => props.theme.button && props.theme.button.extend}\n`;\n\nStyledButton.defaultProps = {};\nObject.setPrototypeOf(StyledButton.defaultProps, defaultProps);\n\nexport { StyledButton };\n","import styled, { css } from 'styled-components';\n\nimport {\n activeStyle,\n disabledStyle,\n focusStyle,\n unfocusStyle,\n genericStyles,\n kindPartStyles,\n parseMetricToNum,\n} from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst radiusStyle = (props) => {\n const size = props.sizeProp;\n // caller has specified a themeObj to use for styling\n // relevant for cases like pagination which looks to theme.pagination.button\n const themeObj =\n typeof props.kind === 'object' ? props.kind : props.theme.button;\n if (size && themeObj.size && themeObj.size[size])\n return css`\n border-radius: ${themeObj.size[size].border.radius};\n `;\n if (themeObj.border && themeObj.border.radius)\n return css`\n border-radius: ${themeObj.border.radius};\n `;\n return '';\n};\n\nconst fontStyle = (props) => {\n const size = props.sizeProp || 'medium';\n const data = props.theme.text[size];\n return css`\n font-size: ${data.size};\n line-height: ${data.height};\n `;\n};\n\nconst padFromTheme = (size = 'medium', theme, themeObj) => {\n if (size && themeObj.size && themeObj.size[size] && themeObj.size[size].pad) {\n return {\n vertical: themeObj.size[size].pad.vertical,\n horizontal: themeObj.size[size].pad.horizontal,\n };\n }\n\n if (theme.button.padding) {\n return {\n vertical:\n theme.global.edgeSize[theme.button.padding.vertical] ||\n theme.button.padding.vertical,\n horizontal:\n theme.global.edgeSize[theme.button.padding.horizontal] ||\n theme.button.padding.horizontal,\n };\n }\n return undefined;\n};\n\nconst padStyle = ({ sizeProp: size, theme, kind }) => {\n // caller has specified a themeObj to use for styling\n // relevant for cases like pagination which looks to theme.pagination.button\n const themeObj = typeof kind === 'object' ? kind : theme.button;\n const pad = padFromTheme(size, theme, themeObj);\n return pad\n ? css`\n padding: ${pad.vertical} ${pad.horizontal};\n `\n : '';\n};\n\nconst basicStyle = (props) => css`\n border: none;\n ${radiusStyle(props)};\n ${padStyle(props)}\n ${fontStyle(props)}\n\n ${props.icon &&\n `\n > svg {\n display: flex;\n align-self: center;\n vertical-align: middle;\n }\n `}\n`;\n\nconst getPath = (theme, path) => {\n let obj;\n if (path) {\n obj = theme;\n const parts = path.split('.');\n while (obj && parts.length) obj = obj[parts.shift()];\n }\n return obj;\n};\n\nconst adjustPadStyle = (pad, width) => {\n const offset = parseMetricToNum(width);\n return css`\n padding: ${Math.max(parseMetricToNum(pad.vertical) - offset, 0)}px\n ${Math.max(parseMetricToNum(pad.horizontal) - offset, 0)}px;\n `;\n};\n\n// build up CSS from basic to specific based on the supplied sub-object paths\nconst kindStyle = ({ colorValue, kind, sizeProp: size, themePaths, theme }) => {\n const styles = [];\n\n // caller has specified a themeObj to use for styling\n // relevant for cases like pagination which looks to theme.pagination.button\n const themeObj = typeof kind === 'object' ? kind : theme.button;\n\n const pad = padFromTheme(size, theme, themeObj);\n themePaths.base.forEach((themePath) => {\n const obj = getPath(themeObj, themePath);\n if (obj) {\n styles.push(kindPartStyles(obj, theme, colorValue));\n if (obj.border && obj.border.width && pad && !obj.padding) {\n // Adjust padding from the button.size or just top button.padding\n // to deal with the kind's border width. But don't override any\n // padding in the kind itself for backward compatibility\n styles.push(adjustPadStyle(pad, obj.border.width));\n }\n }\n });\n\n // do the styling from the root of the object if caller passes one\n if (!themePaths.base.length && typeof kind === 'object') {\n const obj = kind;\n if (obj) {\n styles.push(kindPartStyles(obj, theme, colorValue));\n if (obj.border && obj.border.width && pad && !obj.padding) {\n // Adjust padding from the button.size or just top button.padding\n // to deal with the kind's border width. But don't override any\n // padding in the kind itself for backward compatibility\n styles.push(adjustPadStyle(pad, obj.border.width));\n }\n }\n }\n\n themePaths.hover.forEach((themePath) => {\n const obj = getPath(themeObj, themePath);\n\n if (obj) {\n const partStyles = kindPartStyles(obj, theme);\n let adjPadStyles = '';\n if (obj.border && obj.border.width && pad && !obj.padding) {\n // Adjust padding from the button.size or just top button.padding\n // to deal with the hover's border width. But don't override any\n // padding in the hover or hover.kind itself for backward compatibility\n adjPadStyles = adjustPadStyle(pad, obj.border.width);\n }\n if (partStyles.length > 0) {\n styles.push(\n css`\n &:hover {\n ${partStyles}\n ${adjPadStyles}\n }\n `,\n );\n }\n }\n });\n\n return styles;\n};\n\nconst hoverIndicatorStyle = ({ hoverIndicator, theme }) => {\n const themishObj = {};\n if (hoverIndicator === true || hoverIndicator === 'background')\n themishObj.background = theme.global.hover.background;\n else if (hoverIndicator.color || hoverIndicator.background) {\n if (hoverIndicator.background)\n themishObj.background = hoverIndicator.background;\n if (hoverIndicator.color) themishObj.color = hoverIndicator.color;\n } else themishObj.background = hoverIndicator;\n const styles = kindPartStyles(themishObj, theme);\n if (styles.length > 0)\n return css`\n &:hover {\n ${styles}\n }\n `;\n return '';\n};\n\nconst fillStyle = (fillContainer) => {\n if (fillContainer === 'horizontal') {\n return 'width: 100%;';\n }\n if (fillContainer === 'vertical') {\n return 'height: 100%;';\n }\n if (fillContainer) {\n return `\n width: 100%;\n height: 100%;\n max-width: none;\n flex: 1 0 auto;\n `;\n }\n return undefined;\n};\n\nconst plainStyle = (props) => css`\n outline: none;\n border: none;\n padding: 0;\n text-align: inherit;\n color: inherit;\n ${props.icon &&\n `\n > svg {\n display: flex;\n align-self: center;\n vertical-align: middle;\n }\n `}\n`;\n\nconst StyledButtonKind = styled.button.withConfig({\n // don't let kind attribute leak to DOM\n // https://styled-components.com/docs/api#shouldforwardprop\n shouldForwardProp: (prop, defaultValidatorFn) =>\n !['kind'].includes(prop) && defaultValidatorFn(prop),\n})`\n display: inline-block;\n box-sizing: border-box;\n cursor: pointer;\n font: inherit;\n text-decoration: none;\n margin: 0;\n background: transparent;\n overflow: visible;\n text-transform: none;\n\n ${genericStyles}\n ${(props) => props.plain && plainStyle(props)}\n // set baseline activeStyle for all buttons including plain buttons\n // buttons with kind will have active styling overridden by kindStyle\n // if they have specific state styles\n ${(props) => !props.disabled && props.active && activeStyle}\n ${(props) => !props.plain && basicStyle(props)}\n ${(props) => !props.plain && kindStyle(props)}\n ${(props) =>\n !props.plain &&\n props.align &&\n `\n text-align: ${props.align};\n `}\n ${(props) =>\n !props.disabled && props.hoverIndicator && hoverIndicatorStyle(props)}\n ${(props) =>\n props.disabled && disabledStyle(props.theme.button.disabled.opacity)}\n\n &:focus {\n ${(props) => (!props.plain || props.focusIndicator) && focusStyle()}\n }\n\n &:focus:not(:focus-visible) {\n ${unfocusStyle()}\n }\n\n ${(props) =>\n !props.plain &&\n props.theme.button.transition &&\n `\n transition-property: ${props.theme.button.transition.properties.join(',')};\n transition-duration: ${props.theme.button.transition.duration}s;\n transition-timing-function: ${props.theme.button.transition.timing};\n `}\n ${(props) => props.fillContainer && fillStyle(props.fillContainer)}\n ${(props) => props.theme.button && props.theme.button.extend}\n`;\n\nStyledButtonKind.defaultProps = {};\nObject.setPrototypeOf(StyledButtonKind.defaultProps, defaultProps);\n\nexport { StyledButtonKind };\n","import React, {\n forwardRef,\n useContext,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport styled, { ThemeContext } from 'styled-components';\n\nimport { useLayoutEffect } from '../../utils/use-isomorphic-layout-effect';\nimport { defaultProps } from '../../default-props';\nimport { useForwardedRef } from '../../utils';\nimport { Box } from '../Box';\nimport { CollapsiblePropTypes } from './propTypes';\n\nconst AnimatedBox = styled(Box)`\n ${(props) =>\n props.shouldOpen\n ? `visibility: hidden;\n position: absolute;\n pointer-events: none;`\n : // eslint-disable-next-line max-len\n `transition: ${`max-${props.dimension} ${props.speedProp}ms, opacity ${props.speedProp}ms`};\n opacity: ${props.open ? 1 : 0};\n overflow: ${props.animate || !props.open ? 'hidden' : 'visible'};`}\n`;\n\nconst Collapsible = forwardRef(\n ({ children, direction, open: openArg }, ref) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n const [open, setOpen] = useState(openArg);\n const [animate, setAnimate] = useState(false);\n const [speed, setSpeed] = useState(theme.collapsible.minSpeed);\n const dimension = useMemo(\n () => (direction === 'horizontal' ? 'width' : 'height'),\n [direction],\n );\n const containerRef = useForwardedRef(ref);\n const sizeRef = useRef();\n const shouldOpen = !open && openArg;\n const shouldClose = open && !openArg;\n\n // when the caller changes openArg, trigger animation\n useEffect(() => {\n if (openArg !== open) {\n setAnimate(true);\n setOpen(openArg);\n }\n }, [open, openArg]);\n\n // prepare to open or close\n useLayoutEffect(() => {\n const container = containerRef.current;\n\n // skip this if animation is in progress\n if (!animate && shouldOpen) {\n const parentPrevPosition = container.parentNode.style.position;\n container.parentNode.style.position = 'relative';\n const { [dimension]: size } = container.getBoundingClientRect();\n container.parentNode.style.position = parentPrevPosition;\n sizeRef.current = size;\n }\n\n if (shouldOpen) {\n container.style[`max-${dimension}`] = 0;\n } else if (shouldClose) {\n const { [dimension]: size } = container.getBoundingClientRect();\n container.style[`max-${dimension}`] = `${size}px`;\n }\n }, [shouldOpen, shouldClose, containerRef, dimension, animate]);\n\n useEffect(() => {\n if (shouldOpen || shouldClose) {\n const container = containerRef.current;\n const {\n collapsible: { minSpeed, baseline },\n } = theme;\n const nextSpeed = Math.max(\n (sizeRef.current / baseline) * minSpeed,\n minSpeed,\n );\n setSpeed(nextSpeed);\n\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n // Change the max to where we want to end up, the transition will\n // animate to get there. We do this in an animation frame to\n // give our starter setting a chance to fully render.\n container.style[`max-${dimension}`] = shouldOpen\n ? `${sizeRef.current}px`\n : 0;\n });\n });\n }\n }, [shouldOpen, shouldClose, containerRef, dimension, theme]);\n\n useEffect(() => {\n if (animate) {\n const container = containerRef.current;\n const timer = setTimeout(() => {\n setAnimate(false);\n container.removeAttribute('style');\n }, speed);\n return () => clearTimeout(timer);\n }\n return undefined;\n // we need open here to cancel the timer and restart it\n }, [animate, containerRef, speed, open]);\n\n return (\n \n {shouldOpen || open || animate ? children : null}\n \n );\n },\n);\n\nCollapsible.displayName = 'Collapsible';\nCollapsible.propTypes = CollapsiblePropTypes;\n\nexport { Collapsible };\n","import PropTypes from 'prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n open: PropTypes.bool,\n direction: PropTypes.oneOf(['horizontal', 'vertical']),\n };\n}\nexport const CollapsiblePropTypes = PropType;\n","import React, { forwardRef } from 'react';\n\nimport { StyledHeading } from './StyledHeading';\nimport { HeadingPropTypes } from './propTypes';\n\nconst Heading = forwardRef(\n (\n { color, fill, level, ...rest },\n ref, // munged to avoid styled-components putting it in the DOM\n ) => (\n // enforce level to be a number\n \n ),\n);\n\nHeading.displayName = 'Heading';\nHeading.defaultProps = {\n level: 1,\n responsive: true,\n};\nHeading.propTypes = HeadingPropTypes;\n\nexport { Heading };\n","import styled, { css } from 'styled-components';\n\nimport {\n breakpointStyle,\n genericStyles,\n normalizeColor,\n textAlignStyle,\n} from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst sizeStyle = props => {\n // size is a combination of the level and size properties\n const size = props.size || 'medium';\n const headingTheme = props.theme.heading;\n const levelStyle = headingTheme.level[props.level];\n if (levelStyle) {\n const data = levelStyle[size];\n const styles = [\n css`\n font-size: ${data ? data.size : size};\n line-height: ${data ? data.height : 'normal'};\n max-width: ${(props.fillProp && 'none') ||\n (data && data.maxWidth) ||\n levelStyle.medium.maxWidth};\n font-weight: ${levelStyle.font.weight || headingTheme.weight};\n `,\n ];\n if (props.responsive && headingTheme.responsiveBreakpoint) {\n const breakpoint =\n props.theme.global.breakpoints[headingTheme.responsiveBreakpoint];\n if (breakpoint) {\n const responsiveData = headingTheme.level[props.level + 1]\n ? headingTheme.level[props.level + 1][size]\n : headingTheme.level[props.level][size];\n if (responsiveData) {\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n font-size: ${responsiveData.size};\n line-height: ${responsiveData.height};\n max-width: ${(props.fillProp && 'none') || responsiveData.maxWidth};\n `,\n ),\n );\n }\n }\n }\n return styles;\n }\n console.warn(`Heading level ${props.level} is not defined in your theme.`);\n\n return '';\n};\n\nconst fontFamily = props => {\n const { font } = props.theme.heading.level[props.level] || {};\n if (font && font.family) {\n return css`\n font-family: ${font.family};\n `;\n }\n return props.theme.heading.font\n ? css`\n font-family: ${props.theme.heading.font.family};\n `\n : '';\n};\n\nconst truncateStyle = `\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\nconst colorStyle = css`\n color: ${props =>\n normalizeColor(props.colorProp || props.theme.heading.color, props.theme)};\n`;\n\nconst StyledHeading = styled.h1`\n ${genericStyles}\n ${props => fontFamily(props)}\n ${props => sizeStyle(props)}\n ${props => props.textAlign && textAlignStyle}\n ${props => props.truncate && truncateStyle}\n ${props => (props.colorProp || props.theme.heading.color) && colorStyle}\n ${props => props.theme.heading && props.theme.heading.extend}\n`;\n\nStyledHeading.defaultProps = {};\nObject.setPrototypeOf(StyledHeading.defaultProps, defaultProps);\n\nexport { StyledHeading };\n","import PropTypes from 'prop-types';\nimport { colorPropType, genericProps } from '../../utils/general-prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n ...genericProps,\n color: colorPropType,\n fill: PropTypes.bool,\n level: PropTypes.oneOf([1, 2, 3, 4, 5, 6, '1', '2', '3', '4', '5', '6']),\n responsive: PropTypes.bool,\n size: PropTypes.oneOfType([\n PropTypes.oneOf(['small', 'medium', 'large', 'xlarge']),\n PropTypes.string,\n ]),\n textAlign: PropTypes.oneOf(['start', 'center', 'end', 'justify']),\n truncate: PropTypes.bool,\n };\n}\nexport const HeadingPropTypes = PropType;\n","import PropTypes from 'prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n header: PropTypes.node,\n };\n}\nexport const AccordionPanelPropTypes = PropType;\n","import React, {\n cloneElement,\n forwardRef,\n useContext,\n useEffect,\n useState,\n} from 'react';\n\nimport { ThemeContext } from 'styled-components';\nimport { defaultProps } from '../../default-props';\n\nimport { normalizeColor } from '../../utils';\n\nimport { Box } from '../Box';\n\nimport { StyledAnchor } from './StyledAnchor';\nimport { AnchorPropTypes } from './propTypes';\n\nconst Anchor = forwardRef(\n (\n {\n a11yTitle,\n 'aria-label': ariaLabel,\n children,\n color,\n disabled,\n gap = 'small',\n href,\n icon,\n label,\n onBlur,\n onClick,\n onFocus,\n reverse,\n ...rest\n },\n ref,\n ) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n const [focus, setFocus] = useState();\n\n useEffect(() => {\n if ((icon || label) && children) {\n console.warn(\n 'Anchor should not have children if icon or label is provided',\n );\n }\n }, [children, icon, label]);\n\n let coloredIcon = icon;\n if (icon && !icon.props.color) {\n coloredIcon = cloneElement(icon, {\n color: normalizeColor(color || theme.anchor.color, theme),\n });\n }\n\n const first = reverse ? label : coloredIcon;\n const second = reverse ? coloredIcon : label;\n\n return (\n {\n setFocus(true);\n if (onFocus) onFocus(event);\n }}\n onBlur={(event) => {\n setFocus(false);\n if (onBlur) onBlur(event);\n }}\n >\n {first && second ? (\n \n {first}\n {second}\n \n ) : (\n first || second || children\n )}\n \n );\n },\n);\n\nAnchor.displayName = 'Anchor';\nAnchor.propTypes = AnchorPropTypes;\n\nexport { Anchor };\n","import styled, { css } from 'styled-components';\n\nimport { focusStyle, genericStyles, normalizeColor } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst disabledStyle = `\n opacity: 0.3;\n cursor: default;\n text-decoration: none;\n`;\n\nconst sizeStyle = (props) => {\n if (props.size) {\n const size = props.size || 'medium';\n const data = props.theme.text[size];\n return css`\n font-size: ${data ? data.size : size};\n line-height: ${data ? data.height : 'normal'};\n `;\n }\n return css`\n font-size: inherit;\n line-height: inherit;\n `;\n};\n\nconst StyledAnchor = styled.a.withConfig({\n // prevent custom props from bleeding into DOM\n // https://styled-components.com/docs/api#shouldforwardprop\n shouldForwardProp: (prop, defaultValidatorFn) =>\n !['as', 'colorProp', 'focus', 'hasIcon', 'hasLabel', 'reverse'].includes(\n prop,\n ) && defaultValidatorFn(prop),\n})`\n box-sizing: border-box;\n ${(props) => sizeStyle(props)}\n color: ${(props) =>\n normalizeColor(props.colorProp || props.theme.anchor.color, props.theme)};\n ${(props) =>\n props.weight\n ? `font-weight: ${props.weight};`\n : props.theme.anchor.fontWeight &&\n `font-weight: ${props.theme.anchor.fontWeight};`}\n text-decoration: ${(props) =>\n props.hasIcon ? 'none' : props.theme.anchor.textDecoration};\n cursor: pointer;\n ${genericStyles}\n\n ${(props) =>\n !props.disabled &&\n props.theme.anchor.hover &&\n css`\n &:hover {\n ${props.theme.anchor.hover.textDecoration &&\n `text-decoration: ${props.theme.anchor.hover.textDecoration};`}\n ${props.theme.anchor.hover.fontWeight &&\n `font-weight: ${props.theme.anchor.hover.fontWeight};`}\n ${props.theme.anchor.hover.extend}\n }\n `}\n ${(props) =>\n props.hasIcon &&\n !props.hasLabel &&\n `\n padding: ${props.theme.global.edgeSize.small};\n `}\n ${(props) => props.disabled && disabledStyle}\n ${(props) => props.focus && focusStyle()}\n ${(props) => props.theme.anchor.extend}\n`;\n\nStyledAnchor.defaultProps = {};\nObject.setPrototypeOf(StyledAnchor.defaultProps, defaultProps);\n\nexport { StyledAnchor };\n","export { Avatar } from './Avatar';\n","import React, { useCallback, useContext, useMemo } from 'react';\nimport { ThemeContext } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\nimport { StyledAvatar, StyledAvatarText } from './StyledAvatar';\nimport { AvatarPropTypes } from './propTypes';\n\nconst Avatar = ({\n align = 'center',\n children,\n height, // for warning check and discarding the value\n justify = 'center',\n round = 'full',\n size = 'medium',\n src,\n width, // for warning check and discarding the value\n ...rest\n}) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n const avatarSize = theme.avatar.size[size] || size;\n const avatarTextSize = theme.avatar.text.size[size] || 'large';\n\n const avatarProps = useMemo(\n () => ({\n align,\n height: avatarSize,\n justify,\n overflow: 'hidden',\n round,\n width: avatarSize,\n }),\n [align, avatarSize, justify, round],\n );\n\n const AvatarChildren = useCallback(\n () => (\n \n {children}\n \n ),\n [avatarProps, children, rest],\n );\n\n if (height || width) {\n console.warn(\n 'Avatar should use `size` instead of `height` or `width` props',\n );\n }\n\n if (typeof src === 'string') {\n return (\n \n );\n }\n if (typeof children === 'string') {\n return (\n \n \n {children}\n \n \n );\n }\n return ;\n};\n\nAvatar.propTypes = AvatarPropTypes;\nexport { Avatar };\n","import styled from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { Text } from '../Text';\n\nconst StyledAvatarText = styled(Text)`\n ${props =>\n props.theme.avatar &&\n props.theme.avatar.text &&\n props.theme.avatar.text.fontWeight &&\n `font-weight: ${props.theme.avatar.text.fontWeight};`}\n ${props => props.theme.avatar.text && props.theme.avatar.text.extend}\n`;\n\nStyledAvatarText.defaultProps = {};\nObject.setPrototypeOf(StyledAvatarText.defaultProps, defaultProps);\n\nconst StyledAvatar = styled(Box)`\n ${props => props.theme.avatar && props.theme.avatar.extend}\n`;\n\nStyledAvatar.defaultProps = {};\nObject.setPrototypeOf(StyledAvatar.defaultProps, defaultProps);\n\nexport { StyledAvatar, StyledAvatarText };\n","import PropTypes from 'prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n size: PropTypes.oneOfType([\n PropTypes.oneOf([\n 'xsmall',\n 'small',\n 'medium',\n 'large',\n 'xlarge',\n '2xl',\n '3xl',\n '4xl',\n '5xl',\n ]),\n PropTypes.string,\n ]),\n src: PropTypes.string,\n };\n}\nexport const AvatarPropTypes = PropType;\n","import React, {\n forwardRef,\n useCallback,\n useContext,\n useMemo,\n useRef,\n useState,\n useEffect,\n} from 'react';\nimport { ThemeContext } from 'styled-components';\nimport { defaultProps } from '../../default-props';\nimport { AnnounceContext } from '../../contexts/AnnounceContext';\nimport { MessageContext } from '../../contexts/MessageContext';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { Heading } from '../Heading';\nimport { Keyboard } from '../Keyboard';\n\nimport {\n StyledCalendar,\n StyledDay,\n StyledDayContainer,\n StyledWeek,\n StyledWeeks,\n StyledWeeksContainer,\n} from './StyledCalendar';\nimport {\n addDays,\n addMonths,\n betweenDates,\n daysApart,\n endOfMonth,\n formatToLocalYYYYMMDD,\n getFormattedDate,\n getTimestamp,\n normalizeForTimezone,\n startOfMonth,\n subtractDays,\n subtractMonths,\n withinDates,\n} from './utils';\nimport { CalendarPropTypes } from './propTypes';\n\nconst headingPadMap = {\n small: 'xsmall',\n medium: 'small',\n large: 'medium',\n};\n\nconst activeDates = {\n start: 'start',\n end: 'end',\n};\n\nconst formatSelectedDatesString = (date, normalize) => `Currently selected\n ${date?.map((item) => {\n let dates;\n if (!Array.isArray(item)) {\n dates = `${formatToLocalYYYYMMDD(item, normalize)} `;\n } else {\n const start =\n item[0] !== undefined\n ? formatToLocalYYYYMMDD(item[0], normalize)\n : 'none';\n const end =\n item[1] !== undefined\n ? formatToLocalYYYYMMDD(item[1], normalize)\n : 'none';\n dates = `${start} through ${end}`;\n }\n\n return dates;\n })}`;\n\nconst getAccessibilityString = (date, dates, normalize) => {\n if (date && !Array.isArray(date)) {\n return `Currently selected ${formatToLocalYYYYMMDD(date, normalize)};`;\n }\n if (date && Array.isArray(date)) {\n return formatSelectedDatesString(date, normalize);\n }\n if (dates?.length) {\n return formatSelectedDatesString(dates, normalize);\n }\n\n return 'No date selected';\n};\n\n// function that runs inside the useEffect for date and dates\nconst normalizeDate = (dateValue, timestamp, normalize) => {\n if (typeof dateValue === 'string') {\n return normalizeForTimezone(dateValue, timestamp, normalize);\n }\n if (Array.isArray(dateValue)) {\n if (Array.isArray(dateValue[0])) {\n const [from, to] = dateValue[0].map(\n (day) => normalizeForTimezone(day, timestamp, normalize) || undefined,\n );\n return [[from, to]];\n }\n const dateArray = [];\n dateValue.forEach((d) => {\n if (Array.isArray(d)) {\n const [from, to] = d.map((day) =>\n normalizeForTimezone(day, timestamp, normalize),\n );\n dateArray.push([from, to]);\n } else {\n dateArray.push(normalizeForTimezone(d, timestamp, normalize));\n }\n });\n return dateArray;\n }\n return undefined;\n};\n\nconst normalizeReference = (reference, date, dates, timestamp) => {\n let normalizedReference;\n if (reference) {\n normalizedReference = new Date(normalizeForTimezone(reference, timestamp));\n } else if (date) {\n if (typeof date === 'string') {\n normalizedReference = new Date(date);\n } else if (Array.isArray(date)) {\n if (typeof date[0] === 'string') {\n normalizedReference = new Date(date[0]);\n } else if (Array.isArray(date[0])) {\n normalizedReference = new Date(date[0][0] ? date[0][0] : date[0][1]);\n } else {\n normalizedReference = new Date();\n normalizedReference.setHours(0, 0, 0, 0);\n }\n }\n } else if (dates && dates.length > 0) {\n if (typeof dates[0] === 'string') {\n normalizedReference = new Date(dates[0]);\n } else if (Array.isArray(dates[0])) {\n normalizedReference = new Date(dates[0][0] ? dates[0][0] : dates[0][1]);\n } else {\n normalizedReference = new Date();\n normalizedReference.setHours(0, 0, 0, 0);\n }\n } else {\n normalizedReference = new Date();\n normalizedReference.setHours(0, 0, 0, 0);\n }\n return normalizedReference;\n};\n\nconst buildDisplayBounds = (reference, firstDayOfWeek) => {\n let start = new Date(reference);\n start.setDate(1); // first of month\n\n // In case Sunday is the first day of the month, and the user asked for Monday\n // to be the first day of the week, then we need to include Sunday and six\n // days prior.\n start =\n start.getDay() === 0 && firstDayOfWeek === 1\n ? (start = subtractDays(start, 6))\n : // beginning of week\n (start = subtractDays(start, start.getDay() - firstDayOfWeek));\n\n const end = addDays(start, 7 * 5 + 7); // 5 weeks to end of week\n return [start, end];\n};\n\nconst millisecondsPerYear = 31557600000;\n\nconst CalendarDayButton = (props) => \n );\n }\n return content;\n })}\n \n );\n};\n\nexport { Legend };\n","import React, { forwardRef } from 'react';\nimport { Box } from '../Box';\n\nconst XAxis = forwardRef(({ values, pad, renderValue, serie }, ref) => {\n // When there are only labels at the end of the axis, let them take as much\n // space as they like. If there are more, align their container to the\n // data/guide lines and then let their content overflow that.\n const itemProps =\n values.length === 2\n ? {}\n : { width: '1px', overflow: 'visible', align: 'center' };\n\n return (\n \n {values.map((dataIndex, i) => (\n // eslint-disable-next-line react/no-array-index-key\n \n {serie ? renderValue(serie, dataIndex) : dataIndex}\n \n ))}\n \n );\n});\n\nexport { XAxis };\n","import React, { forwardRef, useContext } from 'react';\nimport { ThemeContext } from 'styled-components';\nimport { Box } from '../Box';\nimport { round } from '../Chart';\nimport { doublePad } from './utils';\n\nconst YAxis = forwardRef(({ values, pad, renderValue, serie = {} }, ref) => {\n const theme = useContext(ThemeContext);\n const { render, suffix } = serie;\n\n let divideBy;\n let unit;\n if (!render && !suffix) {\n // figure out how many digits to show\n const maxValue = Math.max(...values.map((v) => Math.abs(v)));\n if (maxValue > 10000000) {\n divideBy = 1000000;\n unit = 'M';\n } else if (maxValue > 10000) {\n divideBy = 1000;\n unit = 'K';\n }\n }\n\n // Set basis to match double the vertical pad, so we can align the\n // text with the guides\n const edgeSize = doublePad[pad.vertical || pad];\n const basis = theme.global.edgeSize[edgeSize] || edgeSize;\n\n return (\n \n {values.map((axisValue, i) => {\n let content = renderValue(serie, undefined, axisValue);\n if (content === axisValue) {\n if (divideBy) content = round(content / divideBy, 0);\n if (unit) content = `${content}${unit}`;\n }\n return (\n \n {content}\n \n );\n })}\n \n );\n});\n\nexport { YAxis };\n","import React, { forwardRef } from 'react';\nimport { Box } from '../Box';\n\nconst XGuide = forwardRef(({ guide, pad }, ref) => (\n \n {Array.from({ length: guide.x.count }).map((_, i) => (\n // eslint-disable-next-line react/no-array-index-key\n \n ))}\n \n));\n\nexport { XGuide };\n","import React, { forwardRef } from 'react';\nimport { Box } from '../Box';\n\nconst YGuide = forwardRef(({ guide, pad: padArg }, ref) => {\n // omit any horizontal pad so the guides cover the thickness that\n // is within the pad\n let pad;\n if (typeof padArg === 'object')\n pad = { ...padArg, start: 'none', end: 'none' };\n else if (typeof padArg === 'string') pad = { vertical: padArg };\n return (\n \n {Array.from({ length: guide.y.count }).map((_, i) => (\n // eslint-disable-next-line react/no-array-index-key\n \n ))}\n \n );\n});\n\nexport { YGuide };\n","import PropTypes from 'prop-types';\nimport {\n genericProps,\n padPropType,\n pointPropType,\n} from '../../utils/general-prop-types';\n\nconst colorType = PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.arrayOf(\n PropTypes.shape({\n color: PropTypes.string,\n value: PropTypes.number,\n }),\n ),\n]);\n\nconst thicknessType = PropTypes.oneOfType([\n PropTypes.oneOf([\n 'hair',\n 'xsmall',\n 'small',\n 'medium',\n 'large',\n 'xlarge',\n 'none',\n ]),\n PropTypes.string,\n]);\n\nconst chartType = PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.shape({\n property: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.shape({\n property: PropTypes.string,\n color: colorType,\n }),\n ]),\n ),\n PropTypes.shape({\n color: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.shape({\n property: PropTypes.string,\n transform: PropTypes.func,\n }),\n ]),\n thickness: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.shape({\n property: PropTypes.string,\n transform: PropTypes.func,\n }),\n ]),\n x: PropTypes.string,\n y: PropTypes.string,\n }),\n ]),\n color: colorType,\n dash: PropTypes.bool,\n opacity: PropTypes.oneOfType([\n PropTypes.oneOf(['weak', 'medium', 'strong']),\n PropTypes.number,\n PropTypes.bool,\n ]),\n point: pointPropType,\n round: PropTypes.bool,\n thickness: thicknessType,\n type: PropTypes.oneOf([\n 'bar',\n 'bars',\n 'line',\n 'area',\n 'areas',\n 'lines',\n 'point',\n ]),\n }),\n]);\n\nconst seriesType = PropTypes.oneOfType([\n PropTypes.string, // property\n PropTypes.shape({\n label: PropTypes.oneOfType([PropTypes.string]),\n prefix: PropTypes.string,\n property: PropTypes.string,\n render: PropTypes.func,\n suffix: PropTypes.string,\n }),\n]);\n\nconst granularityType = PropTypes.oneOf(['coarse', 'medium', 'fine']);\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n ...genericProps,\n axis: PropTypes.oneOfType([\n PropTypes.bool,\n PropTypes.shape({\n x: PropTypes.oneOfType([\n PropTypes.bool,\n PropTypes.string,\n PropTypes.shape({\n property: PropTypes.string,\n granularity: granularityType,\n }),\n ]),\n y: PropTypes.oneOfType([\n PropTypes.bool,\n PropTypes.string,\n PropTypes.shape({\n property: PropTypes.string,\n granularity: granularityType,\n }),\n ]),\n }),\n ]),\n bounds: PropTypes.oneOfType([\n PropTypes.oneOf(['align']),\n PropTypes.shape({\n y: PropTypes.arrayOf(PropTypes.number),\n }),\n ]),\n chart: PropTypes.oneOfType([chartType, PropTypes.arrayOf(chartType)]),\n data: PropTypes.arrayOf(PropTypes.shape({})),\n detail: PropTypes.bool,\n gap: PropTypes.oneOfType([\n PropTypes.oneOf([\n 'none',\n 'xxsmall',\n 'xsmall',\n 'small',\n 'medium',\n 'large',\n 'xlarge',\n ]),\n PropTypes.string,\n ]),\n guide: PropTypes.oneOfType([\n PropTypes.bool,\n PropTypes.shape({\n x: PropTypes.oneOfType([\n PropTypes.bool,\n PropTypes.shape({\n granularity: granularityType,\n }),\n ]),\n y: PropTypes.oneOfType([\n PropTypes.bool,\n PropTypes.shape({\n granularity: granularityType,\n }),\n ]),\n }),\n ]),\n legend: PropTypes.bool,\n offset: PropTypes.bool,\n pad: padPropType,\n placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n series: PropTypes.oneOfType([seriesType, PropTypes.arrayOf(seriesType)]),\n size: PropTypes.oneOfType([\n PropTypes.oneOf(['fill']),\n PropTypes.shape({\n height: PropTypes.oneOfType([\n PropTypes.oneOf([\n 'xxsmall',\n 'xsmall',\n 'small',\n 'medium',\n 'large',\n 'xlarge',\n 'fill',\n ]),\n PropTypes.string,\n ]),\n width: PropTypes.oneOfType([\n PropTypes.oneOf([\n 'xxsmall',\n 'xsmall',\n 'small',\n 'medium',\n 'large',\n 'xlarge',\n 'fill',\n 'auto',\n ]),\n PropTypes.string,\n ]),\n }),\n ]),\n };\n}\nexport const DataChartPropTypes = PropType;\n","export { DataTable } from './DataTable';\n","import React, {\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useRef,\n useState,\n Fragment,\n} from 'react';\nimport { ThemeContext } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { useLayoutEffect } from '../../utils/use-isomorphic-layout-effect';\nimport { Box } from '../Box';\nimport { Text } from '../Text';\nimport { Header } from './Header';\nimport { Footer } from './Footer';\nimport { Body } from './Body';\nimport { GroupedBody } from './GroupedBody';\nimport { Pagination } from '../Pagination';\nimport {\n buildFooterValues,\n buildGroups,\n buildGroupState,\n filterAndSortData,\n initializeFilters,\n normalizeCellProps,\n normalizePrimaryProperty,\n} from './buildState';\nimport { normalizeShow, usePagination } from '../../utils';\nimport {\n StyledContainer,\n StyledDataTable,\n StyledPlaceholder,\n} from './StyledDataTable';\nimport { DataTablePropTypes } from './propTypes';\nimport { PlaceholderBody } from './PlaceholderBody';\n\nfunction useGroupState(groups, groupBy) {\n const [groupState, setGroupState] = useState(() =>\n buildGroupState(groups, groupBy),\n );\n const [prevDeps, setPrevDeps] = useState({ groups, groupBy });\n\n const { groups: prevGroups, groupBy: prevGroupBy } = prevDeps;\n if (groups !== prevGroups || groupBy !== prevGroupBy) {\n setPrevDeps({ groups, groupBy });\n const nextGroupState = buildGroupState(groups, groupBy);\n setGroupState(nextGroupState);\n return [nextGroupState, setGroupState];\n }\n\n return [groupState, setGroupState];\n}\n\nconst DataTable = ({\n background,\n border,\n columns = [],\n data = [],\n fill,\n groupBy,\n onClickRow, // removing unknown DOM attributes\n onMore,\n onSearch, // removing unknown DOM attributes\n onSelect,\n onSort: onSortProp,\n onUpdate,\n replace,\n pad,\n paginate,\n pin,\n placeholder,\n primaryKey,\n resizeable,\n rowProps,\n select,\n show: showProp,\n size,\n sort: sortProp,\n sortable,\n rowDetails,\n step = 50,\n ...rest\n}) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n\n // property name of the primary property\n const primaryProperty = useMemo(\n () => normalizePrimaryProperty(columns, primaryKey),\n [columns, primaryKey],\n );\n\n // whether or not we should show a footer\n const showFooter = useMemo(\n () => columns.filter((c) => c.footer).length > 0,\n [columns],\n );\n\n // what column we are actively capturing filter input on\n const [filtering, setFiltering] = useState();\n\n // the currently active filters\n const [filters, setFilters] = useState(initializeFilters(columns));\n\n // which column we are sorting on, with direction\n const [sort, setSort] = useState(sortProp || {});\n\n // the data filtered and sorted, if needed\n // Note: onUpdate mode expects the data to be passed\n // in completely filtered and sorted already.\n const adjustedData = useMemo(\n () => (onUpdate ? data : filterAndSortData(data, filters, onSearch, sort)),\n [data, filters, onSearch, onUpdate, sort],\n );\n\n // the values to put in the footer cells\n const footerValues = useMemo(\n () => buildFooterValues(columns, adjustedData),\n [adjustedData, columns],\n );\n\n // cell styling properties: background, border, pad\n const cellProps = useMemo(\n () => normalizeCellProps({ background, border, pad, pin }, theme),\n [background, border, pad, pin, theme],\n );\n\n // if groupBy, an array with one item per unique groupBy key value\n const groups = useMemo(\n () => buildGroups(columns, adjustedData, groupBy, primaryProperty),\n [adjustedData, columns, groupBy, primaryProperty],\n );\n\n // an object indicating which group values are expanded\n const [groupState, setGroupState] = useGroupState(groups, groupBy);\n\n const [limit, setLimit] = useState(step);\n\n const [selected, setSelected] = useState(\n select || (onSelect && []) || undefined,\n );\n useEffect(\n () => setSelected(select || (onSelect && []) || undefined),\n [onSelect, select],\n );\n\n const [rowExpand, setRowExpand] = useState([]);\n\n // any customized column widths\n const [widths, setWidths] = useState({});\n\n // placeholder placement stuff\n const headerRef = useRef();\n const bodyRef = useRef();\n const footerRef = useRef();\n const [headerHeight, setHeaderHeight] = useState();\n const [footerHeight, setFooterHeight] = useState();\n\n // offset compensation when body overflows\n const [scrollOffset, setScrollOffset] = useState(0);\n\n // multiple pinned columns offset\n const [pinnedOffset, setPinnedOffset] = useState();\n\n const onHeaderWidths = useCallback(\n (columnWidths) => {\n const hasSelectColumn = Boolean(select || onSelect);\n let pinnedProperties = columns\n .map((pinnedColumn) => pinnedColumn.pin && pinnedColumn.property)\n .filter((n) => n);\n if (hasSelectColumn && pinnedProperties.length > 0) {\n pinnedProperties = ['_grommetDataTableSelect', ...pinnedProperties];\n }\n const nextPinnedOffset = {};\n\n if (columnWidths !== []) {\n pinnedProperties.forEach((property, index) => {\n const columnIndex =\n property === '_grommetDataTableSelect'\n ? 0\n : columns.findIndex((column) => column.property === property) +\n hasSelectColumn;\n if (columnWidths[columnIndex]) {\n nextPinnedOffset[property] = {\n width: columnWidths[columnIndex],\n left:\n index === 0\n ? 0\n : nextPinnedOffset[pinnedProperties[index - 1]].left +\n nextPinnedOffset[pinnedProperties[index - 1]].width,\n };\n }\n });\n setPinnedOffset(nextPinnedOffset);\n }\n },\n [columns, setPinnedOffset, select, onSelect],\n );\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n useLayoutEffect(() => {\n const nextScrollOffset =\n (bodyRef.current.parentElement?.clientWidth || 0) -\n bodyRef.current.clientWidth;\n if (nextScrollOffset !== scrollOffset) setScrollOffset(nextScrollOffset);\n });\n\n useLayoutEffect(() => {\n if (placeholder) {\n if (headerRef.current) {\n const nextHeaderHeight =\n headerRef.current.getBoundingClientRect().height;\n setHeaderHeight(nextHeaderHeight);\n } else setHeaderHeight(0);\n if (footerRef.current) {\n const nextFooterHeight =\n footerRef.current.getBoundingClientRect().height;\n setFooterHeight(nextFooterHeight);\n } else setFooterHeight(0);\n }\n }, [footerRef, headerRef, placeholder]);\n\n // remember that we are filtering on this property\n const onFiltering = (property) => setFiltering(property);\n\n // remember the search text we should filter this property by\n const onFilter = (property, value) => {\n const nextFilters = { ...filters };\n nextFilters[property] = value;\n setFilters(nextFilters);\n // Let caller know about search, if interested\n if (onSearch) onSearch(nextFilters);\n };\n\n // toggle the sort direction on this property\n const onSort = (property) => () => {\n const external = sort ? sort.external : false;\n let direction;\n if (!sort || property !== sort.property) direction = 'asc';\n else if (sort.direction === 'asc') direction = 'desc';\n else direction = 'asc';\n const nextSort = { property, direction, external };\n setSort(nextSort);\n if (onUpdate) {\n const opts = {\n count: limit,\n sort: nextSort,\n };\n if (groups) {\n opts.expanded = Object.keys(groupState).filter(\n (k) => groupState[k].expanded,\n );\n }\n if (showProp) opts.show = showProp;\n onUpdate(opts);\n }\n if (onSortProp) onSortProp(nextSort);\n };\n\n // toggle whether the group is expanded\n const onToggleGroup = (groupValue) => () => {\n const nextGroupState = { ...groupState };\n nextGroupState[groupValue] = {\n ...nextGroupState[groupValue],\n expanded: !nextGroupState[groupValue].expanded,\n };\n setGroupState(nextGroupState);\n const expandedKeys = Object.keys(nextGroupState).filter(\n (k) => nextGroupState[k].expanded,\n );\n if (onUpdate) {\n const opts = {\n expanded: expandedKeys,\n count: limit,\n };\n if (sort?.property) opts.sort = sort;\n if (showProp) opts.show = showProp;\n onUpdate(opts);\n }\n if (groupBy.onExpand) {\n groupBy.onExpand(expandedKeys);\n }\n };\n\n // toggle whether all groups are expanded\n const onToggleGroups = () => {\n const expanded =\n Object.keys(groupState).filter((k) => !groupState[k].expanded).length ===\n 0;\n const nextGroupState = {};\n Object.keys(groupState).forEach((k) => {\n nextGroupState[k] = { ...groupState[k], expanded: !expanded };\n });\n setGroupState(nextGroupState);\n const expandedKeys = Object.keys(nextGroupState).filter(\n (k) => nextGroupState[k].expanded,\n );\n if (onUpdate) {\n const opts = {\n expanded: expandedKeys,\n count: limit,\n };\n if (showProp) opts.show = showProp;\n if (sort?.property) opts.sort = sort;\n onUpdate(opts);\n }\n if (groupBy.onExpand) {\n groupBy.onExpand(expandedKeys);\n }\n };\n\n // remember the width this property's column should be\n const onResize = useCallback(\n (property, width) => {\n if (widths[property] !== width) {\n const nextWidths = { ...widths };\n nextWidths[property] = width;\n setWidths(nextWidths);\n }\n },\n [widths],\n );\n\n if (size && resizeable) {\n console.warn('DataTable cannot combine \"size\" and \"resizeble\".');\n }\n if (onUpdate && onMore) {\n console.warn('DataTable cannot combine \"onUpdate\" and \"onMore\".');\n }\n\n const [items, paginationProps] = usePagination({\n data: adjustedData,\n page: normalizeShow(showProp, step),\n step,\n ...paginate, // let any specifications from paginate prop override component\n });\n\n const Container = paginate ? StyledContainer : Fragment;\n const containterProps = paginate\n ? { ...theme.dataTable.container, fill }\n : undefined;\n\n // DataTable should overflow if paginating but pagination component\n // should remain in its location\n const OverflowContainer = paginate ? Box : Fragment;\n const overflowContainerProps = paginate\n ? { overflow: { horizontal: 'auto' }, flex: false }\n : undefined;\n\n // necessary for Firefox, otherwise paginated DataTable will\n // not fill its container like it does by default on other\n // browsers like Chrome/Safari\n const paginatedDataTableProps =\n paginate && (fill === true || fill === 'horizontal')\n ? { style: { minWidth: '100%' } }\n : undefined;\n\n let placeholderContent = placeholder;\n if (placeholder && typeof placeholder === 'string') {\n placeholderContent = (\n \n {placeholder}\n \n );\n }\n\n const bodyContent = groups ? (\n {\n if (adjustedData.length === limit) {\n const opts = {\n expanded: Object.keys(groupState).filter(\n (k) => groupState[k].expanded,\n ),\n count: limit + step,\n };\n if (sort?.property) opts.sort = sort;\n if (showProp) opts.show = showProp;\n onUpdate(opts);\n setLimit((prev) => prev + step);\n }\n }\n : onMore\n }\n onSelect={\n onSelect\n ? (nextSelected, row) => {\n setSelected(nextSelected);\n if (onSelect) onSelect(nextSelected, row);\n }\n : undefined\n }\n onToggle={onToggleGroup}\n onUpdate={onUpdate}\n replace={replace}\n rowProps={rowProps}\n selected={selected}\n size={size}\n step={step}\n />\n ) : (\n {\n if (adjustedData.length === limit) {\n const opts = {\n count: limit + step,\n };\n if (sort?.property) opts.sort = sort;\n if (showProp) opts.show = showProp;\n onUpdate(opts);\n setLimit((prev) => prev + step);\n }\n }\n : onMore\n }\n replace={replace}\n onClickRow={onClickRow}\n onSelect={\n onSelect\n ? (nextSelected, row) => {\n setSelected(nextSelected);\n if (onSelect) onSelect(nextSelected, row);\n }\n : undefined\n }\n pinnedCellProps={cellProps.pinned}\n pinnedOffset={pinnedOffset}\n primaryProperty={primaryProperty}\n rowProps={rowProps}\n selected={selected}\n show={!paginate ? showProp : undefined}\n size={size}\n step={step}\n rowDetails={rowDetails}\n rowExpand={rowExpand}\n setRowExpand={setRowExpand}\n />\n );\n\n return (\n \n \n \n {\n setSelected(nextSelected);\n if (onSelect) onSelect(nextSelected);\n }\n : undefined\n }\n onSort={sortable || sortProp || onSortProp ? onSort : undefined}\n onToggle={onToggleGroups}\n onWidths={onHeaderWidths}\n primaryProperty={primaryProperty}\n scrollOffset={scrollOffset}\n rowDetails={rowDetails}\n />\n \n {(placeholder && (!items || items.length === 0)) ? (\n \n {placeholderContent}\n \n ) : bodyContent }\n {showFooter && (\n \n )}\n {placeholder && items && items.length > 0 && (\n \n {placeholderContent}\n \n )}\n \n \n {paginate && adjustedData.length > step && items && items.length ? (\n \n ) : null}\n \n );\n};\n\nDataTable.propTypes = DataTablePropTypes;\n\nexport { DataTable };\n","/* eslint-disable no-underscore-dangle */\nimport React, {\n forwardRef,\n useCallback,\n useContext,\n useEffect,\n useState,\n} from 'react';\nimport styled, { css, ThemeContext } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { CheckBox } from '../CheckBox';\nimport { TableCell } from '../TableCell';\nimport { Text } from '../Text';\n\nimport { Resizer } from './Resizer';\nimport { Searcher } from './Searcher';\nimport { ExpanderCell } from './ExpanderCell';\nimport {\n StyledDataTableCell,\n StyledDataTableHeader,\n StyledDataTableRow,\n} from './StyledDataTable';\nimport { datumValue } from './buildState';\nimport { kindPartStyles } from '../../utils/styles';\nimport { normalizeColor } from '../../utils/colors';\n\n// separate theme values into groupings depending on what\n// part of header cell they should style\nconst separateThemeProps = (theme) => {\n const {\n background, // covered by cellProps\n border, // covered by cellProps\n color,\n font,\n gap, // gap is used for space between header cell elements only\n pad, // covered by cellProps\n units,\n ...rest\n } = theme.dataTable.header;\n\n const textProps = { color, ...font };\n const iconProps = { color };\n const layoutProps = { ...rest };\n\n return [layoutProps, textProps, iconProps];\n};\n\n// build up CSS from basic to specific based on the supplied sub-object paths.\n// adapted from StyledButtonKind to only include parts relevant for DataTable\nconst buttonStyle = ({ pad, theme }) => {\n const styles = [];\n const [layoutProps, , iconProps] = separateThemeProps(theme);\n\n // if cell is sortable, we want pad to be applied\n // to the button instead of the cell\n if (pad) {\n styles.push(kindPartStyles({ pad }, theme));\n }\n\n if (layoutProps) {\n styles.push(kindPartStyles(layoutProps, theme));\n }\n\n if (layoutProps.hover) {\n // CSS for this sub-object in the theme\n const partStyles = kindPartStyles(layoutProps.hover, theme);\n if (partStyles.length > 0)\n styles.push(\n css`\n &:hover {\n ${partStyles}\n }\n `,\n );\n }\n\n if (iconProps.color) {\n styles.push(\n css`\n svg {\n stroke: ${normalizeColor(iconProps.color, theme)};\n fill: ${normalizeColor(iconProps.color, theme)};\n }\n `,\n );\n }\n\n return styles;\n};\n\nconst StyledHeaderCellButton = styled(Button)`\n ${(props) => buttonStyle(props)}\n`;\n\n// allow extend to spread onto Box that surrounds column label\nconst StyledContentBox = styled(Box)`\n ${(props) => props.extend}\n`;\n\nconst Header = forwardRef(\n (\n {\n cellProps,\n columns,\n data,\n fill,\n filtering,\n filters,\n groupBy,\n groups,\n groupState,\n onFilter,\n onFiltering,\n onResize,\n onSelect,\n onSort,\n onToggle,\n onWidths,\n pin: pinProp,\n pinnedOffset,\n primaryProperty,\n selected,\n rowDetails,\n sort,\n widths,\n ...rest\n },\n ref,\n ) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n const [layoutProps, textProps] = separateThemeProps(theme);\n\n const [cellWidths, setCellWidths] = useState([]);\n\n const updateWidths = useCallback(\n (width) => setCellWidths((values) => [...values, width]),\n [],\n );\n\n useEffect(() => {\n if (onWidths && cellWidths.length !== 0) {\n onWidths(cellWidths);\n }\n }, [cellWidths, onWidths]);\n\n const pin = pinProp ? ['top'] : [];\n const selectPin = pinnedOffset?._grommetDataTableSelect\n ? [...pin, 'left']\n : pin;\n\n const totalSelectedGroups = groupBy?.select\n ? Object.keys(groupBy.select).reduce(\n (total, cur) =>\n cur && groupBy.select[cur] === 'all' ? total + 1 : total,\n 0,\n )\n : 0;\n const totalSelected = (selected?.length || 0) + totalSelectedGroups;\n\n return (\n \n \n {groups && (\n !groupState[k].expanded)\n .length === 0\n }\n onToggle={onToggle}\n pad={cellProps.pad}\n />\n )}\n\n {(selected || onSelect) && (\n \n {onSelect && (\n 0 &&\n data.length > 0 &&\n totalSelected === data.length\n }\n indeterminate={\n groupBy?.select\n ? groupBy.select[''] === 'some'\n : totalSelected > 0 && totalSelected < data.length\n }\n onChange={() => {\n let nextSelected;\n const nextGroupSelected = {};\n const allSelected = groupBy?.select\n ? groupBy.select[''] === 'all'\n : totalSelected === data.length;\n\n // if all are selected, clear selection\n if (allSelected) {\n nextSelected = [];\n nextGroupSelected[''] = 'none';\n } else {\n // if some or none are selected, select all data\n nextSelected = data.map((datum) =>\n datumValue(datum, primaryProperty),\n );\n nextGroupSelected[''] = 'all';\n groupBy?.expandable?.forEach((key) => {\n nextGroupSelected[key] = 'all';\n });\n }\n if (groupBy?.onSelect) {\n groupBy.onSelect(\n nextSelected,\n undefined,\n nextGroupSelected,\n );\n } else onSelect(nextSelected);\n }}\n pad={cellProps.pad}\n />\n )}\n \n )}\n {rowDetails && }\n {columns.map(\n ({\n property,\n header,\n align,\n pin: columnPin,\n search,\n sortable,\n verticalAlign,\n size,\n units,\n }) => {\n let content;\n const unitsContent = units ? (\n \n {units}\n \n ) : undefined;\n if (typeof header === 'string') {\n content = {header};\n if (\n Object.keys(layoutProps).length &&\n (sortable === false || !onSort)\n ) {\n // apply rest of layout styling if cell is not sortable,\n // otherwise this styling will be applied by\n // StyledHeaderCellButton\n content = (\n \n {content}\n \n );\n }\n } else content = header;\n\n if (onSort && sortable !== false) {\n let Icon;\n if (onSort && sortable !== false) {\n if (sort && sort.property === property) {\n Icon =\n theme.dataTable.icons[\n sort.direction !== 'asc' ? 'ascending' : 'descending'\n ];\n } else if (theme.dataTable.icons.sortable) {\n Icon = theme.dataTable.icons.sortable;\n }\n }\n\n content = (\n \n \n {content}\n {Icon && }\n \n \n );\n }\n\n if (unitsContent) {\n content = (\n \n {content}\n {unitsContent}\n \n );\n }\n // content should fill any available space in cell\n content = {content};\n\n if (search || onResize) {\n const resizer = onResize ? (\n \n ) : null;\n const searcher =\n search && filters ? (\n \n ) : null;\n content = (\n \n {content}\n {searcher && resizer ? (\n \n {searcher}\n {resizer}\n \n ) : (\n searcher || resizer\n )}\n \n );\n }\n const cellPin = [...pin];\n if (columnPin) cellPin.push('left');\n\n return (\n \n {content}\n \n );\n },\n )}\n \n \n );\n },\n);\n\nHeader.displayName = 'Header';\n\nHeader.defaultProps = {};\nObject.setPrototypeOf(Header.defaultProps, defaultProps);\n\nexport { Header };\n","import React, {\n forwardRef,\n useContext,\n useEffect,\n useMemo,\n useRef,\n} from 'react';\nimport { ThemeContext } from 'styled-components';\nimport { useLayoutEffect } from '../../utils/use-isomorphic-layout-effect';\n\nimport { defaultProps } from '../../default-props';\nimport { backgroundIsDark, useForwardedRef } from '../../utils';\n\nimport { Box } from '../Box';\n\nimport { TableContext } from '../Table/TableContext';\nimport { StyledTableCell } from '../Table/StyledTable';\nimport { TableCellPropTypes } from './propTypes';\n\nconst verticalAlignToJustify = {\n middle: 'center',\n top: 'start',\n bottom: 'end',\n};\n\nconst TableCell = forwardRef(\n (\n {\n align,\n background,\n border,\n children,\n className, // so StyledDataTableCell is applied to td/th\n colSpan,\n onWidth,\n pad,\n plain,\n rowSpan,\n scope,\n size,\n verticalAlign,\n ...rest\n },\n ref,\n ) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n const tableContext = useContext(TableContext);\n const cellRef = useForwardedRef(ref);\n const containerRef = useRef();\n\n useLayoutEffect(() => {\n if (onWidth) {\n const { width } = cellRef.current.getBoundingClientRect();\n onWidth(width);\n }\n }, [cellRef, onWidth]);\n\n // if window resizes, recalculate cell height so that content\n // will continue to fill the height if the dimensions of the cell\n // have changed\n useEffect(() => {\n const updateHeight = () => {\n if (plain === 'noPad') {\n const cell = cellRef.current;\n const container = containerRef.current;\n if (cell && container) {\n container.style.height = '';\n const cellRect = cell.getBoundingClientRect();\n\n // height must match cell height otherwise table will apply some\n // margin around the cell content\n container.style.height = `${Math.max(\n cellRect.height -\n (border || theme.table[tableContext].border\n ? theme.global.borderSize.xsmall.replace('px', '')\n : 0),\n 0,\n )}px`;\n }\n }\n };\n\n window.addEventListener('resize', updateHeight);\n updateHeight();\n return () => {\n window.removeEventListener('resize', updateHeight);\n };\n }, [\n border,\n cellRef,\n plain,\n tableContext,\n theme.global.borderSize,\n theme.table,\n ]);\n\n let tableContextTheme;\n if (tableContext === 'header') {\n tableContextTheme = theme.table && theme.table.header;\n } else if (tableContext === 'footer') {\n tableContextTheme = theme.table && theme.table.footer;\n } else {\n tableContextTheme = theme.table && theme.table.body;\n }\n // merge tableContextTheme and rest\n const mergedProps = { ...tableContextTheme, ...rest };\n Object.keys(mergedProps).forEach((key) => {\n if (rest[key] === undefined) mergedProps[key] = tableContextTheme[key];\n });\n // split out background, border, and pad\n const cellProps = {\n align: align || mergedProps.align || undefined,\n background: background || mergedProps.background || undefined,\n border: border || mergedProps.border || undefined,\n pad: plain !== 'noPad' ? pad || mergedProps.pad || undefined : undefined,\n verticalAlign: verticalAlign || mergedProps.verticalAlign || undefined,\n };\n delete mergedProps.align;\n delete mergedProps.background;\n delete mergedProps.border;\n delete mergedProps.pad;\n delete mergedProps.verticalAlign;\n\n let content = children;\n if (plain === 'noPad' && children) {\n // a Box with explicitly set height is necessary\n // for the child contents to be able to fill the\n // TableCell\n content = (\n \n {children}\n \n );\n }\n\n // construct a new theme object in case we have a background that wants\n // to change the background color context\n const nextTheme = useMemo(() => {\n let result;\n if (cellProps.background || theme.darkChanged) {\n const dark = backgroundIsDark(cellProps.background, theme);\n const darkChanged = dark !== undefined && dark !== theme.dark;\n if (darkChanged || theme.darkChanged) {\n result = { ...theme };\n result.dark = dark === undefined ? theme.dark : dark;\n result.background = cellProps.background;\n } else if (cellProps.background) {\n // This allows DataTable to intelligently set the background\n // of a pinned header or footer.\n result = { ...theme };\n result.background = cellProps.background;\n }\n }\n return result || theme;\n }, [cellProps.background, theme]);\n\n return (\n \n \n {plain || !Object.keys(mergedProps).length ? (\n content\n ) : (\n \n {children}\n \n )}\n \n \n );\n },\n);\n\nTableCell.displayName = 'TableCell';\nTableCell.propTypes = TableCellPropTypes;\n\nexport { TableCell };\n","import PropTypes from 'prop-types';\n\nconst BORDER_SHAPE = PropTypes.shape({\n color: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.shape({\n dark: PropTypes.string,\n light: PropTypes.string,\n }),\n ]),\n side: PropTypes.oneOf([\n 'top',\n 'left',\n 'bottom',\n 'right',\n 'start',\n 'end',\n 'horizontal',\n 'vertical',\n 'all',\n 'between',\n ]),\n size: PropTypes.oneOfType([\n PropTypes.oneOf(['xsmall', 'small', 'medium', 'large', 'xlarge']),\n PropTypes.string,\n ]),\n style: PropTypes.oneOf([\n 'solid',\n 'dashed',\n 'dotted',\n 'double',\n 'groove',\n 'ridge',\n 'inset',\n 'outset',\n 'hidden',\n ]),\n});\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n border: PropTypes.oneOfType([\n PropTypes.bool,\n PropTypes.oneOf([\n 'top',\n 'left',\n 'bottom',\n 'right',\n 'start',\n 'end',\n 'horizontal',\n 'vertical',\n 'all',\n ]),\n BORDER_SHAPE,\n PropTypes.arrayOf(BORDER_SHAPE),\n ]),\n plain: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['noPad'])]),\n scope: PropTypes.oneOf(['col', 'row']),\n size: PropTypes.oneOfType([\n PropTypes.oneOf([\n 'xxsmall',\n 'xsmall',\n 'small',\n 'medium',\n 'large',\n 'xlarge',\n '1/2',\n '1/3',\n '2/3',\n '1/4',\n '2/4',\n '3/4',\n ]),\n PropTypes.string,\n ]),\n verticalAlign: PropTypes.oneOf(['top', 'middle', 'bottom']),\n align: PropTypes.oneOfType([\n PropTypes.oneOf([\n 'left',\n 'right',\n 'center',\n 'justify',\n 'inherit',\n 'start',\n 'end',\n ]),\n PropTypes.string,\n ]),\n };\n}\nexport const TableCellPropTypes = PropType;\n","import React, {\n useCallback,\n useContext,\n useEffect,\n useRef,\n useState,\n} from 'react';\nimport styled, { ThemeContext } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\nimport { Box } from '../Box';\nimport { Stack } from '../Stack';\n\nconst InteractionBox = styled(Box)`\n cursor: col-resize;\n > * {\n opacity: 0;\n }\n\n // when mouse down, we want to continue to display styling\n ${props => props.active && '> * { opacity: 1; }'}\n\n &:hover {\n > * {\n opacity: 1;\n }\n }\n`;\n\nconst Resizer = ({ onResize, property }) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n const [active, setActive] = useState(false);\n const [start, setStart] = useState();\n const [width, setWidth] = useState();\n const ref = useRef();\n\n const onMouseDown = useCallback(event => {\n if (ref.current) {\n let element = ref.current;\n // find TH parent\n while (element && element.nodeName !== 'TH') element = element.parentNode;\n const rect = element.getBoundingClientRect();\n setStart(event.clientX);\n setWidth(rect.width);\n setActive(true);\n }\n }, []);\n\n const onMouseMove = useCallback(\n event => {\n // We determined 12 empirically as being wide enough to hit but\n // not too wide to cause false hits.\n const nextWidth = Math.max(12, width + (event.clientX - start));\n onResize(property, nextWidth);\n },\n [onResize, property, start, width],\n );\n\n const onMouseUp = useCallback(() => {\n setActive(false);\n setStart(undefined);\n setWidth(undefined);\n }, []);\n\n useEffect(() => {\n const remove = () => {\n document.removeEventListener('mouseup', onMouseUp);\n document.removeEventListener('mousemove', onMouseMove);\n };\n\n if (active) {\n document.addEventListener('mouseup', onMouseUp);\n document.addEventListener('mousemove', onMouseMove);\n return remove;\n }\n remove();\n return undefined;\n }, [active, onMouseMove, onMouseUp]);\n\n let border;\n if (theme.dataTable.resize.hover && theme.dataTable.resize.hover.border) {\n const { color, side = 'end', size } = theme.dataTable.resize.hover.border;\n border = {\n color,\n side,\n size,\n };\n }\n\n return (\n \n \n {/* provides a wider, more accessible target to grab resizer */}\n \n \n \n \n );\n};\n\nResizer.displayName = 'Resizer';\n\nResizer.defaultProps = {};\nObject.setPrototypeOf(Resizer.defaultProps, defaultProps);\n\nexport { Resizer };\n","import React, { useContext, useEffect, useRef } from 'react';\nimport { ThemeContext } from 'styled-components';\n\nimport { FormSearch } from 'grommet-icons/icons/FormSearch';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { Keyboard } from '../Keyboard';\nimport { Text } from '../Text';\nimport { TextInput } from '../TextInput';\nimport { normalizeColor } from '../../utils';\n\nconst Searcher = ({ filtering, filters, onFilter, onFiltering, property }) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n const inputRef = useRef();\n const needsFocus = filtering === property;\n\n useEffect(() => {\n if (inputRef && needsFocus) {\n inputRef.current.focus();\n }\n }, [needsFocus, inputRef]);\n\n return filtering === property ? (\n onFiltering(undefined)}>\n \n onFilter(property, event.target.value)}\n onBlur={() => onFiltering(undefined)}\n />\n \n \n ) : (\n <>\n {filters[property] ? (\n \n {filters[property]}\n \n ) : null}\n \n }\n hoverIndicator\n onClick={() =>\n onFiltering(filtering === property ? undefined : property)\n }\n />\n \n );\n};\n\nSearcher.displayName = 'Searcher';\n\nSearcher.defaultProps = {};\nObject.setPrototypeOf(Searcher.defaultProps, defaultProps);\n\nexport { Searcher };\n","\"use strict\";\n\nexports.__esModule = true;\nexports.FormSearch = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && 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; }\n\nfunction _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); }\n\nvar FormSearch = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {\n return /*#__PURE__*/_react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n ref: ref,\n viewBox: \"0 0 24 24\",\n a11yTitle: \"FormSearch\"\n }, props), /*#__PURE__*/_react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"M13.8 13.8 18 18l-4.2-4.2zM10.5 15a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9z\"\n }));\n});\nexports.FormSearch = FormSearch;\nFormSearch.displayName = 'FormSearch';","import React, {\n forwardRef,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport styled, { ThemeContext } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { Drop } from '../Drop';\nimport { InfiniteScroll } from '../InfiniteScroll';\nimport { Keyboard } from '../Keyboard';\nimport { FormContext } from '../Form/FormContext';\nimport { AnnounceContext } from '../../contexts';\nimport {\n isNodeAfterScroll,\n isNodeBeforeScroll,\n sizeStyle,\n useForwardedRef,\n} from '../../utils';\n\nimport {\n StyledTextInput,\n StyledTextInputContainer,\n StyledPlaceholder,\n StyledIcon,\n StyledSuggestions,\n} from './StyledTextInput';\nimport { MessageContext } from '../../contexts/MessageContext';\nimport { TextInputPropTypes } from './propTypes';\n\nconst renderLabel = (suggestion) => {\n if (suggestion && typeof suggestion === 'object') {\n return suggestion.label || suggestion.value;\n }\n return suggestion;\n};\n\nconst stringLabel = (suggestion) => {\n if (suggestion && typeof suggestion === 'object') {\n if (suggestion.label && typeof suggestion.label === 'string') {\n return suggestion.label;\n }\n return suggestion.value;\n }\n return suggestion;\n};\n\nconst ContainerBox = styled(Box)`\n ${(props) =>\n props.dropHeight\n ? sizeStyle('max-height', props.dropHeight, props.theme)\n : 'max-height: inherit;'};\n\n /* IE11 hack to get drop contents to not overflow */\n @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n width: 100%;\n }\n`;\n\nconst defaultDropAlign = { top: 'bottom', left: 'left' };\n\nconst TextInput = forwardRef(\n (\n {\n a11yTitle,\n defaultSuggestion,\n defaultValue,\n dropAlign = defaultDropAlign,\n dropHeight,\n dropTarget,\n dropProps,\n focusIndicator = true,\n icon,\n id,\n messages,\n name,\n onBlur,\n onChange,\n onFocus,\n onKeyDown,\n onSelect,\n onSuggestionSelect,\n onSuggestionsClose,\n onSuggestionsOpen,\n placeholder,\n plain,\n readOnly,\n reverse,\n suggestions,\n textAlign,\n value: valueProp,\n ...rest\n },\n ref,\n ) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n const { format } = useContext(MessageContext);\n const announce = useContext(AnnounceContext);\n const formContext = useContext(FormContext);\n const inputRef = useForwardedRef(ref);\n const dropRef = useRef();\n const suggestionsRef = useRef();\n // if this is a readOnly property, don't set a name with the form context\n // this allows Select to control the form context for the name.\n const [value, setValue] = formContext.useFormInput({\n name: readOnly ? undefined : name,\n value: valueProp,\n });\n\n const [focus, setFocus] = useState();\n const [showDrop, setShowDrop] = useState(false);\n\n const handleSuggestionSelect = useMemo(\n () => (onSelect && !onSuggestionSelect ? onSelect : onSuggestionSelect),\n [onSelect, onSuggestionSelect],\n );\n const handleTextSelect = useMemo(\n () => (onSelect && onSuggestionSelect ? onSelect : undefined),\n [onSelect, onSuggestionSelect],\n );\n\n const [suggestionsAtClose, setSuggestionsAtClose] = useState();\n\n const openDrop = useCallback(() => {\n setShowDrop(true);\n announce(\n format({\n id: 'textInput.suggestionIsOpen',\n messages,\n }),\n );\n announce(\n `${suggestions.length} ${format({\n id: 'textInput.suggestionsCount',\n messages,\n })}`,\n );\n if (onSuggestionsOpen) onSuggestionsOpen();\n }, [announce, messages, format, onSuggestionsOpen, suggestions]);\n\n const closeDrop = useCallback(() => {\n setSuggestionsAtClose(suggestions); // must be before closing drop\n setShowDrop(false);\n if (onSuggestionsClose) onSuggestionsClose();\n }, [onSuggestionsClose, suggestions]);\n\n const clickOutside = useCallback(\n (event) => {\n if (event.target !== inputRef.current) closeDrop();\n },\n [inputRef, closeDrop],\n );\n\n // Handle scenarios where we have focus, the drop isn't showing,\n // and the suggestions change. We don't want to open the drop if\n // the drop has been closed by onEsc and the suggestions haven't\n // changed. So, we remember the suggestions we are showing when\n // the drop was closed and only re-open it when the suggestions\n // subsequently change.\n useEffect(() => {\n if (\n focus &&\n !showDrop &&\n suggestions &&\n suggestions.length &&\n (!suggestionsAtClose ||\n suggestionsAtClose.length !== suggestions.length)\n ) {\n openDrop();\n }\n }, [focus, openDrop, showDrop, suggestions, suggestionsAtClose]);\n\n // if we have no suggestions, close drop if it's open\n useEffect(() => {\n if (showDrop && (!suggestions || !suggestions.length)) {\n closeDrop();\n }\n }, [closeDrop, showDrop, suggestions]);\n\n const valueSuggestionIndex = useMemo(\n () =>\n suggestions\n ? suggestions\n .map((suggestion) =>\n typeof suggestion === 'object' ? suggestion.value : suggestion,\n )\n .indexOf(value)\n : -1,\n [suggestions, value],\n );\n\n // choose the best suggestion, either the explicit default or the one\n // that matches the current value\n const resetSuggestionIndex = useMemo(() => {\n if (\n valueSuggestionIndex === -1 &&\n typeof defaultSuggestion === 'number'\n ) {\n return defaultSuggestion;\n }\n return valueSuggestionIndex;\n }, [defaultSuggestion, valueSuggestionIndex]);\n\n // activeSuggestionIndex unifies mouse and keyboard interaction of\n // the suggestions\n const [activeSuggestionIndex, setActiveSuggestionIndex] =\n useState(resetSuggestionIndex);\n\n // Only update active suggestion index when the mouse actually moves,\n // not when suggestions are moving under the mouse.\n const [mouseMovedSinceLastKey, setMouseMovedSinceLastKey] = useState();\n\n // set activeSuggestionIndex when value changes\n useEffect(\n () => setActiveSuggestionIndex(valueSuggestionIndex),\n [valueSuggestionIndex],\n );\n\n // reset activeSuggestionIndex when the drop is closed\n useEffect(() => {\n if (!showDrop) setActiveSuggestionIndex(resetSuggestionIndex);\n }, [resetSuggestionIndex, showDrop]);\n\n // announce active suggestion\n useEffect(() => {\n if (activeSuggestionIndex >= 0) {\n const label = stringLabel(suggestions[activeSuggestionIndex]);\n announce(\n `${label} ${format({\n id: 'textInput.enterSelect',\n messages,\n })}`,\n );\n }\n }, [activeSuggestionIndex, announce, messages, format, suggestions]);\n\n // make sure activeSuggestion is visible in scroll\n useEffect(() => {\n const timer = setTimeout(() => {\n const list = suggestionsRef.current;\n if (showDrop && activeSuggestionIndex !== -1 && list) {\n const container = list.parentNode;\n const item = list.children[activeSuggestionIndex];\n if (container.scrollTo) {\n if (isNodeAfterScroll(item, container))\n container.scrollTo(\n 0,\n item.offsetTop -\n (container.getBoundingClientRect().height -\n item.getBoundingClientRect().height),\n );\n else if (isNodeBeforeScroll(item, container))\n container.scrollTo(0, item.offsetTop);\n }\n }\n }, 50); // delay to allow Drop to animate in\n return () => clearTimeout(timer);\n }, [activeSuggestionIndex, showDrop]);\n\n const setValueFromSuggestion = (event, suggestion) => {\n // if we stole the focus in the drop, perhaps by interacting with\n // a suggestion button or the scrollbar, give it back\n inputRef.current.focus();\n inputRef.current.value = suggestion; // needed for uncontrolled cases\n closeDrop();\n if (handleSuggestionSelect) {\n if (event.persist) event.persist();\n const adjustedEvent = event;\n adjustedEvent.suggestion = suggestion;\n handleSuggestionSelect(adjustedEvent);\n }\n setValue(suggestion);\n };\n\n const onNextSuggestion = useCallback(\n (event) => {\n event.preventDefault();\n const nextActiveIndex = Math.min(\n activeSuggestionIndex + 1,\n suggestions.length - 1,\n );\n setActiveSuggestionIndex(nextActiveIndex);\n setMouseMovedSinceLastKey(false);\n },\n [activeSuggestionIndex, suggestions],\n );\n\n const onPreviousSuggestion = useCallback(\n (event) => {\n event.preventDefault();\n const nextActiveIndex = Math.max(activeSuggestionIndex - 1, 0);\n setActiveSuggestionIndex(nextActiveIndex);\n setMouseMovedSinceLastKey(false);\n },\n [activeSuggestionIndex],\n );\n\n // account for input value in both controlled and uncontrolled scenarios\n const hasValue = value || inputRef.current?.value;\n const showStyledPlaceholder = useMemo(\n () => placeholder && typeof placeholder !== 'string' && !hasValue,\n [hasValue, placeholder],\n );\n\n let drop;\n const extraProps = {\n onSelect: handleTextSelect,\n };\n\n if (showDrop) {\n drop = (\n \n setMouseMovedSinceLastKey(true)}\n >\n \n \n {(suggestion, index, itemRef) => {\n // Determine whether the label is done as a child or\n // as an option Button kind property.\n const renderedLabel = renderLabel(suggestion);\n let child;\n if (typeof renderedLabel !== 'string')\n // must be an element rendered by suggestions.label\n child = renderedLabel;\n else if (!theme.button.option)\n // don't have theme support, need to layout here\n child = (\n \n {renderedLabel}\n \n );\n // if we have a child, turn on plain\n\n return (\n \n \n setValueFromSuggestion(event, suggestion)\n }\n onMouseMove={\n mouseMovedSinceLastKey &&\n activeSuggestionIndex !== index\n ? () => setActiveSuggestionIndex(index)\n : undefined\n }\n >\n {child}\n \n \n );\n }}\n \n \n \n \n );\n }\n\n const keyboardProps = { onKeyDown };\n if (showDrop) {\n keyboardProps.onEnter = (event) => {\n // prevent submitting forms via Enter when the drop is open\n event.preventDefault();\n if (activeSuggestionIndex >= 0)\n setValueFromSuggestion(event, suggestions[activeSuggestionIndex]);\n else closeDrop();\n };\n if (activeSuggestionIndex > 0) keyboardProps.onUp = onPreviousSuggestion;\n if (activeSuggestionIndex < suggestions.length - 1)\n keyboardProps.onDown = onNextSuggestion;\n keyboardProps.onTab = closeDrop;\n } else if (suggestions && suggestions.length > 0) {\n keyboardProps.onDown = openDrop;\n }\n\n // For the Keyboard target below, if we have focus,\n // either on the input element or within the drop,\n // then we set the target to the document,\n // otherwise we only listen to onDown on the input element itself,\n // primarily for tests.\n\n return (\n \n {showStyledPlaceholder && (\n {placeholder}\n )}\n {icon && (\n \n {icon}\n \n )}\n \n {\n // Don't do anything if we are acting like we already have\n // focus. This can happen when this input loses focus temporarily\n // to our drop, see onBlur() handler below.\n if (!focus) {\n setFocus(true);\n if (suggestions && suggestions.length > 0) {\n announce(\n format({\n id: 'textInput.suggestionsExist',\n messages,\n }),\n );\n openDrop();\n }\n if (onFocus) onFocus(event);\n }\n }}\n onBlur={(event) => {\n // Only treat it as a blur if the element receiving focus\n // isn't in our drop. The relatedTarget will be our drop\n // when the user clicks on a suggestion or interacts with the\n // scrollbar in the drop.\n if (\n !event.relatedTarget ||\n event.relatedTarget !== dropRef.current\n ) {\n setFocus(false);\n if (onBlur) onBlur(event);\n }\n }}\n onChange={\n readOnly\n ? undefined\n : (event) => {\n // when TextInput is not contained in a Form, no re-render\n // will come from this onChange and remove the placeholder\n // so we need to update state to ensure the styled\n // placeholder only appears when there is no value\n if (suggestions && focus && !showDrop) {\n openDrop();\n }\n setValue(event.target.value);\n setActiveSuggestionIndex(resetSuggestionIndex);\n if (onChange) onChange(event);\n }\n }\n />\n \n\n {drop}\n \n );\n },\n);\n\nTextInput.displayName = 'TextInput';\nTextInput.propTypes = TextInputPropTypes;\n\nexport { TextInput };\n","import React, { useEffect, useMemo, useRef, useState } from 'react';\nimport { useLayoutEffect } from '../../utils/use-isomorphic-layout-effect';\nimport {\n findScrollParent,\n findScrollParents,\n isNodeAfterScroll,\n isNodeBeforeScroll,\n} from '../../utils';\nimport { Box } from '../Box';\nimport { InfiniteScrollPropTypes } from './propTypes';\n\nconst calculateLastPageBound = (show, step) =>\n show ? Math.floor((show + step) / step) - 1 : 0;\n\nconst InfiniteScroll = ({\n children,\n items = [],\n onMore,\n renderMarker,\n replace,\n show,\n step = 50,\n}) => {\n // item index to be made visible initially\n const [scrollShow, setScrollShow] = useState();\n\n // the last page we have items for\n const lastPage = useMemo(\n () => Math.max(0, Math.ceil(items.length / step) - 1),\n [items.length, step],\n );\n\n // the pages we are rendering\n const [renderPageBounds, setRenderPageBounds] = useState([\n 0,\n calculateLastPageBound(show, step),\n ]);\n\n // the heights of the pages, approximated after we render the first page\n // and then updated for pages that have rendered\n const [pageHeights, setPageHeights] = useState([]);\n\n // what we're waiting for onMore to give us\n const [pendingLength, setPendingLength] = useState(0);\n\n const aboveMarkerRef = useRef(); // only when replacing\n const belowMarkerRef = useRef();\n\n // scroll and resize handling\n useEffect(() => {\n let scrollParents;\n\n const evaluate = () => {\n if (!scrollParents) return;\n const scrollParent = scrollParents[0];\n\n // Determine the scroll position of the scroll container\n let top;\n let height;\n if (scrollParent === document) {\n top = document.documentElement.scrollTop || document.body.scrollTop;\n height = window.innerHeight;\n } else {\n top = scrollParent.scrollTop;\n const rect = scrollParent.getBoundingClientRect();\n ({ height } = rect);\n }\n const offset = height / 4; // so we pre-load when the user scrolls slowly\n\n // Use the pageHeights to determine what pages we should render based\n // on the current scroll window.\n let nextBeginPage = 0;\n let index = 0;\n let pagesHeight = pageHeights[index] || 0;\n while (pageHeights[index + 1] && pagesHeight < top - offset) {\n index += 1;\n nextBeginPage += 1;\n pagesHeight += pageHeights[index];\n }\n let nextEndPage = nextBeginPage;\n while (\n pageHeights[index] !== undefined &&\n pagesHeight < top + height + offset\n ) {\n index += 1;\n nextEndPage += 1;\n // when we haven't rendered the nextEndPage and we aren't replacing,\n // we might not have a height for it yet\n pagesHeight += pageHeights[index] || 0;\n }\n\n if (!replace) {\n // when not replacing, never shrink bounds\n nextBeginPage = 0;\n nextEndPage = Math.max(renderPageBounds[1], nextEndPage);\n }\n\n if (show) {\n // ensure we try to render any show page\n const showPage = calculateLastPageBound(show, step);\n nextBeginPage = Math.min(showPage, nextBeginPage);\n nextEndPage = Math.max(showPage, nextEndPage);\n }\n\n if (\n nextBeginPage !== renderPageBounds[0] ||\n nextEndPage !== renderPageBounds[1]\n ) {\n setRenderPageBounds([nextBeginPage, nextEndPage]);\n }\n };\n\n let timer;\n const debounce = () => {\n clearTimeout(timer);\n timer = setTimeout(evaluate, 10);\n };\n\n // might not be there yet or might have already rendered everything\n if (belowMarkerRef.current) {\n scrollParents = findScrollParents(belowMarkerRef.current);\n scrollParents.forEach((sp) => sp.addEventListener('scroll', debounce));\n }\n window.addEventListener('resize', debounce);\n evaluate();\n return () => {\n if (scrollParents) {\n scrollParents.forEach((sp) =>\n sp.removeEventListener('scroll', debounce),\n );\n }\n window.removeEventListener('resize', debounce);\n clearTimeout(timer);\n };\n }, [pageHeights, renderPageBounds, replace, show, step]);\n\n // check if we need to ask for more\n useEffect(() => {\n if (\n onMore &&\n renderPageBounds[1] === lastPage &&\n items.length >= pendingLength &&\n items.length > 0\n ) {\n // remember we've asked for more, so we don't keep asking if it takes\n // a while\n setPendingLength(items.length + 1);\n onMore();\n }\n }, [items.length, lastPage, onMore, pendingLength, renderPageBounds, step]);\n\n useEffect(() => {\n if (items.length === 0 && lastPage === 0 && pendingLength !== 0) {\n setPageHeights([]);\n setPendingLength(0);\n setRenderPageBounds([0, calculateLastPageBound(show, step)]);\n }\n }, [lastPage, pendingLength, show, step, items.length]);\n\n // scroll to any 'show'\n useLayoutEffect(() => {\n // ride out any animation delays, 100ms empirically measured\n const timer = setTimeout(() => {\n if (show && belowMarkerRef.current && show !== scrollShow) {\n // calculate show index based on beginPage\n const showIndex =\n show - renderPageBounds[0] * step + (renderPageBounds[0] ? 1 : 0);\n const showNode =\n belowMarkerRef.current.parentNode.children.item(showIndex);\n if (showNode) {\n const scrollParent = findScrollParent(showNode);\n if (isNodeBeforeScroll(showNode, scrollParent)) {\n showNode.scrollIntoView(true);\n } else if (isNodeAfterScroll(showNode, scrollParent)) {\n showNode.scrollIntoView(false);\n }\n // clean up after having shown\n setScrollShow(show);\n }\n }\n }, 100);\n return () => clearTimeout(timer);\n // Omitting scrollShow as a dependency due to concern that setScrollShow\n // is being called within the timer. If left included, re-renders and other\n // dependency values could change in an unpredictable manner during timer\n // and potentially result in an infinite loop.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [renderPageBounds, show, step]);\n\n // calculate and keep track of page heights\n useLayoutEffect(() => {\n // if don't have a belowMarker, we must have rendered everything already\n if (!belowMarkerRef.current) return;\n\n // calculate page heights for rendered pages\n const {\n current: {\n parentNode: { children: rendered },\n },\n } = belowMarkerRef;\n // ensure we've rendered the state we have\n // above? + items in rendered pages + below === rendered DOM elements length\n if (\n (aboveMarkerRef.current ? 1 : 0) +\n (renderPageBounds[1] - renderPageBounds[0] + 1) * step +\n 1 ===\n rendered.length\n ) {\n let nextPageHeights;\n\n // step through each page\n let i = renderPageBounds[0];\n let lastBottom;\n while (i <= renderPageBounds[1]) {\n const topIndex =\n (aboveMarkerRef.current ? 1 : 0) + (i - renderPageBounds[0]) * step;\n const bottomIndex = Math.min(topIndex + step - 1, rendered.length - 1);\n // we use lastBottom for top to ensure grid layouts work\n const top =\n lastBottom !== undefined\n ? lastBottom\n : rendered.item(topIndex).getBoundingClientRect().top;\n const { bottom } = rendered.item(bottomIndex).getBoundingClientRect();\n const height = bottom - top;\n if (bottom && (!pageHeights || pageHeights[i] !== height)) {\n if (!nextPageHeights) nextPageHeights = [...(pageHeights || [])];\n nextPageHeights[i] = height;\n }\n lastBottom = bottom;\n i += 1;\n }\n\n // estimate page heights for pages we haven't rendered yet\n while (replace && i <= lastPage) {\n if (!pageHeights[i] && pageHeights[i] !== pageHeights[0]) {\n if (!nextPageHeights) nextPageHeights = [...(pageHeights || [])];\n [nextPageHeights[i]] = nextPageHeights; // set to first page height\n }\n i += 1;\n }\n\n if (nextPageHeights) setPageHeights(nextPageHeights);\n }\n }, [lastPage, pageHeights, renderPageBounds, replace, step]);\n\n // calculate the height above the first rendered page using the pageHeights\n const aboveHeight = useMemo(() => {\n if (!replace) return 0;\n let height = 0;\n let i = 0;\n while (i < renderPageBounds[0]) {\n height += pageHeights[i] || 0;\n i += 1;\n }\n return height;\n }, [pageHeights, renderPageBounds, replace]);\n\n // calculate the height below the last rendered page using the pageHeights\n const belowHeight = useMemo(() => {\n if (!replace) return 0;\n let height = 0;\n let i = renderPageBounds[1] + 1;\n while (i <= lastPage) {\n height += pageHeights[i] || 0;\n i += 1;\n }\n return height;\n }, [lastPage, pageHeights, renderPageBounds, replace]);\n\n const firstIndex = renderPageBounds[0] * step;\n const lastIndex =\n Math.min((renderPageBounds[1] + 1) * step, items.length) - 1;\n\n const result = [];\n\n if (aboveHeight) {\n let marker = (\n \n );\n if (renderMarker) {\n // need to give it a key\n marker = React.cloneElement(renderMarker(marker), { key: 'above' });\n }\n result.push(marker);\n }\n\n items.slice(firstIndex, lastIndex + 1).forEach((item, index) => {\n const itemsIndex = firstIndex + index;\n const child = children(item, itemsIndex);\n result.push(child);\n });\n\n if (replace || renderPageBounds[1] < lastPage || onMore) {\n let marker = (\n \n );\n if (renderMarker) {\n // need to give it a key\n const renderedMarker = renderMarker(marker);\n marker = React.cloneElement(renderedMarker, {\n key: 'below',\n // We need to make sure our belowMarkerRef is tied to a component\n // that has the same parent as the items being rendered. This is so\n // we can use belowMarkerRef.current.parentNode.children to\n // get a reference to the items in the DOM for calculating pageHeights.\n //\n // Since the caller might have included a ref in what their\n // renderMarker returns, we have to take care of both refs.\n // https://github.com/facebook/react/issues/8873#issuecomment-489579878\n ref: (node) => {\n // Keep your own reference\n belowMarkerRef.current = node;\n // Call the original ref, if any\n const { ref } = renderedMarker;\n if (typeof ref === 'function') {\n ref(node);\n } else if (ref !== null) {\n ref.current = node;\n }\n },\n });\n }\n result.push(marker);\n }\n\n return result;\n};\n\nInfiniteScroll.propTypes = InfiniteScrollPropTypes;\n\nexport { InfiniteScroll };\n","import PropTypes from 'prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n children: PropTypes.func,\n items: PropTypes.arrayOf(PropTypes.any),\n onMore: PropTypes.func,\n renderMarker: PropTypes.func,\n replace: PropTypes.bool,\n show: PropTypes.number,\n step: PropTypes.number,\n };\n}\nexport const InfiniteScrollPropTypes = PropType;\n","import styled, { css } from 'styled-components';\n\nimport {\n disabledStyle,\n getInputPadBySide,\n inputStyle,\n parseMetricToNum,\n plainInputStyle,\n textAlignStyle,\n} from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst getPlainStyle = (plain) => {\n if (plain === 'full') {\n return css`\n ${plainInputStyle} padding: 0;\n `;\n }\n return plain && plainInputStyle;\n};\n\nconst StyledTextInput = styled.input`\n ${inputStyle}\n ${(props) => getPlainStyle(props.plain)}\n ${(props) =>\n props.icon &&\n (props.reverse\n ? `padding-right: ${props.theme.global.edgeSize.large};`\n : `padding-left: ${props.theme.global.edgeSize.large};`)}\n ${(props) =>\n props.disabled &&\n disabledStyle(\n props.theme.textInput.disabled && props.theme.textInput.disabled.opacity,\n )}\n ${(props) => props.textAlign && textAlignStyle}\n ${(props) => props.theme.textInput && props.theme.textInput.extend};\n`;\n\nStyledTextInput.defaultProps = {};\nObject.setPrototypeOf(StyledTextInput.defaultProps, defaultProps);\n\nconst StyledTextInputContainer = styled.div`\n position: relative;\n width: 100%;\n\n ${(props) =>\n props.theme.textInput &&\n props.theme.textInput.container &&\n props.theme.textInput.container.extend};\n`;\n\nStyledTextInputContainer.defaultProps = {};\nObject.setPrototypeOf(StyledTextInputContainer.defaultProps, defaultProps);\n\nconst StyledPlaceholder = styled.div`\n position: absolute;\n left: ${(props) =>\n parseMetricToNum(getInputPadBySide(props, 'left')) -\n parseMetricToNum(props.theme.global.control.border.width)}px;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n justify-content: center;\n pointer-events: none;\n\n ${(props) =>\n props.theme.textInput &&\n props.theme.textInput.placeholder &&\n props.theme.textInput.placeholder.extend};\n`;\n\nStyledPlaceholder.defaultProps = {};\nObject.setPrototypeOf(StyledPlaceholder.defaultProps, defaultProps);\n\nconst StyledIcon = styled.div`\n position: absolute;\n display: flex;\n justify: center;\n top: 50%;\n transform: translateY(-50%);\n pointer-events: none;\n ${(props) =>\n props.reverse\n ? `right: ${getInputPadBySide(props, 'right')};`\n : `left: ${getInputPadBySide(props, 'left')};`}\n`;\n\nconst StyledSuggestions = styled.ol`\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n margin: 0;\n padding: 0;\n list-style-type: none;\n\n ${(props) =>\n props.theme.textInput &&\n props.theme.textInput.suggestions &&\n props.theme.textInput.suggestions.extend};\n`;\n\nStyledSuggestions.defaultProps = {};\nObject.setPrototypeOf(StyledSuggestions.defaultProps, defaultProps);\n\nexport {\n StyledTextInput,\n StyledTextInputContainer,\n StyledPlaceholder,\n StyledIcon,\n StyledSuggestions,\n};\n","import PropTypes from 'prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n a11yTitle: PropTypes.string,\n defaultSuggestion: PropTypes.number,\n dropAlign: PropTypes.shape({\n top: PropTypes.oneOf(['top', 'bottom']),\n bottom: PropTypes.oneOf(['top', 'bottom']),\n right: PropTypes.oneOf(['left', 'right']),\n left: PropTypes.oneOf(['left', 'right']),\n }),\n dropHeight: PropTypes.oneOfType([\n PropTypes.oneOf(['xsmall', 'small', 'medium', 'large', 'xlarge']),\n PropTypes.string,\n ]),\n dropTarget: PropTypes.object,\n dropProps: PropTypes.object,\n icon: PropTypes.element,\n id: PropTypes.string,\n focusIndicator: PropTypes.bool,\n messages: PropTypes.shape({\n enterSelect: PropTypes.string,\n suggestionsCount: PropTypes.string,\n suggestionsExist: PropTypes.string,\n suggestionIsOpen: PropTypes.string,\n }),\n name: PropTypes.string,\n onChange: PropTypes.func,\n onSelect: PropTypes.func,\n onSuggestionSelect: PropTypes.func,\n onSuggestionsOpen: PropTypes.func,\n onSuggestionsClose: PropTypes.func,\n placeholder: PropTypes.node,\n plain: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['full'])]),\n reverse: PropTypes.bool,\n size: PropTypes.oneOfType([\n PropTypes.oneOf([\n 'xsmall',\n 'small',\n 'medium',\n 'large',\n 'xlarge',\n 'xxlarge',\n '2xl',\n '3xl',\n '4xl',\n '5xl',\n '6xl',\n ]),\n PropTypes.string,\n ]),\n suggestions: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape({\n label: PropTypes.node,\n // eslint-disable-next-line\n value: PropTypes.any, // this is intentional any\n }),\n PropTypes.string,\n ]),\n ),\n textAlign: PropTypes.oneOf(['start', 'center', 'end']),\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n };\n}\nexport const TextInputPropTypes = PropType;\n","\"use strict\";\n\nexports.__esModule = true;\nexports.Blank = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _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); }\n\nvar Blank = function Blank(props) {\n return /*#__PURE__*/_react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n viewBox: \"0 0 24 24\",\n \"aria-hidden\": true\n }, props));\n};\n\nexports.Blank = Blank;","import React, { forwardRef } from 'react';\n\nimport { StyledTableRow } from '../Table/StyledTable';\n\nconst TableRow = forwardRef((props, ref) => (\n \n));\n\nTableRow.displayName = 'TableRow';\n\nexport { TableRow };\n","import React from 'react';\n\nimport { StyledTable, StyledTableDataCaption } from './StyledTable';\nimport { TablePropTypes } from './propTypes';\n\nconst Table = ({ caption, children, ...rest }) => (\n \n {caption ? (\n {caption}\n ) : null}\n {children}\n \n);\n\nTable.propTypes = TablePropTypes;\n\nexport { Table };\n","import PropTypes from 'prop-types';\nimport { genericProps } from '../../utils/general-prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n ...genericProps,\n caption: PropTypes.string,\n };\n}\nexport const TablePropTypes = PropType;\n","import React, { forwardRef } from 'react';\n\nimport { TableContext } from '../Table/TableContext';\nimport { StyledTableBody } from '../Table/StyledTable';\n\nconst TableBody = forwardRef((props, ref) => (\n \n \n \n));\n\nTableBody.displayName = 'TableBody';\n\nexport { TableBody };\n","import React, { forwardRef } from 'react';\n\nimport { TableContext } from '../Table/TableContext';\nimport { StyledTableHeader } from '../Table/StyledTable';\n\nconst TableHeader = forwardRef((props, ref) => (\n \n \n \n));\n\nTableHeader.displayName = 'TableHeader';\n\nexport { TableHeader };\n","import React, { forwardRef } from 'react';\n\nimport { TableContext } from '../Table/TableContext';\nimport { StyledTableFooter } from '../Table/StyledTable';\n\nconst TableFooter = forwardRef((props, ref) => (\n \n \n \n));\n\nTableFooter.displayName = 'TableFooter';\n\nexport { TableFooter };\n","import React, { forwardRef } from 'react';\n\nimport { defaultProps } from '../../default-props';\n\nimport { TableRow } from '../TableRow';\nimport { TableCell } from '../TableCell';\n\nimport { Cell } from './Cell';\nimport { StyledDataTableCell, StyledDataTableFooter } from './StyledDataTable';\n\nconst Footer = forwardRef(\n (\n {\n cellProps,\n columns,\n fill,\n footerValues,\n groups,\n onSelect,\n pin: pinProp,\n pinnedOffset,\n primaryProperty,\n selected,\n ...rest\n },\n ref,\n ) => {\n const pin = pinProp ? ['bottom'] : [];\n\n return (\n \n \n {groups && (\n \n )}\n {(selected || onSelect) && (\n \n )}\n {columns.map((column) => {\n const cellPin = [...pin];\n if (column.pin) cellPin.push('left');\n\n return (\n \n );\n })}\n \n \n );\n },\n);\n\nFooter.displayName = 'Footer';\n\nFooter.defaultProps = {};\nObject.setPrototypeOf(Footer.defaultProps, defaultProps);\n\nexport { Footer };\n","/* eslint-disable no-underscore-dangle */\nimport React, { forwardRef, memo, useContext } from 'react';\nimport { ThemeContext } from 'styled-components';\n\nimport { CheckBox } from '../CheckBox';\nimport { InfiniteScroll } from '../InfiniteScroll';\nimport { TableRow } from '../TableRow';\nimport { TableCell } from '../TableCell';\nimport { Keyboard } from '../Keyboard';\nimport { ExpanderCell } from './ExpanderCell';\n\nimport { Cell } from './Cell';\nimport { StyledDataTableBody, StyledDataTableRow } from './StyledDataTable';\nimport { datumValue, normalizeRowCellProps } from './buildState';\nimport { defaultProps } from '../../default-props';\n\nconst Row = memo(\n ({\n cellProps,\n primaryValue,\n index,\n rowRef,\n size,\n active,\n onClickRow,\n datum,\n selected,\n onSelect,\n isSelected,\n rowDetails,\n isRowExpanded,\n setActive,\n setRowExpand,\n rowExpand,\n columns,\n pinnedOffset,\n primaryProperty,\n data,\n }) => (\n <>\n {\n // extract from React's synthetic event pool\n event.persist();\n const adjustedEvent = event;\n adjustedEvent.datum = datum;\n adjustedEvent.index = index;\n onClickRow(adjustedEvent);\n }\n : undefined\n }\n onMouseEnter={\n onClickRow\n ? () => {\n setActive(index);\n }\n : undefined\n }\n onMouseLeave={onClickRow ? () => setActive(undefined) : undefined}\n >\n {(selected || onSelect) && (\n (\n {\n if (isSelected) {\n onSelect(selected.filter((s) => s !== primaryValue));\n } else onSelect([...selected, primaryValue]);\n }}\n pad={cellProps.pad}\n />\n ),\n }}\n />\n )}\n\n {rowDetails && (\n {\n if (isRowExpanded) {\n setRowExpand(rowExpand.filter((s) => s !== index));\n } else {\n setRowExpand([...rowExpand, index]);\n }\n }}\n pad={cellProps.pad}\n />\n )}\n {columns.map((column) => (\n \n ))}\n \n {rowDetails && isRowExpanded && (\n \n {(selected || onSelect) && }\n \n {rowDetails(data[index])}\n \n \n )}\n \n ),\n);\n\nconst Body = forwardRef(\n (\n {\n cellProps: cellPropsProp,\n columns,\n data,\n onMore,\n replace,\n onClickRow,\n onSelect,\n pinnedOffset,\n primaryProperty,\n rowProps,\n selected,\n rowDetails,\n show,\n size,\n step,\n rowExpand,\n setRowExpand,\n ...rest\n },\n ref,\n ) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n const [active, setActive] = React.useState();\n const [lastActive, setLastActive] = React.useState();\n\n return (\n = 0\n ? (event) => {\n event.persist();\n const adjustedEvent = event;\n adjustedEvent.datum = data[active];\n onClickRow(adjustedEvent);\n }\n : undefined\n }\n onUp={onClickRow && active ? () => setActive(active - 1) : undefined}\n onDown={\n onClickRow && data.length\n ? () => {\n setActive(\n active >= 0 ? Math.min(active + 1, data.length - 1) : 0,\n );\n }\n : undefined\n }\n >\n \n !active && active !== 0 ? setActive(lastActive) : setActive(active)\n }\n onBlur={() => {\n setLastActive(active);\n setActive(undefined);\n }}\n {...rest}\n >\n (\n \n {marker}\n \n )}\n show={show}\n step={step}\n >\n {(datum, index, rowRef) => {\n const primaryValue = primaryProperty\n ? datumValue(datum, primaryProperty)\n : undefined;\n const isSelected = selected && selected.includes(primaryValue);\n const isRowExpanded = rowExpand && rowExpand.includes(index);\n const cellProps = normalizeRowCellProps(\n rowProps,\n cellPropsProp,\n primaryValue,\n index,\n );\n return (\n = 0 ? active === index : undefined}\n onClickRow={onClickRow}\n datum={datum}\n selected={selected}\n onSelect={onSelect}\n rowDetails={rowDetails}\n setRowExpand={setRowExpand}\n rowExpand={rowExpand}\n columns={columns}\n primaryProperty={primaryProperty}\n rowProps={rowProps}\n data={data}\n theme={theme}\n pinnedOffset={pinnedOffset}\n />\n );\n }}\n \n \n \n );\n },\n);\n\nexport { Body };\n","import React, { forwardRef, useMemo } from 'react';\n\nimport { Cell } from './Cell';\nimport { ExpanderCell } from './ExpanderCell';\nimport { StyledDataTableBody, StyledDataTableRow } from './StyledDataTable';\nimport { CheckBox } from '../CheckBox/CheckBox';\nimport { InfiniteScroll } from '../InfiniteScroll';\nimport { TableRow } from '../TableRow';\nimport { TableCell } from '../TableCell';\nimport { datumValue, normalizeRowCellProps } from './buildState';\n\nexport const GroupedBody = forwardRef(\n (\n {\n cellProps: cellPropsProp,\n columns,\n data,\n groupBy,\n groups,\n groupState,\n pinnedOffset,\n primaryProperty,\n onMore,\n onSelect,\n onToggle,\n onUpdate,\n replace,\n rowProps,\n selected,\n size,\n step,\n ...rest\n },\n ref,\n ) => {\n const items = useMemo(() => {\n const nextItems = [];\n groups.forEach((group) => {\n const { expanded } = groupState[group.key] || { expanded: true };\n const memberCount = group.data.length;\n let groupSelected = [];\n let isGroupSelected = false;\n\n if (memberCount > 1 || (onUpdate && group.key)) {\n // need a header\n const primaryKeys = group.data.map((datum) => datum[primaryProperty]);\n\n groupSelected =\n primaryKeys && selected\n ? primaryKeys.filter((val) => selected.includes(val))\n : [];\n\n isGroupSelected = groupBy.select\n ? groupBy.select[group.key] === 'all'\n : groupSelected.length === group.data.length &&\n groupSelected.length > 0;\n\n const indeterminate = groupBy.select\n ? groupBy.select[group.key] === 'some'\n : groupSelected.length > 0 &&\n groupSelected.length < group.data.length;\n\n nextItems.push({\n expanded,\n key: group.key,\n datum: group.datum,\n context: 'groupHeader',\n isSelected: isGroupSelected,\n indeterminate,\n onChange: () => {\n const nextSelected =\n isGroupSelected || indeterminate\n ? selected.filter((s) => !groupSelected.includes(s))\n : [...selected, ...primaryKeys];\n if (groupBy.onSelect) {\n groupBy.onSelect(nextSelected, group.datum, groupBy.select);\n } else {\n onSelect(nextSelected, group.datum);\n }\n },\n });\n }\n if ((!onUpdate && memberCount === 1) || expanded) {\n // add the group members\n group.data.forEach((datum, index) => {\n const primaryValue = primaryProperty\n ? datumValue(datum, primaryProperty)\n : undefined;\n const isSelected = selected?.includes(primaryValue);\n nextItems.push({\n key: datum[primaryProperty],\n primaryValue: primaryProperty\n ? datumValue(datum, primaryProperty)\n : undefined,\n datum,\n context:\n memberCount > 1 && index === memberCount - 1\n ? 'groupEnd'\n : 'body',\n isSelected,\n onChange: () => {\n const nextSelected = isSelected\n ? selected.filter((s) => s !== primaryValue)\n : [...selected, primaryValue];\n onSelect(nextSelected, datum);\n },\n });\n });\n }\n });\n return nextItems;\n }, [\n groups,\n groupBy,\n groupState,\n primaryProperty,\n selected,\n onSelect,\n onUpdate,\n ]);\n\n return (\n \n (\n \n {marker}\n \n )}\n step={step}\n >\n {(row, index, rowRef) => {\n const {\n context,\n datum,\n expanded,\n indeterminate,\n isSelected,\n key,\n onChange,\n primaryValue,\n } = row;\n const cellProps = normalizeRowCellProps(\n rowProps,\n cellPropsProp,\n primaryValue,\n index,\n );\n\n return (\n \n \n {(selected || onSelect) && (\n \n \n \n )}\n {columns.map((column) => {\n let scope;\n if (context === 'groupHeader') {\n scope =\n column.property === groupBy.property ? 'row' : undefined;\n } else {\n scope = column.primary ? 'row' : undefined;\n }\n return (\n \n );\n })}\n \n );\n }}\n \n \n );\n },\n);\n","import React, { forwardRef, useContext, useEffect, useState } from 'react';\nimport styled, { ThemeContext } from 'styled-components';\nimport { defaultProps } from '../../default-props';\nimport { Box } from '../Box';\nimport { Nav } from '../Nav';\nimport { PageControl } from './PageControl';\nimport { PaginationPropTypes } from './propTypes';\n\nconst StyledPaginationContainer = styled(Box)`\n ${(props) =>\n props.theme.pagination.container && props.theme.pagination.container.extend}\n`;\n\nconst getPageIndices = (begin, end) => {\n const indices = [];\n for (let i = begin; i <= end; i += 1) {\n indices.push(i);\n }\n return indices;\n};\n\nconst Pagination = forwardRef(\n (\n {\n a11yTitle,\n 'aria-label': ariaLabel,\n numberItems,\n numberEdgePages = 1, // number of pages at each edge of page indices\n // number of page controls in the middle\n numberMiddlePages: numberMiddlePagesProp = 3,\n onChange,\n page: pageProp,\n size,\n step = 10,\n ...rest\n },\n ref,\n ) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n\n /* Calculate total number pages */\n const totalPages = Math.ceil(numberItems / step);\n const [activePage, setActivePage] = useState(\n Math.min(pageProp, totalPages) || 1,\n );\n\n useEffect(() => {\n setActivePage(pageProp || 1);\n }, [pageProp]);\n\n /* Define page indices to display */\n const beginPages = getPageIndices(1, Math.min(numberEdgePages, totalPages));\n const endPages = getPageIndices(\n Math.max(totalPages - numberEdgePages + 1, numberEdgePages + 1),\n totalPages,\n );\n\n let numberMiddlePages;\n if (numberMiddlePagesProp < 1) {\n numberMiddlePages = 1;\n console.warn(\n // eslint-disable-next-line max-len\n `Property \"numberMiddlePages\" should not be < 1. One middle page button will be shown. Set \"numberMiddlePages\" >= 1 to remove this warning.`,\n );\n } else numberMiddlePages = numberMiddlePagesProp;\n\n let startingMiddlePages;\n // odd\n if (numberMiddlePages % 2)\n startingMiddlePages = Math.min(\n activePage - Math.floor(numberMiddlePages / 2),\n totalPages - numberEdgePages - numberMiddlePages,\n );\n // even, cannot split equally around active page\n // let extra page appear on middlePagesEnd instead\n else\n startingMiddlePages = Math.min(\n activePage - Math.floor(numberMiddlePages / 2) + 1,\n totalPages - numberEdgePages - numberMiddlePages,\n );\n\n const middlePagesBegin = Math.max(startingMiddlePages, numberEdgePages + 2);\n const middlePagesEnd = Math.min(\n Math.max(\n activePage + Math.floor(numberMiddlePages / 2),\n numberEdgePages + numberMiddlePages + 1,\n ),\n endPages.length > 0 ? endPages[0] - 2 : totalPages - 1,\n );\n\n const middlePages = getPageIndices(middlePagesBegin, middlePagesEnd);\n\n let beginFlex = [];\n if (middlePagesBegin > numberEdgePages + 2) beginFlex = ['more-prev'];\n else if (numberEdgePages + 1 < totalPages - numberEdgePages)\n beginFlex = [numberEdgePages + 1];\n\n let endFlex = [];\n if (middlePagesEnd < totalPages - numberEdgePages - 1)\n endFlex = ['more-next'];\n else if (totalPages - numberEdgePages > numberEdgePages)\n endFlex = [totalPages - numberEdgePages];\n\n const getItemIndices = (nextPage) => {\n const startIndex = step * (nextPage - 1);\n const endIndex = startIndex + step;\n return { startIndex, endIndex };\n };\n\n const handleClick = (event, nextPage) => {\n setActivePage(nextPage);\n\n if (onChange) {\n event.persist();\n const adjustedEvent = event;\n adjustedEvent.page = nextPage;\n\n // for controlled use cases, provide user with info on\n // what range of indices should be displayed given the active page\n const { startIndex, endIndex } = getItemIndices(nextPage);\n adjustedEvent.startIndex = startIndex;\n adjustedEvent.endIndex = endIndex;\n onChange(adjustedEvent);\n }\n };\n\n const NextIcon = theme.pagination.icons.next;\n const PreviousIcon = theme.pagination.icons.previous;\n const iconColor = theme.pagination.icons.color;\n\n const navProps = {\n next: {\n // https://a11y-style-guide.com/style-guide/section-navigation.html#kssref-navigation-pagination\n 'aria-disabled': activePage === totalPages ? 'true' : undefined,\n disabled: activePage === totalPages || !numberItems,\n icon: ,\n onClick: (event) => {\n const nextPage = activePage + 1;\n handleClick(event, nextPage);\n },\n label: undefined,\n },\n previous: {\n 'aria-disabled': activePage === 1 ? 'true' : undefined,\n disabled: activePage === 1 || !numberItems,\n icon: ,\n onClick: (event) => {\n const previousPage = activePage - 1;\n handleClick(event, previousPage);\n },\n label: undefined,\n },\n };\n\n let controls = [\n 'previous',\n ...beginPages,\n ...beginFlex, // either \"...\" or single page to bridge start + middle\n ...middlePages,\n ...endFlex, // either \"...\" or single page to bridge middle + end\n ...endPages,\n 'next',\n ];\n\n /* Set props for each page index. Each page index should display a\n * clickable index, control, or placeholder (e.g. ellipsis) indicating\n * more pages are available.\n */\n controls = controls.map((control) => ({\n active: control === activePage,\n a11yTitle:\n typeof control === 'number'\n ? `Go to page ${control}`\n : `Go to ${control} page`,\n // https://a11y-style-guide.com/style-guide/section-navigation.html#kssref-navigation-pagination\n // https://www.w3.org/TR/wai-aria-1.1/#aria-current\n 'aria-current': control === activePage ? 'page' : undefined,\n control,\n onClick: (event) => {\n handleClick(event, control);\n },\n separator: control === 'more-prev' || control === 'more-next',\n ...navProps[control],\n }));\n\n return (\n \n \n \n {controls.map((control, index) => (\n /* Using index as key (as opposed to a unique id) seems to\n * help React prioritize rendering the updated controls as\n * desired. Whereas, using a unique id resulted in rendering\n * the active control with an undesired lag. */\n // eslint-disable-next-line react/no-array-index-key\n \n ))}\n \n \n \n );\n },\n);\n\nPagination.displayName = 'Pagination';\nPagination.propTypes = PaginationPropTypes;\n\nexport { Pagination };\n","import React from 'react';\n\nimport { Box } from '../Box';\n\nconst Nav = ({ ...rest }) => (\n \n);\n\nexport { Nav };\n","import React, { useContext } from 'react';\nimport { ThemeContext } from 'styled-components';\n\nimport {\n StyledContainer,\n StyledPaginationButton,\n StyledSeparator,\n} from './StyledPageControl';\n\nexport const PageControl = ({\n control,\n separator,\n size: sizeProp,\n ...rest\n}) => {\n const theme = useContext(ThemeContext);\n const size = sizeProp || 'medium';\n\n return (\n \n {separator ? (\n \n ) : (\n \n )}\n \n );\n};\n","import styled from 'styled-components';\n\nimport { Button } from '../Button';\nimport { Text } from '../Text';\n\nconst sizeStyle = (props) => {\n const style =\n props.theme.pagination.button &&\n props.theme.pagination.button.size &&\n props.theme.pagination.button.size[props.size || 'medium'];\n\n return style\n ? {\n content: {\n fontSize: style.font && style.font.size,\n lineHeight: style.font && style.font.height,\n },\n container: {\n height: style.height,\n minWidth: style.width,\n },\n }\n : '';\n};\n\nexport const StyledPaginationButton = styled(Button)`\n > svg {\n margin: 0 auto;\n }\n ${(props) => sizeStyle(props).content};\n`;\n\nexport const StyledContainer = styled.div`\n display: flex;\n align-items: center;\n justify-content: center;\n max-width: 100%;\n ${(props) => sizeStyle(props).container};\n ${(props) =>\n props.theme.pagination.control && props.theme.pagination.control.extend};\n`;\n\nexport const StyledSeparator = styled(Text)`\n font-weight: bold;\n ${(props) =>\n `font-size: ${\n sizeStyle(props).content && sizeStyle(props).content.fontSize\n }`};\n ${(props) =>\n `line-height: ${\n sizeStyle(props).content && sizeStyle(props).content.lineHeight\n }`};\n`;\n","import PropTypes from 'prop-types';\nimport { genericProps } from '../../utils/general-prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n ...genericProps,\n numberEdgePages: PropTypes.number,\n numberItems: PropTypes.number,\n numberMiddlePages: PropTypes.number,\n onChange: PropTypes.func,\n page: PropTypes.number,\n size: PropTypes.oneOf(['small', 'medium', 'large']),\n step: PropTypes.number,\n };\n}\nexport const PaginationPropTypes = PropType;\n","import PropTypes from 'prop-types';\nimport { genericProps } from '../../utils/general-prop-types';\n\nconst sizes = ['xxsmall', 'xsmall', 'small', 'medium', 'large', 'xlarge'];\nconst sides = ['horizontal', 'vertical', 'top', 'bottom', 'left', 'right'];\nconst parts = ['header', 'body', 'footer'];\n\nconst padShapeSides = {};\nsides.forEach((side) => {\n padShapeSides[side] = PropTypes.oneOfType([\n PropTypes.oneOf(sizes),\n PropTypes.string,\n ]);\n});\n\nconst padShapeParts = {};\nparts.forEach((part) => {\n padShapeParts[part] = {};\n sides.forEach((side) => {\n padShapeParts[part][side] = PropTypes.oneOf(sizes);\n });\n});\n\nconst backgroundShape = {};\n[...parts, 'pinned'].forEach((part) => {\n backgroundShape[part] = PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.shape({\n dark: PropTypes.string,\n light: PropTypes.string,\n }),\n PropTypes.arrayOf(PropTypes.string),\n ]);\n});\n\nconst borderTypes = [\n PropTypes.bool,\n PropTypes.oneOf(sides),\n PropTypes.shape({\n color: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.shape({\n dark: PropTypes.string,\n light: PropTypes.string,\n }),\n ]),\n side: PropTypes.oneOf(sides),\n size: PropTypes.oneOfType([PropTypes.oneOf(sizes), PropTypes.string]),\n }),\n];\n\nconst borderShape = {};\nparts.forEach((part) => {\n borderShape[part] = PropTypes.oneOfType(borderTypes);\n});\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n ...genericProps,\n background: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.arrayOf(PropTypes.string),\n PropTypes.shape(backgroundShape),\n ]),\n border: PropTypes.oneOfType([...borderTypes, PropTypes.shape(borderShape)]),\n columns: PropTypes.arrayOf(\n PropTypes.shape({\n align: PropTypes.oneOf(['center', 'start', 'end']),\n aggregate: PropTypes.oneOf(['avg', 'max', 'min', 'sum']),\n footer: PropTypes.oneOfType([\n PropTypes.node,\n PropTypes.shape({\n aggregate: PropTypes.bool,\n }),\n ]),\n header: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.node,\n PropTypes.shape({\n aggregate: PropTypes.bool,\n }),\n ]),\n pin: PropTypes.bool,\n plain: PropTypes.bool,\n primary: PropTypes.bool,\n property: PropTypes.string.isRequired,\n render: PropTypes.func,\n search: PropTypes.bool,\n sortable: PropTypes.bool,\n size: PropTypes.oneOfType([\n PropTypes.oneOf([\n 'small',\n 'medium',\n 'large',\n 'xlarge',\n '1/2',\n '1/4',\n '2/4',\n '3/4',\n '1/3',\n '2/3',\n ]),\n PropTypes.string,\n ]),\n units: PropTypes.string,\n verticalAlign: PropTypes.oneOf(['middle', 'top', 'bottom']),\n }),\n ),\n data: PropTypes.arrayOf(PropTypes.shape({})),\n fill: PropTypes.oneOfType([\n PropTypes.oneOf(['horizontal', 'vertical']),\n PropTypes.bool,\n ]),\n groupBy: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.shape({\n property: PropTypes.string,\n expand: PropTypes.arrayOf(PropTypes.string),\n expandable: PropTypes.arrayOf(PropTypes.string),\n select: PropTypes.objectOf(PropTypes.oneOf(['all', 'some', 'none'])),\n onExpand: PropTypes.func,\n onSelect: PropTypes.func,\n }),\n ]),\n onClickRow: PropTypes.func,\n rowDetails: PropTypes.func,\n onMore: PropTypes.func,\n onSearch: PropTypes.func,\n onSelect: PropTypes.func,\n onSort: PropTypes.func,\n onUpdate: PropTypes.func,\n pad: PropTypes.oneOfType([\n PropTypes.oneOf(sizes),\n PropTypes.string,\n PropTypes.shape(padShapeSides),\n PropTypes.shape(padShapeParts),\n ]),\n paginate: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]),\n pin: PropTypes.oneOfType([\n PropTypes.bool,\n PropTypes.oneOf(['header', 'footer']),\n ]),\n placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n primaryKey: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),\n replace: PropTypes.bool,\n resizeable: PropTypes.bool,\n rowProps: PropTypes.shape({}),\n select: PropTypes.arrayOf(\n PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n ),\n show: PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.shape({ page: PropTypes.number }),\n ]),\n size: PropTypes.oneOfType([\n PropTypes.oneOf(['small', 'medium', 'large', 'xlarge']),\n PropTypes.string,\n ]),\n sort: PropTypes.shape({\n direction: PropTypes.oneOf(['asc', 'desc']),\n external: PropTypes.bool,\n property: PropTypes.string.isRequired,\n }),\n sortable: PropTypes.bool,\n step: PropTypes.number,\n };\n}\nexport const DataTablePropTypes = PropType;\n","import React, { forwardRef } from 'react';\n\nexport const PlaceholderBody = forwardRef(\n ({columns = [], onSelect, children}, ref) => {\n const colSpan = Math.max(columns.length + (onSelect ? 1 : 0), 1);\n return (\n \n \n \n {children}\n \n \n \n );\n});\n","export { DateInput } from './DateInput';\n","import React, {\n useRef,\n forwardRef,\n useContext,\n useEffect,\n useMemo,\n useState,\n useCallback,\n} from 'react';\nimport { ThemeContext } from 'styled-components';\nimport { Calendar as CalendarIcon } from 'grommet-icons/icons/Calendar';\nimport { defaultProps } from '../../default-props';\nimport { AnnounceContext } from '../../contexts/AnnounceContext';\nimport { MessageContext } from '../../contexts/MessageContext';\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { Calendar } from '../Calendar';\nimport { Drop } from '../Drop';\nimport { DropButton } from '../DropButton';\nimport { FormContext } from '../Form';\nimport { Keyboard } from '../Keyboard';\nimport { MaskedInput } from '../MaskedInput';\nimport { useForwardedRef } from '../../utils';\nimport { getTimestamp, normalizeForTimezone } from '../Calendar/utils';\nimport {\n formatToSchema,\n schemaToMask,\n valuesAreEqual,\n valueToText,\n textToValue,\n} from './utils';\nimport { DateInputPropTypes } from './propTypes';\n\nconst DateInput = forwardRef(\n (\n {\n buttonProps, // when no format and not inline\n calendarProps,\n defaultValue,\n disabled,\n dropProps, // when inline isn't true\n format,\n id,\n icon,\n inline = false,\n inputProps, // for MaskedInput, when format is specified\n name,\n onChange,\n onFocus,\n plain,\n value: valueArg,\n messages,\n ...rest\n },\n refArg,\n ) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n const announce = useContext(AnnounceContext);\n const { format: formatMessage } = useContext(MessageContext);\n const iconSize =\n (theme.dateInput.icon && theme.dateInput.icon.size) || 'medium';\n const { useFormInput } = useContext(FormContext);\n const ref = useForwardedRef(refArg);\n const containerRef = useRef();\n const [value, setValue] = useFormInput({\n name,\n value: valueArg,\n initialValue: defaultValue,\n });\n\n const timestamp = useMemo(() => {\n if (Array.isArray(defaultValue) && defaultValue.length)\n return getTimestamp(defaultValue[0]);\n if (typeof defaultValue === 'string') return getTimestamp(defaultValue);\n if (Array.isArray(value) && value.length) return getTimestamp(value[0]);\n // check to see if value is not an empty string\n // empty string should behave like undefined\n if (typeof value === 'string' && value.length) return getTimestamp(value);\n return undefined;\n }, [defaultValue, value]);\n\n // whether or not we should normalize the date based on the timestamp.\n // will be set to false if the initial timestamp is undefined (meaning\n // a user did not provide a defaultValue or value). in this case, we\n // will just rely on the UTC timestamp and don't need to normalize.\n const [normalize, setNormalize] = useState(true);\n\n // normalize value based on timestamp vs user's local timezone\n const normalizedDate = normalizeForTimezone(value, timestamp, normalize);\n // do we expect multiple dates?\n const range = Array.isArray(value) || (format && format.includes('-'));\n\n // parse format and build a formal schema we can use elsewhere\n const schema = useMemo(() => formatToSchema(format), [format]);\n\n // mask is only used when a format is provided\n const mask = useMemo(() => schemaToMask(schema), [schema]);\n\n // textValue is only used when a format is provided\n const [textValue, setTextValue] = useState(\n schema ? valueToText(normalizedDate, schema) : undefined,\n );\n\n // Setting the icon through `inputProps` is deprecated.\n // The `icon` prop should be used instead.\n const { icon: MaskedInputIcon, ...restOfInputProps } = inputProps || {};\n if (MaskedInputIcon) {\n console.warn(\n `Customizing the DateInput icon through inputProps is deprecated. \nUse the icon prop instead.`,\n );\n }\n\n // We need to distinguish between the caller changing a Form value\n // and the user typing a date that he isn't finished with yet.\n // To handle this, we see if we have a value and the text value\n // associated with it doesn't align to it, then we update the text value.\n // We compare using textToValue to avoid \"06/01/2021\" not\n // matching \"06/1/2021\".\n useEffect(() => {\n if (schema && value !== undefined) {\n const nextTextValue = valueToText(normalizedDate, schema);\n if (\n !valuesAreEqual(\n textToValue(textValue, schema, range, timestamp),\n textToValue(nextTextValue, schema, range, timestamp),\n ) ||\n (textValue === '' && nextTextValue !== '')\n ) {\n setTextValue(nextTextValue);\n }\n }\n }, [range, schema, textValue, value, normalizedDate, timestamp]);\n\n // when format and not inline, whether to show the Calendar in a Drop\n const [open, setOpen] = useState();\n\n const openCalendar = useCallback(() => {\n setOpen(true);\n announce(formatMessage({ id: 'dateInput.enterCalendar', messages }));\n }, [announce, formatMessage, messages]);\n\n const closeCalendar = useCallback(() => {\n setOpen(false);\n announce(formatMessage({ id: 'dateInput.exitCalendar', messages }));\n }, [announce, formatMessage, messages]);\n\n const calendar = (\n {\n let normalizedValue;\n if (range && Array.isArray(nextValue))\n [normalizedValue] = nextValue;\n // clicking an edge date removes it\n else if (range) normalizedValue = [nextValue, nextValue];\n else normalizedValue = nextValue;\n // timestamp will be undefined if no defaultValue or value have\n // been passed in, indicating that we should stay local if the\n // user first picks a date via the Calendar.\n let nextNormalize = normalize;\n if (timestamp === undefined) {\n nextNormalize = false;\n setNormalize(nextNormalize);\n }\n if (schema)\n setTextValue(\n valueToText(\n normalizeForTimezone(\n normalizedValue,\n undefined,\n nextNormalize,\n ),\n schema,\n ),\n );\n setValue(normalizedValue);\n if (onChange) onChange({ value: normalizedValue });\n if (open && !range) {\n closeCalendar();\n setTimeout(() => ref.current.focus(), 1);\n }\n }\n }\n {...{ ...calendarProps, timestamp }}\n />\n );\n\n const formContextValue = useMemo(\n () => ({\n useFormInput: ({ value: valueProp }) => [valueProp, () => {}],\n }),\n [],\n );\n\n if (!format) {\n // When no format is specified, we don't give the user a way to type\n if (inline) return calendar;\n\n return (\n }\n {...buttonProps}\n />\n );\n }\n\n const input = (\n \n closeCalendar() : undefined}\n onSpace={(event) => {\n event.preventDefault();\n openCalendar();\n }}\n >\n \n {\n const nextTextValue = event.target.value;\n setTextValue(nextTextValue);\n\n let localTimestamp;\n // get the UTC timestamp relative to the user's timezone\n // once a date is complete\n if (timestamp === undefined && Date.parse(nextTextValue))\n [, localTimestamp] = new Date(nextTextValue)\n .toISOString()\n .split('T');\n\n // timestamp will be undefined if no defaultValue or value have\n // been passed in, indicating that we should stay local\n let nextNormalize = normalize;\n if (timestamp === undefined) {\n nextNormalize = false;\n setNormalize(nextNormalize);\n }\n const nextValue = textToValue(\n nextTextValue,\n schema,\n range,\n timestamp || localTimestamp,\n nextNormalize,\n );\n\n // reset to original state\n if (nextValue === undefined) setNormalize(true);\n // update value even when undefined\n setValue(nextValue);\n if (onChange) {\n event.persist(); // extract from React synthetic event pool\n const adjustedEvent = event;\n adjustedEvent.value = nextValue;\n onChange(adjustedEvent);\n }\n }}\n onFocus={(event) => {\n announce(\n formatMessage({ id: 'dateInput.openCalendar', messages }),\n );\n if (onFocus) onFocus(event);\n }}\n />\n }\n margin={{ right: 'small' }}\n />\n \n \n \n );\n\n if (inline) {\n return (\n \n {input}\n {calendar}\n \n );\n }\n\n if (open) {\n return [\n input,\n ref.current.focus()}>\n {\n if (\n target !== containerRef.current &&\n !containerRef.current.contains(target)\n ) {\n closeCalendar();\n }\n }}\n {...dropProps}\n >\n {calendar}\n \n ,\n ];\n }\n\n return input;\n },\n);\n\nDateInput.displayName = 'DateInput';\nDateInput.propTypes = DateInputPropTypes;\n\nexport { DateInput };\n","\"use strict\";\n\nexports.__esModule = true;\nexports.Calendar = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && 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; }\n\nfunction _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); }\n\nvar Calendar = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {\n return /*#__PURE__*/_react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n ref: ref,\n viewBox: \"0 0 24 24\",\n a11yTitle: \"Calendar\"\n }, props), /*#__PURE__*/_react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"M2 5h20v17H2V5zm16 0V1M6 5V1m-4 9h20\"\n }));\n});\nexports.Calendar = Calendar;\nCalendar.displayName = 'Calendar';","import React, { forwardRef, useCallback, useEffect, useState } from 'react';\n\nimport { Button } from '../Button';\nimport { Drop } from '../Drop';\nimport { useForwardedRef } from '../../utils';\nimport { DropButtonPropTypes } from './propTypes';\n\nconst defaultDropAlign = { top: 'top', left: 'left' };\n\nconst DropButton = forwardRef(\n (\n {\n a11yTitle = 'Open Drop',\n onAlign,\n disabled,\n dropAlign = defaultDropAlign,\n dropProps,\n dropContent,\n dropTarget,\n id,\n open,\n onClick,\n onClose,\n onOpen,\n ...rest\n },\n ref,\n ) => {\n const buttonRef = useForwardedRef(ref);\n const [show, setShow] = useState();\n useEffect(() => {\n if (open !== undefined && open !== show) {\n setShow(open);\n }\n }, [open, show]);\n const onDropClose = useCallback(\n (event) => {\n // if the user has clicked on our Button, don't do anything here,\n // handle that in onClickInternal() below.\n let node = event.target;\n while (node !== document && node !== buttonRef.current) {\n node = node.parentNode;\n }\n if (node !== buttonRef.current) {\n // don't change internal state if caller is driving\n if (open === undefined) setShow(false);\n if (onClose) onClose(event);\n }\n },\n [buttonRef, onClose, open],\n );\n\n const onClickInternal = useCallback(\n (event) => {\n if (!show) {\n setShow(true);\n if (onOpen) onOpen(event);\n } else {\n setShow(false);\n if (onClose) onClose(event);\n }\n if (onClick) onClick(event);\n },\n [onClick, onClose, onOpen, show],\n );\n\n return (\n <>\n \n {show && buttonRef.current && (\n \n {dropContent}\n \n )}\n \n );\n },\n);\n\nDropButton.displayName = 'DropButton';\nDropButton.propTypes = DropButtonPropTypes;\n\nexport { DropButton };\n","import PropTypes from 'prop-types';\nimport { genericProps } from '../../utils/general-prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n ...genericProps,\n disabled: PropTypes.bool,\n dropAlign: PropTypes.shape({\n top: PropTypes.oneOf(['top', 'bottom']),\n bottom: PropTypes.oneOf(['top', 'bottom']),\n right: PropTypes.oneOf(['left', 'right']),\n left: PropTypes.oneOf(['left', 'right']),\n }),\n dropContent: PropTypes.element.isRequired,\n dropTarget: PropTypes.object,\n dropProps: PropTypes.object,\n onClose: PropTypes.func,\n onOpen: PropTypes.func,\n open: PropTypes.bool,\n };\n}\nexport const DropButtonPropTypes = PropType;\n","import React, {\n forwardRef,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport { MessageContext } from '../../contexts/MessageContext';\nimport { FormContext } from './FormContext';\nimport { FormPropTypes } from './propTypes';\n\nconst defaultValue = {};\nconst defaultTouched = {};\nconst defaultValidationResults = {\n errors: {},\n infos: {},\n};\n\nconst stringToArray = (string) => {\n const match = string?.match(/^(.+)\\[([0-9]+)\\]\\.(.*)$/);\n if (match) {\n const [, arrayName, indexOfArray, arrayObjName] = match;\n return {\n indexOfArray,\n arrayName,\n arrayObjName,\n };\n }\n return undefined;\n};\n\nconst getFieldValue = (name, value) => {\n const isArrayField = stringToArray(name);\n if (isArrayField) {\n const { indexOfArray, arrayName, arrayObjName } = isArrayField;\n const obj = value[arrayName]?.[indexOfArray];\n return arrayObjName ? obj?.[arrayObjName] : obj;\n }\n return value[name];\n};\n\nconst setFieldValue = (name, componentValue, prevValue) => {\n const nextValue = { ...prevValue };\n const isArrayField = stringToArray(name);\n if (isArrayField) {\n const { indexOfArray, arrayName, arrayObjName } = isArrayField;\n if (!nextValue[arrayName]) nextValue[arrayName] = [];\n if (arrayObjName) {\n if (!nextValue[arrayName][indexOfArray])\n nextValue[arrayName][indexOfArray] = {\n [arrayObjName]: componentValue,\n };\n nextValue[arrayName][indexOfArray][arrayObjName] = componentValue;\n } else nextValue[arrayName][indexOfArray] = componentValue;\n } else {\n nextValue[name] = componentValue;\n }\n return nextValue;\n};\n\n// Apply validation rule to field value and send correct messaging.\nconst validate = (rule, fieldValue, formValue, format, messages) => {\n let result;\n if (typeof rule === 'function') {\n result = rule(fieldValue, formValue);\n } else if (rule.regexp) {\n if (!rule.regexp.test(fieldValue)) {\n result = rule.message || format({ id: 'form.invalid', messages });\n if (rule.status) {\n result = { message: result, status: rule.status };\n }\n }\n }\n return result;\n};\n\n// Validates particular key in formValue\nconst validateName =\n (validationRules, required) => (name, formValue, format, messages) => {\n const fieldValue = getFieldValue(name, formValue);\n let validationResult;\n\n if (\n required &&\n // false is for CheckBox\n (fieldValue === undefined ||\n fieldValue === '' ||\n fieldValue === false ||\n (Array.isArray(fieldValue) && !fieldValue.length))\n ) {\n validationResult = format({ id: 'form.required', messages });\n } else if (validationRules) {\n if (Array.isArray(validationRules)) {\n validationRules.some((rule) => {\n validationResult = validate(\n rule,\n fieldValue,\n formValue,\n format,\n messages,\n );\n return !!validationResult;\n });\n } else {\n validationResult = validate(\n validationRules,\n fieldValue,\n formValue,\n format,\n messages,\n );\n }\n }\n return validationResult;\n };\n\n// Validates all keys in formValue\nconst validateForm = (\n validationRules,\n formValue,\n format,\n messages,\n omitValid,\n) => {\n const nextErrors = {};\n const nextInfos = {};\n validationRules.forEach(([name, { field, input }]) => {\n if (!omitValid) {\n nextErrors[name] = undefined;\n nextInfos[name] = undefined;\n }\n\n let result;\n if (input) {\n // input() a validation function supplied through useFormInput()\n result = input(name, formValue, format, messages);\n }\n if (field && !result) {\n // field() a validation function supplied through useFormField()\n result = field(name, formValue, format, messages);\n }\n // typeof error === 'object' is implied for both cases of error with\n // a status message and for an error object that is a react node\n if (typeof result === 'object') {\n if (result.status === 'info') {\n nextInfos[name] = result.message;\n } else {\n nextErrors[name] = result.message || result; // could be a node\n }\n } else if (typeof result === 'string') {\n nextErrors[name] = result;\n }\n });\n return [nextErrors, nextInfos];\n};\n\nconst Form = forwardRef(\n (\n {\n children,\n errors: errorsProp = defaultValidationResults.errors,\n infos: infosProp = defaultValidationResults.infos,\n messages,\n onChange,\n onReset,\n onSubmit,\n onValidate,\n validate: validateOn = 'submit',\n value: valueProp,\n ...rest\n },\n ref,\n ) => {\n const { format } = useContext(MessageContext);\n const [valueState, setValueState] = useState(valueProp || defaultValue);\n const value = useMemo(\n () => valueProp || valueState,\n [valueProp, valueState],\n );\n const [touched, setTouched] = useState(defaultTouched);\n const [validationResults, setValidationResults] = useState({\n errors: errorsProp,\n infos: infosProp,\n });\n // maintain a copy of validationResults in a ref for useEffects\n // which can't depend on validationResults directly without\n // causing infinite renders.\n const validationResultsRef = useRef({});\n // Simulated onMount state. Consider Form to be mounted once it has\n // accounted for values originating from controlled inputs (available\n // at second rendering).\n const [mounted, setMounted] = useState('unmounted');\n useEffect(() => {\n if (!mounted) setMounted('mounting');\n else if (mounted === 'mounting') setMounted('mounted');\n }, [mounted]);\n // `pendingValidation` is the name of the FormField awaiting validation.\n const [pendingValidation, setPendingValidation] = useState(undefined);\n\n const validationRulesRef = useRef({});\n const requiredFields = useRef([]);\n\n const buildValid = useCallback(\n (nextErrors) => {\n let valid = false;\n valid = requiredFields.current\n .filter((n) => Object.keys(validationRulesRef.current).includes(n))\n .every(\n (field) =>\n value[field] && (value[field] !== '' || value[field] !== false),\n );\n\n if (Object.keys(nextErrors).length > 0) valid = false;\n return valid;\n },\n [value],\n );\n\n // Only keep validation results for current form fields. In the case of a\n // dynamic form, a field possessing an error may have been removed from the\n // form; need to clean up any previous related validation results.\n const filterRemovedFields = (prevValidations) => {\n const nextValidations = prevValidations;\n return Object.keys(nextValidations)\n .filter(\n (n) =>\n !validationRulesRef.current[n] || nextValidations[n] === undefined,\n )\n .forEach((n) => delete nextValidations[n]);\n };\n\n const applyValidationRules = useCallback(\n (validationRules) => {\n const [validatedErrors, validatedInfos] = validateForm(\n validationRules,\n value,\n format,\n messages,\n );\n\n setValidationResults((prevValidationResults) => {\n // Keep any previous errors and infos for untouched keys,\n // these may have come from a Submit.\n const nextErrors = {\n ...prevValidationResults.errors,\n ...validatedErrors,\n };\n const nextInfos = {\n ...prevValidationResults.infos,\n ...validatedInfos,\n };\n // Remove previous errors and infos for keys no longer in the\n // form, these may have been fields removed from a dynamic form.\n filterRemovedFields(nextErrors);\n filterRemovedFields(nextInfos);\n const nextValidationResults = {\n errors: nextErrors,\n infos: nextInfos,\n };\n if (onValidate)\n onValidate({\n ...nextValidationResults,\n valid: buildValid(nextErrors),\n });\n validationResultsRef.current = nextValidationResults;\n return nextValidationResults;\n });\n },\n [buildValid, format, messages, onValidate, value],\n );\n\n // Validate all fields holding values onMount if set to\n // validate when blur or change.\n useEffect(() => {\n const validationRules = Object.entries(validationRulesRef.current);\n // Use simulated onMount state to account for values provided by\n // controlled inputs.\n if (\n mounted !== 'mounted' &&\n ['blur', 'change'].includes(validateOn) &&\n Object.keys(value).length > 0 &&\n Object.keys(touched).length === 0\n ) {\n applyValidationRules(\n validationRules\n .filter(([n]) => value[n])\n // Exlude empty arrays which may be initial values in\n // an input such as DateInput.\n .filter(\n ([n]) => !(Array.isArray(value[n]) && value[n].length === 0),\n ),\n );\n }\n }, [applyValidationRules, mounted, touched, validateOn, value]);\n\n // Run validation against fields with pendingValidations from onBlur\n // and/or onChange.\n useEffect(() => {\n const validationRules = Object.entries(validationRulesRef.current);\n const timer = setTimeout(() => {\n if (pendingValidation && ['blur', 'change'].includes(validateOn)) {\n applyValidationRules(\n validationRules.filter(\n ([n]) => touched[n] || pendingValidation.includes(n),\n ),\n );\n setPendingValidation(undefined);\n }\n // Complete any potential click events before running onBlur validation.\n // Otherwise, click events like reset, etc. may not be registered. For a\n // detailed scenario/discussion, see: https://github.com/grommet/grommet/issues/4863\n // Values empirically tested; 120 was selected because it is the largest\n // Chrome: 100, Safari: 120, Firefox: 80\n }, 120);\n return () => clearTimeout(timer);\n }, [applyValidationRules, pendingValidation, touched, validateOn]);\n\n // Re-run validation rules for all fields with prior errors.\n // if validate=blur this helps re-validate if there are errors\n // as the user fixes them (basically act like validate=change for that)\n useEffect(() => {\n const validationRules = Object.entries(validationRulesRef.current);\n if (\n validationResultsRef.current?.errors &&\n Object.keys(validationResultsRef.current.errors).length > 0\n ) {\n applyValidationRules(\n validationRules.filter(\n ([n]) => touched[n] && validationResultsRef.current.errors[n],\n ),\n );\n }\n }, [applyValidationRules, touched]);\n\n // There are three basic patterns of handling form input value state:\n //\n // 1 - form controlled\n //\n // In this model, the caller sets `value` and `onChange` properties\n // on the Form component to supply the values used by the input fields.\n // In useFormContext(), componentValue would be undefined and formValue\n // is be set to whatever the form state has. Whenever the form state\n // changes, we update the contextValue so the input component will use\n // that. When the input component changes, we will call update() to\n // update the form state.\n //\n // 2 - input controlled\n //\n // In this model, the caller sets `value` and `onChange` properties\n // on the input components, like TextInput, to supply the value for it.\n // In useFormContext(), componentValue is this value and we ensure to\n // update the form state, via update(), and set the contextValue from\n // the componentValue. When the input component changes, we will\n // call update() to update the form state.\n //\n // 3 - uncontrolled\n //\n // In this model, the caller doesn't set a `value` or `onChange` property\n // at either the form or input component levels.\n // In useFormContext(), componentValue is undefined and valueProp is\n // undefined and nothing much happens here. That is, unless the\n // calling component needs to know the state in order to work, such\n // as CheckBox or Select. In this case, those components supply\n // an initialValue, which will trigger updating the contextValue so\n // they can have access to it.\n //\n const formContextValue = useMemo(() => {\n const useFormInput = ({\n name,\n value: componentValue,\n initialValue,\n validate: validateArg,\n }) => {\n const [inputValue, setInputValue] = useState(initialValue);\n const formValue = name ? getFieldValue(name, value) : undefined;\n // for dynamic forms, we need to track when an input has been added to\n // the form value. if the input is unmounted, we will delete its\n // key/value from the form value.\n const keyCreated = useRef(false);\n\n // This effect is for pattern #2, where the controlled input\n // component is driving the value via componentValue.\n useEffect(() => {\n if (\n name && // we have somewhere to put this\n componentValue !== undefined && // input driving\n componentValue !== formValue // don't already have it\n ) {\n setValueState((prevValue) =>\n setFieldValue(name, componentValue, prevValue),\n );\n // don't onChange on programmatic changes\n }\n }, [componentValue, formValue, name]);\n\n // on unmount, if the form is uncontrolled, remove the key/value\n // from the form value\n useEffect(\n () => () => {\n if (keyCreated.current) {\n keyCreated.current = false;\n setValueState((prevValue) => {\n const nextValue = { ...prevValue };\n const isArrayField = stringToArray(name);\n if (isArrayField) {\n const { arrayName } = isArrayField;\n delete nextValue[arrayName];\n } else {\n delete nextValue[name];\n }\n return nextValue;\n });\n }\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [], // only run onmount and unmount\n );\n\n // Create validation rules for fields\n useEffect(() => {\n if (validateArg) {\n if (!validationRulesRef.current[name]) {\n validationRulesRef.current[name] = {};\n }\n validationRulesRef.current[name].input = validateName(validateArg);\n return () => delete validationRulesRef.current[name].input;\n }\n return undefined;\n }, [validateArg, name]);\n\n let useValue;\n if (componentValue !== undefined)\n // input component drives, pattern #2\n useValue = componentValue;\n else if (valueProp && name && formValue !== undefined)\n // form drives, pattern #1\n useValue = formValue;\n else if (formValue === undefined && name)\n // form has reset, so reset input value as well\n useValue = initialValue;\n else useValue = inputValue;\n\n return [\n useValue,\n (nextComponentValue) => {\n if (name) {\n // we have somewhere to put this\n const nextTouched = { ...touched };\n nextTouched[name] = true;\n\n if (!touched[name]) {\n // don't update if not needed\n setTouched(nextTouched);\n }\n\n // if nextValue doesn't have a key for name, this must be\n // uncontrolled form. we will flag this field was added so\n // we know to remove its value from the form if it is dynamically\n // removed\n if (!(name in value)) keyCreated.current = true;\n const nextValue = setFieldValue(name, nextComponentValue, value);\n setValueState(nextValue);\n if (onChange) onChange(nextValue, { touched: nextTouched });\n }\n if (initialValue !== undefined) setInputValue(nextComponentValue);\n },\n ];\n };\n\n const useFormField = ({\n error: errorArg,\n info: infoArg,\n name,\n required,\n disabled,\n validate: validateArg,\n }) => {\n const error = disabled\n ? undefined\n : errorArg || validationResults.errors[name];\n const info = infoArg || validationResults.infos[name];\n\n // Create validation rules for field\n useEffect(() => {\n const index = requiredFields.current.indexOf(name);\n if (required) {\n if (index === -1) requiredFields.current.push(name);\n } else if (index !== -1) requiredFields.current.splice(index, 1);\n\n if (validateArg || required) {\n if (!validationRulesRef.current[name]) {\n validationRulesRef.current[name] = {};\n }\n validationRulesRef.current[name].field = validateName(\n validateArg,\n required,\n );\n return () => delete validationRulesRef.current[name].field;\n }\n\n return undefined;\n }, [error, name, required, validateArg, disabled]);\n\n return {\n error,\n info,\n inForm: true,\n onBlur:\n validateOn === 'blur'\n ? () =>\n setPendingValidation(\n pendingValidation ? [...pendingValidation, name] : [name],\n )\n : undefined,\n onChange:\n validateOn === 'change'\n ? () =>\n setPendingValidation(\n pendingValidation ? [...pendingValidation, name] : [name],\n )\n : undefined,\n };\n };\n\n return { useFormField, useFormInput };\n }, [\n onChange,\n pendingValidation,\n touched,\n validateOn,\n validationResults.errors,\n validationResults.infos,\n value,\n valueProp,\n ]);\n\n return (\n {\n setPendingValidation(undefined);\n if (!valueProp) {\n setValueState(defaultValue);\n if (onChange) onChange(defaultValue, { touched: defaultTouched });\n }\n setTouched(defaultTouched);\n setValidationResults(defaultValidationResults);\n if (onReset) {\n event.persist(); // extract from React's synthetic event pool\n const adjustedEvent = event;\n adjustedEvent.value = defaultValue;\n onReset(adjustedEvent);\n }\n }}\n onSubmit={(event) => {\n // Don't submit the form via browser form action. We don't want it\n // if the validation fails. And, we assume a javascript action handler\n // otherwise.\n event.preventDefault();\n setPendingValidation(undefined);\n const [nextErrors, nextInfos] = validateForm(\n Object.entries(validationRulesRef.current),\n value,\n format,\n messages,\n true,\n );\n\n setValidationResults(() => {\n const nextValidationResults = {\n errors: nextErrors,\n infos: nextInfos,\n // Show form's validity when clicking on Submit\n valid: buildValid(nextErrors),\n };\n if (onValidate) onValidate(nextValidationResults);\n validationResultsRef.current = nextValidationResults;\n return nextValidationResults;\n });\n\n if (Object.keys(nextErrors).length === 0 && onSubmit) {\n event.persist(); // extract from React's synthetic event pool\n const adjustedEvent = event;\n adjustedEvent.value = value;\n adjustedEvent.touched = touched;\n onSubmit(adjustedEvent);\n }\n }}\n >\n \n {children}\n \n \n );\n },\n);\n\nForm.displayName = 'Form';\nForm.propTypes = FormPropTypes;\n\nexport { Form };\n","import PropTypes from 'prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n errors: PropTypes.shape({}),\n infos: PropTypes.shape({}),\n messages: PropTypes.shape({\n invalid: PropTypes.string,\n required: PropTypes.string,\n }),\n onChange: PropTypes.func,\n onSubmit: PropTypes.func,\n onReset: PropTypes.func,\n onValidate: PropTypes.func,\n validate: PropTypes.oneOf(['blur', 'submit', 'change']),\n value: PropTypes.shape({}),\n };\n}\nexport const FormPropTypes = PropType;\n","import React, {\n forwardRef,\n useCallback,\n useContext,\n useEffect,\n useRef,\n useState,\n} from 'react';\nimport styled, { ThemeContext } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { Drop } from '../Drop';\nimport { FormContext } from '../Form/FormContext';\nimport { Keyboard } from '../Keyboard';\nimport { sizeStyle, useForwardedRef } from '../../utils';\n\nimport {\n StyledMaskedInput,\n StyledMaskedInputContainer,\n StyledIcon,\n} from './StyledMaskedInput';\nimport { MaskedInputPropTypes } from './propTypes';\n\nconst parseValue = (mask, value) => {\n // break the value up into mask parts\n const valueParts = []; // { part, beginIndex, endIndex }\n let valueIndex = 0;\n let maskIndex = 0;\n while (\n value !== undefined &&\n valueIndex < value.length &&\n maskIndex < mask.length\n ) {\n const item = mask[maskIndex];\n let found;\n if (item.fixed) {\n const { length } = item.fixed;\n\n // grab however much of value (starting at valueIndex) matches\n // item.fixed. If none matches it and there is more in value\n // add in the fixed item.\n let matching = 0;\n while (\n matching < length &&\n value[valueIndex + matching] === item.fixed[matching]\n ) {\n matching += 1;\n }\n\n if (matching > 0) {\n let part = value.slice(valueIndex, valueIndex + matching);\n if (valueIndex + matching < value.length) {\n // matched part of the fixed portion but there's more stuff\n // after it. Go ahead and fill in the entire fixed chunk\n part = item.fixed;\n }\n valueParts.push({\n part,\n beginIndex: valueIndex,\n endIndex: valueIndex + matching - 1,\n });\n valueIndex += matching;\n } else {\n valueParts.push({\n part: item.fixed,\n beginIndex: valueIndex,\n endIndex: valueIndex + length - 1,\n });\n }\n\n maskIndex += 1;\n found = true;\n } else if (item.options && item.restrictToOptions !== false) {\n // reverse assuming larger is later\n found = item.options\n .slice(0)\n .reverse()\n // eslint-disable-next-line no-loop-func\n .some((option) => {\n const { length } = option;\n const part = value.slice(valueIndex, valueIndex + length);\n if (part === option) {\n valueParts.push({\n part,\n beginIndex: valueIndex,\n endIndex: valueIndex + length - 1,\n });\n valueIndex += length;\n maskIndex += 1;\n return true;\n }\n return false;\n });\n }\n if (!found) {\n if (item.regexp) {\n const minLength =\n (Array.isArray(item.length) && item.length[0]) || item.length || 1;\n const maxLength =\n (Array.isArray(item.length) && item.length[1]) ||\n item.length ||\n value.length - valueIndex;\n let length = maxLength;\n while (!found && length >= minLength) {\n const part = value.slice(valueIndex, valueIndex + length);\n if (item.regexp.test(part)) {\n valueParts.push({\n part,\n beginIndex: valueIndex,\n endIndex: valueIndex + length - 1,\n });\n valueIndex += length;\n maskIndex += 1;\n found = true;\n }\n length -= 1;\n }\n if (!found) {\n valueIndex = value.length;\n }\n } else {\n const length = Array.isArray(item.length)\n ? item.length[1]\n : item.length || value.length - valueIndex;\n const part = value.slice(valueIndex, valueIndex + length);\n valueParts.push({\n part,\n beginIndex: valueIndex,\n endIndex: valueIndex + length - 1,\n });\n valueIndex += length;\n maskIndex += 1;\n }\n }\n }\n return valueParts;\n};\n\nconst defaultMask = [\n {\n regexp: /[^]*/,\n },\n];\n\nconst ContainerBox = styled(Box)`\n ${(props) =>\n props.dropHeight\n ? sizeStyle('max-height', props.dropHeight, props.theme)\n : 'max-height: inherit;'};\n\n /* IE11 hack to get drop contents to not overflow */\n @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n width: 100%;\n }\n`;\n\nconst dropAlign = { top: 'bottom', left: 'left' };\n\nconst MaskedInput = forwardRef(\n (\n {\n a11yTitle,\n dropHeight,\n dropProps,\n focus: focusProp,\n focusIndicator = true,\n icon,\n id,\n mask = defaultMask,\n name,\n onBlur,\n onChange,\n onFocus,\n onKeyDown,\n placeholder,\n plain,\n reverse,\n textAlign,\n value: valueProp,\n ...rest\n },\n ref,\n ) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n const formContext = useContext(FormContext);\n\n const [value, setValue] = formContext.useFormInput({\n name,\n value: valueProp,\n });\n\n const [valueParts, setValueParts] = useState(parseValue(mask, value));\n useEffect(() => {\n setValueParts(parseValue(mask, value));\n }, [mask, value]);\n\n const inputRef = useForwardedRef(ref);\n const dropRef = useRef();\n\n // Caller's ref, if provided\n const [dropPropsTarget, setDropPropsTarget] = useState();\n useEffect(() => {\n let nextDropPropsTarget;\n // If caller provided a ref, set to 'pending' until ref.current is defined\n if (dropProps && 'target' in dropProps) {\n nextDropPropsTarget = dropProps.target || 'pending';\n setDropPropsTarget(nextDropPropsTarget);\n }\n }, [dropProps]);\n\n const [focus, setFocus] = useState(focusProp);\n const [activeMaskIndex, setActiveMaskIndex] = useState();\n const [activeOptionIndex, setActiveOptionIndex] = useState();\n const [showDrop, setShowDrop] = useState();\n\n useEffect(() => {\n if (focus) {\n const timer = setTimeout(() => {\n // determine which mask element the caret is at\n const caretIndex = inputRef.current.selectionStart;\n let maskIndex;\n valueParts.some((part, index) => {\n if (part.beginIndex <= caretIndex && part.endIndex >= caretIndex) {\n maskIndex = index;\n return true;\n }\n return false;\n });\n if (maskIndex === undefined && valueParts.length < mask.length) {\n maskIndex = valueParts.length; // first unused one\n }\n if (maskIndex && mask[maskIndex].fixed) {\n maskIndex -= 1; // fixed mask parts are never \"active\"\n }\n if (maskIndex !== activeMaskIndex) {\n setActiveMaskIndex(maskIndex);\n setActiveOptionIndex(-1);\n setShowDrop(maskIndex >= 0 && mask[maskIndex].options && true);\n }\n }, 10); // 10ms empirically chosen\n return () => clearTimeout(timer);\n }\n return undefined;\n }, [activeMaskIndex, focus, inputRef, mask, valueParts]);\n\n const setInputValue = useCallback(\n (nextValue) => {\n // Calling set value function directly on input because React library\n // overrides setter `event.target.value =` and loses original event\n // target fidelity.\n // https://stackoverflow.com/a/46012210 &&\n // https://github.com/grommet/grommet/pull/3171#discussion_r296415239\n const nativeInputValueSetter = Object.getOwnPropertyDescriptor(\n window.HTMLInputElement.prototype,\n 'value',\n ).set;\n nativeInputValueSetter.call(inputRef.current, nextValue);\n const event = new Event('input', { bubbles: true });\n inputRef.current.dispatchEvent(event);\n },\n [inputRef],\n );\n\n // This could be due to a paste or as the user is typing.\n const onChangeInput = useCallback(\n (event) => {\n // Align with the mask.\n const nextValueParts = parseValue(mask, event.target.value);\n const nextValue = nextValueParts.map((part) => part.part).join('');\n\n if (nextValue !== event.target.value) {\n // The mask required inserting something, change the input.\n // This will re-trigger this callback with the next value\n setInputValue(nextValue);\n } else if (value !== nextValue) {\n setValue(nextValue);\n if (onChange) onChange(event);\n }\n },\n [mask, onChange, setInputValue, setValue, value],\n );\n\n const onOption = useCallback(\n (option) => () => {\n const nextValueParts = [...valueParts];\n nextValueParts[activeMaskIndex] = { part: option };\n // add any fixed parts that follow\n let index = activeMaskIndex + 1;\n while (\n index < mask.length &&\n !nextValueParts[index] &&\n mask[index].fixed\n ) {\n nextValueParts[index] = { part: mask[index].fixed };\n index += 1;\n }\n const nextValue = nextValueParts.map((part) => part.part).join('');\n setInputValue(nextValue);\n // restore focus to input\n inputRef.current.focus();\n },\n [activeMaskIndex, inputRef, mask, setInputValue, valueParts],\n );\n\n const onNextOption = useCallback(\n (event) => {\n const item = mask[activeMaskIndex];\n if (item && item.options) {\n event.preventDefault();\n const index = Math.min(\n activeOptionIndex + 1,\n item.options.length - 1,\n );\n setActiveOptionIndex(index);\n }\n },\n [activeMaskIndex, activeOptionIndex, mask],\n );\n\n const onPreviousOption = useCallback(\n (event) => {\n if (activeMaskIndex >= 0 && mask[activeMaskIndex].options) {\n event.preventDefault();\n const index = Math.max(activeOptionIndex - 1, 0);\n setActiveOptionIndex(index);\n }\n },\n [activeMaskIndex, activeOptionIndex, mask],\n );\n\n const onSelectOption = useCallback(\n (event) => {\n if (activeMaskIndex >= 0 && activeOptionIndex >= 0) {\n event.preventDefault();\n const option = mask[activeMaskIndex].options[activeOptionIndex];\n onOption(option)();\n }\n },\n [activeMaskIndex, activeOptionIndex, mask, onOption],\n );\n\n const onEsc = useCallback(\n (event) => {\n if (showDrop) {\n // we have to stop both synthetic events and native events\n // drop and layer should not close by pressing esc on this input\n event.stopPropagation();\n event.nativeEvent.stopImmediatePropagation();\n setShowDrop(false);\n }\n },\n [showDrop],\n );\n\n const onHideDrop = useCallback(() => setShowDrop(false), []);\n\n const renderPlaceholder = () =>\n mask.map((item) => item.placeholder || item.fixed).join('');\n\n return (\n \n {icon && (\n \n {icon}\n \n )}\n setShowDrop(false) : undefined}\n onLeft={undefined}\n onRight={undefined}\n onUp={onPreviousOption}\n onDown={showDrop ? onNextOption : () => setShowDrop(true)}\n onEnter={onSelectOption}\n onKeyDown={onKeyDown}\n >\n {\n setFocus(true);\n setShowDrop(true);\n if (onFocus) onFocus(event);\n }}\n onBlur={(event) => {\n setFocus(false);\n // This will be called when the user clicks on a suggestion,\n // check for that and don't remove the drop in that case.\n // Drop will already have removed itself if the user has focused\n // outside of the Drop.\n if (!dropRef.current) setShowDrop(false);\n if (onBlur) onBlur(event);\n }}\n onChange={onChangeInput}\n />\n \n {showDrop &&\n mask[activeMaskIndex] &&\n mask[activeMaskIndex].options &&\n // If caller has specified dropProps.target, ensure target is defined\n dropPropsTarget !== 'pending' && (\n \n \n {mask[activeMaskIndex].options.map((option, index) => {\n // Determine whether the label is done as a child or\n // as an option Button kind property.\n const child = !theme.button.option ? (\n \n {option}\n \n ) : undefined;\n // if we have a child, turn on plain, and hoverIndicator\n\n return (\n \n setActiveOptionIndex(index)}\n onFocus={() => {}}\n active={index === activeOptionIndex}\n plain={!child ? undefined : true}\n align=\"start\"\n kind={!child ? 'option' : undefined}\n hoverIndicator={!child ? undefined : 'background'}\n label={!child ? option : undefined}\n >\n {child}\n \n \n );\n })}\n \n \n )}\n \n );\n },\n);\n\nMaskedInput.displayName = 'MaskedInput';\nMaskedInput.propTypes = MaskedInputPropTypes;\n\nexport { MaskedInput };\n","import styled from 'styled-components';\n\nimport {\n disabledStyle,\n getInputPadBySide,\n inputStyle,\n plainInputStyle,\n textAlignStyle,\n} from '../../utils';\n\nexport const StyledMaskedInput = styled.input`\n ${inputStyle}\n ${(props) => props.plain && plainInputStyle}\n ${(props) =>\n props.icon &&\n (props.reverse\n ? `padding-right: ${props.theme.global.edgeSize.large};`\n : `padding-left: ${props.theme.global.edgeSize.large};`)}\n ${(props) =>\n props.disabled &&\n disabledStyle(\n props.theme.maskedInput.disabled &&\n props.theme.maskedInput.disabled.opacity,\n )}\n ${(props) => props.textAlign && textAlignStyle}\n ${(props) => props.theme.maskedInput && props.theme.maskedInput.extend};\n`;\n\nexport const StyledMaskedInputContainer = styled.div`\n position: relative;\n width: 100%;\n\n ${(props) =>\n props.theme.maskedInput &&\n props.theme.maskedInput.container &&\n props.theme.maskedInput.container.extend};\n`;\n\nexport const StyledIcon = styled.div`\n position: absolute;\n display: flex;\n justify: center;\n top: 50%;\n transform: translateY(-50%);\n pointer-events: none;\n ${(props) =>\n props.reverse\n ? `right: ${getInputPadBySide(props, 'right')};`\n : `left: ${getInputPadBySide(props, 'left')};`}\n`;\n","import PropTypes from 'prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n a11yTitle: PropTypes.string,\n dropHeight: PropTypes.oneOfType([\n PropTypes.oneOf(['xsmall', 'small', 'medium', 'large', 'xlarge']),\n PropTypes.string,\n ]),\n dropProps: PropTypes.object,\n icon: PropTypes.element,\n id: PropTypes.string,\n name: PropTypes.string,\n onChange: PropTypes.func,\n focusIndicator: PropTypes.bool,\n onBlur: PropTypes.func,\n mask: PropTypes.arrayOf(\n PropTypes.shape({\n length: PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.arrayOf(PropTypes.number),\n ]),\n fixed: PropTypes.string,\n options: PropTypes.arrayOf(\n PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n ),\n restrictToOptions: PropTypes.bool,\n regexp: PropTypes.shape({}), // RegExp\n }),\n ),\n reverse: PropTypes.bool,\n size: PropTypes.oneOfType([\n PropTypes.oneOf([\n 'xsmall',\n 'small',\n 'medium',\n 'large',\n 'xlarge',\n 'xxlarge',\n '2xl',\n '3xl',\n '4xl',\n '5xl',\n '6xl',\n ]),\n PropTypes.string,\n ]),\n textAlign: PropTypes.oneOf(['start', 'center', 'end']),\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n };\n}\nexport const MaskedInputPropTypes = PropType;\n","// Converting between Date and String types is handled via a \"schema\".\n// The schema is an array of strings, split into strings with identical\n// characters. So, 'mm/dd/yyyy' will be ['mm', '/', 'dd', '/', 'yyyyy'].\nimport { formatToLocalYYYYMMDD } from '../Calendar/utils';\n\nexport const formatToSchema = (format) => {\n if (!format) return undefined;\n const result = [];\n\n let i = 0;\n let part;\n while (i < format.length) {\n if (!part || part[0] !== format[i]) {\n if (part) result.push(part);\n part = format[i];\n } else {\n part += format[i];\n }\n i += 1;\n }\n if (part) result.push(part);\n\n return result;\n};\n\nconst masks = {\n m: { length: [1, 2], regexp: /^[1-9]$|^1[0-2]$/ },\n mm: { length: [1, 2], regexp: /^[0-1]$|^0[1-9]$|^1[0-2]$/ },\n d: { length: [1, 2], regexp: /^[1-9]$|^[1-2][0-9]$|^3[0-1]$/ },\n dd: {\n length: [1, 2],\n regexp: /^[0-3]$|^0[1-9]$|^[1-2][0-9]$|^3[0-1]$/,\n },\n yy: { length: [1, 2], regexp: /^[0-9]{1,2}$/ },\n yyyy: { length: [1, 4], regexp: /^[0-9]{1,4}$/ },\n};\n\nexport const schemaToMask = (schema) => {\n if (!schema) return undefined;\n return schema.map((part) => {\n const lower = part.toLowerCase();\n const char = lower[0];\n if (char === 'm' || char === 'd' || char === 'y')\n return { placeholder: part, ...masks[lower] };\n return { fixed: part };\n });\n};\n\n// convert value into text representation using the schema\nexport const valueToText = (value, schema) => {\n let text = '';\n // when user initializes dates as empty array, we want to still\n // show the placeholder text\n if (!value || (Array.isArray(value) && !value.length)) return text;\n\n const dates = (Array.isArray(value) ? value : [value]).map(\n (v) => new Date(v),\n );\n\n let dateIndex = 0;\n let parts = {};\n schema.every((part) => {\n const char = part[0].toLowerCase();\n // advance dateIndex if we already have this part\n while (\n dateIndex < dates.length &&\n (Number.isNaN(dates[dateIndex].date) ||\n ((char === 'm' || char === 'd' || char === 'y') && parts[part]))\n ) {\n dateIndex += 1;\n parts = {};\n }\n const date = dates[dateIndex];\n\n if (date && part === 'm') {\n text += date.getMonth() + 1;\n parts[part] = true;\n } else if (date && part === 'mm') {\n text += `0${date.getMonth() + 1}`.slice(-2);\n parts[part] = true;\n } else if (date && part === 'd') {\n text += date.getDate();\n parts[part] = true;\n } else if (date && part === 'dd') {\n text += `0${date.getDate()}`.slice(-2);\n parts[part] = true;\n } else if (date && part === 'yy') {\n text += date.getFullYear().toString().slice(-2);\n parts[part] = true;\n } else if (date && part === 'yyyy') {\n text += date.getFullYear();\n parts[part] = true;\n } else if (\n !date &&\n (part[0] === 'm' || part[0] === 'd' || part[0] === 'y')\n ) {\n return false;\n } else {\n text += part;\n }\n return true;\n });\n\n return text;\n};\n\nconst charCodeZero = '0'.charCodeAt(0);\nconst charCodeNine = '9'.charCodeAt(0);\n\nconst pullDigits = (text, index) => {\n let end = index;\n while (\n text.charCodeAt(end) >= charCodeZero &&\n text.charCodeAt(end) <= charCodeNine\n )\n end += 1;\n return text.slice(index, end);\n};\n\nexport const textToValue = (text, schema, range, timestamp, normalize) => {\n if (!text) return range ? [] : undefined;\n\n let result;\n\n const addDate = (parts) => {\n const leapYear =\n (parts.y % 4 === 0 && parts.y % 100 !== 0) || parts.y % 400 === 0;\n\n // Do a little sanity checking on the parts first.\n // If not valid, leave as is.\n if (\n !parts.m ||\n !parts.d ||\n !parts.y ||\n parts.y.length < 4 ||\n parts.m.length > 2 ||\n parts.d.length > 2 ||\n parts.m > 12 ||\n parts.d > 31 ||\n ((parts.m === `02` || parts.m === `2`) && parts.d > (leapYear ? 29 : 28))\n )\n return parts;\n\n let date = new Date(parts.y, parts.m - 1, parts.d).toISOString();\n // match time and timezone of any supplied valueProp\n if (timestamp)\n date = `${\n formatToLocalYYYYMMDD(date, normalize).split('T')[0]\n }T${timestamp}`;\n else date = `${formatToLocalYYYYMMDD(date, normalize).split('T')[0]}`;\n\n if (!range) {\n if (!result) result = date;\n } else {\n if (!result) result = [];\n result.push(date);\n }\n // we've consumed these parts, return an empty object in case we need\n // to start building up another one for a range\n return {};\n };\n\n let parts = {};\n let index = 0;\n schema.forEach((part) => {\n if (index < text.length) {\n const lower = part.toLowerCase();\n const char = lower[0];\n if (parts[char] !== undefined) parts = addDate(parts);\n\n if (char === 'm') {\n parts.m = pullDigits(text, index);\n index += parts.m.length;\n } else if (char === 'd') {\n parts.d = pullDigits(text, index);\n // when format is something like yyyy/mm/dd,\n // '0' as incomplete day can cause date to be\n // prematurely calculated.\n // ex: 2022/01/0 would reutrn 2021/12/31 in addDate()\n if (parts.d === '0') delete parts.d;\n index += parts?.d?.length || 0;\n } else if (char === 'y') {\n parts.y = pullDigits(text, index);\n index += parts.y.length;\n if (lower === 'yy' && parts.y.length === 2) {\n // convert to full year, pivot at 69 based on POSIX strptime()\n parts.y = `${parts.y < 69 ? 20 : 19}${parts.y}`;\n }\n } else if (text.slice(index, index + part.length) === part) {\n index += part.length;\n } else {\n // syntax error\n index = text.length;\n result = undefined;\n }\n }\n });\n parts = addDate(parts);\n\n if (!result) return range ? [] : undefined;\n return result;\n};\n\nexport const valuesAreEqual = (value1, value2) =>\n (Array.isArray(value1) &&\n Array.isArray(value2) &&\n value1.every((d1, i) => d1 === value2[i])) ||\n value1 === value2;\n","import PropTypes from 'prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n buttonProps: PropTypes.shape({}),\n calendarProps: PropTypes.shape({}),\n defaultValue: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.arrayOf(PropTypes.string),\n ]),\n dropProps: PropTypes.shape({}),\n format: PropTypes.string,\n icon: PropTypes.element,\n id: PropTypes.string,\n inline: PropTypes.bool,\n inputProps: PropTypes.shape({}),\n name: PropTypes.string,\n onChange: PropTypes.func,\n value: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.arrayOf(PropTypes.string),\n ]),\n size: PropTypes.oneOfType([\n PropTypes.oneOf([\n 'xsmall',\n 'small',\n 'medium',\n 'large',\n 'xlarge',\n 'xxlarge',\n '2xl',\n '3xl',\n '4xl',\n '5xl',\n '6xl',\n ]),\n PropTypes.string,\n ]),\n };\n}\nexport const DateInputPropTypes = PropType;\n","export { Diagram } from './Diagram';\n","import React, {\n forwardRef,\n useCallback,\n useContext,\n useEffect,\n useRef,\n useState,\n} from 'react';\nimport { ThemeContext } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\nimport { normalizeColor, parseMetricToNum, useForwardedRef } from '../../utils';\n\nimport { StyledDiagram } from './StyledDiagram';\nimport { DiagramPropTypes } from './propTypes';\n\nconst computeMidPoint = (fromPoint, toPoint) => [\n fromPoint[0] > toPoint[0]\n ? toPoint[0] + (fromPoint[0] - toPoint[0]) / 2\n : fromPoint[0] + (toPoint[0] - fromPoint[0]) / 2,\n fromPoint[1] > toPoint[1]\n ? toPoint[1] + (fromPoint[1] - toPoint[1]) / 2\n : fromPoint[1] + (toPoint[1] - fromPoint[1]) / 2,\n];\n\nconst COMMANDS = {\n curved: (fromPoint, toPoint, offset, anchor) => {\n const midPoint = computeMidPoint(fromPoint, toPoint);\n let cmds = `M ${fromPoint[0] + offset},${fromPoint[1] + offset} `;\n if (anchor === 'horizontal') {\n cmds +=\n `Q ${midPoint[0] + offset},${fromPoint[1] + offset} ` +\n `${midPoint[0] + offset},${midPoint[1] + offset} `;\n } else {\n cmds +=\n `Q ${fromPoint[0] + offset},${midPoint[1] + offset} ` +\n `${midPoint[0] + offset},${midPoint[1] + offset} `;\n }\n cmds += `T ${toPoint[0] + offset},${toPoint[1] + offset}`;\n return cmds;\n },\n direct: (fromPoint, toPoint, offset) =>\n `M ${fromPoint[0] + offset},${fromPoint[1] + offset} ` +\n `L ${toPoint[0] + offset},${toPoint[1] + offset}`,\n rectilinear: (fromPoint, toPoint, offset, anchor) => {\n const midPoint = computeMidPoint(fromPoint, toPoint);\n let cmds = `M ${fromPoint[0] + offset},${fromPoint[1] + offset} `;\n if (anchor === 'horizontal') {\n cmds +=\n `L ${midPoint[0] + offset},${fromPoint[1] + offset} ` +\n `L ${midPoint[0] + offset},${toPoint[1] + offset} `;\n } else {\n cmds +=\n `L ${fromPoint[0] + offset},${midPoint[1] + offset} ` +\n `L ${toPoint[0] + offset},${midPoint[1] + offset} `;\n }\n cmds += `L ${toPoint[0] + offset},${toPoint[1] + offset}`;\n return cmds;\n },\n};\n\nconst findTarget = (target) => {\n if (typeof target === 'string') {\n return document.getElementById(target);\n }\n return target;\n};\n\nconst Diagram = forwardRef(({ connections, ...rest }, ref) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n const [dimensions, setDimensions] = useState({ width: 0, height: 0 });\n const [connectionPoints, setConnectionPoints] = useState();\n const svgRef = useForwardedRef(ref);\n\n useEffect(() => {\n setConnectionPoints(undefined);\n }, [connections]);\n\n const onResize = useCallback(() => {\n const svg = svgRef.current;\n\n if (svg) {\n const rect = svg.getBoundingClientRect();\n if (\n rect.width !== dimensions.width ||\n rect.height !== dimensions.height\n ) {\n setDimensions({\n width: rect.width,\n height: rect.height,\n });\n setConnectionPoints(undefined);\n }\n }\n }, [dimensions.width, dimensions.height, svgRef]);\n\n // Ref that stores resize handler\n const savedOnResize = useRef();\n\n // Update resize ref value if onResize changes.\n // This allows our effect below to always get latest handler\n useEffect(() => {\n savedOnResize.current = onResize;\n }, [onResize]);\n\n useEffect(() => {\n const onResizeHandler = (event) => savedOnResize.current(event);\n onResizeHandler();\n\n window.addEventListener('resize', onResizeHandler);\n\n return () => {\n window.removeEventListener('resize', onResizeHandler);\n };\n }, []);\n\n const placeConnections = useCallback(() => {\n const containerRect = svgRef.current.getBoundingClientRect();\n const updatedConnectionPoints = connections.map(\n ({ anchor, fromTarget, toTarget }) => {\n let points;\n const fromElement = findTarget(fromTarget);\n const toElement = findTarget(toTarget);\n if (!fromElement) {\n console.warn(`Diagram cannot find ${fromTarget}`);\n }\n if (!toElement) {\n console.warn(`Diagram cannot find ${toTarget}`);\n }\n\n if (fromElement && toElement) {\n const fromRect = fromElement.getBoundingClientRect();\n const toRect = toElement.getBoundingClientRect();\n // There is no x and y when unit testing.\n const fromPoint = [\n fromRect.left - containerRect.left || 0,\n fromRect.top - containerRect.top || 0,\n ];\n const toPoint = [\n toRect.left - containerRect.left || 0,\n toRect.top - containerRect.top || 0,\n ];\n if (anchor === 'vertical') {\n fromPoint[0] += fromRect.width / 2;\n toPoint[0] += toRect.width / 2;\n if (fromRect.top < toRect.top) {\n fromPoint[1] += fromRect.height;\n } else {\n toPoint[1] += toRect.height;\n }\n } else if (anchor === 'horizontal') {\n fromPoint[1] += fromRect.height / 2;\n toPoint[1] += toRect.height / 2;\n if (fromRect.left < toRect.left) {\n fromPoint[0] += fromRect.width;\n } else {\n toPoint[0] += toRect.width;\n }\n } else {\n // center\n fromPoint[0] += fromRect.width / 2;\n fromPoint[1] += fromRect.height / 2;\n toPoint[0] += toRect.width / 2;\n toPoint[1] += toRect.height / 2;\n }\n points = [fromPoint, toPoint];\n }\n\n return points;\n },\n );\n setConnectionPoints(updatedConnectionPoints);\n }, [connections, svgRef]);\n\n useEffect(() => {\n if (!connectionPoints) {\n placeConnections();\n }\n }, [connectionPoints, placeConnections]);\n\n let paths;\n if (connectionPoints) {\n paths = connections.map(\n (\n {\n anchor,\n animation,\n color,\n offset,\n round,\n thickness,\n type,\n ...connectionRest\n },\n index,\n ) => {\n let path;\n const cleanedRest = { ...connectionRest };\n delete cleanedRest.fromTarget;\n delete cleanedRest.toTarget;\n const points = connectionPoints[index];\n\n if (points) {\n const offsetWidth = offset\n ? parseMetricToNum(theme.global.edgeSize[offset])\n : 0;\n const d = COMMANDS[type || 'curved'](\n points[0],\n points[1],\n offsetWidth,\n anchor,\n );\n const strokeWidth = thickness\n ? parseMetricToNum(theme.global.edgeSize[thickness] || thickness)\n : 1;\n let colorName =\n color || (theme.diagram.line && theme.diagram.line.color);\n if (!colorName) {\n const colors = Object.keys(theme.global.colors).filter((n) =>\n n.match(/^graph-[0-9]$/),\n );\n colorName = colors[index % colors.length];\n }\n\n path = (\n \n );\n }\n return path;\n },\n );\n }\n\n return (\n \n {paths}\n \n );\n});\n\nDiagram.displayName = 'Diagram';\nDiagram.defaultProps = { connections: [] };\nDiagram.propTypes = DiagramPropTypes;\n\nexport { Diagram };\n","import styled, { css } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\nimport { animationObjectStyle } from '../../utils/animation';\n\nconst animationItemStyle = (animationType, theme) => {\n if (typeof animationType === 'string') {\n return animationObjectStyle({ type: animationType }, theme, theme.diagram);\n }\n if (typeof animationType === 'object') {\n return animationObjectStyle(animationType, theme, theme.diagram);\n }\n if (typeof animationType === 'boolean') {\n return animationObjectStyle({ type: 'draw' }, theme, theme.diagram);\n }\n return '';\n};\n\nconst animationStyle = (props) => {\n const animationCopy = props.animation;\n if (typeof props.animation === 'object') {\n animationCopy.type = animationCopy.type || 'draw';\n }\n const animationType = animationCopy.type || animationCopy;\n\n if (animationType === 'draw' || animationType === true) {\n return css`\n path {\n stroke-dasharray: 500;\n stroke-dashoffset: 500;\n animation: ${animationItemStyle(animationCopy, props.theme)};\n }\n `;\n }\n return css`\n animation: ${animationItemStyle(animationCopy, props.theme)};\n `;\n};\n\nconst connectionStyle = (connection, index, theme) => {\n let { type } = connection.props.animation;\n if (typeof connection.props.animation === 'object') {\n type = type || 'draw';\n }\n const animationType = type || connection.props.animation;\n\n return css`\n path:nth-child(${index + 1}) {\n stroke-dasharray: ${animationType === 'draw' || animationType === true\n ? 500\n : 0};\n stroke-dashoffset: ${animationType === 'draw' || animationType === true\n ? 500\n : 0};\n animation: ${animationItemStyle(connection.props.animation, theme)};\n }\n `;\n};\n\nconst availableAnimations = [true, 'draw', 'pulse'];\n\nconst StyledDiagram = styled.svg`\n max-width: 100%;\n width: 100%;\n height: 100%;\n\n /* connection's animation comes first to override Diagram's animations */\n ${(props) =>\n props.connections &&\n props.connections.map((connection, index) => {\n if (connection !== undefined && connection.props.animation) {\n const { animation } = connection.props;\n // setting type to 'draw' if user doesn't specify a type\n if (typeof animation === 'object') {\n // copying 'connection' to avoid linter error\n const connectionCopy = connection;\n connectionCopy.props.animation.type = animation.type || 'draw';\n return availableAnimations.includes(animation.type || animation)\n ? connectionStyle(connectionCopy, index, props.theme)\n : '';\n }\n return connectionStyle(connection, index, props.theme);\n }\n return '';\n })}\n\n ${(props) =>\n props.animation &&\n (availableAnimations.includes(props.animation.type || props.animation) ||\n Object.keys(props.animation).length !== 0)\n ? animationStyle(props)\n : ''}\n ${(props) => props.theme.diagram && props.theme.diagram.extend}\n`;\n\nStyledDiagram.defaultProps = {};\nObject.setPrototypeOf(StyledDiagram.defaultProps, defaultProps);\n\nexport { StyledDiagram };\n","import PropTypes from 'prop-types';\nimport { colorPropType } from '../../utils/general-prop-types';\n\nconst animationPropType = PropTypes.oneOfType([\n PropTypes.bool,\n PropTypes.oneOf(['pulse', 'draw']),\n PropTypes.shape({\n type: PropTypes.oneOf(['pulse', 'draw']),\n delay: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n duration: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n size: PropTypes.oneOf(['xsmall', 'small', 'medium', 'large', 'xlarge']),\n }),\n]);\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n animation: animationPropType,\n connections: PropTypes.arrayOf(\n PropTypes.shape({\n anchor: PropTypes.oneOf(['center', 'vertical', 'horizontal']),\n animation: animationPropType,\n color: colorPropType,\n fromTarget: PropTypes.oneOfType([PropTypes.string, PropTypes.object])\n .isRequired,\n label: PropTypes.string, // for accessibility\n offset: PropTypes.oneOfType([\n PropTypes.oneOf(['xsmall', 'small', 'medium', 'large']),\n PropTypes.string,\n ]),\n thickness: PropTypes.oneOfType([\n PropTypes.oneOf([\n 'hair',\n 'xxsmall',\n 'xsmall',\n 'small',\n 'medium',\n 'large',\n ]),\n PropTypes.string,\n ]),\n toTarget: PropTypes.oneOfType([PropTypes.string, PropTypes.object])\n .isRequired,\n type: PropTypes.oneOf(['direct', 'curved', 'rectilinear']),\n }),\n ).isRequired,\n };\n}\nexport const DiagramPropTypes = PropType;\n","export { Distribution } from './Distribution';\n","import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { Box } from '../Box';\nimport { Text } from '../Text';\nimport { DistributionPropTypes } from './propTypes';\n\nconst Value = ({ basis, children }) => (\n \n {children}\n \n);\n\nValue.propTypes = {\n basis: PropTypes.string.isRequired,\n children: PropTypes.node.isRequired,\n};\n\nconst Distribution = ({\n basis,\n children,\n direction,\n fill,\n gap,\n values,\n ...rest\n}) => {\n if (values.length === 1) {\n const value = values[0];\n return (\n \n {children(value)}\n \n );\n }\n if (values.length > 1) {\n const reducer = (accumulator, { value }) => accumulator + (value || 0);\n const total = values\n .filter((v) => Object.prototype.hasOwnProperty.call(v, 'value'))\n .reduce(reducer, 0);\n\n // figure out how many of the values area needed to represent half of the\n // total\n let subTotal = 0;\n let subIndex;\n values.some((v, index) => {\n subTotal += Object.prototype.hasOwnProperty.call(v, 'value')\n ? v.value\n : 0;\n if (subTotal >= total * 0.4) {\n subIndex = index + 1;\n return true;\n }\n return false;\n });\n\n if (subIndex === values.length) {\n const value = values[0];\n return (\n \n {children(value)}\n \n );\n }\n\n let childBasis;\n if (subTotal === 0) {\n childBasis = ['0px', '0px'];\n } else if (subTotal === total) {\n childBasis = ['full', '0px'];\n } else if (subTotal > total * 0.7) {\n childBasis = ['3/4', '1/4'];\n } else if (subTotal > total * 0.6) {\n childBasis = ['2/3', '1/3'];\n } else {\n childBasis = ['1/2', '1/2'];\n }\n\n return (\n \n \n {children}\n \n \n {children}\n \n \n );\n }\n return null;\n};\n\nDistribution.defaultProps = {\n basis: undefined,\n children: (value) => (\n \n {/* eslint-disable-next-line react/destructuring-assignment */}\n {value.value}\n \n ),\n direction: 'row',\n gap: 'xsmall',\n values: [],\n};\n\nDistribution.propTypes = DistributionPropTypes;\n\nexport { Distribution };\n","import PropTypes from 'prop-types';\nimport { genericProps } from '../../utils/general-prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n ...genericProps,\n basis: PropTypes.oneOfType([\n PropTypes.oneOf([\n 'xxsmall',\n 'xsmall',\n 'small',\n 'medium',\n 'large',\n 'xlarge',\n 'xxlarge',\n 'full',\n '1/2',\n '1/3',\n '2/3',\n '1/4',\n '2/4',\n '3/4',\n 'auto',\n ]),\n PropTypes.string,\n ]),\n children: PropTypes.func,\n fill: PropTypes.bool,\n gap: PropTypes.oneOfType([\n PropTypes.oneOf([\n 'none',\n 'xxsmall',\n 'xsmall',\n 'small',\n 'medium',\n 'large',\n 'xlarge',\n ]),\n PropTypes.string,\n ]),\n values: PropTypes.arrayOf(\n PropTypes.shape({\n value: PropTypes.number,\n }),\n ).isRequired,\n };\n}\nexport const DistributionPropTypes = PropType;\n","export { FileInput } from './FileInput';\n","import React, { forwardRef, useContext, useRef, useState } from 'react';\nimport styled, { ThemeContext } from 'styled-components';\nimport { CircleAlert } from 'grommet-icons/icons/CircleAlert';\nimport { MessageContext } from '../../contexts/MessageContext';\n\nimport { defaultProps } from '../../default-props';\n\nimport { disabledStyle, parseMetricToNum, useForwardedRef } from '../../utils';\n\nimport { Anchor } from '../Anchor';\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { FormContext } from '../Form/FormContext';\nimport { Keyboard } from '../Keyboard';\nimport { Text } from '../Text';\n\nimport { StyledFileInput } from './StyledFileInput';\nimport { FileInputPropTypes } from './propTypes';\n\nconst formatBytes = (size) => {\n const units = ['B', 'KB', 'MB', 'GB', 'TB'];\n const factor = 1024;\n let index = 0;\n let num = size;\n while (num >= factor && index < units.length - 1) {\n num /= factor;\n index += 1;\n }\n return `${num.toFixed(1)} ${units[index]}`;\n};\n\n// We want the interaction of but none of its styling.\n// So, we put what we want to show underneath and\n// position the on top with an opacity of zero.\n// If there are any files selected, we need to show the buttons to remove them.\n// So, we offset the from the right by the appropriate width.\n// We don't use Stack because of how we need to control the positioning.\n\nconst ContentsBox = styled(Box)`\n position: relative;\n ${(props) => props.disabled && disabledStyle()}\n ${(props) => props.theme.fileInput && props.theme.fileInput.extend};\n ${(props) =>\n props.hover &&\n props.theme.fileInput &&\n props.theme.fileInput.hover &&\n props.theme.fileInput.hover.extend};\n ${(props) =>\n props.dragOver &&\n props.theme.fileInput &&\n props.theme.fileInput.dragOver &&\n props.theme.fileInput.dragOver.extend};\n`;\n\nconst Label = styled(Text)`\n ${(props) =>\n props.theme.fileInput &&\n props.theme.fileInput.label &&\n props.theme.fileInput.label.extend};\n`;\n\nconst Message = styled(Text)`\n ${(props) =>\n props.theme.fileInput &&\n props.theme.fileInput.message &&\n props.theme.fileInput.message.extend};\n`;\n\nconst defaultPendingRemoval = {\n event: undefined,\n index: undefined,\n};\n\nconst FileInput = forwardRef(\n (\n {\n a11yTitle,\n background,\n border,\n confirmRemove,\n disabled,\n id,\n plain,\n renderFile,\n maxSize,\n messages,\n margin,\n multiple,\n name,\n onChange,\n pad,\n value: valueProp,\n ...rest\n },\n ref,\n ) => {\n const theme = useContext(ThemeContext);\n const { format } = useContext(MessageContext);\n const formContext = useContext(FormContext);\n const [hover, setHover] = React.useState();\n const [dragOver, setDragOver] = React.useState();\n const [showRemoveConfirmation, setShowRemoveConfirmation] = useState(false);\n const [pendingRemoval, setPendingRemoval] = useState(defaultPendingRemoval);\n const aggregateThreshold = (multiple && multiple.aggregateThreshold) || 10;\n const max = multiple?.max;\n const inputRef = useForwardedRef(ref);\n const controlRef = useRef();\n const removeRef = useRef();\n const ConfirmRemove = confirmRemove;\n const RemoveIcon = theme.fileInput.icons.remove;\n\n const [files, setFiles] = formContext.useFormInput({\n name,\n value: valueProp,\n initialValue: [],\n validate: [\n maxSize\n ? () => {\n const fileList = [...files];\n let message = '';\n const numOfInvalidFiles = fileList.filter(\n ({ size }) => size > maxSize,\n ).length;\n if (numOfInvalidFiles) {\n let messageId = 'fileInput.maxSizeSingle';\n if (multiple) {\n messageId = `fileInput.maxSizeMultiple.${\n numOfInvalidFiles === 1 ? 'singular' : 'plural'\n }`;\n }\n message = format({\n id: messageId,\n messages,\n values: {\n maxSize: formatBytes(maxSize),\n numOfFiles: numOfInvalidFiles,\n },\n });\n }\n return message;\n }\n : '',\n max\n ? () => {\n const fileList = [...files];\n let message = '';\n if (fileList.length > max) {\n message = format({\n id: 'fileInput.maxFile',\n messages,\n values: { max },\n });\n }\n return message;\n }\n : '',\n ],\n });\n\n const mergeTheme = (propertyName, defaultKey) => {\n let result = {};\n const themeProp = theme.fileInput[propertyName];\n if (themeProp)\n if (typeof themeProp !== 'object')\n if (defaultKey) result[defaultKey] = themeProp;\n else result = themeProp;\n else result = { ...themeProp };\n const hoverThemeProp = theme.fileInput.hover[propertyName];\n if (hover && hoverThemeProp)\n if (typeof hoverThemeProp !== 'object')\n if (defaultKey) result[defaultKey] = hoverThemeProp;\n else result = hoverThemeProp;\n else result = { ...result, ...hoverThemeProp };\n const dragOverThemeProp = theme.fileInput.dragOver[propertyName];\n if (dragOver && dragOverThemeProp)\n if (typeof dragOverThemeProp !== 'object')\n if (defaultKey) result[defaultKey] = dragOverThemeProp;\n else result = dragOverThemeProp;\n else result = { ...result, ...dragOverThemeProp };\n return typeof result === 'object' && Object.keys(result).length === 0\n ? undefined\n : result;\n };\n\n let rightPad;\n if (mergeTheme('pad')) {\n const { horizontal, right } = mergeTheme('pad');\n if (right) {\n rightPad = theme.global.edgeSize[right] || right;\n } else if (horizontal) {\n rightPad = theme.global.edgeSize[horizontal] || horizontal;\n }\n }\n\n // rightPad needs to be included in the rightOffset\n // otherwise input may cover the RemoveButton, making it\n // unreachable by mouse click.\n // If browse anchor or button is greater than remove button then\n // rightoffset will take the larger width\n let rightOffset;\n if (removeRef.current && controlRef.current) {\n const rightOffsetBrowse =\n controlRef.current.getBoundingClientRect().width;\n const rightOffsetRemove = removeRef.current.getBoundingClientRect().width;\n if (rightPad && typeof rightPad === 'string')\n rightOffset = rightOffsetRemove + parseMetricToNum(rightPad);\n if (files.length === 1 || files.length > aggregateThreshold) {\n rightOffset =\n rightOffsetBrowse +\n rightOffsetRemove +\n parseMetricToNum(theme.global.edgeSize.small) * 2;\n } else if (rightOffsetBrowse > rightOffsetRemove) {\n rightOffset =\n rightOffsetBrowse + parseMetricToNum(theme.global.edgeSize.small) * 2;\n } else rightOffset = rightOffsetRemove;\n } else if (!files.length && controlRef.current) {\n rightOffset =\n controlRef.current.getBoundingClientRect().width +\n parseMetricToNum(theme.global.edgeSize.small) * 2;\n }\n\n // Show the number of files when more than one\n\n let message;\n if (!files.length) {\n message = format({\n id: multiple ? 'fileInput.dropPromptMultiple' : 'fileInput.dropPrompt',\n messages,\n });\n } else message = `${files.length} items`;\n\n const removeFile = (event, index) => {\n event.stopPropagation();\n let nextFiles;\n if (index === 'all') {\n nextFiles = [];\n } else {\n nextFiles = [...files];\n nextFiles.splice(index, 1);\n }\n setFiles(nextFiles);\n if (onChange) onChange(event, { files: nextFiles });\n if (nextFiles.length === 0) inputRef.current.value = '';\n inputRef.current.focus();\n };\n\n return (\n <>\n setHover(true)}\n onMouseOut={disabled ? undefined : () => setHover(false)}\n dragOver={dragOver}\n >\n {(!files.length || files.length > 1) && (\n \n {files.length <= aggregateThreshold && (\n <>\n {message}\n {\n if (controlRef.current === event.target)\n inputRef.current.click();\n }}\n onEnter={(event) => {\n if (controlRef.current === event.target)\n inputRef.current.click();\n }}\n >\n {theme.fileInput.button ? (\n {\n inputRef.current.click();\n inputRef.current.focus();\n }}\n />\n ) : (\n {\n inputRef.current.click();\n inputRef.current.focus();\n }}\n label={format({\n id: 'fileInput.browse',\n messages,\n })}\n />\n )}\n \n \n )}\n \n )}\n {files.length > aggregateThreshold && (\n \n \n \n }\n hoverIndicator\n onClick={(event) => {\n if (confirmRemove) {\n event.persist(); // necessary for when React < v17\n setPendingRemoval({ event, index: 'all' });\n setShowRemoveConfirmation(true);\n } else removeFile(event, 'all');\n }}\n />\n {\n if (controlRef.current === event.target)\n inputRef.current.click();\n }}\n onEnter={(event) => {\n if (controlRef.current === event.target)\n inputRef.current.click();\n }}\n >\n {theme.fileInput.button ? (\n {\n inputRef.current.click();\n inputRef.current.focus();\n }}\n />\n ) : (\n {\n inputRef.current.click();\n inputRef.current.focus();\n }}\n label={format({\n id: 'fileInput.browse',\n messages,\n })}\n />\n )}\n \n \n \n )}\n {files.length > 0 &&\n files.length <= aggregateThreshold &&\n files.map((file, index) => (\n \n {renderFile ? (\n renderFile(file)\n ) : (\n \n {((maxSize && file.size > maxSize) ||\n (max && index >= max)) && }\n \n {file.name}\n \n \n )}\n \n }\n hoverIndicator\n onClick={(event) => {\n if (confirmRemove) {\n event.persist(); // necessary for when React < v17\n setPendingRemoval({ event, index });\n setShowRemoveConfirmation(true);\n } else removeFile(event, index);\n }}\n />\n {files.length === 1 && (\n {\n if (controlRef.current === event.target)\n inputRef.current.click();\n }}\n onEnter={(event) => {\n if (controlRef.current === event.target)\n inputRef.current.click();\n }}\n >\n {theme.fileInput.button ? (\n {\n inputRef.current.click();\n inputRef.current.focus();\n }}\n />\n ) : (\n {\n inputRef.current.click();\n inputRef.current.focus();\n }}\n label={format({\n id: 'fileInput.browse',\n messages,\n })}\n />\n )}\n \n )}\n \n \n ))}\n setDragOver(true)}\n onDragLeave={() => setDragOver(false)}\n onChange={(event) => {\n event.persist();\n const fileList = event.target.files;\n const nextFiles = multiple ? [...files] : [];\n for (let i = 0; i < fileList.length; i += 1) {\n // avoid duplicates\n const existing =\n nextFiles.filter(\n (file) =>\n file.name === fileList[i].name &&\n file.size === fileList[i].size,\n ).length > 0;\n if (!existing) {\n nextFiles.push(fileList[i]);\n }\n }\n setFiles(nextFiles);\n setDragOver(false);\n if (onChange) onChange(event, { files: nextFiles });\n }}\n />\n \n {showRemoveConfirmation && (\n {\n removeFile(pendingRemoval.event, pendingRemoval.index);\n setPendingRemoval(defaultPendingRemoval);\n setShowRemoveConfirmation(false);\n }}\n onCancel={() => setShowRemoveConfirmation(false)}\n />\n )}\n \n );\n },\n);\n\nFileInput.defaultProps = {};\n\nObject.setPrototypeOf(FileInput.defaultProps, defaultProps);\n\nFileInput.displayName = 'FileInput';\nFileInput.propTypes = FileInputPropTypes;\n\nexport { FileInput };\n","\"use strict\";\n\nexports.__esModule = true;\nexports.CircleAlert = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && 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; }\n\nfunction _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); }\n\nvar CircleAlert = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {\n return /*#__PURE__*/_react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n ref: ref,\n viewBox: \"0 0 24 24\",\n a11yTitle: \"CircleAlert\"\n }, props), /*#__PURE__*/_react[\"default\"].createElement(\"path\", {\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"M12 14V6m0 12v-2m0-14C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2z\"\n }));\n});\nexports.CircleAlert = CircleAlert;\nCircleAlert.displayName = 'CircleAlert';","import styled from 'styled-components';\n\nimport { inputStyle } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst StyledFileInput = styled.input`\n position: absolute;\n height: 100%;\n width: 100%;\n ${inputStyle}\n opacity: 0;\n border: none;\n ${props => !props.disabled && 'cursor: pointer;'}\n ${props =>\n props.rightOffset &&\n `\n width: calc(100% - ${props.rightOffset}px);\n right: ${props.rightOffset}px;\n `}\n\n &::-moz-focus-inner {\n border: none;\n outline: none;\n }\n`;\n\nStyledFileInput.defaultProps = {};\nObject.setPrototypeOf(StyledFileInput.defaultProps, defaultProps);\n\nexport { StyledFileInput };\n","import PropTypes from 'prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n confirmRemove: PropTypes.func,\n disabled: PropTypes.bool,\n id: PropTypes.string,\n messages: PropTypes.shape({\n browse: PropTypes.string,\n dropPrompt: PropTypes.string,\n dropPromptMultiple: PropTypes.string,\n files: PropTypes.string,\n remove: PropTypes.string,\n removeAll: PropTypes.string,\n }),\n multiple: PropTypes.oneOfType([\n PropTypes.bool,\n PropTypes.shape({\n aggregateThreshold: PropTypes.number,\n }),\n ]),\n name: PropTypes.string,\n onChange: PropTypes.func,\n renderFile: PropTypes.func,\n };\n}\nexport const FileInputPropTypes = PropType;\n","export { FormField } from './FormField';\n","import React, {\n Children,\n cloneElement,\n forwardRef,\n useContext,\n useState,\n} from 'react';\nimport styled, { ThemeContext } from 'styled-components';\nimport { defaultProps } from '../../default-props';\n\nimport { containsFocus, shouldKeepFocus } from '../../utils/DOM';\nimport { focusStyle } from '../../utils/styles';\nimport { parseMetricToNum } from '../../utils/mixins';\nimport { useForwardedRef } from '../../utils/refs';\nimport { Box } from '../Box';\nimport { CheckBox } from '../CheckBox';\nimport { CheckBoxGroup } from '../CheckBoxGroup';\nimport { RadioButtonGroup } from '../RadioButtonGroup';\nimport { Text } from '../Text';\nimport { TextInput } from '../TextInput';\nimport { FormContext } from '../Form/FormContext';\nimport { FormFieldPropTypes } from './propTypes';\n\nconst grommetInputNames = [\n 'CheckBox',\n 'CheckBoxGroup',\n 'TextInput',\n 'Select',\n 'MaskedInput',\n 'TextArea',\n 'DateInput',\n 'FileInput',\n 'RadioButtonGroup',\n 'RangeInput',\n];\nconst grommetInputPadNames = [\n 'CheckBox',\n 'CheckBoxGroup',\n 'RadioButtonGroup',\n 'RangeInput',\n];\n\nconst isGrommetInput = (comp) =>\n comp &&\n (grommetInputNames.indexOf(comp.displayName) !== -1 ||\n grommetInputPadNames.indexOf(comp.displayName) !== -1);\n\nconst FormFieldBox = styled(Box)`\n ${(props) => props.focus && focusStyle({ justBorder: true })}\n ${(props) => props.theme.formField && props.theme.formField.extend}\n`;\n\nconst FormFieldContentBox = styled(Box)`\n ${(props) => props.focus && focusStyle({ justBorder: true })}\n`;\n\nconst StyledMessageContainer = styled(Box)`\n ${(props) =>\n props.messageType &&\n props.theme.formField[props.messageType].container &&\n props.theme.formField[props.messageType].container.extend}\n`;\n\nconst RequiredText = styled(Text)`\n color: inherit;\n font-weight: inherit;\n line-height: inherit;\n`;\n\nconst Message = ({ error, info, message, type, ...rest }) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n\n if (message) {\n let icon;\n let containerProps;\n\n if (type) {\n icon = theme.formField[type] && theme.formField[type].icon;\n containerProps = theme.formField[type] && theme.formField[type].container;\n }\n\n let messageContent;\n if (typeof message === 'string')\n messageContent = {message};\n else messageContent = {message};\n\n return icon || containerProps ? (\n \n {icon && {icon}}\n {messageContent}\n \n ) : (\n messageContent\n );\n }\n return null;\n};\n\nconst Input = ({ component, disabled, invalid, name, onChange, ...rest }) => {\n const formContext = useContext(FormContext);\n const [value, setValue] = formContext.useFormInput({\n name,\n value: rest.value,\n });\n const InputComponent = component || TextInput;\n // Grommet input components already check for FormContext\n // and, using their `name`, end up calling the useFormInput.setValue()\n // already. For custom components, we expect they will call\n // this onChange() and we'll call setValue() here, primarily\n // for backwards compatibility.\n const extraProps = isGrommetInput(InputComponent)\n ? { focusIndicator: false, onChange, plain: true }\n : {\n value,\n onChange: (event) => {\n setValue(\n event.value !== undefined ? event.value : event.target.value,\n );\n if (onChange) onChange(event);\n },\n };\n return (\n \n );\n};\n\nconst debounce = (func, wait) => {\n let timeout;\n return function executedFunction(...args) {\n const later = () => {\n timeout = null;\n func(...args);\n };\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n };\n};\n\nconst FormField = forwardRef(\n (\n {\n children,\n className,\n component,\n contentProps,\n disabled, // pass through in renderInput()\n error: errorProp,\n help,\n htmlFor,\n info: infoProp,\n label,\n margin,\n name, // pass through in renderInput()\n onBlur,\n onChange,\n onFocus,\n pad,\n required,\n style,\n validate,\n ...rest\n },\n ref,\n ) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n const formContext = useContext(FormContext);\n const {\n error,\n info,\n inForm,\n onBlur: contextOnBlur,\n onChange: contextOnChange,\n } = formContext.useFormField({\n disabled,\n error: errorProp,\n info: infoProp,\n name,\n required,\n validate,\n });\n const [focus, setFocus] = useState();\n const formFieldRef = useForwardedRef(ref);\n\n const { formField: formFieldTheme } = theme;\n const { border: themeBorder } = formFieldTheme;\n\n // This is here for backwards compatibility. In case the child is a grommet\n // input component, set plain and focusIndicator props, if they aren't\n // already set.\n let wantContentPad =\n component &&\n (component === CheckBox ||\n component === CheckBoxGroup ||\n component === RadioButtonGroup);\n\n let contents =\n (themeBorder &&\n children &&\n Children.map(children, (child) => {\n if (\n child &&\n child.type &&\n grommetInputPadNames.indexOf(child.type.displayName) !== -1\n ) {\n wantContentPad = true;\n }\n if (\n child &&\n child.type &&\n grommetInputNames.indexOf(child.type.displayName) !== -1 &&\n child.props.plain === undefined &&\n child.props.focusIndicator === undefined\n ) {\n return cloneElement(child, {\n plain: true,\n focusIndicator: false,\n });\n }\n return child;\n })) ||\n children;\n\n // put rest on container, unless we use internal Input\n let containerRest = rest;\n if (inForm) {\n if (!contents) containerRest = {};\n contents = contents || (\n \n );\n }\n\n const themeContentProps = { ...formFieldTheme.content };\n\n if (!pad && !wantContentPad) {\n themeContentProps.pad = undefined;\n }\n\n if (themeBorder && themeBorder.position === 'inner') {\n if (error && formFieldTheme.error) {\n themeContentProps.background = formFieldTheme.error.background;\n } else if (disabled && formFieldTheme.disabled) {\n themeContentProps.background = formFieldTheme.disabled.background;\n }\n }\n\n // fileinput handle\n // use fileinput plain use formfield to drive the border\n let isFileInputComponent;\n if (\n children &&\n Children.forEach(children, (child) => {\n if (\n child &&\n child.type &&\n 'FileInput'.indexOf(child.type.displayName) !== -1\n )\n isFileInputComponent = true;\n })\n );\n\n if (\n component &&\n component.displayName === 'FileInput' &&\n !isFileInputComponent\n ) {\n isFileInputComponent = true;\n }\n\n if (!themeBorder) {\n contents = (\n \n {contents}\n \n );\n }\n\n let borderColor;\n\n if (\n disabled &&\n formFieldTheme.disabled.border &&\n formFieldTheme.disabled.border.color\n ) {\n borderColor = formFieldTheme.disabled.border.color;\n } else if (\n // backward compatibility check\n (error && themeBorder && themeBorder.error.color) ||\n (error && formFieldTheme.error && formFieldTheme.error.border)\n ) {\n if (\n themeBorder.error.color &&\n formFieldTheme.error.border === undefined\n ) {\n borderColor = themeBorder.error.color || 'status-critical';\n } else if (\n formFieldTheme.error.border &&\n formFieldTheme.error.border.color\n ) {\n borderColor = formFieldTheme.error.border.color || 'status-critical';\n }\n } else if (\n focus &&\n formFieldTheme.focus &&\n formFieldTheme.focus.border &&\n formFieldTheme.focus.border.color\n ) {\n borderColor = formFieldTheme.focus.border.color;\n } else {\n borderColor = (themeBorder && themeBorder.color) || 'border';\n }\n\n const labelStyle = { ...formFieldTheme.label };\n\n if (disabled) {\n labelStyle.color =\n formFieldTheme.disabled && formFieldTheme.disabled.label\n ? formFieldTheme.disabled.label.color\n : labelStyle.color;\n }\n\n let abut;\n let abutMargin;\n let outerStyle = style;\n\n // If fileinput is wrapped in a formfield we want to use\n // the border style from the fileInput.theme. We also do not\n // want the foocus around the formfield since the the focus\n // is on the anchor/button inside fileinput\n\n if (themeBorder) {\n const innerProps =\n themeBorder.position === 'inner'\n ? {\n border: {\n ...themeBorder,\n size: isFileInputComponent\n ? theme.fileInput.border.size\n : undefined,\n style: isFileInputComponent\n ? theme.fileInput.border.style\n : undefined,\n side: isFileInputComponent\n ? theme.fileInput.border.side\n : themeBorder.side || 'bottom',\n color: borderColor,\n },\n round: formFieldTheme.round,\n focus: isFileInputComponent ? undefined : focus,\n }\n : {};\n contents = (\n \n {contents}\n \n );\n\n const mergedMargin = margin || formFieldTheme.margin;\n abut =\n themeBorder.position === 'outer' &&\n (themeBorder.side === 'all' ||\n themeBorder.side === 'horizontal' ||\n !themeBorder.side) &&\n !(\n mergedMargin &&\n ((typeof mergedMargin === 'string' && mergedMargin !== 'none') ||\n (mergedMargin.bottom && mergedMargin.bottom !== 'none') ||\n (mergedMargin.horizontal && mergedMargin.horizontal !== 'none'))\n );\n if (abut) {\n // marginBottom is set to overlap adjacent fields\n abutMargin = { bottom: '-1px' };\n if (margin) {\n abutMargin = margin;\n } else if (themeBorder.size) {\n // if the user defines a margin,\n // then the default margin below will be overridden\n abutMargin = {\n bottom: `-${parseMetricToNum(\n theme.global.borderSize[themeBorder.size] || themeBorder.size,\n )}px`,\n };\n }\n\n outerStyle = {\n position: focus ? 'relative' : undefined,\n zIndex: focus ? 10 : undefined,\n ...style,\n };\n }\n }\n\n let outerBackground;\n\n if (themeBorder && themeBorder.position === 'outer') {\n if (error && formFieldTheme.error && formFieldTheme.error.background) {\n outerBackground = formFieldTheme.error.background;\n } else if (\n focus &&\n formFieldTheme.focus &&\n formFieldTheme.focus.background &&\n formFieldTheme.focus.background.color\n ) {\n outerBackground = formFieldTheme.focus.background.color;\n } else if (\n disabled &&\n formFieldTheme.disabled &&\n formFieldTheme.disabled.background\n ) {\n outerBackground = formFieldTheme.disabled.background;\n }\n }\n\n const outerProps =\n themeBorder && themeBorder.position === 'outer'\n ? {\n border: { ...themeBorder, color: borderColor },\n round: formFieldTheme.round,\n focus,\n }\n : {};\n\n let { requiredIndicator } = theme.formField.label;\n if (requiredIndicator === true)\n // a11yTitle necessary so screenreader announces as \"required\"\n // as opposed to \"star\"\n // accessibility resource: https://www.deque.com/blog/anatomy-of-accessible-forms-required-form-fields/\n requiredIndicator = *;\n\n let showRequiredIndicator = required && requiredIndicator;\n if (typeof required === 'object' && required.indicator === false)\n showRequiredIndicator = false;\n\n return (\n {\n setFocus(containsFocus(formFieldRef.current) && shouldKeepFocus());\n if (onFocus) onFocus(event);\n }}\n onBlur={(event) => {\n setFocus(false);\n if (contextOnBlur) contextOnBlur(event);\n if (onBlur) onBlur(event);\n }}\n onChange={\n contextOnChange || onChange\n ? (event) => {\n event.persist();\n if (onChange) onChange(event);\n if (contextOnChange) {\n const debouncedFn = debounce(() => {\n contextOnChange(event);\n // A half second (500ms) debounce can be a helpful starting\n // point. You want to give the user time to fill out a\n // field, but capture their attention before they move on\n // past it. 2 second (2000ms) might be too long depending\n // on how fast people type, and 200ms would be an eye blink\n }, 500);\n debouncedFn();\n }\n }\n : undefined\n }\n {...containerRest}\n >\n {(label && component !== CheckBox) || help ? (\n <>\n {label && component !== CheckBox && (\n \n {label}\n {showRequiredIndicator ? requiredIndicator : undefined}\n \n )}\n \n \n ) : undefined}\n {contents}\n \n \n \n );\n },\n);\n\nFormField.displayName = 'FormField';\nFormField.propTypes = FormFieldPropTypes;\n\nexport { FormField };\n","import React, {\n forwardRef,\n useContext,\n useEffect,\n useRef,\n useState,\n} from 'react';\n\nimport { ThemeContext } from 'styled-components';\nimport { FormContext } from '../Form/FormContext';\nimport { defaultProps } from '../../default-props';\nimport { Keyboard } from '../Keyboard';\nimport { Box } from '../Box';\nimport { RadioButton } from '../RadioButton';\nimport { RadioButtonGroupPropTypes } from './propTypes';\n\nconst RadioButtonGroup = forwardRef(\n (\n {\n children,\n defaultValue,\n disabled,\n focusIndicator = true,\n name,\n onChange,\n options: optionsProp,\n value: valueProp,\n gap,\n ...rest\n },\n ref,\n ) => {\n const formContext = useContext(FormContext);\n const theme = useContext(ThemeContext) || defaultProps.theme;\n\n // normalize options to always use an object\n const options = optionsProp.map((o) =>\n typeof o !== 'object'\n ? {\n disabled,\n id: rest.id ? `${rest.id}-${o}` : `${o}`, // force string\n label: typeof o !== 'string' ? JSON.stringify(o) : o,\n value: o,\n }\n : { disabled, ...o },\n );\n\n const [value, setValue] = formContext.useFormInput({\n name,\n value: valueProp,\n initialValue: defaultValue || '',\n });\n\n // track if focus is on one of the radio buttons\n const [focus, setFocus] = useState();\n\n const optionRefs = useRef([]);\n\n const valueIndex = React.useMemo(() => {\n let result;\n options.some((option, index) => {\n if (option.value === value) {\n result = index;\n return true;\n }\n return false;\n });\n return result;\n }, [options, value]);\n\n useEffect(() => {\n // if tab comes back to RadioButtonGroup when there still is no selection,\n // we want focus to be on the first RadioButton\n if (focus && !valueIndex) {\n optionRefs.current[0].focus();\n }\n }, [focus, valueIndex]);\n\n const onNext = () => {\n if (valueIndex !== undefined && valueIndex < options.length - 1) {\n const nextIndex = valueIndex + 1;\n // ensure change event occurs\n optionRefs.current[nextIndex].click();\n }\n };\n\n const onPrevious = () => {\n if (valueIndex > 0) {\n const nextIndex = valueIndex - 1;\n // ensure change event occurs\n optionRefs.current[nextIndex].click();\n }\n };\n\n const onFocus = () => {\n // Delay just a wee bit so Chrome doesn't missing turning the button on.\n // Chrome behaves differently in that focus is given to radio buttons\n // when the user selects one, unlike Safari and Firefox.\n setTimeout(() => {\n setFocus(true);\n }, 1);\n };\n\n const onBlur = () => setFocus(false);\n return (\n \n \n {options.map(\n (\n {\n disabled: optionDisabled,\n id,\n label,\n value: optionValue,\n ...optionRest\n },\n index,\n ) => {\n // if focus is within the RadioButtonGroup, determine\n // which radio button should be the active one\n const focusable =\n optionValue === value ||\n (value === undefined && !index) ||\n // when nothing has been selected, show focus\n // on the first radiobutton\n (value === '' && index === 0);\n return (\n {\n optionRefs.current[index] = aRef;\n }}\n key={optionValue}\n name={name}\n label={!children ? label : undefined}\n disabled={optionDisabled}\n checked={optionValue === value}\n focus={focus && focusable}\n // when contained in a FormField, focusIndicator = false,\n // so that the FormField has focus style. However, we still\n // need to visually indicate when a RadioButton is active.\n // In RadioButton, if focus = true but focusIndicator = false,\n // we will apply the hover treament.\n focusIndicator={focusIndicator}\n id={id}\n value={optionValue}\n onFocus={onFocus}\n onBlur={onBlur}\n onChange={(event) => {\n setValue(optionValue);\n if (onChange) onChange(event);\n }}\n tabIndex={focusable ? '0' : '-1'} // necessary for Firefox\n {...optionRest}\n >\n {children\n ? (state) => children(optionsProp[index], state)\n : null}\n \n );\n },\n )}\n \n \n );\n },\n);\n\nRadioButtonGroup.displayName = 'RadioButtonGroup';\nRadioButtonGroup.propTypes = RadioButtonGroupPropTypes;\n\nexport { RadioButtonGroup };\n","import React, { forwardRef, useContext, useState } from 'react';\nimport { ThemeContext } from 'styled-components';\n\nimport { Box } from '../Box';\nimport { defaultProps } from '../../default-props';\nimport { normalizeColor, removeUndefined } from '../../utils';\n\nimport {\n StyledRadioButton,\n StyledRadioButtonContainer,\n StyledRadioButtonIcon,\n StyledRadioButtonInput,\n StyledRadioButtonLabel,\n StyledRadioButtonBox,\n} from './StyledRadioButton';\nimport { RadioButtonPropTypes } from './propTypes';\n\nconst RadioButton = forwardRef(\n (\n {\n a11yTitle,\n checked,\n children,\n disabled,\n focus,\n focusIndicator,\n id,\n label,\n name,\n onChange,\n ...rest\n },\n ref,\n ) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n const [hover, setHover] = useState();\n const normalizedLabel =\n typeof label === 'string' ? (\n {label}\n ) : (\n label\n );\n\n const Icon = theme.radioButton.icons.circle;\n let borderColor = normalizeColor(theme.radioButton.border.color, theme);\n if (checked) {\n borderColor = normalizeColor(theme.radioButton.color || 'control', theme);\n }\n\n return (\n {\n // prevents clicking on the label trigging the event twice\n // https://stackoverflow.com/questions/24501497/why-the-onclick-element-will-trigger-twice-for-label-element\n if (event.target.type !== 'radio') {\n event.stopPropagation();\n }\n }}\n focus={focus}\n focusIndicator={focusIndicator}\n onMouseEnter={() => setHover(true)}\n onMouseLeave={() => setHover(false)}\n >\n \n \n {children ? (\n children({ checked, focus: focus && focusIndicator, hover })\n ) : (\n \n {checked &&\n (Icon ? (\n \n ) : (\n \n \n \n ))}\n \n )}\n \n {normalizedLabel}\n \n );\n },\n);\n\nRadioButton.displayName = 'RadioButton';\nRadioButton.propTypes = RadioButtonPropTypes;\n\nexport { RadioButton };\n","import styled, { css } from 'styled-components';\n\nimport { focusStyle, normalizeColor } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst disabledStyle = `\n opacity: 0.5;\n cursor: default;\n`;\n\nconst StyledRadioButtonContainer = styled.label`\n display: flex;\n flex-direction: row;\n align-items: center;\n user-select: none;\n width: fit-content;\n ${(props) => props.disabled && disabledStyle} ${(props) =>\n !props.disabled && 'cursor: pointer;'}\n\n :hover input:not([disabled]) + div,\n :hover input:not([disabled]) + span {\n border-color: ${(props) =>\n normalizeColor(props.theme.radioButton.hover.border.color, props.theme)};\n }\n :hover {\n background-color: ${(props) =>\n normalizeColor(\n !props.disabled &&\n props.theme.radioButton.hover &&\n props.theme.radioButton.hover.background &&\n props.theme.radioButton.hover.background.color,\n props.theme,\n )};\n }\n // when the RadioButton has focus but there is no focusIndicator,\n // apply the hover styling instead so that keyboard users know\n // which RadioButton is active\n ${(props) =>\n props.focus &&\n !props.focusIndicator &&\n `\n input:not([disabled]) + div,\n input:not([disabled]) + span {\n border-color: ${normalizeColor(\n props.theme.radioButton.hover.border.color,\n props.theme,\n )};\n }\n background-color: ${normalizeColor(\n !props.disabled &&\n props.theme.radioButton.hover &&\n props.theme.radioButton.hover.background &&\n props.theme.radioButton.hover.background.color,\n props.theme,\n )};\n `}\n ${(props) => props.theme.radioButton.container.extend};\n`;\n\nStyledRadioButtonContainer.defaultProps = {};\nObject.setPrototypeOf(StyledRadioButtonContainer.defaultProps, defaultProps);\n\nconst StyledRadioButtonInput = styled.input`\n opacity: 0;\n -moz-appearance: none;\n width: 0;\n height: 0;\n margin: 0;\n ${(props) => !props.disabled && 'cursor: pointer;'};\n`;\n\nStyledRadioButtonInput.defaultProps = {};\nObject.setPrototypeOf(StyledRadioButtonInput.defaultProps, defaultProps);\n\nconst StyledRadioButtonLabel = styled.span`\n ${(props) =>\n props.theme.radioButton.font.weight &&\n css`\n font-weight: ${props.theme.radioButton.font.weight};\n `}\n`;\n\nStyledRadioButtonLabel.defaultProps = {};\nObject.setPrototypeOf(StyledRadioButtonLabel.defaultProps, defaultProps);\n\nconst StyledRadioButtonIcon = styled.svg`\n box-sizing: border-box;\n width: ${(props) =>\n props.theme.radioButton.icon.size || props.theme.radioButton.size};\n height: ${(props) =>\n props.theme.radioButton.icon.size || props.theme.radioButton.size};\n fill: ${(props) =>\n normalizeColor(\n props.theme.radioButton.check.color || 'control',\n props.theme,\n )};\n ${(props) => props.theme.radioButton.icon.extend};\n`;\n\nStyledRadioButtonIcon.defaultProps = {};\nObject.setPrototypeOf(StyledRadioButtonIcon.defaultProps, defaultProps);\n\nconst StyledRadioButtonBox = styled.div`\n background-color: ${(props) =>\n normalizeColor(\n props.theme.radioButton.check.background?.color,\n props.theme,\n )};\n ${(props) => props.focus && focusStyle()};\n ${(props) => props.theme.radioButton.check.extend};\n`;\n\nStyledRadioButtonBox.defaultProps = {};\nObject.setPrototypeOf(StyledRadioButtonBox.defaultProps, defaultProps);\n\nconst StyledRadioButton = styled.div`\n ${(props) => props.theme.radioButton && props.theme.radioButton.extend};\n`;\n\nStyledRadioButton.defaultProps = {};\nObject.setPrototypeOf(StyledRadioButton.defaultProps, defaultProps);\n\nexport {\n StyledRadioButtonContainer,\n StyledRadioButtonInput,\n StyledRadioButtonLabel,\n StyledRadioButtonIcon,\n StyledRadioButtonBox,\n StyledRadioButton,\n};\n","import PropTypes from 'prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n a11yTitle: PropTypes.string,\n checked: PropTypes.bool,\n children: PropTypes.func,\n disabled: PropTypes.bool,\n id: PropTypes.string,\n label: PropTypes.node,\n name: PropTypes.string.isRequired,\n onChange: PropTypes.func,\n };\n}\nexport const RadioButtonPropTypes = PropType;\n","import PropTypes from 'prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n children: PropTypes.func,\n disabled: PropTypes.bool,\n name: PropTypes.string.isRequired,\n onChange: PropTypes.func,\n options: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.string),\n PropTypes.arrayOf(PropTypes.number),\n PropTypes.arrayOf(PropTypes.bool),\n PropTypes.arrayOf(\n PropTypes.shape({\n disabled: PropTypes.bool,\n id: PropTypes.string,\n label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),\n value: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.number,\n PropTypes.bool,\n ]).isRequired,\n }),\n ),\n ]).isRequired,\n value: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.number,\n PropTypes.bool,\n PropTypes.object,\n ]),\n };\n}\nexport const RadioButtonGroupPropTypes = PropType;\n","import PropTypes from 'prop-types';\nimport { marginProp } from '../../utils/general-prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n a11yTitle: PropTypes.string,\n component: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n contentProps: PropTypes.object,\n disabled: PropTypes.bool,\n error: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n help: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n htmlFor: PropTypes.string,\n info: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n name: PropTypes.string,\n margin: marginProp,\n pad: PropTypes.bool,\n required: PropTypes.oneOfType([\n PropTypes.bool,\n PropTypes.shape({ indicator: PropTypes.bool }),\n ]),\n validate: PropTypes.oneOfType([\n PropTypes.shape({\n regexp: PropTypes.instanceOf(RegExp), // regular expression\n message: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n status: PropTypes.oneOf(['error', 'info']),\n }),\n PropTypes.func,\n PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape({\n regexp: PropTypes.instanceOf(RegExp), // regular expression\n message: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n status: PropTypes.oneOf(['error', 'info']),\n }),\n PropTypes.func,\n ]),\n ),\n ]),\n };\n}\nexport const FormFieldPropTypes = PropType;\n","export { Grommet } from './Grommet';\n","import React, { forwardRef, useEffect, useMemo, useState } from 'react';\nimport { createGlobalStyle } from 'styled-components';\n\nimport {\n ContainerTargetContext,\n ResponsiveContext,\n ThemeContext,\n} from '../../contexts';\n\nimport {\n deepMerge,\n backgroundIsDark,\n getBreakpoint,\n getDeviceBreakpoint,\n normalizeColor,\n useForwardedRef,\n} from '../../utils';\nimport { base as baseTheme } from '../../themes';\nimport { StyledGrommet } from './StyledGrommet';\nimport { RootsContext } from '../../contexts/RootsContext';\nimport { OptionsContext } from '../../contexts/OptionsContext';\nimport { format, MessageContext } from '../../contexts/MessageContext';\nimport defaultMessages from '../../languages/default.json';\nimport { GrommetPropTypes } from './propTypes';\n\nconst FullGlobalStyle = createGlobalStyle`\n body { margin: 0; }\n`;\n\nconst deviceResponsive = (userAgent, theme) => {\n // log('--deviceResponsive', userAgent, theme);\n /*\n * Regexes provided for mobile and tablet detection are meant to replace\n * a full-featured specific library due to contributing a considerable size\n * into the bundle.\n *\n * User agents found https://deviceatlas.com/blog/list-of-user-agent-strings\n */\n if (userAgent) {\n if (/(tablet|ipad|playbook|silk)|(android(?!.*mobile))/i.test(userAgent)) {\n return getDeviceBreakpoint('tablet', theme);\n }\n if (/Mobile|iPhone|Android/.test(userAgent)) {\n return getDeviceBreakpoint('phone', theme);\n }\n return getDeviceBreakpoint('computer', theme);\n }\n return undefined;\n};\n\nconst defaultOptions = {};\n\nconst Grommet = forwardRef((props, ref) => {\n const {\n children,\n full,\n containerTarget = typeof document === 'object' ? document.body : undefined,\n theme: themeProp,\n options = defaultOptions,\n messages: messagesProp,\n ...rest\n } = props;\n const { background, dir, themeMode, userAgent } = props;\n const [stateResponsive, setResponsive] = useState();\n const [roots, setRoots] = useState([]);\n\n const theme = useMemo(() => {\n const nextTheme = deepMerge(baseTheme, themeProp || {});\n\n // if user provides specific menu alignment, we don't want\n // the defaults to be included at all (can cause issues with controlMirror)\n // override merged value with themeProp value\n if (\n themeProp &&\n themeProp.menu &&\n themeProp.menu.drop &&\n themeProp.menu.drop.align\n ) {\n delete nextTheme.menu.drop.align;\n nextTheme.menu.drop.align = themeProp.menu.drop.align;\n }\n const {\n colors: { background: themeBackground },\n } = nextTheme.global;\n\n nextTheme.dark = (themeMode || nextTheme.defaultMode) === 'dark';\n const color = normalizeColor(background || themeBackground, nextTheme);\n nextTheme.dark = backgroundIsDark(color, nextTheme);\n nextTheme.baseBackground = background || themeBackground;\n // This allows DataTable to intelligently set the background of a pinned\n // header or footer.\n nextTheme.background = nextTheme.baseBackground;\n\n if (dir) {\n nextTheme.dir = dir;\n }\n\n return nextTheme;\n }, [background, dir, themeMode, themeProp]);\n\n const messages = useMemo(() => {\n // combine the passed in messages, if any, with the default\n // messages and format function.\n const nextMessages = deepMerge(\n defaultMessages,\n messagesProp?.messages || {},\n );\n return {\n messages: nextMessages,\n format: (opts) => {\n const message = messagesProp?.format && messagesProp.format(opts);\n return typeof message !== 'undefined'\n ? message\n : format(opts, nextMessages);\n },\n };\n }, [messagesProp]);\n\n useEffect(() => {\n const onResize = () => {\n setResponsive(getBreakpoint(document.body.clientWidth, theme));\n };\n window.addEventListener('resize', onResize);\n onResize();\n return () => {\n window.removeEventListener('resize', onResize);\n };\n }, [theme]);\n\n const responsive =\n stateResponsive ||\n deviceResponsive(userAgent, theme) ||\n theme.global.deviceBreakpoints.tablet;\n\n const grommetRef = useForwardedRef(ref);\n\n useEffect(() => {\n if (grommetRef.current) setRoots([grommetRef.current]);\n }, [grommetRef]);\n\n return (\n \n \n \n \n \n \n \n {children}\n \n {full && }\n \n \n \n \n \n \n );\n});\n\nGrommet.displayName = 'Grommet';\nGrommet.propTypes = GrommetPropTypes;\n\nexport { Grommet };\n","import { css } from 'styled-components';\n\nimport { deepFreeze } from '../utils/object';\n\nexport const grommet = deepFreeze({\n global: {\n colors: {\n background: {\n light: '#ffffff',\n dark: '#000000',\n },\n },\n font: {\n family: `-apple-system,\n BlinkMacSystemFont, \n \"Segoe UI\", \n Roboto, \n Oxygen, \n Ubuntu, \n Cantarell, \n \"Fira Sans\", \n \"Droid Sans\", \n \"Helvetica Neue\", \n Arial, sans-serif, \n \"Apple Color Emoji\", \n \"Segoe UI Emoji\", \n \"Segoe UI Symbol\"`,\n },\n },\n button: {\n extend: css`\n ${props => !props.plain && 'font-weight: bold;'}\n `,\n },\n});\n","import { css } from 'styled-components';\n\nimport { deepFreeze } from '../utils/object';\nimport { normalizeColor } from '../utils/colors';\n\nconst accentColors = ['#FD6FFF', '#60EB9F', '#60EBE1', '#FFCA58'];\nconst neutralColors = ['#EB6060', '#01C781', '#6095EB', '#FFB200'];\nconst statusColors = {\n critical: '#FF3333',\n error: '#FF3333',\n warning: '#F7E464',\n ok: '#7DD892',\n unknown: '#a8a8a8',\n disabled: '#a8a8a8',\n};\nconst backgroundColor = '#111111';\n\nconst colors = {\n active: 'rgba(102, 102, 102, 0.5)',\n background: backgroundColor,\n black: '#000000',\n brand: '#FD6FFF',\n control: {\n dark: '#FFCA58',\n light: '#403216',\n },\n focus: '#FFCA58',\n icon: {\n dark: '#f8f8f8',\n light: '#666666',\n },\n placeholder: '#AAAAAA',\n text: {\n dark: '#eeeeee',\n light: '#444444',\n },\n white: '#FFFFFF',\n};\n\nconst colorArray = (array, prefix) =>\n array.forEach((color, index) => {\n colors[`${prefix}-${index + 1}`] = color;\n });\n\ncolorArray(accentColors, 'accent');\ncolorArray(neutralColors, 'neutral');\nObject.keys(statusColors).forEach((color) => {\n colors[`status-${color}`] = statusColors[color];\n});\n\nexport const dark = deepFreeze({\n global: {\n colors,\n drop: {\n background: '#333333',\n },\n focus: {\n border: {\n color: css`\n ${(props) => normalizeColor('focus', props.theme)};\n `,\n width: '2px',\n },\n },\n font: {\n family: 'Arial',\n },\n input: {\n weight: 700,\n },\n },\n anchor: {\n color: 'control',\n },\n layer: {\n background: backgroundColor,\n overlay: {\n background: 'rgba(48, 48, 48, 0.5)',\n },\n },\n});\n","import styled, { css } from 'styled-components';\n\nimport { baseStyle } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst fullStyle = (full) => {\n if (full === 'min')\n return css`\n min-height: 100vh;\n `;\n return css`\n width: 100vw;\n height: 100vh;\n overflow: auto;\n `;\n};\n\nconst StyledGrommet = styled.div`\n ${(props) => !props.plain && baseStyle}\n ${(props) => props.full && fullStyle(props.full)}\n ${(props) => props.theme.global.font.face}\n ${(props) => props.theme.grommet.extend}\n ${(props) =>\n props.cssVars &&\n Object.keys(props.theme.global.colors)\n .filter((k) => typeof props.theme.global.colors[k] === 'string')\n .map((k) => `--${k}: ${props.theme.global.colors[k]};`)\n .join('\\n')}\n`;\n\nStyledGrommet.defaultProps = {};\nObject.setPrototypeOf(StyledGrommet.defaultProps, defaultProps);\n\nexport { StyledGrommet };\n","import PropTypes from 'prop-types';\nimport { backgroundDoc } from '../../utils/general-prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n background: backgroundDoc,\n dir: PropTypes.oneOf(['rtl']),\n full: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['min'])]),\n options: PropTypes.shape({\n layer: PropTypes.shape({ singleId: PropTypes.bool }),\n }),\n plain: PropTypes.bool,\n cssVars: PropTypes.bool,\n theme: PropTypes.object,\n themeMode: PropTypes.oneOf(['dark', 'light']),\n userAgent: PropTypes.string,\n containerTarget: PropTypes.object,\n messages: PropTypes.shape({\n format: PropTypes.func,\n messages: PropTypes.shape({\n fileInput: PropTypes.shape({\n browse: PropTypes.string,\n dropPrompt: PropTypes.string,\n dropPromptMultiple: PropTypes.string,\n files: PropTypes.string,\n remove: PropTypes.string,\n removeAll: PropTypes.string,\n }),\n form: PropTypes.shape({\n invalid: PropTypes.string,\n required: PropTypes.string,\n }),\n menu: PropTypes.shape({\n openMenu: PropTypes.string,\n closeMenu: PropTypes.string,\n }),\n rangeSelector: PropTypes.shape({\n lower: PropTypes.string,\n upper: PropTypes.string,\n }),\n select: PropTypes.shape({\n multiple: PropTypes.string,\n }),\n skipLinks: PropTypes.shape({\n skipTo: PropTypes.string,\n }),\n tabs: PropTypes.shape({\n tabContents: PropTypes.string,\n }),\n textInput: PropTypes.shape({\n enterSelect: PropTypes.string,\n suggestionsCount: PropTypes.string,\n suggestionsExist: PropTypes.string,\n suggestionIsOpen: PropTypes.string,\n }),\n video: PropTypes.shape({\n closeMenu: PropTypes.string,\n fullScreen: PropTypes.string,\n progressMeter: PropTypes.string,\n scrubber: PropTypes.string,\n openMenu: PropTypes.string,\n pauseButton: PropTypes.string,\n playButton: PropTypes.string,\n volumeDown: PropTypes.string,\n volumeUp: PropTypes.string,\n }),\n }),\n }),\n };\n}\nexport const GrommetPropTypes = PropType;\n","import React, { forwardRef, useState } from 'react';\nimport { StyledImage } from './StyledImage';\nimport { ImagePropTypes } from './propTypes';\n\nconst Image = forwardRef(\n ({ a11yTitle, fallback, onError, opacity, fill, src, ...rest }, ref) => {\n const [isFallbackInUse, setFallbackInUse] = useState(false);\n\n const handleError = (event) => {\n if (onError) onError(event);\n if (!isFallbackInUse && fallback && fallback !== '') {\n // eslint-disable-next-line no-param-reassign\n event.target.src = fallback;\n setFallbackInUse(true);\n }\n };\n\n const handleOnLoad = () => {\n setFallbackInUse(false);\n };\n\n const extraProps = {\n onError: (onError || fallback) && handleError,\n onLoad: handleOnLoad,\n };\n\n return (\n \n );\n },\n);\n\nImage.displayName = 'Image';\nImage.propTypes = ImagePropTypes;\n\nexport { Image };\n","import styled, { css } from 'styled-components';\n\nimport { fillStyle, genericStyles } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst FIT_MAP = {\n cover: 'cover',\n contain: 'contain',\n};\n\nconst fitStyle = css`\n flex: 1 1;\n overflow: hidden;\n object-fit: ${props => FIT_MAP[props.fit]};\n`;\n\nconst StyledImage = styled.img`\n ${genericStyles}\n ${props => props.fit && fitStyle}\n ${props => props.fillProp && fillStyle(props.fillProp)}\n ${props => props.theme.image && props.theme.image.extend}\n ${props =>\n props.opacityProp &&\n `opacity: ${\n props.opacityProp === true\n ? props.theme.global.opacity.medium\n : props.theme.global.opacity[props.opacityProp] || props.opacityProp\n };\n `}\n `;\n\nStyledImage.defaultProps = {};\nObject.setPrototypeOf(StyledImage.defaultProps, defaultProps);\n\nexport { StyledImage };\n","import PropTypes from 'prop-types';\nimport { genericProps } from '../../utils/general-prop-types';\n\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\n ...genericProps,\n fill: PropTypes.oneOfType([\n PropTypes.oneOf(['horizontal', 'vertical']),\n PropTypes.bool,\n ]),\n fit: PropTypes.oneOf(['cover', 'contain']),\n fallback: PropTypes.string,\n opacity: PropTypes.oneOfType([\n PropTypes.oneOf(['weak', 'medium', 'strong']),\n PropTypes.string,\n PropTypes.bool,\n ]),\n };\n}\nexport const ImagePropTypes = PropType;\n","import React, { forwardRef, useContext, useEffect, useState } from 'react';\nimport { createPortal } from 'react-dom';\n\nimport { useLayoutEffect } from '../../utils/use-isomorphic-layout-effect';\nimport { getNewContainer } from '../../utils';\n\nimport { LayerContainer } from './LayerContainer';\nimport { animationDuration } from './StyledLayer';\nimport { ContainerTargetContext } from '../../contexts/ContainerTargetContext';\nimport { LayerPropTypes } from './propTypes';\n\nconst Layer = forwardRef((props, ref) => {\n const { animate, animation, targetChildPosition } = props;\n const [originalFocusedElement, setOriginalFocusedElement] = useState();\n useEffect(() => setOriginalFocusedElement(document.activeElement), []);\n const [layerContainer, setLayerContainer] = useState();\n const containerTarget = useContext(ContainerTargetContext);\n useEffect(\n () =>\n setLayerContainer(getNewContainer(containerTarget, targetChildPosition)),\n [containerTarget, targetChildPosition],\n );\n\n // just a few things to clean up when the Layer is unmounted\n useLayoutEffect(\n () => () => {\n if (originalFocusedElement) {\n if (originalFocusedElement.focus) {\n // wait for the fixed positioning to come back to normal\n // see layer styling for reference\n setTimeout(() => originalFocusedElement.focus(), 0);\n } else if (\n originalFocusedElement.parentNode &&\n originalFocusedElement.parentNode.focus\n ) {\n // required for IE11 and Edge\n originalFocusedElement.parentNode.focus();\n }\n }\n\n if (layerContainer) {\n const activeAnimation = animation !== undefined ? animation : animate;\n if (activeAnimation !== false) {\n // undefined uses 'slide' as the default\n // animate out and remove later\n const layerClone = layerContainer.cloneNode(true);\n layerClone.id = 'layerClone';\n containerTarget.appendChild(layerClone);\n const clonedContainer = layerClone.querySelector(\n '[class*=\"StyledLayer__StyledContainer\"]',\n );\n if (clonedContainer && clonedContainer.style) {\n clonedContainer.style.animationDirection = 'reverse';\n }\n setTimeout(() => {\n // we add the id and query here so the unit tests work\n const clone = document.getElementById('layerClone');\n if (clone) {\n containerTarget.removeChild(clone);\n layerContainer.remove();\n }\n }, animationDuration);\n } else {\n containerTarget.removeChild(layerContainer);\n }\n }\n },\n [\n animate,\n animation,\n containerTarget,\n layerContainer,\n originalFocusedElement,\n ],\n );\n\n return layerContainer\n ? createPortal(, layerContainer)\n : null;\n});\n\nLayer.displayName = 'Layer';\nLayer.propTypes = LayerPropTypes;\n\nexport { Layer };\n","import React, {\n forwardRef,\n useContext,\n useEffect,\n useMemo,\n useRef,\n} from 'react';\nimport styled, { ThemeContext } from 'styled-components';\nimport { defaultProps } from '../../default-props';\n\nimport { FocusedContainer } from '../FocusedContainer';\nimport { Keyboard } from '../Keyboard';\nimport { ResponsiveContext } from '../../contexts/ResponsiveContext';\nimport { OptionsContext } from '../../contexts/OptionsContext';\nimport {\n backgroundIsDark,\n findVisibleParent,\n PortalContext,\n} from '../../utils';\n\nimport { StyledLayer, StyledContainer, StyledOverlay } from './StyledLayer';\n\nconst HiddenAnchor = styled.a`\n width: 0;\n height: 0;\n overflow: hidden;\n position: absolute;\n`;\n\nconst defaultPortalContext = [];\n\nconst LayerContainer = forwardRef(\n (\n {\n background,\n children,\n full = false,\n id,\n margin = 'none',\n modal = true,\n onClickOutside,\n onEsc,\n plain,\n position = 'center',\n responsive = true,\n target: layerTarget,\n ...rest\n },\n ref,\n ) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n const size = useContext(ResponsiveContext);\n // layerOptions was created to preserve backwards compatibility but\n // should not be supported in v3\n const { layer: layerOptions } = useContext(OptionsContext);\n const anchorRef = useRef();\n const containerRef = useRef();\n const layerRef = useRef();\n const portalContext = useContext(PortalContext) || defaultPortalContext;\n const portalId = useMemo(() => portalContext.length, [portalContext]);\n const nextPortalContext = useMemo(\n () => [...portalContext, portalId],\n [portalContext, portalId],\n );\n\n useEffect(() => {\n if (position !== 'hidden') {\n const node = layerRef.current || containerRef.current || ref.current;\n if (node && node.scrollIntoView) node.scrollIntoView();\n // Once layer is open we make sure it has focus so that you\n // can start tabbing inside the layer. If the caller put focus\n // on an element already, we honor that. Otherwise, we put\n // the focus in the hidden anchor.\n let element = document.activeElement;\n while (element) {\n if (element === containerRef.current) {\n // already have focus inside the container\n break;\n }\n element = element.parentElement;\n }\n if (modal && !element && anchorRef.current) {\n anchorRef.current.focus();\n }\n }\n }, [modal, position, ref]);\n\n useEffect(() => {\n if (position !== 'hidden') {\n const node = layerRef.current || containerRef.current || ref.current;\n if (node && node.scrollIntoView) node.scrollIntoView();\n }\n }, [position, ref]);\n\n useEffect(() => {\n const onClickDocument = (event) => {\n // determine which portal id the target is in, if any\n let clickedPortalId = null;\n let node = event.target;\n while (clickedPortalId === null && node !== document && node !== null) {\n // check if user click occurred within the layer\n const attr = node.getAttribute('data-g-portal-id');\n if (attr !== null && attr !== '')\n clickedPortalId = parseInt(attr, 10);\n // loop upward through parents to see if clicked element is a child\n // of the Layer. if so, click was inside Layer\n else node = node.parentNode;\n }\n if (\n (clickedPortalId === null ||\n portalContext.indexOf(clickedPortalId) !== -1) &&\n node !== null\n ) {\n // if the click occurred outside of the Layer portal, call\n // the user's onClickOutside function\n onClickOutside(event);\n }\n };\n\n // if user provides an onClickOutside function, listen for mousedown event\n if (onClickOutside) {\n document.addEventListener('mousedown', onClickDocument);\n }\n\n if (layerTarget) {\n const updateBounds = () => {\n const windowWidth = window.innerWidth;\n const windowHeight = window.innerHeight;\n const target = findVisibleParent(layerTarget);\n\n // affects StyledLayer\n const layer = layerRef.current;\n\n if (layer && target) {\n // clear prior styling\n layer.style.left = '';\n layer.style.top = '';\n layer.style.bottom = '';\n layer.style.width = '';\n\n // get bounds\n const targetRect = target.getBoundingClientRect();\n const layerRect = layer.getBoundingClientRect();\n\n // ensure that layer moves with the target\n layer.style.left = `${targetRect.left}px`;\n layer.style.right = `${windowWidth - targetRect.right}px`;\n layer.style.top = `${targetRect.top}px`;\n layer.style.bottom = `${windowHeight - targetRect.bottom}px`;\n layer.style.maxHeight = targetRect.height;\n layer.style.maxWidth = Math.min(layerRect.width, windowWidth);\n }\n };\n\n updateBounds();\n window.addEventListener('resize', updateBounds);\n window.addEventListener('scroll', updateBounds, true);\n\n return () => {\n window.removeEventListener('resize', updateBounds);\n window.removeEventListener('scroll', updateBounds, true);\n if (onClickOutside) {\n document.removeEventListener('mousedown', onClickDocument);\n }\n };\n }\n return () => {\n if (onClickOutside) {\n document.removeEventListener('mousedown', onClickDocument);\n }\n };\n }, [layerTarget, onClickOutside, portalContext, portalId]);\n\n let content = (\n \n {/* eslint-disable max-len */}\n {/* eslint-disable jsx-a11y/anchor-is-valid, jsx-a11y/anchor-has-content */}\n \n {/* eslint-enable jsx-a11y/anchor-is-valid, jsx-a11y/anchor-has-content */}\n {/* eslint-enable max-len */}\n {children}\n \n );\n content = (\n \n {modal && (\n \n )}\n {content}\n \n );\n\n if (onEsc) {\n content = (\n {\n // prevent further capturing or bubbling of event to other\n // child or parent elements\n event.stopPropagation();\n onEsc(event);\n }\n : undefined\n }\n target={modal === false ? 'document' : undefined}\n >\n {content}\n \n );\n }\n\n const themeContextValue = useMemo(() => {\n const dark = backgroundIsDark(theme.layer.background, theme);\n return { ...theme, dark };\n }, [theme]);\n\n if (theme.layer.background) {\n const { dark } = themeContextValue;\n if (dark !== undefined && dark !== theme.dark) {\n content = (\n \n {content}\n \n );\n }\n }\n\n content = (\n \n {content}\n \n );\n\n const hitResponsiveBreakpoint =\n responsive && size === theme.layer.responsiveBreakpoint;\n // if layer is responsive and we've hit the breakpoint,\n // the layer will be filling the viewport, so we want to\n // restrict the scroll to the layer and not allow the\n // body to scroll\n if (modal || hitResponsiveBreakpoint) {\n content = (\n