@clickhouse/click-ui 0.0.235 → 0.0.236
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/click-ui.bundled.es.js +139 -155
- package/dist/click-ui.bundled.es.js.map +1 -1
- package/dist/click-ui.bundled.umd.js +139 -155
- package/dist/click-ui.bundled.umd.js.map +1 -1
- package/dist/click-ui.es.js +139 -155
- package/dist/click-ui.es.js.map +1 -1
- package/dist/click-ui.umd.js +139 -155
- package/dist/click-ui.umd.js.map +1 -1
- package/dist/components/CardHorizontal/CardHorizontal.d.ts +5 -1
- package/dist/components/Logos/AWSGlue.d.ts +4 -0
- package/dist/components/Logos/types.d.ts +1 -1
- package/dist/styles/types.d.ts +10 -3
- package/dist/styles/variables.json.d.ts +10 -3
- package/package.json +1 -1
package/dist/click-ui.es.js
CHANGED
|
@@ -1669,54 +1669,46 @@ const AWSLight = (props) => /* @__PURE__ */ jsxs("svg", { width: "64", height: "
|
|
|
1669
1669
|
/* @__PURE__ */ jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M54.8755 39.0706C54.1621 38.1693 50.1534 38.6366 48.3359 38.8536C47.7923 38.9204 47.7074 38.453 48.2 38.1026C51.3934 35.8995 56.6421 36.5337 57.2536 37.2681C57.8651 38.0191 57.0837 43.1762 54.0942 45.6463C53.6355 46.0301 53.1939 45.8298 53.3977 45.3292C54.0772 43.6769 55.5889 39.9551 54.8755 39.0706Z", fill: "#FF9900" })
|
|
1670
1670
|
] });
|
|
1671
1671
|
const AWSAthena = (props) => /* @__PURE__ */ jsxs("svg", { width: "64", height: "64", viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
1672
|
-
/* @__PURE__ */ jsx("
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
/* @__PURE__ */ jsx("stop", { stopColor: "#4D27A8" }),
|
|
1679
|
-
/* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "#A166FF" })
|
|
1680
|
-
] }),
|
|
1681
|
-
/* @__PURE__ */ jsx("clipPath", { id: "clip0_5755_3307", children: /* @__PURE__ */ jsx("rect", { x: "4", y: "4", width: "56", height: "56", rx: "4", fill: "white" }) }),
|
|
1682
|
-
/* @__PURE__ */ jsx("clipPath", { id: "clip1_5755_3307", children: /* @__PURE__ */ jsx("rect", { width: "56", height: "56", fill: "white", transform: "translate(4 4)" }) })
|
|
1683
|
-
] })
|
|
1672
|
+
/* @__PURE__ */ jsx("path", { fill: "url(#aws-athena-gradient)", d: "M64 0H0v64h64z" }),
|
|
1673
|
+
/* @__PURE__ */ jsx("path", { fill: "#fff", fillRule: "evenodd", d: "M30.636 21.781c3.594 0 5.562.806 5.921 1.21-.359.403-2.327 1.208-5.921 1.208s-5.562-.805-5.921-1.209c.359-.403 2.327-1.209 5.921-1.209m-.409 6.445a.407.407 0 0 1 .178-.769q.096.002.178.047zm4.627 6.647c-.06.048-.196.142-.477.254-.25.1-.547.19-.882.27-.893.21-1.99.324-3.09.324-2.408 0-4.085-.52-4.446-.842l-1.066-9.958c1.635.669 4.043.89 5.743.89 1.671 0 4.027-.215 5.662-.858l-.638 4.38c-1.201-.453-2.7-1.111-4.121-1.803a1.19 1.19 0 0 0-1.134-.87c-.654 0-1.186.54-1.186 1.204 0 .665.532 1.205 1.186 1.205.155 0 .302-.032.438-.087 1.985.98 3.464 1.609 4.577 1.996zM23.097 23.077l1.286 12.003c.09 2.227 5.777 2.253 6.021 2.253 1.217 0 2.442-.13 3.448-.366a8 8 0 0 0 1.108-.34c.939-.378 1.431-.892 1.465-1.528l.536-3.678c.364.075.662.108.9.108.746 0 .943-.306 1.08-.518a.98.98 0 0 0 .117-.77c-.153-.632-1.045-1.464-1.64-1.958l.753-5.175h-.008c.004-.04.016-.077.016-.118 0-2.226-4.742-2.82-7.543-2.82s-7.543.593-7.543 2.82c0 .03.01.057.012.087zm7.171-7.03c6.921 0 12.552 5.716 12.552 12.74 0 7.026-5.63 12.74-12.552 12.74s-12.552-5.715-12.552-12.74c0-7.024 5.63-12.74 12.552-12.74m-19.88 17.42v1.613h7.146v-.095c2.285 4.815 7.127 8.154 12.734 8.154 7.796 0 14.14-6.437 14.14-14.351s-6.344-14.352-14.14-14.352c-6.065 0-11.235 3.904-13.24 9.36h-6.64v1.612h6.153a14.5 14.5 0 0 0-.405 3.224H8.8v1.612h7.401c.112 1.12.364 2.195.715 3.224zm43.276 19.361c-.96.977-2.627.982-3.587.009l-8.53-8.66a19.2 19.2 0 0 0 3.648-3.636l8.478 8.647a2.57 2.57 0 0 1 .739 1.82 2.57 2.57 0 0 1-.748 1.82m1.134-4.778-8.669-8.842a19.27 19.27 0 0 0 3.043-10.42c0-10.581-8.48-19.188-18.904-19.188-7.49 0-14.282 4.496-17.305 11.454l1.453.65c2.769-6.374 8.991-10.492 15.852-10.492 9.549 0 17.316 7.884 17.316 17.576 0 9.69-7.767 17.575-17.316 17.575-6.378 0-12.222-3.544-15.253-9.248l-1.398.766c3.308 6.227 9.688 10.094 16.651 10.094 3.645 0 7.05-1.055 9.94-2.876l8.747 8.878a4.076 4.076 0 0 0 5.83-.007A4.18 4.18 0 0 0 56 51.01a4.18 4.18 0 0 0-1.202-2.96", clipRule: "evenodd" }),
|
|
1674
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { x1: "0%", y1: "100%", x2: "100%", y2: "0%", id: "aws-athena-gradient", children: [
|
|
1675
|
+
/* @__PURE__ */ jsx("stop", { stopColor: "#4D27A8", offset: "0" }),
|
|
1676
|
+
/* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "#A166FF" })
|
|
1677
|
+
] }) })
|
|
1684
1678
|
] });
|
|
1685
|
-
const
|
|
1686
|
-
/* @__PURE__ */ jsx("
|
|
1679
|
+
const AWSGlue = (props) => /* @__PURE__ */ jsxs("svg", { width: "64", height: "64", viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
1680
|
+
/* @__PURE__ */ jsx("path", { fill: "url(#aws-glue-gradient)", d: "M64 0H0v64h64z" }),
|
|
1681
|
+
/* @__PURE__ */ jsx("path", { fill: "#fff", fillRule: "evenodd", d: "M26.4 18.4H28v-1.6h-1.6zm-1.6.8V16a.8.8 0 0 1 .8-.8h3.2a.8.8 0 0 1 .8.8v3.2a.8.8 0 0 1-.8.8h-3.2a.8.8 0 0 1-.8-.8m8-5.6h1.6V12h-1.6zm-1.6.8v-3.2a.8.8 0 0 1 .8-.8h3.2a.8.8 0 0 1 .8.8v3.2a.8.8 0 0 1-.8.8H32a.8.8 0 0 1-.8-.8m3.2 7.2H36V20h-1.6zm-.8-3.2h3.2a.8.8 0 0 1 .8.8v3.2a.8.8 0 0 1-.8.8h-3.2a.8.8 0 0 1-.8-.8v-3.2a.8.8 0 0 1 .8-.8M32 26.8c-1.409 0-6.517-.06-9.84-.877l8.117 12.85c.08.128.123.276.123.427v1.822c1.123.325 2.16.328 3.2.012V39.2c0-.151.043-.3.123-.427l8.116-12.85c-3.322.817-8.43.877-9.839.877m-12.597-2.246a1.06 1.06 0 0 1-.203-.604c0-2.276 7.507-2.697 11.982-2.746l.017 1.6c-5.497.06-8.857.687-10.04 1.154C22.413 24.483 26.113 25.2 32 25.2c5.87 0 9.566-.713 10.831-1.237-.517-.209-1.587-.517-3.728-.779l.194-1.588c4.85.592 5.503 1.522 5.503 2.354 0 .218-.076.418-.203.604L35.2 39.432V41.6a.8.8 0 0 1-.502.742c-.872.35-1.75.525-2.645.525-.888 0-1.794-.172-2.73-.517a.8.8 0 0 1-.523-.75v-2.168zm18.136 23.14a.8.8 0 0 1-.173.872l-4.8 4.8a.8.8 0 0 1-1.132 0l-4.8-4.8A.8.8 0 0 1 27.2 47.2h2.4v-2.4h1.6V48a.8.8 0 0 1-.8.8h-1.269L32 51.669l2.869-2.869H33.6a.8.8 0 0 1-.8-.8v-3.2h1.6v2.4h2.4a.8.8 0 0 1 .74.494", clipRule: "evenodd" }),
|
|
1682
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { x1: "0%", y1: "100%", x2: "100%", y2: "0%", id: "aws-glue-gradient", children: [
|
|
1687
1683
|
/* @__PURE__ */ jsx("stop", { stopColor: "#4D27A8", offset: "0" }),
|
|
1688
|
-
/* @__PURE__ */ jsx("stop", {
|
|
1689
|
-
] }) })
|
|
1684
|
+
/* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "#A166FF" })
|
|
1685
|
+
] }) })
|
|
1686
|
+
] });
|
|
1687
|
+
const AWSKinesis = (props) => /* @__PURE__ */ jsxs("svg", { width: "64", height: "64", viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
1690
1688
|
/* @__PURE__ */ jsxs("g", { fill: "none", fillRule: "evenodd", transform: "matrix(1.600000023841858, 0, 0, 1.600000023841858, 0, 0)", children: [
|
|
1691
|
-
/* @__PURE__ */ jsx("path", { d: "M0 0h40v40H0z", fill: "url(#
|
|
1689
|
+
/* @__PURE__ */ jsx("path", { d: "M0 0h40v40H0z", fill: "url(#aws-kinesis-gradient)" }),
|
|
1692
1690
|
/* @__PURE__ */ jsx("path", { d: "M9.886 31.107h1.005c0-4.043 2.626-8.176 22.109-8.176v-1.006c-20.368 0-23.114 4.642-23.114 9.182M12.773 34h1.004c0-3.64 0-9.14 19.223-9.14v-1.007c-18.665 0-20.227 5.013-20.227 10.147M8.004 13.75H7c0 3.555 4.788 5.81 14.233 6.75C11.788 21.438 7 23.694 7 27.25h1.004c0-2.333 3.247-6.247 24.996-6.247v-1.007c-21.749 0-24.996-3.913-24.996-6.246m2.887-3.857H9.886c0 4.54 2.746 9.181 23.114 9.181v-1.006c-19.483 0-22.11-4.133-22.11-8.175M33 16.139v1.007c-18.665 0-20.227-5.013-20.227-10.146h1.004c0 3.64 0 9.14 19.223 9.14", fill: "#FFF" })
|
|
1693
|
-
] })
|
|
1691
|
+
] }),
|
|
1692
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { x1: "0%", y1: "100%", x2: "100%", y2: "0%", id: "aws-kinesis-gradient", children: [
|
|
1693
|
+
/* @__PURE__ */ jsx("stop", { stopColor: "#4D27A8", offset: "0" }),
|
|
1694
|
+
/* @__PURE__ */ jsx("stop", { stopColor: "#A166FF", offset: "1" })
|
|
1695
|
+
] }) })
|
|
1694
1696
|
] });
|
|
1695
1697
|
const AWSRedshift = (props) => /* @__PURE__ */ jsxs("svg", { width: "64", height: "64", viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
1696
|
-
/* @__PURE__ */
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
/* @__PURE__ */ jsx("stop", { stopColor: "#4D27A8" }),
|
|
1703
|
-
/* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "#A166FF" })
|
|
1704
|
-
] }),
|
|
1705
|
-
/* @__PURE__ */ jsx("clipPath", { id: "clip0_472_6151", children: /* @__PURE__ */ jsx("rect", { x: "4", y: "4", width: "56", height: "56", rx: "4", fill: "white" }) })
|
|
1706
|
-
] })
|
|
1698
|
+
/* @__PURE__ */ jsx("path", { fill: "url(#aws-redshift-gradient)", d: "M64 0H0v64h64z" }),
|
|
1699
|
+
/* @__PURE__ */ jsx("path", { fill: "#fff", fillRule: "evenodd", d: "M40.66 28.136a1.536 1.536 0 0 1-1.537-1.533 1.537 1.537 0 0 1 3.073 0c0 .846-.689 1.533-1.536 1.533m-3.892 9.324a1.536 1.536 0 0 1-1.536-1.533 1.536 1.536 0 0 1 3.072 0c0 .845-.69 1.533-1.537 1.533m-9.342-1.554a1.536 1.536 0 0 1-1.535-1.533 1.537 1.537 0 0 1 3.072 0c0 .845-.69 1.533-1.537 1.533m-3.892 8.546a1.537 1.537 0 0 1-1.536-1.533 1.537 1.537 0 0 1 3.073 0c0 .846-.689 1.533-1.537 1.533M40.66 23.474a3.136 3.136 0 0 0-3.135 3.13 3.12 3.12 0 0 0 1.34 2.557l-1.463 3.702a3.126 3.126 0 0 0-3.588 2.061l-3.272-.742a3.13 3.13 0 0 0-3.116-2.938 3.135 3.135 0 0 0-3.133 3.129 3.1 3.1 0 0 0 .819 2.09l-1.428 3.343c-.052-.003-.099-.015-.15-.015a3.135 3.135 0 0 0-3.134 3.128 3.135 3.135 0 0 0 6.27 0 3.12 3.12 0 0 0-1.455-2.632l1.26-2.949c.303.097.618.163.95.163 1.234 0 2.293-.72 2.803-1.755l3.467.787a3.135 3.135 0 0 0 6.208-.606c0-.933-.42-1.761-1.07-2.336l1.536-3.889c.098.01.191.03.291.03a3.135 3.135 0 0 0 3.134-3.129 3.136 3.136 0 0 0-3.134-3.129M32 52.804c-7.785 0-13.602-2.336-13.602-4.426V18.521c2.649 2.152 8.254 3.29 13.619 3.29 5.34 0 10.922-1.128 13.585-3.262v29.83c0 2.089-5.818 4.426-13.602 4.426m.017-41.609c8.005 0 13.585 2.377 13.585 4.51s-5.58 4.51-13.585 4.51c-8.007 0-13.585-2.376-13.585-4.51s5.578-4.51 13.585-4.51m15.183 4.51c0-3.965-7.823-6.105-15.183-6.105s-15.183 2.14-15.183 6.106l.001.02H16.8v32.652c0 3.911 7.831 6.022 15.2 6.022s15.2-2.11 15.2-6.022V15.726h-.002z", clipRule: "evenodd" }),
|
|
1700
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { x1: "0%", y1: "100%", x2: "100%", y2: "0%", id: "aws-redshift-gradient", children: [
|
|
1701
|
+
/* @__PURE__ */ jsx("stop", { stopColor: "#4D27A8", offset: "0" }),
|
|
1702
|
+
/* @__PURE__ */ jsx("stop", { stopColor: "#A166FF", offset: "1" })
|
|
1703
|
+
] }) })
|
|
1707
1704
|
] });
|
|
1708
1705
|
const AWSMsk = (props) => /* @__PURE__ */ jsxs("svg", { width: "64", height: "64", viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
1709
|
-
/* @__PURE__ */
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
/* @__PURE__ */ jsx("stop", { stopColor: "#4D27A8" }),
|
|
1716
|
-
/* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "#A166FF" })
|
|
1717
|
-
] }),
|
|
1718
|
-
/* @__PURE__ */ jsx("clipPath", { id: "clip0_5310_1178", children: /* @__PURE__ */ jsx("rect", { x: "4", y: "4", width: "56", height: "56", rx: "4", fill: "white" }) })
|
|
1719
|
-
] })
|
|
1706
|
+
/* @__PURE__ */ jsx("path", { fill: "url(#aws-msk-gradient)", d: "M64 0H0v64h64z" }),
|
|
1707
|
+
/* @__PURE__ */ jsx("path", { fill: "#fff", fillRule: "evenodd", d: "M28.807 29.582v-7.193h1.596v3.197l2.155-3.197h1.768l-2.498 3.363 2.704 3.83h-1.894l-2.235-3.477v3.477zM52.8 39.294l-.535.463c-1.078.944-2.528 1.416-3.979 1.416s-2.904-.473-3.983-1.419l-1.067-.924c-1.564-1.37-4.304-1.37-5.865-.003l-1.073.93c-2.155 1.888-5.805 1.89-7.963-.003l-1.066-.924c-1.565-1.37-4.304-1.37-5.866-.003l-1.073.93c-2.155 1.888-5.804 1.89-7.962-.003l-.532-.46 1.045-1.21.535.464c1.566 1.372 4.305 1.372 5.866.003l1.073-.93c2.155-1.887 5.804-1.887 7.962.003l1.067.924c1.565 1.372 4.305 1.372 5.865.003l1.073-.93c2.155-1.887 5.805-1.887 7.963.003l1.066.924c1.565 1.372 4.304 1.372 5.866.003l.538-.466zm-1.681 9.618 1.045 1.208-.535.464c-1.077.944-2.527 1.415-3.978 1.415s-2.904-.472-3.984-1.418l-1.067-.924c-1.565-1.37-4.304-1.37-5.866-.003l-1.073.93c-2.153 1.888-5.802 1.889-7.962-.003l-1.066-.924c-1.564-1.37-4.304-1.37-5.866-.003l-1.073.93c-2.154 1.888-5.803 1.889-7.962-.003l-.532-.46 1.045-1.21.535.464c1.566 1.37 4.305 1.371 5.866.003l1.073-.93c2.155-1.887 5.803-1.888 7.962.003l1.066.924c1.566 1.37 4.305 1.371 5.866.003l1.073-.93c2.156-1.887 5.804-1.888 7.962.003l1.067.924c1.566 1.37 4.305 1.371 5.865.003zm0-5.067 1.045 1.208-.535.463c-2.154 1.89-5.804 1.89-7.962-.002L42.6 44.59c-1.565-1.371-4.304-1.37-5.866-.003l-1.073.93c-1.077.944-2.527 1.415-3.977 1.415-1.452 0-2.905-.472-3.985-1.418l-1.066-.924c-1.564-1.371-4.304-1.37-5.866-.003l-1.073.93c-2.153 1.889-5.803 1.889-7.962-.003l-.532-.461 1.045-1.208.535.464c1.566 1.371 4.305 1.37 5.866.002l1.073-.93c2.155-1.887 5.805-1.889 7.962.003l1.066.924c1.566 1.372 4.305 1.371 5.866.003l1.073-.93c2.156-1.887 5.805-1.889 7.962.003l1.067.924c1.566 1.372 4.305 1.371 5.865.003zM19.226 30.381a1.6 1.6 0 0 1 0 3.197 1.6 1.6 0 0 1 0-3.197m11.976-16.783a1.6 1.6 0 0 1 0 3.197 1.6 1.6 0 0 1 0-3.197M44.774 31.98a1.6 1.6 0 0 1-1.597 1.599 1.6 1.6 0 0 1 0-3.197 1.6 1.6 0 0 1 1.597 1.598M31.202 18.393c.531 0 1.026-.143 1.468-.375l8.134 11.843c-.333.373-.578.821-.706 1.319H22.305a3.16 3.16 0 0 0-.705-1.319l8.133-11.843c.442.232.937.375 1.469.375M19.226 35.176a3.19 3.19 0 0 0 3.08-2.398h17.792a3.19 3.19 0 0 0 3.08 2.398 3.2 3.2 0 0 0 3.193-3.197 3.2 3.2 0 0 0-3.194-3.197c-.368 0-.716.076-1.046.19L33.87 16.945a3.17 3.17 0 0 0 .525-1.747A3.2 3.2 0 0 0 31.202 12a3.2 3.2 0 0 0-3.194 3.197c0 .645.195 1.245.526 1.747l-8.261 12.029a3.2 3.2 0 0 0-1.047-.19 3.2 3.2 0 0 0-3.193 3.196 3.2 3.2 0 0 0 3.193 3.197", clipRule: "evenodd" }),
|
|
1708
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { x1: "0%", y1: "100%", x2: "100%", y2: "0%", id: "aws-msk-gradient", children: [
|
|
1709
|
+
/* @__PURE__ */ jsx("stop", { stopColor: "#4D27A8", offset: "0" }),
|
|
1710
|
+
/* @__PURE__ */ jsx("stop", { stopColor: "#A166FF", offset: "1" })
|
|
1711
|
+
] }) })
|
|
1720
1712
|
] });
|
|
1721
1713
|
const AWS_S3 = (props) => /* @__PURE__ */ jsxs("svg", { width: "64", height: "64", viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
1722
1714
|
/* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_472_6149)", children: [
|
|
@@ -2264,6 +2256,7 @@ const LogosLight = {
|
|
|
2264
2256
|
airbyte: Airbyte,
|
|
2265
2257
|
aws: AWSLight,
|
|
2266
2258
|
"aws-athena": AWSAthena,
|
|
2259
|
+
"aws-glue": AWSGlue,
|
|
2267
2260
|
"aws-kinesis": AWSKinesis,
|
|
2268
2261
|
"aws-msk": AWSMsk,
|
|
2269
2262
|
"aws-redshift": AWSRedshift,
|
|
@@ -2454,6 +2447,7 @@ const LogosDark = {
|
|
|
2454
2447
|
airbyte: Airbyte,
|
|
2455
2448
|
aws: AWSDark,
|
|
2456
2449
|
"aws-athena": AWSAthena,
|
|
2450
|
+
"aws-glue": AWSGlue,
|
|
2457
2451
|
"aws-kinesis": AWSKinesis,
|
|
2458
2452
|
"aws-msk": AWSMsk,
|
|
2459
2453
|
"aws-redshift": AWSRedshift,
|
|
@@ -9623,12 +9617,13 @@ const Description = styled.div.withConfig({
|
|
|
9623
9617
|
componentId: "sc-1qnbjoa-1"
|
|
9624
9618
|
})(["display:flex;flex-direction:column;align-self:start;gap:", ";flex:1;width:100%;"], ({
|
|
9625
9619
|
theme: theme2
|
|
9626
|
-
}) => theme2.click.card.horizontal.space.gap);
|
|
9620
|
+
}) => theme2.click.card.horizontal.space.md.gap);
|
|
9627
9621
|
const Wrapper$9 = styled.div.withConfig({
|
|
9628
9622
|
componentId: "sc-1qnbjoa-2"
|
|
9629
9623
|
})(["display:inline-flex;width:100%;max-width:100%;align-items:center;justify-content:flex-start;", ""], ({
|
|
9630
9624
|
theme: theme2,
|
|
9631
9625
|
$color,
|
|
9626
|
+
$size,
|
|
9632
9627
|
$isSelected,
|
|
9633
9628
|
$isSelectable,
|
|
9634
9629
|
$disabled
|
|
@@ -9637,8 +9632,7 @@ const Wrapper$9 = styled.div.withConfig({
|
|
|
9637
9632
|
color: ${theme2.click.card.horizontal[$color].color.title.default};
|
|
9638
9633
|
border-radius: ${theme2.click.card.horizontal.radii.all};
|
|
9639
9634
|
border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke[$isSelectable ? $isSelected ? "active" : "hover" : "default"]};
|
|
9640
|
-
|
|
9641
|
-
gap: ${theme2.click.card.horizontal.space.gap};
|
|
9635
|
+
padding: ${$size === "md" ? `${theme2.click.card.horizontal.space.md.y} ${theme2.click.card.horizontal.space.md.x}` : `${theme2.click.card.horizontal.space.sm.y} ${theme2.click.card.horizontal.space.sm.x}`};
|
|
9642
9636
|
font: ${theme2.click.card.horizontal.typography.title.default};
|
|
9643
9637
|
${Description} {
|
|
9644
9638
|
color: ${theme2.click.card.horizontal[$color].color.description.default};
|
|
@@ -9695,15 +9689,17 @@ const CardIcon$1 = styled(SvgImage).withConfig({
|
|
|
9695
9689
|
const ContentWrapper = styled.div.withConfig({
|
|
9696
9690
|
componentId: "sc-1qnbjoa-4"
|
|
9697
9691
|
})(["display:flex;flex-direction:row;width:100%;gap:", ";@media (max-width:", "){flex-direction:column;}"], ({
|
|
9698
|
-
theme: theme2
|
|
9699
|
-
|
|
9692
|
+
theme: theme2,
|
|
9693
|
+
$size
|
|
9694
|
+
}) => $size === "md" ? theme2.click.card.horizontal.space.md.gap : theme2.click.card.horizontal.space.sm.gap, ({
|
|
9700
9695
|
theme: theme2
|
|
9701
9696
|
}) => theme2.breakpoint.sizes.md);
|
|
9702
9697
|
const IconTextContentWrapper = styled.div.withConfig({
|
|
9703
9698
|
componentId: "sc-1qnbjoa-5"
|
|
9704
9699
|
})(["display:flex;flex-direction:row;align-items:center;width:100%;gap:", ";"], ({
|
|
9705
|
-
theme: theme2
|
|
9706
|
-
|
|
9700
|
+
theme: theme2,
|
|
9701
|
+
$size
|
|
9702
|
+
}) => $size === "md" ? theme2.click.card.horizontal.space.md.gap : theme2.click.card.horizontal.space.sm.gap);
|
|
9707
9703
|
const CardHorizontal = ({
|
|
9708
9704
|
title,
|
|
9709
9705
|
icon,
|
|
@@ -9715,6 +9711,7 @@ const CardHorizontal = ({
|
|
|
9715
9711
|
isSelectable = infoText ? false : true,
|
|
9716
9712
|
children,
|
|
9717
9713
|
color = "default",
|
|
9714
|
+
size: size2 = "md",
|
|
9718
9715
|
badgeText,
|
|
9719
9716
|
badgeState,
|
|
9720
9717
|
badgeIcon,
|
|
@@ -9730,8 +9727,8 @@ const CardHorizontal = ({
|
|
|
9730
9727
|
window.open(infoUrl, "_blank");
|
|
9731
9728
|
}
|
|
9732
9729
|
};
|
|
9733
|
-
return /* @__PURE__ */ jsx(Wrapper$9, { $disabled: disabled, $isSelected: isSelected, $isSelectable: isSelectable, $color: color, tabIndex: 0, onClick: handleClick, ...props, children: /* @__PURE__ */ jsxs(ContentWrapper, { children: [
|
|
9734
|
-
/* @__PURE__ */ jsxs(IconTextContentWrapper, { children: [
|
|
9730
|
+
return /* @__PURE__ */ jsx(Wrapper$9, { $disabled: disabled, $isSelected: isSelected, $isSelectable: isSelectable, $color: color, $size: size2, tabIndex: 0, onClick: handleClick, ...props, children: /* @__PURE__ */ jsxs(ContentWrapper, { $size: size2, children: [
|
|
9731
|
+
/* @__PURE__ */ jsxs(IconTextContentWrapper, { $size: size2, children: [
|
|
9735
9732
|
icon && /* @__PURE__ */ jsx(CardIcon$1, { name: icon, "aria-hidden": true }),
|
|
9736
9733
|
/* @__PURE__ */ jsxs(Container, { padding: "none", orientation: "vertical", children: [
|
|
9737
9734
|
title && /* @__PURE__ */ jsxs(Header$4, { as: Container, isResponsive: false, gap: "xs", justifyContent: "space-between", fillWidth: true, children: [
|
|
@@ -16987,7 +16984,7 @@ const truncateFilename = (filename, maxLength = 40, delimiter = "~") => {
|
|
|
16987
16984
|
};
|
|
16988
16985
|
const UploadArea$1 = styled$1.div.withConfig({
|
|
16989
16986
|
componentId: "sc-1rzizve-0"
|
|
16990
|
-
})(["background-color:", ";border:", ";border-radius:", ";padding:", ";display:flex;flex-direction:", ";align-items:center;justify-content:", ";gap:", ";cursor:", ";transition:", ";", " ", ""], ({
|
|
16987
|
+
})(["background-color:", ";border:", ";border-radius:", ";padding:", ";min-height:", ";display:flex;flex-direction:", ";align-items:center;justify-content:", ";gap:", ";cursor:", ";transition:", ";", " ", ""], ({
|
|
16991
16988
|
theme: theme2
|
|
16992
16989
|
}) => theme2.click.fileUpload.color.background.default, ({
|
|
16993
16990
|
theme: theme2
|
|
@@ -16998,7 +16995,10 @@ const UploadArea$1 = styled$1.div.withConfig({
|
|
|
16998
16995
|
theme: theme2,
|
|
16999
16996
|
$hasFile,
|
|
17000
16997
|
$size
|
|
17001
|
-
}) => $hasFile || $size === "sm" ? `${theme2.click.fileUpload.sm.space.y} ${theme2.click.fileUpload.sm.space.x}` : `${theme2.click.fileUpload.md.space.y} ${theme2.click.fileUpload.md.space.x}`, (
|
|
16998
|
+
}) => $hasFile || $size === "sm" ? `${theme2.click.fileUpload.sm.space.y} ${theme2.click.fileUpload.sm.space.x}` : `${theme2.click.fileUpload.md.space.y} ${theme2.click.fileUpload.md.space.x}`, ({
|
|
16999
|
+
theme: theme2,
|
|
17000
|
+
$size
|
|
17001
|
+
}) => $size === "sm" ? `calc(${theme2.click.fileUpload.sm.space.y} * 2 + ${theme2.sizes[6]})` : "auto", (props) => props.$hasFile ? "row" : props.$size === "sm" ? "row" : "column", (props) => props.$hasFile ? "space-between" : props.$size === "sm" ? "space-between" : "center", ({
|
|
17002
17002
|
theme: theme2,
|
|
17003
17003
|
$size
|
|
17004
17004
|
}) => $size === "sm" ? theme2.click.fileUpload.sm.space.gap : theme2.click.fileUpload.md.space.gap, (props) => props.$hasFile ? "default" : "pointer", ({
|
|
@@ -17009,7 +17009,7 @@ const UploadArea$1 = styled$1.div.withConfig({
|
|
|
17009
17009
|
theme: theme2
|
|
17010
17010
|
}) => theme2.click.fileUpload.color.background.active, ({
|
|
17011
17011
|
theme: theme2
|
|
17012
|
-
}) => theme2.click.fileUpload.color.stroke.active)), (props) => props.$isError && css$1(["background-color:", ";border:
|
|
17012
|
+
}) => theme2.click.fileUpload.color.stroke.active)), (props) => props.$isError && css$1(["background-color:", ";border-color:transparent;"], ({
|
|
17013
17013
|
theme: theme2
|
|
17014
17014
|
}) => theme2.click.fileUpload.color.background.error));
|
|
17015
17015
|
const FileUploadTitle$1 = styled$1(Title$2).withConfig({
|
|
@@ -17020,24 +17020,32 @@ const FileUploadTitle$1 = styled$1(Title$2).withConfig({
|
|
|
17020
17020
|
theme: theme2,
|
|
17021
17021
|
$isNotSupported
|
|
17022
17022
|
}) => $isNotSupported ? theme2.click.fileUpload.color.title.error : theme2.click.fileUpload.color.title.default);
|
|
17023
|
-
const
|
|
17023
|
+
const FileName$1 = styled$1(Text).withConfig({
|
|
17024
17024
|
componentId: "sc-1rzizve-2"
|
|
17025
17025
|
})(["font:", ";color:", ";"], ({
|
|
17026
17026
|
theme: theme2
|
|
17027
17027
|
}) => theme2.click.fileUpload.typography.description.default, ({
|
|
17028
17028
|
theme: theme2
|
|
17029
|
-
}) => theme2.click.fileUpload.color.
|
|
17030
|
-
const
|
|
17029
|
+
}) => theme2.click.fileUpload.color.title.default);
|
|
17030
|
+
const FileUploadDescription$1 = styled$1(Text).withConfig({
|
|
17031
17031
|
componentId: "sc-1rzizve-3"
|
|
17032
|
+
})(["font:", ";color:", ";"], ({
|
|
17033
|
+
theme: theme2
|
|
17034
|
+
}) => theme2.click.fileUpload.typography.description.default, ({
|
|
17035
|
+
theme: theme2,
|
|
17036
|
+
$isError
|
|
17037
|
+
}) => $isError ? theme2.click.fileUpload.color.title.error : theme2.click.fileUpload.color.description.default);
|
|
17038
|
+
const DocumentIcon$1 = styled$1(SvgImage).withConfig({
|
|
17039
|
+
componentId: "sc-1rzizve-4"
|
|
17032
17040
|
})(["svg{width:", ";height:", ";color:", ";}"], ({
|
|
17033
17041
|
theme: theme2
|
|
17034
|
-
}) => theme2.click.fileUpload.
|
|
17042
|
+
}) => theme2.click.fileUpload.md.icon.size.width, ({
|
|
17035
17043
|
theme: theme2
|
|
17036
|
-
}) => theme2.click.fileUpload.
|
|
17044
|
+
}) => theme2.click.fileUpload.md.icon.size.height, ({
|
|
17037
17045
|
theme: theme2
|
|
17038
|
-
}) => theme2.click.fileUpload.
|
|
17046
|
+
}) => theme2.click.fileUpload.md.color.icon.default);
|
|
17039
17047
|
const UploadIcon$1 = styled$1(SvgImage).withConfig({
|
|
17040
|
-
componentId: "sc-1rzizve-
|
|
17048
|
+
componentId: "sc-1rzizve-5"
|
|
17041
17049
|
})(["svg{width:", ";height:", ";color:", ";}"], ({
|
|
17042
17050
|
theme: theme2
|
|
17043
17051
|
}) => theme2.click.fileUpload.md.icon.size.width, ({
|
|
@@ -17046,16 +17054,11 @@ const UploadIcon$1 = styled$1(SvgImage).withConfig({
|
|
|
17046
17054
|
theme: theme2
|
|
17047
17055
|
}) => theme2.click.fileUpload.md.color.icon.default);
|
|
17048
17056
|
const UploadText$1 = styled$1.div.withConfig({
|
|
17049
|
-
componentId: "sc-1rzizve-5"
|
|
17050
|
-
})(["text-align:", ";", " ", ""], (props) => props.$hasFile || props.$size === "sm" ? "left" : "center", (props) => (props.$hasFile || props.$size === "sm") && css$1(["flex:1;"]), (props) => !props.$hasFile && props.$size === "md" && css$1(["display:flex;flex-direction:column;align-items:center;width:100%;"]));
|
|
17051
|
-
const FileInfoHeader$1 = styled$1.div.withConfig({
|
|
17052
17057
|
componentId: "sc-1rzizve-6"
|
|
17053
|
-
})(["display:flex;align-items:center;
|
|
17054
|
-
|
|
17055
|
-
}) => theme2.click.fileUpload.sm.space.gap);
|
|
17056
|
-
const FileInfo$1 = styled$1.div.withConfig({
|
|
17058
|
+
})(["text-align:", ";", " ", ""], (props) => props.$hasFile || props.$size === "sm" ? "left" : "center", (props) => (props.$hasFile || props.$size === "sm") && css$1(["flex:1;"]), (props) => !props.$hasFile && props.$size === "md" && css$1(["display:flex;flex-direction:column;align-items:center;width:100%;"]));
|
|
17059
|
+
styled$1.div.withConfig({
|
|
17057
17060
|
componentId: "sc-1rzizve-7"
|
|
17058
|
-
})(["display:flex;flex-direction:
|
|
17061
|
+
})(["display:flex;flex-direction:row;gap:", ";"], ({
|
|
17059
17062
|
theme: theme2
|
|
17060
17063
|
}) => theme2.click.fileUpload.hasFile.header.space.gap);
|
|
17061
17064
|
const FileDetails$1 = styled$1.div.withConfig({
|
|
@@ -17066,17 +17069,14 @@ const FileDetails$1 = styled$1.div.withConfig({
|
|
|
17066
17069
|
const FileActions$1 = styled$1.div.withConfig({
|
|
17067
17070
|
componentId: "sc-1rzizve-9"
|
|
17068
17071
|
})(["display:flex;align-items:center;margin-left:auto;gap:0;"]);
|
|
17069
|
-
const
|
|
17072
|
+
const FileContentContainer$1 = styled$1.div.withConfig({
|
|
17070
17073
|
componentId: "sc-1rzizve-10"
|
|
17071
|
-
})(["display:flex;flex-direction:
|
|
17072
|
-
|
|
17074
|
+
})(["flex:1;display:flex;flex-direction:column;justify-content:center;min-height:", ";"], ({
|
|
17075
|
+
$size
|
|
17076
|
+
}) => $size === "sm" ? "24px" : "auto");
|
|
17077
|
+
const ProgressBarWrapper$1 = styled$1.div.withConfig({
|
|
17073
17078
|
componentId: "sc-1rzizve-11"
|
|
17074
|
-
})(["
|
|
17075
|
-
const ProgressPercentage$1 = styled$1(Text).withConfig({
|
|
17076
|
-
componentId: "sc-1rzizve-12"
|
|
17077
|
-
})(["min-width:", ";text-align:right;padding-right:", ";"], ({
|
|
17078
|
-
theme: theme2
|
|
17079
|
-
}) => theme2.sizes[10], ({
|
|
17079
|
+
})(["margin-top:", ";margin-bottom:9px;"], ({
|
|
17080
17080
|
theme: theme2
|
|
17081
17081
|
}) => theme2.click.fileUpload.md.space.gap);
|
|
17082
17082
|
const formatFileSize$1 = (sizeInBytes) => {
|
|
@@ -17227,26 +17227,24 @@ const FileUpload = ({
|
|
|
17227
17227
|
e.stopPropagation();
|
|
17228
17228
|
handleBrowseClick();
|
|
17229
17229
|
}, children: "Browse file" })
|
|
17230
|
-
] }) : /* @__PURE__ */ jsxs(
|
|
17231
|
-
/* @__PURE__ */
|
|
17232
|
-
|
|
17230
|
+
] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
17231
|
+
/* @__PURE__ */ jsx(DocumentIcon$1, { name: "document" }),
|
|
17232
|
+
/* @__PURE__ */ jsxs(FileContentContainer$1, { $size: size2, children: [
|
|
17233
17233
|
/* @__PURE__ */ jsxs(FileDetails$1, { children: [
|
|
17234
|
-
/* @__PURE__ */ jsx(
|
|
17235
|
-
|
|
17236
|
-
|
|
17234
|
+
/* @__PURE__ */ jsx(FileName$1, { children: truncateFilename(file.name) }),
|
|
17235
|
+
showProgress && !showSuccess && /* @__PURE__ */ jsxs(FileUploadDescription$1, { children: [
|
|
17236
|
+
progress,
|
|
17237
|
+
"%"
|
|
17238
|
+
] }),
|
|
17239
|
+
!showProgress && !showSuccess && /* @__PURE__ */ jsx(FileUploadDescription$1, { $isError: true, children: failureMessage }),
|
|
17237
17240
|
showSuccess && /* @__PURE__ */ jsx(SvgImage, { size: "xs", state: "success", name: "check" })
|
|
17238
17241
|
] }),
|
|
17239
|
-
/* @__PURE__ */
|
|
17240
|
-
|
|
17241
|
-
/* @__PURE__ */ jsx(IconButton$1, { size: "sm", icon: "cross", type: "ghost", onClick: handleRemoveFile })
|
|
17242
|
-
] })
|
|
17242
|
+
showProgress && !showSuccess && /* @__PURE__ */ jsx(ProgressBarWrapper$1, { children: /* @__PURE__ */ jsx(ProgressBar, { progress, type: "small" }) }),
|
|
17243
|
+
(showSuccess || !showProgress) && /* @__PURE__ */ jsx(FileUploadDescription$1, { children: formatFileSize$1(file.size) })
|
|
17243
17244
|
] }),
|
|
17244
|
-
|
|
17245
|
-
/* @__PURE__ */ jsx(
|
|
17246
|
-
/* @__PURE__ */
|
|
17247
|
-
progress,
|
|
17248
|
-
"%"
|
|
17249
|
-
] })
|
|
17245
|
+
/* @__PURE__ */ jsxs(FileActions$1, { children: [
|
|
17246
|
+
!showProgress && !showSuccess && /* @__PURE__ */ jsx(IconButton$1, { size: "sm", icon: "refresh", type: "ghost", onClick: handleRetryUpload }),
|
|
17247
|
+
/* @__PURE__ */ jsx(IconButton$1, { size: "sm", icon: "cross", type: "ghost", onClick: handleRemoveFile })
|
|
17250
17248
|
] })
|
|
17251
17249
|
] }) }),
|
|
17252
17250
|
/* @__PURE__ */ jsx("input", { type: "file", ref: fileInputRef, accept: acceptedFileTypes, onChange: handleFileSelect, style: {
|
|
@@ -17283,15 +17281,23 @@ const FileUploadTitle = styled$1(Title$2).withConfig({
|
|
|
17283
17281
|
theme: theme2,
|
|
17284
17282
|
$isNotSupported
|
|
17285
17283
|
}) => $isNotSupported ? theme2.click.fileUpload.color.title.error : theme2.click.fileUpload.color.title.default);
|
|
17286
|
-
const
|
|
17284
|
+
const FileName = styled$1(Text).withConfig({
|
|
17287
17285
|
componentId: "sc-1w9rsfj-2"
|
|
17288
17286
|
})(["font:", ";color:", ";"], ({
|
|
17289
17287
|
theme: theme2
|
|
17290
17288
|
}) => theme2.click.fileUpload.typography.description.default, ({
|
|
17291
17289
|
theme: theme2
|
|
17292
|
-
}) => theme2.click.fileUpload.color.
|
|
17293
|
-
const
|
|
17290
|
+
}) => theme2.click.fileUpload.color.title.default);
|
|
17291
|
+
const FileUploadDescription = styled$1(Text).withConfig({
|
|
17294
17292
|
componentId: "sc-1w9rsfj-3"
|
|
17293
|
+
})(["font:", ";color:", ";"], ({
|
|
17294
|
+
theme: theme2
|
|
17295
|
+
}) => theme2.click.fileUpload.typography.description.default, ({
|
|
17296
|
+
theme: theme2,
|
|
17297
|
+
$isError
|
|
17298
|
+
}) => $isError ? theme2.click.fileUpload.color.title.error : theme2.click.fileUpload.color.description.default);
|
|
17299
|
+
const UploadIcon = styled$1(SvgImage).withConfig({
|
|
17300
|
+
componentId: "sc-1w9rsfj-4"
|
|
17295
17301
|
})(["svg{width:", ";height:", ";color:", ";}"], ({
|
|
17296
17302
|
theme: theme2
|
|
17297
17303
|
}) => theme2.click.fileUpload.md.icon.size.width, ({
|
|
@@ -17300,17 +17306,17 @@ const UploadIcon = styled$1(SvgImage).withConfig({
|
|
|
17300
17306
|
theme: theme2
|
|
17301
17307
|
}) => theme2.click.fileUpload.md.color.icon.default);
|
|
17302
17308
|
const UploadText = styled$1.div.withConfig({
|
|
17303
|
-
componentId: "sc-1w9rsfj-
|
|
17309
|
+
componentId: "sc-1w9rsfj-5"
|
|
17304
17310
|
})(["text-align:center;display:flex;flex-direction:column;align-items:center;width:100%;"]);
|
|
17305
17311
|
const FilesList = styled$1.div.withConfig({
|
|
17306
|
-
componentId: "sc-1w9rsfj-
|
|
17312
|
+
componentId: "sc-1w9rsfj-6"
|
|
17307
17313
|
})(["display:flex;flex-direction:column;gap:", ";width:100%;margin-top:", ";"], ({
|
|
17308
17314
|
theme: theme2
|
|
17309
17315
|
}) => theme2.click.fileUpload.sm.space.gap, ({
|
|
17310
17316
|
theme: theme2
|
|
17311
17317
|
}) => theme2.click.fileUpload.md.space.gap);
|
|
17312
17318
|
const FileItem = styled$1.div.withConfig({
|
|
17313
|
-
componentId: "sc-1w9rsfj-
|
|
17319
|
+
componentId: "sc-1w9rsfj-7"
|
|
17314
17320
|
})(["background-color:", ";border:", ";border-radius:", ";padding:", ";display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:", ";", ""], ({
|
|
17315
17321
|
theme: theme2
|
|
17316
17322
|
}) => theme2.click.fileUpload.color.background.default, ({
|
|
@@ -17321,11 +17327,11 @@ const FileItem = styled$1.div.withConfig({
|
|
|
17321
17327
|
theme: theme2
|
|
17322
17328
|
}) => `${theme2.click.fileUpload.sm.space.y} ${theme2.click.fileUpload.sm.space.x}`, ({
|
|
17323
17329
|
theme: theme2
|
|
17324
|
-
}) => theme2.click.fileUpload.sm.space.gap, (props) => props.$isError && css$1(["background-color:", ";border:
|
|
17330
|
+
}) => theme2.click.fileUpload.sm.space.gap, (props) => props.$isError && css$1(["background-color:", ";border-color:transparent;"], ({
|
|
17325
17331
|
theme: theme2
|
|
17326
17332
|
}) => theme2.click.fileUpload.color.background.error));
|
|
17327
17333
|
const DocumentIcon = styled$1(SvgImage).withConfig({
|
|
17328
|
-
componentId: "sc-1w9rsfj-
|
|
17334
|
+
componentId: "sc-1w9rsfj-8"
|
|
17329
17335
|
})(["svg{width:", ";height:", ";color:", ";}"], ({
|
|
17330
17336
|
theme: theme2
|
|
17331
17337
|
}) => theme2.click.fileUpload.sm.icon.size.width, ({
|
|
@@ -17333,35 +17339,20 @@ const DocumentIcon = styled$1(SvgImage).withConfig({
|
|
|
17333
17339
|
}) => theme2.click.fileUpload.sm.icon.size.height, ({
|
|
17334
17340
|
theme: theme2
|
|
17335
17341
|
}) => theme2.click.fileUpload.sm.color.icon.default);
|
|
17336
|
-
const FileInfoHeader = styled$1.div.withConfig({
|
|
17337
|
-
componentId: "sc-1w9rsfj-8"
|
|
17338
|
-
})(["display:flex;align-items:center;gap:", ";width:100%;"], ({
|
|
17339
|
-
theme: theme2
|
|
17340
|
-
}) => theme2.click.fileUpload.sm.space.gap);
|
|
17341
|
-
const FileInfo = styled$1.div.withConfig({
|
|
17342
|
-
componentId: "sc-1w9rsfj-9"
|
|
17343
|
-
})(["display:flex;flex-direction:column;gap:", ";flex:1;"], ({
|
|
17344
|
-
theme: theme2
|
|
17345
|
-
}) => theme2.click.fileUpload.hasFile.header.space.gap);
|
|
17346
17342
|
const FileDetails = styled$1.div.withConfig({
|
|
17347
|
-
componentId: "sc-1w9rsfj-
|
|
17343
|
+
componentId: "sc-1w9rsfj-9"
|
|
17348
17344
|
})(["display:flex;gap:", ";border:none;"], ({
|
|
17349
17345
|
theme: theme2
|
|
17350
17346
|
}) => theme2.click.fileUpload.md.space.gap);
|
|
17351
17347
|
const FileActions = styled$1.div.withConfig({
|
|
17352
|
-
componentId: "sc-1w9rsfj-
|
|
17348
|
+
componentId: "sc-1w9rsfj-10"
|
|
17353
17349
|
})(["display:flex;align-items:center;margin-left:auto;gap:0;"]);
|
|
17354
|
-
const
|
|
17350
|
+
const FileContentContainer = styled$1.div.withConfig({
|
|
17351
|
+
componentId: "sc-1w9rsfj-11"
|
|
17352
|
+
})(["flex:1;display:flex;flex-direction:column;justify-content:center;min-height:24px;"]);
|
|
17353
|
+
const ProgressBarWrapper = styled$1.div.withConfig({
|
|
17355
17354
|
componentId: "sc-1w9rsfj-12"
|
|
17356
|
-
})(["
|
|
17357
|
-
const ProgressBarContainer = styled$1.div.withConfig({
|
|
17358
|
-
componentId: "sc-1w9rsfj-13"
|
|
17359
|
-
})(["width:100%;flex:1;"]);
|
|
17360
|
-
const ProgressPercentage = styled$1(Text).withConfig({
|
|
17361
|
-
componentId: "sc-1w9rsfj-14"
|
|
17362
|
-
})(["min-width:", ";text-align:right;padding-right:", ";"], ({
|
|
17363
|
-
theme: theme2
|
|
17364
|
-
}) => theme2.sizes[10], ({
|
|
17355
|
+
})(["margin-top:", ";margin-bottom:9px;"], ({
|
|
17365
17356
|
theme: theme2
|
|
17366
17357
|
}) => theme2.click.fileUpload.md.space.gap);
|
|
17367
17358
|
const formatFileSize = (sizeInBytes) => {
|
|
@@ -17501,28 +17492,26 @@ const FileMultiUpload = ({
|
|
|
17501
17492
|
handleBrowseClick();
|
|
17502
17493
|
}, children: "Browse files" })
|
|
17503
17494
|
] }),
|
|
17504
|
-
files.length > 0 && /* @__PURE__ */ jsx(FilesList, { children: files.map((file) => /* @__PURE__ */
|
|
17505
|
-
/* @__PURE__ */
|
|
17506
|
-
|
|
17495
|
+
files.length > 0 && /* @__PURE__ */ jsx(FilesList, { children: files.map((file) => /* @__PURE__ */ jsxs(FileItem, { $isError: file.status === "error", children: [
|
|
17496
|
+
/* @__PURE__ */ jsx(DocumentIcon, { name: "document" }),
|
|
17497
|
+
/* @__PURE__ */ jsxs(FileContentContainer, { children: [
|
|
17507
17498
|
/* @__PURE__ */ jsxs(FileDetails, { children: [
|
|
17508
|
-
/* @__PURE__ */ jsx(
|
|
17509
|
-
|
|
17510
|
-
|
|
17499
|
+
/* @__PURE__ */ jsx(FileName, { children: truncateFilename(file.name) }),
|
|
17500
|
+
file.status === "uploading" && /* @__PURE__ */ jsxs(FileUploadDescription, { children: [
|
|
17501
|
+
file.progress,
|
|
17502
|
+
"%"
|
|
17503
|
+
] }),
|
|
17504
|
+
file.status === "error" && /* @__PURE__ */ jsx(FileUploadDescription, { $isError: true, children: file.errorMessage || "Upload failed" }),
|
|
17511
17505
|
file.status === "success" && /* @__PURE__ */ jsx(SvgImage, { size: "xs", state: "success", name: "check" })
|
|
17512
17506
|
] }),
|
|
17513
|
-
/* @__PURE__ */
|
|
17514
|
-
|
|
17515
|
-
/* @__PURE__ */ jsx(IconButton$1, { size: "sm", icon: "cross", type: "ghost", onClick: () => handleRemoveFile(file.id) })
|
|
17516
|
-
] })
|
|
17507
|
+
file.status === "uploading" && /* @__PURE__ */ jsx(ProgressBarWrapper, { children: /* @__PURE__ */ jsx(ProgressBar, { progress: file.progress, type: "small" }) }),
|
|
17508
|
+
(file.status === "success" || file.status === "error") && /* @__PURE__ */ jsx(FileUploadDescription, { children: formatFileSize(file.size) })
|
|
17517
17509
|
] }),
|
|
17518
|
-
|
|
17519
|
-
|
|
17520
|
-
/* @__PURE__ */
|
|
17521
|
-
file.progress,
|
|
17522
|
-
"%"
|
|
17523
|
-
] })
|
|
17510
|
+
/* @__PURE__ */ jsxs(FileActions, { children: [
|
|
17511
|
+
file.status === "error" && /* @__PURE__ */ jsx(IconButton$1, { size: "sm", icon: "refresh", type: "ghost", onClick: () => handleRetryUpload(file.id) }),
|
|
17512
|
+
/* @__PURE__ */ jsx(IconButton$1, { size: "sm", icon: "cross", type: "ghost", onClick: () => handleRemoveFile(file.id) })
|
|
17524
17513
|
] })
|
|
17525
|
-
] }
|
|
17514
|
+
] }, file.id)) }),
|
|
17526
17515
|
/* @__PURE__ */ jsx("input", { type: "file", ref: fileInputRef, accept: acceptedFileTypes, onChange: handleFileSelect, multiple: true, style: {
|
|
17527
17516
|
display: "none"
|
|
17528
17517
|
} })
|
|
@@ -34673,18 +34662,6 @@ const Pagination = ({
|
|
|
34673
34662
|
};
|
|
34674
34663
|
const leftButtonDisabled = currentPage <= 1;
|
|
34675
34664
|
const rightButtonDisabled = !!totalPages && currentPage === totalPages || disableNextButton;
|
|
34676
|
-
const onKeyDown = (e) => {
|
|
34677
|
-
var _a;
|
|
34678
|
-
const isInputEnabled = !((_a = inputRef.current) == null ? void 0 : _a.disabled);
|
|
34679
|
-
if ((e.key === "ArrowUp" || e.key === "ArrowRight") && isInputEnabled && !rightButtonDisabled) {
|
|
34680
|
-
onChangeProp(currentPage + 1);
|
|
34681
|
-
} else if ((e.key === "ArrowDown" || e.key === "ArrowLeft") && isInputEnabled && !leftButtonDisabled) {
|
|
34682
|
-
const newPage = currentPage - 1;
|
|
34683
|
-
if (newPage > 0) {
|
|
34684
|
-
onChangeProp(newPage);
|
|
34685
|
-
}
|
|
34686
|
-
}
|
|
34687
|
-
};
|
|
34688
34665
|
const onChange = (value) => {
|
|
34689
34666
|
var _a;
|
|
34690
34667
|
const sanitizedValue = parseInt(value, 10);
|
|
@@ -34726,7 +34703,7 @@ const Pagination = ({
|
|
|
34726
34703
|
] }),
|
|
34727
34704
|
/* @__PURE__ */ jsxs(Container, { gap: "xxs", fillWidth: false, children: [
|
|
34728
34705
|
/* @__PURE__ */ jsx(IconButton$1, { icon: "chevron-left", type: "ghost", disabled: leftButtonDisabled, onClick: onPrevClick, "data-testid": "prev-btn" }),
|
|
34729
|
-
/* @__PURE__ */ jsx(Container, { maxWidth: "50px", fillWidth: false, children: /* @__PURE__ */ jsx(NumberField, { ref: inputRef, onChange, value: currentPage, loading: false,
|
|
34706
|
+
/* @__PURE__ */ jsx(Container, { maxWidth: "50px", fillWidth: false, children: /* @__PURE__ */ jsx(NumberField, { ref: inputRef, onChange, value: currentPage, loading: false, "aria-label": currentPage.toString(), min: 1, max: totalPages, onFocus: onPageNumberFocus, hideControls: true, onBlur: onPageNumberBlur, disabled: leftButtonDisabled && rightButtonDisabled }) }),
|
|
34730
34707
|
!!totalPages && /* @__PURE__ */ jsxs(Text, { component: "div", color: "muted", size: "sm", children: [
|
|
34731
34708
|
"of ",
|
|
34732
34709
|
formatNumber(totalPages)
|
|
@@ -48665,9 +48642,16 @@ const click = {
|
|
|
48665
48642
|
}
|
|
48666
48643
|
},
|
|
48667
48644
|
space: {
|
|
48668
|
-
|
|
48669
|
-
|
|
48670
|
-
|
|
48645
|
+
md: {
|
|
48646
|
+
y: "0.75rem",
|
|
48647
|
+
x: "1rem",
|
|
48648
|
+
gap: "1rem"
|
|
48649
|
+
},
|
|
48650
|
+
sm: {
|
|
48651
|
+
y: "0.5rem",
|
|
48652
|
+
x: "0.75rem",
|
|
48653
|
+
gap: "0.75rem"
|
|
48654
|
+
}
|
|
48671
48655
|
},
|
|
48672
48656
|
"default": {
|
|
48673
48657
|
color: {
|