@norges-domstoler/dds-components 2.3.0 → 2.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/dist/{src/components → components}/Breadcrumbs/Breadcrumb.d.ts +0 -0
- package/dist/{src/components → components}/Breadcrumbs/Breadcrumb.tokens.d.ts +0 -0
- package/dist/{src/components → components}/Breadcrumbs/Breadcrumbs.d.ts +0 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +19 -0
- package/dist/{src/components → components}/Breadcrumbs/index.d.ts +0 -0
- package/dist/{src/components → components}/Button/Button.d.ts +0 -0
- package/dist/components/Button/Button.stories.d.ts +56 -0
- package/dist/{src/components → components}/Button/Button.styles.d.ts +6 -1
- package/dist/{src/components → components}/Button/Button.tokens.d.ts +0 -0
- package/dist/{src/components → components}/Button/Button.types.d.ts +0 -0
- package/dist/{src/components → components}/Button/index.d.ts +0 -0
- package/dist/{src/components → components}/Card/Card.d.ts +0 -0
- package/dist/components/Card/Card.stories.d.ts +11 -0
- package/dist/{src/components → components}/Card/Card.tokens.d.ts +0 -0
- package/dist/{src/components → components}/Card/CardAccordion/CardAccordion.d.ts +0 -0
- package/dist/{src/components → components}/Card/CardAccordion/CardAccordionBody.d.ts +3 -3
- package/dist/{src/components → components}/Card/CardAccordion/CardAccordionBody.tokens.d.ts +0 -0
- package/dist/{src/components → components}/Card/CardAccordion/CardAccordionHeader.d.ts +0 -0
- package/dist/{src/components → components}/Card/CardAccordion/CardAccordionHeader.tokens.d.ts +0 -0
- package/dist/{src/components → components}/Card/index.d.ts +0 -0
- package/dist/{src/components → components}/Checkbox/Checkbox.d.ts +0 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts +47 -0
- package/dist/{src/components → components}/Checkbox/Checkbox.styles.d.ts +0 -0
- package/dist/{src/components → components}/Checkbox/Checkbox.tokens.d.ts +0 -0
- package/dist/{src/components → components}/Checkbox/Checkbox.types.d.ts +0 -0
- package/dist/{src/components → components}/Checkbox/CheckboxGroup.d.ts +0 -0
- package/dist/components/Checkbox/CheckboxGroup.stories.d.ts +46 -0
- package/dist/{src/components → components}/Checkbox/CheckboxGroup.tokens.d.ts +0 -0
- package/dist/{src/components → components}/Checkbox/CheckboxGroupContext.d.ts +0 -0
- package/dist/{src/components → components}/Checkbox/index.d.ts +0 -0
- package/dist/components/Chip/Chip.d.ts +13 -0
- package/dist/components/Chip/Chip.stories.d.ts +18 -0
- package/dist/components/Chip/Chip.tokens.d.ts +12 -0
- package/dist/components/Chip/ChipGroup.d.ts +3 -0
- package/dist/components/Chip/ChipGroup.stories.d.ts +8 -0
- package/dist/components/Chip/index.d.ts +2 -0
- package/dist/{src/components → components}/Datepicker/Datepicker.d.ts +3 -3
- package/dist/components/Datepicker/Datepicker.stories.d.ts +55 -0
- package/dist/{src/components → components}/Datepicker/Datepicker.tokens.d.ts +0 -0
- package/dist/{src/components → components}/Datepicker/index.d.ts +0 -0
- package/dist/{src/components → components}/DescriptionList/DescriptionList.d.ts +0 -0
- package/dist/components/DescriptionList/DescriptionList.stories.d.ts +14 -0
- package/dist/{src/components → components}/DescriptionList/DescriptionListDesc.d.ts +0 -0
- package/dist/{src/components → components}/DescriptionList/DescriptionListDesc.tokens.d.ts +0 -0
- package/dist/{src/components → components}/DescriptionList/DescriptionListGroup.d.ts +3 -3
- package/dist/{src/components → components}/DescriptionList/DescriptionListGroup.tokens.d.ts +0 -0
- package/dist/{src/components → components}/DescriptionList/DescriptionListTerm.d.ts +0 -0
- package/dist/{src/components → components}/DescriptionList/DescriptionListTerm.tokens.d.ts +0 -0
- package/dist/{src/components → components}/DescriptionList/index.d.ts +0 -0
- package/dist/{src/components → components}/Divider/Divider.d.ts +0 -0
- package/dist/components/Divider/Divider.stories.d.ts +13 -0
- package/dist/{src/components → components}/Divider/Divider.tokens.d.ts +0 -0
- package/dist/{src/components → components}/Divider/index.d.ts +0 -0
- package/dist/{src/components → components}/Drawer/Drawer.d.ts +0 -0
- package/dist/components/Drawer/Drawer.stories.d.ts +20 -0
- package/dist/{src/components → components}/Drawer/Drawer.tokens.d.ts +0 -0
- package/dist/{src/components → components}/Drawer/DrawerGroup.d.ts +0 -0
- package/dist/{src/components → components}/Drawer/index.d.ts +0 -0
- package/dist/{src/components → components}/GlobalMessage/GlobalMessage.d.ts +0 -0
- package/dist/components/GlobalMessage/GlobalMessage.stories.d.ts +27 -0
- package/dist/{src/components → components}/GlobalMessage/GlobalMessage.tokens.d.ts +0 -0
- package/dist/{src/components → components}/GlobalMessage/index.d.ts +0 -0
- package/dist/{src/components → components}/IconWrapper/IconWrapper.d.ts +2 -2
- package/dist/components/IconWrapper/IconWrapper.stories.d.ts +22 -0
- package/dist/{src/components → components}/IconWrapper/index.d.ts +0 -0
- package/dist/{src/components → components}/InputMessage/InputMessage.d.ts +0 -0
- package/dist/components/InputMessage/InputMessage.stories.d.ts +19 -0
- package/dist/{src/components → components}/InputMessage/InputMessage.tokens.d.ts +0 -0
- package/dist/{src/components → components}/InputMessage/index.d.ts +0 -0
- package/dist/{src/components → components}/InternalHeader/InternalHeader.d.ts +0 -0
- package/dist/components/InternalHeader/InternalHeader.stories.d.ts +40 -0
- package/dist/{src/components → components}/InternalHeader/InternalHeader.styles.d.ts +0 -0
- package/dist/{src/components → components}/InternalHeader/InternalHeader.tokens.d.ts +0 -0
- package/dist/{src/components → components}/InternalHeader/InternalHeader.types.d.ts +0 -0
- package/dist/{src/components → components}/InternalHeader/InternalHeaderListItem.d.ts +0 -0
- package/dist/{src/components → components}/InternalHeader/NavigationItem.d.ts +0 -0
- package/dist/{src/components → components}/InternalHeader/index.d.ts +0 -0
- package/dist/{src/components → components}/List/List.d.ts +0 -0
- package/dist/components/List/List.stories.d.ts +14 -0
- package/dist/{src/components → components}/List/List.tokens.d.ts +0 -0
- package/dist/{src/components → components}/List/ListItem.d.ts +0 -0
- package/dist/{src/components → components}/List/ListItem.tokens.d.ts +0 -0
- package/dist/{src/components → components}/List/index.d.ts +0 -0
- package/dist/{src/components → components}/LocalMessage/LocalMessage.d.ts +3 -3
- package/dist/components/LocalMessage/LocalMessage.stories.d.ts +35 -0
- package/dist/{src/components → components}/LocalMessage/LocalMessage.tokens.d.ts +2 -2
- package/dist/{src/components → components}/LocalMessage/index.d.ts +0 -0
- package/dist/{src/components → components}/Modal/Modal.d.ts +0 -0
- package/dist/components/Modal/Modal.stories.d.ts +24 -0
- package/dist/{src/components → components}/Modal/Modal.tokens.d.ts +0 -0
- package/dist/{src/components → components}/Modal/ModalActions.d.ts +0 -0
- package/dist/{src/components → components}/Modal/ModalBody.d.ts +0 -0
- package/dist/{src/components → components}/Modal/index.d.ts +0 -0
- package/dist/{src/components → components}/OverflowMenu/OverflowMenu.d.ts +1 -1
- package/dist/components/OverflowMenu/OverflowMenu.stories.d.ts +21 -0
- package/dist/{src/components → components}/OverflowMenu/OverflowMenu.tokens.d.ts +0 -0
- package/dist/{src/components → components}/OverflowMenu/OverflowMenu.types.d.ts +0 -0
- package/dist/{src/components → components}/OverflowMenu/OverflowMenuGroup.d.ts +0 -0
- package/dist/{src/components → components}/OverflowMenu/OverflowMenuItem.d.ts +0 -0
- package/dist/{src/components → components}/OverflowMenu/index.d.ts +0 -0
- package/dist/{src/components → components}/Pagination/Pagination.d.ts +0 -0
- package/dist/components/Pagination/Pagination.stories.d.ts +46 -0
- package/dist/{src/components → components}/Pagination/Pagination.tokens.d.ts +0 -0
- package/dist/{src/components → components}/Pagination/index.d.ts +0 -0
- package/dist/{src/components → components}/Pagination/paginationGenerator.d.ts +0 -0
- package/dist/{src/components → components}/Popover/Popover.d.ts +7 -7
- package/dist/components/Popover/Popover.stories.d.ts +50 -0
- package/dist/{src/components → components}/Popover/Popover.tokens.d.ts +0 -0
- package/dist/{src/components → components}/Popover/PopoverGroup.d.ts +0 -0
- package/dist/{src/components → components}/Popover/index.d.ts +0 -0
- package/dist/{src/components → components}/RadioButton/RadioButton.d.ts +0 -0
- package/dist/components/RadioButton/RadioButton.stories.d.ts +40 -0
- package/dist/{src/components → components}/RadioButton/RadioButton.styles.d.ts +0 -0
- package/dist/{src/components → components}/RadioButton/RadioButton.tokens.d.ts +0 -0
- package/dist/{src/components → components}/RadioButton/RadioButton.types.d.ts +0 -0
- package/dist/{src/components → components}/RadioButton/RadioButtonGroup.d.ts +4 -4
- package/dist/components/RadioButton/RadioButtonGroup.stories.d.ts +47 -0
- package/dist/{src/components → components}/RadioButton/RadioButtonGroup.tokens.d.ts +0 -0
- package/dist/{src/components → components}/RadioButton/RadioButtonGroupContext.d.ts +0 -0
- package/dist/{src/components → components}/RadioButton/index.d.ts +1 -0
- package/dist/{src/components → components}/Search/Search.d.ts +5 -8
- package/dist/components/Search/Search.stories.d.ts +29 -0
- package/dist/{src/components → components}/Search/Search.tokens.d.ts +2 -3
- package/dist/{src/components → components}/Search/index.d.ts +0 -0
- package/dist/components/Select/MultiSelect.stories.d.ts +74 -0
- package/dist/{src/components → components}/Select/Select.d.ts +2 -2
- package/dist/components/Select/Select.stories.d.ts +73 -0
- package/dist/{src/components → components}/Select/Select.styles.d.ts +0 -0
- package/dist/{src/components → components}/Select/Select.tokens.d.ts +2 -2
- package/dist/{src/components → components}/Select/index.d.ts +0 -0
- package/dist/{src/components → components}/SkipToContent/SkipToContent.d.ts +3 -3
- package/dist/components/SkipToContent/SkipToContent.stories.d.ts +31 -0
- package/dist/{src/components → components}/SkipToContent/SkipToContent.tokens.d.ts +0 -0
- package/dist/{src/components → components}/SkipToContent/index.d.ts +0 -0
- package/dist/{src/components → components}/Spinner/Spinner.d.ts +2 -2
- package/dist/components/Spinner/Spinner.stories.d.ts +21 -0
- package/dist/{src/components → components}/Spinner/Spinner.tokens.d.ts +0 -0
- package/dist/{src/components → components}/Spinner/index.d.ts +0 -0
- package/dist/{src/components → components}/Table/Body.d.ts +0 -0
- package/dist/{src/components → components}/Table/Cell.d.ts +0 -0
- package/dist/{src/components → components}/Table/Cell.tokens.d.ts +0 -0
- package/dist/{src/components → components}/Table/Foot.d.ts +0 -0
- package/dist/{src/components → components}/Table/Head.d.ts +0 -0
- package/dist/{src/components → components}/Table/Row.d.ts +0 -0
- package/dist/{src/components → components}/Table/Row.tokens.d.ts +0 -0
- package/dist/{src/components → components}/Table/SortCell.d.ts +0 -0
- package/dist/{src/components → components}/Table/Table.d.ts +0 -0
- package/dist/components/Table/Table.stories.d.ts +28 -0
- package/dist/{src/components → components}/Table/TableWrapper.d.ts +0 -0
- package/dist/{src/components → components}/Table/index.d.ts +0 -0
- package/dist/{src/components → components}/Table/tableData.d.ts +0 -0
- package/dist/{src/components → components}/Tabs/Tab.d.ts +0 -0
- package/dist/{src/components → components}/Tabs/TabList.d.ts +0 -0
- package/dist/{src/components → components}/Tabs/TabPanel.d.ts +0 -0
- package/dist/{src/components → components}/Tabs/TabPanels.d.ts +0 -0
- package/dist/{src/components → components}/Tabs/Tabs.context.d.ts +1 -1
- package/dist/{src/components → components}/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tabs/Tabs.stories.d.ts +10 -0
- package/dist/{src/components → components}/Tabs/Tabs.tokens.d.ts +3 -0
- package/dist/{src/components → components}/Tabs/index.d.ts +0 -0
- package/dist/components/Tag/Tag.d.ts +14 -0
- package/dist/components/Tag/Tag.stories.d.ts +17 -0
- package/dist/components/Tag/Tag.tokens.d.ts +26 -0
- package/dist/components/Tag/index.d.ts +1 -0
- package/dist/{src/components → components}/TextInput/CharCounter.d.ts +0 -0
- package/dist/{src/components → components}/TextInput/CharCounter.tokens.d.ts +0 -0
- package/dist/{src/components → components}/TextInput/TextInput.d.ts +0 -0
- package/dist/components/TextInput/TextInput.stories.d.ts +68 -0
- package/dist/{src/components → components}/TextInput/TextInput.styles.d.ts +3 -5
- package/dist/{src/components → components}/TextInput/TextInput.tokens.d.ts +3 -14
- package/dist/{src/components → components}/TextInput/TextInput.types.d.ts +1 -1
- package/dist/{src/components → components}/TextInput/index.d.ts +0 -0
- package/dist/components/ToggleButton/ToggelButtonGroup.stories.d.ts +9 -0
- package/dist/{src/components → components}/ToggleButton/ToggleButton.d.ts +0 -0
- package/dist/components/ToggleButton/ToggleButton.stories.d.ts +12 -0
- package/dist/{src/components → components}/ToggleButton/ToggleButton.tokens.d.ts +0 -0
- package/dist/{src/components → components}/ToggleButton/ToggleButtonGroup.d.ts +0 -0
- package/dist/{src/components → components}/ToggleButton/index.d.ts +0 -0
- package/dist/{src/components → components}/Tooltip/Tooltip.d.ts +0 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts +29 -0
- package/dist/{src/components → components}/Tooltip/Tooltip.styles.d.ts +1 -1
- package/dist/{src/components → components}/Tooltip/Tooltip.tokens.d.ts +0 -0
- package/dist/{src/components → components}/Tooltip/index.d.ts +0 -0
- package/dist/components/Typography/Body.stories.d.ts +11 -0
- package/dist/components/Typography/Examples.stories.d.ts +8 -0
- package/dist/{src/components → components}/Typography/Typography.d.ts +0 -0
- package/dist/components/Typography/Typography.stories.d.ts +58 -0
- package/dist/{src/components → components}/Typography/Typography.tokens.d.ts +0 -0
- package/dist/{src/components → components}/Typography/Typography.types.d.ts +0 -0
- package/dist/{src/components → components}/Typography/index.d.ts +0 -0
- package/dist/{src/helpers → helpers}/Backdrop/Backdrop.d.ts +0 -0
- package/dist/{src/helpers → helpers}/Backdrop/Backdrop.utils.d.ts +0 -0
- package/dist/{src/helpers → helpers}/Backdrop/index.d.ts +0 -0
- package/dist/{src/helpers → helpers}/Chevron/AnimatedChevronUpDown.d.ts +3 -3
- package/dist/{src/helpers → helpers}/Chevron/AnimatedChevronUpDown.styles.d.ts +0 -0
- package/dist/{src/helpers → helpers}/Chevron/index.d.ts +0 -0
- package/dist/helpers/Input/Input.styles.d.ts +15 -0
- package/dist/{src/helpers → helpers}/Input/Input.tokens.d.ts +10 -3
- package/dist/{src/helpers → helpers}/Input/Input.types.d.ts +4 -3
- package/dist/{src/helpers → helpers}/Input/index.d.ts +0 -0
- package/dist/{src/helpers → helpers}/Paper/Paper.d.ts +0 -0
- package/dist/{src/helpers → helpers}/Paper/Paper.tokens.d.ts +0 -0
- package/dist/{src/helpers → helpers}/Paper/index.d.ts +0 -0
- package/dist/helpers/RequiredMarker/RequiredMarker.d.ts +2 -0
- package/dist/helpers/RequiredMarker/index.d.ts +1 -0
- package/dist/helpers/index.d.ts +5 -0
- package/dist/{src/helpers → helpers}/styling/danger.d.ts +0 -0
- package/dist/{src/helpers → helpers}/styling/focus.d.ts +0 -0
- package/dist/{src/helpers → helpers}/styling/focusVisible.d.ts +2 -0
- package/dist/{src/helpers → helpers}/styling/hideInput.d.ts +0 -0
- package/dist/{src/helpers → helpers}/styling/hover.d.ts +0 -0
- package/dist/{src/helpers → helpers}/styling/index.d.ts +1 -0
- package/dist/{src/helpers → helpers}/styling/removeButtonStyling.d.ts +0 -0
- package/dist/helpers/styling/removeListStyling.d.ts +5 -0
- package/dist/helpers/styling/scrollbarStyling.d.ts +3 -0
- package/dist/{src/helpers → helpers}/styling/visibilityTransition.d.ts +0 -0
- package/dist/{src/hooks → hooks}/index.d.ts +1 -0
- package/dist/{src/hooks → hooks}/useCombinedRefs.d.ts +0 -0
- package/dist/{src/hooks → hooks}/useFloatPosition.d.ts +0 -0
- package/dist/{src/hooks → hooks}/useFocusTrap.d.ts +0 -0
- package/dist/{src/hooks → hooks}/useId.d.ts +0 -0
- package/dist/{src/hooks → hooks}/useMountTransition.d.ts +0 -0
- package/dist/{src/hooks → hooks}/useOnClickOutside.d.ts +0 -0
- package/dist/{src/hooks → hooks}/useOnKeyDown.d.ts +0 -0
- package/dist/{src/hooks → hooks}/useRoveFocus.d.ts +1 -1
- package/dist/hooks/useScreenSize.d.ts +8 -0
- package/dist/{src/index.d.ts → index.d.ts} +2 -0
- package/dist/index.es.js +1478 -1300
- package/dist/index.js +1481 -1300
- package/dist/types/Direction.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/{src/helpers → utils}/color.d.ts +0 -0
- package/dist/{src/utils → utils}/combineHandlers.d.ts +0 -0
- package/dist/{src/utils → utils}/getScrollbarSize.d.ts +0 -0
- package/dist/{src/utils → utils}/idGenerator.d.ts +0 -0
- package/dist/{src/utils → 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/Input/Input.styles.d.ts +0 -12
- package/dist/src/helpers/Input/inputFieldStylingBase.d.ts +0 -1
- package/dist/src/helpers/RequiredMarker.d.ts +0 -3
- package/dist/src/helpers/scrollbarStyling.d.ts +0 -2
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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;
|
|
File without changes
|
|
File without changes
|
|
@@ -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;
|
|
@@ -13,7 +13,12 @@ export declare const ButtonWrapper: import("styled-components").StyledComponent<
|
|
|
13
13
|
declare type StyledIconWrapperSpanProps = {
|
|
14
14
|
iconPosition?: IconPosition;
|
|
15
15
|
size: ButtonSize;
|
|
16
|
+
absolutePosition?: boolean;
|
|
17
|
+
isHidden?: boolean;
|
|
16
18
|
};
|
|
17
19
|
export declare const StyledIconWrapperSpan: import("styled-components").StyledComponent<"span", any, StyledIconWrapperSpanProps, never>;
|
|
18
|
-
|
|
20
|
+
declare type LabelProps = {
|
|
21
|
+
isHidden?: boolean;
|
|
22
|
+
};
|
|
23
|
+
export declare const Label: import("styled-components").StyledComponent<"span", any, LabelProps, never>;
|
|
19
24
|
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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;
|
|
File without changes
|
|
File without changes
|
|
@@ -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>>;
|
|
File without changes
|
|
File without changes
|
package/dist/{src/components → components}/Card/CardAccordion/CardAccordionHeader.tokens.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare type ChipProps = {
|
|
3
|
+
/** Teksten som vises i komponenten. */
|
|
4
|
+
text?: string;
|
|
5
|
+
/** Ekstra logikk når `<Chip />` lukkes. */
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
8
|
+
export declare const Chip: import("react").ForwardRefExoticComponent<{
|
|
9
|
+
/** Teksten som vises i komponenten. */
|
|
10
|
+
text?: string | undefined;
|
|
11
|
+
/** Ekstra logikk når `<Chip />` lukkes. */
|
|
12
|
+
onClose?: (() => void) | undefined;
|
|
13
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChipProps } from '.';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<{
|
|
6
|
+
text?: string | undefined;
|
|
7
|
+
onClose?: (() => void) | undefined;
|
|
8
|
+
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
argTypes: {
|
|
10
|
+
text: {
|
|
11
|
+
control: {
|
|
12
|
+
type: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
18
|
+
export declare const Default: (args: ChipProps) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChipGroupProps } from '.';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<ChipGroupProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Default: (args: ChipGroupProps) => 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;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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;
|
|
File without changes
|
|
File without changes
|
|
@@ -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>>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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;
|
|
File without changes
|
|
File without changes
|
|
@@ -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;
|
|
File without changes
|
|
File without changes
|
|
@@ -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;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|