@norges-domstoler/dds-components 5.4.1 → 5.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/dist/cjs/components/Breadcrumbs/Breadcrumbs.d.ts +3 -3
- package/dist/cjs/components/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -3
- package/dist/cjs/components/Button/Button.d.ts +3 -3
- package/dist/cjs/components/Button/Button.stories.d.ts +3 -3
- package/dist/cjs/components/Card/CardAccordion/CardAccordion.d.ts +3 -3
- package/dist/cjs/components/Card/CardAccordion/CardAccordionBody.d.ts +3 -3
- package/dist/cjs/components/Card/CardAccordion/CardAccordionHeader.d.ts +3 -3
- package/dist/cjs/components/Checkbox/Checkbox.d.ts +3 -3
- package/dist/cjs/components/Checkbox/Checkbox.stories.d.ts +3 -3
- package/dist/cjs/components/Chip/Chip.d.ts +3 -3
- package/dist/cjs/components/Chip/Chip.stories.d.ts +3 -3
- package/dist/cjs/components/Datepicker/Datepicker.d.ts +2 -2
- package/dist/cjs/components/DescriptionList/DescriptionList.d.ts +3 -3
- package/dist/cjs/components/DescriptionList/DescriptionList.stories.d.ts +3 -3
- package/dist/cjs/components/DescriptionList/DescriptionListDesc.d.ts +3 -3
- package/dist/cjs/components/DescriptionList/DescriptionListGroup.d.ts +3 -3
- package/dist/cjs/components/Divider/Divider.d.ts +3 -3
- package/dist/cjs/components/Divider/Divider.stories.d.ts +3 -3
- package/dist/cjs/components/Drawer/Drawer.d.ts +3 -3
- package/dist/cjs/components/Drawer/Drawer.stories.d.ts +3 -3
- package/dist/cjs/components/GlobalMessage/GlobalMessage.d.ts +3 -3
- package/dist/cjs/components/GlobalMessage/GlobalMessage.stories.d.ts +3 -3
- package/dist/cjs/components/InputMessage/InputMessage.d.ts +3 -3
- package/dist/cjs/components/InputMessage/InputMessage.stories.d.ts +3 -3
- package/dist/cjs/components/InternalHeader/InternalHeader.styles.d.ts +3 -3
- package/dist/cjs/components/List/List.d.ts +3 -3
- package/dist/cjs/components/List/List.stories.d.ts +3 -3
- package/dist/cjs/components/LocalMessage/LocalMessage.d.ts +3 -3
- package/dist/cjs/components/LocalMessage/LocalMessage.stories.d.ts +3 -3
- package/dist/cjs/components/Modal/Modal.d.ts +3 -3
- package/dist/cjs/components/Modal/Modal.stories.d.ts +3 -3
- package/dist/cjs/components/Modal/ModalBody.d.ts +3 -3
- package/dist/cjs/components/OverflowMenu/OverflowMenu.d.ts +3 -3
- package/dist/cjs/components/OverflowMenu/OverflowMenu.stories.d.ts +3 -3
- package/dist/cjs/components/Pagination/Pagination.d.ts +3 -3
- package/dist/cjs/components/Pagination/Pagination.stories.d.ts +3 -3
- package/dist/cjs/components/Popover/Popover.d.ts +3 -3
- package/dist/cjs/components/Popover/Popover.stories.d.ts +3 -3
- package/dist/cjs/components/RadioButton/RadioButton.d.ts +3 -3
- package/dist/cjs/components/RadioButton/RadioButton.stories.d.ts +3 -3
- package/dist/cjs/components/SkipToContent/SkipToContent.d.ts +3 -3
- package/dist/cjs/components/SkipToContent/SkipToContent.stories.d.ts +3 -3
- package/dist/cjs/components/Spinner/Spinner.d.ts +1 -1
- package/dist/cjs/components/Stepper/Stepper.d.ts +3 -3
- package/dist/cjs/components/Stepper/Stepper.stories.d.ts +3 -3
- package/dist/cjs/components/Tabs/Tab.d.ts +3 -3
- package/dist/cjs/components/Tabs/TabPanel.d.ts +3 -3
- package/dist/cjs/components/Tabs/Tabs.d.ts +3 -3
- package/dist/cjs/components/Tag/Tag.d.ts +3 -3
- package/dist/cjs/components/Tag/Tag.stories.d.ts +3 -3
- package/dist/cjs/components/ToggleBar/ToggleRadio.d.ts +4 -4
- package/dist/cjs/components/ToggleButton/ToggleButton.d.ts +3 -3
- package/dist/cjs/components/ToggleButton/ToggleButton.stories.d.ts +3 -3
- package/dist/cjs/components/Tooltip/Tooltip.d.ts +4 -4
- package/dist/cjs/components/Tooltip/Tooltip.stories.d.ts +3 -3
- package/dist/cjs/components/Typography/Caption/Caption.d.ts +10 -0
- package/dist/cjs/components/Typography/Caption/Caption.stories.d.ts +28 -0
- package/dist/cjs/components/Typography/Caption/index.d.ts +1 -0
- package/dist/cjs/components/Typography/Heading/Heading.d.ts +21 -0
- package/dist/cjs/components/Typography/Heading/Heading.stories.d.ts +37 -0
- package/dist/cjs/components/Typography/Heading/index.d.ts +1 -0
- package/dist/cjs/components/Typography/Label/Label.d.ts +13 -0
- package/dist/cjs/components/Typography/Label/Label.stories.d.ts +30 -0
- package/dist/cjs/components/Typography/Label/index.d.ts +1 -0
- package/dist/cjs/components/Typography/Legend/Legend.d.ts +10 -0
- package/dist/cjs/components/Typography/Legend/Legend.stories.d.ts +28 -0
- package/dist/cjs/components/Typography/Legend/index.d.ts +1 -0
- package/dist/cjs/components/Typography/Link/Link.d.ts +23 -0
- package/dist/cjs/components/Typography/Link/Link.stories.d.ts +47 -0
- package/dist/cjs/components/Typography/Link/index.d.ts +1 -0
- package/dist/cjs/components/Typography/Paragraph/Paragraph.d.ts +16 -0
- package/dist/cjs/components/Typography/Paragraph/Paragraph.stories.d.ts +35 -0
- package/dist/cjs/components/Typography/Paragraph/index.d.ts +1 -0
- package/dist/cjs/components/Typography/Typography/Typography.d.ts +25 -0
- package/dist/{components → cjs/components/Typography}/Typography/Typography.stories.d.ts +2 -1
- package/dist/cjs/components/Typography/Typography/Typography.types.d.ts +37 -0
- package/dist/cjs/components/Typography/Typography/index.d.ts +2 -0
- package/dist/cjs/components/Typography/Typography.tokens.d.ts +401 -100
- package/dist/cjs/components/Typography/Typography.utils.d.ts +9 -0
- package/dist/cjs/components/Typography/index.d.ts +6 -1
- package/dist/cjs/components/Typography/stories/Examples.stories.d.ts +5 -0
- package/dist/cjs/components/Typography/stories/TypographyComponents.stories.d.ts +42 -0
- package/dist/cjs/components/Typography/{Body.stories.d.ts → stories/TypographyTypes.stories.d.ts} +1 -1
- package/dist/cjs/index.js +741 -688
- package/dist/cjs/types/BaseComponentProps.d.ts +2 -2
- package/dist/cjs/utils/color.d.ts +24 -0
- package/dist/components/Breadcrumbs/Breadcrumb.js +2 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +3 -3
- package/dist/components/Breadcrumbs/Breadcrumbs.js +3 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -3
- package/dist/components/Button/Button.d.ts +3 -3
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/Button/Button.stories.d.ts +3 -3
- package/dist/components/Button/Button.styles.js +6 -3
- package/dist/components/Button/Button.tokens.js +6 -0
- package/dist/components/Card/Card.js +6 -2
- package/dist/components/Card/Card.tokens.js +5 -1
- package/dist/components/Card/CardAccordion/CardAccordion.d.ts +3 -3
- package/dist/components/Card/CardAccordion/CardAccordionBody.d.ts +3 -3
- package/dist/components/Card/CardAccordion/CardAccordionHeader.d.ts +3 -3
- package/dist/components/Card/CardAccordion/CardAccordionHeader.js +11 -0
- package/dist/components/Checkbox/Checkbox.d.ts +3 -3
- package/dist/components/Checkbox/Checkbox.js +10 -2
- package/dist/components/Checkbox/Checkbox.stories.d.ts +3 -3
- package/dist/components/Checkbox/Checkbox.styles.js +5 -1
- package/dist/components/Checkbox/Checkbox.tokens.js +4 -1
- package/dist/components/Checkbox/CheckboxGroup.js +12 -4
- package/dist/components/Chip/Chip.d.ts +3 -3
- package/dist/components/Chip/Chip.js +2 -1
- package/dist/components/Chip/Chip.stories.d.ts +3 -3
- package/dist/components/Datepicker/Datepicker.d.ts +2 -2
- package/dist/components/Datepicker/Datepicker.js +16 -6
- package/dist/components/DescriptionList/DescriptionList.d.ts +3 -3
- package/dist/components/DescriptionList/DescriptionList.js +7 -3
- package/dist/components/DescriptionList/DescriptionList.stories.d.ts +3 -3
- package/dist/components/DescriptionList/DescriptionListDesc.d.ts +3 -3
- package/dist/components/DescriptionList/DescriptionListDesc.js +1 -1
- package/dist/components/DescriptionList/DescriptionListGroup.d.ts +3 -3
- package/dist/components/Divider/Divider.d.ts +3 -3
- package/dist/components/Divider/Divider.js +1 -1
- package/dist/components/Divider/Divider.stories.d.ts +3 -3
- package/dist/components/Drawer/Drawer.d.ts +3 -3
- package/dist/components/Drawer/Drawer.js +25 -9
- package/dist/components/Drawer/Drawer.stories.d.ts +3 -3
- package/dist/components/GlobalMessage/GlobalMessage.d.ts +3 -3
- package/dist/components/GlobalMessage/GlobalMessage.js +5 -3
- package/dist/components/GlobalMessage/GlobalMessage.stories.d.ts +3 -3
- package/dist/components/GlobalMessage/GlobalMessage.tokens.js +4 -1
- package/dist/components/InputMessage/InputMessage.d.ts +3 -3
- package/dist/components/InputMessage/InputMessage.js +5 -3
- package/dist/components/InputMessage/InputMessage.stories.d.ts +3 -3
- package/dist/components/InternalHeader/InternalHeader.js +5 -3
- package/dist/components/InternalHeader/InternalHeader.styles.d.ts +3 -3
- package/dist/components/InternalHeader/InternalHeader.styles.js +8 -2
- package/dist/components/InternalHeader/NavigationItem.js +5 -1
- package/dist/components/List/List.d.ts +3 -3
- package/dist/components/List/List.js +6 -2
- package/dist/components/List/List.stories.d.ts +3 -3
- package/dist/components/LocalMessage/LocalMessage.d.ts +3 -3
- package/dist/components/LocalMessage/LocalMessage.js +10 -4
- package/dist/components/LocalMessage/LocalMessage.stories.d.ts +3 -3
- package/dist/components/LocalMessage/LocalMessage.tokens.js +5 -2
- package/dist/components/Modal/Modal.d.ts +3 -3
- package/dist/components/Modal/Modal.js +23 -9
- package/dist/components/Modal/Modal.stories.d.ts +3 -3
- package/dist/components/Modal/Modal.tokens.js +5 -0
- package/dist/components/Modal/ModalBody.d.ts +3 -3
- package/dist/components/Modal/ModalBody.js +3 -1
- package/dist/components/OverflowMenu/OverflowMenu.d.ts +3 -3
- package/dist/components/OverflowMenu/OverflowMenu.js +17 -9
- package/dist/components/OverflowMenu/OverflowMenu.stories.d.ts +3 -3
- package/dist/components/OverflowMenu/OverflowMenuItem.js +8 -2
- package/dist/components/Pagination/Pagination.d.ts +3 -3
- package/dist/components/Pagination/Pagination.js +9 -7
- package/dist/components/Pagination/Pagination.stories.d.ts +3 -3
- package/dist/components/Popover/Popover.d.ts +3 -3
- package/dist/components/Popover/Popover.js +12 -4
- package/dist/components/Popover/Popover.stories.d.ts +3 -3
- package/dist/components/Popover/PopoverGroup.js +3 -1
- package/dist/components/RadioButton/RadioButton.d.ts +3 -3
- package/dist/components/RadioButton/RadioButton.js +9 -2
- package/dist/components/RadioButton/RadioButton.stories.d.ts +3 -3
- package/dist/components/RadioButton/RadioButton.styles.js +4 -0
- package/dist/components/RadioButton/RadioButton.tokens.js +4 -1
- package/dist/components/RadioButton/RadioButtonGroup.js +12 -4
- package/dist/components/ScrollableContainer/ScrollableContainer.js +5 -1
- package/dist/components/ScrollableContainer/Scrollbar.js +1 -1
- package/dist/components/Search/Search.js +12 -4
- package/dist/components/Select/Select.js +13 -5
- package/dist/components/Select/Select.styles.js +14 -5
- package/dist/components/Select/Select.tokens.js +4 -0
- package/dist/components/SkipToContent/SkipToContent.d.ts +3 -3
- package/dist/components/SkipToContent/SkipToContent.js +4 -0
- package/dist/components/SkipToContent/SkipToContent.stories.d.ts +3 -3
- package/dist/components/SkipToContent/SkipToContent.tokens.js +5 -0
- package/dist/components/Spinner/Spinner.d.ts +1 -1
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Stepper/Step.js +6 -2
- package/dist/components/Stepper/Stepper.d.ts +3 -3
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/components/Stepper/Stepper.stories.d.ts +3 -3
- package/dist/components/Table/Cell.tokens.js +5 -0
- package/dist/components/Table/Row.tokens.js +5 -0
- package/dist/components/Table/SortCell.js +10 -4
- package/dist/components/Table/Table.js +9 -3
- package/dist/components/Table/TableWrapper.js +2 -0
- package/dist/components/Tabs/Tab.d.ts +3 -3
- package/dist/components/Tabs/Tab.js +9 -3
- package/dist/components/Tabs/TabList.js +8 -4
- package/dist/components/Tabs/TabPanel.d.ts +3 -3
- package/dist/components/Tabs/TabPanel.js +5 -1
- package/dist/components/Tabs/TabPanels.js +3 -1
- package/dist/components/Tabs/Tabs.d.ts +3 -3
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.tokens.js +6 -1
- package/dist/components/Tag/Tag.d.ts +3 -3
- package/dist/components/Tag/Tag.js +2 -1
- package/dist/components/Tag/Tag.stories.d.ts +3 -3
- package/dist/components/TextInput/CharCounter.js +3 -2
- package/dist/components/TextInput/TextInput.js +9 -3
- package/dist/components/TextInput/TextInput.styles.js +9 -1
- package/dist/components/ToggleBar/ToggleBar.js +10 -4
- package/dist/components/ToggleBar/ToggleBar.tokens.js +1 -0
- package/dist/components/ToggleBar/ToggleRadio.d.ts +4 -4
- package/dist/components/ToggleBar/ToggleRadio.js +8 -2
- package/dist/components/ToggleBar/ToggleRadio.styles.js +11 -0
- package/dist/components/ToggleButton/ToggleButton.d.ts +3 -3
- package/dist/components/ToggleButton/ToggleButton.js +14 -5
- package/dist/components/ToggleButton/ToggleButton.stories.d.ts +3 -3
- package/dist/components/ToggleButton/ToggleButton.tokens.js +6 -1
- package/dist/components/ToggleButton/ToggleButtonGroup.js +3 -2
- package/dist/components/Tooltip/Tooltip.d.ts +4 -4
- package/dist/components/Tooltip/Tooltip.js +6 -4
- package/dist/components/Tooltip/Tooltip.stories.d.ts +3 -3
- package/dist/components/Tooltip/Tooltip.styles.js +7 -3
- package/dist/components/Typography/Caption/Caption.d.ts +10 -0
- package/dist/components/Typography/Caption/Caption.js +23 -0
- package/dist/components/Typography/Caption/Caption.stories.d.ts +28 -0
- package/dist/components/Typography/Caption/index.d.ts +1 -0
- package/dist/components/Typography/Heading/Heading.d.ts +21 -0
- package/dist/components/Typography/Heading/Heading.js +56 -0
- package/dist/components/Typography/Heading/Heading.stories.d.ts +37 -0
- package/dist/components/Typography/Heading/index.d.ts +1 -0
- package/dist/components/Typography/Label/Label.d.ts +13 -0
- package/dist/components/Typography/Label/Label.js +22 -0
- package/dist/components/Typography/Label/Label.stories.d.ts +30 -0
- package/dist/components/Typography/Label/index.d.ts +1 -0
- package/dist/components/Typography/Legend/Legend.d.ts +10 -0
- package/dist/components/Typography/Legend/Legend.js +23 -0
- package/dist/components/Typography/Legend/Legend.stories.d.ts +28 -0
- package/dist/components/Typography/Legend/index.d.ts +1 -0
- package/dist/components/Typography/Link/Link.d.ts +23 -0
- package/dist/components/Typography/Link/Link.js +45 -0
- package/dist/components/Typography/Link/Link.stories.d.ts +47 -0
- package/dist/components/Typography/Link/index.d.ts +1 -0
- package/dist/components/Typography/Paragraph/Paragraph.d.ts +16 -0
- package/dist/components/Typography/Paragraph/Paragraph.js +25 -0
- package/dist/components/Typography/Paragraph/Paragraph.stories.d.ts +35 -0
- package/dist/components/Typography/Paragraph/index.d.ts +1 -0
- package/dist/components/Typography/Typography/Typography.d.ts +25 -0
- package/dist/components/Typography/Typography/Typography.js +101 -0
- package/dist/{cjs/components → components/Typography}/Typography/Typography.stories.d.ts +2 -1
- package/dist/components/Typography/Typography/Typography.types.d.ts +37 -0
- package/dist/components/Typography/Typography/index.d.ts +2 -0
- package/dist/components/Typography/Typography.tokens.d.ts +401 -100
- package/dist/components/Typography/Typography.tokens.js +354 -482
- package/dist/components/Typography/Typography.utils.d.ts +9 -0
- package/dist/components/Typography/Typography.utils.js +75 -0
- package/dist/components/Typography/index.d.ts +6 -1
- package/dist/components/Typography/stories/Examples.stories.d.ts +5 -0
- package/dist/components/Typography/stories/TypographyComponents.stories.d.ts +42 -0
- package/dist/components/Typography/{Body.stories.d.ts → stories/TypographyTypes.stories.d.ts} +1 -1
- package/dist/helpers/Input/Input.styles.js +11 -3
- package/dist/helpers/Input/Input.tokens.js +4 -1
- package/dist/helpers/Paper/Paper.js +6 -2
- package/dist/hooks/useScreenSize.js +17 -0
- package/dist/index.js +7 -1
- package/dist/types/BaseComponentProps.d.ts +2 -2
- package/dist/utils/color.d.ts +24 -0
- package/dist/utils/color.js +31 -1
- package/package.json +3 -3
- package/dist/cjs/components/Typography/Examples.stories.d.ts +0 -7
- package/dist/cjs/components/Typography/Typography.d.ts +0 -49
- package/dist/cjs/components/Typography/Typography.types.d.ts +0 -13
- package/dist/components/Typography/Examples.stories.d.ts +0 -7
- package/dist/components/Typography/Typography.d.ts +0 -49
- package/dist/components/Typography/Typography.js +0 -172
- package/dist/components/Typography/Typography.types.d.ts +0 -13
|
@@ -2,8 +2,10 @@ import { __rest } from 'tslib';
|
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
|
-
import { ScrollableContainer } from '../ScrollableContainer/ScrollableContainer.js';
|
|
6
5
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
6
|
+
import '../ScrollableContainer/Scrollbar.js';
|
|
7
|
+
import { ScrollableContainer } from '../ScrollableContainer/ScrollableContainer.js';
|
|
8
|
+
import '../ScrollableContainer/ScrollableContainer.tokens.js';
|
|
7
9
|
|
|
8
10
|
var Container = styled.div.withConfig({
|
|
9
11
|
displayName: "ModalBody__Container",
|
|
@@ -4,9 +4,7 @@ declare type ContainerProps = {
|
|
|
4
4
|
};
|
|
5
5
|
export declare const Container: import("styled-components").StyledComponent<"div", any, ContainerProps, never>;
|
|
6
6
|
export declare const OverflowMenuList: import("styled-components").StyledComponent<"ul", any, {}, never>;
|
|
7
|
-
export declare const OverflowMenu: import("react").ForwardRefExoticComponent<{
|
|
8
|
-
htmlProps?: import("react").HTMLAttributes<HTMLDivElement> | undefined;
|
|
9
|
-
} & Pick<import("react").HTMLAttributes<HTMLDivElement>, "className" | "id"> & {
|
|
7
|
+
export declare const OverflowMenu: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLDivElement>, "className" | "id"> & {
|
|
10
8
|
items?: OverflowMenuContextItem[] | undefined;
|
|
11
9
|
userProps?: ({
|
|
12
10
|
name: string;
|
|
@@ -18,5 +16,7 @@ export declare const OverflowMenu: import("react").ForwardRefExoticComponent<{
|
|
|
18
16
|
anchorRef?: import("react").RefObject<HTMLButtonElement> | undefined;
|
|
19
17
|
placement?: import("../../hooks").Placement | undefined;
|
|
20
18
|
offset?: number | undefined;
|
|
19
|
+
} & {
|
|
20
|
+
htmlProps?: import("react").HTMLAttributes<HTMLDivElement> | undefined;
|
|
21
21
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
22
22
|
export {};
|
|
@@ -3,20 +3,28 @@ import { __rest } from 'tslib';
|
|
|
3
3
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
4
4
|
import { forwardRef, useEffect } from 'react';
|
|
5
5
|
import styled from 'styled-components';
|
|
6
|
-
import { OverflowMenuItem } from './OverflowMenuItem.js';
|
|
7
|
-
import { overflowMenuTokens } from './OverflowMenu.tokens.js';
|
|
8
|
-
import { typographyTokens } from '../Typography/Typography.tokens.js';
|
|
9
6
|
import { visibilityTransition } from '../../helpers/styling/visibilityTransition.js';
|
|
10
|
-
import
|
|
11
|
-
import
|
|
7
|
+
import '../../helpers/styling/focusVisible.js';
|
|
8
|
+
import '../../helpers/styling/hover.js';
|
|
9
|
+
import '../../helpers/styling/focus.js';
|
|
10
|
+
import '../../helpers/styling/danger.js';
|
|
11
|
+
import { selection } from '../../helpers/styling/selection.js';
|
|
12
|
+
import '../ScrollableContainer/Scrollbar.js';
|
|
13
|
+
import '../ScrollableContainer/ScrollableContainer.js';
|
|
14
|
+
import { scrollbarStyling } from '../ScrollableContainer/scrollbarStyling.js';
|
|
15
|
+
import { useCombinedRef } from '../../hooks/useCombinedRefs.js';
|
|
12
16
|
import { useOnClickOutside } from '../../hooks/useOnClickOutside.js';
|
|
13
17
|
import { useOnKeyDown } from '../../hooks/useOnKeyDown.js';
|
|
18
|
+
import { useFloatPosition } from '../../hooks/useFloatPosition.js';
|
|
14
19
|
import { useRoveFocus } from '../../hooks/useRoveFocus.js';
|
|
15
|
-
import { PersonIcon } from '../../icons/tsx/person.js';
|
|
16
20
|
import { useId } from '../../hooks/useId.js';
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
21
|
+
import '../../hooks/useScreenSize.js';
|
|
22
|
+
import { OverflowMenuItem } from './OverflowMenuItem.js';
|
|
23
|
+
import { overflowMenuTokens } from './OverflowMenu.tokens.js';
|
|
24
|
+
import { Divider } from '../Divider/Divider.js';
|
|
19
25
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
26
|
+
import '../../icons/utils/StyledSvg.js';
|
|
27
|
+
import { PersonIcon } from '../../icons/tsx/person.js';
|
|
20
28
|
|
|
21
29
|
var container = overflowMenuTokens.container,
|
|
22
30
|
divider = overflowMenuTokens.divider;
|
|
@@ -26,7 +34,7 @@ var Container = styled.div.withConfig({
|
|
|
26
34
|
})(["box-sizing:border-box;z-index:3;overflow-y:auto;min-width:180px;max-width:300px;", " border:", ";background-color:", ";border-radius:", ";", " ", " *::selection{", "}"], function (_ref) {
|
|
27
35
|
var isOpen = _ref.isOpen;
|
|
28
36
|
return visibilityTransition(isOpen);
|
|
29
|
-
}, container.border, container.backgroundColor, container.borderRadius, scrollbarStyling.webkit, scrollbarStyling.firefox,
|
|
37
|
+
}, container.border, container.backgroundColor, container.borderRadius, scrollbarStyling.webkit, scrollbarStyling.firefox, selection);
|
|
30
38
|
var OverflowMenuList = styled.ul.withConfig({
|
|
31
39
|
displayName: "OverflowMenu__OverflowMenuList",
|
|
32
40
|
componentId: "sc-kh744b-1"
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { OverflowMenuProps, OverflowMenuContextItem, OverflowMenuNavItem } from '.';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import("react").ForwardRefExoticComponent<{
|
|
5
|
-
htmlProps?: import("react").HTMLAttributes<HTMLDivElement> | undefined;
|
|
6
|
-
} & Pick<import("react").HTMLAttributes<HTMLDivElement>, "id" | "className"> & {
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLDivElement>, "id" | "className"> & {
|
|
7
5
|
items?: OverflowMenuContextItem[] | undefined;
|
|
8
6
|
userProps?: ({
|
|
9
7
|
name: string;
|
|
@@ -15,6 +13,8 @@ declare const _default: {
|
|
|
15
13
|
anchorRef?: import("react").RefObject<HTMLButtonElement> | undefined;
|
|
16
14
|
placement?: import("../../hooks").Placement | undefined;
|
|
17
15
|
offset?: number | undefined;
|
|
16
|
+
} & {
|
|
17
|
+
htmlProps?: import("react").HTMLAttributes<HTMLDivElement> | undefined;
|
|
18
18
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
19
19
|
};
|
|
20
20
|
export default _default;
|
|
@@ -3,10 +3,16 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
3
3
|
import { forwardRef, useRef, useEffect, useCallback } from 'react';
|
|
4
4
|
import styled, { css } from 'styled-components';
|
|
5
5
|
import { overflowMenuTokens } from './OverflowMenu.tokens.js';
|
|
6
|
-
import { useCombinedRef } from '../../hooks/useCombinedRefs.js';
|
|
7
|
-
import { focusVisibleLink } from '../../helpers/styling/focusVisible.js';
|
|
8
6
|
import { Icon } from '../Icon/Icon.js';
|
|
7
|
+
import { useCombinedRef } from '../../hooks/useCombinedRefs.js';
|
|
8
|
+
import '../../hooks/useFloatPosition.js';
|
|
9
|
+
import '../../hooks/useScreenSize.js';
|
|
9
10
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
11
|
+
import { focusVisibleLink } from '../../helpers/styling/focusVisible.js';
|
|
12
|
+
import '../../helpers/styling/hover.js';
|
|
13
|
+
import '../../helpers/styling/focus.js';
|
|
14
|
+
import '../../helpers/styling/danger.js';
|
|
15
|
+
import '../../helpers/styling/selection.js';
|
|
10
16
|
|
|
11
17
|
var element = overflowMenuTokens.element,
|
|
12
18
|
link = overflowMenuTokens.link;
|
|
@@ -26,9 +26,7 @@ export declare type PaginationProps = BaseComponentProps<HTMLElement, {
|
|
|
26
26
|
/**Spesifiserer om versjonen for små skjermer skal vises; den viser færre sideknapper og stacker subkomponentene. */
|
|
27
27
|
smallScreen?: boolean;
|
|
28
28
|
}, Omit<HTMLAttributes<HTMLElement>, 'onChange'>>;
|
|
29
|
-
export declare const Pagination: import("react").ForwardRefExoticComponent<{
|
|
30
|
-
htmlProps?: Omit<HTMLAttributes<HTMLElement>, "onChange"> | undefined;
|
|
31
|
-
} & Pick<Omit<HTMLAttributes<HTMLElement>, "onChange">, "className" | "id"> & {
|
|
29
|
+
export declare const Pagination: import("react").ForwardRefExoticComponent<Pick<Omit<HTMLAttributes<HTMLElement>, "onChange">, "className" | "id"> & {
|
|
32
30
|
/**Totalt antall elementer å paginere. */
|
|
33
31
|
itemsAmount: number;
|
|
34
32
|
/**Antall elementer per side ved innlastning av komponenten. */
|
|
@@ -49,4 +47,6 @@ export declare const Pagination: import("react").ForwardRefExoticComponent<{
|
|
|
49
47
|
onSelectOptionChange?: ((option: PaginationOption | null) => void) | undefined;
|
|
50
48
|
/**Spesifiserer om versjonen for små skjermer skal vises; den viser færre sideknapper og stacker subkomponentene. */
|
|
51
49
|
smallScreen?: boolean | undefined;
|
|
50
|
+
} & {
|
|
51
|
+
htmlProps?: Omit<HTMLAttributes<HTMLElement>, "onChange"> | undefined;
|
|
52
52
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -3,18 +3,20 @@ import { __rest } from 'tslib';
|
|
|
3
3
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
import { forwardRef, useState } from 'react';
|
|
5
5
|
import styled, { css } from 'styled-components';
|
|
6
|
+
import { Typography } from '../Typography/Typography/Typography.js';
|
|
7
|
+
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
8
|
+
import '../Typography/Link/Link.js';
|
|
9
|
+
import { Button } from '../Button/Button.js';
|
|
10
|
+
import { Select } from '../Select/Select.js';
|
|
6
11
|
import { PaginationGenerator } from './paginationGenerator.js';
|
|
12
|
+
import { Icon } from '../Icon/Icon.js';
|
|
7
13
|
import { paginationTokens } from './Pagination.tokens.js';
|
|
8
|
-
import
|
|
9
|
-
import { ChevronLeftIcon } from '../../icons/tsx/chevronLeft.js';
|
|
14
|
+
import '../../icons/utils/StyledSvg.js';
|
|
10
15
|
import { ChevronFirstIcon } from '../../icons/tsx/chevronFirst.js';
|
|
11
16
|
import { ChevronLastIcon } from '../../icons/tsx/chevronLast.js';
|
|
12
|
-
import {
|
|
13
|
-
import { Button } from '../Button/Button.js';
|
|
14
|
-
import { Icon } from '../Icon/Icon.js';
|
|
17
|
+
import { ChevronLeftIcon } from '../../icons/tsx/chevronLeft.js';
|
|
15
18
|
import { ChevronRightIcon } from '../../icons/tsx/chevronRight.js';
|
|
16
|
-
import {
|
|
17
|
-
import { Typography } from '../Typography/Typography.js';
|
|
19
|
+
import { MoreHorizontalIcon } from '../../icons/tsx/moreHorizontal.js';
|
|
18
20
|
|
|
19
21
|
var Nav = styled.nav.withConfig({
|
|
20
22
|
displayName: "Pagination__Nav",
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { PaginationProps } from '.';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import("react").ForwardRefExoticComponent<{
|
|
5
|
-
htmlProps?: Omit<import("react").HTMLAttributes<HTMLElement>, "onChange"> | undefined;
|
|
6
|
-
} & Pick<Omit<import("react").HTMLAttributes<HTMLElement>, "onChange">, "id" | "className"> & {
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").HTMLAttributes<HTMLElement>, "onChange">, "id" | "className"> & {
|
|
7
5
|
itemsAmount: number;
|
|
8
6
|
defaultItemsPerPage?: number | undefined;
|
|
9
7
|
defaultActivePage?: number | undefined;
|
|
@@ -14,6 +12,8 @@ declare const _default: {
|
|
|
14
12
|
onChange?: ((event: import("react").MouseEvent<HTMLButtonElement, MouseEvent>, page: number) => void) | undefined;
|
|
15
13
|
onSelectOptionChange?: ((option: import("./Pagination").PaginationOption | null) => void) | undefined;
|
|
16
14
|
smallScreen?: boolean | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
htmlProps?: Omit<import("react").HTMLAttributes<HTMLElement>, "onChange"> | undefined;
|
|
17
17
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
18
18
|
argTypes: {
|
|
19
19
|
withCounter: {
|
|
@@ -30,9 +30,7 @@ export declare type PopoverProps = BaseComponentPropsWithChildren<HTMLDivElement
|
|
|
30
30
|
/**Custom størrelse. */
|
|
31
31
|
sizeProps?: PopoverSizeProps;
|
|
32
32
|
}>;
|
|
33
|
-
export declare const Popover: import("react").ForwardRefExoticComponent<{
|
|
34
|
-
htmlProps?: import("react").HTMLAttributes<HTMLDivElement> | undefined;
|
|
35
|
-
} & Pick<import("react").HTMLAttributes<HTMLDivElement>, "className" | "id"> & {
|
|
33
|
+
export declare const Popover: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLDivElement>, "className" | "id"> & {
|
|
36
34
|
/**Tittel. */
|
|
37
35
|
title?: string | ReactNode;
|
|
38
36
|
/** **OBS!** Propen settes automatisk av `<PopoverGroup />`. Spesifiserer om `<Popover />` skal vises. */
|
|
@@ -53,4 +51,6 @@ export declare const Popover: import("react").ForwardRefExoticComponent<{
|
|
|
53
51
|
sizeProps?: PopoverSizeProps | undefined;
|
|
54
52
|
} & {
|
|
55
53
|
children?: ReactNode;
|
|
54
|
+
} & {
|
|
55
|
+
htmlProps?: import("react").HTMLAttributes<HTMLDivElement> | undefined;
|
|
56
56
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -3,13 +3,21 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { ddsBaseTokens } from '@norges-domstoler/dds-design-tokens';
|
|
4
4
|
import { forwardRef, useEffect } from 'react';
|
|
5
5
|
import styled, { css } from 'styled-components';
|
|
6
|
-
import { popoverTokens } from './Popover.tokens.js';
|
|
7
6
|
import { visibilityTransition } from '../../helpers/styling/visibilityTransition.js';
|
|
8
|
-
import
|
|
9
|
-
import
|
|
7
|
+
import '../../helpers/styling/focusVisible.js';
|
|
8
|
+
import '../../helpers/styling/hover.js';
|
|
9
|
+
import '../../helpers/styling/focus.js';
|
|
10
|
+
import '../../helpers/styling/danger.js';
|
|
11
|
+
import '../../helpers/styling/selection.js';
|
|
10
12
|
import { useCombinedRef } from '../../hooks/useCombinedRefs.js';
|
|
13
|
+
import { useFloatPosition } from '../../hooks/useFloatPosition.js';
|
|
14
|
+
import '../../hooks/useScreenSize.js';
|
|
11
15
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
12
|
-
import {
|
|
16
|
+
import { Button } from '../Button/Button.js';
|
|
17
|
+
import { Typography } from '../Typography/Typography/Typography.js';
|
|
18
|
+
import '../Typography/Link/Link.js';
|
|
19
|
+
import { popoverTokens } from './Popover.tokens.js';
|
|
20
|
+
import '../../icons/utils/StyledSvg.js';
|
|
13
21
|
import { CloseIcon } from '../../icons/tsx/close.js';
|
|
14
22
|
|
|
15
23
|
var Spacing = ddsBaseTokens.spacing;
|
|
@@ -2,9 +2,7 @@ import { PopoverProps } from '.';
|
|
|
2
2
|
import { Placement } from '../../hooks';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: import("react").ForwardRefExoticComponent<{
|
|
6
|
-
htmlProps?: import("react").HTMLAttributes<HTMLDivElement> | undefined;
|
|
7
|
-
} & Pick<import("react").HTMLAttributes<HTMLDivElement>, "id" | "className"> & {
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLDivElement>, "id" | "className"> & {
|
|
8
6
|
title?: import("react").ReactNode;
|
|
9
7
|
isOpen?: boolean | undefined;
|
|
10
8
|
withCloseButton?: boolean | undefined;
|
|
@@ -16,6 +14,8 @@ declare const _default: {
|
|
|
16
14
|
sizeProps?: import("./Popover").PopoverSizeProps | undefined;
|
|
17
15
|
} & {
|
|
18
16
|
children?: import("react").ReactNode;
|
|
17
|
+
} & {
|
|
18
|
+
htmlProps?: import("react").HTMLAttributes<HTMLDivElement> | undefined;
|
|
19
19
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
20
|
argTypes: {
|
|
21
21
|
withCloseButton: {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { slicedToArray as _slicedToArray } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useEffect, useId, useRef, Children, isValidElement, cloneElement } from 'react';
|
|
4
|
-
import { useOnKeyDown } from '../../hooks/useOnKeyDown.js';
|
|
5
4
|
import { useOnClickOutside } from '../../hooks/useOnClickOutside.js';
|
|
5
|
+
import { useOnKeyDown } from '../../hooks/useOnKeyDown.js';
|
|
6
|
+
import '../../hooks/useFloatPosition.js';
|
|
7
|
+
import '../../hooks/useScreenSize.js';
|
|
6
8
|
|
|
7
9
|
var PopoverGroup = function PopoverGroup(_ref) {
|
|
8
10
|
var _ref$isOpen = _ref.isOpen,
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
export declare const RadioButton: import("react").ForwardRefExoticComponent<{
|
|
2
|
-
htmlProps?: Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "name" | "readOnly" | "checked" | "value" | "required" | "onChange" | "aria-describedby"> | undefined;
|
|
3
|
-
} & Pick<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "name" | "readOnly" | "checked" | "value" | "required" | "onChange" | "aria-describedby">, "id" | "className"> & {
|
|
1
|
+
export declare const RadioButton: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "name" | "readOnly" | "checked" | "value" | "required" | "onChange" | "aria-describedby">, "id" | "className"> & {
|
|
4
2
|
label?: string | undefined;
|
|
5
3
|
disabled?: boolean | undefined;
|
|
6
4
|
error?: boolean | undefined;
|
|
@@ -14,4 +12,6 @@ export declare const RadioButton: import("react").ForwardRefExoticComponent<{
|
|
|
14
12
|
'aria-describedby'?: string | undefined;
|
|
15
13
|
} & {
|
|
16
14
|
children?: import("react").ReactNode;
|
|
15
|
+
} & {
|
|
16
|
+
htmlProps?: Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "name" | "readOnly" | "checked" | "value" | "required" | "onChange" | "aria-describedby"> | undefined;
|
|
17
17
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { __rest } from 'tslib';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { forwardRef, useId } from 'react';
|
|
4
|
+
import { Typography } from '../Typography/Typography/Typography.js';
|
|
5
|
+
import { getBaseHTMLProps, joinClassNames } from '../../types/BaseComponentProps.js';
|
|
6
|
+
import '../Typography/Link/Link.js';
|
|
4
7
|
import { useRadioButtonGroup } from './RadioButtonGroupContext.js';
|
|
5
8
|
import { Container, CustomRadioButton } from './RadioButton.styles.js';
|
|
6
|
-
import
|
|
9
|
+
import '../../helpers/Backdrop/Backdrop.js';
|
|
10
|
+
import '../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
|
|
7
11
|
import { HiddenInput } from '../../helpers/HiddenInput/HiddenInput.js';
|
|
8
|
-
import
|
|
12
|
+
import '../../helpers/Input/Input.styles.js';
|
|
13
|
+
import '../../helpers/Input/Input.tokens.js';
|
|
14
|
+
import '../../helpers/Paper/Paper.js';
|
|
15
|
+
import '../../helpers/RequiredMarker/RequiredMarker.js';
|
|
9
16
|
|
|
10
17
|
var isValueEqualToGroupValueOrFalsy = function isValueEqualToGroupValueOrFalsy(value, group) {
|
|
11
18
|
if (typeof value !== 'undefined' && value !== null && group) {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { RadioButtonProps } from '.';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import("react").ForwardRefExoticComponent<{
|
|
5
|
-
htmlProps?: Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "aria-describedby" | "onChange" | "name" | "value" | "checked" | "readOnly" | "required"> | undefined;
|
|
6
|
-
} & Pick<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "aria-describedby" | "onChange" | "name" | "value" | "checked" | "readOnly" | "required">, "id" | "className"> & {
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "aria-describedby" | "onChange" | "name" | "value" | "checked" | "readOnly" | "required">, "id" | "className"> & {
|
|
7
5
|
label?: string | undefined;
|
|
8
6
|
disabled?: boolean | undefined;
|
|
9
7
|
error?: boolean | undefined;
|
|
@@ -17,6 +15,8 @@ declare const _default: {
|
|
|
17
15
|
required?: boolean | undefined;
|
|
18
16
|
} & {
|
|
19
17
|
children?: import("react").ReactNode;
|
|
18
|
+
} & {
|
|
19
|
+
htmlProps?: Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "aria-describedby" | "onChange" | "name" | "value" | "checked" | "readOnly" | "required"> | undefined;
|
|
20
20
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
21
21
|
argTypes: {
|
|
22
22
|
label: {
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
import { radioButtonTokens } from './RadioButton.tokens.js';
|
|
3
3
|
import { focusVisibleTransitionValue } from '../../helpers/styling/focusVisible.js';
|
|
4
|
+
import '../../helpers/styling/hover.js';
|
|
5
|
+
import '../../helpers/styling/focus.js';
|
|
6
|
+
import '../../helpers/styling/danger.js';
|
|
7
|
+
import '../../helpers/styling/selection.js';
|
|
4
8
|
|
|
5
9
|
var CustomRadioButton = styled.span.withConfig({
|
|
6
10
|
displayName: "RadioButtonstyles__CustomRadioButton",
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { ddsBaseTokens } from '@norges-domstoler/dds-design-tokens';
|
|
2
|
+
import 'styled-components';
|
|
3
|
+
import { focusVisible } from '../../helpers/styling/focusVisible.js';
|
|
2
4
|
import { hoverInputfield, hoverDangerInputfield } from '../../helpers/styling/hover.js';
|
|
5
|
+
import '../../helpers/styling/focus.js';
|
|
3
6
|
import { dangerInputfield } from '../../helpers/styling/danger.js';
|
|
4
|
-
import
|
|
7
|
+
import '../../helpers/styling/selection.js';
|
|
5
8
|
|
|
6
9
|
var Colors = ddsBaseTokens.colors,
|
|
7
10
|
Spacing = ddsBaseTokens.spacing,
|
|
@@ -3,13 +3,21 @@ import { __rest } from 'tslib';
|
|
|
3
3
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { useState, useId } from 'react';
|
|
5
5
|
import styled, { css } from 'styled-components';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
6
|
+
import '../../helpers/Backdrop/Backdrop.js';
|
|
7
|
+
import '../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
|
|
8
|
+
import '../../helpers/HiddenInput/HiddenInput.js';
|
|
9
|
+
import '../../helpers/Input/Input.styles.js';
|
|
10
|
+
import '../../helpers/Input/Input.tokens.js';
|
|
11
|
+
import '../../helpers/Paper/Paper.js';
|
|
9
12
|
import { RequiredMarker } from '../../helpers/RequiredMarker/RequiredMarker.js';
|
|
10
13
|
import { InputMessage } from '../InputMessage/InputMessage.js';
|
|
11
|
-
import {
|
|
14
|
+
import { radioButtonGroupTokens } from './RadioButtonGroup.tokens.js';
|
|
15
|
+
import { RadioButtonGroupContext } from './RadioButtonGroupContext.js';
|
|
16
|
+
import { Typography } from '../Typography/Typography/Typography.js';
|
|
12
17
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
18
|
+
import '../Typography/Link/Link.js';
|
|
19
|
+
import { combineHandlers } from '../../utils/combineHandlers.js';
|
|
20
|
+
import '../../utils/color.js';
|
|
13
21
|
|
|
14
22
|
var Container = styled.div.withConfig({
|
|
15
23
|
displayName: "RadioButtonGroup__Container",
|
|
@@ -2,10 +2,14 @@ import { __rest } from 'tslib';
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useRef } from 'react';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
|
+
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
5
6
|
import { Scrollbar } from './Scrollbar.js';
|
|
6
7
|
import { scrollbarTokens } from './ScrollableContainer.tokens.js';
|
|
7
8
|
import { focusVisibleTransitionValue, focusVisible } from '../../helpers/styling/focusVisible.js';
|
|
8
|
-
import
|
|
9
|
+
import '../../helpers/styling/hover.js';
|
|
10
|
+
import '../../helpers/styling/focus.js';
|
|
11
|
+
import '../../helpers/styling/danger.js';
|
|
12
|
+
import '../../helpers/styling/selection.js';
|
|
9
13
|
|
|
10
14
|
var track = scrollbarTokens.track,
|
|
11
15
|
content = scrollbarTokens.content,
|
|
@@ -3,8 +3,8 @@ import { __rest } from 'tslib';
|
|
|
3
3
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
import { useRef, useState, useCallback, useEffect } from 'react';
|
|
5
5
|
import styled from 'styled-components';
|
|
6
|
-
import { scrollbarTokens } from './ScrollableContainer.tokens.js';
|
|
7
6
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
7
|
+
import { scrollbarTokens } from './ScrollableContainer.tokens.js';
|
|
8
8
|
|
|
9
9
|
var track = scrollbarTokens.track,
|
|
10
10
|
thumb = scrollbarTokens.thumb,
|
|
@@ -2,13 +2,21 @@ import { __rest } from 'tslib';
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { forwardRef, useId } from 'react';
|
|
4
4
|
import styled, { css } from 'styled-components';
|
|
5
|
+
import { Button } from '../Button/Button.js';
|
|
5
6
|
import { searchTokens } from './Search.tokens.js';
|
|
7
|
+
import '../../helpers/Backdrop/Backdrop.js';
|
|
8
|
+
import '../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
|
|
9
|
+
import '../../helpers/HiddenInput/HiddenInput.js';
|
|
6
10
|
import { Input as Input$1, OuterInputContainer, InputContainer } from '../../helpers/Input/Input.styles.js';
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
11
|
+
import '../../helpers/Input/Input.tokens.js';
|
|
12
|
+
import '../../helpers/Paper/Paper.js';
|
|
13
|
+
import '../../helpers/RequiredMarker/RequiredMarker.js';
|
|
10
14
|
import { InputMessage } from '../InputMessage/InputMessage.js';
|
|
11
|
-
import {
|
|
15
|
+
import { spaceSeparatedIdListGenerator, derivativeIdGenerator } from '../../utils/idGenerator.js';
|
|
16
|
+
import '../../utils/color.js';
|
|
17
|
+
import { Icon } from '../Icon/Icon.js';
|
|
18
|
+
import '../../icons/utils/StyledSvg.js';
|
|
19
|
+
import { SearchIcon } from '../../icons/tsx/search.js';
|
|
12
20
|
|
|
13
21
|
var Input = styled(Input$1).withConfig({
|
|
14
22
|
displayName: "Search__Input",
|
|
@@ -2,15 +2,23 @@ import { __rest } from 'tslib';
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import React, { useId } from 'react';
|
|
4
4
|
import ReactSelect, { components } from 'react-select';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import '../../helpers/Backdrop/Backdrop.js';
|
|
6
|
+
import '../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
|
|
7
|
+
import '../../helpers/HiddenInput/HiddenInput.js';
|
|
8
|
+
import '../../helpers/Input/Input.styles.js';
|
|
9
|
+
import '../../helpers/Input/Input.tokens.js';
|
|
10
|
+
import '../../helpers/Paper/Paper.js';
|
|
11
|
+
import { RequiredMarker } from '../../helpers/RequiredMarker/RequiredMarker.js';
|
|
12
|
+
import '../../icons/utils/StyledSvg.js';
|
|
7
13
|
import { CheckIcon } from '../../icons/tsx/check.js';
|
|
8
|
-
import { CloseSmallIcon } from '../../icons/tsx/closeSmall.js';
|
|
9
14
|
import { ChevronDownIcon } from '../../icons/tsx/chevronDown.js';
|
|
15
|
+
import { CloseSmallIcon } from '../../icons/tsx/closeSmall.js';
|
|
10
16
|
import { spaceSeparatedIdListGenerator, derivativeIdGenerator } from '../../utils/idGenerator.js';
|
|
11
|
-
import
|
|
12
|
-
import { InputMessage } from '../InputMessage/InputMessage.js';
|
|
17
|
+
import '../../utils/color.js';
|
|
13
18
|
import { Icon } from '../Icon/Icon.js';
|
|
19
|
+
import { InputMessage } from '../InputMessage/InputMessage.js';
|
|
20
|
+
import { prefix, getCustomStyles, Wrapper, Container, Label, InnerSingleValue } from './Select.styles.js';
|
|
21
|
+
import { selectTokens } from './Select.tokens.js';
|
|
14
22
|
|
|
15
23
|
var DdsOption = components.Option,
|
|
16
24
|
NoOptionsMessage = components.NoOptionsMessage,
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
-
import { typographyTokens } from '../Typography/Typography.tokens.js';
|
|
3
|
-
import { selectTokens } from './Select.tokens.js';
|
|
4
|
-
import { Typography } from '../Typography/Typography.js';
|
|
5
|
-
import { scrollbarStyling } from '../ScrollableContainer/scrollbarStyling.js';
|
|
6
2
|
import { focusVisibleLink } from '../../helpers/styling/focusVisible.js';
|
|
3
|
+
import '../../helpers/styling/hover.js';
|
|
4
|
+
import '../../helpers/styling/focus.js';
|
|
5
|
+
import '../../helpers/styling/danger.js';
|
|
6
|
+
import { selection } from '../../helpers/styling/selection.js';
|
|
7
|
+
import '../ScrollableContainer/Scrollbar.js';
|
|
8
|
+
import '../ScrollableContainer/ScrollableContainer.js';
|
|
9
|
+
import { scrollbarStyling } from '../ScrollableContainer/scrollbarStyling.js';
|
|
10
|
+
import { Typography } from '../Typography/Typography/Typography.js';
|
|
11
|
+
import 'tslib';
|
|
12
|
+
import 'react/jsx-runtime';
|
|
13
|
+
import 'react';
|
|
14
|
+
import '../Typography/Link/Link.js';
|
|
15
|
+
import { selectTokens } from './Select.tokens.js';
|
|
7
16
|
|
|
8
17
|
var prefix = 'dds-select';
|
|
9
18
|
var Label = styled(Typography).withConfig({
|
|
@@ -13,7 +22,7 @@ var Label = styled(Typography).withConfig({
|
|
|
13
22
|
var Container = styled.div.withConfig({
|
|
14
23
|
displayName: "Selectstyles__Container",
|
|
15
24
|
componentId: "sc-19jkd5s-1"
|
|
16
|
-
})(["@media (prefers-reduced-motion:no-preference){transition:box-shadow 0.2s,border-color 0.2s,background-color 0.2s;}position:relative;", " *::selection{", "}", " &:hover{", " ", "{", "}}&:focus-within{", " ", "{", "}}", " .", "__menu-list{", " ", "}&:hover .", "__dropdown-indicator,&:focus-within .", "__dropdown-indicator{", "}", " ", ""], selectTokens.container.base,
|
|
25
|
+
})(["@media (prefers-reduced-motion:no-preference){transition:box-shadow 0.2s,border-color 0.2s,background-color 0.2s;}position:relative;", " *::selection{", "}", " &:hover{", " ", "{", "}}&:focus-within{", " ", "{", "}}", " .", "__menu-list{", " ", "}&:hover .", "__dropdown-indicator,&:focus-within .", "__dropdown-indicator{", "}", " ", ""], selectTokens.container.base, selection, function (_ref) {
|
|
17
26
|
var hasLabel = _ref.hasLabel,
|
|
18
27
|
isMulti = _ref.isMulti;
|
|
19
28
|
return isMulti && hasLabel ? css([".", "__value-container{", "}.", "__indicators{", "}"], prefix, selectTokens.valueContainer.isMulti.withLabel.base, prefix, selectTokens.indicatorsContainer.isMulti.withLabel.base) : isMulti && !hasLabel ? css([".", "__control{", "}.", "__value-container{", "}.", "__indicators{", "}"], prefix, selectTokens.input.isMulti.noLabel.base, prefix, selectTokens.valueContainer.isMulti.noLabel.base, prefix, selectTokens.indicatorsContainer.isMulti.noLabel.base) : hasLabel ? css([".", "__value-container{", "}.", "__indicators{", "}"], prefix, selectTokens.valueContainer.withLabel.base, prefix, selectTokens.indicatorsContainer.withLabel.base) : css([".", "__control{", "}.", "__value-container{", "}.", "__indicators{", "}"], prefix, selectTokens.input.noLabel.base, prefix, selectTokens.valueContainer.noLabel.base, prefix, selectTokens.indicatorsContainer.noLabel.base);
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { ddsBaseTokens, ddsReferenceTokens } from '@norges-domstoler/dds-design-tokens';
|
|
2
2
|
import { calculateHeightWithLineHeight } from '../../utils/text.js';
|
|
3
|
+
import '../../utils/color.js';
|
|
4
|
+
import 'styled-components';
|
|
5
|
+
import '../../helpers/styling/focusVisible.js';
|
|
3
6
|
import { hoverInputfield, hoverDangerInputfield } from '../../helpers/styling/hover.js';
|
|
4
7
|
import { focusInputfield, focusDangerInputfield } from '../../helpers/styling/focus.js';
|
|
5
8
|
import { dangerInputfield } from '../../helpers/styling/danger.js';
|
|
9
|
+
import '../../helpers/styling/selection.js';
|
|
6
10
|
|
|
7
11
|
var Colors = ddsBaseTokens.colors,
|
|
8
12
|
Spacing = ddsBaseTokens.spacing,
|
|
@@ -8,13 +8,13 @@ export declare type SkipToContentProps = BaseComponentProps<HTMLAnchorElement, {
|
|
|
8
8
|
/**Avstand fra top i nærmeste posisjonert container. */
|
|
9
9
|
top?: Property.Top<string | number>;
|
|
10
10
|
}>;
|
|
11
|
-
export declare const SkipToContent: import("react").ForwardRefExoticComponent<{
|
|
12
|
-
htmlProps?: import("react").HTMLAttributes<HTMLAnchorElement> | undefined;
|
|
13
|
-
} & Pick<import("react").HTMLAttributes<HTMLAnchorElement>, "className" | "id"> & {
|
|
11
|
+
export declare const SkipToContent: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLAnchorElement>, "className" | "id"> & {
|
|
14
12
|
/** Teksten som vises i lenka. */
|
|
15
13
|
text?: string | undefined;
|
|
16
14
|
/**Spesifiserer hvor det skal hoppes til via `id`-attributtet til innholdet. */
|
|
17
15
|
href: string;
|
|
18
16
|
/**Avstand fra top i nærmeste posisjonert container. */
|
|
19
17
|
top?: Property.Top<string | number> | undefined;
|
|
18
|
+
} & {
|
|
19
|
+
htmlProps?: import("react").HTMLAttributes<HTMLAnchorElement> | undefined;
|
|
20
20
|
} & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
@@ -4,6 +4,10 @@ import { forwardRef } from 'react';
|
|
|
4
4
|
import styled from 'styled-components';
|
|
5
5
|
import { skipToContentTokens } from './SkipToContent.tokens.js';
|
|
6
6
|
import { focusVisibleTransitionValue } from '../../helpers/styling/focusVisible.js';
|
|
7
|
+
import '../../helpers/styling/hover.js';
|
|
8
|
+
import '../../helpers/styling/focus.js';
|
|
9
|
+
import '../../helpers/styling/danger.js';
|
|
10
|
+
import '../../helpers/styling/selection.js';
|
|
7
11
|
import { joinClassNames, getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
8
12
|
|
|
9
13
|
var Wrapper = styled.div.withConfig({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SkipToContentProps } from '.';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import("react").ForwardRefExoticComponent<{
|
|
5
|
-
htmlProps?: import("react").HTMLAttributes<HTMLAnchorElement> | undefined;
|
|
6
|
-
} & Pick<import("react").HTMLAttributes<HTMLAnchorElement>, "id" | "className"> & {
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLAnchorElement>, "id" | "className"> & {
|
|
7
5
|
text?: string | undefined;
|
|
8
6
|
href: string;
|
|
9
7
|
top?: import("csstype").Property.Top<string | number> | undefined;
|
|
8
|
+
} & {
|
|
9
|
+
htmlProps?: import("react").HTMLAttributes<HTMLAnchorElement> | undefined;
|
|
10
10
|
} & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
11
11
|
argTypes: {
|
|
12
12
|
text: {
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { ddsBaseTokens } from '@norges-domstoler/dds-design-tokens';
|
|
2
|
+
import 'styled-components';
|
|
2
3
|
import { focusVisibleOnDark } from '../../helpers/styling/focusVisible.js';
|
|
4
|
+
import '../../helpers/styling/hover.js';
|
|
5
|
+
import '../../helpers/styling/focus.js';
|
|
6
|
+
import '../../helpers/styling/danger.js';
|
|
7
|
+
import '../../helpers/styling/selection.js';
|
|
3
8
|
|
|
4
9
|
var Colors = ddsBaseTokens.colors,
|
|
5
10
|
Spacing = ddsBaseTokens.spacing,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Property } from 'csstype';
|
|
2
|
-
import { TextColor } from '
|
|
2
|
+
import { TextColor } from '../../utils';
|
|
3
3
|
import { BaseComponentProps } from '../../types';
|
|
4
4
|
export declare type SpinnerProps = BaseComponentProps<SVGElement, {
|
|
5
5
|
/**Farge på spinneren. */
|
|
@@ -2,9 +2,9 @@ import { __rest } from 'tslib';
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import React, { useId } from 'react';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
|
+
import { getTextColor } from '../../utils/color.js';
|
|
5
6
|
import { ddsBaseTokens } from '@norges-domstoler/dds-design-tokens';
|
|
6
7
|
import { spinnerTokens } from './Spinner.tokens.js';
|
|
7
|
-
import { getTextColor } from '../Typography/Typography.js';
|
|
8
8
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
9
9
|
|
|
10
10
|
var StyledSpinner = styled.svg.withConfig({
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import styled, { css } from 'styled-components';
|
|
3
|
+
import { focusVisibleTransitionValue, focusVisible } from '../../helpers/styling/focusVisible.js';
|
|
4
|
+
import '../../helpers/styling/hover.js';
|
|
5
|
+
import '../../helpers/styling/focus.js';
|
|
6
|
+
import '../../helpers/styling/danger.js';
|
|
7
|
+
import '../../helpers/styling/selection.js';
|
|
8
|
+
import { VisuallyHidden } from '../VisuallyHidden/VisuallyHidden.js';
|
|
3
9
|
import { useStepperContext } from './Stepper.context.js';
|
|
4
10
|
import { stepperTokens } from './Stepper.tokens.js';
|
|
5
|
-
import { VisuallyHidden } from '../VisuallyHidden/VisuallyHidden.js';
|
|
6
|
-
import { focusVisibleTransitionValue, focusVisible } from '../../helpers/styling/focusVisible.js';
|
|
7
11
|
|
|
8
12
|
var toStepState = function toStepState(active, completed) {
|
|
9
13
|
return active ? completed ? 'activeCompleted' : 'activeIncomplete' : completed ? 'inactiveCompleted' : 'inactiveIncomplete';
|