@norges-domstoler/dds-components 7.0.0 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/cjs/components/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -1
- package/dist/cjs/components/Button/Button.stories.d.ts +3 -3
- package/dist/cjs/components/Checkbox/Checkbox.stories.d.ts +3 -3
- package/dist/cjs/components/Checkbox/CheckboxGroup.stories.d.ts +5 -0
- package/dist/cjs/components/Chip/Chip.stories.d.ts +1 -1
- package/dist/cjs/components/DescriptionList/DescriptionList.stories.d.ts +1 -1
- package/dist/cjs/components/Divider/Divider.stories.d.ts +1 -1
- package/dist/cjs/components/Drawer/Drawer.stories.d.ts +1 -1
- package/dist/cjs/components/GlobalMessage/GlobalMessage.stories.d.ts +1 -1
- package/dist/cjs/components/Grid/Grid.context.d.ts +6 -0
- package/dist/cjs/components/Grid/Grid.d.ts +24 -0
- package/dist/cjs/components/Grid/Grid.stories.d.ts +8 -0
- package/dist/cjs/components/Grid/Grid.tokens.d.ts +82 -0
- package/dist/cjs/components/Grid/Grid.utils.d.ts +3 -0
- package/dist/cjs/components/Grid/GridChild.d.ts +24 -0
- package/dist/cjs/components/Grid/index.d.ts +2 -0
- package/dist/cjs/components/InputMessage/InputMessage.stories.d.ts +1 -1
- package/dist/cjs/components/InputMessage/InputMessage.tokens.d.ts +0 -1
- package/dist/cjs/components/List/List.stories.d.ts +1 -1
- package/dist/cjs/components/LocalMessage/LocalMessage.stories.d.ts +1 -1
- package/dist/cjs/components/Modal/Modal.stories.d.ts +1 -1
- package/dist/cjs/components/OverflowMenu/OverflowMenu.stories.d.ts +1 -1
- package/dist/cjs/components/Pagination/Pagination.stories.d.ts +1 -1
- package/dist/cjs/components/Popover/Popover.stories.d.ts +1 -1
- package/dist/cjs/components/RadioButton/RadioButton.stories.d.ts +3 -3
- package/dist/cjs/components/RadioButton/RadioButtonGroup.stories.d.ts +1 -1
- package/dist/cjs/components/Select/Select.tokens.d.ts +4 -0
- package/dist/cjs/components/SkipToContent/SkipToContent.stories.d.ts +1 -1
- package/dist/cjs/components/Stepper/Stepper.stories.d.ts +1 -1
- package/dist/cjs/components/Tag/Tag.stories.d.ts +1 -1
- package/dist/cjs/components/ToggleButton/ToggleButton.stories.d.ts +1 -1
- package/dist/cjs/components/Tooltip/Tooltip.stories.d.ts +2 -2
- package/dist/cjs/components/Typography/Caption/Caption.stories.d.ts +1 -1
- package/dist/cjs/components/Typography/Heading/Heading.stories.d.ts +1 -1
- package/dist/cjs/components/Typography/Label/Label.d.ts +6 -2
- package/dist/cjs/components/Typography/Label/Label.stories.d.ts +3 -1
- package/dist/cjs/components/Typography/Legend/Legend.stories.d.ts +1 -1
- package/dist/cjs/components/Typography/Link/Link.stories.d.ts +1 -1
- package/dist/cjs/components/Typography/Paragraph/Paragraph.stories.d.ts +1 -1
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +530 -330
- package/dist/components/Breadcrumbs/Breadcrumb.js +7 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -1
- package/dist/components/Button/Button.stories.d.ts +3 -3
- package/dist/components/Checkbox/Checkbox.js +5 -5
- package/dist/components/Checkbox/Checkbox.stories.d.ts +3 -3
- package/dist/components/Checkbox/CheckboxGroup.stories.d.ts +5 -0
- package/dist/components/Chip/Chip.stories.d.ts +1 -1
- package/dist/components/Datepicker/Datepicker.js +6 -5
- package/dist/components/DescriptionList/DescriptionList.stories.d.ts +1 -1
- package/dist/components/Divider/Divider.stories.d.ts +1 -1
- package/dist/components/Drawer/Drawer.js +7 -7
- package/dist/components/Drawer/Drawer.stories.d.ts +1 -1
- package/dist/components/GlobalMessage/GlobalMessage.js +7 -0
- package/dist/components/GlobalMessage/GlobalMessage.stories.d.ts +1 -1
- package/dist/components/Grid/Grid.context.d.ts +6 -0
- package/dist/components/Grid/Grid.context.js +12 -0
- package/dist/components/Grid/Grid.d.ts +24 -0
- package/dist/components/Grid/Grid.js +61 -0
- package/dist/components/Grid/Grid.stories.d.ts +8 -0
- package/dist/components/Grid/Grid.tokens.d.ts +82 -0
- package/dist/components/Grid/Grid.tokens.js +89 -0
- package/dist/components/Grid/Grid.utils.d.ts +3 -0
- package/dist/components/Grid/Grid.utils.js +24 -0
- package/dist/components/Grid/GridChild.d.ts +24 -0
- package/dist/components/Grid/GridChild.js +46 -0
- package/dist/components/Grid/index.d.ts +2 -0
- package/dist/components/InputMessage/InputMessage.js +8 -1
- package/dist/components/InputMessage/InputMessage.stories.d.ts +1 -1
- package/dist/components/InputMessage/InputMessage.tokens.d.ts +0 -1
- package/dist/components/InputMessage/InputMessage.tokens.js +1 -2
- package/dist/components/InternalHeader/InternalHeader.js +7 -0
- package/dist/components/List/List.stories.d.ts +1 -1
- package/dist/components/LocalMessage/LocalMessage.js +7 -0
- package/dist/components/LocalMessage/LocalMessage.stories.d.ts +1 -1
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/Modal.stories.d.ts +1 -1
- package/dist/components/OverflowMenu/OverflowMenu.stories.d.ts +1 -1
- package/dist/components/Pagination/Pagination.js +7 -0
- package/dist/components/Pagination/Pagination.stories.d.ts +1 -1
- package/dist/components/Popover/Popover.js +7 -0
- package/dist/components/Popover/Popover.stories.d.ts +1 -1
- package/dist/components/RadioButton/RadioButton.js +3 -3
- package/dist/components/RadioButton/RadioButton.stories.d.ts +3 -3
- package/dist/components/RadioButton/RadioButtonGroup.stories.d.ts +1 -1
- package/dist/components/Select/Select.js +6 -12
- package/dist/components/Select/Select.styles.js +5 -2
- package/dist/components/Select/Select.tokens.d.ts +4 -0
- package/dist/components/Select/Select.tokens.js +4 -0
- package/dist/components/SkipToContent/SkipToContent.stories.d.ts +1 -1
- package/dist/components/Stepper/Stepper.stories.d.ts +1 -1
- package/dist/components/Tag/Tag.js +7 -0
- package/dist/components/Tag/Tag.stories.d.ts +1 -1
- package/dist/components/TextInput/CharCounter.js +8 -2
- package/dist/components/TextInput/TextInput.js +8 -7
- package/dist/components/ToggleBar/ToggleBar.js +7 -0
- package/dist/components/ToggleButton/ToggleButton.stories.d.ts +1 -1
- package/dist/components/ToggleButton/ToggleButtonGroup.js +7 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts +2 -2
- package/dist/components/Typography/Caption/Caption.stories.d.ts +1 -1
- package/dist/components/Typography/Heading/Heading.stories.d.ts +1 -1
- package/dist/components/Typography/Label/Label.d.ts +6 -2
- package/dist/components/Typography/Label/Label.js +13 -5
- package/dist/components/Typography/Label/Label.stories.d.ts +3 -1
- package/dist/components/Typography/Legend/Legend.stories.d.ts +1 -1
- package/dist/components/Typography/Link/Link.stories.d.ts +1 -1
- package/dist/components/Typography/Paragraph/Paragraph.stories.d.ts +1 -1
- package/dist/components/Typography/Typography.utils.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/package.json +29 -30
- package/dist/cjs/components/TextInput/CharCounter.tokens.d.ts +0 -4
- package/dist/components/TextInput/CharCounter.tokens.d.ts +0 -4
- package/dist/components/TextInput/CharCounter.tokens.js +0 -11
|
@@ -5,6 +5,13 @@ import { Icon } from '../Icon/Icon.js';
|
|
|
5
5
|
import { inputMessageTokens } from './InputMessage.tokens.js';
|
|
6
6
|
import { Typography } from '../Typography/Typography/Typography.js';
|
|
7
7
|
import { forwardRef } from 'react';
|
|
8
|
+
import '../../helpers/Backdrop/Backdrop.js';
|
|
9
|
+
import '../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
|
|
10
|
+
import '../../helpers/HiddenInput/HiddenInput.js';
|
|
11
|
+
import '../../helpers/Input/Input.styles.js';
|
|
12
|
+
import '../../helpers/Input/Input.tokens.js';
|
|
13
|
+
import '../../helpers/Paper/Paper.js';
|
|
14
|
+
import '../../helpers/RequiredMarker/RequiredMarker.js';
|
|
8
15
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
9
16
|
import '../Typography/Link/Link.js';
|
|
10
17
|
import '../../icons/utils/StyledSvg.js';
|
|
@@ -15,7 +22,7 @@ var InputMessageWrapper = styled.div.withConfig({
|
|
|
15
22
|
componentId: "sc-c954fy-0"
|
|
16
23
|
})(["display:flex;width:fit-content;word-break:break-word;max-width:100%;", " svg{margin-top:", ";}"], function (_ref) {
|
|
17
24
|
var messageType = _ref.messageType;
|
|
18
|
-
return messageType === 'tip' ? css(["background-color:", ";
|
|
25
|
+
return messageType === 'tip' ? css(["background-color:", ";"], inputMessageTokens.message.tip.backgroundColor) : messageType === 'error' ? css(["color:", ";background-color:", ";padding:", ";gap:", ";"], inputMessageTokens.message.error.color, inputMessageTokens.message.error.backgroundColor, inputMessageTokens.message.error.padding, inputMessageTokens.message.error.gap) : '';
|
|
19
26
|
}, inputMessageTokens.icon.marginTop);
|
|
20
27
|
var InputMessage = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
21
28
|
var message = props.message,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InputMessageProps } from '.';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLDivElement>, "
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLDivElement>, "className" | "id"> & {
|
|
5
5
|
message: string;
|
|
6
6
|
messageType: import("./InputMessage").InputMessageType;
|
|
7
7
|
} & {
|
|
@@ -4,8 +4,7 @@ var colors = ddsBaseTokens.colors,
|
|
|
4
4
|
spacing = ddsBaseTokens.spacing;
|
|
5
5
|
var message = {
|
|
6
6
|
tip: {
|
|
7
|
-
backgroundColor: colors.DdsColorNeutralsWhite
|
|
8
|
-
padding: "".concat(spacing.SizesDdsSpacingLocalX025, " 0")
|
|
7
|
+
backgroundColor: colors.DdsColorNeutralsWhite
|
|
9
8
|
},
|
|
10
9
|
error: {
|
|
11
10
|
padding: "".concat(spacing.SizesDdsSpacingLocalX025, " ").concat(spacing.SizesDdsSpacingLocalX05),
|
|
@@ -3,6 +3,13 @@ import { __rest } from 'tslib';
|
|
|
3
3
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
import { useState, useRef } from 'react';
|
|
5
5
|
import { Typography } from '../Typography/Typography/Typography.js';
|
|
6
|
+
import '../../helpers/Backdrop/Backdrop.js';
|
|
7
|
+
import '../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
|
|
8
|
+
import '../../helpers/HiddenInput/HiddenInput.js';
|
|
9
|
+
import '../../helpers/Input/Input.styles.js';
|
|
10
|
+
import '../../helpers/Input/Input.tokens.js';
|
|
11
|
+
import '../../helpers/Paper/Paper.js';
|
|
12
|
+
import '../../helpers/RequiredMarker/RequiredMarker.js';
|
|
6
13
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
7
14
|
import '../Typography/Link/Link.js';
|
|
8
15
|
import { Button } from '../Button/Button.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ListProps } from '.';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLOListElement | HTMLUListElement>, "
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLOListElement | HTMLUListElement>, "className" | "id"> & {
|
|
5
5
|
listType?: import("./List").ListType | undefined;
|
|
6
6
|
typographyType?: import("./List").ListTypographyType | undefined;
|
|
7
7
|
} & {
|
|
@@ -7,6 +7,13 @@ import { forwardRef, useState } from 'react';
|
|
|
7
7
|
import { localMessageTokens } from './LocalMessage.tokens.js';
|
|
8
8
|
import { Icon } from '../Icon/Icon.js';
|
|
9
9
|
import { Typography } from '../Typography/Typography/Typography.js';
|
|
10
|
+
import '../../helpers/Backdrop/Backdrop.js';
|
|
11
|
+
import '../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
|
|
12
|
+
import '../../helpers/HiddenInput/HiddenInput.js';
|
|
13
|
+
import '../../helpers/Input/Input.styles.js';
|
|
14
|
+
import '../../helpers/Input/Input.tokens.js';
|
|
15
|
+
import '../../helpers/Paper/Paper.js';
|
|
16
|
+
import '../../helpers/RequiredMarker/RequiredMarker.js';
|
|
10
17
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
11
18
|
import '../Typography/Link/Link.js';
|
|
12
19
|
import '../../icons/utils/StyledSvg.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LocalMessageProps } from './LocalMessage';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLDivElement>, "
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLDivElement>, "className" | "id"> & {
|
|
5
5
|
message?: string | undefined;
|
|
6
6
|
purpose?: import("./LocalMessage").LocalMessagePurpose | undefined;
|
|
7
7
|
closable?: boolean | undefined;
|
|
@@ -13,8 +13,6 @@ import { useMountTransition } from '../../hooks/useMountTransition.js';
|
|
|
13
13
|
import '../../hooks/useScreenSize.js';
|
|
14
14
|
import { createPortal } from 'react-dom';
|
|
15
15
|
import { Typography } from '../Typography/Typography/Typography.js';
|
|
16
|
-
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
17
|
-
import '../Typography/Link/Link.js';
|
|
18
16
|
import { Backdrop } from '../../helpers/Backdrop/Backdrop.js';
|
|
19
17
|
import { handleElementWithBackdropMount, handleElementWithBackdropUnmount } from '../../helpers/Backdrop/Backdrop.utils.js';
|
|
20
18
|
import '../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
|
|
@@ -23,6 +21,8 @@ import '../../helpers/Input/Input.styles.js';
|
|
|
23
21
|
import '../../helpers/Input/Input.tokens.js';
|
|
24
22
|
import '../../helpers/Paper/Paper.js';
|
|
25
23
|
import '../../helpers/RequiredMarker/RequiredMarker.js';
|
|
24
|
+
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
25
|
+
import '../Typography/Link/Link.js';
|
|
26
26
|
import '../../icons/utils/StyledSvg.js';
|
|
27
27
|
import { CloseIcon } from '../../icons/tsx/close.js';
|
|
28
28
|
import '../../helpers/styling/focusVisible.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ModalProps } from '.';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLDivElement>, "
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLDivElement>, "className" | "id"> & {
|
|
5
5
|
isOpen?: boolean | undefined;
|
|
6
6
|
onClose?: (() => void) | undefined;
|
|
7
7
|
parentElement?: HTMLElement | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OverflowMenuProps, OverflowMenuContextItem, OverflowMenuNavItem } from '.';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLDivElement>, "
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLDivElement>, "className" | "id"> & {
|
|
5
5
|
items?: OverflowMenuContextItem[] | undefined;
|
|
6
6
|
userProps?: ({
|
|
7
7
|
name: string;
|
|
@@ -4,6 +4,13 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
4
4
|
import { forwardRef, useState } from 'react';
|
|
5
5
|
import styled, { css } from 'styled-components';
|
|
6
6
|
import { Typography } from '../Typography/Typography/Typography.js';
|
|
7
|
+
import '../../helpers/Backdrop/Backdrop.js';
|
|
8
|
+
import '../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
|
|
9
|
+
import '../../helpers/HiddenInput/HiddenInput.js';
|
|
10
|
+
import '../../helpers/Input/Input.styles.js';
|
|
11
|
+
import '../../helpers/Input/Input.tokens.js';
|
|
12
|
+
import '../../helpers/Paper/Paper.js';
|
|
13
|
+
import '../../helpers/RequiredMarker/RequiredMarker.js';
|
|
7
14
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
8
15
|
import '../Typography/Link/Link.js';
|
|
9
16
|
import { Button } from '../Button/Button.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PaginationProps } from '.';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").HTMLAttributes<HTMLElement>, "onChange">, "
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").HTMLAttributes<HTMLElement>, "onChange">, "className" | "id"> & {
|
|
5
5
|
itemsAmount: number;
|
|
6
6
|
defaultItemsPerPage?: number | undefined;
|
|
7
7
|
defaultActivePage?: number | undefined;
|
|
@@ -15,6 +15,13 @@ import '../../hooks/useScreenSize.js';
|
|
|
15
15
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
16
16
|
import { Button } from '../Button/Button.js';
|
|
17
17
|
import { Typography } from '../Typography/Typography/Typography.js';
|
|
18
|
+
import '../../helpers/Backdrop/Backdrop.js';
|
|
19
|
+
import '../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
|
|
20
|
+
import '../../helpers/HiddenInput/HiddenInput.js';
|
|
21
|
+
import '../../helpers/Input/Input.styles.js';
|
|
22
|
+
import '../../helpers/Input/Input.tokens.js';
|
|
23
|
+
import '../../helpers/Paper/Paper.js';
|
|
24
|
+
import '../../helpers/RequiredMarker/RequiredMarker.js';
|
|
18
25
|
import '../Typography/Link/Link.js';
|
|
19
26
|
import { popoverTokens } from './Popover.tokens.js';
|
|
20
27
|
import '../../icons/utils/StyledSvg.js';
|
|
@@ -2,7 +2,7 @@ import { PopoverProps } from '.';
|
|
|
2
2
|
import { Placement } from '../../hooks';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLDivElement>, "
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLDivElement>, "className" | "id"> & {
|
|
6
6
|
title?: import("react").ReactNode;
|
|
7
7
|
isOpen?: boolean | undefined;
|
|
8
8
|
withCloseButton?: boolean | undefined;
|
|
@@ -2,9 +2,6 @@ import { __rest } from 'tslib';
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { forwardRef, useId } from 'react';
|
|
4
4
|
import { Typography } from '../Typography/Typography/Typography.js';
|
|
5
|
-
import { getBaseHTMLProps, joinClassNames } from '../../types/BaseComponentProps.js';
|
|
6
|
-
import '../Typography/Link/Link.js';
|
|
7
|
-
import { useRadioButtonGroup } from './RadioButtonGroupContext.js';
|
|
8
5
|
import '../../helpers/Backdrop/Backdrop.js';
|
|
9
6
|
import '../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
|
|
10
7
|
import { HiddenInput } from '../../helpers/HiddenInput/HiddenInput.js';
|
|
@@ -12,6 +9,9 @@ import '../../helpers/Input/Input.styles.js';
|
|
|
12
9
|
import '../../helpers/Input/Input.tokens.js';
|
|
13
10
|
import '../../helpers/Paper/Paper.js';
|
|
14
11
|
import '../../helpers/RequiredMarker/RequiredMarker.js';
|
|
12
|
+
import { getBaseHTMLProps, joinClassNames } from '../../types/BaseComponentProps.js';
|
|
13
|
+
import '../Typography/Link/Link.js';
|
|
14
|
+
import { useRadioButtonGroup } from './RadioButtonGroupContext.js';
|
|
15
15
|
import { Container, CustomSelectionControl } from '../../helpers/SelectionControl/SelectionControl.styles.js';
|
|
16
16
|
import '../../helpers/SelectionControl/SelectionControl.tokens.js';
|
|
17
17
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { RadioButtonProps } from '.';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "name" | "aria-describedby" | "onChange" | "value" | "checked" | "readOnly" | "required">, "className" | "id"> & {
|
|
5
5
|
label?: string | undefined;
|
|
6
6
|
disabled?: boolean | undefined;
|
|
7
7
|
error?: boolean | undefined;
|
|
8
8
|
} & {
|
|
9
|
+
name?: string | undefined;
|
|
9
10
|
'aria-describedby'?: string | undefined;
|
|
10
11
|
onChange?: import("react").ChangeEventHandler<HTMLInputElement> | undefined;
|
|
11
|
-
name?: string | undefined;
|
|
12
12
|
value?: string | number | readonly string[] | undefined;
|
|
13
13
|
checked?: boolean | undefined;
|
|
14
14
|
readOnly?: boolean | undefined;
|
|
@@ -16,7 +16,7 @@ declare const _default: {
|
|
|
16
16
|
} & {
|
|
17
17
|
children?: import("react").ReactNode;
|
|
18
18
|
} & {
|
|
19
|
-
htmlProps?: Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "
|
|
19
|
+
htmlProps?: Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "name" | "aria-describedby" | "onChange" | "value" | "checked" | "readOnly" | "required"> | undefined;
|
|
20
20
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
21
21
|
argTypes: {
|
|
22
22
|
label: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RadioButtonGroupProps } from '.';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: <T extends string | number = string>(props: Pick<Omit<import("react").HTMLAttributes<HTMLDivElement>, "onChange">, "
|
|
4
|
+
component: <T extends string | number = string>(props: Pick<Omit<import("react").HTMLAttributes<HTMLDivElement>, "onChange">, "className" | "id"> & {
|
|
5
5
|
name?: string | undefined;
|
|
6
6
|
label?: string | undefined;
|
|
7
7
|
onChange?: ((event: import("react").ChangeEvent<HTMLInputElement>, value: T | undefined) => void) | undefined;
|
|
@@ -2,14 +2,6 @@ import { __rest } from 'tslib';
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import React, { useId } from 'react';
|
|
4
4
|
import ReactSelect, { components } from 'react-select';
|
|
5
|
-
import '../../helpers/Backdrop/Backdrop.js';
|
|
6
|
-
import '../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
|
|
7
|
-
import '../../helpers/HiddenInput/HiddenInput.js';
|
|
8
|
-
import '../../helpers/Input/Input.styles.js';
|
|
9
|
-
import '../../helpers/Input/Input.tokens.js';
|
|
10
|
-
import { getFormInputIconSize } from '../../helpers/Input/Input.utils.js';
|
|
11
|
-
import '../../helpers/Paper/Paper.js';
|
|
12
|
-
import { RequiredMarker } from '../../helpers/RequiredMarker/RequiredMarker.js';
|
|
13
5
|
import '../../icons/utils/StyledSvg.js';
|
|
14
6
|
import { CheckIcon } from '../../icons/tsx/check.js';
|
|
15
7
|
import { ChevronDownIcon } from '../../icons/tsx/chevronDown.js';
|
|
@@ -22,6 +14,7 @@ import { prefix, getCustomStyles, Container, InnerSingleValue, StyledIcon } from
|
|
|
22
14
|
import '../Typography/Typography/Typography.js';
|
|
23
15
|
import { Label } from '../Typography/Label/Label.js';
|
|
24
16
|
import '../Typography/Link/Link.js';
|
|
17
|
+
import { getFormInputIconSize } from '../../helpers/Input/Input.utils.js';
|
|
25
18
|
|
|
26
19
|
var Option = components.Option,
|
|
27
20
|
NoOptionsMessage = components.NoOptionsMessage,
|
|
@@ -166,7 +159,7 @@ var SelectInner = function SelectInner(props, ref) {
|
|
|
166
159
|
var singleValueId = !isMulti ? "".concat(uniqueId, "-singleValue") : undefined;
|
|
167
160
|
var hasLabel = !!label;
|
|
168
161
|
var hasErrorMessage = !!errorMessage;
|
|
169
|
-
var
|
|
162
|
+
var showRequiredStyling = !!(required || ariaRequired);
|
|
170
163
|
var tipId = derivativeIdGenerator(uniqueId, 'tip', tip);
|
|
171
164
|
var errorMessageId = derivativeIdGenerator(uniqueId, 'errorMessage', errorMessage);
|
|
172
165
|
var containerProps = {
|
|
@@ -224,10 +217,11 @@ var SelectInner = function SelectInner(props, ref) {
|
|
|
224
217
|
'aria-invalid': hasErrorMessage ? true : undefined
|
|
225
218
|
}, rest);
|
|
226
219
|
return jsxs(Container, Object.assign({}, containerProps, {
|
|
227
|
-
children: [hasLabel &&
|
|
228
|
-
htmlFor: uniqueId
|
|
220
|
+
children: [hasLabel && jsx(Label, Object.assign({
|
|
221
|
+
htmlFor: uniqueId,
|
|
222
|
+
showRequiredStyling: showRequiredStyling
|
|
229
223
|
}, {
|
|
230
|
-
children:
|
|
224
|
+
children: label
|
|
231
225
|
})), jsx(ReactSelect, Object.assign({}, reactSelectProps, {
|
|
232
226
|
ref: ref
|
|
233
227
|
})), errorMessage && jsx(InputMessage, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
-
import
|
|
2
|
+
import '../../helpers/styling/focusVisible.js';
|
|
3
3
|
import { hoverDangerInputfield, hoverInputfield } from '../../helpers/styling/hover.js';
|
|
4
4
|
import { focusInputfield } from '../../helpers/styling/focus.js';
|
|
5
5
|
import { dangerInputfield } from '../../helpers/styling/danger.js';
|
|
@@ -199,7 +199,10 @@ var getCustomStyles = function getCustomStyles() {
|
|
|
199
199
|
}
|
|
200
200
|
}), state.isSelected && {
|
|
201
201
|
backgroundColor: _option.selected.backgroundColor
|
|
202
|
-
}), state.isFocused &&
|
|
202
|
+
}), state.isFocused && {
|
|
203
|
+
color: _option.focus.color,
|
|
204
|
+
backgroundColor: _option.focus.backgroundColor
|
|
205
|
+
});
|
|
203
206
|
},
|
|
204
207
|
noOptionsMessage: function noOptionsMessage() {
|
|
205
208
|
return Object.assign({
|
|
@@ -112,6 +112,10 @@ var option = {
|
|
|
112
112
|
color: textDefault.textColor,
|
|
113
113
|
backgroundColor: colors.DdsColorInteractiveLightest
|
|
114
114
|
},
|
|
115
|
+
focus: {
|
|
116
|
+
color: textDefault.textColor,
|
|
117
|
+
backgroundColor: colors.DdsColorInteractiveLightest
|
|
118
|
+
},
|
|
115
119
|
selected: Object.assign({
|
|
116
120
|
backgroundColor: colors.DdsColorNeutralsWhite
|
|
117
121
|
}, fontPackages.body_sans_02.base),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SkipToContentProps } from '.';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLAnchorElement>, "
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLAnchorElement>, "className" | "id"> & {
|
|
5
5
|
text?: string | undefined;
|
|
6
6
|
href: string;
|
|
7
7
|
top?: import("csstype").Property.Top<string | number> | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
title: string;
|
|
3
|
-
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLDivElement>, "
|
|
3
|
+
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLDivElement>, "className" | "id"> & {
|
|
4
4
|
activeStep?: number | undefined;
|
|
5
5
|
} & {
|
|
6
6
|
children?: import("react").ReactNode;
|
|
@@ -4,6 +4,13 @@ import { forwardRef } from 'react';
|
|
|
4
4
|
import styled, { css } from 'styled-components';
|
|
5
5
|
import { tagTokens } from './Tag.tokens.js';
|
|
6
6
|
import { Typography } from '../Typography/Typography/Typography.js';
|
|
7
|
+
import '../../helpers/Backdrop/Backdrop.js';
|
|
8
|
+
import '../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
|
|
9
|
+
import '../../helpers/HiddenInput/HiddenInput.js';
|
|
10
|
+
import '../../helpers/Input/Input.styles.js';
|
|
11
|
+
import '../../helpers/Input/Input.tokens.js';
|
|
12
|
+
import '../../helpers/Paper/Paper.js';
|
|
13
|
+
import '../../helpers/RequiredMarker/RequiredMarker.js';
|
|
7
14
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
8
15
|
import '../Typography/Link/Link.js';
|
|
9
16
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TagProps } from '.';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLSpanElement>, "
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLSpanElement>, "className" | "id"> & {
|
|
5
5
|
text?: string | undefined;
|
|
6
6
|
purpose?: import("./Tag").TagPurpose | undefined;
|
|
7
7
|
} & {
|
|
@@ -4,13 +4,19 @@ import { useId } from 'react';
|
|
|
4
4
|
import styled from 'styled-components';
|
|
5
5
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
6
6
|
import { Typography } from '../Typography/Typography/Typography.js';
|
|
7
|
+
import '../../helpers/Backdrop/Backdrop.js';
|
|
8
|
+
import '../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
|
|
9
|
+
import '../../helpers/HiddenInput/HiddenInput.js';
|
|
10
|
+
import '../../helpers/Input/Input.styles.js';
|
|
11
|
+
import '../../helpers/Input/Input.tokens.js';
|
|
12
|
+
import '../../helpers/Paper/Paper.js';
|
|
13
|
+
import '../../helpers/RequiredMarker/RequiredMarker.js';
|
|
7
14
|
import '../Typography/Link/Link.js';
|
|
8
|
-
import { charCounterTokens } from './CharCounter.tokens.js';
|
|
9
15
|
|
|
10
16
|
var Wrapper = styled(Typography).withConfig({
|
|
11
17
|
displayName: "CharCounter__Wrapper",
|
|
12
18
|
componentId: "sc-qty1z2-0"
|
|
13
|
-
})(["margin-left:auto;"
|
|
19
|
+
})(["margin-left:auto;"]);
|
|
14
20
|
|
|
15
21
|
function CharCounter(props) {
|
|
16
22
|
var current = props.current,
|
|
@@ -2,6 +2,8 @@ import { slicedToArray as _slicedToArray } from '../../_virtual/_rollupPluginBab
|
|
|
2
2
|
import { __rest } from 'tslib';
|
|
3
3
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { forwardRef, useRef, useState, useEffect, useId } from 'react';
|
|
5
|
+
import { InputMessage } from '../InputMessage/InputMessage.js';
|
|
6
|
+
import CharCounter from './CharCounter.js';
|
|
5
7
|
import '../../helpers/Backdrop/Backdrop.js';
|
|
6
8
|
import '../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
|
|
7
9
|
import '../../helpers/HiddenInput/HiddenInput.js';
|
|
@@ -9,9 +11,7 @@ import { OuterInputContainer, InputContainer, StatefulInput } from '../../helper
|
|
|
9
11
|
import '../../helpers/Input/Input.tokens.js';
|
|
10
12
|
import { getFormInputIconSize } from '../../helpers/Input/Input.utils.js';
|
|
11
13
|
import '../../helpers/Paper/Paper.js';
|
|
12
|
-
import
|
|
13
|
-
import { InputMessage } from '../InputMessage/InputMessage.js';
|
|
14
|
-
import CharCounter from './CharCounter.js';
|
|
14
|
+
import '../../helpers/RequiredMarker/RequiredMarker.js';
|
|
15
15
|
import { TextArea, StyledIcon, StyledInput, MessageContainer } from './TextInput.styles.js';
|
|
16
16
|
import '../Typography/Typography/Typography.js';
|
|
17
17
|
import { Label } from '../Typography/Label/Label.js';
|
|
@@ -119,12 +119,13 @@ var TextInput = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
119
119
|
style: style,
|
|
120
120
|
width: getWidth(componentSize, width)
|
|
121
121
|
};
|
|
122
|
-
var
|
|
122
|
+
var showRequiredStyling = !!(required || ariaRequired);
|
|
123
123
|
return jsxs(OuterInputContainer, Object.assign({}, outerInputContainerProps, {
|
|
124
|
-
children: [hasLabel &&
|
|
125
|
-
htmlFor: uniqueId
|
|
124
|
+
children: [hasLabel && jsx(Label, Object.assign({
|
|
125
|
+
htmlFor: uniqueId,
|
|
126
|
+
showRequiredStyling: showRequiredStyling
|
|
126
127
|
}, {
|
|
127
|
-
children:
|
|
128
|
+
children: label
|
|
128
129
|
})), multiline ? jsx(TextArea, Object.assign({
|
|
129
130
|
ref: textAreaRef,
|
|
130
131
|
as: "textarea",
|
|
@@ -12,6 +12,13 @@ import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
|
12
12
|
import { combineHandlers } from '../../utils/combineHandlers.js';
|
|
13
13
|
import '../../utils/color.js';
|
|
14
14
|
import { Typography } from '../Typography/Typography/Typography.js';
|
|
15
|
+
import '../../helpers/Backdrop/Backdrop.js';
|
|
16
|
+
import '../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
|
|
17
|
+
import '../../helpers/HiddenInput/HiddenInput.js';
|
|
18
|
+
import '../../helpers/Input/Input.styles.js';
|
|
19
|
+
import '../../helpers/Input/Input.tokens.js';
|
|
20
|
+
import '../../helpers/Paper/Paper.js';
|
|
21
|
+
import '../../helpers/RequiredMarker/RequiredMarker.js';
|
|
15
22
|
import '../Typography/Link/Link.js';
|
|
16
23
|
import { ToggleBarContext } from './ToggleBar.context.js';
|
|
17
24
|
import { toggleBarTokens } from './ToggleBar.tokens.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ToggleButtonProps } from '.';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import("react").ForwardRefExoticComponent<Pick<import("react").InputHTMLAttributes<HTMLInputElement>, "
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<Pick<import("react").InputHTMLAttributes<HTMLInputElement>, "className" | "id"> & {
|
|
5
5
|
label?: string | undefined;
|
|
6
6
|
icon?: import("../../icons/utils").SvgIcon | undefined;
|
|
7
7
|
} & {
|
|
@@ -4,6 +4,13 @@ import { useId } from 'react';
|
|
|
4
4
|
import styled, { css } from 'styled-components';
|
|
5
5
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
6
6
|
import { Typography } from '../Typography/Typography/Typography.js';
|
|
7
|
+
import '../../helpers/Backdrop/Backdrop.js';
|
|
8
|
+
import '../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
|
|
9
|
+
import '../../helpers/HiddenInput/HiddenInput.js';
|
|
10
|
+
import '../../helpers/Input/Input.styles.js';
|
|
11
|
+
import '../../helpers/Input/Input.tokens.js';
|
|
12
|
+
import '../../helpers/Paper/Paper.js';
|
|
13
|
+
import '../../helpers/RequiredMarker/RequiredMarker.js';
|
|
7
14
|
import '../Typography/Link/Link.js';
|
|
8
15
|
import { toggleButtonTokens } from './ToggleButton.tokens.js';
|
|
9
16
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TooltipProps } from '.';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").HTMLAttributes<HTMLDivElement>, "
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").HTMLAttributes<HTMLDivElement>, "style" | "children" | "onMouseLeave" | "onMouseOver">, "className" | "id"> & {
|
|
5
5
|
text: string;
|
|
6
6
|
placement?: import("../..").Placement | undefined;
|
|
7
7
|
children: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> & import("react").RefAttributes<HTMLElement>;
|
|
@@ -12,7 +12,7 @@ declare const _default: {
|
|
|
12
12
|
onMouseLeave?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
13
13
|
onMouseOver?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
14
14
|
} & {
|
|
15
|
-
htmlProps?: Omit<import("react").HTMLAttributes<HTMLDivElement>, "
|
|
15
|
+
htmlProps?: Omit<import("react").HTMLAttributes<HTMLDivElement>, "style" | "children" | "onMouseLeave" | "onMouseOver"> | undefined;
|
|
16
16
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
17
|
argTypes: {
|
|
18
18
|
text: {
|
|
@@ -4,7 +4,7 @@ declare type StoryTProps = {
|
|
|
4
4
|
} & CaptionProps;
|
|
5
5
|
declare const _default: {
|
|
6
6
|
title: string;
|
|
7
|
-
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLTableCaptionElement>, "
|
|
7
|
+
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLTableCaptionElement>, "className" | "id"> & {
|
|
8
8
|
withMargins?: boolean | undefined;
|
|
9
9
|
} & {
|
|
10
10
|
children?: import("react").ReactNode;
|
|
@@ -4,7 +4,7 @@ declare type StoryTProps = {
|
|
|
4
4
|
} & HeadingProps;
|
|
5
5
|
declare const _default: {
|
|
6
6
|
title: string;
|
|
7
|
-
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLHeadingElement>, "
|
|
7
|
+
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLHeadingElement>, "className" | "id"> & {
|
|
8
8
|
level: import("./Heading").HeadingLevel;
|
|
9
9
|
typographyType?: import("..").TypographyHeadingType | undefined;
|
|
10
10
|
} & {
|
|
@@ -2,8 +2,12 @@ import { LabelHTMLAttributes } from 'react';
|
|
|
2
2
|
import { BaseComponentPropsWithChildren } from '../../../types';
|
|
3
3
|
import { BaseTypographyProps } from '../Typography';
|
|
4
4
|
declare type PickedHTMLAttributes = Pick<LabelHTMLAttributes<HTMLLabelElement>, 'htmlFor'>;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
declare type BaseLabelProps = {
|
|
6
|
+
/** Spesifiserer om input etiketten er knyttet til er påkrevd; påvirker styling. */
|
|
7
|
+
showRequiredStyling?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare type LabelProps = BaseComponentPropsWithChildren<HTMLLabelElement, BaseLabelProps & BaseTypographyProps & PickedHTMLAttributes, Omit<LabelHTMLAttributes<HTMLLabelElement>, keyof PickedHTMLAttributes>>;
|
|
10
|
+
export declare const Label: import("react").ForwardRefExoticComponent<Pick<Omit<LabelHTMLAttributes<HTMLLabelElement>, "htmlFor">, "className" | "id"> & BaseLabelProps & {
|
|
7
11
|
withMargins?: boolean | undefined;
|
|
8
12
|
} & {
|
|
9
13
|
children?: import("react").ReactNode;
|
|
@@ -1,21 +1,29 @@
|
|
|
1
1
|
import { __rest } from 'tslib';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
|
+
import '../../../helpers/Backdrop/Backdrop.js';
|
|
5
|
+
import '../../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
|
|
6
|
+
import '../../../helpers/HiddenInput/HiddenInput.js';
|
|
7
|
+
import '../../../helpers/Input/Input.styles.js';
|
|
8
|
+
import '../../../helpers/Input/Input.tokens.js';
|
|
9
|
+
import '../../../helpers/Paper/Paper.js';
|
|
10
|
+
import { RequiredMarker } from '../../../helpers/RequiredMarker/RequiredMarker.js';
|
|
4
11
|
import { getBaseHTMLProps } from '../../../types/BaseComponentProps.js';
|
|
5
12
|
import { Typography } from '../Typography/Typography.js';
|
|
6
13
|
|
|
7
14
|
var Label = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
8
|
-
var
|
|
15
|
+
var showRequiredStyling = props.showRequiredStyling,
|
|
16
|
+
id = props.id,
|
|
9
17
|
className = props.className,
|
|
10
18
|
htmlProps = props.htmlProps,
|
|
11
19
|
children = props.children,
|
|
12
|
-
rest = __rest(props, ["id", "className", "htmlProps", "children"]);
|
|
20
|
+
rest = __rest(props, ["showRequiredStyling", "id", "className", "htmlProps", "children"]);
|
|
13
21
|
|
|
14
|
-
return
|
|
22
|
+
return jsxs(Typography, Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest), {
|
|
15
23
|
ref: ref,
|
|
16
24
|
typographyType: "supportingStyleLabel01"
|
|
17
25
|
}, {
|
|
18
|
-
children: children
|
|
26
|
+
children: [children, " ", showRequiredStyling && jsx(RequiredMarker, {})]
|
|
19
27
|
}));
|
|
20
28
|
});
|
|
21
29
|
|
|
@@ -4,7 +4,9 @@ declare type StoryTProps = {
|
|
|
4
4
|
} & LabelProps;
|
|
5
5
|
declare const _default: {
|
|
6
6
|
title: string;
|
|
7
|
-
component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").LabelHTMLAttributes<HTMLLabelElement>, "htmlFor">, "
|
|
7
|
+
component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").LabelHTMLAttributes<HTMLLabelElement>, "htmlFor">, "className" | "id"> & {
|
|
8
|
+
showRequiredStyling?: boolean | undefined;
|
|
9
|
+
} & {
|
|
8
10
|
withMargins?: boolean | undefined;
|
|
9
11
|
} & {
|
|
10
12
|
children?: import("react").ReactNode;
|
|
@@ -4,7 +4,7 @@ declare type StoryTProps = {
|
|
|
4
4
|
} & LegendProps;
|
|
5
5
|
declare const _default: {
|
|
6
6
|
title: string;
|
|
7
|
-
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLLegendElement>, "
|
|
7
|
+
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLLegendElement>, "className" | "id"> & {
|
|
8
8
|
withMargins?: boolean | undefined;
|
|
9
9
|
} & {
|
|
10
10
|
children?: import("react").ReactNode;
|