@norges-domstoler/dds-components 2.4.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/{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 +0 -0
- 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 +0 -0
- 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 +0 -0
- package/dist/{src/components → components}/Tabs/index.d.ts +0 -0
- package/dist/{src/components → components}/Tag/Tag.d.ts +0 -0
- package/dist/{src/components → components}/Tag/Tag.stories.d.ts +0 -0
- package/dist/{src/components → components}/Tag/Tag.tokens.d.ts +0 -0
- package/dist/{src/components → components}/Tag/index.d.ts +0 -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 +0 -0
- 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 +0 -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} +1 -0
- package/dist/index.es.js +803 -760
- package/dist/index.js +805 -760
- 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
|
|
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
|
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
|
|
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,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
|
|
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,12 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TextInputProps } from './TextInput.types';
|
|
3
|
-
export declare const TextArea: import("styled-components").StyledComponent<"
|
|
3
|
+
export declare const TextArea: import("styled-components").StyledComponent<"input", any, Pick<import("../../helpers").InputProps, "disabled" | "readOnly"> & {
|
|
4
4
|
hasErrorMessage: boolean;
|
|
5
|
-
hasLabel:
|
|
5
|
+
hasLabel: import("../../helpers").LabelPresence;
|
|
6
6
|
}, never>;
|
|
7
7
|
export declare const MessageContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
8
|
declare type LabelProps = Pick<TextInputProps, 'multiline' | 'disabled' | 'readOnly'>;
|
|
9
9
|
export declare const Label: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../Typography").TypographyProps & import("react").RefAttributes<HTMLElement>>, any, import("../../helpers").StyledLabelProps & LabelProps, never>;
|
|
10
|
-
declare type InputContainerProps = Pick<TextInputProps, 'multiline' | 'label'>;
|
|
11
|
-
export declare const InputContainer: import("styled-components").StyledComponent<"div", any, InputContainerProps, never>;
|
|
12
10
|
export {};
|
|
@@ -34,10 +34,9 @@ export declare const textInputTokens: {
|
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
focusColor: string;
|
|
38
37
|
multiline: {
|
|
39
38
|
base: CSSObject;
|
|
40
|
-
|
|
39
|
+
hasLabel: {
|
|
41
40
|
base: CSSObject;
|
|
42
41
|
};
|
|
43
42
|
noLabel: {
|
|
@@ -52,14 +51,4 @@ export declare const textInputTokens: {
|
|
|
52
51
|
wrapper: {
|
|
53
52
|
defaultWidth: Property.Width<string>;
|
|
54
53
|
};
|
|
55
|
-
container: {
|
|
56
|
-
multiline: {
|
|
57
|
-
withLabel: {
|
|
58
|
-
height: string;
|
|
59
|
-
};
|
|
60
|
-
noLabel: {
|
|
61
|
-
height: string;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
54
|
};
|
|
File without changes
|
|
File without changes
|