@atlaskit/editor-toolbar 0.2.1 → 0.2.3
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 +17 -0
- package/afm-volt/tsconfig.json +54 -0
- package/dist/cjs/index.js +14 -0
- package/dist/cjs/ui/icons/AIChatIcon.js +24 -12
- package/dist/cjs/ui/icons/IndentIcon.js +13 -0
- package/dist/cjs/ui/icons/OutdentIcon.js +13 -0
- package/dist/es2019/index.js +2 -0
- package/dist/es2019/ui/icons/AIChatIcon.js +32 -10
- package/dist/es2019/ui/icons/IndentIcon.js +2 -0
- package/dist/es2019/ui/icons/OutdentIcon.js +2 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/ui/icons/AIChatIcon.js +22 -11
- package/dist/esm/ui/icons/IndentIcon.js +2 -0
- package/dist/esm/ui/icons/OutdentIcon.js +2 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/ui/icons/AIChatIcon.d.ts +7 -4
- package/dist/types/ui/icons/IndentIcon.d.ts +1 -0
- package/dist/types/ui/icons/OutdentIcon.d.ts +1 -0
- package/dist/types-ts4.5/index.d.ts +2 -0
- package/dist/types-ts4.5/ui/icons/AIChatIcon.d.ts +7 -4
- package/dist/types-ts4.5/ui/icons/IndentIcon.d.ts +1 -0
- package/dist/types-ts4.5/ui/icons/OutdentIcon.d.ts +1 -0
- package/package.json +3 -3
- package/src/index.ts +2 -0
- package/src/ui/icons/AIChatIcon.tsx +34 -10
- package/src/ui/icons/IndentIcon.tsx +2 -0
- package/src/ui/icons/OutdentIcon.tsx +2 -0
- package/tsconfig.app.json +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-toolbar
|
|
2
2
|
|
|
3
|
+
## 0.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#201259](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/201259)
|
|
8
|
+
[`1de5dd69e269d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1de5dd69e269d) -
|
|
9
|
+
[ux] [EDITOR-1064] Added ai commands on the new selection toolbar platform
|
|
10
|
+
|
|
11
|
+
## 0.2.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#198479](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/198479)
|
|
16
|
+
[`a427f04593fbd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a427f04593fbd) -
|
|
17
|
+
[ux] ED-28685 register list and indentation menu to the new toolbar behind
|
|
18
|
+
platform_editor_toolbar_aifc
|
|
19
|
+
|
|
3
20
|
## 0.2.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.volt.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../volt/tsDist/@atlaskit__editor-toolbar/app",
|
|
7
|
+
"rootDir": "../",
|
|
8
|
+
"composite": true
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*"
|
|
18
|
+
],
|
|
19
|
+
"references": [
|
|
20
|
+
{
|
|
21
|
+
"path": "../../../design-system/badge/afm-volt/tsconfig.json"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"path": "../../../design-system/button/afm-volt/tsconfig.json"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"path": "../../../design-system/css/afm-volt/tsconfig.json"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"path": "../../../design-system/dropdown-menu/afm-volt/tsconfig.json"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"path": "../../../design-system/icon/afm-volt/tsconfig.json"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"path": "../../../design-system/icon-lab/afm-volt/tsconfig.json"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"path": "../../../design-system/logo/afm-volt/tsconfig.json"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"path": "../../../design-system/popup/afm-volt/tsconfig.json"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"path": "../../../design-system/primitives/afm-volt/tsconfig.json"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"path": "../../../design-system/tokens/afm-volt/tsconfig.json"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"path": "../../../design-system/tooltip/afm-volt/tsconfig.json"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -165,6 +165,12 @@ Object.defineProperty(exports, "HeadingTwoIcon", {
|
|
|
165
165
|
return _HeadingTwoIcon.HeadingTwoIcon;
|
|
166
166
|
}
|
|
167
167
|
});
|
|
168
|
+
Object.defineProperty(exports, "IndentIcon", {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: function get() {
|
|
171
|
+
return _IndentIcon.IndentIcon;
|
|
172
|
+
}
|
|
173
|
+
});
|
|
168
174
|
Object.defineProperty(exports, "ItalicIcon", {
|
|
169
175
|
enumerable: true,
|
|
170
176
|
get: function get() {
|
|
@@ -201,6 +207,12 @@ Object.defineProperty(exports, "NestedDropdownRightIcon", {
|
|
|
201
207
|
return _NestedDropdownRightIcon.NestedDropdownRightIcon;
|
|
202
208
|
}
|
|
203
209
|
});
|
|
210
|
+
Object.defineProperty(exports, "OutdentIcon", {
|
|
211
|
+
enumerable: true,
|
|
212
|
+
get: function get() {
|
|
213
|
+
return _OutdentIcon.OutdentIcon;
|
|
214
|
+
}
|
|
215
|
+
});
|
|
204
216
|
Object.defineProperty(exports, "PinIcon", {
|
|
205
217
|
enumerable: true,
|
|
206
218
|
get: function get() {
|
|
@@ -406,4 +418,6 @@ var _ShowMoreHorizontal = require("./ui/icons/ShowMoreHorizontal");
|
|
|
406
418
|
var _AlignTextLeftIcon = require("./ui/icons/AlignTextLeftIcon");
|
|
407
419
|
var _AlignTextCenterIcon = require("./ui/icons/AlignTextCenterIcon");
|
|
408
420
|
var _AlignTextRightIcon = require("./ui/icons/AlignTextRightIcon");
|
|
421
|
+
var _IndentIcon = require("./ui/icons/IndentIcon");
|
|
422
|
+
var _OutdentIcon = require("./ui/icons/OutdentIcon");
|
|
409
423
|
var _uiContext = require("./hooks/ui-context");
|
|
@@ -1,27 +1,39 @@
|
|
|
1
1
|
/* AIChatIcon.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.AIChatIcon = void 0;
|
|
9
9
|
require("./AIChatIcon.compiled.css");
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
10
11
|
var _runtime = require("@compiled/react/runtime");
|
|
11
|
-
var
|
|
12
|
-
var _logo = require("@atlaskit/logo");
|
|
13
|
-
var _compiled = require("@atlaskit/primitives/compiled");
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
14
13
|
var styles = {
|
|
15
|
-
|
|
14
|
+
container: "_1e0c1txw _4cvr1h6o _1bah1h6o _4t3i1crf _1bsb1crf"
|
|
16
15
|
};
|
|
17
|
-
var
|
|
16
|
+
var ROVO_SVG_PATH = "<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t<path d=\"M5.4905 0.135176C5.80591 -0.0450587 6.19311 -0.0450584 6.50852 0.135176L10.8688 2.62676C11.1885 2.80943 11.3857 3.14937 11.3857 3.51754V8.48246C11.3857 8.85063 11.1885 9.19057 10.8688 9.37324L6.50852 11.8648C6.19311 12.0451 5.80591 12.0451 5.4905 11.8648L1.13022 9.37324C0.810557 9.19057 0.613281 8.85063 0.613281 8.48246V3.51754C0.613281 3.14937 0.810557 2.80943 1.13022 2.62676L5.4905 0.135176Z\" fill=\"#BF63F3\"/>\n\t\t<mask id=\"mask0_7293_80230\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"12\" height=\"12\">\n\t\t\t<path d=\"M5.49147 0.135176C5.80688 -0.0450587 6.19409 -0.0450584 6.5095 0.135176L10.8698 2.62676C11.1894 2.80943 11.3867 3.14937 11.3867 3.51754V8.48246C11.3867 8.85063 11.1894 9.19057 10.8698 9.37324L6.5095 11.8648C6.19409 12.0451 5.80688 12.0451 5.49147 11.8648L1.13119 9.37324C0.811533 9.19057 0.614258 8.85063 0.614258 8.48246V3.51754C0.614258 3.14937 0.811533 2.80943 1.13119 2.62676L5.49147 0.135176Z\" fill=\"#BF63F3\"/>\n\t\t</mask>\n\t\t<g mask=\"url(#mask0_7293_80230)\">\n\t\t\t<path d=\"M1.16288 17.7949C1.88804 16.4071 2.9469 15.3192 4.34131 14.5785C5.73572 13.8378 7.35499 13.5206 8.99441 13.7092L0.174767 -2.55519C-1.28774 -2.29055 -2.70974 -1.80225 -4.07832 -1.07526C-5.44691 -0.348264 -6.62375 0.522036 -7.64571 1.5465L1.16656 17.7973L1.16288 17.7949Z\" fill=\"#82B536\"/>\n\t\t\t<path d=\"M6.2482 7.95377C3.81481 8.96062 1.95638 10.6236 1.88069 12.9253C1.88069 12.9253 1.88199 12.9371 1.88076 12.9428C1.87578 13.1139 1.87896 13.2868 1.89469 13.4633C1.89533 13.4648 1.89596 13.4663 1.89659 13.4678C1.91139 13.6465 1.93718 13.8294 1.97333 14.0151C1.98259 14.0588 1.99625 14.1041 2.00551 14.1478C2.03868 14.296 2.07186 14.4442 2.11979 14.5968C2.18327 14.7994 2.25711 15.0047 2.3457 15.2144C2.50959 15.6024 2.70185 15.9488 2.90932 16.2571C3.18552 16.6673 3.48842 17.0101 3.79015 17.2936C3.86597 17.3643 3.94053 17.432 4.01695 17.4954C4.37212 17.7357 4.89091 18.0543 5.7602 18.4584C6.328 18.7233 7.04924 19.025 7.97282 19.3662C8.7114 18.2422 10.0629 17.368 11.3277 16.3888C12.3263 15.6149 13.2681 14.7764 13.805 13.6971C14.2974 12.7085 14.3102 11.4765 13.7704 10.1986C12.4194 7.00012 9.42898 6.63591 6.2507 7.95097L6.2482 7.95377Z\" fill=\"#FCA700\"/>\n\t\t\t<path d=\"M11.6634 -7.61136L-2.81461 -5.02797C-2.81461 -5.02797 -1.3238 1.52224 -4.55981 7.48526C-4.11672 7.5189 -3.66847 7.5392 -3.21522 7.53288C5.12023 7.41664 11.7808 0.635945 11.6634 -7.61401L11.6634 -7.61136Z\" fill=\"#1868DB\"/>\n\t\t</g>\n\t\t<path d=\"M5.67239 2.71364C5.90711 2.58408 6.19359 2.58646 6.42641 2.72078L8.69144 4.02848C8.92849 4.16524 9.07522 4.41898 9.07522 4.69232V7.30776C9.07522 7.58218 8.92938 7.83479 8.69162 7.97148L6.98899 8.95449C6.99272 8.94401 6.99627 8.93347 6.99965 8.92286C7.03126 8.82487 7.04801 8.72132 7.04801 8.61548V6.00004C7.04801 5.64073 6.8569 5.3094 6.54519 5.13016L5.27598 4.39771V3.3846C5.27598 3.30477 5.28833 3.22678 5.31168 3.15296C5.3691 2.97429 5.49122 2.81962 5.65828 2.72306L5.65879 2.72277C5.66358 2.72001 5.66814 2.71694 5.67239 2.71364Z\" fill=\"white\"/>\n\t\t<path d=\"M5.09599 3.04811L3.39336 4.03112C3.1556 4.1678 3.00977 4.42042 3.00977 4.69484V7.31028C3.00977 7.58362 3.15646 7.83734 3.39352 7.9741L5.65857 9.28182C5.89139 9.41612 6.17789 9.41851 6.4126 9.28896C6.41685 9.28566 6.42137 9.28261 6.42616 9.27985C6.59341 9.18336 6.71572 9.02863 6.77323 8.84989C6.79663 8.77599 6.809 8.69792 6.809 8.618V7.60489L5.53987 6.87249C5.22822 6.69323 5.03697 6.36183 5.03697 6.00256V3.38712C5.03697 3.28142 5.05368 3.17802 5.0852 3.08015C5.08862 3.0694 5.09222 3.05872 5.09599 3.04811Z\" fill=\"white\"/>\n\t</svg>";
|
|
17
|
+
var RovoLogoSVG = function RovoLogoSVG(_ref) {
|
|
18
18
|
var label = _ref.label,
|
|
19
19
|
testId = _ref.testId;
|
|
20
|
-
return /*#__PURE__*/
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
21
|
+
role: "img",
|
|
22
|
+
"aria-label": label,
|
|
23
|
+
"data-testid": testId
|
|
24
|
+
// eslint-disable-next-line react/no-danger
|
|
25
|
+
,
|
|
26
|
+
dangerouslySetInnerHTML: {
|
|
27
|
+
__html: ROVO_SVG_PATH
|
|
28
|
+
},
|
|
29
|
+
className: (0, _runtime.ax)([styles.container])
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
var AIChatIcon = exports.AIChatIcon = function AIChatIcon(_ref2) {
|
|
33
|
+
var label = _ref2.label,
|
|
34
|
+
testId = _ref2.testId;
|
|
35
|
+
return /*#__PURE__*/React.createElement(RovoLogoSVG, {
|
|
23
36
|
label: label,
|
|
24
|
-
testId: testId
|
|
25
|
-
|
|
26
|
-
}));
|
|
37
|
+
testId: testId
|
|
38
|
+
});
|
|
27
39
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
Object.defineProperty(exports, "IndentIcon", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function get() {
|
|
10
|
+
return _textIndentRight.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
var _textIndentRight = _interopRequireDefault(require("@atlaskit/icon/core/text-indent-right"));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
Object.defineProperty(exports, "OutdentIcon", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function get() {
|
|
10
|
+
return _textIndentLeft.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
var _textIndentLeft = _interopRequireDefault(require("@atlaskit/icon/core/text-indent-left"));
|
package/dist/es2019/index.js
CHANGED
|
@@ -54,4 +54,6 @@ export { ShowMoreHorizontalIcon } from './ui/icons/ShowMoreHorizontal';
|
|
|
54
54
|
export { AlignTextLeftIcon } from './ui/icons/AlignTextLeftIcon';
|
|
55
55
|
export { AlignTextCenterIcon } from './ui/icons/AlignTextCenterIcon';
|
|
56
56
|
export { AlignTextRightIcon } from './ui/icons/AlignTextRightIcon';
|
|
57
|
+
export { IndentIcon } from './ui/icons/IndentIcon';
|
|
58
|
+
export { OutdentIcon } from './ui/icons/OutdentIcon';
|
|
57
59
|
export { useToolbarUI, ToolbarUIProvider } from './hooks/ui-context';
|
|
@@ -1,19 +1,41 @@
|
|
|
1
1
|
/* AIChatIcon.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import "./AIChatIcon.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
3
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { RovoIcon as RovoLogoIcon } from '@atlaskit/logo';
|
|
6
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
7
5
|
const styles = {
|
|
8
|
-
|
|
6
|
+
container: "_1e0c1txw _4cvr1h6o _1bah1h6o _4t3i1crf _1bsb1crf"
|
|
9
7
|
};
|
|
8
|
+
const ROVO_SVG_PATH = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9
|
+
<path d="M5.4905 0.135176C5.80591 -0.0450587 6.19311 -0.0450584 6.50852 0.135176L10.8688 2.62676C11.1885 2.80943 11.3857 3.14937 11.3857 3.51754V8.48246C11.3857 8.85063 11.1885 9.19057 10.8688 9.37324L6.50852 11.8648C6.19311 12.0451 5.80591 12.0451 5.4905 11.8648L1.13022 9.37324C0.810557 9.19057 0.613281 8.85063 0.613281 8.48246V3.51754C0.613281 3.14937 0.810557 2.80943 1.13022 2.62676L5.4905 0.135176Z" fill="#BF63F3"/>
|
|
10
|
+
<mask id="mask0_7293_80230" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="12" height="12">
|
|
11
|
+
<path d="M5.49147 0.135176C5.80688 -0.0450587 6.19409 -0.0450584 6.5095 0.135176L10.8698 2.62676C11.1894 2.80943 11.3867 3.14937 11.3867 3.51754V8.48246C11.3867 8.85063 11.1894 9.19057 10.8698 9.37324L6.5095 11.8648C6.19409 12.0451 5.80688 12.0451 5.49147 11.8648L1.13119 9.37324C0.811533 9.19057 0.614258 8.85063 0.614258 8.48246V3.51754C0.614258 3.14937 0.811533 2.80943 1.13119 2.62676L5.49147 0.135176Z" fill="#BF63F3"/>
|
|
12
|
+
</mask>
|
|
13
|
+
<g mask="url(#mask0_7293_80230)">
|
|
14
|
+
<path d="M1.16288 17.7949C1.88804 16.4071 2.9469 15.3192 4.34131 14.5785C5.73572 13.8378 7.35499 13.5206 8.99441 13.7092L0.174767 -2.55519C-1.28774 -2.29055 -2.70974 -1.80225 -4.07832 -1.07526C-5.44691 -0.348264 -6.62375 0.522036 -7.64571 1.5465L1.16656 17.7973L1.16288 17.7949Z" fill="#82B536"/>
|
|
15
|
+
<path d="M6.2482 7.95377C3.81481 8.96062 1.95638 10.6236 1.88069 12.9253C1.88069 12.9253 1.88199 12.9371 1.88076 12.9428C1.87578 13.1139 1.87896 13.2868 1.89469 13.4633C1.89533 13.4648 1.89596 13.4663 1.89659 13.4678C1.91139 13.6465 1.93718 13.8294 1.97333 14.0151C1.98259 14.0588 1.99625 14.1041 2.00551 14.1478C2.03868 14.296 2.07186 14.4442 2.11979 14.5968C2.18327 14.7994 2.25711 15.0047 2.3457 15.2144C2.50959 15.6024 2.70185 15.9488 2.90932 16.2571C3.18552 16.6673 3.48842 17.0101 3.79015 17.2936C3.86597 17.3643 3.94053 17.432 4.01695 17.4954C4.37212 17.7357 4.89091 18.0543 5.7602 18.4584C6.328 18.7233 7.04924 19.025 7.97282 19.3662C8.7114 18.2422 10.0629 17.368 11.3277 16.3888C12.3263 15.6149 13.2681 14.7764 13.805 13.6971C14.2974 12.7085 14.3102 11.4765 13.7704 10.1986C12.4194 7.00012 9.42898 6.63591 6.2507 7.95097L6.2482 7.95377Z" fill="#FCA700"/>
|
|
16
|
+
<path d="M11.6634 -7.61136L-2.81461 -5.02797C-2.81461 -5.02797 -1.3238 1.52224 -4.55981 7.48526C-4.11672 7.5189 -3.66847 7.5392 -3.21522 7.53288C5.12023 7.41664 11.7808 0.635945 11.6634 -7.61401L11.6634 -7.61136Z" fill="#1868DB"/>
|
|
17
|
+
</g>
|
|
18
|
+
<path d="M5.67239 2.71364C5.90711 2.58408 6.19359 2.58646 6.42641 2.72078L8.69144 4.02848C8.92849 4.16524 9.07522 4.41898 9.07522 4.69232V7.30776C9.07522 7.58218 8.92938 7.83479 8.69162 7.97148L6.98899 8.95449C6.99272 8.94401 6.99627 8.93347 6.99965 8.92286C7.03126 8.82487 7.04801 8.72132 7.04801 8.61548V6.00004C7.04801 5.64073 6.8569 5.3094 6.54519 5.13016L5.27598 4.39771V3.3846C5.27598 3.30477 5.28833 3.22678 5.31168 3.15296C5.3691 2.97429 5.49122 2.81962 5.65828 2.72306L5.65879 2.72277C5.66358 2.72001 5.66814 2.71694 5.67239 2.71364Z" fill="white"/>
|
|
19
|
+
<path d="M5.09599 3.04811L3.39336 4.03112C3.1556 4.1678 3.00977 4.42042 3.00977 4.69484V7.31028C3.00977 7.58362 3.15646 7.83734 3.39352 7.9741L5.65857 9.28182C5.89139 9.41612 6.17789 9.41851 6.4126 9.28896C6.41685 9.28566 6.42137 9.28261 6.42616 9.27985C6.59341 9.18336 6.71572 9.02863 6.77323 8.84989C6.79663 8.77599 6.809 8.69792 6.809 8.618V7.60489L5.53987 6.87249C5.22822 6.69323 5.03697 6.36183 5.03697 6.00256V3.38712C5.03697 3.28142 5.05368 3.17802 5.0852 3.08015C5.08862 3.0694 5.09222 3.05872 5.09599 3.04811Z" fill="white"/>
|
|
20
|
+
</svg>`;
|
|
21
|
+
const RovoLogoSVG = ({
|
|
22
|
+
label,
|
|
23
|
+
testId
|
|
24
|
+
}) => /*#__PURE__*/React.createElement("span", {
|
|
25
|
+
role: "img",
|
|
26
|
+
"aria-label": label,
|
|
27
|
+
"data-testid": testId
|
|
28
|
+
// eslint-disable-next-line react/no-danger
|
|
29
|
+
,
|
|
30
|
+
dangerouslySetInnerHTML: {
|
|
31
|
+
__html: ROVO_SVG_PATH
|
|
32
|
+
},
|
|
33
|
+
className: ax([styles.container])
|
|
34
|
+
});
|
|
10
35
|
export const AIChatIcon = ({
|
|
11
36
|
label,
|
|
12
37
|
testId
|
|
13
|
-
}) => /*#__PURE__*/React.createElement(
|
|
14
|
-
xcss: styles.small
|
|
15
|
-
}, /*#__PURE__*/React.createElement(RovoLogoIcon, {
|
|
38
|
+
}) => /*#__PURE__*/React.createElement(RovoLogoSVG, {
|
|
16
39
|
label: label,
|
|
17
|
-
testId: testId
|
|
18
|
-
|
|
19
|
-
}));
|
|
40
|
+
testId: testId
|
|
41
|
+
});
|
package/dist/esm/index.js
CHANGED
|
@@ -54,4 +54,6 @@ export { ShowMoreHorizontalIcon } from './ui/icons/ShowMoreHorizontal';
|
|
|
54
54
|
export { AlignTextLeftIcon } from './ui/icons/AlignTextLeftIcon';
|
|
55
55
|
export { AlignTextCenterIcon } from './ui/icons/AlignTextCenterIcon';
|
|
56
56
|
export { AlignTextRightIcon } from './ui/icons/AlignTextRightIcon';
|
|
57
|
+
export { IndentIcon } from './ui/icons/IndentIcon';
|
|
58
|
+
export { OutdentIcon } from './ui/icons/OutdentIcon';
|
|
57
59
|
export { useToolbarUI, ToolbarUIProvider } from './hooks/ui-context';
|
|
@@ -1,20 +1,31 @@
|
|
|
1
1
|
/* AIChatIcon.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import "./AIChatIcon.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
3
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { RovoIcon as RovoLogoIcon } from '@atlaskit/logo';
|
|
6
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
7
5
|
var styles = {
|
|
8
|
-
|
|
6
|
+
container: "_1e0c1txw _4cvr1h6o _1bah1h6o _4t3i1crf _1bsb1crf"
|
|
9
7
|
};
|
|
10
|
-
|
|
8
|
+
var ROVO_SVG_PATH = "<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t<path d=\"M5.4905 0.135176C5.80591 -0.0450587 6.19311 -0.0450584 6.50852 0.135176L10.8688 2.62676C11.1885 2.80943 11.3857 3.14937 11.3857 3.51754V8.48246C11.3857 8.85063 11.1885 9.19057 10.8688 9.37324L6.50852 11.8648C6.19311 12.0451 5.80591 12.0451 5.4905 11.8648L1.13022 9.37324C0.810557 9.19057 0.613281 8.85063 0.613281 8.48246V3.51754C0.613281 3.14937 0.810557 2.80943 1.13022 2.62676L5.4905 0.135176Z\" fill=\"#BF63F3\"/>\n\t\t<mask id=\"mask0_7293_80230\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"12\" height=\"12\">\n\t\t\t<path d=\"M5.49147 0.135176C5.80688 -0.0450587 6.19409 -0.0450584 6.5095 0.135176L10.8698 2.62676C11.1894 2.80943 11.3867 3.14937 11.3867 3.51754V8.48246C11.3867 8.85063 11.1894 9.19057 10.8698 9.37324L6.5095 11.8648C6.19409 12.0451 5.80688 12.0451 5.49147 11.8648L1.13119 9.37324C0.811533 9.19057 0.614258 8.85063 0.614258 8.48246V3.51754C0.614258 3.14937 0.811533 2.80943 1.13119 2.62676L5.49147 0.135176Z\" fill=\"#BF63F3\"/>\n\t\t</mask>\n\t\t<g mask=\"url(#mask0_7293_80230)\">\n\t\t\t<path d=\"M1.16288 17.7949C1.88804 16.4071 2.9469 15.3192 4.34131 14.5785C5.73572 13.8378 7.35499 13.5206 8.99441 13.7092L0.174767 -2.55519C-1.28774 -2.29055 -2.70974 -1.80225 -4.07832 -1.07526C-5.44691 -0.348264 -6.62375 0.522036 -7.64571 1.5465L1.16656 17.7973L1.16288 17.7949Z\" fill=\"#82B536\"/>\n\t\t\t<path d=\"M6.2482 7.95377C3.81481 8.96062 1.95638 10.6236 1.88069 12.9253C1.88069 12.9253 1.88199 12.9371 1.88076 12.9428C1.87578 13.1139 1.87896 13.2868 1.89469 13.4633C1.89533 13.4648 1.89596 13.4663 1.89659 13.4678C1.91139 13.6465 1.93718 13.8294 1.97333 14.0151C1.98259 14.0588 1.99625 14.1041 2.00551 14.1478C2.03868 14.296 2.07186 14.4442 2.11979 14.5968C2.18327 14.7994 2.25711 15.0047 2.3457 15.2144C2.50959 15.6024 2.70185 15.9488 2.90932 16.2571C3.18552 16.6673 3.48842 17.0101 3.79015 17.2936C3.86597 17.3643 3.94053 17.432 4.01695 17.4954C4.37212 17.7357 4.89091 18.0543 5.7602 18.4584C6.328 18.7233 7.04924 19.025 7.97282 19.3662C8.7114 18.2422 10.0629 17.368 11.3277 16.3888C12.3263 15.6149 13.2681 14.7764 13.805 13.6971C14.2974 12.7085 14.3102 11.4765 13.7704 10.1986C12.4194 7.00012 9.42898 6.63591 6.2507 7.95097L6.2482 7.95377Z\" fill=\"#FCA700\"/>\n\t\t\t<path d=\"M11.6634 -7.61136L-2.81461 -5.02797C-2.81461 -5.02797 -1.3238 1.52224 -4.55981 7.48526C-4.11672 7.5189 -3.66847 7.5392 -3.21522 7.53288C5.12023 7.41664 11.7808 0.635945 11.6634 -7.61401L11.6634 -7.61136Z\" fill=\"#1868DB\"/>\n\t\t</g>\n\t\t<path d=\"M5.67239 2.71364C5.90711 2.58408 6.19359 2.58646 6.42641 2.72078L8.69144 4.02848C8.92849 4.16524 9.07522 4.41898 9.07522 4.69232V7.30776C9.07522 7.58218 8.92938 7.83479 8.69162 7.97148L6.98899 8.95449C6.99272 8.94401 6.99627 8.93347 6.99965 8.92286C7.03126 8.82487 7.04801 8.72132 7.04801 8.61548V6.00004C7.04801 5.64073 6.8569 5.3094 6.54519 5.13016L5.27598 4.39771V3.3846C5.27598 3.30477 5.28833 3.22678 5.31168 3.15296C5.3691 2.97429 5.49122 2.81962 5.65828 2.72306L5.65879 2.72277C5.66358 2.72001 5.66814 2.71694 5.67239 2.71364Z\" fill=\"white\"/>\n\t\t<path d=\"M5.09599 3.04811L3.39336 4.03112C3.1556 4.1678 3.00977 4.42042 3.00977 4.69484V7.31028C3.00977 7.58362 3.15646 7.83734 3.39352 7.9741L5.65857 9.28182C5.89139 9.41612 6.17789 9.41851 6.4126 9.28896C6.41685 9.28566 6.42137 9.28261 6.42616 9.27985C6.59341 9.18336 6.71572 9.02863 6.77323 8.84989C6.79663 8.77599 6.809 8.69792 6.809 8.618V7.60489L5.53987 6.87249C5.22822 6.69323 5.03697 6.36183 5.03697 6.00256V3.38712C5.03697 3.28142 5.05368 3.17802 5.0852 3.08015C5.08862 3.0694 5.09222 3.05872 5.09599 3.04811Z\" fill=\"white\"/>\n\t</svg>";
|
|
9
|
+
var RovoLogoSVG = function RovoLogoSVG(_ref) {
|
|
11
10
|
var label = _ref.label,
|
|
12
11
|
testId = _ref.testId;
|
|
13
|
-
return /*#__PURE__*/React.createElement(
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13
|
+
role: "img",
|
|
14
|
+
"aria-label": label,
|
|
15
|
+
"data-testid": testId
|
|
16
|
+
// eslint-disable-next-line react/no-danger
|
|
17
|
+
,
|
|
18
|
+
dangerouslySetInnerHTML: {
|
|
19
|
+
__html: ROVO_SVG_PATH
|
|
20
|
+
},
|
|
21
|
+
className: ax([styles.container])
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
export var AIChatIcon = function AIChatIcon(_ref2) {
|
|
25
|
+
var label = _ref2.label,
|
|
26
|
+
testId = _ref2.testId;
|
|
27
|
+
return /*#__PURE__*/React.createElement(RovoLogoSVG, {
|
|
16
28
|
label: label,
|
|
17
|
-
testId: testId
|
|
18
|
-
|
|
19
|
-
}));
|
|
29
|
+
testId: testId
|
|
30
|
+
});
|
|
20
31
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -53,5 +53,7 @@ export { ShowMoreHorizontalIcon } from './ui/icons/ShowMoreHorizontal';
|
|
|
53
53
|
export { AlignTextLeftIcon } from './ui/icons/AlignTextLeftIcon';
|
|
54
54
|
export { AlignTextCenterIcon } from './ui/icons/AlignTextCenterIcon';
|
|
55
55
|
export { AlignTextRightIcon } from './ui/icons/AlignTextRightIcon';
|
|
56
|
+
export { IndentIcon } from './ui/icons/IndentIcon';
|
|
57
|
+
export { OutdentIcon } from './ui/icons/OutdentIcon';
|
|
56
58
|
export type { IconComponent, ToolbarButtonGroupLocation } from './types';
|
|
57
59
|
export { useToolbarUI, ToolbarUIProvider } from './hooks/ui-context';
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
interface AIChatIconProps {
|
|
3
6
|
label: string;
|
|
4
7
|
testId?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const AIChatIcon: ({ label, testId }: AIChatIconProps) =>
|
|
8
|
+
}
|
|
9
|
+
export declare const AIChatIcon: ({ label, testId }: AIChatIconProps) => JSX.Element;
|
|
7
10
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as IndentIcon } from '@atlaskit/icon/core/text-indent-right';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as OutdentIcon } from '@atlaskit/icon/core/text-indent-left';
|
|
@@ -53,5 +53,7 @@ export { ShowMoreHorizontalIcon } from './ui/icons/ShowMoreHorizontal';
|
|
|
53
53
|
export { AlignTextLeftIcon } from './ui/icons/AlignTextLeftIcon';
|
|
54
54
|
export { AlignTextCenterIcon } from './ui/icons/AlignTextCenterIcon';
|
|
55
55
|
export { AlignTextRightIcon } from './ui/icons/AlignTextRightIcon';
|
|
56
|
+
export { IndentIcon } from './ui/icons/IndentIcon';
|
|
57
|
+
export { OutdentIcon } from './ui/icons/OutdentIcon';
|
|
56
58
|
export type { IconComponent, ToolbarButtonGroupLocation } from './types';
|
|
57
59
|
export { useToolbarUI, ToolbarUIProvider } from './hooks/ui-context';
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
interface AIChatIconProps {
|
|
3
6
|
label: string;
|
|
4
7
|
testId?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const AIChatIcon: ({ label, testId }: AIChatIconProps) =>
|
|
8
|
+
}
|
|
9
|
+
export declare const AIChatIcon: ({ label, testId }: AIChatIconProps) => JSX.Element;
|
|
7
10
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as IndentIcon } from '@atlaskit/icon/core/text-indent-right';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as OutdentIcon } from '@atlaskit/icon/core/text-indent-left';
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"registry": "https://registry.npmjs.org/"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.2.
|
|
6
|
+
"version": "0.2.3",
|
|
7
7
|
"description": "Common UI for Toolbars across the platform",
|
|
8
8
|
"atlassian": {
|
|
9
9
|
"team": "Editor: Jenga",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"@atlaskit/button": "^23.3.0",
|
|
29
29
|
"@atlaskit/css": "^0.12.0",
|
|
30
30
|
"@atlaskit/dropdown-menu": "^16.3.0",
|
|
31
|
-
"@atlaskit/icon": "^27.
|
|
32
|
-
"@atlaskit/icon-lab": "^5.
|
|
31
|
+
"@atlaskit/icon": "^27.12.0",
|
|
32
|
+
"@atlaskit/icon-lab": "^5.6.0",
|
|
33
33
|
"@atlaskit/logo": "^19.6.0",
|
|
34
34
|
"@atlaskit/popup": "^4.3.0",
|
|
35
35
|
"@atlaskit/primitives": "^14.11.0",
|
package/src/index.ts
CHANGED
|
@@ -55,6 +55,8 @@ export { ShowMoreHorizontalIcon } from './ui/icons/ShowMoreHorizontal';
|
|
|
55
55
|
export { AlignTextLeftIcon } from './ui/icons/AlignTextLeftIcon';
|
|
56
56
|
export { AlignTextCenterIcon } from './ui/icons/AlignTextCenterIcon';
|
|
57
57
|
export { AlignTextRightIcon } from './ui/icons/AlignTextRightIcon';
|
|
58
|
+
export { IndentIcon } from './ui/icons/IndentIcon';
|
|
59
|
+
export { OutdentIcon } from './ui/icons/OutdentIcon';
|
|
58
60
|
|
|
59
61
|
export type { IconComponent, ToolbarButtonGroupLocation } from './types';
|
|
60
62
|
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
2
5
|
|
|
3
|
-
import { cssMap } from '@atlaskit/css';
|
|
4
|
-
import { RovoIcon as RovoLogoIcon } from '@atlaskit/logo';
|
|
5
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
6
|
+
import { cssMap, jsx } from '@atlaskit/css';
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
interface AIChatIconProps {
|
|
8
9
|
label: string;
|
|
9
10
|
testId?: string;
|
|
10
|
-
}
|
|
11
|
+
}
|
|
11
12
|
|
|
12
13
|
const styles = cssMap({
|
|
13
|
-
|
|
14
|
+
container: {
|
|
14
15
|
display: 'flex',
|
|
15
16
|
alignItems: 'center',
|
|
16
17
|
justifyContent: 'center',
|
|
@@ -19,8 +20,31 @@ const styles = cssMap({
|
|
|
19
20
|
},
|
|
20
21
|
});
|
|
21
22
|
|
|
23
|
+
const ROVO_SVG_PATH = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
24
|
+
<path d="M5.4905 0.135176C5.80591 -0.0450587 6.19311 -0.0450584 6.50852 0.135176L10.8688 2.62676C11.1885 2.80943 11.3857 3.14937 11.3857 3.51754V8.48246C11.3857 8.85063 11.1885 9.19057 10.8688 9.37324L6.50852 11.8648C6.19311 12.0451 5.80591 12.0451 5.4905 11.8648L1.13022 9.37324C0.810557 9.19057 0.613281 8.85063 0.613281 8.48246V3.51754C0.613281 3.14937 0.810557 2.80943 1.13022 2.62676L5.4905 0.135176Z" fill="#BF63F3"/>
|
|
25
|
+
<mask id="mask0_7293_80230" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="12" height="12">
|
|
26
|
+
<path d="M5.49147 0.135176C5.80688 -0.0450587 6.19409 -0.0450584 6.5095 0.135176L10.8698 2.62676C11.1894 2.80943 11.3867 3.14937 11.3867 3.51754V8.48246C11.3867 8.85063 11.1894 9.19057 10.8698 9.37324L6.5095 11.8648C6.19409 12.0451 5.80688 12.0451 5.49147 11.8648L1.13119 9.37324C0.811533 9.19057 0.614258 8.85063 0.614258 8.48246V3.51754C0.614258 3.14937 0.811533 2.80943 1.13119 2.62676L5.49147 0.135176Z" fill="#BF63F3"/>
|
|
27
|
+
</mask>
|
|
28
|
+
<g mask="url(#mask0_7293_80230)">
|
|
29
|
+
<path d="M1.16288 17.7949C1.88804 16.4071 2.9469 15.3192 4.34131 14.5785C5.73572 13.8378 7.35499 13.5206 8.99441 13.7092L0.174767 -2.55519C-1.28774 -2.29055 -2.70974 -1.80225 -4.07832 -1.07526C-5.44691 -0.348264 -6.62375 0.522036 -7.64571 1.5465L1.16656 17.7973L1.16288 17.7949Z" fill="#82B536"/>
|
|
30
|
+
<path d="M6.2482 7.95377C3.81481 8.96062 1.95638 10.6236 1.88069 12.9253C1.88069 12.9253 1.88199 12.9371 1.88076 12.9428C1.87578 13.1139 1.87896 13.2868 1.89469 13.4633C1.89533 13.4648 1.89596 13.4663 1.89659 13.4678C1.91139 13.6465 1.93718 13.8294 1.97333 14.0151C1.98259 14.0588 1.99625 14.1041 2.00551 14.1478C2.03868 14.296 2.07186 14.4442 2.11979 14.5968C2.18327 14.7994 2.25711 15.0047 2.3457 15.2144C2.50959 15.6024 2.70185 15.9488 2.90932 16.2571C3.18552 16.6673 3.48842 17.0101 3.79015 17.2936C3.86597 17.3643 3.94053 17.432 4.01695 17.4954C4.37212 17.7357 4.89091 18.0543 5.7602 18.4584C6.328 18.7233 7.04924 19.025 7.97282 19.3662C8.7114 18.2422 10.0629 17.368 11.3277 16.3888C12.3263 15.6149 13.2681 14.7764 13.805 13.6971C14.2974 12.7085 14.3102 11.4765 13.7704 10.1986C12.4194 7.00012 9.42898 6.63591 6.2507 7.95097L6.2482 7.95377Z" fill="#FCA700"/>
|
|
31
|
+
<path d="M11.6634 -7.61136L-2.81461 -5.02797C-2.81461 -5.02797 -1.3238 1.52224 -4.55981 7.48526C-4.11672 7.5189 -3.66847 7.5392 -3.21522 7.53288C5.12023 7.41664 11.7808 0.635945 11.6634 -7.61401L11.6634 -7.61136Z" fill="#1868DB"/>
|
|
32
|
+
</g>
|
|
33
|
+
<path d="M5.67239 2.71364C5.90711 2.58408 6.19359 2.58646 6.42641 2.72078L8.69144 4.02848C8.92849 4.16524 9.07522 4.41898 9.07522 4.69232V7.30776C9.07522 7.58218 8.92938 7.83479 8.69162 7.97148L6.98899 8.95449C6.99272 8.94401 6.99627 8.93347 6.99965 8.92286C7.03126 8.82487 7.04801 8.72132 7.04801 8.61548V6.00004C7.04801 5.64073 6.8569 5.3094 6.54519 5.13016L5.27598 4.39771V3.3846C5.27598 3.30477 5.28833 3.22678 5.31168 3.15296C5.3691 2.97429 5.49122 2.81962 5.65828 2.72306L5.65879 2.72277C5.66358 2.72001 5.66814 2.71694 5.67239 2.71364Z" fill="white"/>
|
|
34
|
+
<path d="M5.09599 3.04811L3.39336 4.03112C3.1556 4.1678 3.00977 4.42042 3.00977 4.69484V7.31028C3.00977 7.58362 3.15646 7.83734 3.39352 7.9741L5.65857 9.28182C5.89139 9.41612 6.17789 9.41851 6.4126 9.28896C6.41685 9.28566 6.42137 9.28261 6.42616 9.27985C6.59341 9.18336 6.71572 9.02863 6.77323 8.84989C6.79663 8.77599 6.809 8.69792 6.809 8.618V7.60489L5.53987 6.87249C5.22822 6.69323 5.03697 6.36183 5.03697 6.00256V3.38712C5.03697 3.28142 5.05368 3.17802 5.0852 3.08015C5.08862 3.0694 5.09222 3.05872 5.09599 3.04811Z" fill="white"/>
|
|
35
|
+
</svg>`;
|
|
36
|
+
|
|
37
|
+
const RovoLogoSVG = ({ label, testId }: { label: string; testId?: string }) => (
|
|
38
|
+
<span
|
|
39
|
+
css={[styles.container]}
|
|
40
|
+
role="img"
|
|
41
|
+
aria-label={label}
|
|
42
|
+
data-testid={testId}
|
|
43
|
+
// eslint-disable-next-line react/no-danger
|
|
44
|
+
dangerouslySetInnerHTML={{ __html: ROVO_SVG_PATH }}
|
|
45
|
+
/>
|
|
46
|
+
);
|
|
47
|
+
|
|
22
48
|
export const AIChatIcon = ({ label, testId }: AIChatIconProps) => (
|
|
23
|
-
<
|
|
24
|
-
<RovoLogoIcon label={label} testId={testId} size="xxsmall" />
|
|
25
|
-
</Box>
|
|
49
|
+
<RovoLogoSVG label={label} testId={testId} />
|
|
26
50
|
);
|