@atlaskit/smart-card 33.4.0 → 34.0.1
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 +14 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/views/styled.js +1 -0
- package/dist/cjs/view/EmbedModal/components/link-info/styled.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.js +3 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/common/motion-wrapper/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +3 -0
- package/dist/cjs/view/FlexibleCard/components/utils.js +3 -3
- package/dist/cjs/view/InlineCard/ErroredView/index.js +6 -2
- package/dist/cjs/view/InlineCard/ForbiddenView/index.js +40 -15
- package/dist/cjs/view/InlineCard/Frame/index.js +3 -1
- package/dist/cjs/view/InlineCard/Frame/styled-emotion.js +137 -0
- package/dist/cjs/view/InlineCard/Frame/styled.compiled.css +53 -0
- package/dist/cjs/view/InlineCard/Frame/styled.js +49 -124
- package/dist/cjs/view/InlineCard/Icon-emotion.js +58 -0
- package/dist/cjs/view/InlineCard/Icon.compiled.css +10 -0
- package/dist/cjs/view/InlineCard/Icon.js +39 -18
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.compiled.css +6 -0
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +99 -25
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled-emotion.js +95 -0
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.compiled.css +36 -0
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.js +128 -45
- package/dist/cjs/view/InlineCard/ResolvingView/index.js +30 -12
- package/dist/cjs/view/InlineCard/ResolvingView/styled-emotion.js +16 -0
- package/dist/cjs/view/InlineCard/ResolvingView/styled.compiled.css +5 -0
- package/dist/cjs/view/InlineCard/ResolvingView/styled.js +26 -8
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +42 -16
- package/dist/cjs/view/InlineCard/styled-emotion.js +55 -0
- package/dist/cjs/view/InlineCard/styled.compiled.css +21 -0
- package/dist/cjs/view/InlineCard/styled.js +25 -45
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/views/styled.js +1 -0
- package/dist/es2019/view/EmbedModal/components/link-info/styled.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.js +3 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/common/motion-wrapper/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +3 -0
- package/dist/es2019/view/FlexibleCard/components/utils.js +3 -3
- package/dist/es2019/view/InlineCard/ErroredView/index.js +6 -2
- package/dist/es2019/view/InlineCard/ForbiddenView/index.js +40 -15
- package/dist/es2019/view/InlineCard/Frame/index.js +3 -1
- package/dist/es2019/view/InlineCard/Frame/styled-emotion.js +143 -0
- package/dist/es2019/view/InlineCard/Frame/styled.compiled.css +53 -0
- package/dist/es2019/view/InlineCard/Frame/styled.js +44 -136
- package/dist/es2019/view/InlineCard/Icon-emotion.js +52 -0
- package/dist/es2019/view/InlineCard/Icon.compiled.css +10 -0
- package/dist/es2019/view/InlineCard/Icon.js +31 -15
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.compiled.css +6 -0
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.js +87 -18
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled-emotion.js +114 -0
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled.compiled.css +36 -0
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled.js +115 -43
- package/dist/es2019/view/InlineCard/ResolvingView/index.js +30 -12
- package/dist/es2019/view/InlineCard/ResolvingView/styled-emotion.js +9 -0
- package/dist/es2019/view/InlineCard/ResolvingView/styled.compiled.css +5 -0
- package/dist/es2019/view/InlineCard/ResolvingView/styled.js +20 -6
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +42 -16
- package/dist/es2019/view/InlineCard/styled-emotion.js +47 -0
- package/dist/es2019/view/InlineCard/styled.compiled.css +21 -0
- package/dist/es2019/view/InlineCard/styled.js +19 -43
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/views/styled.js +1 -0
- package/dist/esm/view/EmbedModal/components/link-info/styled.js +2 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.js +3 -0
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -0
- package/dist/esm/view/FlexibleCard/components/common/motion-wrapper/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +2 -0
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +3 -0
- package/dist/esm/view/FlexibleCard/components/utils.js +3 -3
- package/dist/esm/view/InlineCard/ErroredView/index.js +6 -2
- package/dist/esm/view/InlineCard/ForbiddenView/index.js +40 -15
- package/dist/esm/view/InlineCard/Frame/index.js +3 -1
- package/dist/esm/view/InlineCard/Frame/styled-emotion.js +131 -0
- package/dist/esm/view/InlineCard/Frame/styled.compiled.css +53 -0
- package/dist/esm/view/InlineCard/Frame/styled.js +46 -125
- package/dist/esm/view/InlineCard/Icon-emotion.js +51 -0
- package/dist/esm/view/InlineCard/Icon.compiled.css +10 -0
- package/dist/esm/view/InlineCard/Icon.js +36 -17
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.compiled.css +6 -0
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +90 -18
- package/dist/esm/view/InlineCard/IconAndTitleLayout/styled-emotion.js +87 -0
- package/dist/esm/view/InlineCard/IconAndTitleLayout/styled.compiled.css +36 -0
- package/dist/esm/view/InlineCard/IconAndTitleLayout/styled.js +124 -43
- package/dist/esm/view/InlineCard/ResolvingView/index.js +30 -12
- package/dist/esm/view/InlineCard/ResolvingView/styled-emotion.js +9 -0
- package/dist/esm/view/InlineCard/ResolvingView/styled.compiled.css +5 -0
- package/dist/esm/view/InlineCard/ResolvingView/styled.js +22 -6
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +42 -16
- package/dist/esm/view/InlineCard/styled-emotion.js +47 -0
- package/dist/esm/view/InlineCard/styled.compiled.css +21 -0
- package/dist/esm/view/InlineCard/styled.js +21 -43
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/view/HoverCard/components/HoverCardComponent.d.ts +1 -1
- package/dist/types/view/InlineCard/Frame/styled-emotion.d.ts +17 -0
- package/dist/types/view/InlineCard/Frame/styled.d.ts +8 -10
- package/dist/types/view/InlineCard/Icon-emotion.d.ts +12 -0
- package/dist/types/view/InlineCard/Icon.d.ts +2 -8
- package/dist/types/view/InlineCard/IconAndTitleLayout/styled-emotion.d.ts +36 -0
- package/dist/types/view/InlineCard/IconAndTitleLayout/styled.d.ts +8 -34
- package/dist/types/view/InlineCard/ResolvingView/styled-emotion.d.ts +9 -0
- package/dist/types/view/InlineCard/ResolvingView/styled.d.ts +1 -8
- package/dist/types/view/InlineCard/styled-emotion.d.ts +13 -0
- package/dist/types/view/InlineCard/styled.d.ts +1 -12
- package/dist/types-ts4.5/view/HoverCard/components/HoverCardComponent.d.ts +1 -1
- package/dist/types-ts4.5/view/InlineCard/Frame/styled-emotion.d.ts +17 -0
- package/dist/types-ts4.5/view/InlineCard/Frame/styled.d.ts +8 -10
- package/dist/types-ts4.5/view/InlineCard/Icon-emotion.d.ts +12 -0
- package/dist/types-ts4.5/view/InlineCard/Icon.d.ts +2 -8
- package/dist/types-ts4.5/view/InlineCard/IconAndTitleLayout/styled-emotion.d.ts +36 -0
- package/dist/types-ts4.5/view/InlineCard/IconAndTitleLayout/styled.d.ts +8 -34
- package/dist/types-ts4.5/view/InlineCard/ResolvingView/styled-emotion.d.ts +9 -0
- package/dist/types-ts4.5/view/InlineCard/ResolvingView/styled.d.ts +1 -8
- package/dist/types-ts4.5/view/InlineCard/styled-emotion.d.ts +13 -0
- package/dist/types-ts4.5/view/InlineCard/styled.d.ts +1 -12
- package/hooks/package.json +3 -1
- package/hover-card/package.json +3 -1
- package/link-url/package.json +3 -1
- package/package.json +17 -7
- package/ssr/package.json +3 -1
- package/types/package.json +3 -1
|
@@ -6,11 +6,14 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
7
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React from 'react';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
10
|
import Spinner from '@atlaskit/spinner';
|
|
10
11
|
import { Frame } from '../Frame';
|
|
11
12
|
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
12
13
|
import { IconTitleWrapper, RightIconPositionWrapper } from '../IconAndTitleLayout/styled';
|
|
14
|
+
import { IconTitleWrapper as IconTitleWrapperOld, RightIconPositionWrapper as RightIconPositionWrapperOld } from '../IconAndTitleLayout/styled-emotion';
|
|
13
15
|
import { SpinnerWrapper } from './styled';
|
|
16
|
+
import { SpinnerWrapper as SpinnerWrapperOld } from './styled-emotion';
|
|
14
17
|
export var InlineCardResolvingView = /*#__PURE__*/function (_React$Component) {
|
|
15
18
|
function InlineCardResolvingView() {
|
|
16
19
|
_classCallCheck(this, InlineCardResolvingView);
|
|
@@ -30,18 +33,33 @@ export var InlineCardResolvingView = /*#__PURE__*/function (_React$Component) {
|
|
|
30
33
|
titleTextColor = _this$props.titleTextColor,
|
|
31
34
|
resolvingPlaceholder = _this$props.resolvingPlaceholder,
|
|
32
35
|
truncateInline = _this$props.truncateInline;
|
|
36
|
+
var SpinnerWrapperComponent = fg('bandicoots-compiled-migration-smartcard') ? SpinnerWrapper : SpinnerWrapperOld;
|
|
33
37
|
if (inlinePreloaderStyle === 'on-right-without-skeleton') {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
39
|
+
return /*#__PURE__*/React.createElement(Frame, {
|
|
40
|
+
withoutBackground: true,
|
|
41
|
+
testId: testId,
|
|
42
|
+
onClick: onClick,
|
|
43
|
+
isSelected: isSelected,
|
|
44
|
+
truncateInline: truncateInline
|
|
45
|
+
}, /*#__PURE__*/React.createElement(IconTitleWrapper, null, url, /*#__PURE__*/React.createElement(RightIconPositionWrapper, null, /*#__PURE__*/React.createElement(SpinnerWrapperComponent, {
|
|
46
|
+
className: "inline-resolving-spinner"
|
|
47
|
+
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
48
|
+
size: 14
|
|
49
|
+
})))));
|
|
50
|
+
} else {
|
|
51
|
+
return /*#__PURE__*/React.createElement(Frame, {
|
|
52
|
+
withoutBackground: true,
|
|
53
|
+
testId: testId,
|
|
54
|
+
onClick: onClick,
|
|
55
|
+
isSelected: isSelected,
|
|
56
|
+
truncateInline: truncateInline
|
|
57
|
+
}, /*#__PURE__*/React.createElement(IconTitleWrapperOld, null, url, /*#__PURE__*/React.createElement(RightIconPositionWrapperOld, null, /*#__PURE__*/React.createElement(SpinnerWrapperComponent, {
|
|
58
|
+
className: "inline-resolving-spinner"
|
|
59
|
+
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
60
|
+
size: 14
|
|
61
|
+
})))));
|
|
62
|
+
}
|
|
45
63
|
} else {
|
|
46
64
|
return /*#__PURE__*/React.createElement(Frame, {
|
|
47
65
|
testId: testId,
|
|
@@ -52,7 +70,7 @@ export var InlineCardResolvingView = /*#__PURE__*/function (_React$Component) {
|
|
|
52
70
|
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
53
71
|
title: resolvingPlaceholder !== null && resolvingPlaceholder !== void 0 ? resolvingPlaceholder : url,
|
|
54
72
|
titleTextColor: titleTextColor
|
|
55
|
-
}, /*#__PURE__*/React.createElement(
|
|
73
|
+
}, /*#__PURE__*/React.createElement(SpinnerWrapperComponent, {
|
|
56
74
|
className: "inline-resolving-spinner"
|
|
57
75
|
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
58
76
|
size: 14
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
+
import styled from '@emotion/styled';
|
|
3
|
+
import { IconTitleWrapper } from '../IconAndTitleLayout/styled-emotion';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
|
+
export var SpinnerWrapper = styled(IconTitleWrapper)({
|
|
7
|
+
verticalAlign: 'text-bottom',
|
|
8
|
+
padding: '0px'
|
|
9
|
+
});
|
|
@@ -1,9 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
/* styled.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["as", "style"];
|
|
5
|
+
import "./styled.compiled.css";
|
|
6
|
+
import { forwardRef } from 'react';
|
|
7
|
+
import * as React from 'react';
|
|
8
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
3
9
|
import { IconTitleWrapper } from '../IconAndTitleLayout/styled';
|
|
4
10
|
|
|
5
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
|
-
export var SpinnerWrapper =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
12
|
+
export var SpinnerWrapper = forwardRef(function (_ref, __cmplr) {
|
|
13
|
+
var _ref$as = _ref.as,
|
|
14
|
+
C = _ref$as === void 0 ? IconTitleWrapper : _ref$as,
|
|
15
|
+
__cmpls = _ref.style,
|
|
16
|
+
__cmplp = _objectWithoutProperties(_ref, _excluded);
|
|
17
|
+
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
18
|
+
style: __cmpls,
|
|
19
|
+
ref: __cmplr,
|
|
20
|
+
className: ax(["_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _s7n41ndm", __cmplp.className])
|
|
21
|
+
}));
|
|
22
|
+
});
|
|
23
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
24
|
+
SpinnerWrapper.displayName = 'SpinnerWrapper';
|
|
25
|
+
}
|
|
@@ -3,20 +3,33 @@ import React from 'react';
|
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
4
|
import Button from '@atlaskit/button';
|
|
5
5
|
import LockIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import { N500, R400 } from '@atlaskit/theme/colors';
|
|
7
8
|
import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
|
|
8
9
|
import { messages } from '../../../messages';
|
|
9
10
|
import { HoverCard } from '../../HoverCard';
|
|
10
11
|
import { Frame } from '../Frame';
|
|
11
12
|
import { AKIconWrapper } from '../Icon';
|
|
13
|
+
import { AKIconWrapper as AKIconWrapperOld } from '../Icon-emotion';
|
|
12
14
|
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
13
15
|
import { IconStyledButton } from '../styled';
|
|
16
|
+
import { IconStyledButton as IconStyledButtonOld } from '../styled-emotion';
|
|
14
17
|
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
var fallbackUnauthorizedIcon = function fallbackUnauthorizedIcon() {
|
|
19
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
20
|
+
return /*#__PURE__*/React.createElement(AKIconWrapper, null, /*#__PURE__*/React.createElement(LockIcon, {
|
|
21
|
+
label: "error",
|
|
22
|
+
size: "small",
|
|
23
|
+
primaryColor: "var(--ds-icon-danger, ".concat(R400, ")")
|
|
24
|
+
}));
|
|
25
|
+
} else {
|
|
26
|
+
return /*#__PURE__*/React.createElement(AKIconWrapperOld, null, /*#__PURE__*/React.createElement(LockIcon, {
|
|
27
|
+
label: "error",
|
|
28
|
+
size: "small",
|
|
29
|
+
primaryColor: "var(--ds-icon-danger, ".concat(R400, ")")
|
|
30
|
+
}));
|
|
31
|
+
}
|
|
32
|
+
};
|
|
20
33
|
export var InlineCardUnauthorizedView = function InlineCardUnauthorizedView(_ref) {
|
|
21
34
|
var url = _ref.url,
|
|
22
35
|
id = _ref.id,
|
|
@@ -43,16 +56,29 @@ export var InlineCardUnauthorizedView = function InlineCardUnauthorizedView(_ref
|
|
|
43
56
|
}, [fireEvent, onAuthorise]);
|
|
44
57
|
var renderActionButton = React.useCallback(function () {
|
|
45
58
|
var ActionButton = withFrameStyleControl(Button, frameRef);
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
59
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
60
|
+
return onAuthorise ? /*#__PURE__*/React.createElement(ActionButton, {
|
|
61
|
+
spacing: "none",
|
|
62
|
+
component: IconStyledButton,
|
|
63
|
+
onClick: handleConnectAccount,
|
|
64
|
+
testId: "button-connect-account"
|
|
65
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
66
|
+
values: {
|
|
67
|
+
context: context
|
|
68
|
+
}
|
|
69
|
+
}))) : undefined;
|
|
70
|
+
} else {
|
|
71
|
+
return onAuthorise ? /*#__PURE__*/React.createElement(ActionButton, {
|
|
72
|
+
spacing: "none",
|
|
73
|
+
component: IconStyledButtonOld,
|
|
74
|
+
onClick: handleConnectAccount,
|
|
75
|
+
testId: "button-connect-account"
|
|
76
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
77
|
+
values: {
|
|
78
|
+
context: context
|
|
79
|
+
}
|
|
80
|
+
}))) : undefined;
|
|
81
|
+
}
|
|
56
82
|
}, [handleConnectAccount, onAuthorise, context]);
|
|
57
83
|
var inlineCardUnauthenticatedView = /*#__PURE__*/React.createElement(Frame, {
|
|
58
84
|
testId: testId,
|
|
@@ -60,7 +86,7 @@ export var InlineCardUnauthorizedView = function InlineCardUnauthorizedView(_ref
|
|
|
60
86
|
ref: frameRef,
|
|
61
87
|
truncateInline: truncateInline
|
|
62
88
|
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
63
|
-
icon: icon ? icon :
|
|
89
|
+
icon: icon ? icon : fallbackUnauthorizedIcon(),
|
|
64
90
|
title: url,
|
|
65
91
|
link: url,
|
|
66
92
|
onClick: onClick,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
+
import styled from '@emotion/styled';
|
|
3
|
+
import { B400, N200 } from '@atlaskit/theme/colors';
|
|
4
|
+
// By default buttons will hide overflow and ellipsis content instead of wrapping.
|
|
5
|
+
// This basically turns the button back into inline content
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
|
+
export var IconStyledButton = styled.span({
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
9
|
+
'&&&': {
|
|
10
|
+
textAlign: 'initial',
|
|
11
|
+
display: 'inline',
|
|
12
|
+
verticalAlign: 'baseline',
|
|
13
|
+
borderRadius: "var(--ds-border-radius-100, 4px)",
|
|
14
|
+
borderTopLeftRadius: '0px',
|
|
15
|
+
borderBottomLeftRadius: '0px',
|
|
16
|
+
padding: "var(--ds-space-025, 2px)".concat(" ", "var(--ds-space-075, 6px)"),
|
|
17
|
+
backgroundClip: 'padding-box',
|
|
18
|
+
boxDecorationBreak: 'clone'
|
|
19
|
+
},
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
21
|
+
'> span': {
|
|
22
|
+
display: 'inline',
|
|
23
|
+
overflow: 'initial',
|
|
24
|
+
textOverflow: 'initial',
|
|
25
|
+
whiteSpace: 'initial',
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
27
|
+
'> span': {
|
|
28
|
+
overflow: 'initial',
|
|
29
|
+
textOverflow: 'initial',
|
|
30
|
+
whiteSpace: 'initial'
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
36
|
+
export var NoLinkAppearance = styled.span({
|
|
37
|
+
color: "var(--ds-text-subtlest, ".concat(N200, ")"),
|
|
38
|
+
marginLeft: "var(--ds-space-050, 4px)"
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
42
|
+
export var LinkAppearance = styled.a({
|
|
43
|
+
color: "var(--ds-link, ".concat(B400, ")"),
|
|
44
|
+
'&:hover': {
|
|
45
|
+
textDecoration: 'none'
|
|
46
|
+
}
|
|
47
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
._i3j7iti9._i3j7iti9._i3j7iti9{border-radius:var(--ds-border-radius-100,4px)}._12rl18uv >span>span{overflow-x:initial}
|
|
3
|
+
._1695v77o._1695v77o._1695v77o{padding-top:var(--ds-space-025,2px)}
|
|
4
|
+
._18v918uv._18v918uv._18v918uv{vertical-align:initial}
|
|
5
|
+
._1a8r4jg8 >span>span{white-space:normal}
|
|
6
|
+
._1byq12x7._1byq12x7._1byq12x7{padding-left:var(--ds-space-075,6px)}
|
|
7
|
+
._1ilx1nu9._1ilx1nu9._1ilx1nu9{display:inline}
|
|
8
|
+
._1jjh4jg8 >span{white-space:normal}
|
|
9
|
+
._1nr3zryt >span>span{text-overflow:clip}
|
|
10
|
+
._1pns12x7._1pns12x7._1pns12x7{padding-right:var(--ds-space-075,6px)}
|
|
11
|
+
._1t1midpf._1t1midpf._1t1midpf{border-top-left-radius:0}
|
|
12
|
+
._1t21zryt >span{text-overflow:clip}
|
|
13
|
+
._1wge18uv >span>span{overflow-y:initial}
|
|
14
|
+
._1xdi1nu9 >span{display:inline}
|
|
15
|
+
._5x9bqvcn._5x9bqvcn._5x9bqvcn{-webkit-box-decoration-break:clone;box-decoration-break:clone}
|
|
16
|
+
._jinwidpf._jinwidpf._jinwidpf{border-bottom-left-radius:0}
|
|
17
|
+
._ju3g18uv >span{overflow-x:initial}
|
|
18
|
+
._k1fv1u8q._k1fv1u8q._k1fv1u8q{background-clip:padding-box}
|
|
19
|
+
._mt1t18uv >span{overflow-y:initial}
|
|
20
|
+
._uqpc18uv._uqpc18uv._uqpc18uv{text-align:initial}
|
|
21
|
+
._vktqv77o._vktqv77o._vktqv77o{padding-bottom:var(--ds-space-025,2px)}
|
|
@@ -1,47 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
/* styled.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["as", "style"];
|
|
5
|
+
import "./styled.compiled.css";
|
|
6
|
+
import { forwardRef } from 'react';
|
|
7
|
+
import * as React from 'react';
|
|
8
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
4
9
|
// By default buttons will hide overflow and ellipsis content instead of wrapping.
|
|
5
10
|
// This basically turns the button back into inline content
|
|
6
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
|
-
export var IconStyledButton =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
backgroundClip: 'padding-box',
|
|
18
|
-
boxDecorationBreak: 'clone'
|
|
19
|
-
},
|
|
20
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
21
|
-
'> span': {
|
|
22
|
-
display: 'inline',
|
|
23
|
-
overflow: 'initial',
|
|
24
|
-
textOverflow: 'initial',
|
|
25
|
-
whiteSpace: 'initial',
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
27
|
-
'> span': {
|
|
28
|
-
overflow: 'initial',
|
|
29
|
-
textOverflow: 'initial',
|
|
30
|
-
whiteSpace: 'initial'
|
|
31
|
-
}
|
|
32
|
-
}
|
|
12
|
+
export var IconStyledButton = forwardRef(function (_ref, __cmplr) {
|
|
13
|
+
var _ref$as = _ref.as,
|
|
14
|
+
C = _ref$as === void 0 ? "span" : _ref$as,
|
|
15
|
+
__cmpls = _ref.style,
|
|
16
|
+
__cmplp = _objectWithoutProperties(_ref, _excluded);
|
|
17
|
+
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
18
|
+
style: __cmpls,
|
|
19
|
+
ref: __cmplr,
|
|
20
|
+
className: ax(["_i3j7iti9 _uqpc18uv _1ilx1nu9 _18v918uv _1t1midpf _jinwidpf _1695v77o _1pns12x7 _vktqv77o _1byq12x7 _k1fv1u8q _5x9bqvcn _ju3g18uv _mt1t18uv _12rl18uv _1wge18uv _1nr3zryt _1a8r4jg8 _1xdi1nu9 _1t21zryt _1jjh4jg8", __cmplp.className])
|
|
21
|
+
}));
|
|
33
22
|
});
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
color: "var(--ds-text-subtlest, ".concat(N200, ")"),
|
|
38
|
-
marginLeft: "var(--ds-space-050, 4px)"
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
42
|
-
export var LinkAppearance = styled.a({
|
|
43
|
-
color: "var(--ds-link, ".concat(B400, ")"),
|
|
44
|
-
'&:hover': {
|
|
45
|
-
textDecoration: 'none'
|
|
46
|
-
}
|
|
47
|
-
});
|
|
23
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
24
|
+
IconStyledButton.displayName = 'IconStyledButton';
|
|
25
|
+
}
|
|
@@ -13,7 +13,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
13
13
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
14
14
|
var PACKAGE_DATA = {
|
|
15
15
|
packageName: "@atlaskit/smart-card",
|
|
16
|
-
packageVersion: "
|
|
16
|
+
packageVersion: "34.0.1",
|
|
17
17
|
componentName: 'linkUrl'
|
|
18
18
|
};
|
|
19
19
|
var Anchor = withLinkClickedEvent('a');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
2
|
import { type HoverCardComponentProps } from '../types';
|
|
3
3
|
export declare const HOVER_CARD_SOURCE = "smartLinkPreviewHoverCard";
|
|
4
|
-
export declare const HoverCardComponent: ({ children, url, id, canOpen, closeOnChildClick, actionOptions, allowEventPropagation, zIndex, noFadeDelay, hoverPreviewOptions, role, label, titleId }: HoverCardComponentProps) => jsx.JSX.Element;
|
|
4
|
+
export declare const HoverCardComponent: ({ children, url, id, canOpen, closeOnChildClick, actionOptions, allowEventPropagation, zIndex, noFadeDelay, hoverPreviewOptions, role, label, titleId, }: HoverCardComponentProps) => jsx.JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface WrapperProps {
|
|
3
|
+
href?: string;
|
|
4
|
+
isSelected?: boolean;
|
|
5
|
+
isInteractive?: boolean;
|
|
6
|
+
withoutBackground?: boolean;
|
|
7
|
+
isHovered?: boolean;
|
|
8
|
+
truncateInline?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const WrapperAnchor: import("@emotion/styled").StyledComponent<{
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any> | undefined;
|
|
13
|
+
} & WrapperProps, import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
|
|
14
|
+
export declare const WrapperSpan: import("@emotion/styled").StyledComponent<{
|
|
15
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
+
as?: import("react").ElementType<any> | undefined;
|
|
17
|
+
} & WrapperProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
export interface WrapperProps extends React.ComponentProps<any> {
|
|
3
7
|
href?: string;
|
|
4
8
|
isSelected?: boolean;
|
|
5
9
|
isInteractive?: boolean;
|
|
@@ -7,11 +11,5 @@ export interface WrapperProps {
|
|
|
7
11
|
isHovered?: boolean;
|
|
8
12
|
truncateInline?: boolean;
|
|
9
13
|
}
|
|
10
|
-
export declare const
|
|
11
|
-
|
|
12
|
-
as?: import("react").ElementType<any> | undefined;
|
|
13
|
-
} & WrapperProps, import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
|
|
14
|
-
export declare const WrapperSpan: import("@emotion/styled").StyledComponent<{
|
|
15
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
-
as?: import("react").ElementType<any> | undefined;
|
|
17
|
-
} & WrapperProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
14
|
+
export declare const WrapperSpan: React.ForwardRefExoticComponent<Pick<WrapperProps, keyof WrapperProps> & React.RefAttributes<HTMLSpanElement>>;
|
|
15
|
+
export declare const WrapperAnchor: React.ForwardRefExoticComponent<Pick<WrapperProps, keyof WrapperProps> & React.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const Icon: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: React.ElementType<any> | undefined;
|
|
5
|
+
}, React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
6
|
+
export declare const AKIconWrapper: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: React.ElementType<any> | undefined;
|
|
9
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
10
|
+
export declare const Shimmer: ({ testId }: {
|
|
11
|
+
testId: string;
|
|
12
|
+
}) => JSX.Element;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const Icon: import("@
|
|
3
|
-
|
|
4
|
-
as?: React.ElementType<any> | undefined;
|
|
5
|
-
}, React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
6
|
-
export declare const AKIconWrapper: import("@emotion/styled").StyledComponent<{
|
|
7
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
-
as?: React.ElementType<any> | undefined;
|
|
9
|
-
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
2
|
+
export declare const Icon: React.ComponentType<React.ClassAttributes<HTMLImageElement> & React.ImgHTMLAttributes<HTMLImageElement> & import("@compiled/react").StyledProps>;
|
|
3
|
+
export declare const AKIconWrapper: React.ComponentType<React.ClassAttributes<HTMLSpanElement> & React.HTMLAttributes<HTMLSpanElement> & import("@compiled/react").StyledProps>;
|
|
10
4
|
export declare const Shimmer: ({ testId }: {
|
|
11
5
|
testId: string;
|
|
12
6
|
}) => JSX.Element;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const IconObjectOverrides = "\n & > span {\n height: 16px;\n width: 16px;\n position: absolute;\n top: 3px;\n left: 0;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
3
|
+
export declare const IconOverrides = "\n & > * > span {\n height: 16px;\n width: 16px;\n position: absolute;\n left: 0;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
4
|
+
export declare const IconWrapper: import("@emotion/styled").StyledComponent<{
|
|
5
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
+
as?: import("react").ElementType<any> | undefined;
|
|
7
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
8
|
+
export declare const EmojiWrapper: import("@emotion/styled").StyledComponent<{
|
|
9
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
+
as?: import("react").ElementType<any> | undefined;
|
|
11
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
12
|
+
export declare const IconTitleWrapper: import("@emotion/styled").StyledComponent<{
|
|
13
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
+
as?: import("react").ElementType<any> | undefined;
|
|
15
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
16
|
+
export declare const LozengeWrapper: import("@emotion/styled").StyledComponent<{
|
|
17
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
+
as?: import("react").ElementType<any> | undefined;
|
|
19
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
20
|
+
export declare const RightIconPositionWrapper: import("@emotion/styled").StyledComponent<{
|
|
21
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
22
|
+
as?: import("react").ElementType<any> | undefined;
|
|
23
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
24
|
+
export declare const IconPositionWrapper: import("@emotion/styled").StyledComponent<{
|
|
25
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
26
|
+
as?: import("react").ElementType<any> | undefined;
|
|
27
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
28
|
+
export declare const IconEmptyWrapper: import("@emotion/styled").StyledComponent<{
|
|
29
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
30
|
+
as?: import("react").ElementType<any> | undefined;
|
|
31
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
32
|
+
export declare const TitleWrapperClassName = "smart-link-title-wrapper";
|
|
33
|
+
export declare const TitleWrapper: import("@emotion/styled").StyledComponent<{
|
|
34
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
35
|
+
as?: import("react").ElementType<any> | undefined;
|
|
36
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -1,36 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export declare const
|
|
9
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
-
as?: import("react").ElementType<any> | undefined;
|
|
11
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
12
|
-
export declare const IconTitleWrapper: import("@emotion/styled").StyledComponent<{
|
|
13
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
-
as?: import("react").ElementType<any> | undefined;
|
|
15
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
16
|
-
export declare const LozengeWrapper: import("@emotion/styled").StyledComponent<{
|
|
17
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
-
as?: import("react").ElementType<any> | undefined;
|
|
19
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
20
|
-
export declare const RightIconPositionWrapper: import("@emotion/styled").StyledComponent<{
|
|
21
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
22
|
-
as?: import("react").ElementType<any> | undefined;
|
|
23
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
24
|
-
export declare const IconPositionWrapper: import("@emotion/styled").StyledComponent<{
|
|
25
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
26
|
-
as?: import("react").ElementType<any> | undefined;
|
|
27
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
28
|
-
export declare const IconEmptyWrapper: import("@emotion/styled").StyledComponent<{
|
|
29
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
30
|
-
as?: import("react").ElementType<any> | undefined;
|
|
31
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
2
|
+
export declare const IconWrapper: import("react").ComponentType<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & import("@compiled/react").StyledProps>;
|
|
3
|
+
export declare const EmojiWrapper: import("react").ComponentType<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & import("@compiled/react").StyledProps>;
|
|
4
|
+
export declare const IconTitleWrapper: import("react").ComponentType<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & import("@compiled/react").StyledProps>;
|
|
5
|
+
export declare const LozengeWrapper: import("react").ComponentType<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & import("@compiled/react").StyledProps>;
|
|
6
|
+
export declare const RightIconPositionWrapper: import("react").ComponentType<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & import("@compiled/react").StyledProps>;
|
|
7
|
+
export declare const IconPositionWrapper: import("react").ComponentType<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & import("@compiled/react").StyledProps>;
|
|
8
|
+
export declare const IconEmptyWrapper: import("react").ComponentType<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & import("@compiled/react").StyledProps>;
|
|
32
9
|
export declare const TitleWrapperClassName = "smart-link-title-wrapper";
|
|
33
|
-
export declare const TitleWrapper: import("@
|
|
34
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
35
|
-
as?: import("react").ElementType<any> | undefined;
|
|
36
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
10
|
+
export declare const TitleWrapper: import("react").ComponentType<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & import("@compiled/react").StyledProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const SpinnerWrapper: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
} & import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
6
|
+
children?: import("react").ReactNode;
|
|
7
|
+
} & {
|
|
8
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
+
}, {}, {}>;
|
|
@@ -1,9 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const SpinnerWrapper: import("@
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
} & import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
6
|
-
children?: import("react").ReactNode;
|
|
7
|
-
} & {
|
|
8
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
-
}, {}, {}>;
|
|
2
|
+
export declare const SpinnerWrapper: import("react").ComponentType<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & import("@compiled/react").StyledProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const IconStyledButton: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
6
|
+
export declare const NoLinkAppearance: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any> | undefined;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
10
|
+
export declare const LinkAppearance: import("@emotion/styled").StyledComponent<{
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any> | undefined;
|
|
13
|
+
}, import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
|
|
@@ -1,13 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const IconStyledButton: import("@
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
6
|
-
export declare const NoLinkAppearance: import("@emotion/styled").StyledComponent<{
|
|
7
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
-
as?: import("react").ElementType<any> | undefined;
|
|
9
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
10
|
-
export declare const LinkAppearance: import("@emotion/styled").StyledComponent<{
|
|
11
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
-
as?: import("react").ElementType<any> | undefined;
|
|
13
|
-
}, import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
|
|
2
|
+
export declare const IconStyledButton: import("react").ComponentType<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & import("@compiled/react").StyledProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
2
|
import { type HoverCardComponentProps } from '../types';
|
|
3
3
|
export declare const HOVER_CARD_SOURCE = "smartLinkPreviewHoverCard";
|
|
4
|
-
export declare const HoverCardComponent: ({ children, url, id, canOpen, closeOnChildClick, actionOptions, allowEventPropagation, zIndex, noFadeDelay, hoverPreviewOptions, role, label, titleId }: HoverCardComponentProps) => jsx.JSX.Element;
|
|
4
|
+
export declare const HoverCardComponent: ({ children, url, id, canOpen, closeOnChildClick, actionOptions, allowEventPropagation, zIndex, noFadeDelay, hoverPreviewOptions, role, label, titleId, }: HoverCardComponentProps) => jsx.JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface WrapperProps {
|
|
3
|
+
href?: string;
|
|
4
|
+
isSelected?: boolean;
|
|
5
|
+
isInteractive?: boolean;
|
|
6
|
+
withoutBackground?: boolean;
|
|
7
|
+
isHovered?: boolean;
|
|
8
|
+
truncateInline?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const WrapperAnchor: import("@emotion/styled").StyledComponent<{
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any> | undefined;
|
|
13
|
+
} & WrapperProps, import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
|
|
14
|
+
export declare const WrapperSpan: import("@emotion/styled").StyledComponent<{
|
|
15
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
+
as?: import("react").ElementType<any> | undefined;
|
|
17
|
+
} & WrapperProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|