@atlaskit/icon 25.8.0 → 26.1.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 +26 -0
- package/core/chevron-double-left.d.ts +13 -0
- package/core/chevron-double-left.js +27 -0
- package/core/chevron-double-right.d.ts +13 -0
- package/core/chevron-double-right.js +27 -0
- package/core/chevron-down.d.ts +13 -0
- package/core/chevron-down.js +27 -0
- package/core/chevron-left.d.ts +13 -0
- package/core/chevron-left.js +27 -0
- package/core/chevron-right.d.ts +13 -0
- package/core/chevron-right.js +27 -0
- package/core/chevron-up.d.ts +13 -0
- package/core/chevron-up.js +27 -0
- package/core/migration/chevron-down--chevron-down-circle.d.ts +15 -0
- package/core/migration/chevron-down--chevron-down-circle.js +30 -0
- package/core/migration/chevron-down--hipchat-chevron-down.d.ts +15 -0
- package/core/migration/chevron-down--hipchat-chevron-down.js +30 -0
- package/core/migration/chevron-down.d.ts +15 -0
- package/core/migration/chevron-down.js +30 -0
- package/core/migration/chevron-left--chevron-left-circle.d.ts +15 -0
- package/core/migration/chevron-left--chevron-left-circle.js +30 -0
- package/core/migration/chevron-left--chevron-left-large.d.ts +15 -0
- package/core/migration/chevron-left--chevron-left-large.js +30 -0
- package/core/migration/chevron-left.d.ts +15 -0
- package/core/migration/chevron-left.js +30 -0
- package/core/migration/chevron-right--chevron-right-circle.d.ts +15 -0
- package/core/migration/chevron-right--chevron-right-circle.js +30 -0
- package/core/migration/chevron-right--chevron-right-large.d.ts +15 -0
- package/core/migration/chevron-right--chevron-right-large.js +30 -0
- package/core/migration/chevron-right.d.ts +15 -0
- package/core/migration/chevron-right.js +30 -0
- package/core/migration/chevron-up--chevron-up-circle.d.ts +15 -0
- package/core/migration/chevron-up--chevron-up-circle.js +30 -0
- package/core/migration/chevron-up--hipchat-chevron-up.d.ts +15 -0
- package/core/migration/chevron-up--hipchat-chevron-up.js +30 -0
- package/core/migration/chevron-up.d.ts +15 -0
- package/core/migration/chevron-up.js +30 -0
- package/dist/cjs/components/icon-facade.js +9 -7
- package/dist/cjs/components/icon-new.compiled.css +22 -0
- package/dist/cjs/components/icon-new.js +67 -100
- package/dist/cjs/components/icon-tile.compiled.css +48 -0
- package/dist/cjs/components/icon-tile.js +40 -125
- package/dist/cjs/components/icon.compiled.css +30 -0
- package/dist/cjs/components/icon.js +31 -76
- package/dist/cjs/components/skeleton.compiled.css +12 -0
- package/dist/cjs/components/skeleton.js +20 -24
- package/dist/cjs/components/svg.compiled.css +13 -0
- package/dist/cjs/components/svg.js +20 -17
- package/dist/cjs/metadata-core.js +65 -1
- package/dist/cjs/migration-map.js +254 -182
- package/dist/es2019/components/icon-facade.js +8 -6
- package/dist/es2019/components/icon-new.compiled.css +22 -0
- package/dist/es2019/components/icon-new.js +62 -98
- package/dist/es2019/components/icon-tile.compiled.css +48 -0
- package/dist/es2019/components/icon-tile.js +37 -124
- package/dist/es2019/components/icon.compiled.css +30 -0
- package/dist/es2019/components/icon.js +26 -77
- package/dist/es2019/components/skeleton.compiled.css +12 -0
- package/dist/es2019/components/skeleton.js +15 -21
- package/dist/es2019/components/svg.compiled.css +13 -0
- package/dist/es2019/components/svg.js +16 -15
- package/dist/es2019/metadata-core.js +65 -1
- package/dist/es2019/migration-map.js +254 -182
- package/dist/esm/components/icon-facade.js +9 -7
- package/dist/esm/components/icon-new.compiled.css +22 -0
- package/dist/esm/components/icon-new.js +63 -98
- package/dist/esm/components/icon-tile.compiled.css +48 -0
- package/dist/esm/components/icon-tile.js +37 -124
- package/dist/esm/components/icon.compiled.css +30 -0
- package/dist/esm/components/icon.js +26 -77
- package/dist/esm/components/skeleton.compiled.css +12 -0
- package/dist/esm/components/skeleton.js +15 -21
- package/dist/esm/components/svg.compiled.css +13 -0
- package/dist/esm/components/svg.js +16 -15
- package/dist/esm/metadata-core.js +65 -1
- package/dist/esm/migration-map.js +254 -182
- package/dist/types/components/icon-tile.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/metadata-core.d.ts +1 -1
- package/dist/types/types.d.ts +25 -8
- package/dist/types-ts4.5/components/icon-tile.d.ts +2 -2
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/metadata-core.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +25 -8
- package/glyph/chevron-down-circle.js +2 -3
- package/glyph/chevron-down.js +2 -3
- package/glyph/chevron-left-circle.js +2 -3
- package/glyph/chevron-left-large.js +2 -3
- package/glyph/chevron-left.js +2 -3
- package/glyph/chevron-right-circle.js +2 -3
- package/glyph/chevron-right-large.js +2 -3
- package/glyph/chevron-right.js +2 -3
- package/glyph/chevron-up-circle.js +2 -3
- package/glyph/chevron-up.js +2 -3
- package/glyph/hipchat/chevron-down.js +2 -3
- package/glyph/hipchat/chevron-up.js +2 -3
- package/package.json +8 -10
- package/svgs/core/chevron-double-left.svg +1 -0
- package/svgs/core/chevron-double-right.svg +1 -0
- package/svgs/core/chevron-down.svg +1 -0
- package/svgs/core/chevron-left.svg +1 -0
- package/svgs/core/chevron-right.svg +1 -0
- package/svgs/core/chevron-up.svg +1 -0
- package/dist/cjs/components/styles.js +0 -64
- package/dist/cjs/components/utils.js +0 -9
- package/dist/es2019/components/styles.js +0 -58
- package/dist/es2019/components/utils.js +0 -1
- package/dist/esm/components/styles.js +0 -57
- package/dist/esm/components/utils.js +0 -3
- package/dist/types/components/styles.d.ts +0 -28
- package/dist/types/components/utils.d.ts +0 -1
- package/dist/types-ts4.5/components/styles.d.ts +0 -28
- package/dist/types-ts4.5/components/utils.d.ts +0 -1
|
@@ -23,34 +23,36 @@ const sizeSpacingMap = {
|
|
|
23
23
|
*/
|
|
24
24
|
export const IconFacade = /*#__PURE__*/memo(function IconFacade({
|
|
25
25
|
dangerouslySetGlyph,
|
|
26
|
+
size,
|
|
26
27
|
...props
|
|
27
28
|
}) {
|
|
28
|
-
var _props$size;
|
|
29
29
|
const NewIcon = props.newIcon;
|
|
30
30
|
|
|
31
31
|
// By default, the icon size will be medium for core icons and small for utility icons
|
|
32
|
-
const
|
|
32
|
+
const iconSize = size !== null && size !== void 0 ? size : 'medium';
|
|
33
33
|
const useNewIcon = !props.isFacadeDisabled &&
|
|
34
34
|
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
35
35
|
fg('platform-visual-refresh-icons-legacy-facade');
|
|
36
|
-
if (useNewIcon && NewIcon && (
|
|
36
|
+
if (useNewIcon && NewIcon && (iconSize === 'small' || iconSize === 'medium')) {
|
|
37
37
|
if (props.iconType === 'utility') {
|
|
38
38
|
const Icon = NewIcon;
|
|
39
39
|
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
40
|
-
spacing: fg('platform-visual-refresh-icons-facade-button-fix') ? sizeSpacingMap['utility'][
|
|
40
|
+
spacing: fg('platform-visual-refresh-icons-facade-button-fix') ? sizeSpacingMap['utility'][iconSize] : 'none',
|
|
41
41
|
color: props.primaryColor || 'currentColor',
|
|
42
42
|
type: props.iconType
|
|
43
43
|
}));
|
|
44
44
|
} else {
|
|
45
45
|
const Icon = NewIcon;
|
|
46
46
|
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
47
|
-
|
|
47
|
+
size: iconSize,
|
|
48
|
+
spacing: sizeSpacingMap['core'][iconSize],
|
|
48
49
|
color: props.primaryColor || 'currentColor',
|
|
49
50
|
type: props.iconType
|
|
50
51
|
}));
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
54
|
return /*#__PURE__*/React.createElement(LegacyIcon, _extends({
|
|
54
|
-
dangerouslySetGlyph: dangerouslySetGlyph
|
|
55
|
+
dangerouslySetGlyph: dangerouslySetGlyph,
|
|
56
|
+
size: size
|
|
55
57
|
}, props));
|
|
56
58
|
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
._18m915vq{overflow-y:hidden}
|
|
2
|
+
._1bsb1ejb{width:var(--ds-space-300,24px)}
|
|
3
|
+
._1bsb1kw7{width:inherit}
|
|
4
|
+
._1bsbpxbi{width:var(--ds-space-200,1pc)}
|
|
5
|
+
._1bsbutpp{width:var(--ds-space-150,9pt)}
|
|
6
|
+
._1e0c1o8l{display:inline-block}
|
|
7
|
+
._1o9zidpf{flex-shrink:0}
|
|
8
|
+
._1reo15vq{overflow-x:hidden}
|
|
9
|
+
._4t3i1ejb{height:var(--ds-space-300,24px)}
|
|
10
|
+
._4t3i1kw7{height:inherit}
|
|
11
|
+
._4t3ipxbi{height:var(--ds-space-200,1pc)}
|
|
12
|
+
._4t3iutpp{height:var(--ds-space-150,9pt)}
|
|
13
|
+
._bozg1mb9{padding-inline-start:var(--ds--button--new-icon-padding-start,0)}
|
|
14
|
+
._lcxvglyw{pointer-events:none}
|
|
15
|
+
._s7n4yfq0{vertical-align:bottom}
|
|
16
|
+
._syaz1r31{color:currentColor}
|
|
17
|
+
._vc881r31 stop{stop-color:currentColor}
|
|
18
|
+
._vchhusvi{box-sizing:border-box}
|
|
19
|
+
._vwz4kb7n{line-height:1}
|
|
20
|
+
._vwz4utpp{line-height:var(--ds-space-150,9pt)}
|
|
21
|
+
._y4ti1igz{padding-inline-end:var(--ds--button--new-icon-padding-end,0)}
|
|
22
|
+
@media screen and (forced-colors:active){._12va1onz{color:CanvasText}._jcxd1r8n{filter:grayscale(1)}}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
1
|
+
/* icon-new.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./icon-new.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { memo } from 'react';
|
|
6
|
-
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
-
import { css, jsx } from '@emotion/react';
|
|
9
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
7
|
|
|
11
8
|
/**
|
|
@@ -13,79 +10,30 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
13
10
|
* for use by Icon Tile.
|
|
14
11
|
*/
|
|
15
12
|
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
* Stop-color doesn't properly apply in chrome when the inherited/current color changes.
|
|
21
|
-
* We have to initially set stop-color to inherit (either via DOM attribute or an initial CSS
|
|
22
|
-
* rule) and then override it with currentColor for the color changes to be picked up.
|
|
23
|
-
*/
|
|
24
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
25
|
-
stop: {
|
|
26
|
-
stopColor: 'currentColor'
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
const svgStyles = css({
|
|
30
|
-
color: 'currentColor',
|
|
31
|
-
verticalAlign: 'bottom'
|
|
32
|
-
});
|
|
33
|
-
const iconStyles = css({
|
|
34
|
-
display: 'inline-block',
|
|
35
|
-
boxSizing: 'border-box',
|
|
36
|
-
flexShrink: 0,
|
|
37
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
38
|
-
lineHeight: 1,
|
|
39
|
-
paddingInlineEnd: 'var(--ds--button--new-icon-padding-end, 0)',
|
|
40
|
-
paddingInlineStart: 'var(--ds--button--new-icon-padding-start, 0)'
|
|
41
|
-
});
|
|
42
|
-
const utilityIconStyles = css({
|
|
43
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
44
|
-
lineHeight: "var(--ds-space-150, 12px)"
|
|
45
|
-
});
|
|
46
|
-
const scaleStyles = css({
|
|
47
|
-
width: 'inherit',
|
|
48
|
-
height: 'inherit'
|
|
49
|
-
});
|
|
13
|
+
const svgStyles = null;
|
|
14
|
+
const iconStyles = null;
|
|
15
|
+
const utilityIconStyles = null;
|
|
16
|
+
const scaleStyles = null;
|
|
50
17
|
|
|
51
18
|
/**
|
|
52
19
|
* For windows high contrast mode
|
|
53
20
|
*/
|
|
54
|
-
const baseHcmStyles =
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
spacious: css({
|
|
71
|
-
width: "var(--ds-space-300, 24px)",
|
|
72
|
-
height: "var(--ds-space-300, 24px)"
|
|
73
|
-
})
|
|
74
|
-
},
|
|
75
|
-
utility: {
|
|
76
|
-
none: css({
|
|
77
|
-
width: "var(--ds-space-150, 12px)",
|
|
78
|
-
height: "var(--ds-space-150, 12px)"
|
|
79
|
-
}),
|
|
80
|
-
compact: css({
|
|
81
|
-
width: "var(--ds-space-200, 16px)",
|
|
82
|
-
height: "var(--ds-space-200, 16px)"
|
|
83
|
-
}),
|
|
84
|
-
spacious: css({
|
|
85
|
-
width: "var(--ds-space-300, 24px)",
|
|
86
|
-
height: "var(--ds-space-300, 24px)"
|
|
87
|
-
})
|
|
88
|
-
}
|
|
21
|
+
const baseHcmStyles = null;
|
|
22
|
+
const scaleSize = null;
|
|
23
|
+
const coreSizeMedium = {
|
|
24
|
+
none: "_1bsbpxbi _4t3ipxbi",
|
|
25
|
+
compact: "_1bsb1ejb _4t3i1ejb",
|
|
26
|
+
spacious: "_1bsb1ejb _4t3i1ejb"
|
|
27
|
+
};
|
|
28
|
+
const coreSizeSmall = {
|
|
29
|
+
none: "_1bsbutpp _4t3iutpp",
|
|
30
|
+
compact: "_1bsbpxbi _4t3ipxbi",
|
|
31
|
+
spacious: "_1bsb1ejb _4t3i1ejb"
|
|
32
|
+
};
|
|
33
|
+
const utilSizes = {
|
|
34
|
+
none: "_1bsbutpp _4t3iutpp",
|
|
35
|
+
compact: "_1bsbpxbi _4t3ipxbi",
|
|
36
|
+
spacious: "_1bsb1ejb _4t3i1ejb"
|
|
89
37
|
};
|
|
90
38
|
const baseSizeMap = {
|
|
91
39
|
core: 16,
|
|
@@ -93,13 +41,28 @@ const baseSizeMap = {
|
|
|
93
41
|
};
|
|
94
42
|
const paddingMap = {
|
|
95
43
|
core: {
|
|
96
|
-
|
|
97
|
-
|
|
44
|
+
medium: {
|
|
45
|
+
none: 0,
|
|
46
|
+
compact: 4,
|
|
47
|
+
spacious: 4
|
|
48
|
+
},
|
|
49
|
+
small: {
|
|
50
|
+
none: 0,
|
|
51
|
+
compact: 2.66,
|
|
52
|
+
spacious: 8
|
|
53
|
+
}
|
|
98
54
|
},
|
|
99
55
|
utility: {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
56
|
+
medium: {
|
|
57
|
+
none: 0,
|
|
58
|
+
compact: 2,
|
|
59
|
+
spacious: 6
|
|
60
|
+
},
|
|
61
|
+
small: {
|
|
62
|
+
none: 0,
|
|
63
|
+
compact: 2,
|
|
64
|
+
spacious: 6
|
|
65
|
+
}
|
|
103
66
|
}
|
|
104
67
|
};
|
|
105
68
|
|
|
@@ -112,7 +75,7 @@ const paddingMap = {
|
|
|
112
75
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
|
|
113
76
|
*/
|
|
114
77
|
export const Icon = /*#__PURE__*/memo(function Icon(props) {
|
|
115
|
-
var _props$type
|
|
78
|
+
var _props$type;
|
|
116
79
|
const {
|
|
117
80
|
color = 'currentColor',
|
|
118
81
|
testId,
|
|
@@ -126,16 +89,18 @@ export const Icon = /*#__PURE__*/memo(function Icon(props) {
|
|
|
126
89
|
dangerouslySetGlyph,
|
|
127
90
|
// Used with iconTile to scale icon up and down
|
|
128
91
|
shouldScale,
|
|
129
|
-
LEGACY_margin
|
|
92
|
+
LEGACY_margin,
|
|
93
|
+
spacing = 'none'
|
|
130
94
|
} = props;
|
|
131
95
|
const dangerouslySetInnerHTML = dangerouslySetGlyph ? {
|
|
132
96
|
__html: dangerouslySetGlyph
|
|
133
97
|
} : undefined;
|
|
134
98
|
|
|
135
99
|
// Fall back to old icon
|
|
100
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
136
101
|
if (FallbackIcon && !fg('platform-visual-refresh-icons')) {
|
|
137
102
|
// parse out unnecessary props
|
|
138
|
-
return
|
|
103
|
+
return /*#__PURE__*/React.createElement(FallbackIcon, {
|
|
139
104
|
primaryColor: LEGACY_primaryColor !== null && LEGACY_primaryColor !== void 0 ? LEGACY_primaryColor : color,
|
|
140
105
|
secondaryColor: LEGACY_secondaryColor,
|
|
141
106
|
size: LEGACY_size,
|
|
@@ -146,17 +111,16 @@ export const Icon = /*#__PURE__*/memo(function Icon(props) {
|
|
|
146
111
|
UNSAFE_margin: LEGACY_margin
|
|
147
112
|
});
|
|
148
113
|
}
|
|
149
|
-
const
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
114
|
+
const type = (_props$type = props.type) !== null && _props$type !== void 0 ? _props$type : 'core';
|
|
115
|
+
const size = 'size' in props && props.size !== undefined && (
|
|
116
|
+
// This prevents invalid sizes being passed in, which is required
|
|
117
|
+
// for handling unsupported legacy icon sizes which can
|
|
118
|
+
// cause errors.
|
|
119
|
+
props.size === 'small' || props.size === 'medium') ? props.size : 'medium';
|
|
120
|
+
const baseSize = baseSizeMap[type];
|
|
121
|
+
const viewBoxPadding = paddingMap[type][size][spacing];
|
|
158
122
|
const viewBoxSize = baseSize + 2 * viewBoxPadding;
|
|
159
|
-
return
|
|
123
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
160
124
|
"data-testid": testId,
|
|
161
125
|
role: label ? 'img' : undefined,
|
|
162
126
|
"aria-label": label ? label : undefined,
|
|
@@ -164,16 +128,16 @@ export const Icon = /*#__PURE__*/memo(function Icon(props) {
|
|
|
164
128
|
style: {
|
|
165
129
|
color
|
|
166
130
|
},
|
|
167
|
-
|
|
168
|
-
},
|
|
131
|
+
className: ax(["_1e0c1o8l _vchhusvi _1o9zidpf _vwz4kb7n _y4ti1igz _bozg1mb9", "_12va1onz _jcxd1r8n", shouldScale && "_1bsb1kw7 _4t3i1kw7", (type === 'utility' || size === 'small') && "_vwz4utpp"])
|
|
132
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
169
133
|
fill: "none"
|
|
170
134
|
// Adjusting the viewBox allows the icon padding to scale with the contents of the SVG, which
|
|
171
135
|
// we want for Icon Tile
|
|
172
136
|
,
|
|
173
137
|
viewBox: `${0 - viewBoxPadding} ${0 - viewBoxPadding} ${viewBoxSize} ${viewBoxSize}`,
|
|
174
138
|
role: "presentation",
|
|
175
|
-
|
|
176
|
-
|
|
139
|
+
dangerouslySetInnerHTML: dangerouslySetInnerHTML,
|
|
140
|
+
className: ax(["_1reo15vq _18m915vq _syaz1r31 _lcxvglyw _s7n4yfq0 _vc881r31", shouldScale ? "_1bsb1kw7 _4t3i1kw7" : type === 'utility' ? utilSizes[spacing] : size === 'small' ? coreSizeSmall[spacing] : coreSizeMedium[spacing]])
|
|
177
141
|
}));
|
|
178
142
|
});
|
|
179
143
|
export default Icon;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
._2rko14q2{border-radius:var(--ds-border-radius-circle,2002pc)}
|
|
3
|
+
._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}._1bah1h6o{justify-content:center}
|
|
4
|
+
._1bsb1tcg{width:24px}
|
|
5
|
+
._1bsb1ylp{width:40px}
|
|
6
|
+
._1bsb7vkz{width:1pc}
|
|
7
|
+
._1bsbckbl{width:3pc}
|
|
8
|
+
._1bsbzwfg{width:2pc}
|
|
9
|
+
._1e0c116y{display:inline-flex}
|
|
10
|
+
._1wybidpf{font-size:0}
|
|
11
|
+
._4cvr1h6o{align-items:center}
|
|
12
|
+
._4t3i1tcg{height:24px}
|
|
13
|
+
._4t3i1ylp{height:40px}
|
|
14
|
+
._4t3i7vkz{height:1pc}
|
|
15
|
+
._4t3ickbl{height:3pc}
|
|
16
|
+
._4t3izwfg{height:2pc}
|
|
17
|
+
._bfhk1a17{background-color:var(--ds-background-accent-teal-subtler,#c6edfb)}
|
|
18
|
+
._bfhk1e5c{background-color:var(--ds-background-accent-green-bolder,#1f845a)}
|
|
19
|
+
._bfhk1jkz{background-color:var(--ds-background-accent-purple-subtler,#dfd8fd)}
|
|
20
|
+
._bfhk1rtt{background-color:var(--ds-background-accent-red-subtler,#ffd5d2)}
|
|
21
|
+
._bfhk1t1b{background-color:var(--ds-background-accent-gray-bolder,#626f86)}
|
|
22
|
+
._bfhk1v33{background-color:var(--ds-background-accent-gray-subtler,#dcdfe4)}
|
|
23
|
+
._bfhk1vop{background-color:var(--ds-background-accent-yellow-bolder,#946f00)}
|
|
24
|
+
._bfhk1wnw{background-color:var(--ds-background-accent-green-subtler,#baf3db)}
|
|
25
|
+
._bfhk2c8p{background-color:var(--ds-background-accent-teal-bolder,#227d9b)}
|
|
26
|
+
._bfhk3fv2{background-color:var(--ds-background-accent-yellow-subtler,#f8e6a0)}
|
|
27
|
+
._bfhk4v9p{background-color:var(--ds-background-accent-blue-subtler,#cce0ff)}
|
|
28
|
+
._bfhkc3uk{background-color:var(--ds-background-accent-magenta-bolder,#ae4787)}
|
|
29
|
+
._bfhkc8cv{background-color:var(--ds-background-accent-blue-bolder,#0c66e4)}
|
|
30
|
+
._bfhkf2vu{background-color:var(--ds-background-accent-orange-subtler,#fedec8)}
|
|
31
|
+
._bfhkjgng{background-color:var(--ds-background-accent-orange-bolder,#c25100)}
|
|
32
|
+
._bfhktde4{background-color:var(--ds-background-accent-lime-bolder,#5b7f24)}
|
|
33
|
+
._bfhkuibq{background-color:var(--ds-background-accent-red-bolder,#c9372c)}
|
|
34
|
+
._bfhkv9ra{background-color:var(--ds-background-accent-magenta-subtler,#fdd0ec)}
|
|
35
|
+
._bfhkygwo{background-color:var(--ds-background-accent-purple-bolder,#6e5dc6)}
|
|
36
|
+
._bfhkz2ec{background-color:var(--ds-background-accent-lime-subtler,#d3f1a7)}
|
|
37
|
+
._syaz16ni{color:var(--ds-icon-accent-gray,#758195)}
|
|
38
|
+
._syaz17hp{color:var(--ds-icon-accent-green,#22a06b)}
|
|
39
|
+
._syaz1oqg{color:var(--ds-icon-accent-yellow,#b38600)}
|
|
40
|
+
._syaz1ov1{color:var(--ds-icon-accent-blue,#1d7afc)}
|
|
41
|
+
._syaz5w2r{color:var(--ds-icon-inverse,#fff)}
|
|
42
|
+
._syaz5yjc{color:var(--ds-icon-accent-purple,#8270db)}
|
|
43
|
+
._syaz7r97{color:var(--ds-icon-accent-orange,#e56910)}
|
|
44
|
+
._syaz8645{color:var(--ds-icon-accent-lime,#6a9a23)}
|
|
45
|
+
._syaz8uof{color:var(--ds-icon-accent-teal,#2898bd)}
|
|
46
|
+
._syaznbxb{color:var(--ds-icon-accent-red,#c9372c)}
|
|
47
|
+
._syazv8hk{color:var(--ds-icon-accent-magenta,#cd519d)}
|
|
48
|
+
._vchhusvi{box-sizing:border-box}
|
|
@@ -1,131 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
-
import { css, jsx } from '@emotion/react';
|
|
1
|
+
/* icon-tile.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./icon-tile.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
8
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
6
|
const sizeMap = {
|
|
10
|
-
'16':
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
'
|
|
15
|
-
width: '24px',
|
|
16
|
-
height: '24px'
|
|
17
|
-
}),
|
|
18
|
-
'32': css({
|
|
19
|
-
width: '32px',
|
|
20
|
-
height: '32px'
|
|
21
|
-
}),
|
|
22
|
-
'40': css({
|
|
23
|
-
width: '40px',
|
|
24
|
-
height: '40px'
|
|
25
|
-
}),
|
|
26
|
-
'48': css({
|
|
27
|
-
width: '48px',
|
|
28
|
-
height: '48px'
|
|
29
|
-
})
|
|
7
|
+
'16': "_1bsb7vkz _4t3i7vkz",
|
|
8
|
+
'24': "_1bsb1tcg _4t3i1tcg",
|
|
9
|
+
'32': "_1bsbzwfg _4t3izwfg",
|
|
10
|
+
'40': "_1bsb1ylp _4t3i1ylp",
|
|
11
|
+
'48': "_1bsbckbl _4t3ickbl"
|
|
30
12
|
};
|
|
31
13
|
const appearanceMap = {
|
|
32
|
-
grayBold:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
purpleBold: css({
|
|
53
|
-
backgroundColor: "var(--ds-background-accent-purple-bolder, #6E5DC6)",
|
|
54
|
-
color: "var(--ds-icon-inverse, #FFFFFF)"
|
|
55
|
-
}),
|
|
56
|
-
magentaBold: css({
|
|
57
|
-
backgroundColor: "var(--ds-background-accent-magenta-bolder, #AE4787)",
|
|
58
|
-
color: "var(--ds-icon-inverse, #FFFFFF)"
|
|
59
|
-
}),
|
|
60
|
-
tealBold: css({
|
|
61
|
-
backgroundColor: "var(--ds-background-accent-teal-bolder, #227D9B)",
|
|
62
|
-
color: "var(--ds-icon-inverse, #FFFFFF)"
|
|
63
|
-
}),
|
|
64
|
-
orangeBold: css({
|
|
65
|
-
backgroundColor: "var(--ds-background-accent-orange-bolder, #C25100)",
|
|
66
|
-
color: "var(--ds-icon-inverse, #FFFFFF)"
|
|
67
|
-
}),
|
|
68
|
-
yellowBold: css({
|
|
69
|
-
backgroundColor: "var(--ds-background-accent-yellow-bolder, #946F00)",
|
|
70
|
-
color: "var(--ds-icon-inverse, #FFFFFF)"
|
|
71
|
-
}),
|
|
72
|
-
gray: css({
|
|
73
|
-
backgroundColor: "var(--ds-background-accent-gray-subtler, #DCDFE4)",
|
|
74
|
-
color: "var(--ds-icon-accent-gray, #758195)"
|
|
75
|
-
}),
|
|
76
|
-
lime: css({
|
|
77
|
-
backgroundColor: "var(--ds-background-accent-lime-subtler, #D3F1A7)",
|
|
78
|
-
color: "var(--ds-icon-accent-lime, #6A9A23)"
|
|
79
|
-
}),
|
|
80
|
-
orange: css({
|
|
81
|
-
backgroundColor: "var(--ds-background-accent-orange-subtler, #FEDEC8)",
|
|
82
|
-
color: "var(--ds-icon-accent-orange, #E56910)"
|
|
83
|
-
}),
|
|
84
|
-
magenta: css({
|
|
85
|
-
backgroundColor: "var(--ds-background-accent-magenta-subtler, #FDD0EC)",
|
|
86
|
-
color: "var(--ds-icon-accent-magenta, #CD519D)"
|
|
87
|
-
}),
|
|
88
|
-
green: css({
|
|
89
|
-
backgroundColor: "var(--ds-background-accent-green-subtler, #BAF3DB)",
|
|
90
|
-
color: "var(--ds-icon-accent-green, #22A06B)"
|
|
91
|
-
}),
|
|
92
|
-
blue: css({
|
|
93
|
-
backgroundColor: "var(--ds-background-accent-blue-subtler, #CCE0FF)",
|
|
94
|
-
color: "var(--ds-icon-accent-blue, #1D7AFC)"
|
|
95
|
-
}),
|
|
96
|
-
red: css({
|
|
97
|
-
backgroundColor: "var(--ds-background-accent-red-subtler, #FFD5D2)",
|
|
98
|
-
color: "var(--ds-icon-accent-red, #C9372C)"
|
|
99
|
-
}),
|
|
100
|
-
purple: css({
|
|
101
|
-
backgroundColor: "var(--ds-background-accent-purple-subtler, #DFD8FD)",
|
|
102
|
-
color: "var(--ds-icon-accent-purple, #8270DB)"
|
|
103
|
-
}),
|
|
104
|
-
teal: css({
|
|
105
|
-
backgroundColor: "var(--ds-background-accent-teal-subtler, #C6EDFB)",
|
|
106
|
-
color: "var(--ds-icon-accent-teal, #2898BD)"
|
|
107
|
-
}),
|
|
108
|
-
yellow: css({
|
|
109
|
-
backgroundColor: "var(--ds-background-accent-yellow-subtler, #F8E6A0)",
|
|
110
|
-
color: "var(--ds-icon-accent-yellow, #B38600)"
|
|
111
|
-
})
|
|
14
|
+
grayBold: "_bfhk1t1b _syaz5w2r",
|
|
15
|
+
limeBold: "_bfhktde4 _syaz5w2r",
|
|
16
|
+
greenBold: "_bfhk1e5c _syaz5w2r",
|
|
17
|
+
blueBold: "_bfhkc8cv _syaz5w2r",
|
|
18
|
+
redBold: "_bfhkuibq _syaz5w2r",
|
|
19
|
+
purpleBold: "_bfhkygwo _syaz5w2r",
|
|
20
|
+
magentaBold: "_bfhkc3uk _syaz5w2r",
|
|
21
|
+
tealBold: "_bfhk2c8p _syaz5w2r",
|
|
22
|
+
orangeBold: "_bfhkjgng _syaz5w2r",
|
|
23
|
+
yellowBold: "_bfhk1vop _syaz5w2r",
|
|
24
|
+
gray: "_bfhk1v33 _syaz16ni",
|
|
25
|
+
lime: "_bfhkz2ec _syaz8645",
|
|
26
|
+
orange: "_bfhkf2vu _syaz7r97",
|
|
27
|
+
magenta: "_bfhkv9ra _syazv8hk",
|
|
28
|
+
green: "_bfhk1wnw _syaz17hp",
|
|
29
|
+
blue: "_bfhk4v9p _syaz1ov1",
|
|
30
|
+
red: "_bfhk1rtt _syaznbxb",
|
|
31
|
+
purple: "_bfhk1jkz _syaz5yjc",
|
|
32
|
+
teal: "_bfhk1a17 _syaz8uof",
|
|
33
|
+
yellow: "_bfhk3fv2 _syaz1oqg"
|
|
112
34
|
};
|
|
113
35
|
const shapeMap = {
|
|
114
|
-
square:
|
|
115
|
-
|
|
116
|
-
}),
|
|
117
|
-
circle: css({
|
|
118
|
-
borderRadius: "var(--ds-border-radius-circle, 32032px)"
|
|
119
|
-
})
|
|
36
|
+
square: "_2rkoiti9",
|
|
37
|
+
circle: "_2rko14q2"
|
|
120
38
|
};
|
|
121
|
-
const iconTileStyles =
|
|
122
|
-
display: 'inline-flex',
|
|
123
|
-
boxSizing: 'border-box',
|
|
124
|
-
alignItems: 'center',
|
|
125
|
-
justifyContent: 'center',
|
|
126
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
127
|
-
fontSize: 0 /* Prevents parent font-size from affecting the container */
|
|
128
|
-
});
|
|
39
|
+
const iconTileStyles = null;
|
|
129
40
|
|
|
130
41
|
/**
|
|
131
42
|
* __IconTile__ -- ⚠️ Experimental ⚠️
|
|
@@ -147,13 +58,15 @@ export default function IconTile(props) {
|
|
|
147
58
|
testId
|
|
148
59
|
} = props;
|
|
149
60
|
const ExpandedIcon = Icon;
|
|
61
|
+
|
|
62
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
150
63
|
if (LEGACY_fallbackComponent && !fg('platform-visual-refresh-icons')) {
|
|
151
64
|
return LEGACY_fallbackComponent;
|
|
152
65
|
} else {
|
|
153
|
-
return
|
|
66
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
154
67
|
"data-testid": testId,
|
|
155
|
-
|
|
156
|
-
},
|
|
68
|
+
className: ax(["_1e0c116y _vchhusvi _4cvr1h6o _1bah1h6o _1wybidpf", appearanceMap[appearance], sizeMap[size], shapeMap[shape]])
|
|
69
|
+
}, /*#__PURE__*/React.createElement(ExpandedIcon, {
|
|
157
70
|
color: "currentColor",
|
|
158
71
|
label: label,
|
|
159
72
|
spacing: "spacious",
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
._17jb1osq >svg{max-height:100%}
|
|
2
|
+
._1bsb1tcg{width:24px}
|
|
3
|
+
._1bsb7vkz{width:1pc}
|
|
4
|
+
._1bsbckbl{width:3pc}
|
|
5
|
+
._1bsbzwfg{width:2pc}
|
|
6
|
+
._1e0c1o8l{display:inline-block}
|
|
7
|
+
._1kg81r31 >svg stop{stop-color:currentColor}
|
|
8
|
+
._1ksvoz0e >svg{color:var(--icon-primary-color)}
|
|
9
|
+
._1o9zidpf{flex-shrink:0}
|
|
10
|
+
._1szv15vq >svg{overflow-x:hidden}
|
|
11
|
+
._1tly15vq >svg{overflow-y:hidden}
|
|
12
|
+
._1veoyfq0 >svg{vertical-align:bottom}
|
|
13
|
+
._3se1x1jp >svg{fill:var(--icon-secondary-color)}
|
|
14
|
+
._4t3i1tcg{height:24px}
|
|
15
|
+
._4t3i7vkz{height:1pc}
|
|
16
|
+
._4t3ickbl{height:3pc}
|
|
17
|
+
._4t3izwfg{height:2pc}
|
|
18
|
+
._5fdi1tcg >svg{width:24px}
|
|
19
|
+
._5fdi7vkz >svg{width:1pc}
|
|
20
|
+
._5fdickbl >svg{width:3pc}
|
|
21
|
+
._5fdizwfg >svg{width:2pc}
|
|
22
|
+
._re2rglyw >svg{pointer-events:none}
|
|
23
|
+
._rzyw1osq >svg{max-width:100%}
|
|
24
|
+
._vwz4kb7n{line-height:1}
|
|
25
|
+
._vyfuvuon{--icon-secondary-color:var(--ds-surface,#fff)}
|
|
26
|
+
._zbji1tcg >svg{height:24px}
|
|
27
|
+
._zbji7vkz >svg{height:1pc}
|
|
28
|
+
._zbjickbl >svg{height:3pc}
|
|
29
|
+
._zbjizwfg >svg{height:2pc}
|
|
30
|
+
@media screen and (forced-colors:active){._18hbwc43 >svg{--icon-primary-color:Canvas}._4fyi1j28 >svg{--icon-secondary-color:transparent}._jcxd1r8n{filter:grayscale(1)}._gq0g1onz{--icon-primary-color:CanvasText}._1trkwc43{--icon-secondary-color:Canvas}}
|