@luscii-healthtech/web-ui 2.56.2 → 2.56.3
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/components/DragHandle/DragHandle.d.ts +7 -0
- package/dist/components/DragHandle/DragHandle.types.d.ts +6 -0
- package/dist/components/DragHandle/index.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/web-ui-tailwind.css +22 -4
- package/dist/web-ui.cjs.development.js +140 -124
- package/dist/web-ui.cjs.development.js.map +1 -1
- package/dist/web-ui.cjs.production.min.js +1 -1
- package/dist/web-ui.cjs.production.min.js.map +1 -1
- package/dist/web-ui.esm.js +141 -126
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -2307,6 +2307,67 @@ var BaseListEmptyState = function BaseListEmptyState(_ref) {
|
|
|
2307
2307
|
}));
|
|
2308
2308
|
};
|
|
2309
2309
|
|
|
2310
|
+
var _excluded$2 = ["name"],
|
|
2311
|
+
_excluded2 = ["name"];
|
|
2312
|
+
var Icon = function Icon(_ref) {
|
|
2313
|
+
var name = _ref.name,
|
|
2314
|
+
iconProps = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
2315
|
+
|
|
2316
|
+
return /*#__PURE__*/React__default.createElement(Icons[name], iconProps);
|
|
2317
|
+
};
|
|
2318
|
+
/**
|
|
2319
|
+
* This is a temporary component to transition the way we pass icons to components.
|
|
2320
|
+
* Once all components are passed an IconKey instead of a function component we can replace it with the Icon component.
|
|
2321
|
+
*/
|
|
2322
|
+
|
|
2323
|
+
var IconComponentOrKey = function IconComponentOrKey(props) {
|
|
2324
|
+
var name = props.name,
|
|
2325
|
+
iconProps = _objectWithoutPropertiesLoose(props, _excluded2);
|
|
2326
|
+
|
|
2327
|
+
if (isIconKey(name)) {
|
|
2328
|
+
return /*#__PURE__*/React__default.createElement(Icon, _extends({
|
|
2329
|
+
name: name
|
|
2330
|
+
}, iconProps));
|
|
2331
|
+
}
|
|
2332
|
+
|
|
2333
|
+
return /*#__PURE__*/React__default.createElement(name, iconProps);
|
|
2334
|
+
};
|
|
2335
|
+
|
|
2336
|
+
function isIconKey(key) {
|
|
2337
|
+
if (typeof key === "string") {
|
|
2338
|
+
return key in Icons;
|
|
2339
|
+
}
|
|
2340
|
+
|
|
2341
|
+
return false;
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
var _excluded$3 = ["dataTestId", "className", "grabbing", "disabled"];
|
|
2345
|
+
var DragHandle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
2346
|
+
var dataTestId = _ref.dataTestId,
|
|
2347
|
+
classes = _ref.className,
|
|
2348
|
+
grabbing = _ref.grabbing,
|
|
2349
|
+
_ref$disabled = _ref.disabled,
|
|
2350
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
2351
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
2352
|
+
|
|
2353
|
+
var className = classNames(classes, "py-2", {
|
|
2354
|
+
"cursor-grab": !grabbing && !disabled,
|
|
2355
|
+
"cursor-grabbing shadow-sm bg-slate-200": grabbing && !disabled,
|
|
2356
|
+
"hover:bg-slate-200 hover:shadow-sm transition duration-200 rounded": !disabled,
|
|
2357
|
+
"cursor-not-allowed": disabled
|
|
2358
|
+
});
|
|
2359
|
+
return /*#__PURE__*/React__default.createElement("button", _extends({
|
|
2360
|
+
ref: ref
|
|
2361
|
+
}, props, {
|
|
2362
|
+
tabIndex: 0,
|
|
2363
|
+
className: className,
|
|
2364
|
+
"data-testId": dataTestId != null ? dataTestId : "dragHandle"
|
|
2365
|
+
}), /*#__PURE__*/React__default.createElement(Icon, {
|
|
2366
|
+
name: "DragIcon",
|
|
2367
|
+
className: disabled ? "text-slate-300" : "text-slate-400"
|
|
2368
|
+
}));
|
|
2369
|
+
});
|
|
2370
|
+
|
|
2310
2371
|
var BaseListIcon = function BaseListIcon(_ref) {
|
|
2311
2372
|
var icon = _ref.icon,
|
|
2312
2373
|
onAssetLoadError = _ref.onAssetLoadError;
|
|
@@ -2383,8 +2444,8 @@ var BaseListItem = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
2383
2444
|
onClick: clickHandler
|
|
2384
2445
|
}, htmlProps, {
|
|
2385
2446
|
ref: ref
|
|
2386
|
-
}), isDraggable && (renderDragHandle ? renderDragHandle() : /*#__PURE__*/React__default.createElement(
|
|
2387
|
-
|
|
2447
|
+
}), isDraggable && (renderDragHandle ? renderDragHandle() : /*#__PURE__*/React__default.createElement(DragHandle, {
|
|
2448
|
+
grabbing: false
|
|
2388
2449
|
})), icon && /*#__PURE__*/React__default.createElement(BaseListIcon, {
|
|
2389
2450
|
icon: icon,
|
|
2390
2451
|
onAssetLoadError: createAssetLoadError({
|
|
@@ -2463,40 +2524,6 @@ var BaseListInner = function BaseListInner(_ref, ref) {
|
|
|
2463
2524
|
|
|
2464
2525
|
var BaseList = /*#__PURE__*/React__default.forwardRef(BaseListInner);
|
|
2465
2526
|
|
|
2466
|
-
var _excluded$2 = ["name"],
|
|
2467
|
-
_excluded2 = ["name"];
|
|
2468
|
-
var Icon = function Icon(_ref) {
|
|
2469
|
-
var name = _ref.name,
|
|
2470
|
-
iconProps = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
2471
|
-
|
|
2472
|
-
return /*#__PURE__*/React__default.createElement(Icons[name], iconProps);
|
|
2473
|
-
};
|
|
2474
|
-
/**
|
|
2475
|
-
* This is a temporary component to transition the way we pass icons to components.
|
|
2476
|
-
* Once all components are passed an IconKey instead of a function component we can replace it with the Icon component.
|
|
2477
|
-
*/
|
|
2478
|
-
|
|
2479
|
-
var IconComponentOrKey = function IconComponentOrKey(props) {
|
|
2480
|
-
var name = props.name,
|
|
2481
|
-
iconProps = _objectWithoutPropertiesLoose(props, _excluded2);
|
|
2482
|
-
|
|
2483
|
-
if (isIconKey(name)) {
|
|
2484
|
-
return /*#__PURE__*/React__default.createElement(Icon, _extends({
|
|
2485
|
-
name: name
|
|
2486
|
-
}, iconProps));
|
|
2487
|
-
}
|
|
2488
|
-
|
|
2489
|
-
return /*#__PURE__*/React__default.createElement(name, iconProps);
|
|
2490
|
-
};
|
|
2491
|
-
|
|
2492
|
-
function isIconKey(key) {
|
|
2493
|
-
if (typeof key === "string") {
|
|
2494
|
-
return key in Icons;
|
|
2495
|
-
}
|
|
2496
|
-
|
|
2497
|
-
return false;
|
|
2498
|
-
}
|
|
2499
|
-
|
|
2500
2527
|
// You should be able to just use a non-registered Symbol as a key in a WeakMap
|
|
2501
2528
|
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap
|
|
2502
2529
|
// TS doesn't allow it (registered and non-registered Symbols are both of type symbol), so we have to use an object
|
|
@@ -2541,12 +2568,12 @@ var getDndListItemProps = function getDndListItemProps(subject) {
|
|
|
2541
2568
|
return (_possibleDraggableLis = possibleDraggableListItemProps.get(draggableListItemPropsPointer)) != null ? _possibleDraggableLis : null;
|
|
2542
2569
|
};
|
|
2543
2570
|
|
|
2544
|
-
var _excluded$
|
|
2571
|
+
var _excluded$4 = ["draggableData"];
|
|
2545
2572
|
var DraggableBaseListItem = function DraggableBaseListItem(_ref) {
|
|
2546
2573
|
var _data;
|
|
2547
2574
|
|
|
2548
2575
|
var draggableData = _ref.draggableData,
|
|
2549
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2576
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
2550
2577
|
|
|
2551
2578
|
var _useDraggable = core.useDraggable({
|
|
2552
2579
|
id: props.draggableIdentifier,
|
|
@@ -2555,30 +2582,26 @@ var DraggableBaseListItem = function DraggableBaseListItem(_ref) {
|
|
|
2555
2582
|
}),
|
|
2556
2583
|
setNodeRef = _useDraggable.setNodeRef,
|
|
2557
2584
|
listeners = _useDraggable.listeners,
|
|
2558
|
-
attributes = _useDraggable.attributes
|
|
2585
|
+
attributes = _useDraggable.attributes,
|
|
2586
|
+
isDragging = _useDraggable.isDragging;
|
|
2559
2587
|
|
|
2560
|
-
var dragHandleClassName = classNames({
|
|
2561
|
-
"cursor-move": props.isDraggable,
|
|
2562
|
-
"cursor-not-allowed": !props.isDraggable
|
|
2563
|
-
});
|
|
2564
2588
|
return /*#__PURE__*/React__default.createElement(BaseListItem, _extends({}, props, {
|
|
2565
2589
|
ref: setNodeRef,
|
|
2566
2590
|
isDraggable: true,
|
|
2567
2591
|
renderDragHandle: function renderDragHandle() {
|
|
2568
|
-
return /*#__PURE__*/React__default.createElement(
|
|
2569
|
-
|
|
2570
|
-
}
|
|
2571
|
-
|
|
2572
|
-
name: "DragIcon"
|
|
2592
|
+
return /*#__PURE__*/React__default.createElement(DragHandle, _extends({
|
|
2593
|
+
grabbing: isDragging
|
|
2594
|
+
}, attributes, listeners, {
|
|
2595
|
+
disabled: !props.isDraggable
|
|
2573
2596
|
}));
|
|
2574
2597
|
}
|
|
2575
2598
|
}));
|
|
2576
2599
|
};
|
|
2577
2600
|
|
|
2578
|
-
var _excluded$
|
|
2601
|
+
var _excluded$5 = ["items"];
|
|
2579
2602
|
var DraggableBaseList = function DraggableBaseList(_ref) {
|
|
2580
2603
|
var items = _ref.items,
|
|
2581
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2604
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
2582
2605
|
|
|
2583
2606
|
return /*#__PURE__*/React__default.createElement(BaseList, _extends({}, props, {
|
|
2584
2607
|
items: items,
|
|
@@ -2586,7 +2609,7 @@ var DraggableBaseList = function DraggableBaseList(_ref) {
|
|
|
2586
2609
|
}));
|
|
2587
2610
|
};
|
|
2588
2611
|
|
|
2589
|
-
var _excluded$
|
|
2612
|
+
var _excluded$6 = ["draggableIdentifier", "disabled", "data", "dataTestId", "onClick"];
|
|
2590
2613
|
|
|
2591
2614
|
var DefaultState = function DefaultState(_ref) {
|
|
2592
2615
|
var icon = _ref.icon,
|
|
@@ -2648,7 +2671,7 @@ var Dropzone = function Dropzone(_ref3) {
|
|
|
2648
2671
|
data = _ref3.data,
|
|
2649
2672
|
dataTestId = _ref3.dataTestId,
|
|
2650
2673
|
onClick = _ref3.onClick,
|
|
2651
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded$
|
|
2674
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded$6);
|
|
2652
2675
|
|
|
2653
2676
|
var _useDroppable = core.useDroppable({
|
|
2654
2677
|
id: identifier,
|
|
@@ -2677,12 +2700,12 @@ var Dropzone = function Dropzone(_ref3) {
|
|
|
2677
2700
|
return presentation;
|
|
2678
2701
|
};
|
|
2679
2702
|
|
|
2680
|
-
var _excluded$
|
|
2703
|
+
var _excluded$7 = ["draggableData"];
|
|
2681
2704
|
var SortableBaseListItem = function SortableBaseListItem(_ref) {
|
|
2682
2705
|
var _data;
|
|
2683
2706
|
|
|
2684
2707
|
var draggableData = _ref.draggableData,
|
|
2685
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2708
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
2686
2709
|
|
|
2687
2710
|
var _useSortable = sortable.useSortable({
|
|
2688
2711
|
id: props.draggableIdentifier,
|
|
@@ -2696,10 +2719,6 @@ var SortableBaseListItem = function SortableBaseListItem(_ref) {
|
|
|
2696
2719
|
isDragging = _useSortable.isDragging;
|
|
2697
2720
|
|
|
2698
2721
|
var styleTransform = utilities.CSS.Transform.toString(transform);
|
|
2699
|
-
var dragHandleClassName = classNames({
|
|
2700
|
-
"cursor-move": props.isDraggable,
|
|
2701
|
-
"cursor-not-allowed": !props.isDraggable
|
|
2702
|
-
});
|
|
2703
2722
|
|
|
2704
2723
|
if (isDragging) {
|
|
2705
2724
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -2720,11 +2739,9 @@ var SortableBaseListItem = function SortableBaseListItem(_ref) {
|
|
|
2720
2739
|
},
|
|
2721
2740
|
isDraggable: true,
|
|
2722
2741
|
renderDragHandle: function renderDragHandle() {
|
|
2723
|
-
return /*#__PURE__*/React__default.createElement(
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
className: "text-slate-300",
|
|
2727
|
-
name: "DragIcon"
|
|
2742
|
+
return /*#__PURE__*/React__default.createElement(DragHandle, _extends({}, attributes, listeners, {
|
|
2743
|
+
disabled: !props.isDraggable,
|
|
2744
|
+
grabbing: isDragging
|
|
2728
2745
|
}));
|
|
2729
2746
|
}
|
|
2730
2747
|
}))));
|
|
@@ -2739,21 +2756,19 @@ var SortableBaseListItem = function SortableBaseListItem(_ref) {
|
|
|
2739
2756
|
},
|
|
2740
2757
|
isDraggable: true,
|
|
2741
2758
|
renderDragHandle: function renderDragHandle() {
|
|
2742
|
-
return /*#__PURE__*/React__default.createElement(
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
className: "text-slate-300",
|
|
2746
|
-
name: "DragIcon"
|
|
2759
|
+
return /*#__PURE__*/React__default.createElement(DragHandle, _extends({}, attributes, listeners, {
|
|
2760
|
+
disabled: !props.isDraggable,
|
|
2761
|
+
grabbing: isDragging
|
|
2747
2762
|
}));
|
|
2748
2763
|
}
|
|
2749
2764
|
}));
|
|
2750
2765
|
};
|
|
2751
2766
|
|
|
2752
|
-
var _excluded$
|
|
2767
|
+
var _excluded$8 = ["draggableIdentifier", "items"];
|
|
2753
2768
|
var SortableBaseList = function SortableBaseList(_ref) {
|
|
2754
2769
|
var draggableIdentifier = _ref.draggableIdentifier,
|
|
2755
2770
|
items = _ref.items,
|
|
2756
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2771
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
2757
2772
|
|
|
2758
2773
|
return /*#__PURE__*/React__default.createElement(sortable.SortableContext, {
|
|
2759
2774
|
id: draggableIdentifier,
|
|
@@ -2776,13 +2791,13 @@ var ListItem = function ListItem(props) {
|
|
|
2776
2791
|
return /*#__PURE__*/React__default.createElement(BaseListItem, _extends({}, props));
|
|
2777
2792
|
};
|
|
2778
2793
|
|
|
2779
|
-
var _excluded$
|
|
2794
|
+
var _excluded$9 = ["items", "onDragEnd", "onAssetLoadError"];
|
|
2780
2795
|
|
|
2781
2796
|
var DefaultList = function DefaultList(_ref) {
|
|
2782
2797
|
var items = _ref.items,
|
|
2783
2798
|
onDragEnd = _ref.onDragEnd,
|
|
2784
2799
|
onAssetLoadError = _ref.onAssetLoadError,
|
|
2785
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2800
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
2786
2801
|
|
|
2787
2802
|
var listRef = React.useRef(null);
|
|
2788
2803
|
var dragulaRef = React.useRef(null);
|
|
@@ -2869,7 +2884,7 @@ var List = function List(props) {
|
|
|
2869
2884
|
var css_248z$5 = ".input::-ms-clear {\n display: none;\n}";
|
|
2870
2885
|
styleInject(css_248z$5);
|
|
2871
2886
|
|
|
2872
|
-
var _excluded$
|
|
2887
|
+
var _excluded$a = ["withSuffix", "withPrefix", "className", "clearable", "type", "isDisabled", "width", "icon", "name", "value", "onChange", "isError", "asFormField"];
|
|
2873
2888
|
// Don't know why yet but it can be fixed later.
|
|
2874
2889
|
|
|
2875
2890
|
var INPUT_TYPES = {
|
|
@@ -2899,7 +2914,7 @@ var Input = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
2899
2914
|
onChange = _ref.onChange,
|
|
2900
2915
|
isError = _ref.isError,
|
|
2901
2916
|
asFormField = _ref.asFormField,
|
|
2902
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2917
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
2903
2918
|
|
|
2904
2919
|
var hasNoExtraContent = withPrefix === "" && withSuffix === "";
|
|
2905
2920
|
|
|
@@ -3042,7 +3057,7 @@ var Spinner = function Spinner(props) {
|
|
|
3042
3057
|
}));
|
|
3043
3058
|
};
|
|
3044
3059
|
|
|
3045
|
-
var _excluded$
|
|
3060
|
+
var _excluded$b = ["onClick", "text", "textColor", "textHoverColor", "icon", "isDisabled", "isPending", "className"];
|
|
3046
3061
|
var ButtonV2 = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef) {
|
|
3047
3062
|
var onClick = _ref.onClick,
|
|
3048
3063
|
text = _ref.text,
|
|
@@ -3052,7 +3067,7 @@ var ButtonV2 = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef)
|
|
|
3052
3067
|
isDisabled = _ref.isDisabled,
|
|
3053
3068
|
isPending = _ref.isPending,
|
|
3054
3069
|
className = _ref.className,
|
|
3055
|
-
otherAttributes = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3070
|
+
otherAttributes = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
3056
3071
|
|
|
3057
3072
|
function handleClick(event) {
|
|
3058
3073
|
event.stopPropagation();
|
|
@@ -3184,7 +3199,7 @@ var img$5 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3
|
|
|
3184
3199
|
var css_248z$6 = ".cweb-loading {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.cweb-loading .cweb-loading-text {\n margin-bottom: 24px;\n}\n\n.cweb-loading.as-modal {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 9999;\n background-color: rgba(255, 255, 255, 0.6);\n}\n\n.cweb-loading.as-modal .cweb-loading-panel {\n position: relative;\n width: 320px;\n min-height: 120px;\n border-radius: 4px;\n padding: 16px;\n box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.36);\n background-color: #ffffff;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n}\n\n.cweb-loading.as-modal .cweb-loading-panel:before {\n position: absolute;\n content: \"\";\n top: 0;\n left: 0;\n right: 0;\n z-index: 1;\n height: 3px;\n background-color: #6abfa5;\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n}";
|
|
3185
3200
|
styleInject(css_248z$6);
|
|
3186
3201
|
|
|
3187
|
-
var _excluded$
|
|
3202
|
+
var _excluded$c = ["asModal", "asSpinner", "className", "spinnerColor", "dataTestId"];
|
|
3188
3203
|
function LoadingIndicator(_ref) {
|
|
3189
3204
|
var _ref$asModal = _ref.asModal,
|
|
3190
3205
|
asModal = _ref$asModal === void 0 ? false : _ref$asModal,
|
|
@@ -3196,7 +3211,7 @@ function LoadingIndicator(_ref) {
|
|
|
3196
3211
|
spinnerColor = _ref$spinnerColor === void 0 ? "blue" : _ref$spinnerColor,
|
|
3197
3212
|
_ref$dataTestId = _ref.dataTestId,
|
|
3198
3213
|
dataTestId = _ref$dataTestId === void 0 ? "loading-indicator" : _ref$dataTestId,
|
|
3199
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3214
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
3200
3215
|
|
|
3201
3216
|
var spinnerToRender = spinnerColor === "blue" ? img$4 : img$5;
|
|
3202
3217
|
var containerClassName = classNames("cweb-loading", className, {
|
|
@@ -3215,7 +3230,7 @@ function LoadingIndicator(_ref) {
|
|
|
3215
3230
|
}));
|
|
3216
3231
|
}
|
|
3217
3232
|
|
|
3218
|
-
var _excluded$
|
|
3233
|
+
var _excluded$d = ["localisations", "buttonProps", "accordionItems", "isSearchEnabled", "isLoading"];
|
|
3219
3234
|
var AccordionList = function AccordionList(_ref) {
|
|
3220
3235
|
var _ref$localisations = _ref.localisations,
|
|
3221
3236
|
title = _ref$localisations.title,
|
|
@@ -3229,7 +3244,7 @@ var AccordionList = function AccordionList(_ref) {
|
|
|
3229
3244
|
isSearchEnabled = _ref$isSearchEnabled === void 0 ? false : _ref$isSearchEnabled,
|
|
3230
3245
|
_ref$isLoading = _ref.isLoading,
|
|
3231
3246
|
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
3232
|
-
accordionProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3247
|
+
accordionProps = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
3233
3248
|
|
|
3234
3249
|
var _useState = React.useState(""),
|
|
3235
3250
|
searchString = _useState[0],
|
|
@@ -3611,7 +3626,7 @@ var BUTTON_ROLES = {
|
|
|
3611
3626
|
ICON: "icon"
|
|
3612
3627
|
};
|
|
3613
3628
|
|
|
3614
|
-
var _excluded$
|
|
3629
|
+
var _excluded$e = ["text", "role", "type", "title", "link", "isPending", "isDisabled", "onClick", "className", "iconName", "hasIcon", "dynamicIcon"];
|
|
3615
3630
|
|
|
3616
3631
|
function Button(props) {
|
|
3617
3632
|
var _props$text = props.text,
|
|
@@ -3636,7 +3651,7 @@ function Button(props) {
|
|
|
3636
3651
|
_props$hasIcon = props.hasIcon,
|
|
3637
3652
|
hasIconProps = _props$hasIcon === void 0 ? false : _props$hasIcon,
|
|
3638
3653
|
dynamicIcon = props.dynamicIcon,
|
|
3639
|
-
otherAttributes = _objectWithoutPropertiesLoose(props, _excluded$
|
|
3654
|
+
otherAttributes = _objectWithoutPropertiesLoose(props, _excluded$e);
|
|
3640
3655
|
|
|
3641
3656
|
var hasAddIcon = className.includes("add-button");
|
|
3642
3657
|
var hasEditIcon = className.includes("edit-button");
|
|
@@ -4099,7 +4114,7 @@ NotificationBanner.defaultProps = {
|
|
|
4099
4114
|
var css_248z$a = ".radio-form-field-label input[type=\"radio\"]:checked + .radio-circle {\n --bg-opacity: 1;\n background-color: #0074DD;\n background-color: rgba(0, 116, 221, var(--bg-opacity));\n}\n\n.radio-form-field-label[data-has-error=\"true\"] .radio-circle {\n --border-opacity: 1;\n border-color: #c53030;\n border-color: rgba(197, 48, 48, var(--border-opacity));\n outline: 4px solid rgba(255, 98, 102, 0.3);\n outline-offset: 0;\n}\n\n.radio-form-field-label\n input[type=\"radio\"]:checked\n + .radio-circle\n .radio-inner-circle {\n --bg-opacity: 1;\n background-color: #fff;\n background-color: rgba(255, 255, 255, var(--bg-opacity));\n}\n";
|
|
4100
4115
|
styleInject(css_248z$a);
|
|
4101
4116
|
|
|
4102
|
-
var _excluded$
|
|
4117
|
+
var _excluded$f = ["text", "info", "isError", "innerRef", "className", "name"];
|
|
4103
4118
|
|
|
4104
4119
|
function RadioInner(_ref) {
|
|
4105
4120
|
var text = _ref.text,
|
|
@@ -4108,7 +4123,7 @@ function RadioInner(_ref) {
|
|
|
4108
4123
|
innerRef = _ref.innerRef,
|
|
4109
4124
|
className = _ref.className,
|
|
4110
4125
|
name = _ref.name,
|
|
4111
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4126
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
4112
4127
|
|
|
4113
4128
|
var value = otherProps.value,
|
|
4114
4129
|
disabled = otherProps.disabled;
|
|
@@ -4161,14 +4176,14 @@ var RadioV2 = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
4161
4176
|
}));
|
|
4162
4177
|
});
|
|
4163
4178
|
|
|
4164
|
-
var _excluded$
|
|
4179
|
+
var _excluded$g = ["innerRef", "options", "defaultValue", "title"];
|
|
4165
4180
|
|
|
4166
4181
|
function RadioGroupInner(_ref) {
|
|
4167
4182
|
var innerRef = _ref.innerRef,
|
|
4168
4183
|
options = _ref.options,
|
|
4169
4184
|
defaultValue = _ref.defaultValue,
|
|
4170
4185
|
title = _ref.title,
|
|
4171
|
-
registerProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4186
|
+
registerProps = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
4172
4187
|
|
|
4173
4188
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
4174
4189
|
className: classNames("flex flex-col space-y-2"),
|
|
@@ -4241,11 +4256,11 @@ var ConfirmationDialogMessage = function ConfirmationDialogMessage(props) {
|
|
|
4241
4256
|
}));
|
|
4242
4257
|
};
|
|
4243
4258
|
|
|
4244
|
-
var _excluded$
|
|
4259
|
+
var _excluded$h = ["dataTestId"];
|
|
4245
4260
|
var ConfirmationDialog = function ConfirmationDialog(_ref) {
|
|
4246
4261
|
var _ref$dataTestId = _ref.dataTestId,
|
|
4247
4262
|
dataTestId = _ref$dataTestId === void 0 ? "confirmation-dialog-modal" : _ref$dataTestId,
|
|
4248
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4263
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
4249
4264
|
|
|
4250
4265
|
var choices = props.choices;
|
|
4251
4266
|
|
|
@@ -4309,7 +4324,7 @@ var ConfirmationDialog = function ConfirmationDialog(_ref) {
|
|
|
4309
4324
|
var css_248z$b = ".cweb-box-shadow-default {\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.24), 0 0 2px 0 rgba(0, 0, 0, 0.12);\n}\n\n@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n .cweb-box-shadow-default {\n box-shadow: 0 2px 2px 1px rgba(0, 0, 0, 0.24), 0 0 2px 1px rgba(0, 0, 0, 0.12);\n }\n}\n\n.cweb-datepicker {\n width: 182px;\n height: 44px;\n border: 1px solid #cccccc;\n border-radius: 4px;\n background-color: #ffffff;\n outline: none;\n padding: 12px 12px 11px 12px;\n}\n\n.cweb-datepicker input.cweb-datepicker {\n font-size: 14px;\n}\n\n.cweb-datepicker:-ms-input-placeholder {\n color: #64748b;\n}\n\n.cweb-datepicker::placeholder {\n color: #64748b;\n}\n\n.cweb-datepicker:-ms-input-placeholder {\n color: #64748b !important;\n}\n\n.cweb-datepicker::-ms-input-placeholder {\n color: #64748b;\n}\n\n.react-datepicker-popper {\n z-index: 5;\n}\n\n.react-datepicker-popper[data-placement^=bottom] {\n margin-top: 4px;\n}\n\n.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle {\n border-bottom-color: #ffffff;\n margin-top: -4px;\n}\n\n.react-datepicker-popper[data-placement^=top] {\n margin-bottom: 4px;\n}\n\n.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle {\n border-top-color: #ffffff;\n margin-bottom: -4px;\n}\n\n.cweb-datepicker-calendar {\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);\n padding: 0;\n border: 1px solid #cccccc;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n}\n\n@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n .cweb-datepicker-calendar {\n box-shadow: 0 4px 8px 1px rgba(0, 0, 0, 0.2);\n }\n}\n\n.cweb-datepicker-calendar .react-datepicker__triangle {\n left: 10px;\n border: 6px solid transparent;\n}\n\n.cweb-datepicker-calendar .react-datepicker__navigation {\n top: 19px;\n width: 19px;\n height: 10px;\n background: url(\"data:image/svg+xml,%3Csvg width%3D%2210%22 height%3D%227%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E %3Cpath d%3D%22M0 1.5L1.5 0 5 3.5 8.5 0 10 1.5l-5 5z%22 fill%3D%22%231D9BD8%22 fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E\") no-repeat center;\n}\n\n.cweb-datepicker-calendar .react-datepicker__navigation.react-datepicker__navigation--previous {\n border: 0;\n transform: rotate(90deg);\n}\n\n.cweb-datepicker-calendar .react-datepicker__navigation.react-datepicker__navigation--next {\n border: 0;\n transform: rotate(-90deg);\n}\n\n.cweb-datepicker-calendar .react-datepicker__time-container .react-datepicker__time-box {\n width: auto;\n}\n\n.cweb-datepicker-calendar .react-datepicker__time-container .react-datepicker__time-list {\n overflow-x: hidden;\n}\n\n.cweb-datepicker-calendar .react-datepicker__time-container .react-datepicker__time-list-item {\n font-family: \"Inter\", \"Roboto\", sans-serif;\n font-size: 14px;\n font-weight: normal;\n line-height: 19px;\n color: #1e293b;\n margin: 0;\n display: flex;\n justify-content: center;\n flex-direction: row;\n align-items: center;\n height: 40px !important;\n padding: 0 !important;\n}\n\n.cweb-datepicker-calendar .react-datepicker__time-container .react-datepicker__time-list-item.react-datepicker__time-list-item--selected {\n color: #ffffff;\n background-color: #0074dd !important;\n position: relative;\n}\n\n.cweb-datepicker-calendar .react-datepicker__time-container .react-datepicker__time-list-item.react-datepicker__time-list-item--selected:hover {\n background-color: #045baa !important;\n}\n\n.cweb-datepicker-calendar .react-datepicker__time-container .react-datepicker__time-list-item.react-datepicker__time-list-item--selected:before {\n content: \"\";\n position: absolute;\n bottom: -3px;\n right: 0;\n left: initial;\n top: initial;\n border-style: solid;\n border-width: 6px 6px 6px 0;\n border-color: transparent #ffffff transparent transparent;\n transform: rotate(-135deg);\n}\n\n.cweb-datepicker-calendar .react-datepicker__header {\n padding-top: 0;\n border: none;\n background-color: #ffffff;\n font-size: 14px;\n}\n\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__current-month {\n font-family: \"Inter\", \"Roboto\", sans-serif;\n font-size: 14px;\n font-weight: 600;\n line-height: 19px;\n color: #2d2d2d;\n margin: 0;\n padding-top: 16px;\n padding-bottom: 16px;\n text-transform: capitalize;\n}\n\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__header__dropdown {\n margin-bottom: 15px;\n}\n\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__month-select,\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__year-select {\n font-family: \"Inter\", \"Roboto\", sans-serif;\n font-size: 14px;\n font-weight: normal;\n line-height: 19px;\n color: #1e293b;\n margin: 0;\n height: 44px;\n padding-left: 12px;\n border-radius: 4px;\n background: #ffffff url(\"data:image/svg+xml,%3Csvg width%3D%228%22 height%3D%2214%22 viewBox%3D%220 0 8 14%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M4 0C4.26522 5.96046e-08 4.51957 0.105357 4.70711 0.292893L7.70711 3.29289C8.09763 3.68342 8.09763 4.31658 7.70711 4.70711C7.31658 5.09763 6.68342 5.09763 6.29289 4.70711L4 2.41421L1.70711 4.70711C1.31658 5.09763 0.683417 5.09763 0.292893 4.70711C-0.0976311 4.31658 -0.097631 3.68342 0.292893 3.29289L3.29289 0.292893C3.48043 0.105357 3.73478 0 4 0ZM0.292893 9.29289C0.683417 8.90237 1.31658 8.90237 1.70711 9.29289L4 11.5858L6.29289 9.29289C6.68342 8.90237 7.31658 8.90237 7.70711 9.29289C8.09763 9.68342 8.09763 10.3166 7.70711 10.7071L4.70711 13.7071C4.31658 14.0976 3.68342 14.0976 3.29289 13.7071L0.292893 10.7071C-0.0976311 10.3166 -0.0976311 9.68342 0.292893 9.29289Z%22 fill%3D%22%239CA3AF%22%2F%3E%3C%2Fsvg%3E\") no-repeat right 8px center;\n text-transform: capitalize;\n -webkit-appearance: none;\n -moz-appearance: none;\n border: 1px solid #cccccc;\n transition: all 0.4s ease;\n}\n\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__month-select:hover, .cweb-datepicker-calendar .react-datepicker__header .react-datepicker__month-select:focus,\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__year-select:hover,\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__year-select:focus {\n color: #0074dd;\n border-color: #0074dd;\n cursor: pointer;\n}\n\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__month-select {\n min-width: 172px;\n}\n\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__year-select {\n min-width: 107px;\n}\n\n.cweb-datepicker-calendar .react-datepicker__header.react-datepicker__header--time {\n display: flex;\n justify-content: center;\n flex-direction: row;\n align-items: center;\n height: 52px;\n padding: 0;\n background-color: #f3f3f3;\n}\n\n.cweb-datepicker-calendar .react-datepicker__day-names,\n.cweb-datepicker-calendar .react-datepicker__month {\n margin: 0.4rem;\n}\n\n.cweb-datepicker-calendar .react-datepicker__month {\n padding-bottom: 8px;\n}\n\n.cweb-datepicker-calendar .react-datepicker__day-names,\n.cweb-datepicker-calendar .react-datepicker__week {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.cweb-datepicker-calendar .react-datepicker__day-name,\n.cweb-datepicker-calendar .react-datepicker__day {\n font-family: \"Inter\", \"Roboto\", sans-serif;\n font-size: 14px;\n font-weight: normal;\n line-height: 19px;\n color: #1e293b;\n margin: 0;\n width: 41px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.cweb-datepicker-calendar .react-datepicker__day-name {\n height: 19px;\n text-transform: capitalize;\n}\n\n.cweb-datepicker-calendar .react-datepicker__day {\n height: 30px;\n border-radius: 4px;\n transition: background-color 0.3s ease-in-out;\n}\n\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--highlighted {\n background-color: #ffffff;\n color: #0074dd;\n position: relative;\n}\n\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--highlighted:after {\n content: \"\";\n position: absolute;\n width: 4px;\n height: 4px;\n border-radius: 50%;\n background-color: #0074dd;\n left: 0;\n right: 0;\n bottom: 2px;\n margin: 0 auto;\n}\n\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--highlighted.react-datepicker__day--selected:after, .cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--highlighted.react-datepicker__day--keyboard-selected:after, .cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--highlighted.react-datepicker__day--in-range:after {\n background-color: #ffffff;\n}\n\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--today {\n font-weight: bold;\n}\n\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--in-selecting-range {\n background-color: #e8f5fc;\n}\n\n.cweb-datepicker-calendar .react-datepicker__day:hover {\n background-color: #f8fafc;\n}\n\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--in-range, .cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--selected {\n color: #ffffff;\n background-color: #0074dd;\n}\n\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--in-range:hover, .cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--selected:hover {\n background-color: #045baa;\n}\n\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--keyboard-selected {\n color: #ffffff;\n background-color: #045baa;\n}\n\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--selected {\n position: relative;\n}\n\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--range-start {\n position: relative;\n}\n\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--range-start:before {\n content: \"\";\n position: absolute;\n top: -3px;\n left: 0;\n bottom: initial;\n right: initial;\n border-style: solid;\n border-width: 6px 6px 6px 0;\n border-color: transparent #ffffff transparent transparent;\n transform: rotate(45deg);\n}\n\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--range-end {\n position: relative;\n}\n\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--range-end:before {\n content: \"\";\n position: absolute;\n bottom: -3px;\n right: 0;\n left: initial;\n top: initial;\n border-style: solid;\n border-width: 6px 6px 6px 0;\n border-color: transparent #ffffff transparent transparent;\n transform: rotate(-135deg);\n}\n\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--disabled {\n color: #cccccc;\n}\n\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--disabled:hover {\n background-color: #ffffff;\n}\n\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--outside-month {\n color: #cccccc;\n}";
|
|
4310
4325
|
styleInject(css_248z$b);
|
|
4311
4326
|
|
|
4312
|
-
var _excluded$
|
|
4327
|
+
var _excluded$i = ["className", "hasCloseButton", "closeButtonText", "adjustDateOnChange", "showMonthDropdown", "showYearDropdown", "shouldCloseOnSelect", "allowSameDay", "minDate", "maxDate", "isDisabled", "selected"];
|
|
4313
4328
|
|
|
4314
4329
|
var Datepicker = /*#__PURE__*/function (_Component) {
|
|
4315
4330
|
_inheritsLoose(Datepicker, _Component);
|
|
@@ -4364,7 +4379,7 @@ var Datepicker = /*#__PURE__*/function (_Component) {
|
|
|
4364
4379
|
_this$props2$isDisabl = _this$props2.isDisabled,
|
|
4365
4380
|
isDisabled = _this$props2$isDisabl === void 0 ? false : _this$props2$isDisabl,
|
|
4366
4381
|
selected = _this$props2.selected,
|
|
4367
|
-
otherProps = _objectWithoutPropertiesLoose(_this$props2, _excluded$
|
|
4382
|
+
otherProps = _objectWithoutPropertiesLoose(_this$props2, _excluded$i);
|
|
4368
4383
|
|
|
4369
4384
|
var dateFormat = this.getDateFormat();
|
|
4370
4385
|
var pickerClassName = classNames("cweb-datepicker text-slate-800 text-sm", className);
|
|
@@ -4425,7 +4440,7 @@ var img$g = "data:image/svg+xml,%3csvg width='8' height='14' viewBox='0 0 8 14'
|
|
|
4425
4440
|
var css_248z$c = ".cweb-box-shadow-default {\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.24), 0 0 2px 0 rgba(0, 0, 0, 0.12);\n}\n\n@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n .cweb-box-shadow-default {\n box-shadow: 0 2px 2px 1px rgba(0, 0, 0, 0.24), 0 0 2px 1px rgba(0, 0, 0, 0.12);\n }\n}\n\n.cweb-dropdown {\n display: flex;\n justify-content: flex-start;\n flex-direction: column;\n align-items: flex-start;\n position: relative;\n outline: none;\n border-radius: 4px;\n}\n\n.cweb-dropdown:focus {\n outline: 4px solid rgba(0, 159, 227, 0.3);\n}\n\n.cweb-dropdown > .dropdown-header {\n display: flex;\n justify-content: space-between;\n flex-direction: row;\n align-items: center;\n align-self: stretch;\n height: 44px;\n border-radius: 4px;\n transition: all 0.4s ease;\n}\n\n.cweb-dropdown > .dropdown-header > .dropdown-header-icon {\n opacity: 0.5;\n transition: opacity 0.3s ease-in-out;\n}\n\n.cweb-dropdown > .dropdown-header:hover > .dropdown-header-icon {\n opacity: 1;\n}\n\n.cweb-dropdown > .dropdown-list {\n box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.56);\n display: none;\n position: absolute;\n top: 100%;\n z-index: 1;\n width: 100%;\n max-height: 360px;\n overflow-y: auto;\n align-self: stretch;\n margin-top: 8px;\n padding: 0;\n background-color: #ffffff;\n list-style: none;\n border: 1px solid #d1d5db;\n border-radius: 4px;\n}\n\n.cweb-dropdown > .dropdown-list > .dropdown-list-item {\n cursor: pointer;\n}\n\n.cweb-dropdown > .dropdown-list > .dropdown-list-item-group > .dropdown-list-item {\n cursor: pointer;\n}\n\n.cweb-dropdown.is-open > .dropdown-list {\n display: block;\n margin-bottom: 32px;\n}\n\n.cweb-dropdown.is-open > .dropdown-list.wider {\n width: 200%;\n}";
|
|
4426
4441
|
styleInject(css_248z$c);
|
|
4427
4442
|
|
|
4428
|
-
var _excluded$
|
|
4443
|
+
var _excluded$j = ["placeholder", "className", "initialSelectedItemId", "onItemSelect", "items", "wider"];
|
|
4429
4444
|
var ITEM_QUERY_FIELD_NAMES = {
|
|
4430
4445
|
ID: "id",
|
|
4431
4446
|
HIGHLIGHT_INDEX: "highlightIndex"
|
|
@@ -4697,7 +4712,7 @@ var Dropdown = /*#__PURE__*/function (_PureComponent) {
|
|
|
4697
4712
|
_this$props$placehold = _this$props.placeholder,
|
|
4698
4713
|
placeholder = _this$props$placehold === void 0 ? "" : _this$props$placehold,
|
|
4699
4714
|
className = _this$props.className,
|
|
4700
|
-
otherProps = _objectWithoutPropertiesLoose(_this$props, _excluded$
|
|
4715
|
+
otherProps = _objectWithoutPropertiesLoose(_this$props, _excluded$j);
|
|
4701
4716
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
4702
4717
|
|
|
4703
4718
|
|
|
@@ -4792,7 +4807,7 @@ Dropdown.propTypes = {
|
|
|
4792
4807
|
var css_248z$d = ".cweb-error-block {\n position: relative;\n padding: 16px 16px 16px 56px;\n background-color: #fff1f1;\n border-radius: 8px;\n}\n\n.cweb-error-block:before {\n content: \"\";\n position: absolute;\n left: 16px;\n top: 14px;\n z-index: 1;\n width: 24px;\n height: 23px;\n background: url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E %3Cg fill%3D%22none%22 fill-rule%3D%22evenodd%22%3E %3Ccircle cx%3D%2212%22 cy%3D%2212%22 r%3D%2212%22 fill%3D%22%23FF6266%22%2F%3E %3Ccircle cx%3D%2212%22 cy%3D%2217%22 r%3D%222%22 fill%3D%22%23FFF%22%2F%3E %3Crect width%3D%224%22 height%3D%2210%22 x%3D%2210%22 y%3D%224%22 fill%3D%22%23FFF%22 rx%3D%222%22%2F%3E %3C%2Fg%3E%3C%2Fsvg%3E\") no-repeat center;\n background-size: contain;\n}";
|
|
4793
4808
|
styleInject(css_248z$d);
|
|
4794
4809
|
|
|
4795
|
-
var _excluded$
|
|
4810
|
+
var _excluded$k = ["message", "className"];
|
|
4796
4811
|
ErrorBlock.propTypes = {
|
|
4797
4812
|
message: PropTypes.string.isRequired,
|
|
4798
4813
|
className: PropTypes.string
|
|
@@ -4802,7 +4817,7 @@ function ErrorBlock(_ref) {
|
|
|
4802
4817
|
var message = _ref.message,
|
|
4803
4818
|
_ref$className = _ref.className,
|
|
4804
4819
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
4805
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4820
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
4806
4821
|
|
|
4807
4822
|
var containerClassName = classNames("cweb-error-block", className);
|
|
4808
4823
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -5136,7 +5151,7 @@ var PaginationMenuSmall = function PaginationMenuSmall(props) {
|
|
|
5136
5151
|
var css_248z$f = ".customized-select [class*=IndicatorsContainer] {\n background: url(\"data:image/svg+xml,%3Csvg width%3D%228%22 height%3D%2214%22 viewBox%3D%220 0 8 14%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M4 0C4.26522 5.96046e-08 4.51957 0.105357 4.70711 0.292893L7.70711 3.29289C8.09763 3.68342 8.09763 4.31658 7.70711 4.70711C7.31658 5.09763 6.68342 5.09763 6.29289 4.70711L4 2.41421L1.70711 4.70711C1.31658 5.09763 0.683417 5.09763 0.292893 4.70711C-0.0976311 4.31658 -0.097631 3.68342 0.292893 3.29289L3.29289 0.292893C3.48043 0.105357 3.73478 0 4 0ZM0.292893 9.29289C0.683417 8.90237 1.31658 8.90237 1.70711 9.29289L4 11.5858L6.29289 9.29289C6.68342 8.90237 7.31658 8.90237 7.70711 9.29289C8.09763 9.68342 8.09763 10.3166 7.70711 10.7071L4.70711 13.7071C4.31658 14.0976 3.68342 14.0976 3.29289 13.7071L0.292893 10.7071C-0.0976311 10.3166 -0.0976311 9.68342 0.292893 9.29289Z%22 fill%3D%22%239CA3AF%22%2F%3E%3C%2Fsvg%3E\") no-repeat center;\n opacity: 0.5;\n transition: opacity 0.3s ease-in-out;\n margin-right: 0.75rem;\n}\n\n.customized-select [class*=IndicatorsContainer] svg {\n display: none;\n}\n\n.customized-select [class*=MenuList] [class*=option]::after {\n position: absolute;\n content: \"\";\n background: url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 16 16%22%3E %3Cg transform%3D%22translate(1.5%2C 0.5)%22%3E %3Cpath fill%3D%22none%22 fill-rule%3D%22evenodd%22 stroke%3D%22%230074DD%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22 stroke-width%3D%222%22 d%3D%22M12.643 3.357L6.03 9.97l-2.674 2.674L0 9.286%22%2F%3E %3C%2Fg%3E%3C%2Fsvg%3E\") no-repeat center;\n right: 12px;\n height: 1rem;\n width: 1rem;\n}";
|
|
5137
5152
|
styleInject(css_248z$f);
|
|
5138
5153
|
|
|
5139
|
-
var _excluded$
|
|
5154
|
+
var _excluded$l = ["isError", "styles", "options", "onChange", "value", "width", "isMulti", "className"];
|
|
5140
5155
|
|
|
5141
5156
|
function generateCustomStyles(hasError, isIE11) {
|
|
5142
5157
|
return {
|
|
@@ -5257,7 +5272,7 @@ var Select = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef) {
|
|
|
5257
5272
|
width = _ref$width === void 0 ? "full" : _ref$width,
|
|
5258
5273
|
isMulti = _ref.isMulti,
|
|
5259
5274
|
className = _ref.className,
|
|
5260
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5275
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
5261
5276
|
|
|
5262
5277
|
var isIE11 = "MSInputMethodContext" in window && "documentMode" in document;
|
|
5263
5278
|
var customStyles = generateCustomStyles(isError, isIE11);
|
|
@@ -5455,7 +5470,7 @@ var TableFooter = function TableFooter(props) {
|
|
|
5455
5470
|
}, props.paginationMenuProps)))));
|
|
5456
5471
|
};
|
|
5457
5472
|
|
|
5458
|
-
var _excluded$
|
|
5473
|
+
var _excluded$m = ["items", "fieldConfigurations", "emptyRowsText", "emptyFieldContentText", "isLoading", "showHeader", "paginationMenuProps", "onRowClick", "className", "dataTestId"];
|
|
5459
5474
|
function Table(_ref) {
|
|
5460
5475
|
var items = _ref.items,
|
|
5461
5476
|
fieldConfigurations = _ref.fieldConfigurations,
|
|
@@ -5469,7 +5484,7 @@ function Table(_ref) {
|
|
|
5469
5484
|
onRowClick = _ref.onRowClick,
|
|
5470
5485
|
className = _ref.className,
|
|
5471
5486
|
dataTestId = _ref.dataTestId,
|
|
5472
|
-
otherAttributes = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5487
|
+
otherAttributes = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
5473
5488
|
|
|
5474
5489
|
// For not displaying empty view at creation
|
|
5475
5490
|
var _useState = React.useState(true),
|
|
@@ -6423,7 +6438,7 @@ Page.propTypes = {
|
|
|
6423
6438
|
navLayoutProps: PropTypes.object
|
|
6424
6439
|
};
|
|
6425
6440
|
|
|
6426
|
-
var _excluded$
|
|
6441
|
+
var _excluded$n = ["text", "type", "className"];
|
|
6427
6442
|
var TITLE_TYPE_OPTIONS = {
|
|
6428
6443
|
DEFAULT: "default",
|
|
6429
6444
|
BIG: "big",
|
|
@@ -6442,7 +6457,7 @@ function LegacyTitle(_ref) {
|
|
|
6442
6457
|
type = _ref.type,
|
|
6443
6458
|
_ref$className = _ref.className,
|
|
6444
6459
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
6445
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6460
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
6446
6461
|
|
|
6447
6462
|
var ContainerElement;
|
|
6448
6463
|
var containerClassName = classNames("cweb-title", className, {
|
|
@@ -6829,7 +6844,7 @@ Radio.propTypes = {
|
|
|
6829
6844
|
var css_248z$m = ".cweb-radio-group {\n display: flex;\n justify-content: flex-start;\n flex-direction: row;\n align-items: center;\n}\n\n.cweb-radio-group > .cweb-radio {\n flex: 0 0 auto;\n margin-right: 8px;\n}\n\n.cweb-radio-group .cweb-form-field {\n margin-bottom: 12px;\n}\n\n.cweb-radio-group .cweb-form-info-text {\n margin-left: 1.5rem;\n}\n\n.cweb-radio-group.vertical {\n display: flex;\n justify-content: flex-start;\n flex-direction: column;\n align-items: flex-start;\n}\n\n.cweb-radio-group.vertical .cweb-form-field:not(:last-child) {\n margin-bottom: 8px;\n}\n\n.cweb-radio-group.vertical > .cweb-radio {\n flex: 0 0 auto;\n margin-bottom: 8px;\n}\n\n.cweb-radio-group.hasError > .cweb-radio .cweb-radio-icon-container {\n border: 1px solid #ff6266 !important;\n}";
|
|
6830
6845
|
styleInject(css_248z$m);
|
|
6831
6846
|
|
|
6832
|
-
var _excluded$
|
|
6847
|
+
var _excluded$o = ["className", "radioClassName", "name", "selectedOption", "isVertical", "radioOptions", "onChange", "error", "isDisabled"];
|
|
6833
6848
|
/**
|
|
6834
6849
|
* @deprecated: use RadioV2 instead
|
|
6835
6850
|
*/
|
|
@@ -6844,7 +6859,7 @@ function RadioGroup(_ref) {
|
|
|
6844
6859
|
onChange = _ref.onChange,
|
|
6845
6860
|
error = _ref.error,
|
|
6846
6861
|
isDisabled = _ref.isDisabled,
|
|
6847
|
-
otherOptions = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6862
|
+
otherOptions = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
6848
6863
|
|
|
6849
6864
|
var containerClassName = classNames("cweb-radio-group", {
|
|
6850
6865
|
vertical: isVertical
|
|
@@ -6890,7 +6905,7 @@ RadioGroup.propTypes = {
|
|
|
6890
6905
|
var css_248z$n = ".cweb-section .cweb-button:last-of-type {\n margin-right: 24px;\n}\n\n.cweb-section .cweb-button:not(:last-of-type) {\n margin-right: 8px;\n}\n\n.cweb-section .cweb-button.add-button, .cweb-section .cweb-button.edit-button, .cweb-section .cweb-button.delete-button {\n margin-left: auto;\n width: 32px;\n height: 32px;\n}\n\n.cweb-section .cweb-button.add-button {\n background: url(\"data:image/svg+xml,%3Csvg width%3D%2244%22 height%3D%2244%22 viewBox%3D%220 0 44 44%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ccircle cx%3D%2222%22 cy%3D%2222%22 r%3D%2222%22 fill%3D%22white%22%2F%3E%3Crect x%3D%220.5%22 y%3D%220.5%22 width%3D%2243%22 height%3D%2243%22 rx%3D%2221.5%22 stroke%3D%22%23009FE3%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M22 32C23.1046 32 24 31.1046 24 30L24 24H30C31.1046 24 32 23.1046 32 22C32 20.8954 31.1046 20 30 20H24L24 14C24 12.8954 23.1046 12 22 12C20.8954 12 20 12.8954 20 14L20 20H14C12.8954 20 12 20.8954 12 22C12 23.1046 12.8954 24 14 24H20L20 30C20 31.1046 20.8954 32 22 32Z%22 fill%3D%22%23009FE3%22%2F%3E%3C%2Fsvg%3E\") no-repeat center;\n background-size: contain;\n}\n\n.cweb-section .cweb-button.add-button:hover, .cweb-section .cweb-button.add-button:active, .cweb-section .cweb-button.add-button:focus {\n background: url(\"data:image/svg+xml,%3Csvg width%3D%2244%22 height%3D%2244%22 viewBox%3D%220 0 44 44%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect x%3D%220.5%22 y%3D%220.5%22 width%3D%2243%22 height%3D%2243%22 rx%3D%2221.5%22 stroke%3D%22%230A78B2%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M21 12C19.8954 12 19 12.8954 19 14V19L14 19C12.8954 19 12 19.8954 12 21V23C12 24.1046 12.8954 25 14 25H19V30C19 31.1046 19.8954 32 21 32H23C24.1046 32 25 31.1046 25 30V25H30C31.1046 25 32 24.1046 32 23V21C32 19.8954 31.1046 19 30 19L25 19V14C25 12.8954 24.1046 12 23 12H21Z%22 fill%3D%22%23007BBB%22%2F%3E%3C%2Fsvg%3E\") no-repeat center;\n background-size: contain;\n}\n\n.cweb-section .cweb-button.edit-button {\n background: url(\"data:image/svg+xml,%3Csvg width%3D%2244%22 height%3D%2244%22 viewBox%3D%220 0 44 44%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect x%3D%220.5%22 y%3D%220.5%22 width%3D%2243%22 height%3D%2243%22 rx%3D%2221.5%22 stroke%3D%22%23009FE3%22%2F%3E%3Cpath d%3D%22M13.5643 27.1001C13.4169 26.9527 13.1433 27.0159 13.1012 27.2266L12.0065 31.6507C11.9644 31.8614 12.1328 32.051 12.3433 31.9878L16.7851 30.9134C16.9956 30.8712 17.0799 30.5973 16.9114 30.4499L13.5643 27.1001Z%22 fill%3D%22%23009FE3%22%2F%3E%3Cpath d%3D%22M26.2161 14.1222C26.1109 14.0169 25.9214 14.0169 25.8161 14.1222L14.4484 25.4987C14.3432 25.604 14.3432 25.7936 14.4484 25.8989L18.1114 29.5647C18.2166 29.67 18.4061 29.67 18.5113 29.5647L29.879 18.1882C29.9843 18.0829 29.9843 17.8933 29.879 17.788L26.2161 14.1222Z%22 fill%3D%22%23009FE3%22%2F%3E%3Cpath d%3D%22M31.1633 12.8374C30.0475 11.7209 28.2161 11.7209 27.1004 12.8374C27.0583 12.8796 27.0583 12.9217 27.1004 12.9638L31.037 16.9035C31.0791 16.9456 31.1212 16.9456 31.1633 16.9035C32.279 15.7869 32.279 13.954 31.1633 12.8374Z%22 fill%3D%22%23009FE3%22%2F%3E%3C%2Fsvg%3E\") no-repeat center;\n background-size: contain;\n}\n\n.cweb-section .cweb-button.edit-button:hover, .cweb-section .cweb-button.edit-button:active, .cweb-section .cweb-button.edit-button:focus {\n background: url(\"data:image/svg+xml,%3Csvg width%3D%2244%22 height%3D%2244%22 viewBox%3D%220 0 44 44%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect x%3D%220.5%22 y%3D%220.5%22 width%3D%2243%22 height%3D%2243%22 rx%3D%2221.5%22 stroke%3D%22%23007BBB%22%2F%3E%3Cpath d%3D%22M13.5643 27.1001C13.4169 26.9527 13.1433 27.0159 13.1012 27.2266L12.0065 31.6507C11.9644 31.8614 12.1328 32.051 12.3433 31.9878L16.7851 30.9134C16.9956 30.8712 17.0799 30.5973 16.9114 30.4499L13.5643 27.1001Z%22 fill%3D%22%230A78B2%22%2F%3E%3Cpath d%3D%22M26.2161 14.1222C26.1109 14.0169 25.9214 14.0169 25.8161 14.1222L14.4484 25.4987C14.3432 25.604 14.3432 25.7936 14.4484 25.8989L18.1114 29.5647C18.2166 29.67 18.4061 29.67 18.5113 29.5647L29.879 18.1882C29.9843 18.0829 29.9843 17.8933 29.879 17.788L26.2161 14.1222Z%22 fill%3D%22%230A78B2%22%2F%3E%3Cpath d%3D%22M31.1633 12.8374C30.0475 11.7209 28.2161 11.7209 27.1004 12.8374C27.0583 12.8796 27.0583 12.9217 27.1004 12.9638L31.037 16.9035C31.0791 16.9456 31.1212 16.9456 31.1633 16.9035C32.279 15.7869 32.279 13.954 31.1633 12.8374Z%22 fill%3D%22%230A78B2%22%2F%3E%3C%2Fsvg%3E\") no-repeat center;\n background-size: contain;\n}\n\n.cweb-section .cweb-button.delete-button {\n background: url(\"data:image/svg+xml,%3Csvg width%3D%2244%22 height%3D%2244%22 viewBox%3D%220 0 44 44%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect x%3D%220.5%22 y%3D%220.5%22 width%3D%2243%22 height%3D%2243%22 rx%3D%2221.5%22 stroke%3D%22%23FF6266%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M13 12C12.4477 12 12 12.4477 12 13C12 13.5523 12.4477 14 13 14H31C31.5523 14 32 13.5523 32 13C32 12.4477 31.5523 12 31 12H13ZM14 16H30V30C30 31.1046 29.1046 32 28 32H16C14.8954 32 14 31.1046 14 30V16ZM17 18H19V30H17V18ZM21 18H23V30H21V18ZM27 18H25V30H27V18Z%22 fill%3D%22%23FF6266%22%2F%3E%3C%2Fsvg%3E\") no-repeat center;\n background-size: contain;\n}\n\n.cweb-section .cweb-button.delete-button:hover, .cweb-section .cweb-button.delete-button:active, .cweb-section .cweb-button.delete-button:focus {\n background: url(\"data:image/svg+xml,%3Csvg width%3D%2244%22 height%3D%2244%22 viewBox%3D%220 0 44 44%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M13 12C12.4477 12 12 12.4477 12 13C12 13.5523 12.4477 14 13 14H31C31.5523 14 32 13.5523 32 13C32 12.4477 31.5523 12 31 12H13ZM14 16H30V30C30 31.1046 29.1046 32 28 32H16C14.8954 32 14 31.1046 14 30V16ZM17 18H19V30H17V18ZM21 18H23V30H21V18ZM27 18H25V30H27V18Z%22 fill%3D%22%23FC494E%22%2F%3E%3Crect x%3D%220.5%22 y%3D%220.5%22 width%3D%2243%22 height%3D%2243%22 rx%3D%2221.5%22 stroke%3D%22%23FC494E%22%2F%3E%3C%2Fsvg%3E\") no-repeat center;\n background-size: contain;\n}\n\n.cweb-section > .cweb-section-header {\n display: flex;\n justify-content: space-between;\n flex-direction: row;\n align-items: center;\n border-bottom: 1px solid #eeeeee;\n width: 100%;\n padding: 18px 24px;\n}\n\n.cweb-section > .cweb-section-footer {\n display: flex;\n justify-content: space-between;\n flex-direction: row;\n align-items: center;\n border-top: 1px solid #eeeeee;\n width: 100%;\n padding: 1rem 24px 1rem 24px;\n}\n\n.cweb-section > .cweb-section-footer img {\n width: 32px;\n height: 32px;\n}";
|
|
6891
6906
|
styleInject(css_248z$n);
|
|
6892
6907
|
|
|
6893
|
-
var _excluded$
|
|
6908
|
+
var _excluded$p = ["title", "buttons", "footer", "children", "className", "isLoading", "loadingIndicatorProps"];
|
|
6894
6909
|
function Section(_ref) {
|
|
6895
6910
|
var title = _ref.title,
|
|
6896
6911
|
buttons = _ref.buttons,
|
|
@@ -6900,7 +6915,7 @@ function Section(_ref) {
|
|
|
6900
6915
|
_ref$isLoading = _ref.isLoading,
|
|
6901
6916
|
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
6902
6917
|
loadingIndicatorProps = _ref.loadingIndicatorProps,
|
|
6903
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6918
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
6904
6919
|
|
|
6905
6920
|
return /*#__PURE__*/React__default.createElement("div", _extends({}, restProps, {
|
|
6906
6921
|
className: classNames("cweb-section", "flex justify-start flex-col items-start", "rounded-lg", "mx-0 my-4", "bg-white", "w-full", className)
|
|
@@ -6931,12 +6946,12 @@ function Section(_ref) {
|
|
|
6931
6946
|
var css_248z$o = ".cweb-list-item {\n display: flex;\n justify-content: flex-start;\n flex-direction: row;\n align-items: center;\n padding: 16px 0 16px 0;\n border-bottom: 1px solid #eeeeee;\n}\n\n.cweb-list-item:last-child {\n border-bottom: none;\n}\n\n.cweb-list-item.cweb-list-item-clickable {\n cursor: pointer;\n}\n\n.cweb-list-item.cweb-list-item-clickable:hover {\n background-color: #f2fafd;\n}";
|
|
6932
6947
|
styleInject(css_248z$o);
|
|
6933
6948
|
|
|
6934
|
-
var _excluded$
|
|
6949
|
+
var _excluded$q = ["children", "className", "onClick"];
|
|
6935
6950
|
var SectionItem = function SectionItem(props) {
|
|
6936
6951
|
var children = props.children,
|
|
6937
6952
|
className = props.className,
|
|
6938
6953
|
onClick = props.onClick,
|
|
6939
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
6954
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$q);
|
|
6940
6955
|
|
|
6941
6956
|
var classes = classNames("cweb-list-item", className, {
|
|
6942
6957
|
"cweb-list-item-clickable": !!onClick
|
|
@@ -6947,7 +6962,7 @@ var SectionItem = function SectionItem(props) {
|
|
|
6947
6962
|
}, rest), children);
|
|
6948
6963
|
};
|
|
6949
6964
|
|
|
6950
|
-
var _excluded$
|
|
6965
|
+
var _excluded$r = ["text", "icon", "className", "iconClass", "onClick"];
|
|
6951
6966
|
|
|
6952
6967
|
function SectionItemWithContent(props) {
|
|
6953
6968
|
var text = props.text,
|
|
@@ -6955,7 +6970,7 @@ function SectionItemWithContent(props) {
|
|
|
6955
6970
|
className = props.className,
|
|
6956
6971
|
iconClass = props.iconClass,
|
|
6957
6972
|
onClick = props.onClick,
|
|
6958
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
6973
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$r);
|
|
6959
6974
|
|
|
6960
6975
|
var mergedClasses = classNames("cweb-section-text-item", className);
|
|
6961
6976
|
var iconClasses = classNames("w-6 h-6 mr-4", iconClass);
|
|
@@ -7194,7 +7209,7 @@ Switcher.propTypes = {
|
|
|
7194
7209
|
|
|
7195
7210
|
var img$i = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3e%3cpath d='M18 16V2C18 0.9 17.1 0 16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16ZM5.9 10.98L8 13.51L11.1 9.52C11.3 9.26 11.7 9.26 11.9 9.53L15.41 14.21C15.66 14.54 15.42 15.01 15.01 15.01H3.02C2.6 15.01 2.37 14.53 2.63 14.2L5.12 11C5.31 10.74 5.69 10.73 5.9 10.98Z' fill='%23D1D5DB'/%3e%3c/svg%3e";
|
|
7196
7211
|
|
|
7197
|
-
var _excluded$
|
|
7212
|
+
var _excluded$s = ["src", "className", "children", "onClick", "showIconOnFailure"];
|
|
7198
7213
|
|
|
7199
7214
|
var Image$1 = function Image(_ref) {
|
|
7200
7215
|
var src = _ref.src,
|
|
@@ -7204,7 +7219,7 @@ var Image$1 = function Image(_ref) {
|
|
|
7204
7219
|
onClick = _ref.onClick,
|
|
7205
7220
|
_ref$showIconOnFailur = _ref.showIconOnFailure,
|
|
7206
7221
|
showIconOnFailure = _ref$showIconOnFailur === void 0 ? true : _ref$showIconOnFailur,
|
|
7207
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7222
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
7208
7223
|
|
|
7209
7224
|
var _useState = React.useState(false),
|
|
7210
7225
|
isError = _useState[0],
|
|
@@ -7740,7 +7755,7 @@ var TagGroup = function TagGroup(_ref) {
|
|
|
7740
7755
|
var css_248z$q = ".cweb-textarea {\n border: 1px solid #cccccc;\n border-radius: 4px;\n outline: none;\n background-color: #ffffff;\n resize: none;\n}\n\n.cweb-textarea.has-icon {\n background-size: 24px;\n background-position: 10px 10px;\n background-repeat: no-repeat;\n padding-left: 44px;\n}\n\n.cweb-textarea.resizable {\n resize: both;\n}\n\n.cweb-textarea.resizable-x {\n resize: horizontal;\n}\n\n.cweb-textarea.resizable-y {\n resize: vertical;\n}\n\n.cweb-textarea:-ms-input-placeholder {\n color: #737373;\n}\n\n.cweb-textarea::placeholder {\n color: #737373;\n}\n\n.cweb-textarea:-ms-input-placeholder {\n color: #64748b !important;\n}\n\n.cweb-textarea::-ms-input-placeholder {\n color: #64748b;\n}\n\n.cweb-textarea:focus {\n border-color: #0074dd;\n}\n\n.cweb-textarea:disabled {\n cursor: not-allowed;\n}\n\n.cweb-textarea.has-error {\n border: 1px solid #ff6266;\n color: #ff6266;\n}";
|
|
7741
7756
|
styleInject(css_248z$q);
|
|
7742
7757
|
|
|
7743
|
-
var _excluded$
|
|
7758
|
+
var _excluded$t = ["className", "value", "name", "placeholder", "maxLength", "rows", "resizable", "isDisabled", "icon", "onChange", "onBlur", "onFocus", "onKeyPress", "onKeyDown", "onCtrlEnter"];
|
|
7744
7759
|
var RESIZE_TYPES = {
|
|
7745
7760
|
NONE: "none",
|
|
7746
7761
|
BOTH: "both",
|
|
@@ -7784,7 +7799,7 @@ function Textarea(props) {
|
|
|
7784
7799
|
onKeyPress = props.onKeyPress,
|
|
7785
7800
|
_onKeyDown = props.onKeyDown,
|
|
7786
7801
|
onCtrlEnter = props.onCtrlEnter,
|
|
7787
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
|
7802
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$t);
|
|
7788
7803
|
|
|
7789
7804
|
var style;
|
|
7790
7805
|
|
|
@@ -7967,7 +7982,7 @@ var Timeline = function Timeline(props) {
|
|
|
7967
7982
|
}, props.loadMoreButtonProps)));
|
|
7968
7983
|
};
|
|
7969
7984
|
|
|
7970
|
-
var _excluded$
|
|
7985
|
+
var _excluded$u = ["titleProps", "title", "titleAccessory", "contentProps", "content", "defaultContent", "className", "buttons"];
|
|
7971
7986
|
function ViewItem(_ref) {
|
|
7972
7987
|
var titleProps = _ref.titleProps,
|
|
7973
7988
|
title = _ref.title,
|
|
@@ -7978,7 +7993,7 @@ function ViewItem(_ref) {
|
|
|
7978
7993
|
defaultContent = _ref$defaultContent === void 0 ? "-" : _ref$defaultContent,
|
|
7979
7994
|
className = _ref.className,
|
|
7980
7995
|
buttons = _ref.buttons,
|
|
7981
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7996
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
7982
7997
|
|
|
7983
7998
|
var titlePropsMerged = titleProps != null ? titleProps : {
|
|
7984
7999
|
text: title != null ? title : defaultContent
|
|
@@ -8081,7 +8096,7 @@ var isRequired = function isRequired(options) {
|
|
|
8081
8096
|
return !!(options && "required" in options);
|
|
8082
8097
|
};
|
|
8083
8098
|
|
|
8084
|
-
var _excluded$
|
|
8099
|
+
var _excluded$v = ["control", "name", "rules", "fieldErrors", "fieldRequired", "label", "info", "decoratorClassname"];
|
|
8085
8100
|
/**
|
|
8086
8101
|
* Input field that can be used in any react-hook-form context.
|
|
8087
8102
|
*/
|
|
@@ -8095,7 +8110,7 @@ var FormInput = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef)
|
|
|
8095
8110
|
label = _ref.label,
|
|
8096
8111
|
info = _ref.info,
|
|
8097
8112
|
decoratorClassname = _ref.decoratorClassname,
|
|
8098
|
-
fieldProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8113
|
+
fieldProps = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
8099
8114
|
|
|
8100
8115
|
return /*#__PURE__*/React__default.createElement(FormFieldLabeler, {
|
|
8101
8116
|
name: name,
|
|
@@ -8118,7 +8133,7 @@ var FormInput = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef)
|
|
|
8118
8133
|
}));
|
|
8119
8134
|
});
|
|
8120
8135
|
|
|
8121
|
-
var _excluded$
|
|
8136
|
+
var _excluded$w = ["control", "name", "rules", "fieldErrors", "fieldRequired", "label", "info", "decoratorClassname"];
|
|
8122
8137
|
/**
|
|
8123
8138
|
* Radio Group that can be used in any react-hook-form context.
|
|
8124
8139
|
*/
|
|
@@ -8132,7 +8147,7 @@ var FormRadioGroup = /*#__PURE__*/React__default.forwardRef(function (_ref, inne
|
|
|
8132
8147
|
label = _ref.label,
|
|
8133
8148
|
info = _ref.info,
|
|
8134
8149
|
decoratorClassname = _ref.decoratorClassname,
|
|
8135
|
-
fieldProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8150
|
+
fieldProps = _objectWithoutPropertiesLoose(_ref, _excluded$w);
|
|
8136
8151
|
|
|
8137
8152
|
return /*#__PURE__*/React__default.createElement(FormFieldLabeler, {
|
|
8138
8153
|
name: name,
|
|
@@ -8159,7 +8174,7 @@ var FormRadioGroup = /*#__PURE__*/React__default.forwardRef(function (_ref, inne
|
|
|
8159
8174
|
}));
|
|
8160
8175
|
});
|
|
8161
8176
|
|
|
8162
|
-
var _excluded$
|
|
8177
|
+
var _excluded$x = ["control", "name", "rules", "fieldErrors", "fieldRequired", "label", "info", "decoratorClassname"];
|
|
8163
8178
|
|
|
8164
8179
|
var FormSelect = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef) {
|
|
8165
8180
|
var control = _ref.control,
|
|
@@ -8170,7 +8185,7 @@ var FormSelect = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef
|
|
|
8170
8185
|
label = _ref.label,
|
|
8171
8186
|
info = _ref.info,
|
|
8172
8187
|
decoratorClassname = _ref.decoratorClassname,
|
|
8173
|
-
selectProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8188
|
+
selectProps = _objectWithoutPropertiesLoose(_ref, _excluded$x);
|
|
8174
8189
|
|
|
8175
8190
|
return /*#__PURE__*/React__default.createElement(FormFieldLabeler, {
|
|
8176
8191
|
name: name,
|
|
@@ -8192,7 +8207,7 @@ var FormSelect = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef
|
|
|
8192
8207
|
}));
|
|
8193
8208
|
});
|
|
8194
8209
|
|
|
8195
|
-
var _excluded$
|
|
8210
|
+
var _excluded$y = ["control", "name", "rules", "fieldErrors", "fieldRequired", "label", "info", "decoratorClassname"];
|
|
8196
8211
|
|
|
8197
8212
|
var FormImagePicker = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef) {
|
|
8198
8213
|
var control = _ref.control,
|
|
@@ -8203,7 +8218,7 @@ var FormImagePicker = /*#__PURE__*/React__default.forwardRef(function (_ref, inn
|
|
|
8203
8218
|
label = _ref.label,
|
|
8204
8219
|
info = _ref.info,
|
|
8205
8220
|
decoratorClassname = _ref.decoratorClassname,
|
|
8206
|
-
fieldProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8221
|
+
fieldProps = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
8207
8222
|
|
|
8208
8223
|
return /*#__PURE__*/React__default.createElement(FormFieldLabeler, {
|
|
8209
8224
|
name: name,
|
|
@@ -8242,7 +8257,7 @@ var FormImagePicker = /*#__PURE__*/React__default.forwardRef(function (_ref, inn
|
|
|
8242
8257
|
}));
|
|
8243
8258
|
});
|
|
8244
8259
|
|
|
8245
|
-
var _excluded$
|
|
8260
|
+
var _excluded$z = ["control", "name", "rules", "fieldErrors", "fieldRequired", "label", "info", "decoratorClassname"];
|
|
8246
8261
|
var FormFieldCheckbox = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef) {
|
|
8247
8262
|
var control = _ref.control,
|
|
8248
8263
|
name = _ref.name,
|
|
@@ -8252,7 +8267,7 @@ var FormFieldCheckbox = /*#__PURE__*/React__default.forwardRef(function (_ref, i
|
|
|
8252
8267
|
label = _ref.label,
|
|
8253
8268
|
info = _ref.info,
|
|
8254
8269
|
decoratorClassname = _ref.decoratorClassname,
|
|
8255
|
-
fieldProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8270
|
+
fieldProps = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
8256
8271
|
|
|
8257
8272
|
return /*#__PURE__*/React__default.createElement(FormFieldLabeler, {
|
|
8258
8273
|
name: name,
|
|
@@ -8616,6 +8631,7 @@ exports.DatePicker = Datepicker;
|
|
|
8616
8631
|
exports.DeleteIcon = DeleteIcon;
|
|
8617
8632
|
exports.Divider = Divider;
|
|
8618
8633
|
exports.DownArrowIcon = DownArrowIcon;
|
|
8634
|
+
exports.DragHandle = DragHandle;
|
|
8619
8635
|
exports.DragIcon = DragIcon;
|
|
8620
8636
|
exports.Dropdown = Dropdown;
|
|
8621
8637
|
exports.Dropzone = Dropzone;
|