@splunk/themes 1.0.0-rc.2 → 1.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.
- package/CHANGELOG.md +127 -0
- package/README.md +1 -1
- package/clearAllCaches.js +24 -0
- package/enterprise/dark.js +4 -4
- package/enterprise/index.js +3 -3
- package/enterprise/light.js +8 -8
- package/index.js +9 -1
- package/mixins/index.js +18 -18
- package/mixins/typography.js +1 -1
- package/mixins/utilityMixins.js +3 -3
- package/package.json +4 -4
- package/prisma/base.js +1 -1
- package/prisma/dark.js +6 -6
- package/prisma/index.js +4 -4
- package/prisma/light.js +6 -6
- package/splunk-magnetic/index.js +1 -1
- package/storybook-addon-splunk-themes/SplunkThemesTool.js +1 -1
- package/storybook-addon-splunk-themes/themes.js +1 -1
- package/storybook-addon-splunk-themes/withSplunkTheme.js +1 -1
- package/types/clearAllCaches.d.ts +10 -0
- package/types/enterprise/dark.d.ts +21 -21
- package/types/enterprise/index.d.ts +3 -3
- package/types/enterprise/light.d.ts +21 -21
- package/types/index.d.ts +1 -0
- package/types/mixins/index.d.ts +2 -2
- package/types/prisma/index.d.ts +4 -4
- package/types/splunk-magnetic/index.d.ts +80 -80
- package/types/utils.d.ts +1 -0
- package/utils.js +8 -2
- package/CHANGELOG.v1.md +0 -117
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,133 @@
|
|
|
1
1
|
Change Log
|
|
2
2
|
============
|
|
3
3
|
|
|
4
|
+
1.0.1 - June 5, 2025
|
|
5
|
+
----------
|
|
6
|
+
Bug fixes:
|
|
7
|
+
* Corrected `@types/react` peer dependency to allow `@types/react` `16` or `17` (SUI-7838).
|
|
8
|
+
|
|
9
|
+
1.0.0 - June 3, 2025
|
|
10
|
+
----------
|
|
11
|
+
* Includes all changes from `1.0.0-beta` and `1.0.0-rc` releases.
|
|
12
|
+
|
|
13
|
+
Bug fixes:
|
|
14
|
+
* Color variables `backgroundColorPage`, `backgroundColorNavigation`,`backgroundColorSideBar`,`neutral50`,`neutral100` and `neutral200` in Enterprise light have been updated to align better with Prisma themes (SUI-7584).
|
|
15
|
+
* `@types/react` peer dependency now includes `^16 | ^17` and no longer blocks installation using `npm` in React 16 or 17 environments (SUI-7838).
|
|
16
|
+
* Color variables for `actionColorBorderSecondary*`, `actionColorBackgroundSecondary*`, and `interactiveColorBorderDisabled` have been updated to align with both Prisma and Enterprise themes (SUI-7839).
|
|
17
|
+
|
|
18
|
+
1.0.0-rc.2 - May 28, 2025
|
|
19
|
+
----------
|
|
20
|
+
* Release candidate 2
|
|
21
|
+
|
|
22
|
+
1.0.0-rc.1 - May 14, 2025
|
|
23
|
+
----------
|
|
24
|
+
API Changes:
|
|
25
|
+
* `SplunkThemeProvider`'s default `density` has been changed from `"comfortable"` to `"compact"` (SUI-5709).
|
|
26
|
+
|
|
27
|
+
1.0.0-beta.5 - May 7, 2025
|
|
28
|
+
----------
|
|
29
|
+
New Features:
|
|
30
|
+
* New `interactiveColorAccentErrorWeak` variable (SUI-7757).
|
|
31
|
+
* `typography` has reintroduced the `withReset` prop, which defaults to `false`. When set to `true`, it removes all browser-default styles and applies theme-specific defaults (SUI-7638).
|
|
32
|
+
|
|
33
|
+
1.0.0-beta.4 - April 22, 2025
|
|
34
|
+
----------
|
|
35
|
+
New Features:
|
|
36
|
+
* New `inputBorderWidth` variable (SUI-7384).
|
|
37
|
+
|
|
38
|
+
Bug Fixes:
|
|
39
|
+
* Fixes broken CSS for Splunk Magnetic's `backgroundColorNavigation` override (SUI-7653).
|
|
40
|
+
|
|
41
|
+
Deprecations:
|
|
42
|
+
* `statusColor*`s have been deprecated. Instead use the appropriate `notificationColor*` or `severityColor*`(SUI-7303)
|
|
43
|
+
|
|
44
|
+
API Changes:
|
|
45
|
+
* `typescript` version is now `^5.8.3` (SUI-7601).
|
|
46
|
+
* `borderActiveColor` has been deprecated. (SUI-7633).
|
|
47
|
+
* Use `interactiveColorBorderActive` for Data Entry components or `actionColorBorderSecondaryActive` for Buttons.
|
|
48
|
+
* `backgroundColorHover` have been deprecated. (SUI-7633).
|
|
49
|
+
* Use `interactiveColorOverlayHover` for Data Entry components or `actionColorBackgroundSecondaryHover` for Buttons.
|
|
50
|
+
* `hoverShadow` has been deprecated. See notes on `backgroundColorHover` for hover affordances. (SUI-7621)
|
|
51
|
+
|
|
52
|
+
1.0.0-beta.3 - April 2, 2025
|
|
53
|
+
----------
|
|
54
|
+
New Features:
|
|
55
|
+
* New `neutral50` variable (SUI-7384).
|
|
56
|
+
* New `notificationColor` variables (SUI-7303).
|
|
57
|
+
* New `severityColor` variables (SUI-7303).
|
|
58
|
+
|
|
59
|
+
Bug Fixes:
|
|
60
|
+
* Updates `interactiveColorBackground` and `interactiveColorBackgroundDisabled` to be transparent in all themes (SUI-7347).
|
|
61
|
+
* The `@types/react` peer dependency is now correctly set to `^18.2.0` (SUI-7548).
|
|
62
|
+
|
|
63
|
+
Deprecations:
|
|
64
|
+
* `interactiveColorPrimary` has been deprecated (SUI-3568).
|
|
65
|
+
|
|
66
|
+
1.0.0-beta.2 - March 5, 2025
|
|
67
|
+
----------
|
|
68
|
+
New Features:
|
|
69
|
+
* New `contentColorLink` variable (SUI-3568).
|
|
70
|
+
* The data-viz variables are supported in all themes (SUI-3568).
|
|
71
|
+
|
|
72
|
+
Deprecations:
|
|
73
|
+
* `linkColor` and `linkColorHover` have been deprecated. Instead use `contentColorLink` (SUI-3568).
|
|
74
|
+
|
|
75
|
+
API Changes:
|
|
76
|
+
* `accentColor` variable has been removed from Prisma themes (SUI-3568).
|
|
77
|
+
* `borderColor`, `borderColorStrong`, and `borderColorWeak` have had alpha removed from their values (SUI-7340).
|
|
78
|
+
* `embossShadow`, `overlayShadow`, `dragShadow`, and `modalShadow` variables have been updated in Enterprise themes to match Prisma (SUI-7334).
|
|
79
|
+
* Enterprise only tokens have been deprecated: `brandColor*`, `gray*`, `accentColor*`, `errorColor*`, `alertColor*`, `warningColor*`, `successColor*`, `infoColor*`, `diverging*Color*`, and `cat*Color*`.
|
|
80
|
+
|
|
81
|
+
1.0.0-beta.1 - February 20, 2025
|
|
82
|
+
----------
|
|
83
|
+
New Features:
|
|
84
|
+
* Enterprise themes now support the `interactiveColorOverlayHover` Prisma alias (SUI-6289).
|
|
85
|
+
* All themes now support color variable `interactiveColorAccent` (SUI-6304).
|
|
86
|
+
* All themes now support color variable `interactiveColorAccentError` (SUI-6395).
|
|
87
|
+
* Enterprise themes now support the `interactiveColorOverlaySelected` Prisma alias.
|
|
88
|
+
* All themes now support color variable `contentBackgroundColorNegativeWeak` (SUI-6395).
|
|
89
|
+
* Enterprise themes now support color variable `contentColorInverted` (SUI-6530).
|
|
90
|
+
* All themes now support color variable `contentColorNegative` (SUI-6408).
|
|
91
|
+
* Prisma themes now support color variable `accentColor` (SUI-6657).
|
|
92
|
+
* All themes now support new `actionColor` tokens (SUI-6616).
|
|
93
|
+
* All themes now support color variable `contentColorAccent` (SUI-6711).
|
|
94
|
+
* All themes now support color variables `contentColorInfo`, `contentColorPositive`, and `contentColorWarning` (SUI-6830).
|
|
95
|
+
* Enterprise themes now support the `interactiveColorOverlayActive` (SUI-6870).
|
|
96
|
+
* All themes now support color variable `interactiveColorAccentErrorStrong` (SUI-6869).
|
|
97
|
+
* All themes now support color variable `interactiveColorBackground` (SUI-6983).
|
|
98
|
+
* New `layout` mixin (SUI-6678).
|
|
99
|
+
* Enterprise themes now support color variable `backgroundColorSidebar` (SUI-7102).
|
|
100
|
+
|
|
101
|
+
Deprecations:
|
|
102
|
+
* Enterprise theme tokens `textColor`, `textGray`, and `textDisabledColor` have been deprecated (SUI-6160).
|
|
103
|
+
* Enterprise theme token `backgroundColor` has been deprecated (SUI-6656).
|
|
104
|
+
* `accentColorPositive`, `accentColorWarning`, `accentColorAlert`, and `accentColorNegative` have been deprecated (SUI-3658).
|
|
105
|
+
|
|
106
|
+
API Changes:
|
|
107
|
+
* `react` and `react-dom` peer dependencies are now `"^16.8.0 || ^17.0.0 || ^18.0.0"`.
|
|
108
|
+
* `px` sizing for `variables.fontSize*` and `mixins.typography` have been replaced with `rem` sizing (SUI-5509).
|
|
109
|
+
* This results in minor differences in text sizing; but is required to meet WCAG 1.4.4 and WCAG 1.4.10.
|
|
110
|
+
* `typography` `size` param no longer supports `56` `36` `32` and `10`.
|
|
111
|
+
* `variables.lineHeight` is no longer defined in `px` to improve readability of font at all scales (SUI-5509).
|
|
112
|
+
* `typography`'s mixin for `Title5`'s has been updated to text color `variables.contentColorActive` in Prisma theme (SUI-5685).
|
|
113
|
+
* This change affects `Heading` and `Typography` components.
|
|
114
|
+
* The font size and line height no longer change with density. The default font-size in Enterprise Compact now is 14px (SUI-5508).
|
|
115
|
+
* `typography`'s `line-height`, `size`, and `font-weight` values have been consolidated between Enterprise and Prisma themes (SUI-5684).
|
|
116
|
+
* `typography`'s `withReset` prop has been removed (SUI-5686).
|
|
117
|
+
* `variables.activeBorder` has been removed (SUI-6362).
|
|
118
|
+
* Spacing variables in Enterprise themes are now aligned with Prisma themes (SUI-6530).
|
|
119
|
+
* `spacingXSmall`, `spacingSmall`, `spacingMedium`, `spacingLarge`, `spacingXLarge`, `spacingXXLarge`, `spacingXXXLarge` have been updated to match Prisma themes.
|
|
120
|
+
* `spacingQuarter`, `spacingHalf`, and `spacing` are deprecated and should not be used.
|
|
121
|
+
* Enterprise theme `statusColor*` variables have been shifted to align brightness values with Prisma themes (SUI-6348).
|
|
122
|
+
* Enterprise theme's `focusShadow` variable has been updated to match Prisma (SUI-6481).
|
|
123
|
+
* Enterprise theme's `focusShadowInset` variable has been updated to match Prisma (SUI-6487).
|
|
124
|
+
* `typography` supports a new scale for line-height that uses unitless values (SUI-6593).
|
|
125
|
+
* `typography` no longer support pixel values for line-height (SUI-6593).
|
|
126
|
+
* `typography` no longer supports the `title7` and `footnote` variants (SUI-6593).
|
|
127
|
+
* `typography` parameters now supports `family: "title"`.
|
|
128
|
+
* `fontSizeXLarge` size has been changed (SUI-6593).
|
|
129
|
+
* Enterprise themes support the `contentColorActive`, `contentColorDefault`, `contentColorDisabled`, `contentColorInverted`, and `contentColorMuted` tokens (SUI-6160).
|
|
130
|
+
|
|
4
131
|
0.24.0 - May 6, 2025
|
|
5
132
|
----------
|
|
6
133
|
Bug Fixes:
|
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ npm install @splunk/themes
|
|
|
15
15
|
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
`react@^
|
|
18
|
+
`react@^18` and `styled-components@^5"` are required peer dependencies for all capabilities except `getTheme()`.
|
|
19
19
|
|
|
20
20
|
## React Usage
|
|
21
21
|
A theme context is created at the root of the application using `SplunkThemeProvider`.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.clearAllCaches = void 0;
|
|
7
|
+
var _getTheme = require("./getTheme");
|
|
8
|
+
var _utils = require("./utils");
|
|
9
|
+
var _variables = require("./variables");
|
|
10
|
+
/**
|
|
11
|
+
* Note: Use with caution, as this will clear all caches in the themes package.
|
|
12
|
+
*
|
|
13
|
+
* Clear the `getTheme`, `customizedTheme`, and `variables` caches.
|
|
14
|
+
*
|
|
15
|
+
* (Note: Having this in utils causes a build time error in the themes package, due to import cycles.)
|
|
16
|
+
*
|
|
17
|
+
* @private
|
|
18
|
+
*/
|
|
19
|
+
var clearAllCaches = function clearAllCaches() {
|
|
20
|
+
(0, _getTheme.clearGetThemeCache)();
|
|
21
|
+
(0, _utils.clearCustomizedThemeCache)();
|
|
22
|
+
(0, _variables.clearVariablesCache)();
|
|
23
|
+
};
|
|
24
|
+
exports.clearAllCaches = clearAllCaches;
|
package/enterprise/dark.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports["default"] = void 0;
|
|
8
7
|
var _light = _interopRequireDefault(require("./light"));
|
|
9
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
10
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
11
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
12
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -77,7 +77,7 @@ var actionColors = {
|
|
|
77
77
|
actionColorBackgroundPrimaryDisabled: '#163b1b',
|
|
78
78
|
actionColorBackgroundPrimaryHover: '#6eba78',
|
|
79
79
|
actionColorBackgroundSecondary: 'transparent',
|
|
80
|
-
actionColorBackgroundSecondaryActive: 'rgba(
|
|
80
|
+
actionColorBackgroundSecondaryActive: 'rgba(0, 0, 0, 0.2)',
|
|
81
81
|
actionColorBackgroundSecondaryDisabled: 'transparent',
|
|
82
82
|
actionColorBackgroundSecondaryHover: 'rgba(255, 255, 255, 0.05)',
|
|
83
83
|
actionColorBackgroundSubtle: 'transparent',
|
|
@@ -94,7 +94,7 @@ var actionColors = {
|
|
|
94
94
|
actionColorBackgroundDestructiveSecondaryHover: '#47221f',
|
|
95
95
|
actionColorBorderSecondary: _light["default"].gray60,
|
|
96
96
|
actionColorBorderSecondaryActive: _light["default"].gray60,
|
|
97
|
-
actionColorBorderSecondaryDisabled:
|
|
97
|
+
actionColorBorderSecondaryDisabled: 'rgba(255, 255, 255, 0.3)',
|
|
98
98
|
actionColorBorderSecondaryHover: 'rgba(255, 255, 255, 0.7)',
|
|
99
99
|
actionColorBorderDestructiveSecondary: '#ff776b',
|
|
100
100
|
actionColorBorderDestructiveSecondaryActive: '#ff8a80',
|
|
@@ -105,7 +105,7 @@ var interactiveColors = {
|
|
|
105
105
|
interactiveColorBorder: _light["default"].gray60,
|
|
106
106
|
interactiveColorBorderActive: _light["default"].gray60,
|
|
107
107
|
interactiveColorBorderHover: 'rgba(255, 255, 255, 0.7)',
|
|
108
|
-
interactiveColorBorderDisabled:
|
|
108
|
+
interactiveColorBorderDisabled: 'rgba(255, 255, 255, 0.3)',
|
|
109
109
|
interactiveColorOverlaySelected: 'rgba(255, 255, 255, 0.1)',
|
|
110
110
|
interactiveColorOverlayHover: 'rgba(255, 255, 255, 0.05)',
|
|
111
111
|
interactiveColorOverlayActive: 'rgba(0, 0, 0, 0.2)',
|
package/enterprise/index.js
CHANGED
|
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
var _light = _interopRequireDefault(require("./light"));
|
|
8
|
-
var _dark = _interopRequireDefault(require("./dark"));
|
|
9
|
-
var _compact = _interopRequireDefault(require("./compact"));
|
|
10
7
|
var _comfortable = _interopRequireDefault(require("./comfortable"));
|
|
8
|
+
var _compact = _interopRequireDefault(require("./compact"));
|
|
9
|
+
var _dark = _interopRequireDefault(require("./dark"));
|
|
10
|
+
var _light = _interopRequireDefault(require("./light"));
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
12
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
13
13
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
package/enterprise/light.js
CHANGED
|
@@ -49,9 +49,9 @@ var deprecatedEnterpriseColors = {
|
|
|
49
49
|
};
|
|
50
50
|
var neutralColors = {
|
|
51
51
|
white: '#ffffff',
|
|
52
|
-
neutral50: '#
|
|
53
|
-
neutral100:
|
|
54
|
-
neutral200:
|
|
52
|
+
neutral50: '#e8ebee',
|
|
53
|
+
neutral100: '#e1e5ea',
|
|
54
|
+
neutral200: '#dae0e7',
|
|
55
55
|
neutral300: deprecatedEnterpriseColors.gray92,
|
|
56
56
|
neutral400: _tinycolor["default"].mix(deprecatedEnterpriseColors.gray92, deprecatedEnterpriseColors.gray80).toRgbString(),
|
|
57
57
|
neutral500: deprecatedEnterpriseColors.gray80,
|
|
@@ -109,12 +109,12 @@ var syntaxColors = {
|
|
|
109
109
|
var backgroundColors = {
|
|
110
110
|
backgroundColorDialog: neutralColors.white,
|
|
111
111
|
backgroundColorFloating: neutralColors.black,
|
|
112
|
-
backgroundColorNavigation:
|
|
113
|
-
backgroundColorPage:
|
|
112
|
+
backgroundColorNavigation: '#e4e8ec',
|
|
113
|
+
backgroundColorPage: '#f2f4f5',
|
|
114
114
|
backgroundColorPopup: neutralColors.white,
|
|
115
115
|
backgroundColorScrim: "rgba(255, 255, 255, 0.75)",
|
|
116
116
|
backgroundColorSection: neutralColors.white,
|
|
117
|
-
backgroundColorSidebar:
|
|
117
|
+
backgroundColorSidebar: '#eaedf1'
|
|
118
118
|
};
|
|
119
119
|
var shadows = {
|
|
120
120
|
focusShadow: "0 0 0 2px ".concat(backgroundColors.backgroundColorPage, ", 0 0 0 5px ").concat(usageColors.focusColor),
|
|
@@ -160,7 +160,7 @@ var actionColors = {
|
|
|
160
160
|
actionColorBackgroundDestructiveSecondaryHover: '#fad6d1',
|
|
161
161
|
actionColorBorderSecondary: deprecatedEnterpriseColors.gray60,
|
|
162
162
|
actionColorBorderSecondaryActive: deprecatedEnterpriseColors.gray45,
|
|
163
|
-
actionColorBorderSecondaryDisabled:
|
|
163
|
+
actionColorBorderSecondaryDisabled: 'rgba(0, 0, 0, 0.3)',
|
|
164
164
|
actionColorBorderSecondaryHover: 'rgba(0, 0, 0, 0.6)',
|
|
165
165
|
actionColorBorderDestructiveSecondary: '#c84535',
|
|
166
166
|
actionColorBorderDestructiveSecondaryActive: '#a1382b',
|
|
@@ -171,7 +171,7 @@ var interactiveColors = {
|
|
|
171
171
|
interactiveColorBorder: deprecatedEnterpriseColors.gray60,
|
|
172
172
|
interactiveColorBorderActive: deprecatedEnterpriseColors.gray45,
|
|
173
173
|
interactiveColorBorderHover: 'rgba(0, 0, 0, 0.6)',
|
|
174
|
-
interactiveColorBorderDisabled:
|
|
174
|
+
interactiveColorBorderDisabled: 'rgba(0, 0, 0, 0.3)',
|
|
175
175
|
interactiveColorOverlaySelected: 'rgba(0, 0, 0, 0.04)',
|
|
176
176
|
interactiveColorOverlayHover: 'rgba(0, 0, 0, 0.03)',
|
|
177
177
|
interactiveColorOverlayActive: 'rgba(0, 0, 0, 0.07)',
|
package/index.js
CHANGED
|
@@ -13,7 +13,8 @@ var _exportNames = {
|
|
|
13
13
|
unstable_splunkMagneticThemeCustomizer: true,
|
|
14
14
|
useSplunkTheme: true,
|
|
15
15
|
withSplunkTheme: true,
|
|
16
|
-
variables: true
|
|
16
|
+
variables: true,
|
|
17
|
+
clearAllCaches: true
|
|
17
18
|
};
|
|
18
19
|
Object.defineProperty(exports, "getSettingsFromThemedProps", {
|
|
19
20
|
enumerable: true,
|
|
@@ -75,6 +76,12 @@ Object.defineProperty(exports, "variables", {
|
|
|
75
76
|
return _variables["default"];
|
|
76
77
|
}
|
|
77
78
|
});
|
|
79
|
+
Object.defineProperty(exports, "clearAllCaches", {
|
|
80
|
+
enumerable: true,
|
|
81
|
+
get: function get() {
|
|
82
|
+
return _clearAllCaches.clearAllCaches;
|
|
83
|
+
}
|
|
84
|
+
});
|
|
78
85
|
var _getSettingsFromThemedProps = _interopRequireDefault(require("./getSettingsFromThemedProps"));
|
|
79
86
|
var _getTheme = _interopRequireDefault(require("./getTheme"));
|
|
80
87
|
var _mixins = _interopRequireDefault(require("./mixins"));
|
|
@@ -85,6 +92,7 @@ var _splunkMagnetic = _interopRequireDefault(require("./splunk-magnetic"));
|
|
|
85
92
|
var _useSplunkTheme = _interopRequireDefault(require("./useSplunkTheme"));
|
|
86
93
|
var _withSplunkTheme = _interopRequireDefault(require("./withSplunkTheme"));
|
|
87
94
|
var _variables = _interopRequireDefault(require("./variables"));
|
|
95
|
+
var _clearAllCaches = require("./clearAllCaches");
|
|
88
96
|
var _types = require("./types");
|
|
89
97
|
Object.keys(_types).forEach(function (key) {
|
|
90
98
|
if (key === "default" || key === "__esModule") return;
|
package/mixins/index.js
CHANGED
|
@@ -4,14 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
var _exportNames = {
|
|
7
|
-
|
|
7
|
+
layout: true,
|
|
8
8
|
prose: true,
|
|
9
|
-
|
|
9
|
+
typography: true
|
|
10
10
|
};
|
|
11
|
-
Object.defineProperty(exports, "
|
|
11
|
+
Object.defineProperty(exports, "layout", {
|
|
12
12
|
enumerable: true,
|
|
13
13
|
get: function get() {
|
|
14
|
-
return
|
|
14
|
+
return _layout["default"];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "prose", {
|
|
@@ -20,54 +20,54 @@ Object.defineProperty(exports, "prose", {
|
|
|
20
20
|
return _prose["default"];
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
|
-
Object.defineProperty(exports, "
|
|
23
|
+
Object.defineProperty(exports, "typography", {
|
|
24
24
|
enumerable: true,
|
|
25
25
|
get: function get() {
|
|
26
|
-
return
|
|
26
|
+
return _typography["default"];
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
exports["default"] = void 0;
|
|
30
|
-
var
|
|
31
|
-
Object.keys(
|
|
30
|
+
var _layout = _interopRequireWildcard(require("./layout"));
|
|
31
|
+
Object.keys(_layout).forEach(function (key) {
|
|
32
32
|
if (key === "default" || key === "__esModule") return;
|
|
33
33
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
34
34
|
Object.defineProperty(exports, key, {
|
|
35
35
|
enumerable: true,
|
|
36
36
|
get: function get() {
|
|
37
|
-
return
|
|
37
|
+
return _layout[key];
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
});
|
|
41
|
-
var
|
|
42
|
-
Object.keys(
|
|
41
|
+
var _prose = _interopRequireWildcard(require("./prose"));
|
|
42
|
+
Object.keys(_prose).forEach(function (key) {
|
|
43
43
|
if (key === "default" || key === "__esModule") return;
|
|
44
44
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
45
45
|
Object.defineProperty(exports, key, {
|
|
46
46
|
enumerable: true,
|
|
47
47
|
get: function get() {
|
|
48
|
-
return
|
|
48
|
+
return _prose[key];
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
});
|
|
52
|
-
var
|
|
53
|
-
Object.keys(
|
|
52
|
+
var _typography = _interopRequireWildcard(require("./typography"));
|
|
53
|
+
Object.keys(_typography).forEach(function (key) {
|
|
54
54
|
if (key === "default" || key === "__esModule") return;
|
|
55
55
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
56
56
|
Object.defineProperty(exports, key, {
|
|
57
57
|
enumerable: true,
|
|
58
58
|
get: function get() {
|
|
59
|
-
return
|
|
59
|
+
return _typography[key];
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
|
-
var
|
|
64
|
-
Object.keys(
|
|
63
|
+
var _utilityMixins = _interopRequireWildcard(require("./utilityMixins"));
|
|
64
|
+
Object.keys(_utilityMixins).forEach(function (key) {
|
|
65
65
|
if (key === "default" || key === "__esModule") return;
|
|
66
66
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
67
67
|
Object.defineProperty(exports, key, {
|
|
68
68
|
enumerable: true,
|
|
69
69
|
get: function get() {
|
|
70
|
-
return
|
|
70
|
+
return _utilityMixins[key];
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
});
|
package/mixins/typography.js
CHANGED
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.typographyVariants = exports["default"] = void 0;
|
|
7
|
-
var _styledComponents = require("styled-components");
|
|
8
7
|
var _merge = _interopRequireDefault(require("lodash/merge"));
|
|
8
|
+
var _styledComponents = require("styled-components");
|
|
9
9
|
var _utilityMixins = _interopRequireDefault(require("./utilityMixins"));
|
|
10
10
|
var _variables = _interopRequireDefault(require("../variables"));
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
package/mixins/utilityMixins.js
CHANGED
|
@@ -13,11 +13,11 @@ exports.screenReaderContent = screenReaderContent;
|
|
|
13
13
|
exports.overlayColors = overlayColors;
|
|
14
14
|
exports.colorWithAlpha = colorWithAlpha;
|
|
15
15
|
exports["default"] = exports.reset = void 0;
|
|
16
|
-
var _tinycolor = _interopRequireDefault(require("tinycolor2"));
|
|
17
|
-
var _styledComponents = require("styled-components");
|
|
18
16
|
var _colorBlend = require("color-blend");
|
|
19
|
-
var
|
|
17
|
+
var _styledComponents = require("styled-components");
|
|
18
|
+
var _tinycolor = _interopRequireDefault(require("tinycolor2"));
|
|
20
19
|
var _pick = _interopRequireDefault(require("../pick"));
|
|
20
|
+
var _variables = _interopRequireDefault(require("../variables"));
|
|
21
21
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
22
22
|
function _templateObject() {
|
|
23
23
|
var data = _taggedTemplateLiteral(["\n /* Generic resets */\n animation: none 0s ease 0s 1 normal none running;\n backface-visibility: visible;\n background: transparent none repeat 0 0 / auto auto padding-box border-box scroll;\n border: medium none currentColor;\n border-collapse: separate;\n border-image: none;\n border-radius: 0;\n border-spacing: 0;\n bottom: auto;\n box-shadow: none;\n caption-side: top;\n clear: none;\n clip: auto;\n color-scheme: ", ";\n columns: auto;\n column-count: auto;\n column-fill: balance;\n column-gap: normal;\n column-rule: medium none currentColor;\n column-span: 1;\n column-width: auto;\n content: normal;\n counter-increment: none;\n counter-reset: none;\n empty-cells: show;\n float: none;\n font-style: normal;\n font-variant: normal;\n font-weight: normal;\n font-stretch: normal;\n height: auto;\n hyphens: none;\n left: auto;\n letter-spacing: normal;\n margin: 0;\n max-height: none;\n max-width: none;\n min-height: 0;\n min-width: 0;\n opacity: 1;\n orphans: 2;\n overflow: visible;\n overflow-x: visible;\n overflow-y: visible;\n padding: 0;\n page-break-after: auto;\n page-break-before: auto;\n page-break-inside: auto;\n perspective: none;\n perspective-origin: 50% 50%;\n pointer-events: auto;\n position: static;\n right: auto;\n tab-size: 8;\n table-layout: auto;\n text-align: left;\n text-align-last: auto;\n text-decoration: none;\n text-indent: 0;\n text-shadow: none;\n text-transform: none;\n top: auto;\n transform: none;\n transform-origin: 50% 50% 0;\n transform-style: flat;\n transition: none 0s ease 0s;\n user-select: auto;\n vertical-align: baseline;\n white-space: normal;\n widows: 2;\n width: auto;\n word-spacing: normal;\n z-index: auto;\n /* Splunk-specific resets */\n border-width: 1px;\n box-sizing: border-box;\n color: ", ";\n cursor: inherit;\n ", "\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n outline: medium none ", ";\n visibility: inherit;\n "]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splunk/themes",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Theme variables and mixins for the Splunk design language",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./types/index.d.ts",
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"lint:ci": "yarn run lint -- -f junit -o test-reports/lint-results.xml",
|
|
17
17
|
"start": "yarn babel --watch",
|
|
18
18
|
"test": "jest",
|
|
19
|
-
"test:ci": "JEST_JUNIT_OUTPUT_DIR=./test-reports JEST_JUNIT_OUTPUT_NAME=unit-results.xml JEST_JUNIT_CLASSNAME=unit yarn run test --ci --reporters=default jest-junit --coverage --coverageDirectory=coverage_report/coverage_maps_unit --coverageReporters=cobertura",
|
|
20
19
|
"test:watch": "jest --watch",
|
|
21
20
|
"pretypes:build": "rm -rf ./types",
|
|
22
21
|
"types:build": "tsc --emitDeclarationOnly --declaration",
|
|
@@ -29,7 +28,7 @@
|
|
|
29
28
|
"@storybook/react": ">= 7.x",
|
|
30
29
|
"@storybook/theming": ">= 7.x",
|
|
31
30
|
"@types/lodash": "^4.14.156",
|
|
32
|
-
"@types/react": "^18
|
|
31
|
+
"@types/react": "^16 || ^17 || ^18",
|
|
33
32
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
34
33
|
"styled-components": "^5.3.10"
|
|
35
34
|
},
|
|
@@ -96,7 +95,8 @@
|
|
|
96
95
|
"eslint-plugin-jsx-a11y": "^6.10.0",
|
|
97
96
|
"eslint-plugin-react": "^7.36.1",
|
|
98
97
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
99
|
-
"jest": "^
|
|
98
|
+
"jest": "^29.7.0",
|
|
99
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
100
100
|
"jest-styled-components": "^7.0.8",
|
|
101
101
|
"react": "^18.2.0",
|
|
102
102
|
"styled-components": "^5.3.10",
|
package/prisma/base.js
CHANGED
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
+
var _dark = _interopRequireDefault(require("./dark"));
|
|
7
8
|
var _dataViz = _interopRequireDefault(require("./dataViz"));
|
|
8
9
|
var _light = _interopRequireDefault(require("./light"));
|
|
9
|
-
var _dark = _interopRequireDefault(require("./dark"));
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
11
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
12
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
package/prisma/dark.js
CHANGED
|
@@ -50,9 +50,9 @@ var actionColors = {
|
|
|
50
50
|
actionColorBackgroundPrimaryDisabled: '#103460',
|
|
51
51
|
actionColorBackgroundPrimaryHover: '#6baeff',
|
|
52
52
|
actionColorBackgroundSecondary: 'transparent',
|
|
53
|
-
actionColorBackgroundSecondaryActive: '
|
|
53
|
+
actionColorBackgroundSecondaryActive: 'rgba(0, 0, 0, 0.2)',
|
|
54
54
|
actionColorBackgroundSecondaryDisabled: 'transparent',
|
|
55
|
-
actionColorBackgroundSecondaryHover: '
|
|
55
|
+
actionColorBackgroundSecondaryHover: 'rgba(255, 255, 255, 0.05)',
|
|
56
56
|
actionColorBackgroundSubtle: 'transparent',
|
|
57
57
|
actionColorBackgroundSubtleActive: '#0a2f5c',
|
|
58
58
|
actionColorBackgroundSubtleDisabled: 'transparent',
|
|
@@ -65,10 +65,10 @@ var actionColors = {
|
|
|
65
65
|
actionColorBackgroundDestructiveSecondaryActive: '#471f1f',
|
|
66
66
|
actionColorBackgroundDestructiveSecondaryDisabled: 'transparent',
|
|
67
67
|
actionColorBackgroundDestructiveSecondaryHover: '#471f1f',
|
|
68
|
-
actionColorBorderSecondary: '
|
|
69
|
-
actionColorBorderSecondaryActive: '
|
|
70
|
-
actionColorBorderSecondaryDisabled: '
|
|
71
|
-
actionColorBorderSecondaryHover: '
|
|
68
|
+
actionColorBorderSecondary: 'rgba(255, 255, 255, 0.5)',
|
|
69
|
+
actionColorBorderSecondaryActive: 'rgba(255, 255, 255, 0.5)',
|
|
70
|
+
actionColorBorderSecondaryDisabled: 'rgba(255, 255, 255, 0.3)',
|
|
71
|
+
actionColorBorderSecondaryHover: 'rgba(255, 255, 255, 0.7)',
|
|
72
72
|
actionColorBorderDestructiveSecondary: '#ff4242',
|
|
73
73
|
actionColorBorderDestructiveSecondaryActive: '#ff6b6b',
|
|
74
74
|
actionColorBorderDestructiveSecondaryDisabled: '#561a1a',
|
package/prisma/index.js
CHANGED
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
var _light = _interopRequireDefault(require("./light"));
|
|
8
|
-
var _dark = _interopRequireDefault(require("./dark"));
|
|
9
|
-
var _compact = _interopRequireDefault(require("./compact"));
|
|
10
|
-
var _comfortable = _interopRequireDefault(require("./comfortable"));
|
|
11
7
|
var _base = _interopRequireDefault(require("./base"));
|
|
8
|
+
var _comfortable = _interopRequireDefault(require("./comfortable"));
|
|
9
|
+
var _compact = _interopRequireDefault(require("./compact"));
|
|
10
|
+
var _dark = _interopRequireDefault(require("./dark"));
|
|
11
|
+
var _light = _interopRequireDefault(require("./light"));
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
13
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
14
14
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
package/prisma/light.js
CHANGED
|
@@ -50,9 +50,9 @@ var actionColors = {
|
|
|
50
50
|
actionColorBackgroundPrimaryDisabled: '#72b2fe',
|
|
51
51
|
actionColorBackgroundPrimaryHover: '#024ba2',
|
|
52
52
|
actionColorBackgroundSubtle: 'transparent',
|
|
53
|
-
actionColorBackgroundSecondaryActive: '
|
|
53
|
+
actionColorBackgroundSecondaryActive: 'rgba(0, 0, 0, 0.07)',
|
|
54
54
|
actionColorBackgroundSubtleDisabled: 'transparent',
|
|
55
|
-
actionColorBackgroundSecondaryHover: '
|
|
55
|
+
actionColorBackgroundSecondaryHover: 'rgba(0, 0, 0, 0.03)',
|
|
56
56
|
actionColorBackgroundSecondary: 'transparent',
|
|
57
57
|
actionColorBackgroundSubtleActive: '#cce3ff',
|
|
58
58
|
actionColorBackgroundSecondaryDisabled: 'transparent',
|
|
@@ -65,10 +65,10 @@ var actionColors = {
|
|
|
65
65
|
actionColorBackgroundDestructiveSecondaryActive: '#ffcccc',
|
|
66
66
|
actionColorBackgroundDestructiveSecondaryDisabled: 'transparent',
|
|
67
67
|
actionColorBackgroundDestructiveSecondaryHover: '#ffcccc',
|
|
68
|
-
actionColorBorderSecondary: '
|
|
69
|
-
actionColorBorderSecondaryActive: '
|
|
70
|
-
actionColorBorderSecondaryDisabled: '
|
|
71
|
-
actionColorBorderSecondaryHover: '
|
|
68
|
+
actionColorBorderSecondary: 'rgba(0, 0, 0, 0.48)',
|
|
69
|
+
actionColorBorderSecondaryActive: 'rgba(0, 0, 0, 0.5)',
|
|
70
|
+
actionColorBorderSecondaryDisabled: 'rgba(0, 0, 0, 0.3)',
|
|
71
|
+
actionColorBorderSecondaryHover: 'rgba(0, 0, 0, 0.6)',
|
|
72
72
|
actionColorBorderDestructiveSecondary: '#e00000',
|
|
73
73
|
actionColorBorderDestructiveSecondaryActive: '#a30000',
|
|
74
74
|
actionColorBorderDestructiveSecondaryDisabled: '#ff9999',
|
package/splunk-magnetic/index.js
CHANGED
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _tinycolor = _interopRequireDefault(require("tinycolor2"));
|
|
8
|
-
var _magneticTokensLight = _interopRequireDefault(require("./magneticTokensLight"));
|
|
9
8
|
var _magneticTokensDark = _interopRequireDefault(require("./magneticTokensDark"));
|
|
9
|
+
var _magneticTokensLight = _interopRequireDefault(require("./magneticTokensLight"));
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
11
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
12
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.SplunkThemesTool = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _managerApi = require("@storybook/manager-api");
|
|
10
9
|
var _components = require("@storybook/components");
|
|
10
|
+
var _managerApi = require("@storybook/manager-api");
|
|
11
11
|
var _constants = require("./constants");
|
|
12
12
|
var _themeOptions = require("./themeOptions");
|
|
13
13
|
var _themes = require("./themes");
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.TooltipSectionTitle = exports.GlobalStyles = void 0;
|
|
7
|
-
var _styledComponents = require("styled-components");
|
|
8
7
|
var _theming = require("@storybook/theming");
|
|
8
|
+
var _styledComponents = require("styled-components");
|
|
9
9
|
var _mixins = _interopRequireDefault(require("../mixins"));
|
|
10
10
|
var _variables = _interopRequireDefault(require("../variables"));
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
@@ -12,8 +12,8 @@ var _splunkMagnetic = _interopRequireDefault(require("../splunk-magnetic"));
|
|
|
12
12
|
var _SplunkThemeProvider = _interopRequireDefault(require("../SplunkThemeProvider"));
|
|
13
13
|
var _variables = _interopRequireDefault(require("../variables"));
|
|
14
14
|
var _constants = require("./constants");
|
|
15
|
-
var _themes = require("./themes");
|
|
16
15
|
var _themeOptions = require("./themeOptions");
|
|
16
|
+
var _themes = require("./themes");
|
|
17
17
|
var _util = require("./util");
|
|
18
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
19
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Note: Use with caution, as this will clear all caches in the themes package.
|
|
3
|
+
*
|
|
4
|
+
* Clear the `getTheme`, `customizedTheme`, and `variables` caches.
|
|
5
|
+
*
|
|
6
|
+
* (Note: Having this in utils causes a build time error in the themes package, due to import cycles.)
|
|
7
|
+
*
|
|
8
|
+
* @private
|
|
9
|
+
*/
|
|
10
|
+
export declare const clearAllCaches: () => void;
|
|
@@ -512,32 +512,32 @@ declare const theme: {
|
|
|
512
512
|
serifFontFamily: string;
|
|
513
513
|
monoFontFamily: string;
|
|
514
514
|
focusColor: string;
|
|
515
|
-
|
|
516
|
-
gray45: string;
|
|
517
|
-
gray60: string;
|
|
518
|
-
gray80: string;
|
|
519
|
-
gray92: string;
|
|
520
|
-
gray96: string;
|
|
515
|
+
brandColor: string;
|
|
521
516
|
gray98: string;
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
517
|
+
gray96: string;
|
|
518
|
+
gray92: string;
|
|
519
|
+
gray80: string;
|
|
520
|
+
gray60: string;
|
|
521
|
+
gray45: string;
|
|
522
|
+
gray30: string;
|
|
527
523
|
accentColor: string;
|
|
528
|
-
|
|
529
|
-
infoColorL10: string;
|
|
530
|
-
infoColorD10: string;
|
|
531
|
-
successColorL10: string;
|
|
532
|
-
successColorD10: string;
|
|
533
|
-
warningColorL10: string;
|
|
534
|
-
warningColorD10: string;
|
|
535
|
-
alertColorL10: string;
|
|
536
|
-
alertColorD10: string;
|
|
524
|
+
accentColorD10: string;
|
|
537
525
|
errorColorL10: string;
|
|
526
|
+
errorColor: string;
|
|
538
527
|
errorColorD10: string;
|
|
539
528
|
errorColorD20: string;
|
|
540
|
-
|
|
529
|
+
alertColorL10: string;
|
|
530
|
+
alertColor: string;
|
|
531
|
+
alertColorD10: string;
|
|
532
|
+
warningColorL10: string;
|
|
533
|
+
warningColor: string;
|
|
534
|
+
warningColorD10: string;
|
|
535
|
+
successColorL10: string;
|
|
536
|
+
successColor: string;
|
|
537
|
+
successColorD10: string;
|
|
538
|
+
infoColorL10: string;
|
|
539
|
+
infoColor: string;
|
|
540
|
+
infoColorD10: string;
|
|
541
541
|
};
|
|
542
542
|
type Dark = typeof theme;
|
|
543
543
|
export default theme;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Light } from './light';
|
|
2
|
-
import { Dark } from './dark';
|
|
3
|
-
import { Compact } from './compact';
|
|
4
1
|
import { Comfortable } from './comfortable';
|
|
2
|
+
import { Compact } from './compact';
|
|
3
|
+
import { Dark } from './dark';
|
|
4
|
+
import { Light } from './light';
|
|
5
5
|
import { ColorScheme, Density } from '../types';
|
|
6
6
|
type MutableEnterprise = (Light | Dark) & (Comfortable | Compact);
|
|
7
7
|
type Enterprise = Readonly<MutableEnterprise>;
|
|
@@ -510,32 +510,32 @@ declare const theme: {
|
|
|
510
510
|
backgroundColorPopup: string;
|
|
511
511
|
backgroundColorFloating: string;
|
|
512
512
|
backgroundColorScrim: string;
|
|
513
|
-
|
|
514
|
-
gray45: string;
|
|
515
|
-
gray60: string;
|
|
516
|
-
gray80: string;
|
|
517
|
-
gray92: string;
|
|
518
|
-
gray96: string;
|
|
513
|
+
brandColor: string;
|
|
519
514
|
gray98: string;
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
515
|
+
gray96: string;
|
|
516
|
+
gray92: string;
|
|
517
|
+
gray80: string;
|
|
518
|
+
gray60: string;
|
|
519
|
+
gray45: string;
|
|
520
|
+
gray30: string;
|
|
525
521
|
accentColor: string;
|
|
526
|
-
|
|
527
|
-
infoColorL10: string;
|
|
528
|
-
infoColorD10: string;
|
|
529
|
-
successColorL10: string;
|
|
530
|
-
successColorD10: string;
|
|
531
|
-
warningColorL10: string;
|
|
532
|
-
warningColorD10: string;
|
|
533
|
-
alertColorL10: string;
|
|
534
|
-
alertColorD10: string;
|
|
522
|
+
accentColorD10: string;
|
|
535
523
|
errorColorL10: string;
|
|
524
|
+
errorColor: string;
|
|
536
525
|
errorColorD10: string;
|
|
537
526
|
errorColorD20: string;
|
|
538
|
-
|
|
527
|
+
alertColorL10: string;
|
|
528
|
+
alertColor: string;
|
|
529
|
+
alertColorD10: string;
|
|
530
|
+
warningColorL10: string;
|
|
531
|
+
warningColor: string;
|
|
532
|
+
warningColorD10: string;
|
|
533
|
+
successColorL10: string;
|
|
534
|
+
successColor: string;
|
|
535
|
+
successColorD10: string;
|
|
536
|
+
infoColorL10: string;
|
|
537
|
+
infoColor: string;
|
|
538
|
+
infoColorD10: string;
|
|
539
539
|
};
|
|
540
540
|
type Light = typeof theme;
|
|
541
541
|
export default theme;
|
package/types/index.d.ts
CHANGED
|
@@ -8,4 +8,5 @@ export { default as unstable_splunkMagneticThemeCustomizer } from './splunk-magn
|
|
|
8
8
|
export { default as useSplunkTheme } from './useSplunkTheme';
|
|
9
9
|
export { default as withSplunkTheme } from './withSplunkTheme';
|
|
10
10
|
export { default as variables } from './variables';
|
|
11
|
+
export { clearAllCaches } from './clearAllCaches';
|
|
11
12
|
export * from './types';
|
package/types/mixins/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import typography from './typography';
|
|
2
|
-
import prose from './prose';
|
|
3
1
|
import layout from './layout';
|
|
2
|
+
import prose from './prose';
|
|
3
|
+
import typography from './typography';
|
|
4
4
|
export * from './utilityMixins';
|
|
5
5
|
export { default as layout } from './layout';
|
|
6
6
|
export * from './layout';
|
package/types/prisma/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Light } from './light';
|
|
2
|
-
import { Dark } from './dark';
|
|
3
|
-
import { Compact } from './compact';
|
|
4
|
-
import { Comfortable } from './comfortable';
|
|
5
1
|
import { PrismaBase } from './base';
|
|
2
|
+
import { Comfortable } from './comfortable';
|
|
3
|
+
import { Compact } from './compact';
|
|
4
|
+
import { Dark } from './dark';
|
|
5
|
+
import { Light } from './light';
|
|
6
6
|
import { ColorScheme, Density } from '../types';
|
|
7
7
|
type MutablePrisma = PrismaBase & (Light | Dark) & (Comfortable | Compact);
|
|
8
8
|
type Prisma = Readonly<MutablePrisma>;
|
|
@@ -522,31 +522,31 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
522
522
|
white: string;
|
|
523
523
|
transparent: string;
|
|
524
524
|
backgroundColorFloating: string;
|
|
525
|
-
|
|
526
|
-
gray45: string;
|
|
527
|
-
gray60: string;
|
|
528
|
-
gray80: string;
|
|
529
|
-
gray92: string;
|
|
530
|
-
gray96: string;
|
|
525
|
+
brandColor: string;
|
|
531
526
|
gray98: string;
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
527
|
+
gray96: string;
|
|
528
|
+
gray92: string;
|
|
529
|
+
gray80: string;
|
|
530
|
+
gray60: string;
|
|
531
|
+
gray45: string;
|
|
532
|
+
gray30: string;
|
|
536
533
|
accentColorD10: string;
|
|
537
|
-
infoColor: string;
|
|
538
|
-
infoColorL10: string;
|
|
539
|
-
infoColorD10: string;
|
|
540
|
-
successColorL10: string;
|
|
541
|
-
successColorD10: string;
|
|
542
|
-
warningColorL10: string;
|
|
543
|
-
warningColorD10: string;
|
|
544
|
-
alertColorL10: string;
|
|
545
|
-
alertColorD10: string;
|
|
546
534
|
errorColorL10: string;
|
|
535
|
+
errorColor: string;
|
|
547
536
|
errorColorD10: string;
|
|
548
537
|
errorColorD20: string;
|
|
549
|
-
|
|
538
|
+
alertColorL10: string;
|
|
539
|
+
alertColor: string;
|
|
540
|
+
alertColorD10: string;
|
|
541
|
+
warningColorL10: string;
|
|
542
|
+
warningColor: string;
|
|
543
|
+
warningColorD10: string;
|
|
544
|
+
successColorL10: string;
|
|
545
|
+
successColor: string;
|
|
546
|
+
successColorD10: string;
|
|
547
|
+
infoColorL10: string;
|
|
548
|
+
infoColor: string;
|
|
549
|
+
infoColorD10: string;
|
|
550
550
|
spacingQuarter: string;
|
|
551
551
|
spacingHalf: string;
|
|
552
552
|
spacing: string;
|
|
@@ -1090,31 +1090,31 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
1090
1090
|
white: string;
|
|
1091
1091
|
transparent: string;
|
|
1092
1092
|
backgroundColorFloating: string;
|
|
1093
|
-
|
|
1094
|
-
gray45: string;
|
|
1095
|
-
gray60: string;
|
|
1096
|
-
gray80: string;
|
|
1097
|
-
gray92: string;
|
|
1098
|
-
gray96: string;
|
|
1093
|
+
brandColor: string;
|
|
1099
1094
|
gray98: string;
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1095
|
+
gray96: string;
|
|
1096
|
+
gray92: string;
|
|
1097
|
+
gray80: string;
|
|
1098
|
+
gray60: string;
|
|
1099
|
+
gray45: string;
|
|
1100
|
+
gray30: string;
|
|
1104
1101
|
accentColorD10: string;
|
|
1105
|
-
infoColor: string;
|
|
1106
|
-
infoColorL10: string;
|
|
1107
|
-
infoColorD10: string;
|
|
1108
|
-
successColorL10: string;
|
|
1109
|
-
successColorD10: string;
|
|
1110
|
-
warningColorL10: string;
|
|
1111
|
-
warningColorD10: string;
|
|
1112
|
-
alertColorL10: string;
|
|
1113
|
-
alertColorD10: string;
|
|
1114
1102
|
errorColorL10: string;
|
|
1103
|
+
errorColor: string;
|
|
1115
1104
|
errorColorD10: string;
|
|
1116
1105
|
errorColorD20: string;
|
|
1117
|
-
|
|
1106
|
+
alertColorL10: string;
|
|
1107
|
+
alertColor: string;
|
|
1108
|
+
alertColorD10: string;
|
|
1109
|
+
warningColorL10: string;
|
|
1110
|
+
warningColor: string;
|
|
1111
|
+
warningColorD10: string;
|
|
1112
|
+
successColorL10: string;
|
|
1113
|
+
successColor: string;
|
|
1114
|
+
successColorD10: string;
|
|
1115
|
+
infoColorL10: string;
|
|
1116
|
+
infoColor: string;
|
|
1117
|
+
infoColorD10: string;
|
|
1118
1118
|
spacingQuarter: string;
|
|
1119
1119
|
spacingHalf: string;
|
|
1120
1120
|
spacing: string;
|
|
@@ -1660,31 +1660,31 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
1660
1660
|
fontWeightExtraBold: number;
|
|
1661
1661
|
sansFontFamily: string;
|
|
1662
1662
|
serifFontFamily: string;
|
|
1663
|
-
|
|
1664
|
-
gray45: string;
|
|
1665
|
-
gray60: string;
|
|
1666
|
-
gray80: string;
|
|
1667
|
-
gray92: string;
|
|
1668
|
-
gray96: string;
|
|
1663
|
+
brandColor: string;
|
|
1669
1664
|
gray98: string;
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1665
|
+
gray96: string;
|
|
1666
|
+
gray92: string;
|
|
1667
|
+
gray80: string;
|
|
1668
|
+
gray60: string;
|
|
1669
|
+
gray45: string;
|
|
1670
|
+
gray30: string;
|
|
1674
1671
|
accentColorD10: string;
|
|
1675
|
-
infoColor: string;
|
|
1676
|
-
infoColorL10: string;
|
|
1677
|
-
infoColorD10: string;
|
|
1678
|
-
successColorL10: string;
|
|
1679
|
-
successColorD10: string;
|
|
1680
|
-
warningColorL10: string;
|
|
1681
|
-
warningColorD10: string;
|
|
1682
|
-
alertColorL10: string;
|
|
1683
|
-
alertColorD10: string;
|
|
1684
1672
|
errorColorL10: string;
|
|
1673
|
+
errorColor: string;
|
|
1685
1674
|
errorColorD10: string;
|
|
1686
1675
|
errorColorD20: string;
|
|
1687
|
-
|
|
1676
|
+
alertColorL10: string;
|
|
1677
|
+
alertColor: string;
|
|
1678
|
+
alertColorD10: string;
|
|
1679
|
+
warningColorL10: string;
|
|
1680
|
+
warningColor: string;
|
|
1681
|
+
warningColorD10: string;
|
|
1682
|
+
successColorL10: string;
|
|
1683
|
+
successColor: string;
|
|
1684
|
+
successColorD10: string;
|
|
1685
|
+
infoColorL10: string;
|
|
1686
|
+
infoColor: string;
|
|
1687
|
+
infoColorD10: string;
|
|
1688
1688
|
spacingQuarter: string;
|
|
1689
1689
|
spacingHalf: string;
|
|
1690
1690
|
spacing: string;
|
|
@@ -2230,31 +2230,31 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
2230
2230
|
fontWeightExtraBold: number;
|
|
2231
2231
|
sansFontFamily: string;
|
|
2232
2232
|
serifFontFamily: string;
|
|
2233
|
-
|
|
2234
|
-
gray45: string;
|
|
2235
|
-
gray60: string;
|
|
2236
|
-
gray80: string;
|
|
2237
|
-
gray92: string;
|
|
2238
|
-
gray96: string;
|
|
2233
|
+
brandColor: string;
|
|
2239
2234
|
gray98: string;
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2235
|
+
gray96: string;
|
|
2236
|
+
gray92: string;
|
|
2237
|
+
gray80: string;
|
|
2238
|
+
gray60: string;
|
|
2239
|
+
gray45: string;
|
|
2240
|
+
gray30: string;
|
|
2244
2241
|
accentColorD10: string;
|
|
2245
|
-
infoColor: string;
|
|
2246
|
-
infoColorL10: string;
|
|
2247
|
-
infoColorD10: string;
|
|
2248
|
-
successColorL10: string;
|
|
2249
|
-
successColorD10: string;
|
|
2250
|
-
warningColorL10: string;
|
|
2251
|
-
warningColorD10: string;
|
|
2252
|
-
alertColorL10: string;
|
|
2253
|
-
alertColorD10: string;
|
|
2254
2242
|
errorColorL10: string;
|
|
2243
|
+
errorColor: string;
|
|
2255
2244
|
errorColorD10: string;
|
|
2256
2245
|
errorColorD20: string;
|
|
2257
|
-
|
|
2246
|
+
alertColorL10: string;
|
|
2247
|
+
alertColor: string;
|
|
2248
|
+
alertColorD10: string;
|
|
2249
|
+
warningColorL10: string;
|
|
2250
|
+
warningColor: string;
|
|
2251
|
+
warningColorD10: string;
|
|
2252
|
+
successColorL10: string;
|
|
2253
|
+
successColor: string;
|
|
2254
|
+
successColorD10: string;
|
|
2255
|
+
infoColorL10: string;
|
|
2256
|
+
infoColor: string;
|
|
2257
|
+
infoColorD10: string;
|
|
2258
2258
|
spacingQuarter: string;
|
|
2259
2259
|
spacingHalf: string;
|
|
2260
2260
|
spacing: string;
|
package/types/utils.d.ts
CHANGED
|
@@ -10,4 +10,5 @@ declare function getCustomizedThemeUnmemo<T extends AnyTheme>(settings?: Partial
|
|
|
10
10
|
* @private
|
|
11
11
|
*/
|
|
12
12
|
export declare const getCustomizedTheme: typeof getCustomizedThemeUnmemo & import("lodash").MemoizedFunction;
|
|
13
|
+
export declare const clearCustomizedThemeCache: () => void;
|
|
13
14
|
export {};
|
package/utils.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getCustomizedTheme = exports.addThemeDefaults = void 0;
|
|
6
|
+
exports.clearCustomizedThemeCache = exports.getCustomizedTheme = exports.addThemeDefaults = void 0;
|
|
7
7
|
var _memoize = _interopRequireDefault(require("lodash/memoize"));
|
|
8
8
|
var _getTheme = _interopRequireDefault(require("./getTheme"));
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
@@ -51,6 +51,7 @@ function getCustomizedThemeUnmemo(settings, customizer) {
|
|
|
51
51
|
}
|
|
52
52
|
return customizer(variables);
|
|
53
53
|
}
|
|
54
|
+
|
|
54
55
|
/**
|
|
55
56
|
* Accepts a theme object and customizer, and returns supported values and defaults.
|
|
56
57
|
* @private
|
|
@@ -65,4 +66,9 @@ function () {
|
|
|
65
66
|
var customizer = arguments.length > 1 ? arguments[1] : undefined;
|
|
66
67
|
return "".concat(family, "-").concat(colorScheme, "-").concat(density, "-").concat(!!customizer);
|
|
67
68
|
});
|
|
68
|
-
exports.getCustomizedTheme = getCustomizedTheme;
|
|
69
|
+
exports.getCustomizedTheme = getCustomizedTheme;
|
|
70
|
+
var clearCustomizedThemeCache = function clearCustomizedThemeCache() {
|
|
71
|
+
var _getCustomizedTheme$c, _getCustomizedTheme$c2;
|
|
72
|
+
return (_getCustomizedTheme$c = (_getCustomizedTheme$c2 = getCustomizedTheme.cache).clear) === null || _getCustomizedTheme$c === void 0 ? void 0 : _getCustomizedTheme$c.call(_getCustomizedTheme$c2);
|
|
73
|
+
};
|
|
74
|
+
exports.clearCustomizedThemeCache = clearCustomizedThemeCache;
|
package/CHANGELOG.v1.md
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
Change Log
|
|
2
|
-
============
|
|
3
|
-
|
|
4
|
-
1.0.0-rc.2 - May 28, 2025
|
|
5
|
-
----------
|
|
6
|
-
* Release candidate 2
|
|
7
|
-
|
|
8
|
-
1.0.0-rc.1 - May 14, 2025
|
|
9
|
-
----------
|
|
10
|
-
API Changes:
|
|
11
|
-
* `SplunkThemeProvider`'s default `density` has been changed from `"comfortable"` to `"compact"` (SUI-5709).
|
|
12
|
-
|
|
13
|
-
1.0.0-beta.5 - May 7, 2025
|
|
14
|
-
----------
|
|
15
|
-
New Features:
|
|
16
|
-
* New `interactiveColorAccentErrorWeak` variable (SUI-7757).
|
|
17
|
-
* `typography` has reintroduced the `withReset` prop, which defaults to `false`. When set to `true`, it removes all browser-default styles and applies theme-specific defaults (SUI-7638).
|
|
18
|
-
|
|
19
|
-
1.0.0-beta.4 - April 22, 2025
|
|
20
|
-
----------
|
|
21
|
-
New Features:
|
|
22
|
-
* New `inputBorderWidth` variable (SUI-7384).
|
|
23
|
-
|
|
24
|
-
Bug Fixes:
|
|
25
|
-
* Fixes broken CSS for Splunk Magnetic's `backgroundColorNavigation` override (SUI-7653).
|
|
26
|
-
|
|
27
|
-
Deprecations:
|
|
28
|
-
* `statusColor*`s have been deprecated. Instead use the appropriate `notificationColor*` or `severityColor*`(SUI-7303)
|
|
29
|
-
|
|
30
|
-
API Changes:
|
|
31
|
-
* `typescript` version is now `^5.8.3` (SUI-7601).
|
|
32
|
-
* `borderActiveColor` has been deprecated. (SUI-7633).
|
|
33
|
-
* Use `interactiveColorBorderActive` for Data Entry components or `actionColorBorderSecondaryActive` for Buttons.
|
|
34
|
-
* `backgroundColorHover` have been deprecated. (SUI-7633).
|
|
35
|
-
* Use `interactiveColorOverlayHover` for Data Entry components or `actionColorBackgroundSecondaryHover` for Buttons.
|
|
36
|
-
* `hoverShadow` has been deprecated. See notes on `backgroundColorHover` for hover affordances. (SUI-7621)
|
|
37
|
-
|
|
38
|
-
1.0.0-beta.3 - April 2, 2025
|
|
39
|
-
----------
|
|
40
|
-
New Features:
|
|
41
|
-
* New `neutral50` variable (SUI-7384).
|
|
42
|
-
* New `notificationColor` variables (SUI-7303).
|
|
43
|
-
* New `severityColor` variables (SUI-7303).
|
|
44
|
-
|
|
45
|
-
Bug Fixes:
|
|
46
|
-
* Updates `interactiveColorBackground` and `interactiveColorBackgroundDisabled` to be transparent in all themes (SUI-7347).
|
|
47
|
-
* The `@types/react` peer dependency is now correctly set to `^18.2.0` (SUI-7548).
|
|
48
|
-
|
|
49
|
-
Deprecations:
|
|
50
|
-
* `interactiveColorPrimary` has been deprecated (SUI-3568).
|
|
51
|
-
|
|
52
|
-
1.0.0-beta.2 - March 5, 2025
|
|
53
|
-
----------
|
|
54
|
-
New Features:
|
|
55
|
-
* New `contentColorLink` variable (SUI-3568).
|
|
56
|
-
* The data-viz variables are supported in all themes (SUI-3568).
|
|
57
|
-
|
|
58
|
-
Deprecations:
|
|
59
|
-
* `linkColor` and `linkColorHover` have been deprecated. Instead use `contentColorLink` (SUI-3568).
|
|
60
|
-
|
|
61
|
-
API Changes:
|
|
62
|
-
* `accentColor` variable has been removed from Prisma themes (SUI-3568).
|
|
63
|
-
* `borderColor`, `borderColorStrong`, and `borderColorWeak` have had alpha removed from their values (SUI-7340).
|
|
64
|
-
* `embossShadow`, `overlayShadow`, `dragShadow`, and `modalShadow` variables have been updated in Enterprise themes to match Prisma (SUI-7334).
|
|
65
|
-
* Enterprise only tokens have been deprecated: `brandColor*`, `gray*`, `accentColor*`, `errorColor*`, `alertColor*`, `warningColor*`, `successColor*`, `infoColor*`, `diverging*Color*`, and `cat*Color*`.
|
|
66
|
-
|
|
67
|
-
1.0.0-beta.1 - February 20, 2025
|
|
68
|
-
----------
|
|
69
|
-
New Features:
|
|
70
|
-
* Enterprise themes now support the `interactiveColorOverlayHover` Prisma alias (SUI-6289).
|
|
71
|
-
* All themes now support color variable `interactiveColorAccent` (SUI-6304).
|
|
72
|
-
* All themes now support color variable `interactiveColorAccentError` (SUI-6395).
|
|
73
|
-
* Enterprise themes now support the `interactiveColorOverlaySelected` Prisma alias.
|
|
74
|
-
* All themes now support color variable `contentBackgroundColorNegativeWeak` (SUI-6395).
|
|
75
|
-
* Enterprise themes now support color variable `contentColorInverted` (SUI-6530).
|
|
76
|
-
* All themes now support color variable `contentColorNegative` (SUI-6408).
|
|
77
|
-
* Prisma themes now support color variable `accentColor` (SUI-6657).
|
|
78
|
-
* All themes now support new `actionColor` tokens (SUI-6616).
|
|
79
|
-
* All themes now support color variable `contentColorAccent` (SUI-6711).
|
|
80
|
-
* All themes now support color variables `contentColorInfo`, `contentColorPositive`, and `contentColorWarning` (SUI-6830).
|
|
81
|
-
* Enterprise themes now support the `interactiveColorOverlayActive` (SUI-6870).
|
|
82
|
-
* All themes now support color variable `interactiveColorAccentErrorStrong` (SUI-6869).
|
|
83
|
-
* All themes now support color variable `interactiveColorBackground` (SUI-6983).
|
|
84
|
-
* New `layout` mixin (SUI-6678).
|
|
85
|
-
* Enterprise themes now support color variable `backgroundColorSidebar` (SUI-7102).
|
|
86
|
-
|
|
87
|
-
Deprecations:
|
|
88
|
-
* Enterprise theme tokens `textColor`, `textGray`, and `textDisabledColor` have been deprecated (SUI-6160).
|
|
89
|
-
* Enterprise theme token `backgroundColor` has been deprecated (SUI-6656).
|
|
90
|
-
* `accentColorPositive`, `accentColorWarning`, `accentColorAlert`, and `accentColorNegative` have been deprecated (SUI-3658).
|
|
91
|
-
|
|
92
|
-
API Changes:
|
|
93
|
-
* `react` and `react-dom` peer dependencies are now `"^16.8.0 || ^17.0.0 || ^18.0.0"`.
|
|
94
|
-
* `px` sizing for `variables.fontSize*` and `mixins.typography` have been replaced with `rem` sizing (SUI-5509).
|
|
95
|
-
* This results in minor differences in text sizing; but is required to meet WCAG 1.4.4 and WCAG 1.4.10.
|
|
96
|
-
* `typography` `size` param no longer supports `56` `36` `32` and `10`.
|
|
97
|
-
* `variables.lineHeight` is no longer defined in `px` to improve readability of font at all scales (SUI-5509).
|
|
98
|
-
* `typography`'s mixin for `Title5`'s has been updated to text color `variables.contentColorActive` in Prisma theme (SUI-5685).
|
|
99
|
-
* This change affects `Heading` and `Typography` components.
|
|
100
|
-
* The font size and line height no longer change with density. The default font-size in Enterprise Compact now is 14px (SUI-5508).
|
|
101
|
-
* `typography`'s `line-height`, `size`, and `font-weight` values have been consolidated between Enterprise and Prisma themes (SUI-5684).
|
|
102
|
-
* `typography`'s `withReset` prop has been removed (SUI-5686).
|
|
103
|
-
* `variables.activeBorder` has been removed (SUI-6362).
|
|
104
|
-
* Spacing variables in Enterprise themes are now aligned with Prisma themes (SUI-6530).
|
|
105
|
-
* `spacingXSmall`, `spacingSmall`, `spacingMedium`, `spacingLarge`, `spacingXLarge`, `spacingXXLarge`, `spacingXXXLarge` have been updated to match Prisma themes.
|
|
106
|
-
* `spacingQuarter`, `spacingHalf`, and `spacing` are deprecated and should not be used.
|
|
107
|
-
* Enterprise theme `statusColor*` variables have been shifted to align brightness values with Prisma themes (SUI-6348).
|
|
108
|
-
* Enterprise theme's `focusShadow` variable has been updated to match Prisma (SUI-6481).
|
|
109
|
-
* Enterprise theme's `focusShadowInset` variable has been updated to match Prisma (SUI-6487).
|
|
110
|
-
* `typography` supports a new scale for line-height that uses unitless values (SUI-6593).
|
|
111
|
-
* `typography` no longer support pixel values for line-height (SUI-6593).
|
|
112
|
-
* `typography` no longer supports the `title7` and `footnote` variants (SUI-6593).
|
|
113
|
-
* `typography` parameters now supports `family: "title"`.
|
|
114
|
-
* `fontSizeXLarge` size has been changed (SUI-6593).
|
|
115
|
-
* Enterprise themes support the `contentColorActive`, `contentColorDefault`, `contentColorDisabled`, `contentColorInverted`, and `contentColorMuted` tokens (SUI-6160).
|
|
116
|
-
|
|
117
|
-
----------
|