@loomhq/lens 12.12.0 → 12.12.2
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/dist/cjs/icons/alert-bulb.js +40 -0
- package/dist/cjs/icons/alert-bulb.js.map +7 -0
- package/dist/cjs/icons/confluence-neutral.js +23 -26
- package/dist/cjs/icons/confluence-neutral.js.map +2 -2
- package/dist/cjs/icons/index.js +953 -874
- package/dist/cjs/icons/index.js.map +4 -4
- package/dist/cjs/icons/jira-neutral.js +6 -12
- package/dist/cjs/icons/jira-neutral.js.map +2 -2
- package/dist/cjs/icons/repeat.js +40 -0
- package/dist/cjs/icons/repeat.js.map +7 -0
- package/dist/cjs/icons/rovo.js +47 -0
- package/dist/cjs/icons/rovo.js.map +7 -0
- package/dist/cjs/icons/teamwork-graph.js +81 -0
- package/dist/cjs/icons/teamwork-graph.js.map +7 -0
- package/dist/cjs/icons/text-rephrase.js +40 -0
- package/dist/cjs/icons/text-rephrase.js.map +7 -0
- package/dist/cjs/index.js +70 -42
- package/dist/cjs/index.js.map +3 -3
- package/dist/esm/icons/alert-bulb.js +8 -0
- package/dist/esm/icons/alert-bulb.js.map +7 -0
- package/dist/esm/icons/chunk-2J7646L6.js +26 -0
- package/dist/esm/icons/chunk-2J7646L6.js.map +7 -0
- package/dist/esm/icons/chunk-3XM7NCIA.js +33 -0
- package/dist/esm/icons/chunk-3XM7NCIA.js.map +7 -0
- package/dist/esm/icons/chunk-5HUPGCDS.js +18 -0
- package/dist/esm/icons/chunk-5HUPGCDS.js.map +7 -0
- package/dist/esm/icons/chunk-JPXEDTZQ.js +11 -0
- package/dist/esm/icons/chunk-JPXEDTZQ.js.map +7 -0
- package/dist/esm/icons/chunk-OSWSD6NQ.js +11 -0
- package/dist/esm/icons/chunk-OSWSD6NQ.js.map +7 -0
- package/dist/esm/icons/chunk-UCDRWJOM.js +11 -0
- package/dist/esm/icons/chunk-UCDRWJOM.js.map +7 -0
- package/dist/esm/icons/chunk-UP7WLXQW.js +42 -0
- package/dist/esm/icons/chunk-UP7WLXQW.js.map +7 -0
- package/dist/esm/icons/confluence-neutral.js +1 -1
- package/dist/esm/icons/index.js +159 -139
- package/dist/esm/icons/jira-neutral.js +1 -1
- package/dist/esm/icons/repeat.js +8 -0
- package/dist/esm/icons/repeat.js.map +7 -0
- package/dist/esm/icons/rovo.js +8 -0
- package/dist/esm/icons/rovo.js.map +7 -0
- package/dist/esm/icons/teamwork-graph.js +8 -0
- package/dist/esm/icons/teamwork-graph.js.map +7 -0
- package/dist/esm/icons/text-rephrase.js +8 -0
- package/dist/esm/icons/text-rephrase.js.map +7 -0
- package/dist/esm/index.js +77 -49
- package/dist/esm/index.js.map +3 -3
- package/dist/types/app/hooks/use-local-storage.d.ts.map +1 -1
- package/dist/types/icons/alert-bulb.d.ts +3 -0
- package/dist/types/icons/alert-bulb.d.ts.map +1 -0
- package/dist/types/icons/confluence-neutral.d.ts.map +1 -1
- package/dist/types/icons/index.d.ts +5 -0
- package/dist/types/icons/index.d.ts.map +1 -1
- package/dist/types/icons/jira-neutral.d.ts.map +1 -1
- package/dist/types/icons/repeat.d.ts +3 -0
- package/dist/types/icons/repeat.d.ts.map +1 -0
- package/dist/types/icons/rovo.d.ts +3 -0
- package/dist/types/icons/rovo.d.ts.map +1 -0
- package/dist/types/icons/teamwork-graph.d.ts +3 -0
- package/dist/types/icons/teamwork-graph.d.ts.map +1 -0
- package/dist/types/icons/text-rephrase.d.ts +3 -0
- package/dist/types/icons/text-rephrase.d.ts.map +1 -0
- package/dist/types/src/components/backdrop/backdrop.d.ts +5 -3
- package/dist/types/src/components/backdrop/backdrop.d.ts.map +1 -1
- package/dist/types/src/components/icon/available-icons/alert-bulb.d.ts +3 -0
- package/dist/types/src/components/icon/available-icons/alert-bulb.d.ts.map +1 -0
- package/dist/types/src/components/icon/available-icons/confluence-neutral.d.ts.map +1 -1
- package/dist/types/src/components/icon/available-icons/index.d.ts +5 -0
- package/dist/types/src/components/icon/available-icons/index.d.ts.map +1 -1
- package/dist/types/src/components/icon/available-icons/jira-neutral.d.ts.map +1 -1
- package/dist/types/src/components/icon/available-icons/repeat.d.ts +3 -0
- package/dist/types/src/components/icon/available-icons/repeat.d.ts.map +1 -0
- package/dist/types/src/components/icon/available-icons/rovo.d.ts +3 -0
- package/dist/types/src/components/icon/available-icons/rovo.d.ts.map +1 -0
- package/dist/types/src/components/icon/available-icons/teamwork-graph.d.ts +3 -0
- package/dist/types/src/components/icon/available-icons/teamwork-graph.d.ts.map +1 -0
- package/dist/types/src/components/icon/available-icons/text-rephrase.d.ts +3 -0
- package/dist/types/src/components/icon/available-icons/text-rephrase.d.ts.map +1 -0
- package/dist/types/src/components/modal/modal.d.ts +2 -2
- package/dist/types/src/components/modal/modal.d.ts.map +1 -1
- package/dist/types/src/components/select/select.d.ts.map +1 -1
- package/package.json +3 -4
- package/dist/esm/icons/chunk-ORGFR5M3.js +0 -26
- package/dist/esm/icons/chunk-ORGFR5M3.js.map +0 -7
- package/dist/esm/icons/chunk-SX5SVSYH.js +0 -32
- package/dist/esm/icons/chunk-SX5SVSYH.js.map +0 -7
|
@@ -48,24 +48,18 @@ __export(jira_neutral_exports, {
|
|
|
48
48
|
module.exports = __toCommonJS(jira_neutral_exports);
|
|
49
49
|
var React = __toESM(require("react"));
|
|
50
50
|
function SvgJiraNeutral(props) {
|
|
51
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({ viewBox: "0 0 24 24", fill: "none" }, props), /* @__PURE__ */ React.createElement(
|
|
51
|
+
return /* @__PURE__ */ React.createElement("svg", __spreadValues({ viewBox: "0 0 24 24", fill: "none" }, props), /* @__PURE__ */ React.createElement("g", { clipPath: "url(#a)" }, /* @__PURE__ */ React.createElement(
|
|
52
52
|
"path",
|
|
53
53
|
{
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
fill: "#fff",
|
|
55
|
+
d: "M0 6a6 6 0 0 1 6-6h12a6 6 0 0 1 6 6v12a6 6 0 0 1-6 6H6a6 6 0 0 1-6-6V6Z"
|
|
56
56
|
}
|
|
57
57
|
), /* @__PURE__ */ React.createElement(
|
|
58
58
|
"path",
|
|
59
59
|
{
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
fill: "#292A2E",
|
|
61
|
+
d: "M8.974 15.523H7.62c-2.04 0-3.502-1.249-3.502-3.078h7.271c.377 0 .62.268.62.647v7.317c-1.817 0-3.036-1.472-3.036-3.525v-1.36Zm3.591-3.636h-1.352c-2.04 0-3.503-1.227-3.503-3.056h7.272c.376 0 .642.245.642.625v7.317c-1.817 0-3.059-1.473-3.059-3.525v-1.36Zm3.614-3.614h-1.353c-2.04 0-3.502-1.249-3.502-3.078h7.271c.377 0 .62.268.62.624v7.317c-1.817 0-3.036-1.472-3.036-3.524V8.273Z"
|
|
62
62
|
}
|
|
63
|
-
), /* @__PURE__ */ React.createElement(
|
|
64
|
-
"path",
|
|
65
|
-
{
|
|
66
|
-
d: "M11.7206 11.6879H4.28563C4.28563 13.5385 5.78981 15.0448 7.6378 15.0448H8.99156V16.3574C8.99156 18.208 10.4957 19.7142 12.3437 19.7142V12.312C12.3652 11.9892 12.0644 11.6879 11.7206 11.6879Z",
|
|
67
|
-
fill: "currentColor"
|
|
68
|
-
}
|
|
69
|
-
));
|
|
63
|
+
)), /* @__PURE__ */ React.createElement("defs", null, /* @__PURE__ */ React.createElement("clipPath", { id: "a" }, /* @__PURE__ */ React.createElement("path", { fill: "#fff", d: "M0 0h24v24H0z" }))));
|
|
70
64
|
}
|
|
71
65
|
//# sourceMappingURL=jira-neutral.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/icon/available-icons/jira-neutral.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\n\nexport function SvgJiraNeutral(props: any) {\n return (\n <svg viewBox=\"0 0 24 24\" fill=\"none\" {...props}>\n <path\n
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAuB;AAEhB,SAAS,eAAe,OAAY;AACzC,SACE,oCAAC,wBAAI,SAAQ,aAAY,MAAK,UAAW,QACvC;AAAA,IAAC;AAAA;AAAA,MACC,
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\n\nexport function SvgJiraNeutral(props: any) {\n return (\n <svg viewBox=\"0 0 24 24\" fill=\"none\" {...props}>\n <g clipPath=\"url(#a)\">\n <path\n fill=\"#fff\"\n d=\"M0 6a6 6 0 0 1 6-6h12a6 6 0 0 1 6 6v12a6 6 0 0 1-6 6H6a6 6 0 0 1-6-6V6Z\"\n />\n <path\n fill=\"#292A2E\"\n d=\"M8.974 15.523H7.62c-2.04 0-3.502-1.249-3.502-3.078h7.271c.377 0 .62.268.62.647v7.317c-1.817 0-3.036-1.472-3.036-3.525v-1.36Zm3.591-3.636h-1.352c-2.04 0-3.503-1.227-3.503-3.056h7.272c.376 0 .642.245.642.625v7.317c-1.817 0-3.059-1.473-3.059-3.525v-1.36Zm3.614-3.614h-1.353c-2.04 0-3.502-1.249-3.502-3.078h7.271c.377 0 .62.268.62.624v7.317c-1.817 0-3.036-1.472-3.036-3.524V8.273Z\"\n />\n </g>\n <defs>\n <clipPath id=\"a\">\n <path fill=\"#fff\" d=\"M0 0h24v24H0z\" />\n </clipPath>\n </defs>\n </svg>\n );\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAuB;AAEhB,SAAS,eAAe,OAAY;AACzC,SACE,oCAAC,wBAAI,SAAQ,aAAY,MAAK,UAAW,QACvC,oCAAC,OAAE,UAAS,aACV;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,GAAE;AAAA;AAAA,EACJ,GACA;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,GAAE;AAAA;AAAA,EACJ,CACF,GACA,oCAAC,cACC,oCAAC,cAAS,IAAG,OACX,oCAAC,UAAK,MAAK,QAAO,GAAE,iBAAgB,CACtC,CACF,CACF;AAEJ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/icon/available-icons/repeat.tsx
|
|
30
|
+
var repeat_exports = {};
|
|
31
|
+
__export(repeat_exports, {
|
|
32
|
+
SvgRepeat: () => SvgRepeat
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(repeat_exports);
|
|
35
|
+
var import_repeat = __toESM(require("@atlaskit/icon-lab/core/repeat"));
|
|
36
|
+
var React = __toESM(require("react"));
|
|
37
|
+
function SvgRepeat() {
|
|
38
|
+
return /* @__PURE__ */ React.createElement(import_repeat.default, { label: "", testId: "ads-refreshed-icon" });
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=repeat.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/icon/available-icons/repeat.tsx"],
|
|
4
|
+
"sourcesContent": ["import RepeatIcon from '@atlaskit/icon-lab/core/repeat';\nimport * as React from 'react';\n\nexport function SvgRepeat() {\n return <RepeatIcon label=\"\" testId=\"ads-refreshed-icon\" />;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAuB;AACvB,YAAuB;AAEhB,SAAS,YAAY;AAC1B,SAAO,oCAAC,cAAAA,SAAA,EAAW,OAAM,IAAG,QAAO,sBAAqB;AAC1D;",
|
|
6
|
+
"names": ["RepeatIcon"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/icon/available-icons/rovo.tsx
|
|
30
|
+
var rovo_exports = {};
|
|
31
|
+
__export(rovo_exports, {
|
|
32
|
+
SvgRovo: () => SvgRovo
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(rovo_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
function SvgRovo() {
|
|
37
|
+
return /* @__PURE__ */ import_react.default.createElement("span", { "aria-hidden": true, "data-testid": "ads-refreshed-icon" }, /* @__PURE__ */ import_react.default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, /* @__PURE__ */ import_react.default.createElement(
|
|
38
|
+
"path",
|
|
39
|
+
{
|
|
40
|
+
fill: "currentcolor",
|
|
41
|
+
fillRule: "evenodd",
|
|
42
|
+
clipRule: "evenodd",
|
|
43
|
+
d: "M6.687.64a2.63 2.63 0 0 1 2.625 0l4.404 2.544a2.63 2.63 0 0 1 1.313 2.273v5.084c0 .938-.5 1.804-1.313 2.274l-4.404 2.542a2.63 2.63 0 0 1-2.625 0l-4.403-2.542A2.63 2.63 0 0 1 .97 10.54V5.457c0-.938.5-1.804 1.313-2.273zM3.034 4.483a1.13 1.13 0 0 0-.563.975v5.084c0 .402.215.774.563.975l4.403 2.543c.348.2.777.2 1.125 0l.688-.398v-1.997L5.896 9.568a1.38 1.38 0 0 1-.646-1.166V3.203zM8.562 1.94a1.13 1.13 0 0 0-1.125 0l-.687.398v1.996l3.354 2.097c.402.251.646.692.646 1.166v5.199l2.216-1.28c.348-.2.563-.572.563-.974V5.457c0-.402-.215-.774-.563-.975zM6.75 8.333l2.5 1.563V7.663l-2.5-1.561z"
|
|
44
|
+
}
|
|
45
|
+
)));
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=rovo.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/icon/available-icons/rovo.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\n\nexport function SvgRovo() {\n return (\n <span aria-hidden={true} data-testid=\"ads-refreshed-icon\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\">\n <path\n fill=\"currentcolor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M6.687.64a2.63 2.63 0 0 1 2.625 0l4.404 2.544a2.63 2.63 0 0 1 1.313 2.273v5.084c0 .938-.5 1.804-1.313 2.274l-4.404 2.542a2.63 2.63 0 0 1-2.625 0l-4.403-2.542A2.63 2.63 0 0 1 .97 10.54V5.457c0-.938.5-1.804 1.313-2.273zM3.034 4.483a1.13 1.13 0 0 0-.563.975v5.084c0 .402.215.774.563.975l4.403 2.543c.348.2.777.2 1.125 0l.688-.398v-1.997L5.896 9.568a1.38 1.38 0 0 1-.646-1.166V3.203zM8.562 1.94a1.13 1.13 0 0 0-1.125 0l-.687.398v1.996l3.354 2.097c.402.251.646.692.646 1.166v5.199l2.216-1.28c.348-.2.563-.572.563-.974V5.457c0-.402-.215-.774-.563-.975zM6.75 8.333l2.5 1.563V7.663l-2.5-1.561z\"\n />\n </svg>\n </span>\n );\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAEX,SAAS,UAAU;AACxB,SACE,6BAAAA,QAAA,cAAC,UAAK,eAAa,MAAM,eAAY,wBACnC,6BAAAA,QAAA,cAAC,SAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,UACnD,6BAAAA,QAAA;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,UAAS;AAAA,MACT,UAAS;AAAA,MACT,GAAE;AAAA;AAAA,EACJ,CACF,CACF;AAEJ;",
|
|
6
|
+
"names": ["React"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
+
var __spreadValues = (a, b) => {
|
|
11
|
+
for (var prop in b || (b = {}))
|
|
12
|
+
if (__hasOwnProp.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
if (__getOwnPropSymbols)
|
|
15
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
+
if (__propIsEnum.call(b, prop))
|
|
17
|
+
__defNormalProp(a, prop, b[prop]);
|
|
18
|
+
}
|
|
19
|
+
return a;
|
|
20
|
+
};
|
|
21
|
+
var __export = (target, all) => {
|
|
22
|
+
for (var name in all)
|
|
23
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
24
|
+
};
|
|
25
|
+
var __copyProps = (to, from, except, desc) => {
|
|
26
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
27
|
+
for (let key of __getOwnPropNames(from))
|
|
28
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
29
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
30
|
+
}
|
|
31
|
+
return to;
|
|
32
|
+
};
|
|
33
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
34
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
35
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
36
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
37
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
38
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
39
|
+
mod
|
|
40
|
+
));
|
|
41
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
42
|
+
|
|
43
|
+
// src/components/icon/available-icons/teamwork-graph.tsx
|
|
44
|
+
var teamwork_graph_exports = {};
|
|
45
|
+
__export(teamwork_graph_exports, {
|
|
46
|
+
SvgTeamworkGraph: () => SvgTeamworkGraph
|
|
47
|
+
});
|
|
48
|
+
module.exports = __toCommonJS(teamwork_graph_exports);
|
|
49
|
+
var React = __toESM(require("react"));
|
|
50
|
+
var SvgTeamworkGraph = (props) => /* @__PURE__ */ React.createElement("svg", __spreadValues({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, props), /* @__PURE__ */ React.createElement(
|
|
51
|
+
"path",
|
|
52
|
+
{
|
|
53
|
+
d: "M9 2.50009C9 1.94781 8.55229 1.50009 8 1.50009C7.44772 1.50009 7 1.94781 7 2.50009C7 3.05238 7.44772 3.50009 8 3.50009C8.55229 3.50009 9 3.05238 9 2.50009ZM10.5 2.50009C10.5 3.8808 9.38071 5.00009 8 5.00009C6.61929 5.00009 5.5 3.8808 5.5 2.50009C5.5 1.11938 6.61929 9.17765e-05 8 9.17765e-05C9.38071 9.17765e-05 10.5 1.11938 10.5 2.50009Z",
|
|
54
|
+
fill: "#6B6E76"
|
|
55
|
+
}
|
|
56
|
+
), /* @__PURE__ */ React.createElement(
|
|
57
|
+
"path",
|
|
58
|
+
{
|
|
59
|
+
d: "M3 8.00009C3 7.58588 2.66421 7.25009 2.25 7.25009C1.83579 7.25009 1.5 7.58588 1.5 8.00009C1.5 8.4143 1.83579 8.75009 2.25 8.75009C2.66421 8.75009 3 8.4143 3 8.00009ZM4.5 8.00009C4.5 9.24273 3.49264 10.2501 2.25 10.2501C1.00736 10.2501 0 9.24273 0 8.00009C0 6.75745 1.00736 5.75009 2.25 5.75009C3.49264 5.75009 4.5 6.75745 4.5 8.00009Z",
|
|
60
|
+
fill: "#6B6E76"
|
|
61
|
+
}
|
|
62
|
+
), /* @__PURE__ */ React.createElement(
|
|
63
|
+
"path",
|
|
64
|
+
{
|
|
65
|
+
d: "M14.5 8.00009C14.5 7.58588 14.1642 7.25009 13.75 7.25009C13.3358 7.25009 13 7.58588 13 8.00009C13 8.4143 13.3358 8.75009 13.75 8.75009C14.1642 8.75009 14.5 8.4143 14.5 8.00009ZM16 8.00009C16 9.24273 14.9926 10.2501 13.75 10.2501C12.5074 10.2501 11.5 9.24273 11.5 8.00009C11.5 6.75745 12.5074 5.75009 13.75 5.75009C14.9926 5.75009 16 6.75745 16 8.00009Z",
|
|
66
|
+
fill: "#6B6E76"
|
|
67
|
+
}
|
|
68
|
+
), /* @__PURE__ */ React.createElement(
|
|
69
|
+
"path",
|
|
70
|
+
{
|
|
71
|
+
d: "M8.75 13.7501C8.75 13.3359 8.41421 13.0001 8 13.0001C7.58579 13.0001 7.25 13.3359 7.25 13.7501C7.25 14.1643 7.58579 14.5001 8 14.5001C8.41421 14.5001 8.75 14.1643 8.75 13.7501ZM10.25 13.7501C10.25 14.9927 9.24264 16.0001 8 16.0001C6.75736 16.0001 5.75 14.9927 5.75 13.7501C5.75 12.5075 6.75736 11.5001 8 11.5001C9.24264 11.5001 10.25 12.5075 10.25 13.7501Z",
|
|
72
|
+
fill: "#6B6E76"
|
|
73
|
+
}
|
|
74
|
+
), /* @__PURE__ */ React.createElement(
|
|
75
|
+
"path",
|
|
76
|
+
{
|
|
77
|
+
d: "M2.78038 8.53035C2.92661 8.3841 2.99963 8.19403 2.99997 8.0014C3.0002 7.80798 2.9272 7.61651 2.78038 7.46969C2.4875 7.17681 2.01261 7.17683 1.71972 7.46969C1.42682 7.76258 1.42682 8.23746 1.71972 8.53035C2.01261 8.82324 2.48748 8.82324 2.78038 8.53035ZM8.53045 14.2804C8.82328 13.9876 8.82316 13.5127 8.53045 13.2198C8.23756 12.9269 7.76269 12.9269 7.46979 13.2198C7.17697 13.5127 7.17692 13.9876 7.46979 14.2804C7.76267 14.5731 8.23762 14.5732 8.53045 14.2804ZM8.53045 2.78027C8.82323 2.48737 8.82331 2.01247 8.53045 1.71961C8.2376 1.42676 7.76269 1.42683 7.46979 1.71961C7.1769 2.01251 7.1769 2.48738 7.46979 2.78027C7.76269 3.07317 8.23756 3.07317 8.53045 2.78027ZM14.2805 8.53035C14.5734 8.23752 14.5732 7.7626 14.2805 7.46969C13.9876 7.1768 13.5128 7.1768 13.2199 7.46969C13.0731 7.6165 12.9998 7.80669 13 8.00009C13.0003 8.19284 13.0735 8.38401 13.2199 8.53035C13.5128 8.82305 13.9877 8.82318 14.2805 8.53035ZM15.3412 9.59101C14.6488 10.2834 13.6189 10.4268 12.7828 10.0281L10.0296 12.7813C10.4286 13.6175 10.2836 14.6486 9.59111 15.3411C8.71249 16.2196 7.2878 16.2196 6.40913 15.3411C5.53048 14.4624 5.53053 13.0378 6.40913 12.1591C7.10176 11.4665 8.13266 11.3213 8.96894 11.7206L11.7214 8.96815C11.6875 8.89709 11.6577 8.82486 11.6316 8.75132L4.36791 8.75063C4.25952 9.05705 4.08599 9.34605 3.84104 9.59101C2.96236 10.4697 1.53774 10.4697 0.659056 9.59101C-0.219624 8.71233 -0.219624 7.28771 0.659056 6.40903C1.35155 5.71657 2.38199 5.57221 3.21817 5.97123L5.97133 3.21807C5.57234 2.38189 5.71665 1.35143 6.40913 0.658953C7.28782 -0.219613 8.71247 -0.219689 9.59111 0.658953C10.4698 1.5376 10.4697 2.96224 9.59111 3.84093C8.89863 4.53341 7.86818 4.67772 7.03199 4.27873L4.27883 7.03189C4.31305 7.10361 4.3431 7.17655 4.36929 7.25079L11.6303 7.25148C11.7386 6.94409 11.9136 6.65469 12.1592 6.40903C13.0379 5.53035 14.4625 5.53035 15.3412 6.40903C16.2197 7.28772 16.2198 8.71239 15.3412 9.59101Z",
|
|
78
|
+
fill: "#6B6E76"
|
|
79
|
+
}
|
|
80
|
+
));
|
|
81
|
+
//# sourceMappingURL=teamwork-graph.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/icon/available-icons/teamwork-graph.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\n\nexport const SvgTeamworkGraph = props => (\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" {...props}>\n <path\n d=\"M9 2.50009C9 1.94781 8.55229 1.50009 8 1.50009C7.44772 1.50009 7 1.94781 7 2.50009C7 3.05238 7.44772 3.50009 8 3.50009C8.55229 3.50009 9 3.05238 9 2.50009ZM10.5 2.50009C10.5 3.8808 9.38071 5.00009 8 5.00009C6.61929 5.00009 5.5 3.8808 5.5 2.50009C5.5 1.11938 6.61929 9.17765e-05 8 9.17765e-05C9.38071 9.17765e-05 10.5 1.11938 10.5 2.50009Z\"\n fill=\"#6B6E76\"\n />\n <path\n d=\"M3 8.00009C3 7.58588 2.66421 7.25009 2.25 7.25009C1.83579 7.25009 1.5 7.58588 1.5 8.00009C1.5 8.4143 1.83579 8.75009 2.25 8.75009C2.66421 8.75009 3 8.4143 3 8.00009ZM4.5 8.00009C4.5 9.24273 3.49264 10.2501 2.25 10.2501C1.00736 10.2501 0 9.24273 0 8.00009C0 6.75745 1.00736 5.75009 2.25 5.75009C3.49264 5.75009 4.5 6.75745 4.5 8.00009Z\"\n fill=\"#6B6E76\"\n />\n <path\n d=\"M14.5 8.00009C14.5 7.58588 14.1642 7.25009 13.75 7.25009C13.3358 7.25009 13 7.58588 13 8.00009C13 8.4143 13.3358 8.75009 13.75 8.75009C14.1642 8.75009 14.5 8.4143 14.5 8.00009ZM16 8.00009C16 9.24273 14.9926 10.2501 13.75 10.2501C12.5074 10.2501 11.5 9.24273 11.5 8.00009C11.5 6.75745 12.5074 5.75009 13.75 5.75009C14.9926 5.75009 16 6.75745 16 8.00009Z\"\n fill=\"#6B6E76\"\n />\n <path\n d=\"M8.75 13.7501C8.75 13.3359 8.41421 13.0001 8 13.0001C7.58579 13.0001 7.25 13.3359 7.25 13.7501C7.25 14.1643 7.58579 14.5001 8 14.5001C8.41421 14.5001 8.75 14.1643 8.75 13.7501ZM10.25 13.7501C10.25 14.9927 9.24264 16.0001 8 16.0001C6.75736 16.0001 5.75 14.9927 5.75 13.7501C5.75 12.5075 6.75736 11.5001 8 11.5001C9.24264 11.5001 10.25 12.5075 10.25 13.7501Z\"\n fill=\"#6B6E76\"\n />\n <path\n d=\"M2.78038 8.53035C2.92661 8.3841 2.99963 8.19403 2.99997 8.0014C3.0002 7.80798 2.9272 7.61651 2.78038 7.46969C2.4875 7.17681 2.01261 7.17683 1.71972 7.46969C1.42682 7.76258 1.42682 8.23746 1.71972 8.53035C2.01261 8.82324 2.48748 8.82324 2.78038 8.53035ZM8.53045 14.2804C8.82328 13.9876 8.82316 13.5127 8.53045 13.2198C8.23756 12.9269 7.76269 12.9269 7.46979 13.2198C7.17697 13.5127 7.17692 13.9876 7.46979 14.2804C7.76267 14.5731 8.23762 14.5732 8.53045 14.2804ZM8.53045 2.78027C8.82323 2.48737 8.82331 2.01247 8.53045 1.71961C8.2376 1.42676 7.76269 1.42683 7.46979 1.71961C7.1769 2.01251 7.1769 2.48738 7.46979 2.78027C7.76269 3.07317 8.23756 3.07317 8.53045 2.78027ZM14.2805 8.53035C14.5734 8.23752 14.5732 7.7626 14.2805 7.46969C13.9876 7.1768 13.5128 7.1768 13.2199 7.46969C13.0731 7.6165 12.9998 7.80669 13 8.00009C13.0003 8.19284 13.0735 8.38401 13.2199 8.53035C13.5128 8.82305 13.9877 8.82318 14.2805 8.53035ZM15.3412 9.59101C14.6488 10.2834 13.6189 10.4268 12.7828 10.0281L10.0296 12.7813C10.4286 13.6175 10.2836 14.6486 9.59111 15.3411C8.71249 16.2196 7.2878 16.2196 6.40913 15.3411C5.53048 14.4624 5.53053 13.0378 6.40913 12.1591C7.10176 11.4665 8.13266 11.3213 8.96894 11.7206L11.7214 8.96815C11.6875 8.89709 11.6577 8.82486 11.6316 8.75132L4.36791 8.75063C4.25952 9.05705 4.08599 9.34605 3.84104 9.59101C2.96236 10.4697 1.53774 10.4697 0.659056 9.59101C-0.219624 8.71233 -0.219624 7.28771 0.659056 6.40903C1.35155 5.71657 2.38199 5.57221 3.21817 5.97123L5.97133 3.21807C5.57234 2.38189 5.71665 1.35143 6.40913 0.658953C7.28782 -0.219613 8.71247 -0.219689 9.59111 0.658953C10.4698 1.5376 10.4697 2.96224 9.59111 3.84093C8.89863 4.53341 7.86818 4.67772 7.03199 4.27873L4.27883 7.03189C4.31305 7.10361 4.3431 7.17655 4.36929 7.25079L11.6303 7.25148C11.7386 6.94409 11.9136 6.65469 12.1592 6.40903C13.0379 5.53035 14.4625 5.53035 15.3412 6.40903C16.2197 7.28772 16.2198 8.71239 15.3412 9.59101Z\"\n fill=\"#6B6E76\"\n />\n </svg>\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAuB;AAEhB,IAAM,mBAAmB,WAC9B,oCAAC,wBAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,UAAW,QAC9D;AAAA,EAAC;AAAA;AAAA,IACC,GAAE;AAAA,IACF,MAAK;AAAA;AACP,GACA;AAAA,EAAC;AAAA;AAAA,IACC,GAAE;AAAA,IACF,MAAK;AAAA;AACP,GACA;AAAA,EAAC;AAAA;AAAA,IACC,GAAE;AAAA,IACF,MAAK;AAAA;AACP,GACA;AAAA,EAAC;AAAA;AAAA,IACC,GAAE;AAAA,IACF,MAAK;AAAA;AACP,GACA;AAAA,EAAC;AAAA;AAAA,IACC,GAAE;AAAA,IACF,MAAK;AAAA;AACP,CACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/icon/available-icons/text-rephrase.tsx
|
|
30
|
+
var text_rephrase_exports = {};
|
|
31
|
+
__export(text_rephrase_exports, {
|
|
32
|
+
SvgTextRephrase: () => SvgTextRephrase
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(text_rephrase_exports);
|
|
35
|
+
var import_text_rephrase = __toESM(require("@atlaskit/icon-lab/core/text-rephrase"));
|
|
36
|
+
var React = __toESM(require("react"));
|
|
37
|
+
function SvgTextRephrase() {
|
|
38
|
+
return /* @__PURE__ */ React.createElement(import_text_rephrase.default, { label: "", testId: "ads-refreshed-icon" });
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=text-rephrase.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/icon/available-icons/text-rephrase.tsx"],
|
|
4
|
+
"sourcesContent": ["import TextRephraseIcon from '@atlaskit/icon-lab/core/text-rephrase';\nimport * as React from 'react';\n\nexport function SvgTextRephrase() {\n return <TextRephraseIcon label=\"\" testId=\"ads-refreshed-icon\" />;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAA6B;AAC7B,YAAuB;AAEhB,SAAS,kBAAkB;AAChC,SAAO,oCAAC,qBAAAA,SAAA,EAAiB,OAAM,IAAG,QAAO,sBAAqB;AAChE;",
|
|
6
|
+
"names": ["TextRephraseIcon"]
|
|
7
|
+
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -4192,11 +4192,6 @@ var getSelectedOption = (value, options) => {
|
|
|
4192
4192
|
return options.find((item) => item.value === value);
|
|
4193
4193
|
}
|
|
4194
4194
|
};
|
|
4195
|
-
var didSelectedOptionValueChange = (selectedOptionValue, prevSelectedItem) => {
|
|
4196
|
-
return Boolean(
|
|
4197
|
-
prevSelectedItem && selectedOptionValue !== prevSelectedItem.value
|
|
4198
|
-
);
|
|
4199
|
-
};
|
|
4200
4195
|
var renderOption = (item, index, selectedItem, selectedOptionValue, highlightedIndex, getItemProps, keyboardMove, setKeyboardMove) => {
|
|
4201
4196
|
const isSelected = !selectedItem && item.value === selectedOptionValue || selectedItem && selectedItem.value === item.value;
|
|
4202
4197
|
return /* @__PURE__ */ import_react25.default.createElement(
|
|
@@ -4328,10 +4323,9 @@ var Select = (_a) => {
|
|
|
4328
4323
|
const value = e.target.value;
|
|
4329
4324
|
setSearchValue(value);
|
|
4330
4325
|
};
|
|
4331
|
-
const [
|
|
4326
|
+
const [selectedItem, setSelectedItem] = (0, import_react25.useState)(
|
|
4332
4327
|
getSelectedOption(selectedOptionValue, options)
|
|
4333
4328
|
);
|
|
4334
|
-
const [selectedItem, setSelectedItem] = (0, import_react25.useState)(prevSelectedItem);
|
|
4335
4329
|
const onDownshiftChange = (item) => {
|
|
4336
4330
|
setSelectedItem(item);
|
|
4337
4331
|
onChange && onChange(item ? item : "");
|
|
@@ -4357,12 +4351,14 @@ var Select = (_a) => {
|
|
|
4357
4351
|
triggerOffset
|
|
4358
4352
|
});
|
|
4359
4353
|
(0, import_react25.useEffect)(() => {
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4354
|
+
const expectedSelectedItem = getSelectedOption(
|
|
4355
|
+
selectedOptionValue,
|
|
4356
|
+
options
|
|
4357
|
+
);
|
|
4358
|
+
if ((expectedSelectedItem == null ? void 0 : expectedSelectedItem.value) !== (selectedItem == null ? void 0 : selectedItem.value)) {
|
|
4359
|
+
setSelectedItem(expectedSelectedItem);
|
|
4364
4360
|
}
|
|
4365
|
-
}, [selectedOptionValue, options,
|
|
4361
|
+
}, [selectedOptionValue, options, selectedItem]);
|
|
4366
4362
|
(0, import_react25.useEffect)(() => {
|
|
4367
4363
|
onOpenChange && onOpenChange(downshiftIsOpen);
|
|
4368
4364
|
}, [downshiftIsOpen, onOpenChange]);
|
|
@@ -4597,33 +4593,37 @@ var ChildrenWrapper = import_styled20.default.div`
|
|
|
4597
4593
|
overflow: auto;
|
|
4598
4594
|
height: 100%;
|
|
4599
4595
|
`;
|
|
4600
|
-
var Backdrop = (
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4596
|
+
var Backdrop = import_react27.default.forwardRef(
|
|
4597
|
+
(_a, ref) => {
|
|
4598
|
+
var _b = _a, {
|
|
4599
|
+
children,
|
|
4600
|
+
isOpen,
|
|
4601
|
+
zIndex = 1e3,
|
|
4602
|
+
backgroundColor = "backdropDark"
|
|
4603
|
+
} = _b, props = __objRest(_b, [
|
|
4604
|
+
"children",
|
|
4605
|
+
"isOpen",
|
|
4606
|
+
"zIndex",
|
|
4607
|
+
"backgroundColor"
|
|
4608
|
+
]);
|
|
4609
|
+
const { stage, shouldMount } = (0, import_transition_hook.useTransition)(isOpen, duration);
|
|
4610
|
+
use_prevent_scroll_default("html", isOpen);
|
|
4611
|
+
return /* @__PURE__ */ import_react27.default.createElement(import_react27.default.Fragment, null, shouldMount && /* @__PURE__ */ import_react27.default.createElement(
|
|
4612
|
+
BackdropWrapper,
|
|
4613
|
+
__spreadValues({
|
|
4614
|
+
ref,
|
|
4615
|
+
backgroundColor,
|
|
4616
|
+
zIndex,
|
|
4617
|
+
style: {
|
|
4618
|
+
transition: `opacity ${duration}ms`,
|
|
4619
|
+
opacity: stage === "enter" ? 1 : 0
|
|
4620
|
+
}
|
|
4621
|
+
}, props),
|
|
4622
|
+
/* @__PURE__ */ import_react27.default.createElement(ChildrenWrapper, null, children)
|
|
4623
|
+
));
|
|
4624
|
+
}
|
|
4625
|
+
);
|
|
4626
|
+
Backdrop.displayName = "Backdrop";
|
|
4627
4627
|
var backdrop_default = Backdrop;
|
|
4628
4628
|
|
|
4629
4629
|
// src/components/modal/modal.tsx
|
|
@@ -4854,6 +4854,7 @@ var Modal = import_react28.default.forwardRef(
|
|
|
4854
4854
|
"initialFocus"
|
|
4855
4855
|
]);
|
|
4856
4856
|
var _a2;
|
|
4857
|
+
const backdropRef = (0, import_react28.useRef)(null);
|
|
4857
4858
|
const titleId = id ? `${id}-modal-title` : "modal-title";
|
|
4858
4859
|
const hasButtons = mainButton || secondaryButton || alternativeButton ? true : false;
|
|
4859
4860
|
const closeClickHandler = (e) => {
|
|
@@ -4864,7 +4865,34 @@ var Modal = import_react28.default.forwardRef(
|
|
|
4864
4865
|
}
|
|
4865
4866
|
onCloseClick(e);
|
|
4866
4867
|
};
|
|
4867
|
-
|
|
4868
|
+
(0, import_react28.useEffect)(() => {
|
|
4869
|
+
if (!isOpen || !backdropRef.current) {
|
|
4870
|
+
return;
|
|
4871
|
+
}
|
|
4872
|
+
const container = backdropRef.current.parentElement;
|
|
4873
|
+
if (!container) {
|
|
4874
|
+
return;
|
|
4875
|
+
}
|
|
4876
|
+
const siblings = Array.from(container.children).filter(
|
|
4877
|
+
(child) => child !== backdropRef.current && child instanceof HTMLElement
|
|
4878
|
+
);
|
|
4879
|
+
siblings.forEach((sibling) => {
|
|
4880
|
+
if (!sibling.hasAttribute("aria-hidden")) {
|
|
4881
|
+
sibling.setAttribute("aria-hidden", "true");
|
|
4882
|
+
sibling.setAttribute("data-lens-modal-hidden", "true");
|
|
4883
|
+
}
|
|
4884
|
+
});
|
|
4885
|
+
return () => {
|
|
4886
|
+
const hiddenElements = document.querySelectorAll(
|
|
4887
|
+
"[data-lens-modal-hidden]"
|
|
4888
|
+
);
|
|
4889
|
+
hiddenElements.forEach((element) => {
|
|
4890
|
+
element.removeAttribute("aria-hidden");
|
|
4891
|
+
element.removeAttribute("data-lens-modal-hidden");
|
|
4892
|
+
});
|
|
4893
|
+
};
|
|
4894
|
+
}, [isOpen]);
|
|
4895
|
+
return /* @__PURE__ */ import_react28.default.createElement(backdrop_default, __spreadValues({ ref: backdropRef, isOpen, zIndex }, props), /* @__PURE__ */ import_react28.default.createElement(
|
|
4868
4896
|
container_default,
|
|
4869
4897
|
{
|
|
4870
4898
|
height: "100%",
|
|
@@ -5363,7 +5391,7 @@ var getSelectedOption2 = (value, options) => {
|
|
|
5363
5391
|
}
|
|
5364
5392
|
return null;
|
|
5365
5393
|
};
|
|
5366
|
-
var
|
|
5394
|
+
var didSelectedOptionValueChange = (selectedOptionValue, prevSelectedItem) => {
|
|
5367
5395
|
const didChange = (selectedOptionValue || null) != (prevSelectedItem == null ? void 0 : prevSelectedItem.value);
|
|
5368
5396
|
return didChange;
|
|
5369
5397
|
};
|
|
@@ -5550,7 +5578,7 @@ var Typeahead = (0, import_react32.forwardRef)(
|
|
|
5550
5578
|
snap: true
|
|
5551
5579
|
});
|
|
5552
5580
|
(0, import_react32.useEffect)(() => {
|
|
5553
|
-
if (
|
|
5581
|
+
if (didSelectedOptionValueChange(selectedOptionValue, prevSelectedItem)) {
|
|
5554
5582
|
const item = getSelectedOption2(selectedOptionValue, options);
|
|
5555
5583
|
setPrevSelectedItem(item);
|
|
5556
5584
|
setSelectedItem(item);
|