@atlaskit/rovo-agent-components 2.0.1 → 2.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 +8 -0
- package/dist/cjs/common/ui/chat-pill/index.compiled.css +25 -0
- package/dist/cjs/common/ui/chat-pill/index.js +51 -79
- package/dist/cjs/common/ui/link-icon-button/index.compiled.css +1 -0
- package/dist/cjs/common/ui/link-icon-button/index.js +16 -9
- package/dist/cjs/common/ui/star-icon-button/index.compiled.css +8 -0
- package/dist/cjs/common/ui/star-icon-button/index.js +15 -15
- package/dist/cjs/ui/agent-avatar/generated-avatars/index.compiled.css +6 -0
- package/dist/cjs/ui/agent-avatar/generated-avatars/index.js +24 -30
- package/dist/cjs/ui/agent-avatar/index.compiled.css +9 -0
- package/dist/cjs/ui/agent-avatar/index.js +25 -37
- package/dist/cjs/ui/agent-dropdown-menu/index.compiled.css +10 -0
- package/dist/cjs/ui/agent-dropdown-menu/index.js +33 -43
- package/dist/cjs/ui/agent-profile-info/agent-star-count/index.compiled.css +5 -0
- package/dist/cjs/ui/agent-profile-info/agent-star-count/index.js +15 -13
- package/dist/cjs/ui/agent-profile-info/index.compiled.css +11 -0
- package/dist/cjs/ui/agent-profile-info/index.js +38 -49
- package/dist/es2019/common/ui/chat-pill/index.compiled.css +25 -0
- package/dist/es2019/common/ui/chat-pill/index.js +41 -72
- package/dist/es2019/common/ui/link-icon-button/index.compiled.css +1 -0
- package/dist/es2019/common/ui/link-icon-button/index.js +10 -6
- package/dist/es2019/common/ui/star-icon-button/index.compiled.css +8 -0
- package/dist/es2019/common/ui/star-icon-button/index.js +12 -12
- package/dist/es2019/ui/agent-avatar/generated-avatars/index.compiled.css +6 -0
- package/dist/es2019/ui/agent-avatar/generated-avatars/index.js +14 -20
- package/dist/es2019/ui/agent-avatar/index.compiled.css +9 -0
- package/dist/es2019/ui/agent-avatar/index.js +18 -34
- package/dist/es2019/ui/agent-dropdown-menu/index.compiled.css +10 -0
- package/dist/es2019/ui/agent-dropdown-menu/index.js +18 -28
- package/dist/es2019/ui/agent-profile-info/agent-star-count/index.compiled.css +5 -0
- package/dist/es2019/ui/agent-profile-info/agent-star-count/index.js +9 -10
- package/dist/es2019/ui/agent-profile-info/index.compiled.css +11 -0
- package/dist/es2019/ui/agent-profile-info/index.js +19 -33
- package/dist/esm/common/ui/chat-pill/index.compiled.css +25 -0
- package/dist/esm/common/ui/chat-pill/index.js +41 -72
- package/dist/esm/common/ui/link-icon-button/index.compiled.css +1 -0
- package/dist/esm/common/ui/link-icon-button/index.js +10 -6
- package/dist/esm/common/ui/star-icon-button/index.compiled.css +8 -0
- package/dist/esm/common/ui/star-icon-button/index.js +12 -12
- package/dist/esm/ui/agent-avatar/generated-avatars/index.compiled.css +6 -0
- package/dist/esm/ui/agent-avatar/generated-avatars/index.js +14 -20
- package/dist/esm/ui/agent-avatar/index.compiled.css +9 -0
- package/dist/esm/ui/agent-avatar/index.js +18 -34
- package/dist/esm/ui/agent-dropdown-menu/index.compiled.css +10 -0
- package/dist/esm/ui/agent-dropdown-menu/index.js +18 -28
- package/dist/esm/ui/agent-profile-info/agent-star-count/index.compiled.css +5 -0
- package/dist/esm/ui/agent-profile-info/agent-star-count/index.js +9 -10
- package/dist/esm/ui/agent-profile-info/index.compiled.css +11 -0
- package/dist/esm/ui/agent-profile-info/index.js +19 -33
- package/dist/types/common/ui/chat-pill/index.d.ts +6 -6
- package/dist/types/common/ui/link-icon-button/index.d.ts +7 -2
- package/dist/types/common/ui/star-icon-button/index.d.ts +6 -2
- package/dist/types/ui/agent-avatar/generated-avatars/index.d.ts +3 -3
- package/dist/types/ui/agent-avatar/index.d.ts +2 -2
- package/dist/types/ui/agent-dropdown-menu/index.d.ts +3 -3
- package/dist/types/ui/agent-profile-info/agent-star-count/index.d.ts +2 -2
- package/dist/types/ui/agent-profile-info/index.d.ts +3 -3
- package/dist/types-ts4.5/common/ui/chat-pill/index.d.ts +6 -6
- package/dist/types-ts4.5/common/ui/link-icon-button/index.d.ts +7 -2
- package/dist/types-ts4.5/common/ui/star-icon-button/index.d.ts +6 -2
- package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/agent-avatar/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/agent-dropdown-menu/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/agent-profile-info/agent-star-count/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/agent-profile-info/index.d.ts +3 -3
- package/package.json +7 -5
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -6,63 +7,52 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
7
|
value: true
|
|
7
8
|
});
|
|
8
9
|
exports.ChatToAgentButton = exports.AgentDropdownMenu = void 0;
|
|
10
|
+
require("./index.compiled.css");
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var React = _react;
|
|
13
|
+
var _runtime = require("@compiled/react/runtime");
|
|
9
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
15
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
16
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
12
17
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
18
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
14
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
15
19
|
var _reactIntlNext = require("react-intl-next");
|
|
16
20
|
var _new = _interopRequireWildcard(require("@atlaskit/button/new"));
|
|
17
21
|
var _dropdownMenu = _interopRequireWildcard(require("@atlaskit/dropdown-menu"));
|
|
18
22
|
var _showMoreHorizontalMore = _interopRequireDefault(require("@atlaskit/icon/core/migration/show-more-horizontal--more"));
|
|
19
23
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
|
-
var
|
|
24
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
21
25
|
var _chatIcon = require("../../common/ui/chat-icon");
|
|
22
26
|
var _messages = _interopRequireDefault(require("./messages"));
|
|
23
27
|
var _excluded = ["triggerRef"];
|
|
24
28
|
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); }
|
|
25
29
|
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; }
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
fontWeight: 'font.weight.medium'
|
|
34
|
-
});
|
|
35
|
-
var chatPillButtonInlineStyles = (0, _primitives.xcss)({
|
|
36
|
-
paddingInline: 'space.025'
|
|
37
|
-
});
|
|
38
|
-
var chatPillTextStyles = (0, _primitives.xcss)({
|
|
39
|
-
wordBreak: 'break-word',
|
|
40
|
-
textAlign: 'left',
|
|
41
|
-
whiteSpace: 'pre-wrap'
|
|
42
|
-
});
|
|
43
|
-
var chatPillIconWrapper = (0, _primitives.xcss)({
|
|
44
|
-
minWidth: '20px',
|
|
45
|
-
height: '20px'
|
|
46
|
-
});
|
|
30
|
+
var styles = {
|
|
31
|
+
chatToAgentButtonContainer: "_1bsb1osq",
|
|
32
|
+
chatToAgentButtonWrapper: "_1e0c1txw _1bah1h6o _k48p1wq8",
|
|
33
|
+
chatPillButtonInline: "_18zrv77o",
|
|
34
|
+
chatPillText: "_1nmz1hna _y3gn1e5h _o5721jtm",
|
|
35
|
+
chatPillIconWrapper: "_1ul9gktf _4t3igktf"
|
|
36
|
+
};
|
|
47
37
|
var ChatToAgentButton = exports.ChatToAgentButton = function ChatToAgentButton(_ref) {
|
|
48
38
|
var onClick = _ref.onClick;
|
|
49
39
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
50
40
|
formatMessage = _useIntl.formatMessage;
|
|
51
|
-
return /*#__PURE__*/
|
|
52
|
-
xcss: chatToAgentButtonContainer
|
|
53
|
-
}, /*#__PURE__*/
|
|
41
|
+
return /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
42
|
+
xcss: styles.chatToAgentButtonContainer
|
|
43
|
+
}, /*#__PURE__*/React.createElement(_new.default, {
|
|
54
44
|
testId: "view-agent-modal-chat-to-agent-button",
|
|
55
45
|
shouldFitContainer: true,
|
|
56
46
|
onClick: onClick
|
|
57
|
-
}, /*#__PURE__*/
|
|
58
|
-
xcss: chatToAgentButtonWrapper
|
|
59
|
-
}, /*#__PURE__*/
|
|
47
|
+
}, /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
48
|
+
xcss: styles.chatToAgentButtonWrapper
|
|
49
|
+
}, /*#__PURE__*/React.createElement(_compiled.Inline, {
|
|
60
50
|
space: "space.050",
|
|
61
|
-
xcss:
|
|
62
|
-
}, /*#__PURE__*/
|
|
63
|
-
xcss: chatPillIconWrapper
|
|
64
|
-
}, /*#__PURE__*/
|
|
65
|
-
xcss:
|
|
51
|
+
xcss: styles.chatPillButtonInline
|
|
52
|
+
}, /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
53
|
+
xcss: styles.chatPillIconWrapper
|
|
54
|
+
}, /*#__PURE__*/React.createElement(_chatIcon.ChatPillIcon, null)), /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
55
|
+
xcss: styles.chatPillText
|
|
66
56
|
}, formatMessage(_messages.default.chatToAgentButton))))));
|
|
67
57
|
};
|
|
68
58
|
var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
|
|
@@ -158,22 +148,22 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
|
|
|
158
148
|
if (!(permissions !== null && permissions !== void 0 && permissions.isEditEnabled) && !(permissions !== null && permissions !== void 0 && permissions.isDeleteEnabled)) {
|
|
159
149
|
return null;
|
|
160
150
|
}
|
|
161
|
-
return /*#__PURE__*/
|
|
151
|
+
return /*#__PURE__*/React.createElement(_dropdownMenu.DropdownItemGroup, {
|
|
162
152
|
hasSeparator: true
|
|
163
|
-
}, permissions.isEditEnabled && /*#__PURE__*/
|
|
153
|
+
}, permissions.isEditEnabled && /*#__PURE__*/React.createElement(_dropdownMenu.DropdownItem, {
|
|
164
154
|
onClick: onEditAgent
|
|
165
|
-
}, formatMessage(_messages.default.editAgent)), permissions.isDeleteEnabled && /*#__PURE__*/
|
|
155
|
+
}, formatMessage(_messages.default.editAgent)), permissions.isDeleteEnabled && /*#__PURE__*/React.createElement(_dropdownMenu.DropdownItem, {
|
|
166
156
|
onClick: onDeleteAgent
|
|
167
157
|
}, formatMessage(_messages.default.deleteAgent)));
|
|
168
158
|
};
|
|
169
|
-
return /*#__PURE__*/
|
|
159
|
+
return /*#__PURE__*/React.createElement(_dropdownMenu.default, {
|
|
170
160
|
isLoading: isLoading,
|
|
171
161
|
isOpen: isOpen,
|
|
172
162
|
testId: dropdownMenuTestId,
|
|
173
163
|
trigger: function trigger(_ref4) {
|
|
174
164
|
var triggerRef = _ref4.triggerRef,
|
|
175
165
|
props = (0, _objectWithoutProperties2.default)(_ref4, _excluded);
|
|
176
|
-
return /*#__PURE__*/
|
|
166
|
+
return /*#__PURE__*/React.createElement(_new.IconButton, (0, _extends2.default)({}, props, {
|
|
177
167
|
icon: _showMoreHorizontalMore.default,
|
|
178
168
|
label: formatMessage(_messages.default.moreActionsLabel),
|
|
179
169
|
ref: triggerRef,
|
|
@@ -197,13 +187,13 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
|
|
|
197
187
|
setHasBeenCopied(false);
|
|
198
188
|
}
|
|
199
189
|
}
|
|
200
|
-
}, /*#__PURE__*/
|
|
190
|
+
}, /*#__PURE__*/React.createElement(_dropdownMenu.DropdownItemGroup, null, showViewAgentOption && /*#__PURE__*/React.createElement(_dropdownMenu.DropdownItem, {
|
|
201
191
|
onClick: onViewAgentClick
|
|
202
|
-
}, formatMessage(_messages.default.viewAgent)), doesAgentHaveIdentityAccountId && onViewAgentFullProfileClick && /*#__PURE__*/
|
|
192
|
+
}, formatMessage(_messages.default.viewAgent)), doesAgentHaveIdentityAccountId && onViewAgentFullProfileClick && /*#__PURE__*/React.createElement(_dropdownMenu.DropdownItem, {
|
|
203
193
|
onClick: onViewAgentFullProfileClick
|
|
204
|
-
}, formatMessage(_messages.default.viewAgentFullProfile)), !isForgeAgent && /*#__PURE__*/
|
|
194
|
+
}, formatMessage(_messages.default.viewAgentFullProfile)), !isForgeAgent && /*#__PURE__*/React.createElement(_dropdownMenu.DropdownItem, {
|
|
205
195
|
onClick: onDuplicateAgent
|
|
206
|
-
}, isAutodevTemplateAgent && (0, _platformFeatureFlags.fg)('rovo_chat_add_template_tab_to_modal') ? formatMessage(_messages.default.useTemplateButton) : formatMessage(_messages.default.duplicateAgent)), /*#__PURE__*/
|
|
196
|
+
}, isAutodevTemplateAgent && (0, _platformFeatureFlags.fg)('rovo_chat_add_template_tab_to_modal') ? formatMessage(_messages.default.useTemplateButton) : formatMessage(_messages.default.duplicateAgent)), /*#__PURE__*/React.createElement(_dropdownMenu.DropdownItem, {
|
|
207
197
|
onClick: function onClick(e) {
|
|
208
198
|
e.stopPropagation();
|
|
209
199
|
setHasBeenCopied(true);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
._11c81vlj{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
3
|
+
._1e0c1txw{display:flex}
|
|
4
|
+
._4cvr1h6o{align-items:center}
|
|
5
|
+
._bozgv77o{padding-inline-start:var(--ds-space-025,2px)}
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
+
/* index.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.AgentStarCount = void 0;
|
|
8
|
-
|
|
10
|
+
require("./index.compiled.css");
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _runtime = require("@compiled/react/runtime");
|
|
9
13
|
var _reactIntlNext = require("react-intl-next");
|
|
10
14
|
var _starUnstarredStar = _interopRequireDefault(require("@atlaskit/icon/utility/migration/star-unstarred--star"));
|
|
11
|
-
var
|
|
15
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
12
16
|
var _skeleton = _interopRequireDefault(require("@atlaskit/skeleton"));
|
|
13
17
|
var _messages = require("./messages");
|
|
14
18
|
var _utils = require("./utils");
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
paddingInlineStart: 'space.025'
|
|
21
|
-
});
|
|
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; }
|
|
21
|
+
var styles = {
|
|
22
|
+
count: "_11c81vlj _zulp1b66 _1e0c1txw _4cvr1h6o _bozgv77o"
|
|
23
|
+
};
|
|
22
24
|
var AgentStarCount = exports.AgentStarCount = function AgentStarCount(_ref) {
|
|
23
25
|
var starCount = _ref.starCount,
|
|
24
26
|
isLoading = _ref.isLoading;
|
|
@@ -27,14 +29,14 @@ var AgentStarCount = exports.AgentStarCount = function AgentStarCount(_ref) {
|
|
|
27
29
|
if ((starCount === null || starCount === undefined) && !isLoading) {
|
|
28
30
|
return null;
|
|
29
31
|
}
|
|
30
|
-
return /*#__PURE__*/
|
|
31
|
-
xcss:
|
|
32
|
-
}, /*#__PURE__*/
|
|
32
|
+
return /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
33
|
+
xcss: styles.count
|
|
34
|
+
}, /*#__PURE__*/React.createElement(_starUnstarredStar.default, {
|
|
33
35
|
LEGACY_margin: "0 ".concat("var(--ds-space-negative-025, -2px)"),
|
|
34
36
|
color: "currentColor",
|
|
35
37
|
label: "",
|
|
36
38
|
LEGACY_size: "small"
|
|
37
|
-
}), isLoading ? /*#__PURE__*/
|
|
39
|
+
}), isLoading ? /*#__PURE__*/React.createElement(_skeleton.default, {
|
|
38
40
|
testId: "agent-profile-info-star-count-skeleton",
|
|
39
41
|
isShimmering: true,
|
|
40
42
|
height: 16,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
|
|
2
|
+
._zulp1b66{gap:var(--ds-space-050,4px)}._195gu2gc{margin-inline:var(--ds-space-100,8px)}
|
|
3
|
+
._19pkze3t{margin-top:var(--ds-space-0,0)}
|
|
4
|
+
._1bah1yb4{justify-content:space-between}
|
|
5
|
+
._1e0c116y{display:inline-flex}
|
|
6
|
+
._1e0c1txw{display:flex}
|
|
7
|
+
._4cvr1h6o{align-items:center}
|
|
8
|
+
._4cvr1y6m{align-items:flex-start}
|
|
9
|
+
._94n5v77o{bottom:var(--ds-space-025,2px)}
|
|
10
|
+
._kqswh2mm{position:relative}
|
|
11
|
+
._otyru2gc{margin-bottom:var(--ds-space-100,8px)}
|
|
@@ -1,33 +1,34 @@
|
|
|
1
|
+
/* index.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.AgentProfileInfo = exports.AgentProfileCreator = void 0;
|
|
8
|
-
|
|
10
|
+
require("./index.compiled.css");
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _runtime = require("@compiled/react/runtime");
|
|
9
13
|
var _reactIntlNext = require("react-intl-next");
|
|
10
14
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
11
15
|
var _logo = require("@atlaskit/logo");
|
|
12
|
-
var
|
|
16
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
13
17
|
var _skeleton = _interopRequireDefault(require("@atlaskit/skeleton"));
|
|
14
18
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
15
19
|
var _hiddenIcon = require("../../common/ui/hidden-icon");
|
|
16
20
|
var _starIconButton = require("../../common/ui/star-icon-button");
|
|
17
21
|
var _messages = require("./messages");
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
marginTop: 'space.0',
|
|
29
|
-
marginBottom: 'space.100'
|
|
30
|
-
});
|
|
22
|
+
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); }
|
|
23
|
+
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
|
+
var styles = {
|
|
25
|
+
clickableItem: "_zulp1b66 _1e0c1txw _4cvr1h6o",
|
|
26
|
+
name: "_1bah1yb4 _4cvr1y6m",
|
|
27
|
+
description: "_19pkze3t _otyru2gc",
|
|
28
|
+
wrapper: "_otyru2gc",
|
|
29
|
+
tooltipWrapper: "_195gu2gc _1e0c116y _kqswh2mm _94n5v77o",
|
|
30
|
+
headingWrapper: "_kqswh2mm"
|
|
31
|
+
};
|
|
31
32
|
var AgentProfileCreator = exports.AgentProfileCreator = function AgentProfileCreator(_ref) {
|
|
32
33
|
var creator = _ref.creator,
|
|
33
34
|
onCreatorLinkClick = _ref.onCreatorLinkClick,
|
|
@@ -37,7 +38,7 @@ var AgentProfileCreator = exports.AgentProfileCreator = function AgentProfileCre
|
|
|
37
38
|
var getCreatorRender = function getCreatorRender() {
|
|
38
39
|
if (isLoading) {
|
|
39
40
|
return formatMessage(_messages.messages.agentCreatedBy, {
|
|
40
|
-
creatorNameWithLink: /*#__PURE__*/
|
|
41
|
+
creatorNameWithLink: /*#__PURE__*/React.createElement(_skeleton.default, {
|
|
41
42
|
testId: "agent-profile-creator-skeleton",
|
|
42
43
|
isShimmering: true,
|
|
43
44
|
height: 18,
|
|
@@ -51,18 +52,18 @@ var AgentProfileCreator = exports.AgentProfileCreator = function AgentProfileCre
|
|
|
51
52
|
}
|
|
52
53
|
if (creator.type === 'SYSTEM' || creator.type === 'OOTB') {
|
|
53
54
|
return formatMessage(_messages.messages.agentCreatedBy, {
|
|
54
|
-
creatorNameWithLink: /*#__PURE__*/
|
|
55
|
+
creatorNameWithLink: /*#__PURE__*/React.createElement(_compiled.Inline, {
|
|
55
56
|
alignBlock: "center",
|
|
56
57
|
testId: "atlassian-icon"
|
|
57
|
-
}, /*#__PURE__*/
|
|
58
|
+
}, /*#__PURE__*/React.createElement(_logo.AtlassianIcon, {
|
|
58
59
|
size: "small",
|
|
59
60
|
appearance: "brand"
|
|
60
|
-
}), /*#__PURE__*/
|
|
61
|
+
}), /*#__PURE__*/React.createElement(_compiled.Box, null, "Atlassian"))
|
|
61
62
|
});
|
|
62
63
|
}
|
|
63
64
|
if (creator.type === 'CUSTOMER') {
|
|
64
65
|
return formatMessage(_messages.messages.agentCreatedBy, {
|
|
65
|
-
creatorNameWithLink: /*#__PURE__*/
|
|
66
|
+
creatorNameWithLink: /*#__PURE__*/React.createElement("a", {
|
|
66
67
|
href: creator.profileLink,
|
|
67
68
|
onClick: function onClick() {
|
|
68
69
|
return onCreatorLinkClick();
|
|
@@ -79,25 +80,13 @@ var AgentProfileCreator = exports.AgentProfileCreator = function AgentProfileCre
|
|
|
79
80
|
return null;
|
|
80
81
|
};
|
|
81
82
|
var creatorRender = getCreatorRender();
|
|
82
|
-
return creatorRender ? /*#__PURE__*/
|
|
83
|
-
xcss:
|
|
84
|
-
}, /*#__PURE__*/
|
|
83
|
+
return creatorRender ? /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
84
|
+
xcss: styles.clickableItem
|
|
85
|
+
}, /*#__PURE__*/React.createElement(_logo.RovoIcon, {
|
|
85
86
|
appearance: "brand",
|
|
86
87
|
size: "small"
|
|
87
88
|
}), creatorRender) : null;
|
|
88
89
|
};
|
|
89
|
-
var wrapperStyles = (0, _primitives.xcss)({
|
|
90
|
-
marginBottom: 'space.100'
|
|
91
|
-
});
|
|
92
|
-
var tooltipWrapperStyles = (0, _primitives.xcss)({
|
|
93
|
-
display: 'inline-flex',
|
|
94
|
-
marginInline: 'space.100',
|
|
95
|
-
position: 'relative',
|
|
96
|
-
bottom: 'space.025'
|
|
97
|
-
});
|
|
98
|
-
var headingWrapperStyles = (0, _primitives.xcss)({
|
|
99
|
-
position: 'relative'
|
|
100
|
-
});
|
|
101
90
|
var AgentProfileInfo = exports.AgentProfileInfo = function AgentProfileInfo(_ref2) {
|
|
102
91
|
var agentName = _ref2.agentName,
|
|
103
92
|
agentDescription = _ref2.agentDescription,
|
|
@@ -108,30 +97,30 @@ var AgentProfileInfo = exports.AgentProfileInfo = function AgentProfileInfo(_ref
|
|
|
108
97
|
onStarToggle = _ref2.onStarToggle;
|
|
109
98
|
var _useIntl2 = (0, _reactIntlNext.useIntl)(),
|
|
110
99
|
formatMessage = _useIntl2.formatMessage;
|
|
111
|
-
return /*#__PURE__*/
|
|
100
|
+
return /*#__PURE__*/React.createElement(_compiled.Stack, {
|
|
112
101
|
space: "space.100",
|
|
113
|
-
xcss:
|
|
114
|
-
}, /*#__PURE__*/
|
|
115
|
-
xcss:
|
|
102
|
+
xcss: styles.wrapper
|
|
103
|
+
}, /*#__PURE__*/React.createElement(_compiled.Inline, {
|
|
104
|
+
xcss: styles.name,
|
|
116
105
|
space: "space.100",
|
|
117
106
|
alignBlock: "center"
|
|
118
|
-
}, /*#__PURE__*/
|
|
119
|
-
xcss:
|
|
120
|
-
}, /*#__PURE__*/
|
|
107
|
+
}, /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
108
|
+
xcss: styles.headingWrapper
|
|
109
|
+
}, /*#__PURE__*/React.createElement(_heading.default, {
|
|
121
110
|
as: "span",
|
|
122
111
|
size: "xlarge"
|
|
123
|
-
}, agentName), isHidden && /*#__PURE__*/
|
|
124
|
-
xcss:
|
|
125
|
-
}, /*#__PURE__*/
|
|
112
|
+
}, agentName), isHidden && /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
113
|
+
xcss: styles.tooltipWrapper
|
|
114
|
+
}, /*#__PURE__*/React.createElement(_tooltip.default, {
|
|
126
115
|
content: formatMessage(_messages.messages.hiddenTooltip),
|
|
127
116
|
position: "top"
|
|
128
|
-
}, /*#__PURE__*/
|
|
117
|
+
}, /*#__PURE__*/React.createElement(_hiddenIcon.HiddenIcon, {
|
|
129
118
|
label: formatMessage(_messages.messages.hiddenIcon)
|
|
130
|
-
})))), /*#__PURE__*/
|
|
119
|
+
})))), /*#__PURE__*/React.createElement(_starIconButton.StarIconButton, {
|
|
131
120
|
isStarred: isStarred,
|
|
132
121
|
handleToggle: onStarToggle
|
|
133
|
-
})), creatorRender, !!agentDescription && /*#__PURE__*/
|
|
134
|
-
xcss:
|
|
122
|
+
})), creatorRender, !!agentDescription && /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
123
|
+
xcss: styles.description,
|
|
135
124
|
as: "p"
|
|
136
125
|
}, agentDescription), starCountRender);
|
|
137
126
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
._11c81oud{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._2rkopd34{border-radius:var(--ds-border-radius-200,8px)}
|
|
3
|
+
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
4
|
+
._18zrv77o{padding-inline:var(--ds-space-025,2px)}
|
|
5
|
+
._1dqonqa1{border-style:solid}
|
|
6
|
+
._1h6dmuej{border-color:var(--ds-border,#091e4224)}
|
|
7
|
+
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
8
|
+
._1bsb1osq{width:100%}
|
|
9
|
+
._1bto1l2s{text-overflow:ellipsis}
|
|
10
|
+
._1nmz1hna{word-break:break-word}
|
|
11
|
+
._1o0zgqwt{border-bottom-right-radius:var(--ds-border-radius-050,2px)}
|
|
12
|
+
._1o9zkb7n{flex-shrink:1}
|
|
13
|
+
._bfhk1j28{background-color:transparent}
|
|
14
|
+
._bfhkm7j4{background-color:var(--ds-background-neutral,#091e420f)}
|
|
15
|
+
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
16
|
+
._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
|
|
17
|
+
._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
|
|
18
|
+
._o5721jtm{white-space:pre-wrap}
|
|
19
|
+
._o5721q9c{white-space:nowrap}
|
|
20
|
+
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
21
|
+
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
22
|
+
._vwz47vkz{line-height:1pc}
|
|
23
|
+
._y3gn1e5h{text-align:left}
|
|
24
|
+
._irr315ej:hover{background-color:var(--ds-background-neutral-hovered,#091e4224)}
|
|
25
|
+
._1di6ip91:active{background-color:var(--ds-background-neutral-pressed,#091e424f)}
|
|
@@ -1,63 +1,26 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import
|
|
3
|
+
import "./index.compiled.css";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
+
import { forwardRef } from 'react';
|
|
3
7
|
import { useIntl } from 'react-intl-next';
|
|
8
|
+
import { cx } from '@atlaskit/css';
|
|
4
9
|
import AgentIcon from '@atlaskit/icon/core/ai-agent';
|
|
5
|
-
import { Box, Inline, Pressable
|
|
10
|
+
import { Box, Inline, Pressable } from '@atlaskit/primitives/compiled';
|
|
6
11
|
import { ChatPillIcon } from '../chat-icon';
|
|
7
12
|
import messages from './messages';
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
whiteSpace: 'nowrap',
|
|
20
|
-
flexShrink: 1,
|
|
21
|
-
background: 'none',
|
|
22
|
-
width: '100%',
|
|
23
|
-
':hover': {
|
|
24
|
-
backgroundColor: 'color.background.neutral.hovered'
|
|
25
|
-
},
|
|
26
|
-
':active': {
|
|
27
|
-
backgroundColor: 'color.background.neutral.pressed'
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
const buttonStyles = xcss({
|
|
31
|
-
color: 'color.text',
|
|
32
|
-
padding: 'space.100',
|
|
33
|
-
borderRadius: 'border.radius.200',
|
|
34
|
-
borderBottomRightRadius: "var(--ds-border-radius-050, 2px)",
|
|
35
|
-
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
36
|
-
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
37
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
38
|
-
lineHeight: '16px',
|
|
39
|
-
textOverflow: 'ellipsis',
|
|
40
|
-
whiteSpace: 'nowrap',
|
|
41
|
-
flexShrink: 1,
|
|
42
|
-
backgroundColor: 'color.background.neutral',
|
|
43
|
-
':hover': {
|
|
44
|
-
backgroundColor: 'color.background.neutral.hovered'
|
|
45
|
-
},
|
|
46
|
-
':active': {
|
|
47
|
-
backgroundColor: 'color.background.neutral.pressed'
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
const buttonInlineStyles = xcss({
|
|
51
|
-
paddingInline: 'space.025'
|
|
52
|
-
});
|
|
53
|
-
const queryTextStyles = xcss({
|
|
54
|
-
wordBreak: 'break-word',
|
|
55
|
-
textAlign: 'left'
|
|
56
|
-
});
|
|
57
|
-
const whiteSpacePreWrapStyles = xcss({
|
|
58
|
-
whiteSpace: 'pre-wrap'
|
|
59
|
-
});
|
|
60
|
-
export const ChatPill = /*#__PURE__*/React.forwardRef(({
|
|
13
|
+
const stylesCompiled = {
|
|
14
|
+
pillLineHeight: "_vwz47vkz"
|
|
15
|
+
};
|
|
16
|
+
const styles = {
|
|
17
|
+
conversationStarterPill: "_2rkopd34 _11c81oud _189ee4h9 _1dqonqa1 _1h6dmuej _syaz1fxt _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc _1o0zgqwt _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _bfhk1j28 _1bsb1osq _irr315ej _1di6ip91",
|
|
18
|
+
button: "_2rkopd34 _11c81oud _syaz1fxt _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc _1o0zgqwt _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _bfhkm7j4 _irr315ej _1di6ip91",
|
|
19
|
+
buttonInline: "_18zrv77o",
|
|
20
|
+
queryText: "_1nmz1hna _y3gn1e5h",
|
|
21
|
+
whiteSpacePreWrap: "_o5721jtm"
|
|
22
|
+
};
|
|
23
|
+
export const ChatPill = /*#__PURE__*/forwardRef(({
|
|
61
24
|
children,
|
|
62
25
|
whiteSpacePreWrap = true,
|
|
63
26
|
renderIcon = true,
|
|
@@ -65,42 +28,48 @@ export const ChatPill = /*#__PURE__*/React.forwardRef(({
|
|
|
65
28
|
}, ref) => /*#__PURE__*/React.createElement(Pressable, _extends({
|
|
66
29
|
ref: ref
|
|
67
30
|
}, props, {
|
|
68
|
-
xcss:
|
|
69
|
-
}), /*#__PURE__*/React.createElement(
|
|
31
|
+
xcss: styles.button
|
|
32
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
33
|
+
className: ax([stylesCompiled.pillLineHeight])
|
|
34
|
+
}, /*#__PURE__*/React.createElement(Inline, {
|
|
70
35
|
space: "space.050",
|
|
71
|
-
xcss:
|
|
36
|
+
xcss: styles.buttonInline
|
|
72
37
|
}, renderIcon ? /*#__PURE__*/React.createElement(ChatPillIcon, null) : null, /*#__PURE__*/React.createElement(Box, {
|
|
73
|
-
xcss:
|
|
74
|
-
}, children))));
|
|
75
|
-
export const BrowseAgentsPill = /*#__PURE__*/
|
|
38
|
+
xcss: cx(styles.queryText, whiteSpacePreWrap && styles.whiteSpacePreWrap)
|
|
39
|
+
}, children)))));
|
|
40
|
+
export const BrowseAgentsPill = /*#__PURE__*/forwardRef((props, ref) => {
|
|
76
41
|
const {
|
|
77
42
|
formatMessage
|
|
78
43
|
} = useIntl();
|
|
79
44
|
return /*#__PURE__*/React.createElement(Pressable, _extends({
|
|
80
45
|
ref: ref
|
|
81
46
|
}, props, {
|
|
82
|
-
xcss:
|
|
83
|
-
}), /*#__PURE__*/React.createElement(
|
|
47
|
+
xcss: styles.button
|
|
48
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
49
|
+
className: ax([stylesCompiled.pillLineHeight])
|
|
50
|
+
}, /*#__PURE__*/React.createElement(Inline, {
|
|
84
51
|
space: "space.050",
|
|
85
|
-
xcss:
|
|
52
|
+
xcss: styles.buttonInline
|
|
86
53
|
}, /*#__PURE__*/React.createElement(AgentIcon, {
|
|
87
54
|
color: "currentColor",
|
|
88
55
|
label: ""
|
|
89
56
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
90
|
-
xcss:
|
|
91
|
-
}, formatMessage(messages.browseAgentsPillLabel))));
|
|
57
|
+
xcss: styles.queryText
|
|
58
|
+
}, formatMessage(messages.browseAgentsPillLabel)))));
|
|
92
59
|
});
|
|
93
|
-
export const ConversationStarterPill = /*#__PURE__*/
|
|
60
|
+
export const ConversationStarterPill = /*#__PURE__*/forwardRef(({
|
|
94
61
|
children,
|
|
95
62
|
whiteSpacePreWrap = true,
|
|
96
63
|
...props
|
|
97
64
|
}, ref) => /*#__PURE__*/React.createElement(Pressable, _extends({
|
|
98
65
|
ref: ref
|
|
99
66
|
}, props, {
|
|
100
|
-
xcss:
|
|
101
|
-
}), /*#__PURE__*/React.createElement(
|
|
67
|
+
xcss: styles.conversationStarterPill
|
|
68
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
69
|
+
className: ax([stylesCompiled.pillLineHeight])
|
|
70
|
+
}, /*#__PURE__*/React.createElement(Inline, {
|
|
102
71
|
space: "space.050",
|
|
103
|
-
xcss:
|
|
72
|
+
xcss: styles.buttonInline
|
|
104
73
|
}, /*#__PURE__*/React.createElement(ChatPillIcon, null), /*#__PURE__*/React.createElement(Box, {
|
|
105
|
-
xcss:
|
|
106
|
-
}, children))));
|
|
74
|
+
xcss: cx(styles.queryText, whiteSpacePreWrap && styles.whiteSpacePreWrap)
|
|
75
|
+
}, children)))));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._tzy4idpf{opacity:0}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import
|
|
3
|
+
import "./index.compiled.css";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
3
6
|
import { useIntl } from 'react-intl-next';
|
|
4
7
|
import { IconButton } from '@atlaskit/button/new';
|
|
8
|
+
import { cx } from '@atlaskit/css';
|
|
5
9
|
import LinkIcon from '@atlaskit/icon/core/link';
|
|
6
|
-
import { Box
|
|
10
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
7
11
|
import messages from './messages';
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
}
|
|
12
|
+
const styles = {
|
|
13
|
+
hidden: "_tzy4idpf"
|
|
14
|
+
};
|
|
11
15
|
export const LinkIconButton = ({
|
|
12
16
|
handleCopy,
|
|
13
17
|
visible = true
|
|
@@ -16,7 +20,7 @@ export const LinkIconButton = ({
|
|
|
16
20
|
formatMessage
|
|
17
21
|
} = useIntl();
|
|
18
22
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
19
|
-
xcss:
|
|
23
|
+
xcss: cx(!visible && styles.hidden)
|
|
20
24
|
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
21
25
|
type: "button",
|
|
22
26
|
onClick: handleCopy,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
._19bvze3t{padding-left:var(--ds-space-0,0)}
|
|
2
|
+
._1bsb1tcg{width:24px}
|
|
3
|
+
._4t3i1tcg{height:24px}
|
|
4
|
+
._bfhk1j28{background-color:transparent}
|
|
5
|
+
._ca0qze3t{padding-top:var(--ds-space-0,0)}
|
|
6
|
+
._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
|
|
7
|
+
._tzy4idpf{opacity:0}
|
|
8
|
+
._u5f3ze3t{padding-right:var(--ds-space-0,0)}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./index.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import { useState } from 'react';
|
|
2
6
|
import { useIntl } from 'react-intl-next';
|
|
7
|
+
import { cx } from '@atlaskit/css';
|
|
3
8
|
import StarIconMigration from '@atlaskit/icon/core/migration/star-starred--star-filled';
|
|
4
9
|
import StarUnstarredIconMigration from '@atlaskit/icon/core/migration/star-unstarred--star';
|
|
5
|
-
import { Pressable
|
|
10
|
+
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
6
11
|
import messages from './messages';
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
width: '24px'
|
|
12
|
-
});
|
|
13
|
-
const hiddenStyles = xcss({
|
|
14
|
-
opacity: 0
|
|
15
|
-
});
|
|
12
|
+
const styles = {
|
|
13
|
+
pressableStarIcon: "_bfhk1j28 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _4t3i1tcg _1bsb1tcg",
|
|
14
|
+
hidden: "_tzy4idpf"
|
|
15
|
+
};
|
|
16
16
|
export const StarIconButton = ({
|
|
17
17
|
isStarred,
|
|
18
18
|
handleToggle,
|
|
@@ -23,7 +23,7 @@ export const StarIconButton = ({
|
|
|
23
23
|
} = useIntl();
|
|
24
24
|
const [isHovered, setIsHovered] = useState(false);
|
|
25
25
|
return /*#__PURE__*/React.createElement(Pressable, {
|
|
26
|
-
xcss:
|
|
26
|
+
xcss: cx(styles.pressableStarIcon, !visible && styles.hidden),
|
|
27
27
|
onClick: handleToggle,
|
|
28
28
|
onMouseEnter: () => setIsHovered(true),
|
|
29
29
|
onMouseLeave: () => setIsHovered(false)
|