@atlaskit/icon 25.3.0 → 25.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.
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * To change the format of this file, modify `createIconDocsNew` in icon-build-process/src/create-icon-docs.tsx.
5
5
  *
6
- * @codegen <<SignedSource::58a5410f3478761fe38a89a56184aefb>>
6
+ * @codegen <<SignedSource::61c8e5972c67cf6862ba338f4468f558>>
7
7
  * @codegenCommand yarn build:icon-glyphs
8
8
  */
9
9
 
@@ -16,7 +16,8 @@ const metadata = {
16
16
  type: 'utility',
17
17
  categorization: 'utility',
18
18
  usage: 'Reserved for creating and adding an object as a secondary/tertiary action in a menu item.',
19
- team: 'Design System Team'
19
+ team: 'Design System Team',
20
+ status: 'published'
20
21
  },
21
22
  'arrow-down': {
22
23
  keywords: ['arrow-down', 'arrowdown', 'icon', 'utility', 'down', 'bottom', 'sorting'],
@@ -26,7 +27,8 @@ const metadata = {
26
27
  type: 'utility',
27
28
  categorization: 'utility',
28
29
  usage: 'Know uses: sorting table headers or Bitbucket code difference.',
29
- team: 'Design System Team'
30
+ team: 'Design System Team',
31
+ status: 'published'
30
32
  },
31
33
  'arrow-left': {
32
34
  keywords: ['arrow-left', 'arrowleft', 'back', 'previous', 'icon', 'utility', 'back', 'previous'],
@@ -36,7 +38,8 @@ const metadata = {
36
38
  type: 'utility',
37
39
  categorization: 'utility',
38
40
  usage: 'Known uses: back to previous screen, previous slide.',
39
- team: 'Design System Team'
41
+ team: 'Design System Team',
42
+ status: 'published'
40
43
  },
41
44
  'arrow-right': {
42
45
  keywords: ['arrow-right', 'arrowright', 'forward', 'next', 'icon', 'utility', 'forward', 'next', 'link'],
@@ -46,7 +49,8 @@ const metadata = {
46
49
  type: 'utility',
47
50
  categorization: 'utility',
48
51
  usage: 'Known uses: link to nested menu item, a linked menu item, next slide.',
49
- team: 'Design System Team'
52
+ team: 'Design System Team',
53
+ status: 'published'
50
54
  },
51
55
  'arrow-up': {
52
56
  keywords: ['arrow-up', 'arrowup', 'icon', 'utility', 'improvement', 'jira status'],
@@ -56,7 +60,8 @@ const metadata = {
56
60
  type: 'utility',
57
61
  categorization: 'utility',
58
62
  usage: 'Known uses: back to top.',
59
- team: 'Design System Team'
63
+ team: 'Design System Team',
64
+ status: 'published'
60
65
  },
61
66
  'check-circle': {
62
67
  keywords: ['check-circle', 'checkcircle', 'tick', 'icon', 'utility', 'tick', 'yes', 'checkmark'],
@@ -66,7 +71,8 @@ const metadata = {
66
71
  type: 'utility',
67
72
  categorization: 'utility',
68
73
  usage: '📦 @atlaskit/icon/utility/check-circle',
69
- team: 'Design System Team'
74
+ team: 'Design System Team',
75
+ status: 'published'
70
76
  },
71
77
  'check-mark': {
72
78
  keywords: ['check-mark', 'checkmark', 'icon', 'utility', 'tick'],
@@ -76,7 +82,8 @@ const metadata = {
76
82
  type: 'utility',
77
83
  categorization: 'utility',
78
84
  usage: '📦 @atlaskit/icon/utility/check-mark',
79
- team: 'Design System Team'
85
+ team: 'Design System Team',
86
+ status: 'published'
80
87
  },
81
88
  'chevron-double-left': {
82
89
  keywords: ['chevron-double-left', 'chevrondoubleleft', 'icon', 'utility', 'calendar year', '<<', 'less than', 'previous'],
@@ -86,6 +93,7 @@ const metadata = {
86
93
  categorization: 'utility',
87
94
  usage: 'Reserved for calendar year button.',
88
95
  team: 'Design System Team',
96
+ status: 'ready-to-publish',
89
97
  slackChannel: '#help-design-system'
90
98
  },
91
99
  'chevron-double-right': {
@@ -96,6 +104,7 @@ const metadata = {
96
104
  categorization: 'utility',
97
105
  usage: 'Reserved for calendar year button.',
98
106
  team: 'Design System Team',
107
+ status: 'ready-to-publish',
99
108
  slackChannel: '#help-design-system'
100
109
  },
101
110
  'chevron-down': {
@@ -106,7 +115,8 @@ const metadata = {
106
115
  type: 'utility',
107
116
  categorization: 'utility',
108
117
  usage: 'Reserved for dropdown menus, selects, accordions, and expands.',
109
- team: 'Design System Team'
118
+ team: 'Design System Team',
119
+ status: 'published'
110
120
  },
111
121
  'chevron-left': {
112
122
  keywords: ['chevron-left', 'chevronleft', 'back', 'previous', 'icon', 'utility', 'less than', '<', 'previous'],
@@ -116,7 +126,8 @@ const metadata = {
116
126
  type: 'utility',
117
127
  categorization: 'utility',
118
128
  usage: 'Reserved for collapse side nav and to indicate previous in dates.',
119
- team: 'Design System Team'
129
+ team: 'Design System Team',
130
+ status: 'published'
120
131
  },
121
132
  'chevron-right': {
122
133
  keywords: ['chevron-right', 'chevronright', 'forward', 'next', 'icon', 'utility', 'greater than', '>', 'next'],
@@ -126,7 +137,8 @@ const metadata = {
126
137
  type: 'utility',
127
138
  categorization: 'utility',
128
139
  usage: 'Reserved for menu fly outs and to indicate next in dates.',
129
- team: 'Design System Team'
140
+ team: 'Design System Team',
141
+ status: 'published'
130
142
  },
131
143
  'chevron-up': {
132
144
  keywords: ['chevron-up', 'chevronup', 'expand', 'collapse', 'icon', 'utility', 'up', 'accordion'],
@@ -136,7 +148,8 @@ const metadata = {
136
148
  type: 'utility',
137
149
  categorization: 'utility',
138
150
  usage: 'Reserved for accordions.',
139
- team: 'Design System Team'
151
+ team: 'Design System Team',
152
+ status: 'published'
140
153
  },
141
154
  cross: {
142
155
  keywords: ['cross', 'close', 'x', 'cancel', 'icon', 'utility', 'remove', 'clear', 'x'],
@@ -146,7 +159,8 @@ const metadata = {
146
159
  type: 'utility',
147
160
  categorization: 'utility',
148
161
  usage: 'Known uses: remove tag.',
149
- team: 'Design System Team'
162
+ team: 'Design System Team',
163
+ status: 'published'
150
164
  },
151
165
  'cross-circle': {
152
166
  keywords: ['cross-circle', 'crosscircle', 'close', 'x', 'cancel', 'icon', 'utility', 'x', 'exit', 'clear', 'no', 'filled', 'form'],
@@ -156,7 +170,8 @@ const metadata = {
156
170
  type: 'utility',
157
171
  categorization: 'utility',
158
172
  usage: 'Reserved for Helper Messages in Forms.',
159
- team: 'Design System Team'
173
+ team: 'Design System Team',
174
+ status: 'published'
160
175
  },
161
176
  'drag-handle': {
162
177
  keywords: ['drag-handle', 'draghandle', 'icon', 'utility', 'drag handler', 'drag dots', 'reorder', 'move'],
@@ -171,7 +186,8 @@ const metadata = {
171
186
  },
172
187
  categorization: 'utility',
173
188
  usage: 'Reserved for draggable elements.',
174
- team: 'Design System Team'
189
+ team: 'Design System Team',
190
+ status: 'deprecated'
175
191
  },
176
192
  'drag-handle-horizontal': {
177
193
  keywords: ['drag-handle-horizontal', 'draghandlehorizontal', 'icon', 'utility', 'drag', 'drag handler', 'reorder columns', 'move'],
@@ -181,6 +197,7 @@ const metadata = {
181
197
  categorization: 'utility',
182
198
  usage: 'Reserved for dragging elements along a horizontal axis.',
183
199
  team: 'Design System Team',
200
+ status: 'published',
184
201
  slackChannel: '#icon-contributions'
185
202
  },
186
203
  'drag-handle-vertical': {
@@ -192,6 +209,7 @@ const metadata = {
192
209
  categorization: 'utility',
193
210
  usage: 'Reserved for dragging elements along a vertical axis.',
194
211
  team: 'Design System Team',
212
+ status: 'published',
195
213
  slackChannel: '#icon-contributions'
196
214
  },
197
215
  error: {
@@ -202,7 +220,8 @@ const metadata = {
202
220
  type: 'utility',
203
221
  categorization: 'utility',
204
222
  usage: 'Reserved for Helper Messages in Forms.',
205
- team: 'Design System Team'
223
+ team: 'Design System Team',
224
+ status: 'published'
206
225
  },
207
226
  information: {
208
227
  keywords: ['information', 'icon', 'utility', 'info', 'filled', 'helper', 'tip', 'form'],
@@ -212,7 +231,8 @@ const metadata = {
212
231
  type: 'utility',
213
232
  categorization: 'utility',
214
233
  usage: 'Reserved for Helper Messages in Forms.',
215
- team: 'Design System Team'
234
+ team: 'Design System Team',
235
+ status: 'published'
216
236
  },
217
237
  'link-external': {
218
238
  keywords: ['link-external', 'linkexternal', 'icon', 'utility', 'new tab', 'new window', 'open in', 'url', 'hyperlink', 'www', 'http', 'https', 'website', 'external', 'shortcut', 'diagonal arrow', 'secondary', 'tertiary'],
@@ -222,7 +242,8 @@ const metadata = {
222
242
  type: 'utility',
223
243
  categorization: 'utility',
224
244
  usage: 'Reserved for links that open up a new tab as a secondary/tertiary action.',
225
- team: 'Design System Team'
245
+ team: 'Design System Team',
246
+ status: 'published'
226
247
  },
227
248
  'lock-locked': {
228
249
  keywords: ['lock-locked', 'locklocked', 'icon', 'utility', 'secondary', 'tertiary', 'permissions', 'no access', 'restricted', 'security', 'secure', 'forbidden', 'authentication'],
@@ -232,7 +253,8 @@ const metadata = {
232
253
  type: 'utility',
233
254
  categorization: 'utility',
234
255
  usage: 'Reserved for indicating something is locked in the side navigation Menu Item.',
235
- team: 'Design System Team'
256
+ team: 'Design System Team',
257
+ status: 'published'
236
258
  },
237
259
  'lock-unlocked': {
238
260
  keywords: ['lock-unlocked', 'lockunlocked', 'icon', 'utility', 'secondary', 'tertiary', 'open permissions', 'unrestricted access', 'security', 'insecure', 'authentication'],
@@ -242,7 +264,8 @@ const metadata = {
242
264
  type: 'utility',
243
265
  categorization: 'utility',
244
266
  usage: 'Reserved for indicating something is locked in the side navigation Menu Item.',
245
- team: 'Design System Team'
267
+ team: 'Design System Team',
268
+ status: 'published'
246
269
  },
247
270
  'show-more-horizontal': {
248
271
  keywords: ['show-more-horizontal', 'showmorehorizontal', 'icon', 'utility', 'ellipses', 'three dots', 'meatball', 'more actions', 'secondary', 'tertiary'],
@@ -252,7 +275,8 @@ const metadata = {
252
275
  type: 'utility',
253
276
  categorization: 'utility',
254
277
  usage: 'Reserved for secondary/tertiary more action menus.',
255
- team: 'Design System Team'
278
+ team: 'Design System Team',
279
+ status: 'published'
256
280
  },
257
281
  'show-more-vertical': {
258
282
  keywords: ['show-more-vertical', 'showmorevertical', 'icon', 'utility', 'three dots', 'kebab', 'more actions', 'secondary', 'tertiary'],
@@ -262,7 +286,8 @@ const metadata = {
262
286
  type: 'utility',
263
287
  categorization: 'utility',
264
288
  usage: 'Reserved for secondary/tertiary action menus, traditionally on mobile.',
265
- team: 'Design System Team'
289
+ team: 'Design System Team',
290
+ status: 'published'
266
291
  },
267
292
  'star-starred': {
268
293
  keywords: ['star-starred', 'starstarred', 'icon', 'utility', 'favourite', 'star', 'starred', 'filled', 'menu', 'secondary', 'tertiary'],
@@ -272,7 +297,8 @@ const metadata = {
272
297
  type: 'utility',
273
298
  categorization: 'utility',
274
299
  usage: 'Reserved for starred or favourited objects as a secondary/tertiary action.',
275
- team: 'Design System Team'
300
+ team: 'Design System Team',
301
+ status: 'published'
276
302
  },
277
303
  'star-unstarred': {
278
304
  keywords: ['star-unstarred', 'starunstarred', 'icon', 'utility', 'favourite', 'star', 'form', 'secondary', 'tertiary'],
@@ -282,7 +308,8 @@ const metadata = {
282
308
  type: 'utility',
283
309
  categorization: 'utility',
284
310
  usage: 'Reserved for starring or favoriting objects as a secondary/tertiary action.',
285
- team: 'Design System Team'
311
+ team: 'Design System Team',
312
+ status: 'published'
286
313
  },
287
314
  success: {
288
315
  keywords: ['success', 'icon', 'utility', 'tick', 'yes', 'success', 'filled'],
@@ -292,7 +319,8 @@ const metadata = {
292
319
  type: 'utility',
293
320
  categorization: 'utility',
294
321
  usage: 'Reserved for Helper Messages in Forms.',
295
- team: 'Design System Team'
322
+ team: 'Design System Team',
323
+ status: 'published'
296
324
  },
297
325
  warning: {
298
326
  keywords: ['warning', 'error', 'alert', 'icon', 'utility', 'alert', 'danger', 'triangle', 'filled', 'secondary', 'tertiary'],
@@ -302,7 +330,8 @@ const metadata = {
302
330
  type: 'utility',
303
331
  categorization: 'utility',
304
332
  usage: 'Reserved for Helper Messages in Forms.',
305
- team: 'Design System Team'
333
+ team: 'Design System Team',
334
+ status: 'published'
306
335
  }
307
336
  };
308
337
  export default metadata;
@@ -153,23 +153,13 @@ export var Icon = /*#__PURE__*/memo(function Icon(props) {
153
153
  viewBoxPadding = paddingMap['core'][(_props$spacing2 = props.spacing) !== null && _props$spacing2 !== void 0 ? _props$spacing2 : 'none'];
154
154
  }
155
155
  var viewBoxSize = baseSize + 2 * viewBoxPadding;
156
-
157
- // Workaround for the transparency in our disabled icon token.
158
- // Because we have multiple strokes in icons, opacities overlap
159
- // This filter has an impact on render performance, but this is
160
- // acceptable as icons aren't commonly disabled en-masse
161
- var iconColor = color;
162
- if (dangerouslySetInnerHTML && color === "var(--ds-icon-disabled, #091E424F)") {
163
- dangerouslySetInnerHTML.__html = "\n<filter id=\"ds-newIconOpacityFilter\">\n <feFlood flood-color=\"var(--ds-icon-disabled)\" />\n <feComposite in2=\"SourceGraphic\" operator=\"in\" />\n</filter>\n<g filter=\"url(#ds-newIconOpacityFilter)\">\n ".concat(dangerouslySetInnerHTML.__html, "\n</g>");
164
- iconColor = "var(--ds-icon, #44546F)";
165
- }
166
156
  return jsx("span", {
167
157
  "data-testid": testId,
168
158
  role: label ? 'img' : undefined,
169
159
  "aria-label": label ? label : undefined,
170
160
  "aria-hidden": label ? undefined : true,
171
161
  style: {
172
- color: iconColor
162
+ color: color
173
163
  },
174
164
  css: [iconStyles, baseHcmStyles, shouldScale && scaleStyles, props.type === 'utility' && utilityIconStyles]
175
165
  }, jsx("svg", {