@banyan_cloud/roots 2.0.66 → 2.0.68
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 +299 -236
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/v2/index.js +2775 -403
- package/dist/cjs/v2/index.js.map +1 -1
- package/dist/esm/components/buttons/baseButton/types/index.d.ts +1 -1
- package/dist/esm/components/buttons/button/types/index.d.ts +2 -4
- package/dist/esm/components/charts/heatMapChart/HeatMapChartData.d.ts +531 -0
- package/dist/esm/components/datePicker/Story/DatePickerDoc.d.ts +2 -0
- package/dist/esm/components/datePicker/utils/index.d.ts +2 -1
- package/dist/esm/components/docs/icons/index.d.ts +6 -0
- package/dist/esm/components/docs/index.d.ts +2 -0
- package/dist/esm/components/docs/linkHeader/LinkHeader.d.ts +5 -0
- package/dist/esm/components/docs/propsTable/PropsTable.d.ts +5 -0
- package/dist/esm/components/input/checkbox/types/index.d.ts +1 -1
- package/dist/esm/components/input/dropdown/Dropdown.d.ts +1 -1
- package/dist/esm/components/input/radio/Radio.d.ts +1 -0
- package/dist/esm/components/input/textField/TextField.d.ts +2 -6
- package/dist/esm/components/table/table/tableFilters/TableFilters.d.ts +1 -1
- package/dist/esm/components/v2/accordion/Story/AccordionDoc.d.ts +2 -0
- package/dist/esm/components/v2/alert/Story/AlertDoc.d.ts +2 -0
- package/dist/esm/components/v2/badges/Badge.d.ts +3 -0
- package/dist/esm/components/v2/badges/Story/BadgeDoc.d.ts +2 -0
- package/dist/esm/components/v2/badges/assets/ArrowLeftIcon.d.ts +8 -0
- package/dist/esm/components/v2/badges/assets/ArrowRightIcon.d.ts +8 -0
- package/dist/esm/components/v2/badges/assets/ArrowUpIcon.d.ts +8 -0
- package/dist/esm/components/v2/badges/assets/CrossIcon/CrossCricleIcon.d.ts +9 -0
- package/dist/esm/components/v2/badges/assets/CrossIcon/CrossFilledIcon.d.ts +10 -0
- package/dist/esm/components/v2/badges/assets/CrossIcon/CrossIcon.d.ts +8 -0
- package/dist/esm/components/v2/badges/assets/DotIcon.d.ts +8 -0
- package/dist/esm/components/v2/badges/assets/PlusIcon.d.ts +8 -0
- package/dist/esm/components/v2/badges/constants/index.d.ts +3 -0
- package/dist/esm/components/v2/badges/types/index.d.ts +19 -0
- package/dist/esm/components/v2/breadcrumbs/Story/BreadcrumbDoc.d.ts +2 -0
- package/dist/esm/components/v2/buttons/baseButton/Story/BaseButtonDoc.d.ts +2 -0
- package/dist/esm/components/v2/buttons/baseButton/types/index.d.ts +1 -1
- package/dist/esm/components/v2/buttons/button/Story/ButtonDoc.d.ts +2 -0
- package/dist/esm/components/v2/buttons/button/types/index.d.ts +3 -3
- package/dist/esm/components/v2/cell/Story/BaseCellDoc.d.ts +2 -0
- package/dist/esm/components/v2/checkbox/Story/CheckboxDoc.d.ts +2 -0
- package/dist/esm/components/v2/icons/chevron-down/ChevronDownIcon.d.ts +4 -0
- package/dist/esm/components/v2/icons/chevron-down/index.d.ts +1 -0
- package/dist/esm/components/v2/icons/error/Error.d.ts +1 -0
- package/dist/esm/components/v2/icons/help/Help.d.ts +8 -0
- package/dist/esm/components/v2/icons/help/index.d.ts +1 -0
- package/dist/esm/components/v2/icons/index.d.ts +5 -2
- package/dist/esm/components/v2/icons/search/Search.d.ts +5 -0
- package/dist/esm/components/v2/icons/search/index.d.ts +1 -0
- package/dist/esm/components/v2/icons/warning/Warning.d.ts +1 -0
- package/dist/esm/components/v2/index.d.ts +2 -0
- package/dist/esm/components/v2/inlineLoader/Story/InlineLoaderDoc.d.ts +2 -0
- package/dist/esm/components/v2/input/dropdown/Dropdown.d.ts +4 -0
- package/dist/esm/components/v2/input/dropdown/Story/DropdownDoc.d.ts +2 -0
- package/dist/esm/components/v2/input/dropdown/index.d.ts +2 -0
- package/dist/esm/components/v2/input/dropdown/types/index.d.ts +66 -0
- package/dist/esm/components/v2/input/index.d.ts +2 -0
- package/dist/esm/components/v2/input/radio/Story/RadioDoc.d.ts +2 -0
- package/dist/esm/components/v2/input/textfield/Story/TextFieldDoc.d.ts +2 -0
- package/dist/esm/components/v2/input/textfield/TextField.d.ts +4 -0
- package/dist/esm/components/v2/input/textfield/index.d.ts +2 -0
- package/dist/esm/components/v2/input/textfield/types/index.d.ts +55 -0
- package/dist/esm/components/v2/input/toggle/Story/ToggleDoc.d.ts +2 -0
- package/dist/esm/components/v2/input/toggle/Toggle.d.ts +1 -11
- package/dist/esm/components/v2/input/toggle/types/index.d.ts +12 -0
- package/dist/esm/components/v2/link/Story/LinkDoc.d.ts +2 -0
- package/dist/esm/components/v2/modal/Story/BaseModalDoc.d.ts +2 -0
- package/dist/esm/components/v2/modal/dialogBox/Story/DialogDoc.d.ts +2 -0
- package/dist/esm/components/v2/pagination/Pagination.d.ts +7 -39
- package/dist/esm/components/v2/pagination/Story/PaginationDoc.d.ts +2 -0
- package/dist/esm/components/v2/pagination/types/index.d.ts +39 -0
- package/dist/esm/components/v2/skeleton/Skeleton.d.ts +1 -10
- package/dist/esm/components/v2/skeleton/Story/SkeletonDoc.d.ts +2 -0
- package/dist/esm/components/v2/skeleton/index.d.ts +1 -1
- package/dist/esm/components/v2/skeleton/types/index.d.ts +12 -0
- package/dist/esm/components/v2/stepper/Story/StepperDocs.d.ts +2 -0
- package/dist/esm/components/v2/table/baseTable/Story/BaseTableDoc.d.ts +2 -0
- package/dist/esm/components/v2/table/body/Story/TableBodyDoc.d.ts +2 -0
- package/dist/esm/components/v2/table/body/TableBody.d.ts +1 -11
- package/dist/esm/components/v2/table/body/types/index.d.ts +28 -0
- package/dist/esm/components/v2/table/cell/Story/CellDoc.d.ts +2 -0
- package/dist/esm/components/v2/table/header/Story/TableHeaderDoc.d.ts +2 -0
- package/dist/esm/components/v2/table/row/Story/RowDoc.d.ts +2 -0
- package/dist/esm/components/v2/table/table/Story/TableDoc.d.ts +2 -0
- package/dist/esm/components/v2/tabs/Story/TabsDoc.d.ts +2 -0
- package/dist/esm/components/v2/tags/Story/TagsDoc.d.ts +2 -0
- package/dist/esm/components/v2/tags/Tags.d.ts +4 -0
- package/dist/esm/components/v2/tags/assets/Indicator/Indicator.d.ts +4 -0
- package/dist/esm/components/v2/tags/assets/Indicator/types/index.d.ts +10 -0
- package/dist/esm/components/v2/tags/assets/TagCloser/TagCloserLg.d.ts +7 -0
- package/dist/esm/components/v2/tags/assets/TagCloser/TagCloserMd.d.ts +7 -0
- package/dist/esm/components/v2/tags/assets/TagCloser/TagCloserSm.d.ts +7 -0
- package/dist/esm/components/v2/tags/assets/TagCount/TagCountLg.d.ts +8 -0
- package/dist/esm/components/v2/tags/assets/TagCount/TagCountMd.d.ts +8 -0
- package/dist/esm/components/v2/tags/assets/TagCount/TagCountSm.d.ts +8 -0
- package/dist/esm/components/v2/tags/types/index.d.ts +31 -0
- package/dist/esm/components/v2/text/Story/TextDoc.d.ts +2 -0
- package/dist/esm/components/v2/tooltip/Story/TooltipDoc.d.ts +2 -0
- package/dist/esm/components/v2/tooltip/Tooltip.d.ts +3 -0
- package/dist/esm/components/v2/tooltip/index.d.ts +1 -0
- package/dist/esm/components/v2/tooltip/types/index.d.ts +42 -0
- package/dist/esm/components/widget/BaseWidgetStoriesData.d.ts +54 -0
- package/dist/esm/index.js +299 -236
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/v2/index.js +2768 -403
- package/dist/esm/v2/index.js.map +1 -1
- package/package.json +28 -28
- package/src/styles/_responsive.scss +1 -1
- package/src/styles/main.css +78 -102
- package/dist/esm/components/v2/checkbox/types/Types.d.ts +0 -20
- package/src/styles/style-system/ComponentsFormat.stories.mdx +0 -30
- package/src/styles/style-system/Design.stories.mdx +0 -19
- package/src/styles/style-system/Style.stories.mdx +0 -110
package/dist/cjs/index.js
CHANGED
|
@@ -5388,18 +5388,27 @@ var Copy = function Copy(props) {
|
|
|
5388
5388
|
width = props.width,
|
|
5389
5389
|
height = props.height,
|
|
5390
5390
|
color = props.color;
|
|
5391
|
-
return jsxRuntime.
|
|
5392
|
-
width: width !== null && width !== void 0 ? width : '
|
|
5393
|
-
height: height !== null && height !== void 0 ? height : '
|
|
5394
|
-
fill: color !== null && color !== void 0 ? color : 'black',
|
|
5391
|
+
return jsxRuntime.jsxs("svg", {
|
|
5392
|
+
width: width !== null && width !== void 0 ? width : '20',
|
|
5393
|
+
height: height !== null && height !== void 0 ? height : '20',
|
|
5395
5394
|
className: className,
|
|
5396
|
-
viewBox: '0 0
|
|
5395
|
+
viewBox: '0 0 20 20',
|
|
5396
|
+
fill: 'none',
|
|
5397
5397
|
xmlns: 'http://www.w3.org/2000/svg',
|
|
5398
|
-
children: jsxRuntime.jsx("path", {
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5398
|
+
children: [jsxRuntime.jsx("path", {
|
|
5399
|
+
d: 'M12.4997 5.41667V4.5C12.4997 3.39543 11.6042 2.5 10.4997 2.5H5.33301C4.22844 2.5 3.33301 3.39543 3.33301 4.5V10.5C3.33301 11.6046 4.22844 12.5 5.33301 12.5H5.41634',
|
|
5400
|
+
stroke: color !== null && color !== void 0 ? color : '#A4A7AE',
|
|
5401
|
+
"stroke-width": '1.67',
|
|
5402
|
+
"stroke-linecap": 'round'
|
|
5403
|
+
}), jsxRuntime.jsx("rect", {
|
|
5404
|
+
x: '7.5',
|
|
5405
|
+
y: '7.5',
|
|
5406
|
+
width: '9.16667',
|
|
5407
|
+
height: '10',
|
|
5408
|
+
rx: '2',
|
|
5409
|
+
stroke: color !== null && color !== void 0 ? color : '#A4A7AE',
|
|
5410
|
+
"stroke-width": '1.67'
|
|
5411
|
+
})]
|
|
5403
5412
|
});
|
|
5404
5413
|
};
|
|
5405
5414
|
|
|
@@ -6141,6 +6150,7 @@ function Accordion(props) {
|
|
|
6141
6150
|
}), children, onExpand && jsxRuntime.jsx(Button, {
|
|
6142
6151
|
size: 'auto',
|
|
6143
6152
|
variant: 'text',
|
|
6153
|
+
dataTestId: 'accordion-expand-btn-test',
|
|
6144
6154
|
onClick: function onClick() {
|
|
6145
6155
|
onExpand();
|
|
6146
6156
|
},
|
|
@@ -6171,10 +6181,6 @@ const oppositeSideMap = {
|
|
|
6171
6181
|
bottom: 'top',
|
|
6172
6182
|
top: 'bottom'
|
|
6173
6183
|
};
|
|
6174
|
-
const oppositeAlignmentMap = {
|
|
6175
|
-
start: 'end',
|
|
6176
|
-
end: 'start'
|
|
6177
|
-
};
|
|
6178
6184
|
function clamp(start, value, end) {
|
|
6179
6185
|
return max(start, min(value, end));
|
|
6180
6186
|
}
|
|
@@ -6193,9 +6199,9 @@ function getOppositeAxis(axis) {
|
|
|
6193
6199
|
function getAxisLength(axis) {
|
|
6194
6200
|
return axis === 'y' ? 'height' : 'width';
|
|
6195
6201
|
}
|
|
6196
|
-
const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
|
|
6197
6202
|
function getSideAxis(placement) {
|
|
6198
|
-
|
|
6203
|
+
const firstChar = placement[0];
|
|
6204
|
+
return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';
|
|
6199
6205
|
}
|
|
6200
6206
|
function getAlignmentAxis(placement) {
|
|
6201
6207
|
return getOppositeAxis(getSideAxis(placement));
|
|
@@ -6218,7 +6224,7 @@ function getExpandedPlacements(placement) {
|
|
|
6218
6224
|
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
6219
6225
|
}
|
|
6220
6226
|
function getOppositeAlignmentPlacement(placement) {
|
|
6221
|
-
return placement.replace(
|
|
6227
|
+
return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');
|
|
6222
6228
|
}
|
|
6223
6229
|
const lrPlacement = ['left', 'right'];
|
|
6224
6230
|
const rlPlacement = ['right', 'left'];
|
|
@@ -6249,7 +6255,8 @@ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
|
6249
6255
|
return list;
|
|
6250
6256
|
}
|
|
6251
6257
|
function getOppositePlacement(placement) {
|
|
6252
|
-
|
|
6258
|
+
const side = getSide(placement);
|
|
6259
|
+
return oppositeSideMap[side] + placement.slice(side.length);
|
|
6253
6260
|
}
|
|
6254
6261
|
function expandPaddingObject(padding) {
|
|
6255
6262
|
return {
|
|
@@ -6343,6 +6350,74 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
|
6343
6350
|
return coords;
|
|
6344
6351
|
}
|
|
6345
6352
|
|
|
6353
|
+
/**
|
|
6354
|
+
* Resolves with an object of overflow side offsets that determine how much the
|
|
6355
|
+
* element is overflowing a given clipping boundary on each side.
|
|
6356
|
+
* - positive = overflowing the boundary by that number of pixels
|
|
6357
|
+
* - negative = how many pixels left before it will overflow
|
|
6358
|
+
* - 0 = lies flush with the boundary
|
|
6359
|
+
* @see https://floating-ui.com/docs/detectOverflow
|
|
6360
|
+
*/
|
|
6361
|
+
async function detectOverflow(state, options) {
|
|
6362
|
+
var _await$platform$isEle;
|
|
6363
|
+
if (options === void 0) {
|
|
6364
|
+
options = {};
|
|
6365
|
+
}
|
|
6366
|
+
const {
|
|
6367
|
+
x,
|
|
6368
|
+
y,
|
|
6369
|
+
platform,
|
|
6370
|
+
rects,
|
|
6371
|
+
elements,
|
|
6372
|
+
strategy
|
|
6373
|
+
} = state;
|
|
6374
|
+
const {
|
|
6375
|
+
boundary = 'clippingAncestors',
|
|
6376
|
+
rootBoundary = 'viewport',
|
|
6377
|
+
elementContext = 'floating',
|
|
6378
|
+
altBoundary = false,
|
|
6379
|
+
padding = 0
|
|
6380
|
+
} = evaluate(options, state);
|
|
6381
|
+
const paddingObject = getPaddingObject(padding);
|
|
6382
|
+
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
6383
|
+
const element = elements[altBoundary ? altContext : elementContext];
|
|
6384
|
+
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
6385
|
+
element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
|
|
6386
|
+
boundary,
|
|
6387
|
+
rootBoundary,
|
|
6388
|
+
strategy
|
|
6389
|
+
}));
|
|
6390
|
+
const rect = elementContext === 'floating' ? {
|
|
6391
|
+
x,
|
|
6392
|
+
y,
|
|
6393
|
+
width: rects.floating.width,
|
|
6394
|
+
height: rects.floating.height
|
|
6395
|
+
} : rects.reference;
|
|
6396
|
+
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
|
6397
|
+
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
|
6398
|
+
x: 1,
|
|
6399
|
+
y: 1
|
|
6400
|
+
} : {
|
|
6401
|
+
x: 1,
|
|
6402
|
+
y: 1
|
|
6403
|
+
};
|
|
6404
|
+
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
6405
|
+
elements,
|
|
6406
|
+
rect,
|
|
6407
|
+
offsetParent,
|
|
6408
|
+
strategy
|
|
6409
|
+
}) : rect);
|
|
6410
|
+
return {
|
|
6411
|
+
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
6412
|
+
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
6413
|
+
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
6414
|
+
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
6415
|
+
};
|
|
6416
|
+
}
|
|
6417
|
+
|
|
6418
|
+
// Maximum number of resets that can occur before bailing to avoid infinite reset loops.
|
|
6419
|
+
const MAX_RESET_COUNT = 50;
|
|
6420
|
+
|
|
6346
6421
|
/**
|
|
6347
6422
|
* Computes the `x` and `y` coordinates that will place the floating element
|
|
6348
6423
|
* next to a given reference element.
|
|
@@ -6357,7 +6432,10 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
6357
6432
|
middleware = [],
|
|
6358
6433
|
platform
|
|
6359
6434
|
} = config;
|
|
6360
|
-
const
|
|
6435
|
+
const platformWithDetectOverflow = platform.detectOverflow ? platform : {
|
|
6436
|
+
...platform,
|
|
6437
|
+
detectOverflow
|
|
6438
|
+
};
|
|
6361
6439
|
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
|
|
6362
6440
|
let rects = await platform.getElementRects({
|
|
6363
6441
|
reference,
|
|
@@ -6369,13 +6447,17 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
6369
6447
|
y
|
|
6370
6448
|
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
6371
6449
|
let statefulPlacement = placement;
|
|
6372
|
-
let middlewareData = {};
|
|
6373
6450
|
let resetCount = 0;
|
|
6374
|
-
|
|
6451
|
+
const middlewareData = {};
|
|
6452
|
+
for (let i = 0; i < middleware.length; i++) {
|
|
6453
|
+
const currentMiddleware = middleware[i];
|
|
6454
|
+
if (!currentMiddleware) {
|
|
6455
|
+
continue;
|
|
6456
|
+
}
|
|
6375
6457
|
const {
|
|
6376
6458
|
name,
|
|
6377
6459
|
fn
|
|
6378
|
-
} =
|
|
6460
|
+
} = currentMiddleware;
|
|
6379
6461
|
const {
|
|
6380
6462
|
x: nextX,
|
|
6381
6463
|
y: nextY,
|
|
@@ -6389,7 +6471,7 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
6389
6471
|
strategy,
|
|
6390
6472
|
middlewareData,
|
|
6391
6473
|
rects,
|
|
6392
|
-
platform,
|
|
6474
|
+
platform: platformWithDetectOverflow,
|
|
6393
6475
|
elements: {
|
|
6394
6476
|
reference,
|
|
6395
6477
|
floating
|
|
@@ -6397,14 +6479,11 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
6397
6479
|
});
|
|
6398
6480
|
x = nextX != null ? nextX : x;
|
|
6399
6481
|
y = nextY != null ? nextY : y;
|
|
6400
|
-
middlewareData = {
|
|
6401
|
-
...middlewareData,
|
|
6402
|
-
|
|
6403
|
-
...middlewareData[name],
|
|
6404
|
-
...data
|
|
6405
|
-
}
|
|
6482
|
+
middlewareData[name] = {
|
|
6483
|
+
...middlewareData[name],
|
|
6484
|
+
...data
|
|
6406
6485
|
};
|
|
6407
|
-
if (reset && resetCount
|
|
6486
|
+
if (reset && resetCount < MAX_RESET_COUNT) {
|
|
6408
6487
|
resetCount++;
|
|
6409
6488
|
if (typeof reset === 'object') {
|
|
6410
6489
|
if (reset.placement) {
|
|
@@ -6434,71 +6513,6 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
6434
6513
|
};
|
|
6435
6514
|
};
|
|
6436
6515
|
|
|
6437
|
-
/**
|
|
6438
|
-
* Resolves with an object of overflow side offsets that determine how much the
|
|
6439
|
-
* element is overflowing a given clipping boundary on each side.
|
|
6440
|
-
* - positive = overflowing the boundary by that number of pixels
|
|
6441
|
-
* - negative = how many pixels left before it will overflow
|
|
6442
|
-
* - 0 = lies flush with the boundary
|
|
6443
|
-
* @see https://floating-ui.com/docs/detectOverflow
|
|
6444
|
-
*/
|
|
6445
|
-
async function detectOverflow(state, options) {
|
|
6446
|
-
var _await$platform$isEle;
|
|
6447
|
-
if (options === void 0) {
|
|
6448
|
-
options = {};
|
|
6449
|
-
}
|
|
6450
|
-
const {
|
|
6451
|
-
x,
|
|
6452
|
-
y,
|
|
6453
|
-
platform,
|
|
6454
|
-
rects,
|
|
6455
|
-
elements,
|
|
6456
|
-
strategy
|
|
6457
|
-
} = state;
|
|
6458
|
-
const {
|
|
6459
|
-
boundary = 'clippingAncestors',
|
|
6460
|
-
rootBoundary = 'viewport',
|
|
6461
|
-
elementContext = 'floating',
|
|
6462
|
-
altBoundary = false,
|
|
6463
|
-
padding = 0
|
|
6464
|
-
} = evaluate(options, state);
|
|
6465
|
-
const paddingObject = getPaddingObject(padding);
|
|
6466
|
-
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
6467
|
-
const element = elements[altBoundary ? altContext : elementContext];
|
|
6468
|
-
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
6469
|
-
element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
|
|
6470
|
-
boundary,
|
|
6471
|
-
rootBoundary,
|
|
6472
|
-
strategy
|
|
6473
|
-
}));
|
|
6474
|
-
const rect = elementContext === 'floating' ? {
|
|
6475
|
-
x,
|
|
6476
|
-
y,
|
|
6477
|
-
width: rects.floating.width,
|
|
6478
|
-
height: rects.floating.height
|
|
6479
|
-
} : rects.reference;
|
|
6480
|
-
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
|
6481
|
-
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
|
6482
|
-
x: 1,
|
|
6483
|
-
y: 1
|
|
6484
|
-
} : {
|
|
6485
|
-
x: 1,
|
|
6486
|
-
y: 1
|
|
6487
|
-
};
|
|
6488
|
-
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
6489
|
-
elements,
|
|
6490
|
-
rect,
|
|
6491
|
-
offsetParent,
|
|
6492
|
-
strategy
|
|
6493
|
-
}) : rect);
|
|
6494
|
-
return {
|
|
6495
|
-
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
6496
|
-
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
6497
|
-
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
6498
|
-
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
6499
|
-
};
|
|
6500
|
-
}
|
|
6501
|
-
|
|
6502
6516
|
/**
|
|
6503
6517
|
* Provides data to position an inner element of the floating element so that it
|
|
6504
6518
|
* appears centered to the reference element.
|
|
@@ -6631,7 +6645,7 @@ const flip$1 = function (options) {
|
|
|
6631
6645
|
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
6632
6646
|
}
|
|
6633
6647
|
const placements = [initialPlacement, ...fallbackPlacements];
|
|
6634
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
6648
|
+
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
6635
6649
|
const overflows = [];
|
|
6636
6650
|
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
6637
6651
|
if (checkMainAxis) {
|
|
@@ -6815,7 +6829,8 @@ const shift$1 = function (options) {
|
|
|
6815
6829
|
const {
|
|
6816
6830
|
x,
|
|
6817
6831
|
y,
|
|
6818
|
-
placement
|
|
6832
|
+
placement,
|
|
6833
|
+
platform
|
|
6819
6834
|
} = state;
|
|
6820
6835
|
const {
|
|
6821
6836
|
mainAxis: checkMainAxis = true,
|
|
@@ -6838,7 +6853,7 @@ const shift$1 = function (options) {
|
|
|
6838
6853
|
x,
|
|
6839
6854
|
y
|
|
6840
6855
|
};
|
|
6841
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
6856
|
+
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
6842
6857
|
const crossAxis = getSideAxis(getSide(placement));
|
|
6843
6858
|
const mainAxis = getOppositeAxis(crossAxis);
|
|
6844
6859
|
let mainAxisCoord = coords[mainAxis];
|
|
@@ -6902,7 +6917,7 @@ const size$1 = function (options) {
|
|
|
6902
6917
|
apply = () => {},
|
|
6903
6918
|
...detectOverflowOptions
|
|
6904
6919
|
} = evaluate(options, state);
|
|
6905
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
6920
|
+
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
6906
6921
|
const side = getSide(placement);
|
|
6907
6922
|
const alignment = getAlignment(placement);
|
|
6908
6923
|
const isYAxis = getSideAxis(placement) === 'y';
|
|
@@ -7005,7 +7020,6 @@ function isShadowRoot(value) {
|
|
|
7005
7020
|
}
|
|
7006
7021
|
return value instanceof ShadowRoot || value instanceof getWindow$1(value).ShadowRoot;
|
|
7007
7022
|
}
|
|
7008
|
-
const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
|
|
7009
7023
|
function isOverflowElement(element) {
|
|
7010
7024
|
const {
|
|
7011
7025
|
overflow,
|
|
@@ -7013,32 +7027,35 @@ function isOverflowElement(element) {
|
|
|
7013
7027
|
overflowY,
|
|
7014
7028
|
display
|
|
7015
7029
|
} = getComputedStyle$1(element);
|
|
7016
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) &&
|
|
7030
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';
|
|
7017
7031
|
}
|
|
7018
|
-
const tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);
|
|
7019
7032
|
function isTableElement(element) {
|
|
7020
|
-
return
|
|
7033
|
+
return /^(table|td|th)$/.test(getNodeName(element));
|
|
7021
7034
|
}
|
|
7022
|
-
const topLayerSelectors = [':popover-open', ':modal'];
|
|
7023
7035
|
function isTopLayer(element) {
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
return
|
|
7027
|
-
} catch (_e) {
|
|
7028
|
-
return false;
|
|
7036
|
+
try {
|
|
7037
|
+
if (element.matches(':popover-open')) {
|
|
7038
|
+
return true;
|
|
7029
7039
|
}
|
|
7030
|
-
})
|
|
7040
|
+
} catch (_e) {
|
|
7041
|
+
// no-op
|
|
7042
|
+
}
|
|
7043
|
+
try {
|
|
7044
|
+
return element.matches(':modal');
|
|
7045
|
+
} catch (_e) {
|
|
7046
|
+
return false;
|
|
7047
|
+
}
|
|
7031
7048
|
}
|
|
7032
|
-
const
|
|
7033
|
-
const
|
|
7034
|
-
const
|
|
7049
|
+
const willChangeRe = /transform|translate|scale|rotate|perspective|filter/;
|
|
7050
|
+
const containRe = /paint|layout|strict|content/;
|
|
7051
|
+
const isNotNone = value => !!value && value !== 'none';
|
|
7052
|
+
let isWebKitValue;
|
|
7035
7053
|
function isContainingBlock(elementOrCss) {
|
|
7036
|
-
const webkit = isWebKit();
|
|
7037
7054
|
const css = isElement$1(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
7038
7055
|
|
|
7039
7056
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
7040
7057
|
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
7041
|
-
return
|
|
7058
|
+
return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || '') || containRe.test(css.contain || '');
|
|
7042
7059
|
}
|
|
7043
7060
|
function getContainingBlock(element) {
|
|
7044
7061
|
let currentNode = getParentNode(element);
|
|
@@ -7053,12 +7070,13 @@ function getContainingBlock(element) {
|
|
|
7053
7070
|
return null;
|
|
7054
7071
|
}
|
|
7055
7072
|
function isWebKit() {
|
|
7056
|
-
if (
|
|
7057
|
-
|
|
7073
|
+
if (isWebKitValue == null) {
|
|
7074
|
+
isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');
|
|
7075
|
+
}
|
|
7076
|
+
return isWebKitValue;
|
|
7058
7077
|
}
|
|
7059
|
-
const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
|
|
7060
7078
|
function isLastTraversableNode(node) {
|
|
7061
|
-
return
|
|
7079
|
+
return /^(html|body|#document)$/.test(getNodeName(node));
|
|
7062
7080
|
}
|
|
7063
7081
|
function getComputedStyle$1(element) {
|
|
7064
7082
|
return getWindow$1(element).getComputedStyle(element);
|
|
@@ -7114,8 +7132,9 @@ function getOverflowAncestors(node, list, traverseIframes) {
|
|
|
7114
7132
|
if (isBody) {
|
|
7115
7133
|
const frameElement = getFrameElement(win);
|
|
7116
7134
|
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
|
7135
|
+
} else {
|
|
7136
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
7117
7137
|
}
|
|
7118
|
-
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
7119
7138
|
}
|
|
7120
7139
|
function getFrameElement(win) {
|
|
7121
7140
|
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
@@ -7292,7 +7311,7 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
7292
7311
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
7293
7312
|
scroll = getNodeScroll(offsetParent);
|
|
7294
7313
|
}
|
|
7295
|
-
if (
|
|
7314
|
+
if (isOffsetParentAnElement) {
|
|
7296
7315
|
const offsetRect = getBoundingClientRect(offsetParent);
|
|
7297
7316
|
scale = getScale(offsetParent);
|
|
7298
7317
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
@@ -7380,7 +7399,6 @@ function getViewportRect(element, strategy) {
|
|
|
7380
7399
|
};
|
|
7381
7400
|
}
|
|
7382
7401
|
|
|
7383
|
-
const absoluteOrFixed = /*#__PURE__*/new Set(['absolute', 'fixed']);
|
|
7384
7402
|
// Returns the inner client rect, subtracting scrollbars if present.
|
|
7385
7403
|
function getInnerBoundingClientRect(element, strategy) {
|
|
7386
7404
|
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
@@ -7445,7 +7463,7 @@ function getClippingElementAncestors(element, cache) {
|
|
|
7445
7463
|
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
7446
7464
|
currentContainingBlockComputedStyle = null;
|
|
7447
7465
|
}
|
|
7448
|
-
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle &&
|
|
7466
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && (currentContainingBlockComputedStyle.position === 'absolute' || currentContainingBlockComputedStyle.position === 'fixed') || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
7449
7467
|
if (shouldDropCurrentNode) {
|
|
7450
7468
|
// Drop non-containing blocks.
|
|
7451
7469
|
result = result.filter(ancestor => ancestor !== currentNode);
|
|
@@ -7470,20 +7488,23 @@ function getClippingRect(_ref) {
|
|
|
7470
7488
|
} = _ref;
|
|
7471
7489
|
const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
7472
7490
|
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
7473
|
-
const
|
|
7474
|
-
|
|
7475
|
-
|
|
7476
|
-
|
|
7477
|
-
|
|
7478
|
-
|
|
7479
|
-
|
|
7480
|
-
|
|
7481
|
-
|
|
7491
|
+
const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);
|
|
7492
|
+
let top = firstRect.top;
|
|
7493
|
+
let right = firstRect.right;
|
|
7494
|
+
let bottom = firstRect.bottom;
|
|
7495
|
+
let left = firstRect.left;
|
|
7496
|
+
for (let i = 1; i < clippingAncestors.length; i++) {
|
|
7497
|
+
const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);
|
|
7498
|
+
top = max(rect.top, top);
|
|
7499
|
+
right = min(rect.right, right);
|
|
7500
|
+
bottom = min(rect.bottom, bottom);
|
|
7501
|
+
left = max(rect.left, left);
|
|
7502
|
+
}
|
|
7482
7503
|
return {
|
|
7483
|
-
width:
|
|
7484
|
-
height:
|
|
7485
|
-
x:
|
|
7486
|
-
y:
|
|
7504
|
+
width: right - left,
|
|
7505
|
+
height: bottom - top,
|
|
7506
|
+
x: left,
|
|
7507
|
+
y: top
|
|
7487
7508
|
};
|
|
7488
7509
|
}
|
|
7489
7510
|
|
|
@@ -7734,7 +7755,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
7734
7755
|
animationFrame = false
|
|
7735
7756
|
} = options;
|
|
7736
7757
|
const referenceEl = unwrapElement(reference);
|
|
7737
|
-
const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
|
|
7758
|
+
const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...(floating ? getOverflowAncestors(floating) : [])] : [];
|
|
7738
7759
|
ancestors.forEach(ancestor => {
|
|
7739
7760
|
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
|
7740
7761
|
passive: true
|
|
@@ -7747,7 +7768,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
7747
7768
|
if (elementResize) {
|
|
7748
7769
|
resizeObserver = new ResizeObserver(_ref => {
|
|
7749
7770
|
let [firstEntry] = _ref;
|
|
7750
|
-
if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
|
|
7771
|
+
if (firstEntry && firstEntry.target === referenceEl && resizeObserver && floating) {
|
|
7751
7772
|
// Prevent update loops when using the `size` middleware.
|
|
7752
7773
|
// https://github.com/floating-ui/floating-ui/issues/1740
|
|
7753
7774
|
resizeObserver.unobserve(floating);
|
|
@@ -7762,7 +7783,9 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
7762
7783
|
if (referenceEl && !animationFrame) {
|
|
7763
7784
|
resizeObserver.observe(referenceEl);
|
|
7764
7785
|
}
|
|
7765
|
-
|
|
7786
|
+
if (floating) {
|
|
7787
|
+
resizeObserver.observe(floating);
|
|
7788
|
+
}
|
|
7766
7789
|
}
|
|
7767
7790
|
let frameId;
|
|
7768
7791
|
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
@@ -10813,6 +10836,7 @@ var Alert = function Alert(_ref, ref) {
|
|
|
10813
10836
|
children: [CustomAction && jsxRuntime.jsx(CustomAction, {}), onClose && !autoDismiss && jsxRuntime.jsx(Button, {
|
|
10814
10837
|
title: '',
|
|
10815
10838
|
size: 'auto',
|
|
10839
|
+
dataTestId: 'alert-close-btn-test',
|
|
10816
10840
|
variant: 'text',
|
|
10817
10841
|
onClick: function onClick() {
|
|
10818
10842
|
onClose();
|
|
@@ -12323,13 +12347,13 @@ var BOXES = _toConsumableArray(Array(36).keys()).map(function () {
|
|
|
12323
12347
|
var ChartSkeleton = function ChartSkeleton(_ref) {
|
|
12324
12348
|
var theme = _ref.theme,
|
|
12325
12349
|
fallback = _ref.fallback;
|
|
12326
|
-
return
|
|
12350
|
+
return jsxRuntime.jsx("div", {
|
|
12327
12351
|
className: modules_37a5ff73$1.root,
|
|
12328
12352
|
children: BOXES.map(function (box) {
|
|
12329
|
-
return
|
|
12353
|
+
return jsxRuntime.jsx(Skeleton, {
|
|
12330
12354
|
theme: theme,
|
|
12331
12355
|
className: modules_37a5ff73$1.box,
|
|
12332
|
-
height:
|
|
12356
|
+
height: '100%',
|
|
12333
12357
|
noAnimation: fallback
|
|
12334
12358
|
}, box);
|
|
12335
12359
|
})
|
|
@@ -12350,6 +12374,7 @@ var COLORS = Object.keys(modules_1722b0e5).reduce(function (acc, curr) {
|
|
|
12350
12374
|
return acc;
|
|
12351
12375
|
}, {});
|
|
12352
12376
|
|
|
12377
|
+
// Register the required components
|
|
12353
12378
|
echarts__namespace.use([components.TitleComponent, components.TooltipComponent, components.GridComponent, components.DatasetComponent, components.LegendComponent, charts.HeatmapChart, renderers.CanvasRenderer]);
|
|
12354
12379
|
var HeatMapChart = function HeatMapChart(props) {
|
|
12355
12380
|
var _seriesData$metaData$, _seriesData$metaData;
|
|
@@ -12378,7 +12403,7 @@ var HeatMapChart = function HeatMapChart(props) {
|
|
|
12378
12403
|
theme = props.theme,
|
|
12379
12404
|
fallback = props.fallback;
|
|
12380
12405
|
if (loading || fallback) {
|
|
12381
|
-
return
|
|
12406
|
+
return jsxRuntime.jsx(ChartSkeleton, {
|
|
12382
12407
|
theme: theme,
|
|
12383
12408
|
fallback: !loading && fallback
|
|
12384
12409
|
});
|
|
@@ -12451,7 +12476,7 @@ var HeatMapChart = function HeatMapChart(props) {
|
|
|
12451
12476
|
data: dataNew
|
|
12452
12477
|
})];
|
|
12453
12478
|
};
|
|
12454
|
-
return
|
|
12479
|
+
return jsxRuntime.jsx(EChartsReactCore, {
|
|
12455
12480
|
option: {
|
|
12456
12481
|
title: {
|
|
12457
12482
|
text: title
|
|
@@ -12644,6 +12669,7 @@ var CopyButton = function CopyButton(_ref) {
|
|
|
12644
12669
|
};
|
|
12645
12670
|
}();
|
|
12646
12671
|
return jsxRuntime.jsx(Button, {
|
|
12672
|
+
dataTestId: 'code-snippet-copy-btn-test',
|
|
12647
12673
|
title: jsxRuntime.jsx(framerMotion.AnimatePresence, {
|
|
12648
12674
|
mode: 'popLayout',
|
|
12649
12675
|
initial: false,
|
|
@@ -12796,84 +12822,84 @@ var modules_2dbfc50c = {"root":"ErrorBoundaryWrapper_module_root__d987e542","mes
|
|
|
12796
12822
|
n(css$K,{});
|
|
12797
12823
|
|
|
12798
12824
|
var ErrorBoundaryVector = function ErrorBoundaryVector() {
|
|
12799
|
-
return
|
|
12800
|
-
width:
|
|
12801
|
-
height:
|
|
12802
|
-
viewBox:
|
|
12803
|
-
fill:
|
|
12804
|
-
xmlns:
|
|
12805
|
-
children: [
|
|
12806
|
-
d:
|
|
12807
|
-
fill:
|
|
12808
|
-
}),
|
|
12809
|
-
d:
|
|
12810
|
-
fill:
|
|
12811
|
-
}),
|
|
12812
|
-
d:
|
|
12813
|
-
fill:
|
|
12814
|
-
}),
|
|
12815
|
-
d:
|
|
12816
|
-
fill:
|
|
12817
|
-
}),
|
|
12818
|
-
d:
|
|
12819
|
-
fill:
|
|
12820
|
-
}),
|
|
12821
|
-
d:
|
|
12822
|
-
fill:
|
|
12823
|
-
}),
|
|
12824
|
-
d:
|
|
12825
|
-
fill:
|
|
12826
|
-
}),
|
|
12827
|
-
d:
|
|
12828
|
-
fill:
|
|
12829
|
-
}),
|
|
12830
|
-
d:
|
|
12831
|
-
fill:
|
|
12832
|
-
}),
|
|
12833
|
-
d:
|
|
12834
|
-
fill:
|
|
12835
|
-
}),
|
|
12836
|
-
d:
|
|
12837
|
-
fill:
|
|
12838
|
-
}),
|
|
12839
|
-
children: [
|
|
12840
|
-
id:
|
|
12841
|
-
x1:
|
|
12842
|
-
y1:
|
|
12843
|
-
x2:
|
|
12844
|
-
y2:
|
|
12845
|
-
gradientUnits:
|
|
12846
|
-
children: [
|
|
12847
|
-
stopColor:
|
|
12848
|
-
}),
|
|
12849
|
-
offset:
|
|
12850
|
-
stopColor:
|
|
12825
|
+
return jsxRuntime.jsxs("svg", {
|
|
12826
|
+
width: '30rem',
|
|
12827
|
+
height: '30rem',
|
|
12828
|
+
viewBox: '0 0 500 500',
|
|
12829
|
+
fill: 'none',
|
|
12830
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
12831
|
+
children: [jsxRuntime.jsx("path", {
|
|
12832
|
+
d: 'M125.435 223.296C124.403 207.823 117.194 193.543 110.344 179.629C103.495 165.715 96.715 151.124 96.6398 135.618C96.5161 108.989 116.801 85.6721 140.828 74.1936C164.855 62.7151 192.167 60.7527 218.747 59.1613C246.532 57.4947 275.21 56.1506 301.387 65.613C316.478 71.0592 330.113 79.9087 342.892 89.6022C378.666 116.759 408.633 150.811 431.021 189.747C446.505 216.72 458.392 246.871 457.559 277.952C456.726 309.032 441.016 341.048 413.107 354.769C384.371 368.903 349.925 361.565 318.564 368.065C283.204 375.398 254.21 399.634 225.07 420.957C195.93 442.28 162.07 462.172 126.134 458.591C102.134 456.204 80.4838 443.559 60.3817 430.242C42.4785 418.393 23.5376 403.237 21.1451 381.909C19.586 367.995 25.6021 354.387 32.543 342.231C46.1755 318.43 63.8291 297.171 84.7204 279.398C103.624 263.317 127.366 252.032 125.435 223.296Z',
|
|
12833
|
+
fill: '#EAE6FC'
|
|
12834
|
+
}), jsxRuntime.jsx("path", {
|
|
12835
|
+
d: 'M491.935 461.704H444.763C444.05 461.704 443.367 461.421 442.863 460.917C442.358 460.413 442.075 459.729 442.075 459.016C442.075 458.303 442.358 457.619 442.863 457.115C443.367 456.611 444.05 456.328 444.763 456.328H491.935C492.648 456.328 493.332 456.611 493.836 457.115C494.34 457.619 494.624 458.303 494.624 459.016C494.624 459.729 494.34 460.413 493.836 460.917C493.332 461.421 492.648 461.704 491.935 461.704ZM55.2366 461.704H8.06451C7.35157 461.704 6.66782 461.421 6.16369 460.917C5.65956 460.413 5.37634 459.729 5.37634 459.016C5.37634 458.303 5.65956 457.619 6.16369 457.115C6.66782 456.611 7.35157 456.328 8.06451 456.328H55.2366C55.9495 456.328 56.6333 456.611 57.1374 457.115C57.6415 457.619 57.9247 458.303 57.9247 459.016C57.9247 459.729 57.6415 460.413 57.1374 460.917C56.6333 461.421 55.9495 461.704 55.2366 461.704Z',
|
|
12836
|
+
fill: '#1E1E1E'
|
|
12837
|
+
}), jsxRuntime.jsx("path", {
|
|
12838
|
+
d: 'M106.914 232.634V445.419H393.07V232.634C393.07 226.597 388.253 221.699 382.317 221.699H117.667C111.731 221.699 106.914 226.591 106.914 232.634Z',
|
|
12839
|
+
fill: '#D3DCE3'
|
|
12840
|
+
}), jsxRuntime.jsx("path", {
|
|
12841
|
+
d: 'M120.355 235.134H379.629V417.828H120.355V235.134ZM422.043 431.828V439.597C422.044 442.147 421.542 444.672 420.566 447.028C419.59 449.384 418.16 451.525 416.356 453.328C414.553 455.131 412.412 456.561 410.056 457.536C407.699 458.511 405.174 459.012 402.624 459.011H97.3656C94.8159 459.011 92.2911 458.51 89.9353 457.534C87.5796 456.559 85.4391 455.129 83.6362 453.326C81.8334 451.523 80.4034 449.383 79.428 447.027C78.4526 444.671 77.9509 442.146 77.9516 439.597V431.828H204.134C205.56 431.828 206.928 432.394 207.936 433.403C208.944 434.411 209.511 435.778 209.511 437.204V440.043C209.511 441.469 210.077 442.836 211.085 443.845C212.094 444.853 213.461 445.419 214.887 445.419H285.102C286.528 445.419 287.896 444.853 288.904 443.845C289.912 442.836 290.478 441.469 290.478 440.043V437.204C290.478 435.778 291.045 434.411 292.053 433.403C293.061 432.394 294.429 431.828 295.855 431.828H422.043Z',
|
|
12842
|
+
fill: 'white'
|
|
12843
|
+
}), jsxRuntime.jsx("path", {
|
|
12844
|
+
d: 'M290.349 151.801H209.645L169.29 221.693L209.645 291.586H290.349L330.704 221.693L290.349 151.801Z',
|
|
12845
|
+
fill: '#FFD200'
|
|
12846
|
+
}), jsxRuntime.jsx("path", {
|
|
12847
|
+
d: 'M425.538 456.328H416.935C421.667 452.296 424.731 446.328 424.731 439.608V431.812C424.731 430.36 423.548 429.124 422.043 429.124H395.753V232.618C395.753 225.091 389.731 219.016 382.312 219.016H332.258L292.688 150.468C292.456 150.06 292.119 149.72 291.713 149.484C291.307 149.248 290.846 149.124 290.376 149.124H209.624C208.71 149.124 207.796 149.608 207.312 150.468L167.742 219.016H117.688C110.269 219.016 104.247 225.091 104.247 232.618V429.124H77.957C76.4516 429.124 75.2688 430.36 75.2688 431.812V439.608C75.2688 446.328 78.3333 452.296 83.1183 456.328H74.4623C72.957 456.328 71.7742 457.511 71.7742 459.016C71.7742 460.521 72.957 461.704 74.4623 461.704H425.538C427.043 461.704 428.226 460.521 428.226 459.016C428.226 457.511 427.043 456.328 425.538 456.328ZM211.183 154.5H288.817L327.581 221.704C318.935 236.731 326.258 224.038 288.817 288.909H211.183L172.419 221.704L211.183 154.5ZM324.462 237.833H376.935V415.145H123.064V237.833H175.538L207.312 292.941C207.796 293.747 208.71 294.285 209.624 294.285H290.376C291.29 294.285 292.204 293.747 292.688 292.941L324.462 237.833ZM109.624 232.618C109.624 228.102 113.226 224.392 117.688 224.392H167.742L172.419 232.457H120.376C118.871 232.457 117.688 233.64 117.688 235.145V417.833C117.688 419.339 118.871 420.522 120.376 420.522H379.624C381.129 420.522 382.312 419.339 382.312 417.833V235.145C382.312 233.64 381.129 232.457 379.624 232.457H327.581L332.258 224.392H382.312C386.774 224.392 390.376 228.102 390.376 232.618V429.124H295.86C291.398 429.124 287.796 432.78 287.796 437.188V440.038C287.796 441.543 286.613 442.726 285.108 442.726H214.892C213.387 442.726 212.204 441.543 212.204 440.038V437.188C212.204 432.78 208.602 429.124 204.14 429.124H109.624V232.618ZM402.634 456.328H97.3656C92.9354 456.314 88.6907 454.548 85.5581 451.415C82.4255 448.282 80.6593 444.038 80.6451 439.608V434.5H204.14C205.591 434.5 206.828 435.737 206.828 437.188V440.038C206.828 441.005 206.989 441.866 207.312 442.726C208.387 445.844 211.398 448.102 214.892 448.102H285.108C288.602 448.102 291.613 445.844 292.688 442.726C293.011 441.866 293.172 441.005 293.172 440.038V437.188C293.172 435.737 294.409 434.5 295.86 434.5H419.355V439.608C419.355 448.801 411.828 456.328 402.634 456.328Z',
|
|
12848
|
+
fill: '#231F20'
|
|
12849
|
+
}), jsxRuntime.jsx("path", {
|
|
12850
|
+
d: 'M265.941 185.468C265.941 192.059 257.07 224.376 252.554 240.323C251.801 242.871 248.194 242.871 247.446 240.323C242.93 224.376 234.054 192.059 234.054 185.468C234.057 181.239 235.738 177.185 238.727 174.195C241.717 171.205 245.772 169.524 250 169.521C254.227 169.526 258.28 171.207 261.269 174.197C264.258 177.187 265.938 181.24 265.941 185.468Z',
|
|
12851
|
+
fill: '#231F20'
|
|
12852
|
+
}), jsxRuntime.jsx("path", {
|
|
12853
|
+
d: 'M249.995 273.866C255.865 273.866 260.624 269.107 260.624 263.237C260.624 257.366 255.865 252.608 249.995 252.608C244.124 252.608 239.366 257.366 239.366 263.237C239.366 269.107 244.124 273.866 249.995 273.866Z',
|
|
12854
|
+
fill: '#231F20'
|
|
12855
|
+
}), jsxRuntime.jsx("path", {
|
|
12856
|
+
d: 'M278.962 363.986H267.49C267.022 363.986 266.64 364.353 266.616 364.82C266.065 375.483 255.461 383.488 244.099 379.535C239.585 377.964 236.011 374.389 234.442 369.875C230.384 358.207 238.937 347.338 250.028 347.338C250.04 347.338 250.052 347.338 250.064 347.338V335.011C250.064 334.514 249.652 334.118 249.156 334.132C243.299 334.301 237.867 336.158 233.326 339.232V316.221H220.159V363.787H220.201C220.185 366.681 220.58 369.674 221.445 372.708C224.171 382.271 231.696 389.801 241.258 392.529C261.155 398.208 279.253 383.759 279.841 364.897C279.857 364.4 279.459 363.986 278.962 363.986Z',
|
|
12857
|
+
fill: 'url(#paint0_linear_721_1222)'
|
|
12858
|
+
}), jsxRuntime.jsx("path", {
|
|
12859
|
+
d: 'M265.296 362.302C265.632 362.638 266.207 362.447 266.277 361.978L268.601 346.254C268.657 345.87 268.328 345.541 267.944 345.597L252.22 347.921C251.751 347.991 251.56 348.566 251.896 348.902L265.297 362.303L265.296 362.302Z',
|
|
12860
|
+
fill: 'url(#paint1_linear_721_1222)'
|
|
12861
|
+
}), jsxRuntime.jsx("path", {
|
|
12862
|
+
d: 'M275.706 351.91C276.038 352.243 276.607 352.055 276.675 351.59L279.002 335.845C279.059 335.466 278.733 335.14 278.353 335.196L262.609 337.523C262.144 337.592 261.956 338.161 262.288 338.493L275.706 351.91Z',
|
|
12863
|
+
fill: 'url(#paint2_linear_721_1222)'
|
|
12864
|
+
}), jsxRuntime.jsxs("defs", {
|
|
12865
|
+
children: [jsxRuntime.jsxs("linearGradient", {
|
|
12866
|
+
id: 'paint0_linear_721_1222',
|
|
12867
|
+
x1: '213.909',
|
|
12868
|
+
y1: '301.586',
|
|
12869
|
+
x2: '278.196',
|
|
12870
|
+
y2: '297.01',
|
|
12871
|
+
gradientUnits: 'userSpaceOnUse',
|
|
12872
|
+
children: [jsxRuntime.jsx("stop", {
|
|
12873
|
+
stopColor: '#FF1597'
|
|
12874
|
+
}), jsxRuntime.jsx("stop", {
|
|
12875
|
+
offset: '1',
|
|
12876
|
+
stopColor: '#FF892A'
|
|
12851
12877
|
})]
|
|
12852
|
-
}),
|
|
12853
|
-
id:
|
|
12854
|
-
x1:
|
|
12855
|
-
y1:
|
|
12856
|
-
x2:
|
|
12857
|
-
y2:
|
|
12858
|
-
gradientUnits:
|
|
12859
|
-
children: [
|
|
12860
|
-
stopColor:
|
|
12861
|
-
}),
|
|
12862
|
-
offset:
|
|
12863
|
-
stopColor:
|
|
12878
|
+
}), jsxRuntime.jsxs("linearGradient", {
|
|
12879
|
+
id: 'paint1_linear_721_1222',
|
|
12880
|
+
x1: '249.958',
|
|
12881
|
+
y1: '342.406',
|
|
12882
|
+
x2: '268.079',
|
|
12883
|
+
y2: '340.729',
|
|
12884
|
+
gradientUnits: 'userSpaceOnUse',
|
|
12885
|
+
children: [jsxRuntime.jsx("stop", {
|
|
12886
|
+
stopColor: '#FF1597'
|
|
12887
|
+
}), jsxRuntime.jsx("stop", {
|
|
12888
|
+
offset: '1',
|
|
12889
|
+
stopColor: '#FF892A'
|
|
12864
12890
|
})]
|
|
12865
|
-
}),
|
|
12866
|
-
id:
|
|
12867
|
-
x1:
|
|
12868
|
-
y1:
|
|
12869
|
-
x2:
|
|
12870
|
-
y2:
|
|
12871
|
-
gradientUnits:
|
|
12872
|
-
children: [
|
|
12873
|
-
stopColor:
|
|
12874
|
-
}),
|
|
12875
|
-
offset:
|
|
12876
|
-
stopColor:
|
|
12891
|
+
}), jsxRuntime.jsxs("linearGradient", {
|
|
12892
|
+
id: 'paint2_linear_721_1222',
|
|
12893
|
+
x1: '260.351',
|
|
12894
|
+
y1: '332.003',
|
|
12895
|
+
x2: '278.48',
|
|
12896
|
+
y2: '330.326',
|
|
12897
|
+
gradientUnits: 'userSpaceOnUse',
|
|
12898
|
+
children: [jsxRuntime.jsx("stop", {
|
|
12899
|
+
stopColor: '#FF1597'
|
|
12900
|
+
}), jsxRuntime.jsx("stop", {
|
|
12901
|
+
offset: '1',
|
|
12902
|
+
stopColor: '#FF892A'
|
|
12877
12903
|
})]
|
|
12878
12904
|
})]
|
|
12879
12905
|
})]
|
|
@@ -13064,7 +13090,9 @@ var getDatePickerDisplayValue = function getDatePickerDisplayValue(_ref5) {
|
|
|
13064
13090
|
rangePicker = _ref5.rangePicker,
|
|
13065
13091
|
singlePicker = _ref5.singlePicker,
|
|
13066
13092
|
timeRange = _ref5.timeRange,
|
|
13067
|
-
limitHours = _ref5.limitHours
|
|
13093
|
+
limitHours = _ref5.limitHours,
|
|
13094
|
+
_ref5$showTime = _ref5.showTime,
|
|
13095
|
+
showTime = _ref5$showTime === void 0 ? true : _ref5$showTime;
|
|
13068
13096
|
if (rangePicker) {
|
|
13069
13097
|
var rangeValue = value;
|
|
13070
13098
|
var startUnix = rangeValue[0];
|
|
@@ -13089,16 +13117,24 @@ var getDatePickerDisplayValue = function getDatePickerDisplayValue(_ref5) {
|
|
|
13089
13117
|
var singleValue = value;
|
|
13090
13118
|
if (singleValue === undefined) return '';
|
|
13091
13119
|
var sDate = fromUnixTime(singleValue);
|
|
13092
|
-
var
|
|
13093
|
-
|
|
13120
|
+
var dateValue = "".concat(sDate.getDate(), " ").concat(getMonthAbbreviation(sDate), " ").concat(sDate.getFullYear());
|
|
13121
|
+
if (showTime) {
|
|
13122
|
+
var timeValue = "".concat(doubleDigitted((sDate.getHours() + 11) % 12 + 1), ":").concat(doubleDigitted(sDate.getMinutes()), " ").concat(sDate.getHours() >= 12 ? 'PM' : 'AM');
|
|
13123
|
+
return "".concat(dateValue, ", ").concat(timeValue);
|
|
13124
|
+
}
|
|
13125
|
+
return dateValue;
|
|
13094
13126
|
}
|
|
13095
13127
|
if (timeRange) {
|
|
13096
13128
|
var _singleValue = value;
|
|
13097
13129
|
if (_singleValue === undefined) return '';
|
|
13098
13130
|
var _sDate = fromUnixTime(_singleValue - 3600 * (limitHours !== null && limitHours !== void 0 ? limitHours : 0));
|
|
13099
13131
|
var eDate = fromUnixTime(_singleValue);
|
|
13100
|
-
var
|
|
13101
|
-
|
|
13132
|
+
var _dateValue = "".concat(_sDate.getDate(), " ").concat(getMonthAbbreviation(_sDate), " ").concat(_sDate.getFullYear());
|
|
13133
|
+
if (showTime) {
|
|
13134
|
+
var _timeValue = "".concat(doubleDigitted((_sDate.getHours() + 11) % 12 + 1), ":").concat(doubleDigitted(_sDate.getMinutes()), " ").concat(_sDate.getHours() >= 12 ? 'PM' : 'AM', " - ").concat(doubleDigitted((eDate.getHours() + 11) % 12 + 1), ":").concat(doubleDigitted(eDate.getMinutes()), " ").concat(eDate.getHours() >= 12 ? 'PM' : 'AM');
|
|
13135
|
+
return "".concat(_dateValue, ", ").concat(_timeValue);
|
|
13136
|
+
}
|
|
13137
|
+
return _dateValue;
|
|
13102
13138
|
}
|
|
13103
13139
|
return '';
|
|
13104
13140
|
};
|
|
@@ -13872,8 +13908,8 @@ var TimeSwitcher = function TimeSwitcher(props) {
|
|
|
13872
13908
|
});
|
|
13873
13909
|
};
|
|
13874
13910
|
|
|
13875
|
-
var css$A = ".
|
|
13876
|
-
var modules_cf337dc1 = {"root":"
|
|
13911
|
+
var css$A = ".Header_module_root__63c71534 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 0rem;\n}\n.Header_module_root__63c71534 .Header_module_titleContainer__63c71534 {\n align-self: stretch;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding: 0rem 1rem;\n width: 100%;\n}\n.Header_module_root__63c71534 .Header_module_titleContainer__63c71534 .Header_module_title__63c71534 {\n font-weight: 500;\n font-size: 0.875rem;\n color: var(--text-color);\n line-height: 1.3125rem;\n}\n.Header_module_root__63c71534 .Header_module_titleContainer__63c71534 .Header_module_icon__63c71534 {\n width: 1.5rem;\n height: 1.5rem;\n stroke: var(--text-color);\n stroke-width: 0.5px;\n cursor: pointer;\n}\n.Header_module_root__63c71534 .Header_module_dateTimeSwitch__63c71534 {\n width: 100%;\n}";
|
|
13912
|
+
var modules_cf337dc1 = {"root":"Header_module_root__63c71534","title-container":"Header_module_titleContainer__63c71534","title":"Header_module_title__63c71534","icon":"Header_module_icon__63c71534","date-time-switch":"Header_module_dateTimeSwitch__63c71534"};
|
|
13877
13913
|
n(css$A,{});
|
|
13878
13914
|
|
|
13879
13915
|
var css$z = ".DateAndTimeSelection_module_root__f884539a {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 0.3125rem;\n padding-inline: 0.75rem;\n width: 100%;\n}\n.DateAndTimeSelection_module_root__f884539a > span {\n font-weight: 500;\n font-size: 0.875rem;\n line-height: 1.3125rem;\n color: var(--text-color);\n}\n.DateAndTimeSelection_module_root__f884539a > div {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: flex-start;\n width: 100%;\n gap: 0.25rem;\n}\n.DateAndTimeSelection_module_root__f884539a > div button[data-elem=base-cell].DateAndTimeSelection_module_selector__f884539a {\n flex: 1;\n border: 1px solid var(--mono-color2) !important;\n border-radius: 4px;\n padding: 0.75rem 1rem;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n background-color: var(--light-color3) !important;\n}\n.DateAndTimeSelection_module_root__f884539a > div button[data-elem=base-cell].DateAndTimeSelection_module_selector__f884539a.DateAndTimeSelection_module_active__f884539a {\n background-color: var(--secondary-color2) !important;\n}\n.DateAndTimeSelection_module_root__f884539a > div button[data-elem=base-cell].DateAndTimeSelection_module_selector__f884539a.DateAndTimeSelection_module_active__f884539a > [data-elem=component2] > [data-elem=title] {\n color: var(--white);\n}\n.DateAndTimeSelection_module_root__f884539a > div button[data-elem=base-cell].DateAndTimeSelection_module_selector__f884539a:hover.DateAndTimeSelection_module_active__f884539a {\n background-color: var(--secondary-color2) !important;\n}\n.DateAndTimeSelection_module_root__f884539a > div button[data-elem=base-cell].DateAndTimeSelection_module_selector__f884539a:hover.DateAndTimeSelection_module_active__f884539a > [data-elem=component2] > [data-elem=title] {\n color: var(--white);\n}\n.DateAndTimeSelection_module_root__f884539a > div button[data-elem=base-cell].DateAndTimeSelection_module_selector__f884539a > [data-elem=component2] > [data-elem=title] {\n color: var(--text-color);\n}";
|
|
@@ -14512,7 +14548,8 @@ var DatePicker = function DatePicker(props) {
|
|
|
14512
14548
|
rangePicker: !!(range && (value === null || value === void 0 || (_value$filter = value.filter) === null || _value$filter === void 0 || (_value$filter = _value$filter.call(value, Boolean)) === null || _value$filter === void 0 ? void 0 : _value$filter.length) > 0),
|
|
14513
14549
|
singlePicker: !!(!range && value),
|
|
14514
14550
|
timeRange: timeRange,
|
|
14515
|
-
limitHours: limitHours !== null && limitHours !== void 0 ? limitHours : undefined
|
|
14551
|
+
limitHours: limitHours !== null && limitHours !== void 0 ? limitHours : undefined,
|
|
14552
|
+
showTime: showTime
|
|
14516
14553
|
}) : '';
|
|
14517
14554
|
var datePickerFloatingReference = useFloating(getFloatingReferences(openDatePicker, setOpenDatePicker));
|
|
14518
14555
|
var customRangeFloatingReference = useFloating(getFloatingReferences(openCustomRange, setOpenCustomRange));
|
|
@@ -14649,6 +14686,7 @@ var DatePicker = function DatePicker(props) {
|
|
|
14649
14686
|
ref: datePickerRef,
|
|
14650
14687
|
children: [hasCustomRanges && !showCustomRanges && jsxRuntime.jsx(Button, _objectSpread2({
|
|
14651
14688
|
"data-elem": 'custom-header',
|
|
14689
|
+
"data-testid": 'data-picker-custom-header-dpn-test',
|
|
14652
14690
|
ref: customRangeFloatingReference.reference,
|
|
14653
14691
|
leftComponent: function leftComponent() {
|
|
14654
14692
|
return jsxRuntime.jsx(Clock, {
|
|
@@ -14666,6 +14704,7 @@ var DatePicker = function DatePicker(props) {
|
|
|
14666
14704
|
"data-elem": 'header',
|
|
14667
14705
|
ref: datePickerFloatingReference.reference,
|
|
14668
14706
|
role: 'button',
|
|
14707
|
+
"data-testid": 'date-picker-header-dpn-test',
|
|
14669
14708
|
tabIndex: 0,
|
|
14670
14709
|
className: classes(modules_5b831cd1.container, disabled ? modules_5b831cd1.disabled : '', openDatePicker ? modules_5b831cd1.open : '', error ? modules_5b831cd1.error : '', customRanges ? modules_5b831cd1['with-custom'] : '', displayValue ? modules_5b831cd1.highlight : '', highlightOnSelect && value ? modules_5b831cd1.highlightOnSelect : '')
|
|
14671
14710
|
}, datePickerInteractionProps.getReferenceProps()), {}, {
|
|
@@ -14948,7 +14987,9 @@ var TextField = /*#__PURE__*/React.forwardRef(function (props, inputRef) {
|
|
|
14948
14987
|
feedback = props.feedback,
|
|
14949
14988
|
maxLength = props.maxLength,
|
|
14950
14989
|
onKeyDown = props.onKeyDown,
|
|
14951
|
-
autocompleteOptions = props.autocompleteOptions
|
|
14990
|
+
autocompleteOptions = props.autocompleteOptions,
|
|
14991
|
+
_props$unstyled = props.unstyled,
|
|
14992
|
+
unstyled = _props$unstyled === void 0 ? false : _props$unstyled;
|
|
14952
14993
|
var _useRef = React.useRef(value !== undefined),
|
|
14953
14994
|
isControlled = _useRef.current;
|
|
14954
14995
|
var _useState = React.useState(defaultValue),
|
|
@@ -15072,7 +15113,7 @@ var TextField = /*#__PURE__*/React.forwardRef(function (props, inputRef) {
|
|
|
15072
15113
|
ref: o([inputRef]),
|
|
15073
15114
|
value: inputValue,
|
|
15074
15115
|
onChange: handleChange,
|
|
15075
|
-
className: classes(modules_c1d23762[size], modules_c1d23762.input, feedback !== null && feedback !== void 0 && feedback.error ? modules_c1d23762.error : '')
|
|
15116
|
+
className: unstyled ? classes(modules_c1d23762.unstyled, className) : classes(modules_c1d23762[size], modules_c1d23762.input, feedback !== null && feedback !== void 0 && feedback.error ? modules_c1d23762.error : '')
|
|
15076
15117
|
}, typeof maxLength === 'number' ? {
|
|
15077
15118
|
maxLength: maxLength
|
|
15078
15119
|
} : {});
|
|
@@ -15080,6 +15121,11 @@ var TextField = /*#__PURE__*/React.forwardRef(function (props, inputRef) {
|
|
|
15080
15121
|
type: inputType,
|
|
15081
15122
|
defaultValue: defaultValue
|
|
15082
15123
|
}, inputProps));
|
|
15124
|
+
// ── Unstyled Return Path ─────────────────────────────────────────────
|
|
15125
|
+
if (unstyled) {
|
|
15126
|
+
return Input;
|
|
15127
|
+
}
|
|
15128
|
+
// ── Standard Return Path ─────────────────────────────────────────────
|
|
15083
15129
|
var AutocompletePopover = autocompleteOptions === null || autocompleteOptions === void 0 ? void 0 : autocompleteOptions.render;
|
|
15084
15130
|
return jsxRuntime.jsxs("div", {
|
|
15085
15131
|
className: classes(modules_c1d23762.root, className),
|
|
@@ -15796,7 +15842,8 @@ var Checkbox = function Checkbox(props) {
|
|
|
15796
15842
|
className = _props$className === void 0 ? '' : _props$className,
|
|
15797
15843
|
disabled = props.disabled,
|
|
15798
15844
|
disabledAsChild = props.disabledAsChild,
|
|
15799
|
-
intermediate = props.intermediate
|
|
15845
|
+
intermediate = props.intermediate,
|
|
15846
|
+
dataTestId = props.dataTestId;
|
|
15800
15847
|
// Track controlled/uncontrolled mode once on first render
|
|
15801
15848
|
var _useRef = React.useRef(checked !== undefined),
|
|
15802
15849
|
isControlled = _useRef.current;
|
|
@@ -15823,6 +15870,7 @@ var Checkbox = function Checkbox(props) {
|
|
|
15823
15870
|
children: [jsxRuntime.jsx("input", _objectSpread2(_objectSpread2({
|
|
15824
15871
|
disabled: disabled,
|
|
15825
15872
|
type: 'checkbox',
|
|
15873
|
+
"data-testid": dataTestId !== null && dataTestId !== void 0 ? dataTestId : label ? "checkbox-input-".concat(label, "-cb-test") : 'checkbox-input-cb-test',
|
|
15826
15874
|
defaultChecked: defaultChecked
|
|
15827
15875
|
}, isControlled ? {
|
|
15828
15876
|
checked: !!checked
|
|
@@ -15886,7 +15934,8 @@ var Dropdown = /*#__PURE__*/React.forwardRef(function Dropdown(props, ref) {
|
|
|
15886
15934
|
valueAsCount = props.valueAsCount,
|
|
15887
15935
|
caretAsUpDown = props.caretAsUpDown,
|
|
15888
15936
|
search = props.search,
|
|
15889
|
-
hideValueOnSelect = props.hideValueOnSelect
|
|
15937
|
+
hideValueOnSelect = props.hideValueOnSelect,
|
|
15938
|
+
dataTestId = props.dataTestId;
|
|
15890
15939
|
var _useState = React.useState(false),
|
|
15891
15940
|
_useState2 = _slicedToArray(_useState, 2),
|
|
15892
15941
|
open = _useState2[0],
|
|
@@ -16209,6 +16258,7 @@ var Dropdown = /*#__PURE__*/React.forwardRef(function Dropdown(props, ref) {
|
|
|
16209
16258
|
})
|
|
16210
16259
|
}), jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({
|
|
16211
16260
|
"data-elem": 'header',
|
|
16261
|
+
"data-testid": "dropdown-header-".concat(placeholder ? placeholder.toString() : dataTestId, "-dpn-test"),
|
|
16212
16262
|
className: classes(modules_1b90f5ea.header, error ? modules_1b90f5ea.error : ' ', open ? modules_1b90f5ea.open : '', (Array.isArray(value) ? value.length > 0 : !!value) && highlightOnSelect ? modules_1b90f5ea.highlightOnSelect : ''),
|
|
16213
16263
|
ref: reference
|
|
16214
16264
|
}, getReferenceProps()), {}, {
|
|
@@ -16326,6 +16376,7 @@ var Dropdown = /*#__PURE__*/React.forwardRef(function Dropdown(props, ref) {
|
|
|
16326
16376
|
className: modules_1b90f5ea['multi-clear'],
|
|
16327
16377
|
blurOnClick: false,
|
|
16328
16378
|
title: 'Clear',
|
|
16379
|
+
dataTestId: 'dropdown-clear-btn-test',
|
|
16329
16380
|
size: 'auto',
|
|
16330
16381
|
disabled: selectedOptions.length === 0,
|
|
16331
16382
|
onClick: function onClick(event) {
|
|
@@ -16336,6 +16387,7 @@ var Dropdown = /*#__PURE__*/React.forwardRef(function Dropdown(props, ref) {
|
|
|
16336
16387
|
}
|
|
16337
16388
|
}), jsxRuntime.jsx(Button, {
|
|
16338
16389
|
className: modules_1b90f5ea['multi-apply'],
|
|
16390
|
+
dataTestId: 'dropdown-apply-btn-test',
|
|
16339
16391
|
title: selectedOptions.length === 0 ? 'Apply' : multiSelectActionTitle !== null && multiSelectActionTitle !== void 0 ? multiSelectActionTitle : 'Apply',
|
|
16340
16392
|
size: 'auto',
|
|
16341
16393
|
onClick: onApply
|
|
@@ -16361,7 +16413,8 @@ var Radio = function Radio(props) {
|
|
|
16361
16413
|
_props$size = props.size,
|
|
16362
16414
|
size = _props$size === void 0 ? 'sm' : _props$size,
|
|
16363
16415
|
className = props.className,
|
|
16364
|
-
disabled = props.disabled
|
|
16416
|
+
disabled = props.disabled,
|
|
16417
|
+
dataTestId = props.dataTestId;
|
|
16365
16418
|
// Lock controlled vs uncontrolled on first render
|
|
16366
16419
|
var _useRef = React.useRef(checked !== undefined),
|
|
16367
16420
|
isControlled = _useRef.current;
|
|
@@ -16391,7 +16444,8 @@ var Radio = function Radio(props) {
|
|
|
16391
16444
|
type: 'radio',
|
|
16392
16445
|
// Preserve original pattern: always pass checked (undefined keeps it uncontrolled)
|
|
16393
16446
|
checked: isChecked,
|
|
16394
|
-
onChange: handleChange
|
|
16447
|
+
onChange: handleChange,
|
|
16448
|
+
"data-testid": dataTestId !== null && dataTestId !== void 0 ? dataTestId : label ? "radio-input-".concat(label, "-rd-test") : 'radio-input-rd-test'
|
|
16395
16449
|
}), isChecked ? jsxRuntime.jsx(CheckedIcon, {
|
|
16396
16450
|
"data-elem": 'icon',
|
|
16397
16451
|
className: classes(modules_3705961f["icon-".concat(size)], modules_3705961f.icon)
|
|
@@ -16560,8 +16614,8 @@ var DropdownItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
16560
16614
|
}));
|
|
16561
16615
|
});
|
|
16562
16616
|
|
|
16563
|
-
var css$m = ".
|
|
16564
|
-
var modules_f23ae002 = {"root":"
|
|
16617
|
+
var css$m = ".BaseModal_module_root__387071a4 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n top: 50%;\n left: 50%;\n right: auto;\n bottom: auto;\n transform: translate(-50%, -50%);\n max-height: 100%;\n height: 43.75rem;\n width: 62.5rem;\n position: fixed;\n background: var(--light-color3);\n box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.13);\n border-radius: 8px;\n outline: none;\n}\n.BaseModal_module_root__387071a4 .BaseModal_module_body__387071a4 {\n overflow-y: scroll;\n padding: 1rem;\n}\n.BaseModal_module_root__387071a4 .BaseModal_module_body__387071a4::-webkit-scrollbar {\n display: none;\n}\n.BaseModal_module_root__387071a4 .BaseModal_module_body__387071a4 {\n -ms-overflow-style: none;\n scrollbar-width: none;\n color: var(--text-color);\n}\n.BaseModal_module_root__387071a4 .BaseModal_module_header__387071a4,\n.BaseModal_module_root__387071a4 .BaseModal_module_footer__387071a4 {\n padding: 1rem;\n color: var(--text-color);\n}\n.BaseModal_module_root__387071a4 .BaseModal_module_header__387071a4 {\n font-weight: 500;\n font-size: 1.375rem;\n box-shadow: 0px 0.1px 2px rgba(24, 24, 24, 0.08);\n}\n.BaseModal_module_root__387071a4 .BaseModal_module_footer__387071a4 {\n margin-top: auto;\n border-radius: 0 0 8px 8px;\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n gap: 1rem;\n}\n.BaseModal_module_root__387071a4 .BaseModal_module_footer__387071a4 button.BaseModal_module_dismiss__387071a4[data-elem=base-cell] {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: stretch;\n color: var(--mono-color1);\n background-color: var(--light-color2);\n border-radius: 0.25rem;\n outline: 1px solid var(--light-color2) !important;\n border: none;\n}\n.BaseModal_module_root__387071a4 .BaseModal_module_footer__387071a4 button.BaseModal_module_dismiss__387071a4[data-elem=base-cell]:hover {\n background-color: var(--light-color1);\n}\n.BaseModal_module_root__387071a4 button.BaseModal_module_close__387071a4[data-elem=base-cell] {\n position: absolute;\n right: 1rem;\n top: 1rem;\n padding: 0.25rem;\n height: auto;\n background: var(--light-color3);\n box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.25);\n}\n.BaseModal_module_root__387071a4 button.BaseModal_module_close__387071a4[data-elem=base-cell]:hover {\n box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.25);\n}\n.BaseModal_module_root__387071a4 button.BaseModal_module_close__387071a4[data-elem=base-cell] .BaseModal_module_icon__387071a4 {\n width: 1.5rem;\n height: 1.5rem;\n fill: var(--text-color);\n}";
|
|
16618
|
+
var modules_f23ae002 = {"root":"BaseModal_module_root__387071a4","body":"BaseModal_module_body__387071a4","header":"BaseModal_module_header__387071a4","footer":"BaseModal_module_footer__387071a4","dismiss":"BaseModal_module_dismiss__387071a4","close":"BaseModal_module_close__387071a4","icon":"BaseModal_module_icon__387071a4"};
|
|
16565
16619
|
n(css$m,{});
|
|
16566
16620
|
|
|
16567
16621
|
var MotionFooter = framerMotion.motion.footer;
|
|
@@ -16733,6 +16787,7 @@ var BaseModal = function BaseModal(props) {
|
|
|
16733
16787
|
size: 'auto',
|
|
16734
16788
|
variant: 'text',
|
|
16735
16789
|
className: modules_f23ae002.close,
|
|
16790
|
+
dataTestId: 'modal-cross-dismiss-btn-test',
|
|
16736
16791
|
onClick: function onClick() {
|
|
16737
16792
|
toggle === null || toggle === void 0 || toggle(false);
|
|
16738
16793
|
},
|
|
@@ -17689,6 +17744,7 @@ var Link = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
17689
17744
|
stroke: stroke,
|
|
17690
17745
|
weight: weight,
|
|
17691
17746
|
italic: italic,
|
|
17747
|
+
"data-testid": typeof children === 'string' ? "link-".concat(children, "-root-test") : 'link-root-test',
|
|
17692
17748
|
className: classes(modules_475441e2.root, modules_475441e2["underline-".concat(underline)], className),
|
|
17693
17749
|
attrs: _objectSpread2({
|
|
17694
17750
|
href: href,
|
|
@@ -18001,6 +18057,7 @@ var Pagination = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
18001
18057
|
className: modules_a3d40e77.dropdown,
|
|
18002
18058
|
popperClassName: modules_a3d40e77['dropdown-popper'],
|
|
18003
18059
|
value: step.toString(),
|
|
18060
|
+
dataTestId: 'page-steps',
|
|
18004
18061
|
placeholder: '',
|
|
18005
18062
|
onChange: function onChange(_, newStep) {
|
|
18006
18063
|
dispatch({
|
|
@@ -18076,12 +18133,14 @@ var Pagination = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
18076
18133
|
required: true,
|
|
18077
18134
|
placeholder: ''
|
|
18078
18135
|
},
|
|
18136
|
+
name: 'jump-to-page',
|
|
18079
18137
|
ref: jumpPageRef,
|
|
18080
18138
|
type: 'number',
|
|
18081
18139
|
className: modules_a3d40e77.inputbox
|
|
18082
18140
|
}),
|
|
18083
18141
|
component2: jsxRuntime.jsx(Button, {
|
|
18084
18142
|
size: 'auto',
|
|
18143
|
+
dataTestId: 'jump-to-page-btn-test',
|
|
18085
18144
|
variant: 'contained',
|
|
18086
18145
|
className: modules_a3d40e77.button,
|
|
18087
18146
|
rightComponent: function rightComponent() {
|
|
@@ -19147,6 +19206,7 @@ var TableFilters = function TableFilters(props) {
|
|
|
19147
19206
|
className: modules_a0fe63f9.search,
|
|
19148
19207
|
placeholder: searchPlaceholder,
|
|
19149
19208
|
value: search,
|
|
19209
|
+
name: 'table-search',
|
|
19150
19210
|
onKeyDown: handleKeyDown,
|
|
19151
19211
|
onChange: function onChange(e) {
|
|
19152
19212
|
var _inputHelper = inputHelper(e),
|
|
@@ -19160,6 +19220,7 @@ var TableFilters = function TableFilters(props) {
|
|
|
19160
19220
|
}
|
|
19161
19221
|
}), jsxRuntime.jsx(Button, {
|
|
19162
19222
|
className: classes(modules_a0fe63f9['search-button'], onClear && modules_a0fe63f9.clear),
|
|
19223
|
+
dataTestId: onClear ? 'table-clear-search-btn-test' : 'table-search-btn-test',
|
|
19163
19224
|
onClick: function onClick() {
|
|
19164
19225
|
if (onClear) {
|
|
19165
19226
|
onClear();
|
|
@@ -19179,6 +19240,7 @@ var TableFilters = function TableFilters(props) {
|
|
|
19179
19240
|
}), !disabledSearch && jsxRuntime.jsx(Button, _objectSpread2({
|
|
19180
19241
|
size: 'auto',
|
|
19181
19242
|
className: classes(modules_a0fe63f9['adv-filter'], filtersCount > 0 ? modules_a0fe63f9.filter : ''),
|
|
19243
|
+
dataTestId: 'table-advanced-filter-btn-test',
|
|
19182
19244
|
title: jsxRuntime.jsx(Filter, {
|
|
19183
19245
|
className: modules_a0fe63f9.icon,
|
|
19184
19246
|
v2: true
|
|
@@ -19212,6 +19274,7 @@ var TableFilters = function TableFilters(props) {
|
|
|
19212
19274
|
}
|
|
19213
19275
|
},
|
|
19214
19276
|
placeholder: '',
|
|
19277
|
+
dataTestId: 'column-filters',
|
|
19215
19278
|
multi: true,
|
|
19216
19279
|
multiSelectActionTitle: 'Hide',
|
|
19217
19280
|
valueAsCount: true,
|