@norges-domstoler/dds-components 0.0.6 → 0.0.10
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/assets/fonts/IBMPlexSans-Italic.woff +0 -0
- package/dist/assets/fonts/IBMPlexSans-Italic.woff2 +0 -0
- package/dist/assets/fonts/IBMPlexSans-Light.woff +0 -0
- package/dist/assets/fonts/IBMPlexSans-Light.woff2 +0 -0
- package/dist/assets/fonts/IBMPlexSans-LightItalic.woff +0 -0
- package/dist/assets/fonts/IBMPlexSans-LightItalic.woff2 +0 -0
- package/dist/assets/fonts/IBMPlexSans-Regular.woff +0 -0
- package/dist/assets/fonts/IBMPlexSans-Regular.woff2 +0 -0
- package/dist/assets/fonts/IBMPlexSans-SemiBold.woff +0 -0
- package/dist/assets/fonts/IBMPlexSans-SemiBold.woff2 +0 -0
- package/dist/assets/fonts/IBMPlexSans-SemiBoldItalic.woff +0 -0
- package/dist/assets/fonts/IBMPlexSans-SemiBoldItalic.woff2 +0 -0
- package/dist/components/Breadcrumbs/Breadcrumb.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +8 -29
- package/dist/components/Button/Button.styles.d.ts +15 -0
- package/dist/components/Button/Button.types.d.ts +21 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Card/Card.d.ts +8 -0
- package/dist/components/Card/Card.tokens.d.ts +26 -0
- package/dist/components/Card/CardAccordion/CardAccordion.d.ts +7 -0
- package/dist/components/Card/CardAccordion/CardAccordionBody.d.ts +9 -0
- package/dist/components/Card/CardAccordion/CardAccordionBody.tokens.d.ts +4 -0
- package/dist/components/Card/CardAccordion/CardAccordionHeader.d.ts +11 -0
- package/dist/components/Card/CardAccordion/CardAccordionHeader.tokens.d.ts +10 -0
- package/dist/components/Card/index.d.ts +4 -0
- package/dist/components/Checkbox/Checkbox.d.ts +3 -13
- package/dist/components/Checkbox/Checkbox.styles.d.ts +8 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts +10 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/DescriptionList/DescriptionListDesc.d.ts +2 -2
- package/dist/components/DescriptionList/DescriptionListTerm.d.ts +2 -2
- package/dist/components/List/ListItem.d.ts +2 -2
- package/dist/components/Pagination/Pagination.d.ts +3 -8
- package/dist/components/RadioButton/RadioButton.d.ts +3 -11
- package/dist/components/RadioButton/RadioButton.styles.d.ts +8 -0
- package/dist/components/RadioButton/RadioButton.types.d.ts +8 -0
- package/dist/components/Search/Search.tokens.d.ts +3 -0
- package/dist/components/Select/Select.d.ts +9 -4
- package/dist/components/Select/Select.styles.d.ts +17 -0
- package/dist/components/Table/Foot.d.ts +2 -2
- package/dist/components/Table/Head.d.ts +2 -2
- package/dist/components/Table/TableWrapper.d.ts +3 -0
- package/dist/components/Table/index.d.ts +1 -0
- package/dist/components/TextInput/TextInput.d.ts +1 -11
- package/dist/components/TextInput/TextInput.styles.d.ts +12 -0
- package/dist/components/TextInput/TextInput.types.d.ts +11 -0
- package/dist/components/TextInput/index.d.ts +1 -0
- package/dist/helpers/IconWrapper/IconWrapper.d.ts +1 -1
- package/dist/index.css +60 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.es.css +60 -0
- package/dist/index.es.js +1299 -1158
- package/dist/index.js +1303 -1161
- package/dist/styles/fontStyles.css +60 -0
- package/package.json +7 -2
- package/dist/components/CheckboxTest/CheckboxTest.d.ts +0 -15
- package/dist/components/CheckboxTest/checkboxTestTokens.d.ts +0 -41
- package/dist/components/CheckboxTest/index.d.ts +0 -1
- package/dist/components/Radio/Radio.d.ts +0 -7
- package/dist/components/Radio/RadioGroup.d.ts +0 -19
- package/dist/components/Radio/RadioGroupContext.d.ts +0 -9
- package/dist/components/Radio/index.d.ts +0 -2
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes } from 'react';
|
|
2
2
|
import { TypographyProps } from '../Typography';
|
|
3
|
-
export declare type BreadcrumbProps =
|
|
3
|
+
export declare type BreadcrumbProps = TypographyProps & AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
4
4
|
export declare const Breadcrumb: import("react").ForwardRefExoticComponent<BreadcrumbProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
@@ -1,35 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import { OverridableComponent } from '@material-ui/core/OverridableComponent';
|
|
4
|
-
export declare type ButtonPurpose = 'primary' | 'secondary' | 'danger';
|
|
5
|
-
export declare type ButtonSize = 'small' | 'medium' | 'large';
|
|
6
|
-
export declare type ButtonAppearance = 'filled' | 'ghost' | 'rounded' | 'borderless';
|
|
7
|
-
export declare type IconPosition = 'left' | 'right';
|
|
8
|
-
export declare type ButtonProps = {
|
|
9
|
-
size?: ButtonSize;
|
|
10
|
-
label?: string;
|
|
11
|
-
purpose?: ButtonPurpose;
|
|
12
|
-
iconPosition?: IconPosition;
|
|
13
|
-
appearance?: ButtonAppearance;
|
|
14
|
-
href?: string;
|
|
15
|
-
target?: string;
|
|
16
|
-
loading?: boolean;
|
|
17
|
-
className?: string;
|
|
18
|
-
style?: React.CSSProperties;
|
|
19
|
-
Icon?: OverridableComponent<SvgIconTypeMap<{}, 'svg'>>;
|
|
20
|
-
fullWidth?: boolean;
|
|
21
|
-
} & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
22
|
-
export declare const Button: React.ForwardRefExoticComponent<{
|
|
23
|
-
size?: ButtonSize | undefined;
|
|
1
|
+
export declare const Button: import("react").ForwardRefExoticComponent<{
|
|
2
|
+
size?: import("./Button.types").ButtonSize | undefined;
|
|
24
3
|
label?: string | undefined;
|
|
25
|
-
purpose?: ButtonPurpose | undefined;
|
|
26
|
-
iconPosition?: IconPosition | undefined;
|
|
27
|
-
appearance?: ButtonAppearance | undefined;
|
|
4
|
+
purpose?: import("./Button.types").ButtonPurpose | undefined;
|
|
5
|
+
iconPosition?: import("./Button.types").IconPosition | undefined;
|
|
6
|
+
appearance?: import("./Button.types").ButtonAppearance | undefined;
|
|
28
7
|
href?: string | undefined;
|
|
29
8
|
target?: string | undefined;
|
|
30
9
|
loading?: boolean | undefined;
|
|
31
10
|
className?: string | undefined;
|
|
32
|
-
style?:
|
|
33
|
-
Icon?: OverridableComponent<SvgIconTypeMap<
|
|
11
|
+
style?: import("react").CSSProperties | undefined;
|
|
12
|
+
Icon?: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").SvgIconTypeMap<Record<string, unknown>, "svg">> | undefined;
|
|
34
13
|
fullWidth?: boolean | undefined;
|
|
35
|
-
} &
|
|
14
|
+
} & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ButtonAppearance, ButtonPurpose, ButtonProps } from './Button.types';
|
|
2
|
+
import { OverridableComponent } from '@material-ui/core/OverridableComponent';
|
|
3
|
+
import { IconWrapper } from '../../helpers/IconWrapper';
|
|
4
|
+
import { SvgIconTypeMap } from '@material-ui/core/SvgIcon';
|
|
5
|
+
export declare const buttonContentStyle: (purpose: ButtonPurpose, appearance: ButtonAppearance, label?: string | undefined, Icon?: OverridableComponent<SvgIconTypeMap<Record<string, unknown>, "svg">> | undefined) => import("styled-components").FlattenSimpleInterpolation;
|
|
6
|
+
declare type ButtonContentProps = Pick<ButtonProps, 'purpose' | 'appearance' | 'size' | 'label' | 'Icon' | 'iconPosition' | 'fullWidth' | 'loading'>;
|
|
7
|
+
export declare const ButtonContent: import("styled-components").StyledComponent<"span", any, ButtonContentProps, never>;
|
|
8
|
+
declare type ButtonWrapperProps = Pick<ButtonProps, 'fullWidth'>;
|
|
9
|
+
export declare const ButtonWrapper: import("styled-components").StyledComponent<"button", any, ButtonWrapperProps, never>;
|
|
10
|
+
declare type IconWithTextWrapperProps = Pick<ButtonProps, 'iconPosition' | 'size'>;
|
|
11
|
+
export declare const IconWithTextWrapper: import("styled-components").StyledComponent<typeof IconWrapper, any, IconWithTextWrapperProps, never>;
|
|
12
|
+
declare type JustIconWrapperProps = Pick<ButtonProps, 'size'>;
|
|
13
|
+
export declare const JustIconWrapper: import("styled-components").StyledComponent<"span", any, JustIconWrapperProps, never>;
|
|
14
|
+
export declare const Label: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SvgIconTypeMap } from '@material-ui/core/SvgIcon';
|
|
2
|
+
import { OverridableComponent } from '@material-ui/core/OverridableComponent';
|
|
3
|
+
import React, { ButtonHTMLAttributes } from 'react';
|
|
4
|
+
export declare type ButtonPurpose = 'primary' | 'secondary' | 'danger';
|
|
5
|
+
export declare type ButtonSize = 'small' | 'medium' | 'large';
|
|
6
|
+
export declare type ButtonAppearance = 'filled' | 'ghost' | 'rounded' | 'borderless';
|
|
7
|
+
export declare type IconPosition = 'left' | 'right';
|
|
8
|
+
export declare type ButtonProps = {
|
|
9
|
+
size?: ButtonSize;
|
|
10
|
+
label?: string;
|
|
11
|
+
purpose?: ButtonPurpose;
|
|
12
|
+
iconPosition?: IconPosition;
|
|
13
|
+
appearance?: ButtonAppearance;
|
|
14
|
+
href?: string;
|
|
15
|
+
target?: string;
|
|
16
|
+
loading?: boolean;
|
|
17
|
+
className?: string;
|
|
18
|
+
style?: React.CSSProperties;
|
|
19
|
+
Icon?: OverridableComponent<SvgIconTypeMap<Record<string, unknown>, 'svg'>>;
|
|
20
|
+
fullWidth?: boolean;
|
|
21
|
+
} & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes, HTMLAttributes } from 'react';
|
|
2
|
+
export declare type CardColor = 'filledDark' | 'filledLight' | 'strokeDark' | 'strokeLight';
|
|
3
|
+
export declare type CardType = 'info' | 'navigation';
|
|
4
|
+
export declare type CardProps = {
|
|
5
|
+
color?: CardColor;
|
|
6
|
+
cardType?: CardType;
|
|
7
|
+
} & (HTMLAttributes<HTMLDivElement> | AnchorHTMLAttributes<HTMLAnchorElement>);
|
|
8
|
+
export declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CSSObject } from 'styled-components';
|
|
2
|
+
export declare const cardTokens: {
|
|
3
|
+
base: CSSObject;
|
|
4
|
+
navigation: {
|
|
5
|
+
hover: {
|
|
6
|
+
base: CSSObject;
|
|
7
|
+
};
|
|
8
|
+
focus: {
|
|
9
|
+
base: CSSObject;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
colors: {
|
|
13
|
+
filledDark: {
|
|
14
|
+
base: CSSObject;
|
|
15
|
+
};
|
|
16
|
+
filledLight: {
|
|
17
|
+
base: CSSObject;
|
|
18
|
+
};
|
|
19
|
+
strokeLight: {
|
|
20
|
+
base: CSSObject;
|
|
21
|
+
};
|
|
22
|
+
strokeDark: {
|
|
23
|
+
base: CSSObject;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare type CardAccordionProps = {
|
|
3
|
+
isExpanded?: boolean;
|
|
4
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
5
|
+
export declare const CardAccordion: import("react").ForwardRefExoticComponent<{
|
|
6
|
+
isExpanded?: boolean | undefined;
|
|
7
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare type CardAccordionBodyProps = {
|
|
3
|
+
isExpanded?: boolean;
|
|
4
|
+
headerId?: string;
|
|
5
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
6
|
+
export declare const CardAccordionBody: import("react").ForwardRefExoticComponent<{
|
|
7
|
+
isExpanded?: boolean | undefined;
|
|
8
|
+
headerId?: string | undefined;
|
|
9
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare type CardAccordionHeaderProps = {
|
|
3
|
+
isExpanded?: boolean;
|
|
4
|
+
toggleExpanded?: () => void;
|
|
5
|
+
bodyId?: string;
|
|
6
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
7
|
+
export declare const CardAccordionHeader: import("react").ForwardRefExoticComponent<{
|
|
8
|
+
isExpanded?: boolean | undefined;
|
|
9
|
+
toggleExpanded?: (() => void) | undefined;
|
|
10
|
+
bodyId?: string | undefined;
|
|
11
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,19 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
export declare type CheckboxProps = {
|
|
3
|
-
label?: string;
|
|
4
|
-
error?: boolean;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
readOnly?: boolean;
|
|
7
|
-
indeterminate?: boolean;
|
|
8
|
-
className?: string;
|
|
9
|
-
style?: React.CSSProperties;
|
|
10
|
-
} & InputHTMLAttributes<HTMLInputElement>;
|
|
11
|
-
export declare const Checkbox: React.ForwardRefExoticComponent<{
|
|
1
|
+
export declare const Checkbox: import("react").ForwardRefExoticComponent<{
|
|
12
2
|
label?: string | undefined;
|
|
13
3
|
error?: boolean | undefined;
|
|
14
4
|
disabled?: boolean | undefined;
|
|
15
5
|
readOnly?: boolean | undefined;
|
|
16
6
|
indeterminate?: boolean | undefined;
|
|
17
7
|
className?: string | undefined;
|
|
18
|
-
style?:
|
|
19
|
-
} &
|
|
8
|
+
style?: import("react").CSSProperties | undefined;
|
|
9
|
+
} & import("react").InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CheckboxProps } from './Checkbox.types';
|
|
2
|
+
export declare const CustomCheckbox: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
3
|
+
export declare const Input: import("styled-components").StyledComponent<"input", any, {
|
|
4
|
+
type: import("react").HTMLInputTypeAttribute;
|
|
5
|
+
}, "type">;
|
|
6
|
+
declare type ContainerProps = Pick<CheckboxProps, 'disabled' | 'readOnly' | 'error' | 'indeterminate' | 'label'>;
|
|
7
|
+
export declare const Container: import("styled-components").StyledComponent<"label", any, ContainerProps, never>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { InputHTMLAttributes } from 'react';
|
|
2
|
+
export declare type CheckboxProps = {
|
|
3
|
+
label?: string;
|
|
4
|
+
error?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
readOnly?: boolean;
|
|
7
|
+
indeterminate?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
} & InputHTMLAttributes<HTMLInputElement>;
|
|
@@ -2,8 +2,8 @@ import { HTMLAttributes } from 'react';
|
|
|
2
2
|
import { OverridableComponent } from '@material-ui/core/OverridableComponent';
|
|
3
3
|
import { SvgIconTypeMap } from '@material-ui/core';
|
|
4
4
|
export declare type DescriptionListDescProps = {
|
|
5
|
-
Icon?: OverridableComponent<SvgIconTypeMap<
|
|
5
|
+
Icon?: OverridableComponent<SvgIconTypeMap<Record<string, unknown>, 'svg'>>;
|
|
6
6
|
} & HTMLAttributes<HTMLElement>;
|
|
7
7
|
export declare const DescriptionListDesc: import("react").ForwardRefExoticComponent<{
|
|
8
|
-
Icon?: OverridableComponent<SvgIconTypeMap<
|
|
8
|
+
Icon?: OverridableComponent<SvgIconTypeMap<Record<string, unknown>, "svg">> | undefined;
|
|
9
9
|
} & HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
export declare type DescriptionListTermProps =
|
|
3
|
-
export declare const DescriptionListTerm: import("react").ForwardRefExoticComponent<
|
|
2
|
+
export declare type DescriptionListTermProps = HTMLAttributes<HTMLElement>;
|
|
3
|
+
export declare const DescriptionListTerm: import("react").ForwardRefExoticComponent<DescriptionListTermProps & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
export declare type ListItemProps =
|
|
3
|
-
export declare const ListItem: import("react").ForwardRefExoticComponent<
|
|
2
|
+
export declare type ListItemProps = HTMLAttributes<HTMLLIElement>;
|
|
3
|
+
export declare const ListItem: import("react").ForwardRefExoticComponent<ListItemProps & import("react").RefAttributes<HTMLLIElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { SelectOption } from '../Select';
|
|
2
3
|
export declare type PaginationProps = {
|
|
3
4
|
itemsAmount: number;
|
|
4
5
|
defaultItemsPerPage?: number;
|
|
@@ -6,10 +7,7 @@ export declare type PaginationProps = {
|
|
|
6
7
|
withPagination?: boolean;
|
|
7
8
|
withCounter?: boolean;
|
|
8
9
|
withSelect?: boolean;
|
|
9
|
-
selectOptions?:
|
|
10
|
-
label: string;
|
|
11
|
-
value: number;
|
|
12
|
-
}[];
|
|
10
|
+
selectOptions?: SelectOption[];
|
|
13
11
|
smallScreen?: boolean;
|
|
14
12
|
onChange?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, page: number) => void;
|
|
15
13
|
} & Omit<HTMLAttributes<HTMLElement>, 'onChange'>;
|
|
@@ -20,10 +18,7 @@ export declare const Pagination: import("react").ForwardRefExoticComponent<{
|
|
|
20
18
|
withPagination?: boolean | undefined;
|
|
21
19
|
withCounter?: boolean | undefined;
|
|
22
20
|
withSelect?: boolean | undefined;
|
|
23
|
-
selectOptions?:
|
|
24
|
-
label: string;
|
|
25
|
-
value: number;
|
|
26
|
-
}[] | undefined;
|
|
21
|
+
selectOptions?: SelectOption[] | undefined;
|
|
27
22
|
smallScreen?: boolean | undefined;
|
|
28
23
|
onChange?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent>, page: number) => void) | undefined;
|
|
29
24
|
} & Omit<HTMLAttributes<HTMLElement>, "onChange"> & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export declare type RadioButtonProps = {
|
|
3
|
-
label?: string;
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
error?: boolean;
|
|
6
|
-
className?: string;
|
|
7
|
-
style?: React.CSSProperties;
|
|
8
|
-
} & InputHTMLAttributes<HTMLInputElement>;
|
|
9
|
-
export declare const RadioButton: React.ForwardRefExoticComponent<{
|
|
1
|
+
export declare const RadioButton: import("react").ForwardRefExoticComponent<{
|
|
10
2
|
label?: string | undefined;
|
|
11
3
|
disabled?: boolean | undefined;
|
|
12
4
|
error?: boolean | undefined;
|
|
13
5
|
className?: string | undefined;
|
|
14
|
-
style?:
|
|
15
|
-
} &
|
|
6
|
+
style?: import("react").CSSProperties | undefined;
|
|
7
|
+
} & import("react").InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RadioButtonProps } from './RadioButton.types';
|
|
2
|
+
export declare const CustomRadioButton: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
3
|
+
export declare const Input: import("styled-components").StyledComponent<"input", any, {
|
|
4
|
+
type: import("react").HTMLInputTypeAttribute;
|
|
5
|
+
}, "type">;
|
|
6
|
+
declare type ContainerProps = Pick<RadioButtonProps, 'error' | 'disabled' | 'readOnly'>;
|
|
7
|
+
export declare const Container: import("styled-components").StyledComponent<"label", any, ContainerProps, never>;
|
|
8
|
+
export {};
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import React, { HTMLAttributes } from 'react';
|
|
2
|
-
import { Props as ReactSelectProps } from 'react-select';
|
|
3
1
|
import * as CSS from 'csstype';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { default as ReactSelect, Props as ReactSelectProps } from 'react-select';
|
|
4
4
|
export declare function searchFilter(text: string, search: string): boolean;
|
|
5
|
+
export declare type SelectOption = {
|
|
6
|
+
label: string;
|
|
7
|
+
value: string | number;
|
|
8
|
+
data?: unknown;
|
|
9
|
+
};
|
|
5
10
|
export declare type SelectProps = {
|
|
6
11
|
label?: string;
|
|
7
12
|
required?: boolean;
|
|
@@ -11,5 +16,5 @@ export declare type SelectProps = {
|
|
|
11
16
|
width?: CSS.WidthProperty<string>;
|
|
12
17
|
className?: string;
|
|
13
18
|
style?: React.CSSProperties;
|
|
14
|
-
} & ReactSelectProps
|
|
15
|
-
export declare const Select: React.ForwardRefExoticComponent<Pick<SelectProps,
|
|
19
|
+
} & ReactSelectProps<SelectOption>;
|
|
20
|
+
export declare const Select: React.ForwardRefExoticComponent<Pick<SelectProps, keyof ReactSelectProps<SelectOption, false, import("react-select").GroupTypeBase<SelectOption>>> & React.RefAttributes<ReactSelect<SelectOption, false, import("react-select").GroupTypeBase<SelectOption>, import("react-select/src/Select").default<SelectOption, false, import("react-select").GroupTypeBase<SelectOption>>>>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Styles } from 'react-select';
|
|
2
|
+
import { IconWrapper } from '../../helpers/IconWrapper';
|
|
3
|
+
export declare const prefix = "dds-select";
|
|
4
|
+
export declare const Label: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../Typography").TypographyProps & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
|
|
5
|
+
declare type StyledContainerProps = {
|
|
6
|
+
errorMessage?: string;
|
|
7
|
+
isDisabled?: boolean;
|
|
8
|
+
readOnly?: boolean;
|
|
9
|
+
label?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const Container: import("styled-components").StyledComponent<"div", any, StyledContainerProps, never>;
|
|
12
|
+
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {
|
|
13
|
+
width?: string | number | undefined;
|
|
14
|
+
}, never>;
|
|
15
|
+
export declare const SelectedIconWrapper: import("styled-components").StyledComponent<typeof IconWrapper, any, {}, never>;
|
|
16
|
+
export declare const CustomStyles: Partial<Styles<any, false, any>>;
|
|
17
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
export declare type FootProps =
|
|
3
|
-
export declare const Foot: import("react").ForwardRefExoticComponent<
|
|
2
|
+
export declare type FootProps = HTMLAttributes<HTMLTableSectionElement>;
|
|
3
|
+
export declare const Foot: import("react").ForwardRefExoticComponent<FootProps & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
export declare type HeadProps =
|
|
3
|
-
export declare const Head: import("react").ForwardRefExoticComponent<
|
|
2
|
+
export declare type HeadProps = HTMLAttributes<HTMLTableSectionElement>;
|
|
3
|
+
export declare const Head: import("react").ForwardRefExoticComponent<HeadProps & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import * as CSS from 'csstype';
|
|
3
|
-
export declare type TextInputProps = {
|
|
4
|
-
label?: string;
|
|
5
|
-
multiline?: boolean;
|
|
6
|
-
tip?: string;
|
|
7
|
-
width?: CSS.WidthProperty<string>;
|
|
8
|
-
errorMessage?: string;
|
|
9
|
-
className?: string;
|
|
10
|
-
style?: React.CSSProperties;
|
|
11
|
-
} & InputHTMLAttributes<HTMLInputElement> & InputHTMLAttributes<HTMLTextAreaElement>;
|
|
1
|
+
import React from 'react';
|
|
12
2
|
export declare const TextInput: React.ForwardRefExoticComponent<{
|
|
13
3
|
label?: string | undefined;
|
|
14
4
|
multiline?: boolean | undefined;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TextInputProps } from './TextInput.types';
|
|
2
|
+
declare type GeneralInputProps = Pick<TextInputProps, 'readOnly' | 'errorMessage' | 'label' | 'disabled'>;
|
|
3
|
+
export declare const Input: import("styled-components").StyledComponent<"input", any, GeneralInputProps, never>;
|
|
4
|
+
export declare const TextArea: import("styled-components").StyledComponent<"textarea", any, GeneralInputProps, never>;
|
|
5
|
+
export declare const FlexContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
declare type LabelProps = Pick<TextInputProps, 'multiline' | 'disabled' | 'readOnly'>;
|
|
7
|
+
export declare const Label: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../Typography").TypographyProps & import("react").RefAttributes<HTMLElement>>, any, LabelProps, never>;
|
|
8
|
+
declare type InputFieldWrapperProps = Pick<TextInputProps, 'width'>;
|
|
9
|
+
export declare const InputFieldWrapper: import("styled-components").StyledComponent<"div", any, InputFieldWrapperProps, never>;
|
|
10
|
+
declare type InputFieldContainerProps = Pick<TextInputProps, 'multiline' | 'label'>;
|
|
11
|
+
export declare const InputFieldContainer: import("styled-components").StyledComponent<"div", any, InputFieldContainerProps, never>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { InputHTMLAttributes } from 'react';
|
|
2
|
+
import * as CSS from 'csstype';
|
|
3
|
+
export declare type TextInputProps = {
|
|
4
|
+
label?: string;
|
|
5
|
+
multiline?: boolean;
|
|
6
|
+
tip?: string;
|
|
7
|
+
width?: CSS.WidthProperty<string>;
|
|
8
|
+
errorMessage?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
} & InputHTMLAttributes<HTMLInputElement> & InputHTMLAttributes<HTMLTextAreaElement>;
|
|
@@ -4,7 +4,7 @@ import { CSSProperties } from 'react';
|
|
|
4
4
|
import * as CSS from 'csstype';
|
|
5
5
|
export declare type IconSize = 'small' | 'medium' | 'large' | 'inline';
|
|
6
6
|
export declare type IconWrapperProps = {
|
|
7
|
-
Icon: OverridableComponent<SvgIconTypeMap<
|
|
7
|
+
Icon: OverridableComponent<SvgIconTypeMap<Record<string, unknown>, 'svg'>>;
|
|
8
8
|
iconSize?: IconSize;
|
|
9
9
|
color?: CSS.ColorProperty;
|
|
10
10
|
className?: string;
|
package/dist/index.css
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: IBM Plex Sans;
|
|
3
|
+
font-style: normal;
|
|
4
|
+
font-weight: 400;
|
|
5
|
+
font-display: swap;
|
|
6
|
+
src: local('IBM Plex Sans'), local('IBMPlexSans'),
|
|
7
|
+
url('../assets/fonts/IBMPlexSans-Regular.woff2') format('woff2'),
|
|
8
|
+
url('../assets/fonts/IBMPlexSans-Regular.woff') format('woff');
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@font-face {
|
|
12
|
+
font-family: IBM Plex Sans;
|
|
13
|
+
font-style: italic;
|
|
14
|
+
font-weight: 400;
|
|
15
|
+
font-display: swap;
|
|
16
|
+
src: local('IBM Plex Sans Italic'), local('IBMPlexSans-Italic'),
|
|
17
|
+
url('../assets/fonts/IBMPlexSans-Italic.woff2') format('woff2'),
|
|
18
|
+
url('../assets/fonts/IBMPlexSans-Italic.woff') format('woff');
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@font-face {
|
|
22
|
+
font-family: IBM Plex Sans;
|
|
23
|
+
font-style: normal;
|
|
24
|
+
font-weight: 300;
|
|
25
|
+
font-display: swap;
|
|
26
|
+
src: local('IBM Plex Sans Light'), local('IBMPlexSans-Light'),
|
|
27
|
+
url('../assets/fonts/IBMPlexSans-Light.woff2') format('woff2'),
|
|
28
|
+
url('../assets/fonts/IBMPlexSans-Light.woff') format('woff');
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@font-face {
|
|
32
|
+
font-family: IBM Plex Sans;
|
|
33
|
+
font-style: italic;
|
|
34
|
+
font-weight: 300;
|
|
35
|
+
font-display: swap;
|
|
36
|
+
src: local('IBM Plex Sans Light Italic'), local('IBMPlexSans-LightItalic'),
|
|
37
|
+
url('../assets/fonts/IBMPlexSans-LightItalic.woff2') format('woff2'),
|
|
38
|
+
url('../assets/fonts/IBMPlexSans-LightItalic.woff') format('woff');
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@font-face {
|
|
42
|
+
font-family: IBM Plex Sans;
|
|
43
|
+
font-style: normal;
|
|
44
|
+
font-weight: 600;
|
|
45
|
+
font-display: swap;
|
|
46
|
+
src: local('IBM Plex Sans SemiBold'), local('IBMPlexSans-SemiBold'),
|
|
47
|
+
url('../assets/fonts/IBMPlexSans-SemiBold.woff2') format('woff2'),
|
|
48
|
+
url('../assets/fonts/IBMPlexSans-SemiBold.woff') format('woff');
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@font-face {
|
|
52
|
+
font-family: IBM Plex Sans;
|
|
53
|
+
font-style: italic;
|
|
54
|
+
font-weight: 600;
|
|
55
|
+
font-display: swap;
|
|
56
|
+
src: local('IBM Plex Sans SemiBold Italic'),
|
|
57
|
+
local('IBMPlexSans-SemiBoldItalic'),
|
|
58
|
+
url('../assets/fonts/IBMPlexSans-SemiBoldItalic.woff2') format('woff2'),
|
|
59
|
+
url('../assets/fonts/IBMPlexSans-SemiBoldItalic.woff') format('woff');
|
|
60
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import './styles/fontStyles.css';
|
|
2
2
|
export * from './components/RadioButton';
|
|
3
|
-
export * from './components/CheckboxTest';
|
|
4
3
|
export * from './components/Checkbox';
|
|
5
4
|
export * from './components/Button';
|
|
6
5
|
export * from './components/TextInput';
|
|
@@ -17,3 +16,4 @@ export * from './components/Divider';
|
|
|
17
16
|
export * from './components/List';
|
|
18
17
|
export * from './components/DescriptionList';
|
|
19
18
|
export * from './components/Spinner';
|
|
19
|
+
export * from './components/Card';
|