@splunk/themes 1.1.0 → 1.2.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 +17 -1
- package/SplunkThemeProvider.js +3 -4
- package/design-tokens/typography.js +33 -1
- package/enterprise/light.js +8 -1
- package/mixins/index.js +1 -2
- package/mixins/typography.js +7 -7
- package/mixins/utilityMixins.js +2 -0
- package/package.json +9 -9
- package/prisma/base.js +8 -1
- package/splunk-magnetic/index.js +1 -0
- package/storybook-addon-splunk-themes/SplunkThemesTool.js +1 -2
- package/storybook-addon-splunk-themes/withSplunkTheme.js +1 -2
- package/types/design-tokens/index.d.ts +7 -0
- package/types/design-tokens/typography.d.ts +58 -0
- package/types/enterprise/dark.d.ts +7 -0
- package/types/enterprise/light.d.ts +7 -0
- package/types/prisma/base.d.ts +7 -0
- package/types/splunk-magnetic/index.d.ts +48 -6
- package/useSplunkTheme.js +2 -2
- package/withSplunkTheme.js +3 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
Change Log
|
|
2
2
|
============
|
|
3
3
|
|
|
4
|
+
1.2.1 - September 2, 2025
|
|
5
|
+
----------
|
|
6
|
+
Bug Fixes:
|
|
7
|
+
* Added missing `sansFontFamily` token in Magnetic theme customizer (SUI-8101).
|
|
8
|
+
|
|
9
|
+
Docs:
|
|
10
|
+
* Added missing data visualization color categories (`categorical2D`, `categorical2L`, `divergent1D`) to design tokens documentation (SUI-8139).
|
|
11
|
+
|
|
12
|
+
1.2.0 - August 5, 2025
|
|
13
|
+
----------
|
|
14
|
+
New Features:
|
|
15
|
+
* New `lineHeight*` variables (SUI-7993).
|
|
16
|
+
|
|
17
|
+
Bug Fixes:
|
|
18
|
+
* Updated `skipLink` mixin to override `min-width` and `min-height` properties.
|
|
19
|
+
|
|
4
20
|
1.1.0 - July 2, 2025
|
|
5
21
|
----------
|
|
6
22
|
New Features:
|
|
@@ -10,7 +26,7 @@ New Features:
|
|
|
10
26
|
|
|
11
27
|
Bug Fixes:
|
|
12
28
|
* 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`.
|
|
29
|
+
* Tokens updated: `syntaxBlue`, `syntaxBrown`, `syntaxGray`, `syntaxGreen`, `syntaxHighlight`, `syntaxOrange`, `syntaxPink`, `syntaxPurple`, `syntaxRed`, and `syntaxTeal`.
|
|
14
30
|
* Updated `actionColorBackgroundSecondaryActive` token values in Enterprise and Prisma themes to fix visual regression in `Radio Bar` (SUI-7864).
|
|
15
31
|
* Updated `interactiveColorOverlayActive` token values in Prisma and Enterprise themes to match `actionColorBackgroundSecondaryActive` values for consistent active overlay states (SUI-7864).
|
|
16
32
|
* Updated enterprise theme light mode neutral color tokens `neutral300`, `neutral400`, and `neutral500` to fix lightness steps from previous changes. (SUI-7879)
|
package/SplunkThemeProvider.js
CHANGED
|
@@ -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
|
|
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
|
|
19
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
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
|
-
|
|
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;
|
package/enterprise/light.js
CHANGED
|
@@ -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
|
-
|
|
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
|
|
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; }
|
package/mixins/typography.js
CHANGED
|
@@ -202,13 +202,13 @@ var fontsizePixelValueToRemMap = {
|
|
|
202
202
|
12: _variables["default"].fontSizeSmall
|
|
203
203
|
};
|
|
204
204
|
var lineHeightVariableToValueMap = {
|
|
205
|
-
single:
|
|
206
|
-
tight:
|
|
207
|
-
snug:
|
|
208
|
-
comfortable:
|
|
209
|
-
relaxed:
|
|
210
|
-
spacious:
|
|
211
|
-
normal:
|
|
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)
|
package/mixins/utilityMixins.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splunk/themes",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.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",
|
|
@@ -69,15 +69,15 @@
|
|
|
69
69
|
"tinycolor2": "^1.4.1"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@babel/cli": "^7.
|
|
73
|
-
"@babel/core": "^7.
|
|
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.
|
|
77
|
-
"@storybook/components": "^7.6.
|
|
78
|
-
"@storybook/manager-api": "^7.6.
|
|
79
|
-
"@storybook/react": "^7.6.
|
|
80
|
-
"@storybook/theming": "^7.6.
|
|
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": "^
|
|
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,
|
package/splunk-magnetic/index.js
CHANGED
|
@@ -72,6 +72,7 @@ var mapMagneticCategoricalColors = function mapMagneticCategoricalColors() {
|
|
|
72
72
|
var magneticTypography = {
|
|
73
73
|
fontFamily: "Inter, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
|
|
74
74
|
fontFamilyTitle: "'Sharp Sans', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
|
|
75
|
+
sansFontFamily: "Inter, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
|
|
75
76
|
monoFontFamily: "'Roboto Mono', ui-monospace, 'Courier New', Menlo, Monaco"
|
|
76
77
|
};
|
|
77
78
|
var splunkMagneticThemeCustomizer = function splunkMagneticThemeCustomizer(currentTheme) {
|
|
@@ -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
|
|
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
|
|
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;
|
package/types/prisma/base.d.ts
CHANGED
|
@@ -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;
|
|
@@ -127,6 +127,7 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
127
127
|
categorical2L7: string;
|
|
128
128
|
fontFamily: string;
|
|
129
129
|
fontFamilyTitle: string;
|
|
130
|
+
sansFontFamily: string;
|
|
130
131
|
monoFontFamily: string;
|
|
131
132
|
interactiveColorPrimary: string;
|
|
132
133
|
accentColorPositive: string;
|
|
@@ -481,6 +482,13 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
481
482
|
contentColorWarning: string;
|
|
482
483
|
lineLength: string;
|
|
483
484
|
lineHeight: string;
|
|
485
|
+
lineHeightSingle: string;
|
|
486
|
+
lineHeightTight: string;
|
|
487
|
+
lineHeightSnug: string;
|
|
488
|
+
lineHeightComfortable: string;
|
|
489
|
+
lineHeightRelaxed: string;
|
|
490
|
+
lineHeightSpacious: string;
|
|
491
|
+
lineHeightNormal: string;
|
|
484
492
|
fontSizeSmall: string;
|
|
485
493
|
fontSize: string;
|
|
486
494
|
fontSizeLarge: string;
|
|
@@ -492,7 +500,6 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
492
500
|
fontWeightBold: number;
|
|
493
501
|
fontWeightHeavy: number;
|
|
494
502
|
fontWeightExtraBold: number;
|
|
495
|
-
sansFontFamily: string;
|
|
496
503
|
serifFontFamily: string;
|
|
497
504
|
focusShadowInset: string;
|
|
498
505
|
draggableBackground: string;
|
|
@@ -695,6 +702,7 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
695
702
|
categorical2L7: string;
|
|
696
703
|
fontFamily: string;
|
|
697
704
|
fontFamilyTitle: string;
|
|
705
|
+
sansFontFamily: string;
|
|
698
706
|
monoFontFamily: string;
|
|
699
707
|
interactiveColorPrimary: string;
|
|
700
708
|
accentColorPositive: string;
|
|
@@ -1049,6 +1057,13 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
1049
1057
|
contentColorWarning: string;
|
|
1050
1058
|
lineLength: string;
|
|
1051
1059
|
lineHeight: string;
|
|
1060
|
+
lineHeightSingle: string;
|
|
1061
|
+
lineHeightTight: string;
|
|
1062
|
+
lineHeightSnug: string;
|
|
1063
|
+
lineHeightComfortable: string;
|
|
1064
|
+
lineHeightRelaxed: string;
|
|
1065
|
+
lineHeightSpacious: string;
|
|
1066
|
+
lineHeightNormal: string;
|
|
1052
1067
|
fontSizeSmall: string;
|
|
1053
1068
|
fontSize: string;
|
|
1054
1069
|
fontSizeLarge: string;
|
|
@@ -1060,7 +1075,6 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
1060
1075
|
fontWeightBold: number;
|
|
1061
1076
|
fontWeightHeavy: number;
|
|
1062
1077
|
fontWeightExtraBold: number;
|
|
1063
|
-
sansFontFamily: string;
|
|
1064
1078
|
serifFontFamily: string;
|
|
1065
1079
|
focusShadowInset: string;
|
|
1066
1080
|
draggableBackground: string;
|
|
@@ -1263,6 +1277,7 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
1263
1277
|
categorical2L7: string;
|
|
1264
1278
|
fontFamily: string;
|
|
1265
1279
|
fontFamilyTitle: string;
|
|
1280
|
+
sansFontFamily: string;
|
|
1266
1281
|
monoFontFamily: string;
|
|
1267
1282
|
draggableBackground: string;
|
|
1268
1283
|
interactiveColorPrimary: string;
|
|
@@ -1647,6 +1662,13 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
1647
1662
|
zindexToastMessages: number;
|
|
1648
1663
|
lineLength: string;
|
|
1649
1664
|
lineHeight: string;
|
|
1665
|
+
lineHeightSingle: string;
|
|
1666
|
+
lineHeightTight: string;
|
|
1667
|
+
lineHeightSnug: string;
|
|
1668
|
+
lineHeightComfortable: string;
|
|
1669
|
+
lineHeightRelaxed: string;
|
|
1670
|
+
lineHeightSpacious: string;
|
|
1671
|
+
lineHeightNormal: string;
|
|
1650
1672
|
fontSizeSmall: string;
|
|
1651
1673
|
fontSize: string;
|
|
1652
1674
|
fontSizeLarge: string;
|
|
@@ -1658,7 +1680,6 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
1658
1680
|
fontWeightBold: number;
|
|
1659
1681
|
fontWeightHeavy: number;
|
|
1660
1682
|
fontWeightExtraBold: number;
|
|
1661
|
-
sansFontFamily: string;
|
|
1662
1683
|
serifFontFamily: string;
|
|
1663
1684
|
brandColor: string;
|
|
1664
1685
|
gray98: string;
|
|
@@ -1833,6 +1854,7 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
1833
1854
|
categorical2L7: string;
|
|
1834
1855
|
fontFamily: string;
|
|
1835
1856
|
fontFamilyTitle: string;
|
|
1857
|
+
sansFontFamily: string;
|
|
1836
1858
|
monoFontFamily: string;
|
|
1837
1859
|
draggableBackground: string;
|
|
1838
1860
|
interactiveColorPrimary: string;
|
|
@@ -2217,6 +2239,13 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
2217
2239
|
zindexToastMessages: number;
|
|
2218
2240
|
lineLength: string;
|
|
2219
2241
|
lineHeight: string;
|
|
2242
|
+
lineHeightSingle: string;
|
|
2243
|
+
lineHeightTight: string;
|
|
2244
|
+
lineHeightSnug: string;
|
|
2245
|
+
lineHeightComfortable: string;
|
|
2246
|
+
lineHeightRelaxed: string;
|
|
2247
|
+
lineHeightSpacious: string;
|
|
2248
|
+
lineHeightNormal: string;
|
|
2220
2249
|
fontSizeSmall: string;
|
|
2221
2250
|
fontSize: string;
|
|
2222
2251
|
fontSizeLarge: string;
|
|
@@ -2228,7 +2257,6 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
2228
2257
|
fontWeightBold: number;
|
|
2229
2258
|
fontWeightHeavy: number;
|
|
2230
2259
|
fontWeightExtraBold: number;
|
|
2231
|
-
sansFontFamily: string;
|
|
2232
2260
|
serifFontFamily: string;
|
|
2233
2261
|
brandColor: string;
|
|
2234
2262
|
gray98: string;
|
|
@@ -2403,6 +2431,7 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
2403
2431
|
categorical2L7: string;
|
|
2404
2432
|
fontFamily: string;
|
|
2405
2433
|
fontFamilyTitle: string;
|
|
2434
|
+
sansFontFamily: string;
|
|
2406
2435
|
monoFontFamily: string;
|
|
2407
2436
|
hoverShadow: string;
|
|
2408
2437
|
zindexLayer: number;
|
|
@@ -2591,6 +2620,13 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
2591
2620
|
static20: string;
|
|
2592
2621
|
lineLength: string;
|
|
2593
2622
|
lineHeight: string;
|
|
2623
|
+
lineHeightSingle: string;
|
|
2624
|
+
lineHeightTight: string;
|
|
2625
|
+
lineHeightSnug: string;
|
|
2626
|
+
lineHeightComfortable: string;
|
|
2627
|
+
lineHeightRelaxed: string;
|
|
2628
|
+
lineHeightSpacious: string;
|
|
2629
|
+
lineHeightNormal: string;
|
|
2594
2630
|
fontSizeSmall: string;
|
|
2595
2631
|
fontSize: string;
|
|
2596
2632
|
fontSizeLarge: string;
|
|
@@ -2602,7 +2638,6 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
2602
2638
|
fontWeightBold: number;
|
|
2603
2639
|
fontWeightHeavy: number;
|
|
2604
2640
|
fontWeightExtraBold: number;
|
|
2605
|
-
sansFontFamily: string;
|
|
2606
2641
|
serifFontFamily: string;
|
|
2607
2642
|
interactiveColorPrimary: string;
|
|
2608
2643
|
accentColorPositive: string;
|
|
@@ -2800,6 +2835,7 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
2800
2835
|
categorical2L7: string;
|
|
2801
2836
|
fontFamily: string;
|
|
2802
2837
|
fontFamilyTitle: string;
|
|
2838
|
+
sansFontFamily: string;
|
|
2803
2839
|
monoFontFamily: string;
|
|
2804
2840
|
hoverShadow: string;
|
|
2805
2841
|
zindexLayer: number;
|
|
@@ -2988,6 +3024,13 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
2988
3024
|
static20: string;
|
|
2989
3025
|
lineLength: string;
|
|
2990
3026
|
lineHeight: string;
|
|
3027
|
+
lineHeightSingle: string;
|
|
3028
|
+
lineHeightTight: string;
|
|
3029
|
+
lineHeightSnug: string;
|
|
3030
|
+
lineHeightComfortable: string;
|
|
3031
|
+
lineHeightRelaxed: string;
|
|
3032
|
+
lineHeightSpacious: string;
|
|
3033
|
+
lineHeightNormal: string;
|
|
2991
3034
|
fontSizeSmall: string;
|
|
2992
3035
|
fontSize: string;
|
|
2993
3036
|
fontSizeLarge: string;
|
|
@@ -2999,7 +3042,6 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
2999
3042
|
fontWeightBold: number;
|
|
3000
3043
|
fontWeightHeavy: number;
|
|
3001
3044
|
fontWeightExtraBold: number;
|
|
3002
|
-
sansFontFamily: string;
|
|
3003
3045
|
serifFontFamily: string;
|
|
3004
3046
|
interactiveColorPrimary: string;
|
|
3005
3047
|
accentColorPositive: 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
|
|
17
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
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`,
|
package/withSplunkTheme.js
CHANGED
|
@@ -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
|
|
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
|
|
20
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
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
|