@splunk/themes 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  Change Log
2
2
  ============
3
3
 
4
+ 1.2.0 - August 5, 2025
5
+ ----------
6
+ New Features:
7
+ * New `lineHeight*` variables (SUI-7993).
8
+
9
+ Bug fixes:
10
+ * Updated `skipLink` mixin to override `min-width` and `min-height` properties.
11
+
4
12
  1.1.0 - July 2, 2025
5
13
  ----------
6
14
  New Features:
@@ -10,7 +18,7 @@ New Features:
10
18
 
11
19
  Bug Fixes:
12
20
  * Updated Prisma and Magnetic light syntax token values to maintain 4.5:1 contrast with line highlight (SUI-6644).
13
- * Tokens updated: `syntaxBlue`, `syntaxBrown`, `syntaxGray`, `syntaxGreen`, `syntaxHighlight`, `syntaxOrange`, `syntaxPink`, `syntaxPurple`, `syntaxRed`, and `syntaxTeal`.
21
+ * Tokens updated: `syntaxBlue`, `syntaxBrown`, `syntaxGray`, `syntaxGreen`, `syntaxHighlight`, `syntaxOrange`, `syntaxPink`, `syntaxPurple`, `syntaxRed`, and `syntaxTeal`.
14
22
  * Updated `actionColorBackgroundSecondaryActive` token values in Enterprise and Prisma themes to fix visual regression in `Radio Bar` (SUI-7864).
15
23
  * Updated `interactiveColorOverlayActive` token values in Prisma and Enterprise themes to match `actionColorBackgroundSecondaryActive` values for consistent active overlay states (SUI-7864).
16
24
  * Updated enterprise theme light mode neutral color tokens `neutral300`, `neutral400`, and `neutral500` to fix lightness steps from previous changes. (SUI-7879)
@@ -7,16 +7,15 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports["default"] = SplunkThemeProvider;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _styledComponents = require("styled-components");
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; }
10
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) { "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); } return f; })(e, t); }
12
11
  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
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; }
14
13
  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
14
  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
15
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
16
  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; }
17
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) { o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; }
18
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } } return t; }
20
19
  /** SplunkThemeProvider defaults to `prisma` `dark` `compact`, unless the properties have already been set.
21
20
  *
22
21
  * For example, here the nested `SplunkThemeProvider` defaults to `enterprise` `light`:
@@ -64,7 +64,39 @@ var fontMeasures = {
64
64
  * in blocks of text by preventing overly long lines.
65
65
  */
66
66
  lineLength: '',
67
- lineHeight: '1.5'
67
+ /**
68
+ * Default line height.
69
+ */
70
+ lineHeight: '',
71
+ /**
72
+ * Very tight. Use where space is extremely limited and text is not expected to wrap.
73
+ * Ideal for buttons, badges, input fields, and compact labels.
74
+ */
75
+ lineHeightSingle: '',
76
+ /**
77
+ * Slightly more space than single, still compact
78
+ */
79
+ lineHeightTight: '',
80
+ /**
81
+ * Compact but a bit more readable
82
+ */
83
+ lineHeightSnug: '',
84
+ /**
85
+ * Balanced spacing for smaller text
86
+ */
87
+ lineHeightComfortable: '',
88
+ /**
89
+ * Slightly looser for better readability
90
+ */
91
+ lineHeightRelaxed: '',
92
+ /*
93
+ * Ideal for larger text like headings
94
+ */
95
+ lineHeightSpacious: '',
96
+ /**
97
+ * Default for body text; comfortable, standard line height same as `lineHeight`
98
+ */
99
+ lineHeightNormal: ''
68
100
  };
69
101
  var typography = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, fontFamily), fontWeight), fontSize), fontMeasures);
70
102
  var _default = typography;
@@ -203,8 +203,15 @@ var typography = {
203
203
  fontWeightBold: 700,
204
204
  fontWeightHeavy: 800,
205
205
  fontWeightExtraBold: 900,
206
+ lineLength: '80ch',
206
207
  lineHeight: '1.5',
207
- lineLength: '80ch'
208
+ lineHeightSingle: '1',
209
+ lineHeightTight: '1.2',
210
+ lineHeightSnug: '1.25',
211
+ lineHeightComfortable: '1.333',
212
+ lineHeightRelaxed: '1.375',
213
+ lineHeightSpacious: '1.429',
214
+ lineHeightNormal: '1.5'
208
215
  };
209
216
  var zindexes = {
210
217
  zindexLayer: 1000,
package/mixins/index.js CHANGED
@@ -82,8 +82,7 @@ Object.keys(_utilityMixins).forEach(function (key) {
82
82
  }
83
83
  });
84
84
  });
85
- 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); }
86
- 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; }
85
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) { "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); } return f; })(e, t); }
87
86
  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); }
88
87
  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; }
89
88
  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; }
@@ -202,13 +202,13 @@ var fontsizePixelValueToRemMap = {
202
202
  12: _variables["default"].fontSizeSmall
203
203
  };
204
204
  var lineHeightVariableToValueMap = {
205
- single: '1',
206
- tight: '1.2',
207
- snug: '1.25',
208
- comfortable: '1.333',
209
- relaxed: '1.375',
210
- spacious: '1.429',
211
- normal: '1.5'
205
+ single: _variables["default"].lineHeightSingle,
206
+ tight: _variables["default"].lineHeightTight,
207
+ snug: _variables["default"].lineHeightSnug,
208
+ comfortable: _variables["default"].lineHeightComfortable,
209
+ relaxed: _variables["default"].lineHeightRelaxed,
210
+ spacious: _variables["default"].lineHeightSpacious,
211
+ normal: _variables["default"].lineHeightNormal
212
212
  };
213
213
 
214
214
  // As defined by [font-weight | MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight#common_weight_name_mapping)
@@ -227,7 +227,9 @@ function skipLink() {
227
227
  overflow: 'hidden',
228
228
  clipPath: 'inset(50%)',
229
229
  height: '1px',
230
+ minHeight: '1px',
230
231
  width: '1px',
232
+ minWidth: '1px',
231
233
  padding: '0',
232
234
  border: '0',
233
235
  whiteSpace: 'nowrap'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splunk/themes",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Theme variables and mixins for the Splunk design language",
5
5
  "main": "./index.js",
6
6
  "types": "./types/index.d.ts",
@@ -69,15 +69,15 @@
69
69
  "tinycolor2": "^1.4.1"
70
70
  },
71
71
  "devDependencies": {
72
- "@babel/cli": "^7.2.0",
73
- "@babel/core": "^7.2.0",
72
+ "@babel/cli": "^7.28.0",
73
+ "@babel/core": "^7.28.0",
74
74
  "@splunk/babel-preset": "^4.0.0",
75
75
  "@splunk/eslint-config": "^5.0.0",
76
- "@storybook/blocks": "^7.6.17",
77
- "@storybook/components": "^7.6.17",
78
- "@storybook/manager-api": "^7.6.17",
79
- "@storybook/react": "^7.6.17",
80
- "@storybook/theming": "^7.6.17",
76
+ "@storybook/blocks": "^7.6.20",
77
+ "@storybook/components": "^7.6.20",
78
+ "@storybook/manager-api": "^7.6.20",
79
+ "@storybook/react": "^7.6.20",
80
+ "@storybook/theming": "^7.6.20",
81
81
  "@testing-library/dom": "^10.4.0",
82
82
  "@testing-library/jest-dom": "^6.6.3",
83
83
  "@testing-library/react": "^16.3.0",
@@ -103,7 +103,7 @@
103
103
  "typescript": "^5.8.3",
104
104
  "webpack": "^5.88.2",
105
105
  "webpack-cli": "^5.1.4",
106
- "webpack-dev-server": "^4.15.1",
106
+ "webpack-dev-server": "^5.2.2",
107
107
  "webpack-merge": "^5.9.0"
108
108
  },
109
109
  "engines": {
package/prisma/base.js CHANGED
@@ -55,7 +55,14 @@ function createPrismaBase(_ref) {
55
55
  fontWeightHeavy: 800,
56
56
  fontWeightExtraBold: 900,
57
57
  lineHeight: '1.5',
58
- lineLength: '80ch'
58
+ lineLength: '80ch',
59
+ lineHeightNormal: '1.5',
60
+ lineHeightSingle: '1',
61
+ lineHeightTight: '1.2',
62
+ lineHeightSnug: '1.25',
63
+ lineHeightComfortable: '1.333',
64
+ lineHeightRelaxed: '1.375',
65
+ lineHeightSpacious: '1.429'
59
66
  };
60
67
  var zindexes = {
61
68
  zindexLayer: 1000,
@@ -12,8 +12,7 @@ var _constants = require("./constants");
12
12
  var _themeOptions = require("./themeOptions");
13
13
  var _themes = require("./themes");
14
14
  var _util = require("./util");
15
- 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); }
16
- 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; }
15
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) { "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); } return f; })(e, t); }
17
16
  function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
18
17
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
19
18
  function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
@@ -16,8 +16,7 @@ var _themeOptions = require("./themeOptions");
16
16
  var _themes = require("./themes");
17
17
  var _util = require("./util");
18
18
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
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); }
20
- 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; }
19
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) { "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); } return f; })(e, t); }
21
20
  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; }
22
21
  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; }
23
22
  function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
@@ -211,6 +211,13 @@ declare const designTokens: {
211
211
  static20: string;
212
212
  lineLength: string;
213
213
  lineHeight: string;
214
+ lineHeightSingle: string;
215
+ lineHeightTight: string;
216
+ lineHeightSnug: string;
217
+ lineHeightComfortable: string;
218
+ lineHeightRelaxed: string;
219
+ lineHeightSpacious: string;
220
+ lineHeightNormal: string;
214
221
  fontSizeSmall: string;
215
222
  fontSize: string;
216
223
  fontSizeLarge: string;
@@ -49,7 +49,36 @@ declare const fontMeasures: {
49
49
  * in blocks of text by preventing overly long lines.
50
50
  */
51
51
  lineLength: string;
52
+ /**
53
+ * Default line height.
54
+ */
52
55
  lineHeight: string;
56
+ /**
57
+ * Very tight. Use where space is extremely limited and text is not expected to wrap.
58
+ * Ideal for buttons, badges, input fields, and compact labels.
59
+ */
60
+ lineHeightSingle: string;
61
+ /**
62
+ * Slightly more space than single, still compact
63
+ */
64
+ lineHeightTight: string;
65
+ /**
66
+ * Compact but a bit more readable
67
+ */
68
+ lineHeightSnug: string;
69
+ /**
70
+ * Balanced spacing for smaller text
71
+ */
72
+ lineHeightComfortable: string;
73
+ /**
74
+ * Slightly looser for better readability
75
+ */
76
+ lineHeightRelaxed: string;
77
+ lineHeightSpacious: string;
78
+ /**
79
+ * Default for body text; comfortable, standard line height same as `lineHeight`
80
+ */
81
+ lineHeightNormal: string;
53
82
  };
54
83
  declare const typography: {
55
84
  /**
@@ -57,7 +86,36 @@ declare const typography: {
57
86
  * in blocks of text by preventing overly long lines.
58
87
  */
59
88
  lineLength: string;
89
+ /**
90
+ * Default line height.
91
+ */
60
92
  lineHeight: string;
93
+ /**
94
+ * Very tight. Use where space is extremely limited and text is not expected to wrap.
95
+ * Ideal for buttons, badges, input fields, and compact labels.
96
+ */
97
+ lineHeightSingle: string;
98
+ /**
99
+ * Slightly more space than single, still compact
100
+ */
101
+ lineHeightTight: string;
102
+ /**
103
+ * Compact but a bit more readable
104
+ */
105
+ lineHeightSnug: string;
106
+ /**
107
+ * Balanced spacing for smaller text
108
+ */
109
+ lineHeightComfortable: string;
110
+ /**
111
+ * Slightly looser for better readability
112
+ */
113
+ lineHeightRelaxed: string;
114
+ lineHeightSpacious: string;
115
+ /**
116
+ * Default for body text; comfortable, standard line height same as `lineHeight`
117
+ */
118
+ lineHeightNormal: string;
61
119
  fontSizeSmall: string;
62
120
  fontSize: string;
63
121
  fontSizeLarge: string;
@@ -495,6 +495,13 @@ declare const theme: {
495
495
  zindexToastMessages: number;
496
496
  lineLength: string;
497
497
  lineHeight: string;
498
+ lineHeightSingle: string;
499
+ lineHeightTight: string;
500
+ lineHeightSnug: string;
501
+ lineHeightComfortable: string;
502
+ lineHeightRelaxed: string;
503
+ lineHeightSpacious: string;
504
+ lineHeightNormal: string;
498
505
  fontSizeSmall: string;
499
506
  fontSize: string;
500
507
  fontSizeLarge: string;
@@ -408,6 +408,13 @@ declare const theme: {
408
408
  contentColorWarning: string;
409
409
  lineLength: string;
410
410
  lineHeight: string;
411
+ lineHeightSingle: string;
412
+ lineHeightTight: string;
413
+ lineHeightSnug: string;
414
+ lineHeightComfortable: string;
415
+ lineHeightRelaxed: string;
416
+ lineHeightSpacious: string;
417
+ lineHeightNormal: string;
411
418
  fontSizeSmall: string;
412
419
  fontSize: string;
413
420
  fontSizeLarge: string;
@@ -223,6 +223,13 @@ declare function createPrismaBase({ colorScheme }: {
223
223
  focusColor: string;
224
224
  lineLength: string;
225
225
  lineHeight: string;
226
+ lineHeightSingle: string;
227
+ lineHeightTight: string;
228
+ lineHeightSnug: string;
229
+ lineHeightComfortable: string;
230
+ lineHeightRelaxed: string;
231
+ lineHeightSpacious: string;
232
+ lineHeightNormal: string;
226
233
  fontSizeSmall: string;
227
234
  fontSize: string;
228
235
  fontSizeLarge: string;
@@ -481,6 +481,13 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
481
481
  contentColorWarning: string;
482
482
  lineLength: string;
483
483
  lineHeight: string;
484
+ lineHeightSingle: string;
485
+ lineHeightTight: string;
486
+ lineHeightSnug: string;
487
+ lineHeightComfortable: string;
488
+ lineHeightRelaxed: string;
489
+ lineHeightSpacious: string;
490
+ lineHeightNormal: string;
484
491
  fontSizeSmall: string;
485
492
  fontSize: string;
486
493
  fontSizeLarge: string;
@@ -1049,6 +1056,13 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
1049
1056
  contentColorWarning: string;
1050
1057
  lineLength: string;
1051
1058
  lineHeight: string;
1059
+ lineHeightSingle: string;
1060
+ lineHeightTight: string;
1061
+ lineHeightSnug: string;
1062
+ lineHeightComfortable: string;
1063
+ lineHeightRelaxed: string;
1064
+ lineHeightSpacious: string;
1065
+ lineHeightNormal: string;
1052
1066
  fontSizeSmall: string;
1053
1067
  fontSize: string;
1054
1068
  fontSizeLarge: string;
@@ -1647,6 +1661,13 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
1647
1661
  zindexToastMessages: number;
1648
1662
  lineLength: string;
1649
1663
  lineHeight: string;
1664
+ lineHeightSingle: string;
1665
+ lineHeightTight: string;
1666
+ lineHeightSnug: string;
1667
+ lineHeightComfortable: string;
1668
+ lineHeightRelaxed: string;
1669
+ lineHeightSpacious: string;
1670
+ lineHeightNormal: string;
1650
1671
  fontSizeSmall: string;
1651
1672
  fontSize: string;
1652
1673
  fontSizeLarge: string;
@@ -2217,6 +2238,13 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
2217
2238
  zindexToastMessages: number;
2218
2239
  lineLength: string;
2219
2240
  lineHeight: string;
2241
+ lineHeightSingle: string;
2242
+ lineHeightTight: string;
2243
+ lineHeightSnug: string;
2244
+ lineHeightComfortable: string;
2245
+ lineHeightRelaxed: string;
2246
+ lineHeightSpacious: string;
2247
+ lineHeightNormal: string;
2220
2248
  fontSizeSmall: string;
2221
2249
  fontSize: string;
2222
2250
  fontSizeLarge: string;
@@ -2591,6 +2619,13 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
2591
2619
  static20: string;
2592
2620
  lineLength: string;
2593
2621
  lineHeight: string;
2622
+ lineHeightSingle: string;
2623
+ lineHeightTight: string;
2624
+ lineHeightSnug: string;
2625
+ lineHeightComfortable: string;
2626
+ lineHeightRelaxed: string;
2627
+ lineHeightSpacious: string;
2628
+ lineHeightNormal: string;
2594
2629
  fontSizeSmall: string;
2595
2630
  fontSize: string;
2596
2631
  fontSizeLarge: string;
@@ -2988,6 +3023,13 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
2988
3023
  static20: string;
2989
3024
  lineLength: string;
2990
3025
  lineHeight: string;
3026
+ lineHeightSingle: string;
3027
+ lineHeightTight: string;
3028
+ lineHeightSnug: string;
3029
+ lineHeightComfortable: string;
3030
+ lineHeightRelaxed: string;
3031
+ lineHeightSpacious: string;
3032
+ lineHeightNormal: string;
2991
3033
  fontSizeSmall: string;
2992
3034
  fontSize: string;
2993
3035
  fontSizeLarge: string;
package/useSplunkTheme.js CHANGED
@@ -13,8 +13,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
13
13
  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; }
14
14
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
15
  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); }
16
- 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; }
17
- 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; }
16
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) { o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; }
17
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } } return t; }
18
18
  /**
19
19
  * React hook that allows theme variables to be easily used within a React functional component.
20
20
  * This includes the basic configuration of `family`, `colorScheme` and `density`,
@@ -8,16 +8,15 @@ exports["default"] = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _styledComponents = require("styled-components");
10
10
  var _utils = require("./utils");
11
- 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); }
12
- 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; }
11
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) { "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); } return f; })(e, t); }
13
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); }
14
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; }
15
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; }
16
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; }
17
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
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); }
19
- 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; }
20
- 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; }
18
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) { o = n[r], -1 === t.indexOf(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 (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } } return t; }
21
20
  // thx: https://davidgomes.com/pick-omit-over-union-types-in-typescript/
22
21
 
23
22
  // for class components