@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
|
@@ -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@norges-domstoler/dds-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "React components used in Domstolenes designsystem",
|
|
5
5
|
"author": "DDS team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
"react-dom": "^17.0.2",
|
|
70
70
|
"react-select": "^4.3.0",
|
|
71
71
|
"rollup": "^2.45.2",
|
|
72
|
+
"rollup-plugin-copy": "^3.4.0",
|
|
72
73
|
"rollup-plugin-sass": "^1.2.2",
|
|
73
74
|
"rollup-plugin-typescript2": "^0.30.0",
|
|
74
75
|
"styled-components": "^5.2.3",
|
|
@@ -90,6 +91,9 @@
|
|
|
90
91
|
"tsconfig": "tsconfig.json"
|
|
91
92
|
}
|
|
92
93
|
},
|
|
94
|
+
"moduleNameMapper": {
|
|
95
|
+
"\\.css$": "<rootDir>/__mocks__/styleMock.js"
|
|
96
|
+
},
|
|
93
97
|
"transform": {
|
|
94
98
|
"\\.svg$": "<rootDir>/svgTransform.js"
|
|
95
99
|
}
|
|
@@ -97,6 +101,7 @@
|
|
|
97
101
|
"dependencies": {
|
|
98
102
|
"@material-ui/core": "^4.11.3",
|
|
99
103
|
"@material-ui/icons": "^4.11.2",
|
|
100
|
-
"@norges-domstoler/dds-design-tokens": "0.0.4"
|
|
104
|
+
"@norges-domstoler/dds-design-tokens": "0.0.4",
|
|
105
|
+
"rollup-plugin-import-css": "^3.0.2"
|
|
101
106
|
}
|
|
102
107
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React, { InputHTMLAttributes } from 'react';
|
|
2
|
-
export declare type CheckboxTestProps = {
|
|
3
|
-
label: string;
|
|
4
|
-
error?: boolean;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
className?: string;
|
|
7
|
-
style?: React.CSSProperties;
|
|
8
|
-
} & InputHTMLAttributes<HTMLInputElement>;
|
|
9
|
-
export declare const CheckboxTest: React.ForwardRefExoticComponent<{
|
|
10
|
-
label: string;
|
|
11
|
-
error?: boolean | undefined;
|
|
12
|
-
disabled?: boolean | undefined;
|
|
13
|
-
className?: string | undefined;
|
|
14
|
-
style?: React.CSSProperties | undefined;
|
|
15
|
-
} & React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export declare const inputTokens: {
|
|
2
|
-
height: string;
|
|
3
|
-
width: string;
|
|
4
|
-
border_width: string;
|
|
5
|
-
border_radius: string;
|
|
6
|
-
default: {
|
|
7
|
-
color: {
|
|
8
|
-
border: string;
|
|
9
|
-
background: string;
|
|
10
|
-
marker: string;
|
|
11
|
-
};
|
|
12
|
-
active: {
|
|
13
|
-
border: string;
|
|
14
|
-
marker: string;
|
|
15
|
-
};
|
|
16
|
-
focus: {
|
|
17
|
-
border: string;
|
|
18
|
-
marker: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
marker: {
|
|
22
|
-
left: string;
|
|
23
|
-
top: string;
|
|
24
|
-
width: string;
|
|
25
|
-
height: string;
|
|
26
|
-
borderColor: string;
|
|
27
|
-
borderWidth: string;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
export declare const containerTokens: {
|
|
31
|
-
text_color: string;
|
|
32
|
-
typography: {
|
|
33
|
-
font: {
|
|
34
|
-
fontFamily: string;
|
|
35
|
-
fontSize: string;
|
|
36
|
-
lineHeight: number;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
padding: string;
|
|
40
|
-
margin_right: string;
|
|
41
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './CheckboxTest';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const Radio: React.ForwardRefExoticComponent<{
|
|
3
|
-
disabled?: boolean | undefined;
|
|
4
|
-
label?: string | undefined;
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
} & React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
|
|
7
|
-
export declare const StyledRadio: import("styled-components").StyledComponent<"label", any, {}, never>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React, { ChangeEvent, HTMLAttributes } from 'react';
|
|
2
|
-
declare type RadioGroupProps = {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
value: string | number;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
row?: boolean;
|
|
7
|
-
name?: string;
|
|
8
|
-
onChange?: (event: ChangeEvent<HTMLInputElement>, value: any) => void;
|
|
9
|
-
className?: string;
|
|
10
|
-
style?: React.CSSProperties;
|
|
11
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>;
|
|
12
|
-
export declare const RadioGroup: {
|
|
13
|
-
({ children, name, value, disabled, row, onChange, className, style, ...rest }: RadioGroupProps): JSX.Element;
|
|
14
|
-
defaultProps: {
|
|
15
|
-
row: boolean;
|
|
16
|
-
disabled: boolean;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { ChangeEvent } from 'react';
|
|
2
|
-
export interface RadioGroup {
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
name?: string;
|
|
5
|
-
value: string | number | null;
|
|
6
|
-
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const RadioGroupContext: React.Context<Nullable<RadioGroup>>;
|
|
9
|
-
export declare const useRadioGroup: () => Nullable<RadioGroup>;
|