@kystverket/styrbord 2.0.2 → 2.0.3
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.
|
@@ -10,7 +10,7 @@ export type SurfaceSpacingKey = (typeof surfaceSpacingKeys)[number];
|
|
|
10
10
|
export type SurfaceSpacingProps = {
|
|
11
11
|
[K in SurfaceSpacingKey]?: SurfaceSize;
|
|
12
12
|
};
|
|
13
|
-
export declare const surfaceColorVariants: readonly ["subtle", "tinted", "base"];
|
|
13
|
+
export declare const surfaceColorVariants: readonly ["default", "subtle", "tinted", "base"];
|
|
14
14
|
export type SurfaceColorVariant = (typeof surfaceColorVariants)[number];
|
|
15
15
|
export declare const surfaceBorderStyles: readonly ["none", "solid", "dashed", "dotted", "double"];
|
|
16
16
|
export type SurfaceBorderStyle = (typeof surfaceBorderStyles)[number];
|
|
@@ -32,7 +32,7 @@ export type SurfaceProps = Omit<HTMLAttributes<HTMLDivElement>, 'color'> & Surfa
|
|
|
32
32
|
/** Gives the surface a background, text and border colour from this family. */
|
|
33
33
|
'data-color'?: DataColor;
|
|
34
34
|
/**
|
|
35
|
-
* `subtle` = `background-tinted`, `tinted` = `surface-tinted`, `base` = `base-default` with contrast text.
|
|
35
|
+
* `default` = `surface-default` (white in light mode), `subtle` = `background-tinted`, `tinted` = `surface-tinted`, `base` = `base-default` with contrast text.
|
|
36
36
|
* Only has an effect together with `data-color`.
|
|
37
37
|
*/
|
|
38
38
|
'data-color-variant'?: SurfaceColorVariant;
|