@atlaskit/button 17.22.1 → 17.22.2
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/CHANGELOG.md +10 -0
- package/dist/cjs/new-button/containers/split-button/split-button.js +2 -4
- package/dist/cjs/new-button/variants/shared/use-button-base.js +11 -12
- package/dist/cjs/old-button/shared/button-base.js +1 -1
- package/dist/cjs/old-button/shared/css.js +2 -3
- package/dist/es2019/new-button/containers/split-button/split-button.js +2 -4
- package/dist/es2019/new-button/variants/shared/use-button-base.js +9 -10
- package/dist/es2019/old-button/shared/button-base.js +1 -1
- package/dist/es2019/old-button/shared/css.js +3 -4
- package/dist/esm/new-button/containers/split-button/split-button.js +2 -4
- package/dist/esm/new-button/variants/shared/use-button-base.js +9 -10
- package/dist/esm/old-button/shared/button-base.js +1 -1
- package/dist/esm/old-button/shared/css.js +3 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/button
|
|
2
2
|
|
|
3
|
+
## 17.22.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#105813](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/105813)
|
|
8
|
+
[`f2f51e7a24d00`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f2f51e7a24d00) -
|
|
9
|
+
Internal change only. Remove references to deprecated @atlaskit/theme constants and replace with
|
|
10
|
+
hard-coded values.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 17.22.1
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.SplitButtonWithSlots = exports.SplitButtonContainer = exports.SplitButton = exports.Divider = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
9
|
-
var _constants = require("@atlaskit/theme/constants");
|
|
10
9
|
var _splitButtonContext = require("./split-button-context");
|
|
11
10
|
var _utils = require("./utils");
|
|
12
11
|
/**
|
|
@@ -16,10 +15,9 @@ var _utils = require("./utils");
|
|
|
16
15
|
|
|
17
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
17
|
|
|
19
|
-
var fontSize = (0, _constants.fontSize)();
|
|
20
18
|
var heights = {
|
|
21
|
-
default: "".concat(32 /
|
|
22
|
-
compact: "".concat(24 /
|
|
19
|
+
default: "".concat(32 / 14, "em"),
|
|
20
|
+
compact: "".concat(24 / 14, "em"),
|
|
23
21
|
none: 'auto'
|
|
24
22
|
};
|
|
25
23
|
var baseDividerStyles = (0, _react.css)({
|
|
@@ -14,16 +14,14 @@ var _useAutoFocus = _interopRequireDefault(require("@atlaskit/ds-lib/use-auto-fo
|
|
|
14
14
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
15
|
var _primitives = require("@atlaskit/primitives");
|
|
16
16
|
var colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
|
|
17
|
-
var _constants = require("@atlaskit/theme/constants");
|
|
18
17
|
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
|
|
19
18
|
var _splitButtonContext = require("../../containers/split-button/split-button-context");
|
|
20
19
|
var _blockEvents = _interopRequireDefault(require("./block-events"));
|
|
21
|
-
var
|
|
20
|
+
var _constants = require("./constants");
|
|
22
21
|
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); }
|
|
23
22
|
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; }
|
|
24
23
|
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; }
|
|
25
24
|
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; }
|
|
26
|
-
var fontSize = (0, _constants.fontSize)();
|
|
27
25
|
var buttonStyles = (0, _primitives.xcss)({
|
|
28
26
|
display: 'inline-flex',
|
|
29
27
|
boxSizing: 'border-box',
|
|
@@ -36,7 +34,7 @@ var buttonStyles = (0, _primitives.xcss)({
|
|
|
36
34
|
borderRadius: 'border.radius.100',
|
|
37
35
|
borderWidth: 'border.width.0',
|
|
38
36
|
flexShrink: 0,
|
|
39
|
-
height: "".concat(32 /
|
|
37
|
+
height: "".concat(32 / 14, "em"),
|
|
40
38
|
paddingInlineEnd: 'space.150',
|
|
41
39
|
paddingInlineStart: 'space.150',
|
|
42
40
|
textAlign: 'center',
|
|
@@ -56,7 +54,7 @@ var hardCodedButtonStyles = (0, _primitives.xcss)({
|
|
|
56
54
|
fontSize: 'inherit',
|
|
57
55
|
fontStyle: 'normal',
|
|
58
56
|
fontWeight: 500,
|
|
59
|
-
lineHeight: "".concat(32 /
|
|
57
|
+
lineHeight: "".concat(32 / 14, "em"),
|
|
60
58
|
paddingBlock: 'space.0'
|
|
61
59
|
});
|
|
62
60
|
var tokenizedButtonStyles = (0, _primitives.xcss)({
|
|
@@ -93,6 +91,7 @@ var defaultStyles = (0, _primitives.xcss)({
|
|
|
93
91
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
94
92
|
background: "var(--ds-background-neutral, ".concat(colors.N20A, ")"),
|
|
95
93
|
// @ts-expect-error — using tokens for explicit fallback usage.
|
|
94
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- -- Ignored via go/DSP-18766
|
|
96
95
|
color: "var(--ds-text, ".concat(colors.N500, ")"),
|
|
97
96
|
':visited': {
|
|
98
97
|
// @ts-expect-error
|
|
@@ -422,13 +421,13 @@ var selectedDiscoveryStyles = (0, _primitives.xcss)({
|
|
|
422
421
|
});
|
|
423
422
|
var spacingCompactStyles = (0, _primitives.xcss)({
|
|
424
423
|
columnGap: 'space.050',
|
|
425
|
-
height: "".concat(24 /
|
|
424
|
+
height: "".concat(24 / 14, "em"),
|
|
426
425
|
paddingInlineEnd: 'space.150',
|
|
427
426
|
paddingInlineStart: 'space.150',
|
|
428
427
|
verticalAlign: 'middle'
|
|
429
428
|
});
|
|
430
429
|
var baseSpacingCompactStyles = (0, _primitives.xcss)({
|
|
431
|
-
lineHeight: "".concat(24 /
|
|
430
|
+
lineHeight: "".concat(24 / 14, "em")
|
|
432
431
|
});
|
|
433
432
|
var tokenizedSpacingCompactStyles = (0, _primitives.xcss)({
|
|
434
433
|
paddingBlock: 'space.025'
|
|
@@ -457,14 +456,14 @@ var nonInteractiveStyles = (0, _primitives.xcss)({
|
|
|
457
456
|
cursor: 'not-allowed'
|
|
458
457
|
});
|
|
459
458
|
var iconButtonStyles = (0, _primitives.xcss)({
|
|
460
|
-
height: "".concat(32 /
|
|
461
|
-
width: "".concat(32 /
|
|
459
|
+
height: "".concat(32 / 14, "em"),
|
|
460
|
+
width: "".concat(32 / 14, "em"),
|
|
462
461
|
paddingInlineEnd: 'space.0',
|
|
463
462
|
paddingInlineStart: 'space.0'
|
|
464
463
|
});
|
|
465
464
|
var iconButtonCompactStyles = (0, _primitives.xcss)({
|
|
466
|
-
width: "".concat(24 /
|
|
467
|
-
height: "".concat(24 /
|
|
465
|
+
width: "".concat(24 / 14, "em"),
|
|
466
|
+
height: "".concat(24 / 14, "em")
|
|
468
467
|
});
|
|
469
468
|
var buttonIconBeforeStyles = (0, _primitives.xcss)({
|
|
470
469
|
paddingInlineStart: 'space.100'
|
|
@@ -580,7 +579,7 @@ var useButtonBase = function useButtonBase(_ref) {
|
|
|
580
579
|
}, overlay) : null, isLoading && (children && !ariaLabel && !ariaLabelledBy || ariaLabelledBy) && /*#__PURE__*/_react.default.createElement(_visuallyHidden.default, {
|
|
581
580
|
id: loadingLabelId
|
|
582
581
|
}, ", Loading")),
|
|
583
|
-
'aria-label': isLoading && ariaLabel && !ariaLabelledBy ? "".concat(ariaLabel, " ").concat(
|
|
582
|
+
'aria-label': isLoading && ariaLabel && !ariaLabelledBy ? "".concat(ariaLabel, " ").concat(_constants.LOADING_LABEL) : ariaLabel,
|
|
584
583
|
'aria-labelledby': isLoading && ariaLabelledBy ? "".concat(ariaLabelledBy, " ").concat(loadingLabelId) : ariaLabelledBy
|
|
585
584
|
}, (0, _blockEvents.default)(isEffectivelyDisabled, {
|
|
586
585
|
onClick: onClick,
|
|
@@ -133,7 +133,7 @@ var _default = exports.default = /*#__PURE__*/_react.default.forwardRef(function
|
|
|
133
133
|
action: 'clicked',
|
|
134
134
|
componentName: 'button',
|
|
135
135
|
packageName: "@atlaskit/button",
|
|
136
|
-
packageVersion: "17.22.
|
|
136
|
+
packageVersion: "17.22.2",
|
|
137
137
|
analyticsData: analyticsContext
|
|
138
138
|
});
|
|
139
139
|
|
|
@@ -16,7 +16,6 @@ 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
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
|
-
var fontSize = (0, _constants.fontSize)();
|
|
20
19
|
|
|
21
20
|
// ## Button layout
|
|
22
21
|
//
|
|
@@ -31,9 +30,9 @@ var fontSize = (0, _constants.fontSize)();
|
|
|
31
30
|
// Margins don't collapse with inline-flex
|
|
32
31
|
//
|
|
33
32
|
var heights = {
|
|
34
|
-
default: "".concat(
|
|
33
|
+
default: "".concat(32 / 14, "em"),
|
|
35
34
|
// 32px
|
|
36
|
-
compact: "".concat(
|
|
35
|
+
compact: "".concat(24 / 14, "em"),
|
|
37
36
|
none: 'auto'
|
|
38
37
|
};
|
|
39
38
|
var lineHeights = {
|
|
@@ -6,11 +6,9 @@
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
9
|
-
import { fontSize as getFontSize } from '@atlaskit/theme/constants';
|
|
10
|
-
const fontSize = getFontSize();
|
|
11
9
|
const heights = {
|
|
12
|
-
default: `${32 /
|
|
13
|
-
compact: `${24 /
|
|
10
|
+
default: `${32 / 14}em`,
|
|
11
|
+
compact: `${24 / 14}em`,
|
|
14
12
|
none: 'auto'
|
|
15
13
|
};
|
|
16
14
|
import { SplitButtonContext } from './split-button-context';
|
|
@@ -5,12 +5,10 @@ import useAutoFocus from '@atlaskit/ds-lib/use-auto-focus';
|
|
|
5
5
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
6
6
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
7
7
|
import * as colors from '@atlaskit/theme/colors';
|
|
8
|
-
import { fontSize as getFontSize } from '@atlaskit/theme/constants';
|
|
9
8
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
10
9
|
import { useSplitButtonContext } from '../../containers/split-button/split-button-context';
|
|
11
10
|
import blockEvents from './block-events';
|
|
12
11
|
import { LOADING_LABEL } from './constants';
|
|
13
|
-
const fontSize = getFontSize();
|
|
14
12
|
const buttonStyles = xcss({
|
|
15
13
|
display: 'inline-flex',
|
|
16
14
|
boxSizing: 'border-box',
|
|
@@ -23,7 +21,7 @@ const buttonStyles = xcss({
|
|
|
23
21
|
borderRadius: 'border.radius.100',
|
|
24
22
|
borderWidth: 'border.width.0',
|
|
25
23
|
flexShrink: 0,
|
|
26
|
-
height: `${32 /
|
|
24
|
+
height: `${32 / 14}em`,
|
|
27
25
|
paddingInlineEnd: 'space.150',
|
|
28
26
|
paddingInlineStart: 'space.150',
|
|
29
27
|
textAlign: 'center',
|
|
@@ -43,7 +41,7 @@ const hardCodedButtonStyles = xcss({
|
|
|
43
41
|
fontSize: 'inherit',
|
|
44
42
|
fontStyle: 'normal',
|
|
45
43
|
fontWeight: 500,
|
|
46
|
-
lineHeight: `${32 /
|
|
44
|
+
lineHeight: `${32 / 14}em`,
|
|
47
45
|
paddingBlock: 'space.0'
|
|
48
46
|
});
|
|
49
47
|
const tokenizedButtonStyles = xcss({
|
|
@@ -80,6 +78,7 @@ const defaultStyles = xcss({
|
|
|
80
78
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
81
79
|
background: `var(--ds-background-neutral, ${colors.N20A})`,
|
|
82
80
|
// @ts-expect-error — using tokens for explicit fallback usage.
|
|
81
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- -- Ignored via go/DSP-18766
|
|
83
82
|
color: `var(--ds-text, ${colors.N500})`,
|
|
84
83
|
':visited': {
|
|
85
84
|
// @ts-expect-error
|
|
@@ -409,13 +408,13 @@ const selectedDiscoveryStyles = xcss({
|
|
|
409
408
|
});
|
|
410
409
|
const spacingCompactStyles = xcss({
|
|
411
410
|
columnGap: 'space.050',
|
|
412
|
-
height: `${24 /
|
|
411
|
+
height: `${24 / 14}em`,
|
|
413
412
|
paddingInlineEnd: 'space.150',
|
|
414
413
|
paddingInlineStart: 'space.150',
|
|
415
414
|
verticalAlign: 'middle'
|
|
416
415
|
});
|
|
417
416
|
const baseSpacingCompactStyles = xcss({
|
|
418
|
-
lineHeight: `${24 /
|
|
417
|
+
lineHeight: `${24 / 14}em`
|
|
419
418
|
});
|
|
420
419
|
const tokenizedSpacingCompactStyles = xcss({
|
|
421
420
|
paddingBlock: 'space.025'
|
|
@@ -444,14 +443,14 @@ const nonInteractiveStyles = xcss({
|
|
|
444
443
|
cursor: 'not-allowed'
|
|
445
444
|
});
|
|
446
445
|
const iconButtonStyles = xcss({
|
|
447
|
-
height: `${32 /
|
|
448
|
-
width: `${32 /
|
|
446
|
+
height: `${32 / 14}em`,
|
|
447
|
+
width: `${32 / 14}em`,
|
|
449
448
|
paddingInlineEnd: 'space.0',
|
|
450
449
|
paddingInlineStart: 'space.0'
|
|
451
450
|
});
|
|
452
451
|
const iconButtonCompactStyles = xcss({
|
|
453
|
-
width: `${24 /
|
|
454
|
-
height: `${24 /
|
|
452
|
+
width: `${24 / 14}em`,
|
|
453
|
+
height: `${24 / 14}em`
|
|
455
454
|
});
|
|
456
455
|
const buttonIconBeforeStyles = xcss({
|
|
457
456
|
paddingInlineStart: 'space.100'
|
|
@@ -119,7 +119,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
|
|
|
119
119
|
action: 'clicked',
|
|
120
120
|
componentName: 'button',
|
|
121
121
|
packageName: "@atlaskit/button",
|
|
122
|
-
packageVersion: "17.22.
|
|
122
|
+
packageVersion: "17.22.2",
|
|
123
123
|
analyticsData: analyticsContext
|
|
124
124
|
});
|
|
125
125
|
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
4
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
5
5
|
gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
6
6
|
import colors from './colors';
|
|
7
7
|
const gridSize = getGridSize();
|
|
8
|
-
const fontSize = getFontSize();
|
|
9
8
|
|
|
10
9
|
// ## Button layout
|
|
11
10
|
//
|
|
@@ -20,9 +19,9 @@ const fontSize = getFontSize();
|
|
|
20
19
|
// Margins don't collapse with inline-flex
|
|
21
20
|
//
|
|
22
21
|
const heights = {
|
|
23
|
-
default: `${
|
|
22
|
+
default: `${32 / 14}em`,
|
|
24
23
|
// 32px
|
|
25
|
-
compact: `${
|
|
24
|
+
compact: `${24 / 14}em`,
|
|
26
25
|
none: 'auto'
|
|
27
26
|
};
|
|
28
27
|
const lineHeights = {
|
|
@@ -6,11 +6,9 @@
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
9
|
-
import { fontSize as getFontSize } from '@atlaskit/theme/constants';
|
|
10
|
-
var fontSize = getFontSize();
|
|
11
9
|
var heights = {
|
|
12
|
-
default: "".concat(32 /
|
|
13
|
-
compact: "".concat(24 /
|
|
10
|
+
default: "".concat(32 / 14, "em"),
|
|
11
|
+
compact: "".concat(24 / 14, "em"),
|
|
14
12
|
none: 'auto'
|
|
15
13
|
};
|
|
16
14
|
import { SplitButtonContext } from './split-button-context';
|
|
@@ -8,12 +8,10 @@ import useAutoFocus from '@atlaskit/ds-lib/use-auto-focus';
|
|
|
8
8
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
9
9
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
10
10
|
import * as colors from '@atlaskit/theme/colors';
|
|
11
|
-
import { fontSize as getFontSize } from '@atlaskit/theme/constants';
|
|
12
11
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
13
12
|
import { useSplitButtonContext } from '../../containers/split-button/split-button-context';
|
|
14
13
|
import blockEvents from './block-events';
|
|
15
14
|
import { LOADING_LABEL } from './constants';
|
|
16
|
-
var fontSize = getFontSize();
|
|
17
15
|
var buttonStyles = xcss({
|
|
18
16
|
display: 'inline-flex',
|
|
19
17
|
boxSizing: 'border-box',
|
|
@@ -26,7 +24,7 @@ var buttonStyles = xcss({
|
|
|
26
24
|
borderRadius: 'border.radius.100',
|
|
27
25
|
borderWidth: 'border.width.0',
|
|
28
26
|
flexShrink: 0,
|
|
29
|
-
height: "".concat(32 /
|
|
27
|
+
height: "".concat(32 / 14, "em"),
|
|
30
28
|
paddingInlineEnd: 'space.150',
|
|
31
29
|
paddingInlineStart: 'space.150',
|
|
32
30
|
textAlign: 'center',
|
|
@@ -46,7 +44,7 @@ var hardCodedButtonStyles = xcss({
|
|
|
46
44
|
fontSize: 'inherit',
|
|
47
45
|
fontStyle: 'normal',
|
|
48
46
|
fontWeight: 500,
|
|
49
|
-
lineHeight: "".concat(32 /
|
|
47
|
+
lineHeight: "".concat(32 / 14, "em"),
|
|
50
48
|
paddingBlock: 'space.0'
|
|
51
49
|
});
|
|
52
50
|
var tokenizedButtonStyles = xcss({
|
|
@@ -83,6 +81,7 @@ var defaultStyles = xcss({
|
|
|
83
81
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
84
82
|
background: "var(--ds-background-neutral, ".concat(colors.N20A, ")"),
|
|
85
83
|
// @ts-expect-error — using tokens for explicit fallback usage.
|
|
84
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- -- Ignored via go/DSP-18766
|
|
86
85
|
color: "var(--ds-text, ".concat(colors.N500, ")"),
|
|
87
86
|
':visited': {
|
|
88
87
|
// @ts-expect-error
|
|
@@ -412,13 +411,13 @@ var selectedDiscoveryStyles = xcss({
|
|
|
412
411
|
});
|
|
413
412
|
var spacingCompactStyles = xcss({
|
|
414
413
|
columnGap: 'space.050',
|
|
415
|
-
height: "".concat(24 /
|
|
414
|
+
height: "".concat(24 / 14, "em"),
|
|
416
415
|
paddingInlineEnd: 'space.150',
|
|
417
416
|
paddingInlineStart: 'space.150',
|
|
418
417
|
verticalAlign: 'middle'
|
|
419
418
|
});
|
|
420
419
|
var baseSpacingCompactStyles = xcss({
|
|
421
|
-
lineHeight: "".concat(24 /
|
|
420
|
+
lineHeight: "".concat(24 / 14, "em")
|
|
422
421
|
});
|
|
423
422
|
var tokenizedSpacingCompactStyles = xcss({
|
|
424
423
|
paddingBlock: 'space.025'
|
|
@@ -447,14 +446,14 @@ var nonInteractiveStyles = xcss({
|
|
|
447
446
|
cursor: 'not-allowed'
|
|
448
447
|
});
|
|
449
448
|
var iconButtonStyles = xcss({
|
|
450
|
-
height: "".concat(32 /
|
|
451
|
-
width: "".concat(32 /
|
|
449
|
+
height: "".concat(32 / 14, "em"),
|
|
450
|
+
width: "".concat(32 / 14, "em"),
|
|
452
451
|
paddingInlineEnd: 'space.0',
|
|
453
452
|
paddingInlineStart: 'space.0'
|
|
454
453
|
});
|
|
455
454
|
var iconButtonCompactStyles = xcss({
|
|
456
|
-
width: "".concat(24 /
|
|
457
|
-
height: "".concat(24 /
|
|
455
|
+
width: "".concat(24 / 14, "em"),
|
|
456
|
+
height: "".concat(24 / 14, "em")
|
|
458
457
|
});
|
|
459
458
|
var buttonIconBeforeStyles = xcss({
|
|
460
459
|
paddingInlineStart: 'space.100'
|
|
@@ -125,7 +125,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
|
|
|
125
125
|
action: 'clicked',
|
|
126
126
|
componentName: 'button',
|
|
127
127
|
packageName: "@atlaskit/button",
|
|
128
|
-
packageVersion: "17.22.
|
|
128
|
+
packageVersion: "17.22.2",
|
|
129
129
|
analyticsData: analyticsContext
|
|
130
130
|
});
|
|
131
131
|
|
|
@@ -3,12 +3,11 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
3
3
|
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) { _defineProperty(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; }
|
|
4
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
7
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
8
8
|
gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
9
9
|
import colors from './colors';
|
|
10
10
|
var gridSize = getGridSize();
|
|
11
|
-
var fontSize = getFontSize();
|
|
12
11
|
|
|
13
12
|
// ## Button layout
|
|
14
13
|
//
|
|
@@ -23,9 +22,9 @@ var fontSize = getFontSize();
|
|
|
23
22
|
// Margins don't collapse with inline-flex
|
|
24
23
|
//
|
|
25
24
|
var heights = {
|
|
26
|
-
default: "".concat(
|
|
25
|
+
default: "".concat(32 / 14, "em"),
|
|
27
26
|
// 32px
|
|
28
|
-
compact: "".concat(
|
|
27
|
+
compact: "".concat(24 / 14, "em"),
|
|
29
28
|
none: 'auto'
|
|
30
29
|
};
|
|
31
30
|
var lineHeights = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/button",
|
|
3
|
-
"version": "17.22.
|
|
3
|
+
"version": "17.22.2",
|
|
4
4
|
"description": "A button triggers an event or action. They let users know what will happen next.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"@atlaskit/platform-feature-flags": "^0.2.5",
|
|
138
138
|
"@atlaskit/primitives": "^8.0.0",
|
|
139
139
|
"@atlaskit/spinner": "^16.2.0",
|
|
140
|
-
"@atlaskit/theme": "^12.
|
|
140
|
+
"@atlaskit/theme": "^12.11.0",
|
|
141
141
|
"@atlaskit/tokens": "^1.51.0",
|
|
142
142
|
"@atlaskit/tooltip": "^18.5.0",
|
|
143
143
|
"@atlaskit/visually-hidden": "^1.4.0",
|