@clickhouse/click-ui 0.0.207 → 0.0.208
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 +43 -10
- package/dist/click-ui.bundled.umd.js +43 -10
- package/dist/click-ui.es.js +43 -10
- package/dist/click-ui.umd.js +43 -10
- package/dist/components/Icon/IconCommon.d.ts +5 -0
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/icons/Bold.d.ts +4 -0
- package/dist/components/icons/Italic.d.ts +4 -0
- package/dist/components/icons/ListBulleted.d.ts +4 -0
- package/dist/components/icons/ListNumbered.d.ts +4 -0
- package/dist/components/icons/Underline.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1271,6 +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", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }) });
|
|
1274
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: [
|
|
1275
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" }),
|
|
1276
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" })
|
|
@@ -1638,6 +1639,7 @@ const Integrations = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www
|
|
|
1638
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" }),
|
|
1639
1640
|
/* @__PURE__ */ jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "m9.93 6.028.521 2.954-2.954.52" })
|
|
1640
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", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }) });
|
|
1641
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: [
|
|
1642
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" }),
|
|
1643
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" })
|
|
@@ -1682,6 +1684,22 @@ const LineInCircle = (props) => {
|
|
|
1682
1684
|
/* @__PURE__ */ jsx("path", { d: "M8 16L16 8", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
1683
1685
|
] });
|
|
1684
1686
|
};
|
|
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", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
1689
|
+
/* @__PURE__ */ jsx("path", { d: "M20.0036 12.0002H8.99902", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
1690
|
+
/* @__PURE__ */ jsx("path", { d: "M8.99902 17.5632H20.0036", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "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", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "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", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "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", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
|
1694
|
+
] });
|
|
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", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
1697
|
+
/* @__PURE__ */ jsx("path", { d: "M11.1504 9H20.0004", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
1698
|
+
/* @__PURE__ */ jsx("path", { d: "M6.5 9H4H5.25V4L4 5.25", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
1699
|
+
/* @__PURE__ */ jsx("path", { d: "M11 15H20", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
1700
|
+
/* @__PURE__ */ jsx("path", { d: "M11.1504 20H20.0004", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
1701
|
+
/* @__PURE__ */ jsx("path", { d: "M4 15H6.5V17L4 18.5V20H6.75", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
|
1702
|
+
] });
|
|
1685
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: [
|
|
1686
1704
|
/* @__PURE__ */ jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.25, d: "M7.625 8.875H4.5V5.75" }),
|
|
1687
1705
|
/* @__PURE__ */ jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M19.5 12A7.495 7.495 0 0 0 5.188 8.875" }),
|
|
@@ -1900,6 +1918,10 @@ const TreeStructure = (props) => /* @__PURE__ */ jsxs("svg", { width: "24", heig
|
|
|
1900
1918
|
] }),
|
|
1901
1919
|
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_7969_2214", children: /* @__PURE__ */ jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
1902
1920
|
] });
|
|
1921
|
+
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", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
1923
|
+
/* @__PURE__ */ jsx("path", { d: "M17 4V11C17 13.761 14.761 16 12 16C9.239 16 7 13.761 7 11V4", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
|
1924
|
+
] });
|
|
1903
1925
|
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: [
|
|
1904
1926
|
/* @__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" }) }),
|
|
1905
1927
|
/* @__PURE__ */ jsx("path", { d: "M7.83984 17.8179V16.5322H6.55413V17.8179H7.83984ZM16.1664 17.8179H17.4521V16.5322H16.1664V17.8179ZM16.1664 18.8864V20.1721H17.4521V18.8864H16.1664ZM7.83984 18.8864H6.55413V20.1721H7.83984V18.8864ZM7.83984 19.1036H16.1664V16.5322H7.83984V19.1036ZM14.8807 17.8179V18.8864H17.4521V17.8179H14.8807ZM16.1664 17.6007H7.83984V20.1721H16.1664V17.6007ZM9.12556 18.8864V17.8179H6.55413V18.8864H9.12556Z", fill: "white", mask: "url(#path-1-inside-1_10418_503)" }),
|
|
@@ -1939,6 +1961,7 @@ const ICONS_MAP = {
|
|
|
1939
1961
|
bell: Bell,
|
|
1940
1962
|
beta: Beta,
|
|
1941
1963
|
blog: Blog,
|
|
1964
|
+
bold: Bold,
|
|
1942
1965
|
book: Book,
|
|
1943
1966
|
brackets: Brackets,
|
|
1944
1967
|
briefcase: Briefcase,
|
|
@@ -2013,6 +2036,7 @@ const ICONS_MAP = {
|
|
|
2013
2036
|
information: InformationIcon,
|
|
2014
2037
|
"insert-row": InsertRowIcon,
|
|
2015
2038
|
integrations: Integrations,
|
|
2039
|
+
italic: Italic,
|
|
2016
2040
|
key: Key,
|
|
2017
2041
|
keys: Keys,
|
|
2018
2042
|
lifebuoy: Lifebuoy,
|
|
@@ -2020,6 +2044,8 @@ const ICONS_MAP = {
|
|
|
2020
2044
|
"light-bulb-on": LightBulbOn,
|
|
2021
2045
|
lightening: Lightening,
|
|
2022
2046
|
"line-in-circle": LineInCircle,
|
|
2047
|
+
"list-bulleted": ListBulleted,
|
|
2048
|
+
"list-numbered": ListNumbered,
|
|
2023
2049
|
loading: LoadingFlipped,
|
|
2024
2050
|
"loading-animated": LoadingAnimated,
|
|
2025
2051
|
lock: Lock,
|
|
@@ -2067,6 +2093,7 @@ const ICONS_MAP = {
|
|
|
2067
2093
|
taxi: Taxi,
|
|
2068
2094
|
trash: Trash,
|
|
2069
2095
|
"tree-structure": TreeStructure,
|
|
2096
|
+
underline: Underline,
|
|
2070
2097
|
upgrade: Upgrade,
|
|
2071
2098
|
upload: Upload,
|
|
2072
2099
|
url: Url,
|
|
@@ -39467,15 +39494,24 @@ const MultiSelectCheckboxItem = forwardRef(({
|
|
|
39467
39494
|
selectedValues,
|
|
39468
39495
|
onSelect
|
|
39469
39496
|
} = useOption();
|
|
39470
|
-
const
|
|
39497
|
+
const handleSelect = (evt) => {
|
|
39471
39498
|
if (!disabled) {
|
|
39472
39499
|
onSelect(value, void 0, evt);
|
|
39473
|
-
if (typeof onSelectProp
|
|
39500
|
+
if (typeof onSelectProp === "function") {
|
|
39474
39501
|
onSelectProp(value, void 0, evt);
|
|
39475
39502
|
}
|
|
39476
39503
|
}
|
|
39477
39504
|
};
|
|
39478
|
-
const
|
|
39505
|
+
const handleMenuItemClick = (evt) => {
|
|
39506
|
+
if (evt.target !== evt.currentTarget) {
|
|
39507
|
+
return;
|
|
39508
|
+
}
|
|
39509
|
+
handleSelect(evt);
|
|
39510
|
+
};
|
|
39511
|
+
const handleCheckboxClick = (evt) => {
|
|
39512
|
+
handleSelect(evt);
|
|
39513
|
+
};
|
|
39514
|
+
const handleMenuItemMouseOver = (e) => {
|
|
39479
39515
|
if (onMouseOverProp) {
|
|
39480
39516
|
onMouseOverProp(e);
|
|
39481
39517
|
}
|
|
@@ -39487,11 +39523,8 @@ const MultiSelectCheckboxItem = forwardRef(({
|
|
|
39487
39523
|
return null;
|
|
39488
39524
|
}
|
|
39489
39525
|
const isChecked = selectedValues.includes(value);
|
|
39490
|
-
const onChange = () => {
|
|
39491
|
-
onSelect(value);
|
|
39492
|
-
};
|
|
39493
39526
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
39494
|
-
/* @__PURE__ */ jsxs(GenericMenuItem, { ...props, "data-value": value, onClick:
|
|
39527
|
+
/* @__PURE__ */ jsxs(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: [
|
|
39495
39528
|
icon && iconDir === "start" && /* @__PURE__ */ jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ? /* @__PURE__ */ jsxs("div", { style: {
|
|
39496
39529
|
display: "flex",
|
|
39497
39530
|
justifyContent: "center"
|
|
@@ -39504,9 +39537,9 @@ const MultiSelectCheckboxItem = forwardRef(({
|
|
|
39504
39537
|
}, children: [
|
|
39505
39538
|
/* @__PURE__ */ jsx(SvgImage, { name: icon, size: "sm" }),
|
|
39506
39539
|
children
|
|
39507
|
-
] }), onClick:
|
|
39508
|
-
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:
|
|
39509
|
-
!icon && /* @__PURE__ */ jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ?? children, onClick:
|
|
39540
|
+
] }), onClick: handleCheckboxClick, variant: variant ?? "default" }),
|
|
39541
|
+
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" }) }),
|
|
39542
|
+
!icon && /* @__PURE__ */ jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ?? children, onClick: handleCheckboxClick, variant: variant ?? "default" })
|
|
39510
39543
|
] }),
|
|
39511
39544
|
separator && /* @__PURE__ */ jsx(Separator, { size: "sm" })
|
|
39512
39545
|
] });
|
|
@@ -1287,6 +1287,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
1287
1287
|
/* @__PURE__ */ jsxRuntime.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" }),
|
|
1288
1288
|
/* @__PURE__ */ jsxRuntime.jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "m13.75 10.25-6 6" })
|
|
1289
1289
|
] });
|
|
1290
|
+
const Bold = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsxRuntime.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", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }) });
|
|
1290
1291
|
const Book = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...props, children: [
|
|
1291
1292
|
/* @__PURE__ */ jsxRuntime.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" }),
|
|
1292
1293
|
/* @__PURE__ */ jsxRuntime.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" })
|
|
@@ -1654,6 +1655,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
1654
1655
|
/* @__PURE__ */ jsxRuntime.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" }),
|
|
1655
1656
|
/* @__PURE__ */ jsxRuntime.jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "m9.93 6.028.521 2.954-2.954.52" })
|
|
1656
1657
|
] });
|
|
1658
|
+
const Italic = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M14.1821 18H5.45508H9.43508L14.5651 6H18.5451H9.81808", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }) });
|
|
1657
1659
|
const Key = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
1658
1660
|
/* @__PURE__ */ jsxRuntime.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" }),
|
|
1659
1661
|
/* @__PURE__ */ jsxRuntime.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" })
|
|
@@ -1698,6 +1700,22 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
1698
1700
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M8 16L16 8", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
1699
1701
|
] });
|
|
1700
1702
|
};
|
|
1703
|
+
const ListBulleted = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
1704
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M8.99902 6.43673H20.0036", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
1705
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M20.0036 12.0002H8.99902", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
1706
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M8.99902 17.5632H20.0036", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
1707
|
+
/* @__PURE__ */ jsxRuntime.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", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
1708
|
+
/* @__PURE__ */ jsxRuntime.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", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
1709
|
+
/* @__PURE__ */ jsxRuntime.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", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
|
1710
|
+
] });
|
|
1711
|
+
const ListNumbered = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
1712
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M11 4H20", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
1713
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M11.1504 9H20.0004", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
1714
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6.5 9H4H5.25V4L4 5.25", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
1715
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M11 15H20", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
1716
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M11.1504 20H20.0004", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
1717
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M4 15H6.5V17L4 18.5V20H6.75", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
|
1718
|
+
] });
|
|
1701
1719
|
const Loading = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...props, children: [
|
|
1702
1720
|
/* @__PURE__ */ jsxRuntime.jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.25, d: "M7.625 8.875H4.5V5.75" }),
|
|
1703
1721
|
/* @__PURE__ */ jsxRuntime.jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M19.5 12A7.495 7.495 0 0 0 5.188 8.875" }),
|
|
@@ -1916,6 +1934,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
1916
1934
|
] }),
|
|
1917
1935
|
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "clip0_7969_2214", children: /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
1918
1936
|
] });
|
|
1937
|
+
const Underline = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
1938
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6 20H18", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
1939
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M17 4V11C17 13.761 14.761 16 12 16C9.239 16 7 13.761 7 11V4", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
|
1940
|
+
] });
|
|
1919
1941
|
const Upgrade = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
1920
1942
|
/* @__PURE__ */ jsxRuntime.jsx("mask", { id: "path-1-inside-1_10418_503", fill: "white", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M16.1664 17.8179H7.83984V18.8864H16.1664V17.8179Z" }) }),
|
|
1921
1943
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M7.83984 17.8179V16.5322H6.55413V17.8179H7.83984ZM16.1664 17.8179H17.4521V16.5322H16.1664V17.8179ZM16.1664 18.8864V20.1721H17.4521V18.8864H16.1664ZM7.83984 18.8864H6.55413V20.1721H7.83984V18.8864ZM7.83984 19.1036H16.1664V16.5322H7.83984V19.1036ZM14.8807 17.8179V18.8864H17.4521V17.8179H14.8807ZM16.1664 17.6007H7.83984V20.1721H16.1664V17.6007ZM9.12556 18.8864V17.8179H6.55413V18.8864H9.12556Z", fill: "white", mask: "url(#path-1-inside-1_10418_503)" }),
|
|
@@ -1955,6 +1977,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
1955
1977
|
bell: Bell,
|
|
1956
1978
|
beta: Beta,
|
|
1957
1979
|
blog: Blog,
|
|
1980
|
+
bold: Bold,
|
|
1958
1981
|
book: Book,
|
|
1959
1982
|
brackets: Brackets,
|
|
1960
1983
|
briefcase: Briefcase,
|
|
@@ -2029,6 +2052,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
2029
2052
|
information: InformationIcon,
|
|
2030
2053
|
"insert-row": InsertRowIcon,
|
|
2031
2054
|
integrations: Integrations,
|
|
2055
|
+
italic: Italic,
|
|
2032
2056
|
key: Key,
|
|
2033
2057
|
keys: Keys,
|
|
2034
2058
|
lifebuoy: Lifebuoy,
|
|
@@ -2036,6 +2060,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
2036
2060
|
"light-bulb-on": LightBulbOn,
|
|
2037
2061
|
lightening: Lightening,
|
|
2038
2062
|
"line-in-circle": LineInCircle,
|
|
2063
|
+
"list-bulleted": ListBulleted,
|
|
2064
|
+
"list-numbered": ListNumbered,
|
|
2039
2065
|
loading: LoadingFlipped,
|
|
2040
2066
|
"loading-animated": LoadingAnimated,
|
|
2041
2067
|
lock: Lock,
|
|
@@ -2083,6 +2109,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
2083
2109
|
taxi: Taxi,
|
|
2084
2110
|
trash: Trash,
|
|
2085
2111
|
"tree-structure": TreeStructure,
|
|
2112
|
+
underline: Underline,
|
|
2086
2113
|
upgrade: Upgrade,
|
|
2087
2114
|
upload: Upload,
|
|
2088
2115
|
url: Url,
|
|
@@ -39483,15 +39510,24 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
|
|
|
39483
39510
|
selectedValues,
|
|
39484
39511
|
onSelect
|
|
39485
39512
|
} = useOption();
|
|
39486
|
-
const
|
|
39513
|
+
const handleSelect = (evt) => {
|
|
39487
39514
|
if (!disabled) {
|
|
39488
39515
|
onSelect(value, void 0, evt);
|
|
39489
|
-
if (typeof onSelectProp
|
|
39516
|
+
if (typeof onSelectProp === "function") {
|
|
39490
39517
|
onSelectProp(value, void 0, evt);
|
|
39491
39518
|
}
|
|
39492
39519
|
}
|
|
39493
39520
|
};
|
|
39494
|
-
const
|
|
39521
|
+
const handleMenuItemClick = (evt) => {
|
|
39522
|
+
if (evt.target !== evt.currentTarget) {
|
|
39523
|
+
return;
|
|
39524
|
+
}
|
|
39525
|
+
handleSelect(evt);
|
|
39526
|
+
};
|
|
39527
|
+
const handleCheckboxClick = (evt) => {
|
|
39528
|
+
handleSelect(evt);
|
|
39529
|
+
};
|
|
39530
|
+
const handleMenuItemMouseOver = (e) => {
|
|
39495
39531
|
if (onMouseOverProp) {
|
|
39496
39532
|
onMouseOverProp(e);
|
|
39497
39533
|
}
|
|
@@ -39503,11 +39539,8 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
|
|
|
39503
39539
|
return null;
|
|
39504
39540
|
}
|
|
39505
39541
|
const isChecked = selectedValues.includes(value);
|
|
39506
|
-
const onChange = () => {
|
|
39507
|
-
onSelect(value);
|
|
39508
|
-
};
|
|
39509
39542
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
39510
|
-
/* @__PURE__ */ jsxRuntime.jsxs(GenericMenuItem, { ...props, "data-value": value, onClick:
|
|
39543
|
+
/* @__PURE__ */ jsxRuntime.jsxs(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: [
|
|
39511
39544
|
icon && iconDir === "start" && /* @__PURE__ */ jsxRuntime.jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ? /* @__PURE__ */ jsxRuntime.jsxs("div", { style: {
|
|
39512
39545
|
display: "flex",
|
|
39513
39546
|
justifyContent: "center"
|
|
@@ -39520,9 +39553,9 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
|
|
|
39520
39553
|
}, children: [
|
|
39521
39554
|
/* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: icon, size: "sm" }),
|
|
39522
39555
|
children
|
|
39523
|
-
] }), onClick:
|
|
39524
|
-
icon && iconDir === "end" && /* @__PURE__ */ jsxRuntime.jsx(IconWrapper$3, { icon, iconDir: "end", children: /* @__PURE__ */ jsxRuntime.jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ?? children, onClick:
|
|
39525
|
-
!icon && /* @__PURE__ */ jsxRuntime.jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ?? children, onClick:
|
|
39556
|
+
] }), onClick: handleCheckboxClick, variant: variant ?? "default" }),
|
|
39557
|
+
icon && iconDir === "end" && /* @__PURE__ */ jsxRuntime.jsx(IconWrapper$3, { icon, iconDir: "end", children: /* @__PURE__ */ jsxRuntime.jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ?? children, onClick: handleCheckboxClick, variant: variant ?? "default" }) }),
|
|
39558
|
+
!icon && /* @__PURE__ */ jsxRuntime.jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ?? children, onClick: handleCheckboxClick, variant: variant ?? "default" })
|
|
39526
39559
|
] }),
|
|
39527
39560
|
separator && /* @__PURE__ */ jsxRuntime.jsx(Separator, { size: "sm" })
|
|
39528
39561
|
] });
|
package/dist/click-ui.es.js
CHANGED
|
@@ -75,6 +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", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }) });
|
|
78
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: [
|
|
79
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" }),
|
|
80
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" })
|
|
@@ -442,6 +443,7 @@ const Integrations = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www
|
|
|
442
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" }),
|
|
443
444
|
/* @__PURE__ */ jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "m9.93 6.028.521 2.954-2.954.52" })
|
|
444
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", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }) });
|
|
445
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: [
|
|
446
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" }),
|
|
447
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" })
|
|
@@ -486,6 +488,22 @@ const LineInCircle = (props) => {
|
|
|
486
488
|
/* @__PURE__ */ jsx("path", { d: "M8 16L16 8", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
487
489
|
] });
|
|
488
490
|
};
|
|
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", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
493
|
+
/* @__PURE__ */ jsx("path", { d: "M20.0036 12.0002H8.99902", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
494
|
+
/* @__PURE__ */ jsx("path", { d: "M8.99902 17.5632H20.0036", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "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", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "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", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "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", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
|
498
|
+
] });
|
|
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", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
501
|
+
/* @__PURE__ */ jsx("path", { d: "M11.1504 9H20.0004", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
502
|
+
/* @__PURE__ */ jsx("path", { d: "M6.5 9H4H5.25V4L4 5.25", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
503
|
+
/* @__PURE__ */ jsx("path", { d: "M11 15H20", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
504
|
+
/* @__PURE__ */ jsx("path", { d: "M11.1504 20H20.0004", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
505
|
+
/* @__PURE__ */ jsx("path", { d: "M4 15H6.5V17L4 18.5V20H6.75", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
|
506
|
+
] });
|
|
489
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: [
|
|
490
508
|
/* @__PURE__ */ jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.25, d: "M7.625 8.875H4.5V5.75" }),
|
|
491
509
|
/* @__PURE__ */ jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M19.5 12A7.495 7.495 0 0 0 5.188 8.875" }),
|
|
@@ -704,6 +722,10 @@ const TreeStructure = (props) => /* @__PURE__ */ jsxs("svg", { width: "24", heig
|
|
|
704
722
|
] }),
|
|
705
723
|
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_7969_2214", children: /* @__PURE__ */ jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
706
724
|
] });
|
|
725
|
+
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", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
727
|
+
/* @__PURE__ */ jsx("path", { d: "M17 4V11C17 13.761 14.761 16 12 16C9.239 16 7 13.761 7 11V4", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
|
728
|
+
] });
|
|
707
729
|
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: [
|
|
708
730
|
/* @__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" }) }),
|
|
709
731
|
/* @__PURE__ */ jsx("path", { d: "M7.83984 17.8179V16.5322H6.55413V17.8179H7.83984ZM16.1664 17.8179H17.4521V16.5322H16.1664V17.8179ZM16.1664 18.8864V20.1721H17.4521V18.8864H16.1664ZM7.83984 18.8864H6.55413V20.1721H7.83984V18.8864ZM7.83984 19.1036H16.1664V16.5322H7.83984V19.1036ZM14.8807 17.8179V18.8864H17.4521V17.8179H14.8807ZM16.1664 17.6007H7.83984V20.1721H16.1664V17.6007ZM9.12556 18.8864V17.8179H6.55413V18.8864H9.12556Z", fill: "white", mask: "url(#path-1-inside-1_10418_503)" }),
|
|
@@ -743,6 +765,7 @@ const ICONS_MAP = {
|
|
|
743
765
|
bell: Bell,
|
|
744
766
|
beta: Beta,
|
|
745
767
|
blog: Blog,
|
|
768
|
+
bold: Bold,
|
|
746
769
|
book: Book,
|
|
747
770
|
brackets: Brackets,
|
|
748
771
|
briefcase: Briefcase,
|
|
@@ -817,6 +840,7 @@ const ICONS_MAP = {
|
|
|
817
840
|
information: InformationIcon,
|
|
818
841
|
"insert-row": InsertRowIcon,
|
|
819
842
|
integrations: Integrations,
|
|
843
|
+
italic: Italic,
|
|
820
844
|
key: Key,
|
|
821
845
|
keys: Keys,
|
|
822
846
|
lifebuoy: Lifebuoy,
|
|
@@ -824,6 +848,8 @@ const ICONS_MAP = {
|
|
|
824
848
|
"light-bulb-on": LightBulbOn,
|
|
825
849
|
lightening: Lightening,
|
|
826
850
|
"line-in-circle": LineInCircle,
|
|
851
|
+
"list-bulleted": ListBulleted,
|
|
852
|
+
"list-numbered": ListNumbered,
|
|
827
853
|
loading: LoadingFlipped,
|
|
828
854
|
"loading-animated": LoadingAnimated,
|
|
829
855
|
lock: Lock,
|
|
@@ -871,6 +897,7 @@ const ICONS_MAP = {
|
|
|
871
897
|
taxi: Taxi,
|
|
872
898
|
trash: Trash,
|
|
873
899
|
"tree-structure": TreeStructure,
|
|
900
|
+
underline: Underline,
|
|
874
901
|
upgrade: Upgrade,
|
|
875
902
|
upload: Upload,
|
|
876
903
|
url: Url,
|
|
@@ -38299,15 +38326,24 @@ const MultiSelectCheckboxItem = forwardRef(({
|
|
|
38299
38326
|
selectedValues,
|
|
38300
38327
|
onSelect
|
|
38301
38328
|
} = useOption();
|
|
38302
|
-
const
|
|
38329
|
+
const handleSelect = (evt) => {
|
|
38303
38330
|
if (!disabled) {
|
|
38304
38331
|
onSelect(value, void 0, evt);
|
|
38305
|
-
if (typeof onSelectProp
|
|
38332
|
+
if (typeof onSelectProp === "function") {
|
|
38306
38333
|
onSelectProp(value, void 0, evt);
|
|
38307
38334
|
}
|
|
38308
38335
|
}
|
|
38309
38336
|
};
|
|
38310
|
-
const
|
|
38337
|
+
const handleMenuItemClick = (evt) => {
|
|
38338
|
+
if (evt.target !== evt.currentTarget) {
|
|
38339
|
+
return;
|
|
38340
|
+
}
|
|
38341
|
+
handleSelect(evt);
|
|
38342
|
+
};
|
|
38343
|
+
const handleCheckboxClick = (evt) => {
|
|
38344
|
+
handleSelect(evt);
|
|
38345
|
+
};
|
|
38346
|
+
const handleMenuItemMouseOver = (e) => {
|
|
38311
38347
|
if (onMouseOverProp) {
|
|
38312
38348
|
onMouseOverProp(e);
|
|
38313
38349
|
}
|
|
@@ -38319,11 +38355,8 @@ const MultiSelectCheckboxItem = forwardRef(({
|
|
|
38319
38355
|
return null;
|
|
38320
38356
|
}
|
|
38321
38357
|
const isChecked = selectedValues.includes(value);
|
|
38322
|
-
const onChange = () => {
|
|
38323
|
-
onSelect(value);
|
|
38324
|
-
};
|
|
38325
38358
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
38326
|
-
/* @__PURE__ */ jsxs(GenericMenuItem, { ...props, "data-value": value, onClick:
|
|
38359
|
+
/* @__PURE__ */ jsxs(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: [
|
|
38327
38360
|
icon && iconDir === "start" && /* @__PURE__ */ jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ? /* @__PURE__ */ jsxs("div", { style: {
|
|
38328
38361
|
display: "flex",
|
|
38329
38362
|
justifyContent: "center"
|
|
@@ -38336,9 +38369,9 @@ const MultiSelectCheckboxItem = forwardRef(({
|
|
|
38336
38369
|
}, children: [
|
|
38337
38370
|
/* @__PURE__ */ jsx(SvgImage, { name: icon, size: "sm" }),
|
|
38338
38371
|
children
|
|
38339
|
-
] }), onClick:
|
|
38340
|
-
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:
|
|
38341
|
-
!icon && /* @__PURE__ */ jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ?? children, onClick:
|
|
38372
|
+
] }), onClick: handleCheckboxClick, variant: variant ?? "default" }),
|
|
38373
|
+
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" }) }),
|
|
38374
|
+
!icon && /* @__PURE__ */ jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ?? children, onClick: handleCheckboxClick, variant: variant ?? "default" })
|
|
38342
38375
|
] }),
|
|
38343
38376
|
separator && /* @__PURE__ */ jsx(Separator, { size: "sm" })
|
|
38344
38377
|
] });
|
package/dist/click-ui.umd.js
CHANGED
|
@@ -90,6 +90,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
90
90
|
/* @__PURE__ */ jsxRuntime.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" }),
|
|
91
91
|
/* @__PURE__ */ jsxRuntime.jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "m13.75 10.25-6 6" })
|
|
92
92
|
] });
|
|
93
|
+
const Bold = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsxRuntime.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", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }) });
|
|
93
94
|
const Book = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...props, children: [
|
|
94
95
|
/* @__PURE__ */ jsxRuntime.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" }),
|
|
95
96
|
/* @__PURE__ */ jsxRuntime.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" })
|
|
@@ -457,6 +458,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
457
458
|
/* @__PURE__ */ jsxRuntime.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" }),
|
|
458
459
|
/* @__PURE__ */ jsxRuntime.jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "m9.93 6.028.521 2.954-2.954.52" })
|
|
459
460
|
] });
|
|
461
|
+
const Italic = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M14.1821 18H5.45508H9.43508L14.5651 6H18.5451H9.81808", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }) });
|
|
460
462
|
const Key = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
461
463
|
/* @__PURE__ */ jsxRuntime.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" }),
|
|
462
464
|
/* @__PURE__ */ jsxRuntime.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" })
|
|
@@ -501,6 +503,22 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
501
503
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M8 16L16 8", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
502
504
|
] });
|
|
503
505
|
};
|
|
506
|
+
const ListBulleted = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
507
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M8.99902 6.43673H20.0036", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
508
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M20.0036 12.0002H8.99902", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
509
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M8.99902 17.5632H20.0036", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
510
|
+
/* @__PURE__ */ jsxRuntime.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", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
511
|
+
/* @__PURE__ */ jsxRuntime.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", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
512
|
+
/* @__PURE__ */ jsxRuntime.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", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
|
513
|
+
] });
|
|
514
|
+
const ListNumbered = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
515
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M11 4H20", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
516
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M11.1504 9H20.0004", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
517
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6.5 9H4H5.25V4L4 5.25", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
518
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M11 15H20", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
519
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M11.1504 20H20.0004", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
520
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M4 15H6.5V17L4 18.5V20H6.75", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
|
521
|
+
] });
|
|
504
522
|
const Loading = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...props, children: [
|
|
505
523
|
/* @__PURE__ */ jsxRuntime.jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.25, d: "M7.625 8.875H4.5V5.75" }),
|
|
506
524
|
/* @__PURE__ */ jsxRuntime.jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M19.5 12A7.495 7.495 0 0 0 5.188 8.875" }),
|
|
@@ -719,6 +737,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
719
737
|
] }),
|
|
720
738
|
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "clip0_7969_2214", children: /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
721
739
|
] });
|
|
740
|
+
const Underline = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
741
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6 20H18", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
742
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M17 4V11C17 13.761 14.761 16 12 16C9.239 16 7 13.761 7 11V4", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
|
743
|
+
] });
|
|
722
744
|
const Upgrade = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
723
745
|
/* @__PURE__ */ jsxRuntime.jsx("mask", { id: "path-1-inside-1_10418_503", fill: "white", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M16.1664 17.8179H7.83984V18.8864H16.1664V17.8179Z" }) }),
|
|
724
746
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M7.83984 17.8179V16.5322H6.55413V17.8179H7.83984ZM16.1664 17.8179H17.4521V16.5322H16.1664V17.8179ZM16.1664 18.8864V20.1721H17.4521V18.8864H16.1664ZM7.83984 18.8864H6.55413V20.1721H7.83984V18.8864ZM7.83984 19.1036H16.1664V16.5322H7.83984V19.1036ZM14.8807 17.8179V18.8864H17.4521V17.8179H14.8807ZM16.1664 17.6007H7.83984V20.1721H16.1664V17.6007ZM9.12556 18.8864V17.8179H6.55413V18.8864H9.12556Z", fill: "white", mask: "url(#path-1-inside-1_10418_503)" }),
|
|
@@ -758,6 +780,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
758
780
|
bell: Bell,
|
|
759
781
|
beta: Beta,
|
|
760
782
|
blog: Blog,
|
|
783
|
+
bold: Bold,
|
|
761
784
|
book: Book,
|
|
762
785
|
brackets: Brackets,
|
|
763
786
|
briefcase: Briefcase,
|
|
@@ -832,6 +855,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
832
855
|
information: InformationIcon,
|
|
833
856
|
"insert-row": InsertRowIcon,
|
|
834
857
|
integrations: Integrations,
|
|
858
|
+
italic: Italic,
|
|
835
859
|
key: Key,
|
|
836
860
|
keys: Keys,
|
|
837
861
|
lifebuoy: Lifebuoy,
|
|
@@ -839,6 +863,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
839
863
|
"light-bulb-on": LightBulbOn,
|
|
840
864
|
lightening: Lightening,
|
|
841
865
|
"line-in-circle": LineInCircle,
|
|
866
|
+
"list-bulleted": ListBulleted,
|
|
867
|
+
"list-numbered": ListNumbered,
|
|
842
868
|
loading: LoadingFlipped,
|
|
843
869
|
"loading-animated": LoadingAnimated,
|
|
844
870
|
lock: Lock,
|
|
@@ -886,6 +912,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
886
912
|
taxi: Taxi,
|
|
887
913
|
trash: Trash,
|
|
888
914
|
"tree-structure": TreeStructure,
|
|
915
|
+
underline: Underline,
|
|
889
916
|
upgrade: Upgrade,
|
|
890
917
|
upload: Upload,
|
|
891
918
|
url: Url,
|
|
@@ -38314,15 +38341,24 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
|
|
|
38314
38341
|
selectedValues,
|
|
38315
38342
|
onSelect
|
|
38316
38343
|
} = useOption();
|
|
38317
|
-
const
|
|
38344
|
+
const handleSelect = (evt) => {
|
|
38318
38345
|
if (!disabled) {
|
|
38319
38346
|
onSelect(value, void 0, evt);
|
|
38320
|
-
if (typeof onSelectProp
|
|
38347
|
+
if (typeof onSelectProp === "function") {
|
|
38321
38348
|
onSelectProp(value, void 0, evt);
|
|
38322
38349
|
}
|
|
38323
38350
|
}
|
|
38324
38351
|
};
|
|
38325
|
-
const
|
|
38352
|
+
const handleMenuItemClick = (evt) => {
|
|
38353
|
+
if (evt.target !== evt.currentTarget) {
|
|
38354
|
+
return;
|
|
38355
|
+
}
|
|
38356
|
+
handleSelect(evt);
|
|
38357
|
+
};
|
|
38358
|
+
const handleCheckboxClick = (evt) => {
|
|
38359
|
+
handleSelect(evt);
|
|
38360
|
+
};
|
|
38361
|
+
const handleMenuItemMouseOver = (e) => {
|
|
38326
38362
|
if (onMouseOverProp) {
|
|
38327
38363
|
onMouseOverProp(e);
|
|
38328
38364
|
}
|
|
@@ -38334,11 +38370,8 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
|
|
|
38334
38370
|
return null;
|
|
38335
38371
|
}
|
|
38336
38372
|
const isChecked = selectedValues.includes(value);
|
|
38337
|
-
const onChange = () => {
|
|
38338
|
-
onSelect(value);
|
|
38339
|
-
};
|
|
38340
38373
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
38341
|
-
/* @__PURE__ */ jsxRuntime.jsxs(GenericMenuItem, { ...props, "data-value": value, onClick:
|
|
38374
|
+
/* @__PURE__ */ jsxRuntime.jsxs(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: [
|
|
38342
38375
|
icon && iconDir === "start" && /* @__PURE__ */ jsxRuntime.jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ? /* @__PURE__ */ jsxRuntime.jsxs("div", { style: {
|
|
38343
38376
|
display: "flex",
|
|
38344
38377
|
justifyContent: "center"
|
|
@@ -38351,9 +38384,9 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
|
|
|
38351
38384
|
}, children: [
|
|
38352
38385
|
/* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: icon, size: "sm" }),
|
|
38353
38386
|
children
|
|
38354
|
-
] }), onClick:
|
|
38355
|
-
icon && iconDir === "end" && /* @__PURE__ */ jsxRuntime.jsx(IconWrapper$3, { icon, iconDir: "end", children: /* @__PURE__ */ jsxRuntime.jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ?? children, onClick:
|
|
38356
|
-
!icon && /* @__PURE__ */ jsxRuntime.jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ?? children, onClick:
|
|
38387
|
+
] }), onClick: handleCheckboxClick, variant: variant ?? "default" }),
|
|
38388
|
+
icon && iconDir === "end" && /* @__PURE__ */ jsxRuntime.jsx(IconWrapper$3, { icon, iconDir: "end", children: /* @__PURE__ */ jsxRuntime.jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ?? children, onClick: handleCheckboxClick, variant: variant ?? "default" }) }),
|
|
38389
|
+
!icon && /* @__PURE__ */ jsxRuntime.jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ?? children, onClick: handleCheckboxClick, variant: variant ?? "default" })
|
|
38357
38390
|
] }),
|
|
38358
38391
|
separator && /* @__PURE__ */ jsxRuntime.jsx(Separator, { size: "sm" })
|
|
38359
38392
|
] });
|
|
@@ -14,6 +14,7 @@ export declare const ICONS_MAP: {
|
|
|
14
14
|
bell: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
beta: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
blog: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
bold: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
17
18
|
book: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
brackets: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
briefcase: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -88,6 +89,7 @@ export declare const ICONS_MAP: {
|
|
|
88
89
|
information: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
89
90
|
"insert-row": (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
90
91
|
integrations: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
92
|
+
italic: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
91
93
|
key: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
92
94
|
keys: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
93
95
|
lifebuoy: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -95,6 +97,8 @@ export declare const ICONS_MAP: {
|
|
|
95
97
|
"light-bulb-on": (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
96
98
|
lightening: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
97
99
|
"line-in-circle": (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
100
|
+
"list-bulleted": (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
101
|
+
"list-numbered": (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
98
102
|
loading: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').SVGAttributes<SVGElement>, never>> & string & Omit<(props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
|
|
99
103
|
"loading-animated": import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').SVGAttributes<SVGElement>, never>, never>> & string;
|
|
100
104
|
lock: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -142,6 +146,7 @@ export declare const ICONS_MAP: {
|
|
|
142
146
|
taxi: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
143
147
|
trash: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
144
148
|
"tree-structure": (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
149
|
+
underline: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
145
150
|
upgrade: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
146
151
|
upload: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
147
152
|
url: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,7 +6,7 @@ import { PaymentName, PaymentProps } from '../icons/Payments';
|
|
|
6
6
|
|
|
7
7
|
export type IconSize = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
8
8
|
export type IconState = "default" | "success" | "warning" | "danger" | "info";
|
|
9
|
-
export declare const ICON_NAMES: readonly ["activity", "alarm", "arrow-down", "arrow-left", "arrow-right", "arrow-triangle", "arrow-directions", "arrow-up", "auth-app", "auth-sms", "backups", "bar-chart", "bell", "beta", "blog", "book", "brackets", "briefcase", "building", "burger-menu", "calendar", "calendar-with-time", "cards", "cell-tower", "chat", "chart-area", "chart-bar-horizontal", "chart-donut", "chart-heatmap", "chart-scatter", "chart-stacked-horizontal", "chart-stacked-vertical", "check", "check-in-circle", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "circle", "clock", "cloud", "cloud-keys", "code", "code-in-square", "connect", "connect-alt", "console", "copy", "cpu", "cross", "credit-card", "data", "database", "disk", "display", "document", "dot", "dots-horizontal", "dots-triangle", "dots-vertical", "dots-vertical-double", "double-check", "download", "download-in-circle", "email", "empty", "enter", "eye", "eye-closed", "filter", "fire", "flag", "flask", "folder-closed", "folder-open", "gear", "gift", "git-merge", "globe", "hexagon", "history", "horizontal-loading", "home", "http", "http-monitoring", "info-in-circle", "information", "insert-row", "integrations", "key", "keys", "lifebuoy", "light-bulb", "light-bulb-on", "lightening", "line-in-circle", "loading", "loading-animated", "lock", "metrics", "metrics-alt", "minus", "mcp", "moon", "no-cloud", "pause", "payment", "pencil", "pie-chart", "pipe", "play", "play-in-circle", "plus", "popout", "puzzle-piece", "query", "question", "refresh", "rocket", "sandglass", "search", "secure", "server", "services", "settings", "share", "share-arrow", "share-network", "slide-in", "slide-out", "sort-alt", "sort", "sparkle", "speaker", "speed", "square", "star", "stop", "support", "table", "taxi", "trash", "tree-structure", "upgrade", "upload", "url", "user", "users", "warning", "waves"];
|
|
9
|
+
export declare const ICON_NAMES: readonly ["activity", "alarm", "arrow-down", "arrow-left", "arrow-right", "arrow-triangle", "arrow-directions", "arrow-up", "auth-app", "auth-sms", "backups", "bar-chart", "bell", "beta", "blog", "bold", "book", "brackets", "briefcase", "building", "burger-menu", "calendar", "calendar-with-time", "cards", "cell-tower", "chat", "chart-area", "chart-bar-horizontal", "chart-donut", "chart-heatmap", "chart-scatter", "chart-stacked-horizontal", "chart-stacked-vertical", "check", "check-in-circle", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "circle", "clock", "cloud", "cloud-keys", "code", "code-in-square", "connect", "connect-alt", "console", "copy", "cpu", "cross", "credit-card", "data", "database", "disk", "display", "document", "dot", "dots-horizontal", "dots-triangle", "dots-vertical", "dots-vertical-double", "double-check", "download", "download-in-circle", "email", "empty", "enter", "eye", "eye-closed", "filter", "fire", "flag", "flask", "folder-closed", "folder-open", "gear", "gift", "git-merge", "globe", "hexagon", "history", "horizontal-loading", "home", "http", "http-monitoring", "info-in-circle", "information", "insert-row", "integrations", "italic", "key", "keys", "lifebuoy", "light-bulb", "light-bulb-on", "lightening", "line-in-circle", "list-bulleted", "list-numbered", "loading", "loading-animated", "lock", "metrics", "metrics-alt", "minus", "mcp", "moon", "no-cloud", "pause", "payment", "pencil", "pie-chart", "pipe", "play", "play-in-circle", "plus", "popout", "puzzle-piece", "query", "question", "refresh", "rocket", "sandglass", "search", "secure", "server", "services", "settings", "share", "share-arrow", "share-network", "slide-in", "slide-out", "sort-alt", "sort", "sparkle", "speaker", "speed", "square", "star", "stop", "support", "table", "taxi", "trash", "tree-structure", "upgrade", "upload", "url", "user", "users", "underline", "warning", "waves"];
|
|
10
10
|
export type IconName = (typeof ICON_NAMES)[number];
|
|
11
11
|
export interface IconProps extends SVGAttributes<HTMLOrSVGElement> {
|
|
12
12
|
name: IconName;
|