@atlaskit/button 17.17.3 → 17.19.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 (72) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/dist/cjs/containers/button-group.js +6 -1
  3. package/dist/cjs/new-button/containers/split-button/split-button.js +9 -2
  4. package/dist/cjs/new-button/variants/default/button.js +8 -1
  5. package/dist/cjs/new-button/variants/default/link.js +8 -1
  6. package/dist/cjs/new-button/variants/default/use-default-button.js +7 -1
  7. package/dist/cjs/new-button/variants/icon/button.js +6 -1
  8. package/dist/cjs/new-button/variants/icon/link.js +6 -1
  9. package/dist/cjs/new-button/variants/icon/use-icon-button.js +7 -1
  10. package/dist/cjs/new-button/variants/shared/constants.js +7 -0
  11. package/dist/cjs/new-button/variants/shared/loading-overlay.js +4 -3
  12. package/dist/cjs/new-button/variants/shared/use-button-base.js +54 -2
  13. package/dist/cjs/old-button/button.js +1 -1
  14. package/dist/cjs/old-button/custom-theme-button/custom-theme-button.js +1 -1
  15. package/dist/cjs/old-button/custom-theme-button/theme.js +1 -1
  16. package/dist/cjs/old-button/shared/button-base.js +12 -3
  17. package/dist/cjs/old-button/shared/css.js +4 -3
  18. package/dist/es2019/containers/button-group.js +6 -1
  19. package/dist/es2019/new-button/containers/split-button/split-button.js +8 -2
  20. package/dist/es2019/new-button/variants/default/button.js +7 -0
  21. package/dist/es2019/new-button/variants/default/link.js +7 -0
  22. package/dist/es2019/new-button/variants/default/use-default-button.js +7 -1
  23. package/dist/es2019/new-button/variants/icon/button.js +5 -0
  24. package/dist/es2019/new-button/variants/icon/link.js +5 -0
  25. package/dist/es2019/new-button/variants/icon/use-icon-button.js +7 -1
  26. package/dist/es2019/new-button/variants/shared/constants.js +1 -0
  27. package/dist/es2019/new-button/variants/shared/loading-overlay.js +4 -3
  28. package/dist/es2019/new-button/variants/shared/use-button-base.js +54 -2
  29. package/dist/es2019/old-button/button.js +3 -0
  30. package/dist/es2019/old-button/custom-theme-button/custom-theme-button.js +3 -0
  31. package/dist/es2019/old-button/custom-theme-button/theme.js +2 -0
  32. package/dist/es2019/old-button/shared/button-base.js +13 -3
  33. package/dist/es2019/old-button/shared/css.js +4 -2
  34. package/dist/esm/containers/button-group.js +6 -1
  35. package/dist/esm/new-button/containers/split-button/split-button.js +8 -2
  36. package/dist/esm/new-button/variants/default/button.js +8 -1
  37. package/dist/esm/new-button/variants/default/link.js +8 -1
  38. package/dist/esm/new-button/variants/default/use-default-button.js +7 -1
  39. package/dist/esm/new-button/variants/icon/button.js +6 -1
  40. package/dist/esm/new-button/variants/icon/link.js +6 -1
  41. package/dist/esm/new-button/variants/icon/use-icon-button.js +7 -1
  42. package/dist/esm/new-button/variants/shared/constants.js +1 -0
  43. package/dist/esm/new-button/variants/shared/loading-overlay.js +4 -3
  44. package/dist/esm/new-button/variants/shared/use-button-base.js +54 -2
  45. package/dist/esm/old-button/button.js +3 -0
  46. package/dist/esm/old-button/custom-theme-button/custom-theme-button.js +3 -0
  47. package/dist/esm/old-button/custom-theme-button/theme.js +2 -0
  48. package/dist/esm/old-button/shared/button-base.js +13 -3
  49. package/dist/esm/old-button/shared/css.js +4 -2
  50. package/dist/types/containers/button-group.d.ts +3 -0
  51. package/dist/types/new-button/containers/split-button/split-button.d.ts +3 -0
  52. package/dist/types/new-button/variants/default/link.d.ts +1 -1
  53. package/dist/types/new-button/variants/default/types.d.ts +1 -1
  54. package/dist/types/new-button/variants/default/use-default-button.d.ts +4 -3
  55. package/dist/types/new-button/variants/icon/link.d.ts +1 -1
  56. package/dist/types/new-button/variants/icon/use-icon-button.d.ts +4 -3
  57. package/dist/types/new-button/variants/shared/constants.d.ts +1 -0
  58. package/dist/types/new-button/variants/shared/loading-overlay.d.ts +2 -1
  59. package/dist/types/new-button/variants/shared/use-button-base.d.ts +5 -1
  60. package/dist/types/old-button/shared/button-base.d.ts +3 -0
  61. package/dist/types-ts4.5/containers/button-group.d.ts +3 -0
  62. package/dist/types-ts4.5/new-button/containers/split-button/split-button.d.ts +3 -0
  63. package/dist/types-ts4.5/new-button/variants/default/link.d.ts +1 -1
  64. package/dist/types-ts4.5/new-button/variants/default/types.d.ts +1 -1
  65. package/dist/types-ts4.5/new-button/variants/default/use-default-button.d.ts +4 -3
  66. package/dist/types-ts4.5/new-button/variants/icon/link.d.ts +1 -1
  67. package/dist/types-ts4.5/new-button/variants/icon/use-icon-button.d.ts +4 -3
  68. package/dist/types-ts4.5/new-button/variants/shared/constants.d.ts +1 -0
  69. package/dist/types-ts4.5/new-button/variants/shared/loading-overlay.d.ts +2 -1
  70. package/dist/types-ts4.5/new-button/variants/shared/use-button-base.d.ts +5 -1
  71. package/dist/types-ts4.5/old-button/shared/button-base.d.ts +3 -0
  72. package/package.json +202 -201
@@ -8,14 +8,17 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.default = void 0;
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
10
  var _react = _interopRequireWildcard(require("react"));
11
+ var _reactUid = require("react-uid");
11
12
  var _mergeRefs = _interopRequireDefault(require("@atlaskit/ds-lib/merge-refs"));
12
13
  var _useAutoFocus = _interopRequireDefault(require("@atlaskit/ds-lib/use-auto-focus"));
13
14
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
15
  var _primitives = require("@atlaskit/primitives");
15
16
  var colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
16
17
  var _constants = require("@atlaskit/theme/constants");
18
+ var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
17
19
  var _splitButtonContext = require("../../containers/split-button/split-button-context");
18
20
  var _blockEvents = _interopRequireDefault(require("./block-events"));
21
+ var _constants2 = require("./constants");
19
22
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
20
23
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
21
24
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -30,10 +33,12 @@ var buttonStyles = (0, _primitives.xcss)({
30
33
  alignItems: 'baseline',
31
34
  justifyContent: 'center',
32
35
  columnGap: 'space.050',
36
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
33
37
  background: "var(--ds-background-neutral, ".concat(colors.N20A, ")"),
34
38
  borderRadius: 'border.radius.100',
35
39
  borderWidth: 'border.width.0',
36
40
  // @ts-expect-error
41
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
37
42
  color: "var(--ds-text, ".concat(colors.N500, ")"),
38
43
  flexShrink: 0,
39
44
  height: "".concat(32 / fontSize, "em"),
@@ -44,6 +49,7 @@ var buttonStyles = (0, _primitives.xcss)({
44
49
  verticalAlign: 'middle',
45
50
  ':visited': {
46
51
  // @ts-expect-error
52
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
47
53
  color: "var(--ds-text, ".concat(colors.N500, ")")
48
54
  }
49
55
  });
@@ -64,12 +70,15 @@ var defaultInteractiveStyles = (0, _primitives.xcss)({
64
70
  ':hover': {
65
71
  background: "var(--ds-background-neutral-hovered, #091e4214)",
66
72
  // @ts-expect-error
73
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
67
74
  color: "var(--ds-text, ".concat(colors.N500, ")"),
68
75
  transitionDuration: '0s, 0.15s'
69
76
  },
70
77
  ':active': {
78
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
71
79
  background: "var(--ds-background-neutral-pressed, ".concat(colors.B75, ")"),
72
80
  // @ts-expect-error
81
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
73
82
  color: "var(--ds-text, ".concat(colors.B400, ")"),
74
83
  transitionDuration: '0s, 0s'
75
84
  }
@@ -173,11 +182,13 @@ var subtleInteractiveStyles = (0, _primitives.xcss)({
173
182
  });
174
183
  var linkStyles = (0, _primitives.xcss)({
175
184
  // @ts-expect-error
185
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
176
186
  color: "var(--ds-link, ".concat(colors.B400, ")"),
177
187
  background: "var(--ds-background-neutral-subtle, transparent)",
178
188
  textDecoration: 'none',
179
189
  ':hover': {
180
190
  // @ts-expect-error
191
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
181
192
  color: "var(--ds-link, ".concat(colors.B300, ")"),
182
193
  background: "var(--ds-background-neutral-subtle, transparent)"
183
194
  },
@@ -188,26 +199,31 @@ var linkStyles = (0, _primitives.xcss)({
188
199
  },
189
200
  ':visited': {
190
201
  // @ts-expect-error
202
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
191
203
  color: "var(--ds-link, ".concat(colors.B400, ")")
192
204
  }
193
205
  });
194
206
  var subtleLinkStyles = (0, _primitives.xcss)({
195
207
  // @ts-expect-error
208
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
196
209
  color: "var(--ds-text-subtle, ".concat(colors.N200, ")"),
197
210
  background: "var(--ds-background-neutral-subtle, transparent)",
198
211
  textDecoration: 'none',
199
212
  ':hover': {
200
213
  // @ts-expect-error
214
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
201
215
  color: "var(--ds-text-subtle, ".concat(colors.N90, ")"),
202
216
  background: "var(--ds-background-neutral-subtle, transparent)"
203
217
  },
204
218
  ':active': {
205
219
  // @ts-expect-error
220
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
206
221
  color: "var(--ds-text, ".concat(colors.N400, ")"),
207
222
  background: "var(--ds-background-neutral-subtle, transparent)"
208
223
  },
209
224
  ':visited': {
210
225
  // @ts-expect-error
226
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
211
227
  color: "var(--ds-text-subtle, ".concat(colors.N200, ")")
212
228
  }
213
229
  });
@@ -234,72 +250,94 @@ var linkDecorationStyles = (0, _primitives.xcss)({
234
250
  }
235
251
  });
236
252
  var disabledStyles = (0, _primitives.xcss)({
253
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
237
254
  background: "var(--ds-background-disabled, ".concat(colors.N20A, ")"),
238
255
  // @ts-expect-error
239
256
  color: "var(--ds-text-disabled, #091E424F)",
240
257
  ':hover': {
258
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
241
259
  background: "var(--ds-background-disabled, ".concat(colors.N20A, ")"),
242
260
  // @ts-expect-error
243
261
  color: "var(--ds-text-disabled, #091E424F)"
244
262
  },
245
263
  ':active': {
264
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
246
265
  background: "var(--ds-background-disabled, ".concat(colors.N20A, ")"),
247
266
  // @ts-expect-error
248
267
  color: "var(--ds-text-disabled, #091E424F)"
249
268
  }
250
269
  });
251
270
  var selectedStyles = (0, _primitives.xcss)({
271
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
252
272
  background: "var(--ds-background-selected, ".concat(colors.N700, ")"),
253
273
  // @ts-expect-error
274
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
254
275
  color: "var(--ds-text-selected, ".concat(colors.N20, ")"),
255
276
  ':visited': {
256
277
  // @ts-expect-error
278
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
257
279
  color: "var(--ds-text-selected, ".concat(colors.N20, ")")
258
280
  }
259
281
  });
260
282
  var selectedInteractiveStyles = (0, _primitives.xcss)({
261
283
  ':hover': {
262
284
  // @ts-expect-error
285
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
263
286
  color: "var(--ds-text-selected, ".concat(colors.N20, ")"),
287
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
264
288
  background: "var(--ds-background-selected-hovered, ".concat(colors.N700, ")")
265
289
  },
266
290
  ':active': {
267
291
  // @ts-expect-error
292
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
268
293
  color: "var(--ds-text-selected, ".concat(colors.N20, ")"),
294
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
269
295
  background: "var(--ds-background-selected-pressed, ".concat(colors.N700, ")")
270
296
  }
271
297
  });
272
298
 
273
299
  // TODO: Remove me once we kill color fallbacks
274
300
  var selectedWarningStyles = (0, _primitives.xcss)({
301
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
275
302
  background: "var(--ds-background-selected, ".concat(colors.Y400, ")"),
276
303
  // @ts-expect-error
304
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
277
305
  color: "var(--ds-text-selected, ".concat(colors.N800, ")"),
278
306
  ':hover': {
279
307
  // @ts-expect-error
308
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
280
309
  color: "var(--ds-text-selected, ".concat(colors.N20, ")"),
310
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
281
311
  background: "var(--ds-background-selected, ".concat(colors.Y400, ")")
282
312
  },
283
313
  ':active': {
284
314
  // @ts-expect-error
315
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
285
316
  color: "var(--ds-text-selected, ".concat(colors.N20, ")"),
317
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
286
318
  background: "var(--ds-background-selected, ".concat(colors.Y400, ")")
287
319
  }
288
320
  });
289
321
 
290
322
  // TODO: Remove me once we kill color fallbacks
291
323
  var selectedDangerStyles = (0, _primitives.xcss)({
324
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
292
325
  background: "var(--ds-background-selected, ".concat(colors.R500, ")"),
293
326
  // @ts-expect-error
327
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
294
328
  color: "var(--ds-text-selected, ".concat(colors.N20, ")"),
295
329
  ':hover': {
296
330
  // @ts-expect-error
331
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
297
332
  color: "var(--ds-text-selected, ".concat(colors.N20, ")"),
333
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
298
334
  background: "var(--ds-background-selected, ".concat(colors.R500, ")")
299
335
  },
300
336
  ':active': {
301
337
  // @ts-expect-error
338
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
302
339
  color: "var(--ds-text-selected, ".concat(colors.N20, ")"),
340
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
303
341
  background: "var(--ds-background-selected, ".concat(colors.R500, ")")
304
342
  }
305
343
  });
@@ -308,14 +346,17 @@ var selectedDangerStyles = (0, _primitives.xcss)({
308
346
  var selectedDiscoveryStyles = (0, _primitives.xcss)({
309
347
  background: "var(--ds-background-selected, #403294)",
310
348
  // @ts-expect-error
349
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
311
350
  color: "var(--ds-text-selected, ".concat(colors.N20, ")"),
312
351
  ':hover': {
313
352
  // @ts-expect-error
353
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
314
354
  color: "var(--ds-text-selected, ".concat(colors.N20, ")"),
315
355
  background: "var(--ds-background-selected, #403294)"
316
356
  },
317
357
  ':active': {
318
358
  // @ts-expect-error
359
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
319
360
  color: "var(--ds-text-selected, ".concat(colors.N20, ")"),
320
361
  background: "var(--ds-background-selected, #403294)"
321
362
  }
@@ -442,9 +483,16 @@ var useButtonBase = function useButtonBase(_ref) {
442
483
  _ref$shouldFitContain = _ref.shouldFitContainer,
443
484
  shouldFitContainer = _ref$shouldFitContain === void 0 ? false : _ref$shouldFitContain,
444
485
  _ref$spacing = _ref.spacing,
445
- propSpacing = _ref$spacing === void 0 ? 'default' : _ref$spacing;
486
+ propSpacing = _ref$spacing === void 0 ? 'default' : _ref$spacing,
487
+ ariaLabel = _ref.ariaLabel,
488
+ ariaLabelledBy = _ref.ariaLabelledBy;
446
489
  var localRef = (0, _react.useRef)(null);
447
490
  var splitButtonContext = (0, _splitButtonContext.useSplitButtonContext)();
491
+ // TODO: Use React 18's useId() hook when we update.
492
+ // eslint-disable-next-line @repo/internal/react/disallow-unstable-values
493
+ var loadingLabelId = (0, _reactUid.uid)({
494
+ ariaLabelledBy: ariaLabelledBy
495
+ });
448
496
  var isSplitButton = Boolean(splitButtonContext);
449
497
  var isNavigationSplitButton = (splitButtonContext === null || splitButtonContext === void 0 ? void 0 : splitButtonContext.isNavigationSplitButton) || false;
450
498
  var appearance = (splitButtonContext === null || splitButtonContext === void 0 ? void 0 : splitButtonContext.appearance) || propAppearance;
@@ -468,7 +516,11 @@ var useButtonBase = function useButtonBase(_ref) {
468
516
  children: /*#__PURE__*/_react.default.createElement(_react.Fragment, null, children, overlay ? /*#__PURE__*/_react.default.createElement(_primitives.Box, {
469
517
  as: "span",
470
518
  xcss: overlayStyles
471
- }, overlay) : null)
519
+ }, overlay) : null, isLoading && (children && !ariaLabel && !ariaLabelledBy || ariaLabelledBy) && /*#__PURE__*/_react.default.createElement(_visuallyHidden.default, {
520
+ id: loadingLabelId
521
+ }, ", Loading")),
522
+ 'aria-label': isLoading && ariaLabel && !ariaLabelledBy ? "".concat(ariaLabel, " ").concat(_constants2.LOADING_LABEL) : ariaLabel,
523
+ 'aria-labelledby': isLoading && ariaLabelledBy ? "".concat(ariaLabelledBy, " ").concat(loadingLabelId) : ariaLabelledBy
472
524
  }, (0, _blockEvents.default)(isEffectivelyDisabled, {
473
525
  onClick: onClick,
474
526
  onMouseDownCapture: onMouseDownCapture,
@@ -15,7 +15,7 @@ var _components = require("@atlaskit/theme/components");
15
15
  var _buttonBase = _interopRequireDefault(require("./shared/button-base"));
16
16
  var _css = require("./shared/css");
17
17
  var _getIsOnlySingleIcon = _interopRequireDefault(require("./shared/get-is-only-single-icon"));
18
- var _excluded = ["appearance", "children", "iconBefore", "iconAfter", "isSelected", "onMouseDown", "onMouseUp", "shouldFitContainer", "spacing"];
18
+ var _excluded = ["appearance", "children", "iconBefore", "iconAfter", "isSelected", "onMouseDown", "onMouseUp", "shouldFitContainer", "spacing"]; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
19
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
20
20
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
21
21
  var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
@@ -16,7 +16,7 @@ var _buttonBase = _interopRequireDefault(require("../shared/button-base"));
16
16
  var _getIsOnlySingleIcon = _interopRequireDefault(require("../shared/get-is-only-single-icon"));
17
17
  var _loadingSpinner = _interopRequireDefault(require("../shared/loading-spinner"));
18
18
  var _theme = _interopRequireWildcard(require("./theme"));
19
- var _excluded = ["appearance", "autoFocus", "isDisabled", "isSelected", "shouldFitContainer", "spacing", "isLoading", "onMouseEnter", "onMouseLeave", "onMouseDown", "onMouseUp", "onFocus", "onBlur", "theme"];
19
+ var _excluded = ["appearance", "autoFocus", "isDisabled", "isSelected", "shouldFitContainer", "spacing", "isLoading", "onMouseEnter", "onMouseLeave", "onMouseDown", "onMouseUp", "onFocus", "onBlur", "theme"]; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
20
20
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
21
21
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
22
22
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -12,7 +12,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
12
12
  var _components = require("@atlaskit/theme/components");
13
13
  var _css = require("../shared/css");
14
14
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
15
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
15
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
16
16
  var stateToSelectorMap = {
17
17
  focus: '&:focus',
18
18
  focusSelected: '&:focus',
@@ -21,7 +21,11 @@ var _css = require("./css");
21
21
  var _getIfVisuallyHiddenChildren = require("./get-if-visually-hidden-children");
22
22
  var _excluded = ["analyticsContext", "appearance", "autoFocus", "buttonCss", "children", "className", "href", "component", "iconAfter", "iconBefore", "interactionName", "isDisabled", "isSelected", "onBlur", "onClick", "onFocus", "onMouseDown", "overlay", "shouldFitContainer", "spacing", "tabIndex", "type", "testId"];
23
23
  /* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */
24
+ /**
25
+ * @jsxRuntime classic
26
+ */
24
27
  /** @jsx jsx */
28
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
29
  // eslint-disable-next-line no-duplicate-imports
26
30
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
27
31
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -129,7 +133,7 @@ var _default = exports.default = /*#__PURE__*/_react.default.forwardRef(function
129
133
  action: 'clicked',
130
134
  componentName: 'button',
131
135
  packageName: "@atlaskit/button",
132
- packageVersion: "17.17.3",
136
+ packageVersion: "17.19.0",
133
137
  analyticsData: analyticsContext
134
138
  });
135
139
 
@@ -149,6 +153,7 @@ var _default = exports.default = /*#__PURE__*/_react.default.forwardRef(function
149
153
 
150
154
  // we are 'disabling' input with a button when there is an overlay
151
155
  var hasOverlay = Boolean(overlay);
156
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
152
157
  var fadeStyles = (0, _react2.css)((0, _css.getFadingCss)({
153
158
  hasOverlay: hasOverlay
154
159
  }));
@@ -192,13 +197,17 @@ var _default = exports.default = /*#__PURE__*/_react.default.forwardRef(function
192
197
  }, (0, _blockEvents.default)({
193
198
  isInteractive: isInteractive
194
199
  })), iconBefore ? (0, _react2.jsx)("span", {
195
- css: [fadeStyles, (0, _css.getIconStyle)({
200
+ css: [fadeStyles,
201
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
202
+ (0, _css.getIconStyle)({
196
203
  spacing: spacing
197
204
  }), getSpacingFix(children, iconBeforeSpacingFixStyle)]
198
205
  }, iconBefore) : null, getChildren(children, [fadeStyles, (0, _css.getContentStyle)({
199
206
  spacing: spacing
200
207
  })]), iconAfter ? (0, _react2.jsx)("span", {
201
- css: [fadeStyles, (0, _css.getIconStyle)({
208
+ css: [fadeStyles,
209
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
210
+ (0, _css.getIconStyle)({
202
211
  spacing: spacing
203
212
  }), getSpacingFix(children, iconAfterSpacingFixStyle)]
204
213
  }, iconAfter) : null, overlay ? (0, _react2.jsx)("span", {
@@ -14,7 +14,7 @@ var _react = require("@emotion/react");
14
14
  var _constants = require("@atlaskit/theme/constants");
15
15
  var _colors = _interopRequireDefault(require("./colors"));
16
16
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
17
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
18
18
  var gridSize = (0, _constants.gridSize)();
19
19
  var fontSize = (0, _constants.fontSize)();
20
20
 
@@ -196,7 +196,7 @@ function getIconStyle(_ref4) {
196
196
  return (0, _react.css)({
197
197
  display: 'flex',
198
198
  // icon size cannot grow and shrink
199
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
199
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
200
200
  margin: spacing === 'none' ? 0 : innerMargin.icon,
201
201
  flexGrow: 0,
202
202
  flexShrink: 0,
@@ -211,7 +211,7 @@ function getIconStyle(_ref4) {
211
211
  function getContentStyle(_ref5) {
212
212
  var spacing = _ref5.spacing;
213
213
  return (0, _react.css)({
214
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
214
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
215
215
  margin: spacing === 'none' ? 0 : innerMargin.content,
216
216
  // content can grow and shrink
217
217
  flexGrow: 1,
@@ -225,6 +225,7 @@ function getContentStyle(_ref5) {
225
225
  function getFadingCss(_ref6) {
226
226
  var hasOverlay = _ref6.hasOverlay;
227
227
  return (0, _react.css)({
228
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
228
229
  opacity: hasOverlay ? 0 : 1,
229
230
  transition: 'opacity 0.3s'
230
231
  });
@@ -1,10 +1,15 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import React, { Fragment } from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
8
  import { css, jsx } from '@emotion/react';
4
9
  const buttonGroupStyles = css({
5
10
  display: 'inline-flex',
6
11
  gap: "var(--ds-space-050, 4px)",
7
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
12
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
8
13
  '> *': {
9
14
  flex: '1 0 auto'
10
15
  }
@@ -1,5 +1,9 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
 
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
7
  import { css, jsx } from '@emotion/react';
4
8
  import { fontSize as getFontSize } from '@atlaskit/theme/constants';
5
9
  const fontSize = getFontSize();
@@ -17,9 +21,11 @@ const baseDividerStyles = css({
17
21
  zIndex: 2
18
22
  });
19
23
  const defaultDividerStyles = css({
24
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
20
25
  height: heights.default
21
26
  });
22
27
  const compactDividerStyles = css({
28
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
23
29
  height: heights.compact
24
30
  });
25
31
  const dividerDisabledStyles = css({
@@ -69,14 +75,14 @@ const splitButtonStyles = css({
69
75
  whiteSpace: 'nowrap'
70
76
  });
71
77
  const primaryButtonStyles = css({
72
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
78
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
73
79
  'button,a': {
74
80
  borderEndEndRadius: 0,
75
81
  borderStartEndRadius: 0
76
82
  }
77
83
  });
78
84
  const secondaryButtonStyles = css({
79
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
85
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
80
86
  'button,a': {
81
87
  borderEndStartRadius: 0,
82
88
  borderStartStartRadius: 0
@@ -14,6 +14,8 @@ import useDefaultButton from './use-default-button';
14
14
  const Button = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function Button({
15
15
  analyticsContext,
16
16
  appearance,
17
+ 'aria-label': ariaLabel,
18
+ 'aria-labelledby': ariaLabelledBy,
17
19
  autoFocus,
18
20
  children,
19
21
  iconAfter,
@@ -42,6 +44,8 @@ const Button = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function B
42
44
  ...rest
43
45
  }, ref) {
44
46
  const baseProps = useDefaultButton({
47
+ ariaLabel,
48
+ ariaLabelledBy,
45
49
  analyticsContext,
46
50
  appearance,
47
51
  autoFocus,
@@ -67,12 +71,15 @@ const Button = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function B
67
71
  ref,
68
72
  shouldFitContainer,
69
73
  spacing,
74
+ testId,
70
75
  UNSAFE_iconAfter_size,
71
76
  UNSAFE_iconBefore_size
72
77
  });
73
78
  return /*#__PURE__*/React.createElement(Pressable
74
79
  // TODO: Remove spread props
75
80
  , _extends({}, rest, {
81
+ "aria-label": baseProps['aria-label'],
82
+ "aria-labelledby": baseProps['aria-labelledby'],
76
83
  ref: baseProps.ref,
77
84
  xcss: baseProps.xcss,
78
85
  isDisabled: baseProps.isDisabled,
@@ -5,6 +5,8 @@ import useDefaultButton from './use-default-button';
5
5
  const LinkButtonBase = ({
6
6
  analyticsContext,
7
7
  appearance,
8
+ 'aria-label': ariaLabel,
9
+ 'aria-labelledby': ariaLabelledBy,
8
10
  autoFocus,
9
11
  children,
10
12
  href,
@@ -32,6 +34,8 @@ const LinkButtonBase = ({
32
34
  ...rest
33
35
  }, ref) => {
34
36
  const baseProps = useDefaultButton({
37
+ ariaLabel,
38
+ ariaLabelledBy,
35
39
  analyticsContext,
36
40
  appearance,
37
41
  autoFocus,
@@ -56,12 +60,15 @@ const LinkButtonBase = ({
56
60
  ref,
57
61
  shouldFitContainer,
58
62
  spacing,
63
+ testId,
59
64
  UNSAFE_iconAfter_size,
60
65
  UNSAFE_iconBefore_size
61
66
  });
62
67
  return /*#__PURE__*/React.createElement(Anchor
63
68
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
64
69
  , _extends({}, rest, {
70
+ "aria-label": baseProps['aria-label'],
71
+ "aria-labelledby": baseProps['aria-labelledby'],
65
72
  ref: baseProps.ref,
66
73
  xcss: baseProps.xcss,
67
74
  onClick: baseProps.onClick,
@@ -14,6 +14,8 @@ import useButtonBase from '../shared/use-button-base';
14
14
  const useDefaultButton = ({
15
15
  analyticsContext,
16
16
  appearance,
17
+ ariaLabel,
18
+ ariaLabelledBy,
17
19
  autoFocus,
18
20
  buttonType,
19
21
  children,
@@ -37,6 +39,7 @@ const useDefaultButton = ({
37
39
  ref,
38
40
  shouldFitContainer,
39
41
  spacing,
42
+ testId,
40
43
  UNSAFE_iconAfter_size,
41
44
  UNSAFE_iconBefore_size
42
45
  }) => {
@@ -45,6 +48,8 @@ const useDefaultButton = ({
45
48
  analyticsContext,
46
49
  appearance,
47
50
  autoFocus,
51
+ ariaLabel,
52
+ ariaLabelledBy,
48
53
  buttonType,
49
54
  children: /*#__PURE__*/React.createElement(Fragment, null, IconBefore && /*#__PURE__*/React.createElement(Content, {
50
55
  type: "icon",
@@ -83,7 +88,8 @@ const useDefaultButton = ({
83
88
  spacing,
84
89
  appearance,
85
90
  isDisabled,
86
- isSelected
91
+ isSelected,
92
+ testId
87
93
  }) : overlay,
88
94
  ref,
89
95
  shouldFitContainer,
@@ -15,6 +15,7 @@ import useIconButton from './use-icon-button';
15
15
  const IconButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function Button({
16
16
  // Prevent duplicate labels being added.
17
17
  'aria-label': preventedAriaLabel,
18
+ 'aria-labelledby': ariaLabelledBy,
18
19
  analyticsContext,
19
20
  appearance,
20
21
  autoFocus,
@@ -51,6 +52,7 @@ const IconButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
51
52
  const baseProps = useIconButton({
52
53
  analyticsContext,
53
54
  appearance,
55
+ ariaLabelledBy,
54
56
  autoFocus,
55
57
  buttonType: 'button',
56
58
  icon,
@@ -73,6 +75,7 @@ const IconButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
73
75
  ref,
74
76
  shape,
75
77
  spacing,
78
+ testId,
76
79
  UNSAFE_size
77
80
  });
78
81
  if (!isTooltipDisabled) {
@@ -95,6 +98,7 @@ const IconButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
95
98
  }, triggerProps => /*#__PURE__*/React.createElement(Pressable
96
99
  // Top level props
97
100
  , _extends({}, rest, {
101
+ "aria-labelledby": baseProps['aria-labelledby'],
98
102
  type: type,
99
103
  testId: testId,
100
104
  componentName: "IconButton",
@@ -160,6 +164,7 @@ const IconButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
160
164
  }), baseProps.children));
161
165
  }
162
166
  return /*#__PURE__*/React.createElement(Pressable, _extends({}, rest, {
167
+ "aria-labelledby": baseProps['aria-labelledby'],
163
168
  ref: baseProps.ref,
164
169
  xcss: baseProps.xcss,
165
170
  isDisabled: baseProps.isDisabled,
@@ -6,6 +6,7 @@ import useIconButton from './use-icon-button';
6
6
  const LinkIconButtonBase = ({
7
7
  // Prevent duplicate labels being added.
8
8
  'aria-label': preventedAriaLabel,
9
+ 'aria-labelledby': ariaLabelledBy,
9
10
  analyticsContext,
10
11
  appearance,
11
12
  autoFocus,
@@ -37,6 +38,7 @@ const LinkIconButtonBase = ({
37
38
  const baseProps = useIconButton({
38
39
  analyticsContext,
39
40
  appearance,
41
+ ariaLabelledBy,
40
42
  autoFocus,
41
43
  buttonType: 'link',
42
44
  icon,
@@ -58,6 +60,7 @@ const LinkIconButtonBase = ({
58
60
  ref,
59
61
  shape,
60
62
  spacing,
63
+ testId,
61
64
  UNSAFE_size
62
65
  });
63
66
  if (!isTooltipDisabled) {
@@ -80,6 +83,7 @@ const LinkIconButtonBase = ({
80
83
  }, triggerProps => /*#__PURE__*/React.createElement(Anchor
81
84
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
82
85
  , _extends({}, rest, {
86
+ "aria-labelledby": baseProps['aria-labelledby'],
83
87
  testId: testId,
84
88
  componentName: "LinkIconButton",
85
89
  analyticsContext: analyticsContext,
@@ -154,6 +158,7 @@ const LinkIconButtonBase = ({
154
158
  return /*#__PURE__*/React.createElement(Anchor
155
159
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
156
160
  , _extends({}, rest, {
161
+ "aria-labelledby": baseProps['aria-labelledby'],
157
162
  ref: baseProps.ref,
158
163
  xcss: baseProps.xcss,
159
164
  onClick: baseProps.onClick,
@@ -15,6 +15,8 @@ import useButtonBase from '../shared/use-button-base';
15
15
  const useIconButton = ({
16
16
  analyticsContext,
17
17
  appearance,
18
+ ariaLabel,
19
+ ariaLabelledBy,
18
20
  autoFocus,
19
21
  buttonType,
20
22
  icon: Icon,
@@ -38,6 +40,7 @@ const useIconButton = ({
38
40
  shape,
39
41
  shouldFitContainer,
40
42
  spacing,
43
+ testId,
41
44
  UNSAFE_size
42
45
  }) => {
43
46
  const hasOverlay = Boolean(overlay || isLoading);
@@ -46,6 +49,8 @@ const useIconButton = ({
46
49
  analyticsContext,
47
50
  appearance,
48
51
  autoFocus,
52
+ ariaLabel,
53
+ ariaLabelledBy,
49
54
  buttonType,
50
55
  children: /*#__PURE__*/React.createElement(Content, {
51
56
  type: "icon",
@@ -75,7 +80,8 @@ const useIconButton = ({
75
80
  spacing,
76
81
  appearance,
77
82
  isDisabled,
78
- isSelected
83
+ isSelected,
84
+ testId
79
85
  }) : overlay,
80
86
  ref,
81
87
  shouldFitContainer,
@@ -0,0 +1 @@
1
+ export const LOADING_LABEL = ', Loading';