@splunk/react-ui 4.43.0 → 4.44.1

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
@@ -70,10 +70,10 @@
70
70
  const i = require("prop-types");
71
71
  var t = r.n(i);
72
72
  // CONCATENATED MODULE: external "@splunk/themes"
73
- const l = require("@splunk/themes");
73
+ const n = require("@splunk/themes");
74
74
  // CONCATENATED MODULE: external "styled-components"
75
- const n = require("styled-components");
76
- var s = r.n(n);
75
+ const l = require("styled-components");
76
+ var s = r.n(l);
77
77
  // CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
78
78
  const c = require("@splunk/react-ui/Clickable");
79
79
  var b = r.n(c);
@@ -93,121 +93,121 @@
93
93
  function f(r) {
94
94
  var e = "transparent";
95
95
  var a = "transparent";
96
- var o = (0, l.pick)({
96
+ var o = (0, n.pick)({
97
97
  enterprise: {
98
- light: l.variables.gray96,
99
- dark: l.variables.gray30
98
+ light: n.variables.gray96,
99
+ dark: n.variables.gray30
100
100
  },
101
- prisma: l.variables.interactiveColorBackgroundDisabled
101
+ prisma: n.variables.interactiveColorBackgroundDisabled
102
102
  });
103
- var i = (0, l.pick)({
103
+ var i = (0, n.pick)({
104
104
  enterprise: {
105
- dark: l.variables.gray22,
106
- light: l.variables.gray92
105
+ dark: n.variables.gray22,
106
+ light: n.variables.gray92
107
107
  },
108
- prisma: l.mixins.overlayColors(l.variables.interactiveColorBackgroundDisabled, l.variables.interactiveColorOverlaySelected)
108
+ prisma: n.mixins.overlayColors(n.variables.interactiveColorBackgroundDisabled, n.variables.interactiveColorOverlaySelected)
109
109
  });
110
110
  var t = "transparent";
111
- var n = "transparent";
111
+ var l = "transparent";
112
112
  var s;
113
113
  var c;
114
- var b = l.variables.contentColorActive;
115
- var d = l.variables.contentColorDisabled;
114
+ var b = n.variables.contentColorActive;
115
+ var d = n.variables.contentColorDisabled;
116
116
  switch (r) {
117
117
  case "primary":
118
118
  {
119
- e = (0, l.pick)({
119
+ e = (0, n.pick)({
120
120
  enterprise: "#1A8929",
121
- prisma: l.variables.interactiveColorPrimary
121
+ prisma: n.variables.interactiveColorPrimary
122
122
  });
123
- a = (0, l.pick)({
124
- enterprise: l.variables.brandColorD30,
125
- prisma: l.mixins.overlayColors(l.variables.interactiveColorPrimary, l.variables.interactiveColorOverlayActive)
123
+ a = (0, n.pick)({
124
+ enterprise: n.variables.brandColorD30,
125
+ prisma: n.mixins.overlayColors(n.variables.interactiveColorPrimary, n.variables.interactiveColorOverlayActive)
126
126
  });
127
- t = (0, l.pick)({
128
- enterprise: l.variables.brandColorD50,
129
- prisma: l.mixins.overlayColors(l.variables.interactiveColorPrimary, l.variables.interactiveColorOverlayHover)
127
+ t = (0, n.pick)({
128
+ enterprise: n.variables.brandColorD50,
129
+ prisma: n.mixins.overlayColors(n.variables.interactiveColorPrimary, n.variables.interactiveColorOverlayHover)
130
130
  });
131
- n = (0, l.pick)({
131
+ l = (0, n.pick)({
132
132
  enterprise: "#235823",
133
- prisma: l.mixins.overlayColors(l.variables.interactiveColorPrimary, l.variables.interactiveColorOverlaySelected)
133
+ prisma: n.mixins.overlayColors(n.variables.interactiveColorPrimary, n.variables.interactiveColorOverlaySelected)
134
134
  });
135
- b = l.variables.contentColorInverted;
135
+ b = n.variables.contentColorInverted;
136
136
  break;
137
137
  }
138
138
 
139
139
  case "destructive":
140
140
  {
141
- e = l.variables.accentColorNegative;
142
- a = (0, l.pick)({
143
- enterprise: l.variables.errorColorD40,
144
- prisma: l.mixins.overlayColors(l.variables.accentColorNegative, l.variables.interactiveColorOverlayActive)
141
+ e = n.variables.accentColorNegative;
142
+ a = (0, n.pick)({
143
+ enterprise: n.variables.errorColorD40,
144
+ prisma: n.mixins.overlayColors(n.variables.accentColorNegative, n.variables.interactiveColorOverlayActive)
145
145
  });
146
- t = (0, l.pick)({
147
- enterprise: l.variables.errorColorD30,
148
- prisma: l.mixins.overlayColors(l.variables.accentColorNegative, l.variables.interactiveColorOverlayHover)
146
+ t = (0, n.pick)({
147
+ enterprise: n.variables.errorColorD30,
148
+ prisma: n.mixins.overlayColors(n.variables.accentColorNegative, n.variables.interactiveColorOverlayHover)
149
149
  });
150
- n = (0, l.pick)({
151
- enterprise: l.variables.errorColorD30,
152
- prisma: l.mixins.overlayColors(l.variables.accentColorNegative, l.variables.interactiveColorOverlaySelected)
150
+ l = (0, n.pick)({
151
+ enterprise: n.variables.errorColorD30,
152
+ prisma: n.mixins.overlayColors(n.variables.accentColorNegative, n.variables.interactiveColorOverlaySelected)
153
153
  });
154
- b = l.variables.contentColorInverted;
154
+ b = n.variables.contentColorInverted;
155
155
  break;
156
156
  }
157
157
 
158
158
  case "secondary":
159
- s = l.variables.interactiveColorBorder;
160
- c = l.variables.interactiveColorBorderDisabled;
161
- e = (0, l.pick)({
159
+ s = n.variables.interactiveColorBorder;
160
+ c = n.variables.interactiveColorBorderDisabled;
161
+ e = (0, n.pick)({
162
162
  enterprise: {
163
- light: l.variables.gray98,
164
- dark: l.variables.gray45
163
+ light: n.variables.gray98,
164
+ dark: n.variables.gray45
165
165
  },
166
- prisma: l.variables.interactiveColorBackground
166
+ prisma: n.variables.interactiveColorBackground
167
167
  });
168
- a = (0, l.pick)({
168
+ a = (0, n.pick)({
169
169
  enterprise: {
170
- light: l.variables.gray92,
171
- dark: l.variables.gray22
170
+ light: n.variables.gray92,
171
+ dark: n.variables.gray22
172
172
  },
173
- prisma: l.variables.interactiveColorOverlayActive
173
+ prisma: n.variables.interactiveColorOverlayActive
174
174
  });
175
- t = (0, l.pick)({
175
+ t = (0, n.pick)({
176
176
  enterprise: {
177
177
  light: "#ebeeef",
178
- dark: l.variables.gray30
178
+ dark: n.variables.gray30
179
179
  },
180
- prisma: l.variables.interactiveColorOverlayHover
180
+ prisma: n.variables.interactiveColorOverlayHover
181
181
  });
182
- n = (0, l.pick)({
182
+ l = (0, n.pick)({
183
183
  enterprise: {
184
- light: l.variables.gray92,
185
- dark: l.variables.gray22
184
+ light: n.variables.gray92,
185
+ dark: n.variables.gray22
186
186
  },
187
- prisma: l.variables.interactiveColorOverlaySelected
187
+ prisma: n.variables.interactiveColorOverlaySelected
188
188
  });
189
189
  break;
190
190
 
191
191
  case "subtle":
192
192
  // TODO: SUI-6304 this should be interactiveColorAccent once that variable is introduced in SUI 5
193
- b = l.variables.interactiveColorPrimary;
194
- a = (0, l.pick)({
193
+ b = n.variables.interactiveColorPrimary;
194
+ a = (0, n.pick)({
195
195
  enterprise: {
196
- light: l.variables.gray92,
197
- dark: l.variables.gray22
196
+ light: n.variables.gray92,
197
+ dark: n.variables.gray22
198
198
  },
199
- prisma: l.variables.interactiveColorOverlayActive
199
+ prisma: n.variables.interactiveColorOverlayActive
200
200
  });
201
- t = (0, l.pick)({
201
+ t = (0, n.pick)({
202
202
  enterprise: {
203
- light: l.variables.linkColor,
204
- dark: l.variables.white
203
+ light: n.variables.linkColor,
204
+ dark: n.variables.white
205
205
  },
206
- prisma: l.variables.interactiveColorOverlayHover
206
+ prisma: n.variables.interactiveColorOverlayHover
207
207
  });
208
- n = (0, l.pick)({
208
+ l = (0, n.pick)({
209
209
  enterprise: "transparent",
210
- prisma: l.variables.interactiveColorOverlaySelected
210
+ prisma: n.variables.interactiveColorOverlaySelected
211
211
  });
212
212
  break;
213
213
 
@@ -219,7 +219,7 @@
219
219
  backgroundDisabled: o,
220
220
  backgroundDisabledSelected: i,
221
221
  backgroundHover: t,
222
- backgroundSelected: n,
222
+ backgroundSelected: l,
223
223
  borderColor: s,
224
224
  borderColorDisabled: c,
225
225
  color: b,
@@ -237,216 +237,216 @@
237
237
  }
238
238
  var i = f(a);
239
239
  var t = v()(i, o), s = t.background, c = t.backgroundActive, b = t.backgroundDisabled, d = t.backgroundDisabledSelected, g = t.backgroundHover, y = t.backgroundSelected, k = t.borderColor, h = t.borderColorDisabled, m = t.color, C = t.colorDisabled;
240
- var w = s != null && s !== "transparent";
240
+ var x = s != null && s !== "transparent";
241
241
  return function() {
242
- return (0, n.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;}", "}&:not([disabled]){&:focus{box-shadow:", ";}}&[disabled],&[aria-disabled='true']{border-color:", ";color:", ";cursor:not-allowed;", "}" ], l.variables.borderRadius, (function() {
243
- return k && (0, n.css)([ "border:1px solid ", ";" ], k);
242
+ return (0, l.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;}", "}&:not([disabled]){&:focus{box-shadow:", ";}}&[disabled],&[aria-disabled='true']{border-color:", ";color:", ";", "}" ], n.variables.borderRadius, (function() {
243
+ return k && (0, l.css)([ "border:1px solid ", ";" ], k);
244
244
  }), (function(r) {
245
245
  var e = r.$append;
246
- return e && (0, n.css)([ "border-top-right-radius:0.1px;border-bottom-right-radius:0.1px;border-right:none;" ]);
246
+ return e && (0, l.css)([ "border-top-right-radius:0.1px;border-bottom-right-radius:0.1px;border-right:none;" ]);
247
247
  }), (function(r) {
248
248
  var e = r.$prepend;
249
- return e && (0, n.css)([ "border-top-left-radius:0.1px;border-bottom-left-radius:0.1px;" ]);
249
+ return e && (0, l.css)([ "border-top-left-radius:0.1px;border-bottom-left-radius:0.1px;" ]);
250
250
  }), s, m, g, c, (function(r) {
251
251
  var e = r.$selected;
252
- return e && (0, n.css)([ "background-color:", ";" ], y);
253
- }), l.variables.focusShadow, h, C, (function(r) {
252
+ return e && (0, l.css)([ "background-color:", ";" ], y);
253
+ }), n.variables.focusShadow, h, C, (function(r) {
254
254
  var e = r.$selected;
255
- return w && (0, n.css)([ "background-color:", ";" ], e ? d : b);
255
+ return x && (0, l.css)([ "background-color:", ";" ], e ? d : b);
256
256
  }));
257
257
  };
258
258
  }
259
259
  /* harmony default export */ const y = g;
260
260
  // CONCATENATED MODULE: ./src/ButtonSimple/prismaStyles.ts
261
- var k = (0, n.css)([ "&:not([disabled],[aria-disabled='true']){&:focus{background-color:", ";}&:hover{border-color:", ";", "}", " ", "}", " &[disabled],&[aria-disabled='true']{", "}" ], l.variables.interactiveColorOverlayHover, l.variables.interactiveColorBorderHover, (0,
262
- l.pickVariant)("$variant", {
263
- secondary: (0, n.css)([ "box-shadow:", ";" ], l.variables.hoverShadow),
264
- default: (0, n.css)([ "box-shadow:", ";" ], l.variables.hoverShadow),
265
- subtle: (0, n.css)([ "box-shadow:", ";" ], l.variables.hoverShadow)
261
+ var k = (0, l.css)([ "&:not([disabled],[aria-disabled='true']){&:focus{background-color:", ";}&:hover{border-color:", ";", "}", " ", "}", " &[disabled],&[aria-disabled='true']{", "}" ], n.variables.interactiveColorOverlayHover, n.variables.interactiveColorBorderHover, (0,
262
+ n.pickVariant)("$variant", {
263
+ secondary: (0, l.css)([ "box-shadow:", ";" ], n.variables.hoverShadow),
264
+ default: (0, l.css)([ "box-shadow:", ";" ], n.variables.hoverShadow),
265
+ subtle: (0, l.css)([ "box-shadow:", ";" ], n.variables.hoverShadow)
266
266
  }), (function(r) {
267
267
  var e = r.$selected;
268
- return e && (0, n.css)([ "border-color:", ";&:hover{background-color:", ";}" ], l.variables.interactiveColorBorderDisabled, l.mixins.overlayColors(l.variables.interactiveColorOverlaySelected, l.variables.interactiveColorOverlayHover));
268
+ return e && (0, l.css)([ "border-color:", ";&:hover{background-color:", ";}" ], n.variables.interactiveColorBorderDisabled, n.mixins.overlayColors(n.variables.interactiveColorOverlaySelected, n.variables.interactiveColorOverlayHover));
269
269
  }), (function(r) {
270
270
  var e = r.$error;
271
- return e && (0, n.css)([ "border-color:", ";&:hover{border-color:", ";}" ], l.variables.accentColorNegative, l.variables.accentColorNegative);
272
- }), (0, l.pickVariant)("$variant", {
273
- secondary: (0, n.css)([ "", " font-weight:", ";" ], y("subtle", {
274
- color: l.variables.contentColorActive
275
- }), l.variables.fontWeightSemiBold),
276
- subtle: (0, n.css)([ "", " font-weight:", ";" ], y("subtle", {
277
- color: l.variables.contentColorActive
278
- }), l.variables.fontWeightSemiBold),
279
- default: (0, n.css)([ "", " font-weight:", ";" ], y("secondary", {
271
+ return e && (0, l.css)([ "border-color:", ";&:hover{border-color:", ";}" ], n.variables.accentColorNegative, n.variables.accentColorNegative);
272
+ }), (0, n.pickVariant)("$variant", {
273
+ secondary: (0, l.css)([ "", " font-weight:", ";" ], y("subtle", {
274
+ color: n.variables.contentColorActive
275
+ }), n.variables.fontWeightSemiBold),
276
+ subtle: (0, l.css)([ "", " font-weight:", ";" ], y("subtle", {
277
+ color: n.variables.contentColorActive
278
+ }), n.variables.fontWeightSemiBold),
279
+ default: (0, l.css)([ "", " font-weight:", ";" ], y("secondary", {
280
280
  background: "transparent"
281
- }), l.variables.fontWeightSemiBold),
282
- toggle: (0, n.css)([ "", " font-weight:normal;" ], y("secondary", {
281
+ }), n.variables.fontWeightSemiBold),
282
+ toggle: (0, l.css)([ "", " font-weight:normal;" ], y("secondary", {
283
283
  background: "transparent"
284
284
  }))
285
285
  }), (function(r) {
286
286
  var e = r.$selected;
287
- return e && (0, n.css)([ "background-color:", ";" ], l.mixins.overlayColors(l.variables.interactiveColorBackgroundDisabled, l.variables.interactiveColorOverlaySelected));
287
+ return e && (0, l.css)([ "background-color:", ";" ], n.mixins.overlayColors(n.variables.interactiveColorBackgroundDisabled, n.variables.interactiveColorOverlaySelected));
288
288
  }));
289
- var h = (0, n.css)([ "&:not([disabled],[aria-disabled='true']){&:focus{background-color:", ";}&:hover{box-shadow:", ";}}", " font-weight:", ";" ], (0,
290
- l.pickVariant)("$variant", {
291
- primary: l.mixins.overlayColors(l.variables.interactiveColorPrimary, l.variables.interactiveColorOverlayHover),
292
- destructive: l.mixins.overlayColors(l.variables.accentColorNegative, l.variables.interactiveColorOverlayHover),
293
- flat: l.mixins.overlayColors(l.variables.interactiveColorBackground, l.variables.interactiveColorOverlayHover)
294
- }), l.variables.hoverShadow, (0, l.pickVariant)("$variant", {
289
+ var h = (0, l.css)([ "&:not([disabled],[aria-disabled='true']){&:focus{background-color:", ";}&:hover{box-shadow:", ";}}", " font-weight:", ";" ], (0,
290
+ n.pickVariant)("$variant", {
291
+ primary: n.mixins.overlayColors(n.variables.interactiveColorPrimary, n.variables.interactiveColorOverlayHover),
292
+ destructive: n.mixins.overlayColors(n.variables.accentColorNegative, n.variables.interactiveColorOverlayHover),
293
+ flat: n.mixins.overlayColors(n.variables.interactiveColorBackground, n.variables.interactiveColorOverlayHover)
294
+ }), n.variables.hoverShadow, (0, n.pickVariant)("$variant", {
295
295
  primary: y("primary", {
296
296
  // this is intentional - the disabled background had always been applying the $selected style
297
297
  // since beccfde78f787861217353e9149ce213bee0270 so keeping this for visual consistency
298
- backgroundDisabled: l.mixins.overlayColors(l.variables.interactiveColorBackgroundDisabled, l.variables.interactiveColorOverlaySelected)
298
+ backgroundDisabled: n.mixins.overlayColors(n.variables.interactiveColorBackgroundDisabled, n.variables.interactiveColorOverlaySelected)
299
299
  }),
300
300
  destructive: y("destructive", {
301
301
  // this is intentional - the disabled background had always been applying the $selected style
302
302
  // since beccfde78f787861217353e9149ce213bee0270 so keeping this for visual consistency
303
- backgroundDisabled: l.mixins.overlayColors(l.variables.interactiveColorBackgroundDisabled, l.variables.interactiveColorOverlaySelected)
303
+ backgroundDisabled: n.mixins.overlayColors(n.variables.interactiveColorBackgroundDisabled, n.variables.interactiveColorOverlaySelected)
304
304
  }),
305
305
  flat: y({
306
306
  // this is intentional - the background had always been applying the $selected style
307
307
  // since beccfde78f787861217353e9149ce213bee0270 so keeping this for visual consistency
308
- background: l.mixins.overlayColors(l.variables.interactiveColorBackground, l.variables.interactiveColorOverlaySelected),
309
- backgroundActive: l.mixins.overlayColors(l.variables.interactiveColorBackground, l.variables.interactiveColorOverlayActive),
308
+ background: n.mixins.overlayColors(n.variables.interactiveColorBackground, n.variables.interactiveColorOverlaySelected),
309
+ backgroundActive: n.mixins.overlayColors(n.variables.interactiveColorBackground, n.variables.interactiveColorOverlayActive),
310
310
  // this is intentional - the disabled background had always been applying the $selected style
311
311
  // since beccfde78f787861217353e9149ce213bee0270 so keeping this for visual consistency
312
- backgroundDisabled: l.mixins.overlayColors(l.variables.interactiveColorBackgroundDisabled, l.variables.interactiveColorOverlaySelected),
313
- backgroundHover: l.mixins.overlayColors(l.variables.interactiveColorBackground, l.variables.interactiveColorOverlayHover),
314
- backgroundSelected: l.mixins.overlayColors(l.variables.interactiveColorBackground, l.variables.interactiveColorOverlaySelected)
312
+ backgroundDisabled: n.mixins.overlayColors(n.variables.interactiveColorBackgroundDisabled, n.variables.interactiveColorOverlaySelected),
313
+ backgroundHover: n.mixins.overlayColors(n.variables.interactiveColorBackground, n.variables.interactiveColorOverlayHover),
314
+ backgroundSelected: n.mixins.overlayColors(n.variables.interactiveColorBackground, n.variables.interactiveColorOverlaySelected)
315
315
  })
316
- }), l.variables.fontWeightSemiBold);
316
+ }), n.variables.fontWeightSemiBold);
317
317
  // CONCATENATED MODULE: ./src/ButtonSimple/enterpriseStyles.ts
318
318
  var m = "#1A8929";
319
319
  // SUI-2439 to meet WCAG AA compliance
320
320
  var C = "#235823";
321
321
  // SUI-2439 to meet WCAG AA compliance
322
- var w = (0, n.css)([ "border-radius:", ";cursor:pointer;position:relative;&:focus{z-index:3;}" ], l.variables.borderRadius);
323
- var x = (0, n.css)([ "", " ", "" ], (function(r) {
322
+ var x = (0, l.css)([ "border-radius:", ";cursor:pointer;position:relative;&:focus{z-index:3;}" ], n.variables.borderRadius);
323
+ var w = (0, l.css)([ "", " ", "" ], (function(r) {
324
324
  var e = r.$append;
325
- return e && (0, n.css)([ "border-top-right-radius:0;border-bottom-right-radius:0;border-right:none;" ]);
325
+ return e && (0, l.css)([ "border-top-right-radius:0;border-bottom-right-radius:0;border-right:none;" ]);
326
326
  }), (function(r) {
327
327
  var e = r.$prepend;
328
- return e && (0, n.css)([ "border-top-left-radius:0;border-bottom-left-radius:0;" ]);
328
+ return e && (0, l.css)([ "border-top-left-radius:0;border-bottom-left-radius:0;" ]);
329
329
  }));
330
330
  var S = "inset 0 -1px 0 rgba(0, 0, 0, 0.1)";
331
331
  var O = "inset 0 1px 0 rgba(0, 0, 0, 0.1)";
332
- var D = (0, n.css)([ "", ";border:1px solid;border-color:", ";", ";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:", ";", ";}&:active{transition:none;background-color:", ";border-color:", ";", ";}&:focus{", " ", "}}&:not([disabled]){&:focus{", "}}&[disabled],&[aria-disabled='true']{cursor:not-allowed;color:", ";background-color:", ";border-color:", ";", "}" ], w, (0,
333
- l.pick)({
334
- light: l.variables.gray60,
335
- dark: l.variables.borderColor
336
- }), x, (0, l.pickVariant)("$variant", {
332
+ var D = (0, l.css)([ "", ";border:1px solid;border-color:", ";", ";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:", ";", ";}&:active{transition:none;background-color:", ";border-color:", ";", ";}&:focus{", " ", "}}&:not([disabled]){&:focus{", "}}&[disabled],&[aria-disabled='true']{color:", ";background-color:", ";border-color:", ";", "}" ], x, (0,
333
+ n.pick)({
334
+ light: n.variables.gray60,
335
+ dark: n.variables.borderColor
336
+ }), w, (0, n.pickVariant)("$variant", {
337
337
  default: "normal",
338
- secondary: l.variables.fontWeightSemiBold
339
- }), (0, l.pick)({
340
- light: l.variables.gray98,
341
- dark: l.variables.gray45
342
- }), (0, l.pick)({
343
- light: l.variables.gray45,
344
- dark: l.variables.white
345
- }), (0, l.pick)({
346
- light: (0, n.css)([ "box-shadow:", ";" ], S),
347
- dark: (0, n.css)([ "box-shadow:inset 0 -1px 0 ", ";" ], l.variables.gray30)
338
+ secondary: n.variables.fontWeightSemiBold
339
+ }), (0, n.pick)({
340
+ light: n.variables.gray98,
341
+ dark: n.variables.gray45
342
+ }), (0, n.pick)({
343
+ light: n.variables.gray45,
344
+ dark: n.variables.white
345
+ }), (0, n.pick)({
346
+ light: (0, l.css)([ "box-shadow:", ";" ], S),
347
+ dark: (0, l.css)([ "box-shadow:inset 0 -1px 0 ", ";" ], n.variables.gray30)
348
348
  }), (function(r) {
349
349
  var e = r.$selected;
350
- return e && (0, n.css)([ "", ";background-color:", ";border-color:", ";" ], (0,
351
- l.pick)({
352
- light: (0, n.css)([ "box-shadow:", ";" ], O),
353
- dark: (0, n.css)([ "box-shadow:inset 0 1px 0 ", ";" ], l.variables.black)
354
- }), (0, l.pick)({
355
- light: l.variables.gray92,
356
- dark: l.variables.gray22
357
- }), (0, l.pick)({
358
- light: l.variables.gray60,
359
- dark: l.variables.gray20
350
+ return e && (0, l.css)([ "", ";background-color:", ";border-color:", ";" ], (0,
351
+ n.pick)({
352
+ light: (0, l.css)([ "box-shadow:", ";" ], O),
353
+ dark: (0, l.css)([ "box-shadow:inset 0 1px 0 ", ";" ], n.variables.black)
354
+ }), (0, n.pick)({
355
+ light: n.variables.gray92,
356
+ dark: n.variables.gray22
357
+ }), (0, n.pick)({
358
+ light: n.variables.gray60,
359
+ dark: n.variables.gray20
360
360
  }));
361
- }), (0, l.pick)({
361
+ }), (0, n.pick)({
362
362
  light: "#ebeeef",
363
- dark: l.variables.gray30
364
- }), (0, l.pick)({
365
- light: (0, n.css)([ "box-shadow:", ";" ], S),
366
- dark: (0, n.css)([ "box-shadow:inset 0 -1px 0 ", ";" ], l.variables.gray25)
367
- }), (0, l.pick)({
368
- light: l.variables.gray92,
369
- dark: l.variables.gray22
370
- }), (0, l.pick)({
371
- light: l.variables.gray60,
372
- dark: l.variables.gray20
373
- }), (0, l.pick)({
374
- dark: (0, n.css)([ "box-shadow:inset 0 -1px 0 ", ";" ], l.variables.gray22)
363
+ dark: n.variables.gray30
364
+ }), (0, n.pick)({
365
+ light: (0, l.css)([ "box-shadow:", ";" ], S),
366
+ dark: (0, l.css)([ "box-shadow:inset 0 -1px 0 ", ";" ], n.variables.gray25)
367
+ }), (0, n.pick)({
368
+ light: n.variables.gray92,
369
+ dark: n.variables.gray22
370
+ }), (0, n.pick)({
371
+ light: n.variables.gray60,
372
+ dark: n.variables.gray20
373
+ }), (0, n.pick)({
374
+ dark: (0, l.css)([ "box-shadow:inset 0 -1px 0 ", ";" ], n.variables.gray22)
375
375
  }), (function(r) {
376
376
  var e = r.$append;
377
- return e && (0, l.pick)({
378
- light: (0, n.css)([ "box-shadow:", " ", ",inset -1px 0 0 ", ";" ], S, l.variables.focusShadow, l.variables.borderColor),
379
- dark: (0, n.css)([ "box-shadow:inset 0 -1px 0 ", " ", ",inset -1px 0 0 ", ";" ], l.variables.gray30, l.variables.focusShadow, l.variables.borderColor)
377
+ return e && (0, n.pick)({
378
+ light: (0, l.css)([ "box-shadow:", " ", ",inset -1px 0 0 ", ";" ], S, n.variables.focusShadow, n.variables.borderColor),
379
+ dark: (0, l.css)([ "box-shadow:inset 0 -1px 0 ", " ", ",inset -1px 0 0 ", ";" ], n.variables.gray30, n.variables.focusShadow, n.variables.borderColor)
380
380
  });
381
381
  }), (function(r) {
382
382
  var e = r.$append, a = r.$selected;
383
- return e && a && (0, l.pick)({
384
- light: (0, n.css)([ "box-shadow:", ",", ",", ",inset -1px 0 0 ", ";" ], S, O, l.variables.focusShadow, l.variables.borderColor),
385
- dark: (0, n.css)([ "box-shadow:inset 0 1px 0 ", ",", ",inset -1px 0 0 ", ";" ], l.variables.black, l.variables.focusShadow, l.variables.borderColor)
383
+ return e && a && (0, n.pick)({
384
+ light: (0, l.css)([ "box-shadow:", ",", ",", ",inset -1px 0 0 ", ";" ], S, O, n.variables.focusShadow, n.variables.borderColor),
385
+ dark: (0, l.css)([ "box-shadow:inset 0 1px 0 ", ",", ",inset -1px 0 0 ", ";" ], n.variables.black, n.variables.focusShadow, n.variables.borderColor)
386
386
  });
387
- }), (0, l.pick)({
388
- light: (0, n.css)([ "box-shadow:", ",", ";" ], S, l.variables.focusShadow),
389
- dark: (0, n.css)([ "box-shadow:inset 0 -1px 0 ", ",", ";" ], l.variables.gray30, l.variables.focusShadow)
390
- }), l.variables.textDisabledColor, (0, l.pick)({
391
- light: l.variables.gray96,
392
- dark: l.variables.gray30
393
- }), (0, l.pick)({
394
- light: l.variables.borderLightColor,
395
- dark: l.variables.gray30
387
+ }), (0, n.pick)({
388
+ light: (0, l.css)([ "box-shadow:", ",", ";" ], S, n.variables.focusShadow),
389
+ dark: (0, l.css)([ "box-shadow:inset 0 -1px 0 ", ",", ";" ], n.variables.gray30, n.variables.focusShadow)
390
+ }), n.variables.textDisabledColor, (0, n.pick)({
391
+ light: n.variables.gray96,
392
+ dark: n.variables.gray30
393
+ }), (0, n.pick)({
394
+ light: n.variables.borderLightColor,
395
+ dark: n.variables.gray30
396
396
  }), (function(r) {
397
397
  var e = r.$selected;
398
- return e && (0, l.pick)({
399
- light: (0, n.css)([ "box-shadow:", ";background-color:", ";border-color:", ";" ], O, l.variables.gray92, l.variables.gray80),
400
- dark: (0, n.css)([ "box-shadow:inset 0 1px 0 ", ";background-color:", ";border-color:", ";" ], l.variables.black, l.variables.gray22, l.variables.gray20)
398
+ return e && (0, n.pick)({
399
+ light: (0, l.css)([ "box-shadow:", ";background-color:", ";border-color:", ";" ], O, n.variables.gray92, n.variables.gray80),
400
+ dark: (0, l.css)([ "box-shadow:inset 0 1px 0 ", ";background-color:", ";border-color:", ";" ], n.variables.black, n.variables.gray22, n.variables.gray20)
401
401
  });
402
402
  }));
403
403
  var $ = "inset 0 -2px 0 rgba(0, 0, 0, 0.1)";
404
404
  var j = "inset 0 2px 0 rgba(0, 0, 0, 0.1)";
405
- var B = (0, n.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;", "}" ], w, l.variables.fontWeightSemiBold, x, m, l.variables.white, $, (function(r) {
405
+ var B = (0, l.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:", ";", "}" ], x, n.variables.fontWeightSemiBold, w, m, n.variables.white, $, (function(r) {
406
406
  var e = r.$selected;
407
- return e && (0, n.css)([ "box-shadow:", ";background-color:", ";" ], j, C);
407
+ return e && (0, l.css)([ "box-shadow:", ";background-color:", ";" ], j, C);
408
408
  }), (function(r) {
409
409
  var e = r.$prepend;
410
- return e && (0, n.css)([ "border-left:1px solid ", ";" ], m);
411
- }), l.variables.brandColorD50, l.variables.brandColorD30, l.variables.brandColorD30, $, l.variables.focusShadow, l.variables.brandColorL30, l.variables.brandColorL10, (function(r) {
410
+ return e && (0, l.css)([ "border-left:1px solid ", ";" ], m);
411
+ }), n.variables.brandColorD50, n.variables.brandColorD30, n.variables.brandColorD30, $, n.variables.focusShadow, n.variables.brandColorL30, n.variables.brandColorL10, (function(r) {
412
412
  var e = r.$selected;
413
- return e && (0, n.css)([ "box-shadow:", ";background-color:", ";" ], j, l.variables.brandColorD20);
413
+ return e && (0, l.css)([ "box-shadow:", ";background-color:", ";" ], j, n.variables.brandColorD20);
414
414
  }));
415
- var P = (0, n.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;", "}" ], w, l.variables.fontWeightSemiBold, x, l.variables.errorColorD10, l.variables.white, $, (function(r) {
415
+ var P = (0, l.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:", ";", "}" ], x, n.variables.fontWeightSemiBold, w, n.variables.errorColorD10, n.variables.white, $, (function(r) {
416
416
  var e = r.$selected;
417
- return e && (0, n.css)([ "box-shadow:", ";background-color:", ";" ], j, l.variables.errorColorD30);
417
+ return e && (0, l.css)([ "box-shadow:", ";background-color:", ";" ], j, n.variables.errorColorD30);
418
418
  }), (function(r) {
419
419
  var e = r.$prepend;
420
- return e && (0, n.css)([ "border-left:1px solid ", ";" ], l.variables.errorColorD30);
421
- }), l.variables.errorColorD30, l.variables.errorColorD40, l.variables.errorColorD40, $, l.variables.focusShadow, l.variables.errorColorL10, l.variables.errorColorD10, (function(r) {
420
+ return e && (0, l.css)([ "border-left:1px solid ", ";" ], n.variables.errorColorD30);
421
+ }), n.variables.errorColorD30, n.variables.errorColorD40, n.variables.errorColorD40, $, n.variables.focusShadow, n.variables.errorColorL10, n.variables.errorColorD10, (function(r) {
422
422
  var e = r.$selected;
423
- return e && (0, n.css)([ "box-shadow:", ";background-color:", ";" ], j, l.variables.errorColorD40);
423
+ return e && (0, l.css)([ "box-shadow:", ";background-color:", ";" ], j, n.variables.errorColorD40);
424
424
  }));
425
- var A = (0, n.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;", "}" ], w, (0,
426
- l.pick)({
427
- light: l.variables.gray45,
428
- dark: l.variables.white
425
+ var A = (0, l.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:", ";", "}" ], x, (0,
426
+ n.pick)({
427
+ light: n.variables.gray45,
428
+ dark: n.variables.white
429
429
  }), (function(r) {
430
430
  var e = r.$selected;
431
- return e && (0, n.css)([ "border-color:", ";" ], l.variables.accentColor);
432
- }), (0, l.pick)({
433
- light: l.variables.linkColor,
434
- dark: l.variables.white
435
- }), l.variables.backgroundColorHover, (0, l.pick)({
436
- light: l.variables.gray60,
437
- dark: l.variables.borderColor
431
+ return e && (0, l.css)([ "border-color:", ";" ], n.variables.accentColor);
432
+ }), (0, n.pick)({
433
+ light: n.variables.linkColor,
434
+ dark: n.variables.white
435
+ }), n.variables.backgroundColorHover, (0, n.pick)({
436
+ light: n.variables.gray60,
437
+ dark: n.variables.borderColor
438
438
  }), (function(r) {
439
439
  var e = r.$error;
440
- return e && (0, n.css)([ "&,&:hover{color:", ";}" ], l.variables.errorColor);
441
- }), (0, l.pick)({
442
- light: l.variables.linkColor,
443
- dark: l.variables.white
444
- }), (0, l.pick)({
445
- light: l.variables.gray92,
446
- dark: l.variables.gray22
447
- }), l.variables.focusShadow, l.variables.textDisabledColor, (function(r) {
440
+ return e && (0, l.css)([ "&,&:hover{color:", ";}" ], n.variables.errorColor);
441
+ }), (0, n.pick)({
442
+ light: n.variables.linkColor,
443
+ dark: n.variables.white
444
+ }), (0, n.pick)({
445
+ light: n.variables.gray92,
446
+ dark: n.variables.gray22
447
+ }), n.variables.focusShadow, n.variables.textDisabledColor, (function(r) {
448
448
  var e = r.$selected;
449
- return e && (0, n.css)([ "border-color:", ";" ], l.variables.borderLightColor);
449
+ return e && (0, l.css)([ "border-color:", ";" ], n.variables.borderLightColor);
450
450
  }));
451
451
  // CONCATENATED MODULE: ./src/ButtonSimple/ButtonSimpleStyles.ts
452
452
  var H = s()(b()).withConfig({
@@ -454,10 +454,10 @@
454
454
  componentId: "vlarwe-0"
455
455
  })([ "", " ", "" ], (function(r) {
456
456
  var e = r.to;
457
- return e ? (0, n.css)([ "", " align-items:center;justify-content:center;" ], l.mixins.reset("flex")) : (0,
458
- n.css)([ "", "" ], l.mixins.reset("block"));
459
- }), (0, l.pick)({
460
- enterprise: (0, l.pickVariant)("$variant", {
457
+ return e ? (0, l.css)([ "", " align-items:center;justify-content:center;" ], n.mixins.reset("flex")) : (0,
458
+ l.css)([ "", "" ], n.mixins.reset("block"));
459
+ }), (0, n.pick)({
460
+ enterprise: (0, n.pickVariant)("$variant", {
461
461
  // the four main styles
462
462
  primary: B,
463
463
  secondary: D,
@@ -471,7 +471,7 @@
471
471
  toggle: D,
472
472
  flat: D
473
473
  }),
474
- prisma: (0, l.pickVariant)("$variant", {
474
+ prisma: (0, n.pickVariant)("$variant", {
475
475
  // the four main styles
476
476
  primary: h,
477
477
  secondary: k,
@@ -646,7 +646,7 @@
646
646
  var ir = [].concat(ar, [ "toggle", "flat" ]);
647
647
  // Array.from(new Set... is used to de-duplicate the appearances
648
648
  var tr = Array.from(new Set([].concat(Q(or), Q(ir))));
649
- var lr = {
649
+ var nr = {
650
650
  action: t().string,
651
651
  appearance: t().oneOf([ "default", "secondary", "primary", "destructive", "subtle", "pill", "toggle", "flat" ]),
652
652
  append: t().bool,
@@ -661,7 +661,7 @@
661
661
  splunkTheme: t().object,
662
662
  to: t().string
663
663
  };
664
- var nr = {
664
+ var lr = {
665
665
  appearance: "default",
666
666
  append: false,
667
667
  disabled: false,
@@ -716,26 +716,26 @@
716
716
  }, {
717
717
  key: "render",
718
718
  value: function r() {
719
- var e = this.props, a = e.append, i = e.children, t = e.error, l = e.prepend, n = e.selected, s = N(e, [ "append", "children", "error", "prepend", "selected" ]);
719
+ var e = this.props, a = e.append, i = e.children, t = e.error, n = e.prepend, l = e.selected, s = N(e, [ "append", "children", "error", "prepend", "selected" ]);
720
720
 
721
721
  return o().createElement(H, _({
722
722
  "aria-invalid": t,
723
- "aria-pressed": n,
723
+ "aria-pressed": l,
724
724
  "data-test": "button-simple",
725
725
  ref: this.handleMount,
726
726
  $variant: this.getVariant(),
727
727
  $append: a,
728
- $prepend: l,
729
- $selected: n || false,
728
+ $prepend: n,
729
+ $selected: l || false,
730
730
  $error: t
731
731
  }, s), i);
732
732
  }
733
733
  } ]);
734
734
  return a;
735
735
  }(a.Component);
736
- G(sr, "defaultProps", nr);
737
- G(sr, "propTypes", lr);
738
- var cr = (0, l.withSplunkTheme)(sr);
736
+ G(sr, "defaultProps", lr);
737
+ G(sr, "propTypes", nr);
738
+ var cr = (0, n.withSplunkTheme)(sr);
739
739
  cr.propTypes = sr.propTypes;
740
740
  /* harmony default export */ const br = cr;
741
741
  // only for styled-components that wrap ButtonSimple