@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/Code.js CHANGED
@@ -1,108 +1,8 @@
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: {}
18
- /******/ };
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 = 217);
86
- /******/ })
87
- /************************************************************************/
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
- /***/ }),
1
+ /******/ (() => { // webpackBootstrap
2
+ /******/ var __webpack_modules__ = ({
103
3
 
104
- /***/ 115:
105
- /***/ (function(module, exports, __webpack_require__) {
4
+ /***/ 74:
5
+ /***/ ((module) => {
106
6
 
107
7
 
108
8
  (function() {
@@ -2285,129 +2185,200 @@ Prism.languages.js = Prism.languages.javascript;
2285
2185
 
2286
2186
  }(Prism));
2287
2187
 
2188
+ Prism.languages['splunk-spl'] = {
2189
+ 'comment': /`comment\("(?:\\.|[^\\"])*"\)`/,
2190
+ 'string': {
2191
+ pattern: /"(?:\\.|[^\\"])*"/,
2192
+ greedy: true
2193
+ },
2194
+ // https://docs.splunk.com/Documentation/Splunk/7.3.0/SearchReference/ListOfSearchCommands
2195
+ 'keyword': /\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,
2196
+ 'operator-word': {
2197
+ pattern: /\b(?:and|as|by|not|or|xor)\b/i,
2198
+ alias: 'operator'
2199
+ },
2200
+ 'function': /\b\w+(?=\s*\()/,
2201
+ 'property': /\b\w+(?=\s*=(?!=))/,
2202
+ 'date': {
2203
+ // MM/DD/YYYY(:HH:MM:SS)?
2204
+ pattern: /\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,
2205
+ alias: 'number'
2206
+ },
2207
+ 'number': /\b\d+(?:\.\d+)?\b/,
2208
+ 'boolean': /\b(?:f|false|t|true)\b/i,
2209
+ 'operator': /[<>=]=?|[-+*/%|]/,
2210
+ 'punctuation': /[()[\],]/
2211
+ };
2212
+
2288
2213
  })();
2289
2214
 
2290
2215
 
2291
- /***/ }),
2292
-
2293
- /***/ 125:
2294
- /***/ (function(module, exports) {
2295
-
2296
- module.exports = require("lodash/flatten");
2297
-
2298
- /***/ }),
2299
-
2300
- /***/ 2:
2301
- /***/ (function(module, exports) {
2302
-
2303
- module.exports = require("react");
2304
-
2305
- /***/ }),
2306
-
2307
- /***/ 217:
2308
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2216
+ /***/ })
2309
2217
 
2218
+ /******/ });
2219
+ /************************************************************************/
2220
+ /******/ // The module cache
2221
+ /******/ var __webpack_module_cache__ = {};
2222
+ /******/
2223
+ /******/ // The require function
2224
+ /******/ function __webpack_require__(moduleId) {
2225
+ /******/ // Check if module is in cache
2226
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
2227
+ /******/ if (cachedModule !== undefined) {
2228
+ /******/ return cachedModule.exports;
2229
+ /******/ }
2230
+ /******/ // Create a new module (and put it into the cache)
2231
+ /******/ var module = __webpack_module_cache__[moduleId] = {
2232
+ /******/ // no module.id needed
2233
+ /******/ // no module.loaded needed
2234
+ /******/ exports: {}
2235
+ /******/ };
2236
+ /******/
2237
+ /******/ // Execute the module function
2238
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
2239
+ /******/
2240
+ /******/ // Return the exports of the module
2241
+ /******/ return module.exports;
2242
+ /******/ }
2243
+ /******/
2244
+ /************************************************************************/
2245
+ /******/ /* webpack/runtime/compat get default export */
2246
+ /******/ (() => {
2247
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
2248
+ /******/ __webpack_require__.n = (module) => {
2249
+ /******/ var getter = module && module.__esModule ?
2250
+ /******/ () => (module['default']) :
2251
+ /******/ () => (module);
2252
+ /******/ __webpack_require__.d(getter, { a: getter });
2253
+ /******/ return getter;
2254
+ /******/ };
2255
+ /******/ })();
2256
+ /******/
2257
+ /******/ /* webpack/runtime/define property getters */
2258
+ /******/ (() => {
2259
+ /******/ // define getter functions for harmony exports
2260
+ /******/ __webpack_require__.d = (exports, definition) => {
2261
+ /******/ for(var key in definition) {
2262
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
2263
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
2264
+ /******/ }
2265
+ /******/ }
2266
+ /******/ };
2267
+ /******/ })();
2268
+ /******/
2269
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
2270
+ /******/ (() => {
2271
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
2272
+ /******/ })();
2273
+ /******/
2274
+ /******/ /* webpack/runtime/make namespace object */
2275
+ /******/ (() => {
2276
+ /******/ // define __esModule on exports
2277
+ /******/ __webpack_require__.r = (exports) => {
2278
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
2279
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2280
+ /******/ }
2281
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
2282
+ /******/ };
2283
+ /******/ })();
2284
+ /******/
2285
+ /************************************************************************/
2286
+ var __webpack_exports__ = {};
2287
+ // This entry need to be wrapped in an IIFE because it need to be in strict mode.
2288
+ (() => {
2310
2289
  "use strict";
2311
2290
  // ESM COMPAT FLAG
2312
2291
  __webpack_require__.r(__webpack_exports__);
2313
2292
 
2314
2293
  // EXPORTS
2315
- __webpack_require__.d(__webpack_exports__, "default", function() { return /* reexport */ Code_Code; });
2316
-
2317
- // EXTERNAL MODULE: external "react"
2318
- var external_react_ = __webpack_require__(2);
2319
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
2320
-
2321
- // EXTERNAL MODULE: external "prop-types"
2322
- var external_prop_types_ = __webpack_require__(1);
2323
- var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
2324
-
2325
- // EXTERNAL MODULE: external "lodash/castArray"
2326
- var castArray_ = __webpack_require__(65);
2327
- var castArray_default = /*#__PURE__*/__webpack_require__.n(castArray_);
2328
-
2329
- // EXTERNAL MODULE: external "lodash/flatten"
2330
- var flatten_ = __webpack_require__(125);
2331
- var flatten_default = /*#__PURE__*/__webpack_require__.n(flatten_);
2332
-
2333
- // EXTERNAL MODULE: external "lodash/indexOf"
2334
- var indexOf_ = __webpack_require__(82);
2335
- var indexOf_default = /*#__PURE__*/__webpack_require__.n(indexOf_);
2336
-
2337
- // EXTERNAL MODULE: external "lodash/repeat"
2338
- var repeat_ = __webpack_require__(80);
2339
- var repeat_default = /*#__PURE__*/__webpack_require__.n(repeat_);
2340
-
2341
- // EXTERNAL MODULE: external "lodash/times"
2342
- var times_ = __webpack_require__(79);
2343
- var times_default = /*#__PURE__*/__webpack_require__.n(times_);
2294
+ __webpack_require__.d(__webpack_exports__, {
2295
+ "default": () => (/* reexport */ Code_Code)
2296
+ });
2344
2297
 
2298
+ ;// CONCATENATED MODULE: external "react"
2299
+ const external_react_namespaceObject = require("react");
2300
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
2301
+ ;// CONCATENATED MODULE: external "prop-types"
2302
+ const external_prop_types_namespaceObject = require("prop-types");
2303
+ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_namespaceObject);
2304
+ ;// CONCATENATED MODULE: external "lodash/castArray"
2305
+ const castArray_namespaceObject = require("lodash/castArray");
2306
+ var castArray_default = /*#__PURE__*/__webpack_require__.n(castArray_namespaceObject);
2307
+ ;// CONCATENATED MODULE: external "lodash/flatten"
2308
+ const flatten_namespaceObject = require("lodash/flatten");
2309
+ var flatten_default = /*#__PURE__*/__webpack_require__.n(flatten_namespaceObject);
2310
+ ;// CONCATENATED MODULE: external "lodash/indexOf"
2311
+ const indexOf_namespaceObject = require("lodash/indexOf");
2312
+ var indexOf_default = /*#__PURE__*/__webpack_require__.n(indexOf_namespaceObject);
2313
+ ;// CONCATENATED MODULE: external "lodash/repeat"
2314
+ const repeat_namespaceObject = require("lodash/repeat");
2315
+ var repeat_default = /*#__PURE__*/__webpack_require__.n(repeat_namespaceObject);
2316
+ ;// CONCATENATED MODULE: external "lodash/times"
2317
+ const times_namespaceObject = require("lodash/times");
2318
+ var times_default = /*#__PURE__*/__webpack_require__.n(times_namespaceObject);
2345
2319
  // EXTERNAL MODULE: ./src/Code/prism/prism.empty
2346
- var prism_empty = __webpack_require__(115);
2320
+ var prism_empty = __webpack_require__(74);
2347
2321
  var prism_empty_default = /*#__PURE__*/__webpack_require__.n(prism_empty);
2322
+ ;// CONCATENATED MODULE: external "styled-components"
2323
+ const external_styled_components_namespaceObject = require("styled-components");
2324
+ var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_namespaceObject);
2325
+ ;// CONCATENATED MODULE: external "@splunk/themes"
2326
+ const themes_namespaceObject = require("@splunk/themes");
2327
+ ;// CONCATENATED MODULE: ./src/Code/CodeStyles.ts
2348
2328
 
2349
- // EXTERNAL MODULE: external "styled-components"
2350
- var external_styled_components_ = __webpack_require__(3);
2351
- var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
2352
2329
 
2353
- // EXTERNAL MODULE: external "@splunk/themes"
2354
- var themes_ = __webpack_require__(0);
2355
-
2356
- // CONCATENATED MODULE: ./src/Code/CodeStyles.ts
2357
-
2358
-
2359
- var Styled = external_styled_components_default.a.pre.withConfig({
2330
+ var Styled = external_styled_components_default().pre.withConfig({
2360
2331
  displayName: "CodeStyles__Styled",
2361
2332
  componentId: "sc-1eq4k68-0"
2362
- })(["", ";", " line-height:", ";text-align:left;tab-size:4;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;hyphens:none;overflow-x:auto;margin-bottom:1.3em;&:focus-visible{outline:solid ", ";}"], themes_["mixins"].reset('block'), Object(themes_["pick"])({
2333
+ })(["", ";", " line-height:", ";text-align:left;tab-size:4;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;hyphens:none;overflow-x:auto;margin-bottom:1.3em;&:focus-visible{outline:solid ", ";}"], themes_namespaceObject.mixins.reset('block'), (0,themes_namespaceObject.pick)({
2363
2334
  enterprise: {
2364
- dark: Object(external_styled_components_["css"])(["color:", ";"], themes_["variables"].gray92)
2335
+ dark: (0,external_styled_components_namespaceObject.css)(["color:", ";"], themes_namespaceObject.variables.gray92)
2365
2336
  }
2366
- }), Object(themes_["pick"])({
2337
+ }), (0,themes_namespaceObject.pick)({
2367
2338
  enterprise: '17px',
2368
- prisma: themes_["variables"].lineHeight
2369
- }), themes_["variables"].focusColor);
2370
- var StyledCode = external_styled_components_default.a.code.withConfig({
2339
+ prisma: themes_namespaceObject.variables.lineHeight
2340
+ }), themes_namespaceObject.variables.focusColor);
2341
+ var StyledCode = external_styled_components_default().code.withConfig({
2371
2342
  displayName: "CodeStyles__StyledCode",
2372
2343
  componentId: "sc-1eq4k68-1"
2373
- })(["font-family:", ";"], themes_["variables"].monoFontFamily);
2374
- var StyledIndent = external_styled_components_default.a.span.withConfig({
2344
+ })(["font-family:", ";"], themes_namespaceObject.variables.monoFontFamily);
2345
+ var StyledIndent = external_styled_components_default().span.withConfig({
2375
2346
  displayName: "CodeStyles__StyledIndent",
2376
2347
  componentId: "sc-1eq4k68-2"
2377
2348
  })(["&:not(:last-child){background-image:linear-gradient( to left,rgba(0,0,0,0.15) 1px,transparent 1px,transparent );}"]);
2378
- var gray = Object(themes_["pick"])({
2379
- prisma: themes_["variables"].syntaxGray,
2349
+ var gray = (0,themes_namespaceObject.pick)({
2350
+ prisma: themes_namespaceObject.variables.syntaxGray,
2380
2351
  enterprise: {
2381
- dark: themes_["variables"].gray60,
2382
- light: themes_["variables"].syntaxGray
2352
+ dark: themes_namespaceObject.variables.gray60,
2353
+ light: themes_namespaceObject.variables.syntaxGray
2383
2354
  }
2384
2355
  });
2385
- var purple = Object(themes_["pick"])({
2386
- prisma: themes_["variables"].syntaxPurple,
2356
+ var purple = (0,themes_namespaceObject.pick)({
2357
+ prisma: themes_namespaceObject.variables.syntaxPurple,
2387
2358
  enterprise: {
2388
- dark: themes_["variables"].syntaxPurpleLight,
2389
- light: themes_["variables"].syntaxPurple
2359
+ dark: themes_namespaceObject.variables.syntaxPurpleLight,
2360
+ light: themes_namespaceObject.variables.syntaxPurple
2390
2361
  }
2391
2362
  });
2392
- var green = Object(themes_["pick"])({
2393
- prisma: themes_["variables"].syntaxGreen,
2363
+ var green = (0,themes_namespaceObject.pick)({
2364
+ prisma: themes_namespaceObject.variables.syntaxGreen,
2394
2365
  enterprise: {
2395
- dark: themes_["variables"].syntaxGreenLight,
2396
- light: themes_["variables"].syntaxGreen
2366
+ dark: themes_namespaceObject.variables.syntaxGreenLight,
2367
+ light: themes_namespaceObject.variables.syntaxGreen
2397
2368
  }
2398
2369
  });
2399
- var blue = Object(themes_["pick"])({
2400
- prisma: themes_["variables"].syntaxBlue,
2370
+ var blue = (0,themes_namespaceObject.pick)({
2371
+ prisma: themes_namespaceObject.variables.syntaxBlue,
2401
2372
  enterprise: {
2402
- dark: themes_["variables"].syntaxBlueLight,
2403
- light: themes_["variables"].syntaxBlue
2373
+ dark: themes_namespaceObject.variables.syntaxBlueLight,
2374
+ light: themes_namespaceObject.variables.syntaxBlue
2404
2375
  }
2405
2376
  });
2406
- var red = Object(themes_["pick"])({
2407
- prisma: themes_["variables"].syntaxRed,
2377
+ var red = (0,themes_namespaceObject.pick)({
2378
+ prisma: themes_namespaceObject.variables.syntaxRed,
2408
2379
  enterprise: {
2409
- dark: themes_["variables"].syntaxRedLight,
2410
- light: themes_["variables"].syntaxRed
2380
+ dark: themes_namespaceObject.variables.syntaxRedLight,
2381
+ light: themes_namespaceObject.variables.syntaxRed
2411
2382
  }
2412
2383
  });
2413
2384
  var TokenColors = {
@@ -2430,18 +2401,18 @@ var TokenColors = {
2430
2401
  "char": green,
2431
2402
  builtin: green,
2432
2403
  inserted: green,
2433
- operator: themes_["variables"].syntaxBrown,
2434
- entity: themes_["variables"].syntaxBrown,
2435
- url: themes_["variables"].syntaxBrown,
2404
+ operator: themes_namespaceObject.variables.syntaxBrown,
2405
+ entity: themes_namespaceObject.variables.syntaxBrown,
2406
+ url: themes_namespaceObject.variables.syntaxBrown,
2436
2407
  atrule: blue,
2437
2408
  'attr-value': blue,
2438
2409
  keyword: blue,
2439
2410
  "function": red,
2440
- regex: themes_["variables"].syntaxOrange,
2441
- important: themes_["variables"].syntaxOrange,
2442
- variable: themes_["variables"].syntaxOrange
2411
+ regex: themes_namespaceObject.variables.syntaxOrange,
2412
+ important: themes_namespaceObject.variables.syntaxOrange,
2413
+ variable: themes_namespaceObject.variables.syntaxOrange
2443
2414
  };
2444
- var StyledToken = external_styled_components_default.a.span.withConfig({
2415
+ var StyledToken = external_styled_components_default().span.withConfig({
2445
2416
  displayName: "CodeStyles__StyledToken",
2446
2417
  componentId: "sc-1eq4k68-3"
2447
2418
  })(["color:", ";cursor:", ";opacity:", ";font-style:", ";font-weight:", ";"], function (_ref) {
@@ -2461,7 +2432,7 @@ var StyledToken = external_styled_components_default.a.span.withConfig({
2461
2432
  return partType === 'important' || partType === 'bold' ? 'bold' : null;
2462
2433
  });
2463
2434
 
2464
- // CONCATENATED MODULE: ./src/Code/Code.tsx
2435
+ ;// CONCATENATED MODULE: ./src/Code/Code.tsx
2465
2436
  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); }
2466
2437
 
2467
2438
  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; }
@@ -2481,19 +2452,19 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
2481
2452
  // typed as 'prismjs'
2482
2453
 
2483
2454
 
2484
- var supportedLanguages = ['bash', 'clike', 'css', 'html', 'json', 'javascript', 'js', 'jsx', 'typescript', 'ts', 'tsx', 'markup', 'mathml', 'svg', 'xml', 'yaml', 'yml'];
2455
+ var supportedLanguages = ['bash', 'clike', 'css', 'html', 'json', 'javascript', 'js', 'jsx', 'typescript', 'ts', 'tsx', 'markup', 'mathml', 'splunk-spl', 'svg', 'xml', 'yaml', 'yml'];
2485
2456
 
2486
2457
  function tokenize(text, language) {
2487
- return prism_empty_default.a.tokenize(text, prism_empty_default.a.languages[language]);
2458
+ return prism_empty_default().tokenize(text, (prism_empty_default()).languages[language]);
2488
2459
  }
2489
2460
 
2490
2461
  var propTypes = {
2491
- elementRef: external_prop_types_default.a.oneOfType([external_prop_types_default.a.func, external_prop_types_default.a.object]),
2492
- indentChars: external_prop_types_default.a.number,
2493
- language: external_prop_types_default.a.oneOf(supportedLanguages),
2494
- languageFallback: external_prop_types_default.a.oneOf(supportedLanguages),
2495
- showIndentGuide: external_prop_types_default.a.bool,
2496
- value: external_prop_types_default.a.string
2462
+ elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
2463
+ indentChars: (external_prop_types_default()).number,
2464
+ language: external_prop_types_default().oneOf(supportedLanguages),
2465
+ languageFallback: external_prop_types_default().oneOf(supportedLanguages),
2466
+ showIndentGuide: (external_prop_types_default()).bool,
2467
+ value: (external_prop_types_default()).string
2497
2468
  };
2498
2469
 
2499
2470
  function Code(_ref) {
@@ -2516,7 +2487,7 @@ function Code(_ref) {
2516
2487
  var level = Math.floor(spaces / indentChars);
2517
2488
  var rest = spaces % indentChars;
2518
2489
  var spans = times_default()(level, function (idx) {
2519
- return /*#__PURE__*/external_react_default.a.createElement(StyledIndent, {
2490
+ return /*#__PURE__*/external_react_default().createElement(StyledIndent, {
2520
2491
  key: idx.toString()
2521
2492
  }, indentBlock);
2522
2493
  });
@@ -2556,7 +2527,7 @@ function Code(_ref) {
2556
2527
  if (!indentMatch) {
2557
2528
  res.push(line);
2558
2529
  } else {
2559
- res.push( /*#__PURE__*/external_react_default.a.createElement("span", {
2530
+ res.push( /*#__PURE__*/external_react_default().createElement("span", {
2560
2531
  key: "".concat(idx.toString(), ":").concat(lineNo.toString())
2561
2532
  }, makeIndentGuide(indentMatch[1].length)), indentMatch[2]);
2562
2533
  }
@@ -2566,7 +2537,7 @@ function Code(_ref) {
2566
2537
  }
2567
2538
 
2568
2539
  var content = typeof part.content === 'string' ? part.content : render(part.content);
2569
- return /*#__PURE__*/external_react_default.a.createElement(StyledToken, {
2540
+ return /*#__PURE__*/external_react_default().createElement(StyledToken, {
2570
2541
  "data-part-type": part.type,
2571
2542
  partType: part.type,
2572
2543
  key: idx.toString()
@@ -2575,55 +2546,21 @@ function Code(_ref) {
2575
2546
  };
2576
2547
 
2577
2548
  var codeContent = render(tokens);
2578
- return /*#__PURE__*/external_react_default.a.createElement(Styled, _extends({
2549
+ return /*#__PURE__*/external_react_default().createElement(Styled, _extends({
2579
2550
  "data-test": "code",
2580
2551
  ref: elementRef,
2581
2552
  tabIndex: 0
2582
- }, otherProps), /*#__PURE__*/external_react_default.a.createElement(StyledCode, {
2553
+ }, otherProps), /*#__PURE__*/external_react_default().createElement(StyledCode, {
2583
2554
  className: "language-".concat(languageUsed)
2584
2555
  }, codeContent));
2585
2556
  }
2586
2557
 
2587
2558
  Code.propTypes = propTypes;
2588
- /* harmony default export */ var Code_Code = (Code);
2589
- // CONCATENATED MODULE: ./src/Code/index.ts
2590
-
2591
-
2592
- /***/ }),
2593
-
2594
- /***/ 3:
2595
- /***/ (function(module, exports) {
2596
-
2597
- module.exports = require("styled-components");
2598
-
2599
- /***/ }),
2600
-
2601
- /***/ 65:
2602
- /***/ (function(module, exports) {
2603
-
2604
- module.exports = require("lodash/castArray");
2559
+ /* harmony default export */ const Code_Code = (Code);
2560
+ ;// CONCATENATED MODULE: ./src/Code/index.ts
2605
2561
 
2606
- /***/ }),
2607
-
2608
- /***/ 79:
2609
- /***/ (function(module, exports) {
2610
-
2611
- module.exports = require("lodash/times");
2612
-
2613
- /***/ }),
2614
-
2615
- /***/ 80:
2616
- /***/ (function(module, exports) {
2617
-
2618
- module.exports = require("lodash/repeat");
2619
-
2620
- /***/ }),
2621
-
2622
- /***/ 82:
2623
- /***/ (function(module, exports) {
2624
-
2625
- module.exports = require("lodash/indexOf");
2626
-
2627
- /***/ })
2562
+ })();
2628
2563
 
2629
- /******/ });
2564
+ module.exports = __webpack_exports__;
2565
+ /******/ })()
2566
+ ;