@norges-domstoler/dds-components 2.3.1 → 2.5.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/{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/{src/components → components}/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -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/{src/components → components}/Button/Button.stories.d.ts +0 -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/{src/components → components}/Card/Card.stories.d.ts +0 -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 +0 -0
- 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/{src/components → components}/Checkbox/Checkbox.stories.d.ts +0 -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/{src/components → components}/Checkbox/CheckboxGroup.stories.d.ts +0 -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 +0 -0
- package/dist/{src/components → components}/Datepicker/Datepicker.stories.d.ts +0 -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/{src/components → components}/DescriptionList/DescriptionList.stories.d.ts +0 -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 +0 -0
- 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/{src/components → components}/Divider/Divider.stories.d.ts +0 -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/{src/components → components}/Drawer/Drawer.stories.d.ts +0 -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/{src/components → components}/GlobalMessage/GlobalMessage.stories.d.ts +0 -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 +0 -0
- package/dist/{src/components → components}/IconWrapper/IconWrapper.stories.d.ts +0 -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/{src/components → components}/InputMessage/InputMessage.stories.d.ts +0 -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/{src/components → components}/InternalHeader/InternalHeader.stories.d.ts +0 -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/{src/components → components}/List/List.stories.d.ts +0 -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 +0 -0
- package/dist/{src/components → components}/LocalMessage/LocalMessage.stories.d.ts +0 -0
- package/dist/{src/components → components}/LocalMessage/LocalMessage.tokens.d.ts +0 -0
- package/dist/{src/components → components}/LocalMessage/index.d.ts +0 -0
- package/dist/{src/components → components}/Modal/Modal.d.ts +0 -0
- package/dist/{src/components → components}/Modal/Modal.stories.d.ts +0 -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/{src/components → components}/OverflowMenu/OverflowMenu.stories.d.ts +0 -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/{src/components → components}/Pagination/Pagination.stories.d.ts +0 -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 +0 -0
- package/dist/{src/components → components}/Popover/Popover.stories.d.ts +0 -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/{src/components → components}/RadioButton/RadioButton.stories.d.ts +0 -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 +0 -0
- package/dist/{src/components → components}/RadioButton/RadioButtonGroup.stories.d.ts +0 -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 +0 -0
- package/dist/{src/components → components}/Search/Search.d.ts +3 -6
- package/dist/{src/components → components}/Search/Search.stories.d.ts +1 -2
- 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/{src/components → components}/Select/MultiSelect.stories.d.ts +0 -0
- package/dist/{src/components → components}/Select/Select.d.ts +0 -0
- package/dist/{src/components → components}/Select/Select.stories.d.ts +0 -0
- package/dist/{src/components → components}/Select/Select.styles.d.ts +0 -0
- package/dist/{src/components → components}/Select/Select.tokens.d.ts +0 -0
- package/dist/{src/components → components}/Select/index.d.ts +0 -0
- package/dist/{src/components → components}/SkipToContent/SkipToContent.d.ts +0 -0
- package/dist/{src/components → components}/SkipToContent/SkipToContent.stories.d.ts +0 -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 +0 -0
- package/dist/{src/components → components}/Spinner/Spinner.stories.d.ts +0 -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/{src/components → components}/Table/Table.stories.d.ts +0 -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/{src/components → components}/Tabs/Tabs.stories.d.ts +0 -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/{src/components → components}/TextInput/TextInput.stories.d.ts +0 -0
- package/dist/{src/components → components}/TextInput/TextInput.styles.d.ts +2 -4
- package/dist/{src/components → components}/TextInput/TextInput.tokens.d.ts +1 -12
- package/dist/{src/components → components}/TextInput/TextInput.types.d.ts +0 -0
- package/dist/{src/components → components}/TextInput/index.d.ts +0 -0
- package/dist/{src/components → components}/ToggleButton/ToggelButtonGroup.stories.d.ts +0 -0
- package/dist/{src/components → components}/ToggleButton/ToggleButton.d.ts +0 -0
- package/dist/{src/components → components}/ToggleButton/ToggleButton.stories.d.ts +0 -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/{src/components → components}/Tooltip/Tooltip.stories.d.ts +0 -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/{src/components → components}/Typography/Body.stories.d.ts +0 -0
- package/dist/{src/components → components}/Typography/Examples.stories.d.ts +0 -0
- package/dist/{src/components → components}/Typography/Typography.d.ts +0 -0
- package/dist/{src/components → components}/Typography/Typography.stories.d.ts +0 -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 +0 -0
- 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 +2 -1
- package/dist/{src/helpers → helpers}/Input/index.d.ts +0 -1
- 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/{src/helpers → helpers}/RequiredMarker/RequiredMarker.d.ts +0 -0
- package/dist/{src/helpers → helpers}/RequiredMarker/index.d.ts +0 -0
- package/dist/{src/helpers → helpers}/index.d.ts +0 -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 +0 -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 +0 -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/{src/hooks → hooks}/useScreenSize.d.ts +0 -0
- package/dist/{src/index.d.ts → index.d.ts} +2 -0
- package/dist/index.es.js +993 -845
- package/dist/index.js +996 -845
- package/dist/types/Direction.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/{src/utils → 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 +0 -0
- package/dist/{src/utils → 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/styling/scrollbarStyling.d.ts +0 -1
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { OverflowMenuContextItem, OverflowMenuNavItem } from '.';
|
|
3
3
|
declare type ContainerProps = {
|
|
4
|
-
isOpen
|
|
4
|
+
isOpen: boolean;
|
|
5
5
|
};
|
|
6
6
|
export declare const Container: import("styled-components").StyledComponent<"div", any, ContainerProps, never>;
|
|
7
7
|
export declare const OverflowMenuList: import("styled-components").StyledComponent<"ul", any, {}, never>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, InputHTMLAttributes, MouseEvent } from 'react';
|
|
2
|
+
import { InputProps as BaseInputProps } from '../../helpers';
|
|
2
3
|
export declare type SearchSize = 'small' | 'medium' | 'large';
|
|
3
4
|
declare type ButtonProps = {
|
|
4
5
|
onClick: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
5
6
|
label?: string;
|
|
6
7
|
loading?: boolean;
|
|
7
8
|
} & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
8
|
-
export declare type SearchProps = {
|
|
9
|
+
export declare type SearchProps = Pick<BaseInputProps, 'tip'> & {
|
|
9
10
|
/**Størrelsen på komponenten. */
|
|
10
11
|
componentSize?: SearchSize;
|
|
11
|
-
/**Hjelpetekst. */
|
|
12
|
-
tip?: string;
|
|
13
12
|
/**Props for søkeknappen. */
|
|
14
13
|
buttonProps?: ButtonProps;
|
|
15
14
|
} & InputHTMLAttributes<HTMLInputElement>;
|
|
16
|
-
export declare const Search: import("react").ForwardRefExoticComponent<{
|
|
15
|
+
export declare const Search: import("react").ForwardRefExoticComponent<Pick<BaseInputProps, "tip"> & {
|
|
17
16
|
/**Størrelsen på komponenten. */
|
|
18
17
|
componentSize?: SearchSize | undefined;
|
|
19
|
-
/**Hjelpetekst. */
|
|
20
|
-
tip?: string | undefined;
|
|
21
18
|
/**Props for søkeknappen. */
|
|
22
19
|
buttonProps?: ButtonProps | undefined;
|
|
23
20
|
} & InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
import { SearchProps } from './Search';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: import("react").ForwardRefExoticComponent<{
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<Pick<import("../../helpers").InputProps, "tip"> & {
|
|
6
6
|
componentSize?: import("./Search").SearchSize | undefined;
|
|
7
|
-
tip?: string | undefined;
|
|
8
7
|
buttonProps?: ({
|
|
9
8
|
onClick: (event: import("react").MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
10
9
|
label?: string | undefined;
|
|
@@ -2,7 +2,6 @@ import { CSSObject } from 'styled-components';
|
|
|
2
2
|
export declare const searchTokens: {
|
|
3
3
|
input: {
|
|
4
4
|
base: CSSObject;
|
|
5
|
-
spaceLeft: string;
|
|
6
5
|
small: {
|
|
7
6
|
base: CSSObject;
|
|
8
7
|
};
|
|
@@ -20,7 +19,7 @@ export declare const searchTokens: {
|
|
|
20
19
|
iconWrapper: {
|
|
21
20
|
base: CSSObject;
|
|
22
21
|
};
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
container: {
|
|
23
|
+
base: CSSObject;
|
|
25
24
|
};
|
|
26
25
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare type TagPurpose = 'success' | 'info' | 'danger' | 'warning' | 'default';
|
|
3
|
+
export declare type TagProps = {
|
|
4
|
+
/**Tekst som vises i `<Tag />.` */
|
|
5
|
+
text?: string;
|
|
6
|
+
/**Formål med status eller kategorisering. Påvirker styling. */
|
|
7
|
+
purpose?: TagPurpose;
|
|
8
|
+
} & HTMLAttributes<HTMLSpanElement>;
|
|
9
|
+
export declare const Tag: import("react").ForwardRefExoticComponent<{
|
|
10
|
+
/**Tekst som vises i `<Tag />.` */
|
|
11
|
+
text?: string | undefined;
|
|
12
|
+
/**Formål med status eller kategorisering. Påvirker styling. */
|
|
13
|
+
purpose?: TagPurpose | undefined;
|
|
14
|
+
} & HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TagProps } from '.';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<{
|
|
6
|
+
text?: string | undefined;
|
|
7
|
+
purpose?: import("./Tag").TagPurpose | undefined;
|
|
8
|
+
} & import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
9
|
+
argTypes: {
|
|
10
|
+
text: {
|
|
11
|
+
control: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
16
|
+
export declare const Overview: () => JSX.Element;
|
|
17
|
+
export declare const Default: (args: TagProps) => JSX.Element;
|