@norges-domstoler/dds-components 13.0.0 → 13.0.1
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.
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { stackTokens } from './Stack.tokens';
|
|
3
3
|
import { BaseComponentPropsWithChildren } from '../../types';
|
|
4
|
-
|
|
5
|
-
type Justify = 'flex-start' | 'flex-end' | 'space-between' | 'space-around';
|
|
4
|
+
import { StandardProperties } from 'csstype';
|
|
6
5
|
export interface StackStyleProps {
|
|
7
6
|
/**
|
|
8
7
|
* Hvilken retning elementene skal plasseres i.
|
|
@@ -12,12 +11,12 @@ export interface StackStyleProps {
|
|
|
12
11
|
* CSS `align-items`.
|
|
13
12
|
* @default 'center'
|
|
14
13
|
*/
|
|
15
|
-
align?:
|
|
14
|
+
align?: StandardProperties['alignItems'];
|
|
16
15
|
/**
|
|
17
16
|
* CSS `justify-content`.
|
|
18
17
|
* @default 'flex-start'
|
|
19
18
|
*/
|
|
20
|
-
justify?:
|
|
19
|
+
justify?: StandardProperties['justifyContent'];
|
|
21
20
|
/**
|
|
22
21
|
* Hvilken spacing token som skal brukes som CSS `gap`.
|
|
23
22
|
*/
|
|
@@ -38,4 +37,3 @@ export declare const VStack: import("react").ForwardRefExoticComponent<Pick<impo
|
|
|
38
37
|
} & {
|
|
39
38
|
htmlProps?: import("react").HTMLAttributes<HTMLDivElement> | undefined;
|
|
40
39
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
41
|
-
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { stackTokens } from './Stack.tokens';
|
|
3
3
|
import { BaseComponentPropsWithChildren } from '../../types';
|
|
4
|
-
|
|
5
|
-
type Justify = 'flex-start' | 'flex-end' | 'space-between' | 'space-around';
|
|
4
|
+
import { StandardProperties } from 'csstype';
|
|
6
5
|
export interface StackStyleProps {
|
|
7
6
|
/**
|
|
8
7
|
* Hvilken retning elementene skal plasseres i.
|
|
@@ -12,12 +11,12 @@ export interface StackStyleProps {
|
|
|
12
11
|
* CSS `align-items`.
|
|
13
12
|
* @default 'center'
|
|
14
13
|
*/
|
|
15
|
-
align?:
|
|
14
|
+
align?: StandardProperties['alignItems'];
|
|
16
15
|
/**
|
|
17
16
|
* CSS `justify-content`.
|
|
18
17
|
* @default 'flex-start'
|
|
19
18
|
*/
|
|
20
|
-
justify?:
|
|
19
|
+
justify?: StandardProperties['justifyContent'];
|
|
21
20
|
/**
|
|
22
21
|
* Hvilken spacing token som skal brukes som CSS `gap`.
|
|
23
22
|
*/
|
|
@@ -38,4 +37,3 @@ export declare const VStack: import("react").ForwardRefExoticComponent<Pick<impo
|
|
|
38
37
|
} & {
|
|
39
38
|
htmlProps?: import("react").HTMLAttributes<HTMLDivElement> | undefined;
|
|
40
39
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
41
|
-
export {};
|