@splunk/react-ui 4.19.0 → 4.21.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.
Files changed (114) hide show
  1. package/Accordion.js +114 -230
  2. package/Anchor.js +74 -150
  3. package/Animation.js +52 -124
  4. package/AnimationToggle.js +86 -146
  5. package/Box.js +77 -153
  6. package/Breadcrumbs.d.ts +2 -0
  7. package/Breadcrumbs.js +207 -0
  8. package/Button.js +168 -316
  9. package/ButtonGroup.js +84 -168
  10. package/ButtonSimple.js +224 -324
  11. package/CHANGELOG.md +35 -0
  12. package/Calendar.js +264 -462
  13. package/Card.js +223 -371
  14. package/CardLayout.js +87 -163
  15. package/Chip.js +199 -323
  16. package/Clickable.js +132 -248
  17. package/CloseButton.js +92 -200
  18. package/Code.js +188 -251
  19. package/CollapsiblePanel.js +214 -370
  20. package/Color.js +267 -495
  21. package/ColumnLayout.js +152 -254
  22. package/ComboBox.js +197 -371
  23. package/Concertina.js +214 -374
  24. package/ControlGroup.js +164 -288
  25. package/Date.js +154 -304
  26. package/DefinitionList.js +104 -180
  27. package/Divider.js +80 -156
  28. package/Dropdown.js +121 -263
  29. package/DualListbox.js +408 -601
  30. package/EventListener.js +70 -138
  31. package/File.js +343 -547
  32. package/FormRows.js +232 -414
  33. package/Heading.js +94 -164
  34. package/Image.js +167 -323
  35. package/JSONTree.js +166 -314
  36. package/Layer.js +221 -388
  37. package/Link.js +133 -239
  38. package/List.js +85 -161
  39. package/Markdown.js +230 -355
  40. package/Menu.js +396 -647
  41. package/Message.js +248 -437
  42. package/MessageBar.js +220 -408
  43. package/Modal.js +201 -365
  44. package/ModalLayer.js +96 -196
  45. package/Monogram.js +112 -204
  46. package/Multiselect.js +2675 -2807
  47. package/Number.js +178 -334
  48. package/Paginator.js +170 -336
  49. package/Paragraph.js +77 -153
  50. package/Popover.js +436 -623
  51. package/Progress.js +139 -255
  52. package/RadioBar.js +156 -280
  53. package/RadioList.js +182 -282
  54. package/Resize.js +173 -307
  55. package/ResultsMenu.js +183 -304
  56. package/ScreenReaderContent.js +75 -151
  57. package/Scroll.js +125 -267
  58. package/ScrollContainerContext.js +129 -201
  59. package/Search.js +188 -354
  60. package/Select.js +1243 -1248
  61. package/SidePanel.js +106 -214
  62. package/Slider.js +198 -348
  63. package/SlidingPanels.js +138 -280
  64. package/SplitButton.js +141 -273
  65. package/StaticContent.js +84 -168
  66. package/StepBar.js +138 -246
  67. package/Switch.js +261 -385
  68. package/TabBar.js +261 -398
  69. package/TabLayout.js +122 -238
  70. package/Table.js +975 -1447
  71. package/Text.js +335 -549
  72. package/TextArea.js +315 -537
  73. package/Tooltip.js +152 -292
  74. package/TransitionOpen.js +118 -242
  75. package/Typography.js +81 -157
  76. package/WaitSpinner.js +117 -209
  77. package/package.json +20 -21
  78. package/stubs-splunkui.d.ts +4 -1
  79. package/types/src/Breadcrumbs/Breadcrumbs.d.ts +25 -0
  80. package/types/src/Breadcrumbs/Item.d.ts +42 -0
  81. package/types/src/Breadcrumbs/docs/examples/Adornments.d.ts +2 -0
  82. package/types/src/Breadcrumbs/docs/examples/Basic.d.ts +2 -0
  83. package/types/src/Breadcrumbs/index.d.ts +2 -0
  84. package/types/src/Code/Code.d.ts +1 -1
  85. package/types/src/ComboBox/Option.d.ts +1 -1
  86. package/types/src/Concertina/Concertina.d.ts +4 -0
  87. package/types/src/Link/Link.d.ts +12 -3
  88. package/types/src/Link/docs/examples/NewWindow.d.ts +2 -0
  89. package/types/src/Markdown/Markdown.d.ts +1 -1
  90. package/types/src/Markdown/renderers/MarkdownHeading.d.ts +1 -1
  91. package/types/src/Menu/Item.d.ts +1 -1
  92. package/types/src/Menu/Menu.d.ts +1 -0
  93. package/types/src/MessageBar/docs/examples/WithActions.d.ts +2 -0
  94. package/types/src/Multiselect/Compact.d.ts +4 -0
  95. package/types/src/Multiselect/Multiselect.d.ts +5 -0
  96. package/types/src/Multiselect/Option.d.ts +1 -1
  97. package/types/src/Multiselect/docs/examples/CompactSelectAll.d.ts +2 -0
  98. package/types/src/Search/Option.d.ts +1 -1
  99. package/types/src/Select/Option.d.ts +1 -1
  100. package/types/src/Select/OptionBase.d.ts +1 -1
  101. package/types/src/Select/SelectAllOption.d.ts +14 -0
  102. package/types/src/Select/SelectBase.d.ts +11 -3
  103. package/types/src/Table/Table.d.ts +4 -0
  104. package/types/src/Text/Text.d.ts +3 -3
  105. package/types/src/TextArea/TextArea.d.ts +3 -3
  106. package/types/src/fixtures/FetchOptions.d.ts +2 -8
  107. package/useForceUpdate.js +46 -110
  108. package/useKeyPress.js +50 -107
  109. package/usePrevious.js +47 -111
  110. package/useRovingFocus.js +53 -133
  111. package/types/src/Link/docs/examples/NewTab.d.ts +0 -2
  112. package/types/src/Typography/docs/examples/Variants.d.ts +0 -2
  113. /package/types/src/Table/docs/examples/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
  114. /package/types/src/Table/docs/examples/prisma/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
package/WaitSpinner.js CHANGED
@@ -1,211 +1,141 @@
1
- module.exports =
2
- /******/ (function(modules) { // webpackBootstrap
3
- /******/ // The module cache
4
- /******/ var installedModules = {};
5
- /******/
6
- /******/ // The require function
7
- /******/ function __webpack_require__(moduleId) {
8
- /******/
9
- /******/ // Check if module is in cache
10
- /******/ if(installedModules[moduleId]) {
11
- /******/ return installedModules[moduleId].exports;
12
- /******/ }
13
- /******/ // Create a new module (and put it into the cache)
14
- /******/ var module = installedModules[moduleId] = {
15
- /******/ i: moduleId,
16
- /******/ l: false,
17
- /******/ exports: {}
1
+ /******/ (() => { // webpackBootstrap
2
+ /******/ "use strict";
3
+ /******/ // The require scope
4
+ /******/ var __webpack_require__ = {};
5
+ /******/
6
+ /************************************************************************/
7
+ /******/ /* webpack/runtime/compat get default export */
8
+ /******/ (() => {
9
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
10
+ /******/ __webpack_require__.n = (module) => {
11
+ /******/ var getter = module && module.__esModule ?
12
+ /******/ () => (module['default']) :
13
+ /******/ () => (module);
14
+ /******/ __webpack_require__.d(getter, { a: getter });
15
+ /******/ return getter;
16
+ /******/ };
17
+ /******/ })();
18
+ /******/
19
+ /******/ /* webpack/runtime/define property getters */
20
+ /******/ (() => {
21
+ /******/ // define getter functions for harmony exports
22
+ /******/ __webpack_require__.d = (exports, definition) => {
23
+ /******/ for(var key in definition) {
24
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
25
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
26
+ /******/ }
27
+ /******/ }
28
+ /******/ };
29
+ /******/ })();
30
+ /******/
31
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
32
+ /******/ (() => {
33
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
34
+ /******/ })();
35
+ /******/
36
+ /******/ /* webpack/runtime/make namespace object */
37
+ /******/ (() => {
38
+ /******/ // define __esModule on exports
39
+ /******/ __webpack_require__.r = (exports) => {
40
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
41
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
42
+ /******/ }
43
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
18
44
  /******/ };
19
- /******/
20
- /******/ // Execute the module function
21
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
- /******/
23
- /******/ // Flag the module as loaded
24
- /******/ module.l = true;
25
- /******/
26
- /******/ // Return the exports of the module
27
- /******/ return module.exports;
28
- /******/ }
29
- /******/
30
- /******/
31
- /******/ // expose the modules object (__webpack_modules__)
32
- /******/ __webpack_require__.m = modules;
33
- /******/
34
- /******/ // expose the module cache
35
- /******/ __webpack_require__.c = installedModules;
36
- /******/
37
- /******/ // define getter function for harmony exports
38
- /******/ __webpack_require__.d = function(exports, name, getter) {
39
- /******/ if(!__webpack_require__.o(exports, name)) {
40
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
- /******/ }
42
- /******/ };
43
- /******/
44
- /******/ // define __esModule on exports
45
- /******/ __webpack_require__.r = function(exports) {
46
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
- /******/ }
49
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
- /******/ };
51
- /******/
52
- /******/ // create a fake namespace object
53
- /******/ // mode & 1: value is a module id, require it
54
- /******/ // mode & 2: merge all properties of value into the ns
55
- /******/ // mode & 4: return value when already ns object
56
- /******/ // mode & 8|1: behave like require
57
- /******/ __webpack_require__.t = function(value, mode) {
58
- /******/ if(mode & 1) value = __webpack_require__(value);
59
- /******/ if(mode & 8) return value;
60
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
- /******/ var ns = Object.create(null);
62
- /******/ __webpack_require__.r(ns);
63
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
- /******/ return ns;
66
- /******/ };
67
- /******/
68
- /******/ // getDefaultExport function for compatibility with non-harmony modules
69
- /******/ __webpack_require__.n = function(module) {
70
- /******/ var getter = module && module.__esModule ?
71
- /******/ function getDefault() { return module['default']; } :
72
- /******/ function getModuleExports() { return module; };
73
- /******/ __webpack_require__.d(getter, 'a', getter);
74
- /******/ return getter;
75
- /******/ };
76
- /******/
77
- /******/ // Object.prototype.hasOwnProperty.call
78
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
- /******/
80
- /******/ // __webpack_public_path__
81
- /******/ __webpack_require__.p = "";
82
- /******/
83
- /******/
84
- /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 236);
86
- /******/ })
45
+ /******/ })();
46
+ /******/
87
47
  /************************************************************************/
88
- /******/ ({
89
-
90
- /***/ 0:
91
- /***/ (function(module, exports) {
92
-
93
- module.exports = require("@splunk/themes");
94
-
95
- /***/ }),
96
-
97
- /***/ 1:
98
- /***/ (function(module, exports) {
99
-
100
- module.exports = require("prop-types");
101
-
102
- /***/ }),
103
-
104
- /***/ 2:
105
- /***/ (function(module, exports) {
106
-
107
- module.exports = require("react");
108
-
109
- /***/ }),
110
-
111
- /***/ 236:
112
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
-
114
- "use strict";
48
+ var __webpack_exports__ = {};
115
49
  // ESM COMPAT FLAG
116
50
  __webpack_require__.r(__webpack_exports__);
117
51
 
118
52
  // EXPORTS
119
- __webpack_require__.d(__webpack_exports__, "default", function() { return /* reexport */ WaitSpinner_WaitSpinner; });
120
-
121
- // EXTERNAL MODULE: external "react"
122
- var external_react_ = __webpack_require__(2);
123
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
124
-
125
- // EXTERNAL MODULE: external "prop-types"
126
- var external_prop_types_ = __webpack_require__(1);
127
- var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
128
-
129
- // EXTERNAL MODULE: external "@splunk/react-ui/AnimationToggle"
130
- var AnimationToggle_ = __webpack_require__(48);
131
-
132
- // EXTERNAL MODULE: external "@splunk/themes"
133
- var themes_ = __webpack_require__(0);
134
-
135
- // EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
136
- var i18n_ = __webpack_require__(4);
137
-
138
- // EXTERNAL MODULE: external "styled-components"
139
- var external_styled_components_ = __webpack_require__(3);
140
- var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
141
-
142
- // CONCATENATED MODULE: ./src/WaitSpinner/WaitSpinnerStyles.ts
143
-
53
+ __webpack_require__.d(__webpack_exports__, {
54
+ "default": () => (/* reexport */ WaitSpinner_WaitSpinner)
55
+ });
144
56
 
145
- var Styled = external_styled_components_default.a.div.withConfig({
57
+ ;// CONCATENATED MODULE: external "react"
58
+ const external_react_namespaceObject = require("react");
59
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
60
+ ;// CONCATENATED MODULE: external "prop-types"
61
+ const external_prop_types_namespaceObject = require("prop-types");
62
+ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_namespaceObject);
63
+ ;// CONCATENATED MODULE: external "@splunk/react-ui/AnimationToggle"
64
+ const AnimationToggle_namespaceObject = require("@splunk/react-ui/AnimationToggle");
65
+ ;// CONCATENATED MODULE: external "@splunk/themes"
66
+ const themes_namespaceObject = require("@splunk/themes");
67
+ ;// CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
68
+ const i18n_namespaceObject = require("@splunk/ui-utils/i18n");
69
+ ;// CONCATENATED MODULE: external "styled-components"
70
+ const external_styled_components_namespaceObject = require("styled-components");
71
+ var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_namespaceObject);
72
+ ;// CONCATENATED MODULE: ./src/WaitSpinner/WaitSpinnerStyles.ts
73
+
74
+
75
+ var Styled = external_styled_components_default().div.withConfig({
146
76
  displayName: "WaitSpinnerStyles__Styled",
147
77
  componentId: "sc-1nu971z-0"
148
- })(["", ";"], themes_["mixins"].reset('inline'));
149
- var spin = Object(external_styled_components_["keyframes"])(["100%{transform:rotate(360deg);}"]);
150
- var appearAnimation = Object(external_styled_components_["keyframes"])(["0%{transform:scale(0);opacity:0;}100%{transform:scale(1);opacity:1;}"]);
78
+ })(["", ";align-items:center;"], themes_namespaceObject.mixins.reset('inline-flex'));
79
+ var spin = (0,external_styled_components_namespaceObject.keyframes)(["100%{transform:rotate(360deg);}"]);
80
+ var appearAnimation = (0,external_styled_components_namespaceObject.keyframes)(["0%{transform:scale(0);opacity:0;}100%{transform:scale(1);opacity:1;}"]);
151
81
  var prismaAnimationDuration = '2.07s';
152
- var StyledSvg = external_styled_components_default.a.svg.withConfig({
82
+ var StyledSvg = external_styled_components_default().svg.withConfig({
153
83
  displayName: "WaitSpinnerStyles__StyledSvg",
154
84
  componentId: "sc-1nu971z-1"
155
- })(["", " ", ""], Object(themes_["pickVariant"])('$size', {
85
+ })(["", " ", ""], (0,themes_namespaceObject.pickVariant)('$size', {
156
86
  small: {
157
- enterprise: Object(external_styled_components_["css"])(["width:14px;height:14px;"]),
158
- prisma: Object(external_styled_components_["css"])(["width:16px;height:16px;"])
87
+ enterprise: (0,external_styled_components_namespaceObject.css)(["width:14px;height:14px;"]),
88
+ prisma: (0,external_styled_components_namespaceObject.css)(["width:16px;height:16px;"])
159
89
  },
160
90
  medium: {
161
- enterprise: Object(external_styled_components_["css"])(["width:19px;height:19px;"]),
162
- prisma: Object(external_styled_components_["css"])(["width:24px;height:24px;"])
91
+ enterprise: (0,external_styled_components_namespaceObject.css)(["width:19px;height:19px;"]),
92
+ prisma: (0,external_styled_components_namespaceObject.css)(["width:24px;height:24px;"])
163
93
  },
164
94
  large: {
165
- enterprise: Object(external_styled_components_["css"])(["width:19px;height:19px;"]),
166
- prisma: Object(external_styled_components_["css"])(["width:40px;height:40px;"])
95
+ enterprise: (0,external_styled_components_namespaceObject.css)(["width:19px;height:19px;"]),
96
+ prisma: (0,external_styled_components_namespaceObject.css)(["width:40px;height:40px;"])
167
97
  }
168
98
  }), function (_ref) {
169
99
  var $animated = _ref.$animated;
170
- return $animated && Object(themes_["pick"])({
171
- enterprise: Object(external_styled_components_["css"])(["transform-origin:center;animation:", " 1.2s steps(64) infinite;"], spin),
172
- prisma: Object(external_styled_components_["css"])(["animation:", " ", " infinite linear,", " 500ms cubic-bezier(0.01,0,0,1);"], spin, prismaAnimationDuration, appearAnimation)
100
+ return $animated && (0,themes_namespaceObject.pick)({
101
+ enterprise: (0,external_styled_components_namespaceObject.css)(["transform-origin:center;animation:", " 1.2s steps(64) infinite;"], spin),
102
+ prisma: (0,external_styled_components_namespaceObject.css)(["animation:", " ", " infinite linear,", " 500ms cubic-bezier(0.01,0,0,1);"], spin, prismaAnimationDuration, appearAnimation)
173
103
  });
174
104
  });
175
- var prismaBaseAnimation = Object(external_styled_components_["keyframes"])(["0%{stroke-dasharray:110 10;stroke-dashoffset:-5.5;animation-timing-function:cubic-bezier(0.8,0,0.83,1);}50%{stroke-dasharray:26 94;stroke-dashoffset:-152;}100%{stroke-dasharray:110 10;stroke-dashoffset:-246.5;animation-timing-function:cubic-bezier(0.33,0,0.67,1);}"]);
176
- var prismaFillAnimation = Object(external_styled_components_["keyframes"])(["0%{stroke-dasharray:7 113;stroke-dashoffset:3;animation-timing-function:cubic-bezier(0.8,0,0.83,1);}50%{stroke-dasharray:90 30;stroke-dashoffset:-60;}100%{stroke-dasharray:7 113;stroke-dashoffset:-238;animation-timing-function:cubic-bezier(0.33,0,0.67,1);}"]);
177
- var StyledPrismaBasePath = external_styled_components_default.a.circle.withConfig({
105
+ var prismaBaseAnimation = (0,external_styled_components_namespaceObject.keyframes)(["0%{stroke-dasharray:110 10;stroke-dashoffset:-5.5;animation-timing-function:cubic-bezier(0.8,0,0.83,1);}50%{stroke-dasharray:26 94;stroke-dashoffset:-152;}100%{stroke-dasharray:110 10;stroke-dashoffset:-246.5;animation-timing-function:cubic-bezier(0.33,0,0.67,1);}"]);
106
+ var prismaFillAnimation = (0,external_styled_components_namespaceObject.keyframes)(["0%{stroke-dasharray:7 113;stroke-dashoffset:3;animation-timing-function:cubic-bezier(0.8,0,0.83,1);}50%{stroke-dasharray:90 30;stroke-dashoffset:-60;}100%{stroke-dasharray:7 113;stroke-dashoffset:-238;animation-timing-function:cubic-bezier(0.33,0,0.67,1);}"]);
107
+ var StyledPrismaBasePath = external_styled_components_default().circle.withConfig({
178
108
  displayName: "WaitSpinnerStyles__StyledPrismaBasePath",
179
109
  componentId: "sc-1nu971z-2"
180
- })(["stroke:", ";stroke-width:2;fill:transparent;", " stroke-dasharray:110 10;stroke-dashoffset:-5.5;"], themes_["variables"].contentColorDisabled, function (_ref2) {
110
+ })(["stroke:", ";stroke-width:2;fill:transparent;", " stroke-dasharray:110 10;stroke-dashoffset:-5.5;"], themes_namespaceObject.variables.contentColorDisabled, function (_ref2) {
181
111
  var $animated = _ref2.$animated;
182
- return $animated && Object(external_styled_components_["css"])(["animation:", " ", " infinite;animation-fill-mode:backwards;"], prismaBaseAnimation, prismaAnimationDuration);
112
+ return $animated && (0,external_styled_components_namespaceObject.css)(["animation:", " ", " infinite;animation-fill-mode:backwards;"], prismaBaseAnimation, prismaAnimationDuration);
183
113
  });
184
- var StyledPrismaFillPath = external_styled_components_default.a.circle.withConfig({
114
+ var StyledPrismaFillPath = external_styled_components_default().circle.withConfig({
185
115
  displayName: "WaitSpinnerStyles__StyledPrismaFillPath",
186
116
  componentId: "sc-1nu971z-3"
187
- })(["fill:transparent;stroke-width:2;stroke:", ";stroke-dasharray:7 113;stroke-dashoffset:3;", ""], Object(themes_["pickVariant"])('$size', {
188
- small: themes_["variables"].contentColorDefault,
189
- medium: themes_["variables"].contentColorDefault,
190
- large: themes_["variables"].interactiveColorPrimary
117
+ })(["fill:transparent;stroke-width:2;stroke:", ";stroke-dasharray:7 113;stroke-dashoffset:3;", ""], (0,themes_namespaceObject.pickVariant)('$size', {
118
+ small: themes_namespaceObject.variables.contentColorDefault,
119
+ medium: themes_namespaceObject.variables.contentColorDefault,
120
+ large: themes_namespaceObject.variables.interactiveColorPrimary
191
121
  }), function (_ref3) {
192
122
  var $animated = _ref3.$animated;
193
- return $animated && Object(external_styled_components_["css"])(["animation:", " ", " infinite;"], prismaFillAnimation, prismaAnimationDuration);
123
+ return $animated && (0,external_styled_components_namespaceObject.css)(["animation:", " ", " infinite;"], prismaFillAnimation, prismaAnimationDuration);
194
124
  });
195
- var StyledEnterpriseCircle = external_styled_components_default.a.circle.withConfig({
125
+ var StyledEnterpriseCircle = external_styled_components_default().circle.withConfig({
196
126
  displayName: "WaitSpinnerStyles__StyledEnterpriseCircle",
197
127
  componentId: "sc-1nu971z-4"
198
- })(["fill:transparent;stroke:", ";stroke-width:2px;", ""], Object(themes_["pick"])({
128
+ })(["fill:transparent;stroke:", ";stroke-width:2px;", ""], (0,themes_namespaceObject.pick)({
199
129
  enterprise: {
200
- dark: themes_["variables"].white,
201
- light: themes_["variables"].gray60
130
+ dark: themes_namespaceObject.variables.white,
131
+ light: themes_namespaceObject.variables.gray60
202
132
  },
203
- prisma: themes_["variables"].contentColorMuted
204
- }), Object(themes_["pick"])({
205
- enterprise: Object(external_styled_components_["css"])(["stroke-dasharray:34 19;"])
133
+ prisma: themes_namespaceObject.variables.contentColorMuted
134
+ }), (0,themes_namespaceObject.pick)({
135
+ enterprise: (0,external_styled_components_namespaceObject.css)(["stroke-dasharray:34 19;"])
206
136
  }));
207
137
 
208
- // CONCATENATED MODULE: ./src/WaitSpinner/WaitSpinner.tsx
138
+ ;// CONCATENATED MODULE: ./src/WaitSpinner/WaitSpinner.tsx
209
139
  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); }
210
140
 
211
141
  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; }
@@ -219,48 +149,48 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
219
149
 
220
150
 
221
151
  var propTypes = {
222
- elementRef: external_prop_types_default.a.oneOfType([external_prop_types_default.a.func, external_prop_types_default.a.object]),
223
- screenReaderText: external_prop_types_default.a.string,
224
- size: external_prop_types_default.a.oneOf(['small', 'medium', 'large'])
152
+ elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
153
+ screenReaderText: (external_prop_types_default()).string,
154
+ size: external_prop_types_default().oneOf(['small', 'medium', 'large'])
225
155
  };
226
156
 
227
157
  function WaitSpinner(_ref) {
228
158
  var elementRef = _ref.elementRef,
229
159
  _ref$screenReaderText = _ref.screenReaderText,
230
- screenReaderText = _ref$screenReaderText === void 0 ? Object(i18n_["_"])('Waiting') : _ref$screenReaderText,
160
+ screenReaderText = _ref$screenReaderText === void 0 ? (0,i18n_namespaceObject._)('Waiting') : _ref$screenReaderText,
231
161
  _ref$size = _ref.size,
232
162
  size = _ref$size === void 0 ? 'small' : _ref$size,
233
163
  otherProps = _objectWithoutProperties(_ref, ["elementRef", "screenReaderText", "size"]);
234
164
 
235
165
  // @docs-props-type WaitSpinnerPropsBase
236
- var animated = Object(AnimationToggle_["useAnimationToggle"])() === 'on';
166
+ var animated = (0,AnimationToggle_namespaceObject.useAnimationToggle)() === 'on';
237
167
 
238
- var _useSplunkTheme = Object(themes_["useSplunkTheme"])(),
168
+ var _useSplunkTheme = (0,themes_namespaceObject.useSplunkTheme)(),
239
169
  isPrisma = _useSplunkTheme.isPrisma;
240
170
 
241
171
  var viewBox = isPrisma ? '0 0 40 40' : '0 0 19 19';
242
- return /*#__PURE__*/external_react_default.a.createElement(Styled, _extends({
172
+ return /*#__PURE__*/external_react_default().createElement(Styled, _extends({
243
173
  "data-test": "wait-spinner"
244
- }, otherProps), /*#__PURE__*/external_react_default.a.createElement(StyledSvg, {
174
+ }, otherProps), /*#__PURE__*/external_react_default().createElement(StyledSvg, {
245
175
  viewBox: viewBox,
246
176
  version: "1.1",
247
177
  xmlns: "http://www.w3.org/2000/svg",
248
178
  ref: elementRef,
249
179
  $animated: animated,
250
180
  $size: size
251
- }, screenReaderText && /*#__PURE__*/external_react_default.a.createElement("title", null, screenReaderText), /*#__PURE__*/external_react_default.a.createElement("g", null, isPrisma ? /*#__PURE__*/external_react_default.a.createElement(external_react_default.a.Fragment, null, /*#__PURE__*/external_react_default.a.createElement(StyledPrismaBasePath, {
181
+ }, screenReaderText && /*#__PURE__*/external_react_default().createElement("title", null, screenReaderText), /*#__PURE__*/external_react_default().createElement("g", null, isPrisma ? /*#__PURE__*/external_react_default().createElement((external_react_default()).Fragment, null, /*#__PURE__*/external_react_default().createElement(StyledPrismaBasePath, {
252
182
  r: "19",
253
183
  cx: "20",
254
184
  cy: "20",
255
185
  $animated: animated,
256
186
  $size: size
257
- }), /*#__PURE__*/external_react_default.a.createElement(StyledPrismaFillPath, {
187
+ }), /*#__PURE__*/external_react_default().createElement(StyledPrismaFillPath, {
258
188
  r: "19",
259
189
  cx: "20",
260
190
  cy: "20",
261
191
  $animated: animated,
262
192
  $size: size
263
- })) : /*#__PURE__*/external_react_default.a.createElement(StyledEnterpriseCircle, {
193
+ })) : /*#__PURE__*/external_react_default().createElement(StyledEnterpriseCircle, {
264
194
  cx: "9.5",
265
195
  cy: "9.5",
266
196
  r: "8.5"
@@ -268,31 +198,9 @@ function WaitSpinner(_ref) {
268
198
  }
269
199
 
270
200
  WaitSpinner.propTypes = propTypes;
271
- /* harmony default export */ var WaitSpinner_WaitSpinner = (WaitSpinner);
272
- // CONCATENATED MODULE: ./src/WaitSpinner/index.ts
273
-
274
-
275
- /***/ }),
276
-
277
- /***/ 3:
278
- /***/ (function(module, exports) {
279
-
280
- module.exports = require("styled-components");
281
-
282
- /***/ }),
283
-
284
- /***/ 4:
285
- /***/ (function(module, exports) {
286
-
287
- module.exports = require("@splunk/ui-utils/i18n");
288
-
289
- /***/ }),
290
-
291
- /***/ 48:
292
- /***/ (function(module, exports) {
293
-
294
- module.exports = require("@splunk/react-ui/AnimationToggle");
295
-
296
- /***/ })
201
+ /* harmony default export */ const WaitSpinner_WaitSpinner = (WaitSpinner);
202
+ ;// CONCATENATED MODULE: ./src/WaitSpinner/index.ts
297
203
 
298
- /******/ });
204
+ module.exports = __webpack_exports__;
205
+ /******/ })()
206
+ ;
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@splunk/react-ui",
3
- "version": "4.19.0",
3
+ "version": "4.21.0",
4
4
  "description": "Library of React components that implement the Splunk design language",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Splunk Inc.",
7
7
  "scripts": {
8
8
  "build": "cross-env NODE_ENV=production webpack && yarn types:build",
9
9
  "docs": "NODE_ENV=production webpack --config docs.gen.webpack.config.js",
10
- "docs:publish": "cicd-publish-docs docs --force",
11
- "docs:publish:external": "cicd-publish-docs docs-external --force --suffix=public",
10
+ "docs:publish": "eval $(splunk-docs-package docs) && artifact-ci publish generic $DOCS_GEN_OUTPUT_NAME $DOCS_GEN_REMOTE_PATH",
11
+ "docs:publish:external": "eval $(splunk-docs-package docs-external --suffix=public) && artifact-ci publish generic $DOCS_GEN_OUTPUT_NAME $DOCS_GEN_REMOTE_PATH",
12
12
  "docs:start": "INTERNAL=true webpack serve --config docs.gen.webpack.config.js",
13
13
  "docs:start:external": "webpack serve --config docs.gen.webpack.config.js",
14
14
  "eslint": "eslint src .storybook --ext \".ts,.tsx,.js,.jsx\"",
@@ -41,17 +41,17 @@
41
41
  "@dnd-kit/core": "6.0.8",
42
42
  "@dnd-kit/sortable": "7.0.2",
43
43
  "@dnd-kit/utilities": "3.2.1",
44
- "@splunk/react-icons": "^4.0.1",
45
- "@splunk/themes": "^0.16.1",
44
+ "@splunk/react-icons": "^4.0.2",
45
+ "@splunk/themes": "^0.16.2",
46
46
  "@splunk/ui-utils": "^1.6.0",
47
- "@types/commonmark": "^0.27.0",
47
+ "@types/commonmark": "^0.27.6",
48
48
  "@types/lodash": "^4.14.156",
49
49
  "@types/react": "^16.9.38",
50
50
  "@types/react-dom": "^16.9.8",
51
51
  "@types/react-resize-detector": "^3.1.1",
52
52
  "@types/styled-components": "^5.1.0",
53
53
  "@types/tinycolor2": "^1.4.2",
54
- "commonmark": "^0.27.0",
54
+ "commonmark": "^0.30.0",
55
55
  "commonmark-react-renderer": "^4.3.2",
56
56
  "decimal.js-light": "^2.2.3",
57
57
  "lodash": "^4.17.14",
@@ -66,17 +66,18 @@
66
66
  "@babel/core": "^7.2.0",
67
67
  "@babel/plugin-transform-runtime": "^7.18.6",
68
68
  "@splunk/babel-preset": "^4.0.0",
69
- "@splunk/cicd-tools": "^0.5.0",
70
- "@splunk/docs-gen": "1.0.0-beta.5",
69
+ "@splunk/docs-gen": "1.0.0-beta.7",
71
70
  "@splunk/eslint-config": "^4.0.0",
72
- "@splunk/react-docs": "1.0.0-beta.5",
71
+ "@splunk/react-docs": "1.0.0-beta.7",
73
72
  "@splunk/stylelint-config": "^4.0.0",
74
73
  "@splunk/test-runner-utils": "^0.4.1",
75
- "@splunk/webpack-configs": "^6.0.0",
74
+ "@splunk/webpack-configs": "^7.0.0",
76
75
  "@storybook/addon-a11y": "^6.5.9",
77
76
  "@storybook/addon-essentials": "^6.5.9",
78
77
  "@storybook/addon-interactions": "^6.5.9",
78
+ "@storybook/builder-webpack5": "^6.5.9",
79
79
  "@storybook/csf": "^0.0.1",
80
+ "@storybook/manager-webpack5": "^6.5.9",
80
81
  "@storybook/react": "^6.5.9",
81
82
  "@storybook/test-runner": "^0.9.0",
82
83
  "@storybook/testing-react": "^1.3.0",
@@ -95,7 +96,7 @@
95
96
  "@typescript-eslint/parser": "^4.8.2",
96
97
  "axe-html-reporter": "^2.2.3",
97
98
  "axe-playwright": "^1.1.11",
98
- "babel-loader": "^8.0.4",
99
+ "babel-loader": "^8.3.0",
99
100
  "babel-plugin-istanbul": "^5.1.0",
100
101
  "babel-plugin-styled-components": "^1.10.7",
101
102
  "babel-plugin-transform-imports": "^2.0.0",
@@ -104,20 +105,19 @@
104
105
  "cross-env": "^6.0.3",
105
106
  "cypress": "^12.17.1",
106
107
  "cypress-real-events": "^1.9.1",
107
- "docgen-loader": "^1.3.4",
108
108
  "eslint": "^7.14.0",
109
109
  "eslint-config-airbnb": "^18.2.1",
110
110
  "eslint-config-prettier": "^6.15.0",
111
- "eslint-import-resolver-webpack": "^0.13.0",
111
+ "eslint-import-resolver-webpack": "^0.13.4",
112
112
  "eslint-plugin-cypress": "^2.12.1",
113
113
  "eslint-plugin-import": "^2.22.1",
114
114
  "eslint-plugin-jsx-a11y": "^6.4.1",
115
115
  "eslint-plugin-react": "^7.21.5",
116
116
  "eslint-plugin-react-hooks": "^4.2.0",
117
+ "eslint-plugin-react-perf": "^3.3.1",
117
118
  "fs-extra": "^9.0.1",
118
119
  "fs-readdir-recursive": "^1.0.0",
119
120
  "glob": "^7.1.6",
120
- "html-webpack-plugin": "^3.2.0",
121
121
  "http-server": "^14.1.1",
122
122
  "jest": "^26.6.3",
123
123
  "jest-image-snapshot": "^5.1.0",
@@ -127,7 +127,7 @@
127
127
  "playwright": "^1.23.3",
128
128
  "prismjs": "^1.25.0",
129
129
  "prompt": "^1.0.0",
130
- "raw-loader": "^0.5.1",
130
+ "raw-loader": "^4.0.2",
131
131
  "react": "^16.12.0",
132
132
  "react-docgen": "^5.4.0",
133
133
  "react-dom": "^16.12.0",
@@ -135,12 +135,11 @@
135
135
  "sinon": "^2.1.0",
136
136
  "styled-components": "^5.3.10",
137
137
  "stylelint": "^13.0.0",
138
- "ts-loader": "^6.2.1",
139
138
  "typescript": "^4.0.5",
140
- "webpack": "^4.16.2",
141
- "webpack-cli": "^4.9.2",
142
- "webpack-dev-server": "^4.7.4",
143
- "webpack-merge": "^4.1.3"
139
+ "webpack": "^5.88.2",
140
+ "webpack-cli": "^5.1.4",
141
+ "webpack-dev-server": "^4.15.1",
142
+ "webpack-merge": "^5.9.0"
144
143
  },
145
144
  "engines": {
146
145
  "node": ">=6"
@@ -87,6 +87,9 @@ declare module '@splunk/react-docs/DocExample' {
87
87
  }
88
88
 
89
89
  declare module '!!raw-loader!*' {
90
- const contents: string;
90
+ const contents: {
91
+ default: string;
92
+ };
93
+
91
94
  export = contents;
92
95
  }
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import Item from './Item';
4
+ import { ComponentProps } from '../utils/types';
5
+ interface BreadcrumbsPropsBase {
6
+ /**
7
+ * `children` must be of type `Breadcrumbs.Item`. The last child will be marked as the current page.
8
+ */
9
+ children: React.ReactElement<typeof Item>[] | React.ReactElement<typeof Item>;
10
+ /**
11
+ * A React ref which is set to the DOM element when the component mounts and null when it unmounts.
12
+ */
13
+ elementRef?: React.Ref<HTMLElement>;
14
+ }
15
+ declare type BreadcrumbsProps = ComponentProps<BreadcrumbsPropsBase, 'nav'>;
16
+ declare function Breadcrumbs({ children, elementRef, ...otherProps }: BreadcrumbsProps): JSX.Element;
17
+ declare namespace Breadcrumbs {
18
+ var propTypes: {
19
+ children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
20
+ elementRef: PropTypes.Requireable<object>;
21
+ };
22
+ var Item: typeof import("./Item").default;
23
+ }
24
+ export default Breadcrumbs;
25
+ export { Item };
@@ -0,0 +1,42 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import { ComponentProps } from '../utils/types';
4
+ interface ItemPropsBase {
5
+ /**
6
+ * A React ref which is set to the DOM element when the component mounts and null when it unmounts.
7
+ */
8
+ elementRef?: React.Ref<HTMLAnchorElement>;
9
+ /**
10
+ * Adornment at the end of the label.
11
+ */
12
+ endAdornment?: React.ReactNode;
13
+ /**
14
+ * @private
15
+ */
16
+ isCurrent?: boolean;
17
+ /**
18
+ * The label of the `Item`.
19
+ */
20
+ label: string;
21
+ /**
22
+ * Adornment at the start of the label.
23
+ */
24
+ startAdornment?: React.ReactNode;
25
+ /**
26
+ * The URL or path to link to.
27
+ */
28
+ to: string;
29
+ }
30
+ declare type ItemProps = ComponentProps<ItemPropsBase, 'a'>;
31
+ declare function Item({ endAdornment, isCurrent, label, startAdornment, to, ...otherProps }: ItemProps): JSX.Element;
32
+ declare namespace Item {
33
+ var propTypes: {
34
+ elementRef: PropTypes.Requireable<object>;
35
+ endAdornment: PropTypes.Requireable<PropTypes.ReactNodeLike>;
36
+ isCurrent: PropTypes.Requireable<boolean>;
37
+ label: PropTypes.Validator<string>;
38
+ startAdornment: PropTypes.Requireable<PropTypes.ReactNodeLike>;
39
+ to: PropTypes.Validator<string>;
40
+ };
41
+ }
42
+ export default Item;
@@ -0,0 +1,2 @@
1
+ declare function Adornments(): JSX.Element;
2
+ export default Adornments;
@@ -0,0 +1,2 @@
1
+ declare function Basic(): JSX.Element;
2
+ export default Basic;
@@ -0,0 +1,2 @@
1
+ export { default } from './Breadcrumbs';
2
+ export * from './Breadcrumbs';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { ComponentProps } from '../utils/types';
4
- declare type CodeSupportedLanguages = 'bash' | 'clike' | 'css' | 'html' | 'json' | 'javascript' | 'js' | 'jsx' | 'typescript' | 'ts' | 'tsx' | 'markup' | 'mathml' | 'svg' | 'xml' | 'yaml' | 'yml';
4
+ declare type CodeSupportedLanguages = 'bash' | 'clike' | 'css' | 'html' | 'json' | 'javascript' | 'js' | 'jsx' | 'typescript' | 'ts' | 'tsx' | 'markup' | 'mathml' | 'splunk-spl' | 'svg' | 'xml' | 'yaml' | 'yml';
5
5
  interface CodePropsBase {
6
6
  /**
7
7
  * A React ref which is set to the DOM element when the component mounts and null when it unmounts.
@@ -16,7 +16,7 @@ interface OptionPropsBase {
16
16
  description?: string;
17
17
  /**
18
18
  * The description text may appear to the right of the label or under the label.
19
- * @themeNotes Themes that don't support 'right' fall back to 'bottom'.
19
+ * @themeNotes 'right' is only supported in enterprise themes. Unsupported values will fall back to bottom’.
20
20
  */
21
21
  descriptionPosition?: 'right' | 'bottom';
22
22
  /**