@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
- type Align = 'stretch' | 'center' | 'flex-start' | 'flex-end';
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?: Align;
14
+ align?: StandardProperties['alignItems'];
16
15
  /**
17
16
  * CSS `justify-content`.
18
17
  * @default 'flex-start'
19
18
  */
20
- justify?: 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
- type Align = 'stretch' | 'center' | 'flex-start' | 'flex-end';
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?: Align;
14
+ align?: StandardProperties['alignItems'];
16
15
  /**
17
16
  * CSS `justify-content`.
18
17
  * @default 'flex-start'
19
18
  */
20
- justify?: 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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norges-domstoler/dds-components",
3
- "version": "13.0.0",
3
+ "version": "13.0.1",
4
4
  "description": "React components used in Elsa - domstolenes designsystem",
5
5
  "author": "Elsa team",
6
6
  "license": "MIT",