@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
package/dist/click-ui.es.js
CHANGED
|
@@ -75,7 +75,7 @@ const Blog = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/
|
|
|
75
75
|
/* @__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" }),
|
|
76
76
|
/* @__PURE__ */ jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "m13.75 10.25-6 6" })
|
|
77
77
|
] });
|
|
78
|
-
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",
|
|
78
|
+
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" }) });
|
|
79
79
|
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: [
|
|
80
80
|
/* @__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" }),
|
|
81
81
|
/* @__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" })
|
|
@@ -443,7 +443,7 @@ const Integrations = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www
|
|
|
443
443
|
/* @__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" }),
|
|
444
444
|
/* @__PURE__ */ jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "m9.93 6.028.521 2.954-2.954.52" })
|
|
445
445
|
] });
|
|
446
|
-
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",
|
|
446
|
+
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" }) });
|
|
447
447
|
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: [
|
|
448
448
|
/* @__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" }),
|
|
449
449
|
/* @__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" })
|
|
@@ -489,20 +489,20 @@ const LineInCircle = (props) => {
|
|
|
489
489
|
] });
|
|
490
490
|
};
|
|
491
491
|
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: [
|
|
492
|
-
/* @__PURE__ */ jsx("path", { d: "M8.99902 6.43673H20.0036", stroke: "#161517",
|
|
493
|
-
/* @__PURE__ */ jsx("path", { d: "M20.0036 12.0002H8.99902", stroke: "#161517",
|
|
494
|
-
/* @__PURE__ */ jsx("path", { d: "M8.99902 17.5632H20.0036", stroke: "#161517",
|
|
495
|
-
/* @__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",
|
|
496
|
-
/* @__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",
|
|
497
|
-
/* @__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",
|
|
492
|
+
/* @__PURE__ */ jsx("path", { d: "M8.99902 6.43673H20.0036", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
493
|
+
/* @__PURE__ */ jsx("path", { d: "M20.0036 12.0002H8.99902", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
494
|
+
/* @__PURE__ */ jsx("path", { d: "M8.99902 17.5632H20.0036", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
495
|
+
/* @__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" }),
|
|
496
|
+
/* @__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" }),
|
|
497
|
+
/* @__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" })
|
|
498
498
|
] });
|
|
499
499
|
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: [
|
|
500
|
-
/* @__PURE__ */ jsx("path", { d: "M11 4H20", stroke: "#161517",
|
|
501
|
-
/* @__PURE__ */ jsx("path", { d: "M11.1504 9H20.0004", stroke: "#161517",
|
|
502
|
-
/* @__PURE__ */ jsx("path", { d: "M6.5 9H4H5.25V4L4 5.25", stroke: "#161517",
|
|
503
|
-
/* @__PURE__ */ jsx("path", { d: "M11 15H20", stroke: "#161517",
|
|
504
|
-
/* @__PURE__ */ jsx("path", { d: "M11.1504 20H20.0004", stroke: "#161517",
|
|
505
|
-
/* @__PURE__ */ jsx("path", { d: "M4 15H6.5V17L4 18.5V20H6.75", stroke: "#161517",
|
|
500
|
+
/* @__PURE__ */ jsx("path", { d: "M11 4H20", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
501
|
+
/* @__PURE__ */ jsx("path", { d: "M11.1504 9H20.0004", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
502
|
+
/* @__PURE__ */ jsx("path", { d: "M6.5 9H4H5.25V4L4 5.25", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
503
|
+
/* @__PURE__ */ jsx("path", { d: "M11 15H20", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
504
|
+
/* @__PURE__ */ jsx("path", { d: "M11.1504 20H20.0004", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
505
|
+
/* @__PURE__ */ jsx("path", { d: "M4 15H6.5V17L4 18.5V20H6.75", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
506
506
|
] });
|
|
507
507
|
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: [
|
|
508
508
|
/* @__PURE__ */ jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.25, d: "M7.625 8.875H4.5V5.75" }),
|
|
@@ -711,6 +711,17 @@ const Taxi = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/
|
|
|
711
711
|
/* @__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" }) }),
|
|
712
712
|
/* @__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)" })
|
|
713
713
|
] });
|
|
714
|
+
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: [
|
|
715
|
+
/* @__PURE__ */ jsxs("g", { "clip-path": "url(#clip0_12066_12491)", children: [
|
|
716
|
+
/* @__PURE__ */ jsx("path", { d: "M4.5 3.75L19.5 20.25", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
717
|
+
/* @__PURE__ */ jsx("path", { d: "M9 18.75H15", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
718
|
+
/* @__PURE__ */ jsx("path", { d: "M12 12V18.75", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
719
|
+
/* @__PURE__ */ jsx("path", { d: "M12 5.25V7.54031", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
720
|
+
/* @__PURE__ */ jsx("path", { d: "M9.91797 5.25H18.7502V8.25", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
721
|
+
/* @__PURE__ */ jsx("path", { d: "M5.25 8.25V5.25H5.86406", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
722
|
+
] }),
|
|
723
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_12066_12491", children: /* @__PURE__ */ jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
724
|
+
] });
|
|
714
725
|
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" }) });
|
|
715
726
|
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: [
|
|
716
727
|
/* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_7969_2214)", children: [
|
|
@@ -723,8 +734,8 @@ const TreeStructure = (props) => /* @__PURE__ */ jsxs("svg", { width: "24", heig
|
|
|
723
734
|
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_7969_2214", children: /* @__PURE__ */ jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
724
735
|
] });
|
|
725
736
|
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: [
|
|
726
|
-
/* @__PURE__ */ jsx("path", { d: "M6 20H18", stroke: "#161517",
|
|
727
|
-
/* @__PURE__ */ jsx("path", { d: "M17 4V11C17 13.761 14.761 16 12 16C9.239 16 7 13.761 7 11V4", stroke: "#161517",
|
|
737
|
+
/* @__PURE__ */ jsx("path", { d: "M6 20H18", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
738
|
+
/* @__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" })
|
|
728
739
|
] });
|
|
729
740
|
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: [
|
|
730
741
|
/* @__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" }) }),
|
|
@@ -895,6 +906,7 @@ const ICONS_MAP = {
|
|
|
895
906
|
support: Support,
|
|
896
907
|
table: Table$1,
|
|
897
908
|
taxi: Taxi,
|
|
909
|
+
"text-slash": TextSlash,
|
|
898
910
|
trash: Trash,
|
|
899
911
|
"tree-structure": TreeStructure,
|
|
900
912
|
underline: Underline,
|
|
@@ -7751,6 +7763,80 @@ const GenericMenuItem = styled.div.withConfig({
|
|
|
7751
7763
|
const PopoverArrow = (props) => {
|
|
7752
7764
|
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" }) });
|
|
7753
7765
|
};
|
|
7766
|
+
const _Container = ({
|
|
7767
|
+
component,
|
|
7768
|
+
alignItems,
|
|
7769
|
+
children,
|
|
7770
|
+
fillWidth = true,
|
|
7771
|
+
gap = "none",
|
|
7772
|
+
grow,
|
|
7773
|
+
shrink,
|
|
7774
|
+
isResponsive,
|
|
7775
|
+
justifyContent = "start",
|
|
7776
|
+
maxWidth,
|
|
7777
|
+
minWidth,
|
|
7778
|
+
orientation = "horizontal",
|
|
7779
|
+
padding = "none",
|
|
7780
|
+
wrap = "nowrap",
|
|
7781
|
+
fillHeight,
|
|
7782
|
+
maxHeight,
|
|
7783
|
+
minHeight,
|
|
7784
|
+
overflow,
|
|
7785
|
+
...props
|
|
7786
|
+
}, ref) => {
|
|
7787
|
+
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 });
|
|
7788
|
+
};
|
|
7789
|
+
const Wrapper$d = styled.div.withConfig({
|
|
7790
|
+
componentId: "sc-bcplth-0"
|
|
7791
|
+
})(["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:", ";}"], ({
|
|
7792
|
+
$grow,
|
|
7793
|
+
$shrink
|
|
7794
|
+
}) => `
|
|
7795
|
+
${$grow && `flex: ${$grow}`};
|
|
7796
|
+
${$shrink && `flex-shrink: ${$shrink}`};
|
|
7797
|
+
`, ({
|
|
7798
|
+
$fillHeight,
|
|
7799
|
+
$maxHeight,
|
|
7800
|
+
$minHeight
|
|
7801
|
+
}) => `
|
|
7802
|
+
${$fillHeight && "height: 100%"};
|
|
7803
|
+
${$maxHeight && `max-height: ${$maxHeight}`};
|
|
7804
|
+
${$minHeight && `min-height: ${$minHeight}`};
|
|
7805
|
+
`, ({
|
|
7806
|
+
$overflow
|
|
7807
|
+
}) => `
|
|
7808
|
+
${$overflow && `overflow: ${$overflow}`};
|
|
7809
|
+
`, ({
|
|
7810
|
+
$wrap = "nowrap"
|
|
7811
|
+
}) => $wrap, ({
|
|
7812
|
+
theme: theme2,
|
|
7813
|
+
$gapSize
|
|
7814
|
+
}) => theme2.click.container.gap[$gapSize], ({
|
|
7815
|
+
$maxWidth
|
|
7816
|
+
}) => $maxWidth ?? "none", ({
|
|
7817
|
+
$minWidth
|
|
7818
|
+
}) => $minWidth ?? "auto", ({
|
|
7819
|
+
theme: theme2,
|
|
7820
|
+
$paddingSize
|
|
7821
|
+
}) => theme2.click.container.space[$paddingSize], ({
|
|
7822
|
+
$fillWidth = true
|
|
7823
|
+
}) => $fillWidth === true ? "100%" : "auto", ({
|
|
7824
|
+
$orientation = "horizontal"
|
|
7825
|
+
}) => $orientation === "horizontal" ? "row" : "column", ({
|
|
7826
|
+
$alignItems = "center"
|
|
7827
|
+
}) => $alignItems, ({
|
|
7828
|
+
$justifyContent = "left"
|
|
7829
|
+
}) => $justifyContent === "start" ? "start" : `${$justifyContent}`, ({
|
|
7830
|
+
theme: theme2
|
|
7831
|
+
}) => theme2.breakpoint.sizes.md, ({
|
|
7832
|
+
$isResponsive = true,
|
|
7833
|
+
$fillWidth = true
|
|
7834
|
+
}) => $isResponsive === true ? "100%" : $fillWidth === true ? "100%" : "auto", ({
|
|
7835
|
+
$isResponsive = true
|
|
7836
|
+
}) => $isResponsive === true ? "none" : "auto", ({
|
|
7837
|
+
$isResponsive = true
|
|
7838
|
+
}) => $isResponsive === true ? "column" : "auto");
|
|
7839
|
+
const Container = forwardRef(_Container);
|
|
7754
7840
|
const mergeRefs = (refs) => (value) => {
|
|
7755
7841
|
refs.forEach((ref) => {
|
|
7756
7842
|
if (typeof ref === "function") {
|
|
@@ -7774,14 +7860,6 @@ const _EllipsisContent = ({
|
|
|
7774
7860
|
}]), ...props });
|
|
7775
7861
|
};
|
|
7776
7862
|
const EllipsisContent = forwardRef(_EllipsisContent);
|
|
7777
|
-
const LabelContainer$1 = styled.div.withConfig({
|
|
7778
|
-
componentId: "sc-1likhxd-0"
|
|
7779
|
-
})(["display:grid;grid-template-columns:", ";align-items:center;justify-content:flex-start;width:100%;width:-webkit-fill-available;width:fill-available;width:stretch;gap:", ";"], ({
|
|
7780
|
-
$hasIcon,
|
|
7781
|
-
$iconDir
|
|
7782
|
-
}) => `${$hasIcon && $iconDir === "start" ? "auto " : ""}1fr${$hasIcon && $iconDir === "end" ? " auto" : ""}`, ({
|
|
7783
|
-
theme: theme2
|
|
7784
|
-
}) => theme2.click.sidebar.navigation.item.default.space.gap);
|
|
7785
7863
|
const IconWrapper$3 = ({
|
|
7786
7864
|
icon,
|
|
7787
7865
|
iconDir = "start",
|
|
@@ -7790,10 +7868,11 @@ const IconWrapper$3 = ({
|
|
|
7790
7868
|
height,
|
|
7791
7869
|
children,
|
|
7792
7870
|
ellipsisContent = true,
|
|
7871
|
+
gap = "sm",
|
|
7793
7872
|
...props
|
|
7794
7873
|
}) => {
|
|
7795
7874
|
const TextWrapper2 = ellipsisContent ? EllipsisContent : "div";
|
|
7796
|
-
return /* @__PURE__ */ jsxs(
|
|
7875
|
+
return /* @__PURE__ */ jsxs(Container, { orientation: "horizontal", gap, ...props, children: [
|
|
7797
7876
|
icon && iconDir === "start" && /* @__PURE__ */ jsx(SvgImage, { name: icon, size: size2, width, height }),
|
|
7798
7877
|
/* @__PURE__ */ jsx(TextWrapper2, { "data-testid": `${ellipsisContent ? "ellipsed" : "normal"}-icon-wrapper-text`, children }),
|
|
7799
7878
|
icon && iconDir === "end" && /* @__PURE__ */ jsx(SvgImage, { name: icon, size: size2, width, height })
|
|
@@ -8352,7 +8431,7 @@ const Alert = ({
|
|
|
8352
8431
|
...delegated
|
|
8353
8432
|
}) => {
|
|
8354
8433
|
const [isVisible, setIsVisible] = useState(true);
|
|
8355
|
-
return isVisible ? /* @__PURE__ */ jsxs(Wrapper$
|
|
8434
|
+
return isVisible ? /* @__PURE__ */ jsxs(Wrapper$c, { $size: size2, $state: state, $type: type, "data-testid": "click-alert", ...delegated, children: [
|
|
8356
8435
|
dismissible && type === "banner" && /* @__PURE__ */ jsx(DismissWrapper$1, {}),
|
|
8357
8436
|
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] }) }),
|
|
8358
8437
|
/* @__PURE__ */ jsxs(TextWrapper, { $state: state, $size: size2, children: [
|
|
@@ -8362,7 +8441,7 @@ const Alert = ({
|
|
|
8362
8441
|
dismissible && /* @__PURE__ */ jsx(DismissWrapper$1, { "data-testid": "click-alert-dismiss-button", onClick: () => setIsVisible(false), children: /* @__PURE__ */ jsx(SvgImage, { name: "cross", "aria-label": "close" }) })
|
|
8363
8442
|
] }) : null;
|
|
8364
8443
|
};
|
|
8365
|
-
const Wrapper$
|
|
8444
|
+
const Wrapper$c = styled.div.withConfig({
|
|
8366
8445
|
componentId: "sc-1wvczk0-0"
|
|
8367
8446
|
})(["display:flex;border-radius:", ";justify-content:", ";overflow:hidden;background-color:", ";color:", ";width:100%;"], ({
|
|
8368
8447
|
$type,
|
|
@@ -9216,7 +9295,7 @@ const StyledFallback = styled($cddcb0b647441e34$export$fb8d7f40caaeea67).withCon
|
|
|
9216
9295
|
font: ${theme2.click.avatar.typography.label[$textSize].hover};
|
|
9217
9296
|
}
|
|
9218
9297
|
`);
|
|
9219
|
-
const Wrapper$
|
|
9298
|
+
const Wrapper$b = styled.div.withConfig({
|
|
9220
9299
|
componentId: "sc-471xo0-0"
|
|
9221
9300
|
})(["display:inline-flex;", ""], ({
|
|
9222
9301
|
$state = "default",
|
|
@@ -9273,7 +9352,7 @@ const Badge = ({
|
|
|
9273
9352
|
onClose,
|
|
9274
9353
|
ellipsisContent = true,
|
|
9275
9354
|
...props
|
|
9276
|
-
}) => /* @__PURE__ */ jsx(Wrapper$
|
|
9355
|
+
}) => /* @__PURE__ */ jsx(Wrapper$b, { $state: state, $size: size2, $type: type, ...props, children: /* @__PURE__ */ jsxs(Content$4, { "data-testid": `${ellipsisContent ? "ellipsed" : "normal"}-badge-content`, children: [
|
|
9277
9356
|
/* @__PURE__ */ jsx(BadgeContent, { as: IconWrapper$3, icon, iconDir, size: size2, $state: state, ellipsisContent, children: text2 }),
|
|
9278
9357
|
dismissible && /* @__PURE__ */ jsx(SvgContainer, { name: "cross", $state: state, as: SvgImage, onClick: onClose, "aria-label": "close" })
|
|
9279
9358
|
] }) });
|
|
@@ -9288,11 +9367,11 @@ const BigStat = ({
|
|
|
9288
9367
|
state = "default",
|
|
9289
9368
|
title = "Title",
|
|
9290
9369
|
...props
|
|
9291
|
-
}) => /* @__PURE__ */ jsxs(Wrapper$
|
|
9370
|
+
}) => /* @__PURE__ */ jsxs(Wrapper$a, { $height: height, $order: order, $size: size2, $spacing: spacing, $state: state, $fillWidth: fillWidth, $maxWidth: maxWidth, ...props, children: [
|
|
9292
9371
|
/* @__PURE__ */ jsx(Label, { $state: state, $size: size2, children: label }),
|
|
9293
9372
|
/* @__PURE__ */ jsx(Title$3, { $state: state, $size: size2, children: title })
|
|
9294
9373
|
] });
|
|
9295
|
-
const Wrapper$
|
|
9374
|
+
const Wrapper$a = styled.div.withConfig({
|
|
9296
9375
|
componentId: "sc-u5029o-0"
|
|
9297
9376
|
})(["display:flex;justify-content:center;box-sizing:border-box;", ""], ({
|
|
9298
9377
|
$fillWidth = false,
|
|
@@ -9519,7 +9598,7 @@ const Description = styled.div.withConfig({
|
|
|
9519
9598
|
})(["display:flex;flex-direction:column;align-self:start;gap:", ";flex:1;width:100%;"], ({
|
|
9520
9599
|
theme: theme2
|
|
9521
9600
|
}) => theme2.click.card.horizontal.space.gap);
|
|
9522
|
-
const Wrapper$
|
|
9601
|
+
const Wrapper$9 = styled.div.withConfig({
|
|
9523
9602
|
componentId: "sc-1qnbjoa-2"
|
|
9524
9603
|
})(["display:inline-flex;width:100%;max-width:100%;align-items:center;justify-content:flex-start;", ""], ({
|
|
9525
9604
|
theme: theme2,
|
|
@@ -9625,7 +9704,7 @@ const CardHorizontal = ({
|
|
|
9625
9704
|
window.open(infoUrl, "_blank");
|
|
9626
9705
|
}
|
|
9627
9706
|
};
|
|
9628
|
-
return /* @__PURE__ */ jsx(Wrapper$
|
|
9707
|
+
return /* @__PURE__ */ jsx(Wrapper$9, { $disabled: disabled, $isSelected: isSelected, $isSelectable: isSelectable, $color: color, tabIndex: 0, onClick: handleClick, ...props, children: /* @__PURE__ */ jsxs(ContentWrapper, { children: [
|
|
9629
9708
|
/* @__PURE__ */ jsxs(IconTextContentWrapper, { children: [
|
|
9630
9709
|
icon && /* @__PURE__ */ jsx(CardIcon$1, { name: icon, "aria-hidden": true }),
|
|
9631
9710
|
/* @__PURE__ */ jsxs(Container, { padding: "none", orientation: "vertical", children: [
|
|
@@ -9693,80 +9772,6 @@ const CuiText = styled.p.withConfig({
|
|
|
9693
9772
|
}) => $fillWidth && "width: 100%");
|
|
9694
9773
|
_Text.displayName = "Text";
|
|
9695
9774
|
const Text = forwardRef(_Text);
|
|
9696
|
-
const _Container = ({
|
|
9697
|
-
component,
|
|
9698
|
-
alignItems,
|
|
9699
|
-
children,
|
|
9700
|
-
fillWidth = true,
|
|
9701
|
-
gap = "none",
|
|
9702
|
-
grow,
|
|
9703
|
-
shrink,
|
|
9704
|
-
isResponsive,
|
|
9705
|
-
justifyContent = "start",
|
|
9706
|
-
maxWidth,
|
|
9707
|
-
minWidth,
|
|
9708
|
-
orientation = "horizontal",
|
|
9709
|
-
padding = "none",
|
|
9710
|
-
wrap = "nowrap",
|
|
9711
|
-
fillHeight,
|
|
9712
|
-
maxHeight,
|
|
9713
|
-
minHeight,
|
|
9714
|
-
overflow,
|
|
9715
|
-
...props
|
|
9716
|
-
}, ref) => {
|
|
9717
|
-
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 });
|
|
9718
|
-
};
|
|
9719
|
-
const Wrapper$9 = styled.div.withConfig({
|
|
9720
|
-
componentId: "sc-bcplth-0"
|
|
9721
|
-
})(["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:", ";}"], ({
|
|
9722
|
-
$grow,
|
|
9723
|
-
$shrink
|
|
9724
|
-
}) => `
|
|
9725
|
-
${$grow && `flex: ${$grow}`};
|
|
9726
|
-
${$shrink && `flex-shrink: ${$shrink}`};
|
|
9727
|
-
`, ({
|
|
9728
|
-
$fillHeight,
|
|
9729
|
-
$maxHeight,
|
|
9730
|
-
$minHeight
|
|
9731
|
-
}) => `
|
|
9732
|
-
${$fillHeight && "height: 100%"};
|
|
9733
|
-
${$maxHeight && `max-height: ${$maxHeight}`};
|
|
9734
|
-
${$minHeight && `min-height: ${$minHeight}`};
|
|
9735
|
-
`, ({
|
|
9736
|
-
$overflow
|
|
9737
|
-
}) => `
|
|
9738
|
-
${$overflow && `overflow: ${$overflow}`};
|
|
9739
|
-
`, ({
|
|
9740
|
-
$wrap = "nowrap"
|
|
9741
|
-
}) => $wrap, ({
|
|
9742
|
-
theme: theme2,
|
|
9743
|
-
$gapSize
|
|
9744
|
-
}) => theme2.click.container.gap[$gapSize], ({
|
|
9745
|
-
$maxWidth
|
|
9746
|
-
}) => $maxWidth ?? "none", ({
|
|
9747
|
-
$minWidth
|
|
9748
|
-
}) => $minWidth ?? "auto", ({
|
|
9749
|
-
theme: theme2,
|
|
9750
|
-
$paddingSize
|
|
9751
|
-
}) => theme2.click.container.space[$paddingSize], ({
|
|
9752
|
-
$fillWidth = true
|
|
9753
|
-
}) => $fillWidth === true ? "100%" : "auto", ({
|
|
9754
|
-
$orientation = "horizontal"
|
|
9755
|
-
}) => $orientation === "horizontal" ? "row" : "column", ({
|
|
9756
|
-
$alignItems = "center"
|
|
9757
|
-
}) => $alignItems, ({
|
|
9758
|
-
$justifyContent = "left"
|
|
9759
|
-
}) => $justifyContent === "start" ? "start" : `${$justifyContent}`, ({
|
|
9760
|
-
theme: theme2
|
|
9761
|
-
}) => theme2.breakpoint.sizes.md, ({
|
|
9762
|
-
$isResponsive = true,
|
|
9763
|
-
$fillWidth = true
|
|
9764
|
-
}) => $isResponsive === true ? "100%" : $fillWidth === true ? "100%" : "auto", ({
|
|
9765
|
-
$isResponsive = true
|
|
9766
|
-
}) => $isResponsive === true ? "none" : "auto", ({
|
|
9767
|
-
$isResponsive = true
|
|
9768
|
-
}) => $isResponsive === true ? "column" : "auto");
|
|
9769
|
-
const Container = forwardRef(_Container);
|
|
9770
9775
|
const TopBadgeWrapper = styled(Container).withConfig({
|
|
9771
9776
|
componentId: "sc-1d5pqpo-0"
|
|
9772
9777
|
})(["position:relative;"]);
|
|
@@ -34666,6 +34671,9 @@ const SelectNoDataContainer = styled.div.withConfig({
|
|
|
34666
34671
|
color: ${theme2.click.genericMenu.button.color.label.default};
|
|
34667
34672
|
cursor: ${$clickable ? "pointer" : "default"}
|
|
34668
34673
|
`);
|
|
34674
|
+
const SelectItemDescriptionText = styled.div.withConfig({
|
|
34675
|
+
componentId: "sc-oudbwg-14"
|
|
34676
|
+
})(["white-space:normal;[data-disabled] &,[disabled] &{color:inherit;}", " &{display:none;}"], StyledSelectTrigger);
|
|
34669
34677
|
const OptionContext = createContext({
|
|
34670
34678
|
search: "",
|
|
34671
34679
|
selectedValues: [],
|
|
@@ -37951,7 +37959,7 @@ const SingleSelectValue = ({
|
|
|
37951
37959
|
children,
|
|
37952
37960
|
label
|
|
37953
37961
|
} = valueNode ?? {};
|
|
37954
|
-
return /* @__PURE__ */ jsx(SelectValueContainer, { children: /* @__PURE__ */ jsx(IconWrapper$3, { icon, iconDir, children: label ?? children ?? value }) });
|
|
37962
|
+
return /* @__PURE__ */ jsx(SelectValueContainer, { children: /* @__PURE__ */ jsx(IconWrapper$3, { icon, iconDir, gap: "xxs", children: label ?? children ?? value }) });
|
|
37955
37963
|
};
|
|
37956
37964
|
const useOption = () => {
|
|
37957
37965
|
const result = useContext(OptionContext);
|
|
@@ -38210,14 +38218,11 @@ const InternalSelect = ({
|
|
|
38210
38218
|
options: itemList = [],
|
|
38211
38219
|
...groupProps
|
|
38212
38220
|
} = props2;
|
|
38213
|
-
return /* @__PURE__ */ jsx(SelectGroup, { ...groupProps, children: itemList.map(({
|
|
38214
|
-
label: label2,
|
|
38215
|
-
...itemProps
|
|
38216
|
-
}, itemIndex) => {
|
|
38221
|
+
return /* @__PURE__ */ jsx(SelectGroup, { ...groupProps, children: itemList.map((itemProps, itemIndex) => {
|
|
38217
38222
|
if (checkbox) {
|
|
38218
|
-
return /* @__PURE__ */ jsx(MultiSelectCheckboxItem, { ...itemProps
|
|
38223
|
+
return /* @__PURE__ */ jsx(MultiSelectCheckboxItem, { ...itemProps }, `select-${id}-group-${index2}-item-${itemIndex}`);
|
|
38219
38224
|
}
|
|
38220
|
-
return /* @__PURE__ */ jsx(SelectItem, { ...itemProps
|
|
38225
|
+
return /* @__PURE__ */ jsx(SelectItem, { ...itemProps }, `select-${id}-group-${index2}-item-${itemIndex}`);
|
|
38221
38226
|
}) }, `select-${id}-group-${index2}`);
|
|
38222
38227
|
} else {
|
|
38223
38228
|
if (checkbox) {
|
|
@@ -38264,6 +38269,7 @@ const SelectItem = forwardRef(({
|
|
|
38264
38269
|
disabled = false,
|
|
38265
38270
|
children,
|
|
38266
38271
|
label,
|
|
38272
|
+
description,
|
|
38267
38273
|
separator,
|
|
38268
38274
|
onSelect: onSelectProp,
|
|
38269
38275
|
value = "",
|
|
@@ -38301,7 +38307,10 @@ const SelectItem = forwardRef(({
|
|
|
38301
38307
|
const isChecked = selectedValues.includes(value);
|
|
38302
38308
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
38303
38309
|
/* @__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: [
|
|
38304
|
-
/* @__PURE__ */ jsx(IconWrapper$3, { icon, iconDir, children: label
|
|
38310
|
+
/* @__PURE__ */ jsx(IconWrapper$3, { icon, iconDir, gap: "xxs", children: label ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
38311
|
+
label,
|
|
38312
|
+
description && /* @__PURE__ */ jsx(SelectItemDescription, { children: description })
|
|
38313
|
+
] }) : children }),
|
|
38305
38314
|
/* @__PURE__ */ jsx(CheckIcon$1, { as: SvgImage, name: "check", size: "sm", $showCheck: isChecked })
|
|
38306
38315
|
] }),
|
|
38307
38316
|
separator && /* @__PURE__ */ jsx(Separator, { size: "sm" })
|
|
@@ -38314,6 +38323,7 @@ const MultiSelectCheckboxItem = forwardRef(({
|
|
|
38314
38323
|
icon,
|
|
38315
38324
|
iconDir = "end",
|
|
38316
38325
|
label,
|
|
38326
|
+
description,
|
|
38317
38327
|
onMouseOver: onMouseOverProp,
|
|
38318
38328
|
onSelect: onSelectProp,
|
|
38319
38329
|
separator,
|
|
@@ -38328,7 +38338,7 @@ const MultiSelectCheckboxItem = forwardRef(({
|
|
|
38328
38338
|
selectedValues,
|
|
38329
38339
|
onSelect
|
|
38330
38340
|
} = useOption();
|
|
38331
|
-
const
|
|
38341
|
+
const handleMenuItemClick = (evt) => {
|
|
38332
38342
|
if (!disabled) {
|
|
38333
38343
|
onSelect(value, void 0, evt);
|
|
38334
38344
|
if (typeof onSelectProp === "function") {
|
|
@@ -38336,15 +38346,6 @@ const MultiSelectCheckboxItem = forwardRef(({
|
|
|
38336
38346
|
}
|
|
38337
38347
|
}
|
|
38338
38348
|
};
|
|
38339
|
-
const handleMenuItemClick = (evt) => {
|
|
38340
|
-
if (evt.target !== evt.currentTarget) {
|
|
38341
|
-
return;
|
|
38342
|
-
}
|
|
38343
|
-
handleSelect(evt);
|
|
38344
|
-
};
|
|
38345
|
-
const handleCheckboxClick = (evt) => {
|
|
38346
|
-
handleSelect(evt);
|
|
38347
|
-
};
|
|
38348
38349
|
const handleMenuItemMouseOver = (e) => {
|
|
38349
38350
|
if (onMouseOverProp) {
|
|
38350
38351
|
onMouseOverProp(e);
|
|
@@ -38358,27 +38359,24 @@ const MultiSelectCheckboxItem = forwardRef(({
|
|
|
38358
38359
|
}
|
|
38359
38360
|
const isChecked = selectedValues.includes(value);
|
|
38360
38361
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
38361
|
-
/* @__PURE__ */
|
|
38362
|
-
|
|
38363
|
-
|
|
38364
|
-
|
|
38365
|
-
|
|
38366
|
-
|
|
38367
|
-
|
|
38368
|
-
] }) : /* @__PURE__ */ jsxs("div", { style: {
|
|
38369
|
-
display: "flex",
|
|
38370
|
-
justifyContent: "center"
|
|
38371
|
-
}, children: [
|
|
38372
|
-
/* @__PURE__ */ jsx(SvgImage, { name: icon, size: "sm" }),
|
|
38373
|
-
children
|
|
38374
|
-
] }), onClick: handleCheckboxClick, variant: variant ?? "default" }),
|
|
38375
|
-
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" }) }),
|
|
38376
|
-
!icon && /* @__PURE__ */ jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ?? children, onClick: handleCheckboxClick, variant: variant ?? "default" })
|
|
38377
|
-
] }),
|
|
38362
|
+
/* @__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: [
|
|
38363
|
+
/* @__PURE__ */ jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, variant: variant ?? "default" }),
|
|
38364
|
+
/* @__PURE__ */ jsx(IconWrapper$3, { icon, iconDir, gap: "xxs", children: label ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
38365
|
+
label,
|
|
38366
|
+
description && /* @__PURE__ */ jsx(SelectItemDescription, { children: description })
|
|
38367
|
+
] }) : children })
|
|
38368
|
+
] }) }),
|
|
38378
38369
|
separator && /* @__PURE__ */ jsx(Separator, { size: "sm" })
|
|
38379
38370
|
] });
|
|
38380
38371
|
});
|
|
38381
38372
|
MultiSelectCheckboxItem.displayName = "Select.Item";
|
|
38373
|
+
const SelectItemDescription = forwardRef(({
|
|
38374
|
+
children,
|
|
38375
|
+
...props
|
|
38376
|
+
}) => {
|
|
38377
|
+
return /* @__PURE__ */ jsx(Text, { component: SelectItemDescriptionText, color: "muted", ...props, children });
|
|
38378
|
+
});
|
|
38379
|
+
SelectItemDescription.displayName = "Select.ItemDescription";
|
|
38382
38380
|
const Select = ({
|
|
38383
38381
|
value: valueProp,
|
|
38384
38382
|
defaultValue,
|
|
@@ -38426,6 +38424,7 @@ const Select = ({
|
|
|
38426
38424
|
};
|
|
38427
38425
|
Select.Group = SelectGroup;
|
|
38428
38426
|
Select.Item = SelectItem;
|
|
38427
|
+
Select.ItemDescription = SelectItemDescription;
|
|
38429
38428
|
const MultiSelect = ({
|
|
38430
38429
|
value: valueProp,
|
|
38431
38430
|
defaultValue,
|
|
@@ -38471,6 +38470,7 @@ const MultiSelect = ({
|
|
|
38471
38470
|
};
|
|
38472
38471
|
MultiSelect.Group = SelectGroup;
|
|
38473
38472
|
MultiSelect.Item = SelectItem;
|
|
38473
|
+
MultiSelect.ItemDescription = SelectItemDescription;
|
|
38474
38474
|
const CheckboxMultiSelect = ({
|
|
38475
38475
|
value: valueProp,
|
|
38476
38476
|
defaultValue,
|
|
@@ -38517,6 +38517,7 @@ const CheckboxMultiSelect = ({
|
|
|
38517
38517
|
};
|
|
38518
38518
|
CheckboxMultiSelect.Group = SelectGroup;
|
|
38519
38519
|
CheckboxMultiSelect.Item = MultiSelectCheckboxItem;
|
|
38520
|
+
CheckboxMultiSelect.ItemDescription = SelectItemDescription;
|
|
38520
38521
|
const $89eedd556c436f6a$var$DEFAULT_ORIENTATION = "horizontal";
|
|
38521
38522
|
const $89eedd556c436f6a$var$ORIENTATIONS = [
|
|
38522
38523
|
"horizontal",
|
|
@@ -41249,7 +41250,7 @@ const ToastHeader = styled($054eb8030ebde76e$export$f99233281efd08a0).withConfig
|
|
|
41249
41250
|
`);
|
|
41250
41251
|
const ToastDescriptionContainer = styled.div.withConfig({
|
|
41251
41252
|
componentId: "sc-tmc8vl-3"
|
|
41252
|
-
})(["display:flex;justify-content:space-between;width:100%;align-items:flex-end;gap:inherit;", ""], ({
|
|
41253
|
+
})(["display:flex;flex-direction:column;justify-content:space-between;width:100%;align-items:flex-end;gap:inherit;", ""], ({
|
|
41253
41254
|
theme: theme2
|
|
41254
41255
|
}) => `
|
|
41255
41256
|
font: ${theme2.click.toast.typography.title.default};
|
|
@@ -41293,7 +41294,7 @@ const Toast = ({
|
|
|
41293
41294
|
actions.length > 0 && /* @__PURE__ */ jsx(ToastDescriptionContent, { children: actions.map(({
|
|
41294
41295
|
altText,
|
|
41295
41296
|
...btnProps
|
|
41296
|
-
}) => /* @__PURE__ */ jsx($054eb8030ebde76e$export$e19cd5f9376f8cee, { altText, children: /* @__PURE__ */ jsx(Button, { ...btnProps }) })) })
|
|
41297
|
+
}) => /* @__PURE__ */ jsx($054eb8030ebde76e$export$e19cd5f9376f8cee, { altText, asChild: true, children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Button, { ...btnProps }) }) }, altText)) })
|
|
41297
41298
|
] })
|
|
41298
41299
|
] });
|
|
41299
41300
|
};
|
|
@@ -41318,13 +41319,21 @@ const ToastProvider = ({
|
|
|
41318
41319
|
align = "end",
|
|
41319
41320
|
...props
|
|
41320
41321
|
}) => {
|
|
41321
|
-
const [toasts, setToasts] = useState(
|
|
41322
|
+
const [toasts, setToasts] = useState({
|
|
41323
|
+
start: /* @__PURE__ */ new Map(),
|
|
41324
|
+
end: /* @__PURE__ */ new Map()
|
|
41325
|
+
});
|
|
41322
41326
|
useEffect(() => {
|
|
41323
41327
|
const listener = (toast) => {
|
|
41324
41328
|
setToasts((currentToasts) => {
|
|
41325
|
-
const
|
|
41326
|
-
|
|
41327
|
-
|
|
41329
|
+
const alignment = toast.align ?? "end";
|
|
41330
|
+
const newToasts = {
|
|
41331
|
+
...currentToasts
|
|
41332
|
+
};
|
|
41333
|
+
const map2 = new Map(newToasts[alignment]);
|
|
41334
|
+
map2.set((toast == null ? void 0 : toast.id) ?? String(Date.now()), toast);
|
|
41335
|
+
newToasts[alignment] = map2;
|
|
41336
|
+
return newToasts;
|
|
41328
41337
|
});
|
|
41329
41338
|
};
|
|
41330
41339
|
toastsEventEmitter.on(listener);
|
|
@@ -41333,28 +41342,36 @@ const ToastProvider = ({
|
|
|
41333
41342
|
const onClose = (id) => (open2) => {
|
|
41334
41343
|
if (!open2) {
|
|
41335
41344
|
setToasts((currentToasts) => {
|
|
41336
|
-
const
|
|
41337
|
-
|
|
41338
|
-
|
|
41345
|
+
const newToasts = {
|
|
41346
|
+
...currentToasts
|
|
41347
|
+
};
|
|
41348
|
+
const map2 = new Map(newToasts[align]);
|
|
41349
|
+
map2.delete(id);
|
|
41350
|
+
newToasts[align] = map2;
|
|
41351
|
+
return newToasts;
|
|
41339
41352
|
});
|
|
41340
41353
|
}
|
|
41341
41354
|
};
|
|
41342
41355
|
const value = {
|
|
41343
|
-
createToast: (toast) => {
|
|
41356
|
+
createToast: (toast, toastAlign = align) => {
|
|
41344
41357
|
setToasts((currentToasts) => {
|
|
41345
|
-
const
|
|
41346
|
-
|
|
41347
|
-
|
|
41358
|
+
const newToasts = {
|
|
41359
|
+
...currentToasts
|
|
41360
|
+
};
|
|
41361
|
+
const map2 = new Map(newToasts[toastAlign]);
|
|
41362
|
+
map2.set((toast == null ? void 0 : toast.id) ?? String(Date.now()), toast);
|
|
41363
|
+
newToasts[toastAlign] = map2;
|
|
41364
|
+
return newToasts;
|
|
41348
41365
|
});
|
|
41349
41366
|
}
|
|
41350
41367
|
};
|
|
41351
41368
|
return /* @__PURE__ */ jsxs($054eb8030ebde76e$export$2881499e37b75b9a, { swipeDirection: align === "start" ? "left" : "right", ...props, children: [
|
|
41352
41369
|
/* @__PURE__ */ jsxs(ToastContext.Provider, { value, children: [
|
|
41353
41370
|
children,
|
|
41354
|
-
Array.from(toasts).map(([id, toast]) => /* @__PURE__ */ jsx(Toast, { ...toast, onClose: onClose(id) }, id))
|
|
41371
|
+
Array.from(toasts[align]).map(([id, toast]) => /* @__PURE__ */ jsx(Toast, { ...toast, onClose: onClose(id) }, id))
|
|
41355
41372
|
] }),
|
|
41356
41373
|
/* @__PURE__ */ jsx(Viewport, { $align: align })
|
|
41357
|
-
] });
|
|
41374
|
+
] }, `toast-provider-${align}`);
|
|
41358
41375
|
};
|
|
41359
41376
|
function listCacheClear$1() {
|
|
41360
41377
|
this.__data__ = [];
|
|
@@ -50887,6 +50904,7 @@ export {
|
|
|
50887
50904
|
TextAreaField,
|
|
50888
50905
|
TextField,
|
|
50889
50906
|
Title$2 as Title,
|
|
50907
|
+
Toast,
|
|
50890
50908
|
ToastProvider,
|
|
50891
50909
|
Tooltip,
|
|
50892
50910
|
VerticalStepper,
|