@clickhouse/click-ui 0.0.209 → 0.0.211
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 +175 -157
- package/dist/click-ui.bundled.umd.js +175 -157
- package/dist/click-ui.es.js +175 -157
- package/dist/click-ui.umd.js +175 -157
- package/dist/components/Icon/IconCommon.d.ts +1 -0
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/IconWrapper/IconWrapper.d.ts +3 -1
- package/dist/components/Select/CheckboxMultiSelect.d.ts +1 -0
- package/dist/components/Select/MultiSelect.d.ts +1 -0
- package/dist/components/Select/SingleSelect.d.ts +1 -0
- package/dist/components/Select/common/InternalSelect.d.ts +2 -1
- package/dist/components/Select/common/SelectStyled.d.ts +1 -0
- package/dist/components/Select/common/types.d.ts +5 -4
- package/dist/components/Toast/Toast.d.ts +8 -3
- package/dist/components/icons/TextSlash.d.ts +4 -0
- package/dist/components/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1271,7 +1271,7 @@ const Blog = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/
|
|
|
1271
1271
|
/* @__PURE__ */ jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M21 7v10a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4Z", clipRule: "evenodd" }),
|
|
1272
1272
|
/* @__PURE__ */ jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "m13.75 10.25-6 6" })
|
|
1273
1273
|
] });
|
|
1274
|
-
const Bold = (props) => /* @__PURE__ */ jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx("path", { d: "M6.75 12H13.75C15.683 12 17.25 13.567 17.25 15.5V15.5C17.25 17.433 15.683 19 13.75 19H6.75V5H12.583C14.516 5 16.083 6.567 16.083 8.5V8.5C16.083 10.433 14.516 12 12.583 12", stroke: "#161517",
|
|
1274
|
+
const Bold = (props) => /* @__PURE__ */ jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx("path", { d: "M6.75 12H13.75C15.683 12 17.25 13.567 17.25 15.5V15.5C17.25 17.433 15.683 19 13.75 19H6.75V5H12.583C14.516 5 16.083 6.567 16.083 8.5V8.5C16.083 10.433 14.516 12 12.583 12", stroke: "#161517", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
1275
1275
|
const Book = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...props, children: [
|
|
1276
1276
|
/* @__PURE__ */ jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M12 16.37a6.368 6.368 0 0 0-7.495-1.12c-.684.364-1.509-.085-1.509-.86V5.295c0-.637.294-1.249.812-1.618A6.367 6.367 0 0 1 12 4.364a6.367 6.367 0 0 1 8.191-.687c.518.37.813.981.813 1.618v9.095c0 .775-.826 1.225-1.509.86A6.368 6.368 0 0 0 12 16.37Z", clipRule: "evenodd" }),
|
|
1277
1277
|
/* @__PURE__ */ jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M4.505 19.387A6.368 6.368 0 0 1 12 20.507a6.368 6.368 0 0 1 7.495-1.12M12 16.37V4.363" })
|
|
@@ -1639,7 +1639,7 @@ const Integrations = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www
|
|
|
1639
1639
|
/* @__PURE__ */ jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M10 9.056C9.094 7.818 7.652 7 6 7v0a5 5 0 0 0-5 5v0a5 5 0 0 0 5 5v0a5.299 5.299 0 0 0 4.543-2.572L12 12l1.457-2.428A5.299 5.299 0 0 1 18 7v0a5 5 0 0 1 5 5v0a5 5 0 0 1-5 5v0c-1.652 0-3.094-.818-4-2.056" }),
|
|
1640
1640
|
/* @__PURE__ */ jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "m9.93 6.028.521 2.954-2.954.52" })
|
|
1641
1641
|
] });
|
|
1642
|
-
const Italic = (props) => /* @__PURE__ */ jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx("path", { d: "M14.1821 18H5.45508H9.43508L14.5651 6H18.5451H9.81808", stroke: "#161517",
|
|
1642
|
+
const Italic = (props) => /* @__PURE__ */ jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx("path", { d: "M14.1821 18H5.45508H9.43508L14.5651 6H18.5451H9.81808", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
1643
1643
|
const Key = (props) => /* @__PURE__ */ jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
1644
1644
|
/* @__PURE__ */ jsx("path", { d: "M15.0312 9.34226C15.0312 9.13526 14.8633 8.96826 14.6562 8.96826C14.4492 8.96926 14.2812 9.13726 14.2812 9.34426C14.2812 9.55126 14.4492 9.71926 14.6562 9.71826C14.8633 9.71826 15.0312 9.55026 15.0312 9.34326", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1645
1645
|
/* @__PURE__ */ jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.499 14.7852L11.469 15.8172H9.637V17.2862H8.172V19.1222L6.798 20.5002H3.5V17.1952L9.223 11.4592C8.417 9.36524 8.849 6.90324 10.534 5.21424C12.814 2.92924 16.511 2.92924 18.791 5.21424C21.071 7.49924 21.071 11.2042 18.791 13.4902C17.089 15.1942 14.601 15.6242 12.499 14.7852Z", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
@@ -1685,20 +1685,20 @@ const LineInCircle = (props) => {
|
|
|
1685
1685
|
] });
|
|
1686
1686
|
};
|
|
1687
1687
|
const ListBulleted = (props) => /* @__PURE__ */ jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
1688
|
-
/* @__PURE__ */ jsx("path", { d: "M8.99902 6.43673H20.0036", stroke: "#161517",
|
|
1689
|
-
/* @__PURE__ */ jsx("path", { d: "M20.0036 12.0002H8.99902", stroke: "#161517",
|
|
1690
|
-
/* @__PURE__ */ jsx("path", { d: "M8.99902 17.5632H20.0036", stroke: "#161517",
|
|
1691
|
-
/* @__PURE__ */ jsx("path", { d: "M4.49728 5.93652C4.22102 5.93652 3.99707 6.16047 3.99707 6.43673C3.99707 6.71299 4.22102 6.93694 4.49728 6.93694C4.77354 6.93694 4.99749 6.71299 4.99749 6.43673C4.99749 6.16047 4.77354 5.93652 4.49728 5.93652", stroke: "#161517",
|
|
1692
|
-
/* @__PURE__ */ jsx("path", { d: "M4.49728 11.5C4.22102 11.5 3.99707 11.724 3.99707 12.0002C3.99707 12.2765 4.22102 12.5004 4.49728 12.5004C4.77354 12.5004 4.99749 12.2765 4.99749 12.0002C4.99749 11.724 4.77354 11.5 4.49728 11.5", stroke: "#161517",
|
|
1693
|
-
/* @__PURE__ */ jsx("path", { d: "M4.49728 17.063C4.22102 17.063 3.99707 17.2869 3.99707 17.5632C3.99707 17.8395 4.22102 18.0634 4.49728 18.0634C4.77354 18.0634 4.99749 17.8395 4.99749 17.5632C4.99749 17.2869 4.77354 17.063 4.49728 17.063", stroke: "#161517",
|
|
1688
|
+
/* @__PURE__ */ jsx("path", { d: "M8.99902 6.43673H20.0036", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1689
|
+
/* @__PURE__ */ jsx("path", { d: "M20.0036 12.0002H8.99902", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1690
|
+
/* @__PURE__ */ jsx("path", { d: "M8.99902 17.5632H20.0036", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1691
|
+
/* @__PURE__ */ jsx("path", { d: "M4.49728 5.93652C4.22102 5.93652 3.99707 6.16047 3.99707 6.43673C3.99707 6.71299 4.22102 6.93694 4.49728 6.93694C4.77354 6.93694 4.99749 6.71299 4.99749 6.43673C4.99749 6.16047 4.77354 5.93652 4.49728 5.93652", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1692
|
+
/* @__PURE__ */ jsx("path", { d: "M4.49728 11.5C4.22102 11.5 3.99707 11.724 3.99707 12.0002C3.99707 12.2765 4.22102 12.5004 4.49728 12.5004C4.77354 12.5004 4.99749 12.2765 4.99749 12.0002C4.99749 11.724 4.77354 11.5 4.49728 11.5", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1693
|
+
/* @__PURE__ */ jsx("path", { d: "M4.49728 17.063C4.22102 17.063 3.99707 17.2869 3.99707 17.5632C3.99707 17.8395 4.22102 18.0634 4.49728 18.0634C4.77354 18.0634 4.99749 17.8395 4.99749 17.5632C4.99749 17.2869 4.77354 17.063 4.49728 17.063", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
1694
1694
|
] });
|
|
1695
1695
|
const ListNumbered = (props) => /* @__PURE__ */ jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
1696
|
-
/* @__PURE__ */ jsx("path", { d: "M11 4H20", stroke: "#161517",
|
|
1697
|
-
/* @__PURE__ */ jsx("path", { d: "M11.1504 9H20.0004", stroke: "#161517",
|
|
1698
|
-
/* @__PURE__ */ jsx("path", { d: "M6.5 9H4H5.25V4L4 5.25", stroke: "#161517",
|
|
1699
|
-
/* @__PURE__ */ jsx("path", { d: "M11 15H20", stroke: "#161517",
|
|
1700
|
-
/* @__PURE__ */ jsx("path", { d: "M11.1504 20H20.0004", stroke: "#161517",
|
|
1701
|
-
/* @__PURE__ */ jsx("path", { d: "M4 15H6.5V17L4 18.5V20H6.75", stroke: "#161517",
|
|
1696
|
+
/* @__PURE__ */ jsx("path", { d: "M11 4H20", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1697
|
+
/* @__PURE__ */ jsx("path", { d: "M11.1504 9H20.0004", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1698
|
+
/* @__PURE__ */ jsx("path", { d: "M6.5 9H4H5.25V4L4 5.25", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1699
|
+
/* @__PURE__ */ jsx("path", { d: "M11 15H20", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1700
|
+
/* @__PURE__ */ jsx("path", { d: "M11.1504 20H20.0004", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1701
|
+
/* @__PURE__ */ jsx("path", { d: "M4 15H6.5V17L4 18.5V20H6.75", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
1702
1702
|
] });
|
|
1703
1703
|
const Loading = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...props, children: [
|
|
1704
1704
|
/* @__PURE__ */ jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.25, d: "M7.625 8.875H4.5V5.75" }),
|
|
@@ -1907,6 +1907,17 @@ const Taxi = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/
|
|
|
1907
1907
|
/* @__PURE__ */ jsx("mask", { id: "path-17-inside-9_3169_15708", fill: "white", children: /* @__PURE__ */ jsx("path", { d: "M14.1433 4.71436H13.2861V5.5715H14.1433V4.71436Z" }) }),
|
|
1908
1908
|
/* @__PURE__ */ jsx("path", { d: "M13.2861 4.71436V3.21436H11.7861V4.71436H13.2861ZM14.1433 4.71436H15.6433V3.21436H14.1433V4.71436ZM14.1433 5.5715V7.0715H15.6433V5.5715H14.1433ZM13.2861 5.5715H11.7861V7.0715H13.2861V5.5715ZM13.2861 6.21436H14.1433V3.21436H13.2861V6.21436ZM12.6433 4.71436V5.5715H15.6433V4.71436H12.6433ZM14.1433 4.0715H13.2861V7.0715H14.1433V4.0715ZM14.7861 5.5715V4.71436H11.7861V5.5715H14.7861Z", fill: "#161517", mask: "url(#path-17-inside-9_3169_15708)" })
|
|
1909
1909
|
] });
|
|
1910
|
+
const TextSlash = (props) => /* @__PURE__ */ jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
1911
|
+
/* @__PURE__ */ jsxs("g", { "clip-path": "url(#clip0_12066_12491)", children: [
|
|
1912
|
+
/* @__PURE__ */ jsx("path", { d: "M4.5 3.75L19.5 20.25", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1913
|
+
/* @__PURE__ */ jsx("path", { d: "M9 18.75H15", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1914
|
+
/* @__PURE__ */ jsx("path", { d: "M12 12V18.75", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1915
|
+
/* @__PURE__ */ jsx("path", { d: "M12 5.25V7.54031", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1916
|
+
/* @__PURE__ */ jsx("path", { d: "M9.91797 5.25H18.7502V8.25", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1917
|
+
/* @__PURE__ */ jsx("path", { d: "M5.25 8.25V5.25H5.86406", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
1918
|
+
] }),
|
|
1919
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_12066_12491", children: /* @__PURE__ */ jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
1920
|
+
] });
|
|
1910
1921
|
const Trash = (props) => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M18 6v12.75c0 1.243-1.027 2.25-2.269 2.25h-7.5A2.233 2.233 0 0 1 6 18.75V6M19.5 6h-15M10 3h4M14 10v7M10 17v-7" }) });
|
|
1911
1922
|
const TreeStructure = (props) => /* @__PURE__ */ jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
1912
1923
|
/* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_7969_2214)", children: [
|
|
@@ -1919,8 +1930,8 @@ const TreeStructure = (props) => /* @__PURE__ */ jsxs("svg", { width: "24", heig
|
|
|
1919
1930
|
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_7969_2214", children: /* @__PURE__ */ jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
1920
1931
|
] });
|
|
1921
1932
|
const Underline = (props) => /* @__PURE__ */ jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
1922
|
-
/* @__PURE__ */ jsx("path", { d: "M6 20H18", stroke: "#161517",
|
|
1923
|
-
/* @__PURE__ */ jsx("path", { d: "M17 4V11C17 13.761 14.761 16 12 16C9.239 16 7 13.761 7 11V4", stroke: "#161517",
|
|
1933
|
+
/* @__PURE__ */ jsx("path", { d: "M6 20H18", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1934
|
+
/* @__PURE__ */ jsx("path", { d: "M17 4V11C17 13.761 14.761 16 12 16C9.239 16 7 13.761 7 11V4", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
1924
1935
|
] });
|
|
1925
1936
|
const Upgrade = (props) => /* @__PURE__ */ jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
1926
1937
|
/* @__PURE__ */ jsx("mask", { id: "path-1-inside-1_10418_503", fill: "white", children: /* @__PURE__ */ jsx("path", { d: "M16.1664 17.8179H7.83984V18.8864H16.1664V17.8179Z" }) }),
|
|
@@ -2091,6 +2102,7 @@ const ICONS_MAP = {
|
|
|
2091
2102
|
support: Support,
|
|
2092
2103
|
table: Table$1,
|
|
2093
2104
|
taxi: Taxi,
|
|
2105
|
+
"text-slash": TextSlash,
|
|
2094
2106
|
trash: Trash,
|
|
2095
2107
|
"tree-structure": TreeStructure,
|
|
2096
2108
|
underline: Underline,
|
|
@@ -8947,6 +8959,80 @@ const GenericMenuItem = pt.div.withConfig({
|
|
|
8947
8959
|
const PopoverArrow = (props) => {
|
|
8948
8960
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "10", viewBox: "0 0 30 10", fill: "none", ...props, children: /* @__PURE__ */ jsx("path", { d: "M0 -1L15 9L30 -1", strokeWidth: "1.5", strokeLinejoin: "round" }) });
|
|
8949
8961
|
};
|
|
8962
|
+
const _Container = ({
|
|
8963
|
+
component,
|
|
8964
|
+
alignItems,
|
|
8965
|
+
children,
|
|
8966
|
+
fillWidth = true,
|
|
8967
|
+
gap = "none",
|
|
8968
|
+
grow,
|
|
8969
|
+
shrink,
|
|
8970
|
+
isResponsive,
|
|
8971
|
+
justifyContent = "start",
|
|
8972
|
+
maxWidth,
|
|
8973
|
+
minWidth,
|
|
8974
|
+
orientation = "horizontal",
|
|
8975
|
+
padding = "none",
|
|
8976
|
+
wrap = "nowrap",
|
|
8977
|
+
fillHeight,
|
|
8978
|
+
maxHeight,
|
|
8979
|
+
minHeight,
|
|
8980
|
+
overflow,
|
|
8981
|
+
...props
|
|
8982
|
+
}, ref) => {
|
|
8983
|
+
return /* @__PURE__ */ jsx(Wrapper$d, { ref, as: component ?? "div", $alignItems: alignItems ?? (orientation === "vertical" ? "start" : "center"), $fillWidth: fillWidth, $gapSize: gap, $grow: grow, $shrink: shrink, $isResponsive: isResponsive, $justifyContent: justifyContent, $maxWidth: maxWidth, $minWidth: minWidth, $orientation: orientation, $paddingSize: padding, $wrap: wrap, $fillHeight: fillHeight, $maxHeight: maxHeight, $minHeight: minHeight, $overflow: overflow, "data-testid": "container", ...props, children });
|
|
8984
|
+
};
|
|
8985
|
+
const Wrapper$d = pt.div.withConfig({
|
|
8986
|
+
componentId: "sc-bcplth-0"
|
|
8987
|
+
})(["display:flex;", " ", " ", " flex-wrap:", ";gap:", ";max-width:", ";min-width:", ";padding:", ";width:", ";flex-direction:", ";align-items:", ";justify-content:", ";@media (max-width:", "){width:", ";max-width:", ";flex-direction:", ";}"], ({
|
|
8988
|
+
$grow,
|
|
8989
|
+
$shrink
|
|
8990
|
+
}) => `
|
|
8991
|
+
${$grow && `flex: ${$grow}`};
|
|
8992
|
+
${$shrink && `flex-shrink: ${$shrink}`};
|
|
8993
|
+
`, ({
|
|
8994
|
+
$fillHeight,
|
|
8995
|
+
$maxHeight,
|
|
8996
|
+
$minHeight
|
|
8997
|
+
}) => `
|
|
8998
|
+
${$fillHeight && "height: 100%"};
|
|
8999
|
+
${$maxHeight && `max-height: ${$maxHeight}`};
|
|
9000
|
+
${$minHeight && `min-height: ${$minHeight}`};
|
|
9001
|
+
`, ({
|
|
9002
|
+
$overflow
|
|
9003
|
+
}) => `
|
|
9004
|
+
${$overflow && `overflow: ${$overflow}`};
|
|
9005
|
+
`, ({
|
|
9006
|
+
$wrap = "nowrap"
|
|
9007
|
+
}) => $wrap, ({
|
|
9008
|
+
theme: theme2,
|
|
9009
|
+
$gapSize
|
|
9010
|
+
}) => theme2.click.container.gap[$gapSize], ({
|
|
9011
|
+
$maxWidth
|
|
9012
|
+
}) => $maxWidth ?? "none", ({
|
|
9013
|
+
$minWidth
|
|
9014
|
+
}) => $minWidth ?? "auto", ({
|
|
9015
|
+
theme: theme2,
|
|
9016
|
+
$paddingSize
|
|
9017
|
+
}) => theme2.click.container.space[$paddingSize], ({
|
|
9018
|
+
$fillWidth = true
|
|
9019
|
+
}) => $fillWidth === true ? "100%" : "auto", ({
|
|
9020
|
+
$orientation = "horizontal"
|
|
9021
|
+
}) => $orientation === "horizontal" ? "row" : "column", ({
|
|
9022
|
+
$alignItems = "center"
|
|
9023
|
+
}) => $alignItems, ({
|
|
9024
|
+
$justifyContent = "left"
|
|
9025
|
+
}) => $justifyContent === "start" ? "start" : `${$justifyContent}`, ({
|
|
9026
|
+
theme: theme2
|
|
9027
|
+
}) => theme2.breakpoint.sizes.md, ({
|
|
9028
|
+
$isResponsive = true,
|
|
9029
|
+
$fillWidth = true
|
|
9030
|
+
}) => $isResponsive === true ? "100%" : $fillWidth === true ? "100%" : "auto", ({
|
|
9031
|
+
$isResponsive = true
|
|
9032
|
+
}) => $isResponsive === true ? "none" : "auto", ({
|
|
9033
|
+
$isResponsive = true
|
|
9034
|
+
}) => $isResponsive === true ? "column" : "auto");
|
|
9035
|
+
const Container = forwardRef(_Container);
|
|
8950
9036
|
const mergeRefs = (refs) => (value) => {
|
|
8951
9037
|
refs.forEach((ref) => {
|
|
8952
9038
|
if (typeof ref === "function") {
|
|
@@ -8970,14 +9056,6 @@ const _EllipsisContent = ({
|
|
|
8970
9056
|
}]), ...props });
|
|
8971
9057
|
};
|
|
8972
9058
|
const EllipsisContent = forwardRef(_EllipsisContent);
|
|
8973
|
-
const LabelContainer$1 = pt.div.withConfig({
|
|
8974
|
-
componentId: "sc-1likhxd-0"
|
|
8975
|
-
})(["display:grid;grid-template-columns:", ";align-items:center;justify-content:flex-start;width:100%;width:-webkit-fill-available;width:fill-available;width:stretch;gap:", ";"], ({
|
|
8976
|
-
$hasIcon,
|
|
8977
|
-
$iconDir
|
|
8978
|
-
}) => `${$hasIcon && $iconDir === "start" ? "auto " : ""}1fr${$hasIcon && $iconDir === "end" ? " auto" : ""}`, ({
|
|
8979
|
-
theme: theme2
|
|
8980
|
-
}) => theme2.click.sidebar.navigation.item.default.space.gap);
|
|
8981
9059
|
const IconWrapper$3 = ({
|
|
8982
9060
|
icon,
|
|
8983
9061
|
iconDir = "start",
|
|
@@ -8986,10 +9064,11 @@ const IconWrapper$3 = ({
|
|
|
8986
9064
|
height,
|
|
8987
9065
|
children,
|
|
8988
9066
|
ellipsisContent = true,
|
|
9067
|
+
gap = "sm",
|
|
8989
9068
|
...props
|
|
8990
9069
|
}) => {
|
|
8991
9070
|
const TextWrapper2 = ellipsisContent ? EllipsisContent : "div";
|
|
8992
|
-
return /* @__PURE__ */ jsxs(
|
|
9071
|
+
return /* @__PURE__ */ jsxs(Container, { orientation: "horizontal", gap, ...props, children: [
|
|
8993
9072
|
icon && iconDir === "start" && /* @__PURE__ */ jsx(SvgImage, { name: icon, size: size2, width, height }),
|
|
8994
9073
|
/* @__PURE__ */ jsx(TextWrapper2, { "data-testid": `${ellipsisContent ? "ellipsed" : "normal"}-icon-wrapper-text`, children }),
|
|
8995
9074
|
icon && iconDir === "end" && /* @__PURE__ */ jsx(SvgImage, { name: icon, size: size2, width, height })
|
|
@@ -9548,7 +9627,7 @@ const Alert = ({
|
|
|
9548
9627
|
...delegated
|
|
9549
9628
|
}) => {
|
|
9550
9629
|
const [isVisible, setIsVisible] = useState(true);
|
|
9551
|
-
return isVisible ? /* @__PURE__ */ jsxs(Wrapper$
|
|
9630
|
+
return isVisible ? /* @__PURE__ */ jsxs(Wrapper$c, { $size: size2, $state: state, $type: type, "data-testid": "click-alert", ...delegated, children: [
|
|
9552
9631
|
dismissible && type === "banner" && /* @__PURE__ */ jsx(DismissWrapper$1, {}),
|
|
9553
9632
|
showIcon && /* @__PURE__ */ jsx(IconWrapper$2, { $state: state, $size: size2, $type: type, children: /* @__PURE__ */ jsx(StyledIcon, { $size: size2, size: "sm", "aria-hidden": true, name: customIcon || stateIconMap[state] }) }),
|
|
9554
9633
|
/* @__PURE__ */ jsxs(TextWrapper, { $state: state, $size: size2, children: [
|
|
@@ -9558,7 +9637,7 @@ const Alert = ({
|
|
|
9558
9637
|
dismissible && /* @__PURE__ */ jsx(DismissWrapper$1, { "data-testid": "click-alert-dismiss-button", onClick: () => setIsVisible(false), children: /* @__PURE__ */ jsx(SvgImage, { name: "cross", "aria-label": "close" }) })
|
|
9559
9638
|
] }) : null;
|
|
9560
9639
|
};
|
|
9561
|
-
const Wrapper$
|
|
9640
|
+
const Wrapper$c = pt.div.withConfig({
|
|
9562
9641
|
componentId: "sc-1wvczk0-0"
|
|
9563
9642
|
})(["display:flex;border-radius:", ";justify-content:", ";overflow:hidden;background-color:", ";color:", ";width:100%;"], ({
|
|
9564
9643
|
$type,
|
|
@@ -10412,7 +10491,7 @@ const StyledFallback = pt($cddcb0b647441e34$export$fb8d7f40caaeea67).withConfig(
|
|
|
10412
10491
|
font: ${theme2.click.avatar.typography.label[$textSize].hover};
|
|
10413
10492
|
}
|
|
10414
10493
|
`);
|
|
10415
|
-
const Wrapper$
|
|
10494
|
+
const Wrapper$b = pt.div.withConfig({
|
|
10416
10495
|
componentId: "sc-471xo0-0"
|
|
10417
10496
|
})(["display:inline-flex;", ""], ({
|
|
10418
10497
|
$state = "default",
|
|
@@ -10469,7 +10548,7 @@ const Badge = ({
|
|
|
10469
10548
|
onClose,
|
|
10470
10549
|
ellipsisContent = true,
|
|
10471
10550
|
...props
|
|
10472
|
-
}) => /* @__PURE__ */ jsx(Wrapper$
|
|
10551
|
+
}) => /* @__PURE__ */ jsx(Wrapper$b, { $state: state, $size: size2, $type: type, ...props, children: /* @__PURE__ */ jsxs(Content$4, { "data-testid": `${ellipsisContent ? "ellipsed" : "normal"}-badge-content`, children: [
|
|
10473
10552
|
/* @__PURE__ */ jsx(BadgeContent, { as: IconWrapper$3, icon, iconDir, size: size2, $state: state, ellipsisContent, children: text2 }),
|
|
10474
10553
|
dismissible && /* @__PURE__ */ jsx(SvgContainer, { name: "cross", $state: state, as: SvgImage, onClick: onClose, "aria-label": "close" })
|
|
10475
10554
|
] }) });
|
|
@@ -10484,11 +10563,11 @@ const BigStat = ({
|
|
|
10484
10563
|
state = "default",
|
|
10485
10564
|
title = "Title",
|
|
10486
10565
|
...props
|
|
10487
|
-
}) => /* @__PURE__ */ jsxs(Wrapper$
|
|
10566
|
+
}) => /* @__PURE__ */ jsxs(Wrapper$a, { $height: height, $order: order, $size: size2, $spacing: spacing, $state: state, $fillWidth: fillWidth, $maxWidth: maxWidth, ...props, children: [
|
|
10488
10567
|
/* @__PURE__ */ jsx(Label, { $state: state, $size: size2, children: label }),
|
|
10489
10568
|
/* @__PURE__ */ jsx(Title$3, { $state: state, $size: size2, children: title })
|
|
10490
10569
|
] });
|
|
10491
|
-
const Wrapper$
|
|
10570
|
+
const Wrapper$a = pt.div.withConfig({
|
|
10492
10571
|
componentId: "sc-u5029o-0"
|
|
10493
10572
|
})(["display:flex;justify-content:center;box-sizing:border-box;", ""], ({
|
|
10494
10573
|
$fillWidth = false,
|
|
@@ -10715,7 +10794,7 @@ const Description = pt.div.withConfig({
|
|
|
10715
10794
|
})(["display:flex;flex-direction:column;align-self:start;gap:", ";flex:1;width:100%;"], ({
|
|
10716
10795
|
theme: theme2
|
|
10717
10796
|
}) => theme2.click.card.horizontal.space.gap);
|
|
10718
|
-
const Wrapper$
|
|
10797
|
+
const Wrapper$9 = pt.div.withConfig({
|
|
10719
10798
|
componentId: "sc-1qnbjoa-2"
|
|
10720
10799
|
})(["display:inline-flex;width:100%;max-width:100%;align-items:center;justify-content:flex-start;", ""], ({
|
|
10721
10800
|
theme: theme2,
|
|
@@ -10821,7 +10900,7 @@ const CardHorizontal = ({
|
|
|
10821
10900
|
window.open(infoUrl, "_blank");
|
|
10822
10901
|
}
|
|
10823
10902
|
};
|
|
10824
|
-
return /* @__PURE__ */ jsx(Wrapper$
|
|
10903
|
+
return /* @__PURE__ */ jsx(Wrapper$9, { $disabled: disabled, $isSelected: isSelected, $isSelectable: isSelectable, $color: color, tabIndex: 0, onClick: handleClick, ...props, children: /* @__PURE__ */ jsxs(ContentWrapper, { children: [
|
|
10825
10904
|
/* @__PURE__ */ jsxs(IconTextContentWrapper, { children: [
|
|
10826
10905
|
icon && /* @__PURE__ */ jsx(CardIcon$1, { name: icon, "aria-hidden": true }),
|
|
10827
10906
|
/* @__PURE__ */ jsxs(Container, { padding: "none", orientation: "vertical", children: [
|
|
@@ -10889,80 +10968,6 @@ const CuiText = pt.p.withConfig({
|
|
|
10889
10968
|
}) => $fillWidth && "width: 100%");
|
|
10890
10969
|
_Text.displayName = "Text";
|
|
10891
10970
|
const Text = forwardRef(_Text);
|
|
10892
|
-
const _Container = ({
|
|
10893
|
-
component,
|
|
10894
|
-
alignItems,
|
|
10895
|
-
children,
|
|
10896
|
-
fillWidth = true,
|
|
10897
|
-
gap = "none",
|
|
10898
|
-
grow,
|
|
10899
|
-
shrink,
|
|
10900
|
-
isResponsive,
|
|
10901
|
-
justifyContent = "start",
|
|
10902
|
-
maxWidth,
|
|
10903
|
-
minWidth,
|
|
10904
|
-
orientation = "horizontal",
|
|
10905
|
-
padding = "none",
|
|
10906
|
-
wrap = "nowrap",
|
|
10907
|
-
fillHeight,
|
|
10908
|
-
maxHeight,
|
|
10909
|
-
minHeight,
|
|
10910
|
-
overflow,
|
|
10911
|
-
...props
|
|
10912
|
-
}, ref) => {
|
|
10913
|
-
return /* @__PURE__ */ jsx(Wrapper$9, { ref, as: component ?? "div", $alignItems: alignItems ?? (orientation === "vertical" ? "start" : "center"), $fillWidth: fillWidth, $gapSize: gap, $grow: grow, $shrink: shrink, $isResponsive: isResponsive, $justifyContent: justifyContent, $maxWidth: maxWidth, $minWidth: minWidth, $orientation: orientation, $paddingSize: padding, $wrap: wrap, $fillHeight: fillHeight, $maxHeight: maxHeight, $minHeight: minHeight, $overflow: overflow, "data-testid": "container", ...props, children });
|
|
10914
|
-
};
|
|
10915
|
-
const Wrapper$9 = pt.div.withConfig({
|
|
10916
|
-
componentId: "sc-bcplth-0"
|
|
10917
|
-
})(["display:flex;", " ", " ", " flex-wrap:", ";gap:", ";max-width:", ";min-width:", ";padding:", ";width:", ";flex-direction:", ";align-items:", ";justify-content:", ";@media (max-width:", "){width:", ";max-width:", ";flex-direction:", ";}"], ({
|
|
10918
|
-
$grow,
|
|
10919
|
-
$shrink
|
|
10920
|
-
}) => `
|
|
10921
|
-
${$grow && `flex: ${$grow}`};
|
|
10922
|
-
${$shrink && `flex-shrink: ${$shrink}`};
|
|
10923
|
-
`, ({
|
|
10924
|
-
$fillHeight,
|
|
10925
|
-
$maxHeight,
|
|
10926
|
-
$minHeight
|
|
10927
|
-
}) => `
|
|
10928
|
-
${$fillHeight && "height: 100%"};
|
|
10929
|
-
${$maxHeight && `max-height: ${$maxHeight}`};
|
|
10930
|
-
${$minHeight && `min-height: ${$minHeight}`};
|
|
10931
|
-
`, ({
|
|
10932
|
-
$overflow
|
|
10933
|
-
}) => `
|
|
10934
|
-
${$overflow && `overflow: ${$overflow}`};
|
|
10935
|
-
`, ({
|
|
10936
|
-
$wrap = "nowrap"
|
|
10937
|
-
}) => $wrap, ({
|
|
10938
|
-
theme: theme2,
|
|
10939
|
-
$gapSize
|
|
10940
|
-
}) => theme2.click.container.gap[$gapSize], ({
|
|
10941
|
-
$maxWidth
|
|
10942
|
-
}) => $maxWidth ?? "none", ({
|
|
10943
|
-
$minWidth
|
|
10944
|
-
}) => $minWidth ?? "auto", ({
|
|
10945
|
-
theme: theme2,
|
|
10946
|
-
$paddingSize
|
|
10947
|
-
}) => theme2.click.container.space[$paddingSize], ({
|
|
10948
|
-
$fillWidth = true
|
|
10949
|
-
}) => $fillWidth === true ? "100%" : "auto", ({
|
|
10950
|
-
$orientation = "horizontal"
|
|
10951
|
-
}) => $orientation === "horizontal" ? "row" : "column", ({
|
|
10952
|
-
$alignItems = "center"
|
|
10953
|
-
}) => $alignItems, ({
|
|
10954
|
-
$justifyContent = "left"
|
|
10955
|
-
}) => $justifyContent === "start" ? "start" : `${$justifyContent}`, ({
|
|
10956
|
-
theme: theme2
|
|
10957
|
-
}) => theme2.breakpoint.sizes.md, ({
|
|
10958
|
-
$isResponsive = true,
|
|
10959
|
-
$fillWidth = true
|
|
10960
|
-
}) => $isResponsive === true ? "100%" : $fillWidth === true ? "100%" : "auto", ({
|
|
10961
|
-
$isResponsive = true
|
|
10962
|
-
}) => $isResponsive === true ? "none" : "auto", ({
|
|
10963
|
-
$isResponsive = true
|
|
10964
|
-
}) => $isResponsive === true ? "column" : "auto");
|
|
10965
|
-
const Container = forwardRef(_Container);
|
|
10966
10971
|
const TopBadgeWrapper = pt(Container).withConfig({
|
|
10967
10972
|
componentId: "sc-1d5pqpo-0"
|
|
10968
10973
|
})(["position:relative;"]);
|
|
@@ -35834,6 +35839,9 @@ const SelectNoDataContainer = pt.div.withConfig({
|
|
|
35834
35839
|
color: ${theme2.click.genericMenu.button.color.label.default};
|
|
35835
35840
|
cursor: ${$clickable ? "pointer" : "default"}
|
|
35836
35841
|
`);
|
|
35842
|
+
const SelectItemDescriptionText = pt.div.withConfig({
|
|
35843
|
+
componentId: "sc-oudbwg-14"
|
|
35844
|
+
})(["white-space:normal;[data-disabled] &,[disabled] &{color:inherit;}", " &{display:none;}"], StyledSelectTrigger);
|
|
35837
35845
|
const OptionContext = createContext({
|
|
35838
35846
|
search: "",
|
|
35839
35847
|
selectedValues: [],
|
|
@@ -39119,7 +39127,7 @@ const SingleSelectValue = ({
|
|
|
39119
39127
|
children,
|
|
39120
39128
|
label
|
|
39121
39129
|
} = valueNode ?? {};
|
|
39122
|
-
return /* @__PURE__ */ jsx(SelectValueContainer, { children: /* @__PURE__ */ jsx(IconWrapper$3, { icon, iconDir, children: label ?? children ?? value }) });
|
|
39130
|
+
return /* @__PURE__ */ jsx(SelectValueContainer, { children: /* @__PURE__ */ jsx(IconWrapper$3, { icon, iconDir, gap: "xxs", children: label ?? children ?? value }) });
|
|
39123
39131
|
};
|
|
39124
39132
|
const useOption = () => {
|
|
39125
39133
|
const result = useContext(OptionContext);
|
|
@@ -39378,14 +39386,11 @@ const InternalSelect = ({
|
|
|
39378
39386
|
options: itemList = [],
|
|
39379
39387
|
...groupProps
|
|
39380
39388
|
} = props2;
|
|
39381
|
-
return /* @__PURE__ */ jsx(SelectGroup, { ...groupProps, children: itemList.map(({
|
|
39382
|
-
label: label2,
|
|
39383
|
-
...itemProps
|
|
39384
|
-
}, itemIndex) => {
|
|
39389
|
+
return /* @__PURE__ */ jsx(SelectGroup, { ...groupProps, children: itemList.map((itemProps, itemIndex) => {
|
|
39385
39390
|
if (checkbox) {
|
|
39386
|
-
return /* @__PURE__ */ jsx(MultiSelectCheckboxItem, { ...itemProps
|
|
39391
|
+
return /* @__PURE__ */ jsx(MultiSelectCheckboxItem, { ...itemProps }, `select-${id}-group-${index2}-item-${itemIndex}`);
|
|
39387
39392
|
}
|
|
39388
|
-
return /* @__PURE__ */ jsx(SelectItem, { ...itemProps
|
|
39393
|
+
return /* @__PURE__ */ jsx(SelectItem, { ...itemProps }, `select-${id}-group-${index2}-item-${itemIndex}`);
|
|
39389
39394
|
}) }, `select-${id}-group-${index2}`);
|
|
39390
39395
|
} else {
|
|
39391
39396
|
if (checkbox) {
|
|
@@ -39432,6 +39437,7 @@ const SelectItem = forwardRef(({
|
|
|
39432
39437
|
disabled = false,
|
|
39433
39438
|
children,
|
|
39434
39439
|
label,
|
|
39440
|
+
description,
|
|
39435
39441
|
separator,
|
|
39436
39442
|
onSelect: onSelectProp,
|
|
39437
39443
|
value = "",
|
|
@@ -39469,7 +39475,10 @@ const SelectItem = forwardRef(({
|
|
|
39469
39475
|
const isChecked = selectedValues.includes(value);
|
|
39470
39476
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
39471
39477
|
/* @__PURE__ */ jsxs(GenericMenuItem, { ...props, "data-value": value, onClick: onSelectValue, onMouseOver, ref: forwardedRef, "data-state": isChecked ? "checked" : "unchecked", "data-disabled": disabled ? true : void 0, "data-highlighted": highlighted == value ? "true" : void 0, "cui-select-item": "", children: [
|
|
39472
|
-
/* @__PURE__ */ jsx(IconWrapper$3, { icon, iconDir, children: label
|
|
39478
|
+
/* @__PURE__ */ jsx(IconWrapper$3, { icon, iconDir, gap: "xxs", children: label ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
39479
|
+
label,
|
|
39480
|
+
description && /* @__PURE__ */ jsx(SelectItemDescription, { children: description })
|
|
39481
|
+
] }) : children }),
|
|
39473
39482
|
/* @__PURE__ */ jsx(CheckIcon$1, { as: SvgImage, name: "check", size: "sm", $showCheck: isChecked })
|
|
39474
39483
|
] }),
|
|
39475
39484
|
separator && /* @__PURE__ */ jsx(Separator, { size: "sm" })
|
|
@@ -39482,6 +39491,7 @@ const MultiSelectCheckboxItem = forwardRef(({
|
|
|
39482
39491
|
icon,
|
|
39483
39492
|
iconDir = "end",
|
|
39484
39493
|
label,
|
|
39494
|
+
description,
|
|
39485
39495
|
onMouseOver: onMouseOverProp,
|
|
39486
39496
|
onSelect: onSelectProp,
|
|
39487
39497
|
separator,
|
|
@@ -39496,7 +39506,7 @@ const MultiSelectCheckboxItem = forwardRef(({
|
|
|
39496
39506
|
selectedValues,
|
|
39497
39507
|
onSelect
|
|
39498
39508
|
} = useOption();
|
|
39499
|
-
const
|
|
39509
|
+
const handleMenuItemClick = (evt) => {
|
|
39500
39510
|
if (!disabled) {
|
|
39501
39511
|
onSelect(value, void 0, evt);
|
|
39502
39512
|
if (typeof onSelectProp === "function") {
|
|
@@ -39504,15 +39514,6 @@ const MultiSelectCheckboxItem = forwardRef(({
|
|
|
39504
39514
|
}
|
|
39505
39515
|
}
|
|
39506
39516
|
};
|
|
39507
|
-
const handleMenuItemClick = (evt) => {
|
|
39508
|
-
if (evt.target !== evt.currentTarget) {
|
|
39509
|
-
return;
|
|
39510
|
-
}
|
|
39511
|
-
handleSelect(evt);
|
|
39512
|
-
};
|
|
39513
|
-
const handleCheckboxClick = (evt) => {
|
|
39514
|
-
handleSelect(evt);
|
|
39515
|
-
};
|
|
39516
39517
|
const handleMenuItemMouseOver = (e) => {
|
|
39517
39518
|
if (onMouseOverProp) {
|
|
39518
39519
|
onMouseOverProp(e);
|
|
@@ -39526,27 +39527,24 @@ const MultiSelectCheckboxItem = forwardRef(({
|
|
|
39526
39527
|
}
|
|
39527
39528
|
const isChecked = selectedValues.includes(value);
|
|
39528
39529
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
39529
|
-
/* @__PURE__ */
|
|
39530
|
-
|
|
39531
|
-
|
|
39532
|
-
|
|
39533
|
-
|
|
39534
|
-
|
|
39535
|
-
|
|
39536
|
-
] }) : /* @__PURE__ */ jsxs("div", { style: {
|
|
39537
|
-
display: "flex",
|
|
39538
|
-
justifyContent: "center"
|
|
39539
|
-
}, children: [
|
|
39540
|
-
/* @__PURE__ */ jsx(SvgImage, { name: icon, size: "sm" }),
|
|
39541
|
-
children
|
|
39542
|
-
] }), onClick: handleCheckboxClick, variant: variant ?? "default" }),
|
|
39543
|
-
icon && iconDir === "end" && /* @__PURE__ */ jsx(IconWrapper$3, { icon, iconDir: "end", children: /* @__PURE__ */ jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ?? children, onClick: handleCheckboxClick, variant: variant ?? "default" }) }),
|
|
39544
|
-
!icon && /* @__PURE__ */ jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ?? children, onClick: handleCheckboxClick, variant: variant ?? "default" })
|
|
39545
|
-
] }),
|
|
39530
|
+
/* @__PURE__ */ jsx(GenericMenuItem, { ...props, "data-value": value, onClick: handleMenuItemClick, onMouseOver: handleMenuItemMouseOver, ref: forwardedRef, "data-disabled": disabled ? true : void 0, "data-highlighted": highlighted == value ? "true" : void 0, "data-testid": `multi-select-checkbox-${value}`, "cui-select-item": "", children: /* @__PURE__ */ jsxs(Container, { orientation: "horizontal", gap: "xs", children: [
|
|
39531
|
+
/* @__PURE__ */ jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, variant: variant ?? "default" }),
|
|
39532
|
+
/* @__PURE__ */ jsx(IconWrapper$3, { icon, iconDir, gap: "xxs", children: label ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
39533
|
+
label,
|
|
39534
|
+
description && /* @__PURE__ */ jsx(SelectItemDescription, { children: description })
|
|
39535
|
+
] }) : children })
|
|
39536
|
+
] }) }),
|
|
39546
39537
|
separator && /* @__PURE__ */ jsx(Separator, { size: "sm" })
|
|
39547
39538
|
] });
|
|
39548
39539
|
});
|
|
39549
39540
|
MultiSelectCheckboxItem.displayName = "Select.Item";
|
|
39541
|
+
const SelectItemDescription = forwardRef(({
|
|
39542
|
+
children,
|
|
39543
|
+
...props
|
|
39544
|
+
}) => {
|
|
39545
|
+
return /* @__PURE__ */ jsx(Text, { component: SelectItemDescriptionText, color: "muted", ...props, children });
|
|
39546
|
+
});
|
|
39547
|
+
SelectItemDescription.displayName = "Select.ItemDescription";
|
|
39550
39548
|
const Select = ({
|
|
39551
39549
|
value: valueProp,
|
|
39552
39550
|
defaultValue,
|
|
@@ -39594,6 +39592,7 @@ const Select = ({
|
|
|
39594
39592
|
};
|
|
39595
39593
|
Select.Group = SelectGroup;
|
|
39596
39594
|
Select.Item = SelectItem;
|
|
39595
|
+
Select.ItemDescription = SelectItemDescription;
|
|
39597
39596
|
const MultiSelect = ({
|
|
39598
39597
|
value: valueProp,
|
|
39599
39598
|
defaultValue,
|
|
@@ -39639,6 +39638,7 @@ const MultiSelect = ({
|
|
|
39639
39638
|
};
|
|
39640
39639
|
MultiSelect.Group = SelectGroup;
|
|
39641
39640
|
MultiSelect.Item = SelectItem;
|
|
39641
|
+
MultiSelect.ItemDescription = SelectItemDescription;
|
|
39642
39642
|
const CheckboxMultiSelect = ({
|
|
39643
39643
|
value: valueProp,
|
|
39644
39644
|
defaultValue,
|
|
@@ -39685,6 +39685,7 @@ const CheckboxMultiSelect = ({
|
|
|
39685
39685
|
};
|
|
39686
39686
|
CheckboxMultiSelect.Group = SelectGroup;
|
|
39687
39687
|
CheckboxMultiSelect.Item = MultiSelectCheckboxItem;
|
|
39688
|
+
CheckboxMultiSelect.ItemDescription = SelectItemDescription;
|
|
39688
39689
|
const $89eedd556c436f6a$var$DEFAULT_ORIENTATION = "horizontal";
|
|
39689
39690
|
const $89eedd556c436f6a$var$ORIENTATIONS = [
|
|
39690
39691
|
"horizontal",
|
|
@@ -42417,7 +42418,7 @@ const ToastHeader = pt($054eb8030ebde76e$export$f99233281efd08a0).withConfig({
|
|
|
42417
42418
|
`);
|
|
42418
42419
|
const ToastDescriptionContainer = pt.div.withConfig({
|
|
42419
42420
|
componentId: "sc-tmc8vl-3"
|
|
42420
|
-
})(["display:flex;justify-content:space-between;width:100%;align-items:flex-end;gap:inherit;", ""], ({
|
|
42421
|
+
})(["display:flex;flex-direction:column;justify-content:space-between;width:100%;align-items:flex-end;gap:inherit;", ""], ({
|
|
42421
42422
|
theme: theme2
|
|
42422
42423
|
}) => `
|
|
42423
42424
|
font: ${theme2.click.toast.typography.title.default};
|
|
@@ -42461,7 +42462,7 @@ const Toast = ({
|
|
|
42461
42462
|
actions.length > 0 && /* @__PURE__ */ jsx(ToastDescriptionContent, { children: actions.map(({
|
|
42462
42463
|
altText,
|
|
42463
42464
|
...btnProps
|
|
42464
|
-
}) => /* @__PURE__ */ jsx($054eb8030ebde76e$export$e19cd5f9376f8cee, { altText, children: /* @__PURE__ */ jsx(Button, { ...btnProps }) })) })
|
|
42465
|
+
}) => /* @__PURE__ */ jsx($054eb8030ebde76e$export$e19cd5f9376f8cee, { altText, asChild: true, children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Button, { ...btnProps }) }) }, altText)) })
|
|
42465
42466
|
] })
|
|
42466
42467
|
] });
|
|
42467
42468
|
};
|
|
@@ -42486,13 +42487,21 @@ const ToastProvider = ({
|
|
|
42486
42487
|
align = "end",
|
|
42487
42488
|
...props
|
|
42488
42489
|
}) => {
|
|
42489
|
-
const [toasts, setToasts] = useState(
|
|
42490
|
+
const [toasts, setToasts] = useState({
|
|
42491
|
+
start: /* @__PURE__ */ new Map(),
|
|
42492
|
+
end: /* @__PURE__ */ new Map()
|
|
42493
|
+
});
|
|
42490
42494
|
useEffect(() => {
|
|
42491
42495
|
const listener = (toast) => {
|
|
42492
42496
|
setToasts((currentToasts) => {
|
|
42493
|
-
const
|
|
42494
|
-
|
|
42495
|
-
|
|
42497
|
+
const alignment = toast.align ?? "end";
|
|
42498
|
+
const newToasts = {
|
|
42499
|
+
...currentToasts
|
|
42500
|
+
};
|
|
42501
|
+
const map2 = new Map(newToasts[alignment]);
|
|
42502
|
+
map2.set((toast == null ? void 0 : toast.id) ?? String(Date.now()), toast);
|
|
42503
|
+
newToasts[alignment] = map2;
|
|
42504
|
+
return newToasts;
|
|
42496
42505
|
});
|
|
42497
42506
|
};
|
|
42498
42507
|
toastsEventEmitter.on(listener);
|
|
@@ -42501,28 +42510,36 @@ const ToastProvider = ({
|
|
|
42501
42510
|
const onClose = (id) => (open2) => {
|
|
42502
42511
|
if (!open2) {
|
|
42503
42512
|
setToasts((currentToasts) => {
|
|
42504
|
-
const
|
|
42505
|
-
|
|
42506
|
-
|
|
42513
|
+
const newToasts = {
|
|
42514
|
+
...currentToasts
|
|
42515
|
+
};
|
|
42516
|
+
const map2 = new Map(newToasts[align]);
|
|
42517
|
+
map2.delete(id);
|
|
42518
|
+
newToasts[align] = map2;
|
|
42519
|
+
return newToasts;
|
|
42507
42520
|
});
|
|
42508
42521
|
}
|
|
42509
42522
|
};
|
|
42510
42523
|
const value = {
|
|
42511
|
-
createToast: (toast) => {
|
|
42524
|
+
createToast: (toast, toastAlign = align) => {
|
|
42512
42525
|
setToasts((currentToasts) => {
|
|
42513
|
-
const
|
|
42514
|
-
|
|
42515
|
-
|
|
42526
|
+
const newToasts = {
|
|
42527
|
+
...currentToasts
|
|
42528
|
+
};
|
|
42529
|
+
const map2 = new Map(newToasts[toastAlign]);
|
|
42530
|
+
map2.set((toast == null ? void 0 : toast.id) ?? String(Date.now()), toast);
|
|
42531
|
+
newToasts[toastAlign] = map2;
|
|
42532
|
+
return newToasts;
|
|
42516
42533
|
});
|
|
42517
42534
|
}
|
|
42518
42535
|
};
|
|
42519
42536
|
return /* @__PURE__ */ jsxs($054eb8030ebde76e$export$2881499e37b75b9a, { swipeDirection: align === "start" ? "left" : "right", ...props, children: [
|
|
42520
42537
|
/* @__PURE__ */ jsxs(ToastContext.Provider, { value, children: [
|
|
42521
42538
|
children,
|
|
42522
|
-
Array.from(toasts).map(([id, toast]) => /* @__PURE__ */ jsx(Toast, { ...toast, onClose: onClose(id) }, id))
|
|
42539
|
+
Array.from(toasts[align]).map(([id, toast]) => /* @__PURE__ */ jsx(Toast, { ...toast, onClose: onClose(id) }, id))
|
|
42523
42540
|
] }),
|
|
42524
42541
|
/* @__PURE__ */ jsx(Viewport, { $align: align })
|
|
42525
|
-
] });
|
|
42542
|
+
] }, `toast-provider-${align}`);
|
|
42526
42543
|
};
|
|
42527
42544
|
function listCacheClear$1() {
|
|
42528
42545
|
this.__data__ = [];
|
|
@@ -52055,6 +52072,7 @@ export {
|
|
|
52055
52072
|
TextAreaField,
|
|
52056
52073
|
TextField,
|
|
52057
52074
|
Title$2 as Title,
|
|
52075
|
+
Toast,
|
|
52058
52076
|
ToastProvider,
|
|
52059
52077
|
Tooltip,
|
|
52060
52078
|
VerticalStepper,
|