@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
|
@@ -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}}
|
|
@@ -1,73 +1,41 @@
|
|
|
1
|
+
/* icon.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
6
|
Object.defineProperty(exports, "__esModule", {
|
|
5
7
|
value: true
|
|
6
8
|
});
|
|
7
9
|
exports.default = exports.Icon = void 0;
|
|
10
|
+
require("./icon.compiled.css");
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var React = _react;
|
|
13
|
+
var _runtime = require("@compiled/react/runtime");
|
|
8
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
var _styles = require("./styles");
|
|
13
|
-
var _utils = require("./utils");
|
|
16
|
+
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); }
|
|
17
|
+
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; }
|
|
14
18
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
|
-
* @jsxRuntime classic
|
|
17
|
-
* @jsx jsx
|
|
18
|
-
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
19
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19
20
|
/**
|
|
20
21
|
* We are hiding these props from consumers as they're used to
|
|
21
22
|
* hack around icon sizing specifically for icon-file-type.
|
|
22
23
|
*/
|
|
23
24
|
|
|
24
|
-
var iconStyles =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
maxHeight: '100%',
|
|
33
|
-
color: 'var(--icon-primary-color)',
|
|
34
|
-
fill: 'var(--icon-secondary-color)',
|
|
35
|
-
verticalAlign: 'bottom'
|
|
36
|
-
})
|
|
37
|
-
});
|
|
25
|
+
var iconStyles = null;
|
|
26
|
+
var sizeStyles = {
|
|
27
|
+
small: "_1bsb7vkz _4t3i7vkz _5fdi7vkz _zbji7vkz",
|
|
28
|
+
medium: "_1bsb1tcg _4t3i1tcg _5fdi1tcg _zbji1tcg",
|
|
29
|
+
large: "_1bsbzwfg _4t3izwfg _5fdizwfg _zbjizwfg",
|
|
30
|
+
xlarge: "_1bsbckbl _4t3ickbl _5fdickbl _zbjickbl"
|
|
31
|
+
};
|
|
32
|
+
|
|
38
33
|
/**
|
|
39
34
|
* For windows high contrast mode
|
|
40
35
|
*/
|
|
41
|
-
var baseHcmStyles =
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
'> svg': {
|
|
45
|
-
filter: 'grayscale(1)',
|
|
46
|
-
'--icon-primary-color': 'CanvasText',
|
|
47
|
-
// foreground
|
|
48
|
-
'--icon-secondary-color': 'Canvas' // background
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
var primaryEqualsSecondaryHcmStyles = (0, _react2.css)({
|
|
53
|
-
'@media screen and (forced-colors: active)': {
|
|
54
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
55
|
-
'> svg': {
|
|
56
|
-
// if the primaryColor is the same as the secondaryColor we
|
|
57
|
-
// set the --icon-primary-color to Canvas
|
|
58
|
-
// this is usually to convey state i.e. Checkbox checked -> not checked
|
|
59
|
-
'--icon-primary-color': 'Canvas' // foreground
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
var secondaryTransparentHcmStyles = (0, _react2.css)({
|
|
64
|
-
'@media screen and (forced-colors: active)': {
|
|
65
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
66
|
-
'> svg': {
|
|
67
|
-
'--icon-secondary-color': 'transparent' // background
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
});
|
|
36
|
+
var baseHcmStyles = null;
|
|
37
|
+
var primaryEqualsSecondaryHcmStyles = null;
|
|
38
|
+
var secondaryTransparentHcmStyles = null;
|
|
71
39
|
|
|
72
40
|
/**
|
|
73
41
|
* __Icon__
|
|
@@ -95,42 +63,29 @@ var Icon = exports.Icon = /*#__PURE__*/(0, _react.memo)(function Icon(props) {
|
|
|
95
63
|
__html: dangerouslySetGlyph
|
|
96
64
|
}
|
|
97
65
|
} : {
|
|
98
|
-
children: Glyph ?
|
|
66
|
+
children: Glyph ? /*#__PURE__*/React.createElement(Glyph, {
|
|
99
67
|
role: "presentation"
|
|
100
68
|
}) : null
|
|
101
69
|
};
|
|
102
|
-
var
|
|
103
|
-
width: width,
|
|
104
|
-
height: height
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
return (0, _react2.jsx)("span", (0, _extends2.default)({
|
|
70
|
+
var customDimensions = width && height ? {
|
|
71
|
+
width: width + 'px',
|
|
72
|
+
height: height + 'px'
|
|
73
|
+
} : null;
|
|
74
|
+
return /*#__PURE__*/React.createElement("span", (0, _extends2.default)({
|
|
108
75
|
"data-testid": testId,
|
|
109
76
|
"data-vc": "icon-".concat(testId),
|
|
110
77
|
role: label ? 'img' : undefined,
|
|
111
78
|
"aria-label": label ? label : undefined,
|
|
112
79
|
"aria-hidden": label ? undefined : true,
|
|
113
|
-
style: {
|
|
80
|
+
style: _objectSpread(_objectSpread({}, customDimensions), {}, {
|
|
114
81
|
'--icon-primary-color': primaryColor,
|
|
115
82
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
116
|
-
'--icon-secondary-color': secondaryColor
|
|
83
|
+
'--icon-secondary-color': secondaryColor,
|
|
84
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
117
85
|
margin: UNSAFE_margin
|
|
118
|
-
}
|
|
86
|
+
})
|
|
119
87
|
}, glyphProps, {
|
|
120
|
-
|
|
121
|
-
// NB: This can be resolved if this component, composes base SVG / and/or skeleton
|
|
122
|
-
// We could then simplify how common styles are dealt with simply by encapsulating them
|
|
123
|
-
// at their appropriate level and/or having a singular approach to css variables in the package
|
|
124
|
-
dimensions &&
|
|
125
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
126
|
-
(0, _react2.css)({
|
|
127
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
128
|
-
width: dimensions.width,
|
|
129
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
130
|
-
height: dimensions.height,
|
|
131
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
132
|
-
'> svg': dimensions
|
|
133
|
-
})]
|
|
88
|
+
className: (0, _runtime.ax)(["_1e0c1o8l _1o9zidpf _vyfuvuon _vwz4kb7n _1szv15vq _1tly15vq _rzyw1osq _17jb1osq _1ksvoz0e _3se1x1jp _re2rglyw _1veoyfq0 _1kg81r31", "_jcxd1r8n _gq0g1onz _1trkwc43", primaryColor === secondaryColor && "_18hbwc43", secondaryColor === 'transparent' && "_4fyi1j28", size && sizeStyles[size]])
|
|
134
89
|
}));
|
|
135
90
|
});
|
|
136
91
|
var _default = exports.default = Icon;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
._2rko1q5u{border-radius:var(--ds-border-radius-circle,50%)}._1bsb1tcg{width:24px}
|
|
3
|
+
._1bsb7vkz{width:1pc}
|
|
4
|
+
._1bsbckbl{width:3pc}
|
|
5
|
+
._1bsbzwfg{width:2pc}
|
|
6
|
+
._1e0c1o8l{display:inline-block}
|
|
7
|
+
._4t3i1tcg{height:24px}
|
|
8
|
+
._4t3i7vkz{height:1pc}
|
|
9
|
+
._4t3ickbl{height:3pc}
|
|
10
|
+
._4t3izwfg{height:2pc}
|
|
11
|
+
._tzy4clii{opacity:.3}
|
|
12
|
+
._tzy4nh7s{opacity:.15}
|
|
@@ -1,33 +1,31 @@
|
|
|
1
|
+
/* skeleton.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 = void 0;
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
});
|
|
23
|
-
var strongOpacityStyles = (0, _react.css)({
|
|
24
|
-
opacity: 0.3
|
|
25
|
-
});
|
|
9
|
+
require("./skeleton.compiled.css");
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
var React = _react;
|
|
12
|
+
var _runtime = require("@compiled/react/runtime");
|
|
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; }
|
|
15
|
+
var skeletonStyles = null;
|
|
16
|
+
var subtleOpacityStyles = null;
|
|
17
|
+
var strongOpacityStyles = null;
|
|
18
|
+
var sizeStyles = {
|
|
19
|
+
small: "_1bsb7vkz _4t3i7vkz",
|
|
20
|
+
medium: "_1bsb1tcg _4t3i1tcg",
|
|
21
|
+
large: "_1bsbzwfg _4t3izwfg",
|
|
22
|
+
xlarge: "_1bsbckbl _4t3ickbl"
|
|
23
|
+
};
|
|
26
24
|
|
|
27
25
|
/**
|
|
28
26
|
* __Skeleton__
|
|
29
27
|
*/
|
|
30
|
-
var Skeleton = /*#__PURE__*/(0,
|
|
28
|
+
var Skeleton = /*#__PURE__*/(0, _react.memo)(function Skeleton(_ref) {
|
|
31
29
|
var testId = _ref.testId,
|
|
32
30
|
_ref$size = _ref.size,
|
|
33
31
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
@@ -35,14 +33,12 @@ var Skeleton = /*#__PURE__*/(0, _react2.memo)(function Skeleton(_ref) {
|
|
|
35
33
|
color = _ref$color === void 0 ? 'currentColor' : _ref$color,
|
|
36
34
|
_ref$weight = _ref.weight,
|
|
37
35
|
weight = _ref$weight === void 0 ? 'normal' : _ref$weight;
|
|
38
|
-
return
|
|
36
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
39
37
|
"data-testid": testId,
|
|
40
38
|
style: {
|
|
41
39
|
backgroundColor: color
|
|
42
40
|
},
|
|
43
|
-
|
|
44
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
45
|
-
_styles.sizeStyleMap[size]]
|
|
41
|
+
className: (0, _runtime.ax)(["_2rko1q5u _1e0c1o8l", weight === 'strong' ? "_tzy4clii" : "_tzy4nh7s", sizeStyles[size]])
|
|
46
42
|
});
|
|
47
43
|
});
|
|
48
44
|
var _default = exports.default = Skeleton;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
._18m915vq{overflow-y:hidden}
|
|
2
|
+
._1bsb1tcg{width:24px}
|
|
3
|
+
._1bsb7vkz{width:1pc}
|
|
4
|
+
._1bsbckbl{width:3pc}
|
|
5
|
+
._1bsbzwfg{width:2pc}
|
|
6
|
+
._1reo15vq{overflow-x:hidden}
|
|
7
|
+
._4t3i1tcg{height:24px}
|
|
8
|
+
._4t3i7vkz{height:1pc}
|
|
9
|
+
._4t3ickbl{height:3pc}
|
|
10
|
+
._4t3izwfg{height:2pc}
|
|
11
|
+
._lcxvglyw{pointer-events:none}
|
|
12
|
+
._lswuvuon{fill:var(--ds-surface,#fff)}
|
|
13
|
+
._vc881r31 stop{stop-color:currentColor}
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
+
/* svg.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 = void 0;
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
var svgStyles =
|
|
9
|
+
require("./svg.compiled.css");
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
var React = _react;
|
|
12
|
+
var _runtime = require("@compiled/react/runtime");
|
|
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; }
|
|
15
|
+
var sizeStyles = {
|
|
16
|
+
small: "_1bsb7vkz _4t3i7vkz",
|
|
17
|
+
medium: "_1bsb1tcg _4t3i1tcg",
|
|
18
|
+
large: "_1bsbzwfg _4t3izwfg",
|
|
19
|
+
xlarge: "_1bsbckbl _4t3ickbl"
|
|
20
|
+
};
|
|
21
|
+
var svgStyles = null;
|
|
20
22
|
|
|
21
23
|
/**
|
|
22
24
|
* __SVG__
|
|
@@ -35,19 +37,20 @@ var SVG = /*#__PURE__*/(0, _react.memo)(function SVG(_ref) {
|
|
|
35
37
|
secondaryColor = _ref.secondaryColor,
|
|
36
38
|
testId = _ref.testId,
|
|
37
39
|
children = _ref.children;
|
|
38
|
-
return
|
|
40
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
39
41
|
viewBox: "0 0 24 24",
|
|
40
42
|
style: {
|
|
41
43
|
color: primaryColor,
|
|
42
44
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
43
|
-
fill: secondaryColor
|
|
45
|
+
fill: secondaryColor
|
|
44
46
|
}
|
|
45
47
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
46
48
|
,
|
|
47
|
-
|
|
49
|
+
|
|
48
50
|
"data-testid": testId,
|
|
49
51
|
"aria-label": label || undefined,
|
|
50
|
-
role: label ? 'img' : 'presentation'
|
|
52
|
+
role: label ? 'img' : 'presentation',
|
|
53
|
+
className: (0, _runtime.ax)(["_1reo15vq _18m915vq _lswuvuon _lcxvglyw _vc881r31", sizeStyles[size]])
|
|
51
54
|
}, children);
|
|
52
55
|
});
|
|
53
56
|
var _default = exports.default = SVG;
|
|
@@ -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::ddf97866ab3e12660c9c9f8e4a34f107>>
|
|
13
13
|
* @codegenCommand yarn build:icon-glyphs
|
|
14
14
|
*/
|
|
15
15
|
|
|
@@ -726,6 +726,70 @@ var metadata = {
|
|
|
726
726
|
team: 'Design System Team',
|
|
727
727
|
status: 'published'
|
|
728
728
|
},
|
|
729
|
+
'chevron-double-left': {
|
|
730
|
+
keywords: ['chevron-double-left', 'chevrondoubleleft', 'icon', 'core', 'double chevron', 'left', 'previous year'],
|
|
731
|
+
componentName: 'ChevronDoubleLeftIcon',
|
|
732
|
+
package: '@atlaskit/icon/core/chevron-double-left',
|
|
733
|
+
type: 'core',
|
|
734
|
+
categorization: 'multi-purpose',
|
|
735
|
+
team: 'Design System Team',
|
|
736
|
+
status: 'ready-to-publish',
|
|
737
|
+
slackChannel: '#icon-contributions'
|
|
738
|
+
},
|
|
739
|
+
'chevron-double-right': {
|
|
740
|
+
keywords: ['chevron-double-right', 'chevrondoubleright', 'icon', 'core', 'double chevron', 'right', 'next year'],
|
|
741
|
+
componentName: 'ChevronDoubleRightIcon',
|
|
742
|
+
package: '@atlaskit/icon/core/chevron-double-right',
|
|
743
|
+
type: 'core',
|
|
744
|
+
categorization: 'multi-purpose',
|
|
745
|
+
team: 'Design System Team',
|
|
746
|
+
status: 'ready-to-publish',
|
|
747
|
+
slackChannel: '#icon-contributions'
|
|
748
|
+
},
|
|
749
|
+
'chevron-down': {
|
|
750
|
+
keywords: ['chevron-down', 'chevrondown', 'expand', 'collapse', 'icon', 'core', 'chevron down', 'open dropdown menu', 'expanded tree item', 'collapse tree item'],
|
|
751
|
+
componentName: 'ChevronDownIcon',
|
|
752
|
+
package: '@atlaskit/icon/core/chevron-down',
|
|
753
|
+
oldName: ['chevron-down', 'chevron-down-circle', 'hipchat/chevron-down'],
|
|
754
|
+
type: 'core',
|
|
755
|
+
categorization: 'multi-purpose',
|
|
756
|
+
team: 'Design System Team',
|
|
757
|
+
status: 'ready-to-publish',
|
|
758
|
+
slackChannel: '#icon-contributions'
|
|
759
|
+
},
|
|
760
|
+
'chevron-left': {
|
|
761
|
+
keywords: ['chevron-left', 'chevronleft', 'back', 'previous', 'icon', 'core', 'chevron left', 'back'],
|
|
762
|
+
componentName: 'ChevronLeftIcon',
|
|
763
|
+
package: '@atlaskit/icon/core/chevron-left',
|
|
764
|
+
oldName: ['chevron-left-circle', 'chevron-left', 'chevron-left-large'],
|
|
765
|
+
type: 'core',
|
|
766
|
+
categorization: 'multi-purpose',
|
|
767
|
+
team: 'Design System Team',
|
|
768
|
+
status: 'ready-to-publish',
|
|
769
|
+
slackChannel: '#icon-contributions'
|
|
770
|
+
},
|
|
771
|
+
'chevron-right': {
|
|
772
|
+
keywords: ['chevron-right', 'chevronright', 'forward', 'next', 'icon', 'core', 'chevron right', 'collapsed', 'expand tree item'],
|
|
773
|
+
componentName: 'ChevronRightIcon',
|
|
774
|
+
package: '@atlaskit/icon/core/chevron-right',
|
|
775
|
+
oldName: ['chevron-right-circle', 'chevron-right', 'chevron-right-large'],
|
|
776
|
+
type: 'core',
|
|
777
|
+
categorization: 'multi-purpose',
|
|
778
|
+
team: 'Design System Team',
|
|
779
|
+
status: 'ready-to-publish',
|
|
780
|
+
slackChannel: '#icon-contributions'
|
|
781
|
+
},
|
|
782
|
+
'chevron-up': {
|
|
783
|
+
keywords: ['chevron-up', 'chevronup', 'expand', 'collapse', 'icon', 'core', 'chevron up', 'close dropdown menu', 'collapse'],
|
|
784
|
+
componentName: 'ChevronUpIcon',
|
|
785
|
+
package: '@atlaskit/icon/core/chevron-up',
|
|
786
|
+
oldName: ['chevron-up-circle', 'hipchat/chevron-up', 'chevron-up'],
|
|
787
|
+
type: 'core',
|
|
788
|
+
categorization: 'multi-purpose',
|
|
789
|
+
team: 'Design System Team',
|
|
790
|
+
status: 'ready-to-publish',
|
|
791
|
+
slackChannel: '#icon-contributions'
|
|
792
|
+
},
|
|
729
793
|
'child-issues': {
|
|
730
794
|
keywords: ['child-issues', 'childissues', 'icon', 'core'],
|
|
731
795
|
componentName: 'ChildIssuesIcon',
|