@atlaskit/button 23.10.5 → 23.10.6
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 +8 -0
- package/dist/cjs/old-button/button.js +1 -1
- package/dist/cjs/old-button/shared/button-base.js +2 -3
- package/dist/es2019/old-button/button.js +1 -1
- package/dist/es2019/old-button/shared/button-base.js +2 -3
- package/dist/esm/old-button/button.js +1 -1
- package/dist/esm/old-button/shared/button-base.js +2 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/button
|
|
2
2
|
|
|
3
|
+
## 23.10.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`7aef1e49e90ea`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7aef1e49e90ea) -
|
|
8
|
+
Removes redundant fallback color values via @atlaskit/theme
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 23.10.5
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -58,7 +58,7 @@ var Button = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
58
58
|
setIsActive = _useState2[1];
|
|
59
59
|
|
|
60
60
|
// Wrap onMouseDown / onMouseUp to manually trigger active state
|
|
61
|
-
//
|
|
61
|
+
// in Firefox
|
|
62
62
|
var onMouseDown = (0, _react.useCallback)(function (event) {
|
|
63
63
|
providedOnMouseDown(event);
|
|
64
64
|
if (isFirefox) {
|
|
@@ -15,7 +15,6 @@ var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
|
|
|
15
15
|
var _useAutoFocus = _interopRequireDefault(require("@atlaskit/ds-lib/use-auto-focus"));
|
|
16
16
|
var _focusRing = _interopRequireDefault(require("@atlaskit/focus-ring"));
|
|
17
17
|
var _interactionContext = _interopRequireDefault(require("@atlaskit/interaction-context"));
|
|
18
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
19
18
|
var _blockEvents = _interopRequireDefault(require("./block-events"));
|
|
20
19
|
var _css = require("./css");
|
|
21
20
|
var _getIfVisuallyHiddenChildren = require("./get-if-visually-hidden-children");
|
|
@@ -132,7 +131,7 @@ var ButtonBase = /*#__PURE__*/_react.default.forwardRef(function ButtonBase(prop
|
|
|
132
131
|
action: 'clicked',
|
|
133
132
|
componentName: 'button',
|
|
134
133
|
packageName: "@atlaskit/button",
|
|
135
|
-
packageVersion: "23.10.
|
|
134
|
+
packageVersion: "23.10.6",
|
|
136
135
|
analyticsData: analyticsContext
|
|
137
136
|
});
|
|
138
137
|
|
|
@@ -167,7 +166,7 @@ var ButtonBase = /*#__PURE__*/_react.default.forwardRef(function ButtonBase(prop
|
|
|
167
166
|
if (isSelected || isDisabled || appearance === 'warning') {
|
|
168
167
|
spinnerHackCss = {
|
|
169
168
|
'[data-theme] & circle': {
|
|
170
|
-
stroke: "".concat(isSelected || isDisabled ? "var(--ds-icon-subtle,
|
|
169
|
+
stroke: "".concat(isSelected || isDisabled ? "var(--ds-icon-subtle, #505258)" : "var(--ds-icon-warning-inverse, #292A2E)", " !important")
|
|
171
170
|
}
|
|
172
171
|
};
|
|
173
172
|
}
|
|
@@ -41,7 +41,7 @@ const Button = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function B
|
|
|
41
41
|
const [isActive, setIsActive] = useState(false);
|
|
42
42
|
|
|
43
43
|
// Wrap onMouseDown / onMouseUp to manually trigger active state
|
|
44
|
-
//
|
|
44
|
+
// in Firefox
|
|
45
45
|
const onMouseDown = useCallback(event => {
|
|
46
46
|
providedOnMouseDown(event);
|
|
47
47
|
if (isFirefox) {
|
|
@@ -14,7 +14,6 @@ import useAutoFocus from '@atlaskit/ds-lib/use-auto-focus';
|
|
|
14
14
|
import FocusRing from '@atlaskit/focus-ring';
|
|
15
15
|
// eslint-disable-next-line no-duplicate-imports
|
|
16
16
|
import InteractionContext from '@atlaskit/interaction-context';
|
|
17
|
-
import { N500 } from '@atlaskit/theme/colors';
|
|
18
17
|
import blockEvents from './block-events';
|
|
19
18
|
import { getContentStyle, getFadingCss, getIconStyle, overlayCss } from './css';
|
|
20
19
|
import { getIfVisuallyHiddenChildren } from './get-if-visually-hidden-children';
|
|
@@ -119,7 +118,7 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref)
|
|
|
119
118
|
action: 'clicked',
|
|
120
119
|
componentName: 'button',
|
|
121
120
|
packageName: "@atlaskit/button",
|
|
122
|
-
packageVersion: "23.10.
|
|
121
|
+
packageVersion: "23.10.6",
|
|
123
122
|
analyticsData: analyticsContext
|
|
124
123
|
});
|
|
125
124
|
|
|
@@ -154,7 +153,7 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref)
|
|
|
154
153
|
if (isSelected || isDisabled || appearance === 'warning') {
|
|
155
154
|
spinnerHackCss = {
|
|
156
155
|
'[data-theme] & circle': {
|
|
157
|
-
stroke: `${isSelected || isDisabled ?
|
|
156
|
+
stroke: `${isSelected || isDisabled ? "var(--ds-icon-subtle, #505258)" : "var(--ds-icon-warning-inverse, #292A2E)"} !important`
|
|
158
157
|
}
|
|
159
158
|
};
|
|
160
159
|
}
|
|
@@ -52,7 +52,7 @@ var Button = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function But
|
|
|
52
52
|
setIsActive = _useState2[1];
|
|
53
53
|
|
|
54
54
|
// Wrap onMouseDown / onMouseUp to manually trigger active state
|
|
55
|
-
//
|
|
55
|
+
// in Firefox
|
|
56
56
|
var onMouseDown = useCallback(function (event) {
|
|
57
57
|
providedOnMouseDown(event);
|
|
58
58
|
if (isFirefox) {
|
|
@@ -16,7 +16,6 @@ import useAutoFocus from '@atlaskit/ds-lib/use-auto-focus';
|
|
|
16
16
|
import FocusRing from '@atlaskit/focus-ring';
|
|
17
17
|
// eslint-disable-next-line no-duplicate-imports
|
|
18
18
|
import InteractionContext from '@atlaskit/interaction-context';
|
|
19
|
-
import { N500 } from '@atlaskit/theme/colors';
|
|
20
19
|
import blockEvents from './block-events';
|
|
21
20
|
import { getContentStyle, getFadingCss, getIconStyle, overlayCss } from './css';
|
|
22
21
|
import { getIfVisuallyHiddenChildren } from './get-if-visually-hidden-children';
|
|
@@ -125,7 +124,7 @@ var ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
|
|
|
125
124
|
action: 'clicked',
|
|
126
125
|
componentName: 'button',
|
|
127
126
|
packageName: "@atlaskit/button",
|
|
128
|
-
packageVersion: "23.10.
|
|
127
|
+
packageVersion: "23.10.6",
|
|
129
128
|
analyticsData: analyticsContext
|
|
130
129
|
});
|
|
131
130
|
|
|
@@ -160,7 +159,7 @@ var ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
|
|
|
160
159
|
if (isSelected || isDisabled || appearance === 'warning') {
|
|
161
160
|
spinnerHackCss = {
|
|
162
161
|
'[data-theme] & circle': {
|
|
163
|
-
stroke: "".concat(isSelected || isDisabled ? "var(--ds-icon-subtle,
|
|
162
|
+
stroke: "".concat(isSelected || isDisabled ? "var(--ds-icon-subtle, #505258)" : "var(--ds-icon-warning-inverse, #292A2E)", " !important")
|
|
164
163
|
}
|
|
165
164
|
};
|
|
166
165
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/button",
|
|
3
|
-
"version": "23.10.
|
|
3
|
+
"version": "23.10.6",
|
|
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/"
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@atlaskit/primitives": "^18.1.0",
|
|
85
85
|
"@atlaskit/spinner": "^19.0.0",
|
|
86
86
|
"@atlaskit/theme": "^22.0.0",
|
|
87
|
-
"@atlaskit/tokens": "^11.
|
|
87
|
+
"@atlaskit/tokens": "^11.4.0",
|
|
88
88
|
"@atlaskit/tooltip": "^21.0.0",
|
|
89
89
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
90
90
|
"@babel/runtime": "^7.0.0",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"@atlaskit/heading": "^5.3.0",
|
|
107
107
|
"@atlaskit/link": "^3.3.0",
|
|
108
108
|
"@atlaskit/logo": "^19.10.0",
|
|
109
|
-
"@atlaskit/modal-dialog": "^14.
|
|
109
|
+
"@atlaskit/modal-dialog": "^14.13.0",
|
|
110
110
|
"@atlaskit/section-message": "^8.12.0",
|
|
111
111
|
"@atlaskit/select": "^21.8.0",
|
|
112
112
|
"@atlaskit/toggle": "^15.2.0",
|