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