@banyan_cloud/roots 1.0.33 → 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 +794 -186
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +793 -187
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +793 -187
- 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';
|
|
@@ -36211,14 +36790,15 @@ var TableChipsSkeleton = function TableChipsSkeleton() {
|
|
|
36211
36790
|
});
|
|
36212
36791
|
};
|
|
36213
36792
|
|
|
36214
|
-
var css$e = ".
|
|
36215
|
-
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"};
|
|
36216
36795
|
n(css$e,{});
|
|
36217
36796
|
|
|
36218
36797
|
var TableChips = function TableChips(props) {
|
|
36219
36798
|
var _chips$filter;
|
|
36220
36799
|
var showBack = props.showBack,
|
|
36221
36800
|
onBack = props.onBack,
|
|
36801
|
+
onClear = props.onClear,
|
|
36222
36802
|
chips = props.chips,
|
|
36223
36803
|
className = props.className,
|
|
36224
36804
|
style = props.style,
|
|
@@ -36266,7 +36846,20 @@ var TableChips = function TableChips(props) {
|
|
|
36266
36846
|
},
|
|
36267
36847
|
onClick: onBack
|
|
36268
36848
|
}),
|
|
36269
|
-
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
|
+
}) : ''
|
|
36270
36863
|
});
|
|
36271
36864
|
}
|
|
36272
36865
|
return null;
|
|
@@ -36277,6 +36870,7 @@ TableChips.propTypes = {
|
|
|
36277
36870
|
style: propTypes$1.exports.object,
|
|
36278
36871
|
showBack: propTypes$1.exports.bool,
|
|
36279
36872
|
onBack: propTypes$1.exports.func,
|
|
36873
|
+
onClear: propTypes$1.exports.func,
|
|
36280
36874
|
chips: propTypes$1.exports.arrayOf(propTypes$1.exports.shape({
|
|
36281
36875
|
key: propTypes$1.exports.string,
|
|
36282
36876
|
icon: propTypes$1.exports.func,
|
|
@@ -36292,6 +36886,7 @@ TableChips.defaultProps = {
|
|
|
36292
36886
|
style: {},
|
|
36293
36887
|
showBack: false,
|
|
36294
36888
|
onBack: function onBack() {},
|
|
36889
|
+
onClear: function onClear() {},
|
|
36295
36890
|
chips: [],
|
|
36296
36891
|
loading: null
|
|
36297
36892
|
};
|
|
@@ -36393,8 +36988,8 @@ Popover.defaultProps = {
|
|
|
36393
36988
|
onClose: function onClose() {}
|
|
36394
36989
|
};
|
|
36395
36990
|
|
|
36396
|
-
var css$c = ".
|
|
36397
|
-
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"};
|
|
36398
36993
|
n(css$c,{});
|
|
36399
36994
|
|
|
36400
36995
|
var Columns = function Columns(props) {
|
|
@@ -36423,61 +37018,68 @@ var Columns = function Columns(props) {
|
|
|
36423
37018
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
36424
37019
|
className: classes(modules_48c02c99.root, expanded ? modules_48c02c99.expanded : ''),
|
|
36425
37020
|
children: [/*#__PURE__*/jsxRuntime.jsx(BaseCell, {
|
|
37021
|
+
size: "auto",
|
|
36426
37022
|
className: modules_48c02c99.header,
|
|
36427
37023
|
component1: "Columns",
|
|
36428
|
-
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, {
|
|
36429
37041
|
className: modules_48c02c99.search,
|
|
36430
|
-
placeholder: "Search
|
|
37042
|
+
placeholder: "Search",
|
|
36431
37043
|
value: search,
|
|
36432
37044
|
onChange: function onChange(e) {
|
|
36433
37045
|
var _inputHelper = inputHelper(e),
|
|
36434
37046
|
fieldValue = _inputHelper.fieldValue;
|
|
36435
37047
|
setSearch(fieldValue);
|
|
36436
37048
|
}
|
|
36437
|
-
})
|
|
36438
|
-
|
|
36439
|
-
|
|
36440
|
-
|
|
36441
|
-
|
|
36442
|
-
|
|
36443
|
-
|
|
36444
|
-
|
|
36445
|
-
|
|
36446
|
-
|
|
36447
|
-
|
|
36448
|
-
|
|
36449
|
-
|
|
36450
|
-
|
|
36451
|
-
|
|
36452
|
-
|
|
36453
|
-
|
|
36454
|
-
|
|
36455
|
-
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 === '';
|
|
36456
|
-
}).map(function (col) {
|
|
36457
|
-
var selected = [null, false, undefined].includes(hiddenColumns === null || hiddenColumns === void 0 ? void 0 : hiddenColumns[col === null || col === void 0 ? void 0 : col.id]);
|
|
36458
|
-
return /*#__PURE__*/jsxRuntime.jsx(DropdownItem, {
|
|
36459
|
-
className: modules_48c02c99.item,
|
|
36460
|
-
selected: selected,
|
|
36461
|
-
title: col.title,
|
|
36462
|
-
variant: "checkbox",
|
|
36463
|
-
onClick: function onClick() {
|
|
36464
|
-
if (selected) {
|
|
36465
|
-
setHiddenColumns(_objectSpread2(_objectSpread2({}, hiddenColumns), {}, _defineProperty$1({}, col.id, true)));
|
|
36466
|
-
} else {
|
|
36467
|
-
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
|
+
}
|
|
36468
37067
|
}
|
|
36469
|
-
}
|
|
36470
|
-
}
|
|
36471
|
-
})
|
|
37068
|
+
}, col.id);
|
|
37069
|
+
})
|
|
37070
|
+
})]
|
|
36472
37071
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
36473
37072
|
className: modules_48c02c99.footer,
|
|
36474
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
37073
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
36475
37074
|
className: modules_48c02c99.expand,
|
|
36476
|
-
size: "sm",
|
|
36477
|
-
radius: "ellipse",
|
|
36478
37075
|
color: "default",
|
|
36479
37076
|
title: expanded ? 'See Less' : 'See More',
|
|
36480
|
-
rightComponent: function
|
|
37077
|
+
rightComponent: !expanded && function () {
|
|
37078
|
+
return /*#__PURE__*/jsxRuntime.jsx(AngleDouble, {
|
|
37079
|
+
className: modules_48c02c99.icon
|
|
37080
|
+
});
|
|
37081
|
+
},
|
|
37082
|
+
leftComponent: expanded && function () {
|
|
36481
37083
|
return /*#__PURE__*/jsxRuntime.jsx(AngleDouble, {
|
|
36482
37084
|
className: modules_48c02c99.icon
|
|
36483
37085
|
});
|
|
@@ -36493,12 +37095,12 @@ var Columns = function Columns(props) {
|
|
|
36493
37095
|
});
|
|
36494
37096
|
};
|
|
36495
37097
|
|
|
36496
|
-
var css$b = ".
|
|
36497
|
-
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"};
|
|
36498
37100
|
n(css$b,{});
|
|
36499
37101
|
|
|
36500
|
-
var css$a = ".
|
|
36501
|
-
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"};
|
|
36502
37104
|
n(css$a,{});
|
|
36503
37105
|
|
|
36504
37106
|
var TableFiltersSkeleton = function TableFiltersSkeleton() {
|
|
@@ -36512,16 +37114,15 @@ var TableFiltersSkeleton = function TableFiltersSkeleton() {
|
|
|
36512
37114
|
className: modules_37a5ff73.search
|
|
36513
37115
|
}),
|
|
36514
37116
|
component3: /*#__PURE__*/jsxRuntime.jsx(BaseCell, {
|
|
37117
|
+
flexible: true,
|
|
37118
|
+
size: "auto",
|
|
36515
37119
|
component1: /*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
36516
|
-
variant: "circle",
|
|
36517
37120
|
className: modules_37a5ff73.columns
|
|
36518
37121
|
}),
|
|
36519
37122
|
component2: /*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
36520
|
-
variant: "circle",
|
|
36521
37123
|
className: modules_37a5ff73.refresh
|
|
36522
37124
|
}),
|
|
36523
37125
|
component3: /*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
36524
|
-
variant: "circle",
|
|
36525
37126
|
className: modules_37a5ff73.settings
|
|
36526
37127
|
})
|
|
36527
37128
|
})
|
|
@@ -36602,12 +37203,13 @@ var TableFilters = function TableFilters(props) {
|
|
|
36602
37203
|
},
|
|
36603
37204
|
size: "auto",
|
|
36604
37205
|
className: modules_a0fe63f9['icon-button'],
|
|
36605
|
-
|
|
37206
|
+
color: "default",
|
|
36606
37207
|
leftComponent: function leftComponent() {
|
|
36607
37208
|
return /*#__PURE__*/jsxRuntime.jsx(Columns$1, {
|
|
36608
37209
|
className: modules_a0fe63f9.icon
|
|
36609
37210
|
});
|
|
36610
37211
|
},
|
|
37212
|
+
title: "Columns",
|
|
36611
37213
|
onClick: function onClick() {
|
|
36612
37214
|
setOpenColumns(function (prev) {
|
|
36613
37215
|
return !prev;
|
|
@@ -36625,7 +37227,8 @@ var TableFilters = function TableFilters(props) {
|
|
|
36625
37227
|
component2: !disabledRefresh && /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
36626
37228
|
size: "auto",
|
|
36627
37229
|
className: modules_a0fe63f9['icon-button'],
|
|
36628
|
-
|
|
37230
|
+
color: "default",
|
|
37231
|
+
title: "Refresh",
|
|
36629
37232
|
onClick: onRefresh,
|
|
36630
37233
|
leftComponent: function leftComponent() {
|
|
36631
37234
|
return /*#__PURE__*/jsxRuntime.jsx(Refresh, {
|
|
@@ -36636,9 +37239,10 @@ var TableFilters = function TableFilters(props) {
|
|
|
36636
37239
|
component3: !disabledSettings && /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
36637
37240
|
size: "auto",
|
|
36638
37241
|
className: modules_a0fe63f9['icon-button'],
|
|
36639
|
-
|
|
37242
|
+
color: "default",
|
|
37243
|
+
title: "Settings",
|
|
36640
37244
|
leftComponent: function leftComponent() {
|
|
36641
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
37245
|
+
return /*#__PURE__*/jsxRuntime.jsx(Settings, {
|
|
36642
37246
|
className: modules_a0fe63f9.icon
|
|
36643
37247
|
});
|
|
36644
37248
|
}
|
|
@@ -36656,7 +37260,13 @@ TableFilters.propTypes = {
|
|
|
36656
37260
|
filterValue: propTypes$1.exports.shape({
|
|
36657
37261
|
applied: propTypes$1.exports.number
|
|
36658
37262
|
}),
|
|
36659
|
-
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
|
+
})
|
|
36660
37270
|
};
|
|
36661
37271
|
TableFilters.defaultProps = {
|
|
36662
37272
|
className: '',
|
|
@@ -36667,7 +37277,13 @@ TableFilters.defaultProps = {
|
|
|
36667
37277
|
filterValue: {
|
|
36668
37278
|
applied: null
|
|
36669
37279
|
},
|
|
36670
|
-
loading: null
|
|
37280
|
+
loading: null,
|
|
37281
|
+
disabledFilterOptions: {
|
|
37282
|
+
filterButton: false,
|
|
37283
|
+
refresh: false,
|
|
37284
|
+
columnFilter: false,
|
|
37285
|
+
settings: false
|
|
37286
|
+
}
|
|
36671
37287
|
};
|
|
36672
37288
|
|
|
36673
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}";
|
|
@@ -36852,17 +37468,14 @@ Table.defaultProps = {
|
|
|
36852
37468
|
}
|
|
36853
37469
|
};
|
|
36854
37470
|
|
|
36855
|
-
var css$8 = ".
|
|
36856
|
-
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"};
|
|
36857
37473
|
n(css$8,{});
|
|
36858
37474
|
|
|
36859
37475
|
var Tabs = function Tabs(props) {
|
|
36860
37476
|
var tabs = props.tabs,
|
|
36861
37477
|
selectedTab = props.selectedTab,
|
|
36862
37478
|
setSelectedTab = props.setSelectedTab;
|
|
36863
|
-
var tabViewClassName = function tabViewClassName(id) {
|
|
36864
|
-
return id === selectedTab ? "".concat(modules_78ab5066['tab-view-selected']) : "".concat(modules_78ab5066['tab-view']);
|
|
36865
|
-
};
|
|
36866
37479
|
var onTabClick = function onTabClick(id) {
|
|
36867
37480
|
setSelectedTab(id);
|
|
36868
37481
|
};
|
|
@@ -36873,44 +37486,27 @@ var Tabs = function Tabs(props) {
|
|
|
36873
37486
|
title = tab.title,
|
|
36874
37487
|
LeftIcon = tab.leftIcon,
|
|
36875
37488
|
RightIcon = tab.rightIcon;
|
|
36876
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
37489
|
+
return /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
37490
|
+
size: "auto",
|
|
37491
|
+
color: "default",
|
|
37492
|
+
radius: "none",
|
|
37493
|
+
variant: "text",
|
|
36877
37494
|
onClick: function onClick() {
|
|
36878
|
-
|
|
37495
|
+
onTabClick(id);
|
|
36879
37496
|
},
|
|
36880
|
-
|
|
36881
|
-
|
|
36882
|
-
|
|
36883
|
-
|
|
36884
|
-
className: modules_78ab5066.
|
|
36885
|
-
|
|
36886
|
-
|
|
36887
|
-
|
|
36888
|
-
|
|
36889
|
-
|
|
36890
|
-
|
|
36891
|
-
|
|
36892
|
-
|
|
36893
|
-
})
|
|
36894
|
-
})
|
|
36895
|
-
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
36896
|
-
style: {
|
|
36897
|
-
paddingRight: !RightIcon ? 8 : 0
|
|
36898
|
-
},
|
|
36899
|
-
children: title
|
|
36900
|
-
})]
|
|
36901
|
-
}), RightIcon && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
36902
|
-
className: modules_78ab5066.right,
|
|
36903
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("vl", {
|
|
36904
|
-
className: modules_78ab5066.saperator
|
|
36905
|
-
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
36906
|
-
className: modules_78ab5066['icon-container'],
|
|
36907
|
-
children: /*#__PURE__*/jsxRuntime.jsx(RightIcon, {
|
|
36908
|
-
className: classes(modules_78ab5066.icon)
|
|
36909
|
-
})
|
|
36910
|
-
})]
|
|
36911
|
-
})]
|
|
36912
|
-
})
|
|
36913
|
-
}, 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);
|
|
36914
37510
|
})
|
|
36915
37511
|
});
|
|
36916
37512
|
};
|
|
@@ -36945,92 +37541,102 @@ Tabs.defaultProps = {
|
|
|
36945
37541
|
setSelectedTab: 'None'
|
|
36946
37542
|
};
|
|
36947
37543
|
|
|
36948
|
-
|
|
36949
|
-
|
|
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"};
|
|
36950
37548
|
n(css$7,{});
|
|
36951
37549
|
|
|
36952
|
-
var
|
|
36953
|
-
var
|
|
36954
|
-
var position = _ref.position,
|
|
36955
|
-
anchor = _ref.anchor,
|
|
36956
|
-
content = _ref.content;
|
|
36957
|
-
var style = {
|
|
36958
|
-
width: "calc(".concat(content.length / 2, "rem + 0.75rem)")
|
|
36959
|
-
};
|
|
36960
|
-
switch (position) {
|
|
36961
|
-
case 'top':
|
|
36962
|
-
return _objectSpread2(_objectSpread2({}, style), {}, {
|
|
36963
|
-
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)"),
|
|
36964
|
-
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"),
|
|
36965
|
-
transform: 'translate(-50%, -100%)'
|
|
36966
|
-
});
|
|
36967
|
-
case 'bottom':
|
|
36968
|
-
return _objectSpread2(_objectSpread2({}, style), {}, {
|
|
36969
|
-
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)"),
|
|
36970
|
-
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"),
|
|
36971
|
-
transform: 'translate(-50%, 0%)'
|
|
36972
|
-
});
|
|
36973
|
-
case 'left':
|
|
36974
|
-
return _objectSpread2(_objectSpread2({}, style), {}, {
|
|
36975
|
-
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)"),
|
|
36976
|
-
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"),
|
|
36977
|
-
transform: 'translate(-100%, -50%)'
|
|
36978
|
-
});
|
|
36979
|
-
case 'right':
|
|
36980
|
-
return _objectSpread2(_objectSpread2({}, style), {}, {
|
|
36981
|
-
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)"),
|
|
36982
|
-
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"),
|
|
36983
|
-
transform: 'translate(0%, -50%)'
|
|
36984
|
-
});
|
|
36985
|
-
default:
|
|
36986
|
-
return {};
|
|
36987
|
-
}
|
|
36988
|
-
};
|
|
36989
|
-
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;
|
|
36990
37552
|
var children = props.children,
|
|
36991
37553
|
position = props.position,
|
|
36992
37554
|
content = props.content,
|
|
36993
37555
|
variant = props.variant,
|
|
36994
37556
|
className = props.className;
|
|
36995
|
-
var
|
|
36996
|
-
var tooltipRef = React.useRef(null);
|
|
37557
|
+
var arrowEl = React.useRef(null);
|
|
36997
37558
|
var _useState = React.useState(false),
|
|
36998
37559
|
_useState2 = _slicedToArray(_useState, 2),
|
|
36999
37560
|
open = _useState2[0],
|
|
37000
37561
|
setOpen = _useState2[1];
|
|
37001
|
-
|
|
37002
|
-
|
|
37003
|
-
|
|
37004
|
-
|
|
37005
|
-
|
|
37006
|
-
|
|
37007
|
-
|
|
37008
|
-
|
|
37009
|
-
|
|
37010
|
-
|
|
37011
|
-
|
|
37012
|
-
|
|
37013
|
-
|
|
37014
|
-
,
|
|
37015
|
-
|
|
37016
|
-
|
|
37017
|
-
|
|
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, {
|
|
37018
37614
|
open: open,
|
|
37019
37615
|
backdrop: false,
|
|
37020
|
-
|
|
37021
|
-
|
|
37022
|
-
|
|
37023
|
-
className: classes(modules_e4619b04.tooltip, modules_e4619b04[
|
|
37024
|
-
style:
|
|
37025
|
-
position:
|
|
37026
|
-
|
|
37027
|
-
|
|
37028
|
-
}
|
|
37029
|
-
|
|
37030
|
-
|
|
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
|
+
}))
|
|
37031
37637
|
})]
|
|
37032
37638
|
});
|
|
37033
|
-
};
|
|
37639
|
+
});
|
|
37034
37640
|
Tooltip.propTypes = {
|
|
37035
37641
|
variant: propTypes$1.exports.oneOf(['light', 'dark']),
|
|
37036
37642
|
content: propTypes$1.exports.string,
|
|
@@ -86761,6 +87367,7 @@ exports.RadioIcon = RadioIcon;
|
|
|
86761
87367
|
exports.RefreshIcon = Refresh;
|
|
86762
87368
|
exports.ResetIcon = Reset;
|
|
86763
87369
|
exports.ServerIcon = Server;
|
|
87370
|
+
exports.SettingsIcon = Settings;
|
|
86764
87371
|
exports.Stepper = Stepper;
|
|
86765
87372
|
exports.Table = Table;
|
|
86766
87373
|
exports.TableCell = TableCell;
|
|
@@ -86773,6 +87380,7 @@ exports.TextField = TextField;
|
|
|
86773
87380
|
exports.TickIcon = Tick;
|
|
86774
87381
|
exports.Toggle = Toggle;
|
|
86775
87382
|
exports.Tooltip = Tooltip;
|
|
87383
|
+
exports.TrashIcon = Trash;
|
|
86776
87384
|
exports.ViewIcon = View;
|
|
86777
87385
|
exports.classes = classes;
|
|
86778
87386
|
exports.cloneDeep = cloneDeep;
|