@splunk/react-ui 4.32.0 → 4.34.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 (80) hide show
  1. package/Button.js +59 -65
  2. package/ButtonGroup.js +20 -23
  3. package/ButtonSimple.js +374 -339
  4. package/CHANGELOG.md +54 -0
  5. package/Card.js +56 -44
  6. package/Chip.js +2 -6
  7. package/Clickable.js +21 -19
  8. package/CollapsiblePanel.js +281 -264
  9. package/Color.js +88 -86
  10. package/Concertina.js +7 -7
  11. package/ControlGroup.js +18 -18
  12. package/DualListbox.js +8 -11
  13. package/File.js +25 -30
  14. package/FormRows.js +232 -210
  15. package/Image.js +13 -13
  16. package/JSONTree.js +22 -22
  17. package/MIGRATION.mdx +99 -0
  18. package/Markdown.js +12 -12
  19. package/Menu.js +505 -719
  20. package/Message.js +205 -204
  21. package/MessageBar.js +104 -104
  22. package/Modal.js +158 -133
  23. package/Multiselect.js +81 -70
  24. package/Paginator.js +8 -8
  25. package/Popover.js +53 -54
  26. package/Progress.js +45 -46
  27. package/RadioBar.js +117 -115
  28. package/RadioList.js +8 -5
  29. package/ResultsMenu.js +256 -261
  30. package/Search.js +21 -24
  31. package/Select.js +265 -246
  32. package/Slider.js +9 -9
  33. package/SplitButton.js +1 -4
  34. package/StaticContent.js +1 -1
  35. package/StepBar.js +1 -1
  36. package/Switch.js +169 -171
  37. package/TabBar.js +14 -6
  38. package/Table.js +65 -67
  39. package/Text.js +30 -37
  40. package/TextArea.js +162 -163
  41. package/Tooltip.js +1 -1
  42. package/package.json +9 -9
  43. package/stubs-splunkui.d.ts +11 -0
  44. package/types/src/Button/Button.d.ts +4 -4
  45. package/types/src/ButtonSimple/ButtonSimple.d.ts +8 -6
  46. package/types/src/ButtonSimple/mixin.d.ts +2 -2
  47. package/types/src/Card/Card.d.ts +3 -1
  48. package/types/src/Card/Header.d.ts +22 -3
  49. package/types/src/Clickable/Clickable.d.ts +3 -2
  50. package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +5 -0
  51. package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +1 -3
  52. package/types/src/Date/Date.d.ts +2 -2
  53. package/types/src/Menu/Item.d.ts +3 -1
  54. package/types/src/Menu/Menu.d.ts +16 -21
  55. package/types/src/Menu/MenuContext.d.ts +3 -2
  56. package/types/src/Number/Number.d.ts +2 -2
  57. package/types/src/RadioBar/Option.d.ts +4 -1
  58. package/types/src/RadioBar/RadioBar.d.ts +6 -4
  59. package/types/src/RadioBar/docs/examples/MenuBar.d.ts +2 -0
  60. package/types/src/ResultsMenu/ResultsMenu.d.ts +5 -22
  61. package/types/src/Select/Select.d.ts +8 -4
  62. package/types/src/Select/SelectBase.d.ts +8 -4
  63. package/types/src/Slider/Slider.d.ts +2 -2
  64. package/types/src/Table/Body.d.ts +0 -4
  65. package/types/src/Text/docs/examples/Basic.d.ts +1 -9
  66. package/types/src/Text/docs/examples/Error.d.ts +2 -10
  67. package/types/src/Text/docs/examples/Inline.d.ts +1 -9
  68. package/types/src/Text/docs/examples/Multiline.d.ts +1 -9
  69. package/types/src/Text/docs/examples/Password.d.ts +1 -9
  70. package/types/src/Text/docs/examples/Search.d.ts +1 -9
  71. package/useRovingFocus.js +26 -40
  72. package/types/src/Button/docs/examples/prisma/Basic.d.ts +0 -2
  73. package/types/src/Button/docs/examples/prisma/Block.d.ts +0 -2
  74. package/types/src/Button/docs/examples/prisma/Disabled.d.ts +0 -2
  75. package/types/src/Button/docs/examples/prisma/Icons.d.ts +0 -2
  76. package/types/src/Button/docs/examples/prisma/Menus.d.ts +0 -2
  77. package/types/src/Button/docs/examples/prisma/To.d.ts +0 -2
  78. package/types/src/Button/docs/examples/prisma/Truncated.d.ts +0 -2
  79. package/types/src/Select/docs/examples/prisma/Appearance.d.ts +0 -14
  80. /package/types/src/{Button/docs/examples/prisma → Clickable/docs/examples}/Dimmed.d.ts +0 -0
package/Color.js CHANGED
@@ -94,10 +94,10 @@
94
94
  var g = e.n(b);
95
95
  // CONCATENATED MODULE: external "lodash/memoize"
96
96
  const x = require("lodash/memoize");
97
- var w = e.n(x);
97
+ var S = e.n(x);
98
98
  // CONCATENATED MODULE: external "tinycolor2"
99
- const S = require("tinycolor2");
100
- var k = e.n(S);
99
+ const w = require("tinycolor2");
100
+ var k = e.n(w);
101
101
  // CONCATENATED MODULE: external "@splunk/react-ui/Dropdown"
102
102
  const C = require("@splunk/react-ui/Dropdown");
103
103
  var E = e.n(C);
@@ -110,8 +110,8 @@
110
110
  // CONCATENATED MODULE: external "@splunk/ui-utils/keyboard"
111
111
  const q = require("@splunk/ui-utils/keyboard");
112
112
  // CONCATENATED MODULE: external "styled-components"
113
- const I = require("styled-components");
114
- var j = e.n(I);
113
+ const j = require("styled-components");
114
+ var I = e.n(j);
115
115
  // CONCATENATED MODULE: external "@splunk/react-ui/Text"
116
116
  const T = require("@splunk/react-ui/Text");
117
117
  var R = e.n(T);
@@ -129,64 +129,64 @@
129
129
  enterprise: P.variables.gray80,
130
130
  prisma: "rgba(0, 0, 0, 0.2)"
131
131
  });
132
- var z = (0, I.css)([ "background-image:linear-gradient( 45deg,", " 25%,transparent 25%,transparent 75%,", " 75%,", " ),linear-gradient( 45deg,", " 25%,transparent 25%,transparent 75%,", " 75%,", " );background-size:10px 10px;background-position:0 0,5px 5px;background-color:", ";" ], H, H, H, H, H, H, (0,
132
+ var z = (0, j.css)([ "background-image:linear-gradient( 45deg,", " 25%,transparent 25%,transparent 75%,", " 75%,", " ),linear-gradient( 45deg,", " 25%,transparent 25%,transparent 75%,", " 75%,", " );background-size:10px 10px;background-position:0 0,5px 5px;background-color:", ";" ], H, H, H, H, H, H, (0,
133
133
  P.pick)({
134
134
  enterprise: "transparent",
135
135
  prisma: P.variables.white
136
136
  }));
137
- var K = j()(D()).withConfig({
137
+ var K = I()(D()).withConfig({
138
138
  displayName: "SwatchStyles__StyledCheck",
139
139
  componentId: "sc-1wxunhq-0"
140
140
  })([ "box-sizing:border-box;color:#d3d3d3;height:100%;width:100%;" ]);
141
- var F = j()($()).withConfig({
141
+ var F = I()($()).withConfig({
142
142
  displayName: "SwatchStyles__StyledClickable",
143
143
  componentId: "sc-1wxunhq-1"
144
- })([ "display:block;flex:0 0 auto;border:", ";", ";", ";", ";", " &:focus{border-color:", ";box-shadow:", ";}", " ", " ", " &[disabled]{background-image:linear-gradient(rgba(255,255,255,0.8),rgba(255,255,255,0.8));}", " ", "" ], (0,
144
+ })([ "display:block;flex:0 0 auto;border:1px solid;border-color:", ";", ";", ";", ";", " &:focus{border-color:", ";box-shadow:", ";}", " ", " ", " &[disabled]{background-image:linear-gradient(rgba(255,255,255,0.8),rgba(255,255,255,0.8));}", " ", "" ], (0,
145
145
  P.pick)({
146
146
  enterprise: {
147
- light: (0, I.css)([ "1px solid ", "" ], P.variables.gray60),
148
- dark: P.variables.border
147
+ light: P.variables.gray60,
148
+ dark: P.variables.borderColor
149
149
  },
150
- prisma: (0, I.css)([ "1px solid ", "" ], P.variables.interactiveColorBorder)
150
+ prisma: P.variables.interactiveColorBorder
151
151
  }), (0, P.pick)({
152
- prisma: (0, I.css)([ "border-radius:2px;" ])
152
+ prisma: (0, j.css)([ "border-radius:2px;" ])
153
153
  }), (function(e) {
154
154
  var t = e.$value;
155
- return t === null && (0, I.css)([ "background-image:linear-gradient( to bottom right,transparent 48%,", ",transparent 52% );", ";" ], (0,
155
+ return t === null && (0, j.css)([ "background-image:linear-gradient( to bottom right,transparent 48%,", ",transparent 52% );", ";" ], (0,
156
156
  P.pick)({
157
157
  enterprise: "#ed1e24",
158
158
  prisma: P.variables.accentColorNegative
159
159
  }), (0, P.pick)({
160
- prisma: (0, I.css)([ "background-color:", ";" ], P.variables.white)
160
+ prisma: (0, j.css)([ "background-color:", ";" ], P.variables.white)
161
161
  }));
162
162
  }), (function(e) {
163
163
  var t = e.$value;
164
164
  return t && (t === "transparent" ? z : "background-color: ".concat(t));
165
165
  }), (function(e) {
166
166
  var t = e.$noBorder;
167
- return t && (0, I.css)([ "border:none;" ]);
167
+ return t && (0, j.css)([ "border:none;" ]);
168
168
  }), P.variables.focusColor, P.variables.focusShadow, (0, P.pick)({
169
169
  enterprise: {
170
- comfortable: (0, I.css)([ "width:32px;height:32px;" ]),
171
- compact: (0, I.css)([ "width:24px;height:24px;" ])
170
+ comfortable: (0, j.css)([ "width:32px;height:32px;" ]),
171
+ compact: (0, j.css)([ "width:24px;height:24px;" ])
172
172
  },
173
- prisma: (0, I.css)([ "width:24px;height:24px;" ])
173
+ prisma: (0, j.css)([ "width:24px;height:24px;" ])
174
174
  }), (function(e) {
175
175
  var t = e.$prepend;
176
- return t && (0, I.css)([ "border-top-left-radius:0;border-bottom-left-radius:0;" ]);
176
+ return t && (0, j.css)([ "border-top-left-radius:0;border-bottom-left-radius:0;" ]);
177
177
  }), (function(e) {
178
178
  var t = e.$append;
179
- return t && (0, I.css)([ "margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0;border-right:none;" ]);
179
+ return t && (0, j.css)([ "margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0;border-right:none;" ]);
180
180
  }), (function(e) {
181
181
  var t = e.$hasError;
182
- return t && (0, I.css)([ "box-shadow:inset 0 0 0 2px white;border-color:", ";" ], (0,
182
+ return t && (0, j.css)([ "box-shadow:inset 0 0 0 2px white;border-color:", ";" ], (0,
183
183
  P.pick)({
184
184
  enterprise: P.variables.errorColor,
185
185
  prisma: P.variables.accentColorNegative
186
186
  }));
187
187
  }), (function(e) {
188
188
  var t = e.$showSelected;
189
- return t && (0, I.css)([ "display:flex;align-items:center;justify-content:center;" ]);
189
+ return t && (0, j.css)([ "display:flex;align-items:center;justify-content:center;" ]);
190
190
  }));
191
191
  // CONCATENATED MODULE: ./src/Color/Swatch.tsx
192
192
  function M() {
@@ -244,7 +244,7 @@
244
244
  /** @private */
245
245
  showSelected: o().bool
246
246
  };
247
- var Q = n().forwardRef((function(e, t) {
247
+ var X = n().forwardRef((function(e, t) {
248
248
  var r = e.append, a = e.error, o = a === void 0 ? false : a, l = e.onClick, i = e.prepend, s = e.value, u = e.noBorder, c = e.showSelected, p = L(e, [ "append", "error", "onClick", "prepend", "value", "noBorder", "showSelected" ]);
249
249
  var d = s === null || s === undefined ? (0, _._)("No color") : s;
250
250
  // Only valid hexadecimal strings, 'transparent' and `null` are allowed for background colors
@@ -274,47 +274,47 @@
274
274
  role: "presentation"
275
275
  }), n().createElement(V(), null, d));
276
276
  }));
277
- Q.propTypes = W;
278
- /* harmony default export */ const X = Q;
277
+ X.propTypes = W;
278
+ /* harmony default export */ const G = X;
279
279
  // CONCATENATED MODULE: ./src/Color/ColorStyles.ts
280
- var G = j().div.withConfig({
280
+ var J = I().div.withConfig({
281
281
  displayName: "ColorStyles__StyledColor",
282
282
  componentId: "jxrost-0"
283
283
  })([ "", ";flex-direction:row;" ], P.mixins.reset("flex"));
284
- var J = j()(X).withConfig({
284
+ var Q = I()(G).withConfig({
285
285
  displayName: "ColorStyles__StyledInputSwatch",
286
286
  componentId: "jxrost-1"
287
- })([ "", "" ], (0, P.pick)({
288
- compact: (0, I.css)([ "width:28px;height:28px;" ])
287
+ })([ "", ";&:focus{z-index:1;}" ], (0, P.pick)({
288
+ compact: (0, j.css)([ "width:28px;height:28px;" ])
289
289
  }));
290
- var Y = j().div.withConfig({
290
+ var Y = I().div.withConfig({
291
291
  displayName: "ColorStyles__StyledInput",
292
292
  componentId: "jxrost-2"
293
293
  })([ "", ";" ], (0, P.pick)({
294
- enterprise: (0, I.css)([ "display:flex;width:100%;" ]),
295
- prisma: (0, I.css)([ "position:relative;", "" ], (function(e) {
294
+ enterprise: (0, j.css)([ "display:flex;width:100%;" ]),
295
+ prisma: (0, j.css)([ "position:relative;", "" ], (function(e) {
296
296
  var t = e.$inDropdown;
297
- return t ? (0, I.css)([ "width:80px;" ]) : (0, I.css)([ "flex:0 1 auto;min-width:0;" ]);
297
+ return t ? (0, j.css)([ "width:80px;" ]) : (0, j.css)([ "flex:0 1 auto;min-width:0;" ]);
298
298
  }))
299
299
  }));
300
- var Z = j()(R()).withConfig({
300
+ var Z = I()(R()).withConfig({
301
301
  displayName: "ColorStyles__StyledInputText",
302
302
  componentId: "jxrost-3"
303
303
  })([ "", "" ], (function(e) {
304
304
  var t = e.$inDropdown;
305
- return t && (0, I.css)([ "font-size:12px;" ]);
305
+ return t && (0, j.css)([ "font-size:12px;" ]);
306
306
  }));
307
- var ee = j()(X).withConfig({
307
+ var ee = I()(G).withConfig({
308
308
  displayName: "ColorStyles__StyledToggleSwatch",
309
309
  componentId: "jxrost-4"
310
310
  })([ "", "" ], (0, P.pick)({
311
311
  prisma: {
312
- comfortable: (0, I.css)([ "width:40px;height:40px;" ]),
313
- compact: (0, I.css)([ "width:32px;height:32px;" ])
312
+ comfortable: (0, j.css)([ "width:40px;height:40px;" ]),
313
+ compact: (0, j.css)([ "width:32px;height:32px;" ])
314
314
  },
315
315
  enterprise: {
316
- comfortable: (0, I.css)([ "width:32px;height:32px;" ]),
317
- compact: (0, I.css)([ "width:28px;height:28px;" ])
316
+ comfortable: (0, j.css)([ "width:32px;height:32px;" ]),
317
+ compact: (0, j.css)([ "width:28px;height:28px;" ])
318
318
  }
319
319
  }));
320
320
  // CONCATENATED MODULE: external "@splunk/react-icons/ChevronDown"
@@ -324,65 +324,68 @@
324
324
  const ne = require("@splunk/react-ui/Divider");
325
325
  var ae = e.n(ne);
326
326
  // CONCATENATED MODULE: ./src/Color/PaletteStyles.ts
327
- var oe = j().div.withConfig({
327
+ var oe = I().div.withConfig({
328
328
  displayName: "PaletteStyles__StyledPalette",
329
329
  componentId: "qgv9v9-0"
330
330
  })([ "width:220px;padding:", ";" ], P.variables.spacingSmall);
331
- var le = j().ul.withConfig({
331
+ var le = I().ul.withConfig({
332
332
  displayName: "PaletteStyles__StyledSwatches",
333
333
  componentId: "qgv9v9-1"
334
334
  })([ "", ";", "" ], P.mixins.reset("block"), (0, P.pick)({
335
- enterprise: (0, I.css)([ "margin-bottom:", ";" ], P.variables.spacingQuarter)
335
+ enterprise: (0, j.css)([ "margin-bottom:", ";" ], P.variables.spacingXSmall)
336
336
  }));
337
- var ie = j().li.withConfig({
337
+ var ie = I().li.withConfig({
338
338
  displayName: "PaletteStyles__StyledSwatch",
339
339
  componentId: "qgv9v9-2"
340
340
  })([ "", ";margin-right:4px;margin-bottom:4px;vertical-align:top;", "" ], P.mixins.reset("inline-block"), (0,
341
341
  P.pick)({
342
342
  enterprise: {
343
- compact: (0, I.css)([ "&:nth-child(8n){margin-right:0;}" ])
343
+ compact: (0, j.css)([ "&:nth-child(8n){margin-right:0;}" ])
344
344
  },
345
- prisma: (0, I.css)([ "&:nth-child(8n){margin-right:0;}" ])
345
+ prisma: (0, j.css)([ "&:nth-child(8n){margin-right:0;}" ])
346
346
  }));
347
- var se = j().div.withConfig({
347
+ var se = I().div.withConfig({
348
348
  displayName: "PaletteStyles__StyledToolBar",
349
349
  componentId: "qgv9v9-3"
350
- })([ "position:relative;display:flex;align-items:center;padding:0;margin-top:", ";margin-bottom:", ";gap:4px;" ], P.variables.spacingSmall, P.variables.spacingHalf);
351
- var ue = j()($()).withConfig({
350
+ })([ "position:relative;display:flex;align-items:center;padding:0;margin-top:", ";", " gap:4px;" ], P.variables.spacingSmall, (0,
351
+ P.pick)({
352
+ enterprise: (0, j.css)([ "margin-bottom:", ";" ], P.variables.spacingSmall)
353
+ }));
354
+ var ue = I()($()).withConfig({
352
355
  displayName: "PaletteStyles__StyledExpandButton",
353
356
  componentId: "qgv9v9-4"
354
357
  })([ "position:absolute;bottom:4px;right:4px;padding:2px 4px;border-radius:2px;&:focus{box-shadow:", ";}", "" ], P.variables.focusShadow, (function(e) {
355
358
  var t = e.$expanded;
356
- return t && (0, I.css)([ "transform:rotate(180deg);" ]);
359
+ return t && (0, j.css)([ "transform:rotate(180deg);" ]);
357
360
  }));
358
- var ce = j().div.withConfig({
361
+ var ce = I().div.withConfig({
359
362
  displayName: "PaletteStyles__StyledSystemColorPickerWrapper",
360
363
  componentId: "qgv9v9-5"
361
364
  })([ "position:relative;" ]);
362
- var pe = j().input.withConfig({
365
+ var pe = I().input.withConfig({
363
366
  displayName: "PaletteStyles__StyledSystemColorPicker",
364
367
  componentId: "qgv9v9-6"
365
- })([ "box-sizing:border-box;", " border:", ";", ";outline:none;appearance:none;padding:1px 10px;", " margin:0;background:conic-gradient( #ef3434,#ef9a34,#deef34,#78ef34,#34ef56,#34efbc,#34bcef,#3456ef,#7834ef,#de34ef,#ef349a,#ef3434 );background-repeat:no-repeat;cursor:pointer;&::-webkit-color-swatch{border:none;border-radius:2px;}&::-moz-color-swatch{opacity:0;}&:focus{box-shadow:", ";}" ], (0,
368
+ })([ "box-sizing:border-box;", " ", ";", ";outline:none;appearance:none;padding:1px 10px;", " margin:0;background:conic-gradient( #ef3434,#ef9a34,#deef34,#78ef34,#34ef56,#34efbc,#34bcef,#3456ef,#7834ef,#de34ef,#ef349a,#ef3434 );background-repeat:no-repeat;cursor:pointer;&::-webkit-color-swatch{border:none;border-radius:2px;}&::-moz-color-swatch{opacity:0;}&:focus{box-shadow:", ";}" ], (0,
366
369
  P.pick)({
367
370
  enterprise: {
368
- comfortable: (0, I.css)([ "width:32px;height:32px;" ]),
369
- compact: (0, I.css)([ "width:24px;height:24px;" ])
371
+ comfortable: (0, j.css)([ "width:32px;height:32px;" ]),
372
+ compact: (0, j.css)([ "width:24px;height:24px;" ])
370
373
  },
371
- prisma: (0, I.css)([ "width:24px;height:24px;" ])
374
+ prisma: (0, j.css)([ "width:24px;height:24px;" ])
372
375
  }), (0, P.pick)({
373
376
  enterprise: {
374
- light: (0, I.css)([ "1px solid ", "" ], P.variables.gray60),
375
- dark: P.variables.border
377
+ light: (0, j.css)([ "border:1px solid ", ";" ], P.variables.gray60),
378
+ dark: (0, j.css)([ "border:1px solid ", ";" ], P.variables.borderColor)
376
379
  },
377
- prisma: "none"
380
+ prisma: (0, j.css)([ "border:none;" ])
378
381
  }), (0, P.pick)({
379
- prisma: (0, I.css)([ "border-radius:2px;" ])
382
+ prisma: (0, j.css)([ "border-radius:2px;" ])
380
383
  }), (0, P.pick)({
381
384
  enterprise: {
382
- comfortable: (0, I.css)([ "padding:1px 14px;" ])
385
+ comfortable: (0, j.css)([ "padding:1px 14px;" ])
383
386
  }
384
387
  }), P.variables.focusShadow);
385
- var de = j()(D()).withConfig({
388
+ var de = I()(D()).withConfig({
386
389
  displayName: "PaletteStyles__StyledCheck",
387
390
  componentId: "qgv9v9-7"
388
391
  })([ "box-sizing:border-box;color:#d3d3d3;height:100%;width:100%;position:absolute;top:0;left:0;pointer-events:none;" ]);
@@ -400,7 +403,7 @@
400
403
 
401
404
  return n().createElement(ie, {
402
405
  key: r || "null"
403
- }, n().createElement(X, {
406
+ }, n().createElement(G, {
404
407
  value: r,
405
408
  ref: s ? o : null,
406
409
  onClick: l,
@@ -415,19 +418,19 @@
415
418
  "data-test": "tool-bar"
416
419
  }, f && n().createElement(P.SplunkThemeProvider, {
417
420
  density: "compact"
418
- }, p && p()), n().createElement(X, {
421
+ }, p && p()), n().createElement(G, {
419
422
  value: null,
420
423
  ref: a === null ? o : null,
421
424
  onClick: l,
422
425
  noBorder: f && !v,
423
426
  showSelected: a === null
424
- }), n().createElement(X, {
427
+ }), n().createElement(G, {
425
428
  value: "#ffffff",
426
429
  ref: a === "#ffffff" ? o : null,
427
430
  onClick: l,
428
431
  noBorder: f && !v,
429
432
  showSelected: a === "#ffffff"
430
- }), n().createElement(X, {
433
+ }), n().createElement(G, {
431
434
  value: "#000000",
432
435
  ref: a === "#000000" ? o : null,
433
436
  onClick: l,
@@ -444,15 +447,15 @@
444
447
  })));
445
448
  };
446
449
  var x = y.length === 8 ? 7 : 15;
447
- var w = h()(y, 0, x);
448
- var S = h()(y, x);
450
+ var S = h()(y, 0, x);
451
+ var w = h()(y, x);
449
452
  if (f) {
450
453
 
451
454
  return n().createElement(oe, null, n().createElement("div", {
452
455
  style: {
453
456
  position: "relative"
454
457
  }
455
- }, n().createElement(le, null, w, t && S), t && b(), n().createElement(ue, {
458
+ }, n().createElement(le, null, S, t && w), t && b(), n().createElement(ue, {
456
459
  ref: i,
457
460
  $expanded: t,
458
461
  onClick: s,
@@ -492,26 +495,26 @@
492
495
  return me.apply(this, arguments);
493
496
  }
494
497
  function ye(e) {
495
- return we(e) || xe(e) || ge(e) || be();
498
+ return Se(e) || xe(e) || ge(e) || be();
496
499
  }
497
500
  function be() {
498
501
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
499
502
  }
500
503
  function ge(e, t) {
501
504
  if (!e) return;
502
- if (typeof e === "string") return Se(e, t);
505
+ if (typeof e === "string") return we(e, t);
503
506
  var r = Object.prototype.toString.call(e).slice(8, -1);
504
507
  if (r === "Object" && e.constructor) r = e.constructor.name;
505
508
  if (r === "Map" || r === "Set") return Array.from(e);
506
- if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return Se(e, t);
509
+ if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return we(e, t);
507
510
  }
508
511
  function xe(e) {
509
512
  if (typeof Symbol !== "undefined" && Symbol.iterator in Object(e)) return Array.from(e);
510
513
  }
511
- function we(e) {
512
- if (Array.isArray(e)) return Se(e);
514
+ function Se(e) {
515
+ if (Array.isArray(e)) return we(e);
513
516
  }
514
- function Se(e, t) {
517
+ function we(e, t) {
515
518
  if (t == null || t > e.length) t = e.length;
516
519
  for (var r = 0, n = new Array(t); r < t; r++) {
517
520
  n[r] = e[r];
@@ -584,7 +587,7 @@
584
587
  };
585
588
  return qe(e, t);
586
589
  }
587
- function Ie(e) {
590
+ function je(e) {
588
591
  var t = Re();
589
592
  return function r() {
590
593
  var n = Be(e), a;
@@ -594,10 +597,10 @@
594
597
  } else {
595
598
  a = n.apply(this, arguments);
596
599
  }
597
- return je(this, a);
600
+ return Ie(this, a);
598
601
  };
599
602
  }
600
- function je(e, t) {
603
+ function Ie(e, t) {
601
604
  if (t && (he(t) === "object" || typeof t === "function")) {
602
605
  return t;
603
606
  }
@@ -641,7 +644,7 @@
641
644
  }
642
645
  // The default palette in Prisma theme.
643
646
  var Ae = [ "#912344", "#D44C20", "#C0891E", "#26AA92", "#2F8AA7", "#2E49AA", "#602CA1", "#BA4ABD" ];
644
- var De = w()((function(e) {
647
+ var De = S()((function(e) {
645
648
  var t = [];
646
649
  for (var r = 1; r <= e.length * 4; r += 1) {
647
650
  var n = e[(r - 1) % e.length];
@@ -697,7 +700,7 @@
697
700
  * 2. Otherwise the first color swatch receives focus.
698
701
  */ var Me = function(e) {
699
702
  _e(r, e);
700
- var t = Ie(r);
703
+ var t = je(r);
701
704
  Oe(r, null, [ {
702
705
  key: "hasNull",
703
706
  // @docs-props-type ColorPropsBase
@@ -989,11 +992,10 @@
989
992
  required: c,
990
993
  spellCheck: false,
991
994
  value: p
992
- }), !d && n().createElement(J, {
995
+ }), !d && n().createElement(Q, {
993
996
  "data-test": "textbox-swatch",
994
997
  onClick: this.handleButtonClick,
995
998
  value: h,
996
- tabIndex: -1,
997
999
  style: {
998
1000
  marginLeft: "1px"
999
1001
  }
@@ -1041,7 +1043,7 @@
1041
1043
  var b = m.isPrisma;
1042
1044
  var g = this.getValue();
1043
1045
  var x = this.state.displayValue;
1044
- var w = n().createElement(ee, me({
1046
+ var S = n().createElement(ee, me({
1045
1047
  append: b && !c ? true : o,
1046
1048
  "data-test": "color",
1047
1049
  "data-test-value": x,
@@ -1057,7 +1059,7 @@
1057
1059
  }, f()(y, [].concat(ye(p()(r.propTypes)), [ // TS: trick omit
1058
1060
  "onChange" ]))));
1059
1061
 
1060
- return n().createElement(G, null, n().createElement(E(), {
1062
+ return n().createElement(J, null, n().createElement(E(), {
1061
1063
  closeReasons: [ "clickAway", "escapeKey", "offScreen", "toggleClick" ],
1062
1064
  onRequestClose: this.handleRequestClose,
1063
1065
  onRequestOpen: this.handleRequestOpen,
@@ -1067,7 +1069,7 @@
1067
1069
  },
1068
1070
  retainFocus: true,
1069
1071
  takeFocus: false,
1070
- toggle: w
1072
+ toggle: S
1071
1073
  }, this.renderPalette()), b && !c && this.renderInput({
1072
1074
  textAppend: false,
1073
1075
  textPrepend: true,
package/Concertina.js CHANGED
@@ -62,7 +62,7 @@
62
62
  // EXPORTS
63
63
  e.d(t, {
64
64
  Panel: () => /* reexport */ Pe,
65
- default: () => /* reexport */ Ve
65
+ default: () => /* reexport */ Le
66
66
  });
67
67
  // CONCATENATED MODULE: external "react"
68
68
  const n = require("react");
@@ -100,7 +100,7 @@
100
100
  var C = m()(S()).withConfig({
101
101
  displayName: "HeadingStyles__StyledClickable",
102
102
  componentId: "sc-1h92oaj-0"
103
- })([ "display:block;width:100%;cursor:pointer;position:relative;padding:6px ", ";line-height:", ";border-radius:0;color:", ";", " &:focus:not([disabled]){box-shadow:", ";}", "" ], w.variables.spacing, w.variables.lineHeight, w.variables.textColor, (0,
103
+ })([ "display:block;width:100%;cursor:pointer;position:relative;padding:6px ", ";line-height:", ";border-radius:0;color:", ";", " &:focus:not([disabled]){box-shadow:", ";}", "" ], w.variables.spacingLarge, w.variables.lineHeight, w.variables.textColor, (0,
104
104
  w.pickVariant)("$inner", {
105
105
  true: (0, g.css)([ "*:not(:first-child) > &&{border-top:2px solid ", ";}*:not(:last-child) > &&{border-bottom:2px solid ", ";}" ], w.variables.backgroundColor, w.variables.backgroundColor),
106
106
  false: (0, g.css)([ "& + &&{border-top:2px solid ", ";}" ], w.variables.backgroundColor)
@@ -323,10 +323,10 @@
323
323
  /* harmony default export */ const $ = N;
324
324
  // CONCATENATED MODULE: external "lodash/throttle"
325
325
  const U = require("lodash/throttle");
326
- var V = e.n(U);
326
+ var L = e.n(U);
327
327
  // CONCATENATED MODULE: external "@splunk/react-ui/Box"
328
- const L = require("@splunk/react-ui/Box");
329
- var F = e.n(L);
328
+ const V = require("@splunk/react-ui/Box");
329
+ var F = e.n(V);
330
330
  // CONCATENATED MODULE: external "@splunk/react-ui/Scroll"
331
331
  const G = require("@splunk/react-ui/Scroll");
332
332
  var J = e.n(G);
@@ -573,7 +573,7 @@
573
573
  r.lastHeight = i;
574
574
  (n = (o = r.context).onChange) === null || n === void 0 ? void 0 : n.call(o, e, a);
575
575
  }));
576
- Se(ge(r), "handleResize", V()(r.measureHeight, 300));
576
+ Se(ge(r), "handleResize", L()(r.measureHeight, 300));
577
577
  Se(ge(r), "handleMount", (function(e) {
578
578
  r.setState({
579
579
  containerEl: e
@@ -1004,7 +1004,7 @@
1004
1004
  De(Ue, "propTypes", Ne);
1005
1005
  De(Ue, "defaultProps", $e);
1006
1006
  De(Ue, "Panel", Pe);
1007
- /* harmony default export */ const Ve = Ue;
1007
+ /* harmony default export */ const Le = Ue;
1008
1008
  // CONCATENATED MODULE: ./src/Concertina/index.ts
1009
1009
  module.exports = t;
1010
1010
  /******/})();
package/ControlGroup.js CHANGED
@@ -61,7 +61,7 @@
61
61
  e.r(t);
62
62
  // EXPORTS
63
63
  e.d(t, {
64
- ControlGroupContext: () => /* reexport */ T,
64
+ ControlGroupContext: () => /* reexport */ L,
65
65
  default: () => /* reexport */ se
66
66
  });
67
67
  // CONCATENATED MODULE: external "react"
@@ -98,10 +98,10 @@
98
98
  componentId: "wjnyif-0"
99
99
  })([ "", " ", " max-width:600px;margin-bottom:", ";", " color:", ";", "" ], c.mixins.reset("block"), c.mixins.clearfix(), (0,
100
100
  c.pick)({
101
- enterprise: (0, h.css)([ "calc(", " * 0.75)" ], c.variables.spacing),
101
+ enterprise: c.variables.spacingMedium,
102
102
  prisma: {
103
- comfortable: "16px",
104
- compact: "12px"
103
+ comfortable: c.variables.spacingLarge,
104
+ compact: c.variables.spacingMedium
105
105
  }
106
106
  }), (0, c.pick)({
107
107
  prisma: {
@@ -121,11 +121,11 @@
121
121
  prisma: c.variables.accentColorNegative
122
122
  }));
123
123
  }));
124
- var x = m()(d()).withConfig({
124
+ var S = m()(d()).withConfig({
125
125
  displayName: "ControlGroupStyles__StyledControlsStackBox",
126
126
  componentId: "wjnyif-1"
127
127
  })([ "flex-direction:column;" ]);
128
- var S = m().div.withConfig({
128
+ var x = m().div.withConfig({
129
129
  displayName: "ControlGroupStyles__StyledLabelWrapper",
130
130
  componentId: "wjnyif-2"
131
131
  })([ "display:inline-flex;align-items:center;", " ", "" ], (0, c.pick)({
@@ -138,7 +138,7 @@
138
138
  prisma: (0, h.css)([ "min-height:", ";" ], c.variables.inputHeight)
139
139
  }));
140
140
  }));
141
- var I = m()(S).withConfig({
141
+ var I = m()(x).withConfig({
142
142
  displayName: "ControlGroupStyles__StyledLabelWrapperLeft",
143
143
  componentId: "wjnyif-3"
144
144
  })([ "float:left;" ]);
@@ -196,20 +196,20 @@
196
196
  * @public
197
197
  */
198
198
  var _ = n().createContext({});
199
- /* harmony default export */ const T = _;
199
+ /* harmony default export */ const L = _;
200
200
  // CONCATENATED MODULE: ./src/ControlGroup/ControlGroup.tsx
201
- function L(e) {
201
+ function T(e) {
202
202
  "@babel/helpers - typeof";
203
203
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
204
- L = function e(t) {
204
+ T = function e(t) {
205
205
  return typeof t;
206
206
  };
207
207
  } else {
208
- L = function e(t) {
208
+ T = function e(t) {
209
209
  return t && typeof Symbol === "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
210
210
  };
211
211
  }
212
- return L(e);
212
+ return T(e);
213
213
  }
214
214
  function E() {
215
215
  E = Object.assign || function(e) {
@@ -380,7 +380,7 @@
380
380
  };
381
381
  }
382
382
  function X(e, t) {
383
- if (t && (L(t) === "object" || typeof t === "function")) {
383
+ if (t && (T(t) === "object" || typeof t === "function")) {
384
384
  return t;
385
385
  }
386
386
  return K(e);
@@ -572,7 +572,7 @@
572
572
  key: "render",
573
573
  value: function e() {
574
574
  var t = this;
575
- var o = this.props, i = o.children, l = o.controlsLayout, a = o.error, s = o.help, c = o.hideLabel, u = o.label, f = o.labelFor, y = o.labelPosition, h = o.labelWidth, m = o.required, v = o.size, g = o.splunkTheme, _ = o.tooltip, L = o.tooltipDefaultPlacement, D = M(o, [ "children", "controlsLayout", "error", "help", "hideLabel", "label", "labelFor", "labelPosition", "labelWidth", "required", "size", "splunkTheme", "tooltip", "tooltipDefaultPlacement" ]);
575
+ var o = this.props, i = o.children, l = o.controlsLayout, a = o.error, s = o.help, c = o.hideLabel, u = o.label, f = o.labelFor, y = o.labelPosition, h = o.labelWidth, m = o.required, v = o.size, g = o.splunkTheme, _ = o.tooltip, T = o.tooltipDefaultPlacement, D = M(o, [ "children", "controlsLayout", "error", "help", "hideLabel", "label", "labelFor", "labelPosition", "labelWidth", "required", "size", "splunkTheme", "tooltip", "tooltipDefaultPlacement" ]);
576
576
  var V = g.isPrisma, $ = g.isCompact;
577
577
  var A = r.Children.toArray(i).filter(r.isValidElement);
578
578
  var G = A.length;
@@ -652,8 +652,8 @@
652
652
  var H = y === "left" ? {
653
653
  marginLeft: "calc(".concat(F, " + ").concat(J, ")")
654
654
  } : undefined;
655
- var U = l === "stack" ? x : d();
656
- var X = y === "left" ? I : S;
655
+ var U = l === "stack" ? S : d();
656
+ var X = y === "left" ? I : x;
657
657
  var K = n().createElement(X, {
658
658
  style: W,
659
659
  $labelPosition: y
@@ -669,7 +669,7 @@
669
669
  $labelPosition: y,
670
670
  closeWhen: "notOnClick",
671
671
  content: _,
672
- defaultPlacement: L,
672
+ defaultPlacement: T,
673
673
  "aria-hidden": "true"
674
674
  }));
675
675
  var Q = typeof a === "string" || a === true;
@@ -679,7 +679,7 @@
679
679
  "data-test": "control-group",
680
680
  "data-test-required": m,
681
681
  $error: Q
682
- }, B), n().createElement(T.Provider, {
682
+ }, B), n().createElement(L.Provider, {
683
683
  value: this.getContextValue()
684
684
  }, c ? n().createElement(b(), null, K) : K, n().createElement(U, {
685
685
  "data-test": "controls",
package/DualListbox.js CHANGED
@@ -250,7 +250,7 @@
250
250
  var H = D()(P()).withConfig({
251
251
  displayName: "ToolbarButtonStyles__StyledClickable",
252
252
  componentId: "k7zksz-0"
253
- })([ "", " border:", ";border-radius:", ";box-sizing:border-box;cursor:pointer;flex-grow:1;font-weight:", ";line-height:", ";min-height:", ";min-width:", ";max-width:100%;padding:", ";position:relative;text-align:center;text-decoration:none;vertical-align:middle;white-space:nowrap;width:", ";&:active{transition:none;}&:focus{box-shadow:", ";}&:focus,&:hover{z-index:3;}", ";" ], N.mixins.reset("block"), (0,
253
+ })([ "", " border:", ";border-radius:", ";box-sizing:border-box;cursor:pointer;flex-grow:1;font-weight:", ";line-height:", ";min-height:", ";min-width:", ";max-width:100%;", ";position:relative;text-align:center;text-decoration:none;vertical-align:middle;white-space:nowrap;width:", ";&:active{transition:none;}&:focus{box-shadow:", ";}&:focus,&:hover{z-index:3;}", ";" ], N.mixins.reset("block"), (0,
254
254
  N.pick)({
255
255
  enterprise: "1px solid transparent"
256
256
  }), N.variables.borderRadius, (0, N.pick)({
@@ -259,13 +259,10 @@
259
259
  }), N.variables.lineHeight, N.variables.inputHeight, N.variables.inputHeight, (0,
260
260
  N.pick)({
261
261
  enterprise: {
262
- comfortable: "0 5px",
263
- compact: "0 2px"
262
+ comfortable: (0, _.css)([ "padding:0 5px;" ]),
263
+ compact: (0, _.css)([ "padding:0 2px;" ])
264
264
  },
265
- prisma: {
266
- comfortable: (0, _.css)([ "0px calc(", " / 2 - 1px)" ], N.variables.inputHeight),
267
- compact: (0, _.css)([ "0px calc(", " / 2 - 1px)" ], N.variables.inputHeight)
268
- }
265
+ prisma: (0, _.css)([ "padding:0 calc(", " / 2 - 1px);" ], N.variables.inputHeight)
269
266
  }), N.variables.inputHeight, N.variables.focusShadow, (0, N.pickVariant)("$disabled", {
270
267
  false: (0, N.pick)({
271
268
  enterprise: (0, _.css)([ "color:", ";transition:background-color 0.2s,border 0.2s,box-shadow 0.2s,text-decoration 0.2s;&:hover{background-color:", ";border-color:", ";color:", ";}&:active{background-color:", ";transition:none;}&:focus{color:", ";}" ], (0,
@@ -420,12 +417,12 @@
420
417
  var G = D().div.withConfig({
421
418
  displayName: "OptionStyles__StyledDiv",
422
419
  componentId: "q275d9-2"
423
- })([ "padding:", ";word-break:break-word;word-wrap:break-word;" ], (0, N.pick)({
420
+ })([ "", ";word-break:break-word;word-wrap:break-word;" ], (0, N.pick)({
424
421
  prisma: {
425
- compact: (0, _.css)([ "6px ", "" ], N.variables.spacingSmall),
426
- comfortable: (0, _.css)([ "10px ", "" ], N.variables.spacingSmall)
422
+ compact: (0, _.css)([ "padding:6px ", ";" ], N.variables.spacingSmall),
423
+ comfortable: (0, _.css)([ "padding:10px ", ";" ], N.variables.spacingSmall)
427
424
  },
428
- enterprise: (0, _.css)([ "6px ", "" ], N.variables.spacingSmall)
425
+ enterprise: (0, _.css)([ "padding:6px ", ";" ], N.variables.spacingSmall)
429
426
  }));
430
427
  // CONCATENATED MODULE: ./src/DualListbox/ListboxContext.tsx
431
428
  /**