@splunk/react-ui 4.30.0 → 4.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ButtonSimple.js CHANGED
@@ -9,26 +9,26 @@
9
9
  /******/ (() => {
10
10
  /******/ // getDefaultExport function for compatibility with non-harmony modules
11
11
  /******/ r.n = e => {
12
- /******/ var o = e && e.__esModule ?
12
+ /******/ var a = e && e.__esModule ?
13
13
  /******/ () => e["default"]
14
14
  /******/ : () => e
15
15
  /******/;
16
- r.d(o, {
17
- a: o
16
+ r.d(a, {
17
+ a
18
18
  });
19
- /******/ return o;
19
+ /******/ return a;
20
20
  /******/ };
21
21
  /******/ })();
22
22
  /******/
23
23
  /******/ /* webpack/runtime/define property getters */
24
24
  /******/ (() => {
25
25
  /******/ // define getter functions for harmony exports
26
- /******/ r.d = (e, o) => {
27
- /******/ for (var a in o) {
28
- /******/ if (r.o(o, a) && !r.o(e, a)) {
29
- /******/ Object.defineProperty(e, a, {
26
+ /******/ r.d = (e, a) => {
27
+ /******/ for (var o in a) {
28
+ /******/ if (r.o(a, o) && !r.o(e, o)) {
29
+ /******/ Object.defineProperty(e, o, {
30
30
  enumerable: true,
31
- get: o[a]
31
+ get: a[o]
32
32
  });
33
33
  /******/ }
34
34
  /******/ }
@@ -61,11 +61,11 @@
61
61
  r.r(e);
62
62
  // EXPORTS
63
63
  r.d(e, {
64
- default: () => /* reexport */ Z
64
+ default: () => /* reexport */ lr
65
65
  });
66
66
  // CONCATENATED MODULE: external "react"
67
- const o = require("react");
68
- var a = r.n(o);
67
+ const a = require("react");
68
+ var o = r.n(a);
69
69
  // CONCATENATED MODULE: external "prop-types"
70
70
  const i = require("prop-types");
71
71
  var t = r.n(i);
@@ -78,81 +78,272 @@
78
78
  var c = r.n(s);
79
79
  // CONCATENATED MODULE: external "styled-components"
80
80
  const d = require("styled-components");
81
- var b = r.n(d);
81
+ var v = r.n(d);
82
82
  // CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
83
- const v = require("@splunk/react-ui/Clickable");
84
- var u = r.n(v);
83
+ const b = require("@splunk/react-ui/Clickable");
84
+ var u = r.n(b);
85
+ // CONCATENATED MODULE: external "lodash/merge"
86
+ const p = require("lodash/merge");
87
+ var f = r.n(p);
88
+ // CONCATENATED MODULE: ./src/ButtonSimple/mixin.ts
89
+ function g(r) {
90
+ "@babel/helpers - typeof";
91
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
92
+ g = function r(e) {
93
+ return typeof e;
94
+ };
95
+ } else {
96
+ g = function r(e) {
97
+ return e && typeof Symbol === "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
98
+ };
99
+ }
100
+ return g(r);
101
+ }
102
+ var y = [ "primary", "secondary", "destructive", "ghost" ];
103
+ /**
104
+ * These enterprise... values don't exist in Enterprise @splunk/themes
105
+ * They're provided here for TypeScript compatibility
106
+ */ var k = {
107
+ active: {
108
+ dark: "rgba(0, 0, 0, 0.2)",
109
+ light: "rgba(0, 0, 0, 0.07)"
110
+ },
111
+ hover: {
112
+ dark: "rgba(255, 255, 255, 0.05)",
113
+ light: "rgba(0, 0, 0, 0.03)"
114
+ },
115
+ selected: {
116
+ dark: "rgba(255, 255, 255, 0.1)",
117
+ light: "rgba(0, 0, 0, 0.04)"
118
+ }
119
+ };
120
+ var h = {
121
+ dark: "#272a2f",
122
+ light: "#eeeeee"
123
+ };
124
+ var m = {
125
+ dark: "rgba(255, 255, 255, 0.15)",
126
+ light: "rgba(0, 0, 0, 0.1)"
127
+ };
128
+ function C(r) {
129
+ var e = "transparent";
130
+ var a = "transparent";
131
+ var o = (0, n.pick)({
132
+ enterprise: m,
133
+ prisma: n.variables.interactiveColorBackgroundDisabled
134
+ });
135
+ var i = (0, n.pick)({
136
+ enterprise: {
137
+ dark: n.mixins.overlayColors(m.dark, k.selected.dark),
138
+ light: n.mixins.overlayColors(m.light, k.selected.light)
139
+ },
140
+ prisma: n.mixins.overlayColors(n.variables.interactiveColorBackgroundDisabled, n.variables.interactiveColorOverlaySelected)
141
+ });
142
+ var t = "transparent";
143
+ var l = "transparent";
144
+ var s;
145
+ var c;
146
+ var d = n.variables.contentColorActive;
147
+ var v = n.variables.contentColorDisabled;
148
+ switch (r) {
149
+ case "primary":
150
+ {
151
+ e = n.variables.interactiveColorPrimary;
152
+ a = (0, n.pick)({
153
+ enterprise: {
154
+ light: n.mixins.overlayColors(n.variables.interactiveColorPrimary, k.active.light),
155
+ dark: n.mixins.overlayColors(n.variables.interactiveColorPrimary, k.active.dark)
156
+ },
157
+ prisma: n.mixins.overlayColors(n.variables.interactiveColorPrimary, n.variables.interactiveColorOverlayActive)
158
+ });
159
+ t = (0, n.pick)({
160
+ enterprise: {
161
+ light: n.mixins.overlayColors(n.variables.interactiveColorPrimary, k.hover.light),
162
+ dark: n.mixins.overlayColors(n.variables.interactiveColorPrimary, k.hover.dark)
163
+ },
164
+ prisma: n.mixins.overlayColors(n.variables.interactiveColorPrimary, n.variables.interactiveColorOverlayHover)
165
+ });
166
+ l = (0, n.pick)({
167
+ enterprise: {
168
+ light: n.mixins.overlayColors(n.variables.interactiveColorPrimary, k.selected.light),
169
+ dark: n.mixins.overlayColors(n.variables.interactiveColorPrimary, k.selected.dark)
170
+ },
171
+ prisma: n.mixins.overlayColors(n.variables.interactiveColorPrimary, n.variables.interactiveColorOverlaySelected)
172
+ });
173
+ d = n.variables.contentColorInverted;
174
+ break;
175
+ }
176
+
177
+ case "destructive":
178
+ {
179
+ e = n.variables.accentColorNegative;
180
+ a = (0, n.pick)({
181
+ enterprise: {
182
+ light: n.mixins.overlayColors(n.variables.accentColorNegative, k.active.light),
183
+ dark: n.mixins.overlayColors(n.variables.accentColorNegative, k.active.dark)
184
+ },
185
+ prisma: n.mixins.overlayColors(n.variables.accentColorNegative, n.variables.interactiveColorOverlayActive)
186
+ });
187
+ t = (0, n.pick)({
188
+ enterprise: {
189
+ light: n.mixins.overlayColors(n.variables.accentColorNegative, k.hover.light),
190
+ dark: n.mixins.overlayColors(n.variables.accentColorNegative, k.hover.dark)
191
+ },
192
+ prisma: n.mixins.overlayColors(n.variables.accentColorNegative, n.variables.interactiveColorOverlayHover)
193
+ });
194
+ l = (0, n.pick)({
195
+ enterprise: {
196
+ light: n.mixins.overlayColors(n.variables.accentColorNegative, k.selected.light),
197
+ dark: n.mixins.overlayColors(n.variables.accentColorNegative, k.selected.dark)
198
+ },
199
+ prisma: n.mixins.overlayColors(n.variables.accentColorNegative, n.variables.interactiveColorOverlaySelected)
200
+ });
201
+ d = n.variables.contentColorInverted;
202
+ break;
203
+ }
204
+
205
+ case "secondary":
206
+ s = n.variables.interactiveColorBorder;
207
+ c = n.variables.interactiveColorBorderDisabled;
208
+ e = (0, n.pick)({
209
+ enterprise: h,
210
+ prisma: n.variables.interactiveColorBackground
211
+ });
212
+ a = (0, n.pick)({
213
+ enterprise: k.active,
214
+ prisma: n.variables.interactiveColorOverlayActive
215
+ });
216
+ t = (0, n.pick)({
217
+ enterprise: k.hover,
218
+ prisma: n.variables.interactiveColorOverlayHover
219
+ });
220
+ l = (0, n.pick)({
221
+ enterprise: k.selected,
222
+ prisma: n.variables.interactiveColorOverlaySelected
223
+ });
224
+ break;
225
+
226
+ case "ghost":
227
+ a = (0, n.pick)({
228
+ enterprise: k.active,
229
+ prisma: n.variables.interactiveColorOverlayActive
230
+ });
231
+ t = (0, n.pick)({
232
+ enterprise: k.hover,
233
+ prisma: n.variables.interactiveColorOverlayHover
234
+ });
235
+ l = (0, n.pick)({
236
+ enterprise: k.selected,
237
+ prisma: n.variables.interactiveColorOverlaySelected
238
+ });
239
+ break;
240
+
241
+ default:
242
+ }
243
+ var b = {
244
+ background: e,
245
+ backgroundActive: a,
246
+ backgroundDisabled: o,
247
+ backgroundDisabledSelected: i,
248
+ backgroundHover: t,
249
+ backgroundSelected: l,
250
+ borderColor: s,
251
+ borderColorDisabled: c,
252
+ color: d,
253
+ colorDisabled: v
254
+ };
255
+ return b;
256
+ }
257
+ function x(r, e) {
258
+ var a = typeof r === "string" && y.includes(r) ? r : undefined;
259
+ var o = {};
260
+ if (a && e !== undefined) {
261
+ o = e;
262
+ } else if (a === undefined && g(r) === "object" && e === undefined) {
263
+ o = r;
264
+ }
265
+ var i = C(a);
266
+ var t = f()(i, o), l = t.background, s = t.backgroundActive, c = t.backgroundDisabled, v = t.backgroundDisabledSelected, b = t.backgroundHover, u = t.backgroundSelected, p = t.borderColor, k = t.borderColorDisabled, h = t.color, m = t.colorDisabled;
267
+ var x = l != null && l !== "transparent";
268
+ return function() {
269
+ return (0, d.css)([ "border-radius:", ";", ";", " ", " cursor:pointer;position:relative;&:focus,&:hover{z-index:3;}&:not([disabled],[aria-disabled='true']){background-color:", ";color:", ";transition:background-color 0.2s,box-shadow 0.2s,text-decoration 0.2s;&:hover{background-color:", ";}&:active{background-color:", ";transition:none;}", "}&:focus{box-shadow:", ";}&[disabled],&[aria-disabled='true']{border-color:", ";color:", ";cursor:not-allowed;", "}" ], n.variables.borderRadius, (function() {
270
+ return p && (0, d.css)([ "border:1px solid ", ";" ], p);
271
+ }), (function(r) {
272
+ var e = r.$append;
273
+ return e && (0, d.css)([ "border-top-right-radius:0.1px;border-bottom-right-radius:0.1px;border-right:none;" ]);
274
+ }), (function(r) {
275
+ var e = r.$prepend;
276
+ return e && (0, d.css)([ "border-top-left-radius:0.1px;border-bottom-left-radius:0.1px;" ]);
277
+ }), l, h, b, s, (function(r) {
278
+ var e = r.$selected;
279
+ return e && (0, d.css)([ "background-color:", ";" ], u);
280
+ }), n.variables.focusShadow, k, m, (function(r) {
281
+ return x && (0, d.css)([ "background-color:", ";" ], r ? v
282
+ /* TODO: this isn't defined in SUI 5 themes yet */ : c);
283
+ }));
284
+ };
285
+ }
286
+ /* harmony default export */ const w = x;
85
287
  // CONCATENATED MODULE: ./src/ButtonSimple/prismaStyles.ts
86
- var p = (0, d.css)([ "", " cursor:pointer;position:relative;border-radius:", ";&:focus,&:hover{z-index:3;}" ], n.mixins.reset("block"), n.variables.borderRadius);
87
- /* Setting border-radius to 0.1px creates a rounded shadow, */ var f = (0, d.css)([ "", " ", "" ], (function(r) {
88
- var e = r.$append;
89
- return e && (0, d.css)([ "border-top-right-radius:0.1px;border-bottom-right-radius:0.1px;border-right:none;" ]);
90
- }), (function(r) {
91
- var e = r.$prepend;
92
- return e && (0, d.css)([ "border-top-left-radius:0.1px;border-bottom-left-radius:0.1px;" ]);
93
- }));
94
- var g = (0, d.css)([ "", " ", " ", " &:not([disabled],[aria-disabled='true']){color:", ";transition:background-color 0.2s,border 0.2s,box-shadow 0.2s,text-decoration 0.2s;&:hover{background-color:", ";border-color:", ";", "}", " ", " &:active{background-color:", ";transition:none;}&:focus{background-color:", ";&:active{background-color:", ";}}}&[disabled],&[aria-disabled='true']{border-color:", ";color:", ";cursor:not-allowed;", "}&:not([disabled]){&:focus{box-shadow:", ";}}" ], p, (0,
288
+ var S = (0, d.css)([ "", " &:not([disabled],[aria-disabled='true']){&:focus{background-color:", ";}&:hover{border-color:", ";", "}", " ", "}&[disabled],&[aria-disabled='true']{", "}" ], (0,
95
289
  n.pickVariant)("$variant", {
96
- prismaSecondary: (0, d.css)([ "font-weight:", ";" ], n.variables.fontWeightSemiBold),
97
- prismaDefault: (0, d.css)([ "border:1px solid ", ";font-weight:", ";" ], n.variables.interactiveColorBorder, n.variables.fontWeightSemiBold),
98
- prismaToggle: (0, d.css)([ "border:1px solid ", ";font-weight:normal;" ], n.variables.interactiveColorBorder)
99
- }), f, n.variables.contentColorActive, n.variables.interactiveColorOverlayHover, n.variables.interactiveColorBorderHover, (0,
290
+ prismaSecondary: (0, d.css)([ "", " font-weight:", ";" ], w("ghost"), n.variables.fontWeightSemiBold),
291
+ prismaDefault: (0, d.css)([ "", " font-weight:", ";" ], w("secondary", {
292
+ background: "transparent"
293
+ }), n.variables.fontWeightSemiBold),
294
+ prismaToggle: (0, d.css)([ "", " font-weight:normal;" ], w("secondary", {
295
+ background: "transparent"
296
+ }))
297
+ }), n.variables.interactiveColorOverlayHover, n.variables.interactiveColorBorderHover, (0,
100
298
  n.pickVariant)("$variant", {
101
299
  prismaSecondary: (0, d.css)([ "box-shadow:", ";" ], n.variables.hoverShadow),
102
300
  prismaDefault: (0, d.css)([ "box-shadow:", ";" ], n.variables.hoverShadow)
103
301
  }), (function(r) {
104
302
  var e = r.$selected;
105
- return e && (0, d.css)([ "background-color:", ";border-color:", ";&:hover{background-color:", ";}" ], n.variables.interactiveColorOverlaySelected, n.variables.interactiveColorBorderDisabled, n.mixins.overlayColors(n.variables.interactiveColorOverlaySelected, n.variables.interactiveColorOverlayHover));
303
+ return e && (0, d.css)([ "border-color:", ";&:hover{background-color:", ";}" ], n.variables.interactiveColorBorderDisabled, n.mixins.overlayColors(n.variables.interactiveColorOverlaySelected, n.variables.interactiveColorOverlayHover));
106
304
  }), (function(r) {
107
305
  var e = r.$error;
108
306
  return e && (0, d.css)([ "border-color:", ";&:hover{border-color:", ";}" ], n.variables.accentColorNegative, n.variables.accentColorNegative);
109
- }), n.variables.interactiveColorOverlayActive, n.variables.interactiveColorOverlayHover, n.variables.interactiveColorOverlayActive, n.variables.interactiveColorBorderDisabled, n.variables.contentColorDisabled, (function(r) {
307
+ }), (function(r) {
110
308
  var e = r.$selected;
111
309
  return e && (0, d.css)([ "background-color:", ";" ], n.mixins.overlayColors(n.variables.interactiveColorBackgroundDisabled, n.variables.interactiveColorOverlaySelected));
112
- }), n.variables.focusShadow);
113
- var y = (0, d.css)([ "&[disabled],&[aria-disabled='true']{border-color:", ";color:", ";background-color:", ";cursor:not-allowed;", "}" ], n.variables.interactiveColorBorderDisabled, n.variables.contentColorDisabled, n.variables.interactiveColorBackgroundDisabled, (function(r) {
114
- return r && (0, d.css)([ "background-color:", ";" ], n.mixins.overlayColors(n.variables.interactiveColorBackgroundDisabled, n.variables.interactiveColorOverlaySelected));
115
310
  }));
116
- var h = (0, d.css)([ "", " font-weight:", ";border-radius:", ";", " &:not([disabled],[aria-disabled='true']){color:", ";transition:background-color 0.2s,box-shadow 0.2s,text-decoration 0.2s;background-color:", ";&:hover,&:focus{background-color:", ";}&:hover{box-shadow:", ";}&:active{background-color:", ";transition:none;}}&:not([disabled]){&:focus{box-shadow:", ";}}", "" ], p, n.variables.fontWeightSemiBold, n.variables.borderRadius, f, n.variables.contentColorInverted, (0,
117
- n.pickVariant)("$selected", {
118
- false: (0, n.pickVariant)("$variant", {
119
- prismaPrimary: n.variables.interactiveColorPrimary,
120
- prismaDestructive: n.variables.accentColorNegative
121
- }),
122
- true: (0, n.pickVariant)("$variant", {
123
- prismaPrimary: n.mixins.overlayColors(n.variables.interactiveColorPrimary, n.variables.interactiveColorOverlaySelected),
124
- prismaDestructive: n.mixins.overlayColors(n.variables.accentColorNegative, n.variables.interactiveColorOverlaySelected)
125
- })
126
- }), (0, n.pickVariant)("$variant", {
311
+ var O = (0, d.css)([ "", " font-weight:", ";&:focus{background-color:", ";}&:hover{box-shadow:", ";}" ], (0,
312
+ n.pickVariant)("$variant", {
313
+ prismaPrimary: w("primary"),
314
+ prismaDestructive: w("destructive")
315
+ }), n.variables.fontWeightSemiBold, (0, n.pickVariant)("$variant", {
127
316
  prismaPrimary: n.mixins.overlayColors(n.variables.interactiveColorPrimary, n.variables.interactiveColorOverlayHover),
128
317
  prismaDestructive: n.mixins.overlayColors(n.variables.accentColorNegative, n.variables.interactiveColorOverlayHover)
129
- }), n.variables.hoverShadow, (0, n.pickVariant)("$variant", {
130
- prismaPrimary: n.mixins.overlayColors(n.variables.interactiveColorPrimary, n.variables.interactiveColorOverlayActive),
131
- prismaDestructive: n.mixins.overlayColors(n.variables.accentColorNegative, n.variables.interactiveColorOverlayActive)
132
- }), n.variables.focusShadow, y);
133
- var k = (0, d.css)([ "", " font-weight:", ";border-radius:", ";", " &:not([disabled],[aria-disabled='true']){color:", ";background-color:", ";transition:background-color 0.2s,box-shadow 0.2s,text-decoration 0.2s;", " &:hover{background-color:", ";box-shadow:", ";}&:active{background-color:", ";transition:none;}&:focus{background-color:", ";}}&:not([disabled]){&:focus{box-shadow:", ";}}", "" ], p, n.variables.fontWeightSemiBold, n.variables.borderRadius, f, n.variables.contentColorActive, n.variables.interactiveColorBackground, (function(r) {
134
- return r && (0, d.css)([ "background-color:", ";" ], n.mixins.overlayColors(n.variables.interactiveColorBackground, n.variables.interactiveColorOverlaySelected));
135
- }), n.mixins.overlayColors(n.variables.interactiveColorBackground, n.variables.interactiveColorOverlayHover), n.variables.hoverShadow, n.mixins.overlayColors(n.variables.interactiveColorBackground, n.variables.interactiveColorOverlayActive), n.mixins.overlayColors(n.variables.interactiveColorBackground, n.variables.interactiveColorOverlayHover), n.variables.focusShadow, y);
318
+ }), n.variables.hoverShadow);
319
+ var D = (0, d.css)([ "", " font-weight:", ";&:hover{box-shadow:", ";}&:focus{background-color:", ";}" ], w({
320
+ // this is intentional - the background had always been applying the $selected style
321
+ // since beccfde78f787861217353e9149ce213bee0270 so keeping this for visual consistency
322
+ background: n.mixins.overlayColors(n.variables.interactiveColorBackground, n.variables.interactiveColorOverlaySelected),
323
+ backgroundActive: n.mixins.overlayColors(n.variables.interactiveColorBackground, n.variables.interactiveColorOverlayActive),
324
+ backgroundHover: n.mixins.overlayColors(n.variables.interactiveColorBackground, n.variables.interactiveColorOverlayHover),
325
+ backgroundSelected: n.mixins.overlayColors(n.variables.interactiveColorBackground, n.variables.interactiveColorOverlaySelected)
326
+ }), n.variables.fontWeightSemiBold, n.variables.hoverShadow, n.mixins.overlayColors(n.variables.interactiveColorBackground, n.variables.interactiveColorOverlayHover));
136
327
  // CONCATENATED MODULE: ./src/ButtonSimple/enterpriseStyles.ts
137
- var m = "#1A8929";
328
+ var P = "#1A8929";
138
329
  // SUI-2439 to meet WCAG AA compliance
139
- var C = "#235823";
330
+ var $ = "#235823";
140
331
  // SUI-2439 to meet WCAG AA compliance
141
- var x = (0, d.css)([ "", " border-radius:", ";cursor:pointer;position:relative;&:focus{z-index:3;}" ], n.mixins.reset("block"), n.variables.borderRadius);
142
- var w = (0, d.css)([ "", " ", "" ], (function(r) {
332
+ var j = (0, d.css)([ "border-radius:", ";cursor:pointer;position:relative;&:focus{z-index:3;}" ], n.variables.borderRadius);
333
+ var B = (0, d.css)([ "", " ", "" ], (function(r) {
143
334
  var e = r.$append;
144
335
  return e && (0, d.css)([ "border-top-right-radius:0;border-bottom-right-radius:0;border-right:none;" ]);
145
336
  }), (function(r) {
146
337
  var e = r.$prepend;
147
338
  return e && (0, d.css)([ "border-top-left-radius:0;border-bottom-left-radius:0;" ]);
148
339
  }));
149
- var S = "inset 0 -1px 0 rgba(0, 0, 0, 0.1)";
150
- var O = "inset 0 1px 0 rgba(0, 0, 0, 0.1)";
151
- var D = (0, d.css)([ "", ";border:", ";", ";font-weight:", ";&:not([disabled],[aria-disabled='true']){background-color:", ";color:", ";transition:background-image 0.2s,border 0.2s,box-shadow 0.2s,text-decoration 0.2s;", ";", " &:hover{background-color:", ";box-shadow:", ";}&:active{transition:none;background-color:", ";border-color:", ";", ";}&:focus{", " ", "}}&:not([disabled]){&:focus{box-shadow:", ",", ";}}&[disabled],&[aria-disabled='true']{cursor:not-allowed;color:", ";background-color:", ";border-color:", ";", "}" ], x, (0,
340
+ var N = "inset 0 -1px 0 rgba(0, 0, 0, 0.1)";
341
+ var T = "inset 0 1px 0 rgba(0, 0, 0, 0.1)";
342
+ var H = (0, d.css)([ "", ";border:", ";", ";font-weight:", ";&:not([disabled],[aria-disabled='true']){background-color:", ";color:", ";transition:background-image 0.2s,border 0.2s,box-shadow 0.2s,text-decoration 0.2s;", ";", " &:hover{background-color:", ";box-shadow:", ";}&:active{transition:none;background-color:", ";border-color:", ";", ";}&:focus{", " ", "}}&:not([disabled]){&:focus{box-shadow:", ",", ";}}&[disabled],&[aria-disabled='true']{cursor:not-allowed;color:", ";background-color:", ";border-color:", ";", "}" ], j, (0,
152
343
  n.pick)({
153
344
  light: (0, d.css)([ "1px solid ", "" ], n.variables.gray60),
154
345
  dark: n.variables.border
155
- }), w, (0, n.pickVariant)("$variant", {
346
+ }), B, (0, n.pickVariant)("$variant", {
156
347
  enterpriseDefault: "normal",
157
348
  enterpriseSecondary: n.variables.fontWeightSemiBold
158
349
  }), (0, n.pick)({
@@ -162,13 +353,13 @@
162
353
  light: n.variables.gray45,
163
354
  dark: n.variables.white
164
355
  }), (0, n.pick)({
165
- light: (0, d.css)([ "box-shadow:", ";" ], S),
356
+ light: (0, d.css)([ "box-shadow:", ";" ], N),
166
357
  dark: (0, d.css)([ "box-shadow:inset 0 -1px 0 ", ";" ], n.variables.gray30)
167
358
  }), (function(r) {
168
359
  var e = r.$selected;
169
360
  return e && (0, d.css)([ "box-shadow:", ";background-color:", ";border-color:", ";" ], (0,
170
361
  n.pick)({
171
- light: O,
362
+ light: T,
172
363
  dark: (0, d.css)([ "inset 0 1px 0 ", "" ], n.variables.black)
173
364
  }), (0, n.pick)({
174
365
  light: n.variables.gray92,
@@ -181,7 +372,7 @@
181
372
  light: "#ebeeef",
182
373
  dark: n.variables.gray30
183
374
  }), (0, n.pick)({
184
- light: S,
375
+ light: N,
185
376
  dark: (0, d.css)([ "inset 0 -1px 0 ", "" ], n.variables.gray25)
186
377
  }), (0, n.pick)({
187
378
  light: n.variables.gray92,
@@ -194,17 +385,17 @@
194
385
  }), (function(r) {
195
386
  var e = r.$append;
196
387
  return e && (0, d.css)([ "box-shadow:", ",", ",inset -1px 0 0 ", ";" ], (0, n.pick)({
197
- light: S,
388
+ light: N,
198
389
  dark: (0, d.css)([ "inset 0 -1px 0 ", "" ], n.variables.gray30)
199
390
  }), n.variables.focusShadow, n.variables.borderColor);
200
391
  }), (function(r) {
201
- var e = r.$append, o = r.$selected;
202
- return e && o && (0, n.pick)({
203
- light: (0, d.css)([ "box-shadow:", ",", ",", ",inset -1px 0 0 ", ";" ], S, O, n.variables.focusShadow, n.variables.borderColor),
392
+ var e = r.$append, a = r.$selected;
393
+ return e && a && (0, n.pick)({
394
+ light: (0, d.css)([ "box-shadow:", ",", ",", ",inset -1px 0 0 ", ";" ], N, T, n.variables.focusShadow, n.variables.borderColor),
204
395
  dark: (0, d.css)([ "box-shadow:inset 0 1px 0 ", ",", ",inset -1px 0 0 ", ";" ], n.variables.black, n.variables.focusShadow, n.variables.borderColor)
205
396
  });
206
397
  }), (0, n.pick)({
207
- light: S,
398
+ light: N,
208
399
  dark: (0, d.css)([ "inset 0 -1px 0 ", "" ], n.variables.gray30)
209
400
  }), n.variables.focusShadow, n.variables.textDisabledColor, (0, n.pick)({
210
401
  light: n.variables.gray96,
@@ -215,33 +406,33 @@
215
406
  }), (function(r) {
216
407
  var e = r.$selected;
217
408
  return e && (0, n.pick)({
218
- light: (0, d.css)([ "box-shadow:", ";background-color:", ";border-color:", ";" ], O, n.variables.gray92, n.variables.gray80),
409
+ light: (0, d.css)([ "box-shadow:", ";background-color:", ";border-color:", ";" ], T, n.variables.gray92, n.variables.gray80),
219
410
  dark: (0, d.css)([ "box-shadow:inset 0 1px 0 ", ";background-color:", ";border-color:", ";" ], n.variables.black, n.variables.gray22, n.variables.gray20)
220
411
  });
221
412
  }));
222
- var $ = "inset 0 -2px 0 rgba(0, 0, 0, 0.1)";
223
- var P = "inset 0 2px 0 rgba(0, 0, 0, 0.1)";
224
- var B = (0, d.css)([ "", ";font-weight:", ";", " &:not([disabled],[aria-disabled='true']){background-color:", ";color:", ";box-shadow:", ";transition:background-image 0.2s,border 0.2s,box-shadow 0.2s,text-decoration 0.2s;", " ", " &:hover{background-color:", ";}&:active{background-color:", ";transition:none;}&:focus{&:active{background-color:", ";transition:none;}}}&:not([disabled]){&:focus{box-shadow:", ",", ";}}&[disabled],&[aria-disabled='true']{color:", ";background-color:", ";cursor:not-allowed;", "}" ], x, n.variables.fontWeightSemiBold, w, m, n.variables.white, $, (function(r) {
413
+ var _ = "inset 0 -2px 0 rgba(0, 0, 0, 0.1)";
414
+ var A = "inset 0 2px 0 rgba(0, 0, 0, 0.1)";
415
+ var R = (0, d.css)([ "", ";font-weight:", ";", " &:not([disabled],[aria-disabled='true']){background-color:", ";color:", ";box-shadow:", ";transition:background-image 0.2s,border 0.2s,box-shadow 0.2s,text-decoration 0.2s;", " ", " &:hover{background-color:", ";}&:active{background-color:", ";transition:none;}&:focus{&:active{background-color:", ";transition:none;}}}&:not([disabled]){&:focus{box-shadow:", ",", ";}}&[disabled],&[aria-disabled='true']{color:", ";background-color:", ";cursor:not-allowed;", "}" ], j, n.variables.fontWeightSemiBold, B, P, n.variables.white, _, (function(r) {
225
416
  var e = r.$selected;
226
- return e && (0, d.css)([ "box-shadow:", ";background-color:", ";" ], P, C);
417
+ return e && (0, d.css)([ "box-shadow:", ";background-color:", ";" ], A, $);
227
418
  }), (function(r) {
228
419
  var e = r.$prepend;
229
- return e && (0, d.css)([ "border-left:1px solid ", ";" ], m);
230
- }), n.variables.brandColorD50, n.variables.brandColorD30, n.variables.brandColorD30, $, n.variables.focusShadow, n.variables.brandColorL30, n.variables.brandColorL10, (function(r) {
420
+ return e && (0, d.css)([ "border-left:1px solid ", ";" ], P);
421
+ }), n.variables.brandColorD50, n.variables.brandColorD30, n.variables.brandColorD30, _, n.variables.focusShadow, n.variables.brandColorL30, n.variables.brandColorL10, (function(r) {
231
422
  var e = r.$selected;
232
- return e && (0, d.css)([ "box-shadow:", ";background-color:", ";" ], P, n.variables.brandColorD20);
423
+ return e && (0, d.css)([ "box-shadow:", ";background-color:", ";" ], A, n.variables.brandColorD20);
233
424
  }));
234
- var j = (0, d.css)([ "", ";font-weight:", ";", " &:not([disabled],[aria-disabled='true']){background-color:", ";color:", ";box-shadow:", ";transition:background-image 0.2s,border 0.2s,box-shadow 0.2s,text-decoration 0.2s;", " ", " &:hover{background-color:", ";}&:active{background-color:", ";transition:none;}&:focus{&:active{background-color:", ";transition:none;}}}&:not([disabled]){&:focus{box-shadow:", ",", ";}}&[disabled],&[aria-disabled='true']{color:", ";background-color:", ";cursor:not-allowed;", "}" ], x, n.variables.fontWeightSemiBold, w, n.variables.errorColorD10, n.variables.white, $, (function(r) {
425
+ var E = (0, d.css)([ "", ";font-weight:", ";", " &:not([disabled],[aria-disabled='true']){background-color:", ";color:", ";box-shadow:", ";transition:background-image 0.2s,border 0.2s,box-shadow 0.2s,text-decoration 0.2s;", " ", " &:hover{background-color:", ";}&:active{background-color:", ";transition:none;}&:focus{&:active{background-color:", ";transition:none;}}}&:not([disabled]){&:focus{box-shadow:", ",", ";}}&[disabled],&[aria-disabled='true']{color:", ";background-color:", ";cursor:not-allowed;", "}" ], j, n.variables.fontWeightSemiBold, B, n.variables.errorColorD10, n.variables.white, _, (function(r) {
235
426
  var e = r.$selected;
236
- return e && (0, d.css)([ "box-shadow:", ";background-color:", ";" ], P, n.variables.errorColorD30);
427
+ return e && (0, d.css)([ "box-shadow:", ";background-color:", ";" ], A, n.variables.errorColorD30);
237
428
  }), (function(r) {
238
429
  var e = r.$prepend;
239
430
  return e && (0, d.css)([ "border-left:1px solid ", ";" ], n.variables.errorColorD30);
240
- }), n.variables.errorColorD30, n.variables.errorColorD40, n.variables.errorColorD40, $, n.variables.focusShadow, n.variables.errorColorL10, n.variables.errorColorD10, (function(r) {
431
+ }), n.variables.errorColorD30, n.variables.errorColorD40, n.variables.errorColorD40, _, n.variables.focusShadow, n.variables.errorColorL10, n.variables.errorColorD10, (function(r) {
241
432
  var e = r.$selected;
242
- return e && (0, d.css)([ "box-shadow:", ";background-color:", ";" ], P, n.variables.errorColorD40);
433
+ return e && (0, d.css)([ "box-shadow:", ";background-color:", ";" ], A, n.variables.errorColorD40);
243
434
  }));
244
- var T = (0, d.css)([ "", ";color:", ";border:1px solid transparent;&:not([disabled],[aria-disabled='true']){transition:background-color 0.2s,border 0.2s,box-shadow 0.2s,text-decoration 0.2s;", " &:hover{color:", ";background-color:", ";border-color:", ";}", " &:focus{color:", ";}&:active,&[aria-expanded='true']{background-color:", ";transition:none;}}&:not([disabled]){&:focus{box-shadow:", ";}}&[disabled],&[aria-disabled='true']{color:", ";cursor:not-allowed;", "}" ], x, (0,
435
+ var q = (0, d.css)([ "", ";color:", ";border:1px solid transparent;&:not([disabled],[aria-disabled='true']){transition:background-color 0.2s,border 0.2s,box-shadow 0.2s,text-decoration 0.2s;", " &:hover{color:", ";background-color:", ";border-color:", ";}", " &:focus{color:", ";}&:active,&[aria-expanded='true']{background-color:", ";transition:none;}}&:not([disabled]){&:focus{box-shadow:", ";}}&[disabled],&[aria-disabled='true']{color:", ";cursor:not-allowed;", "}" ], j, (0,
245
436
  n.pick)({
246
437
  light: n.variables.gray45,
247
438
  dark: n.variables.white
@@ -268,98 +459,102 @@
268
459
  return e && (0, d.css)([ "border-color:", ";" ], n.variables.borderLightColor);
269
460
  }));
270
461
  // CONCATENATED MODULE: ./src/ButtonSimple/ButtonSimpleStyles.ts
271
- var _ = b()(u()).withConfig({
462
+ var V = v()(u()).withConfig({
272
463
  displayName: "ButtonSimpleStyles__StyledClickable",
273
464
  componentId: "vlarwe-0"
274
- })([ "", "" ], (0, n.pickVariant)("$variant", {
275
- enterpriseDefault: D,
276
- enterpriseSecondary: D,
277
- enterprisePrimary: B,
278
- enterpriseError: j,
279
- enterpriseDestructive: j,
280
- enterprisePill: T,
281
- prismaDefault: g,
282
- prismaDestructive: h,
283
- prismaPrimary: h,
284
- prismaSecondary: g,
285
- prismaToggle: g,
286
- prismaFlat: k
465
+ })([ "", " ", "" ], n.mixins.reset("block"), (0, n.pick)({
466
+ enterprise: (0, n.pickVariant)("$variant", {
467
+ enterpriseDefault: H,
468
+ enterpriseSecondary: H,
469
+ enterprisePrimary: R,
470
+ enterpriseError: E,
471
+ enterpriseDestructive: E,
472
+ enterprisePill: q
473
+ }),
474
+ prisma: (0, n.pickVariant)("$variant", {
475
+ prismaDefault: S,
476
+ prismaDestructive: O,
477
+ prismaPrimary: O,
478
+ prismaSecondary: S,
479
+ prismaToggle: S,
480
+ prismaFlat: D
481
+ })
287
482
  }));
288
483
  // CONCATENATED MODULE: ./src/ButtonSimple/ButtonSimple.tsx
289
- function R(r) {
484
+ function W(r) {
290
485
  "@babel/helpers - typeof";
291
486
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
292
- R = function r(e) {
487
+ W = function r(e) {
293
488
  return typeof e;
294
489
  };
295
490
  } else {
296
- R = function r(e) {
491
+ W = function r(e) {
297
492
  return e && typeof Symbol === "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
298
493
  };
299
494
  }
300
- return R(r);
495
+ return W(r);
301
496
  }
302
- function A() {
303
- A = Object.assign || function(r) {
497
+ function I() {
498
+ I = Object.assign || function(r) {
304
499
  for (var e = 1; e < arguments.length; e++) {
305
- var o = arguments[e];
306
- for (var a in o) {
307
- if (Object.prototype.hasOwnProperty.call(o, a)) {
308
- r[a] = o[a];
500
+ var a = arguments[e];
501
+ for (var o in a) {
502
+ if (Object.prototype.hasOwnProperty.call(a, o)) {
503
+ r[o] = a[o];
309
504
  }
310
505
  }
311
506
  }
312
507
  return r;
313
508
  };
314
- return A.apply(this, arguments);
509
+ return I.apply(this, arguments);
315
510
  }
316
- function E(r, e) {
511
+ function L(r, e) {
317
512
  if (r == null) return {};
318
- var o = H(r, e);
319
- var a, i;
513
+ var a = M(r, e);
514
+ var o, i;
320
515
  if (Object.getOwnPropertySymbols) {
321
516
  var t = Object.getOwnPropertySymbols(r);
322
517
  for (i = 0; i < t.length; i++) {
323
- a = t[i];
324
- if (e.indexOf(a) >= 0) continue;
325
- if (!Object.prototype.propertyIsEnumerable.call(r, a)) continue;
326
- o[a] = r[a];
518
+ o = t[i];
519
+ if (e.indexOf(o) >= 0) continue;
520
+ if (!Object.prototype.propertyIsEnumerable.call(r, o)) continue;
521
+ a[o] = r[o];
327
522
  }
328
523
  }
329
- return o;
524
+ return a;
330
525
  }
331
- function H(r, e) {
526
+ function M(r, e) {
332
527
  if (r == null) return {};
333
- var o = {};
334
- var a = Object.keys(r);
528
+ var a = {};
529
+ var o = Object.keys(r);
335
530
  var i, t;
336
- for (t = 0; t < a.length; t++) {
337
- i = a[t];
531
+ for (t = 0; t < o.length; t++) {
532
+ i = o[t];
338
533
  if (e.indexOf(i) >= 0) continue;
339
- o[i] = r[i];
534
+ a[i] = r[i];
340
535
  }
341
- return o;
536
+ return a;
342
537
  }
343
- function N(r, e) {
538
+ function z(r, e) {
344
539
  if (!(r instanceof e)) {
345
540
  throw new TypeError("Cannot call a class as a function");
346
541
  }
347
542
  }
348
- function V(r, e) {
349
- for (var o = 0; o < e.length; o++) {
350
- var a = e[o];
351
- a.enumerable = a.enumerable || false;
352
- a.configurable = true;
353
- if ("value" in a) a.writable = true;
354
- Object.defineProperty(r, a.key, a);
543
+ function F(r, e) {
544
+ for (var a = 0; a < e.length; a++) {
545
+ var o = e[a];
546
+ o.enumerable = o.enumerable || false;
547
+ o.configurable = true;
548
+ if ("value" in o) o.writable = true;
549
+ Object.defineProperty(r, o.key, o);
355
550
  }
356
551
  }
357
- function q(r, e, o) {
358
- if (e) V(r.prototype, e);
359
- if (o) V(r, o);
552
+ function G(r, e, a) {
553
+ if (e) F(r.prototype, e);
554
+ if (a) F(r, a);
360
555
  return r;
361
556
  }
362
- function W(r, e) {
557
+ function J(r, e) {
363
558
  if (typeof e !== "function" && e !== null) {
364
559
  throw new TypeError("Super expression must either be null or a function");
365
560
  }
@@ -370,41 +565,41 @@
370
565
  configurable: true
371
566
  }
372
567
  });
373
- if (e) I(r, e);
568
+ if (e) K(r, e);
374
569
  }
375
- function I(r, e) {
376
- I = Object.setPrototypeOf || function r(e, o) {
377
- e.__proto__ = o;
570
+ function K(r, e) {
571
+ K = Object.setPrototypeOf || function r(e, a) {
572
+ e.__proto__ = a;
378
573
  return e;
379
574
  };
380
- return I(r, e);
575
+ return K(r, e);
381
576
  }
382
- function L(r) {
383
- var e = F();
384
- return function o() {
385
- var a = G(r), i;
577
+ function Q(r) {
578
+ var e = Y();
579
+ return function a() {
580
+ var o = Z(r), i;
386
581
  if (e) {
387
- var t = G(this).constructor;
388
- i = Reflect.construct(a, arguments, t);
582
+ var t = Z(this).constructor;
583
+ i = Reflect.construct(o, arguments, t);
389
584
  } else {
390
- i = a.apply(this, arguments);
585
+ i = o.apply(this, arguments);
391
586
  }
392
- return M(this, i);
587
+ return U(this, i);
393
588
  };
394
589
  }
395
- function M(r, e) {
396
- if (e && (R(e) === "object" || typeof e === "function")) {
590
+ function U(r, e) {
591
+ if (e && (W(e) === "object" || typeof e === "function")) {
397
592
  return e;
398
593
  }
399
- return z(r);
594
+ return X(r);
400
595
  }
401
- function z(r) {
596
+ function X(r) {
402
597
  if (r === void 0) {
403
598
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
404
599
  }
405
600
  return r;
406
601
  }
407
- function F() {
602
+ function Y() {
408
603
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
409
604
  if (Reflect.construct.sham) return false;
410
605
  if (typeof Proxy === "function") return true;
@@ -415,26 +610,26 @@
415
610
  return false;
416
611
  }
417
612
  }
418
- function G(r) {
419
- G = Object.setPrototypeOf ? Object.getPrototypeOf : function r(e) {
613
+ function Z(r) {
614
+ Z = Object.setPrototypeOf ? Object.getPrototypeOf : function r(e) {
420
615
  return e.__proto__ || Object.getPrototypeOf(e);
421
616
  };
422
- return G(r);
617
+ return Z(r);
423
618
  }
424
- function J(r, e, o) {
619
+ function rr(r, e, a) {
425
620
  if (e in r) {
426
621
  Object.defineProperty(r, e, {
427
- value: o,
622
+ value: a,
428
623
  enumerable: true,
429
624
  configurable: true,
430
625
  writable: true
431
626
  });
432
627
  } else {
433
- r[e] = o;
628
+ r[e] = a;
434
629
  }
435
630
  return r;
436
631
  }
437
- var K = {
632
+ var er = {
438
633
  action: t().string,
439
634
  appearance: t().oneOf([ "default", "secondary", "primary", "destructive", "pill", "toggle", "flat" ]),
440
635
  append: t().bool,
@@ -449,7 +644,7 @@
449
644
  splunkTheme: t().object,
450
645
  to: t().string
451
646
  };
452
- var Q = {
647
+ var ar = {
453
648
  appearance: "default",
454
649
  append: false,
455
650
  disabled: false,
@@ -459,8 +654,8 @@
459
654
  prepend: false,
460
655
  selected: false
461
656
  };
462
- var U = function r(e, o) {
463
- var a = {
657
+ var or = function r(e, a) {
658
+ var o = {
464
659
  default: "enterpriseDefault",
465
660
  destructive: "enterpriseError",
466
661
  primary: "enterprisePrimary",
@@ -478,28 +673,28 @@
478
673
  toggle: "prismaToggle",
479
674
  flat: "prismaFlat"
480
675
  };
481
- if (o === "enterprise") {
482
- return a[e];
676
+ if (a === "enterprise") {
677
+ return o[e];
483
678
  }
484
679
  return i[e];
485
680
  };
486
- var X = function(r) {
487
- W(o, r);
488
- var e = L(o);
489
- function o() {
681
+ var ir = function(r) {
682
+ J(a, r);
683
+ var e = Q(a);
684
+ function a() {
490
685
  var r;
491
- N(this, o);
492
- for (var a = arguments.length, i = new Array(a), t = 0; t < a; t++) {
686
+ z(this, a);
687
+ for (var o = arguments.length, i = new Array(o), t = 0; t < o; t++) {
493
688
  i[t] = arguments[t];
494
689
  }
495
690
  r = e.call.apply(e, [ this ].concat(i));
496
- J(z(r), "component", null);
497
- J(z(r), "handleMount", (function(e) {
691
+ rr(X(r), "component", null);
692
+ rr(X(r), "handleMount", (function(e) {
498
693
  r.component = e;
499
694
  }));
500
695
  return r;
501
696
  }
502
- q(o, [ {
697
+ G(a, [ {
503
698
  key: "focus",
504
699
  /**
505
700
  * Places focus on the button.
@@ -511,35 +706,35 @@
511
706
  }, {
512
707
  key: "render",
513
708
  value: function r() {
514
- var e = this.props, o = e.appearance, i = e.append, t = e.children, n = e.onClick, s = e.disabled, d = e.error, b = e.prepend, v = e.selected, u = e.splunkTheme, p = E(e, [ "appearance", "append", "children", "onClick", "disabled", "error", "prepend", "selected", "splunkTheme" ]);
515
- var f = o;
709
+ var e = this.props, a = e.appearance, i = e.append, t = e.children, n = e.onClick, s = e.disabled, d = e.error, v = e.prepend, b = e.selected, u = e.splunkTheme, p = L(e, [ "appearance", "append", "children", "onClick", "disabled", "error", "prepend", "selected", "splunkTheme" ]);
710
+ var f = a;
516
711
  if (u.isEnterprise) {
517
- f = d ? "destructive" : o;
712
+ f = d ? "destructive" : a;
518
713
  }
519
714
 
520
- return a().createElement(_, A({
715
+ return o().createElement(V, I({
521
716
  "aria-disabled": s === "dimmed" || undefined,
522
717
  "aria-invalid": d,
523
718
  "data-test": "button-simple",
524
719
  disabled: s === true,
525
720
  ref: this.handleMount,
526
- $variant: U(f, u.family),
721
+ $variant: or(f, u.family),
527
722
  $append: i,
528
- $prepend: b,
529
- $selected: v,
723
+ $prepend: v,
724
+ $selected: b,
530
725
  $error: d
531
726
  }, p, {
532
727
  onClick: n && !s ? n : undefined
533
- }), t, v && a().createElement(c(), null, (0, l._)("Selected")));
728
+ }), t, b && o().createElement(c(), null, (0, l._)("Selected")));
534
729
  }
535
730
  } ]);
536
- return o;
537
- }(o.Component);
538
- J(X, "defaultProps", Q);
539
- J(X, "propTypes", K);
540
- var Y = (0, n.withSplunkTheme)(X);
541
- Y.propTypes = X.propTypes;
542
- /* harmony default export */ const Z = Y;
731
+ return a;
732
+ }(a.Component);
733
+ rr(ir, "defaultProps", ar);
734
+ rr(ir, "propTypes", er);
735
+ var tr = (0, n.withSplunkTheme)(ir);
736
+ tr.propTypes = ir.propTypes;
737
+ /* harmony default export */ const lr = tr;
543
738
  // CONCATENATED MODULE: ./src/ButtonSimple/index.ts
544
739
  module.exports = e;
545
740
  /******/})();