@clickhouse/click-ui 0.0.207 → 0.0.209
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 +65 -19
- package/dist/click-ui.bundled.umd.js +65 -19
- package/dist/click-ui.es.js +65 -19
- package/dist/click-ui.umd.js +65 -19
- package/dist/components/ClickUIProvider/ClickUIProvider.d.ts +2 -2
- package/dist/components/Icon/IconCommon.d.ts +5 -0
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/Toast/Toast.d.ts +4 -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/dist/components/index.d.ts +1 -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,
|
|
@@ -15504,7 +15531,9 @@ const CodeBlock = ({
|
|
|
15504
15531
|
};
|
|
15505
15532
|
const ActionsWrapper = pt.div.withConfig({
|
|
15506
15533
|
componentId: "sc-6eozxy-0"
|
|
15507
|
-
})(["display:flex;justify-content:flex-end;gap:", ";"], (props) => props.theme.click.dialog.space.gap
|
|
15534
|
+
})(["display:flex;justify-content:flex-end;gap:", ";@media (max-width:", "){flex-direction:column;}"], (props) => props.theme.click.dialog.space.gap, ({
|
|
15535
|
+
theme: theme2
|
|
15536
|
+
}) => theme2.breakpoint.sizes.sm);
|
|
15508
15537
|
const DialogContent$1 = pt.div.withConfig({
|
|
15509
15538
|
componentId: "sc-6eozxy-1"
|
|
15510
15539
|
})(["overflow:hidden;display:flex;flex-direction:column;"]);
|
|
@@ -17669,19 +17698,19 @@ const DialogOverlay = pt($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff).withConfig({
|
|
|
17669
17698
|
}) => theme2.click.dialog.color.opaqueBackground.default, overlayShow);
|
|
17670
17699
|
const ContentArea = pt($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2).withConfig({
|
|
17671
17700
|
componentId: "sc-1wr6otn-2"
|
|
17672
|
-
})(["background:", ";border-radius:", ";padding:", "
|
|
17701
|
+
})(["background:", ";border-radius:", ";padding:", ";box-shadow:", ";border:1px solid ", ";width:75%;max-width:670px;position:fixed;top:50%;left:50%;max-height:75%;overflow:auto;transform:translate(-50%,-50%);animation:", " 150ms cubic-bezier(0.16,1,0.3,1);outline:none;@media (max-width:", "){max-height:100%;border-radius:0;width:100%;}"], ({
|
|
17673
17702
|
theme: theme2
|
|
17674
17703
|
}) => theme2.click.dialog.color.background.default, ({
|
|
17675
17704
|
theme: theme2
|
|
17676
17705
|
}) => theme2.click.dialog.radii.all, ({
|
|
17677
17706
|
theme: theme2
|
|
17678
|
-
}) => theme2.click.dialog.space.y
|
|
17679
|
-
theme: theme2
|
|
17680
|
-
}) => theme2.click.dialog.space.x, ({
|
|
17707
|
+
}) => `${theme2.click.dialog.space.y} ${theme2.click.dialog.space.x}`, ({
|
|
17681
17708
|
theme: theme2
|
|
17682
17709
|
}) => theme2.click.dialog.shadow.default, ({
|
|
17683
17710
|
theme: theme2
|
|
17684
|
-
}) => theme2.click.global.color.stroke.default, contentShow
|
|
17711
|
+
}) => theme2.click.global.color.stroke.default, contentShow, ({
|
|
17712
|
+
theme: theme2
|
|
17713
|
+
}) => theme2.breakpoint.sizes.sm);
|
|
17685
17714
|
const TitleArea = pt.div.withConfig({
|
|
17686
17715
|
componentId: "sc-1wr6otn-3"
|
|
17687
17716
|
})(["display:flex;justify-content:space-between;align-items:center;min-height:", ";"], ({
|
|
@@ -39467,15 +39496,24 @@ const MultiSelectCheckboxItem = forwardRef(({
|
|
|
39467
39496
|
selectedValues,
|
|
39468
39497
|
onSelect
|
|
39469
39498
|
} = useOption();
|
|
39470
|
-
const
|
|
39499
|
+
const handleSelect = (evt) => {
|
|
39471
39500
|
if (!disabled) {
|
|
39472
39501
|
onSelect(value, void 0, evt);
|
|
39473
|
-
if (typeof onSelectProp
|
|
39502
|
+
if (typeof onSelectProp === "function") {
|
|
39474
39503
|
onSelectProp(value, void 0, evt);
|
|
39475
39504
|
}
|
|
39476
39505
|
}
|
|
39477
39506
|
};
|
|
39478
|
-
const
|
|
39507
|
+
const handleMenuItemClick = (evt) => {
|
|
39508
|
+
if (evt.target !== evt.currentTarget) {
|
|
39509
|
+
return;
|
|
39510
|
+
}
|
|
39511
|
+
handleSelect(evt);
|
|
39512
|
+
};
|
|
39513
|
+
const handleCheckboxClick = (evt) => {
|
|
39514
|
+
handleSelect(evt);
|
|
39515
|
+
};
|
|
39516
|
+
const handleMenuItemMouseOver = (e) => {
|
|
39479
39517
|
if (onMouseOverProp) {
|
|
39480
39518
|
onMouseOverProp(e);
|
|
39481
39519
|
}
|
|
@@ -39487,11 +39525,8 @@ const MultiSelectCheckboxItem = forwardRef(({
|
|
|
39487
39525
|
return null;
|
|
39488
39526
|
}
|
|
39489
39527
|
const isChecked = selectedValues.includes(value);
|
|
39490
|
-
const onChange = () => {
|
|
39491
|
-
onSelect(value);
|
|
39492
|
-
};
|
|
39493
39528
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
39494
|
-
/* @__PURE__ */ jsxs(GenericMenuItem, { ...props, "data-value": value, onClick:
|
|
39529
|
+
/* @__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
39530
|
icon && iconDir === "start" && /* @__PURE__ */ jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ? /* @__PURE__ */ jsxs("div", { style: {
|
|
39496
39531
|
display: "flex",
|
|
39497
39532
|
justifyContent: "center"
|
|
@@ -39504,9 +39539,9 @@ const MultiSelectCheckboxItem = forwardRef(({
|
|
|
39504
39539
|
}, children: [
|
|
39505
39540
|
/* @__PURE__ */ jsx(SvgImage, { name: icon, size: "sm" }),
|
|
39506
39541
|
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:
|
|
39542
|
+
] }), onClick: handleCheckboxClick, variant: variant ?? "default" }),
|
|
39543
|
+
icon && iconDir === "end" && /* @__PURE__ */ jsx(IconWrapper$3, { icon, iconDir: "end", children: /* @__PURE__ */ jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ?? children, onClick: handleCheckboxClick, variant: variant ?? "default" }) }),
|
|
39544
|
+
!icon && /* @__PURE__ */ jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ?? children, onClick: handleCheckboxClick, variant: variant ?? "default" })
|
|
39510
39545
|
] }),
|
|
39511
39546
|
separator && /* @__PURE__ */ jsx(Separator, { size: "sm" })
|
|
39512
39547
|
] });
|
|
@@ -42432,13 +42467,23 @@ const Toast = ({
|
|
|
42432
42467
|
};
|
|
42433
42468
|
const Viewport = pt($054eb8030ebde76e$export$d5c6c08dc2d3ca7).withConfig({
|
|
42434
42469
|
componentId: "sc-tmc8vl-6"
|
|
42435
|
-
})(["--viewport-padding:25px;position:fixed;bottom:0;
|
|
42470
|
+
})(["--viewport-padding:25px;position:fixed;bottom:0;", ";display:flex;flex-direction:column;padding:var(--viewport-padding);gap:", ";width:", ";max-width:100vw;margin:0;list-style:none;z-index:2147483647;outline:none;"], ({
|
|
42471
|
+
$align
|
|
42472
|
+
}) => {
|
|
42473
|
+
if ($align === "start") {
|
|
42474
|
+
return "left: 0";
|
|
42475
|
+
}
|
|
42476
|
+
return `
|
|
42477
|
+
right: 0;
|
|
42478
|
+
`;
|
|
42479
|
+
}, ({
|
|
42436
42480
|
theme: theme2
|
|
42437
42481
|
}) => theme2.click.toast.space.gap, ({
|
|
42438
42482
|
theme: theme2
|
|
42439
42483
|
}) => theme2.click.toast.size.width);
|
|
42440
42484
|
const ToastProvider = ({
|
|
42441
42485
|
children,
|
|
42486
|
+
align = "end",
|
|
42442
42487
|
...props
|
|
42443
42488
|
}) => {
|
|
42444
42489
|
const [toasts, setToasts] = useState(/* @__PURE__ */ new Map());
|
|
@@ -42471,12 +42516,12 @@ const ToastProvider = ({
|
|
|
42471
42516
|
});
|
|
42472
42517
|
}
|
|
42473
42518
|
};
|
|
42474
|
-
return /* @__PURE__ */ jsxs($054eb8030ebde76e$export$2881499e37b75b9a, { swipeDirection: "right", ...props, children: [
|
|
42519
|
+
return /* @__PURE__ */ jsxs($054eb8030ebde76e$export$2881499e37b75b9a, { swipeDirection: align === "start" ? "left" : "right", ...props, children: [
|
|
42475
42520
|
/* @__PURE__ */ jsxs(ToastContext.Provider, { value, children: [
|
|
42476
42521
|
children,
|
|
42477
42522
|
Array.from(toasts).map(([id, toast]) => /* @__PURE__ */ jsx(Toast, { ...toast, onClose: onClose(id) }, id))
|
|
42478
42523
|
] }),
|
|
42479
|
-
/* @__PURE__ */ jsx(Viewport, {})
|
|
42524
|
+
/* @__PURE__ */ jsx(Viewport, { $align: align })
|
|
42480
42525
|
] });
|
|
42481
42526
|
};
|
|
42482
42527
|
function listCacheClear$1() {
|
|
@@ -52010,6 +52055,7 @@ export {
|
|
|
52010
52055
|
TextAreaField,
|
|
52011
52056
|
TextField,
|
|
52012
52057
|
Title$2 as Title,
|
|
52058
|
+
ToastProvider,
|
|
52013
52059
|
Tooltip,
|
|
52014
52060
|
VerticalStepper,
|
|
52015
52061
|
WarningAlert,
|
|
@@ -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,
|
|
@@ -15520,7 +15547,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
15520
15547
|
};
|
|
15521
15548
|
const ActionsWrapper = pt.div.withConfig({
|
|
15522
15549
|
componentId: "sc-6eozxy-0"
|
|
15523
|
-
})(["display:flex;justify-content:flex-end;gap:", ";"], (props) => props.theme.click.dialog.space.gap
|
|
15550
|
+
})(["display:flex;justify-content:flex-end;gap:", ";@media (max-width:", "){flex-direction:column;}"], (props) => props.theme.click.dialog.space.gap, ({
|
|
15551
|
+
theme: theme2
|
|
15552
|
+
}) => theme2.breakpoint.sizes.sm);
|
|
15524
15553
|
const DialogContent$1 = pt.div.withConfig({
|
|
15525
15554
|
componentId: "sc-6eozxy-1"
|
|
15526
15555
|
})(["overflow:hidden;display:flex;flex-direction:column;"]);
|
|
@@ -17685,19 +17714,19 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
17685
17714
|
}) => theme2.click.dialog.color.opaqueBackground.default, overlayShow);
|
|
17686
17715
|
const ContentArea = pt($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2).withConfig({
|
|
17687
17716
|
componentId: "sc-1wr6otn-2"
|
|
17688
|
-
})(["background:", ";border-radius:", ";padding:", "
|
|
17717
|
+
})(["background:", ";border-radius:", ";padding:", ";box-shadow:", ";border:1px solid ", ";width:75%;max-width:670px;position:fixed;top:50%;left:50%;max-height:75%;overflow:auto;transform:translate(-50%,-50%);animation:", " 150ms cubic-bezier(0.16,1,0.3,1);outline:none;@media (max-width:", "){max-height:100%;border-radius:0;width:100%;}"], ({
|
|
17689
17718
|
theme: theme2
|
|
17690
17719
|
}) => theme2.click.dialog.color.background.default, ({
|
|
17691
17720
|
theme: theme2
|
|
17692
17721
|
}) => theme2.click.dialog.radii.all, ({
|
|
17693
17722
|
theme: theme2
|
|
17694
|
-
}) => theme2.click.dialog.space.y
|
|
17695
|
-
theme: theme2
|
|
17696
|
-
}) => theme2.click.dialog.space.x, ({
|
|
17723
|
+
}) => `${theme2.click.dialog.space.y} ${theme2.click.dialog.space.x}`, ({
|
|
17697
17724
|
theme: theme2
|
|
17698
17725
|
}) => theme2.click.dialog.shadow.default, ({
|
|
17699
17726
|
theme: theme2
|
|
17700
|
-
}) => theme2.click.global.color.stroke.default, contentShow
|
|
17727
|
+
}) => theme2.click.global.color.stroke.default, contentShow, ({
|
|
17728
|
+
theme: theme2
|
|
17729
|
+
}) => theme2.breakpoint.sizes.sm);
|
|
17701
17730
|
const TitleArea = pt.div.withConfig({
|
|
17702
17731
|
componentId: "sc-1wr6otn-3"
|
|
17703
17732
|
})(["display:flex;justify-content:space-between;align-items:center;min-height:", ";"], ({
|
|
@@ -39483,15 +39512,24 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
|
|
|
39483
39512
|
selectedValues,
|
|
39484
39513
|
onSelect
|
|
39485
39514
|
} = useOption();
|
|
39486
|
-
const
|
|
39515
|
+
const handleSelect = (evt) => {
|
|
39487
39516
|
if (!disabled) {
|
|
39488
39517
|
onSelect(value, void 0, evt);
|
|
39489
|
-
if (typeof onSelectProp
|
|
39518
|
+
if (typeof onSelectProp === "function") {
|
|
39490
39519
|
onSelectProp(value, void 0, evt);
|
|
39491
39520
|
}
|
|
39492
39521
|
}
|
|
39493
39522
|
};
|
|
39494
|
-
const
|
|
39523
|
+
const handleMenuItemClick = (evt) => {
|
|
39524
|
+
if (evt.target !== evt.currentTarget) {
|
|
39525
|
+
return;
|
|
39526
|
+
}
|
|
39527
|
+
handleSelect(evt);
|
|
39528
|
+
};
|
|
39529
|
+
const handleCheckboxClick = (evt) => {
|
|
39530
|
+
handleSelect(evt);
|
|
39531
|
+
};
|
|
39532
|
+
const handleMenuItemMouseOver = (e) => {
|
|
39495
39533
|
if (onMouseOverProp) {
|
|
39496
39534
|
onMouseOverProp(e);
|
|
39497
39535
|
}
|
|
@@ -39503,11 +39541,8 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
|
|
|
39503
39541
|
return null;
|
|
39504
39542
|
}
|
|
39505
39543
|
const isChecked = selectedValues.includes(value);
|
|
39506
|
-
const onChange = () => {
|
|
39507
|
-
onSelect(value);
|
|
39508
|
-
};
|
|
39509
39544
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
39510
|
-
/* @__PURE__ */ jsxRuntime.jsxs(GenericMenuItem, { ...props, "data-value": value, onClick:
|
|
39545
|
+
/* @__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
39546
|
icon && iconDir === "start" && /* @__PURE__ */ jsxRuntime.jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ? /* @__PURE__ */ jsxRuntime.jsxs("div", { style: {
|
|
39512
39547
|
display: "flex",
|
|
39513
39548
|
justifyContent: "center"
|
|
@@ -39520,9 +39555,9 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
|
|
|
39520
39555
|
}, children: [
|
|
39521
39556
|
/* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: icon, size: "sm" }),
|
|
39522
39557
|
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:
|
|
39558
|
+
] }), onClick: handleCheckboxClick, variant: variant ?? "default" }),
|
|
39559
|
+
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" }) }),
|
|
39560
|
+
!icon && /* @__PURE__ */ jsxRuntime.jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ?? children, onClick: handleCheckboxClick, variant: variant ?? "default" })
|
|
39526
39561
|
] }),
|
|
39527
39562
|
separator && /* @__PURE__ */ jsxRuntime.jsx(Separator, { size: "sm" })
|
|
39528
39563
|
] });
|
|
@@ -42448,13 +42483,23 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
42448
42483
|
};
|
|
42449
42484
|
const Viewport = pt($054eb8030ebde76e$export$d5c6c08dc2d3ca7).withConfig({
|
|
42450
42485
|
componentId: "sc-tmc8vl-6"
|
|
42451
|
-
})(["--viewport-padding:25px;position:fixed;bottom:0;
|
|
42486
|
+
})(["--viewport-padding:25px;position:fixed;bottom:0;", ";display:flex;flex-direction:column;padding:var(--viewport-padding);gap:", ";width:", ";max-width:100vw;margin:0;list-style:none;z-index:2147483647;outline:none;"], ({
|
|
42487
|
+
$align
|
|
42488
|
+
}) => {
|
|
42489
|
+
if ($align === "start") {
|
|
42490
|
+
return "left: 0";
|
|
42491
|
+
}
|
|
42492
|
+
return `
|
|
42493
|
+
right: 0;
|
|
42494
|
+
`;
|
|
42495
|
+
}, ({
|
|
42452
42496
|
theme: theme2
|
|
42453
42497
|
}) => theme2.click.toast.space.gap, ({
|
|
42454
42498
|
theme: theme2
|
|
42455
42499
|
}) => theme2.click.toast.size.width);
|
|
42456
42500
|
const ToastProvider = ({
|
|
42457
42501
|
children,
|
|
42502
|
+
align = "end",
|
|
42458
42503
|
...props
|
|
42459
42504
|
}) => {
|
|
42460
42505
|
const [toasts, setToasts] = React.useState(/* @__PURE__ */ new Map());
|
|
@@ -42487,12 +42532,12 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
42487
42532
|
});
|
|
42488
42533
|
}
|
|
42489
42534
|
};
|
|
42490
|
-
return /* @__PURE__ */ jsxRuntime.jsxs($054eb8030ebde76e$export$2881499e37b75b9a, { swipeDirection: "right", ...props, children: [
|
|
42535
|
+
return /* @__PURE__ */ jsxRuntime.jsxs($054eb8030ebde76e$export$2881499e37b75b9a, { swipeDirection: align === "start" ? "left" : "right", ...props, children: [
|
|
42491
42536
|
/* @__PURE__ */ jsxRuntime.jsxs(ToastContext.Provider, { value, children: [
|
|
42492
42537
|
children,
|
|
42493
42538
|
Array.from(toasts).map(([id, toast]) => /* @__PURE__ */ jsxRuntime.jsx(Toast, { ...toast, onClose: onClose(id) }, id))
|
|
42494
42539
|
] }),
|
|
42495
|
-
/* @__PURE__ */ jsxRuntime.jsx(Viewport, {})
|
|
42540
|
+
/* @__PURE__ */ jsxRuntime.jsx(Viewport, { $align: align })
|
|
42496
42541
|
] });
|
|
42497
42542
|
};
|
|
42498
42543
|
function listCacheClear$1() {
|
|
@@ -52025,6 +52070,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
52025
52070
|
exports2.TextAreaField = TextAreaField;
|
|
52026
52071
|
exports2.TextField = TextField;
|
|
52027
52072
|
exports2.Title = Title$2;
|
|
52073
|
+
exports2.ToastProvider = ToastProvider;
|
|
52028
52074
|
exports2.Tooltip = Tooltip;
|
|
52029
52075
|
exports2.VerticalStepper = VerticalStepper;
|
|
52030
52076
|
exports2.WarningAlert = WarningAlert;
|
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,
|
|
@@ -14336,7 +14363,9 @@ const CodeBlock = ({
|
|
|
14336
14363
|
};
|
|
14337
14364
|
const ActionsWrapper = styled.div.withConfig({
|
|
14338
14365
|
componentId: "sc-6eozxy-0"
|
|
14339
|
-
})(["display:flex;justify-content:flex-end;gap:", ";"], (props) => props.theme.click.dialog.space.gap
|
|
14366
|
+
})(["display:flex;justify-content:flex-end;gap:", ";@media (max-width:", "){flex-direction:column;}"], (props) => props.theme.click.dialog.space.gap, ({
|
|
14367
|
+
theme: theme2
|
|
14368
|
+
}) => theme2.breakpoint.sizes.sm);
|
|
14340
14369
|
const DialogContent$1 = styled.div.withConfig({
|
|
14341
14370
|
componentId: "sc-6eozxy-1"
|
|
14342
14371
|
})(["overflow:hidden;display:flex;flex-direction:column;"]);
|
|
@@ -16501,19 +16530,19 @@ const DialogOverlay = styled($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff).withConf
|
|
|
16501
16530
|
}) => theme2.click.dialog.color.opaqueBackground.default, overlayShow);
|
|
16502
16531
|
const ContentArea = styled($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2).withConfig({
|
|
16503
16532
|
componentId: "sc-1wr6otn-2"
|
|
16504
|
-
})(["background:", ";border-radius:", ";padding:", "
|
|
16533
|
+
})(["background:", ";border-radius:", ";padding:", ";box-shadow:", ";border:1px solid ", ";width:75%;max-width:670px;position:fixed;top:50%;left:50%;max-height:75%;overflow:auto;transform:translate(-50%,-50%);animation:", " 150ms cubic-bezier(0.16,1,0.3,1);outline:none;@media (max-width:", "){max-height:100%;border-radius:0;width:100%;}"], ({
|
|
16505
16534
|
theme: theme2
|
|
16506
16535
|
}) => theme2.click.dialog.color.background.default, ({
|
|
16507
16536
|
theme: theme2
|
|
16508
16537
|
}) => theme2.click.dialog.radii.all, ({
|
|
16509
16538
|
theme: theme2
|
|
16510
|
-
}) => theme2.click.dialog.space.y
|
|
16511
|
-
theme: theme2
|
|
16512
|
-
}) => theme2.click.dialog.space.x, ({
|
|
16539
|
+
}) => `${theme2.click.dialog.space.y} ${theme2.click.dialog.space.x}`, ({
|
|
16513
16540
|
theme: theme2
|
|
16514
16541
|
}) => theme2.click.dialog.shadow.default, ({
|
|
16515
16542
|
theme: theme2
|
|
16516
|
-
}) => theme2.click.global.color.stroke.default, contentShow
|
|
16543
|
+
}) => theme2.click.global.color.stroke.default, contentShow, ({
|
|
16544
|
+
theme: theme2
|
|
16545
|
+
}) => theme2.breakpoint.sizes.sm);
|
|
16517
16546
|
const TitleArea = styled.div.withConfig({
|
|
16518
16547
|
componentId: "sc-1wr6otn-3"
|
|
16519
16548
|
})(["display:flex;justify-content:space-between;align-items:center;min-height:", ";"], ({
|
|
@@ -38299,15 +38328,24 @@ const MultiSelectCheckboxItem = forwardRef(({
|
|
|
38299
38328
|
selectedValues,
|
|
38300
38329
|
onSelect
|
|
38301
38330
|
} = useOption();
|
|
38302
|
-
const
|
|
38331
|
+
const handleSelect = (evt) => {
|
|
38303
38332
|
if (!disabled) {
|
|
38304
38333
|
onSelect(value, void 0, evt);
|
|
38305
|
-
if (typeof onSelectProp
|
|
38334
|
+
if (typeof onSelectProp === "function") {
|
|
38306
38335
|
onSelectProp(value, void 0, evt);
|
|
38307
38336
|
}
|
|
38308
38337
|
}
|
|
38309
38338
|
};
|
|
38310
|
-
const
|
|
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
|
+
const handleMenuItemMouseOver = (e) => {
|
|
38311
38349
|
if (onMouseOverProp) {
|
|
38312
38350
|
onMouseOverProp(e);
|
|
38313
38351
|
}
|
|
@@ -38319,11 +38357,8 @@ const MultiSelectCheckboxItem = forwardRef(({
|
|
|
38319
38357
|
return null;
|
|
38320
38358
|
}
|
|
38321
38359
|
const isChecked = selectedValues.includes(value);
|
|
38322
|
-
const onChange = () => {
|
|
38323
|
-
onSelect(value);
|
|
38324
|
-
};
|
|
38325
38360
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
38326
|
-
/* @__PURE__ */ jsxs(GenericMenuItem, { ...props, "data-value": value, onClick:
|
|
38361
|
+
/* @__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
38362
|
icon && iconDir === "start" && /* @__PURE__ */ jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ? /* @__PURE__ */ jsxs("div", { style: {
|
|
38328
38363
|
display: "flex",
|
|
38329
38364
|
justifyContent: "center"
|
|
@@ -38336,9 +38371,9 @@ const MultiSelectCheckboxItem = forwardRef(({
|
|
|
38336
38371
|
}, children: [
|
|
38337
38372
|
/* @__PURE__ */ jsx(SvgImage, { name: icon, size: "sm" }),
|
|
38338
38373
|
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:
|
|
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" })
|
|
38342
38377
|
] }),
|
|
38343
38378
|
separator && /* @__PURE__ */ jsx(Separator, { size: "sm" })
|
|
38344
38379
|
] });
|
|
@@ -41264,13 +41299,23 @@ const Toast = ({
|
|
|
41264
41299
|
};
|
|
41265
41300
|
const Viewport = styled($054eb8030ebde76e$export$d5c6c08dc2d3ca7).withConfig({
|
|
41266
41301
|
componentId: "sc-tmc8vl-6"
|
|
41267
|
-
})(["--viewport-padding:25px;position:fixed;bottom:0;
|
|
41302
|
+
})(["--viewport-padding:25px;position:fixed;bottom:0;", ";display:flex;flex-direction:column;padding:var(--viewport-padding);gap:", ";width:", ";max-width:100vw;margin:0;list-style:none;z-index:2147483647;outline:none;"], ({
|
|
41303
|
+
$align
|
|
41304
|
+
}) => {
|
|
41305
|
+
if ($align === "start") {
|
|
41306
|
+
return "left: 0";
|
|
41307
|
+
}
|
|
41308
|
+
return `
|
|
41309
|
+
right: 0;
|
|
41310
|
+
`;
|
|
41311
|
+
}, ({
|
|
41268
41312
|
theme: theme2
|
|
41269
41313
|
}) => theme2.click.toast.space.gap, ({
|
|
41270
41314
|
theme: theme2
|
|
41271
41315
|
}) => theme2.click.toast.size.width);
|
|
41272
41316
|
const ToastProvider = ({
|
|
41273
41317
|
children,
|
|
41318
|
+
align = "end",
|
|
41274
41319
|
...props
|
|
41275
41320
|
}) => {
|
|
41276
41321
|
const [toasts, setToasts] = useState(/* @__PURE__ */ new Map());
|
|
@@ -41303,12 +41348,12 @@ const ToastProvider = ({
|
|
|
41303
41348
|
});
|
|
41304
41349
|
}
|
|
41305
41350
|
};
|
|
41306
|
-
return /* @__PURE__ */ jsxs($054eb8030ebde76e$export$2881499e37b75b9a, { swipeDirection: "right", ...props, children: [
|
|
41351
|
+
return /* @__PURE__ */ jsxs($054eb8030ebde76e$export$2881499e37b75b9a, { swipeDirection: align === "start" ? "left" : "right", ...props, children: [
|
|
41307
41352
|
/* @__PURE__ */ jsxs(ToastContext.Provider, { value, children: [
|
|
41308
41353
|
children,
|
|
41309
41354
|
Array.from(toasts).map(([id, toast]) => /* @__PURE__ */ jsx(Toast, { ...toast, onClose: onClose(id) }, id))
|
|
41310
41355
|
] }),
|
|
41311
|
-
/* @__PURE__ */ jsx(Viewport, {})
|
|
41356
|
+
/* @__PURE__ */ jsx(Viewport, { $align: align })
|
|
41312
41357
|
] });
|
|
41313
41358
|
};
|
|
41314
41359
|
function listCacheClear$1() {
|
|
@@ -50842,6 +50887,7 @@ export {
|
|
|
50842
50887
|
TextAreaField,
|
|
50843
50888
|
TextField,
|
|
50844
50889
|
Title$2 as Title,
|
|
50890
|
+
ToastProvider,
|
|
50845
50891
|
Tooltip,
|
|
50846
50892
|
VerticalStepper,
|
|
50847
50893
|
WarningAlert,
|
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,
|
|
@@ -14351,7 +14378,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
14351
14378
|
};
|
|
14352
14379
|
const ActionsWrapper = styled.styled.div.withConfig({
|
|
14353
14380
|
componentId: "sc-6eozxy-0"
|
|
14354
|
-
})(["display:flex;justify-content:flex-end;gap:", ";"], (props) => props.theme.click.dialog.space.gap
|
|
14381
|
+
})(["display:flex;justify-content:flex-end;gap:", ";@media (max-width:", "){flex-direction:column;}"], (props) => props.theme.click.dialog.space.gap, ({
|
|
14382
|
+
theme: theme2
|
|
14383
|
+
}) => theme2.breakpoint.sizes.sm);
|
|
14355
14384
|
const DialogContent$1 = styled.styled.div.withConfig({
|
|
14356
14385
|
componentId: "sc-6eozxy-1"
|
|
14357
14386
|
})(["overflow:hidden;display:flex;flex-direction:column;"]);
|
|
@@ -16516,19 +16545,19 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
16516
16545
|
}) => theme2.click.dialog.color.opaqueBackground.default, overlayShow);
|
|
16517
16546
|
const ContentArea = styled.styled($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2).withConfig({
|
|
16518
16547
|
componentId: "sc-1wr6otn-2"
|
|
16519
|
-
})(["background:", ";border-radius:", ";padding:", "
|
|
16548
|
+
})(["background:", ";border-radius:", ";padding:", ";box-shadow:", ";border:1px solid ", ";width:75%;max-width:670px;position:fixed;top:50%;left:50%;max-height:75%;overflow:auto;transform:translate(-50%,-50%);animation:", " 150ms cubic-bezier(0.16,1,0.3,1);outline:none;@media (max-width:", "){max-height:100%;border-radius:0;width:100%;}"], ({
|
|
16520
16549
|
theme: theme2
|
|
16521
16550
|
}) => theme2.click.dialog.color.background.default, ({
|
|
16522
16551
|
theme: theme2
|
|
16523
16552
|
}) => theme2.click.dialog.radii.all, ({
|
|
16524
16553
|
theme: theme2
|
|
16525
|
-
}) => theme2.click.dialog.space.y
|
|
16526
|
-
theme: theme2
|
|
16527
|
-
}) => theme2.click.dialog.space.x, ({
|
|
16554
|
+
}) => `${theme2.click.dialog.space.y} ${theme2.click.dialog.space.x}`, ({
|
|
16528
16555
|
theme: theme2
|
|
16529
16556
|
}) => theme2.click.dialog.shadow.default, ({
|
|
16530
16557
|
theme: theme2
|
|
16531
|
-
}) => theme2.click.global.color.stroke.default, contentShow
|
|
16558
|
+
}) => theme2.click.global.color.stroke.default, contentShow, ({
|
|
16559
|
+
theme: theme2
|
|
16560
|
+
}) => theme2.breakpoint.sizes.sm);
|
|
16532
16561
|
const TitleArea = styled.styled.div.withConfig({
|
|
16533
16562
|
componentId: "sc-1wr6otn-3"
|
|
16534
16563
|
})(["display:flex;justify-content:space-between;align-items:center;min-height:", ";"], ({
|
|
@@ -38314,15 +38343,24 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
|
|
|
38314
38343
|
selectedValues,
|
|
38315
38344
|
onSelect
|
|
38316
38345
|
} = useOption();
|
|
38317
|
-
const
|
|
38346
|
+
const handleSelect = (evt) => {
|
|
38318
38347
|
if (!disabled) {
|
|
38319
38348
|
onSelect(value, void 0, evt);
|
|
38320
|
-
if (typeof onSelectProp
|
|
38349
|
+
if (typeof onSelectProp === "function") {
|
|
38321
38350
|
onSelectProp(value, void 0, evt);
|
|
38322
38351
|
}
|
|
38323
38352
|
}
|
|
38324
38353
|
};
|
|
38325
|
-
const
|
|
38354
|
+
const handleMenuItemClick = (evt) => {
|
|
38355
|
+
if (evt.target !== evt.currentTarget) {
|
|
38356
|
+
return;
|
|
38357
|
+
}
|
|
38358
|
+
handleSelect(evt);
|
|
38359
|
+
};
|
|
38360
|
+
const handleCheckboxClick = (evt) => {
|
|
38361
|
+
handleSelect(evt);
|
|
38362
|
+
};
|
|
38363
|
+
const handleMenuItemMouseOver = (e) => {
|
|
38326
38364
|
if (onMouseOverProp) {
|
|
38327
38365
|
onMouseOverProp(e);
|
|
38328
38366
|
}
|
|
@@ -38334,11 +38372,8 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
|
|
|
38334
38372
|
return null;
|
|
38335
38373
|
}
|
|
38336
38374
|
const isChecked = selectedValues.includes(value);
|
|
38337
|
-
const onChange = () => {
|
|
38338
|
-
onSelect(value);
|
|
38339
|
-
};
|
|
38340
38375
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
38341
|
-
/* @__PURE__ */ jsxRuntime.jsxs(GenericMenuItem, { ...props, "data-value": value, onClick:
|
|
38376
|
+
/* @__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
38377
|
icon && iconDir === "start" && /* @__PURE__ */ jsxRuntime.jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ? /* @__PURE__ */ jsxRuntime.jsxs("div", { style: {
|
|
38343
38378
|
display: "flex",
|
|
38344
38379
|
justifyContent: "center"
|
|
@@ -38351,9 +38386,9 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
|
|
|
38351
38386
|
}, children: [
|
|
38352
38387
|
/* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: icon, size: "sm" }),
|
|
38353
38388
|
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:
|
|
38389
|
+
] }), onClick: handleCheckboxClick, variant: variant ?? "default" }),
|
|
38390
|
+
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" }) }),
|
|
38391
|
+
!icon && /* @__PURE__ */ jsxRuntime.jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ?? children, onClick: handleCheckboxClick, variant: variant ?? "default" })
|
|
38357
38392
|
] }),
|
|
38358
38393
|
separator && /* @__PURE__ */ jsxRuntime.jsx(Separator, { size: "sm" })
|
|
38359
38394
|
] });
|
|
@@ -41279,13 +41314,23 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
41279
41314
|
};
|
|
41280
41315
|
const Viewport = styled.styled($054eb8030ebde76e$export$d5c6c08dc2d3ca7).withConfig({
|
|
41281
41316
|
componentId: "sc-tmc8vl-6"
|
|
41282
|
-
})(["--viewport-padding:25px;position:fixed;bottom:0;
|
|
41317
|
+
})(["--viewport-padding:25px;position:fixed;bottom:0;", ";display:flex;flex-direction:column;padding:var(--viewport-padding);gap:", ";width:", ";max-width:100vw;margin:0;list-style:none;z-index:2147483647;outline:none;"], ({
|
|
41318
|
+
$align
|
|
41319
|
+
}) => {
|
|
41320
|
+
if ($align === "start") {
|
|
41321
|
+
return "left: 0";
|
|
41322
|
+
}
|
|
41323
|
+
return `
|
|
41324
|
+
right: 0;
|
|
41325
|
+
`;
|
|
41326
|
+
}, ({
|
|
41283
41327
|
theme: theme2
|
|
41284
41328
|
}) => theme2.click.toast.space.gap, ({
|
|
41285
41329
|
theme: theme2
|
|
41286
41330
|
}) => theme2.click.toast.size.width);
|
|
41287
41331
|
const ToastProvider = ({
|
|
41288
41332
|
children,
|
|
41333
|
+
align = "end",
|
|
41289
41334
|
...props
|
|
41290
41335
|
}) => {
|
|
41291
41336
|
const [toasts, setToasts] = React.useState(/* @__PURE__ */ new Map());
|
|
@@ -41318,12 +41363,12 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
41318
41363
|
});
|
|
41319
41364
|
}
|
|
41320
41365
|
};
|
|
41321
|
-
return /* @__PURE__ */ jsxRuntime.jsxs($054eb8030ebde76e$export$2881499e37b75b9a, { swipeDirection: "right", ...props, children: [
|
|
41366
|
+
return /* @__PURE__ */ jsxRuntime.jsxs($054eb8030ebde76e$export$2881499e37b75b9a, { swipeDirection: align === "start" ? "left" : "right", ...props, children: [
|
|
41322
41367
|
/* @__PURE__ */ jsxRuntime.jsxs(ToastContext.Provider, { value, children: [
|
|
41323
41368
|
children,
|
|
41324
41369
|
Array.from(toasts).map(([id, toast]) => /* @__PURE__ */ jsxRuntime.jsx(Toast, { ...toast, onClose: onClose(id) }, id))
|
|
41325
41370
|
] }),
|
|
41326
|
-
/* @__PURE__ */ jsxRuntime.jsx(Viewport, {})
|
|
41371
|
+
/* @__PURE__ */ jsxRuntime.jsx(Viewport, { $align: align })
|
|
41327
41372
|
] });
|
|
41328
41373
|
};
|
|
41329
41374
|
function listCacheClear$1() {
|
|
@@ -50856,6 +50901,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
50856
50901
|
exports2.TextAreaField = TextAreaField;
|
|
50857
50902
|
exports2.TextField = TextField;
|
|
50858
50903
|
exports2.Title = Title$2;
|
|
50904
|
+
exports2.ToastProvider = ToastProvider;
|
|
50859
50905
|
exports2.Tooltip = Tooltip;
|
|
50860
50906
|
exports2.VerticalStepper = VerticalStepper;
|
|
50861
50907
|
exports2.WarningAlert = WarningAlert;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { TooltipProviderProps } from '@radix-ui/react-tooltip';
|
|
2
|
-
import {
|
|
2
|
+
import { ToastProviderProps } from '../Toast/Toast';
|
|
3
3
|
import { ThemeName } from '../../theme';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
|
|
6
6
|
interface Props {
|
|
7
7
|
config?: {
|
|
8
8
|
tooltip?: Omit<TooltipProviderProps, "children">;
|
|
9
|
-
toast?: Omit<
|
|
9
|
+
toast?: Omit<ToastProviderProps, "children">;
|
|
10
10
|
};
|
|
11
11
|
theme: ThemeName;
|
|
12
12
|
children: ReactNode;
|
|
@@ -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;
|
|
@@ -18,4 +18,7 @@ export interface ToastProps {
|
|
|
18
18
|
altText: string;
|
|
19
19
|
}>;
|
|
20
20
|
}
|
|
21
|
-
export
|
|
21
|
+
export interface ToastProviderProps extends RadixUIToast.ToastProps {
|
|
22
|
+
align?: "start" | "end";
|
|
23
|
+
}
|
|
24
|
+
export declare const ToastProvider: ({ children, align, ...props }: ToastProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -69,3 +69,4 @@ export { createToast } from './Toast/toastEmitter';
|
|
|
69
69
|
export { UserIcon as ProfileIcon } from './icons/UserIcon';
|
|
70
70
|
export { default as VerticalStepper } from './VerticalStepper/VerticalStepper';
|
|
71
71
|
export { MultiAccordion } from './MultiAccordion/MultiAccordion';
|
|
72
|
+
export { ToastProvider } from './Toast/Toast';
|