@atlaskit/menu 3.1.2 → 4.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 +29 -0
- package/dist/cjs/internal/components/menu-item-primitive.compiled.css +81 -0
- package/dist/cjs/internal/components/menu-item-primitive.js +47 -174
- package/dist/cjs/menu-item/button-item.js +10 -22
- package/dist/cjs/menu-item/custom-item.js +11 -25
- package/dist/cjs/menu-item/link-item.js +10 -22
- package/dist/cjs/menu-item/skeleton-heading-item.js +1 -4
- package/dist/cjs/menu-item/skeleton-item.js +1 -4
- package/dist/cjs/menu-section/section.js +1 -4
- package/dist/es2019/internal/components/menu-item-primitive.compiled.css +81 -0
- package/dist/es2019/internal/components/menu-item-primitive.js +43 -172
- package/dist/es2019/menu-item/button-item.js +5 -24
- package/dist/es2019/menu-item/custom-item.js +6 -28
- package/dist/es2019/menu-item/link-item.js +5 -24
- package/dist/es2019/menu-item/skeleton-heading-item.js +1 -4
- package/dist/es2019/menu-item/skeleton-item.js +1 -4
- package/dist/es2019/menu-section/section.js +1 -4
- package/dist/esm/internal/components/menu-item-primitive.compiled.css +81 -0
- package/dist/esm/internal/components/menu-item-primitive.js +43 -171
- package/dist/esm/menu-item/button-item.js +6 -22
- package/dist/esm/menu-item/custom-item.js +7 -26
- package/dist/esm/menu-item/link-item.js +6 -22
- package/dist/esm/menu-item/skeleton-heading-item.js +1 -4
- package/dist/esm/menu-item/skeleton-item.js +1 -4
- package/dist/esm/menu-section/section.js +1 -4
- package/dist/types/internal/components/menu-item-primitive.d.ts +2 -2
- package/dist/types/types.d.ts +4 -7
- package/dist/types-ts4.5/internal/components/menu-item-primitive.d.ts +2 -2
- package/dist/types-ts4.5/types.d.ts +4 -7
- package/package.json +17 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @atlaskit/menu
|
|
2
2
|
|
|
3
|
+
## 4.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#141631](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/141631)
|
|
8
|
+
[`064a20b174719`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/064a20b174719) - -
|
|
9
|
+
Migrated `ButtonItem`, `LinkItem` and `CustomItem` components from `@emotion/react` to
|
|
10
|
+
`@compiled/react` in order to improve performance, align with the rest of the Atlaskit techstack,
|
|
11
|
+
and support React 18 Streaming SSR.
|
|
12
|
+
|
|
13
|
+
- Removed the deprecated `cssFn` prop from `ButtonItem`, `LinkItem` and `CustomItem` components.
|
|
14
|
+
|
|
15
|
+
Please note, in order to use this version of `@atlaskit/menu`, you will need to ensure that your
|
|
16
|
+
bundler is configured to handle `.css` imports correctly.
|
|
17
|
+
|
|
18
|
+
Most bundlers come with built-in support for `.css` imports, so you may not need to do anything.
|
|
19
|
+
If you are using a different bundler, please refer to the documentation for that bundler to
|
|
20
|
+
understand how to handle `.css` imports. For more information on the migration, please refer to
|
|
21
|
+
[RFC-73 Migrating our components to Compiled CSS-in-JS](https://community.developer.atlassian.com/t/rfc-73-migrating-our-components-to-compiled-css-in-js/85953).
|
|
22
|
+
|
|
23
|
+
## 3.2.0
|
|
24
|
+
|
|
25
|
+
### Minor Changes
|
|
26
|
+
|
|
27
|
+
- [#132213](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/132213)
|
|
28
|
+
[`df53b836e03ce`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/df53b836e03ce) -
|
|
29
|
+
Adds the className prop to the MenuItem type. Although the className prop was already supported by
|
|
30
|
+
the Menu Item components, this change enables its usage with type safety.
|
|
31
|
+
|
|
3
32
|
## 3.1.2
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
|
|
2
|
+
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
|
+
._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
4
|
+
._19itidpf{border:0}
|
|
5
|
+
._rfx315o9:before{border-radius:0 var(--ds-border-radius,4px) var(--ds-border-radius,4px) 0}
|
|
6
|
+
._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
|
|
7
|
+
._18zrutpp{padding-inline:var(--ds-space-150,9pt)}
|
|
8
|
+
._1rjc1b66{padding-block:var(--ds-space-050,4px)}
|
|
9
|
+
._1rjcu2gc{padding-block:var(--ds-space-100,8px)}
|
|
10
|
+
._12ji1r31{outline-color:currentColor}
|
|
11
|
+
._12y31o36{outline-width:medium}
|
|
12
|
+
._12y3idpf{outline-width:0}
|
|
13
|
+
._16jlkb7n{flex-grow:1}
|
|
14
|
+
._18m915vq{overflow-y:hidden}
|
|
15
|
+
._18u0ze3t{margin-left:var(--ds-space-0,0)}
|
|
16
|
+
._19pkze3t{margin-top:var(--ds-space-0,0)}
|
|
17
|
+
._1bah1h6o{justify-content:center}
|
|
18
|
+
._1bsb1osq{width:100%}
|
|
19
|
+
._1bto1l2s{text-overflow:ellipsis}
|
|
20
|
+
._1cs8stnw:before{position:absolute}
|
|
21
|
+
._1e0c1txw{display:flex}
|
|
22
|
+
._1e0c1ule{display:block}
|
|
23
|
+
._1fkrutpp:before{inset-block-end:var(--ds-space-150,9pt)}
|
|
24
|
+
._1fkrze3t:before{inset-block-end:var(--ds-space-0,0)}
|
|
25
|
+
._1hmsglyw{text-decoration-line:none}
|
|
26
|
+
._1kt9b3bt:before{content:""}
|
|
27
|
+
._1mp41y44:before{width:4px}
|
|
28
|
+
._1mp4yh40:before{width:2px}
|
|
29
|
+
._1nmz1hna{word-break:break-word}
|
|
30
|
+
._1o9zidpf{flex-shrink:0}
|
|
31
|
+
._1qu2glyw{outline-style:none}
|
|
32
|
+
._1reo15vq{overflow-x:hidden}
|
|
33
|
+
._1rus67is:before{background-color:var(--ds-border-selected,transparent)}
|
|
34
|
+
._1tke1tcg{min-height:24px}
|
|
35
|
+
._1tke1ylp{min-height:40px}
|
|
36
|
+
._1tkezwfg{min-height:2pc}
|
|
37
|
+
._1ul91tcg{min-width:24px}
|
|
38
|
+
._2hwxze3t{margin-right:var(--ds-space-0,0)}
|
|
39
|
+
._2lx21bp4{flex-direction:column}
|
|
40
|
+
._4bfu1r31{text-decoration-color:currentColor}
|
|
41
|
+
._4cvr1h6o{align-items:center}
|
|
42
|
+
._80om13gf{cursor:not-allowed}
|
|
43
|
+
._80omtlke{cursor:pointer}
|
|
44
|
+
._ajmmnqa1{text-decoration-style:solid}
|
|
45
|
+
._bfhk1q4k{background-color:var(--ds-background-selected,#f4f5f7)}
|
|
46
|
+
._bfhkqtfy{background-color:var(--ds-background-neutral-subtle,transparent)}
|
|
47
|
+
._iajmutpp:before{inset-block-start:var(--ds-space-150,9pt)}
|
|
48
|
+
._iajmze3t:before{inset-block-start:var(--ds-space-0,0)}
|
|
49
|
+
._kqswh2mm{position:relative}
|
|
50
|
+
._o5721q9c{white-space:nowrap}
|
|
51
|
+
._otyrze3t{margin-bottom:var(--ds-space-0,0)}
|
|
52
|
+
._syaz1r31{color:currentColor}
|
|
53
|
+
._syaz1wmz{color:var(--ds-text-subtlest,#6b778c)}
|
|
54
|
+
._syaz2oi6{color:var(--ds-text-disabled,#6b778c)}
|
|
55
|
+
._syazhu5v{color:var(--ds-text-selected,currentColor)}
|
|
56
|
+
._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
|
|
57
|
+
._vchhusvi{box-sizing:border-box}
|
|
58
|
+
._y3gn1e5h{text-align:left}
|
|
59
|
+
._z5wtze3t:before{inset-inline-start:var(--ds-space-0,0)}._10531r31:visited{color:currentColor}
|
|
60
|
+
._1053hu5v:visited{color:var(--ds-text-selected,currentColor)}
|
|
61
|
+
._128m1bk5:focus-visible{outline-width:var(--ds-border-width-outline,2px)}
|
|
62
|
+
._1ah311pw:focus-visible{outline-offset:calc(0px - var(--ds-border-width-outline, 2px))}
|
|
63
|
+
._mizu194a:focus-visible{outline-color:var(--ds-border-focused,#2684ff)}
|
|
64
|
+
._ra3xnqa1:focus-visible{outline-style:solid}
|
|
65
|
+
._1bnxglyw:hover{text-decoration-line:none}
|
|
66
|
+
._30l316ov:hover{color:var(--ds-text-accent-blue,currentColor)}
|
|
67
|
+
._30l31r31:hover{color:currentColor}
|
|
68
|
+
._30l32oi6:hover{color:var(--ds-text-disabled,#6b778c)}
|
|
69
|
+
._30l3hu5v:hover{color:var(--ds-text-selected,currentColor)}
|
|
70
|
+
._9oik1r31:hover{text-decoration-color:currentColor}
|
|
71
|
+
._irr31dko:hover{background-color:var(--ds-background-neutral-subtle-hovered,#f4f5f7)}
|
|
72
|
+
._irr32seo:hover{background-color:var(--ds-background-selected-hovered,#f4f5f7)}
|
|
73
|
+
._irr3qtfy:hover{background-color:var(--ds-background-neutral-subtle,transparent)}
|
|
74
|
+
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
75
|
+
._1di61dko:active{background-color:var(--ds-background-neutral-subtle-hovered,#f4f5f7)}
|
|
76
|
+
._1di6guph:active{background-color:var(--ds-background-selected-pressed,#ebecf0)}
|
|
77
|
+
._1di6qtfy:active{background-color:var(--ds-background-neutral-subtle,transparent)}
|
|
78
|
+
._9h8h1r31:active{color:currentColor}
|
|
79
|
+
._9h8h2oi6:active{color:var(--ds-text-disabled,#6b778c)}
|
|
80
|
+
._9h8hhu5v:active{color:var(--ds-text-selected,currentColor)}
|
|
81
|
+
@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){._1cvmnqa1:focus-visible{outline-style:solid}._4davt94y:focus-visible{outline-width:1px}}
|
|
@@ -1,170 +1,49 @@
|
|
|
1
|
+
/* menu-item-primitive.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
|
-
var
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
8
|
-
|
|
9
|
-
var
|
|
9
|
+
require("./menu-item-primitive.compiled.css");
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
var React = _react;
|
|
12
|
+
var _runtime = require("@compiled/react/runtime");
|
|
10
13
|
var _deprecationWarning = require("@atlaskit/ds-lib/deprecation-warning");
|
|
11
|
-
var _focusRing = _interopRequireDefault(require("@atlaskit/focus-ring"));
|
|
12
14
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
|
-
var
|
|
14
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
15
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
15
16
|
var _menuContext = require("./menu-context");
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* @jsx jsx
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
|
-
|
|
17
|
+
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); }
|
|
18
|
+
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; }
|
|
23
19
|
var defaultRender = function defaultRender(Component, props) {
|
|
24
20
|
return (
|
|
21
|
+
/*#__PURE__*/
|
|
25
22
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
26
|
-
|
|
23
|
+
React.createElement(Component, props)
|
|
27
24
|
);
|
|
28
25
|
};
|
|
29
|
-
var
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
textAlign: 'left'
|
|
47
|
-
});
|
|
48
|
-
var truncateStyles = (0, _react2.css)({
|
|
49
|
-
display: 'block',
|
|
50
|
-
overflow: 'hidden',
|
|
51
|
-
textOverflow: 'ellipsis',
|
|
52
|
-
whiteSpace: 'nowrap'
|
|
53
|
-
});
|
|
54
|
-
var titleStyles = (0, _react2.css)({
|
|
55
|
-
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
|
|
56
|
-
});
|
|
57
|
-
var wordBreakStyles = (0, _react2.css)({
|
|
58
|
-
wordBreak: 'break-word'
|
|
59
|
-
});
|
|
60
|
-
var descriptionStyles = (0, _react2.css)({
|
|
61
|
-
color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")"),
|
|
62
|
-
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
|
|
63
|
-
});
|
|
64
|
-
var disabledDescriptionStyles = (0, _react2.css)({
|
|
65
|
-
color: "var(--ds-text-disabled, ".concat(_colors.N200, ")")
|
|
66
|
-
});
|
|
67
|
-
var positionRelativeStyles = (0, _react2.css)({
|
|
68
|
-
position: 'relative'
|
|
69
|
-
});
|
|
70
|
-
var primitiveStyles = (0, _react2.css)({
|
|
71
|
-
display: 'flex',
|
|
72
|
-
boxSizing: 'border-box',
|
|
73
|
-
width: '100%',
|
|
74
|
-
minHeight: 40,
|
|
75
|
-
margin: "var(--ds-space-0, 0px)",
|
|
76
|
-
alignItems: 'center',
|
|
77
|
-
border: 0,
|
|
78
|
-
outline: 0,
|
|
79
|
-
textDecoration: 'none',
|
|
80
|
-
userSelect: 'none',
|
|
81
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
82
|
-
'&::-moz-focus-inner': {
|
|
83
|
-
border: 0
|
|
84
|
-
},
|
|
85
|
-
'&:hover': {
|
|
86
|
-
textDecoration: 'none'
|
|
87
|
-
}
|
|
88
|
-
});
|
|
26
|
+
var styles = {
|
|
27
|
+
root: "_19itidpf _12ji1r31 _1qu2glyw _12y3idpf _4bfu1r31 _1hmsglyw _ajmmnqa1 _kqswh2mm _1e0c1txw _vchhusvi _1bsb1osq _1tke1ylp _19pkze3t _2hwxze3t _otyrze3t _18u0ze3t _4cvr1h6o _uiztglyw _80omtlke _mizu194a _1ah311pw _ra3xnqa1 _128m1bk5 _9oik1r31 _1bnxglyw _jf4cnqa1 _1cvmnqa1 _4davt94y",
|
|
28
|
+
beforeAfterElementOld: "_1e0c1txw _4cvr1h6o _1bah1h6o _1o9zidpf",
|
|
29
|
+
beforeAfterElement: "_1e0c1txw _1ul91tcg _1tke1tcg _4cvr1h6o _1bah1h6o _1o9zidpf",
|
|
30
|
+
content: "_12ji1r31 _1qu2glyw _12y31o36 _1reo15vq _18m915vq _1e0c1txw _2lx21bp4 _1bah1h6o _16jlkb7n _y3gn1e5h",
|
|
31
|
+
truncate: "_1reo15vq _18m915vq _1e0c1ule _1bto1l2s _o5721q9c",
|
|
32
|
+
title: "_11c82smr",
|
|
33
|
+
wordBreak: "_1nmz1hna",
|
|
34
|
+
description: "_11c8dcr7 _syaz1wmz",
|
|
35
|
+
disabledDescription: "_syaz2oi6",
|
|
36
|
+
unselected: "_bfhkqtfy _syaz1r31 _10531r31 _irr31dko _30l31r31 _1di61dko _9h8h1r31",
|
|
37
|
+
disabled: "_80om13gf _bfhkqtfy _syaz2oi6 _irr3qtfy _30l32oi6 _1di6qtfy _9h8h2oi6",
|
|
38
|
+
selectedBorder: "_1mp4yh40 _1cs8stnw _1rus67is _1kt9b3bt _1fkrze3t _iajmze3t _z5wtze3t",
|
|
39
|
+
selectedNotch: "_rfx315o9 _1mp41y44 _1cs8stnw _1rus67is _1kt9b3bt _1fkrutpp _iajmutpp _z5wtze3t",
|
|
40
|
+
selected: "_bfhk1q4k _syazhu5v _1053hu5v _irr32seo _30l316ov _1di6guph _9h8hhu5v",
|
|
41
|
+
selectedOld: "_30l3hu5v"
|
|
42
|
+
};
|
|
89
43
|
var spacingMapStyles = {
|
|
90
|
-
cozy:
|
|
91
|
-
|
|
92
|
-
paddingBlock: "var(--ds-space-100, 8px)",
|
|
93
|
-
paddingInline: "var(--ds-space-200, 16px)"
|
|
94
|
-
}),
|
|
95
|
-
compact: (0, _react2.css)({
|
|
96
|
-
minHeight: 32,
|
|
97
|
-
// 4 * 2 (8) + icon (24) === 32
|
|
98
|
-
paddingBlock: "var(--ds-space-050, 4px)",
|
|
99
|
-
paddingInline: "var(--ds-space-150, 12px)"
|
|
100
|
-
})
|
|
44
|
+
cozy: "_1rjcu2gc _18zrpxbi",
|
|
45
|
+
compact: "_1rjc1b66 _18zrutpp _1tkezwfg"
|
|
101
46
|
};
|
|
102
|
-
var interactiveStyles = (0, _react2.css)({
|
|
103
|
-
cursor: 'pointer'
|
|
104
|
-
});
|
|
105
|
-
var unselectedStyles = (0, _react2.css)({
|
|
106
|
-
backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
|
|
107
|
-
color: 'currentColor',
|
|
108
|
-
'&:visited': {
|
|
109
|
-
color: 'currentColor'
|
|
110
|
-
},
|
|
111
|
-
'&:hover': {
|
|
112
|
-
backgroundColor: "var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N20, ")"),
|
|
113
|
-
color: 'currentColor'
|
|
114
|
-
},
|
|
115
|
-
'&:active': {
|
|
116
|
-
backgroundColor: "var(--ds-background-neutral-subtle-pressed, ".concat(_colors.N30, ")"),
|
|
117
|
-
boxShadow: 'none',
|
|
118
|
-
color: 'currentColor'
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
var disabledStyles = (0, _react2.css)({
|
|
122
|
-
cursor: 'not-allowed',
|
|
123
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
124
|
-
'&, :hover, :active': {
|
|
125
|
-
backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
|
|
126
|
-
color: "var(--ds-text-disabled, ".concat(_colors.N200, ")")
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
var selectedBorderStyles = (0, _react2.css)({
|
|
130
|
-
'&::before': {
|
|
131
|
-
width: 2,
|
|
132
|
-
position: 'absolute',
|
|
133
|
-
background: "var(--ds-border-selected, transparent)",
|
|
134
|
-
content: '""',
|
|
135
|
-
insetBlockEnd: 0,
|
|
136
|
-
insetBlockStart: 0,
|
|
137
|
-
insetInlineStart: 0
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
var selectedNotchStyles = (0, _react2.css)({
|
|
141
|
-
'&::before': {
|
|
142
|
-
width: 4,
|
|
143
|
-
position: 'absolute',
|
|
144
|
-
background: "var(--ds-border-selected, transparent)",
|
|
145
|
-
borderRadius: "0 ".concat("var(--ds-border-radius, 4px)", " ", "var(--ds-border-radius, 4px)", " 0"),
|
|
146
|
-
content: '""',
|
|
147
|
-
insetBlockEnd: "var(--ds-space-150, 12px)",
|
|
148
|
-
insetBlockStart: "var(--ds-space-150, 12px)",
|
|
149
|
-
insetInlineStart: 0
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
var selectedStyles = (0, _react2.css)({
|
|
153
|
-
backgroundColor: "var(--ds-background-selected, ".concat(_colors.N20, ")"),
|
|
154
|
-
// Fallback set as babel plugin inserts one otherwise
|
|
155
|
-
color: "var(--ds-text-selected, currentColor)",
|
|
156
|
-
'&:visited': {
|
|
157
|
-
color: "var(--ds-text-selected, currentColor)"
|
|
158
|
-
},
|
|
159
|
-
'&:hover': {
|
|
160
|
-
backgroundColor: "var(--ds-background-selected-hovered, ".concat(_colors.N20, ")"),
|
|
161
|
-
color: "var(--ds-text-selected, currentColor)"
|
|
162
|
-
},
|
|
163
|
-
'&:active': {
|
|
164
|
-
backgroundColor: "var(--ds-background-selected-pressed, ".concat(_colors.N30, ")"),
|
|
165
|
-
color: "var(--ds-text-selected, currentColor)"
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
47
|
var gapMap = {
|
|
169
48
|
compact: 'space.100',
|
|
170
49
|
cozy: 'space.150'
|
|
@@ -207,41 +86,35 @@ var MenuItemPrimitive = function MenuItemPrimitive(_ref) {
|
|
|
207
86
|
var selectionStyle = (0, _react.useContext)(_menuContext.SELECTION_STYLE_CONTEXT_DO_NOT_USE);
|
|
208
87
|
var renderTitle = overrides && overrides.Title && overrides.Title.render || defaultRender;
|
|
209
88
|
var UNSAFE_className = UNSAFE_externalClassName;
|
|
210
|
-
return
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
isInset: true
|
|
215
|
-
}, children({
|
|
216
|
-
className: cx([cn([positionRelativeStyles, primitiveStyles, spacingMapStyles[spacing], !isDisabled && !isSelected && unselectedStyles, !isDisabled && isSelected && [selectedStyles, [selectionStyle === 'border' && selectedBorderStyles, selectionStyle === 'notch' && selectedNotchStyles]], isDisabled ? disabledStyles : interactiveStyles]), UNSAFE_className]),
|
|
217
|
-
children: (0, _react2.jsx)(_primitives.Inline, {
|
|
89
|
+
return function () {
|
|
90
|
+
return children({
|
|
91
|
+
className: (0, _runtime.ax)([(0, _runtime.ax)([styles.root, spacingMapStyles[spacing], !isDisabled && !isSelected && styles.unselected, !isDisabled && isSelected && styles.selected, !(0, _platformFeatureFlags.fg)('platform_fix_a11y_selected_and_hovered_state_color') && !isDisabled && isSelected && styles.selectedOld, !isDisabled && isSelected && selectionStyle === 'border' && styles.selectedBorder, !isDisabled && isSelected && selectionStyle === 'notch' && styles.selectedNotch, isDisabled && styles.disabled]), UNSAFE_className]),
|
|
92
|
+
children: /*#__PURE__*/React.createElement(_compiled.Inline, {
|
|
218
93
|
as: "span",
|
|
219
94
|
spread: "space-between",
|
|
220
95
|
alignBlock: "center",
|
|
221
96
|
space: gapMap[spacing],
|
|
222
97
|
grow: "fill",
|
|
223
98
|
testId: testId && "".concat(testId, "--container")
|
|
224
|
-
}, iconBefore &&
|
|
99
|
+
}, iconBefore && /*#__PURE__*/React.createElement("span", {
|
|
225
100
|
"data-item-elem-before": true,
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
}, iconBefore), title &&
|
|
229
|
-
|
|
230
|
-
grow: "fill",
|
|
231
|
-
xcss: contentStyles
|
|
101
|
+
"data-testid": testId && "".concat(testId, "--icon-before"),
|
|
102
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform_ads_component_no_icon_spacing_support') && styles.beforeAfterElement, !(0, _platformFeatureFlags.fg)('platform_ads_component_no_icon_spacing_support') && styles.beforeAfterElementOld])
|
|
103
|
+
}, iconBefore), title && /*#__PURE__*/React.createElement("div", {
|
|
104
|
+
className: (0, _runtime.ax)([styles.content])
|
|
232
105
|
}, renderTitle('span', {
|
|
233
106
|
children: title,
|
|
234
|
-
className:
|
|
107
|
+
className: (0, _runtime.ax)([styles.title, shouldTitleWrap ? styles.wordBreak : styles.truncate]),
|
|
235
108
|
'data-item-title': true
|
|
236
|
-
}), description &&
|
|
109
|
+
}), description && /*#__PURE__*/React.createElement("span", {
|
|
237
110
|
"data-item-description": true,
|
|
238
|
-
|
|
239
|
-
}, description)), iconAfter &&
|
|
111
|
+
className: (0, _runtime.ax)([styles.description, isDisabled && styles.disabledDescription, shouldDescriptionWrap && styles.wordBreak, !shouldDescriptionWrap && styles.truncate])
|
|
112
|
+
}, description)), iconAfter && /*#__PURE__*/React.createElement("span", {
|
|
240
113
|
"data-item-elem-after": true,
|
|
241
|
-
|
|
242
|
-
|
|
114
|
+
"data-testid": testId && "".concat(testId, "--icon-after"),
|
|
115
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform_ads_component_no_icon_spacing_support') && styles.beforeAfterElement, !(0, _platformFeatureFlags.fg)('platform_ads_component_no_icon_spacing_support') && styles.beforeAfterElementOld])
|
|
243
116
|
}, iconAfter))
|
|
244
|
-
})
|
|
245
|
-
});
|
|
117
|
+
});
|
|
118
|
+
}();
|
|
246
119
|
};
|
|
247
120
|
var _default = exports.default = MenuItemPrimitive;
|
|
@@ -1,25 +1,23 @@
|
|
|
1
|
+
/* button-item.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 = void 0;
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
var React = _react;
|
|
12
|
+
var _runtime = require("@compiled/react/runtime");
|
|
8
13
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
14
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
-
var _react = require("react");
|
|
11
|
-
var _react2 = require("@emotion/react");
|
|
12
|
-
var _deprecationWarning = require("@atlaskit/ds-lib/deprecation-warning");
|
|
13
|
-
var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
|
|
14
15
|
var _interactionContext = _interopRequireDefault(require("@atlaskit/interaction-context"));
|
|
15
16
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
17
|
var _menuItemPrimitive = _interopRequireDefault(require("../internal/components/menu-item-primitive"));
|
|
17
|
-
var _excluded = ["children", "
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
* @jsx jsx
|
|
21
|
-
*/
|
|
22
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
|
+
var _excluded = ["children", "description", "iconAfter", "iconBefore", "isDisabled", "isSelected", "onClick", "testId", "overrides", "onMouseDown", "shouldTitleWrap", "shouldDescriptionWrap", "className", "interactionName"];
|
|
19
|
+
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); }
|
|
20
|
+
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; }
|
|
23
21
|
/**
|
|
24
22
|
* __Button item__
|
|
25
23
|
*
|
|
@@ -32,8 +30,6 @@ var ButtonItem = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardR
|
|
|
32
30
|
// Type needed on props to extract types with extract react types.
|
|
33
31
|
function (props, ref) {
|
|
34
32
|
var children = props.children,
|
|
35
|
-
_props$cssFn = props.cssFn,
|
|
36
|
-
cssFn = _props$cssFn === void 0 ? _noop.default : _props$cssFn,
|
|
37
33
|
description = props.description,
|
|
38
34
|
iconAfter = props.iconAfter,
|
|
39
35
|
iconBefore = props.iconBefore,
|
|
@@ -59,9 +55,7 @@ function (props, ref) {
|
|
|
59
55
|
if (!children) {
|
|
60
56
|
return null;
|
|
61
57
|
}
|
|
62
|
-
|
|
63
|
-
);
|
|
64
|
-
return (0, _react2.jsx)(_menuItemPrimitive.default
|
|
58
|
+
return /*#__PURE__*/React.createElement(_menuItemPrimitive.default
|
|
65
59
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
66
60
|
, (0, _extends2.default)({
|
|
67
61
|
className: UNSAFE_className
|
|
@@ -76,17 +70,11 @@ function (props, ref) {
|
|
|
76
70
|
title: children,
|
|
77
71
|
shouldTitleWrap: shouldTitleWrap,
|
|
78
72
|
shouldDescriptionWrap: shouldDescriptionWrap,
|
|
79
|
-
css:
|
|
80
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
81
|
-
cssFn({
|
|
82
|
-
isSelected: isSelected,
|
|
83
|
-
isDisabled: isDisabled
|
|
84
|
-
}),
|
|
85
73
|
testId: testId && "".concat(testId, "--primitive")
|
|
86
74
|
}), function (_ref) {
|
|
87
75
|
var children = _ref.children,
|
|
88
76
|
className = _ref.className;
|
|
89
|
-
return
|
|
77
|
+
return /*#__PURE__*/React.createElement("button", (0, _extends2.default)({
|
|
90
78
|
"data-testid": testId
|
|
91
79
|
}, rest, {
|
|
92
80
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -1,25 +1,23 @@
|
|
|
1
|
+
/* custom-item.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 = void 0;
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
var React = _react;
|
|
12
|
+
var _runtime = require("@compiled/react/runtime");
|
|
8
13
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
14
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
-
var _react = require("react");
|
|
11
|
-
var _react2 = require("@emotion/react");
|
|
12
|
-
var _deprecationWarning = require("@atlaskit/ds-lib/deprecation-warning");
|
|
13
|
-
var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
|
|
14
15
|
var _interactionContext = _interopRequireDefault(require("@atlaskit/interaction-context"));
|
|
15
16
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
17
|
var _menuItemPrimitive = _interopRequireDefault(require("../internal/components/menu-item-primitive"));
|
|
17
|
-
var _excluded = ["component", "
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
* @jsx jsx
|
|
21
|
-
*/
|
|
22
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
|
+
var _excluded = ["component", "isDisabled", "isSelected", "onClick", "testId", "children", "description", "iconAfter", "iconBefore", "overrides", "onMouseDown", "shouldTitleWrap", "shouldDescriptionWrap", "className", "UNSAFE_isDraggable", "interactionName"];
|
|
19
|
+
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); }
|
|
20
|
+
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; }
|
|
23
21
|
var preventEvent = function preventEvent(e) {
|
|
24
22
|
e.preventDefault();
|
|
25
23
|
};
|
|
@@ -36,8 +34,6 @@ var preventEvent = function preventEvent(e) {
|
|
|
36
34
|
*/
|
|
37
35
|
var CustomItem = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
38
36
|
var Component = _ref.component,
|
|
39
|
-
_ref$cssFn = _ref.cssFn,
|
|
40
|
-
cssFn = _ref$cssFn === void 0 ? _noop.default : _ref$cssFn,
|
|
41
37
|
_ref$isDisabled = _ref.isDisabled,
|
|
42
38
|
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
43
39
|
_ref$isSelected = _ref.isSelected,
|
|
@@ -65,9 +61,7 @@ var CustomItem = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardR
|
|
|
65
61
|
if (!Component) {
|
|
66
62
|
return null;
|
|
67
63
|
}
|
|
68
|
-
|
|
69
|
-
);
|
|
70
|
-
return (0, _react2.jsx)(_menuItemPrimitive.default
|
|
64
|
+
return /*#__PURE__*/React.createElement(_menuItemPrimitive.default
|
|
71
65
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
72
66
|
, (0, _extends2.default)({
|
|
73
67
|
className: UNSAFE_className
|
|
@@ -81,20 +75,12 @@ var CustomItem = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardR
|
|
|
81
75
|
isSelected: isSelected,
|
|
82
76
|
isDisabled: isDisabled,
|
|
83
77
|
shouldTitleWrap: shouldTitleWrap,
|
|
84
|
-
shouldDescriptionWrap: shouldDescriptionWrap
|
|
85
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
86
|
-
,
|
|
87
|
-
css: (0, _react2.css)(
|
|
88
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
89
|
-
cssFn({
|
|
90
|
-
isDisabled: isDisabled,
|
|
91
|
-
isSelected: isSelected
|
|
92
|
-
})),
|
|
78
|
+
shouldDescriptionWrap: shouldDescriptionWrap,
|
|
93
79
|
testId: testId && "".concat(testId, "--primitive")
|
|
94
80
|
}), function (_ref2) {
|
|
95
81
|
var children = _ref2.children,
|
|
96
82
|
className = _ref2.className;
|
|
97
|
-
return
|
|
83
|
+
return /*#__PURE__*/React.createElement(Component, (0, _extends2.default)({
|
|
98
84
|
"data-testid": testId
|
|
99
85
|
}, rest, {
|
|
100
86
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -1,26 +1,24 @@
|
|
|
1
|
+
/* link-item.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 = void 0;
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
var React = _react;
|
|
12
|
+
var _runtime = require("@compiled/react/runtime");
|
|
8
13
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
14
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
-
var _react = require("react");
|
|
11
|
-
var _react2 = require("@emotion/react");
|
|
12
15
|
var _appProvider = require("@atlaskit/app-provider");
|
|
13
|
-
var _deprecationWarning = require("@atlaskit/ds-lib/deprecation-warning");
|
|
14
|
-
var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
|
|
15
16
|
var _interactionContext = _interopRequireDefault(require("@atlaskit/interaction-context"));
|
|
16
17
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
18
|
var _menuItemPrimitive = _interopRequireDefault(require("../internal/components/menu-item-primitive"));
|
|
18
|
-
var _excluded = ["children", "href", "
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
* @jsx jsx
|
|
22
|
-
*/
|
|
23
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
19
|
+
var _excluded = ["children", "href", "description", "iconAfter", "iconBefore", "isDisabled", "isSelected", "onClick", "testId", "overrides", "onMouseDown", "shouldTitleWrap", "shouldDescriptionWrap", "className", "UNSAFE_shouldDisableRouterLink", "UNSAFE_isDraggable", "interactionName"];
|
|
20
|
+
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); }
|
|
21
|
+
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; }
|
|
24
22
|
var IS_EXTERNAL_LINK_REGEX = /^(?:(http|https):\/\/)/;
|
|
25
23
|
var IS_NON_HTTP_BASED = /^(((mailto|tel|sms):)|(#))/;
|
|
26
24
|
var preventEvent = function preventEvent(e) {
|
|
@@ -40,8 +38,6 @@ var LinkItem = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef
|
|
|
40
38
|
function (props, ref) {
|
|
41
39
|
var children = props.children,
|
|
42
40
|
href = props.href,
|
|
43
|
-
_props$cssFn = props.cssFn,
|
|
44
|
-
cssFn = _props$cssFn === void 0 ? _noop.default : _props$cssFn,
|
|
45
41
|
description = props.description,
|
|
46
42
|
iconAfter = props.iconAfter,
|
|
47
43
|
iconBefore = props.iconBefore,
|
|
@@ -84,9 +80,7 @@ function (props, ref) {
|
|
|
84
80
|
*/
|
|
85
81
|
var isRouterLink = !UNSAFE_shouldDisableRouterLink && RouterLink && !isExternal && !isNonHttpBased && !isEmptyHref;
|
|
86
82
|
var Component = isRouterLink ? RouterLink : 'a';
|
|
87
|
-
|
|
88
|
-
);
|
|
89
|
-
return (0, _react2.jsx)(_menuItemPrimitive.default, (0, _extends2.default)({}, rest, {
|
|
83
|
+
return /*#__PURE__*/React.createElement(_menuItemPrimitive.default, (0, _extends2.default)({}, rest, {
|
|
90
84
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
91
85
|
className: UNSAFE_className
|
|
92
86
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
|
|
@@ -99,18 +93,12 @@ function (props, ref) {
|
|
|
99
93
|
description: description,
|
|
100
94
|
shouldTitleWrap: shouldTitleWrap,
|
|
101
95
|
shouldDescriptionWrap: shouldDescriptionWrap,
|
|
102
|
-
css:
|
|
103
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
104
|
-
cssFn({
|
|
105
|
-
isSelected: isSelected,
|
|
106
|
-
isDisabled: isDisabled
|
|
107
|
-
}),
|
|
108
96
|
title: children,
|
|
109
97
|
testId: testId && "".concat(testId, "--primitive")
|
|
110
98
|
}), function (_ref) {
|
|
111
99
|
var children = _ref.children,
|
|
112
100
|
className = _ref.className;
|
|
113
|
-
return
|
|
101
|
+
return /*#__PURE__*/React.createElement(Component, (0, _extends2.default)({
|
|
114
102
|
"data-testid": testId,
|
|
115
103
|
"data-is-router-link": testId ? isRouterLink ? 'true' : 'false' : undefined,
|
|
116
104
|
"data-vc": "link-item"
|
|
@@ -69,12 +69,9 @@ var SkeletonHeadingItem = function SkeletonHeadingItem(_ref) {
|
|
|
69
69
|
var className = _ref2.className;
|
|
70
70
|
return (0, _react.jsx)("div", {
|
|
71
71
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
72
|
-
className: className
|
|
73
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
74
|
-
,
|
|
72
|
+
className: className,
|
|
75
73
|
style: {
|
|
76
74
|
'--width': width
|
|
77
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
78
75
|
},
|
|
79
76
|
css: [skeletonStyles, width ? customWidthStyles : defaultWidthStyles,
|
|
80
77
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
@@ -136,12 +136,9 @@ var SkeletonItem = function SkeletonItem(_ref) {
|
|
|
136
136
|
var className = _ref2.className;
|
|
137
137
|
return (0, _react.jsx)("div", {
|
|
138
138
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
139
|
-
className: className
|
|
140
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
141
|
-
,
|
|
139
|
+
className: className,
|
|
142
140
|
style: {
|
|
143
141
|
'--width': width
|
|
144
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
145
142
|
},
|
|
146
143
|
css: [skeletonStyles, (hasAvatar || hasIcon) && beforeElementStyles, hasAvatar && avatarStyles, hasIcon && iconStyles, width ? customWidthStyles : defaultWidthStyles,
|
|
147
144
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|