@equinor/eds-core-react 0.31.0 → 0.32.0-dev07072023
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/components/Accordion/{Accordion.js → Accordion.mjs} +2 -2
- package/dist/esm/components/Accordion/{AccordionHeader.js → AccordionHeader.mjs} +4 -4
- package/dist/esm/components/Accordion/{index.js → index.mjs} +6 -6
- package/dist/esm/components/Autocomplete/{Autocomplete.js → Autocomplete.mjs} +14 -14
- package/dist/esm/components/Autocomplete/{Autocomplete.tokens.js → Autocomplete.tokens.mjs} +1 -1
- package/dist/esm/components/Autocomplete/{Option.js → Option.mjs} +1 -1
- package/dist/esm/components/Avatar/{Avatar.js → Avatar.mjs} +1 -1
- package/dist/esm/components/Banner/{Banner.js → Banner.mjs} +5 -5
- package/dist/esm/components/Banner/{BannerIcon.js → BannerIcon.mjs} +2 -2
- package/dist/esm/components/Banner/{BannerMessage.js → BannerMessage.mjs} +1 -1
- package/dist/esm/components/Banner/{index.js → index.mjs} +4 -4
- package/dist/esm/components/Breadcrumbs/{Breadcrumb.js → Breadcrumb.mjs} +3 -3
- package/dist/esm/components/Breadcrumbs/{Breadcrumbs.js → Breadcrumbs.mjs} +2 -2
- package/dist/esm/components/Breadcrumbs/{index.js → index.mjs} +2 -2
- package/dist/esm/components/Button/{Button.js → Button.mjs} +3 -3
- package/dist/esm/components/Button/ButtonGroup/{ButtonGroup.js → ButtonGroup.mjs} +2 -2
- package/dist/esm/components/Button/ToggleButton/{ToggleButton.js → ToggleButton.mjs} +3 -3
- package/dist/esm/components/Button/{index.js → index.mjs} +3 -3
- package/dist/esm/components/Button/tokens/{contained.js → contained.mjs} +2 -2
- package/dist/esm/components/Button/tokens/{contained_icon.js → contained_icon.mjs} +2 -2
- package/dist/esm/components/Button/tokens/{ghost.js → ghost.mjs} +2 -2
- package/dist/esm/components/Button/tokens/{icon.js → icon.mjs} +2 -2
- package/dist/esm/components/Button/tokens/{index.js → index.mjs} +5 -5
- package/dist/esm/components/Button/tokens/{outlined.js → outlined.mjs} +2 -2
- package/dist/esm/components/Card/{Card.js → Card.mjs} +3 -3
- package/dist/esm/components/Card/{Card.tokens.js → Card.tokens.mjs} +4 -4
- package/dist/esm/components/Card/{CardActions.js → CardActions.mjs} +3 -3
- package/dist/esm/components/Card/{CardContent.js → CardContent.mjs} +2 -2
- package/dist/esm/components/Card/{CardHeader.js → CardHeader.mjs} +2 -2
- package/dist/esm/components/Card/{CardMedia.js → CardMedia.mjs} +1 -1
- package/dist/esm/components/Card/{index.js → index.mjs} +6 -6
- package/dist/esm/components/Checkbox/{Checkbox.js → Checkbox.mjs} +2 -2
- package/dist/esm/components/Checkbox/{Input.js → Input.mjs} +2 -2
- package/dist/esm/components/Chip/{Chip.js → Chip.mjs} +2 -2
- package/dist/esm/components/Chip/{Icon.js → Icon.mjs} +2 -2
- package/dist/esm/components/Dialog/Dialog.mjs +88 -0
- package/dist/esm/components/Dialog/{Dialog.tokens.js → Dialog.tokens.mjs} +6 -1
- package/dist/esm/components/Dialog/{DialogContent.js → DialogContent.mjs} +1 -1
- package/dist/esm/components/Dialog/{DialogHeader.js → DialogHeader.mjs} +1 -1
- package/dist/esm/components/Dialog/{index.js → index.mjs} +5 -5
- package/dist/esm/components/Divider/{Divider.js → Divider.mjs} +2 -2
- package/dist/esm/components/Divider/{Divider.tokens.js → Divider.tokens.mjs} +3 -3
- package/dist/esm/components/Icon/{Icon.js → Icon.mjs} +1 -1
- package/dist/esm/components/Icon/index.mjs +7 -0
- package/dist/esm/components/Input/{Input.js → Input.mjs} +2 -2
- package/dist/esm/components/Input/{Input.tokens.js → Input.tokens.mjs} +6 -6
- package/dist/esm/components/InputWrapper/HelperText/{HelperText.js → HelperText.mjs} +1 -1
- package/dist/esm/components/InputWrapper/{InputWrapper.js → InputWrapper.mjs} +4 -4
- package/dist/esm/components/InputWrapper/{InputWrapper.tokens.js → InputWrapper.tokens.mjs} +1 -1
- package/dist/esm/components/Label/{Label.js → Label.mjs} +1 -1
- package/dist/esm/components/List/{List.js → List.mjs} +1 -1
- package/dist/esm/components/List/{index.js → index.mjs} +2 -2
- package/dist/esm/components/Menu/{Menu.js → Menu.mjs} +11 -13
- package/dist/esm/components/Menu/{MenuItem.js → MenuItem.mjs} +7 -5
- package/dist/esm/components/Menu/{MenuList.js → MenuList.mjs} +4 -4
- package/dist/esm/components/Menu/{MenuSection.js → MenuSection.mjs} +3 -3
- package/dist/esm/components/Menu/{index.js → index.mjs} +3 -3
- package/dist/esm/components/Pagination/{Pagination.js → Pagination.mjs} +6 -6
- package/dist/esm/components/Pagination/{PaginationItem.js → PaginationItem.mjs} +2 -2
- package/dist/esm/components/Paper/{Paper.js → Paper.mjs} +1 -1
- package/dist/esm/components/Popover/{Popover.js → Popover.mjs} +10 -11
- package/dist/esm/components/Popover/{PopoverActions.js → PopoverActions.mjs} +1 -1
- package/dist/esm/components/Popover/{PopoverContent.js → PopoverContent.mjs} +1 -1
- package/dist/esm/components/Popover/{PopoverHeader.js → PopoverHeader.mjs} +1 -1
- package/dist/esm/components/Popover/{index.js → index.mjs} +5 -5
- package/dist/esm/components/Progress/Circular/{CircularProgress.js → CircularProgress.mjs} +1 -1
- package/dist/esm/components/Progress/Circular/{CircularProgress.tokens.js → CircularProgress.tokens.mjs} +2 -2
- package/dist/esm/components/Progress/Dots/{DotProgress.js → DotProgress.mjs} +1 -1
- package/dist/esm/components/Progress/Dots/{DotProgress.tokens.js → DotProgress.tokens.mjs} +2 -2
- package/dist/esm/components/Progress/Linear/{LinearProgress.js → LinearProgress.mjs} +1 -1
- package/dist/esm/components/Progress/Star/{StarProgress.js → StarProgress.mjs} +1 -1
- package/dist/esm/components/Progress/index.mjs +13 -0
- package/dist/esm/components/Radio/{Radio.js → Radio.mjs} +2 -2
- package/dist/esm/components/Scrim/{Scrim.js → Scrim.mjs} +3 -3
- package/dist/esm/components/Search/{Search.js → Search.mjs} +4 -4
- package/dist/esm/components/Select/{NativeSelect/NativeSelect.js → NativeSelect.mjs} +5 -5
- package/dist/esm/components/SideBar/{SideBar.js → SideBar.mjs} +4 -4
- package/dist/esm/components/SideBar/SideBarAccordion/{index.js → index.mjs} +7 -7
- package/dist/esm/components/SideBar/SideBarAccordionItem/{index.js → index.mjs} +3 -3
- package/dist/esm/components/SideBar/SideBarButton/{index.js → index.mjs} +5 -5
- package/dist/esm/components/SideBar/{SideBarToggle.js → SideBarToggle.mjs} +5 -5
- package/dist/esm/components/SideBar/SidebarLink/{index.js → index.mjs} +5 -5
- package/dist/esm/components/SideBar/{index.js → index.mjs} +8 -8
- package/dist/esm/components/SideSheet/{SideSheet.js → SideSheet.mjs} +4 -4
- package/dist/esm/components/Slider/{MinMax.js → MinMax.mjs} +1 -1
- package/dist/esm/components/Slider/{Output.js → Output.mjs} +1 -1
- package/dist/esm/components/Slider/{Slider.js → Slider.mjs} +4 -4
- package/dist/esm/components/Slider/{SliderInput.js → SliderInput.mjs} +1 -1
- package/dist/esm/components/Snackbar/{Snackbar.js → Snackbar.mjs} +3 -3
- package/dist/esm/components/Snackbar/index.mjs +7 -0
- package/dist/esm/components/Switch/{Switch.js → Switch.mjs} +4 -4
- package/dist/esm/components/Switch/{SwitchDefault.js → SwitchDefault.mjs} +1 -1
- package/dist/esm/components/Switch/{SwitchSmall.js → SwitchSmall.mjs} +1 -1
- package/dist/esm/components/Table/{Body.js → Body.mjs} +1 -1
- package/dist/esm/components/Table/{Cell.js → Cell.mjs} +3 -3
- package/dist/esm/components/Table/DataCell/{DataCell.js → DataCell.mjs} +2 -2
- package/dist/esm/components/Table/DataCell/{DataCell.tokens.js → DataCell.tokens.mjs} +1 -1
- package/dist/esm/components/Table/Head/{Head.js → Head.mjs} +2 -2
- package/dist/esm/components/Table/HeaderCell/{HeaderCell.js → HeaderCell.mjs} +2 -2
- package/dist/esm/components/Table/Row/{Row.js → Row.mjs} +1 -1
- package/dist/esm/components/Table/{Table.js → Table.mjs} +1 -1
- package/dist/esm/components/Table/{index.js → index.mjs} +6 -6
- package/dist/esm/components/TableOfContents/{TableOfContents.js → TableOfContents.mjs} +4 -4
- package/dist/esm/components/TableOfContents/{index.js → index.mjs} +2 -2
- package/dist/esm/components/Tabs/{TabList.js → TabList.mjs} +1 -1
- package/dist/esm/components/Tabs/{TabPanels.js → TabPanels.mjs} +3 -3
- package/dist/esm/components/Tabs/{Tabs.js → Tabs.mjs} +3 -3
- package/dist/esm/components/Tabs/{index.js → index.mjs} +5 -5
- package/dist/esm/components/TextField/{TextField.js → TextField.mjs} +3 -3
- package/dist/esm/components/Textarea/{Textarea.js → Textarea.mjs} +4 -4
- package/dist/esm/components/Tooltip/{Tooltip.js → Tooltip.mjs} +6 -7
- package/dist/esm/components/TopBar/{TopBar.js → TopBar.mjs} +3 -3
- package/dist/esm/components/TopBar/{index.js → index.mjs} +4 -4
- package/dist/esm/components/Typography/{Typography.js → Typography.mjs} +7 -5
- package/dist/esm/index.mjs +43 -0
- package/dist/esm/node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/internal/{_curry1.js → _curry1.mjs} +1 -1
- package/dist/esm/node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/internal/{_curry2.js → _curry2.mjs} +2 -2
- package/dist/esm/node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/internal/{_curry3.js → _curry3.mjs} +3 -3
- package/dist/esm/node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/{mergeDeepRight.js → mergeDeepRight.mjs} +2 -2
- package/dist/esm/node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/{mergeDeepWithKey.js → mergeDeepWithKey.mjs} +3 -3
- package/dist/esm/node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/{mergeWithKey.js → mergeWithKey.mjs} +2 -2
- package/dist/types/components/Dialog/Dialog.d.ts +7 -3
- package/dist/types/components/SideBar/SideBarAccordion/index.d.ts +2 -2
- package/dist/types/components/Tabs/TabPanel.d.ts +2 -8
- package/dist/types/test/index.d.ts +1 -0
- package/dist/types/test/withAnchorEl.d.ts +5 -0
- package/package.json +37 -34
- package/dist/eds-core-react.cjs.js +0 -9598
- package/dist/esm/components/Dialog/Dialog.js +0 -77
- package/dist/esm/components/Icon/index.js +0 -7
- package/dist/esm/components/Progress/index.js +0 -17
- package/dist/esm/components/Snackbar/index.js +0 -7
- package/dist/esm/index.js +0 -43
- package/dist/types/components/Select/NativeSelect/index.d.ts +0 -1
- /package/dist/esm/components/Accordion/{Accordion.tokens.js → Accordion.tokens.mjs} +0 -0
- /package/dist/esm/components/Accordion/{AccordionHeaderActions.js → AccordionHeaderActions.mjs} +0 -0
- /package/dist/esm/components/Accordion/{AccordionHeaderTitle.js → AccordionHeaderTitle.mjs} +0 -0
- /package/dist/esm/components/Accordion/{AccordionItem.js → AccordionItem.mjs} +0 -0
- /package/dist/esm/components/Accordion/{AccordionPanel.js → AccordionPanel.mjs} +0 -0
- /package/dist/esm/components/Avatar/{Avatar.tokens.js → Avatar.tokens.mjs} +0 -0
- /package/dist/esm/components/Banner/{Banner.tokens.js → Banner.tokens.mjs} +0 -0
- /package/dist/esm/components/Banner/{BannerActions.js → BannerActions.mjs} +0 -0
- /package/dist/esm/components/Breadcrumbs/{Breadcrumbs.tokens.js → Breadcrumbs.tokens.mjs} +0 -0
- /package/dist/esm/components/Button/ButtonGroup/{ButtonGroup.tokens.js → ButtonGroup.tokens.mjs} +0 -0
- /package/dist/esm/components/Button/{InnerFullWidth.js → InnerFullWidth.mjs} +0 -0
- /package/dist/esm/components/Button/tokens/{button.js → button.mjs} +0 -0
- /package/dist/esm/components/Card/{CardHeaderTitle.js → CardHeaderTitle.mjs} +0 -0
- /package/dist/esm/components/Checkbox/{Checkbox.tokens.js → Checkbox.tokens.mjs} +0 -0
- /package/dist/esm/components/Chip/{Chip.tokens.js → Chip.tokens.mjs} +0 -0
- /package/dist/esm/components/Dialog/{DialogActions.js → DialogActions.mjs} +0 -0
- /package/dist/esm/components/Dialog/{DialogTitle.js → DialogTitle.mjs} +0 -0
- /package/dist/esm/components/EdsProvider/{eds.context.js → eds.context.mjs} +0 -0
- /package/dist/esm/components/Icon/{library.js → library.mjs} +0 -0
- /package/dist/esm/components/InputWrapper/HelperText/{HelperText.token.js → HelperText.token.mjs} +0 -0
- /package/dist/esm/components/Label/{Label.tokens.js → Label.tokens.mjs} +0 -0
- /package/dist/esm/components/List/{List.tokens.js → List.tokens.mjs} +0 -0
- /package/dist/esm/components/List/{ListItem.js → ListItem.mjs} +0 -0
- /package/dist/esm/components/Menu/{Menu.context.js → Menu.context.mjs} +0 -0
- /package/dist/esm/components/Menu/{Menu.tokens.js → Menu.tokens.mjs} +0 -0
- /package/dist/esm/components/Pagination/{Pagination.tokens.js → Pagination.tokens.mjs} +0 -0
- /package/dist/esm/components/Pagination/{paginationControl.js → paginationControl.mjs} +0 -0
- /package/dist/esm/components/Paper/{Paper.tokens.js → Paper.tokens.mjs} +0 -0
- /package/dist/esm/components/Popover/{Popover.tokens.js → Popover.tokens.mjs} +0 -0
- /package/dist/esm/components/Popover/{PopoverTitle.js → PopoverTitle.mjs} +0 -0
- /package/dist/esm/components/Progress/Linear/{LinearProgress.tokens.js → LinearProgress.tokens.mjs} +0 -0
- /package/dist/esm/components/Progress/Star/{StarProgress.tokens.js → StarProgress.tokens.mjs} +0 -0
- /package/dist/esm/components/Radio/{Radio.tokens.js → Radio.tokens.mjs} +0 -0
- /package/dist/esm/components/Scrim/{Scrim.tokens.js → Scrim.tokens.mjs} +0 -0
- /package/dist/esm/components/Select/{NativeSelect/NativeSelect.tokens.js → NativeSelect.tokens.mjs} +0 -0
- /package/dist/esm/components/SideBar/{SideBar.context.js → SideBar.context.mjs} +0 -0
- /package/dist/esm/components/SideBar/{SideBar.tokens.js → SideBar.tokens.mjs} +0 -0
- /package/dist/esm/components/SideBar/{SideBarContent.js → SideBarContent.mjs} +0 -0
- /package/dist/esm/components/SideBar/{SideBarFooter.js → SideBarFooter.mjs} +0 -0
- /package/dist/esm/components/SideSheet/{SideSheet.tokens.js → SideSheet.tokens.mjs} +0 -0
- /package/dist/esm/components/Slider/{Slider.tokens.js → Slider.tokens.mjs} +0 -0
- /package/dist/esm/components/Snackbar/{Snackbar.tokens.js → Snackbar.tokens.mjs} +0 -0
- /package/dist/esm/components/Snackbar/{SnackbarAction.js → SnackbarAction.mjs} +0 -0
- /package/dist/esm/components/Switch/{Switch.styles.js → Switch.styles.mjs} +0 -0
- /package/dist/esm/components/Switch/{Switch.tokens.js → Switch.tokens.mjs} +0 -0
- /package/dist/esm/components/Table/{Caption.js → Caption.mjs} +0 -0
- /package/dist/esm/components/Table/Head/{Head.tokens.js → Head.tokens.mjs} +0 -0
- /package/dist/esm/components/Table/HeaderCell/{HeaderCell.tokens.js → HeaderCell.tokens.mjs} +0 -0
- /package/dist/esm/components/Table/{Inner.context.js → Inner.context.mjs} +0 -0
- /package/dist/esm/components/Table/Row/{Row.tokens.js → Row.tokens.mjs} +0 -0
- /package/dist/esm/components/TableOfContents/{LinkItem.js → LinkItem.mjs} +0 -0
- /package/dist/esm/components/TableOfContents/{TableOfContents.tokens.js → TableOfContents.tokens.mjs} +0 -0
- /package/dist/esm/components/Tabs/{Tab.js → Tab.mjs} +0 -0
- /package/dist/esm/components/Tabs/{TabPanel.js → TabPanel.mjs} +0 -0
- /package/dist/esm/components/Tabs/{Tabs.context.js → Tabs.context.mjs} +0 -0
- /package/dist/esm/components/Tabs/{Tabs.tokens.js → Tabs.tokens.mjs} +0 -0
- /package/dist/esm/components/Tooltip/{Tooltip.tokens.js → Tooltip.tokens.mjs} +0 -0
- /package/dist/esm/components/TopBar/{Actions.js → Actions.mjs} +0 -0
- /package/dist/esm/components/TopBar/{CustomContent.js → CustomContent.mjs} +0 -0
- /package/dist/esm/components/TopBar/{Header.js → Header.mjs} +0 -0
- /package/dist/esm/components/TopBar/{TopBar.tokens.js → TopBar.tokens.mjs} +0 -0
- /package/dist/esm/components/Typography/{Typography.tokens.js → Typography.tokens.mjs} +0 -0
- /package/dist/esm/node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/internal/{_has.js → _has.mjs} +0 -0
- /package/dist/esm/node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/internal/{_isObject.js → _isObject.mjs} +0 -0
- /package/dist/esm/node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/internal/{_isPlaceholder.js → _isPlaceholder.mjs} +0 -0
- /package/dist/types/components/Select/{NativeSelect/NativeSelect.d.ts → NativeSelect.d.ts} +0 -0
- /package/dist/types/components/Select/{NativeSelect/NativeSelect.tokens.d.ts → NativeSelect.tokens.d.ts} +0 -0
|
@@ -3,7 +3,7 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
3
3
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
4
4
|
import { forwardRef, useState, useEffect } from 'react';
|
|
5
5
|
import styled, { keyframes } from 'styled-components';
|
|
6
|
-
import { primary } from './LinearProgress.tokens.
|
|
6
|
+
import { primary } from './LinearProgress.tokens.mjs';
|
|
7
7
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
var _excluded = ["variant", "value"];
|
|
@@ -2,7 +2,7 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styled, { keyframes, css } from 'styled-components';
|
|
5
|
-
import { token } from './StarProgress.tokens.
|
|
5
|
+
import { token } from './StarProgress.tokens.mjs';
|
|
6
6
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
var _excluded = ["variant", "value", "size"];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LinearProgress } from './Linear/LinearProgress.mjs';
|
|
2
|
+
import { CircularProgress } from './Circular/CircularProgress.mjs';
|
|
3
|
+
import { StarProgress } from './Star/StarProgress.mjs';
|
|
4
|
+
import { DotProgress } from './Dots/DotProgress.mjs';
|
|
5
|
+
|
|
6
|
+
var Progress = {
|
|
7
|
+
Linear: LinearProgress,
|
|
8
|
+
Circular: CircularProgress,
|
|
9
|
+
Star: StarProgress,
|
|
10
|
+
Dots: DotProgress
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { CircularProgress, DotProgress, LinearProgress, Progress, StarProgress };
|
|
@@ -3,10 +3,10 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
import { forwardRef, useMemo } from 'react';
|
|
4
4
|
import styled, { ThemeProvider } from 'styled-components';
|
|
5
5
|
import { radio_button_selected, radio_button_unselected } from '@equinor/eds-icons';
|
|
6
|
-
import { comfortable } from './Radio.tokens.
|
|
6
|
+
import { comfortable } from './Radio.tokens.mjs';
|
|
7
7
|
import { outlineTemplate, typographyTemplate, spacingsTemplate, useToken } from '@equinor/eds-utils';
|
|
8
8
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
9
|
-
import { useEds } from '../EdsProvider/eds.context.
|
|
9
|
+
import { useEds } from '../EdsProvider/eds.context.mjs';
|
|
10
10
|
|
|
11
11
|
var _excluded = ["label", "disabled", "className", "style"];
|
|
12
12
|
var Input = styled.input.attrs(function (_ref) {
|
|
@@ -2,7 +2,7 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import { forwardRef, useRef, useMemo } from 'react';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
|
-
import { scrim } from './Scrim.tokens.
|
|
5
|
+
import { scrim } from './Scrim.tokens.mjs';
|
|
6
6
|
import { mergeRefs, useGlobalKeyPress } from '@equinor/eds-utils';
|
|
7
7
|
import { FloatingOverlay } from '@floating-ui/react';
|
|
8
8
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -35,7 +35,7 @@ var Scrim = /*#__PURE__*/forwardRef(function Scrim(_ref, ref) {
|
|
|
35
35
|
});
|
|
36
36
|
var handleMouseClose = function handleMouseClose(event) {
|
|
37
37
|
if (event && event.target === scrimRef.current) {
|
|
38
|
-
if (event.type === '
|
|
38
|
+
if (event.type === 'mousedown' && isDismissable && open) {
|
|
39
39
|
onClose && onClose();
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -45,7 +45,7 @@ var Scrim = /*#__PURE__*/forwardRef(function Scrim(_ref, ref) {
|
|
|
45
45
|
}
|
|
46
46
|
return /*#__PURE__*/jsx(StyledScrim, _objectSpread(_objectSpread({
|
|
47
47
|
lockScroll: true,
|
|
48
|
-
|
|
48
|
+
onMouseDown: handleMouseClose,
|
|
49
49
|
ref: combinedScrimRef
|
|
50
50
|
}, rest), {}, {
|
|
51
51
|
children: /*#__PURE__*/jsx(ScrimContent, {
|
|
@@ -4,12 +4,12 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
|
|
|
4
4
|
import { forwardRef, useRef, useState, useEffect, useMemo } from 'react';
|
|
5
5
|
import styled from 'styled-components';
|
|
6
6
|
import { search, close } from '@equinor/eds-icons';
|
|
7
|
-
import { Button } from '../Button/index.
|
|
8
|
-
import { Icon } from '../Icon/index.
|
|
7
|
+
import { Button } from '../Button/index.mjs';
|
|
8
|
+
import { Icon } from '../Icon/index.mjs';
|
|
9
9
|
import { mergeRefs, setReactInputValue } from '@equinor/eds-utils';
|
|
10
10
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
11
|
-
import { InputWrapper } from '../InputWrapper/InputWrapper.
|
|
12
|
-
import { Input } from '../Input/Input.
|
|
11
|
+
import { InputWrapper } from '../InputWrapper/InputWrapper.mjs';
|
|
12
|
+
import { Input } from '../Input/Input.mjs';
|
|
13
13
|
|
|
14
14
|
var _excluded = ["onChange", "style", "className"];
|
|
15
15
|
var SearchInput = styled(Input).withConfig({
|
|
@@ -2,20 +2,20 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styled, { css, ThemeProvider } from 'styled-components';
|
|
5
|
-
import { nativeselect } from './NativeSelect.tokens.
|
|
5
|
+
import { nativeselect } from './NativeSelect.tokens.mjs';
|
|
6
6
|
import { typographyTemplate, spacingsTemplate, outlineTemplate, useToken } from '@equinor/eds-utils';
|
|
7
7
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
8
|
-
import { useEds } from '
|
|
9
|
-
import { Label } from '
|
|
8
|
+
import { useEds } from '../EdsProvider/eds.context.mjs';
|
|
9
|
+
import { Label } from '../Label/Label.mjs';
|
|
10
10
|
|
|
11
11
|
var _excluded = ["label", "children", "className", "style", "selectRef", "id", "meta", "disabled", "multiple"];
|
|
12
12
|
var Container = styled.div.withConfig({
|
|
13
13
|
displayName: "NativeSelect__Container",
|
|
14
|
-
componentId: "sc-
|
|
14
|
+
componentId: "sc-82vb16-0"
|
|
15
15
|
})(["min-width:100px;width:100%;"]);
|
|
16
16
|
var StyledSelect = styled.select.withConfig({
|
|
17
17
|
displayName: "NativeSelect__StyledSelect",
|
|
18
|
-
componentId: "sc-
|
|
18
|
+
componentId: "sc-82vb16-1"
|
|
19
19
|
})(["border:none;border-radius:0;box-shadow:", ";", " ", " padding-right:calc(", " *2 + ", ");display:block;margin:0;appearance:none;background-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%236f6f6f' d='M7 9.5l5 5 5-5H7z'/%3E%3C/svg%3E\"),linear-gradient( to bottom,", " 0%,", " 100% );background-repeat:no-repeat,repeat;background-position:right ", " top 50%;width:100%;&:active,&:focus{box-shadow:none;", "}&:disabled{color:", ";background-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23bebebe' d='M7 9.5l5 5 5-5H7z'/%3E%3C/svg%3E\"),linear-gradient( to bottom,", " 0%,", " 100% );cursor:not-allowed;box-shadow:none;outline:none;.arrow-icon{fill:red;}&:focus,&:active{outline:none;}}"], nativeselect.boxShadow, typographyTemplate(nativeselect.typography), function (_ref) {
|
|
20
20
|
var theme = _ref.theme;
|
|
21
21
|
return css(["height:", ";", ""], theme.minHeight, spacingsTemplate(theme.entities.input.spacings));
|
|
@@ -2,11 +2,11 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import { forwardRef, useEffect } from 'react';
|
|
4
4
|
import styled, { css, ThemeProvider } from 'styled-components';
|
|
5
|
-
import { sidebar } from './SideBar.tokens.
|
|
5
|
+
import { sidebar } from './SideBar.tokens.mjs';
|
|
6
6
|
import { bordersTemplate, useToken } from '@equinor/eds-utils';
|
|
7
|
-
import { SideBarProvider, useSideBar } from './SideBar.context.
|
|
7
|
+
import { SideBarProvider, useSideBar } from './SideBar.context.mjs';
|
|
8
8
|
import { jsx } from 'react/jsx-runtime';
|
|
9
|
-
import { useEds } from '../EdsProvider/eds.context.
|
|
9
|
+
import { useEds } from '../EdsProvider/eds.context.mjs';
|
|
10
10
|
|
|
11
11
|
var _excluded = ["onToggle", "open", "children"],
|
|
12
12
|
_excluded2 = ["onToggle", "open", "children"];
|
|
@@ -42,7 +42,7 @@ var GridContainer = styled.div.withConfig({
|
|
|
42
42
|
})(function (_ref2) {
|
|
43
43
|
var theme = _ref2.theme,
|
|
44
44
|
open = _ref2.open;
|
|
45
|
-
return css(["box-sizing:content-box;", " display:grid;grid-template-rows:1fr auto;height:100%;grid-template-areas:'content' 'footer';background-color:", ";overflow:auto;width:", ";min-width:", ";"], bordersTemplate(theme.border), theme.background, open ? theme.maxWidth : theme.minWidth, open ? theme.maxWidth : theme.minWidth);
|
|
45
|
+
return css(["box-sizing:content-box;", " display:grid;grid-template-rows:1fr auto;height:100%;grid-template-areas:'content' 'footer';background-color:", ";overflow:auto;width:", ";min-width:", ";", ""], bordersTemplate(theme.border), theme.background, open ? theme.maxWidth : theme.minWidth, open ? theme.maxWidth : theme.minWidth, !open && css(["scrollbar-width:none;&::-webkit-scrollbar{display:none;}"]));
|
|
46
46
|
});
|
|
47
47
|
var SideBar = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
48
48
|
var onToggle = _ref3.onToggle,
|
|
@@ -5,13 +5,13 @@ import { forwardRef, useState, useMemo, Children } from 'react';
|
|
|
5
5
|
import styled, { css } from 'styled-components';
|
|
6
6
|
import { bordersTemplate, outlineTemplate, useId, mergeRefs } from '@equinor/eds-utils';
|
|
7
7
|
import { chevron_up, chevron_down, arrow_drop_down } from '@equinor/eds-icons';
|
|
8
|
-
import { useSideBar } from '../SideBar.context.
|
|
9
|
-
import { sidebar } from '../SideBar.tokens.
|
|
10
|
-
import { Icon } from '../../Icon/index.
|
|
11
|
-
import { Menu } from '../../Menu/index.
|
|
8
|
+
import { useSideBar } from '../SideBar.context.mjs';
|
|
9
|
+
import { sidebar } from '../SideBar.tokens.mjs';
|
|
10
|
+
import { Icon } from '../../Icon/index.mjs';
|
|
11
|
+
import { Menu } from '../../Menu/index.mjs';
|
|
12
12
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
13
|
-
import { Typography } from '../../Typography/Typography.
|
|
14
|
-
import { Tooltip as Tooltip$1 } from '../../Tooltip/Tooltip.
|
|
13
|
+
import { Typography } from '../../Typography/Typography.mjs';
|
|
14
|
+
import { Tooltip as Tooltip$1 } from '../../Tooltip/Tooltip.mjs';
|
|
15
15
|
|
|
16
16
|
var _excluded = ["icon", "label", "isExpanded", "id", "active", "toggleExpand", "onClick", "children", "disabled"];
|
|
17
17
|
var minWidth = sidebar.minWidth,
|
|
@@ -92,7 +92,7 @@ var SideBarAccordion = /*#__PURE__*/forwardRef(function SideBarAccordion(_ref5,
|
|
|
92
92
|
_useState2 = _slicedToArray(_useState, 2),
|
|
93
93
|
menuIsOpen = _useState2[0],
|
|
94
94
|
setMenuIsOpen = _useState2[1];
|
|
95
|
-
var _useState3 = useState(
|
|
95
|
+
var _useState3 = useState(isExpanded),
|
|
96
96
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
97
97
|
accordionIsOpen = _useState4[0],
|
|
98
98
|
setAccordionIsOpen = _useState4[1];
|
|
@@ -3,10 +3,10 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styled, { css } from 'styled-components';
|
|
5
5
|
import { outlineTemplate } from '@equinor/eds-utils';
|
|
6
|
-
import { sidebar } from '../SideBar.tokens.
|
|
7
|
-
import { useSideBar } from '../SideBar.context.
|
|
6
|
+
import { sidebar } from '../SideBar.tokens.mjs';
|
|
7
|
+
import { useSideBar } from '../SideBar.context.mjs';
|
|
8
8
|
import { jsx } from 'react/jsx-runtime';
|
|
9
|
-
import { Typography } from '../../Typography/Typography.
|
|
9
|
+
import { Typography } from '../../Typography/Typography.mjs';
|
|
10
10
|
|
|
11
11
|
var _excluded = ["label", "active", "onClick", "as"];
|
|
12
12
|
var minWidth = sidebar.minWidth,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
|
-
import { Button } from '../../Button/index.
|
|
5
|
-
import { Icon } from '../../Icon/index.
|
|
6
|
-
import { sidebar } from '../SideBar.tokens.
|
|
7
|
-
import { useSideBar } from '../SideBar.context.
|
|
4
|
+
import { Button } from '../../Button/index.mjs';
|
|
5
|
+
import { Icon } from '../../Icon/index.mjs';
|
|
6
|
+
import { sidebar } from '../SideBar.tokens.mjs';
|
|
7
|
+
import { useSideBar } from '../SideBar.context.mjs';
|
|
8
8
|
import styled, { css } from 'styled-components';
|
|
9
9
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
10
|
-
import { Tooltip } from '../../Tooltip/Tooltip.
|
|
10
|
+
import { Tooltip } from '../../Tooltip/Tooltip.mjs';
|
|
11
11
|
|
|
12
12
|
var _excluded = ["label", "icon", "style", "className"];
|
|
13
13
|
var primaryWhite = sidebar.entities.actionButton.typography.color;
|
|
@@ -2,14 +2,14 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
2
2
|
import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';
|
|
3
3
|
import _extends from '@babel/runtime/helpers/extends';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
|
-
import { Button } from '../Button/index.
|
|
6
|
-
import { Icon } from '../Icon/index.
|
|
7
|
-
import { useSideBar } from './SideBar.context.
|
|
8
|
-
import { sidebar } from './SideBar.tokens.
|
|
5
|
+
import { Button } from '../Button/index.mjs';
|
|
6
|
+
import { Icon } from '../Icon/index.mjs';
|
|
7
|
+
import { useSideBar } from './SideBar.context.mjs';
|
|
8
|
+
import { sidebar } from './SideBar.tokens.mjs';
|
|
9
9
|
import { collapse, expand } from '@equinor/eds-icons';
|
|
10
10
|
import styled, { css } from 'styled-components';
|
|
11
11
|
import { jsx } from 'react/jsx-runtime';
|
|
12
|
-
import { Tooltip } from '../Tooltip/Tooltip.
|
|
12
|
+
import { Tooltip } from '../Tooltip/Tooltip.mjs';
|
|
13
13
|
|
|
14
14
|
var iconColor = sidebar.entities.toggleOpen.typography.color;
|
|
15
15
|
var ToggleContainer = styled.div.withConfig({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
|
-
import { sidebar } from '../SideBar.tokens.
|
|
4
|
+
import { sidebar } from '../SideBar.tokens.mjs';
|
|
5
5
|
import { bordersTemplate, outlineTemplate } from '@equinor/eds-utils';
|
|
6
|
-
import { Icon } from '../../Icon/index.
|
|
6
|
+
import { Icon } from '../../Icon/index.mjs';
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
|
-
import { useSideBar } from '../SideBar.context.
|
|
8
|
+
import { useSideBar } from '../SideBar.context.mjs';
|
|
9
9
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
10
|
-
import { Typography } from '../../Typography/Typography.
|
|
11
|
-
import { Tooltip as Tooltip$1 } from '../../Tooltip/Tooltip.
|
|
10
|
+
import { Typography } from '../../Typography/Typography.mjs';
|
|
11
|
+
import { Tooltip as Tooltip$1 } from '../../Tooltip/Tooltip.mjs';
|
|
12
12
|
|
|
13
13
|
var _excluded = ["icon", "label", "active", "onClick", "as"];
|
|
14
14
|
var _tokens$entities$side = sidebar.entities.sidebarItem,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { SideBar as SideBar$1 } from './SideBar.
|
|
2
|
-
import { SidebarLink } from './SidebarLink/index.
|
|
3
|
-
import { SideBarContent } from './SideBarContent.
|
|
4
|
-
import { SideBarFooter } from './SideBarFooter.
|
|
5
|
-
import { SideBarToggle } from './SideBarToggle.
|
|
6
|
-
import { SideBarButton } from './SideBarButton/index.
|
|
7
|
-
import { SideBarAccordion } from './SideBarAccordion/index.
|
|
8
|
-
import { SideBarAccordionItem } from './SideBarAccordionItem/index.
|
|
1
|
+
import { SideBar as SideBar$1 } from './SideBar.mjs';
|
|
2
|
+
import { SidebarLink } from './SidebarLink/index.mjs';
|
|
3
|
+
import { SideBarContent } from './SideBarContent.mjs';
|
|
4
|
+
import { SideBarFooter } from './SideBarFooter.mjs';
|
|
5
|
+
import { SideBarToggle } from './SideBarToggle.mjs';
|
|
6
|
+
import { SideBarButton } from './SideBarButton/index.mjs';
|
|
7
|
+
import { SideBarAccordion } from './SideBarAccordion/index.mjs';
|
|
8
|
+
import { SideBarAccordionItem } from './SideBarAccordionItem/index.mjs';
|
|
9
9
|
|
|
10
10
|
var SideBar = SideBar$1;
|
|
11
11
|
SideBar.Link = SidebarLink;
|
|
@@ -4,11 +4,11 @@ import { forwardRef } from 'react';
|
|
|
4
4
|
import styled from 'styled-components';
|
|
5
5
|
import { clear } from '@equinor/eds-icons';
|
|
6
6
|
import { bordersTemplate, spacingsTemplate, typographyTemplate } from '@equinor/eds-utils';
|
|
7
|
-
import { Button } from '../Button/index.
|
|
8
|
-
import { Icon } from '../Icon/index.
|
|
9
|
-
import {
|
|
7
|
+
import { Button } from '../Button/index.mjs';
|
|
8
|
+
import { Icon } from '../Icon/index.mjs';
|
|
9
|
+
import { variants, comfortable } from './SideSheet.tokens.mjs';
|
|
10
10
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
11
|
-
import { Typography } from '../Typography/Typography.
|
|
11
|
+
import { Typography } from '../Typography/Typography.mjs';
|
|
12
12
|
|
|
13
13
|
var _excluded = ["variant", "width", "title", "children", "open", "onClose"];
|
|
14
14
|
var background = comfortable.background,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import { typographyTemplate } from '@equinor/eds-utils';
|
|
4
|
-
import { slider } from './Slider.tokens.
|
|
4
|
+
import { slider } from './Slider.tokens.mjs';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
var _tokens$entities = slider.entities,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import { typographyTemplate } from '@equinor/eds-utils';
|
|
4
|
-
import { slider } from './Slider.tokens.
|
|
4
|
+
import { slider } from './Slider.tokens.mjs';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
var _tokens$entities = slider.entities,
|
|
@@ -3,10 +3,10 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
4
4
|
import { forwardRef, useState, useEffect, useRef, useCallback } from 'react';
|
|
5
5
|
import styled, { css } from 'styled-components';
|
|
6
|
-
import { slider } from './Slider.tokens.
|
|
7
|
-
import { MinMax } from './MinMax.
|
|
8
|
-
import { Output } from './Output.
|
|
9
|
-
import { SliderInput } from './SliderInput.
|
|
6
|
+
import { slider } from './Slider.tokens.mjs';
|
|
7
|
+
import { MinMax } from './MinMax.mjs';
|
|
8
|
+
import { Output } from './Output.mjs';
|
|
9
|
+
import { SliderInput } from './SliderInput.mjs';
|
|
10
10
|
import { bordersTemplate, useId } from '@equinor/eds-utils';
|
|
11
11
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
12
12
|
|
|
@@ -2,7 +2,7 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styled, { css } from 'styled-components';
|
|
5
|
-
import { slider } from './Slider.tokens.
|
|
5
|
+
import { slider } from './Slider.tokens.mjs';
|
|
6
6
|
import { bordersTemplate, outlineTemplate } from '@equinor/eds-utils';
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
@@ -4,11 +4,11 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
|
|
|
4
4
|
import { forwardRef, useState, useRef, useEffect } from 'react';
|
|
5
5
|
import * as ReactDom from 'react-dom';
|
|
6
6
|
import styled, { css, ThemeProvider } from 'styled-components';
|
|
7
|
-
import { snackbar } from './Snackbar.tokens.
|
|
7
|
+
import { snackbar } from './Snackbar.tokens.mjs';
|
|
8
8
|
import { spacingsTemplate, bordersTemplate, typographyTemplate, useToken } from '@equinor/eds-utils';
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
|
-
import { Paper } from '../Paper/Paper.
|
|
11
|
-
import { useEds } from '../EdsProvider/eds.context.
|
|
10
|
+
import { Paper } from '../Paper/Paper.mjs';
|
|
11
|
+
import { useEds } from '../EdsProvider/eds.context.mjs';
|
|
12
12
|
|
|
13
13
|
var _excluded = ["open", "autoHideDuration", "onClose", "placement", "children"];
|
|
14
14
|
var StyledSnackbar = styled(Paper).withConfig({
|
|
@@ -2,12 +2,12 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styled, { css, ThemeProvider } from 'styled-components';
|
|
5
|
-
import { SwitchSmall } from './SwitchSmall.
|
|
6
|
-
import { SwitchDefault } from './SwitchDefault.
|
|
7
|
-
import { comfortable } from './Switch.tokens.
|
|
5
|
+
import { SwitchSmall } from './SwitchSmall.mjs';
|
|
6
|
+
import { SwitchDefault } from './SwitchDefault.mjs';
|
|
7
|
+
import { comfortable } from './Switch.tokens.mjs';
|
|
8
8
|
import { typographyTemplate, useToken } from '@equinor/eds-utils';
|
|
9
9
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
10
|
-
import { useEds } from '../EdsProvider/eds.context.
|
|
10
|
+
import { useEds } from '../EdsProvider/eds.context.mjs';
|
|
11
11
|
|
|
12
12
|
var _excluded = ["size", "disabled", "label", "className", "style"];
|
|
13
13
|
var StyledLabel = styled.label.withConfig({
|
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styled, { css } from 'styled-components';
|
|
5
5
|
import { bordersTemplate } from '@equinor/eds-utils';
|
|
6
|
-
import { BaseInput, GridWrapper, BaseInputWrapper } from './Switch.styles.
|
|
6
|
+
import { BaseInput, GridWrapper, BaseInputWrapper } from './Switch.styles.mjs';
|
|
7
7
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
var _excluded = ["disabled", "className", "style"];
|
|
@@ -2,7 +2,7 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styled, { css } from 'styled-components';
|
|
5
|
-
import { BaseInput, GridWrapper, BaseInputWrapper } from './Switch.styles.
|
|
5
|
+
import { BaseInput, GridWrapper, BaseInputWrapper } from './Switch.styles.mjs';
|
|
6
6
|
import { outlineTemplate } from '@equinor/eds-utils';
|
|
7
7
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
|
-
import { InnerContext } from './Inner.context.
|
|
5
|
+
import { InnerContext } from './Inner.context.mjs';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
var _excluded = ["children"];
|
|
@@ -2,10 +2,10 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
2
2
|
import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';
|
|
3
3
|
import _extends from '@babel/runtime/helpers/extends';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
|
-
import { InnerContext } from './Inner.context.
|
|
5
|
+
import { InnerContext } from './Inner.context.mjs';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
|
-
import { TableDataCell } from './DataCell/DataCell.
|
|
8
|
-
import { TableHeaderCell } from './HeaderCell/HeaderCell.
|
|
7
|
+
import { TableDataCell } from './DataCell/DataCell.mjs';
|
|
8
|
+
import { TableHeaderCell } from './HeaderCell/HeaderCell.mjs';
|
|
9
9
|
|
|
10
10
|
var Cell = /*#__PURE__*/forwardRef(function Cell(_ref, ref) {
|
|
11
11
|
var rest = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
@@ -3,9 +3,9 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styled, { css, ThemeProvider } from 'styled-components';
|
|
5
5
|
import { spacingsTemplate, typographyTemplate, bordersTemplate, useToken } from '@equinor/eds-utils';
|
|
6
|
-
import { applyVariant, tableCell } from './DataCell.tokens.
|
|
6
|
+
import { applyVariant, tableCell } from './DataCell.tokens.mjs';
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
|
-
import { useEds } from '../../EdsProvider/eds.context.
|
|
8
|
+
import { useEds } from '../../EdsProvider/eds.context.mjs';
|
|
9
9
|
|
|
10
10
|
var _excluded = ["children", "variant"];
|
|
11
11
|
var StyledTableCell = styled.td.withConfig({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import { tokens } from '@equinor/eds-tokens';
|
|
3
|
-
import mergeDeepRight from '../../../node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/mergeDeepRight.
|
|
3
|
+
import mergeDeepRight from '../../../node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/mergeDeepRight.mjs';
|
|
4
4
|
|
|
5
5
|
var _tokens$typography = tokens.typography,
|
|
6
6
|
_tokens$typography$ta = _tokens$typography.table,
|
|
@@ -2,9 +2,9 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
|
-
import { token } from './Head.tokens.
|
|
5
|
+
import { token } from './Head.tokens.mjs';
|
|
6
6
|
import { bordersTemplate } from '@equinor/eds-utils';
|
|
7
|
-
import { InnerContext } from '../Inner.context.
|
|
7
|
+
import { InnerContext } from '../Inner.context.mjs';
|
|
8
8
|
import { jsx } from 'react/jsx-runtime';
|
|
9
9
|
|
|
10
10
|
var _excluded = ["children", "sticky"];
|
|
@@ -3,9 +3,9 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styled, { css, ThemeProvider } from 'styled-components';
|
|
5
5
|
import { spacingsTemplate, typographyTemplate, bordersTemplate, useToken } from '@equinor/eds-utils';
|
|
6
|
-
import { token } from './HeaderCell.tokens.
|
|
6
|
+
import { token } from './HeaderCell.tokens.mjs';
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
|
-
import { useEds } from '../../EdsProvider/eds.context.
|
|
8
|
+
import { useEds } from '../../EdsProvider/eds.context.mjs';
|
|
9
9
|
|
|
10
10
|
var _excluded = ["children", "sort"];
|
|
11
11
|
var StyledTableCell = styled.th.withConfig({
|
|
@@ -3,7 +3,7 @@ import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructurin
|
|
|
3
3
|
import _extends from '@babel/runtime/helpers/extends';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
5
|
import styled from 'styled-components';
|
|
6
|
-
import { token } from './Row.tokens.
|
|
6
|
+
import { token } from './Row.tokens.mjs';
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
var StyledRow = styled.tr.withConfig({
|
|
@@ -2,7 +2,7 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
|
-
import { tableCell } from './DataCell/DataCell.tokens.
|
|
5
|
+
import { tableCell } from './DataCell/DataCell.tokens.mjs';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
var _excluded = ["children"];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Table as Table$1 } from './Table.
|
|
2
|
-
import { Body } from './Body.
|
|
3
|
-
import { Cell } from './Cell.
|
|
4
|
-
import { Caption } from './Caption.
|
|
5
|
-
import { Head } from './Head/Head.
|
|
6
|
-
import { Row } from './Row/Row.
|
|
1
|
+
import { Table as Table$1 } from './Table.mjs';
|
|
2
|
+
import { Body } from './Body.mjs';
|
|
3
|
+
import { Cell } from './Cell.mjs';
|
|
4
|
+
import { Caption } from './Caption.mjs';
|
|
5
|
+
import { Head } from './Head/Head.mjs';
|
|
6
|
+
import { Row } from './Row/Row.mjs';
|
|
7
7
|
|
|
8
8
|
var Table = Table$1;
|
|
9
9
|
Table.Body = Body;
|
|
@@ -2,12 +2,12 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styled, { css, ThemeProvider } from 'styled-components';
|
|
5
|
-
import { List } from '../List/index.
|
|
5
|
+
import { List } from '../List/index.mjs';
|
|
6
6
|
import { typographyTemplate, useToken } from '@equinor/eds-utils';
|
|
7
|
-
import { tableOfContents } from './TableOfContents.tokens.
|
|
7
|
+
import { tableOfContents } from './TableOfContents.tokens.mjs';
|
|
8
8
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
|
-
import { Typography } from '../Typography/Typography.
|
|
10
|
-
import { useEds } from '../EdsProvider/eds.context.
|
|
9
|
+
import { Typography } from '../Typography/Typography.mjs';
|
|
10
|
+
import { useEds } from '../EdsProvider/eds.context.mjs';
|
|
11
11
|
|
|
12
12
|
var _excluded = ["children", "sticky", "label"];
|
|
13
13
|
var StyledTableOfContents = styled.nav.withConfig({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TableOfContents as TableOfContents$1 } from './TableOfContents.
|
|
2
|
-
import { LinkItem } from './LinkItem.
|
|
1
|
+
import { TableOfContents as TableOfContents$1 } from './TableOfContents.mjs';
|
|
2
|
+
import { LinkItem } from './LinkItem.mjs';
|
|
3
3
|
|
|
4
4
|
var TableOfContents = TableOfContents$1;
|
|
5
5
|
TableOfContents.LinkItem = LinkItem;
|
|
@@ -4,7 +4,7 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
|
|
|
4
4
|
import { forwardRef, useContext, useRef, useState, useCallback, useEffect, Children, cloneElement } from 'react';
|
|
5
5
|
import styled from 'styled-components';
|
|
6
6
|
import { mergeRefs } from '@equinor/eds-utils';
|
|
7
|
-
import { TabsContext } from './Tabs.context.
|
|
7
|
+
import { TabsContext } from './Tabs.context.mjs';
|
|
8
8
|
import { jsx } from 'react/jsx-runtime';
|
|
9
9
|
|
|
10
10
|
var _excluded = ["children"];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import { forwardRef, useContext, Children, cloneElement } from 'react';
|
|
4
|
-
import { TabsContext } from './Tabs.context.
|
|
4
|
+
import { TabsContext } from './Tabs.context.mjs';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
var _excluded = ["children"];
|
|
@@ -12,10 +12,10 @@ var TabPanels = /*#__PURE__*/forwardRef(function TabPanels(_ref, ref) {
|
|
|
12
12
|
activeTab = _useContext.activeTab,
|
|
13
13
|
tabsId = _useContext.tabsId;
|
|
14
14
|
var Panels = Children.map(children, function (child, index) {
|
|
15
|
+
if (activeTab !== index) return null;
|
|
15
16
|
return /*#__PURE__*/cloneElement(child, {
|
|
16
17
|
id: "".concat(tabsId, "-panel-").concat(index + 1),
|
|
17
|
-
'aria-labelledby': "".concat(tabsId, "-tab-").concat(index + 1)
|
|
18
|
-
hidden: activeTab !== index
|
|
18
|
+
'aria-labelledby': "".concat(tabsId, "-tab-").concat(index + 1)
|
|
19
19
|
});
|
|
20
20
|
});
|
|
21
21
|
return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({
|
|
@@ -2,12 +2,12 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
2
2
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
3
3
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
4
4
|
import { forwardRef, useRef, useMemo, useState, useEffect } from 'react';
|
|
5
|
-
import { TabsProvider } from './Tabs.context.
|
|
6
|
-
import { token } from './Tabs.tokens.
|
|
5
|
+
import { TabsProvider } from './Tabs.context.mjs';
|
|
6
|
+
import { token } from './Tabs.tokens.mjs';
|
|
7
7
|
import { useId, mergeRefs, useToken } from '@equinor/eds-utils';
|
|
8
8
|
import { ThemeProvider } from 'styled-components';
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
|
-
import { useEds } from '../EdsProvider/eds.context.
|
|
10
|
+
import { useEds } from '../EdsProvider/eds.context.mjs';
|
|
11
11
|
|
|
12
12
|
var _excluded = ["activeTab", "onChange", "onBlur", "onFocus", "variant", "scrollable", "id"];
|
|
13
13
|
var Tabs = /*#__PURE__*/forwardRef(function Tabs(_ref, ref) {
|