@atlaskit/rovo-agent-components 2.0.0 → 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.
Files changed (66) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/common/ui/chat-pill/index.compiled.css +25 -0
  3. package/dist/cjs/common/ui/chat-pill/index.js +51 -79
  4. package/dist/cjs/common/ui/link-icon-button/index.compiled.css +1 -0
  5. package/dist/cjs/common/ui/link-icon-button/index.js +16 -9
  6. package/dist/cjs/common/ui/star-icon-button/index.compiled.css +8 -0
  7. package/dist/cjs/common/ui/star-icon-button/index.js +15 -15
  8. package/dist/cjs/ui/agent-avatar/generated-avatars/index.compiled.css +6 -0
  9. package/dist/cjs/ui/agent-avatar/generated-avatars/index.js +24 -30
  10. package/dist/cjs/ui/agent-avatar/index.compiled.css +9 -0
  11. package/dist/cjs/ui/agent-avatar/index.js +25 -37
  12. package/dist/cjs/ui/agent-dropdown-menu/index.compiled.css +10 -0
  13. package/dist/cjs/ui/agent-dropdown-menu/index.js +33 -43
  14. package/dist/cjs/ui/agent-profile-info/agent-star-count/index.compiled.css +5 -0
  15. package/dist/cjs/ui/agent-profile-info/agent-star-count/index.js +15 -13
  16. package/dist/cjs/ui/agent-profile-info/index.compiled.css +11 -0
  17. package/dist/cjs/ui/agent-profile-info/index.js +38 -49
  18. package/dist/es2019/common/ui/chat-pill/index.compiled.css +25 -0
  19. package/dist/es2019/common/ui/chat-pill/index.js +41 -72
  20. package/dist/es2019/common/ui/link-icon-button/index.compiled.css +1 -0
  21. package/dist/es2019/common/ui/link-icon-button/index.js +10 -6
  22. package/dist/es2019/common/ui/star-icon-button/index.compiled.css +8 -0
  23. package/dist/es2019/common/ui/star-icon-button/index.js +12 -12
  24. package/dist/es2019/ui/agent-avatar/generated-avatars/index.compiled.css +6 -0
  25. package/dist/es2019/ui/agent-avatar/generated-avatars/index.js +14 -20
  26. package/dist/es2019/ui/agent-avatar/index.compiled.css +9 -0
  27. package/dist/es2019/ui/agent-avatar/index.js +18 -34
  28. package/dist/es2019/ui/agent-dropdown-menu/index.compiled.css +10 -0
  29. package/dist/es2019/ui/agent-dropdown-menu/index.js +18 -28
  30. package/dist/es2019/ui/agent-profile-info/agent-star-count/index.compiled.css +5 -0
  31. package/dist/es2019/ui/agent-profile-info/agent-star-count/index.js +9 -10
  32. package/dist/es2019/ui/agent-profile-info/index.compiled.css +11 -0
  33. package/dist/es2019/ui/agent-profile-info/index.js +19 -33
  34. package/dist/esm/common/ui/chat-pill/index.compiled.css +25 -0
  35. package/dist/esm/common/ui/chat-pill/index.js +41 -72
  36. package/dist/esm/common/ui/link-icon-button/index.compiled.css +1 -0
  37. package/dist/esm/common/ui/link-icon-button/index.js +10 -6
  38. package/dist/esm/common/ui/star-icon-button/index.compiled.css +8 -0
  39. package/dist/esm/common/ui/star-icon-button/index.js +12 -12
  40. package/dist/esm/ui/agent-avatar/generated-avatars/index.compiled.css +6 -0
  41. package/dist/esm/ui/agent-avatar/generated-avatars/index.js +14 -20
  42. package/dist/esm/ui/agent-avatar/index.compiled.css +9 -0
  43. package/dist/esm/ui/agent-avatar/index.js +18 -34
  44. package/dist/esm/ui/agent-dropdown-menu/index.compiled.css +10 -0
  45. package/dist/esm/ui/agent-dropdown-menu/index.js +18 -28
  46. package/dist/esm/ui/agent-profile-info/agent-star-count/index.compiled.css +5 -0
  47. package/dist/esm/ui/agent-profile-info/agent-star-count/index.js +9 -10
  48. package/dist/esm/ui/agent-profile-info/index.compiled.css +11 -0
  49. package/dist/esm/ui/agent-profile-info/index.js +19 -33
  50. package/dist/types/common/ui/chat-pill/index.d.ts +6 -6
  51. package/dist/types/common/ui/link-icon-button/index.d.ts +7 -2
  52. package/dist/types/common/ui/star-icon-button/index.d.ts +6 -2
  53. package/dist/types/ui/agent-avatar/generated-avatars/index.d.ts +3 -3
  54. package/dist/types/ui/agent-avatar/index.d.ts +2 -2
  55. package/dist/types/ui/agent-dropdown-menu/index.d.ts +3 -3
  56. package/dist/types/ui/agent-profile-info/agent-star-count/index.d.ts +2 -2
  57. package/dist/types/ui/agent-profile-info/index.d.ts +3 -3
  58. package/dist/types-ts4.5/common/ui/chat-pill/index.d.ts +6 -6
  59. package/dist/types-ts4.5/common/ui/link-icon-button/index.d.ts +7 -2
  60. package/dist/types-ts4.5/common/ui/star-icon-button/index.d.ts +6 -2
  61. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/index.d.ts +3 -3
  62. package/dist/types-ts4.5/ui/agent-avatar/index.d.ts +2 -2
  63. package/dist/types-ts4.5/ui/agent-dropdown-menu/index.d.ts +3 -3
  64. package/dist/types-ts4.5/ui/agent-profile-info/agent-star-count/index.d.ts +2 -2
  65. package/dist/types-ts4.5/ui/agent-profile-info/index.d.ts +3 -3
  66. package/package.json +9 -7
@@ -1,6 +1,16 @@
1
- import React, { lazy, Suspense } from 'react';
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 { lazy, Suspense } from 'react';
2
6
  import { AVATAR_SIZES } from '@atlaskit/avatar';
3
- import { Box, xcss } from '@atlaskit/primitives';
7
+ import { cx } from '@atlaskit/css';
8
+ import { Box } from '@atlaskit/primitives/compiled';
9
+ const styles = {
10
+ image: "_5ral1dfr _4t3i1osq _1bsb1osq _1e0c1txw _1bah1h6o _4cvr1h6o",
11
+ banner: "_1bsb1osq",
12
+ bannerFillSpace: "_1bsb1osq _4t3i1osq _5ral1dfr"
13
+ };
4
14
  const AutoDevAvatar = /*#__PURE__*/lazy(() => import( /* webpackChunkName: "@atlaskit-rovo-avatar-AutoDevAvatar"*/'./assets/auto-dev'));
5
15
  const AutoFixAvatar = /*#__PURE__*/lazy(() => import( /* webpackChunkName: "@atlaskit-rovo-avatar-AutoFixAvatar"*/'./assets/auto-fix'));
6
16
  const AutoReviewAvatar = /*#__PURE__*/lazy(() => import( /* webpackChunkName: "@atlaskit-rovo-avatar-AutoReviewAvatar"*/'./assets/auto-review'));
@@ -41,14 +51,6 @@ const blueColor = {
41
51
  const colorList = [yellowColor, purpleColor, greenColor, blueColor];
42
52
  const avatarList = [CustomerInsightAvatar, BacklogBuddyAvatar, DecisionDirectorAvatar, CommsCrafterAvatar, AutoDevAvatar, OkrOracleAvatar, CultureAvatar, SocialMediaScribeAvatar, TeamConnectionAvatar, HireWriterAvatar, OpsAgentAvatar, ResearchScoutAvatar, ReleaseNotesAvatar, MyUserManualAvatar, PitchPerfectorAvatar, AutoDevAvatar, AutoFixAvatar, AutoReviewAvatar, MarketingMessageMaestroAvatar, FeatureFlagAvatar, ProductRequirementAvatar];
43
53
  export const TOTAL_AVATAR_COMBINATIONS = avatarList.length * colorList.length;
44
- const imageStyles = xcss({
45
- objectFit: 'cover',
46
- height: '100%',
47
- width: '100%',
48
- display: 'flex',
49
- justifyContent: 'center',
50
- alignItems: 'center'
51
- });
52
54
  const outOfTheBoxAgentAvatar = {
53
55
  decision_director_agent: {
54
56
  getRender: size => /*#__PURE__*/React.createElement(DecisionDirectorAvatar, {
@@ -166,14 +168,6 @@ const getAvatarRender = ({
166
168
  color: blueColor
167
169
  };
168
170
  };
169
- const bannerStyles = xcss({
170
- width: '100%'
171
- });
172
- const bannerFillSpaceStyles = xcss({
173
- width: '100%',
174
- height: '100%',
175
- objectFit: 'cover'
176
- });
177
171
  export const AgentBanner = ({
178
172
  agentNamedId,
179
173
  agentId,
@@ -190,7 +184,7 @@ export const AgentBanner = ({
190
184
  size: 'medium'
191
185
  });
192
186
  return /*#__PURE__*/React.createElement(Box, {
193
- xcss: [bannerStyles, fillSpace ? bannerFillSpaceStyles : undefined],
187
+ xcss: cx(styles.banner, fillSpace ? styles.bannerFillSpace : undefined),
194
188
  style: {
195
189
  backgroundColor: color.primary,
196
190
  height: height ? `${height}px` : undefined
@@ -203,7 +197,7 @@ export const GeneratedAvatar = props => {
203
197
  color
204
198
  } = getAvatarRender(props);
205
199
  return /*#__PURE__*/React.createElement(Box, {
206
- xcss: imageStyles,
200
+ xcss: styles.image,
207
201
  style: {
208
202
  backgroundColor: color.primary
209
203
  }
@@ -0,0 +1,9 @@
1
+ ._1bah1h6o{justify-content:center}
2
+ ._1bsb1lk2{width:95%}
3
+ ._1bsb1osq{width:100%}
4
+ ._1e0c1txw{display:flex}
5
+ ._4cvr1h6o{align-items:center}
6
+ ._4t3i1lk2{height:95%}
7
+ ._4t3i1osq{height:100%}
8
+ ._5ral1dfr{object-fit:cover}
9
+ ._mkrz1k6g{clip-path:polygon(45% 1.33975%,46.5798% .60307%,48.26352% .15192%,50% 0,51.73648% .15192%,53.4202% .60307%,55% 1.33975%,89.64102% 21.33975%,91.06889% 22.33956%,92.30146% 23.57212%,93.30127% 25%,94.03794% 26.5798%,94.48909% 28.26352%,94.64102% 30%,94.64102% 70%,94.48909% 71.73648%,94.03794% 73.4202%,93.30127% 75%,92.30146% 76.42788%,91.06889% 77.66044%,89.64102% 78.66025%,55% 98.66025%,53.4202% 99.39693%,51.73648% 99.84808%,50% 100%,48.26352% 99.84808%,46.5798% 99.39693%,45% 98.66025%,10.35898% 78.66025%,8.93111% 77.66044%,7.69854% 76.42788%,6.69873% 75%,5.96206% 73.4202%,5.51091% 71.73648%,5.35898% 70%,5.35898% 30%,5.51091% 28.26352%,5.96206% 26.5798%,6.69873% 25%,7.69854% 23.57212%,8.93111% 22.33956%,10.35898% 21.33975%)}
@@ -1,34 +1,18 @@
1
- import React from 'react';
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";
2
5
  import { AVATAR_SIZES } from '@atlaskit/avatar';
3
- import { Box, xcss } from '@atlaskit/primitives';
6
+ import { Box } from '@atlaskit/primitives/compiled';
4
7
  import { GeneratedAvatar } from './generated-avatars';
5
-
6
- /**
7
- * This solution has been derived from this codepen: https://codepen.io/anyen-ltovn/pen/qBYYzea
8
- */
9
- const agentAvatarStyles = xcss({
10
- display: 'flex',
11
- justifyContent: 'center',
12
- alignItems: 'center',
13
- clipPath: `polygon(45% 1.33975%, 46.5798% 0.60307%, 48.26352% 0.15192%, 50% 0%, 51.73648% 0.15192%, 53.4202% 0.60307%, 55% 1.33975%, 89.64102% 21.33975%, 91.06889% 22.33956%, 92.30146% 23.57212%, 93.30127% 25%, 94.03794% 26.5798%, 94.48909% 28.26352%, 94.64102% 30%, 94.64102% 70%, 94.48909% 71.73648%, 94.03794% 73.4202%, 93.30127% 75%, 92.30146% 76.42788%, 91.06889% 77.66044%, 89.64102% 78.66025%, 55% 98.66025%, 53.4202% 99.39693%, 51.73648% 99.84808%, 50% 100%, 48.26352% 99.84808%, 46.5798% 99.39693%, 45% 98.66025%, 10.35898% 78.66025%, 8.93111% 77.66044%, 7.69854% 76.42788%, 6.69873% 75%, 5.96206% 73.4202%, 5.51091% 71.73648%, 5.35898% 70%, 5.35898% 30%, 5.51091% 28.26352%, 5.96206% 26.5798%, 6.69873% 25%, 7.69854% 23.57212%, 8.93111% 22.33956%, 10.35898% 21.33975%)`
14
- });
15
- const innerShapeStyles = xcss({
16
- height: '95%',
17
- width: '95%',
18
- clipPath: `polygon(45% 1.33975%, 46.5798% 0.60307%, 48.26352% 0.15192%, 50% 0%, 51.73648% 0.15192%, 53.4202% 0.60307%, 55% 1.33975%, 89.64102% 21.33975%, 91.06889% 22.33956%, 92.30146% 23.57212%, 93.30127% 25%, 94.03794% 26.5798%, 94.48909% 28.26352%, 94.64102% 30%, 94.64102% 70%, 94.48909% 71.73648%, 94.03794% 73.4202%, 93.30127% 75%, 92.30146% 76.42788%, 91.06889% 77.66044%, 89.64102% 78.66025%, 55% 98.66025%, 53.4202% 99.39693%, 51.73648% 99.84808%, 50% 100%, 48.26352% 99.84808%, 46.5798% 99.39693%, 45% 98.66025%, 10.35898% 78.66025%, 8.93111% 77.66044%, 7.69854% 76.42788%, 6.69873% 75%, 5.96206% 73.4202%, 5.51091% 71.73648%, 5.35898% 70%, 5.35898% 30%, 5.51091% 28.26352%, 5.96206% 26.5798%, 6.69873% 25%, 7.69854% 23.57212%, 8.93111% 22.33956%, 10.35898% 21.33975%)`
19
- });
20
- const imageStyles = xcss({
21
- objectFit: 'cover',
22
- height: '100%',
23
- width: '100%'
24
- });
25
- const avatarContentContainer = xcss({
26
- width: '100%',
27
- height: '100%',
28
- display: 'flex',
29
- justifyContent: 'center',
30
- alignItems: 'center'
31
- });
8
+ const styles = {
9
+ agentAvatar: "_1e0c1txw _1bah1h6o _4cvr1h6o _mkrz1k6g",
10
+ image: "_5ral1dfr _4t3i1osq _1bsb1osq",
11
+ avatarContentContainer: "_1bsb1osq _4t3i1osq _1e0c1txw _1bah1h6o _4cvr1h6o"
12
+ };
13
+ const stylesCompiled = {
14
+ innerShape: "_4t3i1lk2 _1bsb1lk2 _mkrz1k6g"
15
+ };
32
16
  export const AgentAvatar = ({
33
17
  imageUrl,
34
18
  size = 'medium',
@@ -44,7 +28,7 @@ export const AgentAvatar = ({
44
28
  const imgUrl = isForgeAgent && forgeAgentIconUrl ? forgeAgentIconUrl : imageUrl;
45
29
  return /*#__PURE__*/React.createElement(Box, {
46
30
  "aria-label": label,
47
- xcss: agentAvatarStyles,
31
+ xcss: styles.agentAvatar,
48
32
  style: {
49
33
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values
50
34
  height: AVATAR_SIZES[size],
@@ -55,13 +39,13 @@ export const AgentAvatar = ({
55
39
  backgroundColor: '#fff'
56
40
  } : {})
57
41
  }
42
+ }, /*#__PURE__*/React.createElement("div", {
43
+ className: ax([stylesCompiled.innerShape])
58
44
  }, /*#__PURE__*/React.createElement(Box, {
59
- xcss: innerShapeStyles
60
- }, /*#__PURE__*/React.createElement(Box, {
61
- xcss: avatarContentContainer
45
+ xcss: styles.avatarContentContainer
62
46
  }, imgUrl ? /*#__PURE__*/React.createElement(Box, {
63
47
  as: "img",
64
- xcss: imageStyles,
48
+ xcss: styles.image,
65
49
  src: imgUrl,
66
50
  alt: name
67
51
  }) : /*#__PURE__*/React.createElement(GeneratedAvatar, {
@@ -0,0 +1,10 @@
1
+ ._18zrv77o{padding-inline:var(--ds-space-025,2px)}
2
+ ._1bah1h6o{justify-content:center}
3
+ ._1bsb1osq{width:100%}
4
+ ._1e0c1txw{display:flex}
5
+ ._1nmz1hna{word-break:break-word}
6
+ ._1ul9gktf{min-width:20px}
7
+ ._4t3igktf{height:20px}
8
+ ._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
9
+ ._o5721jtm{white-space:pre-wrap}
10
+ ._y3gn1e5h{text-align:left}
@@ -1,34 +1,24 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _extends from "@babel/runtime/helpers/extends";
2
- import React, { useEffect, useState } from 'react';
3
+ import "./index.compiled.css";
4
+ import * as React from 'react';
5
+ import { ax, ix } from "@compiled/react/runtime";
6
+ import { useEffect, useState } from 'react';
3
7
  import { useIntl } from 'react-intl-next';
4
8
  import Button, { IconButton } from '@atlaskit/button/new';
5
9
  import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
6
10
  import MoreIcon from '@atlaskit/icon/core/migration/show-more-horizontal--more';
7
11
  import { fg } from '@atlaskit/platform-feature-flags';
8
- import { Box, Inline, xcss } from '@atlaskit/primitives';
12
+ import { Box, Inline } from '@atlaskit/primitives/compiled';
9
13
  import { ChatPillIcon } from '../../common/ui/chat-icon';
10
14
  import messages from './messages';
11
- const chatToAgentButtonContainer = xcss({
12
- width: '100%'
13
- });
14
- const chatToAgentButtonWrapper = xcss({
15
- display: 'flex',
16
- justifyContent: 'center',
17
- lineHeight: '20px',
18
- fontWeight: 'font.weight.medium'
19
- });
20
- const chatPillButtonInlineStyles = xcss({
21
- paddingInline: 'space.025'
22
- });
23
- const chatPillTextStyles = xcss({
24
- wordBreak: 'break-word',
25
- textAlign: 'left',
26
- whiteSpace: 'pre-wrap'
27
- });
28
- const chatPillIconWrapper = xcss({
29
- minWidth: '20px',
30
- height: '20px'
31
- });
15
+ const styles = {
16
+ chatToAgentButtonContainer: "_1bsb1osq",
17
+ chatToAgentButtonWrapper: "_1e0c1txw _1bah1h6o _k48p1wq8",
18
+ chatPillButtonInline: "_18zrv77o",
19
+ chatPillText: "_1nmz1hna _y3gn1e5h _o5721jtm",
20
+ chatPillIconWrapper: "_1ul9gktf _4t3igktf"
21
+ };
32
22
  export const ChatToAgentButton = ({
33
23
  onClick
34
24
  }) => {
@@ -36,20 +26,20 @@ export const ChatToAgentButton = ({
36
26
  formatMessage
37
27
  } = useIntl();
38
28
  return /*#__PURE__*/React.createElement(Box, {
39
- xcss: chatToAgentButtonContainer
29
+ xcss: styles.chatToAgentButtonContainer
40
30
  }, /*#__PURE__*/React.createElement(Button, {
41
31
  testId: "view-agent-modal-chat-to-agent-button",
42
32
  shouldFitContainer: true,
43
33
  onClick: onClick
44
34
  }, /*#__PURE__*/React.createElement(Box, {
45
- xcss: chatToAgentButtonWrapper
35
+ xcss: styles.chatToAgentButtonWrapper
46
36
  }, /*#__PURE__*/React.createElement(Inline, {
47
37
  space: "space.050",
48
- xcss: chatPillButtonInlineStyles
38
+ xcss: styles.chatPillButtonInline
49
39
  }, /*#__PURE__*/React.createElement(Box, {
50
- xcss: chatPillIconWrapper
40
+ xcss: styles.chatPillIconWrapper
51
41
  }, /*#__PURE__*/React.createElement(ChatPillIcon, null)), /*#__PURE__*/React.createElement(Box, {
52
- xcss: chatPillTextStyles
42
+ xcss: styles.chatPillText
53
43
  }, formatMessage(messages.chatToAgentButton))))));
54
44
  };
55
45
  export const AgentDropdownMenu = ({
@@ -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,17 +1,16 @@
1
- import React from 'react';
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";
2
5
  import { useIntl } from 'react-intl-next';
3
6
  import StarIcon from '@atlaskit/icon/utility/migration/star-unstarred--star';
4
- import { Box, xcss } from '@atlaskit/primitives';
7
+ import { Box } from '@atlaskit/primitives/compiled';
5
8
  import Skeleton from '@atlaskit/skeleton';
6
9
  import { messages } from './messages';
7
10
  import { formatNumber } from './utils';
8
- const countStyles = xcss({
9
- font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
10
- display: 'flex',
11
- alignItems: 'center',
12
- gap: 'space.050',
13
- paddingInlineStart: 'space.025'
14
- });
11
+ const styles = {
12
+ count: "_11c81vlj _zulp1b66 _1e0c1txw _4cvr1h6o _bozgv77o"
13
+ };
15
14
  export const AgentStarCount = ({
16
15
  starCount,
17
16
  isLoading
@@ -23,7 +22,7 @@ export const AgentStarCount = ({
23
22
  return null;
24
23
  }
25
24
  return /*#__PURE__*/React.createElement(Box, {
26
- xcss: countStyles
25
+ xcss: styles.count
27
26
  }, /*#__PURE__*/React.createElement(StarIcon, {
28
27
  LEGACY_margin: `0 ${"var(--ds-space-negative-025, -2px)"}`,
29
28
  color: "currentColor",
@@ -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,26 +1,24 @@
1
- import React from 'react';
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";
2
5
  import { useIntl } from 'react-intl-next';
3
6
  import Heading from '@atlaskit/heading';
4
7
  import { AtlassianIcon, RovoIcon } from '@atlaskit/logo';
5
- import { Box, Inline, Stack, xcss } from '@atlaskit/primitives';
8
+ import { Box, Inline, Stack } from '@atlaskit/primitives/compiled';
6
9
  import Skeleton from '@atlaskit/skeleton';
7
10
  import Tooltip from '@atlaskit/tooltip';
8
11
  import { HiddenIcon } from '../../common/ui/hidden-icon';
9
12
  import { StarIconButton } from '../../common/ui/star-icon-button';
10
13
  import { messages } from './messages';
11
- const clickableItemStyles = xcss({
12
- display: 'flex',
13
- alignItems: 'center',
14
- gap: 'space.050'
15
- });
16
- const nameStyles = xcss({
17
- justifyContent: 'space-between',
18
- alignItems: 'flex-start'
19
- });
20
- const descriptionStyles = xcss({
21
- marginTop: 'space.0',
22
- marginBottom: 'space.100'
23
- });
14
+ const styles = {
15
+ clickableItem: "_zulp1b66 _1e0c1txw _4cvr1h6o",
16
+ name: "_1bah1yb4 _4cvr1y6m",
17
+ description: "_19pkze3t _otyru2gc",
18
+ wrapper: "_otyru2gc",
19
+ tooltipWrapper: "_195gu2gc _1e0c116y _kqswh2mm _94n5v77o",
20
+ headingWrapper: "_kqswh2mm"
21
+ };
24
22
  export const AgentProfileCreator = ({
25
23
  creator,
26
24
  onCreatorLinkClick,
@@ -73,24 +71,12 @@ export const AgentProfileCreator = ({
73
71
  };
74
72
  const creatorRender = getCreatorRender();
75
73
  return creatorRender ? /*#__PURE__*/React.createElement(Box, {
76
- xcss: clickableItemStyles
74
+ xcss: styles.clickableItem
77
75
  }, /*#__PURE__*/React.createElement(RovoIcon, {
78
76
  appearance: "brand",
79
77
  size: "small"
80
78
  }), creatorRender) : null;
81
79
  };
82
- const wrapperStyles = xcss({
83
- marginBottom: 'space.100'
84
- });
85
- const tooltipWrapperStyles = xcss({
86
- display: 'inline-flex',
87
- marginInline: 'space.100',
88
- position: 'relative',
89
- bottom: 'space.025'
90
- });
91
- const headingWrapperStyles = xcss({
92
- position: 'relative'
93
- });
94
80
  export const AgentProfileInfo = ({
95
81
  agentName,
96
82
  agentDescription,
@@ -105,18 +91,18 @@ export const AgentProfileInfo = ({
105
91
  } = useIntl();
106
92
  return /*#__PURE__*/React.createElement(Stack, {
107
93
  space: "space.100",
108
- xcss: wrapperStyles
94
+ xcss: styles.wrapper
109
95
  }, /*#__PURE__*/React.createElement(Inline, {
110
- xcss: nameStyles,
96
+ xcss: styles.name,
111
97
  space: "space.100",
112
98
  alignBlock: "center"
113
99
  }, /*#__PURE__*/React.createElement(Box, {
114
- xcss: headingWrapperStyles
100
+ xcss: styles.headingWrapper
115
101
  }, /*#__PURE__*/React.createElement(Heading, {
116
102
  as: "span",
117
103
  size: "xlarge"
118
104
  }, agentName), isHidden && /*#__PURE__*/React.createElement(Box, {
119
- xcss: tooltipWrapperStyles
105
+ xcss: styles.tooltipWrapper
120
106
  }, /*#__PURE__*/React.createElement(Tooltip, {
121
107
  content: formatMessage(messages.hiddenTooltip),
122
108
  position: "top"
@@ -126,7 +112,7 @@ export const AgentProfileInfo = ({
126
112
  isStarred: isStarred,
127
113
  handleToggle: onStarToggle
128
114
  })), creatorRender, !!agentDescription && /*#__PURE__*/React.createElement(Box, {
129
- xcss: descriptionStyles,
115
+ xcss: styles.description,
130
116
  as: "p"
131
117
  }, agentDescription), starCountRender);
132
118
  };
@@ -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,66 +1,29 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _extends from "@babel/runtime/helpers/extends";
2
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
4
  var _excluded = ["children", "whiteSpacePreWrap", "renderIcon"],
4
5
  _excluded2 = ["children", "whiteSpacePreWrap"];
5
- import React from 'react';
6
+ import "./index.compiled.css";
7
+ import * as React from 'react';
8
+ import { ax, ix } from "@compiled/react/runtime";
9
+ import { forwardRef } from 'react';
6
10
  import { useIntl } from 'react-intl-next';
11
+ import { cx } from '@atlaskit/css';
7
12
  import AgentIcon from '@atlaskit/icon/core/ai-agent';
8
- import { Box, Inline, Pressable, xcss } from '@atlaskit/primitives';
13
+ import { Box, Inline, Pressable } from '@atlaskit/primitives/compiled';
9
14
  import { ChatPillIcon } from '../chat-icon';
10
15
  import messages from './messages';
11
- var conversationStarterPillStyles = xcss({
12
- color: 'color.text',
13
- padding: 'space.100',
14
- border: "1px solid ".concat("var(--ds-border, #091E4224)"),
15
- borderRadius: 'border.radius.200',
16
- borderBottomRightRadius: "var(--ds-border-radius-050, 2px)",
17
- font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
18
- fontWeight: "var(--ds-font-weight-medium, 500)",
19
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
20
- lineHeight: '16px',
21
- textOverflow: 'ellipsis',
22
- whiteSpace: 'nowrap',
23
- flexShrink: 1,
24
- background: 'none',
25
- width: '100%',
26
- ':hover': {
27
- backgroundColor: 'color.background.neutral.hovered'
28
- },
29
- ':active': {
30
- backgroundColor: 'color.background.neutral.pressed'
31
- }
32
- });
33
- var buttonStyles = xcss({
34
- color: 'color.text',
35
- padding: 'space.100',
36
- borderRadius: 'border.radius.200',
37
- borderBottomRightRadius: "var(--ds-border-radius-050, 2px)",
38
- font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
39
- fontWeight: "var(--ds-font-weight-medium, 500)",
40
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
41
- lineHeight: '16px',
42
- textOverflow: 'ellipsis',
43
- whiteSpace: 'nowrap',
44
- flexShrink: 1,
45
- backgroundColor: 'color.background.neutral',
46
- ':hover': {
47
- backgroundColor: 'color.background.neutral.hovered'
48
- },
49
- ':active': {
50
- backgroundColor: 'color.background.neutral.pressed'
51
- }
52
- });
53
- var buttonInlineStyles = xcss({
54
- paddingInline: 'space.025'
55
- });
56
- var queryTextStyles = xcss({
57
- wordBreak: 'break-word',
58
- textAlign: 'left'
59
- });
60
- var whiteSpacePreWrapStyles = xcss({
61
- whiteSpace: 'pre-wrap'
62
- });
63
- export var ChatPill = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
16
+ var stylesCompiled = {
17
+ pillLineHeight: "_vwz47vkz"
18
+ };
19
+ var styles = {
20
+ conversationStarterPill: "_2rkopd34 _11c81oud _189ee4h9 _1dqonqa1 _1h6dmuej _syaz1fxt _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc _1o0zgqwt _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _bfhk1j28 _1bsb1osq _irr315ej _1di6ip91",
21
+ button: "_2rkopd34 _11c81oud _syaz1fxt _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc _1o0zgqwt _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _bfhkm7j4 _irr315ej _1di6ip91",
22
+ buttonInline: "_18zrv77o",
23
+ queryText: "_1nmz1hna _y3gn1e5h",
24
+ whiteSpacePreWrap: "_o5721jtm"
25
+ };
26
+ export var ChatPill = /*#__PURE__*/forwardRef(function (_ref, ref) {
64
27
  var children = _ref.children,
65
28
  _ref$whiteSpacePreWra = _ref.whiteSpacePreWrap,
66
29
  whiteSpacePreWrap = _ref$whiteSpacePreWra === void 0 ? true : _ref$whiteSpacePreWra,
@@ -70,32 +33,36 @@ export var ChatPill = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
70
33
  return /*#__PURE__*/React.createElement(Pressable, _extends({
71
34
  ref: ref
72
35
  }, props, {
73
- xcss: buttonStyles
74
- }), /*#__PURE__*/React.createElement(Inline, {
36
+ xcss: styles.button
37
+ }), /*#__PURE__*/React.createElement("div", {
38
+ className: ax([stylesCompiled.pillLineHeight])
39
+ }, /*#__PURE__*/React.createElement(Inline, {
75
40
  space: "space.050",
76
- xcss: buttonInlineStyles
41
+ xcss: styles.buttonInline
77
42
  }, renderIcon ? /*#__PURE__*/React.createElement(ChatPillIcon, null) : null, /*#__PURE__*/React.createElement(Box, {
78
- xcss: [queryTextStyles, whiteSpacePreWrap && whiteSpacePreWrapStyles]
79
- }, children)));
43
+ xcss: cx(styles.queryText, whiteSpacePreWrap && styles.whiteSpacePreWrap)
44
+ }, children))));
80
45
  });
81
- export var BrowseAgentsPill = /*#__PURE__*/React.forwardRef(function (props, ref) {
46
+ export var BrowseAgentsPill = /*#__PURE__*/forwardRef(function (props, ref) {
82
47
  var _useIntl = useIntl(),
83
48
  formatMessage = _useIntl.formatMessage;
84
49
  return /*#__PURE__*/React.createElement(Pressable, _extends({
85
50
  ref: ref
86
51
  }, props, {
87
- xcss: buttonStyles
88
- }), /*#__PURE__*/React.createElement(Inline, {
52
+ xcss: styles.button
53
+ }), /*#__PURE__*/React.createElement("div", {
54
+ className: ax([stylesCompiled.pillLineHeight])
55
+ }, /*#__PURE__*/React.createElement(Inline, {
89
56
  space: "space.050",
90
- xcss: buttonInlineStyles
57
+ xcss: styles.buttonInline
91
58
  }, /*#__PURE__*/React.createElement(AgentIcon, {
92
59
  color: "currentColor",
93
60
  label: ""
94
61
  }), /*#__PURE__*/React.createElement(Box, {
95
- xcss: queryTextStyles
96
- }, formatMessage(messages.browseAgentsPillLabel))));
62
+ xcss: styles.queryText
63
+ }, formatMessage(messages.browseAgentsPillLabel)))));
97
64
  });
98
- export var ConversationStarterPill = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
65
+ export var ConversationStarterPill = /*#__PURE__*/forwardRef(function (_ref2, ref) {
99
66
  var children = _ref2.children,
100
67
  _ref2$whiteSpacePreWr = _ref2.whiteSpacePreWrap,
101
68
  whiteSpacePreWrap = _ref2$whiteSpacePreWr === void 0 ? true : _ref2$whiteSpacePreWr,
@@ -103,11 +70,13 @@ export var ConversationStarterPill = /*#__PURE__*/React.forwardRef(function (_re
103
70
  return /*#__PURE__*/React.createElement(Pressable, _extends({
104
71
  ref: ref
105
72
  }, props, {
106
- xcss: conversationStarterPillStyles
107
- }), /*#__PURE__*/React.createElement(Inline, {
73
+ xcss: styles.conversationStarterPill
74
+ }), /*#__PURE__*/React.createElement("div", {
75
+ className: ax([stylesCompiled.pillLineHeight])
76
+ }, /*#__PURE__*/React.createElement(Inline, {
108
77
  space: "space.050",
109
- xcss: buttonInlineStyles
78
+ xcss: styles.buttonInline
110
79
  }, /*#__PURE__*/React.createElement(ChatPillIcon, null), /*#__PURE__*/React.createElement(Box, {
111
- xcss: [queryTextStyles, whiteSpacePreWrap && whiteSpacePreWrapStyles]
112
- }, children)));
80
+ xcss: cx(styles.queryText, whiteSpacePreWrap && styles.whiteSpacePreWrap)
81
+ }, children))));
113
82
  });
@@ -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 React from 'react';
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, xcss } from '@atlaskit/primitives';
10
+ import { Box } from '@atlaskit/primitives/compiled';
7
11
  import messages from './messages';
8
- var hiddenStyles = xcss({
9
- opacity: 0
10
- });
12
+ var styles = {
13
+ hidden: "_tzy4idpf"
14
+ };
11
15
  export var LinkIconButton = function LinkIconButton(_ref) {
12
16
  var handleCopy = _ref.handleCopy,
13
17
  _ref$visible = _ref.visible,
@@ -15,7 +19,7 @@ export var LinkIconButton = function LinkIconButton(_ref) {
15
19
  var _useIntl = useIntl(),
16
20
  formatMessage = _useIntl.formatMessage;
17
21
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
18
- xcss: [!visible && hiddenStyles]
22
+ xcss: cx(!visible && styles.hidden)
19
23
  }, /*#__PURE__*/React.createElement(IconButton, {
20
24
  type: "button",
21
25
  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)}