@equinor/stratus-ui 1.5.0 → 1.6.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/index.cjs +2 -2
- package/dist/index.js +10 -2
- package/dist/stratus-ui.css +1 -1
- package/dist/types/theme/palette.d.ts +5 -0
- package/dist/types/theme/palette.d.ts.map +1 -1
- package/dist/types/theme/themePalette.d.ts +6 -4
- package/dist/types/theme/themePalette.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -30,6 +30,8 @@ export declare const palette: {
|
|
|
30
30
|
};
|
|
31
31
|
readonly danger: {
|
|
32
32
|
readonly main: "var(--stratus-error)";
|
|
33
|
+
readonly hover: "var(--stratus-error-hover)";
|
|
34
|
+
readonly text: "var(--stratus-error-text)";
|
|
33
35
|
readonly highlight: "var(--stratus-error-highlight)";
|
|
34
36
|
};
|
|
35
37
|
readonly warning: {
|
|
@@ -58,6 +60,9 @@ export declare const palette: {
|
|
|
58
60
|
readonly light: "var(--stratus-border-light)";
|
|
59
61
|
readonly divider: "var(--stratus-divider)";
|
|
60
62
|
};
|
|
63
|
+
readonly table: {
|
|
64
|
+
readonly cellHover: "var(--stratus-table-row-hover-bg)";
|
|
65
|
+
};
|
|
61
66
|
};
|
|
62
67
|
export type Palette = typeof palette;
|
|
63
68
|
//# sourceMappingURL=palette.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../../src/theme/palette.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../../src/theme/palette.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDV,CAAC;AAEX,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC"}
|
|
@@ -16,6 +16,8 @@ export declare const themePalette: {
|
|
|
16
16
|
};
|
|
17
17
|
readonly danger: {
|
|
18
18
|
readonly main: "var(--stratus-error)";
|
|
19
|
+
readonly hover: "var(--stratus-error-hover)";
|
|
20
|
+
readonly text: "var(--stratus-error-text)";
|
|
19
21
|
};
|
|
20
22
|
readonly warning: {
|
|
21
23
|
readonly main: "var(--stratus-warning)";
|
|
@@ -39,6 +41,7 @@ export declare const themePalette: {
|
|
|
39
41
|
};
|
|
40
42
|
readonly table: {
|
|
41
43
|
readonly cellActive: "var(--stratus-primary-highlight)";
|
|
44
|
+
readonly cellHover: "var(--stratus-table-row-hover-bg)";
|
|
42
45
|
readonly header: "var(--stratus-surface-muted)";
|
|
43
46
|
readonly headerActive: "var(--stratus-surface-raised)";
|
|
44
47
|
};
|
|
@@ -59,6 +62,8 @@ export interface ThemePalette {
|
|
|
59
62
|
};
|
|
60
63
|
danger?: {
|
|
61
64
|
main?: string;
|
|
65
|
+
hover?: string;
|
|
66
|
+
text?: string;
|
|
62
67
|
};
|
|
63
68
|
warning?: {
|
|
64
69
|
main?: string;
|
|
@@ -82,6 +87,7 @@ export interface ThemePalette {
|
|
|
82
87
|
};
|
|
83
88
|
table?: {
|
|
84
89
|
cellActive?: string;
|
|
90
|
+
cellHover?: string;
|
|
85
91
|
header?: string;
|
|
86
92
|
headerActive?: string;
|
|
87
93
|
};
|
|
@@ -90,10 +96,6 @@ export interface ThemePalette {
|
|
|
90
96
|
* Hook-compatible accessor for {@link themePalette}.
|
|
91
97
|
*/
|
|
92
98
|
export declare function useThemePalette(): ThemePalette;
|
|
93
|
-
/**
|
|
94
|
-
* @deprecated Use {@link useThemePalette}. Kept for compatibility with `@equinor/opt-ui-core`.
|
|
95
|
-
*/
|
|
96
|
-
export declare const useThemePallette: typeof useThemePalette;
|
|
97
99
|
/**
|
|
98
100
|
* Static color tokens previously provided by `@equinor/opt-ui-core`.
|
|
99
101
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themePalette.d.ts","sourceRoot":"","sources":["../../../src/theme/themePalette.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"themePalette.d.ts","sourceRoot":"","sources":["../../../src/theme/themePalette.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCf,CAAC;AAEX;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnE,SAAS,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnC,MAAM,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1D,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5B,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,IAAI,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAChE,UAAU,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/B,QAAQ,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7D,KAAK,CAAC,EAAE;QACN,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;CACH;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI,YAAY,CAE9C;AAED;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;CAQT,CAAC"}
|