@atlaskit/icon 25.7.0 → 26.0.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 +27 -0
- package/core/refresh.js +2 -2
- package/core/shapes.js +2 -2
- package/dist/cjs/components/icon-new.compiled.css +22 -0
- package/dist/cjs/components/icon-new.js +30 -84
- 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/es2019/components/icon-new.compiled.css +22 -0
- package/dist/es2019/components/icon-new.js +26 -82
- 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/esm/components/icon-new.compiled.css +22 -0
- package/dist/esm/components/icon-new.js +26 -82
- 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/types/components/icon-tile.d.ts +2 -2
- package/dist/types-ts4.5/components/icon-tile.d.ts +2 -2
- package/package.json +3 -5
- package/svgs/core/refresh.svg +1 -1
- package/svgs/core/shapes.svg +1 -1
- 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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @atlaskit/icon
|
|
2
2
|
|
|
3
|
+
## 26.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#137001](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/137001)
|
|
8
|
+
[`37c3ccf696abd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/37c3ccf696abd) -
|
|
9
|
+
Migrate @atlaskit/icon to @compiled css
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 25.8.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [#148166](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/148166)
|
|
20
|
+
[`06a7435a03c28`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/06a7435a03c28) -
|
|
21
|
+
This release updates icons in `@atlaskit/icon`.
|
|
22
|
+
|
|
23
|
+
### Updated:
|
|
24
|
+
|
|
25
|
+
**`@atlaskit/icon/core`**
|
|
26
|
+
|
|
27
|
+
- `refresh`
|
|
28
|
+
- `shapes`
|
|
29
|
+
|
|
3
30
|
## 25.7.0
|
|
4
31
|
|
|
5
32
|
### Minor Changes
|
package/core/refresh.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::d727d3cc18de179b7b728d0be1f533d4>>
|
|
4
4
|
* @codegenCommand yarn build:icon-glyphs
|
|
5
5
|
*/
|
|
6
6
|
"use strict";
|
|
@@ -21,7 +21,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
21
21
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
|
|
22
22
|
*/
|
|
23
23
|
const RefreshIcon = props => /*#__PURE__*/_react.default.createElement(_baseNew.default, Object.assign({
|
|
24
|
-
dangerouslySetGlyph: `<path fill="currentcolor" fill-rule="evenodd" d="M2 .
|
|
24
|
+
dangerouslySetGlyph: `<path fill="currentcolor" fill-rule="evenodd" d="M2.5 3.67V1H1v5c0 .414.336.75.75.75H6.5v-1.5H3.236a5.5 5.5 0 1 1-.666 3.63l-1.48.24A7.002 7.002 0 0 0 15 8 7 7 0 0 0 2.5 3.67" clip-rule="evenodd"/>`
|
|
25
25
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
26
26
|
}, props));
|
|
27
27
|
RefreshIcon.displayName = 'RefreshIcon';
|
package/core/shapes.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::d155c8e1e488ce298b9081ba15a95584>>
|
|
4
4
|
* @codegenCommand yarn build:icon-glyphs
|
|
5
5
|
*/
|
|
6
6
|
"use strict";
|
|
@@ -21,7 +21,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
21
21
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
|
|
22
22
|
*/
|
|
23
23
|
const ShapesIcon = props => /*#__PURE__*/_react.default.createElement(_baseNew.default, Object.assign({
|
|
24
|
-
dangerouslySetGlyph: `<path fill="currentcolor" fill-rule="evenodd" d="
|
|
24
|
+
dangerouslySetGlyph: `<path fill="currentcolor" fill-rule="evenodd" d="M15 2.38C15 1.62 14.38 1 13.63 1h-3.25C9.62 1 9 1.62 9 2.38v3.25C9 6.39 9.62 7 10.38 7h3.25C14.39 7 15 6.38 15 5.63zm-1.5.13v3h-3v-3zM3.13 1.26a1 1 0 0 1 1.74 0l2.57 4.5a1 1 0 0 1-.87 1.5H1.43a1 1 0 0 1-.87-1.5zM4 2.76 2.29 5.75h3.42zM.75 12a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0M4 10.25a1.75 1.75 0 1 0 0 3.5 1.75 1.75 0 0 0 0-3.5M10 9h4.25a.75.75 0 0 1 .75.75V14h-1.5v-2.44l-3.72 3.72-1.06-1.06 3.72-3.72H10z" clip-rule="evenodd"/>`
|
|
25
25
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
26
26
|
}, props));
|
|
27
27
|
ShapesIcon.displayName = 'ShapesIcon';
|
|
@@ -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,97 +1,42 @@
|
|
|
1
|
+
/* icon-new.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.default = exports.Icon = void 0;
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
+
require("./icon-new.compiled.css");
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
var React = _react;
|
|
12
|
+
var _runtime = require("@compiled/react/runtime");
|
|
9
13
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
* @jsx jsx
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
|
-
|
|
14
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
16
|
/**
|
|
18
17
|
* We are hiding this props from consumers as it's reserved
|
|
19
18
|
* for use by Icon Tile.
|
|
20
19
|
*/
|
|
21
20
|
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
* Stop-color doesn't properly apply in chrome when the inherited/current color changes.
|
|
27
|
-
* We have to initially set stop-color to inherit (either via DOM attribute or an initial CSS
|
|
28
|
-
* rule) and then override it with currentColor for the color changes to be picked up.
|
|
29
|
-
*/
|
|
30
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
31
|
-
stop: {
|
|
32
|
-
stopColor: 'currentColor'
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
var svgStyles = (0, _react2.css)({
|
|
36
|
-
color: 'currentColor',
|
|
37
|
-
verticalAlign: 'bottom'
|
|
38
|
-
});
|
|
39
|
-
var iconStyles = (0, _react2.css)({
|
|
40
|
-
display: 'inline-block',
|
|
41
|
-
boxSizing: 'border-box',
|
|
42
|
-
flexShrink: 0,
|
|
43
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
44
|
-
lineHeight: 1,
|
|
45
|
-
paddingInlineEnd: 'var(--ds--button--new-icon-padding-end, 0)',
|
|
46
|
-
paddingInlineStart: 'var(--ds--button--new-icon-padding-start, 0)'
|
|
47
|
-
});
|
|
48
|
-
var utilityIconStyles = (0, _react2.css)({
|
|
49
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
50
|
-
lineHeight: "var(--ds-space-150, 12px)"
|
|
51
|
-
});
|
|
52
|
-
var scaleStyles = (0, _react2.css)({
|
|
53
|
-
width: 'inherit',
|
|
54
|
-
height: 'inherit'
|
|
55
|
-
});
|
|
21
|
+
var svgStyles = null;
|
|
22
|
+
var iconStyles = null;
|
|
23
|
+
var utilityIconStyles = null;
|
|
24
|
+
var scaleStyles = null;
|
|
56
25
|
|
|
57
26
|
/**
|
|
58
27
|
* For windows high contrast mode
|
|
59
28
|
*/
|
|
60
|
-
var baseHcmStyles =
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
core: {
|
|
72
|
-
none: (0, _react2.css)({
|
|
73
|
-
width: "var(--ds-space-200, 16px)",
|
|
74
|
-
height: "var(--ds-space-200, 16px)"
|
|
75
|
-
}),
|
|
76
|
-
spacious: (0, _react2.css)({
|
|
77
|
-
width: "var(--ds-space-300, 24px)",
|
|
78
|
-
height: "var(--ds-space-300, 24px)"
|
|
79
|
-
})
|
|
80
|
-
},
|
|
81
|
-
utility: {
|
|
82
|
-
none: (0, _react2.css)({
|
|
83
|
-
width: "var(--ds-space-150, 12px)",
|
|
84
|
-
height: "var(--ds-space-150, 12px)"
|
|
85
|
-
}),
|
|
86
|
-
compact: (0, _react2.css)({
|
|
87
|
-
width: "var(--ds-space-200, 16px)",
|
|
88
|
-
height: "var(--ds-space-200, 16px)"
|
|
89
|
-
}),
|
|
90
|
-
spacious: (0, _react2.css)({
|
|
91
|
-
width: "var(--ds-space-300, 24px)",
|
|
92
|
-
height: "var(--ds-space-300, 24px)"
|
|
93
|
-
})
|
|
94
|
-
}
|
|
29
|
+
var baseHcmStyles = null;
|
|
30
|
+
var scaleSize = null;
|
|
31
|
+
var coreSizes = {
|
|
32
|
+
none: "_1bsbpxbi _4t3ipxbi",
|
|
33
|
+
compact: "",
|
|
34
|
+
spacious: "_1bsb1ejb _4t3i1ejb"
|
|
35
|
+
};
|
|
36
|
+
var utilSizes = {
|
|
37
|
+
none: "_1bsbutpp _4t3iutpp",
|
|
38
|
+
compact: "_1bsbpxbi _4t3ipxbi",
|
|
39
|
+
spacious: "_1bsb1ejb _4t3i1ejb"
|
|
95
40
|
};
|
|
96
41
|
var baseSizeMap = {
|
|
97
42
|
core: 16,
|
|
@@ -136,9 +81,10 @@ var Icon = exports.Icon = /*#__PURE__*/(0, _react.memo)(function Icon(props) {
|
|
|
136
81
|
} : undefined;
|
|
137
82
|
|
|
138
83
|
// Fall back to old icon
|
|
84
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
139
85
|
if (FallbackIcon && !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons')) {
|
|
140
86
|
// parse out unnecessary props
|
|
141
|
-
return
|
|
87
|
+
return /*#__PURE__*/React.createElement(FallbackIcon, {
|
|
142
88
|
primaryColor: LEGACY_primaryColor !== null && LEGACY_primaryColor !== void 0 ? LEGACY_primaryColor : color,
|
|
143
89
|
secondaryColor: LEGACY_secondaryColor,
|
|
144
90
|
size: LEGACY_size,
|
|
@@ -159,7 +105,7 @@ var Icon = exports.Icon = /*#__PURE__*/(0, _react.memo)(function Icon(props) {
|
|
|
159
105
|
viewBoxPadding = paddingMap['core'][(_props$spacing2 = props.spacing) !== null && _props$spacing2 !== void 0 ? _props$spacing2 : 'none'];
|
|
160
106
|
}
|
|
161
107
|
var viewBoxSize = baseSize + 2 * viewBoxPadding;
|
|
162
|
-
return
|
|
108
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
163
109
|
"data-testid": testId,
|
|
164
110
|
role: label ? 'img' : undefined,
|
|
165
111
|
"aria-label": label ? label : undefined,
|
|
@@ -167,16 +113,16 @@ var Icon = exports.Icon = /*#__PURE__*/(0, _react.memo)(function Icon(props) {
|
|
|
167
113
|
style: {
|
|
168
114
|
color: color
|
|
169
115
|
},
|
|
170
|
-
|
|
171
|
-
},
|
|
116
|
+
className: (0, _runtime.ax)(["_1e0c1o8l _vchhusvi _1o9zidpf _vwz4kb7n _y4ti1igz _bozg1mb9", "_12va1onz _jcxd1r8n", shouldScale && "_1bsb1kw7 _4t3i1kw7", props.type === 'utility' && "_vwz4utpp"])
|
|
117
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
172
118
|
fill: "none"
|
|
173
119
|
// Adjusting the viewBox allows the icon padding to scale with the contents of the SVG, which
|
|
174
120
|
// we want for Icon Tile
|
|
175
121
|
,
|
|
176
122
|
viewBox: "".concat(0 - viewBoxPadding, " ").concat(0 - viewBoxPadding, " ").concat(viewBoxSize, " ").concat(viewBoxSize),
|
|
177
123
|
role: "presentation",
|
|
178
|
-
|
|
179
|
-
|
|
124
|
+
dangerouslySetInnerHTML: dangerouslySetInnerHTML,
|
|
125
|
+
className: (0, _runtime.ax)(["_1reo15vq _18m915vq _syaz1r31 _lcxvglyw _s7n4yfq0 _vc881r31", shouldScale ? "_1bsb1kw7 _4t3i1kw7" : props.type === 'utility' ? utilSizes[(_props$spacing3 = props.spacing) !== null && _props$spacing3 !== void 0 ? _props$spacing3 : 'none'] : coreSizes[(_props$spacing4 = props.spacing) !== null && _props$spacing4 !== void 0 ? _props$spacing4 : 'none']])
|
|
180
126
|
}));
|
|
181
127
|
});
|
|
182
128
|
var _default = exports.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,138 +1,51 @@
|
|
|
1
|
+
/* icon-tile.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.default = IconTile;
|
|
7
|
-
|
|
9
|
+
require("./icon-tile.compiled.css");
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _runtime = require("@compiled/react/runtime");
|
|
8
12
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
* @jsx jsx
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
-
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
15
|
var sizeMap = {
|
|
17
|
-
'16':
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
'
|
|
22
|
-
width: '24px',
|
|
23
|
-
height: '24px'
|
|
24
|
-
}),
|
|
25
|
-
'32': (0, _react.css)({
|
|
26
|
-
width: '32px',
|
|
27
|
-
height: '32px'
|
|
28
|
-
}),
|
|
29
|
-
'40': (0, _react.css)({
|
|
30
|
-
width: '40px',
|
|
31
|
-
height: '40px'
|
|
32
|
-
}),
|
|
33
|
-
'48': (0, _react.css)({
|
|
34
|
-
width: '48px',
|
|
35
|
-
height: '48px'
|
|
36
|
-
})
|
|
16
|
+
'16': "_1bsb7vkz _4t3i7vkz",
|
|
17
|
+
'24': "_1bsb1tcg _4t3i1tcg",
|
|
18
|
+
'32': "_1bsbzwfg _4t3izwfg",
|
|
19
|
+
'40': "_1bsb1ylp _4t3i1ylp",
|
|
20
|
+
'48': "_1bsbckbl _4t3ickbl"
|
|
37
21
|
};
|
|
38
22
|
var appearanceMap = {
|
|
39
|
-
grayBold:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
purpleBold: (0, _react.css)({
|
|
60
|
-
backgroundColor: "var(--ds-background-accent-purple-bolder, #6E5DC6)",
|
|
61
|
-
color: "var(--ds-icon-inverse, #FFFFFF)"
|
|
62
|
-
}),
|
|
63
|
-
magentaBold: (0, _react.css)({
|
|
64
|
-
backgroundColor: "var(--ds-background-accent-magenta-bolder, #AE4787)",
|
|
65
|
-
color: "var(--ds-icon-inverse, #FFFFFF)"
|
|
66
|
-
}),
|
|
67
|
-
tealBold: (0, _react.css)({
|
|
68
|
-
backgroundColor: "var(--ds-background-accent-teal-bolder, #227D9B)",
|
|
69
|
-
color: "var(--ds-icon-inverse, #FFFFFF)"
|
|
70
|
-
}),
|
|
71
|
-
orangeBold: (0, _react.css)({
|
|
72
|
-
backgroundColor: "var(--ds-background-accent-orange-bolder, #C25100)",
|
|
73
|
-
color: "var(--ds-icon-inverse, #FFFFFF)"
|
|
74
|
-
}),
|
|
75
|
-
yellowBold: (0, _react.css)({
|
|
76
|
-
backgroundColor: "var(--ds-background-accent-yellow-bolder, #946F00)",
|
|
77
|
-
color: "var(--ds-icon-inverse, #FFFFFF)"
|
|
78
|
-
}),
|
|
79
|
-
gray: (0, _react.css)({
|
|
80
|
-
backgroundColor: "var(--ds-background-accent-gray-subtler, #DCDFE4)",
|
|
81
|
-
color: "var(--ds-icon-accent-gray, #758195)"
|
|
82
|
-
}),
|
|
83
|
-
lime: (0, _react.css)({
|
|
84
|
-
backgroundColor: "var(--ds-background-accent-lime-subtler, #D3F1A7)",
|
|
85
|
-
color: "var(--ds-icon-accent-lime, #6A9A23)"
|
|
86
|
-
}),
|
|
87
|
-
orange: (0, _react.css)({
|
|
88
|
-
backgroundColor: "var(--ds-background-accent-orange-subtler, #FEDEC8)",
|
|
89
|
-
color: "var(--ds-icon-accent-orange, #E56910)"
|
|
90
|
-
}),
|
|
91
|
-
magenta: (0, _react.css)({
|
|
92
|
-
backgroundColor: "var(--ds-background-accent-magenta-subtler, #FDD0EC)",
|
|
93
|
-
color: "var(--ds-icon-accent-magenta, #CD519D)"
|
|
94
|
-
}),
|
|
95
|
-
green: (0, _react.css)({
|
|
96
|
-
backgroundColor: "var(--ds-background-accent-green-subtler, #BAF3DB)",
|
|
97
|
-
color: "var(--ds-icon-accent-green, #22A06B)"
|
|
98
|
-
}),
|
|
99
|
-
blue: (0, _react.css)({
|
|
100
|
-
backgroundColor: "var(--ds-background-accent-blue-subtler, #CCE0FF)",
|
|
101
|
-
color: "var(--ds-icon-accent-blue, #1D7AFC)"
|
|
102
|
-
}),
|
|
103
|
-
red: (0, _react.css)({
|
|
104
|
-
backgroundColor: "var(--ds-background-accent-red-subtler, #FFD5D2)",
|
|
105
|
-
color: "var(--ds-icon-accent-red, #C9372C)"
|
|
106
|
-
}),
|
|
107
|
-
purple: (0, _react.css)({
|
|
108
|
-
backgroundColor: "var(--ds-background-accent-purple-subtler, #DFD8FD)",
|
|
109
|
-
color: "var(--ds-icon-accent-purple, #8270DB)"
|
|
110
|
-
}),
|
|
111
|
-
teal: (0, _react.css)({
|
|
112
|
-
backgroundColor: "var(--ds-background-accent-teal-subtler, #C6EDFB)",
|
|
113
|
-
color: "var(--ds-icon-accent-teal, #2898BD)"
|
|
114
|
-
}),
|
|
115
|
-
yellow: (0, _react.css)({
|
|
116
|
-
backgroundColor: "var(--ds-background-accent-yellow-subtler, #F8E6A0)",
|
|
117
|
-
color: "var(--ds-icon-accent-yellow, #B38600)"
|
|
118
|
-
})
|
|
23
|
+
grayBold: "_bfhk1t1b _syaz5w2r",
|
|
24
|
+
limeBold: "_bfhktde4 _syaz5w2r",
|
|
25
|
+
greenBold: "_bfhk1e5c _syaz5w2r",
|
|
26
|
+
blueBold: "_bfhkc8cv _syaz5w2r",
|
|
27
|
+
redBold: "_bfhkuibq _syaz5w2r",
|
|
28
|
+
purpleBold: "_bfhkygwo _syaz5w2r",
|
|
29
|
+
magentaBold: "_bfhkc3uk _syaz5w2r",
|
|
30
|
+
tealBold: "_bfhk2c8p _syaz5w2r",
|
|
31
|
+
orangeBold: "_bfhkjgng _syaz5w2r",
|
|
32
|
+
yellowBold: "_bfhk1vop _syaz5w2r",
|
|
33
|
+
gray: "_bfhk1v33 _syaz16ni",
|
|
34
|
+
lime: "_bfhkz2ec _syaz8645",
|
|
35
|
+
orange: "_bfhkf2vu _syaz7r97",
|
|
36
|
+
magenta: "_bfhkv9ra _syazv8hk",
|
|
37
|
+
green: "_bfhk1wnw _syaz17hp",
|
|
38
|
+
blue: "_bfhk4v9p _syaz1ov1",
|
|
39
|
+
red: "_bfhk1rtt _syaznbxb",
|
|
40
|
+
purple: "_bfhk1jkz _syaz5yjc",
|
|
41
|
+
teal: "_bfhk1a17 _syaz8uof",
|
|
42
|
+
yellow: "_bfhk3fv2 _syaz1oqg"
|
|
119
43
|
};
|
|
120
44
|
var shapeMap = {
|
|
121
|
-
square:
|
|
122
|
-
|
|
123
|
-
}),
|
|
124
|
-
circle: (0, _react.css)({
|
|
125
|
-
borderRadius: "var(--ds-border-radius-circle, 32032px)"
|
|
126
|
-
})
|
|
45
|
+
square: "_2rkoiti9",
|
|
46
|
+
circle: "_2rko14q2"
|
|
127
47
|
};
|
|
128
|
-
var iconTileStyles =
|
|
129
|
-
display: 'inline-flex',
|
|
130
|
-
boxSizing: 'border-box',
|
|
131
|
-
alignItems: 'center',
|
|
132
|
-
justifyContent: 'center',
|
|
133
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
134
|
-
fontSize: 0 /* Prevents parent font-size from affecting the container */
|
|
135
|
-
});
|
|
48
|
+
var iconTileStyles = null;
|
|
136
49
|
|
|
137
50
|
/**
|
|
138
51
|
* __IconTile__ -- ⚠️ Experimental ⚠️
|
|
@@ -154,13 +67,15 @@ function IconTile(props) {
|
|
|
154
67
|
LEGACY_fallbackComponent = props.LEGACY_fallbackComponent,
|
|
155
68
|
testId = props.testId;
|
|
156
69
|
var ExpandedIcon = Icon;
|
|
70
|
+
|
|
71
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
157
72
|
if (LEGACY_fallbackComponent && !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons')) {
|
|
158
73
|
return LEGACY_fallbackComponent;
|
|
159
74
|
} else {
|
|
160
|
-
return
|
|
75
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
161
76
|
"data-testid": testId,
|
|
162
|
-
|
|
163
|
-
},
|
|
77
|
+
className: (0, _runtime.ax)(["_1e0c116y _vchhusvi _4cvr1h6o _1bah1h6o _1wybidpf", appearanceMap[appearance], sizeMap[size], shapeMap[shape]])
|
|
78
|
+
}, /*#__PURE__*/React.createElement(ExpandedIcon, {
|
|
164
79
|
color: "currentColor",
|
|
165
80
|
label: label,
|
|
166
81
|
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}}
|