@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
package/dist/web-ui.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React__default, { useReducer,
|
|
1
|
+
import React__default, { useReducer, forwardRef, useState, useRef, useEffect, useMemo, createElement, Component, PureComponent, useCallback } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import dragula from 'react-dragula';
|
|
4
4
|
import { omit } from 'lodash-es';
|
|
@@ -2299,6 +2299,67 @@ var BaseListEmptyState = function BaseListEmptyState(_ref) {
|
|
|
2299
2299
|
}));
|
|
2300
2300
|
};
|
|
2301
2301
|
|
|
2302
|
+
var _excluded$2 = ["name"],
|
|
2303
|
+
_excluded2 = ["name"];
|
|
2304
|
+
var Icon = function Icon(_ref) {
|
|
2305
|
+
var name = _ref.name,
|
|
2306
|
+
iconProps = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
2307
|
+
|
|
2308
|
+
return /*#__PURE__*/React__default.createElement(Icons[name], iconProps);
|
|
2309
|
+
};
|
|
2310
|
+
/**
|
|
2311
|
+
* This is a temporary component to transition the way we pass icons to components.
|
|
2312
|
+
* Once all components are passed an IconKey instead of a function component we can replace it with the Icon component.
|
|
2313
|
+
*/
|
|
2314
|
+
|
|
2315
|
+
var IconComponentOrKey = function IconComponentOrKey(props) {
|
|
2316
|
+
var name = props.name,
|
|
2317
|
+
iconProps = _objectWithoutPropertiesLoose(props, _excluded2);
|
|
2318
|
+
|
|
2319
|
+
if (isIconKey(name)) {
|
|
2320
|
+
return /*#__PURE__*/React__default.createElement(Icon, _extends({
|
|
2321
|
+
name: name
|
|
2322
|
+
}, iconProps));
|
|
2323
|
+
}
|
|
2324
|
+
|
|
2325
|
+
return /*#__PURE__*/React__default.createElement(name, iconProps);
|
|
2326
|
+
};
|
|
2327
|
+
|
|
2328
|
+
function isIconKey(key) {
|
|
2329
|
+
if (typeof key === "string") {
|
|
2330
|
+
return key in Icons;
|
|
2331
|
+
}
|
|
2332
|
+
|
|
2333
|
+
return false;
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2336
|
+
var _excluded$3 = ["dataTestId", "className", "grabbing", "disabled"];
|
|
2337
|
+
var DragHandle = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
2338
|
+
var dataTestId = _ref.dataTestId,
|
|
2339
|
+
classes = _ref.className,
|
|
2340
|
+
grabbing = _ref.grabbing,
|
|
2341
|
+
_ref$disabled = _ref.disabled,
|
|
2342
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
2343
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
2344
|
+
|
|
2345
|
+
var className = classNames(classes, "py-2", {
|
|
2346
|
+
"cursor-grab": !grabbing && !disabled,
|
|
2347
|
+
"cursor-grabbing shadow-sm bg-slate-200": grabbing && !disabled,
|
|
2348
|
+
"hover:bg-slate-200 hover:shadow-sm transition duration-200 rounded": !disabled,
|
|
2349
|
+
"cursor-not-allowed": disabled
|
|
2350
|
+
});
|
|
2351
|
+
return /*#__PURE__*/React__default.createElement("button", _extends({
|
|
2352
|
+
ref: ref
|
|
2353
|
+
}, props, {
|
|
2354
|
+
tabIndex: 0,
|
|
2355
|
+
className: className,
|
|
2356
|
+
"data-testId": dataTestId != null ? dataTestId : "dragHandle"
|
|
2357
|
+
}), /*#__PURE__*/React__default.createElement(Icon, {
|
|
2358
|
+
name: "DragIcon",
|
|
2359
|
+
className: disabled ? "text-slate-300" : "text-slate-400"
|
|
2360
|
+
}));
|
|
2361
|
+
});
|
|
2362
|
+
|
|
2302
2363
|
var BaseListIcon = function BaseListIcon(_ref) {
|
|
2303
2364
|
var icon = _ref.icon,
|
|
2304
2365
|
onAssetLoadError = _ref.onAssetLoadError;
|
|
@@ -2375,8 +2436,8 @@ var BaseListItem = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
2375
2436
|
onClick: clickHandler
|
|
2376
2437
|
}, htmlProps, {
|
|
2377
2438
|
ref: ref
|
|
2378
|
-
}), isDraggable && (renderDragHandle ? renderDragHandle() : /*#__PURE__*/React__default.createElement(
|
|
2379
|
-
|
|
2439
|
+
}), isDraggable && (renderDragHandle ? renderDragHandle() : /*#__PURE__*/React__default.createElement(DragHandle, {
|
|
2440
|
+
grabbing: false
|
|
2380
2441
|
})), icon && /*#__PURE__*/React__default.createElement(BaseListIcon, {
|
|
2381
2442
|
icon: icon,
|
|
2382
2443
|
onAssetLoadError: createAssetLoadError({
|
|
@@ -2455,40 +2516,6 @@ var BaseListInner = function BaseListInner(_ref, ref) {
|
|
|
2455
2516
|
|
|
2456
2517
|
var BaseList = /*#__PURE__*/React__default.forwardRef(BaseListInner);
|
|
2457
2518
|
|
|
2458
|
-
var _excluded$2 = ["name"],
|
|
2459
|
-
_excluded2 = ["name"];
|
|
2460
|
-
var Icon = function Icon(_ref) {
|
|
2461
|
-
var name = _ref.name,
|
|
2462
|
-
iconProps = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
2463
|
-
|
|
2464
|
-
return /*#__PURE__*/React__default.createElement(Icons[name], iconProps);
|
|
2465
|
-
};
|
|
2466
|
-
/**
|
|
2467
|
-
* This is a temporary component to transition the way we pass icons to components.
|
|
2468
|
-
* Once all components are passed an IconKey instead of a function component we can replace it with the Icon component.
|
|
2469
|
-
*/
|
|
2470
|
-
|
|
2471
|
-
var IconComponentOrKey = function IconComponentOrKey(props) {
|
|
2472
|
-
var name = props.name,
|
|
2473
|
-
iconProps = _objectWithoutPropertiesLoose(props, _excluded2);
|
|
2474
|
-
|
|
2475
|
-
if (isIconKey(name)) {
|
|
2476
|
-
return /*#__PURE__*/React__default.createElement(Icon, _extends({
|
|
2477
|
-
name: name
|
|
2478
|
-
}, iconProps));
|
|
2479
|
-
}
|
|
2480
|
-
|
|
2481
|
-
return /*#__PURE__*/React__default.createElement(name, iconProps);
|
|
2482
|
-
};
|
|
2483
|
-
|
|
2484
|
-
function isIconKey(key) {
|
|
2485
|
-
if (typeof key === "string") {
|
|
2486
|
-
return key in Icons;
|
|
2487
|
-
}
|
|
2488
|
-
|
|
2489
|
-
return false;
|
|
2490
|
-
}
|
|
2491
|
-
|
|
2492
2519
|
// You should be able to just use a non-registered Symbol as a key in a WeakMap
|
|
2493
2520
|
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap
|
|
2494
2521
|
// TS doesn't allow it (registered and non-registered Symbols are both of type symbol), so we have to use an object
|
|
@@ -2533,12 +2560,12 @@ var getDndListItemProps = function getDndListItemProps(subject) {
|
|
|
2533
2560
|
return (_possibleDraggableLis = possibleDraggableListItemProps.get(draggableListItemPropsPointer)) != null ? _possibleDraggableLis : null;
|
|
2534
2561
|
};
|
|
2535
2562
|
|
|
2536
|
-
var _excluded$
|
|
2563
|
+
var _excluded$4 = ["draggableData"];
|
|
2537
2564
|
var DraggableBaseListItem = function DraggableBaseListItem(_ref) {
|
|
2538
2565
|
var _data;
|
|
2539
2566
|
|
|
2540
2567
|
var draggableData = _ref.draggableData,
|
|
2541
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2568
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
2542
2569
|
|
|
2543
2570
|
var _useDraggable = useDraggable({
|
|
2544
2571
|
id: props.draggableIdentifier,
|
|
@@ -2547,30 +2574,26 @@ var DraggableBaseListItem = function DraggableBaseListItem(_ref) {
|
|
|
2547
2574
|
}),
|
|
2548
2575
|
setNodeRef = _useDraggable.setNodeRef,
|
|
2549
2576
|
listeners = _useDraggable.listeners,
|
|
2550
|
-
attributes = _useDraggable.attributes
|
|
2577
|
+
attributes = _useDraggable.attributes,
|
|
2578
|
+
isDragging = _useDraggable.isDragging;
|
|
2551
2579
|
|
|
2552
|
-
var dragHandleClassName = classNames({
|
|
2553
|
-
"cursor-move": props.isDraggable,
|
|
2554
|
-
"cursor-not-allowed": !props.isDraggable
|
|
2555
|
-
});
|
|
2556
2580
|
return /*#__PURE__*/React__default.createElement(BaseListItem, _extends({}, props, {
|
|
2557
2581
|
ref: setNodeRef,
|
|
2558
2582
|
isDraggable: true,
|
|
2559
2583
|
renderDragHandle: function renderDragHandle() {
|
|
2560
|
-
return /*#__PURE__*/React__default.createElement(
|
|
2561
|
-
|
|
2562
|
-
}
|
|
2563
|
-
|
|
2564
|
-
name: "DragIcon"
|
|
2584
|
+
return /*#__PURE__*/React__default.createElement(DragHandle, _extends({
|
|
2585
|
+
grabbing: isDragging
|
|
2586
|
+
}, attributes, listeners, {
|
|
2587
|
+
disabled: !props.isDraggable
|
|
2565
2588
|
}));
|
|
2566
2589
|
}
|
|
2567
2590
|
}));
|
|
2568
2591
|
};
|
|
2569
2592
|
|
|
2570
|
-
var _excluded$
|
|
2593
|
+
var _excluded$5 = ["items"];
|
|
2571
2594
|
var DraggableBaseList = function DraggableBaseList(_ref) {
|
|
2572
2595
|
var items = _ref.items,
|
|
2573
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2596
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
2574
2597
|
|
|
2575
2598
|
return /*#__PURE__*/React__default.createElement(BaseList, _extends({}, props, {
|
|
2576
2599
|
items: items,
|
|
@@ -2578,7 +2601,7 @@ var DraggableBaseList = function DraggableBaseList(_ref) {
|
|
|
2578
2601
|
}));
|
|
2579
2602
|
};
|
|
2580
2603
|
|
|
2581
|
-
var _excluded$
|
|
2604
|
+
var _excluded$6 = ["draggableIdentifier", "disabled", "data", "dataTestId", "onClick"];
|
|
2582
2605
|
|
|
2583
2606
|
var DefaultState = function DefaultState(_ref) {
|
|
2584
2607
|
var icon = _ref.icon,
|
|
@@ -2640,7 +2663,7 @@ var Dropzone = function Dropzone(_ref3) {
|
|
|
2640
2663
|
data = _ref3.data,
|
|
2641
2664
|
dataTestId = _ref3.dataTestId,
|
|
2642
2665
|
onClick = _ref3.onClick,
|
|
2643
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded$
|
|
2666
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded$6);
|
|
2644
2667
|
|
|
2645
2668
|
var _useDroppable = useDroppable({
|
|
2646
2669
|
id: identifier,
|
|
@@ -2669,12 +2692,12 @@ var Dropzone = function Dropzone(_ref3) {
|
|
|
2669
2692
|
return presentation;
|
|
2670
2693
|
};
|
|
2671
2694
|
|
|
2672
|
-
var _excluded$
|
|
2695
|
+
var _excluded$7 = ["draggableData"];
|
|
2673
2696
|
var SortableBaseListItem = function SortableBaseListItem(_ref) {
|
|
2674
2697
|
var _data;
|
|
2675
2698
|
|
|
2676
2699
|
var draggableData = _ref.draggableData,
|
|
2677
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2700
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
2678
2701
|
|
|
2679
2702
|
var _useSortable = useSortable({
|
|
2680
2703
|
id: props.draggableIdentifier,
|
|
@@ -2688,10 +2711,6 @@ var SortableBaseListItem = function SortableBaseListItem(_ref) {
|
|
|
2688
2711
|
isDragging = _useSortable.isDragging;
|
|
2689
2712
|
|
|
2690
2713
|
var styleTransform = CSS.Transform.toString(transform);
|
|
2691
|
-
var dragHandleClassName = classNames({
|
|
2692
|
-
"cursor-move": props.isDraggable,
|
|
2693
|
-
"cursor-not-allowed": !props.isDraggable
|
|
2694
|
-
});
|
|
2695
2714
|
|
|
2696
2715
|
if (isDragging) {
|
|
2697
2716
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -2712,11 +2731,9 @@ var SortableBaseListItem = function SortableBaseListItem(_ref) {
|
|
|
2712
2731
|
},
|
|
2713
2732
|
isDraggable: true,
|
|
2714
2733
|
renderDragHandle: function renderDragHandle() {
|
|
2715
|
-
return /*#__PURE__*/React__default.createElement(
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
className: "text-slate-300",
|
|
2719
|
-
name: "DragIcon"
|
|
2734
|
+
return /*#__PURE__*/React__default.createElement(DragHandle, _extends({}, attributes, listeners, {
|
|
2735
|
+
disabled: !props.isDraggable,
|
|
2736
|
+
grabbing: isDragging
|
|
2720
2737
|
}));
|
|
2721
2738
|
}
|
|
2722
2739
|
}))));
|
|
@@ -2731,21 +2748,19 @@ var SortableBaseListItem = function SortableBaseListItem(_ref) {
|
|
|
2731
2748
|
},
|
|
2732
2749
|
isDraggable: true,
|
|
2733
2750
|
renderDragHandle: function renderDragHandle() {
|
|
2734
|
-
return /*#__PURE__*/React__default.createElement(
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
className: "text-slate-300",
|
|
2738
|
-
name: "DragIcon"
|
|
2751
|
+
return /*#__PURE__*/React__default.createElement(DragHandle, _extends({}, attributes, listeners, {
|
|
2752
|
+
disabled: !props.isDraggable,
|
|
2753
|
+
grabbing: isDragging
|
|
2739
2754
|
}));
|
|
2740
2755
|
}
|
|
2741
2756
|
}));
|
|
2742
2757
|
};
|
|
2743
2758
|
|
|
2744
|
-
var _excluded$
|
|
2759
|
+
var _excluded$8 = ["draggableIdentifier", "items"];
|
|
2745
2760
|
var SortableBaseList = function SortableBaseList(_ref) {
|
|
2746
2761
|
var draggableIdentifier = _ref.draggableIdentifier,
|
|
2747
2762
|
items = _ref.items,
|
|
2748
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2763
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
2749
2764
|
|
|
2750
2765
|
return /*#__PURE__*/React__default.createElement(SortableContext, {
|
|
2751
2766
|
id: draggableIdentifier,
|
|
@@ -2768,13 +2783,13 @@ var ListItem = function ListItem(props) {
|
|
|
2768
2783
|
return /*#__PURE__*/React__default.createElement(BaseListItem, _extends({}, props));
|
|
2769
2784
|
};
|
|
2770
2785
|
|
|
2771
|
-
var _excluded$
|
|
2786
|
+
var _excluded$9 = ["items", "onDragEnd", "onAssetLoadError"];
|
|
2772
2787
|
|
|
2773
2788
|
var DefaultList = function DefaultList(_ref) {
|
|
2774
2789
|
var items = _ref.items,
|
|
2775
2790
|
onDragEnd = _ref.onDragEnd,
|
|
2776
2791
|
onAssetLoadError = _ref.onAssetLoadError,
|
|
2777
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2792
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
2778
2793
|
|
|
2779
2794
|
var listRef = useRef(null);
|
|
2780
2795
|
var dragulaRef = useRef(null);
|
|
@@ -2861,7 +2876,7 @@ var List = function List(props) {
|
|
|
2861
2876
|
var css_248z$5 = ".input::-ms-clear {\n display: none;\n}";
|
|
2862
2877
|
styleInject(css_248z$5);
|
|
2863
2878
|
|
|
2864
|
-
var _excluded$
|
|
2879
|
+
var _excluded$a = ["withSuffix", "withPrefix", "className", "clearable", "type", "isDisabled", "width", "icon", "name", "value", "onChange", "isError", "asFormField"];
|
|
2865
2880
|
// Don't know why yet but it can be fixed later.
|
|
2866
2881
|
|
|
2867
2882
|
var INPUT_TYPES = {
|
|
@@ -2891,7 +2906,7 @@ var Input = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
2891
2906
|
onChange = _ref.onChange,
|
|
2892
2907
|
isError = _ref.isError,
|
|
2893
2908
|
asFormField = _ref.asFormField,
|
|
2894
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2909
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
2895
2910
|
|
|
2896
2911
|
var hasNoExtraContent = withPrefix === "" && withSuffix === "";
|
|
2897
2912
|
|
|
@@ -3034,7 +3049,7 @@ var Spinner = function Spinner(props) {
|
|
|
3034
3049
|
}));
|
|
3035
3050
|
};
|
|
3036
3051
|
|
|
3037
|
-
var _excluded$
|
|
3052
|
+
var _excluded$b = ["onClick", "text", "textColor", "textHoverColor", "icon", "isDisabled", "isPending", "className"];
|
|
3038
3053
|
var ButtonV2 = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef) {
|
|
3039
3054
|
var onClick = _ref.onClick,
|
|
3040
3055
|
text = _ref.text,
|
|
@@ -3044,7 +3059,7 @@ var ButtonV2 = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef)
|
|
|
3044
3059
|
isDisabled = _ref.isDisabled,
|
|
3045
3060
|
isPending = _ref.isPending,
|
|
3046
3061
|
className = _ref.className,
|
|
3047
|
-
otherAttributes = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3062
|
+
otherAttributes = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
3048
3063
|
|
|
3049
3064
|
function handleClick(event) {
|
|
3050
3065
|
event.stopPropagation();
|
|
@@ -3176,7 +3191,7 @@ var img$5 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3
|
|
|
3176
3191
|
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}";
|
|
3177
3192
|
styleInject(css_248z$6);
|
|
3178
3193
|
|
|
3179
|
-
var _excluded$
|
|
3194
|
+
var _excluded$c = ["asModal", "asSpinner", "className", "spinnerColor", "dataTestId"];
|
|
3180
3195
|
function LoadingIndicator(_ref) {
|
|
3181
3196
|
var _ref$asModal = _ref.asModal,
|
|
3182
3197
|
asModal = _ref$asModal === void 0 ? false : _ref$asModal,
|
|
@@ -3188,7 +3203,7 @@ function LoadingIndicator(_ref) {
|
|
|
3188
3203
|
spinnerColor = _ref$spinnerColor === void 0 ? "blue" : _ref$spinnerColor,
|
|
3189
3204
|
_ref$dataTestId = _ref.dataTestId,
|
|
3190
3205
|
dataTestId = _ref$dataTestId === void 0 ? "loading-indicator" : _ref$dataTestId,
|
|
3191
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3206
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
3192
3207
|
|
|
3193
3208
|
var spinnerToRender = spinnerColor === "blue" ? img$4 : img$5;
|
|
3194
3209
|
var containerClassName = classNames("cweb-loading", className, {
|
|
@@ -3207,7 +3222,7 @@ function LoadingIndicator(_ref) {
|
|
|
3207
3222
|
}));
|
|
3208
3223
|
}
|
|
3209
3224
|
|
|
3210
|
-
var _excluded$
|
|
3225
|
+
var _excluded$d = ["localisations", "buttonProps", "accordionItems", "isSearchEnabled", "isLoading"];
|
|
3211
3226
|
var AccordionList = function AccordionList(_ref) {
|
|
3212
3227
|
var _ref$localisations = _ref.localisations,
|
|
3213
3228
|
title = _ref$localisations.title,
|
|
@@ -3221,7 +3236,7 @@ var AccordionList = function AccordionList(_ref) {
|
|
|
3221
3236
|
isSearchEnabled = _ref$isSearchEnabled === void 0 ? false : _ref$isSearchEnabled,
|
|
3222
3237
|
_ref$isLoading = _ref.isLoading,
|
|
3223
3238
|
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
3224
|
-
accordionProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3239
|
+
accordionProps = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
3225
3240
|
|
|
3226
3241
|
var _useState = useState(""),
|
|
3227
3242
|
searchString = _useState[0],
|
|
@@ -3603,7 +3618,7 @@ var BUTTON_ROLES = {
|
|
|
3603
3618
|
ICON: "icon"
|
|
3604
3619
|
};
|
|
3605
3620
|
|
|
3606
|
-
var _excluded$
|
|
3621
|
+
var _excluded$e = ["text", "role", "type", "title", "link", "isPending", "isDisabled", "onClick", "className", "iconName", "hasIcon", "dynamicIcon"];
|
|
3607
3622
|
|
|
3608
3623
|
function Button(props) {
|
|
3609
3624
|
var _props$text = props.text,
|
|
@@ -3628,7 +3643,7 @@ function Button(props) {
|
|
|
3628
3643
|
_props$hasIcon = props.hasIcon,
|
|
3629
3644
|
hasIconProps = _props$hasIcon === void 0 ? false : _props$hasIcon,
|
|
3630
3645
|
dynamicIcon = props.dynamicIcon,
|
|
3631
|
-
otherAttributes = _objectWithoutPropertiesLoose(props, _excluded$
|
|
3646
|
+
otherAttributes = _objectWithoutPropertiesLoose(props, _excluded$e);
|
|
3632
3647
|
|
|
3633
3648
|
var hasAddIcon = className.includes("add-button");
|
|
3634
3649
|
var hasEditIcon = className.includes("edit-button");
|
|
@@ -4091,7 +4106,7 @@ NotificationBanner.defaultProps = {
|
|
|
4091
4106
|
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";
|
|
4092
4107
|
styleInject(css_248z$a);
|
|
4093
4108
|
|
|
4094
|
-
var _excluded$
|
|
4109
|
+
var _excluded$f = ["text", "info", "isError", "innerRef", "className", "name"];
|
|
4095
4110
|
|
|
4096
4111
|
function RadioInner(_ref) {
|
|
4097
4112
|
var text = _ref.text,
|
|
@@ -4100,7 +4115,7 @@ function RadioInner(_ref) {
|
|
|
4100
4115
|
innerRef = _ref.innerRef,
|
|
4101
4116
|
className = _ref.className,
|
|
4102
4117
|
name = _ref.name,
|
|
4103
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4118
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
4104
4119
|
|
|
4105
4120
|
var value = otherProps.value,
|
|
4106
4121
|
disabled = otherProps.disabled;
|
|
@@ -4153,14 +4168,14 @@ var RadioV2 = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
4153
4168
|
}));
|
|
4154
4169
|
});
|
|
4155
4170
|
|
|
4156
|
-
var _excluded$
|
|
4171
|
+
var _excluded$g = ["innerRef", "options", "defaultValue", "title"];
|
|
4157
4172
|
|
|
4158
4173
|
function RadioGroupInner(_ref) {
|
|
4159
4174
|
var innerRef = _ref.innerRef,
|
|
4160
4175
|
options = _ref.options,
|
|
4161
4176
|
defaultValue = _ref.defaultValue,
|
|
4162
4177
|
title = _ref.title,
|
|
4163
|
-
registerProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4178
|
+
registerProps = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
4164
4179
|
|
|
4165
4180
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
4166
4181
|
className: classNames("flex flex-col space-y-2"),
|
|
@@ -4233,11 +4248,11 @@ var ConfirmationDialogMessage = function ConfirmationDialogMessage(props) {
|
|
|
4233
4248
|
}));
|
|
4234
4249
|
};
|
|
4235
4250
|
|
|
4236
|
-
var _excluded$
|
|
4251
|
+
var _excluded$h = ["dataTestId"];
|
|
4237
4252
|
var ConfirmationDialog = function ConfirmationDialog(_ref) {
|
|
4238
4253
|
var _ref$dataTestId = _ref.dataTestId,
|
|
4239
4254
|
dataTestId = _ref$dataTestId === void 0 ? "confirmation-dialog-modal" : _ref$dataTestId,
|
|
4240
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4255
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
4241
4256
|
|
|
4242
4257
|
var choices = props.choices;
|
|
4243
4258
|
|
|
@@ -4301,7 +4316,7 @@ var ConfirmationDialog = function ConfirmationDialog(_ref) {
|
|
|
4301
4316
|
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}";
|
|
4302
4317
|
styleInject(css_248z$b);
|
|
4303
4318
|
|
|
4304
|
-
var _excluded$
|
|
4319
|
+
var _excluded$i = ["className", "hasCloseButton", "closeButtonText", "adjustDateOnChange", "showMonthDropdown", "showYearDropdown", "shouldCloseOnSelect", "allowSameDay", "minDate", "maxDate", "isDisabled", "selected"];
|
|
4305
4320
|
|
|
4306
4321
|
var Datepicker = /*#__PURE__*/function (_Component) {
|
|
4307
4322
|
_inheritsLoose(Datepicker, _Component);
|
|
@@ -4356,7 +4371,7 @@ var Datepicker = /*#__PURE__*/function (_Component) {
|
|
|
4356
4371
|
_this$props2$isDisabl = _this$props2.isDisabled,
|
|
4357
4372
|
isDisabled = _this$props2$isDisabl === void 0 ? false : _this$props2$isDisabl,
|
|
4358
4373
|
selected = _this$props2.selected,
|
|
4359
|
-
otherProps = _objectWithoutPropertiesLoose(_this$props2, _excluded$
|
|
4374
|
+
otherProps = _objectWithoutPropertiesLoose(_this$props2, _excluded$i);
|
|
4360
4375
|
|
|
4361
4376
|
var dateFormat = this.getDateFormat();
|
|
4362
4377
|
var pickerClassName = classNames("cweb-datepicker text-slate-800 text-sm", className);
|
|
@@ -4417,7 +4432,7 @@ var img$g = "data:image/svg+xml,%3csvg width='8' height='14' viewBox='0 0 8 14'
|
|
|
4417
4432
|
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}";
|
|
4418
4433
|
styleInject(css_248z$c);
|
|
4419
4434
|
|
|
4420
|
-
var _excluded$
|
|
4435
|
+
var _excluded$j = ["placeholder", "className", "initialSelectedItemId", "onItemSelect", "items", "wider"];
|
|
4421
4436
|
var ITEM_QUERY_FIELD_NAMES = {
|
|
4422
4437
|
ID: "id",
|
|
4423
4438
|
HIGHLIGHT_INDEX: "highlightIndex"
|
|
@@ -4689,7 +4704,7 @@ var Dropdown = /*#__PURE__*/function (_PureComponent) {
|
|
|
4689
4704
|
_this$props$placehold = _this$props.placeholder,
|
|
4690
4705
|
placeholder = _this$props$placehold === void 0 ? "" : _this$props$placehold,
|
|
4691
4706
|
className = _this$props.className,
|
|
4692
|
-
otherProps = _objectWithoutPropertiesLoose(_this$props, _excluded$
|
|
4707
|
+
otherProps = _objectWithoutPropertiesLoose(_this$props, _excluded$j);
|
|
4693
4708
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
4694
4709
|
|
|
4695
4710
|
|
|
@@ -4784,7 +4799,7 @@ Dropdown.propTypes = {
|
|
|
4784
4799
|
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}";
|
|
4785
4800
|
styleInject(css_248z$d);
|
|
4786
4801
|
|
|
4787
|
-
var _excluded$
|
|
4802
|
+
var _excluded$k = ["message", "className"];
|
|
4788
4803
|
ErrorBlock.propTypes = {
|
|
4789
4804
|
message: PropTypes.string.isRequired,
|
|
4790
4805
|
className: PropTypes.string
|
|
@@ -4794,7 +4809,7 @@ function ErrorBlock(_ref) {
|
|
|
4794
4809
|
var message = _ref.message,
|
|
4795
4810
|
_ref$className = _ref.className,
|
|
4796
4811
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
4797
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4812
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
4798
4813
|
|
|
4799
4814
|
var containerClassName = classNames("cweb-error-block", className);
|
|
4800
4815
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -5128,7 +5143,7 @@ var PaginationMenuSmall = function PaginationMenuSmall(props) {
|
|
|
5128
5143
|
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}";
|
|
5129
5144
|
styleInject(css_248z$f);
|
|
5130
5145
|
|
|
5131
|
-
var _excluded$
|
|
5146
|
+
var _excluded$l = ["isError", "styles", "options", "onChange", "value", "width", "isMulti", "className"];
|
|
5132
5147
|
|
|
5133
5148
|
function generateCustomStyles(hasError, isIE11) {
|
|
5134
5149
|
return {
|
|
@@ -5249,7 +5264,7 @@ var Select = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef) {
|
|
|
5249
5264
|
width = _ref$width === void 0 ? "full" : _ref$width,
|
|
5250
5265
|
isMulti = _ref.isMulti,
|
|
5251
5266
|
className = _ref.className,
|
|
5252
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5267
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
5253
5268
|
|
|
5254
5269
|
var isIE11 = "MSInputMethodContext" in window && "documentMode" in document;
|
|
5255
5270
|
var customStyles = generateCustomStyles(isError, isIE11);
|
|
@@ -5447,7 +5462,7 @@ var TableFooter = function TableFooter(props) {
|
|
|
5447
5462
|
}, props.paginationMenuProps)))));
|
|
5448
5463
|
};
|
|
5449
5464
|
|
|
5450
|
-
var _excluded$
|
|
5465
|
+
var _excluded$m = ["items", "fieldConfigurations", "emptyRowsText", "emptyFieldContentText", "isLoading", "showHeader", "paginationMenuProps", "onRowClick", "className", "dataTestId"];
|
|
5451
5466
|
function Table(_ref) {
|
|
5452
5467
|
var items = _ref.items,
|
|
5453
5468
|
fieldConfigurations = _ref.fieldConfigurations,
|
|
@@ -5461,7 +5476,7 @@ function Table(_ref) {
|
|
|
5461
5476
|
onRowClick = _ref.onRowClick,
|
|
5462
5477
|
className = _ref.className,
|
|
5463
5478
|
dataTestId = _ref.dataTestId,
|
|
5464
|
-
otherAttributes = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5479
|
+
otherAttributes = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
5465
5480
|
|
|
5466
5481
|
// For not displaying empty view at creation
|
|
5467
5482
|
var _useState = useState(true),
|
|
@@ -6415,7 +6430,7 @@ Page.propTypes = {
|
|
|
6415
6430
|
navLayoutProps: PropTypes.object
|
|
6416
6431
|
};
|
|
6417
6432
|
|
|
6418
|
-
var _excluded$
|
|
6433
|
+
var _excluded$n = ["text", "type", "className"];
|
|
6419
6434
|
var TITLE_TYPE_OPTIONS = {
|
|
6420
6435
|
DEFAULT: "default",
|
|
6421
6436
|
BIG: "big",
|
|
@@ -6434,7 +6449,7 @@ function LegacyTitle(_ref) {
|
|
|
6434
6449
|
type = _ref.type,
|
|
6435
6450
|
_ref$className = _ref.className,
|
|
6436
6451
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
6437
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6452
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
6438
6453
|
|
|
6439
6454
|
var ContainerElement;
|
|
6440
6455
|
var containerClassName = classNames("cweb-title", className, {
|
|
@@ -6821,7 +6836,7 @@ Radio.propTypes = {
|
|
|
6821
6836
|
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}";
|
|
6822
6837
|
styleInject(css_248z$m);
|
|
6823
6838
|
|
|
6824
|
-
var _excluded$
|
|
6839
|
+
var _excluded$o = ["className", "radioClassName", "name", "selectedOption", "isVertical", "radioOptions", "onChange", "error", "isDisabled"];
|
|
6825
6840
|
/**
|
|
6826
6841
|
* @deprecated: use RadioV2 instead
|
|
6827
6842
|
*/
|
|
@@ -6836,7 +6851,7 @@ function RadioGroup(_ref) {
|
|
|
6836
6851
|
onChange = _ref.onChange,
|
|
6837
6852
|
error = _ref.error,
|
|
6838
6853
|
isDisabled = _ref.isDisabled,
|
|
6839
|
-
otherOptions = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6854
|
+
otherOptions = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
6840
6855
|
|
|
6841
6856
|
var containerClassName = classNames("cweb-radio-group", {
|
|
6842
6857
|
vertical: isVertical
|
|
@@ -6882,7 +6897,7 @@ RadioGroup.propTypes = {
|
|
|
6882
6897
|
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}";
|
|
6883
6898
|
styleInject(css_248z$n);
|
|
6884
6899
|
|
|
6885
|
-
var _excluded$
|
|
6900
|
+
var _excluded$p = ["title", "buttons", "footer", "children", "className", "isLoading", "loadingIndicatorProps"];
|
|
6886
6901
|
function Section(_ref) {
|
|
6887
6902
|
var title = _ref.title,
|
|
6888
6903
|
buttons = _ref.buttons,
|
|
@@ -6892,7 +6907,7 @@ function Section(_ref) {
|
|
|
6892
6907
|
_ref$isLoading = _ref.isLoading,
|
|
6893
6908
|
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
6894
6909
|
loadingIndicatorProps = _ref.loadingIndicatorProps,
|
|
6895
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6910
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
6896
6911
|
|
|
6897
6912
|
return /*#__PURE__*/React__default.createElement("div", _extends({}, restProps, {
|
|
6898
6913
|
className: classNames("cweb-section", "flex justify-start flex-col items-start", "rounded-lg", "mx-0 my-4", "bg-white", "w-full", className)
|
|
@@ -6923,12 +6938,12 @@ function Section(_ref) {
|
|
|
6923
6938
|
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}";
|
|
6924
6939
|
styleInject(css_248z$o);
|
|
6925
6940
|
|
|
6926
|
-
var _excluded$
|
|
6941
|
+
var _excluded$q = ["children", "className", "onClick"];
|
|
6927
6942
|
var SectionItem = function SectionItem(props) {
|
|
6928
6943
|
var children = props.children,
|
|
6929
6944
|
className = props.className,
|
|
6930
6945
|
onClick = props.onClick,
|
|
6931
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
6946
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$q);
|
|
6932
6947
|
|
|
6933
6948
|
var classes = classNames("cweb-list-item", className, {
|
|
6934
6949
|
"cweb-list-item-clickable": !!onClick
|
|
@@ -6939,7 +6954,7 @@ var SectionItem = function SectionItem(props) {
|
|
|
6939
6954
|
}, rest), children);
|
|
6940
6955
|
};
|
|
6941
6956
|
|
|
6942
|
-
var _excluded$
|
|
6957
|
+
var _excluded$r = ["text", "icon", "className", "iconClass", "onClick"];
|
|
6943
6958
|
|
|
6944
6959
|
function SectionItemWithContent(props) {
|
|
6945
6960
|
var text = props.text,
|
|
@@ -6947,7 +6962,7 @@ function SectionItemWithContent(props) {
|
|
|
6947
6962
|
className = props.className,
|
|
6948
6963
|
iconClass = props.iconClass,
|
|
6949
6964
|
onClick = props.onClick,
|
|
6950
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
6965
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$r);
|
|
6951
6966
|
|
|
6952
6967
|
var mergedClasses = classNames("cweb-section-text-item", className);
|
|
6953
6968
|
var iconClasses = classNames("w-6 h-6 mr-4", iconClass);
|
|
@@ -7186,7 +7201,7 @@ Switcher.propTypes = {
|
|
|
7186
7201
|
|
|
7187
7202
|
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";
|
|
7188
7203
|
|
|
7189
|
-
var _excluded$
|
|
7204
|
+
var _excluded$s = ["src", "className", "children", "onClick", "showIconOnFailure"];
|
|
7190
7205
|
|
|
7191
7206
|
var Image$1 = function Image(_ref) {
|
|
7192
7207
|
var src = _ref.src,
|
|
@@ -7196,7 +7211,7 @@ var Image$1 = function Image(_ref) {
|
|
|
7196
7211
|
onClick = _ref.onClick,
|
|
7197
7212
|
_ref$showIconOnFailur = _ref.showIconOnFailure,
|
|
7198
7213
|
showIconOnFailure = _ref$showIconOnFailur === void 0 ? true : _ref$showIconOnFailur,
|
|
7199
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7214
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
7200
7215
|
|
|
7201
7216
|
var _useState = useState(false),
|
|
7202
7217
|
isError = _useState[0],
|
|
@@ -7732,7 +7747,7 @@ var TagGroup = function TagGroup(_ref) {
|
|
|
7732
7747
|
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}";
|
|
7733
7748
|
styleInject(css_248z$q);
|
|
7734
7749
|
|
|
7735
|
-
var _excluded$
|
|
7750
|
+
var _excluded$t = ["className", "value", "name", "placeholder", "maxLength", "rows", "resizable", "isDisabled", "icon", "onChange", "onBlur", "onFocus", "onKeyPress", "onKeyDown", "onCtrlEnter"];
|
|
7736
7751
|
var RESIZE_TYPES = {
|
|
7737
7752
|
NONE: "none",
|
|
7738
7753
|
BOTH: "both",
|
|
@@ -7776,7 +7791,7 @@ function Textarea(props) {
|
|
|
7776
7791
|
onKeyPress = props.onKeyPress,
|
|
7777
7792
|
_onKeyDown = props.onKeyDown,
|
|
7778
7793
|
onCtrlEnter = props.onCtrlEnter,
|
|
7779
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
|
7794
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$t);
|
|
7780
7795
|
|
|
7781
7796
|
var style;
|
|
7782
7797
|
|
|
@@ -7959,7 +7974,7 @@ var Timeline = function Timeline(props) {
|
|
|
7959
7974
|
}, props.loadMoreButtonProps)));
|
|
7960
7975
|
};
|
|
7961
7976
|
|
|
7962
|
-
var _excluded$
|
|
7977
|
+
var _excluded$u = ["titleProps", "title", "titleAccessory", "contentProps", "content", "defaultContent", "className", "buttons"];
|
|
7963
7978
|
function ViewItem(_ref) {
|
|
7964
7979
|
var titleProps = _ref.titleProps,
|
|
7965
7980
|
title = _ref.title,
|
|
@@ -7970,7 +7985,7 @@ function ViewItem(_ref) {
|
|
|
7970
7985
|
defaultContent = _ref$defaultContent === void 0 ? "-" : _ref$defaultContent,
|
|
7971
7986
|
className = _ref.className,
|
|
7972
7987
|
buttons = _ref.buttons,
|
|
7973
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7988
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
7974
7989
|
|
|
7975
7990
|
var titlePropsMerged = titleProps != null ? titleProps : {
|
|
7976
7991
|
text: title != null ? title : defaultContent
|
|
@@ -8073,7 +8088,7 @@ var isRequired = function isRequired(options) {
|
|
|
8073
8088
|
return !!(options && "required" in options);
|
|
8074
8089
|
};
|
|
8075
8090
|
|
|
8076
|
-
var _excluded$
|
|
8091
|
+
var _excluded$v = ["control", "name", "rules", "fieldErrors", "fieldRequired", "label", "info", "decoratorClassname"];
|
|
8077
8092
|
/**
|
|
8078
8093
|
* Input field that can be used in any react-hook-form context.
|
|
8079
8094
|
*/
|
|
@@ -8087,7 +8102,7 @@ var FormInput = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef)
|
|
|
8087
8102
|
label = _ref.label,
|
|
8088
8103
|
info = _ref.info,
|
|
8089
8104
|
decoratorClassname = _ref.decoratorClassname,
|
|
8090
|
-
fieldProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8105
|
+
fieldProps = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
8091
8106
|
|
|
8092
8107
|
return /*#__PURE__*/React__default.createElement(FormFieldLabeler, {
|
|
8093
8108
|
name: name,
|
|
@@ -8110,7 +8125,7 @@ var FormInput = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef)
|
|
|
8110
8125
|
}));
|
|
8111
8126
|
});
|
|
8112
8127
|
|
|
8113
|
-
var _excluded$
|
|
8128
|
+
var _excluded$w = ["control", "name", "rules", "fieldErrors", "fieldRequired", "label", "info", "decoratorClassname"];
|
|
8114
8129
|
/**
|
|
8115
8130
|
* Radio Group that can be used in any react-hook-form context.
|
|
8116
8131
|
*/
|
|
@@ -8124,7 +8139,7 @@ var FormRadioGroup = /*#__PURE__*/React__default.forwardRef(function (_ref, inne
|
|
|
8124
8139
|
label = _ref.label,
|
|
8125
8140
|
info = _ref.info,
|
|
8126
8141
|
decoratorClassname = _ref.decoratorClassname,
|
|
8127
|
-
fieldProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8142
|
+
fieldProps = _objectWithoutPropertiesLoose(_ref, _excluded$w);
|
|
8128
8143
|
|
|
8129
8144
|
return /*#__PURE__*/React__default.createElement(FormFieldLabeler, {
|
|
8130
8145
|
name: name,
|
|
@@ -8151,7 +8166,7 @@ var FormRadioGroup = /*#__PURE__*/React__default.forwardRef(function (_ref, inne
|
|
|
8151
8166
|
}));
|
|
8152
8167
|
});
|
|
8153
8168
|
|
|
8154
|
-
var _excluded$
|
|
8169
|
+
var _excluded$x = ["control", "name", "rules", "fieldErrors", "fieldRequired", "label", "info", "decoratorClassname"];
|
|
8155
8170
|
|
|
8156
8171
|
var FormSelect = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef) {
|
|
8157
8172
|
var control = _ref.control,
|
|
@@ -8162,7 +8177,7 @@ var FormSelect = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef
|
|
|
8162
8177
|
label = _ref.label,
|
|
8163
8178
|
info = _ref.info,
|
|
8164
8179
|
decoratorClassname = _ref.decoratorClassname,
|
|
8165
|
-
selectProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8180
|
+
selectProps = _objectWithoutPropertiesLoose(_ref, _excluded$x);
|
|
8166
8181
|
|
|
8167
8182
|
return /*#__PURE__*/React__default.createElement(FormFieldLabeler, {
|
|
8168
8183
|
name: name,
|
|
@@ -8184,7 +8199,7 @@ var FormSelect = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef
|
|
|
8184
8199
|
}));
|
|
8185
8200
|
});
|
|
8186
8201
|
|
|
8187
|
-
var _excluded$
|
|
8202
|
+
var _excluded$y = ["control", "name", "rules", "fieldErrors", "fieldRequired", "label", "info", "decoratorClassname"];
|
|
8188
8203
|
|
|
8189
8204
|
var FormImagePicker = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef) {
|
|
8190
8205
|
var control = _ref.control,
|
|
@@ -8195,7 +8210,7 @@ var FormImagePicker = /*#__PURE__*/React__default.forwardRef(function (_ref, inn
|
|
|
8195
8210
|
label = _ref.label,
|
|
8196
8211
|
info = _ref.info,
|
|
8197
8212
|
decoratorClassname = _ref.decoratorClassname,
|
|
8198
|
-
fieldProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8213
|
+
fieldProps = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
8199
8214
|
|
|
8200
8215
|
return /*#__PURE__*/React__default.createElement(FormFieldLabeler, {
|
|
8201
8216
|
name: name,
|
|
@@ -8234,7 +8249,7 @@ var FormImagePicker = /*#__PURE__*/React__default.forwardRef(function (_ref, inn
|
|
|
8234
8249
|
}));
|
|
8235
8250
|
});
|
|
8236
8251
|
|
|
8237
|
-
var _excluded$
|
|
8252
|
+
var _excluded$z = ["control", "name", "rules", "fieldErrors", "fieldRequired", "label", "info", "decoratorClassname"];
|
|
8238
8253
|
var FormFieldCheckbox = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef) {
|
|
8239
8254
|
var control = _ref.control,
|
|
8240
8255
|
name = _ref.name,
|
|
@@ -8244,7 +8259,7 @@ var FormFieldCheckbox = /*#__PURE__*/React__default.forwardRef(function (_ref, i
|
|
|
8244
8259
|
label = _ref.label,
|
|
8245
8260
|
info = _ref.info,
|
|
8246
8261
|
decoratorClassname = _ref.decoratorClassname,
|
|
8247
|
-
fieldProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8262
|
+
fieldProps = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
8248
8263
|
|
|
8249
8264
|
return /*#__PURE__*/React__default.createElement(FormFieldLabeler, {
|
|
8250
8265
|
name: name,
|
|
@@ -8581,5 +8596,5 @@ var Card = function Card(_ref) {
|
|
|
8581
8596
|
}), children);
|
|
8582
8597
|
};
|
|
8583
8598
|
|
|
8584
|
-
export { AccordionList, AddIcon, AlertsIcon, Avatar, Badge, BellIcon, Breadcrumbs, CRUDPage, Card, Carousel, CenteredHero, ChartIcon, ChartLineColoredIcon, ChatBoxIcon, CheckIcon, Checkbox, CheckboxList, CheckboxListModal, ChevronDoubleIcon, ChevronDownIcon, ChevronRightIcon, ConfirmationDialog, CrossIcon, Datepicker as DatePicker, DeleteIcon, Divider, DownArrowIcon, DragIcon, Dropdown, Dropzone, EditIcon, EmptyIcon, EmptyListMessage, EmptyStateDashboardIcon, ErrorBlock, ExclamationMarkIcon, EyeIcon, FlexColumn, FlexRow, Form, FullPageModal, GearColoredIcon, GearIcon, GenericForm, GroupColoredIcon, GroupIcon, HamburgerIcon, HeartIcon, INPUT_TYPES, Icon, ImageIcon, ImagePicker, InfoBlock, InfoField, InfoIcon, Input, LeftArrowIcon, LightBulbIcon, Line, LinkIcon, List, ListItem, LoadingIndicator, LockIcon, Menu, MessagesIcon, Modal, MouseIcon, MultiSelect, NavLayout, NavMenu, NotesIcon, NotificationBanner, Page, PageHeader, PaginationMenu, PinIcon, PreviewPhone, PrimaryButton, PrintIcon, Radio, RadioGroup, RadioGroupV2, RadioV2, RightArrowIcon, SearchCancelIcon, SearchIcon, SearchInput, SecondaryButton, Section, SectionItem, SectionItemWithContent, Select, SettingsMenuButton, SmallCircleIcon, SmallDiamondIcon, SmallSquareIcon, SpaceRocketIcon, Spinner, StarIcon, StatusColoredIcon, Steps, Switcher, TOASTER_TYPE_OPTIONS, TabLinks, Tabbar, Table, Tag, TagGroup, TertiaryButton, Text, Textarea as TextArea, TextEditor, TextEditorV2, TextLink, Timeline, Title, Toaster, ViewItem, WarningIcon, getDndListItemProps, toast };
|
|
8599
|
+
export { AccordionList, AddIcon, AlertsIcon, Avatar, Badge, BellIcon, Breadcrumbs, CRUDPage, Card, Carousel, CenteredHero, ChartIcon, ChartLineColoredIcon, ChatBoxIcon, CheckIcon, Checkbox, CheckboxList, CheckboxListModal, ChevronDoubleIcon, ChevronDownIcon, ChevronRightIcon, ConfirmationDialog, CrossIcon, Datepicker as DatePicker, DeleteIcon, Divider, DownArrowIcon, DragHandle, DragIcon, Dropdown, Dropzone, EditIcon, EmptyIcon, EmptyListMessage, EmptyStateDashboardIcon, ErrorBlock, ExclamationMarkIcon, EyeIcon, FlexColumn, FlexRow, Form, FullPageModal, GearColoredIcon, GearIcon, GenericForm, GroupColoredIcon, GroupIcon, HamburgerIcon, HeartIcon, INPUT_TYPES, Icon, ImageIcon, ImagePicker, InfoBlock, InfoField, InfoIcon, Input, LeftArrowIcon, LightBulbIcon, Line, LinkIcon, List, ListItem, LoadingIndicator, LockIcon, Menu, MessagesIcon, Modal, MouseIcon, MultiSelect, NavLayout, NavMenu, NotesIcon, NotificationBanner, Page, PageHeader, PaginationMenu, PinIcon, PreviewPhone, PrimaryButton, PrintIcon, Radio, RadioGroup, RadioGroupV2, RadioV2, RightArrowIcon, SearchCancelIcon, SearchIcon, SearchInput, SecondaryButton, Section, SectionItem, SectionItemWithContent, Select, SettingsMenuButton, SmallCircleIcon, SmallDiamondIcon, SmallSquareIcon, SpaceRocketIcon, Spinner, StarIcon, StatusColoredIcon, Steps, Switcher, TOASTER_TYPE_OPTIONS, TabLinks, Tabbar, Table, Tag, TagGroup, TertiaryButton, Text, Textarea as TextArea, TextEditor, TextEditorV2, TextLink, Timeline, Title, Toaster, ViewItem, WarningIcon, getDndListItemProps, toast };
|
|
8585
8600
|
//# sourceMappingURL=web-ui.esm.js.map
|