@banyan_cloud/roots 1.0.32 → 1.0.34
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/cjs/index.js +852 -208
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +851 -209
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +851 -209
- package/package.json +5 -4
package/dist/cjs/index.js
CHANGED
|
@@ -2325,24 +2325,16 @@ MagnifyingGlass.defaultProps = {
|
|
|
2325
2325
|
|
|
2326
2326
|
var Columns$1 = function Columns(props) {
|
|
2327
2327
|
var className = props.className;
|
|
2328
|
-
return /*#__PURE__*/jsxRuntime.
|
|
2328
|
+
return /*#__PURE__*/jsxRuntime.jsx("svg", {
|
|
2329
2329
|
className: className,
|
|
2330
|
-
|
|
2331
|
-
|
|
2330
|
+
width: "14",
|
|
2331
|
+
height: "15",
|
|
2332
|
+
viewBox: "0 0 14 15",
|
|
2333
|
+
fill: "#2A2A2A",
|
|
2332
2334
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2333
|
-
children:
|
|
2334
|
-
d: "
|
|
2335
|
-
|
|
2336
|
-
strokeWidth: "1.91877",
|
|
2337
|
-
strokeLinecap: "round",
|
|
2338
|
-
strokeLinejoin: "round"
|
|
2339
|
-
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
2340
|
-
d: "M20.2955 21.0107V4.98934C20.2955 4.54693 19.9413 4.18828 19.5044 4.18828H15.549C15.1121 4.18828 14.758 4.54693 14.758 4.98934V21.0107C14.758 21.4531 15.1121 21.8117 15.549 21.8117H19.5044C19.9413 21.8117 20.2955 21.4531 20.2955 21.0107Z",
|
|
2341
|
-
stroke: "#333333",
|
|
2342
|
-
strokeWidth: "1.91877",
|
|
2343
|
-
strokeLinecap: "round",
|
|
2344
|
-
strokeLinejoin: "round"
|
|
2345
|
-
})]
|
|
2335
|
+
children: /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
2336
|
+
d: "M12.25 1.17167H1.75002C1.59531 1.17167 1.44694 1.23313 1.33754 1.34252C1.22815 1.45192 1.16669 1.60029 1.16669 1.755V12.255C1.16669 12.4097 1.22815 12.5581 1.33754 12.6675C1.44694 12.7769 1.59531 12.8383 1.75002 12.8383H12.25C12.4047 12.8383 12.5531 12.7769 12.6625 12.6675C12.7719 12.5581 12.8334 12.4097 12.8334 12.255V1.755C12.8334 1.60029 12.7719 1.45192 12.6625 1.34252C12.5531 1.23313 12.4047 1.17167 12.25 1.17167ZM6.41669 11.6717H2.33335V2.33833H6.41669V11.6717ZM11.6667 11.6717H7.58335V2.33833H11.6667V11.6717Z"
|
|
2337
|
+
})
|
|
2346
2338
|
});
|
|
2347
2339
|
};
|
|
2348
2340
|
Columns$1.defaultProps = {
|
|
@@ -2461,6 +2453,52 @@ Reset.defaultProps = {
|
|
|
2461
2453
|
className: ''
|
|
2462
2454
|
};
|
|
2463
2455
|
|
|
2456
|
+
var Settings = function Settings(props) {
|
|
2457
|
+
var className = props.className;
|
|
2458
|
+
return /*#__PURE__*/jsxRuntime.jsx("svg", {
|
|
2459
|
+
className: className,
|
|
2460
|
+
width: "14",
|
|
2461
|
+
height: "15",
|
|
2462
|
+
viewBox: "0 0 14 15",
|
|
2463
|
+
fill: "#2A2A2A",
|
|
2464
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2465
|
+
children: /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
2466
|
+
d: "M11.6084 7.38999C11.5148 7.28354 11.4633 7.14669 11.4633 7.00499C11.4633 6.8633 11.5148 6.72645 11.6084 6.61999L12.355 5.77999C12.4373 5.68822 12.4884 5.57274 12.501 5.45012C12.5135 5.32751 12.487 5.20406 12.425 5.09749L11.2584 3.07916C11.197 2.97272 11.1037 2.88834 10.9916 2.83806C10.8795 2.78778 10.7545 2.77417 10.6342 2.79916L9.53752 3.02083C9.39798 3.04966 9.25271 3.02642 9.12912 2.95549C9.00554 2.88457 8.91219 2.77086 8.86669 2.63583L8.51085 1.56833C8.47172 1.45247 8.39716 1.35183 8.29772 1.28065C8.19828 1.20947 8.07898 1.17135 7.95669 1.17166H5.62335C5.49615 1.16502 5.37027 1.2002 5.26493 1.27183C5.1596 1.34345 5.08061 1.44759 5.04002 1.56833L4.71335 2.63583C4.66786 2.77086 4.5745 2.88457 4.45092 2.95549C4.32734 3.02642 4.18206 3.04966 4.04252 3.02083L2.91669 2.79916C2.80268 2.78305 2.68645 2.80104 2.58264 2.85087C2.47883 2.90069 2.3921 2.98013 2.33335 3.07916L1.16669 5.09749C1.1032 5.20287 1.07465 5.32563 1.08513 5.44821C1.0956 5.57079 1.14457 5.68692 1.22502 5.77999L1.96585 6.61999C2.05937 6.72645 2.11095 6.8633 2.11095 7.00499C2.11095 7.14669 2.05937 7.28354 1.96585 7.38999L1.22502 8.22999C1.14457 8.32307 1.0956 8.4392 1.08513 8.56178C1.07465 8.68436 1.1032 8.80712 1.16669 8.91249L2.33335 10.9308C2.39466 11.0373 2.48801 11.1216 2.60008 11.1719C2.71216 11.2222 2.83725 11.2358 2.95752 11.2108L4.05419 10.9892C4.19373 10.9603 4.339 10.9836 4.46259 11.0545C4.58617 11.1254 4.67952 11.2391 4.72502 11.3742L5.08085 12.4417C5.12144 12.5624 5.20044 12.6665 5.30577 12.7382C5.4111 12.8098 5.53698 12.845 5.66419 12.8383H7.99752C8.11981 12.8386 8.23911 12.8005 8.33855 12.7293C8.438 12.6582 8.51255 12.5575 8.55169 12.4417L8.90752 11.3742C8.95302 11.2391 9.04637 11.1254 9.16996 11.0545C9.29354 10.9836 9.43881 10.9603 9.57835 10.9892L10.675 11.2108C10.7953 11.2358 10.9204 11.2222 11.0325 11.1719C11.1445 11.1216 11.2379 11.0373 11.2992 10.9308L12.4659 8.91249C12.5278 8.80593 12.5544 8.68248 12.5418 8.55986C12.5292 8.43725 12.4781 8.32177 12.3959 8.22999L11.6084 7.38999ZM10.7392 8.17166L11.2059 8.69666L10.4592 9.99166L9.77085 9.85166C9.35073 9.76578 8.91369 9.83715 8.5427 10.0522C8.17172 10.2673 7.89261 10.6111 7.75835 11.0183L7.53669 11.6717H6.04335L5.83335 11.0067C5.6991 10.5994 5.41999 10.2556 5.04901 10.0405C4.67802 9.82548 4.24098 9.75412 3.82085 9.83999L3.13252 9.97999L2.37419 8.69083L2.84085 8.16583C3.12783 7.84498 3.28648 7.42962 3.28648 6.99916C3.28648 6.5687 3.12783 6.15334 2.84085 5.83249L2.37419 5.30749L3.12085 4.02416L3.80919 4.16416C4.22932 4.25004 4.66635 4.17867 5.03734 3.96361C5.40833 3.74855 5.68744 3.40475 5.82169 2.99749L6.04335 2.33833H7.53669L7.75835 3.00333C7.89261 3.41059 8.17172 3.75438 8.5427 3.96944C8.91369 4.18451 9.35073 4.25587 9.77085 4.16999L10.4592 4.02999L11.2059 5.32499L10.7392 5.84999C10.4554 6.1701 10.2988 6.58306 10.2988 7.01083C10.2988 7.4386 10.4554 7.85155 10.7392 8.17166ZM6.79002 4.67166C6.32853 4.67166 5.87741 4.80851 5.49369 5.0649C5.10998 5.32129 4.81091 5.68571 4.6343 6.11207C4.4577 6.53843 4.41149 7.00758 4.50152 7.46021C4.59155 7.91283 4.81378 8.32859 5.14011 8.65491C5.46643 8.98123 5.88219 9.20346 6.33481 9.29349C6.78743 9.38353 7.25659 9.33732 7.68295 9.16071C8.10931 8.98411 8.47373 8.68504 8.73012 8.30132C8.98651 7.91761 9.12335 7.46648 9.12335 7.00499C9.12335 6.38616 8.87752 5.79266 8.43994 5.35508C8.00235 4.91749 7.40886 4.67166 6.79002 4.67166ZM6.79002 8.17166C6.55928 8.17166 6.33371 8.10324 6.14186 7.97504C5.95 7.84685 5.80046 7.66464 5.71216 7.45146C5.62386 7.23828 5.60076 7.0037 5.64577 6.77739C5.69079 6.55108 5.8019 6.3432 5.96506 6.18004C6.12822 6.01688 6.3361 5.90576 6.56242 5.86074C6.78873 5.81573 7.0233 5.83883 7.23649 5.92713C7.44967 6.01544 7.63187 6.16497 7.76007 6.35683C7.88826 6.54869 7.95669 6.77425 7.95669 7.00499C7.95669 7.31441 7.83377 7.61116 7.61498 7.82995C7.39619 8.04874 7.09944 8.17166 6.79002 8.17166Z"
|
|
2467
|
+
})
|
|
2468
|
+
});
|
|
2469
|
+
};
|
|
2470
|
+
|
|
2471
|
+
var Trash = function Trash(props) {
|
|
2472
|
+
var className = props.className;
|
|
2473
|
+
return /*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
2474
|
+
className: className,
|
|
2475
|
+
width: "14",
|
|
2476
|
+
height: "15",
|
|
2477
|
+
viewBox: "0 0 14 15",
|
|
2478
|
+
fill: "none",
|
|
2479
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2480
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("g", {
|
|
2481
|
+
clipPath: "url(#clip0_3863_19293)",
|
|
2482
|
+
children: /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
2483
|
+
d: "M1.75 3.50499H2.91667M2.91667 3.50499H12.25M2.91667 3.50499V11.6717C2.91667 11.9811 3.03958 12.2778 3.25838 12.4966C3.47717 12.7154 3.77391 12.8383 4.08333 12.8383H9.91667C10.2261 12.8383 10.5228 12.7154 10.7416 12.4966C10.9604 12.2778 11.0833 11.9811 11.0833 11.6717V3.50499H2.91667ZM4.66667 3.50499V2.33833C4.66667 2.02891 4.78958 1.73216 5.00838 1.51337C5.22717 1.29458 5.52391 1.17166 5.83333 1.17166H8.16667C8.47609 1.17166 8.77283 1.29458 8.99162 1.51337C9.21042 1.73216 9.33333 2.02891 9.33333 2.33833V3.50499M5.83333 6.42166V9.92166M8.16667 6.42166V9.92166",
|
|
2484
|
+
stroke: "#FF626A",
|
|
2485
|
+
strokeLinecap: "round",
|
|
2486
|
+
strokeLinejoin: "round"
|
|
2487
|
+
})
|
|
2488
|
+
}), /*#__PURE__*/jsxRuntime.jsx("defs", {
|
|
2489
|
+
children: /*#__PURE__*/jsxRuntime.jsx("clipPath", {
|
|
2490
|
+
id: "clip0_3863_19293",
|
|
2491
|
+
children: /*#__PURE__*/jsxRuntime.jsx("rect", {
|
|
2492
|
+
width: "14",
|
|
2493
|
+
height: "14",
|
|
2494
|
+
fill: "white",
|
|
2495
|
+
transform: "translate(0 0.00500488)"
|
|
2496
|
+
})
|
|
2497
|
+
})
|
|
2498
|
+
})]
|
|
2499
|
+
});
|
|
2500
|
+
};
|
|
2501
|
+
|
|
2464
2502
|
var css$O = ".Accordion_module_root__a63f6f55 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n width: 100%;\n}\n.Accordion_module_root__a63f6f55 > .Accordion_module_header__a63f6f55[data-elem=base-cell] {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n gap: 0.5rem;\n padding: 0.5rem 1rem;\n cursor: pointer;\n}\n.Accordion_module_root__a63f6f55 > .Accordion_module_header__a63f6f55[data-elem=base-cell] > [data-elem=component1] {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n.Accordion_module_root__a63f6f55 > .Accordion_module_header__a63f6f55[data-elem=base-cell] > [data-elem=component1] .Accordion_module_icon__a63f6f55 {\n transform: rotate(-90deg);\n width: 1rem;\n height: 1rem;\n}\n.Accordion_module_root__a63f6f55 > .Accordion_module_header__a63f6f55[data-elem=base-cell] .Accordion_module_title__a63f6f55 {\n flex: 1 1 auto;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.Accordion_module_root__a63f6f55 > .Accordion_module_header__a63f6f55[data-elem=base-cell]:hover {\n background: var(--background);\n}\n.Accordion_module_root__a63f6f55 > .Accordion_module_header__a63f6f55[data-elem=base-cell]:hover .Accordion_module_icon__a63f6f55,\n.Accordion_module_root__a63f6f55 > .Accordion_module_header__a63f6f55[data-elem=base-cell]:hover .Accordion_module_title__a63f6f55 {\n color: var(--highlight);\n fill: var(--highlight);\n}\n.Accordion_module_root__a63f6f55 > .Accordion_module_body__a63f6f55 {\n display: none;\n padding: 0.5rem 2.5rem;\n}\n.Accordion_module_root__a63f6f55.Accordion_module_open__a63f6f55 > .Accordion_module_header__a63f6f55[data-elem=base-cell] [data-elem=component1] .Accordion_module_icon__a63f6f55 {\n transform: none;\n}\n.Accordion_module_root__a63f6f55.Accordion_module_open__a63f6f55 > .Accordion_module_body__a63f6f55 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n}\n.Accordion_module_root__a63f6f55.Accordion_module_open__a63f6f55 > .Accordion_module_body__a63f6f55 > button[data-elem=base-cell] {\n width: -webkit-fit-content;\n width: -moz-fit-content;\n width: fit-content;\n align-self: flex-end;\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n}\n.Accordion_module_root__a63f6f55.Accordion_module_open__a63f6f55 > .Accordion_module_body__a63f6f55 > button[data-elem=base-cell] .Accordion_module_expand__a63f6f55 {\n height: 1.5rem;\n width: 1.5rem;\n}";
|
|
2465
2503
|
var modules_8207625f = {"root":"Accordion_module_root__a63f6f55","header":"Accordion_module_header__a63f6f55","icon":"Accordion_module_icon__a63f6f55","title":"Accordion_module_title__a63f6f55","body":"Accordion_module_body__a63f6f55","open":"Accordion_module_open__a63f6f55","expand":"Accordion_module_expand__a63f6f55"};
|
|
2466
2504
|
n(css$O,{});
|
|
@@ -2836,6 +2874,79 @@ function within(min$1, value, max$1) {
|
|
|
2836
2874
|
return max$3(min$1, min$3(value, max$1));
|
|
2837
2875
|
}
|
|
2838
2876
|
|
|
2877
|
+
/**
|
|
2878
|
+
* Positions an inner element of the floating element such that it is centered
|
|
2879
|
+
* to the reference element.
|
|
2880
|
+
* @see https://floating-ui.com/docs/arrow
|
|
2881
|
+
*/
|
|
2882
|
+
const arrow$1 = options => ({
|
|
2883
|
+
name: 'arrow',
|
|
2884
|
+
options,
|
|
2885
|
+
|
|
2886
|
+
async fn(middlewareArguments) {
|
|
2887
|
+
// Since `element` is required, we don't Partial<> the type
|
|
2888
|
+
const {
|
|
2889
|
+
element,
|
|
2890
|
+
padding = 0
|
|
2891
|
+
} = options != null ? options : {};
|
|
2892
|
+
const {
|
|
2893
|
+
x,
|
|
2894
|
+
y,
|
|
2895
|
+
placement,
|
|
2896
|
+
rects,
|
|
2897
|
+
platform
|
|
2898
|
+
} = middlewareArguments;
|
|
2899
|
+
|
|
2900
|
+
if (element == null) {
|
|
2901
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2902
|
+
console.warn('Floating UI: No `element` was passed to the `arrow` middleware.');
|
|
2903
|
+
}
|
|
2904
|
+
|
|
2905
|
+
return {};
|
|
2906
|
+
}
|
|
2907
|
+
|
|
2908
|
+
const paddingObject = getSideObjectFromPadding(padding);
|
|
2909
|
+
const coords = {
|
|
2910
|
+
x,
|
|
2911
|
+
y
|
|
2912
|
+
};
|
|
2913
|
+
const axis = getMainAxisFromPlacement(placement);
|
|
2914
|
+
const alignment = getAlignment(placement);
|
|
2915
|
+
const length = getLengthFromAxis(axis);
|
|
2916
|
+
const arrowDimensions = await platform.getDimensions(element);
|
|
2917
|
+
const minProp = axis === 'y' ? 'top' : 'left';
|
|
2918
|
+
const maxProp = axis === 'y' ? 'bottom' : 'right';
|
|
2919
|
+
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
|
2920
|
+
const startDiff = coords[axis] - rects.reference[axis];
|
|
2921
|
+
const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
|
|
2922
|
+
let clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
|
|
2923
|
+
|
|
2924
|
+
if (clientSize === 0) {
|
|
2925
|
+
clientSize = rects.floating[length];
|
|
2926
|
+
}
|
|
2927
|
+
|
|
2928
|
+
const centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the floating element if the center
|
|
2929
|
+
// point is outside the floating element's bounds
|
|
2930
|
+
|
|
2931
|
+
const min = paddingObject[minProp];
|
|
2932
|
+
const max = clientSize - arrowDimensions[length] - paddingObject[maxProp];
|
|
2933
|
+
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
2934
|
+
const offset = within(min, center, max); // Make sure that arrow points at the reference
|
|
2935
|
+
|
|
2936
|
+
const alignmentPadding = alignment === 'start' ? paddingObject[minProp] : paddingObject[maxProp];
|
|
2937
|
+
const shouldAddOffset = alignmentPadding > 0 && center !== offset && rects.reference[length] <= rects.floating[length];
|
|
2938
|
+
const alignmentOffset = shouldAddOffset ? center < min ? min - center : max - center : 0;
|
|
2939
|
+
return {
|
|
2940
|
+
[axis]: coords[axis] - alignmentOffset,
|
|
2941
|
+
data: {
|
|
2942
|
+
[axis]: offset,
|
|
2943
|
+
centerOffset: center - offset
|
|
2944
|
+
}
|
|
2945
|
+
};
|
|
2946
|
+
}
|
|
2947
|
+
|
|
2948
|
+
});
|
|
2949
|
+
|
|
2839
2950
|
const hash$1 = {
|
|
2840
2951
|
left: 'right',
|
|
2841
2952
|
right: 'left',
|
|
@@ -4024,6 +4135,50 @@ function useFloating$1(_temp) {
|
|
|
4024
4135
|
}), [data, update, refs, setReference, setFloating]);
|
|
4025
4136
|
}
|
|
4026
4137
|
|
|
4138
|
+
/**
|
|
4139
|
+
* Positions an inner element of the floating element such that it is centered
|
|
4140
|
+
* to the reference element.
|
|
4141
|
+
* This wraps the core `arrow` middleware to allow React refs as the element.
|
|
4142
|
+
* @see https://floating-ui.com/docs/arrow
|
|
4143
|
+
*/
|
|
4144
|
+
|
|
4145
|
+
const arrow = options => {
|
|
4146
|
+
const {
|
|
4147
|
+
element,
|
|
4148
|
+
padding
|
|
4149
|
+
} = options;
|
|
4150
|
+
|
|
4151
|
+
function isRef(value) {
|
|
4152
|
+
return Object.prototype.hasOwnProperty.call(value, 'current');
|
|
4153
|
+
}
|
|
4154
|
+
|
|
4155
|
+
return {
|
|
4156
|
+
name: 'arrow',
|
|
4157
|
+
options,
|
|
4158
|
+
|
|
4159
|
+
fn(args) {
|
|
4160
|
+
if (isRef(element)) {
|
|
4161
|
+
if (element.current != null) {
|
|
4162
|
+
return arrow$1({
|
|
4163
|
+
element: element.current,
|
|
4164
|
+
padding
|
|
4165
|
+
}).fn(args);
|
|
4166
|
+
}
|
|
4167
|
+
|
|
4168
|
+
return {};
|
|
4169
|
+
} else if (element) {
|
|
4170
|
+
return arrow$1({
|
|
4171
|
+
element,
|
|
4172
|
+
padding
|
|
4173
|
+
}).fn(args);
|
|
4174
|
+
}
|
|
4175
|
+
|
|
4176
|
+
return {};
|
|
4177
|
+
}
|
|
4178
|
+
|
|
4179
|
+
};
|
|
4180
|
+
};
|
|
4181
|
+
|
|
4027
4182
|
var getDefaultParent = function (originalTarget) {
|
|
4028
4183
|
if (typeof document === 'undefined') {
|
|
4029
4184
|
return null;
|
|
@@ -4895,6 +5050,313 @@ function usePrevious(value) {
|
|
|
4895
5050
|
return ref.current;
|
|
4896
5051
|
}
|
|
4897
5052
|
|
|
5053
|
+
function getDelay(value, prop, pointerType) {
|
|
5054
|
+
if (pointerType && pointerType !== 'mouse') {
|
|
5055
|
+
return 0;
|
|
5056
|
+
}
|
|
5057
|
+
|
|
5058
|
+
if (typeof value === 'number') {
|
|
5059
|
+
return value;
|
|
5060
|
+
}
|
|
5061
|
+
|
|
5062
|
+
return value == null ? void 0 : value[prop];
|
|
5063
|
+
}
|
|
5064
|
+
|
|
5065
|
+
/**
|
|
5066
|
+
* Adds hover event listeners that change the open state, like CSS :hover.
|
|
5067
|
+
* @see https://floating-ui.com/docs/useHover
|
|
5068
|
+
*/
|
|
5069
|
+
const useHover = function (context, _temp) {
|
|
5070
|
+
let {
|
|
5071
|
+
enabled = true,
|
|
5072
|
+
delay = 0,
|
|
5073
|
+
handleClose = null,
|
|
5074
|
+
mouseOnly = false,
|
|
5075
|
+
restMs = 0,
|
|
5076
|
+
move = true
|
|
5077
|
+
} = _temp === void 0 ? {} : _temp;
|
|
5078
|
+
const {
|
|
5079
|
+
open,
|
|
5080
|
+
onOpenChange,
|
|
5081
|
+
dataRef,
|
|
5082
|
+
events,
|
|
5083
|
+
refs,
|
|
5084
|
+
_
|
|
5085
|
+
} = context;
|
|
5086
|
+
const tree = useFloatingTree();
|
|
5087
|
+
const parentId = useFloatingParentNodeId();
|
|
5088
|
+
const handleCloseRef = useLatestRef(handleClose);
|
|
5089
|
+
const delayRef = useLatestRef(delay);
|
|
5090
|
+
const previousOpen = usePrevious(open);
|
|
5091
|
+
const pointerTypeRef = React__namespace.useRef();
|
|
5092
|
+
const timeoutRef = React__namespace.useRef();
|
|
5093
|
+
const handlerRef = React__namespace.useRef();
|
|
5094
|
+
const restTimeoutRef = React__namespace.useRef();
|
|
5095
|
+
const blockMouseMoveRef = React__namespace.useRef(true);
|
|
5096
|
+
const performedPointerEventsMutationRef = React__namespace.useRef(false);
|
|
5097
|
+
const isHoverOpen = React__namespace.useCallback(() => {
|
|
5098
|
+
var _dataRef$current$open;
|
|
5099
|
+
|
|
5100
|
+
const type = (_dataRef$current$open = dataRef.current.openEvent) == null ? void 0 : _dataRef$current$open.type;
|
|
5101
|
+
return (type == null ? void 0 : type.includes('mouse')) && type !== 'mousedown';
|
|
5102
|
+
}, [dataRef]);
|
|
5103
|
+
React__namespace.useEffect(() => {
|
|
5104
|
+
if (!enabled) {
|
|
5105
|
+
return;
|
|
5106
|
+
}
|
|
5107
|
+
|
|
5108
|
+
function onDismiss() {
|
|
5109
|
+
clearTimeout(timeoutRef.current);
|
|
5110
|
+
clearTimeout(restTimeoutRef.current);
|
|
5111
|
+
blockMouseMoveRef.current = true;
|
|
5112
|
+
}
|
|
5113
|
+
|
|
5114
|
+
events.on('dismiss', onDismiss);
|
|
5115
|
+
return () => {
|
|
5116
|
+
events.off('dismiss', onDismiss);
|
|
5117
|
+
};
|
|
5118
|
+
}, [enabled, events, refs]);
|
|
5119
|
+
React__namespace.useEffect(() => {
|
|
5120
|
+
if (!enabled || !handleCloseRef.current) {
|
|
5121
|
+
return;
|
|
5122
|
+
}
|
|
5123
|
+
|
|
5124
|
+
function onLeave() {
|
|
5125
|
+
if (isHoverOpen()) {
|
|
5126
|
+
onOpenChange(false);
|
|
5127
|
+
}
|
|
5128
|
+
}
|
|
5129
|
+
|
|
5130
|
+
const html = getDocument(refs.floating.current).documentElement;
|
|
5131
|
+
html.addEventListener('mouseleave', onLeave);
|
|
5132
|
+
return () => {
|
|
5133
|
+
html.removeEventListener('mouseleave', onLeave);
|
|
5134
|
+
};
|
|
5135
|
+
}, [refs, onOpenChange, enabled, handleCloseRef, dataRef, isHoverOpen]);
|
|
5136
|
+
const closeWithDelay = React__namespace.useCallback(function (runElseBranch) {
|
|
5137
|
+
if (runElseBranch === void 0) {
|
|
5138
|
+
runElseBranch = true;
|
|
5139
|
+
}
|
|
5140
|
+
|
|
5141
|
+
const closeDelay = getDelay(delayRef.current, 'close', pointerTypeRef.current);
|
|
5142
|
+
|
|
5143
|
+
if (closeDelay && !handlerRef.current) {
|
|
5144
|
+
clearTimeout(timeoutRef.current);
|
|
5145
|
+
timeoutRef.current = setTimeout(() => onOpenChange(false), closeDelay);
|
|
5146
|
+
} else if (runElseBranch) {
|
|
5147
|
+
clearTimeout(timeoutRef.current);
|
|
5148
|
+
onOpenChange(false);
|
|
5149
|
+
}
|
|
5150
|
+
}, [delayRef, onOpenChange]);
|
|
5151
|
+
const cleanupPointerMoveHandler = React__namespace.useCallback(() => {
|
|
5152
|
+
if (handlerRef.current) {
|
|
5153
|
+
getDocument(refs.floating.current).removeEventListener('pointermove', handlerRef.current);
|
|
5154
|
+
handlerRef.current = undefined;
|
|
5155
|
+
}
|
|
5156
|
+
}, [refs]);
|
|
5157
|
+
const clearPointerEvents = React__namespace.useCallback(() => {
|
|
5158
|
+
getDocument(refs.floating.current).body.style.pointerEvents = '';
|
|
5159
|
+
performedPointerEventsMutationRef.current = false;
|
|
5160
|
+
}, [refs]); // Registering the mouse events on the reference directly to bypass React's
|
|
5161
|
+
// delegation system. If the cursor was on a disabled element and then entered
|
|
5162
|
+
// the reference (no gap), `mouseenter` doesn't fire in the delegation system.
|
|
5163
|
+
|
|
5164
|
+
React__namespace.useEffect(() => {
|
|
5165
|
+
if (!enabled) {
|
|
5166
|
+
return;
|
|
5167
|
+
}
|
|
5168
|
+
|
|
5169
|
+
function isClickLikeOpenEvent() {
|
|
5170
|
+
return dataRef.current.openEvent ? ['click', 'mousedown'].includes(dataRef.current.openEvent.type) : false;
|
|
5171
|
+
}
|
|
5172
|
+
|
|
5173
|
+
function onMouseEnter(event) {
|
|
5174
|
+
clearTimeout(timeoutRef.current);
|
|
5175
|
+
blockMouseMoveRef.current = false;
|
|
5176
|
+
|
|
5177
|
+
if (mouseOnly && pointerTypeRef.current !== 'mouse' || restMs > 0 && getDelay(delayRef.current, 'open') === 0) {
|
|
5178
|
+
return;
|
|
5179
|
+
}
|
|
5180
|
+
|
|
5181
|
+
dataRef.current.openEvent = event;
|
|
5182
|
+
const openDelay = getDelay(delayRef.current, 'open', pointerTypeRef.current);
|
|
5183
|
+
|
|
5184
|
+
if (openDelay) {
|
|
5185
|
+
timeoutRef.current = setTimeout(() => {
|
|
5186
|
+
onOpenChange(true);
|
|
5187
|
+
}, openDelay);
|
|
5188
|
+
} else {
|
|
5189
|
+
onOpenChange(true);
|
|
5190
|
+
}
|
|
5191
|
+
}
|
|
5192
|
+
|
|
5193
|
+
function onMouseLeave(event) {
|
|
5194
|
+
if (isClickLikeOpenEvent()) {
|
|
5195
|
+
return;
|
|
5196
|
+
}
|
|
5197
|
+
|
|
5198
|
+
const doc = getDocument(refs.floating.current);
|
|
5199
|
+
clearTimeout(restTimeoutRef.current);
|
|
5200
|
+
|
|
5201
|
+
if (handleCloseRef.current) {
|
|
5202
|
+
clearTimeout(timeoutRef.current);
|
|
5203
|
+
handlerRef.current && doc.removeEventListener('pointermove', handlerRef.current);
|
|
5204
|
+
handlerRef.current = handleCloseRef.current({ ...context,
|
|
5205
|
+
tree,
|
|
5206
|
+
x: event.clientX,
|
|
5207
|
+
y: event.clientY,
|
|
5208
|
+
|
|
5209
|
+
onClose() {
|
|
5210
|
+
clearPointerEvents();
|
|
5211
|
+
cleanupPointerMoveHandler();
|
|
5212
|
+
closeWithDelay();
|
|
5213
|
+
}
|
|
5214
|
+
|
|
5215
|
+
});
|
|
5216
|
+
doc.addEventListener('pointermove', handlerRef.current);
|
|
5217
|
+
return;
|
|
5218
|
+
}
|
|
5219
|
+
|
|
5220
|
+
closeWithDelay();
|
|
5221
|
+
} // Ensure the floating element closes after scrolling even if the pointer
|
|
5222
|
+
// did not move.
|
|
5223
|
+
// https://github.com/floating-ui/floating-ui/discussions/1692
|
|
5224
|
+
|
|
5225
|
+
|
|
5226
|
+
function onScrollMouseLeave(event) {
|
|
5227
|
+
if (isClickLikeOpenEvent()) {
|
|
5228
|
+
return;
|
|
5229
|
+
}
|
|
5230
|
+
|
|
5231
|
+
handleCloseRef.current == null ? void 0 : handleCloseRef.current({ ...context,
|
|
5232
|
+
tree,
|
|
5233
|
+
x: event.clientX,
|
|
5234
|
+
y: event.clientY,
|
|
5235
|
+
leave: true,
|
|
5236
|
+
|
|
5237
|
+
onClose() {
|
|
5238
|
+
clearPointerEvents();
|
|
5239
|
+
cleanupPointerMoveHandler();
|
|
5240
|
+
closeWithDelay();
|
|
5241
|
+
}
|
|
5242
|
+
|
|
5243
|
+
})(event);
|
|
5244
|
+
}
|
|
5245
|
+
|
|
5246
|
+
const floating = refs.floating.current;
|
|
5247
|
+
const reference = refs.domReference.current;
|
|
5248
|
+
|
|
5249
|
+
if (isElement(reference)) {
|
|
5250
|
+
open && reference.addEventListener('mouseleave', onScrollMouseLeave);
|
|
5251
|
+
floating == null ? void 0 : floating.addEventListener('mouseleave', onScrollMouseLeave);
|
|
5252
|
+
move && reference.addEventListener('mousemove', onMouseEnter, {
|
|
5253
|
+
once: true
|
|
5254
|
+
});
|
|
5255
|
+
reference.addEventListener('mouseenter', onMouseEnter);
|
|
5256
|
+
reference.addEventListener('mouseleave', onMouseLeave);
|
|
5257
|
+
return () => {
|
|
5258
|
+
open && reference.removeEventListener('mouseleave', onScrollMouseLeave);
|
|
5259
|
+
floating == null ? void 0 : floating.removeEventListener('mouseleave', onScrollMouseLeave);
|
|
5260
|
+
move && reference.removeEventListener('mousemove', onMouseEnter);
|
|
5261
|
+
reference.removeEventListener('mouseenter', onMouseEnter);
|
|
5262
|
+
reference.removeEventListener('mouseleave', onMouseLeave);
|
|
5263
|
+
};
|
|
5264
|
+
}
|
|
5265
|
+
}, [// Ensure the effect is re-run when the reference changes.
|
|
5266
|
+
// https://github.com/floating-ui/floating-ui/issues/1833
|
|
5267
|
+
_.domReference, enabled, context, mouseOnly, restMs, move, closeWithDelay, cleanupPointerMoveHandler, clearPointerEvents, onOpenChange, open, tree, refs, delayRef, handleCloseRef, dataRef]); // Block pointer-events of every element other than the reference and floating
|
|
5268
|
+
// while the floating element is open and has a `handleClose` handler. Also
|
|
5269
|
+
// handles nested floating elements.
|
|
5270
|
+
// https://github.com/floating-ui/floating-ui/issues/1722
|
|
5271
|
+
|
|
5272
|
+
index(() => {
|
|
5273
|
+
if (!enabled) {
|
|
5274
|
+
return;
|
|
5275
|
+
}
|
|
5276
|
+
|
|
5277
|
+
if (open && handleCloseRef.current && handleCloseRef.current.__options.blockPointerEvents && isHoverOpen()) {
|
|
5278
|
+
getDocument(refs.floating.current).body.style.pointerEvents = 'none';
|
|
5279
|
+
performedPointerEventsMutationRef.current = true;
|
|
5280
|
+
const reference = refs.domReference.current;
|
|
5281
|
+
const floating = refs.floating.current;
|
|
5282
|
+
|
|
5283
|
+
if (isElement(reference) && floating) {
|
|
5284
|
+
var _tree$nodesRef$curren, _tree$nodesRef$curren2;
|
|
5285
|
+
|
|
5286
|
+
const parentFloating = tree == null ? void 0 : (_tree$nodesRef$curren = tree.nodesRef.current.find(node => node.id === parentId)) == null ? void 0 : (_tree$nodesRef$curren2 = _tree$nodesRef$curren.context) == null ? void 0 : _tree$nodesRef$curren2.refs.floating.current;
|
|
5287
|
+
|
|
5288
|
+
if (parentFloating) {
|
|
5289
|
+
parentFloating.style.pointerEvents = '';
|
|
5290
|
+
}
|
|
5291
|
+
|
|
5292
|
+
reference.style.pointerEvents = 'auto';
|
|
5293
|
+
floating.style.pointerEvents = 'auto';
|
|
5294
|
+
return () => {
|
|
5295
|
+
reference.style.pointerEvents = '';
|
|
5296
|
+
floating.style.pointerEvents = '';
|
|
5297
|
+
};
|
|
5298
|
+
}
|
|
5299
|
+
}
|
|
5300
|
+
}, [enabled, open, parentId, refs, tree, handleCloseRef, dataRef, isHoverOpen]);
|
|
5301
|
+
index(() => {
|
|
5302
|
+
if (previousOpen && !open) {
|
|
5303
|
+
pointerTypeRef.current = undefined;
|
|
5304
|
+
cleanupPointerMoveHandler();
|
|
5305
|
+
clearPointerEvents();
|
|
5306
|
+
}
|
|
5307
|
+
});
|
|
5308
|
+
React__namespace.useEffect(() => {
|
|
5309
|
+
return () => {
|
|
5310
|
+
cleanupPointerMoveHandler();
|
|
5311
|
+
clearTimeout(timeoutRef.current);
|
|
5312
|
+
clearTimeout(restTimeoutRef.current);
|
|
5313
|
+
|
|
5314
|
+
if (performedPointerEventsMutationRef.current) {
|
|
5315
|
+
clearPointerEvents();
|
|
5316
|
+
}
|
|
5317
|
+
};
|
|
5318
|
+
}, [enabled, cleanupPointerMoveHandler, clearPointerEvents]);
|
|
5319
|
+
|
|
5320
|
+
if (!enabled) {
|
|
5321
|
+
return {};
|
|
5322
|
+
}
|
|
5323
|
+
|
|
5324
|
+
function setPointerRef(event) {
|
|
5325
|
+
pointerTypeRef.current = event.pointerType;
|
|
5326
|
+
}
|
|
5327
|
+
|
|
5328
|
+
return {
|
|
5329
|
+
reference: {
|
|
5330
|
+
onPointerDown: setPointerRef,
|
|
5331
|
+
onPointerEnter: setPointerRef,
|
|
5332
|
+
|
|
5333
|
+
onMouseMove() {
|
|
5334
|
+
if (open || restMs === 0) {
|
|
5335
|
+
return;
|
|
5336
|
+
}
|
|
5337
|
+
|
|
5338
|
+
clearTimeout(restTimeoutRef.current);
|
|
5339
|
+
restTimeoutRef.current = setTimeout(() => {
|
|
5340
|
+
if (!blockMouseMoveRef.current) {
|
|
5341
|
+
onOpenChange(true);
|
|
5342
|
+
}
|
|
5343
|
+
}, restMs);
|
|
5344
|
+
}
|
|
5345
|
+
|
|
5346
|
+
},
|
|
5347
|
+
floating: {
|
|
5348
|
+
onMouseEnter() {
|
|
5349
|
+
clearTimeout(timeoutRef.current);
|
|
5350
|
+
},
|
|
5351
|
+
|
|
5352
|
+
onMouseLeave() {
|
|
5353
|
+
closeWithDelay(false);
|
|
5354
|
+
}
|
|
5355
|
+
|
|
5356
|
+
}
|
|
5357
|
+
};
|
|
5358
|
+
};
|
|
5359
|
+
|
|
4898
5360
|
/**
|
|
4899
5361
|
* Adds relevant screen reader props for a given element `role`.
|
|
4900
5362
|
* @see https://floating-ui.com/docs/useRole
|
|
@@ -5259,6 +5721,123 @@ const useDismiss = function (_ref, _temp) {
|
|
|
5259
5721
|
};
|
|
5260
5722
|
};
|
|
5261
5723
|
|
|
5724
|
+
/**
|
|
5725
|
+
* Adds focus event listeners that change the open state, like CSS :focus.
|
|
5726
|
+
* @see https://floating-ui.com/docs/useFocus
|
|
5727
|
+
*/
|
|
5728
|
+
const useFocus = function (_ref, _temp) {
|
|
5729
|
+
let {
|
|
5730
|
+
open,
|
|
5731
|
+
onOpenChange,
|
|
5732
|
+
dataRef,
|
|
5733
|
+
refs,
|
|
5734
|
+
events
|
|
5735
|
+
} = _ref;
|
|
5736
|
+
let {
|
|
5737
|
+
enabled = true,
|
|
5738
|
+
keyboardOnly = true
|
|
5739
|
+
} = _temp === void 0 ? {} : _temp;
|
|
5740
|
+
const pointerTypeRef = React__namespace.useRef('');
|
|
5741
|
+
const blockFocusRef = React__namespace.useRef(false);
|
|
5742
|
+
const timeoutRef = React__namespace.useRef();
|
|
5743
|
+
React__namespace.useEffect(() => {
|
|
5744
|
+
var _doc$defaultView;
|
|
5745
|
+
|
|
5746
|
+
if (!enabled) {
|
|
5747
|
+
return;
|
|
5748
|
+
}
|
|
5749
|
+
|
|
5750
|
+
const doc = getDocument(refs.floating.current);
|
|
5751
|
+
const win = (_doc$defaultView = doc.defaultView) != null ? _doc$defaultView : window;
|
|
5752
|
+
|
|
5753
|
+
function onBlur() {
|
|
5754
|
+
if (!open && isHTMLElement(refs.domReference.current)) {
|
|
5755
|
+
refs.domReference.current.blur();
|
|
5756
|
+
}
|
|
5757
|
+
}
|
|
5758
|
+
|
|
5759
|
+
win.addEventListener('blur', onBlur);
|
|
5760
|
+
return () => {
|
|
5761
|
+
win.removeEventListener('blur', onBlur);
|
|
5762
|
+
};
|
|
5763
|
+
}, [refs, open, enabled]);
|
|
5764
|
+
React__namespace.useEffect(() => {
|
|
5765
|
+
if (!enabled) {
|
|
5766
|
+
return;
|
|
5767
|
+
}
|
|
5768
|
+
|
|
5769
|
+
function onDismiss() {
|
|
5770
|
+
blockFocusRef.current = true;
|
|
5771
|
+
}
|
|
5772
|
+
|
|
5773
|
+
events.on('dismiss', onDismiss);
|
|
5774
|
+
return () => {
|
|
5775
|
+
events.off('dismiss', onDismiss);
|
|
5776
|
+
};
|
|
5777
|
+
}, [events, enabled]);
|
|
5778
|
+
React__namespace.useEffect(() => {
|
|
5779
|
+
return () => {
|
|
5780
|
+
clearTimeout(timeoutRef.current);
|
|
5781
|
+
};
|
|
5782
|
+
}, []);
|
|
5783
|
+
|
|
5784
|
+
if (!enabled) {
|
|
5785
|
+
return {};
|
|
5786
|
+
}
|
|
5787
|
+
|
|
5788
|
+
return {
|
|
5789
|
+
reference: {
|
|
5790
|
+
onPointerDown(_ref2) {
|
|
5791
|
+
let {
|
|
5792
|
+
pointerType
|
|
5793
|
+
} = _ref2;
|
|
5794
|
+
pointerTypeRef.current = pointerType;
|
|
5795
|
+
blockFocusRef.current = !!(pointerType && keyboardOnly);
|
|
5796
|
+
},
|
|
5797
|
+
|
|
5798
|
+
onPointerLeave() {
|
|
5799
|
+
blockFocusRef.current = false;
|
|
5800
|
+
},
|
|
5801
|
+
|
|
5802
|
+
onFocus(event) {
|
|
5803
|
+
var _dataRef$current$open, _refs$domReference$cu, _dataRef$current$open2;
|
|
5804
|
+
|
|
5805
|
+
if (blockFocusRef.current) {
|
|
5806
|
+
return;
|
|
5807
|
+
} // Dismiss with click should ignore the subsequent `focus` trigger, but
|
|
5808
|
+
// only if the click originated inside the reference element.
|
|
5809
|
+
|
|
5810
|
+
|
|
5811
|
+
if (event.type === 'focus' && ((_dataRef$current$open = dataRef.current.openEvent) == null ? void 0 : _dataRef$current$open.type) === 'mousedown' && (_refs$domReference$cu = refs.domReference.current) != null && _refs$domReference$cu.contains((_dataRef$current$open2 = dataRef.current.openEvent) == null ? void 0 : _dataRef$current$open2.target)) {
|
|
5812
|
+
return;
|
|
5813
|
+
}
|
|
5814
|
+
|
|
5815
|
+
dataRef.current.openEvent = event.nativeEvent;
|
|
5816
|
+
onOpenChange(true);
|
|
5817
|
+
},
|
|
5818
|
+
|
|
5819
|
+
onBlur(event) {
|
|
5820
|
+
const target = event.relatedTarget; // Wait for the window blur listener to fire.
|
|
5821
|
+
|
|
5822
|
+
timeoutRef.current = setTimeout(() => {
|
|
5823
|
+
var _refs$floating$curren, _refs$domReference$cu2;
|
|
5824
|
+
|
|
5825
|
+
// When focusing the reference element (e.g. regular click), then
|
|
5826
|
+
// clicking into the floating element, prevent it from hiding.
|
|
5827
|
+
// Note: it must be focusable, e.g. `tabindex="-1"`.
|
|
5828
|
+
if ((_refs$floating$curren = refs.floating.current) != null && _refs$floating$curren.contains(target) || (_refs$domReference$cu2 = refs.domReference.current) != null && _refs$domReference$cu2.contains(target)) {
|
|
5829
|
+
return;
|
|
5830
|
+
}
|
|
5831
|
+
|
|
5832
|
+
blockFocusRef.current = false;
|
|
5833
|
+
onOpenChange(false);
|
|
5834
|
+
});
|
|
5835
|
+
}
|
|
5836
|
+
|
|
5837
|
+
}
|
|
5838
|
+
};
|
|
5839
|
+
};
|
|
5840
|
+
|
|
5262
5841
|
const ARROW_UP = 'ArrowUp';
|
|
5263
5842
|
const ARROW_DOWN = 'ArrowDown';
|
|
5264
5843
|
const ARROW_LEFT = 'ArrowLeft';
|
|
@@ -34227,8 +34806,8 @@ DatePicker.defaultProps = {
|
|
|
34227
34806
|
onClear: function onClear() {}
|
|
34228
34807
|
};
|
|
34229
34808
|
|
|
34230
|
-
var css$z = ".
|
|
34231
|
-
var modules_6d03d164 = {"root":"
|
|
34809
|
+
var css$z = ".HierarchyItem_module_root__c993ecd0 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n flex: 1;\n}\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_header__c993ecd0 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n gap: 0.25rem;\n min-height: 2rem;\n height: auto;\n padding: 0rem 0.5rem;\n cursor: pointer;\n}\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_header__c993ecd0 > [data-elem=component1], .HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_header__c993ecd0 > [data-elem=component3] {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_header__c993ecd0 > [data-elem=component1] .HierarchyItem_module_expand__c993ecd0, .HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_header__c993ecd0 > [data-elem=component3] .HierarchyItem_module_expand__c993ecd0 {\n padding: 0;\n height: auto;\n width: 1rem;\n height: 1rem;\n}\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_header__c993ecd0 > [data-elem=component1] .HierarchyItem_module_expand__c993ecd0 .HierarchyItem_module_icon__c993ecd0, .HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_header__c993ecd0 > [data-elem=component3] .HierarchyItem_module_expand__c993ecd0 .HierarchyItem_module_icon__c993ecd0 {\n transform: rotate(-90deg);\n width: 1rem;\n height: 1rem;\n}\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_header__c993ecd0 > [data-elem=component2] {\n flex: 1 1 auto;\n}\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_header__c993ecd0 > [data-elem=component2] .HierarchyItem_module_title__c993ecd0 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n width: 100%;\n height: auto;\n padding: 0.25rem 0rem;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_header__c993ecd0:hover {\n background: var(--background);\n}\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_header__c993ecd0:hover .HierarchyItem_module_icon__c993ecd0,\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_header__c993ecd0:hover .HierarchyItem_module_title__c993ecd0,\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_header__c993ecd0:hover .HierarchyItem_module_title__c993ecd0 svg {\n color: var(--highlight);\n fill: var(--highlight);\n}\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_body__c993ecd0 {\n display: none;\n flex: 1 0 auto;\n padding: 0px 0rem 0px 0.25rem;\n}\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_body__c993ecd0 > [data-elem=component1] {\n flex: 0 0 1.6rem;\n}\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_body__c993ecd0 > [data-elem=component1] .HierarchyItem_module_tail__c993ecd0 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n width: 1.6rem;\n height: 100%;\n}\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_body__c993ecd0 > [data-elem=component1] .HierarchyItem_module_tail__c993ecd0::after {\n content: \"\";\n display: block;\n margin: auto;\n width: 1px;\n flex: 1;\n background: var(--grey1);\n}\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_body__c993ecd0 > [data-elem=component2] {\n flex: 1 0 auto;\n}\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_body__c993ecd0 > [data-elem=component2] .HierarchyItem_module_children__c993ecd0 {\n flex: 1 0 auto;\n}\n.HierarchyItem_module_root__c993ecd0.HierarchyItem_module_open__c993ecd0 > .HierarchyItem_module_header__c993ecd0 .HierarchyItem_module_expand__c993ecd0 .HierarchyItem_module_icon__c993ecd0 {\n transform: none;\n}\n.HierarchyItem_module_root__c993ecd0.HierarchyItem_module_open__c993ecd0 > .HierarchyItem_module_body__c993ecd0 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: stretch;\n gap: 0.25rem;\n height: auto;\n}";
|
|
34810
|
+
var modules_6d03d164 = {"root":"HierarchyItem_module_root__c993ecd0","header":"HierarchyItem_module_header__c993ecd0","expand":"HierarchyItem_module_expand__c993ecd0","icon":"HierarchyItem_module_icon__c993ecd0","title":"HierarchyItem_module_title__c993ecd0","body":"HierarchyItem_module_body__c993ecd0","tail":"HierarchyItem_module_tail__c993ecd0","children":"HierarchyItem_module_children__c993ecd0","open":"HierarchyItem_module_open__c993ecd0"};
|
|
34232
34811
|
n(css$z,{});
|
|
34233
34812
|
|
|
34234
34813
|
var HierarchyItem = function HierarchyItem(props) {
|
|
@@ -34236,37 +34815,64 @@ var HierarchyItem = function HierarchyItem(props) {
|
|
|
34236
34815
|
iconPlacement = props.iconPlacement,
|
|
34237
34816
|
title = props.title,
|
|
34238
34817
|
children = props.children,
|
|
34239
|
-
_onClick = props.onClick
|
|
34818
|
+
_onClick = props.onClick,
|
|
34819
|
+
onDoubleClick = props.onDoubleClick;
|
|
34240
34820
|
var _useState = React.useState(defaultOpen),
|
|
34241
34821
|
_useState2 = _slicedToArray(_useState, 2),
|
|
34242
34822
|
open = _useState2[0],
|
|
34243
34823
|
setOpen = _useState2[1];
|
|
34824
|
+
var icon = /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
34825
|
+
className: modules_6d03d164.expand,
|
|
34826
|
+
size: "auto",
|
|
34827
|
+
variant: "text",
|
|
34828
|
+
color: "default",
|
|
34829
|
+
onClick: function onClick() {
|
|
34830
|
+
setOpen(function (prevState) {
|
|
34831
|
+
var newState = !prevState;
|
|
34832
|
+
_onClick === null || _onClick === void 0 ? void 0 : _onClick(newState);
|
|
34833
|
+
onDoubleClick === null || onDoubleClick === void 0 ? void 0 : onDoubleClick(newState);
|
|
34834
|
+
return newState;
|
|
34835
|
+
});
|
|
34836
|
+
},
|
|
34837
|
+
leftComponent: function leftComponent() {
|
|
34838
|
+
return /*#__PURE__*/jsxRuntime.jsx(Caret, {
|
|
34839
|
+
className: modules_6d03d164.icon
|
|
34840
|
+
});
|
|
34841
|
+
}
|
|
34842
|
+
});
|
|
34244
34843
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
34245
34844
|
className: classes(modules_6d03d164.root, open ? modules_6d03d164.open : ''),
|
|
34246
34845
|
children: [/*#__PURE__*/jsxRuntime.jsx(BaseCell, {
|
|
34247
34846
|
flexible: true,
|
|
34248
34847
|
size: "auto",
|
|
34249
|
-
rootDOM: "button",
|
|
34250
34848
|
className: modules_6d03d164.header,
|
|
34251
|
-
|
|
34252
|
-
|
|
34253
|
-
setOpen(function (prevState) {
|
|
34254
|
-
var newState = !prevState;
|
|
34255
|
-
_onClick(newState);
|
|
34256
|
-
return newState;
|
|
34257
|
-
});
|
|
34258
|
-
}
|
|
34259
|
-
},
|
|
34260
|
-
component1: iconPlacement === 'left' && /*#__PURE__*/jsxRuntime.jsx(Caret, {
|
|
34261
|
-
className: modules_6d03d164.icon
|
|
34262
|
-
}),
|
|
34263
|
-
component2: /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
34849
|
+
component1: iconPlacement === 'left' && icon,
|
|
34850
|
+
component2: /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
34264
34851
|
className: modules_6d03d164.title,
|
|
34265
|
-
|
|
34852
|
+
flexible: true,
|
|
34853
|
+
size: "auto",
|
|
34854
|
+
variant: "text",
|
|
34855
|
+
color: "default",
|
|
34856
|
+
onClick: function onClick(event) {
|
|
34857
|
+
var detail = event.detail;
|
|
34858
|
+
|
|
34859
|
+
// single click
|
|
34860
|
+
if (detail === 1) {
|
|
34861
|
+
_onClick === null || _onClick === void 0 ? void 0 : _onClick(open);
|
|
34862
|
+
// double click
|
|
34863
|
+
} else if (detail === 2) {
|
|
34864
|
+
setOpen(function (prevState) {
|
|
34865
|
+
var newState = !prevState;
|
|
34866
|
+
onDoubleClick === null || onDoubleClick === void 0 ? void 0 : onDoubleClick(newState);
|
|
34867
|
+
return newState;
|
|
34868
|
+
});
|
|
34869
|
+
}
|
|
34870
|
+
},
|
|
34871
|
+
leftComponent: function leftComponent() {
|
|
34872
|
+
return title;
|
|
34873
|
+
}
|
|
34266
34874
|
}),
|
|
34267
|
-
component3: iconPlacement === 'right' &&
|
|
34268
|
-
className: modules_6d03d164.icon
|
|
34269
|
-
})
|
|
34875
|
+
component3: iconPlacement === 'right' && icon
|
|
34270
34876
|
}), /*#__PURE__*/jsxRuntime.jsx(BaseCell, {
|
|
34271
34877
|
size: "auto",
|
|
34272
34878
|
className: modules_6d03d164.body,
|
|
@@ -34324,6 +34930,7 @@ var HierarchyBrowser = function HierarchyBrowser(props) {
|
|
|
34324
34930
|
var className = props.className,
|
|
34325
34931
|
metadata = props.metadata,
|
|
34326
34932
|
onItemClick = props.onItemClick,
|
|
34933
|
+
onItemDoubleClick = props.onItemDoubleClick,
|
|
34327
34934
|
minWidth = props.minWidth,
|
|
34328
34935
|
maxWidth = props.maxWidth,
|
|
34329
34936
|
borderSize = props.borderSize,
|
|
@@ -34345,6 +34952,11 @@ var HierarchyBrowser = function HierarchyBrowser(props) {
|
|
|
34345
34952
|
onItemClick(item, pathString, open);
|
|
34346
34953
|
};
|
|
34347
34954
|
};
|
|
34955
|
+
var handleItemDoubleClick = function handleItemDoubleClick(item, pathString) {
|
|
34956
|
+
return function (open) {
|
|
34957
|
+
onItemDoubleClick(item, pathString, open);
|
|
34958
|
+
};
|
|
34959
|
+
};
|
|
34348
34960
|
var renderTree = function renderTree(data) {
|
|
34349
34961
|
var _data$list$map, _data$list, _data$list$map2;
|
|
34350
34962
|
var pathString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
@@ -34357,7 +34969,8 @@ var HierarchyBrowser = function HierarchyBrowser(props) {
|
|
|
34357
34969
|
item: data
|
|
34358
34970
|
}),
|
|
34359
34971
|
iconPlacement: hasChildren ? 'left' : 'none',
|
|
34360
|
-
onClick: handleItemClick(data, pathString)
|
|
34972
|
+
onClick: handleItemClick(data, pathString),
|
|
34973
|
+
onDoubleClick: handleItemDoubleClick(data, pathString)
|
|
34361
34974
|
}, setItemProps(data, pathString)), {}, {
|
|
34362
34975
|
children: hasChildren && ((_data$list$map = (_data$list = data.list) === null || _data$list === void 0 ? void 0 : (_data$list$map2 = _data$list.map) === null || _data$list$map2 === void 0 ? void 0 : _data$list$map2.call(_data$list, function (item, idx) {
|
|
34363
34976
|
return renderTree(item, "".concat(pathString).concat(pathString.length > 0 ? '.' : '', "list[").concat(idx, "]"));
|
|
@@ -34387,6 +35000,7 @@ HierarchyBrowser.propTypes = {
|
|
|
34387
35000
|
list: propTypes$1.exports.array
|
|
34388
35001
|
}),
|
|
34389
35002
|
onItemClick: propTypes$1.exports.func,
|
|
35003
|
+
onItemDoubleClick: propTypes$1.exports.func,
|
|
34390
35004
|
borderSize: propTypes$1.exports.number,
|
|
34391
35005
|
minWidth: propTypes$1.exports.number,
|
|
34392
35006
|
maxWidth: propTypes$1.exports.number,
|
|
@@ -34398,6 +35012,7 @@ HierarchyBrowser.defaultProps = {
|
|
|
34398
35012
|
className: '',
|
|
34399
35013
|
metadata: {},
|
|
34400
35014
|
onItemClick: function onItemClick() {},
|
|
35015
|
+
onItemDoubleClick: function onItemDoubleClick() {},
|
|
34401
35016
|
borderSize: 4,
|
|
34402
35017
|
minWidth: 220,
|
|
34403
35018
|
maxWidth: null,
|
|
@@ -36175,14 +36790,15 @@ var TableChipsSkeleton = function TableChipsSkeleton() {
|
|
|
36175
36790
|
});
|
|
36176
36791
|
};
|
|
36177
36792
|
|
|
36178
|
-
var css$e = ".
|
|
36179
|
-
var modules_016d9b3e = {"root":"
|
|
36793
|
+
var css$e = ".TableChips_module_root__dfc60d0e[data-elem=base-cell] {\n padding: 0.5rem 1.5rem;\n width: 100%;\n background: var(--grey8);\n border-radius: 0.25rem 0.25rem 0 0;\n}\n.TableChips_module_root__dfc60d0e[data-elem=base-cell] > [data-elem=component1] .TableChips_module_back__dfc60d0e {\n height: 2rem;\n width: 2rem;\n}\n.TableChips_module_root__dfc60d0e[data-elem=base-cell] > [data-elem=component1] .TableChips_module_back__dfc60d0e [data-elem=component1] .TableChips_module_icon__dfc60d0e {\n width: 1.5rem;\n height: 1.5rem;\n fill: var(--white);\n}\n.TableChips_module_root__dfc60d0e[data-elem=base-cell] > [data-elem=component2] {\n -ms-overflow-style: none;\n scrollbar-width: none;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n gap: 0.5rem;\n overflow-x: auto;\n flex: 1;\n}\n.TableChips_module_root__dfc60d0e[data-elem=base-cell] > [data-elem=component2]::-webkit-scrollbar {\n display: none;\n}\n.TableChips_module_root__dfc60d0e[data-elem=base-cell] > [data-elem=component2] .TableChips_module_chip__dfc60d0e .TableChips_module_chipIcon__dfc60d0e {\n width: 1rem;\n height: 1rem;\n}\n.TableChips_module_root__dfc60d0e[data-elem=base-cell] > [data-elem=component3] {\n height: 100%;\n}\n.TableChips_module_root__dfc60d0e[data-elem=base-cell] > [data-elem=component3] .TableChips_module_clear__dfc60d0e {\n height: 100%;\n}";
|
|
36794
|
+
var modules_016d9b3e = {"root":"TableChips_module_root__dfc60d0e","back":"TableChips_module_back__dfc60d0e","icon":"TableChips_module_icon__dfc60d0e","chip":"TableChips_module_chip__dfc60d0e","chip-icon":"TableChips_module_chipIcon__dfc60d0e","clear":"TableChips_module_clear__dfc60d0e"};
|
|
36180
36795
|
n(css$e,{});
|
|
36181
36796
|
|
|
36182
36797
|
var TableChips = function TableChips(props) {
|
|
36183
36798
|
var _chips$filter;
|
|
36184
36799
|
var showBack = props.showBack,
|
|
36185
36800
|
onBack = props.onBack,
|
|
36801
|
+
onClear = props.onClear,
|
|
36186
36802
|
chips = props.chips,
|
|
36187
36803
|
className = props.className,
|
|
36188
36804
|
style = props.style,
|
|
@@ -36230,7 +36846,20 @@ var TableChips = function TableChips(props) {
|
|
|
36230
36846
|
},
|
|
36231
36847
|
onClick: onBack
|
|
36232
36848
|
}),
|
|
36233
|
-
component2: (chipsDOM === null || chipsDOM === void 0 ? void 0 : chipsDOM.length) > 0 ? chipsDOM : null
|
|
36849
|
+
component2: (chipsDOM === null || chipsDOM === void 0 ? void 0 : chipsDOM.length) > 0 ? chipsDOM : null,
|
|
36850
|
+
component3: (chipsDOM === null || chipsDOM === void 0 ? void 0 : chipsDOM.length) > 0 ? /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
36851
|
+
size: "auto",
|
|
36852
|
+
variant: "outlined",
|
|
36853
|
+
color: "danger",
|
|
36854
|
+
title: "Clear All",
|
|
36855
|
+
className: modules_016d9b3e.clear,
|
|
36856
|
+
leftComponent: function leftComponent() {
|
|
36857
|
+
return /*#__PURE__*/jsxRuntime.jsx(Trash, {
|
|
36858
|
+
className: modules_016d9b3e.icon
|
|
36859
|
+
});
|
|
36860
|
+
},
|
|
36861
|
+
onClick: onClear
|
|
36862
|
+
}) : ''
|
|
36234
36863
|
});
|
|
36235
36864
|
}
|
|
36236
36865
|
return null;
|
|
@@ -36241,6 +36870,7 @@ TableChips.propTypes = {
|
|
|
36241
36870
|
style: propTypes$1.exports.object,
|
|
36242
36871
|
showBack: propTypes$1.exports.bool,
|
|
36243
36872
|
onBack: propTypes$1.exports.func,
|
|
36873
|
+
onClear: propTypes$1.exports.func,
|
|
36244
36874
|
chips: propTypes$1.exports.arrayOf(propTypes$1.exports.shape({
|
|
36245
36875
|
key: propTypes$1.exports.string,
|
|
36246
36876
|
icon: propTypes$1.exports.func,
|
|
@@ -36256,6 +36886,7 @@ TableChips.defaultProps = {
|
|
|
36256
36886
|
style: {},
|
|
36257
36887
|
showBack: false,
|
|
36258
36888
|
onBack: function onBack() {},
|
|
36889
|
+
onClear: function onClear() {},
|
|
36259
36890
|
chips: [],
|
|
36260
36891
|
loading: null
|
|
36261
36892
|
};
|
|
@@ -36357,8 +36988,8 @@ Popover.defaultProps = {
|
|
|
36357
36988
|
onClose: function onClose() {}
|
|
36358
36989
|
};
|
|
36359
36990
|
|
|
36360
|
-
var css$c = ".
|
|
36361
|
-
var modules_48c02c99 = {"popover":"
|
|
36991
|
+
var css$c = ".Columns_module_popover__078e5868 {\n height: 32rem;\n padding: 0;\n overflow: hidden;\n}\n\n.Columns_module_root__078e5868 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n position: relative;\n height: 100%;\n min-width: 18rem;\n max-width: 100%;\n}\n.Columns_module_root__078e5868 .Columns_module_header__078e5868 {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n border-bottom: 1px solid var(--grey4);\n padding: 0.75rem 2.5rem;\n}\n.Columns_module_root__078e5868 .Columns_module_header__078e5868 > [data-elem=component1] {\n font-weight: 500;\n}\n.Columns_module_root__078e5868 .Columns_module_header__078e5868 > [data-elem=component2] .Columns_module_close__078e5868 {\n height: auto;\n padding: 0;\n}\n.Columns_module_root__078e5868 .Columns_module_header__078e5868 > [data-elem=component2] .Columns_module_close__078e5868 .Columns_module_icon__078e5868 {\n width: 1rem;\n height: 1rem;\n}\n.Columns_module_root__078e5868 .Columns_module_body__078e5868 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n gap: 0.5rem;\n padding: 0.75rem 2.5rem;\n max-height: 28rem;\n overflow-y: auto;\n flex: 1 1 auto;\n}\n.Columns_module_root__078e5868 .Columns_module_body__078e5868 .Columns_module_search__078e5868 {\n position: -webkit-sticky;\n position: sticky;\n top: 0;\n}\n.Columns_module_root__078e5868 .Columns_module_body__078e5868 .Columns_module_columns__078e5868 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n gap: 0.5rem;\n overflow-y: auto;\n}\n.Columns_module_root__078e5868 .Columns_module_body__078e5868 .Columns_module_columns__078e5868 .Columns_module_item__078e5868 {\n height: 3rem;\n}\n.Columns_module_root__078e5868 .Columns_module_body__078e5868 .Columns_module_columns__078e5868 .Columns_module_item__078e5868 > [data-elem=title] {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n}\n.Columns_module_root__078e5868 .Columns_module_footer__078e5868 {\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n height: auto;\n margin-top: auto;\n padding: 0.5rem 2.5rem;\n border-top: 1px solid var(--grey4);\n}\n.Columns_module_root__078e5868 .Columns_module_footer__078e5868 button.Columns_module_expand__078e5868 {\n height: auto;\n background: var(--grey8);\n border: 1px solid var(--grey4);\n color: var(--black);\n}\n.Columns_module_root__078e5868 .Columns_module_footer__078e5868 button.Columns_module_expand__078e5868 .Columns_module_icon__078e5868 {\n width: 1.5rem;\n height: 1.5rem;\n transform: rotate(180deg);\n}\n.Columns_module_root__078e5868.Columns_module_expanded__078e5868 .Columns_module_body__078e5868 {\n flex: 0 1 auto;\n}\n.Columns_module_root__078e5868.Columns_module_expanded__078e5868 .Columns_module_body__078e5868 .Columns_module_columns__078e5868 {\n display: grid;\n grid-template-columns: 1fr 1fr;\n}\n.Columns_module_root__078e5868.Columns_module_expanded__078e5868 .Columns_module_body__078e5868 .Columns_module_columns__078e5868 .Columns_module_item__078e5868 {\n overflow: hidden;\n}\n.Columns_module_root__078e5868.Columns_module_expanded__078e5868 .Columns_module_footer__078e5868 button.Columns_module_expand__078e5868 .Columns_module_icon__078e5868 {\n transform: none;\n}";
|
|
36992
|
+
var modules_48c02c99 = {"popover":"Columns_module_popover__078e5868","root":"Columns_module_root__078e5868","header":"Columns_module_header__078e5868","close":"Columns_module_close__078e5868","icon":"Columns_module_icon__078e5868","body":"Columns_module_body__078e5868","search":"Columns_module_search__078e5868","columns":"Columns_module_columns__078e5868","item":"Columns_module_item__078e5868","footer":"Columns_module_footer__078e5868","expand":"Columns_module_expand__078e5868","expanded":"Columns_module_expanded__078e5868"};
|
|
36362
36993
|
n(css$c,{});
|
|
36363
36994
|
|
|
36364
36995
|
var Columns = function Columns(props) {
|
|
@@ -36387,61 +37018,68 @@ var Columns = function Columns(props) {
|
|
|
36387
37018
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
36388
37019
|
className: classes(modules_48c02c99.root, expanded ? modules_48c02c99.expanded : ''),
|
|
36389
37020
|
children: [/*#__PURE__*/jsxRuntime.jsx(BaseCell, {
|
|
37021
|
+
size: "auto",
|
|
36390
37022
|
className: modules_48c02c99.header,
|
|
36391
37023
|
component1: "Columns",
|
|
36392
|
-
component2: /*#__PURE__*/jsxRuntime.jsx(
|
|
37024
|
+
component2: /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
37025
|
+
className: modules_48c02c99.close,
|
|
37026
|
+
size: "auto",
|
|
37027
|
+
radius: "round",
|
|
37028
|
+
variant: "text",
|
|
37029
|
+
leftComponent: function leftComponent() {
|
|
37030
|
+
return /*#__PURE__*/jsxRuntime.jsx(Cross$1, {
|
|
37031
|
+
className: modules_48c02c99.icon
|
|
37032
|
+
});
|
|
37033
|
+
},
|
|
37034
|
+
onClick: function onClick() {
|
|
37035
|
+
setOpen(false);
|
|
37036
|
+
}
|
|
37037
|
+
})
|
|
37038
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
37039
|
+
className: modules_48c02c99.body,
|
|
37040
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(TextField, {
|
|
36393
37041
|
className: modules_48c02c99.search,
|
|
36394
|
-
placeholder: "Search
|
|
37042
|
+
placeholder: "Search",
|
|
36395
37043
|
value: search,
|
|
36396
37044
|
onChange: function onChange(e) {
|
|
36397
37045
|
var _inputHelper = inputHelper(e),
|
|
36398
37046
|
fieldValue = _inputHelper.fieldValue;
|
|
36399
37047
|
setSearch(fieldValue);
|
|
36400
37048
|
}
|
|
36401
|
-
})
|
|
36402
|
-
|
|
36403
|
-
|
|
36404
|
-
|
|
36405
|
-
|
|
36406
|
-
|
|
36407
|
-
|
|
36408
|
-
|
|
36409
|
-
|
|
36410
|
-
|
|
36411
|
-
|
|
36412
|
-
|
|
36413
|
-
|
|
36414
|
-
|
|
36415
|
-
|
|
36416
|
-
|
|
36417
|
-
|
|
36418
|
-
|
|
36419
|
-
return (col === null || col === void 0 ? void 0 : (_col$id = col.id) === null || _col$id === void 0 ? void 0 : _col$id.toLowerCase().indexOf(search === null || search === void 0 ? void 0 : search.toLowerCase())) !== -1 && search != null && search !== '' || search == null || search === '';
|
|
36420
|
-
}).map(function (col) {
|
|
36421
|
-
var selected = [null, false, undefined].includes(hiddenColumns === null || hiddenColumns === void 0 ? void 0 : hiddenColumns[col === null || col === void 0 ? void 0 : col.id]);
|
|
36422
|
-
return /*#__PURE__*/jsxRuntime.jsx(DropdownItem, {
|
|
36423
|
-
className: modules_48c02c99.item,
|
|
36424
|
-
selected: selected,
|
|
36425
|
-
title: col.title,
|
|
36426
|
-
variant: "checkbox",
|
|
36427
|
-
onClick: function onClick() {
|
|
36428
|
-
if (selected) {
|
|
36429
|
-
setHiddenColumns(_objectSpread2(_objectSpread2({}, hiddenColumns), {}, _defineProperty$1({}, col.id, true)));
|
|
36430
|
-
} else {
|
|
36431
|
-
setHiddenColumns(_objectSpread2(_objectSpread2({}, hiddenColumns), {}, _defineProperty$1({}, col.id, false)));
|
|
37049
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
37050
|
+
className: modules_48c02c99.columns,
|
|
37051
|
+
children: columns === null || columns === void 0 ? void 0 : columns.filter(function (col) {
|
|
37052
|
+
var _col$id;
|
|
37053
|
+
return (col === null || col === void 0 ? void 0 : (_col$id = col.id) === null || _col$id === void 0 ? void 0 : _col$id.toLowerCase().indexOf(search === null || search === void 0 ? void 0 : search.toLowerCase())) !== -1 && search != null && search !== '' || search == null || search === '';
|
|
37054
|
+
}).map(function (col) {
|
|
37055
|
+
var selected = [null, false, undefined].includes(hiddenColumns === null || hiddenColumns === void 0 ? void 0 : hiddenColumns[col === null || col === void 0 ? void 0 : col.id]);
|
|
37056
|
+
return /*#__PURE__*/jsxRuntime.jsx(DropdownItem, {
|
|
37057
|
+
className: modules_48c02c99.item,
|
|
37058
|
+
selected: selected,
|
|
37059
|
+
title: col.title,
|
|
37060
|
+
variant: "checkbox",
|
|
37061
|
+
onClick: function onClick() {
|
|
37062
|
+
if (selected) {
|
|
37063
|
+
setHiddenColumns(_objectSpread2(_objectSpread2({}, hiddenColumns), {}, _defineProperty$1({}, col.id, true)));
|
|
37064
|
+
} else {
|
|
37065
|
+
setHiddenColumns(_objectSpread2(_objectSpread2({}, hiddenColumns), {}, _defineProperty$1({}, col.id, false)));
|
|
37066
|
+
}
|
|
36432
37067
|
}
|
|
36433
|
-
}
|
|
36434
|
-
}
|
|
36435
|
-
})
|
|
37068
|
+
}, col.id);
|
|
37069
|
+
})
|
|
37070
|
+
})]
|
|
36436
37071
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
36437
37072
|
className: modules_48c02c99.footer,
|
|
36438
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
37073
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
36439
37074
|
className: modules_48c02c99.expand,
|
|
36440
|
-
size: "sm",
|
|
36441
|
-
radius: "ellipse",
|
|
36442
37075
|
color: "default",
|
|
36443
37076
|
title: expanded ? 'See Less' : 'See More',
|
|
36444
|
-
rightComponent: function
|
|
37077
|
+
rightComponent: !expanded && function () {
|
|
37078
|
+
return /*#__PURE__*/jsxRuntime.jsx(AngleDouble, {
|
|
37079
|
+
className: modules_48c02c99.icon
|
|
37080
|
+
});
|
|
37081
|
+
},
|
|
37082
|
+
leftComponent: expanded && function () {
|
|
36445
37083
|
return /*#__PURE__*/jsxRuntime.jsx(AngleDouble, {
|
|
36446
37084
|
className: modules_48c02c99.icon
|
|
36447
37085
|
});
|
|
@@ -36457,12 +37095,12 @@ var Columns = function Columns(props) {
|
|
|
36457
37095
|
});
|
|
36458
37096
|
};
|
|
36459
37097
|
|
|
36460
|
-
var css$b = ".
|
|
36461
|
-
var modules_a0fe63f9 = {"root":"
|
|
37098
|
+
var css$b = ".TableFilters_module_root__3c1e35fb[data-elem=base-cell] {\n -ms-overflow-style: none;\n scrollbar-width: none;\n overflow-x: auto;\n padding: 0.5rem;\n gap: 1.25rem;\n width: 100%;\n}\n.TableFilters_module_root__3c1e35fb[data-elem=base-cell]::-webkit-scrollbar {\n display: none;\n}\n.TableFilters_module_root__3c1e35fb[data-elem=base-cell] .TableFilters_module_icon__3c1e35fb {\n width: 1.5rem;\n height: 1.5rem;\n flex-shrink: 0;\n}\n.TableFilters_module_root__3c1e35fb[data-elem=base-cell] button.TableFilters_module_iconButton__3c1e35fb {\n height: 100%;\n background: var(--grey8);\n border: 1px solid var(--grey4);\n color: var(--black);\n}\n.TableFilters_module_root__3c1e35fb[data-elem=base-cell] > [data-elem*=component] {\n height: 100%;\n}\n.TableFilters_module_root__3c1e35fb[data-elem=base-cell] .TableFilters_module_left__3c1e35fb,\n.TableFilters_module_root__3c1e35fb[data-elem=base-cell] .TableFilters_module_center__3c1e35fb,\n.TableFilters_module_root__3c1e35fb[data-elem=base-cell] .TableFilters_module_right__3c1e35fb {\n height: 100%;\n}\n.TableFilters_module_root__3c1e35fb[data-elem=base-cell] > [data-elem=component1] .TableFilters_module_left__3c1e35fb {\n gap: 1rem;\n background: var(--grey8);\n border: 1px solid var(--grey4);\n color: var(--black);\n}\n.TableFilters_module_root__3c1e35fb[data-elem=base-cell] > [data-elem=component1] .TableFilters_module_left__3c1e35fb [data-elem=left] {\n gap: 1rem;\n}\n.TableFilters_module_root__3c1e35fb[data-elem=base-cell] > [data-elem=component1] .TableFilters_module_left__3c1e35fb .TableFilters_module_icon__3c1e35fb {\n fill: var(--black);\n}\n.TableFilters_module_root__3c1e35fb[data-elem=base-cell] > [data-elem=component1] .TableFilters_module_left__3c1e35fb .TableFilters_module_filterValue__3c1e35fb {\n color: var(--white);\n background: var(--highlight);\n padding: 0.125rem 0.5rem;\n border-radius: 50%;\n font-size: 0.813rem;\n}\n.TableFilters_module_root__3c1e35fb[data-elem=base-cell] > [data-elem=component2] {\n flex: 1;\n}\n.TableFilters_module_root__3c1e35fb[data-elem=base-cell] > [data-elem=component2] .TableFilters_module_center__3c1e35fb {\n width: 100%;\n}\n.TableFilters_module_root__3c1e35fb[data-elem=base-cell] > [data-elem=component2] .TableFilters_module_center__3c1e35fb [data-elem=base-cell] {\n border-color: var(--grey4);\n}\n.TableFilters_module_root__3c1e35fb[data-elem=base-cell] > [data-elem=component2] .TableFilters_module_center__3c1e35fb .TableFilters_module_icon__3c1e35fb {\n width: 1.25rem;\n}\n.TableFilters_module_root__3c1e35fb[data-elem=base-cell] .TableFilters_module_right__3c1e35fb {\n width: auto;\n padding: 0;\n min-width: 0rem;\n gap: 0.5rem;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n}\n.TableFilters_module_root__3c1e35fb[data-elem=base-cell] .TableFilters_module_right__3c1e35fb > [data-elem*=component] {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n height: 100%;\n}";
|
|
37099
|
+
var modules_a0fe63f9 = {"root":"TableFilters_module_root__3c1e35fb","icon":"TableFilters_module_icon__3c1e35fb","icon-button":"TableFilters_module_iconButton__3c1e35fb","left":"TableFilters_module_left__3c1e35fb","center":"TableFilters_module_center__3c1e35fb","right":"TableFilters_module_right__3c1e35fb","filter-value":"TableFilters_module_filterValue__3c1e35fb"};
|
|
36462
37100
|
n(css$b,{});
|
|
36463
37101
|
|
|
36464
|
-
var css$a = ".
|
|
36465
|
-
var modules_37a5ff73 = {"root":"
|
|
37102
|
+
var css$a = ".Skeleton_module_root__bdc934d4[data-elem=base-cell] {\n width: 100%;\n gap: 1.25rem;\n}\n.Skeleton_module_root__bdc934d4[data-elem=base-cell] > [data-elem=component1] {\n flex: 1;\n}\n.Skeleton_module_root__bdc934d4[data-elem=base-cell] > [data-elem=component2] {\n flex: 6;\n}\n.Skeleton_module_root__bdc934d4[data-elem=base-cell] > [data-elem=component3] {\n flex: 3;\n}\n.Skeleton_module_root__bdc934d4[data-elem=base-cell] > [data-elem=component3] > [data-elem=base-cell] {\n padding: 0;\n align-items: flex-start;\n height: auto;\n}\n.Skeleton_module_root__bdc934d4[data-elem=base-cell] > [data-elem=component3] > [data-elem=base-cell] > [data-elem*=component] {\n flex: 1;\n}\n.Skeleton_module_root__bdc934d4[data-elem=base-cell] > [data-elem=component3] > [data-elem=base-cell] > [data-elem*=component] > [data-elem=skeleton] {\n height: 1.5rem;\n}";
|
|
37103
|
+
var modules_37a5ff73 = {"root":"Skeleton_module_root__bdc934d4"};
|
|
36466
37104
|
n(css$a,{});
|
|
36467
37105
|
|
|
36468
37106
|
var TableFiltersSkeleton = function TableFiltersSkeleton() {
|
|
@@ -36476,16 +37114,15 @@ var TableFiltersSkeleton = function TableFiltersSkeleton() {
|
|
|
36476
37114
|
className: modules_37a5ff73.search
|
|
36477
37115
|
}),
|
|
36478
37116
|
component3: /*#__PURE__*/jsxRuntime.jsx(BaseCell, {
|
|
37117
|
+
flexible: true,
|
|
37118
|
+
size: "auto",
|
|
36479
37119
|
component1: /*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
36480
|
-
variant: "circle",
|
|
36481
37120
|
className: modules_37a5ff73.columns
|
|
36482
37121
|
}),
|
|
36483
37122
|
component2: /*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
36484
|
-
variant: "circle",
|
|
36485
37123
|
className: modules_37a5ff73.refresh
|
|
36486
37124
|
}),
|
|
36487
37125
|
component3: /*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
36488
|
-
variant: "circle",
|
|
36489
37126
|
className: modules_37a5ff73.settings
|
|
36490
37127
|
})
|
|
36491
37128
|
})
|
|
@@ -36566,12 +37203,13 @@ var TableFilters = function TableFilters(props) {
|
|
|
36566
37203
|
},
|
|
36567
37204
|
size: "auto",
|
|
36568
37205
|
className: modules_a0fe63f9['icon-button'],
|
|
36569
|
-
|
|
37206
|
+
color: "default",
|
|
36570
37207
|
leftComponent: function leftComponent() {
|
|
36571
37208
|
return /*#__PURE__*/jsxRuntime.jsx(Columns$1, {
|
|
36572
37209
|
className: modules_a0fe63f9.icon
|
|
36573
37210
|
});
|
|
36574
37211
|
},
|
|
37212
|
+
title: "Columns",
|
|
36575
37213
|
onClick: function onClick() {
|
|
36576
37214
|
setOpenColumns(function (prev) {
|
|
36577
37215
|
return !prev;
|
|
@@ -36589,7 +37227,8 @@ var TableFilters = function TableFilters(props) {
|
|
|
36589
37227
|
component2: !disabledRefresh && /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
36590
37228
|
size: "auto",
|
|
36591
37229
|
className: modules_a0fe63f9['icon-button'],
|
|
36592
|
-
|
|
37230
|
+
color: "default",
|
|
37231
|
+
title: "Refresh",
|
|
36593
37232
|
onClick: onRefresh,
|
|
36594
37233
|
leftComponent: function leftComponent() {
|
|
36595
37234
|
return /*#__PURE__*/jsxRuntime.jsx(Refresh, {
|
|
@@ -36600,9 +37239,10 @@ var TableFilters = function TableFilters(props) {
|
|
|
36600
37239
|
component3: !disabledSettings && /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
36601
37240
|
size: "auto",
|
|
36602
37241
|
className: modules_a0fe63f9['icon-button'],
|
|
36603
|
-
|
|
37242
|
+
color: "default",
|
|
37243
|
+
title: "Settings",
|
|
36604
37244
|
leftComponent: function leftComponent() {
|
|
36605
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
37245
|
+
return /*#__PURE__*/jsxRuntime.jsx(Settings, {
|
|
36606
37246
|
className: modules_a0fe63f9.icon
|
|
36607
37247
|
});
|
|
36608
37248
|
}
|
|
@@ -36620,7 +37260,13 @@ TableFilters.propTypes = {
|
|
|
36620
37260
|
filterValue: propTypes$1.exports.shape({
|
|
36621
37261
|
applied: propTypes$1.exports.number
|
|
36622
37262
|
}),
|
|
36623
|
-
loading: propTypes$1.exports.bool
|
|
37263
|
+
loading: propTypes$1.exports.bool,
|
|
37264
|
+
disabledFilterOptions: propTypes$1.exports.shape({
|
|
37265
|
+
filterButton: propTypes$1.exports.bool,
|
|
37266
|
+
refresh: propTypes$1.exports.bool,
|
|
37267
|
+
columnFilter: propTypes$1.exports.bool,
|
|
37268
|
+
settings: propTypes$1.exports.bool
|
|
37269
|
+
})
|
|
36624
37270
|
};
|
|
36625
37271
|
TableFilters.defaultProps = {
|
|
36626
37272
|
className: '',
|
|
@@ -36631,7 +37277,13 @@ TableFilters.defaultProps = {
|
|
|
36631
37277
|
filterValue: {
|
|
36632
37278
|
applied: null
|
|
36633
37279
|
},
|
|
36634
|
-
loading: null
|
|
37280
|
+
loading: null,
|
|
37281
|
+
disabledFilterOptions: {
|
|
37282
|
+
filterButton: false,
|
|
37283
|
+
refresh: false,
|
|
37284
|
+
columnFilter: false,
|
|
37285
|
+
settings: false
|
|
37286
|
+
}
|
|
36635
37287
|
};
|
|
36636
37288
|
|
|
36637
37289
|
var css$9 = ".Table_module_root__d17cb64f {\n position: relative;\n border-style: solid;\n border-color: var(--grey4);\n border-width: 1px 1px 0px 1px;\n border-radius: 0.25rem;\n width: 100%;\n max-width: 100%;\n height: 100%;\n overflow: hidden;\n}\n.Table_module_root__d17cb64f .Table_module_table__d17cb64f {\n height: calc(100% - 6rem);\n padding-bottom: 3.5rem;\n}\n.Table_module_root__d17cb64f .Table_module_pagination__d17cb64f {\n position: absolute;\n bottom: 0;\n left: 50%;\n transform: translateX(-50%);\n}\n.Table_module_root__d17cb64f .Table_module_pagination__d17cb64f.Table_module_floating__d17cb64f {\n bottom: 1rem;\n}\n.Table_module_root__d17cb64f .Table_module_chips__d17cb64f,\n.Table_module_root__d17cb64f .Table_module_filters__d17cb64f,\n.Table_module_root__d17cb64f .Table_module_table__d17cb64f > [data-elem=table-header] {\n position: -webkit-sticky;\n position: sticky;\n z-index: 1;\n top: 0;\n}";
|
|
@@ -36816,17 +37468,14 @@ Table.defaultProps = {
|
|
|
36816
37468
|
}
|
|
36817
37469
|
};
|
|
36818
37470
|
|
|
36819
|
-
var css$8 = ".
|
|
36820
|
-
var modules_78ab5066 = {"root":"
|
|
37471
|
+
var css$8 = ".Tabs_module_root__83feec3e {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n}\n.Tabs_module_root__83feec3e > .Tabs_module_tab__83feec3e {\n padding: 0.75rem;\n gap: 0.75rem;\n}\n.Tabs_module_root__83feec3e > .Tabs_module_tab__83feec3e > [data-elem=component1] > .Tabs_module_icon__83feec3e,\n.Tabs_module_root__83feec3e > .Tabs_module_tab__83feec3e > [data-elem=component3] > .Tabs_module_icon__83feec3e {\n width: 1.5rem;\n height: 1.5rem;\n fill: var(--black);\n}\n.Tabs_module_root__83feec3e > .Tabs_module_tab__83feec3e > [data-elem=component2] {\n color: var(--black);\n}\n.Tabs_module_root__83feec3e > .Tabs_module_tab__83feec3e.Tabs_module_active__83feec3e {\n border-bottom: 2px solid var(--highlight);\n}\n.Tabs_module_root__83feec3e > .Tabs_module_tab__83feec3e.Tabs_module_active__83feec3e > [data-elem=component1] > .Tabs_module_icon__83feec3e,\n.Tabs_module_root__83feec3e > .Tabs_module_tab__83feec3e.Tabs_module_active__83feec3e > [data-elem=component3] > .Tabs_module_icon__83feec3e {\n fill: var(--highlight);\n}\n.Tabs_module_root__83feec3e > .Tabs_module_tab__83feec3e.Tabs_module_active__83feec3e > [data-elem=component2] {\n color: var(--highlight);\n}\n.Tabs_module_root__83feec3e > .Tabs_module_tab__83feec3e:hover {\n background: var(--info-bg);\n}\n.Tabs_module_root__83feec3e > .Tabs_module_tab__83feec3e:hover > [data-elem=component1] > .Tabs_module_icon__83feec3e,\n.Tabs_module_root__83feec3e > .Tabs_module_tab__83feec3e:hover > [data-elem=component3] > .Tabs_module_icon__83feec3e {\n fill: var(--highlight);\n}\n.Tabs_module_root__83feec3e > .Tabs_module_tab__83feec3e:hover > [data-elem=component2] {\n color: var(--highlight);\n}";
|
|
37472
|
+
var modules_78ab5066 = {"root":"Tabs_module_root__83feec3e","tab":"Tabs_module_tab__83feec3e","icon":"Tabs_module_icon__83feec3e","active":"Tabs_module_active__83feec3e"};
|
|
36821
37473
|
n(css$8,{});
|
|
36822
37474
|
|
|
36823
37475
|
var Tabs = function Tabs(props) {
|
|
36824
37476
|
var tabs = props.tabs,
|
|
36825
37477
|
selectedTab = props.selectedTab,
|
|
36826
37478
|
setSelectedTab = props.setSelectedTab;
|
|
36827
|
-
var tabViewClassName = function tabViewClassName(id) {
|
|
36828
|
-
return id === selectedTab ? "".concat(modules_78ab5066['tab-view-selected']) : "".concat(modules_78ab5066['tab-view']);
|
|
36829
|
-
};
|
|
36830
37479
|
var onTabClick = function onTabClick(id) {
|
|
36831
37480
|
setSelectedTab(id);
|
|
36832
37481
|
};
|
|
@@ -36837,44 +37486,27 @@ var Tabs = function Tabs(props) {
|
|
|
36837
37486
|
title = tab.title,
|
|
36838
37487
|
LeftIcon = tab.leftIcon,
|
|
36839
37488
|
RightIcon = tab.rightIcon;
|
|
36840
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
37489
|
+
return /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
37490
|
+
size: "auto",
|
|
37491
|
+
color: "default",
|
|
37492
|
+
radius: "none",
|
|
37493
|
+
variant: "text",
|
|
36841
37494
|
onClick: function onClick() {
|
|
36842
|
-
|
|
37495
|
+
onTabClick(id);
|
|
36843
37496
|
},
|
|
36844
|
-
|
|
36845
|
-
|
|
36846
|
-
|
|
36847
|
-
|
|
36848
|
-
className: modules_78ab5066.
|
|
36849
|
-
|
|
36850
|
-
|
|
36851
|
-
|
|
36852
|
-
|
|
36853
|
-
|
|
36854
|
-
|
|
36855
|
-
|
|
36856
|
-
|
|
36857
|
-
})
|
|
36858
|
-
})
|
|
36859
|
-
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
36860
|
-
style: {
|
|
36861
|
-
paddingRight: !RightIcon ? 8 : 0
|
|
36862
|
-
},
|
|
36863
|
-
children: title
|
|
36864
|
-
})]
|
|
36865
|
-
}), RightIcon && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
36866
|
-
className: modules_78ab5066.right,
|
|
36867
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("vl", {
|
|
36868
|
-
className: modules_78ab5066.saperator
|
|
36869
|
-
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
36870
|
-
className: modules_78ab5066['icon-container'],
|
|
36871
|
-
children: /*#__PURE__*/jsxRuntime.jsx(RightIcon, {
|
|
36872
|
-
className: classes(modules_78ab5066.icon)
|
|
36873
|
-
})
|
|
36874
|
-
})]
|
|
36875
|
-
})]
|
|
36876
|
-
})
|
|
36877
|
-
}, tab);
|
|
37497
|
+
title: title,
|
|
37498
|
+
className: classes(modules_78ab5066.tab, selectedTab === id ? modules_78ab5066.active : ''),
|
|
37499
|
+
leftComponent: LeftIcon && function () {
|
|
37500
|
+
return /*#__PURE__*/jsxRuntime.jsx(LeftIcon, {
|
|
37501
|
+
className: modules_78ab5066.icon
|
|
37502
|
+
});
|
|
37503
|
+
},
|
|
37504
|
+
rightComponent: RightIcon && function () {
|
|
37505
|
+
return /*#__PURE__*/jsxRuntime.jsx(RightIcon, {
|
|
37506
|
+
className: modules_78ab5066.icon
|
|
37507
|
+
});
|
|
37508
|
+
}
|
|
37509
|
+
}, id);
|
|
36878
37510
|
})
|
|
36879
37511
|
});
|
|
36880
37512
|
};
|
|
@@ -36909,92 +37541,102 @@ Tabs.defaultProps = {
|
|
|
36909
37541
|
setSelectedTab: 'None'
|
|
36910
37542
|
};
|
|
36911
37543
|
|
|
36912
|
-
|
|
36913
|
-
|
|
37544
|
+
function o(f){return r=>{f.forEach(n=>{typeof n=="function"?n(r):n!=null&&(n.current=r);});}}
|
|
37545
|
+
|
|
37546
|
+
var css$7 = ".Tooltip_module_tooltip__1cb07177 {\n text-align: center;\n position: fixed;\n border-radius: 0.25rem;\n min-width: auto;\n max-width: 12rem;\n padding: 0.375rem;\n font-size: 0.875rem;\n font-family: sans-serif;\n line-height: 1;\n}\n.Tooltip_module_tooltip__1cb07177.Tooltip_module_light__1cb07177 {\n color: var(--black);\n background: var(--grey7);\n border-color: var(--black);\n}\n.Tooltip_module_tooltip__1cb07177.Tooltip_module_light__1cb07177 .Tooltip_module_arrow__1cb07177 {\n background: var(--grey7);\n}\n.Tooltip_module_tooltip__1cb07177.Tooltip_module_dark__1cb07177 {\n color: var(--white);\n background: var(--black);\n border-color: var(--white);\n}\n.Tooltip_module_tooltip__1cb07177.Tooltip_module_dark__1cb07177 .Tooltip_module_arrow__1cb07177 {\n background: var(--black);\n}\n.Tooltip_module_tooltip__1cb07177 .Tooltip_module_arrow__1cb07177 {\n position: absolute;\n width: 1rem;\n height: 1rem;\n z-index: -1;\n pointer-events: none;\n transform: rotate(45deg);\n}";
|
|
37547
|
+
var modules_e4619b04 = {"tooltip":"Tooltip_module_tooltip__1cb07177","light":"Tooltip_module_light__1cb07177","arrow":"Tooltip_module_arrow__1cb07177","dark":"Tooltip_module_dark__1cb07177"};
|
|
36914
37548
|
n(css$7,{});
|
|
36915
37549
|
|
|
36916
|
-
var
|
|
36917
|
-
var
|
|
36918
|
-
var position = _ref.position,
|
|
36919
|
-
anchor = _ref.anchor,
|
|
36920
|
-
content = _ref.content;
|
|
36921
|
-
var style = {
|
|
36922
|
-
width: "calc(".concat(content.length / 2, "rem + 0.75rem)")
|
|
36923
|
-
};
|
|
36924
|
-
switch (position) {
|
|
36925
|
-
case 'top':
|
|
36926
|
-
return _objectSpread2(_objectSpread2({}, style), {}, {
|
|
36927
|
-
top: "calc(".concat((_anchor$current$getBo = anchor === null || anchor === void 0 ? void 0 : (_anchor$current = anchor.current) === null || _anchor$current === void 0 ? void 0 : (_anchor$current$getBo2 = _anchor$current.getBoundingClientRect) === null || _anchor$current$getBo2 === void 0 ? void 0 : (_anchor$current$getBo3 = _anchor$current$getBo2.call(_anchor$current)) === null || _anchor$current$getBo3 === void 0 ? void 0 : _anchor$current$getBo3.top) !== null && _anchor$current$getBo !== void 0 ? _anchor$current$getBo : 0, "px - 0.375rem)"),
|
|
36928
|
-
left: "calc(".concat(((_anchor$current$getBo4 = anchor === null || anchor === void 0 ? void 0 : (_anchor$current2 = anchor.current) === null || _anchor$current2 === void 0 ? void 0 : (_anchor$current2$getB = _anchor$current2.getBoundingClientRect) === null || _anchor$current2$getB === void 0 ? void 0 : (_anchor$current2$getB2 = _anchor$current2$getB.call(_anchor$current2)) === null || _anchor$current2$getB2 === void 0 ? void 0 : _anchor$current2$getB2.left) !== null && _anchor$current$getBo4 !== void 0 ? _anchor$current$getBo4 : 0) + ((_anchor$current$getBo5 = anchor === null || anchor === void 0 ? void 0 : (_anchor$current3 = anchor.current) === null || _anchor$current3 === void 0 ? void 0 : (_anchor$current3$getB = _anchor$current3.getBoundingClientRect) === null || _anchor$current3$getB === void 0 ? void 0 : (_anchor$current3$getB2 = _anchor$current3$getB.call(_anchor$current3)) === null || _anchor$current3$getB2 === void 0 ? void 0 : _anchor$current3$getB2.width) !== null && _anchor$current$getBo5 !== void 0 ? _anchor$current$getBo5 : 0) / 2, "px"),
|
|
36929
|
-
transform: 'translate(-50%, -100%)'
|
|
36930
|
-
});
|
|
36931
|
-
case 'bottom':
|
|
36932
|
-
return _objectSpread2(_objectSpread2({}, style), {}, {
|
|
36933
|
-
top: "calc(".concat((_anchor$current$getBo6 = anchor === null || anchor === void 0 ? void 0 : (_anchor$current4 = anchor.current) === null || _anchor$current4 === void 0 ? void 0 : (_anchor$current4$getB = _anchor$current4.getBoundingClientRect) === null || _anchor$current4$getB === void 0 ? void 0 : (_anchor$current4$getB2 = _anchor$current4$getB.call(_anchor$current4)) === null || _anchor$current4$getB2 === void 0 ? void 0 : _anchor$current4$getB2.bottom) !== null && _anchor$current$getBo6 !== void 0 ? _anchor$current$getBo6 : 0, "px + 0.375rem)"),
|
|
36934
|
-
left: "calc(".concat(((_anchor$current$getBo7 = anchor === null || anchor === void 0 ? void 0 : (_anchor$current5 = anchor.current) === null || _anchor$current5 === void 0 ? void 0 : (_anchor$current5$getB = _anchor$current5.getBoundingClientRect) === null || _anchor$current5$getB === void 0 ? void 0 : (_anchor$current5$getB2 = _anchor$current5$getB.call(_anchor$current5)) === null || _anchor$current5$getB2 === void 0 ? void 0 : _anchor$current5$getB2.left) !== null && _anchor$current$getBo7 !== void 0 ? _anchor$current$getBo7 : 0) + ((_anchor$current$getBo8 = anchor === null || anchor === void 0 ? void 0 : (_anchor$current6 = anchor.current) === null || _anchor$current6 === void 0 ? void 0 : (_anchor$current6$getB = _anchor$current6.getBoundingClientRect) === null || _anchor$current6$getB === void 0 ? void 0 : (_anchor$current6$getB2 = _anchor$current6$getB.call(_anchor$current6)) === null || _anchor$current6$getB2 === void 0 ? void 0 : _anchor$current6$getB2.width) !== null && _anchor$current$getBo8 !== void 0 ? _anchor$current$getBo8 : 0) / 2, "px"),
|
|
36935
|
-
transform: 'translate(-50%, 0%)'
|
|
36936
|
-
});
|
|
36937
|
-
case 'left':
|
|
36938
|
-
return _objectSpread2(_objectSpread2({}, style), {}, {
|
|
36939
|
-
top: "calc(".concat(((_anchor$current$getBo9 = anchor === null || anchor === void 0 ? void 0 : (_anchor$current7 = anchor.current) === null || _anchor$current7 === void 0 ? void 0 : (_anchor$current7$getB = _anchor$current7.getBoundingClientRect) === null || _anchor$current7$getB === void 0 ? void 0 : (_anchor$current7$getB2 = _anchor$current7$getB.call(_anchor$current7)) === null || _anchor$current7$getB2 === void 0 ? void 0 : _anchor$current7$getB2.top) !== null && _anchor$current$getBo9 !== void 0 ? _anchor$current$getBo9 : 0) + ((_anchor$current$getBo10 = anchor === null || anchor === void 0 ? void 0 : (_anchor$current8 = anchor.current) === null || _anchor$current8 === void 0 ? void 0 : (_anchor$current8$getB = _anchor$current8.getBoundingClientRect) === null || _anchor$current8$getB === void 0 ? void 0 : (_anchor$current8$getB2 = _anchor$current8$getB.call(_anchor$current8)) === null || _anchor$current8$getB2 === void 0 ? void 0 : _anchor$current8$getB2.height) !== null && _anchor$current$getBo10 !== void 0 ? _anchor$current$getBo10 : 0) / 2, "px)"),
|
|
36940
|
-
left: "calc(".concat((_anchor$current$getBo11 = anchor === null || anchor === void 0 ? void 0 : (_anchor$current9 = anchor.current) === null || _anchor$current9 === void 0 ? void 0 : (_anchor$current9$getB = _anchor$current9.getBoundingClientRect) === null || _anchor$current9$getB === void 0 ? void 0 : (_anchor$current9$getB2 = _anchor$current9$getB.call(_anchor$current9)) === null || _anchor$current9$getB2 === void 0 ? void 0 : _anchor$current9$getB2.left) !== null && _anchor$current$getBo11 !== void 0 ? _anchor$current$getBo11 : 0, "px - 0.375rem"),
|
|
36941
|
-
transform: 'translate(-100%, -50%)'
|
|
36942
|
-
});
|
|
36943
|
-
case 'right':
|
|
36944
|
-
return _objectSpread2(_objectSpread2({}, style), {}, {
|
|
36945
|
-
top: "calc(".concat(((_anchor$current$getBo12 = anchor === null || anchor === void 0 ? void 0 : (_anchor$current10 = anchor.current) === null || _anchor$current10 === void 0 ? void 0 : (_anchor$current10$get = _anchor$current10.getBoundingClientRect) === null || _anchor$current10$get === void 0 ? void 0 : (_anchor$current10$get2 = _anchor$current10$get.call(_anchor$current10)) === null || _anchor$current10$get2 === void 0 ? void 0 : _anchor$current10$get2.top) !== null && _anchor$current$getBo12 !== void 0 ? _anchor$current$getBo12 : 0) + ((_anchor$current$getBo13 = anchor === null || anchor === void 0 ? void 0 : (_anchor$current11 = anchor.current) === null || _anchor$current11 === void 0 ? void 0 : (_anchor$current11$get = _anchor$current11.getBoundingClientRect) === null || _anchor$current11$get === void 0 ? void 0 : (_anchor$current11$get2 = _anchor$current11$get.call(_anchor$current11)) === null || _anchor$current11$get2 === void 0 ? void 0 : _anchor$current11$get2.height) !== null && _anchor$current$getBo13 !== void 0 ? _anchor$current$getBo13 : 0) / 2, "px)"),
|
|
36946
|
-
left: "calc(".concat((_anchor$current$getBo14 = anchor === null || anchor === void 0 ? void 0 : (_anchor$current12 = anchor.current) === null || _anchor$current12 === void 0 ? void 0 : (_anchor$current12$get = _anchor$current12.getBoundingClientRect) === null || _anchor$current12$get === void 0 ? void 0 : (_anchor$current12$get2 = _anchor$current12$get.call(_anchor$current12)) === null || _anchor$current12$get2 === void 0 ? void 0 : _anchor$current12$get2.right) !== null && _anchor$current$getBo14 !== void 0 ? _anchor$current$getBo14 : 0, "px + 0.375rem"),
|
|
36947
|
-
transform: 'translate(0%, -50%)'
|
|
36948
|
-
});
|
|
36949
|
-
default:
|
|
36950
|
-
return {};
|
|
36951
|
-
}
|
|
36952
|
-
};
|
|
36953
|
-
var Tooltip = function Tooltip(props) {
|
|
37550
|
+
var Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(props, propRef) {
|
|
37551
|
+
var _middlewareData$arrow, _middlewareData$arrow2, _middlewareData$arrow3, _middlewareData$arrow4;
|
|
36954
37552
|
var children = props.children,
|
|
36955
37553
|
position = props.position,
|
|
36956
37554
|
content = props.content,
|
|
36957
37555
|
variant = props.variant,
|
|
36958
37556
|
className = props.className;
|
|
36959
|
-
var
|
|
36960
|
-
var tooltipRef = React.useRef(null);
|
|
37557
|
+
var arrowEl = React.useRef(null);
|
|
36961
37558
|
var _useState = React.useState(false),
|
|
36962
37559
|
_useState2 = _slicedToArray(_useState, 2),
|
|
36963
37560
|
open = _useState2[0],
|
|
36964
37561
|
setOpen = _useState2[1];
|
|
36965
|
-
|
|
36966
|
-
|
|
36967
|
-
|
|
36968
|
-
|
|
36969
|
-
|
|
36970
|
-
|
|
36971
|
-
|
|
36972
|
-
|
|
36973
|
-
|
|
36974
|
-
|
|
36975
|
-
|
|
36976
|
-
|
|
36977
|
-
|
|
36978
|
-
,
|
|
36979
|
-
|
|
36980
|
-
|
|
36981
|
-
|
|
37562
|
+
|
|
37563
|
+
// eslint-disable-next-line object-curly-newline
|
|
37564
|
+
var _useFloating = useFloating({
|
|
37565
|
+
open: open,
|
|
37566
|
+
onOpenChange: setOpen,
|
|
37567
|
+
placement: position,
|
|
37568
|
+
// Make sure the tooltip stays on the screen
|
|
37569
|
+
whileElementsMounted: autoUpdate,
|
|
37570
|
+
middleware: [offset(12), flip(), shift(), arrow({
|
|
37571
|
+
element: arrowEl
|
|
37572
|
+
})]
|
|
37573
|
+
}),
|
|
37574
|
+
x = _useFloating.x,
|
|
37575
|
+
y = _useFloating.y,
|
|
37576
|
+
reference = _useFloating.reference,
|
|
37577
|
+
floating = _useFloating.floating,
|
|
37578
|
+
strategy = _useFloating.strategy,
|
|
37579
|
+
context = _useFloating.context,
|
|
37580
|
+
middlewareData = _useFloating.middlewareData,
|
|
37581
|
+
placement = _useFloating.placement;
|
|
37582
|
+
|
|
37583
|
+
// Event listeners to change the open state
|
|
37584
|
+
var hover = useHover(context, {
|
|
37585
|
+
move: true
|
|
37586
|
+
});
|
|
37587
|
+
var focus = useFocus(context);
|
|
37588
|
+
var dismiss = useDismiss(context);
|
|
37589
|
+
// Role props for screen readers
|
|
37590
|
+
var role = useRole(context, {
|
|
37591
|
+
role: 'tooltip'
|
|
37592
|
+
});
|
|
37593
|
+
|
|
37594
|
+
// Merge all the interactions into prop getters
|
|
37595
|
+
var _useInteractions = useInteractions([hover, focus, dismiss, role]),
|
|
37596
|
+
getReferenceProps = _useInteractions.getReferenceProps,
|
|
37597
|
+
getFloatingProps = _useInteractions.getFloatingProps;
|
|
37598
|
+
var childrenRef = children.ref;
|
|
37599
|
+
var ref = React.useMemo(function () {
|
|
37600
|
+
return o([reference, childrenRef, propRef]);
|
|
37601
|
+
}, [reference, childrenRef]);
|
|
37602
|
+
var clonedChildren = /*#__PURE__*/React.cloneElement(children, getReferenceProps(_objectSpread2({
|
|
37603
|
+
ref: ref
|
|
37604
|
+
}, children.props)));
|
|
37605
|
+
var side = placement.split('-')[0];
|
|
37606
|
+
var staticSide = {
|
|
37607
|
+
top: 'bottom',
|
|
37608
|
+
right: 'left',
|
|
37609
|
+
bottom: 'top',
|
|
37610
|
+
left: 'right'
|
|
37611
|
+
}[side];
|
|
37612
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
37613
|
+
children: [clonedChildren, /*#__PURE__*/jsxRuntime.jsx(Popper, {
|
|
36982
37614
|
open: open,
|
|
36983
37615
|
backdrop: false,
|
|
36984
|
-
|
|
36985
|
-
|
|
36986
|
-
|
|
36987
|
-
className: classes(modules_e4619b04.tooltip, modules_e4619b04[
|
|
36988
|
-
style:
|
|
36989
|
-
position:
|
|
36990
|
-
|
|
36991
|
-
|
|
36992
|
-
}
|
|
36993
|
-
|
|
36994
|
-
|
|
37616
|
+
wrapperId: "tooltip",
|
|
37617
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, getFloatingProps({
|
|
37618
|
+
ref: floating,
|
|
37619
|
+
className: classes(modules_e4619b04.tooltip, modules_e4619b04[variant], className),
|
|
37620
|
+
style: {
|
|
37621
|
+
position: strategy,
|
|
37622
|
+
top: y !== null && y !== void 0 ? y : 0,
|
|
37623
|
+
left: x !== null && x !== void 0 ? x : 0
|
|
37624
|
+
}
|
|
37625
|
+
})), {}, {
|
|
37626
|
+
children: [content, /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
37627
|
+
className: modules_e4619b04.arrow,
|
|
37628
|
+
ref: arrowEl,
|
|
37629
|
+
style: _defineProperty$1({
|
|
37630
|
+
left: (_middlewareData$arrow = middlewareData === null || middlewareData === void 0 ? void 0 : (_middlewareData$arrow2 = middlewareData.arrow) === null || _middlewareData$arrow2 === void 0 ? void 0 : _middlewareData$arrow2.x) !== null && _middlewareData$arrow !== void 0 ? _middlewareData$arrow : '',
|
|
37631
|
+
top: (_middlewareData$arrow3 = middlewareData === null || middlewareData === void 0 ? void 0 : (_middlewareData$arrow4 = middlewareData.arrow) === null || _middlewareData$arrow4 === void 0 ? void 0 : _middlewareData$arrow4.y) !== null && _middlewareData$arrow3 !== void 0 ? _middlewareData$arrow3 : '',
|
|
37632
|
+
right: '',
|
|
37633
|
+
bottom: ''
|
|
37634
|
+
}, staticSide, '-0.5rem')
|
|
37635
|
+
})]
|
|
37636
|
+
}))
|
|
36995
37637
|
})]
|
|
36996
37638
|
});
|
|
36997
|
-
};
|
|
37639
|
+
});
|
|
36998
37640
|
Tooltip.propTypes = {
|
|
36999
37641
|
variant: propTypes$1.exports.oneOf(['light', 'dark']),
|
|
37000
37642
|
content: propTypes$1.exports.string,
|
|
@@ -86725,6 +87367,7 @@ exports.RadioIcon = RadioIcon;
|
|
|
86725
87367
|
exports.RefreshIcon = Refresh;
|
|
86726
87368
|
exports.ResetIcon = Reset;
|
|
86727
87369
|
exports.ServerIcon = Server;
|
|
87370
|
+
exports.SettingsIcon = Settings;
|
|
86728
87371
|
exports.Stepper = Stepper;
|
|
86729
87372
|
exports.Table = Table;
|
|
86730
87373
|
exports.TableCell = TableCell;
|
|
@@ -86737,6 +87380,7 @@ exports.TextField = TextField;
|
|
|
86737
87380
|
exports.TickIcon = Tick;
|
|
86738
87381
|
exports.Toggle = Toggle;
|
|
86739
87382
|
exports.Tooltip = Tooltip;
|
|
87383
|
+
exports.TrashIcon = Trash;
|
|
86740
87384
|
exports.ViewIcon = View;
|
|
86741
87385
|
exports.classes = classes;
|
|
86742
87386
|
exports.cloneDeep = cloneDeep;
|