@tipp/ui 1.0.3 → 1.0.5
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/atoms/avatar.d.cts +1 -1
- package/dist/atoms/avatar.d.ts +1 -1
- package/dist/atoms/check-box.d.cts +1 -1
- package/dist/atoms/check-box.d.ts +1 -1
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +2 -2
- package/dist/atoms/pagination.cjs.map +1 -1
- package/dist/atoms/pagination.js +2 -2
- package/dist/chart/chart.cjs +9 -1
- package/dist/chart/chart.cjs.map +1 -1
- package/dist/chart/chart.d.cts +4 -1
- package/dist/chart/chart.d.ts +4 -1
- package/dist/chart/chart.js +9 -1
- package/dist/chart/chart.js.map +1 -1
- package/dist/chunk-2QZV2WKV.js +42 -0
- package/dist/chunk-2QZV2WKV.js.map +1 -0
- package/dist/chunk-ALP5524J.js +55 -0
- package/dist/chunk-ALP5524J.js.map +1 -0
- package/dist/chunk-AXM27M2R.js +43 -0
- package/dist/chunk-AXM27M2R.js.map +1 -0
- package/dist/chunk-B7R4QL7D.js +55 -0
- package/dist/chunk-B7R4QL7D.js.map +1 -0
- package/dist/chunk-CCZSZZTS.js +25 -0
- package/dist/chunk-CCZSZZTS.js.map +1 -0
- package/dist/chunk-CMWPUK3L.js +10 -0
- package/dist/chunk-CMWPUK3L.js.map +1 -0
- package/dist/chunk-DF7LG3AO.js +1 -0
- package/dist/chunk-DF7LG3AO.js.map +1 -0
- package/dist/chunk-EK4ZFDYD.js +39 -0
- package/dist/chunk-EK4ZFDYD.js.map +1 -0
- package/dist/chunk-FVU2BOJV.js +54 -0
- package/dist/chunk-FVU2BOJV.js.map +1 -0
- package/dist/chunk-GTDVFQVW.js +28 -0
- package/dist/chunk-GTDVFQVW.js.map +1 -0
- package/dist/chunk-GZG4UOJZ.js +43 -0
- package/dist/chunk-GZG4UOJZ.js.map +1 -0
- package/dist/chunk-HE3XMGS3.js +25 -0
- package/dist/chunk-HE3XMGS3.js.map +1 -0
- package/dist/chunk-HR3KN5AE.js +39 -0
- package/dist/chunk-HR3KN5AE.js.map +1 -0
- package/dist/chunk-J57DESXI.js +55 -0
- package/dist/chunk-J57DESXI.js.map +1 -0
- package/dist/chunk-JL6FCZV4.js +55 -0
- package/dist/chunk-JL6FCZV4.js.map +1 -0
- package/dist/chunk-KHHXN3CH.js +1 -0
- package/dist/chunk-KHHXN3CH.js.map +1 -0
- package/dist/chunk-LCC3I3PQ.js +24 -0
- package/dist/chunk-LCC3I3PQ.js.map +1 -0
- package/dist/chunk-LPUSIN3M.js +104 -0
- package/dist/chunk-LPUSIN3M.js.map +1 -0
- package/dist/chunk-LV4WSOXL.js +39 -0
- package/dist/chunk-LV4WSOXL.js.map +1 -0
- package/dist/chunk-MDPBP64D.js +104 -0
- package/dist/chunk-MDPBP64D.js.map +1 -0
- package/dist/chunk-NK7W7F66.js +54 -0
- package/dist/chunk-NK7W7F66.js.map +1 -0
- package/dist/chunk-NUM4Y5VM.js +54 -0
- package/dist/chunk-NUM4Y5VM.js.map +1 -0
- package/dist/chunk-O6P7IWJP.js +54 -0
- package/dist/chunk-O6P7IWJP.js.map +1 -0
- package/dist/chunk-P2VKIZ3M.js +18 -0
- package/dist/chunk-P2VKIZ3M.js.map +1 -0
- package/dist/chunk-PQBIBUGH.js +10 -0
- package/dist/chunk-PQBIBUGH.js.map +1 -0
- package/dist/chunk-QTHWYUYP.js +28 -0
- package/dist/chunk-QTHWYUYP.js.map +1 -0
- package/dist/chunk-SKDEOPP2.js +54 -0
- package/dist/chunk-SKDEOPP2.js.map +1 -0
- package/dist/chunk-V7JYNIVJ.js +39 -0
- package/dist/chunk-V7JYNIVJ.js.map +1 -0
- package/dist/chunk-WMBDJ72B.js +25 -0
- package/dist/chunk-WMBDJ72B.js.map +1 -0
- package/dist/chunk-XBXAWQOH.js +43 -0
- package/dist/chunk-XBXAWQOH.js.map +1 -0
- package/dist/icon.cjs +8 -0
- package/dist/icon.cjs.map +1 -1
- package/dist/icon.d.cts +1 -1
- package/dist/icon.d.ts +1 -1
- package/dist/icon.js +9 -1
- package/dist/index.cjs +56 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +20 -8
- package/dist/molecules/company-selector.cjs +406 -0
- package/dist/molecules/company-selector.cjs.map +1 -0
- package/dist/molecules/company-selector.d.cts +11 -0
- package/dist/molecules/company-selector.d.ts +11 -0
- package/dist/molecules/company-selector.js +62 -0
- package/dist/molecules/company-selector.js.map +1 -0
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +2 -2
- package/dist/molecules/expand-table/row.cjs.map +1 -1
- package/dist/molecules/expand-table/row.js +2 -2
- package/dist/molecules/index.cjs +46 -0
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.d.cts +2 -0
- package/dist/molecules/index.d.ts +2 -0
- package/dist/molecules/index.js +7 -3
- package/dist/molecules/navigation.cjs +437 -0
- package/dist/molecules/navigation.cjs.map +1 -0
- package/dist/molecules/navigation.d.cts +18 -0
- package/dist/molecules/navigation.d.ts +18 -0
- package/dist/molecules/navigation.js +62 -0
- package/dist/molecules/navigation.js.map +1 -0
- package/package.json +3 -1
- package/src/chart/chart.tsx +9 -2
- package/src/icon.ts +4 -0
- package/src/molecules/index.ts +1 -0
- package/src/molecules/navigation.tsx +67 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Typo
|
|
3
|
+
} from "./chunk-O3XTRD7R.js";
|
|
4
|
+
import {
|
|
5
|
+
Flex
|
|
6
|
+
} from "./chunk-25HMMI7R.js";
|
|
7
|
+
|
|
8
|
+
// src/molecules/navigation.tsx
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
function Navigation({
|
|
11
|
+
items,
|
|
12
|
+
fontColor,
|
|
13
|
+
backgroundColor
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
Flex,
|
|
17
|
+
{
|
|
18
|
+
direction: "column",
|
|
19
|
+
gap: "4",
|
|
20
|
+
style: {
|
|
21
|
+
color: fontColor || "var(--white-a12)",
|
|
22
|
+
backgroundColor: backgroundColor || "var(--black-a12)"
|
|
23
|
+
},
|
|
24
|
+
children: items == null ? void 0 : items.map((item) => {
|
|
25
|
+
const { key, title, icon, itemRender, onClick, children } = item;
|
|
26
|
+
return /* @__PURE__ */ jsxs(Flex, { direction: "column", onClick, children: [
|
|
27
|
+
itemRender ? itemRender(item) : /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "3", pl: "4", pr: "4", children: [
|
|
28
|
+
icon,
|
|
29
|
+
/* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: title })
|
|
30
|
+
] }),
|
|
31
|
+
children == null ? void 0 : children.map((el) => {
|
|
32
|
+
return el.itemRender ? el.itemRender(el) : /* @__PURE__ */ jsx(Flex, { align: "center", onClick, pl: "7", children: /* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: el.title }) }, el.key);
|
|
33
|
+
})
|
|
34
|
+
] }, key);
|
|
35
|
+
})
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export {
|
|
41
|
+
Navigation
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=chunk-AXM27M2R.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/navigation.tsx"],"sourcesContent":["import React from 'react';\nimport { Flex, Typo } from '../atoms';\n\ninterface Item {\n itemRender?: (item: Item) => React.ReactNode;\n key: string;\n onClick?: () => void;\n title: string;\n icon?: React.ReactNode;\n children?: Item[];\n}\n\nexport interface NavigationProps {\n items?: Item[];\n fontColor?: string;\n backgroundColor?: string;\n}\n\nexport function Navigation({\n items,\n fontColor,\n backgroundColor,\n}: NavigationProps): React.ReactNode {\n return (\n <Flex\n direction=\"column\"\n gap=\"4\"\n style={{\n color: fontColor || 'var(--white-a12)',\n backgroundColor: backgroundColor || 'var(--black-a12)',\n }}\n >\n {items?.map((item) => {\n const { key, title, icon, itemRender, onClick, children } = item;\n return (\n <Flex direction=\"column\" key={key} onClick={onClick}>\n {itemRender ? (\n itemRender(item)\n ) : (\n <Flex align=\"center\" gap=\"3\" pl=\"4\" pr=\"4\">\n {icon}\n <Typo variant=\"subtitle\">{title}</Typo>\n </Flex>\n )}\n {children?.map((el) => {\n return el.itemRender ? (\n el.itemRender(el)\n ) : (\n <Flex align=\"center\" key={el.key} onClick={onClick} pl=\"7\">\n <Typo variant=\"subtitle\">{el.title}</Typo>\n </Flex>\n );\n })}\n </Flex>\n );\n })}\n </Flex>\n );\n}\n"],"mappings":";;;;;;;;AAuCc,SAEE,KAFF;AArBP,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AACF,GAAqC;AACnC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,KAAI;AAAA,MACJ,OAAO;AAAA,QACL,OAAO,aAAa;AAAA,QACpB,iBAAiB,mBAAmB;AAAA,MACtC;AAAA,MAEC,yCAAO,IAAI,CAAC,SAAS;AACpB,cAAM,EAAE,KAAK,OAAO,MAAM,YAAY,SAAS,SAAS,IAAI;AAC5D,eACE,qBAAC,QAAK,WAAU,UAAmB,SAChC;AAAA,uBACC,WAAW,IAAI,IAEf,qBAAC,QAAK,OAAM,UAAS,KAAI,KAAI,IAAG,KAAI,IAAG,KACpC;AAAA;AAAA,YACD,oBAAC,QAAK,SAAQ,YAAY,iBAAM;AAAA,aAClC;AAAA,UAED,qCAAU,IAAI,CAAC,OAAO;AACrB,mBAAO,GAAG,aACR,GAAG,WAAW,EAAE,IAEhB,oBAAC,QAAK,OAAM,UAAsB,SAAkB,IAAG,KACrD,8BAAC,QAAK,SAAQ,YAAY,aAAG,OAAM,KADX,GAAG,GAE7B;AAAA,UAEJ;AAAA,aAjB4B,GAkB9B;AAAA,MAEJ;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Flex
|
|
3
|
+
} from "./chunk-25HMMI7R.js";
|
|
4
|
+
import {
|
|
5
|
+
Typo
|
|
6
|
+
} from "./chunk-O3XTRD7R.js";
|
|
7
|
+
|
|
8
|
+
// src/molecules/navigation.tsx
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
function Navigation({
|
|
11
|
+
items,
|
|
12
|
+
fontColor,
|
|
13
|
+
backgroundColor
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
Flex,
|
|
17
|
+
{
|
|
18
|
+
direction: "column",
|
|
19
|
+
gap: "4",
|
|
20
|
+
style: {
|
|
21
|
+
color: fontColor || "var(--white-a12)",
|
|
22
|
+
backgroundColor: backgroundColor || "var(--black-a12)"
|
|
23
|
+
},
|
|
24
|
+
children: items == null ? void 0 : items.map((item) => {
|
|
25
|
+
const { key, title, icon, itemRender, onClick, children } = item;
|
|
26
|
+
return /* @__PURE__ */ jsxs(Flex, { direction: "column", onClick, children: [
|
|
27
|
+
itemRender ? itemRender(item) : /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "3", pl: "4", pr: "4", children: [
|
|
28
|
+
icon,
|
|
29
|
+
/* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: title })
|
|
30
|
+
] }),
|
|
31
|
+
children == null ? void 0 : children.map((el) => {
|
|
32
|
+
return el.itemRender ? el.itemRender(el) : /* @__PURE__ */ jsx(
|
|
33
|
+
Flex,
|
|
34
|
+
{
|
|
35
|
+
align: "center",
|
|
36
|
+
ml: "6",
|
|
37
|
+
onClick,
|
|
38
|
+
pl: "2",
|
|
39
|
+
pr: "2",
|
|
40
|
+
className: "hover:bg-gray-800",
|
|
41
|
+
children: /* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: el.title })
|
|
42
|
+
},
|
|
43
|
+
el.key
|
|
44
|
+
);
|
|
45
|
+
})
|
|
46
|
+
] }, key);
|
|
47
|
+
})
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export {
|
|
53
|
+
Navigation
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=chunk-B7R4QL7D.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/navigation.tsx"],"sourcesContent":["import React from 'react';\nimport { Flex, Typo } from '../atoms';\n\ninterface Item {\n itemRender?: (item: Item) => React.ReactNode;\n key: string;\n onClick?: () => void;\n title: string;\n icon?: React.ReactNode;\n children?: Item[];\n}\n\nexport interface NavigationProps {\n items?: Item[];\n fontColor?: string;\n backgroundColor?: string;\n}\n\nexport function Navigation({\n items,\n fontColor,\n backgroundColor,\n}: NavigationProps): React.ReactNode {\n return (\n <Flex\n direction=\"column\"\n gap=\"4\"\n style={{\n color: fontColor || 'var(--white-a12)',\n backgroundColor: backgroundColor || 'var(--black-a12)',\n }}\n >\n {items?.map((item) => {\n const { key, title, icon, itemRender, onClick, children } = item;\n return (\n <Flex direction=\"column\" key={key} onClick={onClick}>\n {itemRender ? (\n itemRender(item)\n ) : (\n <Flex align=\"center\" gap=\"3\" pl=\"4\" pr=\"4\">\n {icon}\n <Typo variant=\"subtitle\">{title}</Typo>\n </Flex>\n )}\n {children?.map((el) => {\n return el.itemRender ? (\n el.itemRender(el)\n ) : (\n <Flex\n align=\"center\"\n key={el.key}\n ml=\"6\"\n onClick={onClick}\n pl=\"2\"\n pr=\"2\"\n className=\"hover:bg-gray-800\"\n >\n <Typo variant=\"subtitle\">{el.title}</Typo>\n </Flex>\n );\n })}\n </Flex>\n );\n })}\n </Flex>\n );\n}\n"],"mappings":";;;;;;;;AAuCc,SAEE,KAFF;AArBP,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AACF,GAAqC;AACnC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,KAAI;AAAA,MACJ,OAAO;AAAA,QACL,OAAO,aAAa;AAAA,QACpB,iBAAiB,mBAAmB;AAAA,MACtC;AAAA,MAEC,yCAAO,IAAI,CAAC,SAAS;AACpB,cAAM,EAAE,KAAK,OAAO,MAAM,YAAY,SAAS,SAAS,IAAI;AAC5D,eACE,qBAAC,QAAK,WAAU,UAAmB,SAChC;AAAA,uBACC,WAAW,IAAI,IAEf,qBAAC,QAAK,OAAM,UAAS,KAAI,KAAI,IAAG,KAAI,IAAG,KACpC;AAAA;AAAA,YACD,oBAAC,QAAK,SAAQ,YAAY,iBAAM;AAAA,aAClC;AAAA,UAED,qCAAU,IAAI,CAAC,OAAO;AACrB,mBAAO,GAAG,aACR,GAAG,WAAW,EAAE,IAEhB;AAAA,cAAC;AAAA;AAAA,gBACC,OAAM;AAAA,gBAEN,IAAG;AAAA,gBACH;AAAA,gBACA,IAAG;AAAA,gBACH,IAAG;AAAA,gBACH,WAAU;AAAA,gBAEV,8BAAC,QAAK,SAAQ,YAAY,aAAG,OAAM;AAAA;AAAA,cAP9B,GAAG;AAAA,YAQV;AAAA,UAEJ;AAAA,aAzB4B,GA0B9B;AAAA,MAEJ;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Flex
|
|
3
|
+
} from "./chunk-25HMMI7R.js";
|
|
4
|
+
|
|
5
|
+
// src/molecules/navigation.tsx
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
function Navigation({ items }) {
|
|
8
|
+
return /* @__PURE__ */ jsx(Flex, { direction: "column", gap: "4", children: items == null ? void 0 : items.map((item) => {
|
|
9
|
+
const { key, title, icon, itemRender, onClick, children } = item;
|
|
10
|
+
return /* @__PURE__ */ jsxs(Flex, { direction: "column", onClick, children: [
|
|
11
|
+
itemRender ? itemRender(item) : /* @__PURE__ */ jsxs(Flex, { gap: "3", pl: "4", pr: "4", children: [
|
|
12
|
+
icon,
|
|
13
|
+
title
|
|
14
|
+
] }),
|
|
15
|
+
children == null ? void 0 : children.map((el) => {
|
|
16
|
+
return el.itemRender ? el.itemRender(el) : /* @__PURE__ */ jsx(Flex, { pl: "7", children: el.title }, el.key);
|
|
17
|
+
})
|
|
18
|
+
] }, key);
|
|
19
|
+
}) });
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
Navigation
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=chunk-CCZSZZTS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/navigation.tsx"],"sourcesContent":["import React from 'react';\nimport { Flex } from '../atoms';\n\ninterface Item {\n itemRender?: (item: Item) => React.ReactNode;\n key: string;\n onClick?: () => void;\n title: string;\n icon?: React.ReactNode;\n children?: Item[];\n}\n\nexport interface NavigationProps {\n items?: Item[];\n}\n\nexport function Navigation({ items }: NavigationProps): React.ReactNode {\n return (\n <Flex direction=\"column\" gap=\"4\">\n {items?.map((item) => {\n const { key, title, icon, itemRender, onClick, children } = item;\n return (\n <Flex direction=\"column\" key={key} onClick={onClick}>\n {itemRender ? (\n itemRender(item)\n ) : (\n <Flex gap=\"3\" pl=\"4\" pr=\"4\">\n {icon}\n {title}\n </Flex>\n )}\n {children?.map((el) => {\n return el.itemRender ? (\n el.itemRender(el)\n ) : (\n <Flex key={el.key} pl=\"7\">\n {el.title}\n </Flex>\n );\n })}\n </Flex>\n );\n })}\n </Flex>\n );\n}\n"],"mappings":";;;;;AA0Bc,SASE,KATF;AAVP,SAAS,WAAW,EAAE,MAAM,GAAqC;AACtE,SACE,oBAAC,QAAK,WAAU,UAAS,KAAI,KAC1B,yCAAO,IAAI,CAAC,SAAS;AACpB,UAAM,EAAE,KAAK,OAAO,MAAM,YAAY,SAAS,SAAS,IAAI;AAC5D,WACE,qBAAC,QAAK,WAAU,UAAmB,SAChC;AAAA,mBACC,WAAW,IAAI,IAEf,qBAAC,QAAK,KAAI,KAAI,IAAG,KAAI,IAAG,KACrB;AAAA;AAAA,QACA;AAAA,SACH;AAAA,MAED,qCAAU,IAAI,CAAC,OAAO;AACrB,eAAO,GAAG,aACR,GAAG,WAAW,EAAE,IAEhB,oBAAC,QAAkB,IAAG,KACnB,aAAG,SADK,GAAG,GAEd;AAAA,MAEJ;AAAA,SAjB4B,GAkB9B;AAAA,EAEJ,IACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/navigation.tsx"],"sourcesContent":["import React from 'react';\n\ninterface Item {\n itemRender?: (item: Item) => React.ReactNode;\n key: string;\n onClick?: () => void;\n title: string;\n children?: Item[];\n}\n\nexport interface NavigationProps {\n items: Item[];\n}\n\nexport function Navigation({}: NavigationProps): React.ReactNode {\n return <div></div>;\n}\n"],"mappings":";AAeS;AADF,SAAS,WAAW,CAAC,GAAqC;AAC/D,SAAO,oBAAC,SAAI;AACd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-DF7LG3AO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// src/icon.ts
|
|
2
|
+
import {
|
|
3
|
+
BookmarkIcon,
|
|
4
|
+
ExitIcon,
|
|
5
|
+
InfoCircledIcon,
|
|
6
|
+
ExclamationTriangleIcon,
|
|
7
|
+
MagnifyingGlassIcon,
|
|
8
|
+
DotsHorizontalIcon,
|
|
9
|
+
ChatBubbleIcon,
|
|
10
|
+
PlusIcon,
|
|
11
|
+
BookmarkFilledIcon,
|
|
12
|
+
MixerHorizontalIcon,
|
|
13
|
+
ChevronLeftIcon,
|
|
14
|
+
ChevronRightIcon,
|
|
15
|
+
ClipboardIcon,
|
|
16
|
+
BarChartIcon,
|
|
17
|
+
PersonIcon,
|
|
18
|
+
GearIcon
|
|
19
|
+
} from "@radix-ui/react-icons";
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
BookmarkIcon,
|
|
23
|
+
ExitIcon,
|
|
24
|
+
InfoCircledIcon,
|
|
25
|
+
ExclamationTriangleIcon,
|
|
26
|
+
MagnifyingGlassIcon,
|
|
27
|
+
DotsHorizontalIcon,
|
|
28
|
+
ChatBubbleIcon,
|
|
29
|
+
PlusIcon,
|
|
30
|
+
BookmarkFilledIcon,
|
|
31
|
+
MixerHorizontalIcon,
|
|
32
|
+
ChevronLeftIcon,
|
|
33
|
+
ChevronRightIcon,
|
|
34
|
+
ClipboardIcon,
|
|
35
|
+
BarChartIcon,
|
|
36
|
+
PersonIcon,
|
|
37
|
+
GearIcon
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=chunk-EK4ZFDYD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/icon.ts"],"sourcesContent":["export {\n BookmarkIcon,\n ExitIcon,\n InfoCircledIcon,\n ExclamationTriangleIcon,\n MagnifyingGlassIcon,\n DotsHorizontalIcon,\n ChatBubbleIcon,\n PlusIcon,\n BookmarkFilledIcon,\n MixerHorizontalIcon,\n ChevronLeftIcon,\n ChevronRightIcon,\n ClipboardIcon,\n BarChartIcon,\n PersonIcon,\n GearIcon,\n} from '@radix-ui/react-icons';\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;","names":[]}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Typo
|
|
3
|
+
} from "./chunk-O3XTRD7R.js";
|
|
4
|
+
import {
|
|
5
|
+
Flex
|
|
6
|
+
} from "./chunk-25HMMI7R.js";
|
|
7
|
+
|
|
8
|
+
// src/molecules/navigation.tsx
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
function Navigation({
|
|
11
|
+
items,
|
|
12
|
+
fontColor,
|
|
13
|
+
backgroundColor
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
Flex,
|
|
17
|
+
{
|
|
18
|
+
direction: "column",
|
|
19
|
+
gap: "4",
|
|
20
|
+
style: {
|
|
21
|
+
color: fontColor || "var(--white-a12)",
|
|
22
|
+
backgroundColor: backgroundColor || "var(--black-a12)"
|
|
23
|
+
},
|
|
24
|
+
children: items == null ? void 0 : items.map((item) => {
|
|
25
|
+
const { key, title, icon, itemRender, onClick, children } = item;
|
|
26
|
+
return /* @__PURE__ */ jsxs(Flex, { direction: "column", onClick, children: [
|
|
27
|
+
itemRender ? itemRender(item) : /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "3", pl: "4", pr: "4", children: [
|
|
28
|
+
icon,
|
|
29
|
+
/* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: title })
|
|
30
|
+
] }),
|
|
31
|
+
children == null ? void 0 : children.map((el) => {
|
|
32
|
+
return el.itemRender ? el.itemRender(el) : /* @__PURE__ */ jsx(
|
|
33
|
+
Flex,
|
|
34
|
+
{
|
|
35
|
+
align: "center",
|
|
36
|
+
ml: "6",
|
|
37
|
+
onClick,
|
|
38
|
+
pl: "2",
|
|
39
|
+
pr: "2",
|
|
40
|
+
children: /* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: el.title })
|
|
41
|
+
},
|
|
42
|
+
el.key
|
|
43
|
+
);
|
|
44
|
+
})
|
|
45
|
+
] }, key);
|
|
46
|
+
})
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export {
|
|
52
|
+
Navigation
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=chunk-FVU2BOJV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/navigation.tsx"],"sourcesContent":["import React from 'react';\nimport { Flex, Typo } from '../atoms';\n\ninterface Item {\n itemRender?: (item: Item) => React.ReactNode;\n key: string;\n onClick?: () => void;\n title: string;\n icon?: React.ReactNode;\n children?: Item[];\n}\n\nexport interface NavigationProps {\n items?: Item[];\n fontColor?: string;\n backgroundColor?: string;\n}\n\nexport function Navigation({\n items,\n fontColor,\n backgroundColor,\n}: NavigationProps): React.ReactNode {\n return (\n <Flex\n direction=\"column\"\n gap=\"4\"\n style={{\n color: fontColor || 'var(--white-a12)',\n backgroundColor: backgroundColor || 'var(--black-a12)',\n }}\n >\n {items?.map((item) => {\n const { key, title, icon, itemRender, onClick, children } = item;\n return (\n <Flex direction=\"column\" key={key} onClick={onClick}>\n {itemRender ? (\n itemRender(item)\n ) : (\n <Flex align=\"center\" gap=\"3\" pl=\"4\" pr=\"4\">\n {icon}\n <Typo variant=\"subtitle\">{title}</Typo>\n </Flex>\n )}\n {children?.map((el) => {\n return el.itemRender ? (\n el.itemRender(el)\n ) : (\n <Flex\n align=\"center\"\n key={el.key}\n ml=\"6\"\n onClick={onClick}\n pl=\"2\"\n pr=\"2\"\n >\n <Typo variant=\"subtitle\">{el.title}</Typo>\n </Flex>\n );\n })}\n </Flex>\n );\n })}\n </Flex>\n );\n}\n"],"mappings":";;;;;;;;AAuCc,SAEE,KAFF;AArBP,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AACF,GAAqC;AACnC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,KAAI;AAAA,MACJ,OAAO;AAAA,QACL,OAAO,aAAa;AAAA,QACpB,iBAAiB,mBAAmB;AAAA,MACtC;AAAA,MAEC,yCAAO,IAAI,CAAC,SAAS;AACpB,cAAM,EAAE,KAAK,OAAO,MAAM,YAAY,SAAS,SAAS,IAAI;AAC5D,eACE,qBAAC,QAAK,WAAU,UAAmB,SAChC;AAAA,uBACC,WAAW,IAAI,IAEf,qBAAC,QAAK,OAAM,UAAS,KAAI,KAAI,IAAG,KAAI,IAAG,KACpC;AAAA;AAAA,YACD,oBAAC,QAAK,SAAQ,YAAY,iBAAM;AAAA,aAClC;AAAA,UAED,qCAAU,IAAI,CAAC,OAAO;AACrB,mBAAO,GAAG,aACR,GAAG,WAAW,EAAE,IAEhB;AAAA,cAAC;AAAA;AAAA,gBACC,OAAM;AAAA,gBAEN,IAAG;AAAA,gBACH;AAAA,gBACA,IAAG;AAAA,gBACH,IAAG;AAAA,gBAEH,8BAAC,QAAK,SAAQ,YAAY,aAAG,OAAM;AAAA;AAAA,cAN9B,GAAG;AAAA,YAOV;AAAA,UAEJ;AAAA,aAxB4B,GAyB9B;AAAA,MAEJ;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Flex
|
|
3
|
+
} from "./chunk-25HMMI7R.js";
|
|
4
|
+
|
|
5
|
+
// src/molecules/navigation.tsx
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
function Navigation({ items }) {
|
|
8
|
+
return /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "4", children: [
|
|
9
|
+
"????",
|
|
10
|
+
items == null ? void 0 : items.map((item) => {
|
|
11
|
+
const { key, title, icon, itemRender, onClick, children } = item;
|
|
12
|
+
return /* @__PURE__ */ jsxs(Flex, { direction: "column", onClick, children: [
|
|
13
|
+
itemRender ? itemRender(item) : /* @__PURE__ */ jsxs(Flex, { gap: "3", pl: "4", pr: "4", children: [
|
|
14
|
+
icon,
|
|
15
|
+
title
|
|
16
|
+
] }),
|
|
17
|
+
children == null ? void 0 : children.map((el) => {
|
|
18
|
+
return /* @__PURE__ */ jsx(Flex, { children: el.title }, el.key);
|
|
19
|
+
})
|
|
20
|
+
] }, key);
|
|
21
|
+
})
|
|
22
|
+
] });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
Navigation
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=chunk-GTDVFQVW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/navigation.tsx"],"sourcesContent":["import React from 'react';\nimport { Flex } from '../atoms';\n\ninterface Item {\n itemRender?: (item: Item) => React.ReactNode;\n key: string;\n onClick?: () => void;\n title: string;\n icon?: React.ReactNode;\n children?: Item[];\n}\n\nexport interface NavigationProps {\n items?: Item[];\n}\n\nexport function Navigation({ items }: NavigationProps): React.ReactNode {\n return (\n <Flex direction=\"column\" gap=\"4\">\n ????\n {items?.map((item) => {\n const { key, title, icon, itemRender, onClick, children } = item;\n return (\n <Flex direction=\"column\" key={key} onClick={onClick}>\n {itemRender ? (\n itemRender(item)\n ) : (\n <Flex gap=\"3\" pl=\"4\" pr=\"4\">\n {icon}\n {title}\n </Flex>\n )}\n {children?.map((el) => {\n return <Flex key={el.key}>{el.title}</Flex>;\n })}\n </Flex>\n );\n })}\n </Flex>\n );\n}\n"],"mappings":";;;;;AA2Bc,SAMO,KANP;AAXP,SAAS,WAAW,EAAE,MAAM,GAAqC;AACtE,SACE,qBAAC,QAAK,WAAU,UAAS,KAAI,KAAI;AAAA;AAAA,IAE9B,+BAAO,IAAI,CAAC,SAAS;AACpB,YAAM,EAAE,KAAK,OAAO,MAAM,YAAY,SAAS,SAAS,IAAI;AAC5D,aACE,qBAAC,QAAK,WAAU,UAAmB,SAChC;AAAA,qBACC,WAAW,IAAI,IAEf,qBAAC,QAAK,KAAI,KAAI,IAAG,KAAI,IAAG,KACrB;AAAA;AAAA,UACA;AAAA,WACH;AAAA,QAED,qCAAU,IAAI,CAAC,OAAO;AACrB,iBAAO,oBAAC,QAAmB,aAAG,SAAZ,GAAG,GAAe;AAAA,QACtC;AAAA,WAX4B,GAY9B;AAAA,IAEJ;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Flex
|
|
3
|
+
} from "./chunk-25HMMI7R.js";
|
|
4
|
+
import {
|
|
5
|
+
Typo
|
|
6
|
+
} from "./chunk-O3XTRD7R.js";
|
|
7
|
+
|
|
8
|
+
// src/molecules/navigation.tsx
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
function Navigation({
|
|
11
|
+
items,
|
|
12
|
+
fontColor,
|
|
13
|
+
backgroundColor
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
Flex,
|
|
17
|
+
{
|
|
18
|
+
direction: "column",
|
|
19
|
+
gap: "4",
|
|
20
|
+
style: {
|
|
21
|
+
color: fontColor || "var(--white-a12)",
|
|
22
|
+
backgroundColor: backgroundColor || "var(--black-a12)"
|
|
23
|
+
},
|
|
24
|
+
children: items == null ? void 0 : items.map((item) => {
|
|
25
|
+
const { key, title, icon, itemRender, onClick, children } = item;
|
|
26
|
+
return /* @__PURE__ */ jsxs(Flex, { direction: "column", onClick, children: [
|
|
27
|
+
itemRender ? itemRender(item) : /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "3", pl: "4", pr: "4", children: [
|
|
28
|
+
icon,
|
|
29
|
+
/* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: title })
|
|
30
|
+
] }),
|
|
31
|
+
children == null ? void 0 : children.map((el) => {
|
|
32
|
+
return el.itemRender ? el.itemRender(el) : /* @__PURE__ */ jsx(Flex, { align: "center", onClick, pl: "7", children: /* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: el.title }) }, el.key);
|
|
33
|
+
})
|
|
34
|
+
] }, key);
|
|
35
|
+
})
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export {
|
|
41
|
+
Navigation
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=chunk-GZG4UOJZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/navigation.tsx"],"sourcesContent":["import React from 'react';\nimport { Flex, Typo } from '../atoms';\n\ninterface Item {\n itemRender?: (item: Item) => React.ReactNode;\n key: string;\n onClick?: () => void;\n title: string;\n icon?: React.ReactNode;\n children?: Item[];\n}\n\nexport interface NavigationProps {\n items?: Item[];\n fontColor?: string;\n backgroundColor?: string;\n}\n\nexport function Navigation({\n items,\n fontColor,\n backgroundColor,\n}: NavigationProps): React.ReactNode {\n return (\n <Flex\n direction=\"column\"\n gap=\"4\"\n style={{\n color: fontColor || 'var(--white-a12)',\n backgroundColor: backgroundColor || 'var(--black-a12)',\n }}\n >\n {items?.map((item) => {\n const { key, title, icon, itemRender, onClick, children } = item;\n return (\n <Flex direction=\"column\" key={key} onClick={onClick}>\n {itemRender ? (\n itemRender(item)\n ) : (\n <Flex align=\"center\" gap=\"3\" pl=\"4\" pr=\"4\">\n {icon}\n <Typo variant=\"subtitle\">{title}</Typo>\n </Flex>\n )}\n {children?.map((el) => {\n return el.itemRender ? (\n el.itemRender(el)\n ) : (\n <Flex align=\"center\" key={el.key} onClick={onClick} pl=\"7\">\n <Typo variant=\"subtitle\">{el.title}</Typo>\n </Flex>\n );\n })}\n </Flex>\n );\n })}\n </Flex>\n );\n}\n"],"mappings":";;;;;;;;AAuCc,SAEE,KAFF;AArBP,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AACF,GAAqC;AACnC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,KAAI;AAAA,MACJ,OAAO;AAAA,QACL,OAAO,aAAa;AAAA,QACpB,iBAAiB,mBAAmB;AAAA,MACtC;AAAA,MAEC,yCAAO,IAAI,CAAC,SAAS;AACpB,cAAM,EAAE,KAAK,OAAO,MAAM,YAAY,SAAS,SAAS,IAAI;AAC5D,eACE,qBAAC,QAAK,WAAU,UAAmB,SAChC;AAAA,uBACC,WAAW,IAAI,IAEf,qBAAC,QAAK,OAAM,UAAS,KAAI,KAAI,IAAG,KAAI,IAAG,KACpC;AAAA;AAAA,YACD,oBAAC,QAAK,SAAQ,YAAY,iBAAM;AAAA,aAClC;AAAA,UAED,qCAAU,IAAI,CAAC,OAAO;AACrB,mBAAO,GAAG,aACR,GAAG,WAAW,EAAE,IAEhB,oBAAC,QAAK,OAAM,UAAsB,SAAkB,IAAG,KACrD,8BAAC,QAAK,SAAQ,YAAY,aAAG,OAAM,KADX,GAAG,GAE7B;AAAA,UAEJ;AAAA,aAjB4B,GAkB9B;AAAA,MAEJ;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Flex
|
|
3
|
+
} from "./chunk-25HMMI7R.js";
|
|
4
|
+
|
|
5
|
+
// src/molecules/navigation.tsx
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
function Navigation({ items }) {
|
|
8
|
+
return /* @__PURE__ */ jsx(Flex, { direction: "column", gap: "4", children: items == null ? void 0 : items.map((item) => {
|
|
9
|
+
const { key, title, icon, itemRender, onClick, children } = item;
|
|
10
|
+
return /* @__PURE__ */ jsxs(Flex, { direction: "column", onClick, children: [
|
|
11
|
+
itemRender ? itemRender(item) : /* @__PURE__ */ jsxs(Flex, { gap: "3", pl: "4", pr: "4", children: [
|
|
12
|
+
icon,
|
|
13
|
+
title
|
|
14
|
+
] }),
|
|
15
|
+
children == null ? void 0 : children.map((el) => {
|
|
16
|
+
return /* @__PURE__ */ jsx(Flex, { children: el.title }, el.key);
|
|
17
|
+
})
|
|
18
|
+
] }, key);
|
|
19
|
+
}) });
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
Navigation
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=chunk-HE3XMGS3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/navigation.tsx"],"sourcesContent":["import React from 'react';\nimport { Flex } from '../atoms';\n\ninterface Item {\n itemRender?: (item: Item) => React.ReactNode;\n key: string;\n onClick?: () => void;\n title: string;\n icon?: React.ReactNode;\n children?: Item[];\n}\n\nexport interface NavigationProps {\n items?: Item[];\n}\n\nexport function Navigation({ items }: NavigationProps): React.ReactNode {\n return (\n <Flex direction=\"column\" gap=\"4\">\n {items?.map((item) => {\n const { key, title, icon, itemRender, onClick, children } = item;\n return (\n <Flex direction=\"column\" key={key} onClick={onClick}>\n {itemRender ? (\n itemRender(item)\n ) : (\n <Flex gap=\"3\" pl=\"4\" pr=\"4\">\n {icon}\n {title}\n </Flex>\n )}\n {children?.map((el) => {\n return <Flex key={el.key}>{el.title}</Flex>;\n })}\n </Flex>\n );\n })}\n </Flex>\n );\n}\n"],"mappings":";;;;;AA0Bc,SAMO,KANP;AAVP,SAAS,WAAW,EAAE,MAAM,GAAqC;AACtE,SACE,oBAAC,QAAK,WAAU,UAAS,KAAI,KAC1B,yCAAO,IAAI,CAAC,SAAS;AACpB,UAAM,EAAE,KAAK,OAAO,MAAM,YAAY,SAAS,SAAS,IAAI;AAC5D,WACE,qBAAC,QAAK,WAAU,UAAmB,SAChC;AAAA,mBACC,WAAW,IAAI,IAEf,qBAAC,QAAK,KAAI,KAAI,IAAG,KAAI,IAAG,KACrB;AAAA;AAAA,QACA;AAAA,SACH;AAAA,MAED,qCAAU,IAAI,CAAC,OAAO;AACrB,eAAO,oBAAC,QAAmB,aAAG,SAAZ,GAAG,GAAe;AAAA,MACtC;AAAA,SAX4B,GAY9B;AAAA,EAEJ,IACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Typo
|
|
3
|
+
} from "./chunk-O3XTRD7R.js";
|
|
4
|
+
import {
|
|
5
|
+
Flex
|
|
6
|
+
} from "./chunk-25HMMI7R.js";
|
|
7
|
+
|
|
8
|
+
// src/molecules/navigation.tsx
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
function Navigation({
|
|
11
|
+
items,
|
|
12
|
+
fontColor
|
|
13
|
+
}) {
|
|
14
|
+
return /* @__PURE__ */ jsx(
|
|
15
|
+
Flex,
|
|
16
|
+
{
|
|
17
|
+
direction: "column",
|
|
18
|
+
gap: "4",
|
|
19
|
+
style: { color: fontColor || "var(--white-1)" },
|
|
20
|
+
children: items == null ? void 0 : items.map((item) => {
|
|
21
|
+
const { key, title, icon, itemRender, onClick, children } = item;
|
|
22
|
+
return /* @__PURE__ */ jsxs(Flex, { direction: "column", onClick, children: [
|
|
23
|
+
itemRender ? itemRender(item) : /* @__PURE__ */ jsxs(Flex, { gap: "3", pl: "4", pr: "4", children: [
|
|
24
|
+
icon,
|
|
25
|
+
/* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: title })
|
|
26
|
+
] }),
|
|
27
|
+
children == null ? void 0 : children.map((el) => {
|
|
28
|
+
return el.itemRender ? el.itemRender(el) : /* @__PURE__ */ jsx(Flex, { pl: "7", children: /* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: el.title }) }, el.key);
|
|
29
|
+
})
|
|
30
|
+
] }, key);
|
|
31
|
+
})
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export {
|
|
37
|
+
Navigation
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=chunk-HR3KN5AE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/navigation.tsx"],"sourcesContent":["import React from 'react';\nimport { Flex, Typo } from '../atoms';\n\ninterface Item {\n itemRender?: (item: Item) => React.ReactNode;\n key: string;\n onClick?: () => void;\n title: string;\n icon?: React.ReactNode;\n children?: Item[];\n}\n\nexport interface NavigationProps {\n items?: Item[];\n fontColor?: string;\n}\n\nexport function Navigation({\n items,\n fontColor,\n}: NavigationProps): React.ReactNode {\n return (\n <Flex\n direction=\"column\"\n gap=\"4\"\n style={{ color: fontColor || 'var(--white-1)' }}\n >\n {items?.map((item) => {\n const { key, title, icon, itemRender, onClick, children } = item;\n return (\n <Flex direction=\"column\" key={key} onClick={onClick}>\n {itemRender ? (\n itemRender(item)\n ) : (\n <Flex gap=\"3\" pl=\"4\" pr=\"4\">\n {icon}\n <Typo variant=\"subtitle\">{title}</Typo>\n </Flex>\n )}\n {children?.map((el) => {\n return el.itemRender ? (\n el.itemRender(el)\n ) : (\n <Flex key={el.key} pl=\"7\">\n <Typo variant=\"subtitle\">{el.title}</Typo>\n </Flex>\n );\n })}\n </Flex>\n );\n })}\n </Flex>\n );\n}\n"],"mappings":";;;;;;;;AAkCc,SAEE,KAFF;AAjBP,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AACF,GAAqC;AACnC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,KAAI;AAAA,MACJ,OAAO,EAAE,OAAO,aAAa,iBAAiB;AAAA,MAE7C,yCAAO,IAAI,CAAC,SAAS;AACpB,cAAM,EAAE,KAAK,OAAO,MAAM,YAAY,SAAS,SAAS,IAAI;AAC5D,eACE,qBAAC,QAAK,WAAU,UAAmB,SAChC;AAAA,uBACC,WAAW,IAAI,IAEf,qBAAC,QAAK,KAAI,KAAI,IAAG,KAAI,IAAG,KACrB;AAAA;AAAA,YACD,oBAAC,QAAK,SAAQ,YAAY,iBAAM;AAAA,aAClC;AAAA,UAED,qCAAU,IAAI,CAAC,OAAO;AACrB,mBAAO,GAAG,aACR,GAAG,WAAW,EAAE,IAEhB,oBAAC,QAAkB,IAAG,KACpB,8BAAC,QAAK,SAAQ,YAAY,aAAG,OAAM,KAD1B,GAAG,GAEd;AAAA,UAEJ;AAAA,aAjB4B,GAkB9B;AAAA,MAEJ;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Flex
|
|
3
|
+
} from "./chunk-25HMMI7R.js";
|
|
4
|
+
import {
|
|
5
|
+
Typo
|
|
6
|
+
} from "./chunk-O3XTRD7R.js";
|
|
7
|
+
|
|
8
|
+
// src/molecules/navigation.tsx
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
function Navigation({
|
|
11
|
+
items,
|
|
12
|
+
fontColor,
|
|
13
|
+
backgroundColor
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
Flex,
|
|
17
|
+
{
|
|
18
|
+
direction: "column",
|
|
19
|
+
gap: "4",
|
|
20
|
+
style: {
|
|
21
|
+
color: fontColor || "var(--white-a12)",
|
|
22
|
+
backgroundColor: backgroundColor || "var(--black-a12)"
|
|
23
|
+
},
|
|
24
|
+
children: items == null ? void 0 : items.map((item) => {
|
|
25
|
+
const { key, title, icon, itemRender, onClick, children } = item;
|
|
26
|
+
return /* @__PURE__ */ jsxs(Flex, { direction: "column", onClick, children: [
|
|
27
|
+
itemRender ? itemRender(item) : /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "3", height: "36px", pl: "4", pr: "4", children: [
|
|
28
|
+
icon,
|
|
29
|
+
/* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: title })
|
|
30
|
+
] }),
|
|
31
|
+
children == null ? void 0 : children.map((el) => {
|
|
32
|
+
return el.itemRender ? el.itemRender(el) : /* @__PURE__ */ jsx(
|
|
33
|
+
Flex,
|
|
34
|
+
{
|
|
35
|
+
align: "center",
|
|
36
|
+
height: "32px",
|
|
37
|
+
ml: "6",
|
|
38
|
+
onClick,
|
|
39
|
+
pl: "2",
|
|
40
|
+
pr: "2",
|
|
41
|
+
children: /* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: el.title })
|
|
42
|
+
},
|
|
43
|
+
el.key
|
|
44
|
+
);
|
|
45
|
+
})
|
|
46
|
+
] }, key);
|
|
47
|
+
})
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export {
|
|
53
|
+
Navigation
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=chunk-J57DESXI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/navigation.tsx"],"sourcesContent":["import React from 'react';\nimport { Flex, Typo } from '../atoms';\n\ninterface Item {\n itemRender?: (item: Item) => React.ReactNode;\n key: string;\n onClick?: () => void;\n title: string;\n icon?: React.ReactNode;\n children?: Item[];\n}\n\nexport interface NavigationProps {\n items?: Item[];\n fontColor?: string;\n backgroundColor?: string;\n}\n\nexport function Navigation({\n items,\n fontColor,\n backgroundColor,\n}: NavigationProps): React.ReactNode {\n return (\n <Flex\n direction=\"column\"\n gap=\"4\"\n style={{\n color: fontColor || 'var(--white-a12)',\n backgroundColor: backgroundColor || 'var(--black-a12)',\n }}\n >\n {items?.map((item) => {\n const { key, title, icon, itemRender, onClick, children } = item;\n return (\n <Flex direction=\"column\" key={key} onClick={onClick}>\n {itemRender ? (\n itemRender(item)\n ) : (\n <Flex align=\"center\" gap=\"3\" height=\"36px\" pl=\"4\" pr=\"4\">\n {icon}\n <Typo variant=\"subtitle\">{title}</Typo>\n </Flex>\n )}\n {children?.map((el) => {\n return el.itemRender ? (\n el.itemRender(el)\n ) : (\n <Flex\n align=\"center\"\n height=\"32px\"\n key={el.key}\n ml=\"6\"\n onClick={onClick}\n pl=\"2\"\n pr=\"2\"\n >\n <Typo variant=\"subtitle\">{el.title}</Typo>\n </Flex>\n );\n })}\n </Flex>\n );\n })}\n </Flex>\n );\n}\n"],"mappings":";;;;;;;;AAuCc,SAEE,KAFF;AArBP,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AACF,GAAqC;AACnC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,KAAI;AAAA,MACJ,OAAO;AAAA,QACL,OAAO,aAAa;AAAA,QACpB,iBAAiB,mBAAmB;AAAA,MACtC;AAAA,MAEC,yCAAO,IAAI,CAAC,SAAS;AACpB,cAAM,EAAE,KAAK,OAAO,MAAM,YAAY,SAAS,SAAS,IAAI;AAC5D,eACE,qBAAC,QAAK,WAAU,UAAmB,SAChC;AAAA,uBACC,WAAW,IAAI,IAEf,qBAAC,QAAK,OAAM,UAAS,KAAI,KAAI,QAAO,QAAO,IAAG,KAAI,IAAG,KAClD;AAAA;AAAA,YACD,oBAAC,QAAK,SAAQ,YAAY,iBAAM;AAAA,aAClC;AAAA,UAED,qCAAU,IAAI,CAAC,OAAO;AACrB,mBAAO,GAAG,aACR,GAAG,WAAW,EAAE,IAEhB;AAAA,cAAC;AAAA;AAAA,gBACC,OAAM;AAAA,gBACN,QAAO;AAAA,gBAEP,IAAG;AAAA,gBACH;AAAA,gBACA,IAAG;AAAA,gBACH,IAAG;AAAA,gBAEH,8BAAC,QAAK,SAAQ,YAAY,aAAG,OAAM;AAAA;AAAA,cAN9B,GAAG;AAAA,YAOV;AAAA,UAEJ;AAAA,aAzB4B,GA0B9B;AAAA,MAEJ;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Flex
|
|
3
|
+
} from "./chunk-25HMMI7R.js";
|
|
4
|
+
import {
|
|
5
|
+
Typo
|
|
6
|
+
} from "./chunk-O3XTRD7R.js";
|
|
7
|
+
|
|
8
|
+
// src/molecules/navigation.tsx
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
function Navigation({
|
|
11
|
+
items,
|
|
12
|
+
fontColor,
|
|
13
|
+
backgroundColor
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
Flex,
|
|
17
|
+
{
|
|
18
|
+
direction: "column",
|
|
19
|
+
gap: "4",
|
|
20
|
+
style: {
|
|
21
|
+
color: fontColor || "var(--white-a12)",
|
|
22
|
+
backgroundColor: backgroundColor || "var(--black-a12)"
|
|
23
|
+
},
|
|
24
|
+
children: items == null ? void 0 : items.map((item) => {
|
|
25
|
+
const { key, title, icon, itemRender, onClick, children } = item;
|
|
26
|
+
return /* @__PURE__ */ jsxs(Flex, { direction: "column", onClick, children: [
|
|
27
|
+
itemRender ? itemRender(item) : /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "3", pl: "4", pr: "4", height: "36px", children: [
|
|
28
|
+
icon,
|
|
29
|
+
/* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: title })
|
|
30
|
+
] }),
|
|
31
|
+
children == null ? void 0 : children.map((el) => {
|
|
32
|
+
return el.itemRender ? el.itemRender(el) : /* @__PURE__ */ jsx(
|
|
33
|
+
Flex,
|
|
34
|
+
{
|
|
35
|
+
height: "32px",
|
|
36
|
+
align: "center",
|
|
37
|
+
ml: "6",
|
|
38
|
+
onClick,
|
|
39
|
+
pl: "2",
|
|
40
|
+
pr: "2",
|
|
41
|
+
children: /* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: el.title })
|
|
42
|
+
},
|
|
43
|
+
el.key
|
|
44
|
+
);
|
|
45
|
+
})
|
|
46
|
+
] }, key);
|
|
47
|
+
})
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export {
|
|
53
|
+
Navigation
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=chunk-JL6FCZV4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/navigation.tsx"],"sourcesContent":["import React from 'react';\nimport { Flex, Typo } from '../atoms';\n\ninterface Item {\n itemRender?: (item: Item) => React.ReactNode;\n key: string;\n onClick?: () => void;\n title: string;\n icon?: React.ReactNode;\n children?: Item[];\n}\n\nexport interface NavigationProps {\n items?: Item[];\n fontColor?: string;\n backgroundColor?: string;\n}\n\nexport function Navigation({\n items,\n fontColor,\n backgroundColor,\n}: NavigationProps): React.ReactNode {\n return (\n <Flex\n direction=\"column\"\n gap=\"4\"\n style={{\n color: fontColor || 'var(--white-a12)',\n backgroundColor: backgroundColor || 'var(--black-a12)',\n }}\n >\n {items?.map((item) => {\n const { key, title, icon, itemRender, onClick, children } = item;\n return (\n <Flex direction=\"column\" key={key} onClick={onClick}>\n {itemRender ? (\n itemRender(item)\n ) : (\n <Flex align=\"center\" gap=\"3\" pl=\"4\" pr=\"4\" height=\"36px\">\n {icon}\n <Typo variant=\"subtitle\">{title}</Typo>\n </Flex>\n )}\n {children?.map((el) => {\n return el.itemRender ? (\n el.itemRender(el)\n ) : (\n <Flex\n height=\"32px\"\n align=\"center\"\n key={el.key}\n ml=\"6\"\n onClick={onClick}\n pl=\"2\"\n pr=\"2\"\n >\n <Typo variant=\"subtitle\">{el.title}</Typo>\n </Flex>\n );\n })}\n </Flex>\n );\n })}\n </Flex>\n );\n}\n"],"mappings":";;;;;;;;AAuCc,SAEE,KAFF;AArBP,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AACF,GAAqC;AACnC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,KAAI;AAAA,MACJ,OAAO;AAAA,QACL,OAAO,aAAa;AAAA,QACpB,iBAAiB,mBAAmB;AAAA,MACtC;AAAA,MAEC,yCAAO,IAAI,CAAC,SAAS;AACpB,cAAM,EAAE,KAAK,OAAO,MAAM,YAAY,SAAS,SAAS,IAAI;AAC5D,eACE,qBAAC,QAAK,WAAU,UAAmB,SAChC;AAAA,uBACC,WAAW,IAAI,IAEf,qBAAC,QAAK,OAAM,UAAS,KAAI,KAAI,IAAG,KAAI,IAAG,KAAI,QAAO,QAC/C;AAAA;AAAA,YACD,oBAAC,QAAK,SAAQ,YAAY,iBAAM;AAAA,aAClC;AAAA,UAED,qCAAU,IAAI,CAAC,OAAO;AACrB,mBAAO,GAAG,aACR,GAAG,WAAW,EAAE,IAEhB;AAAA,cAAC;AAAA;AAAA,gBACC,QAAO;AAAA,gBACP,OAAM;AAAA,gBAEN,IAAG;AAAA,gBACH;AAAA,gBACA,IAAG;AAAA,gBACH,IAAG;AAAA,gBAEH,8BAAC,QAAK,SAAQ,YAAY,aAAG,OAAM;AAAA;AAAA,cAN9B,GAAG;AAAA,YAOV;AAAA,UAEJ;AAAA,aAzB4B,GA0B9B;AAAA,MAEJ;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-KHHXN3CH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Popover
|
|
3
|
+
} from "./chunk-5AVBYDPB.js";
|
|
4
|
+
import {
|
|
5
|
+
Flex
|
|
6
|
+
} from "./chunk-25HMMI7R.js";
|
|
7
|
+
|
|
8
|
+
// src/molecules/company-selector.tsx
|
|
9
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
function CompanySelector(props) {
|
|
11
|
+
const { name, icon, items, onSelectItem } = props;
|
|
12
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
13
|
+
/* @__PURE__ */ jsx(Popover.Trigger, { children: /* @__PURE__ */ jsxs(Flex, { pl: "4", pr: "4", children: [
|
|
14
|
+
icon,
|
|
15
|
+
name
|
|
16
|
+
] }) }),
|
|
17
|
+
/* @__PURE__ */ jsx(Popover.Content, {})
|
|
18
|
+
] });
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
CompanySelector
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=chunk-LCC3I3PQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/company-selector.tsx"],"sourcesContent":["import React from 'react';\nimport { Flex, Popover } from '../atoms';\n\nexport interface CompanySelectorProps<T> {\n name?: React.ReactNode;\n icon?: React.ReactNode;\n items?: T[];\n onSelectItem?: (item: T) => void;\n}\n\nexport function CompanySelector<T>(\n props: CompanySelectorProps<T>\n): React.ReactNode {\n const { name, icon, items, onSelectItem } = props;\n\n return (\n <>\n <Popover.Trigger>\n <Flex pl=\"4\" pr=\"4\">\n {icon}\n {name}\n </Flex>\n </Popover.Trigger>\n <Popover.Content></Popover.Content>\n </>\n );\n}\n"],"mappings":";;;;;;;;AAgBI,mBACE,KACE,YAFJ;AANG,SAAS,gBACd,OACiB;AACjB,QAAM,EAAE,MAAM,MAAM,OAAO,aAAa,IAAI;AAE5C,SACE,iCACE;AAAA,wBAAC,QAAQ,SAAR,EACC,+BAAC,QAAK,IAAG,KAAI,IAAG,KACb;AAAA;AAAA,MACA;AAAA,OACH,GACF;AAAA,IACA,oBAAC,QAAQ,SAAR,EAAgB;AAAA,KACnB;AAEJ;","names":[]}
|