@norges-domstoler/dds-components 2.3.0 → 2.3.1
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/index.es.js +838 -808
- package/dist/index.js +838 -808
- package/dist/src/components/Breadcrumbs/Breadcrumbs.stories.d.ts +19 -0
- package/dist/src/components/Button/Button.stories.d.ts +56 -0
- package/dist/src/components/Card/Card.stories.d.ts +11 -0
- package/dist/src/components/Card/CardAccordion/CardAccordionBody.d.ts +3 -3
- package/dist/src/components/Checkbox/Checkbox.stories.d.ts +47 -0
- package/dist/src/components/Checkbox/CheckboxGroup.stories.d.ts +46 -0
- package/dist/src/components/Datepicker/Datepicker.d.ts +3 -3
- package/dist/src/components/Datepicker/Datepicker.stories.d.ts +55 -0
- package/dist/src/components/DescriptionList/DescriptionList.stories.d.ts +14 -0
- package/dist/src/components/DescriptionList/DescriptionListGroup.d.ts +3 -3
- package/dist/src/components/Divider/Divider.stories.d.ts +13 -0
- package/dist/src/components/Drawer/Drawer.stories.d.ts +20 -0
- package/dist/src/components/GlobalMessage/GlobalMessage.stories.d.ts +27 -0
- package/dist/src/components/IconWrapper/IconWrapper.d.ts +2 -2
- package/dist/src/components/IconWrapper/IconWrapper.stories.d.ts +22 -0
- package/dist/src/components/InputMessage/InputMessage.stories.d.ts +19 -0
- package/dist/src/components/InternalHeader/InternalHeader.stories.d.ts +40 -0
- package/dist/src/components/List/List.stories.d.ts +14 -0
- package/dist/src/components/LocalMessage/LocalMessage.d.ts +3 -3
- package/dist/src/components/LocalMessage/LocalMessage.stories.d.ts +35 -0
- package/dist/src/components/LocalMessage/LocalMessage.tokens.d.ts +2 -2
- package/dist/src/components/Modal/Modal.stories.d.ts +24 -0
- package/dist/src/components/OverflowMenu/OverflowMenu.stories.d.ts +21 -0
- package/dist/src/components/Pagination/Pagination.stories.d.ts +46 -0
- package/dist/src/components/Popover/Popover.d.ts +7 -7
- package/dist/src/components/Popover/Popover.stories.d.ts +50 -0
- package/dist/src/components/RadioButton/RadioButton.stories.d.ts +40 -0
- package/dist/src/components/RadioButton/RadioButtonGroup.d.ts +4 -4
- package/dist/src/components/RadioButton/RadioButtonGroup.stories.d.ts +47 -0
- package/dist/src/components/RadioButton/index.d.ts +1 -0
- package/dist/src/components/Search/Search.d.ts +3 -3
- package/dist/src/components/Search/Search.stories.d.ts +30 -0
- package/dist/src/components/Select/MultiSelect.stories.d.ts +74 -0
- package/dist/src/components/Select/Select.d.ts +2 -2
- package/dist/src/components/Select/Select.stories.d.ts +73 -0
- package/dist/src/components/Select/Select.tokens.d.ts +2 -2
- package/dist/src/components/SkipToContent/SkipToContent.d.ts +3 -3
- package/dist/src/components/SkipToContent/SkipToContent.stories.d.ts +31 -0
- package/dist/src/components/Spinner/Spinner.d.ts +2 -2
- package/dist/src/components/Spinner/Spinner.stories.d.ts +21 -0
- package/dist/src/components/Table/Table.stories.d.ts +28 -0
- package/dist/src/components/Tabs/Tabs.stories.d.ts +10 -0
- package/dist/src/components/TextInput/TextInput.stories.d.ts +68 -0
- package/dist/src/components/TextInput/TextInput.styles.d.ts +2 -2
- package/dist/src/components/TextInput/TextInput.tokens.d.ts +2 -2
- package/dist/src/components/TextInput/TextInput.types.d.ts +1 -1
- package/dist/src/components/ToggleButton/ToggelButtonGroup.stories.d.ts +9 -0
- package/dist/src/components/ToggleButton/ToggleButton.stories.d.ts +12 -0
- package/dist/src/components/Tooltip/Tooltip.stories.d.ts +29 -0
- package/dist/src/components/Typography/Body.stories.d.ts +11 -0
- package/dist/src/components/Typography/Examples.stories.d.ts +8 -0
- package/dist/src/components/Typography/Typography.stories.d.ts +58 -0
- package/dist/src/helpers/Chevron/AnimatedChevronUpDown.d.ts +3 -3
- package/dist/src/helpers/Input/Input.types.d.ts +2 -2
- package/dist/src/helpers/Input/index.d.ts +1 -0
- package/dist/src/helpers/RequiredMarker/RequiredMarker.d.ts +2 -0
- package/dist/src/helpers/RequiredMarker/index.d.ts +1 -0
- package/dist/src/helpers/index.d.ts +5 -0
- package/dist/src/helpers/styling/index.d.ts +1 -0
- package/dist/src/helpers/styling/scrollbarStyling.d.ts +1 -0
- package/dist/src/hooks/index.d.ts +1 -0
- package/dist/src/hooks/useScreenSize.d.ts +8 -0
- package/dist/src/{helpers → utils}/color.d.ts +0 -0
- package/dist/src/utils/index.d.ts +2 -0
- package/dist/src/{helpers/functions.d.ts → utils/text.d.ts} +0 -0
- package/package.json +1 -1
- package/dist/src/helpers/RequiredMarker.d.ts +0 -3
- package/dist/src/helpers/scrollbarStyling.d.ts +0 -2
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BreadcrumbsProps } from '.';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<{
|
|
6
|
+
smallScreen?: boolean | undefined;
|
|
7
|
+
} & import("react").HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLElement>>;
|
|
8
|
+
argTypes: {
|
|
9
|
+
smallScreen: {
|
|
10
|
+
control: {
|
|
11
|
+
type: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
17
|
+
export declare const Overview: (args: BreadcrumbsProps) => JSX.Element;
|
|
18
|
+
export declare const Default: (args: BreadcrumbsProps) => JSX.Element;
|
|
19
|
+
export declare const SmallScreen: () => JSX.Element;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ButtonProps } from '.';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<{
|
|
6
|
+
size?: import("./Button.types").ButtonSize | undefined;
|
|
7
|
+
label?: string | undefined;
|
|
8
|
+
purpose?: import("./Button.types").ButtonPurpose | undefined;
|
|
9
|
+
iconPosition?: import("./Button.types").IconPosition | undefined;
|
|
10
|
+
appearance?: import("./Button.types").ButtonAppearance | undefined;
|
|
11
|
+
loading?: boolean | undefined;
|
|
12
|
+
Icon?: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<Record<string, unknown>, "svg">> | undefined;
|
|
13
|
+
fullWidth?: boolean | undefined;
|
|
14
|
+
href?: string | undefined;
|
|
15
|
+
target?: string | undefined;
|
|
16
|
+
} & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
argTypes: {
|
|
18
|
+
label: {
|
|
19
|
+
control: {
|
|
20
|
+
type: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
loading: {
|
|
24
|
+
control: {
|
|
25
|
+
type: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
fullWidth: {
|
|
29
|
+
control: {
|
|
30
|
+
type: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
href: {
|
|
34
|
+
control: {
|
|
35
|
+
type: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
parameters: {
|
|
40
|
+
controls: {
|
|
41
|
+
exclude: string[];
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export default _default;
|
|
46
|
+
export declare const OverviewWithText: (args: ButtonProps) => JSX.Element;
|
|
47
|
+
export declare const OverviewJustIcon: (args: ButtonProps) => JSX.Element;
|
|
48
|
+
export declare const OverviewSizes: (args: ButtonProps) => JSX.Element;
|
|
49
|
+
export declare const OverviewLoading: (args: ButtonProps) => JSX.Element;
|
|
50
|
+
export declare const OverviewFullWidth: (args: ButtonProps) => JSX.Element;
|
|
51
|
+
export declare const Default: (args: ButtonProps) => JSX.Element;
|
|
52
|
+
export declare const WithIcon: (args: ButtonProps) => JSX.Element;
|
|
53
|
+
export declare const Icon: (args: ButtonProps) => JSX.Element;
|
|
54
|
+
export declare const Ghost: (args: ButtonProps) => JSX.Element;
|
|
55
|
+
export declare const Borderless: (args: ButtonProps) => JSX.Element;
|
|
56
|
+
export declare const Rounded: (args: ButtonProps) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CardProps, ExpandableCardProps } from '.';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: CardProps) => JSX.Element;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Overview: () => JSX.Element;
|
|
9
|
+
export declare const Default: (args: CardProps) => JSX.Element;
|
|
10
|
+
export declare const Accordion: (args: ExpandableCardProps) => JSX.Element;
|
|
11
|
+
export declare const Examples: (args: CardProps) => JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { Property } from 'csstype';
|
|
3
3
|
export declare type CardAccordionBodyProps = {
|
|
4
4
|
/** **OBS!** denne propen blir satt automatisk av forelder. Forteller komponenten om den skal utvides. */
|
|
5
5
|
isExpanded?: boolean;
|
|
6
6
|
/** **OBS!** denne propen blir satt automatisk av forelder. Forteller `id` til `<CardAccordionHeader />`. */
|
|
7
7
|
headerId?: string;
|
|
8
8
|
/**Overskriver default padding på toppen. Brukes når barn har spacing på toppen, f.eks. en overskrift. */
|
|
9
|
-
paddingTop?:
|
|
9
|
+
paddingTop?: Property.PaddingTop<string>;
|
|
10
10
|
} & HTMLAttributes<HTMLDivElement>;
|
|
11
11
|
export declare const CardAccordionBody: import("react").ForwardRefExoticComponent<{
|
|
12
12
|
/** **OBS!** denne propen blir satt automatisk av forelder. Forteller komponenten om den skal utvides. */
|
|
@@ -14,5 +14,5 @@ export declare const CardAccordionBody: import("react").ForwardRefExoticComponen
|
|
|
14
14
|
/** **OBS!** denne propen blir satt automatisk av forelder. Forteller `id` til `<CardAccordionHeader />`. */
|
|
15
15
|
headerId?: string | undefined;
|
|
16
16
|
/**Overskriver default padding på toppen. Brukes når barn har spacing på toppen, f.eks. en overskrift. */
|
|
17
|
-
paddingTop?:
|
|
17
|
+
paddingTop?: Property.PaddingTop<string> | undefined;
|
|
18
18
|
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CheckboxProps } from '.';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<{
|
|
6
|
+
label?: string | undefined;
|
|
7
|
+
error?: boolean | undefined;
|
|
8
|
+
disabled?: boolean | undefined;
|
|
9
|
+
readOnly?: boolean | undefined;
|
|
10
|
+
indeterminate?: boolean | undefined;
|
|
11
|
+
} & import("react").InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>>;
|
|
12
|
+
argTypes: {
|
|
13
|
+
label: {
|
|
14
|
+
control: {
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
error: {
|
|
19
|
+
control: {
|
|
20
|
+
type: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
disabled: {
|
|
24
|
+
control: {
|
|
25
|
+
type: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
readOnly: {
|
|
29
|
+
control: {
|
|
30
|
+
type: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
indeterminate: {
|
|
34
|
+
control: {
|
|
35
|
+
type: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
parameters: {
|
|
40
|
+
controls: {
|
|
41
|
+
exclude: string[];
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export default _default;
|
|
46
|
+
export declare const Overview: (args: CheckboxProps) => JSX.Element;
|
|
47
|
+
export declare const Default: (args: CheckboxProps) => JSX.Element;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CheckboxGroupProps } from '.';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ label, direction, errorMessage, tip, required, groupId, children, className, style, ...rest }: CheckboxGroupProps) => JSX.Element;
|
|
6
|
+
argTypes: {
|
|
7
|
+
label: {
|
|
8
|
+
control: {
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
errorMessage: {
|
|
13
|
+
control: {
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
required: {
|
|
18
|
+
control: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
disabled: {
|
|
23
|
+
control: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
readOnly: {
|
|
28
|
+
control: {
|
|
29
|
+
type: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
indeterminate: {
|
|
33
|
+
control: {
|
|
34
|
+
type: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
parameters: {
|
|
39
|
+
controls: {
|
|
40
|
+
exclude: string[];
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
45
|
+
export declare const Overview: (args: CheckboxGroupProps) => JSX.Element;
|
|
46
|
+
export declare const Default: (args: CheckboxGroupProps) => JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { InputProps } from '../../helpers
|
|
3
|
-
import
|
|
2
|
+
import { InputProps } from '../../helpers';
|
|
3
|
+
import { Property } from 'csstype';
|
|
4
4
|
export declare type DatepickerProps = InputProps;
|
|
5
5
|
export declare const Datepicker: import("react").ForwardRefExoticComponent<{
|
|
6
6
|
label?: string | undefined;
|
|
7
|
-
width?:
|
|
7
|
+
width?: Property.Width<string> | undefined;
|
|
8
8
|
tip?: string | undefined;
|
|
9
9
|
errorMessage?: string | undefined;
|
|
10
10
|
} & import("react").InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DatepickerProps } from '.';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<{
|
|
6
|
+
label?: string | undefined;
|
|
7
|
+
width?: import("csstype").Property.Width<string> | undefined;
|
|
8
|
+
tip?: string | undefined;
|
|
9
|
+
errorMessage?: string | undefined;
|
|
10
|
+
} & import("react").InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>>;
|
|
11
|
+
argTypes: {
|
|
12
|
+
label: {
|
|
13
|
+
control: {
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
tip: {
|
|
18
|
+
control: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
errorMessage: {
|
|
23
|
+
control: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
width: {
|
|
28
|
+
control: {
|
|
29
|
+
type: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
required: {
|
|
33
|
+
control: {
|
|
34
|
+
type: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
disabled: {
|
|
38
|
+
control: {
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
readOnly: {
|
|
43
|
+
control: {
|
|
44
|
+
type: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export default _default;
|
|
50
|
+
export declare const OverviewDate: () => JSX.Element;
|
|
51
|
+
export declare const OverviewDatetime: () => JSX.Element;
|
|
52
|
+
export declare const Default: (args: DatepickerProps) => JSX.Element;
|
|
53
|
+
export declare const WithLabel: (args: DatepickerProps) => JSX.Element;
|
|
54
|
+
export declare const Datetime: (args: DatepickerProps) => JSX.Element;
|
|
55
|
+
export declare const DatetimeWithLabel: (args: DatepickerProps) => JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DescriptionListProps } from '.';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<{
|
|
6
|
+
appearance?: import("./DescriptionList").DescriptionListAppearance | undefined;
|
|
7
|
+
} & import("react").HTMLAttributes<HTMLDListElement> & import("react").RefAttributes<HTMLDListElement>>;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
export declare const Overview: () => JSX.Element;
|
|
11
|
+
export declare const Default: (args: DescriptionListProps) => JSX.Element;
|
|
12
|
+
export declare const Group: (args: DescriptionListProps) => JSX.Element;
|
|
13
|
+
export declare const WithIcon: (args: DescriptionListProps) => JSX.Element;
|
|
14
|
+
export declare const ColumnExample: (args: DescriptionListProps) => JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { Property } from 'csstype';
|
|
3
3
|
export declare type DescriptionListGroupProps = {
|
|
4
4
|
/**Custom margin. */
|
|
5
|
-
margin?:
|
|
5
|
+
margin?: Property.Margin<string>;
|
|
6
6
|
} & HTMLAttributes<HTMLDivElement>;
|
|
7
7
|
export declare const DescriptionListGroup: import("react").ForwardRefExoticComponent<{
|
|
8
8
|
/**Custom margin. */
|
|
9
|
-
margin?:
|
|
9
|
+
margin?: Property.Margin<string> | undefined;
|
|
10
10
|
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DividerProps } from '.';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<{
|
|
6
|
+
color?: import("./Divider").DividerColor | undefined;
|
|
7
|
+
} & import("react").HTMLAttributes<HTMLHRElement> & import("react").RefAttributes<HTMLHRElement>>;
|
|
8
|
+
argTypes: {};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const Overview: (args: DividerProps) => JSX.Element;
|
|
12
|
+
export declare const Default: (args: DividerProps) => JSX.Element;
|
|
13
|
+
export declare const Example: (args: DividerProps) => JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DrawerProps } from '.';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<{
|
|
6
|
+
size?: import("./Drawer").DrawerSize | undefined;
|
|
7
|
+
placement?: import("./Drawer").DrawerPlacement | undefined;
|
|
8
|
+
header?: import("react").ReactNode;
|
|
9
|
+
isOpen?: boolean | undefined;
|
|
10
|
+
onClose?: (() => void) | undefined;
|
|
11
|
+
parentElement?: HTMLElement | undefined;
|
|
12
|
+
widthProps?: import("./Drawer").WidthProps | undefined;
|
|
13
|
+
triggerRef?: import("react").RefObject<HTMLElement> | undefined;
|
|
14
|
+
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
17
|
+
export declare const OverviewPlacement: (args: DrawerProps) => JSX.Element;
|
|
18
|
+
export declare const OverviewSizes: (args: DrawerProps) => JSX.Element;
|
|
19
|
+
export declare const Default: (args: DrawerProps) => JSX.Element;
|
|
20
|
+
export declare const LongContent: (args: DrawerProps) => JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { GlobalMessageProps } from './GlobalMessage';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<{
|
|
6
|
+
message?: string | undefined;
|
|
7
|
+
purpose?: import("./GlobalMessage").GlobalMessagePurpose | undefined;
|
|
8
|
+
closable?: boolean | undefined;
|
|
9
|
+
onClose?: (() => void) | undefined;
|
|
10
|
+
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
+
argTypes: {
|
|
12
|
+
message: {
|
|
13
|
+
control: {
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
closable: {
|
|
18
|
+
control: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export default _default;
|
|
25
|
+
export declare const Overview: (args: GlobalMessageProps) => JSX.Element;
|
|
26
|
+
export declare const Default: (args: GlobalMessageProps) => JSX.Element;
|
|
27
|
+
export declare const Closable: (args: GlobalMessageProps) => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvgIconTypeMap } from '@mui/material/SvgIcon';
|
|
2
2
|
import { OverridableComponent } from '@mui/material/OverridableComponent';
|
|
3
3
|
import { HTMLAttributes } from 'react';
|
|
4
|
-
import
|
|
4
|
+
import { Property } from 'csstype';
|
|
5
5
|
export declare type IconSize = 'small' | 'medium' | 'large' | 'inline';
|
|
6
6
|
export declare type IconWrapperProps = {
|
|
7
7
|
/**Ikon. */
|
|
@@ -9,6 +9,6 @@ export declare type IconWrapperProps = {
|
|
|
9
9
|
/**Størrelsen til ikonet. */
|
|
10
10
|
iconSize?: IconSize;
|
|
11
11
|
/**Fargen til ikonet. */
|
|
12
|
-
color?:
|
|
12
|
+
color?: Property.Color;
|
|
13
13
|
} & HTMLAttributes<SVGElement>;
|
|
14
14
|
export declare function IconWrapper({ Icon, iconSize, color, className, style, ...rest }: IconWrapperProps): JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IconWrapper, IconWrapperProps } from '.';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof IconWrapper;
|
|
6
|
+
argTypes: {
|
|
7
|
+
color: {
|
|
8
|
+
control: {
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
parameters: {
|
|
14
|
+
controls: {
|
|
15
|
+
exclude: string[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
20
|
+
export declare const Overview: (args: IconWrapperProps) => JSX.Element;
|
|
21
|
+
export declare const Default: (args: IconWrapperProps) => JSX.Element;
|
|
22
|
+
export declare const Inline: (args: IconWrapperProps) => JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { InputMessageProps } from '.';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<{
|
|
6
|
+
message: string;
|
|
7
|
+
messageType: import("./InputMessage").InputMessageType;
|
|
8
|
+
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
argTypes: {
|
|
10
|
+
message: {
|
|
11
|
+
control: {
|
|
12
|
+
type: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
18
|
+
export declare const Overview: () => JSX.Element;
|
|
19
|
+
export declare const Default: (args: InputMessageProps) => JSX.Element;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { InternalHeaderProps } from '.';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ applicationName, smallScreen, navigationElements, contextMenuElements, currentPageHref, userProps, onCurrentPageChange, ...rest }: InternalHeaderProps) => JSX.Element;
|
|
6
|
+
argTypes: {
|
|
7
|
+
applicationName: {
|
|
8
|
+
control: {
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
currentPageHref: {
|
|
13
|
+
control: {
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
smallScreen: {
|
|
18
|
+
control: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
parameters: {
|
|
24
|
+
controls: {
|
|
25
|
+
exclude: string[];
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export default _default;
|
|
30
|
+
export declare const Overview: () => JSX.Element;
|
|
31
|
+
export declare const Default: (args: InternalHeaderProps) => JSX.Element;
|
|
32
|
+
export declare const WithNavigationAndContextMenu: (args: InternalHeaderProps) => JSX.Element;
|
|
33
|
+
export declare const WithCurrentPage: (args: InternalHeaderProps) => JSX.Element;
|
|
34
|
+
export declare const SmallScreenWithNavigation: () => JSX.Element;
|
|
35
|
+
export declare const SmallScreenWithContextMenu: (args: InternalHeaderProps) => JSX.Element;
|
|
36
|
+
export declare const SmallScreenWithNavigationAndContextMenu: () => JSX.Element;
|
|
37
|
+
export declare const NoStoryHeading: (args: InternalHeaderProps) => JSX.Element;
|
|
38
|
+
export declare const NoStoryHeadingSmallScreen: () => JSX.Element;
|
|
39
|
+
export declare const NoStoryHeadingSmallScreenLong: () => JSX.Element;
|
|
40
|
+
export declare const NonInteractiveUserOnly: () => JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ListProps } from '.';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<{
|
|
6
|
+
listType?: import("./List").ListType | undefined;
|
|
7
|
+
typographyType?: import("./List").ListTypographyType | undefined;
|
|
8
|
+
} & import("react").HTMLAttributes<HTMLOListElement | HTMLUListElement> & import("react").RefAttributes<HTMLOListElement | HTMLUListElement>>;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const Overview: (args: ListProps) => JSX.Element;
|
|
12
|
+
export declare const Default: (args: ListProps) => JSX.Element;
|
|
13
|
+
export declare const Nested: (args: ListProps) => JSX.Element;
|
|
14
|
+
export declare const Example: (args: ListProps) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { Property } from 'csstype';
|
|
3
3
|
export declare type LocalMessagePurpose = 'info' | 'warning' | 'danger' | 'confidential' | 'success' | 'tips';
|
|
4
4
|
export declare type LocalMessageLayout = 'horisontal' | 'vertical';
|
|
5
5
|
export declare type LocalMessageProps = {
|
|
@@ -14,7 +14,7 @@ export declare type LocalMessageProps = {
|
|
|
14
14
|
/**Layoutet i komponenten. Ved kompleks innhold anbefales `layout='vertical'`. */
|
|
15
15
|
layout?: LocalMessageLayout;
|
|
16
16
|
/**Custom bredde ved behov. */
|
|
17
|
-
width?:
|
|
17
|
+
width?: Property.Width<string>;
|
|
18
18
|
} & HTMLAttributes<HTMLDivElement>;
|
|
19
19
|
export declare const LocalMessage: import("react").ForwardRefExoticComponent<{
|
|
20
20
|
/**Meldingen som vises til brukeren. Brukes kun når meldingen er string. */
|
|
@@ -28,5 +28,5 @@ export declare const LocalMessage: import("react").ForwardRefExoticComponent<{
|
|
|
28
28
|
/**Layoutet i komponenten. Ved kompleks innhold anbefales `layout='vertical'`. */
|
|
29
29
|
layout?: LocalMessageLayout | undefined;
|
|
30
30
|
/**Custom bredde ved behov. */
|
|
31
|
-
width?:
|
|
31
|
+
width?: Property.Width<string> | undefined;
|
|
32
32
|
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LocalMessageProps } from './LocalMessage';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<{
|
|
6
|
+
message?: string | undefined;
|
|
7
|
+
purpose?: import("./LocalMessage").LocalMessagePurpose | undefined;
|
|
8
|
+
closable?: boolean | undefined;
|
|
9
|
+
onClose?: (() => void) | undefined;
|
|
10
|
+
layout?: import("./LocalMessage").LocalMessageLayout | undefined;
|
|
11
|
+
width?: import("csstype").Property.Width<string> | undefined;
|
|
12
|
+
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
argTypes: {
|
|
14
|
+
message: {
|
|
15
|
+
control: {
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
width: {
|
|
20
|
+
control: {
|
|
21
|
+
type: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
closable: {
|
|
25
|
+
control: {
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export default _default;
|
|
32
|
+
export declare const Overview: (args: LocalMessageProps) => JSX.Element;
|
|
33
|
+
export declare const Default: (args: LocalMessageProps) => JSX.Element;
|
|
34
|
+
export declare const Closable: (args: LocalMessageProps) => JSX.Element;
|
|
35
|
+
export declare const ComplexContent: (args: LocalMessageProps) => JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CSSObject } from 'styled-components';
|
|
2
|
-
import
|
|
2
|
+
import { Property } from 'csstype';
|
|
3
3
|
export declare const localMessageTokens: {
|
|
4
4
|
container: {
|
|
5
5
|
base: CSSObject;
|
|
6
|
-
defaultWidth:
|
|
6
|
+
defaultWidth: Property.Width<string>;
|
|
7
7
|
info: {
|
|
8
8
|
base: CSSObject;
|
|
9
9
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ModalProps } from '.';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<{
|
|
6
|
+
isOpen?: boolean | undefined;
|
|
7
|
+
onClose?: (() => void) | undefined;
|
|
8
|
+
parentElement?: HTMLElement | undefined;
|
|
9
|
+
header?: import("react").ReactNode;
|
|
10
|
+
triggerRef?: import("react").RefObject<HTMLElement> | undefined;
|
|
11
|
+
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
argTypes: {
|
|
13
|
+
header: {
|
|
14
|
+
control: {
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
21
|
+
export declare const Overview: () => JSX.Element;
|
|
22
|
+
export declare const Default: (args: ModalProps) => JSX.Element;
|
|
23
|
+
export declare const NoActionButtons: (args: ModalProps) => JSX.Element;
|
|
24
|
+
export declare const Scrollable: (args: ModalProps) => JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { OverflowMenuProps } from '.';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<{
|
|
6
|
+
items?: import("./OverflowMenu.types").OverflowMenuContextItem[] | undefined;
|
|
7
|
+
userProps?: import("./OverflowMenu.types").UserProps | undefined;
|
|
8
|
+
navItems?: import("./OverflowMenu.types").OverflowMenuNavItem[] | undefined;
|
|
9
|
+
isOpen?: boolean | undefined;
|
|
10
|
+
onClose?: (() => void) | undefined;
|
|
11
|
+
anchorRef?: import("react").RefObject<HTMLButtonElement> | undefined;
|
|
12
|
+
placement?: import("../../hooks").Placement | undefined;
|
|
13
|
+
offset?: number | undefined;
|
|
14
|
+
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
17
|
+
export declare const Default: (args: OverflowMenuProps) => JSX.Element;
|
|
18
|
+
export declare const WithStaticUser: (args: OverflowMenuProps) => JSX.Element;
|
|
19
|
+
export declare const WithInteractiveUser: (args: OverflowMenuProps) => JSX.Element;
|
|
20
|
+
export declare const WithNavigation: (args: OverflowMenuProps) => JSX.Element;
|
|
21
|
+
export declare const WithNavigationAndInteractiveUser: (args: OverflowMenuProps) => JSX.Element;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PaginationProps } from '.';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<{
|
|
6
|
+
itemsAmount: number;
|
|
7
|
+
defaultItemsPerPage?: number | undefined;
|
|
8
|
+
defaultActivePage?: number | undefined;
|
|
9
|
+
withPagination?: boolean | undefined;
|
|
10
|
+
withCounter?: boolean | undefined;
|
|
11
|
+
withSelect?: boolean | undefined;
|
|
12
|
+
selectOptions?: import("./Pagination").PaginationOption[] | undefined;
|
|
13
|
+
onChange?: ((event: import("react").MouseEvent<HTMLButtonElement, MouseEvent>, page: number) => void) | undefined;
|
|
14
|
+
onSelectOptionChange?: ((option: import("./Pagination").PaginationOption | null) => void) | undefined;
|
|
15
|
+
smallScreen?: boolean | undefined;
|
|
16
|
+
} & Omit<import("react").HTMLAttributes<HTMLElement>, "onChange"> & import("react").RefAttributes<HTMLElement>>;
|
|
17
|
+
argTypes: {
|
|
18
|
+
withCounter: {
|
|
19
|
+
control: string;
|
|
20
|
+
};
|
|
21
|
+
withPagination: {
|
|
22
|
+
control: string;
|
|
23
|
+
};
|
|
24
|
+
withSelect: {
|
|
25
|
+
control: string;
|
|
26
|
+
};
|
|
27
|
+
smallScreen: {
|
|
28
|
+
control: string;
|
|
29
|
+
};
|
|
30
|
+
defaultItemsPerPage: {
|
|
31
|
+
control: string;
|
|
32
|
+
};
|
|
33
|
+
defaultActivePage: {
|
|
34
|
+
control: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
parameters: {
|
|
38
|
+
controls: {
|
|
39
|
+
exclude: string[];
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export default _default;
|
|
44
|
+
export declare const Overview: (args: PaginationProps) => JSX.Element;
|
|
45
|
+
export declare const OverviewMobile: (args: PaginationProps) => JSX.Element;
|
|
46
|
+
export declare const Default: (args: PaginationProps) => JSX.Element;
|