geoiq-frontend-ui-kit 1.8.9 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/molecules/tabs/tabs.d.ts.map +1 -1
- package/dist/components/molecules/tabs/tabs.types.d.ts +1 -0
- package/dist/components/molecules/tabs/tabs.types.d.ts.map +1 -1
- package/dist/index.es100.js +17 -14
- package/dist/index.es100.js.map +1 -1
- package/dist/index.es101.js +13 -27
- package/dist/index.es101.js.map +1 -1
- package/dist/index.es102.js +7 -15
- package/dist/index.es102.js.map +1 -1
- package/dist/index.es103.js +98 -20
- package/dist/index.es103.js.map +1 -1
- package/dist/index.es104.js +61 -9
- package/dist/index.es104.js.map +1 -1
- package/dist/index.es105.js +54 -97
- package/dist/index.es105.js.map +1 -1
- package/dist/index.es106.js +8 -63
- package/dist/index.es106.js.map +1 -1
- package/dist/index.es107.js +68 -55
- package/dist/index.es107.js.map +1 -1
- package/dist/index.es108.js +184 -7
- package/dist/index.es108.js.map +1 -1
- package/dist/index.es109.js +21 -66
- package/dist/index.es109.js.map +1 -1
- package/dist/index.es11.js +1 -1
- package/dist/index.es110.js +196 -179
- package/dist/index.es110.js.map +1 -1
- package/dist/index.es111.js +23 -23
- package/dist/index.es111.js.map +1 -1
- package/dist/index.es112.js +22 -203
- package/dist/index.es112.js.map +1 -1
- package/dist/index.es113.js +34 -8
- package/dist/index.es113.js.map +1 -1
- package/dist/index.es114.js +270 -20
- package/dist/index.es114.js.map +1 -1
- package/dist/index.es116.js +1 -1
- package/dist/index.es117.js +42 -34
- package/dist/index.es117.js.map +1 -1
- package/dist/index.es118.js +6 -35
- package/dist/index.es118.js.map +1 -1
- package/dist/index.es12.js +1 -1
- package/dist/index.es120.js +38 -12
- package/dist/index.es120.js.map +1 -1
- package/dist/index.es121.js +38 -44
- package/dist/index.es121.js.map +1 -1
- package/dist/index.es122.js +35 -8
- package/dist/index.es122.js.map +1 -1
- package/dist/index.es123.js +39 -42
- package/dist/index.es123.js.map +1 -1
- package/dist/index.es124.js +13 -22
- package/dist/index.es124.js.map +1 -1
- package/dist/index.es125.js +72 -258
- package/dist/index.es125.js.map +1 -1
- package/dist/index.es126.js +13 -10
- package/dist/index.es126.js.map +1 -1
- package/dist/index.es127.js +5 -16
- package/dist/index.es127.js.map +1 -1
- package/dist/index.es128.js +11 -44
- package/dist/index.es128.js.map +1 -1
- package/dist/index.es129.js +11 -5
- package/dist/index.es129.js.map +1 -1
- package/dist/index.es130.js +2 -11
- package/dist/index.es130.js.map +1 -1
- package/dist/index.es131.js +11 -10
- package/dist/index.es131.js.map +1 -1
- package/dist/index.es132.js +25 -2
- package/dist/index.es132.js.map +1 -1
- package/dist/index.es133.js +42 -10
- package/dist/index.es133.js.map +1 -1
- package/dist/index.es134.js +12 -21
- package/dist/index.es134.js.map +1 -1
- package/dist/index.es135.js +284 -33
- package/dist/index.es135.js.map +1 -1
- package/dist/index.es136.js +35 -11
- package/dist/index.es136.js.map +1 -1
- package/dist/index.es137.js +11 -286
- package/dist/index.es137.js.map +1 -1
- package/dist/index.es138.js +1 -1
- package/dist/index.es139.js +1 -1
- package/dist/index.es140.js +1 -1
- package/dist/index.es141.js +1 -1
- package/dist/index.es142.js +2 -2
- package/dist/index.es143.js +1 -1
- package/dist/index.es144.js +1 -1
- package/dist/index.es16.js +1 -1
- package/dist/index.es19.js +1 -1
- package/dist/index.es20.js +1 -1
- package/dist/index.es21.js +3 -3
- package/dist/index.es22.js +1 -1
- package/dist/index.es25.js +1 -1
- package/dist/index.es28.js +1 -1
- package/dist/index.es30.js +1 -1
- package/dist/index.es32.js +1 -1
- package/dist/index.es33.js +33 -33
- package/dist/index.es33.js.map +1 -1
- package/dist/index.es43.js +2 -2
- package/dist/index.es44.js +1 -1
- package/dist/index.es45.js +1 -1
- package/dist/index.es50.js +5 -5
- package/dist/index.es50.js.map +1 -1
- package/dist/index.es51.js +1 -1
- package/dist/index.es52.js +1 -1
- package/dist/index.es63.js +1 -1
- package/dist/index.es65.js +5 -5
- package/dist/index.es66.js +1 -1
- package/dist/index.es67.js +7 -7
- package/dist/index.es68.js +2 -2
- package/dist/index.es74.js +1 -1
- package/dist/index.es91.js +84 -9
- package/dist/index.es91.js.map +1 -1
- package/dist/index.es92.js +122 -87
- package/dist/index.es92.js.map +1 -1
- package/dist/index.es93.js +10 -67
- package/dist/index.es93.js.map +1 -1
- package/dist/index.es95.js +11 -7
- package/dist/index.es95.js.map +1 -1
- package/dist/index.es96.js +18 -39
- package/dist/index.es96.js.map +1 -1
- package/dist/index.es97.js +7 -42
- package/dist/index.es97.js.map +1 -1
- package/dist/index.es98.js +67 -81
- package/dist/index.es98.js.map +1 -1
- package/dist/index.es99.js +33 -121
- package/dist/index.es99.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/tabs/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAA;AAIrD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AA6BxC,QAAA,MAAM,WAAW,0JAYf,CAAA;AAGF,QAAA,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/tabs/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAA;AAIrD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AA6BxC,QAAA,MAAM,WAAW,0JAYf,CAAA;AAGF,QAAA,MAAM,IAAI,kFAuDT,CAAA;AAED,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.types.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/tabs/tabs.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,MAAM,WAAW,SACf,SACE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAC7C,YAAY,CAAC,OAAO,YAAY,CAAC;IACnC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAA;QACb,KAAK,EAAE,MAAM,CAAA;QACb,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"tabs.types.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/tabs/tabs.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,MAAM,WAAW,SACf,SACE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAC7C,YAAY,CAAC,OAAO,YAAY,CAAC;IACnC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAA;QACb,KAAK,EAAE,MAAM,CAAA;QACb,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAAA;QAC1B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;KACxB,EAAE,CAAA;IACH,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB"}
|
package/dist/index.es100.js
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import e from "react";
|
|
2
|
+
import { AccordionDemo as m } from "./index.es4.js";
|
|
3
|
+
import { Typography as a } from "./index.es19.js";
|
|
4
|
+
const i = ({ servingStates: t }) => t && t.length > 0 ? /* @__PURE__ */ e.createElement(
|
|
5
|
+
m,
|
|
4
6
|
{
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
trigger: /* @__PURE__ */ e.createElement(a, { variant: "body1", className: "text-light-2" }, "Serving states"),
|
|
8
|
+
content: /* @__PURE__ */ e.createElement("div", { className: "flex flex-wrap gap-1" }, t.map((r, o) => /* @__PURE__ */ e.createElement(
|
|
9
|
+
a,
|
|
10
|
+
{
|
|
11
|
+
key: r + o,
|
|
12
|
+
variant: "body4",
|
|
13
|
+
className: "rounded bg-primary-1 px-2 py-0.5 text-xs text-light-3"
|
|
9
14
|
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
+
r
|
|
16
|
+
))),
|
|
17
|
+
triggerProps: { className: "cursor-pointer my-2" }
|
|
15
18
|
}
|
|
16
|
-
);
|
|
19
|
+
) : null;
|
|
17
20
|
export {
|
|
18
|
-
|
|
21
|
+
i as ServingStatesSection
|
|
19
22
|
};
|
|
20
23
|
//# sourceMappingURL=index.es100.js.map
|
package/dist/index.es100.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es100.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index.es100.js","sources":["../src/components/ui/agent-snippet-view/components/serving-states-section.tsx"],"sourcesContent":["import React from 'react'\nimport { Accordion } from '@/components/atoms/accordion'\nimport { Typography } from '@/components/atoms/typography'\n\nexport const ServingStatesSection: React.FC<{\n servingStates?: string[]\n}> = ({ servingStates }) =>\n servingStates && servingStates.length > 0 ? (\n <Accordion\n trigger={\n <Typography variant=\"body1\" className=\"text-light-2\">\n Serving states\n </Typography>\n }\n content={\n <div className=\"flex flex-wrap gap-1\">\n {servingStates.map((state, idx) => (\n <Typography\n key={state + idx}\n variant=\"body4\"\n className=\"rounded bg-primary-1 px-2 py-0.5 text-xs text-light-3\"\n >\n {state}\n </Typography>\n ))}\n </div>\n }\n triggerProps={{ className: 'cursor-pointer my-2' }}\n />\n ) : null\n"],"names":["ServingStatesSection","servingStates","React","Accordion","Typography","state","idx"],"mappings":";;;AAIO,MAAMA,IAER,CAAC,EAAE,eAAAC,QACNA,KAAiBA,EAAc,SAAS,IACtCC,gBAAAA,EAAA;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,SACED,gBAAAA,EAAA,cAACE,GAAA,EAAW,SAAQ,SAAQ,WAAU,kBAAe,gBAErD;AAAA,IAEF,yCACG,OAAA,EAAI,WAAU,0BACZH,EAAc,IAAI,CAACI,GAAOC,MACzBJ,gBAAAA,EAAA;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,KAAKC,IAAQC;AAAA,QACb,SAAQ;AAAA,QACR,WAAU;AAAA,MAAA;AAAA,MAETD;AAAA,IAAA,CAEJ,CACH;AAAA,IAEF,cAAc,EAAE,WAAW,sBAAA;AAAA,EAAsB;AACnD,IACE;"}
|
package/dist/index.es101.js
CHANGED
|
@@ -1,37 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { AccordionDemo as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
l,
|
|
1
|
+
import e from "react";
|
|
2
|
+
import { AccordionDemo as m } from "./index.es4.js";
|
|
3
|
+
import { Typography as a } from "./index.es19.js";
|
|
4
|
+
const i = ({ types: t }) => t && t.length > 0 ? /* @__PURE__ */ e.createElement(
|
|
5
|
+
m,
|
|
7
6
|
{
|
|
8
|
-
trigger: /* @__PURE__ */
|
|
9
|
-
content: /* @__PURE__ */
|
|
10
|
-
|
|
7
|
+
trigger: /* @__PURE__ */ e.createElement(a, { variant: "body1", className: "text-light-2" }, "Types"),
|
|
8
|
+
content: /* @__PURE__ */ e.createElement("div", { className: "flex flex-wrap gap-1" }, t.map((r, o) => /* @__PURE__ */ e.createElement(
|
|
9
|
+
a,
|
|
11
10
|
{
|
|
12
|
-
key:
|
|
13
|
-
|
|
11
|
+
key: r + o,
|
|
12
|
+
variant: "body4",
|
|
13
|
+
className: "rounded bg-primary-1 px-2 py-0.5 text-xs text-light-3"
|
|
14
14
|
},
|
|
15
|
-
|
|
16
|
-
o,
|
|
17
|
-
{
|
|
18
|
-
size: "md",
|
|
19
|
-
imageSrc: e.imageSrc || "",
|
|
20
|
-
alt: e.alt || e.name,
|
|
21
|
-
fallback: e.fallback || e.name?.[0].toUpperCase() || "",
|
|
22
|
-
avatarProps: {
|
|
23
|
-
className: "border border-neutral-1 h-8 w-8 bg-light-1"
|
|
24
|
-
},
|
|
25
|
-
...e
|
|
26
|
-
}
|
|
27
|
-
),
|
|
28
|
-
/* @__PURE__ */ a.createElement(r, { variant: "body2" }, e.name)
|
|
15
|
+
r
|
|
29
16
|
))),
|
|
30
|
-
contentProps: { className: "max-h-[400px] overflow-y-auto" },
|
|
31
17
|
triggerProps: { className: "cursor-pointer my-2" }
|
|
32
18
|
}
|
|
33
19
|
) : null;
|
|
34
20
|
export {
|
|
35
|
-
|
|
21
|
+
i as TypeSection
|
|
36
22
|
};
|
|
37
23
|
//# sourceMappingURL=index.es101.js.map
|
package/dist/index.es101.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es101.js","sources":["../src/components/ui/agent-snippet-view/components/
|
|
1
|
+
{"version":3,"file":"index.es101.js","sources":["../src/components/ui/agent-snippet-view/components/agent-type-section.tsx"],"sourcesContent":["import React from 'react'\nimport { Accordion } from '@/components/atoms/accordion'\nimport { Typography } from '@/components/atoms/typography'\n\nexport const TypeSection: React.FC<{\n types?: string[]\n}> = ({ types }) =>\n types && types.length > 0 ? (\n <Accordion\n trigger={\n <Typography variant=\"body1\" className=\"text-light-2\">\n Types\n </Typography>\n }\n content={\n <div className=\"flex flex-wrap gap-1\">\n {types.map((type, idx) => (\n <Typography\n key={type + idx}\n variant=\"body4\"\n className=\"rounded bg-primary-1 px-2 py-0.5 text-xs text-light-3\"\n >\n {type}\n </Typography>\n ))}\n </div>\n }\n triggerProps={{ className: 'cursor-pointer my-2' }}\n />\n ) : null\n"],"names":["TypeSection","types","React","Accordion","Typography","type","idx"],"mappings":";;;AAIO,MAAMA,IAER,CAAC,EAAE,OAAAC,QACNA,KAASA,EAAM,SAAS,IACtBC,gBAAAA,EAAA;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,SACED,gBAAAA,EAAA,cAACE,GAAA,EAAW,SAAQ,SAAQ,WAAU,kBAAe,OAErD;AAAA,IAEF,yCACG,OAAA,EAAI,WAAU,0BACZH,EAAM,IAAI,CAACI,GAAMC,MAChBJ,gBAAAA,EAAA;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,KAAKC,IAAOC;AAAA,QACZ,SAAQ;AAAA,QACR,WAAU;AAAA,MAAA;AAAA,MAETD;AAAA,IAAA,CAEJ,CACH;AAAA,IAEF,cAAc,EAAE,WAAW,sBAAA;AAAA,EAAsB;AACnD,IACE;"}
|
package/dist/index.es102.js
CHANGED
|
@@ -1,23 +1,15 @@
|
|
|
1
1
|
import e from "react";
|
|
2
|
-
import { AccordionDemo as
|
|
3
|
-
import { Typography as
|
|
4
|
-
const
|
|
5
|
-
|
|
2
|
+
import { AccordionDemo as r } from "./index.es4.js";
|
|
3
|
+
import { Typography as o } from "./index.es19.js";
|
|
4
|
+
const n = ({ sharedMarkets: t }) => t ? /* @__PURE__ */ e.createElement(
|
|
5
|
+
r,
|
|
6
6
|
{
|
|
7
|
-
trigger: /* @__PURE__ */ e.createElement(
|
|
8
|
-
content: /* @__PURE__ */ e.createElement("div",
|
|
9
|
-
a,
|
|
10
|
-
{
|
|
11
|
-
key: r + o,
|
|
12
|
-
variant: "body4",
|
|
13
|
-
className: "rounded bg-primary-1 px-2 py-0.5 text-xs text-light-3"
|
|
14
|
-
},
|
|
15
|
-
r
|
|
16
|
-
))),
|
|
7
|
+
trigger: /* @__PURE__ */ e.createElement(o, { variant: "body1", className: "text-light-2" }, "Shared markets"),
|
|
8
|
+
content: /* @__PURE__ */ e.createElement("div", null, t),
|
|
17
9
|
triggerProps: { className: "cursor-pointer my-2" }
|
|
18
10
|
}
|
|
19
11
|
) : null;
|
|
20
12
|
export {
|
|
21
|
-
|
|
13
|
+
n as SharedMarketsSection
|
|
22
14
|
};
|
|
23
15
|
//# sourceMappingURL=index.es102.js.map
|
package/dist/index.es102.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es102.js","sources":["../src/components/ui/agent-snippet-view/components/
|
|
1
|
+
{"version":3,"file":"index.es102.js","sources":["../src/components/ui/agent-snippet-view/components/shared-markets-section.tsx"],"sourcesContent":["import React from 'react'\nimport { Accordion } from '@/components/atoms/accordion'\nimport { Typography } from '@/components/atoms/typography'\n\nexport const SharedMarketsSection: React.FC<{\n sharedMarkets?: React.ReactNode\n}> = ({ sharedMarkets }) =>\n sharedMarkets ? (\n <Accordion\n trigger={\n <Typography variant=\"body1\" className=\"text-light-2\">\n Shared markets\n </Typography>\n }\n content={<div>{sharedMarkets}</div>}\n triggerProps={{ className: 'cursor-pointer my-2' }}\n />\n ) : null\n"],"names":["SharedMarketsSection","sharedMarkets","React","Accordion","Typography"],"mappings":";;;AAIO,MAAMA,IAER,CAAC,EAAE,eAAAC,EAAA,MACNA,IACEC,gBAAAA,EAAA;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,SACED,gBAAAA,EAAA,cAACE,GAAA,EAAW,SAAQ,SAAQ,WAAU,kBAAe,gBAErD;AAAA,IAEF,SAASF,gBAAAA,EAAA,cAAC,OAAA,MAAKD,CAAc;AAAA,IAC7B,cAAc,EAAE,WAAW,sBAAA;AAAA,EAAsB;AACnD,IACE;"}
|
package/dist/index.es103.js
CHANGED
|
@@ -1,23 +1,101 @@
|
|
|
1
|
-
import e from "react";
|
|
2
|
-
import { AccordionDemo as
|
|
3
|
-
import { Typography as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import e, { useRef as m, useState as N, useEffect as b } from "react";
|
|
2
|
+
import { AccordionDemo as y } from "./index.es4.js";
|
|
3
|
+
import { Typography as r } from "./index.es19.js";
|
|
4
|
+
import { SearchIcon as w, ExternalLink as _ } from "lucide-react";
|
|
5
|
+
import { Button as S } from "./index.es9.js";
|
|
6
|
+
import { Input as k } from "./index.es11.js";
|
|
7
|
+
import "clsx";
|
|
8
|
+
import "tailwind-merge";
|
|
9
|
+
import "./index.es55.js";
|
|
10
|
+
import "./index.es84.js";
|
|
11
|
+
import "./index.es29.js";
|
|
12
|
+
import "./index.es35.js";
|
|
13
|
+
import { Spinner as z } from "./index.es59.js";
|
|
14
|
+
const G = ({
|
|
15
|
+
properties: n = [],
|
|
16
|
+
title: s = "Properties added",
|
|
17
|
+
property_count: i,
|
|
18
|
+
onRedirect: o,
|
|
19
|
+
onReachBottom: d,
|
|
20
|
+
onSearchChange: g,
|
|
21
|
+
loading: f = !1
|
|
22
|
+
}) => {
|
|
23
|
+
const c = m(null), p = m(!1), [u, h] = N(""), E = (t) => {
|
|
24
|
+
h(t.target.value), g?.(t.target.value), c.current && (c.current.scrollTop = 0);
|
|
25
|
+
};
|
|
26
|
+
b(() => {
|
|
27
|
+
p.current = !1;
|
|
28
|
+
}, [n]);
|
|
29
|
+
const x = (t) => {
|
|
30
|
+
const { scrollTop: l, scrollHeight: a, clientHeight: v } = t.currentTarget;
|
|
31
|
+
l + v >= a - 5 && d?.();
|
|
32
|
+
};
|
|
33
|
+
return /* @__PURE__ */ e.createElement(
|
|
34
|
+
y,
|
|
35
|
+
{
|
|
36
|
+
trigger: /* @__PURE__ */ e.createElement(r, { variant: "body1", className: "text-light-2" }, s, " (", i, ")"),
|
|
37
|
+
content: /* @__PURE__ */ e.createElement(
|
|
38
|
+
"div",
|
|
39
|
+
{
|
|
40
|
+
ref: c,
|
|
41
|
+
onScroll: x,
|
|
42
|
+
className: "max-h-[400px] overflow-y-auto"
|
|
43
|
+
},
|
|
44
|
+
/* @__PURE__ */ e.createElement("div", { className: "w-full sticky top-0 bg-light-1 z-50 pb-2" }, /* @__PURE__ */ e.createElement(
|
|
45
|
+
k,
|
|
46
|
+
{
|
|
47
|
+
placeholder: "Search properties",
|
|
48
|
+
prefix: /* @__PURE__ */ e.createElement(w, { className: "stroke-light-2", size: 20 }),
|
|
49
|
+
value: u,
|
|
50
|
+
onChange: E
|
|
51
|
+
}
|
|
52
|
+
)),
|
|
53
|
+
n.length === 0 ? /* @__PURE__ */ e.createElement("div", { className: "flex justify-center items-center h-20 text-light-3" }, "No property found") : /* @__PURE__ */ e.createElement(e.Fragment, null, n.map((t) => /* @__PURE__ */ e.createElement(
|
|
54
|
+
"div",
|
|
55
|
+
{
|
|
56
|
+
key: t.id,
|
|
57
|
+
className: "rounded-[12px] border border-neutral-1 bg-light-2 p-3 mb-3 flex flex-col gap-2 "
|
|
58
|
+
},
|
|
59
|
+
/* @__PURE__ */ e.createElement("div", { className: "w-full flex justify-between items-start" }, /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { className: "flex items-center gap-2 mb-3 p-0" }, /* @__PURE__ */ e.createElement(r, { variant: "body4", className: "text-light-2 " }, t.name), /* @__PURE__ */ e.createElement(
|
|
60
|
+
S,
|
|
61
|
+
{
|
|
62
|
+
variant: "secondary",
|
|
63
|
+
size: "sm",
|
|
64
|
+
className: "w-fit ml-auto",
|
|
65
|
+
onClick: () => o?.(t)
|
|
66
|
+
},
|
|
67
|
+
/* @__PURE__ */ e.createElement(
|
|
68
|
+
_,
|
|
69
|
+
{
|
|
70
|
+
size: 16,
|
|
71
|
+
className: "text-light-1 cursor-pointer bg-light-1"
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
)), /* @__PURE__ */ e.createElement("div", { className: "flex w-[372px] rounded-lg p-3 bg-light-1" }, t.property_details && t.property_details.length > 0 && /* @__PURE__ */ e.createElement("div", { className: "flex w-full rounded-lg p-0 bg-light-1" }, t.property_details && t.property_details.length > 0 && t.property_details.map(
|
|
75
|
+
(l, a) => /* @__PURE__ */ e.createElement(e.Fragment, { key: a }, /* @__PURE__ */ e.createElement("div", { className: "flex flex-col min-w-0" }, /* @__PURE__ */ e.createElement("div", { className: "truncate font-medium" }, /* @__PURE__ */ e.createElement(
|
|
76
|
+
r,
|
|
77
|
+
{
|
|
78
|
+
variant: "body6",
|
|
79
|
+
className: "text-light-4"
|
|
80
|
+
},
|
|
81
|
+
l.name
|
|
82
|
+
), " "), /* @__PURE__ */ e.createElement("div", { className: "truncate text-light-3" }, /* @__PURE__ */ e.createElement(
|
|
83
|
+
r,
|
|
84
|
+
{
|
|
85
|
+
variant: "body6",
|
|
86
|
+
className: "text-light-2"
|
|
87
|
+
},
|
|
88
|
+
l.value
|
|
89
|
+
))), t.property_details && a !== t.property_details.length - 1 && /* @__PURE__ */ e.createElement("div", { className: "h-auto w-px border-l mx-3 border-neutral-2" }))
|
|
90
|
+
)))))
|
|
91
|
+
)), f && /* @__PURE__ */ e.createElement("div", { className: "left-0 right-0 bottom-0 flex justify-center items-center py-4" }, /* @__PURE__ */ e.createElement(z, null)))
|
|
92
|
+
),
|
|
93
|
+
triggerProps: { className: "cursor-pointer my-2" },
|
|
94
|
+
contentProps: { className: "max-h-[400px] overflow-y-auto" }
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
};
|
|
20
98
|
export {
|
|
21
|
-
|
|
99
|
+
G as PropertiesAddedSection
|
|
22
100
|
};
|
|
23
101
|
//# sourceMappingURL=index.es103.js.map
|
package/dist/index.es103.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es103.js","sources":["../src/components/ui/agent-snippet-view/components/
|
|
1
|
+
{"version":3,"file":"index.es103.js","sources":["../src/components/ui/agent-snippet-view/components/properties-added-section.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react'\nimport { Accordion } from '@/components/atoms/accordion'\nimport { Typography } from '@/components/atoms/typography'\nimport { ExternalLink, SearchIcon } from 'lucide-react'\nimport { PropertiesAddedSectionProps } from '../agent-snippet-view.types'\nimport { Button, Input, Spinner } from '@/index'\n\nexport const PropertiesAddedSection: React.FC<PropertiesAddedSectionProps> = ({\n properties = [],\n title = 'Properties added',\n property_count,\n onRedirect,\n onReachBottom,\n onSearchChange,\n loading = false,\n}) => {\n const contentRef = useRef<HTMLDivElement>(null)\n const isFetchingRef = useRef(false)\n const [search, setSearch] = useState('')\n\n const handleInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n setSearch(e.target.value)\n onSearchChange?.(e.target.value)\n if (contentRef.current) {\n contentRef.current.scrollTop = 0\n }\n }\n\n useEffect(() => {\n isFetchingRef.current = false\n }, [properties])\n\n const handleScroll = (e: React.UIEvent<HTMLDivElement>) => {\n const { scrollTop, scrollHeight, clientHeight } = e.currentTarget\n if (scrollTop + clientHeight >= scrollHeight - 5) {\n onReachBottom?.()\n }\n }\n return (\n <Accordion\n trigger={\n <Typography variant=\"body1\" className=\"text-light-2\">\n {title} ({property_count})\n </Typography>\n }\n content={\n <div\n ref={contentRef}\n onScroll={handleScroll}\n className=\"max-h-[400px] overflow-y-auto\"\n >\n <div className=\"w-full sticky top-0 bg-light-1 z-50 pb-2\">\n <Input\n placeholder=\"Search properties\"\n prefix={<SearchIcon className=\"stroke-light-2\" size={20} />}\n value={search}\n onChange={handleInputChange}\n />\n </div>\n {properties.length === 0 ? (\n <div className=\"flex justify-center items-center h-20 text-light-3\">\n No property found\n </div>\n ) : (\n <>\n {properties.map((property) => (\n <div\n key={property.id}\n className=\"rounded-[12px] border border-neutral-1 bg-light-2 p-3 mb-3 flex flex-col gap-2 \"\n >\n <div className=\"w-full flex justify-between items-start\">\n <div>\n <div className=\"flex items-center gap-2 mb-3 p-0\">\n <Typography variant=\"body4\" className=\"text-light-2 \">\n {property.name}\n </Typography>\n <Button\n variant=\"secondary\"\n size=\"sm\"\n className=\"w-fit ml-auto\"\n onClick={() => onRedirect?.(property)}\n >\n <ExternalLink\n size={16}\n className=\"text-light-1 cursor-pointer bg-light-1\"\n />\n </Button>\n </div>\n <div className=\"flex w-[372px] rounded-lg p-3 bg-light-1\">\n {/* Render features only */}\n {property.property_details &&\n property.property_details.length > 0 && (\n <div className=\"flex w-full rounded-lg p-0 bg-light-1\">\n {property.property_details &&\n property.property_details.length > 0 &&\n property.property_details.map(\n (feature, idx) => (\n <React.Fragment key={idx}>\n <div className=\"flex flex-col min-w-0\">\n <div className=\"truncate font-medium\">\n <Typography\n variant=\"body6\"\n className=\"text-light-4\"\n >\n {feature.name}\n </Typography>{' '}\n </div>\n <div className=\"truncate text-light-3\">\n <Typography\n variant=\"body6\"\n className=\"text-light-2\"\n >\n {feature.value}\n </Typography>\n </div>\n </div>\n {property.property_details &&\n idx !==\n property.property_details.length -\n 1 && (\n <div className=\"h-auto w-px border-l mx-3 border-neutral-2\" />\n )}\n </React.Fragment>\n )\n )}\n </div>\n )}\n </div>\n </div>\n </div>\n </div>\n ))}\n {loading && (\n <div className=\"left-0 right-0 bottom-0 flex justify-center items-center py-4\">\n <Spinner />\n </div>\n )}\n </>\n )}\n </div>\n }\n triggerProps={{ className: 'cursor-pointer my-2' }}\n contentProps={{ className: 'max-h-[400px] overflow-y-auto' }}\n />\n )\n}\n"],"names":["PropertiesAddedSection","properties","title","property_count","onRedirect","onReachBottom","onSearchChange","loading","contentRef","useRef","isFetchingRef","search","setSearch","useState","handleInputChange","e","useEffect","handleScroll","scrollTop","scrollHeight","clientHeight","React","Accordion","Typography","Input","SearchIcon","property","Button","ExternalLink","feature","idx","Spinner"],"mappings":"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"}
|
package/dist/index.es104.js
CHANGED
|
@@ -1,15 +1,67 @@
|
|
|
1
1
|
import e from "react";
|
|
2
|
-
import { AccordionDemo as
|
|
3
|
-
import { Typography as
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { AccordionDemo as c } from "./index.es4.js";
|
|
3
|
+
import { Typography as a } from "./index.es19.js";
|
|
4
|
+
import { Button as p } from "./index.es9.js";
|
|
5
|
+
import { FileText as d } from "lucide-react";
|
|
6
|
+
import { Spinner as g } from "./index.es59.js";
|
|
7
|
+
import { AvatarDemo as f } from "./index.es6.js";
|
|
8
|
+
import "clsx";
|
|
9
|
+
import "tailwind-merge";
|
|
10
|
+
import "./index.es55.js";
|
|
11
|
+
import "./index.es84.js";
|
|
12
|
+
import "./index.es29.js";
|
|
13
|
+
import "./index.es35.js";
|
|
14
|
+
const D = ({ notes: r, onAddNote: l, notesLoading: o }) => /* @__PURE__ */ e.createElement(
|
|
15
|
+
c,
|
|
6
16
|
{
|
|
7
|
-
trigger: /* @__PURE__ */ e.createElement(
|
|
8
|
-
content: /* @__PURE__ */ e.createElement("div", null,
|
|
9
|
-
|
|
17
|
+
trigger: /* @__PURE__ */ e.createElement(a, { variant: "body1", className: "my-2 text-light-2" }, "Call history & notes"),
|
|
18
|
+
content: /* @__PURE__ */ e.createElement("div", null, l && /* @__PURE__ */ e.createElement("div", { className: "w-full sticky top-0 bg-light-1 z-50 pb-2" }, /* @__PURE__ */ e.createElement(
|
|
19
|
+
p,
|
|
20
|
+
{
|
|
21
|
+
variant: "secondary",
|
|
22
|
+
size: "sm",
|
|
23
|
+
className: "flex w-fit justify-start",
|
|
24
|
+
onClick: l
|
|
25
|
+
},
|
|
26
|
+
/* @__PURE__ */ e.createElement(d, { size: 16, className: "mr-1" }),
|
|
27
|
+
"Add notes"
|
|
28
|
+
)), o && /* @__PURE__ */ e.createElement("div", { className: "flex justify-center items-center py-2" }, /* @__PURE__ */ e.createElement(g, null)), r.length === 0 ? /* @__PURE__ */ e.createElement("div", { className: "py-4 text-start text-light-4" }, "Nothing here yet. Add a note to begin.") : r.map((t, m) => {
|
|
29
|
+
const i = new Date(t.timestamp), n = i.toLocaleDateString("en-GB"), s = i.toLocaleTimeString("en-US", {
|
|
30
|
+
hour: "2-digit",
|
|
31
|
+
minute: "2-digit"
|
|
32
|
+
});
|
|
33
|
+
return /* @__PURE__ */ e.createElement(
|
|
34
|
+
"div",
|
|
35
|
+
{
|
|
36
|
+
key: m,
|
|
37
|
+
className: `flex items-start gap-3 py-3 ${m !== r.length - 1 ? "border-b border-neutral-2" : ""}`
|
|
38
|
+
},
|
|
39
|
+
/* @__PURE__ */ e.createElement(
|
|
40
|
+
f,
|
|
41
|
+
{
|
|
42
|
+
imageSrc: t.user.image_url || "",
|
|
43
|
+
alt: t.user.first_name,
|
|
44
|
+
fallback: t.user.first_name?.[0]?.toUpperCase() || "",
|
|
45
|
+
size: "md"
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
/* @__PURE__ */ e.createElement("div", { className: "mr-3 flex w-full justify-between" }, /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
|
|
49
|
+
a,
|
|
50
|
+
{
|
|
51
|
+
variant: "body2",
|
|
52
|
+
className: "mt-1 max-w-[250px] whitespace-pre-line break-words text-light-3"
|
|
53
|
+
},
|
|
54
|
+
t.note
|
|
55
|
+
), t.call_duration && /* @__PURE__ */ e.createElement(a, { variant: "body6", className: "text-light-4 mt-1" }, t.call_duration)), /* @__PURE__ */ e.createElement("div", { className: "flex flex-col gap-1" }, /* @__PURE__ */ e.createElement(a, { variant: "body6", className: "text-light-2" }, n), /* @__PURE__ */ e.createElement(a, { variant: "body6", className: "text-light-4" }, s)))
|
|
56
|
+
);
|
|
57
|
+
})),
|
|
58
|
+
triggerProps: {
|
|
59
|
+
className: "cursor-pointer my-2"
|
|
60
|
+
},
|
|
61
|
+
contentProps: { className: "max-h-[400px] overflow-y-auto" }
|
|
10
62
|
}
|
|
11
|
-
)
|
|
63
|
+
);
|
|
12
64
|
export {
|
|
13
|
-
|
|
65
|
+
D as NotesSection
|
|
14
66
|
};
|
|
15
67
|
//# sourceMappingURL=index.es104.js.map
|
package/dist/index.es104.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es104.js","sources":["../src/components/ui/agent-snippet-view/components/
|
|
1
|
+
{"version":3,"file":"index.es104.js","sources":["../src/components/ui/agent-snippet-view/components/notes-section.tsx"],"sourcesContent":["import React from 'react'\nimport { Accordion } from '@/components/atoms/accordion'\n// import { Avatar } from '@/components/atoms/avatar'\nimport { Typography } from '@/components/atoms/typography'\nimport { Button } from '@/components/atoms/button'\nimport { FileText } from 'lucide-react'\nimport type { Note } from '../agent-snippet-view.types'\nimport { Spinner } from '@/components/unstyled/spinner'\nimport { Avatar } from '@/index'\n\nexport const NotesSection: React.FC<{\n notes: Note[]\n onAddNote?: () => void\n notesLoading?: boolean\n}> = ({ notes, onAddNote, notesLoading }) => (\n <Accordion\n trigger={\n <Typography variant=\"body1\" className=\"my-2 text-light-2\">\n Call history & notes\n </Typography>\n }\n content={\n <div>\n {onAddNote && (\n <div className=\"w-full sticky top-0 bg-light-1 z-50 pb-2\">\n <Button\n variant=\"secondary\"\n size=\"sm\"\n className=\"flex w-fit justify-start\"\n onClick={onAddNote}\n >\n <FileText size={16} className=\"mr-1\" />\n Add notes\n </Button>\n </div>\n )}\n {notesLoading && (\n <div className=\"flex justify-center items-center py-2\">\n <Spinner />\n </div>\n )}\n {notes.length === 0 ? (\n <div className=\"py-4 text-start text-light-4\">\n Nothing here yet. Add a note to begin.\n </div>\n ) : (\n notes.map((item, idx) => {\n const date = new Date(item.timestamp)\n const dateStr = date.toLocaleDateString('en-GB')\n const timeStr = date.toLocaleTimeString('en-US', {\n hour: '2-digit',\n minute: '2-digit',\n })\n // const fallback = item.user.first_name?.[0]?.toUpperCase() || ''\n return (\n <div\n key={idx}\n className={`flex items-start gap-3 py-3 ${idx !== notes.length - 1 ? 'border-b border-neutral-2' : ''}`}\n >\n <Avatar\n imageSrc={item.user.image_url || ''}\n alt={item.user.first_name}\n fallback={item.user.first_name?.[0]?.toUpperCase() || ''}\n size=\"md\"\n />\n <div className=\"mr-3 flex w-full justify-between\">\n <div>\n <Typography\n variant=\"body2\"\n className=\"mt-1 max-w-[250px] whitespace-pre-line break-words text-light-3\"\n >\n {item.note}\n </Typography>\n {item.call_duration && (\n <Typography variant=\"body6\" className=\"text-light-4 mt-1\">\n {item.call_duration}\n </Typography>\n )}\n </div>\n <div className=\"flex flex-col gap-1\">\n <Typography variant=\"body6\" className=\"text-light-2\">\n {dateStr}\n </Typography>\n <Typography variant=\"body6\" className=\"text-light-4\">\n {timeStr}\n </Typography>\n </div>\n </div>\n </div>\n )\n })\n )}\n </div>\n }\n triggerProps={{\n className: 'cursor-pointer my-2',\n }}\n contentProps={{ className: 'max-h-[400px] overflow-y-auto' }}\n />\n)\n"],"names":["NotesSection","notes","onAddNote","notesLoading","React","Accordion","Typography","Button","FileText","Spinner","item","idx","date","dateStr","timeStr","Avatar"],"mappings":";;;;;;;;;;;;;AAUO,MAAMA,IAIR,CAAC,EAAE,OAAAC,GAAO,WAAAC,GAAW,cAAAC,QACxBC,gBAAAA,EAAA;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,SACED,gBAAAA,EAAA,cAACE,GAAA,EAAW,SAAQ,SAAQ,WAAU,uBAAoB,sBAE1D;AAAA,IAEF,SACEF,gBAAAA,EAAA,cAAC,OAAA,MACEF,KACCE,gBAAAA,EAAA,cAAC,OAAA,EAAI,WAAU,2CAAA,GACbA,gBAAAA,EAAA;AAAA,MAACG;AAAA,MAAA;AAAA,QACC,SAAQ;AAAA,QACR,MAAK;AAAA,QACL,WAAU;AAAA,QACV,SAASL;AAAA,MAAA;AAAA,MAETE,gBAAAA,EAAA,cAACI,GAAA,EAAS,MAAM,IAAI,WAAU,QAAO;AAAA,MAAE;AAAA,IAAA,CAG3C,GAEDL,KACCC,gBAAAA,EAAA,cAAC,OAAA,EAAI,WAAU,wCAAA,GACbA,gBAAAA,EAAA,cAACK,GAAA,IAAQ,CACX,GAEDR,EAAM,WAAW,IAChBG,gBAAAA,EAAA,cAAC,OAAA,EAAI,WAAU,kCAA+B,wCAE9C,IAEAH,EAAM,IAAI,CAACS,GAAMC,MAAQ;AACvB,YAAMC,IAAO,IAAI,KAAKF,EAAK,SAAS,GAC9BG,IAAUD,EAAK,mBAAmB,OAAO,GACzCE,IAAUF,EAAK,mBAAmB,SAAS;AAAA,QAC/C,MAAM;AAAA,QACN,QAAQ;AAAA,MAAA,CACT;AAED,aACER,gBAAAA,EAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,KAAKO;AAAA,UACL,WAAW,+BAA+BA,MAAQV,EAAM,SAAS,IAAI,8BAA8B,EAAE;AAAA,QAAA;AAAA,QAErGG,gBAAAA,EAAA;AAAA,UAACW;AAAAA,UAAA;AAAA,YACC,UAAUL,EAAK,KAAK,aAAa;AAAA,YACjC,KAAKA,EAAK,KAAK;AAAA,YACf,UAAUA,EAAK,KAAK,aAAa,CAAC,GAAG,iBAAiB;AAAA,YACtD,MAAK;AAAA,UAAA;AAAA,QAAA;AAAA,QAEPN,gBAAAA,EAAA,cAAC,OAAA,EAAI,WAAU,mCAAA,mCACZ,OAAA,MACCA,gBAAAA,EAAA;AAAA,UAACE;AAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,WAAU;AAAA,UAAA;AAAA,UAETI,EAAK;AAAA,QAAA,GAEPA,EAAK,iBACJN,gBAAAA,EAAA,cAACE,KAAW,SAAQ,SAAQ,WAAU,oBAAA,GACnCI,EAAK,aACR,CAEJ,mCACC,OAAA,EAAI,WAAU,sBAAA,GACbN,gBAAAA,EAAA,cAACE,GAAA,EAAW,SAAQ,SAAQ,WAAU,kBACnCO,CACH,GACAT,gBAAAA,EAAA,cAACE,GAAA,EAAW,SAAQ,SAAQ,WAAU,eAAA,GACnCQ,CACH,CACF,CACF;AAAA,MAAA;AAAA,IAGN,CAAC,CAEL;AAAA,IAEF,cAAc;AAAA,MACZ,WAAW;AAAA,IAAA;AAAA,IAEb,cAAc,EAAE,WAAW,gCAAA;AAAA,EAAgC;AAC7D;"}
|
package/dist/index.es105.js
CHANGED
|
@@ -1,101 +1,58 @@
|
|
|
1
|
-
import e
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const x = (t) => {
|
|
30
|
-
const { scrollTop: l, scrollHeight: a, clientHeight: v } = t.currentTarget;
|
|
31
|
-
l + v >= a - 5 && d?.();
|
|
32
|
-
};
|
|
33
|
-
return /* @__PURE__ */ e.createElement(
|
|
34
|
-
y,
|
|
35
|
-
{
|
|
36
|
-
trigger: /* @__PURE__ */ e.createElement(r, { variant: "body1", className: "text-light-2" }, s, " (", i, ")"),
|
|
37
|
-
content: /* @__PURE__ */ e.createElement(
|
|
38
|
-
"div",
|
|
1
|
+
import e from "react";
|
|
2
|
+
import { X as o } from "lucide-react";
|
|
3
|
+
import { Button as r } from "./index.es9.js";
|
|
4
|
+
import { _Dialog as c } from "./index.es40.js";
|
|
5
|
+
import { Textarea as s } from "./index.es16.js";
|
|
6
|
+
import { Typography as p } from "./index.es19.js";
|
|
7
|
+
const x = ({
|
|
8
|
+
open: m,
|
|
9
|
+
noteValue: a,
|
|
10
|
+
onNoteChange: i,
|
|
11
|
+
onClose: t,
|
|
12
|
+
onSave: l
|
|
13
|
+
}) => /* @__PURE__ */ e.createElement(
|
|
14
|
+
c,
|
|
15
|
+
{
|
|
16
|
+
trigger: null,
|
|
17
|
+
contentClassName: "h-fit w-fit",
|
|
18
|
+
open: m,
|
|
19
|
+
onInteractOutside: t,
|
|
20
|
+
body: /* @__PURE__ */ e.createElement("div", { className: "p-4" }, /* @__PURE__ */ e.createElement(
|
|
21
|
+
p,
|
|
22
|
+
{
|
|
23
|
+
variant: "h3",
|
|
24
|
+
className: "mb-2 flex items-center justify-between text-light-2"
|
|
25
|
+
},
|
|
26
|
+
"Add notes",
|
|
27
|
+
/* @__PURE__ */ e.createElement(
|
|
28
|
+
o,
|
|
39
29
|
{
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
onClick: () => o?.(t)
|
|
66
|
-
},
|
|
67
|
-
/* @__PURE__ */ e.createElement(
|
|
68
|
-
_,
|
|
69
|
-
{
|
|
70
|
-
size: 16,
|
|
71
|
-
className: "text-light-1 cursor-pointer bg-light-1"
|
|
72
|
-
}
|
|
73
|
-
)
|
|
74
|
-
)), /* @__PURE__ */ e.createElement("div", { className: "flex w-[372px] rounded-lg p-3 bg-light-1" }, t.property_details && t.property_details.length > 0 && /* @__PURE__ */ e.createElement("div", { className: "flex w-full rounded-lg p-0 bg-light-1" }, t.property_details && t.property_details.length > 0 && t.property_details.map(
|
|
75
|
-
(l, a) => /* @__PURE__ */ e.createElement(e.Fragment, { key: a }, /* @__PURE__ */ e.createElement("div", { className: "flex flex-col min-w-0" }, /* @__PURE__ */ e.createElement("div", { className: "truncate font-medium" }, /* @__PURE__ */ e.createElement(
|
|
76
|
-
r,
|
|
77
|
-
{
|
|
78
|
-
variant: "body6",
|
|
79
|
-
className: "text-light-4"
|
|
80
|
-
},
|
|
81
|
-
l.name
|
|
82
|
-
), " "), /* @__PURE__ */ e.createElement("div", { className: "truncate text-light-3" }, /* @__PURE__ */ e.createElement(
|
|
83
|
-
r,
|
|
84
|
-
{
|
|
85
|
-
variant: "body6",
|
|
86
|
-
className: "text-light-2"
|
|
87
|
-
},
|
|
88
|
-
l.value
|
|
89
|
-
))), t.property_details && a !== t.property_details.length - 1 && /* @__PURE__ */ e.createElement("div", { className: "h-auto w-px border-l mx-3 border-neutral-2" }))
|
|
90
|
-
)))))
|
|
91
|
-
)), f && /* @__PURE__ */ e.createElement("div", { className: "left-0 right-0 bottom-0 flex justify-center items-center py-4" }, /* @__PURE__ */ e.createElement(z, null)))
|
|
92
|
-
),
|
|
93
|
-
triggerProps: { className: "cursor-pointer my-2" },
|
|
94
|
-
contentProps: { className: "max-h-[400px] overflow-y-auto" }
|
|
95
|
-
}
|
|
96
|
-
);
|
|
97
|
-
};
|
|
30
|
+
size: 16,
|
|
31
|
+
className: "cursor-pointer justify-end text-light-1",
|
|
32
|
+
onClick: t
|
|
33
|
+
}
|
|
34
|
+
)
|
|
35
|
+
), /* @__PURE__ */ e.createElement(
|
|
36
|
+
s,
|
|
37
|
+
{
|
|
38
|
+
value: a,
|
|
39
|
+
placeholder: "Add notes",
|
|
40
|
+
onChange: (n) => i(n.target.value),
|
|
41
|
+
className: "h-[200px] w-[400px]"
|
|
42
|
+
}
|
|
43
|
+
), /* @__PURE__ */ e.createElement("div", { className: "mt-4 flex gap-2" }, /* @__PURE__ */ e.createElement(
|
|
44
|
+
r,
|
|
45
|
+
{
|
|
46
|
+
size: "sm",
|
|
47
|
+
variant: "primary",
|
|
48
|
+
onClick: l,
|
|
49
|
+
disabled: !a.trim()
|
|
50
|
+
},
|
|
51
|
+
"Save"
|
|
52
|
+
), /* @__PURE__ */ e.createElement(r, { size: "sm", variant: "secondary", onClick: t }, "Cancel")))
|
|
53
|
+
}
|
|
54
|
+
);
|
|
98
55
|
export {
|
|
99
|
-
|
|
56
|
+
x as DialogNote
|
|
100
57
|
};
|
|
101
58
|
//# sourceMappingURL=index.es105.js.map
|