@splunk/react-ui 4.21.0 → 4.22.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/Accordion.js +425 -325
- package/Anchor.js +147 -117
- package/Animation.js +142 -94
- package/AnimationToggle.js +197 -193
- package/Box.js +145 -118
- package/Breadcrumbs.js +288 -206
- package/Button.js +488 -465
- package/ButtonGroup.js +160 -128
- package/ButtonSimple.js +543 -462
- package/CHANGELOG.md +24 -3
- package/Calendar.js +1111 -1001
- package/Card.js +771 -598
- package/CardLayout.js +205 -147
- package/Chip.js +509 -488
- package/Clickable.js +414 -352
- package/CloseButton.js +165 -142
- package/Code.js +1807 -2084
- package/CollapsiblePanel.js +586 -519
- package/Color.js +1068 -1068
- package/ColumnLayout.js +402 -363
- package/ComboBox.js +903 -794
- package/Concertina.js +997 -802
- package/ControlGroup.js +687 -594
- package/Date.js +567 -547
- package/DefinitionList.js +308 -234
- package/Divider.js +149 -118
- package/Dropdown.js +459 -416
- package/DualListbox.js +1479 -1541
- package/EventListener.js +94 -97
- package/File.js +1051 -969
- package/FormRows.js +883 -696
- package/Heading.js +216 -193
- package/Image.js +446 -402
- package/JSONTree.js +690 -551
- package/Layer.js +437 -410
- package/Link.js +336 -255
- package/List.js +213 -161
- package/Markdown.js +509 -487
- package/Menu.js +1104 -1056
- package/Message.js +475 -441
- package/MessageBar.js +387 -373
- package/Modal.js +810 -634
- package/ModalLayer.js +326 -243
- package/Monogram.js +308 -276
- package/Multiselect.js +3564 -3364
- package/Number.js +729 -687
- package/Paginator.js +510 -449
- package/Paragraph.js +145 -112
- package/Popover.js +1459 -1432
- package/Progress.js +301 -246
- package/RadioBar.js +634 -527
- package/RadioList.js +483 -444
- package/Resize.js +530 -489
- package/ResultsMenu.js +479 -455
- package/ScreenReaderContent.js +142 -111
- package/Scroll.js +595 -456
- package/ScrollContainerContext.js +197 -206
- package/Search.js +756 -650
- package/Select.js +2446 -2345
- package/SidePanel.js +390 -284
- package/Slider.js +680 -676
- package/SlidingPanels.js +639 -503
- package/SplitButton.js +464 -367
- package/StaticContent.js +161 -133
- package/StepBar.js +386 -358
- package/Switch.js +710 -640
- package/TabBar.js +741 -680
- package/TabLayout.js +406 -322
- package/Table.js +4974 -4616
- package/Text.js +1170 -1138
- package/TextArea.js +1102 -1090
- package/Tooltip.js +624 -581
- package/TransitionOpen.js +489 -422
- package/Typography.js +176 -153
- package/WaitSpinner.js +230 -206
- package/package.json +7 -7
- package/types/src/Color/Color.d.ts +0 -1
- package/types/src/JSONTree/JSONTreeContext.d.ts +7 -0
- package/types/src/JSONTree/TreeNode.d.ts +5 -0
- package/types/src/RadioBar/RadioBar.d.ts +1 -0
- package/types/src/ResultsMenu/ResultsMenu.d.ts +0 -2
- package/types/src/Select/docs/examples/Icons.d.ts +1 -9
- package/types/src/Slider/Slider.d.ts +1 -0
- package/types/src/TabBar/Tab.d.ts +10 -1
- package/types/src/TabBar/TabBar.d.ts +4 -2
- package/types/src/Table/Head.d.ts +7 -3
- package/types/src/Table/Table.d.ts +3 -2
- package/types/src/Table/TableContext.d.ts +2 -0
- package/useForceUpdate.js +112 -82
- package/useKeyPress.js +74 -71
- package/usePrevious.js +65 -65
- package/useRovingFocus.js +122 -138
package/Typography.js
CHANGED
|
@@ -1,154 +1,177 @@
|
|
|
1
|
-
/******/ (() => {
|
|
2
|
-
|
|
3
|
-
/******/
|
|
4
|
-
/******/
|
|
5
|
-
/******/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/******/
|
|
9
|
-
/******/
|
|
10
|
-
/******/
|
|
11
|
-
/******/
|
|
12
|
-
/******/
|
|
13
|
-
/******/
|
|
14
|
-
/******/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/******/
|
|
20
|
-
/******/
|
|
21
|
-
/******/
|
|
22
|
-
/******/
|
|
23
|
-
/******/
|
|
24
|
-
/******/
|
|
25
|
-
/******/
|
|
26
|
-
/******/
|
|
27
|
-
/******/
|
|
28
|
-
/******/
|
|
29
|
-
/******/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
/******/
|
|
34
|
-
/******/
|
|
35
|
-
/******/
|
|
36
|
-
/******/
|
|
37
|
-
/******/
|
|
38
|
-
/******/
|
|
39
|
-
/******/
|
|
40
|
-
/******/
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
/******/
|
|
44
|
-
/******/
|
|
45
|
-
/******/
|
|
46
|
-
/******/
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
const
|
|
69
|
-
var
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
1
|
+
/******/ (() => {
|
|
2
|
+
// webpackBootstrap
|
|
3
|
+
/******/ "use strict";
|
|
4
|
+
/******/ // The require scope
|
|
5
|
+
/******/ var e = {};
|
|
6
|
+
/******/
|
|
7
|
+
/************************************************************************/
|
|
8
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
9
|
+
/******/ (() => {
|
|
10
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
11
|
+
/******/ e.n = r => {
|
|
12
|
+
/******/ var t = r && r.__esModule ?
|
|
13
|
+
/******/ () => r["default"]
|
|
14
|
+
/******/ : () => r
|
|
15
|
+
/******/;
|
|
16
|
+
e.d(t, {
|
|
17
|
+
a: t
|
|
18
|
+
});
|
|
19
|
+
/******/ return t;
|
|
20
|
+
/******/ };
|
|
21
|
+
/******/ })();
|
|
22
|
+
/******/
|
|
23
|
+
/******/ /* webpack/runtime/define property getters */
|
|
24
|
+
/******/ (() => {
|
|
25
|
+
/******/ // define getter functions for harmony exports
|
|
26
|
+
/******/ e.d = (r, t) => {
|
|
27
|
+
/******/ for (var n in t) {
|
|
28
|
+
/******/ if (e.o(t, n) && !e.o(r, n)) {
|
|
29
|
+
/******/ Object.defineProperty(r, n, {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: t[n]
|
|
32
|
+
});
|
|
33
|
+
/******/ }
|
|
34
|
+
/******/ }
|
|
35
|
+
/******/ };
|
|
36
|
+
/******/ })();
|
|
37
|
+
/******/
|
|
38
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
39
|
+
/******/ (() => {
|
|
40
|
+
/******/ e.o = (e, r) => Object.prototype.hasOwnProperty.call(e, r)
|
|
41
|
+
/******/;
|
|
42
|
+
})();
|
|
43
|
+
/******/
|
|
44
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
45
|
+
/******/ (() => {
|
|
46
|
+
/******/ // define __esModule on exports
|
|
47
|
+
/******/ e.r = e => {
|
|
48
|
+
/******/ if (typeof Symbol !== "undefined" && Symbol.toStringTag) {
|
|
49
|
+
/******/ Object.defineProperty(e, Symbol.toStringTag, {
|
|
50
|
+
value: "Module"
|
|
51
|
+
});
|
|
52
|
+
/******/ }
|
|
53
|
+
/******/ Object.defineProperty(e, "__esModule", {
|
|
54
|
+
value: true
|
|
55
|
+
});
|
|
56
|
+
/******/ };
|
|
57
|
+
/******/ })();
|
|
58
|
+
/******/
|
|
59
|
+
/************************************************************************/ var r = {};
|
|
60
|
+
// ESM COMPAT FLAG
|
|
61
|
+
e.r(r);
|
|
62
|
+
// EXPORTS
|
|
63
|
+
e.d(r, {
|
|
64
|
+
Typography: () => /* reexport */ v,
|
|
65
|
+
default: () => /* reexport */ g
|
|
66
|
+
});
|
|
67
|
+
// CONCATENATED MODULE: external "react"
|
|
68
|
+
const t = require("react");
|
|
69
|
+
var n = e.n(t);
|
|
70
|
+
// CONCATENATED MODULE: external "prop-types"
|
|
71
|
+
const o = require("prop-types");
|
|
72
|
+
var a = e.n(o);
|
|
73
|
+
// CONCATENATED MODULE: external "@splunk/themes/mixins"
|
|
74
|
+
const i = require("@splunk/themes/mixins");
|
|
75
|
+
var l = e.n(i);
|
|
76
|
+
// CONCATENATED MODULE: external "styled-components"
|
|
77
|
+
const s = require("styled-components");
|
|
78
|
+
var p = e.n(s);
|
|
79
|
+
// CONCATENATED MODULE: ./src/Typography/Typography.tsx
|
|
80
|
+
function y() {
|
|
81
|
+
y = Object.assign || function(e) {
|
|
82
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
83
|
+
var t = arguments[r];
|
|
84
|
+
for (var n in t) {
|
|
85
|
+
if (Object.prototype.hasOwnProperty.call(t, n)) {
|
|
86
|
+
e[n] = t[n];
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return e;
|
|
91
|
+
};
|
|
92
|
+
return y.apply(this, arguments);
|
|
93
|
+
}
|
|
94
|
+
function f(e, r) {
|
|
95
|
+
if (e == null) return {};
|
|
96
|
+
var t = u(e, r);
|
|
97
|
+
var n, o;
|
|
98
|
+
if (Object.getOwnPropertySymbols) {
|
|
99
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
100
|
+
for (o = 0; o < a.length; o++) {
|
|
101
|
+
n = a[o];
|
|
102
|
+
if (r.indexOf(n) >= 0) continue;
|
|
103
|
+
if (!Object.prototype.propertyIsEnumerable.call(e, n)) continue;
|
|
104
|
+
t[n] = e[n];
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return t;
|
|
108
|
+
}
|
|
109
|
+
function u(e, r) {
|
|
110
|
+
if (e == null) return {};
|
|
111
|
+
var t = {};
|
|
112
|
+
var n = Object.keys(e);
|
|
113
|
+
var o, a;
|
|
114
|
+
for (a = 0; a < n.length; a++) {
|
|
115
|
+
o = n[a];
|
|
116
|
+
if (r.indexOf(o) >= 0) continue;
|
|
117
|
+
t[o] = e[o];
|
|
118
|
+
}
|
|
119
|
+
return t;
|
|
120
|
+
}
|
|
121
|
+
var c = {
|
|
122
|
+
children: a().node.isRequired,
|
|
123
|
+
as: a().string.isRequired,
|
|
124
|
+
elementRef: a().oneOfType([ a().func, a().object ]),
|
|
125
|
+
family: a().oneOf([ "sansSerif", "monospace" ]),
|
|
126
|
+
variant: a().oneOf(i.typographyVariants),
|
|
127
|
+
size: a().number,
|
|
128
|
+
lineHeight: a().number,
|
|
129
|
+
color: a().oneOf([ "active", "default", "disabled", "inverted", "muted", "inherit" ]),
|
|
130
|
+
weight: a().oneOf([ 300, 400, 500, 600, 700, 800, 900, "light", "normal", "semiBold", "bold", "extraBold", "heavy" ]),
|
|
131
|
+
withReset: a().bool
|
|
132
|
+
};
|
|
133
|
+
var d = p().p.withConfig({
|
|
134
|
+
displayName: "Typography__StyledTypography",
|
|
135
|
+
componentId: "cgxs34-0"
|
|
136
|
+
})([ "", "" ], (function(e) {
|
|
137
|
+
var r = e.$variant, t = e.$typographyParams;
|
|
138
|
+
return r ? l().typography(r, t) : l().typography(t);
|
|
139
|
+
}));
|
|
140
|
+
var h = {
|
|
141
|
+
300: "light",
|
|
142
|
+
400: "normal",
|
|
143
|
+
500: "semiBold",
|
|
144
|
+
600: "semiBold",
|
|
145
|
+
700: "bold",
|
|
146
|
+
800: "extraBold",
|
|
147
|
+
900: "heavy"
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
111
150
|
* Typography renders text content with styling based on the Splunk Design System.
|
|
112
|
-
*/
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
return /*#__PURE__*/external_react_default().createElement(StyledTypography, _extends({
|
|
140
|
-
as: as,
|
|
141
|
-
ref: elementRef,
|
|
142
|
-
"data-test": "typography",
|
|
143
|
-
$variant: variant,
|
|
144
|
-
$typographyParams: typographyParams
|
|
145
|
-
}, otherProps), children);
|
|
146
|
-
}
|
|
147
|
-
Typography.propTypes = propTypes;
|
|
148
|
-
/* harmony default export */ const Typography_Typography = (Typography);
|
|
149
|
-
;// CONCATENATED MODULE: ./src/Typography/index.ts
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
module.exports = __webpack_exports__;
|
|
153
|
-
/******/ })()
|
|
154
|
-
;
|
|
151
|
+
*/ function v(e) {
|
|
152
|
+
var r = e.children, t = e.as, o = e.elementRef, a = e.variant, i = e.family, l = e.size, s = e.lineHeight, p = e.color, u = e.weight, c = e.withReset, v = f(e, [ "children", "as", "elementRef", "variant", "family", "size", "lineHeight", "color", "weight", "withReset" ]);
|
|
153
|
+
// @docs-props-type TypographyPropsBase
|
|
154
|
+
// TODO: Remove in next major version (SUI-5350)
|
|
155
|
+
if (false) {}
|
|
156
|
+
var g = {
|
|
157
|
+
family: i,
|
|
158
|
+
size: l,
|
|
159
|
+
lineHeight: s,
|
|
160
|
+
color: p,
|
|
161
|
+
withReset: c,
|
|
162
|
+
weight: typeof u === "number" ? h[u] : u
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
return n().createElement(d, y({
|
|
166
|
+
as: t,
|
|
167
|
+
ref: o,
|
|
168
|
+
"data-test": "typography",
|
|
169
|
+
$variant: a,
|
|
170
|
+
$typographyParams: g
|
|
171
|
+
}, v), r);
|
|
172
|
+
}
|
|
173
|
+
v.propTypes = c;
|
|
174
|
+
/* harmony default export */ const g = v;
|
|
175
|
+
// CONCATENATED MODULE: ./src/Typography/index.ts
|
|
176
|
+
module.exports = r;
|
|
177
|
+
/******/})();
|