{"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/Button/index.js","webpack://Grommet/./src/js/components/Text/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/utils/colors.js","webpack://Grommet/./src/js/components/Anchor/index.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/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/contexts/ResponsiveContext/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/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/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/DataChart/utils.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/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/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/Anchor/propTypes.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/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/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","adjustedDate","getTimezoneOffset","toISOString","betweenDates","dates","from","to","timestamp","valueOffset","localOffset","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","second","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","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","hour","minute","huge","digital","collapsible","minSpeed","dateInput","gap","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","toast","iconContainer","textContainer","title","close","StatusCriticalSmall","StatusWarningSmall","normal","StatusGoodSmall","StatusUnknownSmall","pagination","controls","paragraph","spinner","radioButton","radioButtonGroup","rangeInput","track","thumb","rangeSelector","invert","select","clear","options","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","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","fine","firstValue","lastValue","dateFormat","startDate","endDate","isNaN","delta","day","month","year","Intl","DateTimeFormat","format","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","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","responsiveStyle","polarToCartesian","centerX","centerY","angleInDegrees","angleInRadians","PI","cos","sin","startAngle","endAngle","normalizedEndAngle","arcSweep","toFixed","anglePer","showProp","page","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","flex","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","restrictFocus","dropTarget","originalFocusedElement","setOriginalFocusedElement","dropContainer","setDropContainer","containerTarget","ContainerTargetContext","getNewContainer","setFocusWithoutScroll","removeChild","createPortal","DropContainer","dir","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","AnchorPropTypes","Avatar","src","avatarSize","avatarTextSize","avatarProps","AvatarChildren","StyledAvatar","StyledAvatarText","AvatarPropTypes","headingPadMap","activeDates","timeStamp","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","onReference","onSelect","range","referenceProp","showAdjacentDays","timestampProp","announce","AnnounceContext","MessageContext","mouseDown","setMouseDown","onMouseUp","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","nextDates","nextDate","handleSelection","priorDates","selDate","priorDate","formatDateToPropStructure","adjustedDates","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","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","detailThickness","dateFormats","createDateFormat","renderValue","serie","dataIndex","suffix","xAxisElement","XAxis","yAxisElement","YAxis","stackFill","stackElement","XGuide","YGuide","chartRest","cProp","j","pProp","Detail","legendElement","Legend","Grid","available","rows","areas","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","axisValues","divideBy","maxValue","doublePad","axisValue","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","onFiltering","onFilter","nextFilters","nextSelected","nextSort","opts","expandedKeys","onExpand","onWidths","GroupedBody","prev","Body","pinnedCellProps","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","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","inline","inputProps","formatMessage","iconSize","schema","formatToSchema","schemaToMask","valueToText","textValue","setTextValue","nextTextValue","valuesAreEqual","textToValue","openCalendar","closeCalendar","normalizedValue","formContextValue","DropButton","dropContent","onSpace","MaskedInput","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","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","normalize","reorder","tmp","getKey","primaryContent","getItemId","getPrimaryContent","List","action","defaultItemProps","itemProps","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","accesskey","allowfullscreen","allowtransparency","autocomplete","autofocus","autoplay","cellpadding","cellspacing","charset","class","classid","colspan","contenteditable","contextmenu","crossorigin","enctype","for","formaction","formenctype","formmethod","formnovalidate","formtarget","frameborder","hreflang","inputmode","keyparams","keytype","marginheight","marginwidth","maxlength","mediagroup","minlength","novalidate","radiogroup","readonly","rowspan","spellcheck","srcdoc","srclang","srcset","tabindex","usemap","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","K","Q","X","J","Y","nn","tn","rn","en","on","an","cn","un","fn","ln","sn","_n","dn","pn","mn","trim","gn","yn","hn","vn","kn","xn","bn","decodeURIComponent","Sn","$n","wn","zn","En","An","Rn","In","Mn","On","Bn","Ln","slugify","namedCodesToUnicode","forceInline","forceBlock","Tn","forceWrapper","toUpperCase","charAt","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","jn","StyledParagraph","ParagraphPropTypes","Menu","dropBackground","themeDropAlign","themeDropProps","controlButtonIndex","alignControlMirror","setAlignControlMirror","initialAlignTop","buttonRefs","constants","controlTop","controlBottom","activeItemIndex","setActiveItemIndex","isOpen","MenuIcon","onDropOpen","onSelectMenuItem","isTab","onNextMenuItem","onPreviousMenuItem","menuIcon","controlMirror","shiftKey","MenuPropTypes","Meter","valuesProp","memoizedMax","deriveMax","Bar","Circle","MeterPropTypes","thicknessProp","capOffset","mid","someHighlight","highlight","pathRest","defaultColor","strokeProps","backgroundPath","startValue","pathCaps","translateEndAngle","arcCommands","pathCap","viewBoxHeight","valueGap","nameProp","nameProps","pairProps","valueProps","nameAlign","valueAlign","NameValueList","layout","valueWidth","nameWidth","listContextValue","Notification","visible","setVisible","CloseIcon","StatusIcon","closeIconColor","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","valuedValue","setSearch","allOptions","setAllOptions","optionIndexesInValue","SelectIcon","onRequestOpen","onRequestClose","triggerChangeEvent","onSelectChange","constructor","defineProperties","selectValue","SelectContainer","SelectPropTypes","OptionsBox","SelectOption","textComponent","ClearButton","onClear","buttonLabel","setActiveIndex","keyboardNavigation","setKeyboardNavigation","searchRef","optionsRef","optionsNode","searchInput","optionLabel","isDisabled","optionVal","valueItem","selectOption","nextOptionIndexesInValue","allOptionsIndex","onKeyDownOption","onActiveOption","customSearchInput","selectOptionsStyle","nextSearch","optionRef","optionSelected","optionActive","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,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOrB,EAAoBU,EAAEe,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRzB,EAAoB6B,EAAI,SAAS1B,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4DwC,OAAO,GAGjF5I,GAGEsZ,EAAc,SAAqBtZ,GAC5C,IAAIozF,EAAejrF,EAAYnI,GAQ/B,OADkB,IANRozF,EAAa,GAMO,IALlBA,EAAa,GAKmB,IAJjCA,EAAa,IAIkC,IACtC,KAEX1rF,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,EAAO68D,GAC9D,OAAO,cAAI,CAAC,GAAI,IAAK,KAAMz+D,EAAMoK,EAAe1J,EAAOkB,EAAO68D,KCFrD,EAAY,SAAmBz+D,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 = 91);\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 { Button } from './Button';\n","export { Text } from './Text';\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","// 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","export { Anchor } from './Anchor';\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\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 if (height.width)\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 { 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 { ResponsiveContext } from './ResponsiveContext';\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) => {\n const adjustedDate = new Date(date);\n return new Date(\n adjustedDate.getTime() - adjustedDate.getTimezoneOffset() * 60000,\n )\n .toISOString()\n .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// 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\nexport const normalizeForTimezone = (value, timestamp) => {\n let adjustedDate;\n let hourDelta;\n let valueOffset = 0;\n if (timestamp && typeof timestamp === 'string') {\n hourDelta = parseInt(timestamp?.split(':')[0], 10);\n valueOffset = hourDelta * 60 * 60 * 1000; // ms\n }\n const localOffset = new Date().getTimezoneOffset() * 60 * 1000;\n\n adjustedDate =\n value &&\n (Array.isArray(value) ? value : [value]).map((v) =>\n new Date(new Date(v).getTime() - valueOffset + localOffset).toISOString(),\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) => {\n let adjustedDate;\n if (date) {\n if (timestamp)\n adjustedDate = `${\n formatToLocalYYYYMMDD(date).split('T')[0]\n }T${timestamp}`;\n else if (timestamp === false)\n [adjustedDate] = formatToLocalYYYYMMDD(date).split('T');\n else adjustedDate = date;\n }\n return adjustedDate;\n};\n","export { Chart } from './Chart';\nexport { calcBounds, calcs, round } from './calcs';\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 { 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 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 container: {\n // any box props\n pad: { horizontal: 'small', vertical: 'xsmall' },\n background: {\n color: 'background-front',\n },\n },\n toast: {\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 },\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 color: 'status-critical',\n },\n warning: {\n icon: StatusWarningSmall,\n color: 'status-warning',\n },\n normal: {\n icon: StatusGoodSmall,\n color: 'status-ok',\n },\n unknown: {\n icon: StatusUnknownSmall,\n color: 'status-unknown',\n },\n undefined: {\n icon: StatusUnknownSmall,\n color: 'status-unknown',\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 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","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\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 (typeof value === 'number') return { value: [index, value] };\n if (Array.isArray(value)) return { value };\n return 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 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","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","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 './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 = (data, responsive, theme) => {\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} ${theme.global.borderSize[borderSize] ||\n borderSize} ${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 return styles;\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.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 &&\n (Array.isArray(props.border)\n ? props.border.map((border) =>\n borderStyle(border, props.responsive, props.theme),\n )\n : 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 = 'small',\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 // In cases the child is a primitive\n const wrapInvalidElement = () =>\n // Handle the use case of a primitive string child\n // so we'll be able to assign ref and events on the child.\n !React.isValidElement(children) ? {children} : children;\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 => span will wrap the child.\n 3. Tip has more than one child => Abort, display Children.only error \n */\n const child =\n Children.count(children) === 1\n ? wrapInvalidElement()\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 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 () => setDropContainer(getNewContainer(containerTarget)),\n [containerTarget],\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 return dropContainer\n ? createPortal(\n ,\n dropContainer,\n )\n : 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 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","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 { 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 formatDateToPropStructure,\n formatToLocalYYYYMMDD,\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 timeStamp = /T.*/;\n\nconst formatSelectedDatesString = (date) => `Currently selected\n ${date?.map((item) => {\n let dates;\n if (!Array.isArray(item)) {\n dates = `${formatToLocalYYYYMMDD(item)} `;\n } else {\n const start =\n item[0] !== undefined ? formatToLocalYYYYMMDD(item[0]) : 'none';\n const end =\n item[1] !== undefined ? formatToLocalYYYYMMDD(item[1]) : 'none';\n dates = `${start} through ${end}`;\n }\n\n return dates;\n })}`;\n\nconst getAccessibilityString = (date, dates) => {\n if (date && !Array.isArray(date)) {\n return `Currently selected ${formatToLocalYYYYMMDD(date)};`;\n }\n if (date && Array.isArray(date)) {\n return formatSelectedDatesString(date);\n }\n if (dates?.length) {\n return formatSelectedDatesString(dates);\n }\n\n return 'No date selected';\n};\n\n// function that runs inside the useEffect for date and dates\nconst normalizeDate = (dateValue, timestamp) => {\n if (typeof dateValue === 'string') {\n return normalizeForTimezone(dateValue, timestamp);\n }\n if (Array.isArray(dateValue)) {\n if (Array.isArray(dateValue[0])) {\n const [from, to] = dateValue[0].map(\n (day) => normalizeForTimezone(day, timestamp) || 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) => normalizeForTimezone(day, timestamp));\n dateArray.push([from, to]);\n } else {\n dateArray.push(normalizeForTimezone(d, timestamp));\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(({ chartProps, data, renderValue, serie }, ref) => {\n // pull the x-axis values from the first chart, all should have the same\n const [axisValues] = (Array.isArray(chartProps[0])\n ? chartProps[0][0]\n : chartProps[0]\n ).axis;\n\n return (\n \n {axisValues.map((dataIndex, i) => {\n let align;\n if (axisValues.length === data.length) align = 'center';\n else if (i === 0) align = 'start';\n else if (i === axisValues.length - 1) align = 'end';\n else align = 'center';\n return (\n // eslint-disable-next-line react/no-array-index-key\n \n {serie ? renderValue(serie, dataIndex) : dataIndex}\n \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(\n ({ chartProps, pad, renderValue, serie = {} }, ref) => {\n const theme = useContext(ThemeContext);\n const { render, suffix } = serie;\n\n // pull the x-axis values from the first chart, all should have the same\n const [, axisValues] = (Array.isArray(chartProps[0])\n ? chartProps[0][0]\n : chartProps[0]\n ).axis;\n\n let divideBy;\n let unit;\n if (!render && !suffix) {\n // figure out how many digits to show\n const maxValue = Math.max(...axisValues.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 {axisValues.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);\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 }, ref) => (\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\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(['bar', 'bars', 'line', 'area', 'point']),\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.oneOf(['align']),\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 pad: padPropType,\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';\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 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 {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 placeholder={placeholder}\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 {showFooter && (\n \n )}\n {placeholder && (\n \n {typeof placeholder === 'string' ? (\n \n {placeholder}\n \n ) : (\n placeholder\n )}\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 tabelContextTheme 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\nlet PropType = {};\nif (process.env.NODE_ENV !== 'production') {\n PropType = {\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 // 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 if (target !== inputRef.current) {\n closeDrop();\n }\n }}\n onEsc={closeDrop}\n {...dropProps}\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","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 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 let timestamp;\n if (Array.isArray(defaultValue) && defaultValue.length) {\n timestamp = getTimestamp(defaultValue[0]);\n } else if (typeof defaultValue === 'string') {\n timestamp = getTimestamp(defaultValue);\n } else if (Array.isArray(value) && value.length) {\n timestamp = getTimestamp(value[0]);\n // check to see if value is not an empty string\n // empty string should behave like undefined\n } else if (typeof value === 'string' && value.length) {\n timestamp = getTimestamp(value);\n }\n\n // normalize value based on timestamp vs user's local timezone\n const normalizedDate = normalizeForTimezone(value, timestamp);\n\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 // 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 if (schema)\n setTextValue(\n valueToText(normalizeForTimezone(normalizedValue), schema),\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={openCalendar}\n >\n \n {\n const nextTextValue = event.target.value;\n setTextValue(nextTextValue);\n const nextValue = textToValue(\n nextTextValue,\n schema,\n range,\n timestamp,\n );\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) {\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 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) => {\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 = `${formatToLocalYYYYMMDD(date).split('T')[0]}T${timestamp}`;\n else date = `${formatToLocalYYYYMMDD(date).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 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];\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