@splunk/themes 0.22.0 → 1.0.0-beta.2

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.
Files changed (85) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/CHANGELOG.v1.md +70 -0
  3. package/SplunkThemeProvider.js +18 -31
  4. package/design-tokens/colors.js +495 -0
  5. package/design-tokens/dataViz.js +486 -0
  6. package/design-tokens/deprecated.js +249 -0
  7. package/design-tokens/elevation.js +44 -0
  8. package/design-tokens/index.js +23 -0
  9. package/design-tokens/spacing-sizing.js +39 -0
  10. package/design-tokens/typography.js +67 -0
  11. package/enterprise/comfortable.js +20 -11
  12. package/enterprise/compact.js +20 -15
  13. package/enterprise/dark.js +188 -53
  14. package/enterprise/dataViz.js +491 -0
  15. package/enterprise/index.js +9 -22
  16. package/enterprise/light.js +316 -271
  17. package/getSettingsFromThemedProps.js +4 -8
  18. package/getTheme.js +13 -26
  19. package/index.js +9 -13
  20. package/mixins/index.js +47 -19
  21. package/mixins/layout.js +42 -0
  22. package/mixins/prose.js +67 -0
  23. package/mixins/tests/prose.unit.js +49 -0
  24. package/mixins/tests/typography.unit.js +54 -103
  25. package/mixins/tests/utilityMixins.unit.js +3 -11
  26. package/mixins/typography.js +154 -188
  27. package/mixins/utilityMixins.js +13 -39
  28. package/package.json +22 -17
  29. package/pick.js +7 -18
  30. package/pickVariant.js +1 -7
  31. package/prisma/base.js +34 -42
  32. package/prisma/comfortable.js +1 -8
  33. package/prisma/compact.js +1 -8
  34. package/prisma/dark.js +90 -33
  35. package/prisma/dataViz.js +71 -87
  36. package/prisma/index.js +8 -16
  37. package/prisma/light.js +91 -34
  38. package/splunk-magnetic/index.js +178 -0
  39. package/splunk-magnetic/magneticTokensDark.js +706 -0
  40. package/splunk-magnetic/magneticTokensLight.js +706 -0
  41. package/storybook-addon-splunk-themes/SplunkThemesTool.js +20 -42
  42. package/storybook-addon-splunk-themes/ThemedDocsContainer.js +3 -13
  43. package/storybook-addon-splunk-themes/index.js +0 -4
  44. package/storybook-addon-splunk-themes/manager.js +1 -7
  45. package/storybook-addon-splunk-themes/preview.js +4 -8
  46. package/storybook-addon-splunk-themes/tests/util.unit.js +0 -1
  47. package/storybook-addon-splunk-themes/themeOptions.js +0 -1
  48. package/storybook-addon-splunk-themes/themes.js +4 -15
  49. package/storybook-addon-splunk-themes/util.js +21 -39
  50. package/storybook-addon-splunk-themes/withSplunkTheme.js +34 -68
  51. package/types/design-tokens/colors.d.ts +875 -0
  52. package/types/design-tokens/dataViz.d.ts +433 -0
  53. package/types/design-tokens/deprecated.d.ts +468 -0
  54. package/types/design-tokens/elevation.d.ts +49 -0
  55. package/types/design-tokens/index.d.ts +541 -0
  56. package/types/design-tokens/spacing-sizing.d.ts +39 -0
  57. package/types/design-tokens/typography.d.ts +79 -0
  58. package/types/enterprise/comfortable.d.ts +11 -17
  59. package/types/enterprise/compact.d.ts +11 -21
  60. package/types/enterprise/dark.d.ts +412 -113
  61. package/types/enterprise/dataViz.d.ts +14 -0
  62. package/types/enterprise/index.d.ts +1 -2
  63. package/types/enterprise/light.d.ts +439 -139
  64. package/types/index.d.ts +1 -0
  65. package/types/mixins/index.d.ts +8 -0
  66. package/types/mixins/layout.d.ts +21 -0
  67. package/types/mixins/prose.d.ts +41 -0
  68. package/types/mixins/tests/prose.unit.d.ts +1 -0
  69. package/types/mixins/typography.d.ts +5 -12
  70. package/types/prisma/base.d.ts +12 -16
  71. package/types/prisma/comfortable.d.ts +2 -17
  72. package/types/prisma/compact.d.ts +2 -17
  73. package/types/prisma/dark.d.ts +60 -9
  74. package/types/prisma/dataViz.d.ts +8 -426
  75. package/types/prisma/light.d.ts +62 -11
  76. package/types/splunk-magnetic/index.d.ts +2941 -0
  77. package/types/splunk-magnetic/magneticTokensDark.d.ts +700 -0
  78. package/types/splunk-magnetic/magneticTokensLight.d.ts +700 -0
  79. package/types/storybook-addon-splunk-themes/SplunkThemesTool.d.ts +1 -1
  80. package/useSplunkTheme.js +14 -22
  81. package/utils.js +25 -35
  82. package/variables.js +17 -31
  83. package/withSplunkTheme.js +26 -36
  84. package/enterprise/prismaAliases.js +0 -103
  85. package/types/enterprise/prismaAliases.d.ts +0 -47
package/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Change Log
2
2
  ============
3
3
 
4
+ 0.23.0 - February 5, 2025
5
+ ----------
6
+ Bug Fixes:
7
+ * Added peer dependencies needed to incorporate the themes package standalone (SUI-6874).
8
+
4
9
  0.22.0 - October 1, 2024
5
10
  ----------
6
11
  New Features:
@@ -65,6 +70,9 @@ Bug Fixes:
65
70
  * `title4` it now larger than `title6` in the Enterprise compact theme.
66
71
  * `typography`'s mixin's `title5` color has been changed to `active` in prisma theme to match the Splunk Design System.
67
72
 
73
+ API Changes:
74
+ * `list-style` has been removed for `mixins.reset` (SUI-5622).
75
+
68
76
  0.16.1 - June 6, 2023
69
77
  ----------
70
78
  API Changes:
@@ -0,0 +1,70 @@
1
+ Change Log
2
+ ============
3
+
4
+ 1.0.0-beta.2 - March 5, 2025
5
+ ----------
6
+ New Features:
7
+ * New `contentColorLink` variable (SUI-3568).
8
+ * The data-viz variables are supported in all themes (SUI-3568).
9
+
10
+ Deprecations:
11
+ * `linkColor` and `linkColorHover` have been deprecated. Instead use `contentColorLink` (SUI-3568).
12
+
13
+ API Changes:
14
+ * `accentColor` variable has been removed from Prisma themes (SUI-3568).
15
+ * `borderColor`, `borderColorStrong`, and `borderColorWeak` have had alpha removed from their values (SUI-7340).
16
+ * `embossShadow`, `overlayShadow`, `dragShadow`, and `modalShadow` variables have been updated in Enterprise themes to match Prisma (SUI-7334).
17
+ * Enterprise only tokens have been deprecated: `brandColor*`, `gray*`, `accentColor*`, `errorColor*`, `alertColor*`, `warningColor*`, `successColor*`, `infoColor*`, `diverging*Color*`, and `cat*Color*`.
18
+
19
+
20
+ 1.0.0-beta.1 - February 20, 2025
21
+ ----------
22
+ New Features:
23
+ * Enterprise themes now support the `interactiveColorOverlayHover` Prisma alias (SUI-6289).
24
+ * All themes now support color variable `interactiveColorAccent` (SUI-6304).
25
+ * All themes now support color variable `interactiveColorAccentError` (SUI-6395).
26
+ * Enterprise themes now support the `interactiveColorOverlaySelected` Prisma alias.
27
+ * All themes now support color variable `contentBackgroundColorNegativeWeak` (SUI-6395).
28
+ * Enterprise themes now support color variable `contentColorInverted` (SUI-6530).
29
+ * All themes now support color variable `contentColorNegative` (SUI-6408).
30
+ * Prisma themes now support color variable `accentColor` (SUI-6657).
31
+ * All themes now support new `actionColor` tokens (SUI-6616).
32
+ * All themes now support color variable `contentColorAccent` (SUI-6711).
33
+ * All themes now support color variables `contentColorInfo`, `contentColorPositive`, and `contentColorWarning` (SUI-6830).
34
+ * Enterprise themes now support the `interactiveColorOverlayActive` (SUI-6870).
35
+ * All themes now support color variable `interactiveColorAccentErrorStrong` (SUI-6869).
36
+ * All themes now support color variable `interactiveColorBackground` (SUI-6983).
37
+ * New `layout` mixin (SUI-6678).
38
+ * Enterprise themes now support color variable `backgroundColorSidebar` (SUI-7102).
39
+
40
+ Deprecations:
41
+ * Enterprise theme tokens `textColor`, `textGray`, and `textDisabledColor` have been deprecated (SUI-6160).
42
+ * Enterprise theme token `backgroundColor` has been deprecated (SUI-6656).
43
+ * `accentColorPositive`, `accentColorWarning`, `accentColorAlert`, and `accentColorNegative` have been deprecated (SUI-3658).
44
+
45
+ API Changes:
46
+ * `react` and `react-dom` peer dependencies are now `"^16.8.0 || ^17.0.0 || ^18.0.0"`.
47
+ * `px` sizing for `variables.fontSize*` and `mixins.typography` have been replaced with `rem` sizing (SUI-5509).
48
+ * This results in minor differences in text sizing; but is required to meet WCAG 1.4.4 and WCAG 1.4.10.
49
+ * `typography` `size` param no longer supports `56` `36` `32` and `10`.
50
+ * `variables.lineHeight` is no longer defined in `px` to improve readability of font at all scales (SUI-5509).
51
+ * `typography`'s mixin for `Title5`'s has been updated to text color `variables.contentColorActive` in Prisma theme (SUI-5685).
52
+ * This change affects `Heading` and `Typography` components.
53
+ * The font size and line height no longer change with density. The default font-size in Enterprise Compact now is 14px (SUI-5508).
54
+ * `typography`'s `line-height`, `size`, and `font-weight` values have been consolidated between Enterprise and Prisma themes (SUI-5684).
55
+ * `typography`'s `withReset` prop has been removed (SUI-5686).
56
+ * `variables.activeBorder` has been removed (SUI-6362).
57
+ * Spacing variables in Enterprise themes are now aligned with Prisma themes (SUI-6530).
58
+ * `spacingXSmall`, `spacingSmall`, `spacingMedium`, `spacingLarge`, `spacingXLarge`, `spacingXXLarge`, `spacingXXXLarge` have been updated to match Prisma themes.
59
+ * `spacingQuarter`, `spacingHalf`, and `spacing` are deprecated and should not be used.
60
+ * Enterprise theme `statusColor*` variables have been shifted to align brightness values with Prisma themes (SUI-6348).
61
+ * Enterprise theme's `focusShadow` variable has been updated to match Prisma (SUI-6481).
62
+ * Enterprise theme's `focusShadowInset` variable has been updated to match Prisma (SUI-6487).
63
+ * `typography` supports a new scale for line-height that uses unitless values (SUI-6593).
64
+ * `typography` no longer support pixel values for line-height (SUI-6593).
65
+ * `typography` no longer supports the `title7` and `footnote` variants (SUI-6593).
66
+ * `typography` parameters now supports `family: "title"`.
67
+ * `fontSizeXLarge` size has been changed (SUI-6593).
68
+ * Enterprise themes support the `contentColorActive`, `contentColorDefault`, `contentColorDisabled`, `contentColorInverted`, and `contentColorMuted` tokens (SUI-6160).
69
+
70
+ ----------
@@ -1,32 +1,22 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
-
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); }
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = SplunkThemeProvider;
9
-
10
8
  var _react = _interopRequireWildcard(require("react"));
11
-
12
9
  var _styledComponents = require("styled-components");
13
-
14
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
15
-
16
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
-
18
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
-
20
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
21
-
22
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
23
-
24
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
25
-
26
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
27
-
28
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
29
-
10
+ 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); }
11
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) { if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } } return n["default"] = e, t && t.set(e, n), n; }
12
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); }
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; }
14
+ 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; }
15
+ 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; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
18
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) { o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; }
19
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } } return t; }
30
20
  /** SplunkThemeProvider defaults to `prisma` `dark` `comfortable`, unless the properties have already been set.
31
21
  *
32
22
  * For example, here the nested `SplunkThemeProvider` defaults to `enterprise` `light`:
@@ -42,16 +32,14 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
42
32
  */
43
33
  function SplunkThemeProvider(_ref) {
44
34
  var family = _ref.family,
45
- colorScheme = _ref.colorScheme,
46
- density = _ref.density,
47
- additionalThemeProperties = _ref.additionalThemeProperties,
48
- customizeTheme = _ref.customizeTheme,
49
- otherProps = _objectWithoutProperties(_ref, ["family", "colorScheme", "density", "additionalThemeProperties", "customizeTheme"]);
50
-
35
+ colorScheme = _ref.colorScheme,
36
+ density = _ref.density,
37
+ additionalThemeProperties = _ref.additionalThemeProperties,
38
+ customizeTheme = _ref.customizeTheme,
39
+ otherProps = _objectWithoutProperties(_ref, ["family", "colorScheme", "density", "additionalThemeProperties", "customizeTheme"]);
51
40
  var _ref2 = (0, _react.useContext)(_styledComponents.ThemeContext) || {},
52
- _ref2$splunkThemeV = _ref2.splunkThemeV1,
53
- splunkThemeV1 = _ref2$splunkThemeV === void 0 ? {} : _ref2$splunkThemeV;
54
-
41
+ _ref2$splunkThemeV = _ref2.splunkThemeV1,
42
+ splunkThemeV1 = _ref2$splunkThemeV === void 0 ? {} : _ref2$splunkThemeV;
55
43
  var composedTheme = _objectSpread(_objectSpread({}, additionalThemeProperties), {}, {
56
44
  splunkThemeV1: {
57
45
  family: family || splunkThemeV1.family || 'prisma',
@@ -60,7 +48,6 @@ function SplunkThemeProvider(_ref) {
60
48
  customizer: customizeTheme || splunkThemeV1.customizer
61
49
  }
62
50
  });
63
-
64
51
  return /*#__PURE__*/_react["default"].createElement(_styledComponents.ThemeProvider, _extends({
65
52
  theme: composedTheme
66
53
  }, otherProps));
@@ -0,0 +1,495 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ 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); }
8
+ 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; }
9
+ 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; }
10
+ 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; }
11
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
13
+ /**
14
+ * #### Action colors
15
+ *
16
+ * Action colors are used **exclusively** for Button borders and backgrounds.
17
+ * They define interaction states for primary, secondary, subtle, and destructive buttons.
18
+ *
19
+ * @categoryColor
20
+ */
21
+ var actionColors = {
22
+ /**
23
+ * Default background for Primary Buttons.
24
+ */
25
+ actionColorBackgroundPrimary: '',
26
+ /**
27
+ * Active (pressed) background for Primary Buttons.
28
+ */
29
+ actionColorBackgroundPrimaryActive: '',
30
+ /**
31
+ * Disabled background for Primary Buttons.
32
+ */
33
+ actionColorBackgroundPrimaryDisabled: '',
34
+ /**
35
+ * Hover background for Primary Buttons.
36
+ */
37
+ actionColorBackgroundPrimaryHover: '',
38
+ /**
39
+ * Default background for Secondary Buttons.
40
+ */
41
+ actionColorBackgroundSecondary: '',
42
+ /**
43
+ * Active (pressed) background for Secondary Buttons.
44
+ */
45
+ actionColorBackgroundSecondaryActive: '',
46
+ /**
47
+ * Disabled background for Secondary Buttons.
48
+ */
49
+ actionColorBackgroundSecondaryDisabled: '',
50
+ /**
51
+ * Hover background for Secondary Buttons.
52
+ */
53
+ actionColorBackgroundSecondaryHover: '',
54
+ /**
55
+ * Default background for Subtle Buttons.
56
+ */
57
+ actionColorBackgroundSubtle: '',
58
+ /**
59
+ * Active (pressed) background for Subtle Buttons.
60
+ */
61
+ actionColorBackgroundSubtleActive: '',
62
+ /**
63
+ * Disabled background for Subtle Buttons.
64
+ */
65
+ actionColorBackgroundSubtleDisabled: '',
66
+ /**
67
+ * Hover background for Subtle Buttons.
68
+ */
69
+ actionColorBackgroundSubtleHover: '',
70
+ /**
71
+ * Default background for Destructive Buttons.
72
+ */
73
+ actionColorBackgroundDestructive: '',
74
+ /**
75
+ * Active (pressed) background for Destructive Buttons.
76
+ */
77
+ actionColorBackgroundDestructiveActive: '',
78
+ /**
79
+ * Disabled background for Destructive Buttons.
80
+ */
81
+ actionColorBackgroundDestructiveDisabled: '',
82
+ /**
83
+ * Hover background for Destructive Buttons.
84
+ */
85
+ actionColorBackgroundDestructiveHover: '',
86
+ /**
87
+ * Default background for Destructive Secondary Buttons.
88
+ */
89
+ actionColorBackgroundDestructiveSecondary: '',
90
+ /**
91
+ * Active (pressed) background for Destructive Secondary Buttons
92
+ */
93
+ actionColorBackgroundDestructiveSecondaryActive: '',
94
+ /**
95
+ * Disabled background for Destructive Secondary Buttons.
96
+ */
97
+ actionColorBackgroundDestructiveSecondaryDisabled: '',
98
+ /**
99
+ * Hover background for Destructive Secondary Buttons.
100
+ */
101
+ actionColorBackgroundDestructiveSecondaryHover: '',
102
+ /**
103
+ * Default border color for Secondary Buttons.
104
+ */
105
+ actionColorBorderSecondary: '',
106
+ /**
107
+ * Active (pressed) border color for Secondary Buttons.
108
+ */
109
+ actionColorBorderSecondaryActive: '',
110
+ /**
111
+ * Disabled border color for Secondary Buttons.
112
+ */
113
+ actionColorBorderSecondaryDisabled: '',
114
+ /**
115
+ * Hover border color for Secondary Buttons.
116
+ */
117
+ actionColorBorderSecondaryHover: '',
118
+ /**
119
+ * Default border color for Destructive Secondary Buttons.
120
+ */
121
+ actionColorBorderDestructiveSecondary: '',
122
+ /**
123
+ * Active (pressed) border color for Destructive Secondary Buttons.
124
+ */
125
+ actionColorBorderDestructiveSecondaryActive: '',
126
+ /**
127
+ * Disabled border color for Destructive Secondary Buttons.
128
+ */
129
+ actionColorBorderDestructiveSecondaryDisabled: '',
130
+ /**
131
+ * Hover border color for Destructive Secondary Buttons.
132
+ */
133
+ actionColorBorderDestructiveSecondaryHover: ''
134
+ };
135
+
136
+ /**
137
+ * #### Interactive colors
138
+ *
139
+ * Interactive colors should be used **exclusively** for styling Data Entry components: Input, Select, etc.
140
+ *
141
+ * @categoryColor
142
+ */
143
+ var interactiveColors = {
144
+ /**
145
+ * Primary color for interactive elements in Data entry components.
146
+ */
147
+ interactiveColorPrimary: '',
148
+ /**
149
+ * Default border color for Data entry components.
150
+ */
151
+ interactiveColorBorder: '',
152
+ /**
153
+ * Active (pressed) border color for Data entry components.
154
+ */
155
+ interactiveColorBorderActive: '',
156
+ /**
157
+ * Hover border color for Data entry components.
158
+ */
159
+ interactiveColorBorderHover: '',
160
+ /**
161
+ * Disabled border color for Data entry components.
162
+ */
163
+ interactiveColorBorderDisabled: '',
164
+ /**
165
+ * Background overlay color for selected in Data entry components.
166
+ */
167
+ interactiveColorOverlaySelected: '',
168
+ /**
169
+ * Background overlay color for hover in Data entry components.
170
+ */
171
+ interactiveColorOverlayHover: '',
172
+ /**
173
+ * Background overlay color for active (pressed) in Data entry components.
174
+ */
175
+ interactiveColorOverlayActive: '',
176
+ /**
177
+ * Background overlay color for drag in Data entry components.
178
+ */
179
+ interactiveColorOverlayDrag: '',
180
+ /**
181
+ * Default background color for Data entry components.
182
+ */
183
+ interactiveColorBackground: '',
184
+ /**
185
+ * Background color for disabled Data entry components.
186
+ */
187
+ interactiveColorBackgroundDisabled: '',
188
+ /**
189
+ * Brand accent color for Data entry components.
190
+ */
191
+ interactiveColorAccent: '',
192
+ /**
193
+ * Error color for Data entry components.
194
+ */
195
+ interactiveColorAccentError: '',
196
+ /**
197
+ * Stronger error color for emphasis in Data Entry components. Used for hover interaction.
198
+ */
199
+ interactiveColorAccentErrorStrong: ''
200
+ };
201
+
202
+ /**
203
+ * #### Neutral colors
204
+ *
205
+ * Neutral colors should be used sparingly. Prefer to use more semantic tokens for backgrounds and borders.
206
+ * These colors must not be used for content as they will not pass the required contrast ratio (instead, use [Content colors](#Content Colors)).
207
+ *
208
+ * @categoryColor
209
+ */
210
+ var neutralColors = {
211
+ /**
212
+ * Alternate background color in dark color schemes and inverted background in light color schemes.
213
+ */
214
+ black: '',
215
+ /**
216
+ * Least visually emphasized. Do not use this as the background for Data Entry components, does not pass 3:1 graphical contrast.
217
+ */
218
+ neutral100: '',
219
+ /**
220
+ * Not for text, does not pass 3:1 graphical contrast in light & dark color schemes.
221
+ */
222
+ neutral200: '',
223
+ /**
224
+ * Not for text, does not pass 3:1 graphical contrast in light & dark color schemes.
225
+ */
226
+ neutral300: '',
227
+ /**
228
+ * Not for text, does not pass 3:1 graphical contrast in light color schemes.
229
+ */
230
+ neutral400: '',
231
+ /**
232
+ * Most visually emphasized, not for text, does not pass 3:1 graphical contrast in light color schemes.
233
+ */
234
+ neutral500: '',
235
+ /**
236
+ * Alternate background color in light color schemes and inverted background in dark color schemes.
237
+ */
238
+ white: '',
239
+ /**
240
+ * Transparent background color.
241
+ */
242
+ transparent: ''
243
+ };
244
+
245
+ /**
246
+ * #### Background colors
247
+ * Use background colors for page backgrounds and containers such as cards, modals, panels or popups.
248
+ *
249
+ * @categoryColor
250
+ */
251
+ var backgroundColors = {
252
+ /**
253
+ * Default background color for the navigation headers.
254
+ */
255
+ backgroundColorNavigation: '',
256
+ /**
257
+ * Primary background color for pages.
258
+ */
259
+ backgroundColorPage: '',
260
+ /**
261
+ * Background color for side panels and navigation panels.
262
+ */
263
+ backgroundColorSidebar: '',
264
+ /**
265
+ * Used for cards or to create visual separation in the UI.
266
+ */
267
+ backgroundColorSection: '',
268
+ /**
269
+ * Default background color for modals.
270
+ */
271
+ backgroundColorDialog: '',
272
+ /**
273
+ * Default background color for popovers and tooltips.
274
+ */
275
+ backgroundColorPopup: '',
276
+ /**
277
+ * Background color for inverted color schemes.
278
+ */
279
+ backgroundColorFloating: '',
280
+ /**
281
+ * Used for page overlays under modals or when masking UI.
282
+ */
283
+ backgroundColorScrim: ''
284
+ };
285
+
286
+ /**
287
+ * #### Content colors
288
+ * Use content colors to create visual hierarchy, convey status or importance for plain text content.
289
+ *
290
+ * @categoryFont
291
+ */
292
+ var contentColors = {
293
+ contentBackgroundColorNegativeWeak: '',
294
+ // TODO: can we remove?
295
+ /**
296
+ * Text color for links.
297
+ */
298
+ contentColorLink: '',
299
+ /**
300
+ * Brand accent text color.
301
+ */
302
+ contentColorAccent: '',
303
+ /**
304
+ * Brighter brand accent text color for emphasis.
305
+ */
306
+ contentColorAccentStrong: '',
307
+ /**
308
+ * Brand accent text color that does not pass 4.5:1 contrast ratio.
309
+ */
310
+ contentColorAccentWeak: '',
311
+ /**
312
+ * Text color for headings, titles, and prominent text content.
313
+ */
314
+ contentColorActive: '',
315
+ /**
316
+ * Text color for paragraphs and standard content.
317
+ */
318
+ contentColorDefault: '',
319
+ /**
320
+ * Text color for disabled content that does not pass 4.5:1 contrast.
321
+ */
322
+ contentColorDisabled: '',
323
+ /**
324
+ * Text color used to convey informational context or status.
325
+ */
326
+ contentColorInfo: '',
327
+ /**
328
+ * Text color used on top of inverted backgrounds.
329
+ */
330
+ contentColorInverted: '',
331
+ /**
332
+ * Subdued text color for less prominent content (use sparingly).
333
+ */
334
+ contentColorMuted: '',
335
+ /**
336
+ * Text color for error or negative status messaging.
337
+ */
338
+ contentColorNegative: '',
339
+ /**
340
+ * Stronger negative text color for greater emphasis.
341
+ */
342
+ contentColorNegativeStrong: '',
343
+ /**
344
+ * Disabled negative text color that does not pass 4.5:1 contrast.
345
+ */
346
+ contentColorNegativeWeak: '',
347
+ /**
348
+ * Text color for success or positive status messaging.
349
+ */
350
+ contentColorPositive: '',
351
+ /**
352
+ * Text color for cautionary or warning status messaging.
353
+ */
354
+ contentColorWarning: ''
355
+ };
356
+
357
+ /**
358
+ * #### UI Colors
359
+ *
360
+ * @categoryColor
361
+ */
362
+ var uiColors = {
363
+ /**
364
+ * Visual focus ring color used for focus box-shadow. Should not be directly applied to UI elements.
365
+ */
366
+ focusColor: ''
367
+ };
368
+
369
+ /**
370
+ * #### Status colors
371
+ * * Use status colors to convey informative, positive, caution or negative content status. Weak variants do not meet graphical or text contrast and should only be used as decorative.
372
+ *
373
+ * @categoryColor
374
+ */
375
+ var statusColors = {
376
+ /**
377
+ * Default color for informational messages and notifications.
378
+ */
379
+ statusColorInfo: '',
380
+ /**
381
+ * Weaker, less prominent informational color, does not pass 3:1 graphical or 4.5:1 text contrast.
382
+ */
383
+ statusColorInfoWeak: '',
384
+ /**
385
+ * Brighter, more prominent informational color.
386
+ */
387
+ statusColorInfoStrong: '',
388
+ /**
389
+ * Default color for neutral or standard status messages.
390
+ */
391
+ statusColorNormal: '',
392
+ /**
393
+ * Weaker, less prominent normal color, does not pass 3:1 graphical or 4.5:1 text contrast.
394
+ */
395
+ statusColorNormalWeak: '',
396
+ /**
397
+ * Brighter, more prominent normal color.
398
+ */
399
+ statusColorNormalStrong: '',
400
+ /**
401
+ * Default color for low-priority status messages.
402
+ */
403
+ statusColorLow: '',
404
+ /**
405
+ * Weaker, less prominent low-priority color, does not pass 3:1 graphical or 4.5:1 text contrast.
406
+ */
407
+ statusColorLowWeak: '',
408
+ /**
409
+ * Brighter, more prominent low-priority color.
410
+ */
411
+ statusColorLowStrong: '',
412
+ /**
413
+ * Default color for medium-priority status messages.
414
+ */
415
+ statusColorMedium: '',
416
+ /**
417
+ * Weaker, less prominent medium-priority color, does not pass 3:1 graphical or 4.5:1 text contrast.
418
+ */
419
+ statusColorMediumWeak: '',
420
+ /**
421
+ * Brighter, more prominent medium-priority color.
422
+ */
423
+ statusColorMediumStrong: '',
424
+ /**
425
+ * Default color for high-priority status messages.
426
+ */
427
+ statusColorHigh: '',
428
+ /**
429
+ * Weaker, less prominent high-priority color, does not pass 3:1 graphical or 4.5:1 text contrast.
430
+ */
431
+ statusColorHighWeak: '',
432
+ /**
433
+ * Brighter, more prominent high-priority color.
434
+ */
435
+ statusColorHighStrong: '',
436
+ /**
437
+ * Default color for critical alerts or urgent messages.
438
+ */
439
+ statusColorCritical: '',
440
+ /**
441
+ * Weaker, less prominent critical color, does not pass 3:1 graphical or 4.5:1 text contrast.
442
+ */
443
+ statusColorCriticalWeak: '',
444
+ /**
445
+ * Brighter, more prominent critical color.
446
+ */
447
+ statusColorCriticalStrong: ''
448
+ };
449
+
450
+ /**
451
+ * #### Syntax colors
452
+ *
453
+ * These colors should be used for syntax highlighting in programming languages.
454
+ * The colors chosen for tokens depend on the language, its features, and aesthetics.
455
+ * Prefer to use the `Code` component rather than these tokens directly as it does this mapping automatically.
456
+ * See [Content Colors](#Content Colors)
457
+ *
458
+ * @categoryFont
459
+ */
460
+ var syntaxColors = {
461
+ syntaxBlue: '',
462
+ syntaxBrown: '',
463
+ syntaxGray: '',
464
+ syntaxGreen: '',
465
+ syntaxOrange: '',
466
+ syntaxPink: '',
467
+ syntaxPurple: '',
468
+ syntaxRed: '',
469
+ syntaxTeal: ''
470
+ };
471
+
472
+ /**
473
+ * #### Border colors
474
+ *
475
+ * Border color should be used to outline or divide content and UI elements.
476
+ *
477
+ * @categoryColor
478
+ */
479
+ var borderColors = {
480
+ /**
481
+ * Default border color for elements that meets 3:1 graphical contrast (e.g., menu dividers).
482
+ */
483
+ borderColor: '',
484
+ /**
485
+ * Decorative-only border color that does not meet 3:1 graphical contrast.
486
+ */
487
+ borderColorWeak: '',
488
+ /**
489
+ * Border color with stronger visual emphasis that meets 3:1 graphical contrast.
490
+ */
491
+ borderColorStrong: ''
492
+ };
493
+ var colors = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, actionColors), interactiveColors), neutralColors), backgroundColors), contentColors), uiColors), statusColors), syntaxColors), borderColors);
494
+ var _default = colors;
495
+ exports["default"] = _default;