@norges-domstoler/dds-components 1.1.0 → 1.2.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/components/Button/Button.tokens.d.ts +2 -3
- package/dist/components/Checkbox/Checkbox.tokens.d.ts +2 -3
- package/dist/components/Checkbox/CheckboxGroup.tokens.d.ts +14 -0
- package/dist/components/Drawer/Drawer.d.ts +29 -0
- package/dist/components/Drawer/Drawer.tokens.d.ts +17 -0
- package/dist/components/Drawer/DrawerGroup.d.ts +9 -0
- package/dist/components/Drawer/index.d.ts +2 -0
- package/dist/components/RadioButton/RadioButton.tokens.d.ts +2 -3
- package/dist/components/RadioButton/RadioButtonGroup.tokens.d.ts +14 -0
- package/dist/components/Select/Select.tokens.d.ts +1 -1
- package/dist/components/Table/Cell.tokens.d.ts +3 -0
- package/dist/components/Table/Row.tokens.d.ts +3 -0
- package/dist/helpers/Paper/Paper.d.ts +1 -0
- package/dist/helpers/Paper/Paper.tokens.d.ts +4 -0
- package/dist/helpers/Paper/index.d.ts +1 -0
- package/dist/helpers/styling/danger.d.ts +4 -0
- package/dist/helpers/styling/focus.d.ts +9 -0
- package/dist/helpers/styling/focusVisible.d.ts +35 -0
- package/dist/helpers/styling/hover.d.ts +14 -0
- package/dist/helpers/styling/index.d.ts +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +1289 -968
- package/dist/index.js +1291 -968
- package/package.json +2 -2
|
@@ -1,5 +1,19 @@
|
|
|
1
|
+
import { CSSObject } from 'styled-components';
|
|
1
2
|
export declare const checkboxGroupTokens: {
|
|
2
3
|
label: {
|
|
3
4
|
spaceLeft: string;
|
|
4
5
|
};
|
|
6
|
+
container: {
|
|
7
|
+
base: CSSObject;
|
|
8
|
+
};
|
|
9
|
+
groupContainer: {
|
|
10
|
+
direction: {
|
|
11
|
+
row: {
|
|
12
|
+
base: CSSObject;
|
|
13
|
+
};
|
|
14
|
+
column: {
|
|
15
|
+
base: CSSObject;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
5
19
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { WidthProperty, MinWidthProperty, MaxWidthProperty } from 'csstype';
|
|
3
|
+
export declare type DrawerSize = 'small' | 'large';
|
|
4
|
+
export declare type DrawerPlacement = 'left' | 'right';
|
|
5
|
+
export declare type WidthProps = {
|
|
6
|
+
minWidth?: MinWidthProperty<string>;
|
|
7
|
+
maxWidth?: MaxWidthProperty<string>;
|
|
8
|
+
width?: WidthProperty<string>;
|
|
9
|
+
};
|
|
10
|
+
export declare type DrawerProps = {
|
|
11
|
+
isOpen?: boolean;
|
|
12
|
+
placement?: DrawerPlacement;
|
|
13
|
+
size?: DrawerSize;
|
|
14
|
+
onClose?: () => void;
|
|
15
|
+
parentElement?: HTMLElement;
|
|
16
|
+
header?: string | ReactNode;
|
|
17
|
+
widthProps?: WidthProps;
|
|
18
|
+
triggerRef?: RefObject<HTMLElement>;
|
|
19
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
20
|
+
export declare const Drawer: import("react").ForwardRefExoticComponent<{
|
|
21
|
+
isOpen?: boolean | undefined;
|
|
22
|
+
placement?: DrawerPlacement | undefined;
|
|
23
|
+
size?: DrawerSize | undefined;
|
|
24
|
+
onClose?: (() => void) | undefined;
|
|
25
|
+
parentElement?: HTMLElement | undefined;
|
|
26
|
+
header?: string | ReactNode;
|
|
27
|
+
widthProps?: WidthProps | undefined;
|
|
28
|
+
triggerRef?: RefObject<HTMLElement> | undefined;
|
|
29
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CSSObject } from 'styled-components';
|
|
2
|
+
export declare const drawerTokens: {
|
|
3
|
+
container: {
|
|
4
|
+
base: CSSObject;
|
|
5
|
+
size: {
|
|
6
|
+
large: {
|
|
7
|
+
base: CSSObject;
|
|
8
|
+
};
|
|
9
|
+
small: {
|
|
10
|
+
base: CSSObject;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
contentContainer: {
|
|
15
|
+
base: CSSObject;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
declare type drawerGroupProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
drawerId?: string;
|
|
5
|
+
onOpen?: () => void;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const DrawerGroup: ({ children, drawerId, onOpen, onClose }: drawerGroupProps) => JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
+
import { CSSObject } from 'styled-components';
|
|
1
2
|
export declare const radioButtonGroupTokens: {
|
|
2
3
|
label: {
|
|
3
4
|
spaceLeft: string;
|
|
4
5
|
};
|
|
6
|
+
container: {
|
|
7
|
+
base: CSSObject;
|
|
8
|
+
};
|
|
9
|
+
groupContainer: {
|
|
10
|
+
direction: {
|
|
11
|
+
row: {
|
|
12
|
+
base: CSSObject;
|
|
13
|
+
};
|
|
14
|
+
column: {
|
|
15
|
+
base: CSSObject;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
5
19
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Paper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Paper';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const outlineOffset = "2px";
|
|
2
|
+
export declare const focusVisible: {
|
|
3
|
+
outline: string;
|
|
4
|
+
outlineOffset: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const focusVisibleOnDark: {
|
|
7
|
+
outline: string;
|
|
8
|
+
outlineOffset: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const focusVisibleLink: {
|
|
11
|
+
outline: string;
|
|
12
|
+
backgroundColor: string;
|
|
13
|
+
color: string;
|
|
14
|
+
textDecoration: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const focusVisibleLinkOnDark: {
|
|
17
|
+
outline: string;
|
|
18
|
+
backgroundColor: string;
|
|
19
|
+
color: string;
|
|
20
|
+
textDecoration: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const focusVisibleWithBorder: {
|
|
23
|
+
outline: string;
|
|
24
|
+
borderColor: string;
|
|
25
|
+
boxShadow: string;
|
|
26
|
+
};
|
|
27
|
+
export declare const focusVisibleThickWithBorderOnDark: {
|
|
28
|
+
outline: string;
|
|
29
|
+
borderColor: string;
|
|
30
|
+
boxShadow: string;
|
|
31
|
+
};
|
|
32
|
+
export declare const focusVisibleInset: {
|
|
33
|
+
outline: string;
|
|
34
|
+
boxShadow: string;
|
|
35
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const hoverWithBorder: {
|
|
2
|
+
borderColor: string;
|
|
3
|
+
boxShadow: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const hoverInputfield: {
|
|
6
|
+
borderColor: string;
|
|
7
|
+
boxShadow: string;
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const hoverDangerInputfield: {
|
|
11
|
+
borderColor: string;
|
|
12
|
+
boxShadow: string;
|
|
13
|
+
backgroundColor: string;
|
|
14
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -24,5 +24,6 @@ export * from './components/Datepicker';
|
|
|
24
24
|
export * from './components/SkipToContent';
|
|
25
25
|
export * from './components/Tooltip';
|
|
26
26
|
export * from './components/Modal';
|
|
27
|
+
export * from './components/Drawer';
|
|
27
28
|
export * from './components/OverflowMenu';
|
|
28
29
|
export * from './components/Popover';
|