@atlaskit/button 17.3.2 → 17.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/button
2
2
 
3
+ ## 17.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#72130](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72130) [`b037e5451037`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b037e5451037) - Update new button text color fallback for default theme (non-token) to match that of old button current text color
8
+
3
9
  ## 17.3.2
4
10
 
5
11
  ### Patch Changes
@@ -77,8 +77,10 @@ var values = {
77
77
  },
78
78
  color: {
79
79
  default: {
80
- default: 'color.text',
81
- active: 'color.text',
80
+ // @ts-expect-error
81
+ default: "var(--ds-text, ".concat(colors.N500, ")"),
82
+ // @ts-expect-error
83
+ active: "var(--ds-text, ".concat(colors.B400, ")"),
82
84
  disabled: 'color.text.disabled',
83
85
  // @ts-expect-error
84
86
  selected: "var(--ds-text-selected, ".concat(colors.N20, ")")
@@ -103,23 +105,29 @@ var values = {
103
105
  },
104
106
  link: {
105
107
  default: 'color.link',
106
- hover: 'color.link',
108
+ // @ts-expect-error
109
+ hover: "var(--ds-link, ".concat(colors.B300, ")"),
107
110
  active: 'color.link.pressed',
108
111
  disabled: 'color.text.disabled',
109
112
  // @ts-expect-error
110
113
  selected: "var(--ds-text-selected, ".concat(colors.N20, ")")
111
114
  },
112
115
  subtle: {
113
- default: 'color.text',
114
- active: 'color.text',
116
+ // @ts-expect-error
117
+ default: "var(--ds-text, ".concat(colors.N500, ")"),
118
+ // @ts-expect-error
119
+ active: "var(--ds-text, ".concat(colors.B400, ")"),
115
120
  disabled: 'color.text.disabled',
116
121
  // @ts-expect-error
117
122
  selected: "var(--ds-text-selected, ".concat(colors.N20, ")")
118
123
  },
119
124
  'subtle-link': {
120
- default: 'color.text.subtle',
121
- hover: 'color.text.subtle',
122
- active: 'color.text',
125
+ // @ts-expect-error
126
+ default: "var(--ds-text-subtle, ".concat(colors.N200, ")"),
127
+ // @ts-expect-error
128
+ hover: "var(--ds-text-subtle, ".concat(colors.N90, ")"),
129
+ // @ts-expect-error
130
+ active: "var(--ds-text, ".concat(colors.N400, ")"),
123
131
  disabled: 'color.text.disabled',
124
132
  // @ts-expect-error
125
133
  selected: "var(--ds-text-selected, ".concat(colors.N20, ")")
@@ -117,7 +117,7 @@ var useButtonBase = function useButtonBase(_ref) {
117
117
  action: 'clicked',
118
118
  componentName: 'button',
119
119
  packageName: "@atlaskit/button",
120
- packageVersion: "17.3.2",
120
+ packageVersion: "17.4.0",
121
121
  analyticsData: analyticsContext,
122
122
  actionSubject: buttonType
123
123
  });
@@ -117,7 +117,7 @@ var _default = exports.default = /*#__PURE__*/_react.default.forwardRef(function
117
117
  action: 'clicked',
118
118
  componentName: 'button',
119
119
  packageName: "@atlaskit/button",
120
- packageVersion: "17.3.2",
120
+ packageVersion: "17.4.0",
121
121
  analyticsData: analyticsContext
122
122
  });
123
123
 
@@ -68,8 +68,10 @@ const values = {
68
68
  },
69
69
  color: {
70
70
  default: {
71
- default: 'color.text',
72
- active: 'color.text',
71
+ // @ts-expect-error
72
+ default: `var(--ds-text, ${colors.N500})`,
73
+ // @ts-expect-error
74
+ active: `var(--ds-text, ${colors.B400})`,
73
75
  disabled: 'color.text.disabled',
74
76
  // @ts-expect-error
75
77
  selected: `var(--ds-text-selected, ${colors.N20})`
@@ -94,23 +96,29 @@ const values = {
94
96
  },
95
97
  link: {
96
98
  default: 'color.link',
97
- hover: 'color.link',
99
+ // @ts-expect-error
100
+ hover: `var(--ds-link, ${colors.B300})`,
98
101
  active: 'color.link.pressed',
99
102
  disabled: 'color.text.disabled',
100
103
  // @ts-expect-error
101
104
  selected: `var(--ds-text-selected, ${colors.N20})`
102
105
  },
103
106
  subtle: {
104
- default: 'color.text',
105
- active: 'color.text',
107
+ // @ts-expect-error
108
+ default: `var(--ds-text, ${colors.N500})`,
109
+ // @ts-expect-error
110
+ active: `var(--ds-text, ${colors.B400})`,
106
111
  disabled: 'color.text.disabled',
107
112
  // @ts-expect-error
108
113
  selected: `var(--ds-text-selected, ${colors.N20})`
109
114
  },
110
115
  'subtle-link': {
111
- default: 'color.text.subtle',
112
- hover: 'color.text.subtle',
113
- active: 'color.text',
116
+ // @ts-expect-error
117
+ default: `var(--ds-text-subtle, ${colors.N200})`,
118
+ // @ts-expect-error
119
+ hover: `var(--ds-text-subtle, ${colors.N90})`,
120
+ // @ts-expect-error
121
+ active: `var(--ds-text, ${colors.N400})`,
114
122
  disabled: 'color.text.disabled',
115
123
  // @ts-expect-error
116
124
  selected: `var(--ds-text-selected, ${colors.N20})`
@@ -98,7 +98,7 @@ const useButtonBase = ({
98
98
  action: 'clicked',
99
99
  componentName: 'button',
100
100
  packageName: "@atlaskit/button",
101
- packageVersion: "17.3.2",
101
+ packageVersion: "17.4.0",
102
102
  analyticsData: analyticsContext,
103
103
  actionSubject: buttonType
104
104
  });
@@ -102,7 +102,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
102
102
  action: 'clicked',
103
103
  componentName: 'button',
104
104
  packageName: "@atlaskit/button",
105
- packageVersion: "17.3.2",
105
+ packageVersion: "17.4.0",
106
106
  analyticsData: analyticsContext
107
107
  });
108
108
 
@@ -68,8 +68,10 @@ var values = {
68
68
  },
69
69
  color: {
70
70
  default: {
71
- default: 'color.text',
72
- active: 'color.text',
71
+ // @ts-expect-error
72
+ default: "var(--ds-text, ".concat(colors.N500, ")"),
73
+ // @ts-expect-error
74
+ active: "var(--ds-text, ".concat(colors.B400, ")"),
73
75
  disabled: 'color.text.disabled',
74
76
  // @ts-expect-error
75
77
  selected: "var(--ds-text-selected, ".concat(colors.N20, ")")
@@ -94,23 +96,29 @@ var values = {
94
96
  },
95
97
  link: {
96
98
  default: 'color.link',
97
- hover: 'color.link',
99
+ // @ts-expect-error
100
+ hover: "var(--ds-link, ".concat(colors.B300, ")"),
98
101
  active: 'color.link.pressed',
99
102
  disabled: 'color.text.disabled',
100
103
  // @ts-expect-error
101
104
  selected: "var(--ds-text-selected, ".concat(colors.N20, ")")
102
105
  },
103
106
  subtle: {
104
- default: 'color.text',
105
- active: 'color.text',
107
+ // @ts-expect-error
108
+ default: "var(--ds-text, ".concat(colors.N500, ")"),
109
+ // @ts-expect-error
110
+ active: "var(--ds-text, ".concat(colors.B400, ")"),
106
111
  disabled: 'color.text.disabled',
107
112
  // @ts-expect-error
108
113
  selected: "var(--ds-text-selected, ".concat(colors.N20, ")")
109
114
  },
110
115
  'subtle-link': {
111
- default: 'color.text.subtle',
112
- hover: 'color.text.subtle',
113
- active: 'color.text',
116
+ // @ts-expect-error
117
+ default: "var(--ds-text-subtle, ".concat(colors.N200, ")"),
118
+ // @ts-expect-error
119
+ hover: "var(--ds-text-subtle, ".concat(colors.N90, ")"),
120
+ // @ts-expect-error
121
+ active: "var(--ds-text, ".concat(colors.N400, ")"),
114
122
  disabled: 'color.text.disabled',
115
123
  // @ts-expect-error
116
124
  selected: "var(--ds-text-selected, ".concat(colors.N20, ")")
@@ -109,7 +109,7 @@ var useButtonBase = function useButtonBase(_ref) {
109
109
  action: 'clicked',
110
110
  componentName: 'button',
111
111
  packageName: "@atlaskit/button",
112
- packageVersion: "17.3.2",
112
+ packageVersion: "17.4.0",
113
113
  analyticsData: analyticsContext,
114
114
  actionSubject: buttonType
115
115
  });
@@ -108,7 +108,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
108
108
  action: 'clicked',
109
109
  componentName: 'button',
110
110
  packageName: "@atlaskit/button",
111
- packageVersion: "17.3.2",
111
+ packageVersion: "17.4.0",
112
112
  analyticsData: analyticsContext
113
113
  });
114
114
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/button",
3
- "version": "17.3.2",
3
+ "version": "17.4.0",
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/"
@@ -90,7 +90,7 @@
90
90
  "@atlaskit/primitives": "^2.0.0",
91
91
  "@atlaskit/spinner": "^16.0.0",
92
92
  "@atlaskit/theme": "^12.6.0",
93
- "@atlaskit/tokens": "^1.36.0",
93
+ "@atlaskit/tokens": "^1.37.0",
94
94
  "@atlaskit/visually-hidden": "^1.2.4",
95
95
  "@babel/runtime": "^7.0.0",
96
96
  "@emotion/react": "^11.7.1"