@onewelcome/react-lib-components 1.4.0 → 1.5.0
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/README.md +7 -0
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/ContextMenu/ContextMenu.d.ts +4 -1
- package/dist/DataGrid/DataGridActions/DataGridColumnsToggle.d.ts +1 -1
- package/dist/DataGrid/datagrid.interfaces.d.ts +4 -4
- package/dist/Form/FormControl/FormControl.d.ts +1 -1
- package/dist/Form/Input/Input.d.ts +1 -1
- package/dist/Form/Select/Select.d.ts +1 -1
- package/dist/Form/Select/Select.interfaces.d.ts +1 -1
- package/dist/Icon/Icon.d.ts +1 -1
- package/dist/Link/Link.d.ts +1 -1
- package/dist/Notifications/Snackbar/interfaces.d.ts +2 -2
- package/dist/Pagination/Pagination.d.ts +3 -3
- package/dist/Popover/Popover.d.ts +3 -1
- package/dist/Typography/Typography.d.ts +2 -2
- package/dist/Wizard/Wizard.d.ts +1 -1
- package/dist/Wizard/wizardStateReducer.d.ts +2 -2
- package/dist/_BaseStyling_/BaseStyling.d.ts +2 -0
- package/dist/hooks/usePosition.d.ts +6 -5
- package/dist/hooks/useSpacing.d.ts +3 -3
- package/dist/interfaces.d.ts +1 -1
- package/dist/react-lib-components.cjs.development.js +78 -56
- package/dist/react-lib-components.cjs.development.js.map +1 -1
- package/dist/react-lib-components.cjs.production.min.js +1 -1
- package/dist/react-lib-components.cjs.production.min.js.map +1 -1
- package/dist/react-lib-components.esm.js +79 -57
- package/dist/react-lib-components.esm.js.map +1 -1
- package/dist/util/helper.d.ts +1 -1
- package/package.json +36 -35
- package/src/ContextMenu/ContextMenu.tsx +18 -7
- package/src/Form/Input/Input.test.tsx +12 -0
- package/src/Form/Input/Input.tsx +1 -0
- package/src/Popover/Popover.test.tsx +4 -1
- package/src/Popover/Popover.tsx +40 -8
- package/src/Tooltip/Tooltip.test.tsx +5 -5
- package/src/_BaseStyling_/BaseStyling.tsx +4 -0
- package/src/hooks/usePosition.test.tsx +85 -85
- package/src/hooks/usePosition.ts +6 -3
- package/src/mixins.module.scss +5 -5
|
@@ -61,6 +61,8 @@ var BaseStyling = function BaseStyling(_ref) {
|
|
|
61
61
|
modalShadowColor: "rgba(0, 0, 0, 0.16)",
|
|
62
62
|
modalBackgroundColor: "#f5f8f8",
|
|
63
63
|
modalHeaderBackgroundColor: "var(--light)",
|
|
64
|
+
skeletonBackgroundColor: "var(--disabled)",
|
|
65
|
+
skeletonAnimationColorRgb: "255, 255, 255",
|
|
64
66
|
snackbarTextColor: "var(--light)",
|
|
65
67
|
snackbarInfoBackgroundColor: "#003b5e",
|
|
66
68
|
snackbarSuccessBackgroundColor: "#008a28",
|
|
@@ -386,6 +388,37 @@ var BreadcrumbsComponent = function BreadcrumbsComponent(_ref, ref) {
|
|
|
386
388
|
};
|
|
387
389
|
var Breadcrumbs = /*#__PURE__*/React__default["default"].forwardRef(BreadcrumbsComponent);
|
|
388
390
|
|
|
391
|
+
/*
|
|
392
|
+
* Copyright 2022 OneWelcome B.V.
|
|
393
|
+
*
|
|
394
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
395
|
+
* you may not use this file except in compliance with the License.
|
|
396
|
+
* You may obtain a copy of the License at
|
|
397
|
+
*
|
|
398
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
399
|
+
*
|
|
400
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
401
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
402
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
403
|
+
* See the License for the specific language governing permissions and
|
|
404
|
+
* limitations under the License.
|
|
405
|
+
*/
|
|
406
|
+
var useDebouncedCallback = function useDebouncedCallback(callback, delay, dependencies) {
|
|
407
|
+
var timeout = React__default["default"].useRef();
|
|
408
|
+
var comboDeps = dependencies ? [callback, delay].concat(dependencies) : [callback, delay];
|
|
409
|
+
return React__default["default"].useCallback(function () {
|
|
410
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
411
|
+
args[_key] = arguments[_key];
|
|
412
|
+
}
|
|
413
|
+
if (timeout.current != null) {
|
|
414
|
+
clearTimeout(timeout.current);
|
|
415
|
+
}
|
|
416
|
+
timeout.current = setTimeout(function () {
|
|
417
|
+
callback.apply(void 0, args);
|
|
418
|
+
}, delay);
|
|
419
|
+
}, comboDeps);
|
|
420
|
+
};
|
|
421
|
+
|
|
389
422
|
var defaultConfigObject = {
|
|
390
423
|
relativeElement: undefined,
|
|
391
424
|
elementToBePositioned: undefined,
|
|
@@ -402,7 +435,8 @@ var defaultConfigObject = {
|
|
|
402
435
|
right: 0,
|
|
403
436
|
bottom: 0,
|
|
404
437
|
left: 0
|
|
405
|
-
}
|
|
438
|
+
},
|
|
439
|
+
debounceAmount: 20
|
|
406
440
|
};
|
|
407
441
|
var usePosition = function usePosition(providedConfigObject) {
|
|
408
442
|
if (providedConfigObject === void 0) {
|
|
@@ -524,7 +558,7 @@ var usePosition = function usePosition(providedConfigObject) {
|
|
|
524
558
|
return _extends({}, prevState, (_extends2 = {}, _extends2[direction] = placementValue, _extends2[oppositeDirection] = "initial", _extends2));
|
|
525
559
|
});
|
|
526
560
|
};
|
|
527
|
-
var calculatePosition = function
|
|
561
|
+
var calculatePosition = useDebouncedCallback(function () {
|
|
528
562
|
var _configObject$relativ;
|
|
529
563
|
if (!((_configObject$relativ = configObject.relativeElement) != null && _configObject$relativ.current)) return;
|
|
530
564
|
var relativeElRect = configObject.relativeElement.current.getBoundingClientRect();
|
|
@@ -547,7 +581,7 @@ var usePosition = function usePosition(providedConfigObject) {
|
|
|
547
581
|
};
|
|
548
582
|
_calculatePlacement(clonedRelEl, elementToBePositionedDimensions, "horizontal");
|
|
549
583
|
_calculatePlacement(clonedRelEl, elementToBePositionedDimensions, "vertical");
|
|
550
|
-
};
|
|
584
|
+
}, configObject.debounceAmount || 20);
|
|
551
585
|
return {
|
|
552
586
|
top: position.top,
|
|
553
587
|
bottom: position.bottom,
|
|
@@ -561,26 +595,26 @@ var css$S = ".Popover_module_srOnly__516f452a{clip:rect(0,0,0,0);border:0;height
|
|
|
561
595
|
var modules_ef8f756f = {"sr-only":"Popover_module_srOnly__516f452a","hidden":"Popover_module_hidden__516f452a","slide-in":"Popover_module_slideIn__516f452a","slide-out":"Popover_module_slideOut__516f452a","popover":"Popover_module_popover__516f452a","show":"Popover_module_show__516f452a"};
|
|
562
596
|
n(css$S,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
563
597
|
|
|
564
|
-
var _excluded$U = ["children", "className", "show", "placement", "offset", "transformOrigin", "anchorEl"];
|
|
598
|
+
var _excluded$U = ["children", "className", "show", "placement", "offset", "debounceAmount", "transformOrigin", "anchorEl", "onAnchorOutOfView"];
|
|
565
599
|
var PopoverComponent = function PopoverComponent(_ref, ref) {
|
|
566
600
|
var children = _ref.children,
|
|
567
601
|
className = _ref.className,
|
|
568
602
|
show = _ref.show,
|
|
569
603
|
placement = _ref.placement,
|
|
570
604
|
offset = _ref.offset,
|
|
605
|
+
debounceAmount = _ref.debounceAmount,
|
|
571
606
|
transformOrigin = _ref.transformOrigin,
|
|
572
607
|
anchorEl = _ref.anchorEl,
|
|
608
|
+
onAnchorOutOfView = _ref.onAnchorOutOfView,
|
|
573
609
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$U);
|
|
574
610
|
var elToBePositioned = React.useRef(null);
|
|
575
|
-
if (show === undefined) {
|
|
576
|
-
throw new Error('Please make sure to define the "show" property on your Popover component');
|
|
577
|
-
}
|
|
578
611
|
var _usePosition = usePosition({
|
|
579
612
|
elementToBePositioned: elToBePositioned,
|
|
580
613
|
relativeElement: anchorEl,
|
|
581
614
|
offset: offset,
|
|
582
615
|
placement: placement,
|
|
583
|
-
transformOrigin: transformOrigin
|
|
616
|
+
transformOrigin: transformOrigin,
|
|
617
|
+
debounceAmount: debounceAmount || undefined
|
|
584
618
|
}),
|
|
585
619
|
top = _usePosition.top,
|
|
586
620
|
left = _usePosition.left,
|
|
@@ -588,14 +622,25 @@ var PopoverComponent = function PopoverComponent(_ref, ref) {
|
|
|
588
622
|
bottom = _usePosition.bottom,
|
|
589
623
|
calculatePosition = _usePosition.calculatePosition;
|
|
590
624
|
React.useEffect(function () {
|
|
625
|
+
if (!show) {
|
|
626
|
+
return;
|
|
627
|
+
}
|
|
591
628
|
window.addEventListener("resize", calculatePosition);
|
|
629
|
+
window.addEventListener("scroll", calculatePosition);
|
|
592
630
|
return function () {
|
|
593
|
-
|
|
631
|
+
window.removeEventListener("resize", calculatePosition);
|
|
632
|
+
window.removeEventListener("scroll", calculatePosition);
|
|
594
633
|
};
|
|
595
|
-
}, []);
|
|
634
|
+
}, [show]);
|
|
596
635
|
React.useEffect(function () {
|
|
597
636
|
calculatePosition();
|
|
598
637
|
}, [show]);
|
|
638
|
+
React.useEffect(function () {
|
|
639
|
+
var isAnchorOffscreen = show && (top === 0 || left === 0 || right === 0 || bottom === 0 || window.innerHeight - elToBePositioned.current.offsetHeight === top);
|
|
640
|
+
if (isAnchorOffscreen) {
|
|
641
|
+
onAnchorOutOfView && onAnchorOutOfView();
|
|
642
|
+
}
|
|
643
|
+
}, [top, left, right, bottom]);
|
|
599
644
|
return React__default["default"].createElement("div", _extends({
|
|
600
645
|
ref: ref
|
|
601
646
|
}, rest), React__default["default"].createElement("div", {
|
|
@@ -629,7 +674,7 @@ var useBodyClick = function useBodyClick(checkFunction, callbackFunction, depend
|
|
|
629
674
|
}, [dependingStateVariable]);
|
|
630
675
|
};
|
|
631
676
|
|
|
632
|
-
var _excluded$T = ["trigger", "children", "decorativeElement", "id", "show", "onShow", "onClose", "placement", "offset", "transformOrigin", "domRoot"];
|
|
677
|
+
var _excluded$T = ["trigger", "children", "decorativeElement", "id", "show", "onShow", "onClose", "placement", "offset", "transformOrigin", "debounceAmount", "domRoot", "popoverProps"];
|
|
633
678
|
var ContextMenuComponent = function ContextMenuComponent(_ref, ref) {
|
|
634
679
|
var trigger = _ref.trigger,
|
|
635
680
|
children = _ref.children,
|
|
@@ -656,8 +701,10 @@ var ContextMenuComponent = function ContextMenuComponent(_ref, ref) {
|
|
|
656
701
|
horizontal: "left",
|
|
657
702
|
vertical: "top"
|
|
658
703
|
} : _ref$transformOrigin,
|
|
704
|
+
debounceAmount = _ref.debounceAmount,
|
|
659
705
|
_ref$domRoot = _ref.domRoot,
|
|
660
706
|
domRoot = _ref$domRoot === void 0 ? document.body : _ref$domRoot,
|
|
707
|
+
popoverProps = _ref.popoverProps,
|
|
661
708
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$T);
|
|
662
709
|
var anchorEl = React.useRef(null);
|
|
663
710
|
var _useState = React.useState(show),
|
|
@@ -771,17 +818,22 @@ var ContextMenuComponent = function ContextMenuComponent(_ref, ref) {
|
|
|
771
818
|
});
|
|
772
819
|
});
|
|
773
820
|
};
|
|
821
|
+
var onOutOfViewHandler = React.useCallback(function () {
|
|
822
|
+
setShowContextMenu(false);
|
|
823
|
+
}, []);
|
|
774
824
|
return React__default["default"].createElement("div", _extends({}, rest, {
|
|
775
825
|
ref: ref,
|
|
776
826
|
onKeyDown: onArrowNavigation,
|
|
777
827
|
className: modules_846e6042["context-menu"]
|
|
778
|
-
}), renderTrigger(), reactDom.createPortal(React__default["default"].createElement(Popover, {
|
|
828
|
+
}), renderTrigger(), reactDom.createPortal(React__default["default"].createElement(Popover, _extends({}, popoverProps, {
|
|
779
829
|
placement: placement,
|
|
780
830
|
transformOrigin: transformOrigin,
|
|
781
831
|
offset: offset,
|
|
782
832
|
anchorEl: anchorEl,
|
|
783
|
-
|
|
784
|
-
|
|
833
|
+
debounceAmount: debounceAmount,
|
|
834
|
+
show: showContextMenu,
|
|
835
|
+
onAnchorOutOfView: onOutOfViewHandler
|
|
836
|
+
}), decorativeElement && React__default["default"].createElement("div", {
|
|
785
837
|
className: modules_846e6042["decorative-element"]
|
|
786
838
|
}, decorativeElement), React__default["default"].createElement("ul", {
|
|
787
839
|
className: modules_846e6042["menu"] + " " + (decorativeElement ? modules_846e6042["no-margin-top"] : ""),
|
|
@@ -1153,8 +1205,8 @@ var TextEllipsisComponent = function TextEllipsisComponent(_ref, ref) {
|
|
|
1153
1205
|
};
|
|
1154
1206
|
var TextEllipsis = /*#__PURE__*/React__default["default"].forwardRef(TextEllipsisComponent);
|
|
1155
1207
|
|
|
1156
|
-
var css$I = ".
|
|
1157
|
-
var modules_5f01ab30 = {"sr-only":"
|
|
1208
|
+
var css$I = ".Tile_module_srOnly__c570d3e3{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.Tile_module_hidden__c570d3e3{display:none}.Tile_module_slideIn__c570d3e3{animation:Tile_module_slideIn__c570d3e3 .5s forwards}@media (prefers-reduced-motion:reduce){.Tile_module_slideIn__c570d3e3{animation-duration:.1ms}}.Tile_module_slideOut__c570d3e3{animation:Tile_module_slideOut__c570d3e3 .5s forwards}@media (prefers-reduced-motion:reduce){.Tile_module_slideOut__c570d3e3{animation-duration:.1ms}}@keyframes Tile_module_slideIn__c570d3e3{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes Tile_module_slideOut__c570d3e3{0%{transform:translateY(0)}to{transform:translateY(100vh)}}.Tile_module_tile__c570d3e3{background-color:var(--light);border:1px solid var(--light-grey-border);border-radius:8px;box-sizing:border-box;font-family:var(--font-family);padding:0 0 2rem;transition-duration:.2s;transition-property:box-shadow;transition-timing-function:ease-in-out}@media (prefers-reduced-motion:reduce){.Tile_module_tile__c570d3e3{transition-duration:.1ms}}.Tile_module_tile__c570d3e3:hover{box-shadow:0 3px 6px rgba(0,0,0,.29)}.Tile_module_tile__c570d3e3 header{align-items:center;display:flex}.Tile_module_tile__c570d3e3 header .Tile_module_icon__c570d3e3{padding:0 1rem}.Tile_module_tile__c570d3e3 figure{height:3rem;margin:0 0 1rem}.Tile_module_tile__c570d3e3 figure img{height:3rem;vertical-align:top;width:auto}.Tile_module_tile__c570d3e3 .Tile_module_placeholder__c570d3e3{color:var(--greyed-out);font-size:3rem;margin:0 0 1rem}.Tile_module_tile__c570d3e3 .Tile_module_content__c570d3e3{align-items:center;cursor:default;display:flex;flex-direction:column;justify-content:center;padding:0 1rem}.Tile_module_tile__c570d3e3.Tile_module_loading__c570d3e3 header{display:none}.Tile_module_tile__c570d3e3.Tile_module_loading__c570d3e3 .Tile_module_image__c570d3e3{background-color:var(--skeleton-background-color);border-radius:.5rem;height:3rem;margin-top:2.5rem;overflow:hidden;position:relative;width:3rem}.Tile_module_tile__c570d3e3.Tile_module_loading__c570d3e3 .Tile_module_image__c570d3e3:after{animation:Tile_module_shimmer__c570d3e3 2s infinite;background-image:linear-gradient(90deg,rgba(var(--skeleton-animation-color-rgb),0) 0,rgba(var(--skeleton-animation-color-rgb),.2) 20%,rgba(var(--skeleton-animation-color-rgb),.5) 60%,rgba(var(--skeleton-animation-color-rgb),0));bottom:0;content:\"\";left:0;position:absolute;right:0;top:0;transform:translateX(-100%)}@media (prefers-reduced-motion:reduce){.Tile_module_tile__c570d3e3.Tile_module_loading__c570d3e3 .Tile_module_image__c570d3e3:after{animation:none}}.Tile_module_tile__c570d3e3.Tile_module_loading__c570d3e3 .Tile_module_title__c570d3e3{background-color:var(--skeleton-background-color);border-radius:.5rem;color:transparent;display:inline-block;overflow:hidden;position:relative;width:70%}.Tile_module_tile__c570d3e3.Tile_module_loading__c570d3e3 .Tile_module_title__c570d3e3:after{animation:Tile_module_shimmer__c570d3e3 2s infinite;background-image:linear-gradient(90deg,rgba(var(--skeleton-animation-color-rgb),0) 0,rgba(var(--skeleton-animation-color-rgb),.2) 20%,rgba(var(--skeleton-animation-color-rgb),.5) 60%,rgba(var(--skeleton-animation-color-rgb),0));bottom:0;content:\"\";left:0;position:absolute;right:0;top:0;transform:translateX(-100%)}@media (prefers-reduced-motion:reduce){.Tile_module_tile__c570d3e3.Tile_module_loading__c570d3e3 .Tile_module_title__c570d3e3:after{animation:none}}@keyframes Tile_module_shimmer__c570d3e3{to{transform:translateX(100%)}}";
|
|
1209
|
+
var modules_5f01ab30 = {"sr-only":"Tile_module_srOnly__c570d3e3","hidden":"Tile_module_hidden__c570d3e3","slide-in":"Tile_module_slideIn__c570d3e3","slide-out":"Tile_module_slideOut__c570d3e3","tile":"Tile_module_tile__c570d3e3","icon":"Tile_module_icon__c570d3e3","placeholder":"Tile_module_placeholder__c570d3e3","content":"Tile_module_content__c570d3e3","loading":"Tile_module_loading__c570d3e3","image":"Tile_module_image__c570d3e3","shimmer":"Tile_module_shimmer__c570d3e3","title":"Tile_module_title__c570d3e3"};
|
|
1158
1210
|
n(css$I,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
1159
1211
|
|
|
1160
1212
|
/*
|
|
@@ -1484,8 +1536,8 @@ var ProgressBarComponent = function ProgressBarComponent(_ref, ref) {
|
|
|
1484
1536
|
};
|
|
1485
1537
|
var ProgressBar = /*#__PURE__*/React__default["default"].forwardRef(ProgressBarComponent);
|
|
1486
1538
|
|
|
1487
|
-
var css$E = ".
|
|
1488
|
-
var modules_1fe82d8f = {"sr-only":"
|
|
1539
|
+
var css$E = ".Skeleton_module_srOnly__162f2f27{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.Skeleton_module_hidden__162f2f27{display:none}.Skeleton_module_slideIn__162f2f27{animation:Skeleton_module_slideIn__162f2f27 .5s forwards}@media (prefers-reduced-motion:reduce){.Skeleton_module_slideIn__162f2f27{animation-duration:.1ms}}.Skeleton_module_slideOut__162f2f27{animation:Skeleton_module_slideOut__162f2f27 .5s forwards}@media (prefers-reduced-motion:reduce){.Skeleton_module_slideOut__162f2f27{animation-duration:.1ms}}@keyframes Skeleton_module_slideIn__162f2f27{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes Skeleton_module_slideOut__162f2f27{0%{transform:translateY(0)}to{transform:translateY(100vh)}}.Skeleton_module_skeleton__162f2f27{background-color:var(--skeleton-background-color);display:block;height:auto;overflow:hidden;position:relative}.Skeleton_module_skeleton__162f2f27:after{animation:Skeleton_module_shimmer__162f2f27 2s infinite;background-image:linear-gradient(90deg,rgba(var(--skeleton-animation-color-rgb),0) 0,rgba(var(--skeleton-animation-color-rgb),.2) 20%,rgba(var(--skeleton-animation-color-rgb),.5) 60%,rgba(var(--skeleton-animation-color-rgb),0));bottom:0;content:\"\";left:0;position:absolute;right:0;top:0;transform:translateX(-100%)}@media (prefers-reduced-motion:reduce){.Skeleton_module_skeleton__162f2f27:after{animation:none}}@keyframes Skeleton_module_shimmer__162f2f27{to{transform:translateX(100%)}}.Skeleton_module_noHeight__162f2f27:before{content:\" \";white-space:pre-wrap}.Skeleton_module_text__162f2f27{border-radius:.5rem}.Skeleton_module_circular__162f2f27{border-radius:50%}";
|
|
1540
|
+
var modules_1fe82d8f = {"sr-only":"Skeleton_module_srOnly__162f2f27","hidden":"Skeleton_module_hidden__162f2f27","slide-in":"Skeleton_module_slideIn__162f2f27","slide-out":"Skeleton_module_slideOut__162f2f27","skeleton":"Skeleton_module_skeleton__162f2f27","shimmer":"Skeleton_module_shimmer__162f2f27","no-height":"Skeleton_module_noHeight__162f2f27","text":"Skeleton_module_text__162f2f27","circular":"Skeleton_module_circular__162f2f27"};
|
|
1489
1541
|
n(css$E,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
1490
1542
|
|
|
1491
1543
|
var _excluded$H = ["variant", "height", "width", "className", "style"];
|
|
@@ -1542,12 +1594,12 @@ var StatusIndicatorComponent = function StatusIndicatorComponent(_ref, ref) {
|
|
|
1542
1594
|
};
|
|
1543
1595
|
var StatusIndicator = /*#__PURE__*/React__default["default"].forwardRef(StatusIndicatorComponent);
|
|
1544
1596
|
|
|
1545
|
-
var css$C = ".
|
|
1546
|
-
var modules_e3c5bce1 = {"pagination-wrapper":"
|
|
1597
|
+
var css$C = ".Pagination_module_paginationWrapper__33412d71{color:var(--greyed-out);display:flex;flex-direction:column;font-family:var(--font-family);font-size:var(--font-size)}.Pagination_module_paginationWrapper__33412d71 label{margin-bottom:0}.Pagination_module_paginationWrapper__33412d71 .Pagination_module_formElement__33412d71{height:2.5rem}.Pagination_module_paginationWrapper__33412d71 .Pagination_module_formElement__33412d71 button{min-height:2.5rem}.Pagination_module_paginationWrapper__33412d71 .Pagination_module_total__33412d71{align-items:center;display:flex;flex:1 0 auto;justify-content:center}.Pagination_module_paginationWrapper__33412d71 .Pagination_module_total__33412d71 span>span{font-family:var(--font-family);font-size:var(--font-size);font-weight:700;margin-left:.25rem}.Pagination_module_paginationWrapper__33412d71 .Pagination_module_pagination__33412d71{align-items:center;display:flex;flex:1 0 auto;justify-content:center;margin-top:1rem}.Pagination_module_paginationWrapper__33412d71 .Pagination_module_pagination__33412d71 .Pagination_module_next__33412d71,.Pagination_module_paginationWrapper__33412d71 .Pagination_module_pagination__33412d71 .Pagination_module_previous__33412d71{align-items:center;display:flex}.Pagination_module_paginationWrapper__33412d71 .Pagination_module_pagination__33412d71 .Pagination_module_next__33412d71 button,.Pagination_module_paginationWrapper__33412d71 .Pagination_module_pagination__33412d71 .Pagination_module_previous__33412d71 button{margin:.25rem}.Pagination_module_paginationWrapper__33412d71 .Pagination_module_pagination__33412d71 .Pagination_module_next__33412d71 button span:before,.Pagination_module_paginationWrapper__33412d71 .Pagination_module_pagination__33412d71 .Pagination_module_previous__33412d71 button span:before{font-size:.75rem}.Pagination_module_paginationWrapper__33412d71 .Pagination_module_perPage__33412d71{align-items:center;display:none}.Pagination_module_paginationWrapper__33412d71 .Pagination_module_page__33412d71{align-items:center;display:flex;flex-basis:min-content}.Pagination_module_paginationWrapper__33412d71 .Pagination_module_pageSizeSelect__33412d71{border-color:var(--light);margin:0 .25rem}.Pagination_module_paginationWrapper__33412d71 .Pagination_module_pageSizeSelect__33412d71 button{min-width:3.4375rem;padding:0}.Pagination_module_paginationWrapper__33412d71 .Pagination_module_pageSizeSelect__33412d71 button div[data-display]{left:.5rem}.Pagination_module_paginationWrapper__33412d71 .Pagination_module_pageSizeSelect__33412d71 button div:not([data-display]){right:.5rem}.Pagination_module_paginationWrapper__33412d71 .Pagination_module_currentValueInput__33412d71{height:auto;margin:0 .25rem 0 0;padding:0}.Pagination_module_paginationWrapper__33412d71 .Pagination_module_currentValueInput__33412d71 input{border-radius:var(--input-border-radius);padding:0 1rem;text-align:center;width:auto}@media screen and (min-width:30em){.Pagination_module_paginationWrapper__33412d71{flex-direction:row}.Pagination_module_paginationWrapper__33412d71 .Pagination_module_total__33412d71{justify-content:flex-start}.Pagination_module_paginationWrapper__33412d71 .Pagination_module_pagination__33412d71{justify-content:flex-end;margin-top:0}.Pagination_module_paginationWrapper__33412d71 .Pagination_module_pagination__33412d71 .Pagination_module_next__33412d71 button,.Pagination_module_paginationWrapper__33412d71 .Pagination_module_pagination__33412d71 .Pagination_module_previous__33412d71 button{margin:0 .5rem}}@media screen and (min-width:48em){.Pagination_module_paginationWrapper__33412d71 .Pagination_module_perPage__33412d71{display:flex;margin-right:.5rem}}";
|
|
1598
|
+
var modules_e3c5bce1 = {"pagination-wrapper":"Pagination_module_paginationWrapper__33412d71","form-element":"Pagination_module_formElement__33412d71","total":"Pagination_module_total__33412d71","pagination":"Pagination_module_pagination__33412d71","previous":"Pagination_module_previous__33412d71","next":"Pagination_module_next__33412d71","per-page":"Pagination_module_perPage__33412d71","page":"Pagination_module_page__33412d71","page-size-select":"Pagination_module_pageSizeSelect__33412d71","current-value-input":"Pagination_module_currentValueInput__33412d71"};
|
|
1547
1599
|
n(css$C,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
1548
1600
|
|
|
1549
|
-
var css$B = ".
|
|
1550
|
-
var modules_23691de0 = {"sr-only":"
|
|
1601
|
+
var css$B = ".Input_module_srOnly__7be90f8b{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.Input_module_hidden__7be90f8b{display:none}.Input_module_slideIn__7be90f8b{animation:Input_module_slideIn__7be90f8b .5s forwards}@media (prefers-reduced-motion:reduce){.Input_module_slideIn__7be90f8b{animation-duration:.1ms}}.Input_module_slideOut__7be90f8b{animation:Input_module_slideOut__7be90f8b .5s forwards}@media (prefers-reduced-motion:reduce){.Input_module_slideOut__7be90f8b{animation-duration:.1ms}}@keyframes Input_module_slideIn__7be90f8b{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes Input_module_slideOut__7be90f8b{0%{transform:translateY(0)}to{transform:translateY(100vh)}}.Input_module_inputWrapper__7be90f8b{align-items:center;background-color:var(--input-background-color);border:0;border-radius:var(--input-border-radius);display:flex;height:4rem;padding:0 1.25rem;position:relative;transition-duration:.2s;transition-property:all;transition-timing-function:ease-in-out}@media (prefers-reduced-motion:reduce){.Input_module_inputWrapper__7be90f8b{transition-duration:.1ms}}.Input_module_inputWrapper__7be90f8b input:-webkit-autofill,.Input_module_inputWrapper__7be90f8b input:-webkit-autofill:active,.Input_module_inputWrapper__7be90f8b input:-webkit-autofill:focus,.Input_module_inputWrapper__7be90f8b input:-webkit-autofill:hover{transition:background-color 5000s ease-in-out 0s!important}.Input_module_inputWrapper__7be90f8b input:-webkit-autofill:active~.Input_module_outline__7be90f8b:after,.Input_module_inputWrapper__7be90f8b input:-webkit-autofill:focus~.Input_module_outline__7be90f8b:after,.Input_module_inputWrapper__7be90f8b input:-webkit-autofill:hover~.Input_module_outline__7be90f8b:after,.Input_module_inputWrapper__7be90f8b input:-webkit-autofill~.Input_module_outline__7be90f8b:after{border-radius:var(--input-border-radius);content:\"\";display:block;height:100%;position:absolute;width:100%}@media (-webkit-min-device-pixel-ratio:0) and (min-resolution:0.001dpcm){.Input_module_inputWrapper__7be90f8b input:-webkit-autofill:active~.Input_module_outline__7be90f8b:after,.Input_module_inputWrapper__7be90f8b input:-webkit-autofill:focus~.Input_module_outline__7be90f8b:after,.Input_module_inputWrapper__7be90f8b input:-webkit-autofill:hover~.Input_module_outline__7be90f8b:after,.Input_module_inputWrapper__7be90f8b input:-webkit-autofill~.Input_module_outline__7be90f8b:after{background-color:#e8f0fe}}@media not all and (min-resolution:0.001dpcm){.Input_module_inputWrapper__7be90f8b input:-webkit-autofill:active~.Input_module_outline__7be90f8b:after,.Input_module_inputWrapper__7be90f8b input:-webkit-autofill:focus~.Input_module_outline__7be90f8b:after,.Input_module_inputWrapper__7be90f8b input:-webkit-autofill:hover~.Input_module_outline__7be90f8b:after,.Input_module_inputWrapper__7be90f8b input:-webkit-autofill~.Input_module_outline__7be90f8b:after{background-color:#faffbd}}.Input_module_inputWrapper__7be90f8b:hover .Input_module_outline__7be90f8b{border-color:var(--default)}.Input_module_inputWrapper__7be90f8b .Input_module_outline__7be90f8b.Input_module_disabled__7be90f8b{border-color:var(--light)}.Input_module_inputWrapper__7be90f8b .Input_module_outline__7be90f8b.Input_module_error__7be90f8b{border-color:var(--error)}.Input_module_inputWrapper__7be90f8b .Input_module_outline__7be90f8b.Input_module_focus__7be90f8b{border-width:var(--input-border-width-focus)}.Input_module_inputWrapper__7be90f8b .Input_module_outline__7be90f8b.Input_module_focus__7be90f8b:not(.Input_module_error__7be90f8b){border-color:var(--color-focus)}.Input_module_input__7be90f8b{background-color:transparent;border:0;border-radius:var(--input-border-radius);box-sizing:border-box;color:var(--greyed-out);font-family:var(--font-family);font-size:var(--font-size);height:4rem;padding:0;transition-duration:.2s;transition-property:all;transition-timing-function:ease-in-out;z-index:1}@media (prefers-reduced-motion:reduce){.Input_module_input__7be90f8b{transition-duration:.1ms}}.Input_module_input__7be90f8b:not(.Input_module_shrinkWidthForDateIcon__7be90f8b){width:100%}.Input_module_input__7be90f8b:disabled{background-color:var(--disabled);cursor:not-allowed}.Input_module_input__7be90f8b.Input_module_shrinkWidthForDateIcon__7be90f8b{width:auto}.Input_module_input__7be90f8b:focus:not(:disabled){outline:none}.Input_module_outline__7be90f8b{border-color:var(--light-grey-border);border-radius:var(--input-border-radius);border-style:var(--input-border-style);border-width:var(--input-border-width);inset:0;margin:0;padding:0;pointer-events:none;position:absolute;transition-duration:.2s;transition-property:all;transition-timing-function:ease-in-out}@media (prefers-reduced-motion:reduce){.Input_module_outline__7be90f8b{transition-duration:.1ms}}.Input_module_error__7be90f8b input{color:var(--error);padding-right:3.5rem}.Input_module_error__7be90f8b input.Input_module_removeExtraIndent__7be90f8b{padding-right:0}.Input_module_warning__7be90f8b{align-items:center;color:var(--error);display:flex;font-size:1.125rem;height:100%;justify-content:center;position:absolute;right:1.25rem;top:0;width:1.25rem;z-index:2}.Input_module_warning__7be90f8b:before{height:1.3125rem}.Input_module_inputWrapper__7be90f8b [data-prefix],.Input_module_inputWrapper__7be90f8b [data-suffix]{display:block;transition-duration:.2s;transition-property:all;transition-timing-function:ease-in-out;z-index:1}@media (prefers-reduced-motion:reduce){.Input_module_inputWrapper__7be90f8b [data-prefix],.Input_module_inputWrapper__7be90f8b [data-suffix]{transition-duration:.1ms}}";
|
|
1602
|
+
var modules_23691de0 = {"sr-only":"Input_module_srOnly__7be90f8b","hidden":"Input_module_hidden__7be90f8b","slide-in":"Input_module_slideIn__7be90f8b","slide-out":"Input_module_slideOut__7be90f8b","input-wrapper":"Input_module_inputWrapper__7be90f8b","outline":"Input_module_outline__7be90f8b","disabled":"Input_module_disabled__7be90f8b","error":"Input_module_error__7be90f8b","focus":"Input_module_focus__7be90f8b","input":"Input_module_input__7be90f8b","shrink-width-for-date-icon":"Input_module_shrinkWidthForDateIcon__7be90f8b","remove-extra-indent":"Input_module_removeExtraIndent__7be90f8b","warning":"Input_module_warning__7be90f8b"};
|
|
1551
1603
|
n(css$B,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
1552
1604
|
|
|
1553
1605
|
var _excluded$F = ["error", "className", "name", "style", "wrapperProps", "type", "labeledBy", "prefix", "suffix", "disabled", "onFocus", "onBlur"];
|
|
@@ -1613,7 +1665,8 @@ var InputComponent = function InputComponent(_ref, ref) {
|
|
|
1613
1665
|
type: type,
|
|
1614
1666
|
name: name,
|
|
1615
1667
|
disabled: disabled,
|
|
1616
|
-
className: inputClassNames.join(" ")
|
|
1668
|
+
className: inputClassNames.join(" "),
|
|
1669
|
+
spellCheck: rest.spellCheck || false
|
|
1617
1670
|
})), suffix && React__default["default"].createElement("div", {
|
|
1618
1671
|
ref: suffixRef,
|
|
1619
1672
|
"data-suffix": true,
|
|
@@ -2264,37 +2317,6 @@ var useRepeater = function useRepeater(_ref) {
|
|
|
2264
2317
|
};
|
|
2265
2318
|
};
|
|
2266
2319
|
|
|
2267
|
-
/*
|
|
2268
|
-
* Copyright 2022 OneWelcome B.V.
|
|
2269
|
-
*
|
|
2270
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2271
|
-
* you may not use this file except in compliance with the License.
|
|
2272
|
-
* You may obtain a copy of the License at
|
|
2273
|
-
*
|
|
2274
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2275
|
-
*
|
|
2276
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2277
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2278
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2279
|
-
* See the License for the specific language governing permissions and
|
|
2280
|
-
* limitations under the License.
|
|
2281
|
-
*/
|
|
2282
|
-
var useDebouncedCallback = function useDebouncedCallback(callback, delay, dependencies) {
|
|
2283
|
-
var timeout = React__default["default"].useRef();
|
|
2284
|
-
var comboDeps = dependencies ? [callback, delay].concat(dependencies) : [callback, delay];
|
|
2285
|
-
return React__default["default"].useCallback(function () {
|
|
2286
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2287
|
-
args[_key] = arguments[_key];
|
|
2288
|
-
}
|
|
2289
|
-
if (timeout.current != null) {
|
|
2290
|
-
clearTimeout(timeout.current);
|
|
2291
|
-
}
|
|
2292
|
-
timeout.current = setTimeout(function () {
|
|
2293
|
-
callback.apply(void 0, args);
|
|
2294
|
-
}, delay);
|
|
2295
|
-
}, comboDeps);
|
|
2296
|
-
};
|
|
2297
|
-
|
|
2298
2320
|
var css$y = ".BaseModal_module_srOnly__6d413cba{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.BaseModal_module_hidden__6d413cba{display:none}.BaseModal_module_slideIn__6d413cba{animation:BaseModal_module_slideIn__6d413cba .5s forwards}@media (prefers-reduced-motion:reduce){.BaseModal_module_slideIn__6d413cba{animation-duration:.1ms}}.BaseModal_module_slideOut__6d413cba{animation:BaseModal_module_slideOut__6d413cba .5s forwards}@media (prefers-reduced-motion:reduce){.BaseModal_module_slideOut__6d413cba{animation-duration:.1ms}}@keyframes BaseModal_module_slideIn__6d413cba{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes BaseModal_module_slideOut__6d413cba{0%{transform:translateY(0)}to{transform:translateY(100vh)}}.BaseModal_module_modal__6d413cba{align-items:flex-start;display:flex;height:100vh;justify-content:center;left:0;position:fixed;top:0;visibility:hidden;width:100vw;z-index:10}.BaseModal_module_modal__6d413cba .BaseModal_module_backdrop__6d413cba{background-color:transparent;content:\"\";height:100%;left:0;position:absolute;top:0;transition-duration:.5s;transition-property:background-color;transition-timing-function:ease;width:100%}@media (prefers-reduced-motion:reduce){.BaseModal_module_modal__6d413cba .BaseModal_module_backdrop__6d413cba{transition-duration:.1ms}}.BaseModal_module_modal__6d413cba.BaseModal_module_visible__6d413cba{visibility:visible}.BaseModal_module_modal__6d413cba.BaseModal_module_visible__6d413cba .BaseModal_module_backdrop__6d413cba{background-color:var(--default);opacity:.75}.BaseModal_module_container__6d413cba{background-color:var(--modal-background-color);display:flex;flex-direction:column;height:100%;width:100%;z-index:11}@media only screen and (min-width:50em){.BaseModal_module_container__6d413cba{border-radius:8px;box-shadow:0 30px 50px var(--modal-shadow-color);height:auto;margin-top:3.125rem;max-height:calc(90% - 3.125rem);width:50rem}}";
|
|
2299
2321
|
var modules_cf1b230e = {"sr-only":"BaseModal_module_srOnly__6d413cba","hidden":"BaseModal_module_hidden__6d413cba","slide-in":"BaseModal_module_slideIn__6d413cba","slide-out":"BaseModal_module_slideOut__6d413cba","modal":"BaseModal_module_modal__6d413cba","backdrop":"BaseModal_module_backdrop__6d413cba","visible":"BaseModal_module_visible__6d413cba","container":"BaseModal_module_container__6d413cba"};
|
|
2300
2322
|
n(css$y,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
@@ -4632,8 +4654,8 @@ var DataGridActionsComponent = function DataGridActionsComponent(_ref, ref) {
|
|
|
4632
4654
|
};
|
|
4633
4655
|
var DataGridActions = /*#__PURE__*/React__default["default"].forwardRef(DataGridActionsComponent);
|
|
4634
4656
|
|
|
4635
|
-
var css$2 = ".
|
|
4636
|
-
var modules_e636700c = {"sr-only":"
|
|
4657
|
+
var css$2 = ".DataGridCell_module_srOnly__6229566a{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DataGridCell_module_hidden__6229566a{display:none}.DataGridCell_module_slideIn__6229566a{animation:DataGridCell_module_slideIn__6229566a .5s forwards}@media (prefers-reduced-motion:reduce){.DataGridCell_module_slideIn__6229566a{animation-duration:.1ms}}.DataGridCell_module_slideOut__6229566a{animation:DataGridCell_module_slideOut__6229566a .5s forwards}@media (prefers-reduced-motion:reduce){.DataGridCell_module_slideOut__6229566a{animation-duration:.1ms}}@keyframes DataGridCell_module_slideIn__6229566a{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes DataGridCell_module_slideOut__6229566a{0%{transform:translateY(0)}to{transform:translateY(100vh)}}.DataGridCell_module_cell__6229566a{min-height:3.5rem;padding:.5rem .625rem}.DataGridCell_module_cell__6229566a:first-child{padding-left:1rem}.DataGridCell_module_cell__6229566a:last-child{padding-right:1rem}.DataGridCell_module_cell__6229566a .DataGridCell_module_loading__6229566a{background-color:var(--skeleton-background-color);border-radius:.5rem;height:1.25rem;margin:.625rem 0;overflow:hidden;position:relative}.DataGridCell_module_cell__6229566a .DataGridCell_module_loading__6229566a:after{animation:DataGridCell_module_shimmer__6229566a 2s infinite;background-image:linear-gradient(90deg,rgba(var(--skeleton-animation-color-rgb),0) 0,rgba(var(--skeleton-animation-color-rgb),.2) 20%,rgba(var(--skeleton-animation-color-rgb),.5) 60%,rgba(var(--skeleton-animation-color-rgb),0));bottom:0;content:\"\";left:0;position:absolute;right:0;top:0;transform:translateX(-100%)}@media (prefers-reduced-motion:reduce){.DataGridCell_module_cell__6229566a .DataGridCell_module_loading__6229566a:after{animation:none}}@keyframes DataGridCell_module_shimmer__6229566a{to{transform:translateX(100%)}}@media only screen and (min-width:50em){.DataGridCell_module_cell__6229566a:first-child{padding-left:1.25rem}.DataGridCell_module_cell__6229566a:last-child{padding-right:1.25rem}}";
|
|
4658
|
+
var modules_e636700c = {"sr-only":"DataGridCell_module_srOnly__6229566a","hidden":"DataGridCell_module_hidden__6229566a","slide-in":"DataGridCell_module_slideIn__6229566a","slide-out":"DataGridCell_module_slideOut__6229566a","cell":"DataGridCell_module_cell__6229566a","loading":"DataGridCell_module_loading__6229566a","shimmer":"DataGridCell_module_shimmer__6229566a"};
|
|
4637
4659
|
n(css$2,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
4638
4660
|
|
|
4639
4661
|
var _excluded$3 = ["children", "className", "isLoading", "spacing", "cellIndex", "columnLength", "disableContextMenuColumn"];
|