@luscii-healthtech/web-ui 0.1.26 → 0.1.29
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/ButtonV2/ButtonV2.d.ts +1 -1
- package/dist/web-ui.cjs.development.css +46 -46
- package/dist/web-ui.cjs.development.js +112 -103
- package/dist/web-ui.cjs.development.js.map +1 -1
- package/dist/web-ui.cjs.production.min.css +22 -22
- 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.css +77 -77
- package/dist/web-ui.esm.js +112 -103
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ButtonV2/ButtonV2.tsx +27 -19
- package/src/components/Icons/SearchIcon.tsx +4 -4
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ButtonProps } from "./ButtonProps.type";
|
|
3
|
-
export declare const ButtonV2: (
|
|
3
|
+
export declare const ButtonV2: ({ onClick, text, icon, isDisabled, isPending, className, ...otherAttributes }: ButtonProps) => JSX.Element;
|
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
.cweb-acknowledgement {
|
|
2
|
+
position: fixed;
|
|
3
|
+
left: 0;
|
|
4
|
+
right: 0;
|
|
5
|
+
z-index: 10000;
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
align-items: center;
|
|
10
|
+
top: 0;
|
|
11
|
+
margin: 0 auto;
|
|
12
|
+
opacity: 0;
|
|
13
|
+
width: 354px;
|
|
14
|
+
max-width: calc(100% - 6px);
|
|
15
|
+
box-shadow: 0 0 20px 0 rgba(106, 191, 165, 0.2);
|
|
16
|
+
padding: 16px;
|
|
17
|
+
border-radius: 8px;
|
|
18
|
+
transform: translateY(-100%);
|
|
19
|
+
transition: transform ease-out 400ms, opacity 1ms linear 500ms; }
|
|
20
|
+
.cweb-acknowledgement > .acknowledgement-icon-container {
|
|
21
|
+
width: 48px;
|
|
22
|
+
height: 48px;
|
|
23
|
+
margin-bottom: 12px; }
|
|
24
|
+
.cweb-acknowledgement > .acknowledgement-icon-container > .acknowledgement-icon {
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: 100%; }
|
|
27
|
+
.cweb-acknowledgement.type-success {
|
|
28
|
+
background: #e7f5ec; }
|
|
29
|
+
.cweb-acknowledgement.type-failure {
|
|
30
|
+
background: #fff1f1; }
|
|
31
|
+
.cweb-acknowledgement.is-visible {
|
|
32
|
+
opacity: 1;
|
|
33
|
+
transform: translateY(32px);
|
|
34
|
+
transition: transform ease-in 150ms; }
|
|
35
|
+
|
|
1
36
|
.cweb-avatar {
|
|
2
37
|
display: flex;
|
|
3
38
|
justify-content: flex-start;
|
|
@@ -83,41 +118,6 @@
|
|
|
83
118
|
.cweb-avatar.size-large.display-initials > .avatar-content-container {
|
|
84
119
|
border-width: 0.5px; } }
|
|
85
120
|
|
|
86
|
-
.cweb-acknowledgement {
|
|
87
|
-
position: fixed;
|
|
88
|
-
left: 0;
|
|
89
|
-
right: 0;
|
|
90
|
-
z-index: 10000;
|
|
91
|
-
display: flex;
|
|
92
|
-
justify-content: center;
|
|
93
|
-
flex-direction: column;
|
|
94
|
-
align-items: center;
|
|
95
|
-
top: 0;
|
|
96
|
-
margin: 0 auto;
|
|
97
|
-
opacity: 0;
|
|
98
|
-
width: 354px;
|
|
99
|
-
max-width: calc(100% - 6px);
|
|
100
|
-
box-shadow: 0 0 20px 0 rgba(106, 191, 165, 0.2);
|
|
101
|
-
padding: 16px;
|
|
102
|
-
border-radius: 8px;
|
|
103
|
-
transform: translateY(-100%);
|
|
104
|
-
transition: transform ease-out 400ms, opacity 1ms linear 500ms; }
|
|
105
|
-
.cweb-acknowledgement > .acknowledgement-icon-container {
|
|
106
|
-
width: 48px;
|
|
107
|
-
height: 48px;
|
|
108
|
-
margin-bottom: 12px; }
|
|
109
|
-
.cweb-acknowledgement > .acknowledgement-icon-container > .acknowledgement-icon {
|
|
110
|
-
width: 100%;
|
|
111
|
-
height: 100%; }
|
|
112
|
-
.cweb-acknowledgement.type-success {
|
|
113
|
-
background: #e7f5ec; }
|
|
114
|
-
.cweb-acknowledgement.type-failure {
|
|
115
|
-
background: #fff1f1; }
|
|
116
|
-
.cweb-acknowledgement.is-visible {
|
|
117
|
-
opacity: 1;
|
|
118
|
-
transform: translateY(32px);
|
|
119
|
-
transition: transform ease-in 150ms; }
|
|
120
|
-
|
|
121
121
|
.cweb-checkbox {
|
|
122
122
|
outline: none;
|
|
123
123
|
transition: all 0.3s ease; }
|
|
@@ -798,17 +798,6 @@
|
|
|
798
798
|
width: 32px;
|
|
799
799
|
height: 32px; }
|
|
800
800
|
|
|
801
|
-
.ql-editor {
|
|
802
|
-
resize: vertical;
|
|
803
|
-
min-height: 10rem; }
|
|
804
|
-
|
|
805
|
-
.ql-snow.ql-toolbar {
|
|
806
|
-
display: block;
|
|
807
|
-
background: #f1f5f9;
|
|
808
|
-
border-top-left-radius: 0.5em;
|
|
809
|
-
border-top-right-radius: 0.5em;
|
|
810
|
-
margin-top: 0.5em; }
|
|
811
|
-
|
|
812
801
|
.cweb-textarea {
|
|
813
802
|
border: 1px solid #cccccc;
|
|
814
803
|
border-radius: 4px;
|
|
@@ -840,6 +829,17 @@
|
|
|
840
829
|
border: 1px solid #ff6266;
|
|
841
830
|
color: #ff6266; }
|
|
842
831
|
|
|
832
|
+
.ql-editor {
|
|
833
|
+
resize: vertical;
|
|
834
|
+
min-height: 10rem; }
|
|
835
|
+
|
|
836
|
+
.ql-snow.ql-toolbar {
|
|
837
|
+
display: block;
|
|
838
|
+
background: #f1f5f9;
|
|
839
|
+
border-top-left-radius: 0.5em;
|
|
840
|
+
border-top-right-radius: 0.5em;
|
|
841
|
+
margin-top: 0.5em; }
|
|
842
|
+
|
|
843
843
|
.editor .rdw-editor {
|
|
844
844
|
overflow-y: auto; }
|
|
845
845
|
.editor .rdw-editor .rdw-link-modal {
|
|
@@ -238,6 +238,53 @@ var Badge = function Badge(props) {
|
|
|
238
238
|
}, props.badgeCount));
|
|
239
239
|
};
|
|
240
240
|
|
|
241
|
+
function _extends() {
|
|
242
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
243
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
244
|
+
var source = arguments[i];
|
|
245
|
+
|
|
246
|
+
for (var key in source) {
|
|
247
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
248
|
+
target[key] = source[key];
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
return target;
|
|
254
|
+
};
|
|
255
|
+
return _extends.apply(this, arguments);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
function _inheritsLoose(subClass, superClass) {
|
|
259
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
260
|
+
subClass.prototype.constructor = subClass;
|
|
261
|
+
|
|
262
|
+
_setPrototypeOf(subClass, superClass);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
function _setPrototypeOf(o, p) {
|
|
266
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
267
|
+
o.__proto__ = p;
|
|
268
|
+
return o;
|
|
269
|
+
};
|
|
270
|
+
return _setPrototypeOf(o, p);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
274
|
+
if (source == null) return {};
|
|
275
|
+
var target = {};
|
|
276
|
+
var sourceKeys = Object.keys(source);
|
|
277
|
+
var key, i;
|
|
278
|
+
|
|
279
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
280
|
+
key = sourceKeys[i];
|
|
281
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
282
|
+
target[key] = source[key];
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
return target;
|
|
286
|
+
}
|
|
287
|
+
|
|
241
288
|
var Spinner = function Spinner(props) {
|
|
242
289
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
243
290
|
className: "w-5 h-5 animate-spin " + props.className,
|
|
@@ -258,30 +305,39 @@ var Spinner = function Spinner(props) {
|
|
|
258
305
|
}));
|
|
259
306
|
};
|
|
260
307
|
|
|
261
|
-
var
|
|
262
|
-
|
|
308
|
+
var _excluded = ["onClick", "text", "icon", "isDisabled", "isPending", "className"];
|
|
309
|
+
var ButtonV2 = function ButtonV2(_ref) {
|
|
310
|
+
var onClick = _ref.onClick,
|
|
311
|
+
text = _ref.text,
|
|
312
|
+
icon = _ref.icon,
|
|
313
|
+
isDisabled = _ref.isDisabled,
|
|
314
|
+
isPending = _ref.isPending,
|
|
315
|
+
className = _ref.className,
|
|
316
|
+
otherAttributes = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
317
|
+
|
|
318
|
+
if (!text && !icon) {
|
|
263
319
|
console.error("A text or an icon is required to use this component, please make sure to pass at least one of them as a prop.");
|
|
264
320
|
return /*#__PURE__*/React__default.createElement("span", null, "Invalid props passed to this component.");
|
|
265
321
|
}
|
|
266
322
|
|
|
267
323
|
var buttonClassName = classNames(["h-11", "relative flex flex-row justify-center items-center", "border", "transition-outline transition-colors duration-300 ease-in-out", "rounded-full", "leading-none", "shadow-sm", "cursor-pointer", "focus:outline-primary"], {
|
|
268
|
-
"w-11": !
|
|
269
|
-
"px-4":
|
|
270
|
-
"py-2":
|
|
271
|
-
"py-3":
|
|
324
|
+
"w-11": !text && icon,
|
|
325
|
+
"px-4": text,
|
|
326
|
+
"py-2.5": text && icon,
|
|
327
|
+
"py-3": text && !icon
|
|
272
328
|
}, {
|
|
273
|
-
"opacity-50":
|
|
274
|
-
"pointer-events-none":
|
|
275
|
-
},
|
|
276
|
-
return /*#__PURE__*/React__default.createElement("button", Object.assign({},
|
|
329
|
+
"opacity-50": isDisabled,
|
|
330
|
+
"pointer-events-none": isDisabled || isPending
|
|
331
|
+
}, className);
|
|
332
|
+
return /*#__PURE__*/React__default.createElement("button", Object.assign({}, otherAttributes, {
|
|
277
333
|
className: buttonClassName,
|
|
278
334
|
type: "button",
|
|
279
|
-
onClick:
|
|
280
|
-
disabled:
|
|
281
|
-
"aria-disabled":
|
|
282
|
-
}),
|
|
283
|
-
className: "w-
|
|
284
|
-
}),
|
|
335
|
+
onClick: onClick,
|
|
336
|
+
disabled: isDisabled,
|
|
337
|
+
"aria-disabled": isDisabled
|
|
338
|
+
}), icon && /*#__PURE__*/React__default.createElement(icon, {
|
|
339
|
+
className: "w-6 h-6"
|
|
340
|
+
}), isPending && /*#__PURE__*/React__default.createElement("span", {
|
|
285
341
|
className: "opacity-100",
|
|
286
342
|
// IE11 center translate fix
|
|
287
343
|
style: {
|
|
@@ -292,12 +348,12 @@ var ButtonV2 = function ButtonV2(props) {
|
|
|
292
348
|
}
|
|
293
349
|
}, /*#__PURE__*/React__default.createElement(Spinner, {
|
|
294
350
|
className: "text-white"
|
|
295
|
-
})),
|
|
351
|
+
})), text && /*#__PURE__*/React__default.createElement("span", {
|
|
296
352
|
className: classNames("text-sm font-medium", {
|
|
297
|
-
invisible:
|
|
298
|
-
"ml-1":
|
|
353
|
+
invisible: isPending,
|
|
354
|
+
"ml-1": icon
|
|
299
355
|
})
|
|
300
|
-
},
|
|
356
|
+
}, text));
|
|
301
357
|
};
|
|
302
358
|
|
|
303
359
|
var PrimaryButton = function PrimaryButton(props) {
|
|
@@ -318,53 +374,6 @@ var TertiaryButton = function TertiaryButton(props) {
|
|
|
318
374
|
}));
|
|
319
375
|
};
|
|
320
376
|
|
|
321
|
-
function _extends() {
|
|
322
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
323
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
324
|
-
var source = arguments[i];
|
|
325
|
-
|
|
326
|
-
for (var key in source) {
|
|
327
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
328
|
-
target[key] = source[key];
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
return target;
|
|
334
|
-
};
|
|
335
|
-
return _extends.apply(this, arguments);
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
function _inheritsLoose(subClass, superClass) {
|
|
339
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
340
|
-
subClass.prototype.constructor = subClass;
|
|
341
|
-
|
|
342
|
-
_setPrototypeOf(subClass, superClass);
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
function _setPrototypeOf(o, p) {
|
|
346
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
347
|
-
o.__proto__ = p;
|
|
348
|
-
return o;
|
|
349
|
-
};
|
|
350
|
-
return _setPrototypeOf(o, p);
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
354
|
-
if (source == null) return {};
|
|
355
|
-
var target = {};
|
|
356
|
-
var sourceKeys = Object.keys(source);
|
|
357
|
-
var key, i;
|
|
358
|
-
|
|
359
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
360
|
-
key = sourceKeys[i];
|
|
361
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
362
|
-
target[key] = source[key];
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
return target;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
377
|
var AddIcon = function AddIcon(props) {
|
|
369
378
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
370
379
|
className: props.className,
|
|
@@ -561,7 +570,7 @@ var BUTTON_ROLES = {
|
|
|
561
570
|
ICON: "icon"
|
|
562
571
|
};
|
|
563
572
|
|
|
564
|
-
var _excluded = ["text", "role", "type", "title", "link", "isPending", "isDisabled", "onClick", "className", "iconName", "hasIcon", "dynamicIcon"];
|
|
573
|
+
var _excluded$1 = ["text", "role", "type", "title", "link", "isPending", "isDisabled", "onClick", "className", "iconName", "hasIcon", "dynamicIcon"];
|
|
565
574
|
|
|
566
575
|
function Button(props) {
|
|
567
576
|
var _props$text = props.text,
|
|
@@ -586,7 +595,7 @@ function Button(props) {
|
|
|
586
595
|
_props$hasIcon = props.hasIcon,
|
|
587
596
|
hasIconProps = _props$hasIcon === void 0 ? false : _props$hasIcon,
|
|
588
597
|
dynamicIcon = props.dynamicIcon,
|
|
589
|
-
otherAttributes = _objectWithoutPropertiesLoose(props, _excluded);
|
|
598
|
+
otherAttributes = _objectWithoutPropertiesLoose(props, _excluded$1);
|
|
590
599
|
|
|
591
600
|
var hasAddIcon = className.includes("add-button");
|
|
592
601
|
var hasEditIcon = className.includes("edit-button");
|
|
@@ -1034,13 +1043,13 @@ function Modal(_ref) {
|
|
|
1034
1043
|
}, children) : null);
|
|
1035
1044
|
}
|
|
1036
1045
|
|
|
1037
|
-
var _excluded$
|
|
1046
|
+
var _excluded$2 = ["buttons", "buttonsAlignment", "children"];
|
|
1038
1047
|
var ModalWithButtons = function ModalWithButtons(props) {
|
|
1039
1048
|
var buttons = props.buttons,
|
|
1040
1049
|
_props$buttonsAlignme = props.buttonsAlignment,
|
|
1041
1050
|
buttonsAlignment = _props$buttonsAlignme === void 0 ? "justify-between" : _props$buttonsAlignme,
|
|
1042
1051
|
children = props.children,
|
|
1043
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
1052
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2);
|
|
1044
1053
|
|
|
1045
1054
|
return /*#__PURE__*/React__default.createElement(Modal, Object.assign({}, rest, {
|
|
1046
1055
|
withPadding: false
|
|
@@ -1105,7 +1114,7 @@ ConfirmationDialog.defaultProps = {
|
|
|
1105
1114
|
showHeader: true
|
|
1106
1115
|
};
|
|
1107
1116
|
|
|
1108
|
-
var _excluded$
|
|
1117
|
+
var _excluded$3 = ["className", "hasCloseButton", "closeButtonText", "adjustDateOnChange", "showMonthDropdown", "showYearDropdown", "shouldCloseOnSelect", "allowSameDay", "minDate", "maxDate", "isDisabled", "selected"];
|
|
1109
1118
|
|
|
1110
1119
|
var Datepicker = /*#__PURE__*/function (_Component) {
|
|
1111
1120
|
_inheritsLoose(Datepicker, _Component);
|
|
@@ -1160,7 +1169,7 @@ var Datepicker = /*#__PURE__*/function (_Component) {
|
|
|
1160
1169
|
_this$props2$isDisabl = _this$props2.isDisabled,
|
|
1161
1170
|
isDisabled = _this$props2$isDisabl === void 0 ? false : _this$props2$isDisabl,
|
|
1162
1171
|
selected = _this$props2.selected,
|
|
1163
|
-
otherProps = _objectWithoutPropertiesLoose(_this$props2, _excluded$
|
|
1172
|
+
otherProps = _objectWithoutPropertiesLoose(_this$props2, _excluded$3);
|
|
1164
1173
|
|
|
1165
1174
|
var dateFormat = this.getDateFormat();
|
|
1166
1175
|
var pickerClassName = classNames("cweb-datepicker text-slate-700 text-sm", className);
|
|
@@ -1218,7 +1227,7 @@ Datepicker.propTypes = {
|
|
|
1218
1227
|
|
|
1219
1228
|
var doubleChevron = "<svg width=\"8\" height=\"14\" viewBox=\"0 0 8 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4 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\" fill=\"#9CA3AF\"/>\n</svg>";
|
|
1220
1229
|
|
|
1221
|
-
var _excluded$
|
|
1230
|
+
var _excluded$4 = ["placeholder", "className", "initialSelectedItemId", "onItemSelect", "items", "wider"];
|
|
1222
1231
|
var ITEM_QUERY_FIELD_NAMES = {
|
|
1223
1232
|
ID: "id",
|
|
1224
1233
|
HIGHLIGHT_INDEX: "highlightIndex"
|
|
@@ -1490,7 +1499,7 @@ var Dropdown = /*#__PURE__*/function (_PureComponent) {
|
|
|
1490
1499
|
_this$props$placehold = _this$props.placeholder,
|
|
1491
1500
|
placeholder = _this$props$placehold === void 0 ? "" : _this$props$placehold,
|
|
1492
1501
|
className = _this$props.className,
|
|
1493
|
-
otherProps = _objectWithoutPropertiesLoose(_this$props, _excluded$
|
|
1502
|
+
otherProps = _objectWithoutPropertiesLoose(_this$props, _excluded$4);
|
|
1494
1503
|
|
|
1495
1504
|
var _this$state2 = this.state,
|
|
1496
1505
|
selectedItem = _this$state2.selectedItem,
|
|
@@ -1610,7 +1619,7 @@ var EmptyListMessage = function EmptyListMessage(_ref) {
|
|
|
1610
1619
|
}));
|
|
1611
1620
|
};
|
|
1612
1621
|
|
|
1613
|
-
var _excluded$
|
|
1622
|
+
var _excluded$5 = ["message", "className"];
|
|
1614
1623
|
ErrorBlock.propTypes = {
|
|
1615
1624
|
message: PropTypes.string.isRequired,
|
|
1616
1625
|
className: PropTypes.string
|
|
@@ -1620,7 +1629,7 @@ function ErrorBlock(_ref) {
|
|
|
1620
1629
|
var message = _ref.message,
|
|
1621
1630
|
_ref$className = _ref.className,
|
|
1622
1631
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
1623
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1632
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
1624
1633
|
|
|
1625
1634
|
var containerClassName = classNames("cweb-error-block", className);
|
|
1626
1635
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -1720,7 +1729,7 @@ InfoField.defaultProps = {
|
|
|
1720
1729
|
|
|
1721
1730
|
var cross = "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M14.4194 5.66942C14.7681 6.0181 14.7681 6.58343 14.4194 6.93211L11.2627 10.0888L14.4194 13.2456C14.7681 13.5942 14.7681 14.1596 14.4194 14.5083C14.0707 14.8569 13.5054 14.8569 13.1567 14.5083L10 11.3515L6.84327 14.5083C6.49459 14.8569 5.92927 14.8569 5.58058 14.5083C5.2319 14.1596 5.2319 13.5942 5.58058 13.2456L8.73731 10.0888L5.58058 6.93211C5.2319 6.58343 5.2319 6.0181 5.58058 5.66942C5.92927 5.32073 6.49459 5.32073 6.84327 5.66942L10 8.82614L13.1567 5.66942C13.5054 5.32073 14.0707 5.32073 14.4194 5.66942Z\" fill=\"#D1D5DB\"/>\n</svg>";
|
|
1722
1731
|
|
|
1723
|
-
var _excluded$
|
|
1732
|
+
var _excluded$6 = ["withSuffix", "withPrefix", "className", "clearable", "type", "isDisabled", "icon", "setRef", "onChange", "name", "value"];
|
|
1724
1733
|
var INPUT_TYPES = {
|
|
1725
1734
|
EMAIL: "email",
|
|
1726
1735
|
NUMBER: "number",
|
|
@@ -1769,7 +1778,7 @@ function Input(_ref) {
|
|
|
1769
1778
|
onChange = _ref.onChange,
|
|
1770
1779
|
name = _ref.name,
|
|
1771
1780
|
value = _ref.value,
|
|
1772
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1781
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
1773
1782
|
|
|
1774
1783
|
var hasNoExtraContent = withPrefix === "" && withSuffix === "";
|
|
1775
1784
|
var style;
|
|
@@ -1872,12 +1881,12 @@ Line.propTypes = {
|
|
|
1872
1881
|
className: PropTypes.string
|
|
1873
1882
|
};
|
|
1874
1883
|
|
|
1875
|
-
var _excluded$
|
|
1884
|
+
var _excluded$7 = ["children", "className", "onClick"];
|
|
1876
1885
|
var ListItem = function ListItem(props) {
|
|
1877
1886
|
var children = props.children,
|
|
1878
1887
|
className = props.className,
|
|
1879
1888
|
onClick = props.onClick,
|
|
1880
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
1889
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$7);
|
|
1881
1890
|
|
|
1882
1891
|
var classes = classNames("cweb-list-item", className, {
|
|
1883
1892
|
"cweb-list-item-clickable": !!onClick
|
|
@@ -2148,7 +2157,7 @@ var spinner = "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://ww
|
|
|
2148
2157
|
|
|
2149
2158
|
var graySpinner = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" style=\"margin: auto; background: none; display: block; shape-rendering: auto;\" width=\"200px\" height=\"200px\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"xMidYMid\">\n<circle cx=\"50\" cy=\"50\" fill=\"none\" stroke=\"#cbd5e1\" stroke-width=\"16\" r=\"36\" stroke-dasharray=\"169.64600329384882 58.548667764616276\">\n <animateTransform attributeName=\"transform\" type=\"rotate\" repeatCount=\"indefinite\" dur=\"1.1111111111111112s\" values=\"0 50 50;360 50 50\" keyTimes=\"0;1\"></animateTransform>\n</circle>\n<!-- [ldio] generated by https://loading.io/ --></svg>";
|
|
2150
2159
|
|
|
2151
|
-
var _excluded$
|
|
2160
|
+
var _excluded$8 = ["asModal", "asSpinner", "className", "spinnerColor"];
|
|
2152
2161
|
function LoadingIndicator(_ref) {
|
|
2153
2162
|
var _ref$asModal = _ref.asModal,
|
|
2154
2163
|
asModal = _ref$asModal === void 0 ? false : _ref$asModal,
|
|
@@ -2158,7 +2167,7 @@ function LoadingIndicator(_ref) {
|
|
|
2158
2167
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
2159
2168
|
_ref$spinnerColor = _ref.spinnerColor,
|
|
2160
2169
|
spinnerColor = _ref$spinnerColor === void 0 ? "blue" : _ref$spinnerColor,
|
|
2161
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2170
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
2162
2171
|
|
|
2163
2172
|
var spinnerToRender = spinnerColor === "blue" ? spinner : graySpinner;
|
|
2164
2173
|
var containerClassName = classNames("cweb-loading", className, {
|
|
@@ -2278,7 +2287,7 @@ function ListTableHeader(_ref) {
|
|
|
2278
2287
|
})));
|
|
2279
2288
|
}
|
|
2280
2289
|
|
|
2281
|
-
var _excluded$
|
|
2290
|
+
var _excluded$9 = ["items", "configuration", "pageCount", "currentPage", "onPageClick", "onRowClick", "isLoading", "showHeader", "className", "localization"];
|
|
2282
2291
|
function ListTable(_ref) {
|
|
2283
2292
|
var _ref$items = _ref.items,
|
|
2284
2293
|
items = _ref$items === void 0 ? [] : _ref$items,
|
|
@@ -2295,7 +2304,7 @@ function ListTable(_ref) {
|
|
|
2295
2304
|
showHeader = _ref$showHeader === void 0 ? true : _ref$showHeader,
|
|
2296
2305
|
className = _ref.className,
|
|
2297
2306
|
localization = _ref.localization,
|
|
2298
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2307
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
2299
2308
|
|
|
2300
2309
|
// For not displaying empty view at creation
|
|
2301
2310
|
var _useState = React.useState(true),
|
|
@@ -2427,7 +2436,7 @@ Menu.propTypes = {
|
|
|
2427
2436
|
children: PropTypes.node.isRequired
|
|
2428
2437
|
};
|
|
2429
2438
|
|
|
2430
|
-
var _excluded$
|
|
2439
|
+
var _excluded$a = ["text", "type", "level", "className", "containsDangerousHtml"];
|
|
2431
2440
|
var TEXT_TYPE_OPTIONS = {
|
|
2432
2441
|
DEFAULT: "default",
|
|
2433
2442
|
STRONG: "strong",
|
|
@@ -2464,7 +2473,7 @@ function LegacyText(_ref) {
|
|
|
2464
2473
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
2465
2474
|
_ref$containsDangerou = _ref.containsDangerousHtml,
|
|
2466
2475
|
containsDangerousHtml = _ref$containsDangerou === void 0 ? false : _ref$containsDangerou,
|
|
2467
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2476
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
2468
2477
|
|
|
2469
2478
|
var containerClassName = classNames("cweb-text", className, {
|
|
2470
2479
|
"type-default": type === TEXT_TYPE_OPTIONS.DEFAULT,
|
|
@@ -2906,7 +2915,7 @@ Page.propTypes = {
|
|
|
2906
2915
|
navLayoutProps: PropTypes.object
|
|
2907
2916
|
};
|
|
2908
2917
|
|
|
2909
|
-
var _excluded$
|
|
2918
|
+
var _excluded$b = ["text", "type", "className"];
|
|
2910
2919
|
var TITLE_TYPE_OPTIONS = {
|
|
2911
2920
|
DEFAULT: "default",
|
|
2912
2921
|
BIG: "big",
|
|
@@ -2925,7 +2934,7 @@ function LegacyTitle(_ref) {
|
|
|
2925
2934
|
type = _ref.type,
|
|
2926
2935
|
_ref$className = _ref.className,
|
|
2927
2936
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
2928
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2937
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
2929
2938
|
|
|
2930
2939
|
var ContainerElement;
|
|
2931
2940
|
var containerClassName = classNames("cweb-title", className, {
|
|
@@ -3297,7 +3306,7 @@ Radio.propTypes = {
|
|
|
3297
3306
|
onChange: PropTypes.func
|
|
3298
3307
|
};
|
|
3299
3308
|
|
|
3300
|
-
var _excluded$
|
|
3309
|
+
var _excluded$c = ["className", "radioClassName", "name", "selectedOption", "isVertical", "radioOptions", "onChange", "error", "isDisabled"];
|
|
3301
3310
|
|
|
3302
3311
|
function RadioGroup(_ref) {
|
|
3303
3312
|
var className = _ref.className,
|
|
@@ -3309,7 +3318,7 @@ function RadioGroup(_ref) {
|
|
|
3309
3318
|
onChange = _ref.onChange,
|
|
3310
3319
|
error = _ref.error,
|
|
3311
3320
|
isDisabled = _ref.isDisabled,
|
|
3312
|
-
otherOptions = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3321
|
+
otherOptions = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
3313
3322
|
|
|
3314
3323
|
var containerClassName = classNames("cweb-radio-group", {
|
|
3315
3324
|
vertical: isVertical
|
|
@@ -3352,7 +3361,7 @@ RadioGroup.propTypes = {
|
|
|
3352
3361
|
onChange: PropTypes.func
|
|
3353
3362
|
};
|
|
3354
3363
|
|
|
3355
|
-
var _excluded$
|
|
3364
|
+
var _excluded$d = ["title", "buttons", "children", "className", "isLoading", "loadingIndicatorProps"];
|
|
3356
3365
|
function Section(_ref) {
|
|
3357
3366
|
var title = _ref.title,
|
|
3358
3367
|
buttons = _ref.buttons,
|
|
@@ -3361,7 +3370,7 @@ function Section(_ref) {
|
|
|
3361
3370
|
_ref$isLoading = _ref.isLoading,
|
|
3362
3371
|
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
3363
3372
|
loadingIndicatorProps = _ref.loadingIndicatorProps,
|
|
3364
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3373
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
3365
3374
|
|
|
3366
3375
|
return /*#__PURE__*/React__default.createElement("div", Object.assign({}, restProps, {
|
|
3367
3376
|
className: classNames("cweb-section", "flex justify-start flex-col items-start", "rounded-lg", "mx-0 my-4", "bg-white", "w-full", className)
|
|
@@ -3786,7 +3795,7 @@ var Tag = function Tag(_ref) {
|
|
|
3786
3795
|
}));
|
|
3787
3796
|
};
|
|
3788
3797
|
|
|
3789
|
-
var _excluded$
|
|
3798
|
+
var _excluded$e = ["className", "value", "name", "placeholder", "maxLength", "rows", "resizable", "isDisabled", "icon", "onChange", "onBlur", "onFocus", "onKeyPress", "onKeyDown", "onCtrlEnter"];
|
|
3790
3799
|
var RESIZE_TYPES = {
|
|
3791
3800
|
NONE: "none",
|
|
3792
3801
|
BOTH: "both",
|
|
@@ -3830,7 +3839,7 @@ function Textarea(props) {
|
|
|
3830
3839
|
onKeyPress = props.onKeyPress,
|
|
3831
3840
|
_onKeyDown = props.onKeyDown,
|
|
3832
3841
|
onCtrlEnter = props.onCtrlEnter,
|
|
3833
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
|
3842
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$e);
|
|
3834
3843
|
|
|
3835
3844
|
var style;
|
|
3836
3845
|
|
|
@@ -3972,7 +3981,7 @@ var TextEditorV2 = function TextEditorV2(_ref) {
|
|
|
3972
3981
|
}));
|
|
3973
3982
|
};
|
|
3974
3983
|
|
|
3975
|
-
var _excluded$
|
|
3984
|
+
var _excluded$f = ["text", "icon", "className", "iconClass", "onClick"];
|
|
3976
3985
|
|
|
3977
3986
|
function TextListItem(props) {
|
|
3978
3987
|
var text = props.text,
|
|
@@ -3980,7 +3989,7 @@ function TextListItem(props) {
|
|
|
3980
3989
|
className = props.className,
|
|
3981
3990
|
iconClass = props.iconClass,
|
|
3982
3991
|
onClick = props.onClick,
|
|
3983
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
3992
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$f);
|
|
3984
3993
|
|
|
3985
3994
|
var mergedClasses = classNames("cweb-text-list-item", className);
|
|
3986
3995
|
var iconClasses = classNames("cweb-text-list-item-icon", iconClass);
|
|
@@ -4004,7 +4013,7 @@ TextListItem.propTypes = {
|
|
|
4004
4013
|
onClick: PropTypes.func
|
|
4005
4014
|
};
|
|
4006
4015
|
|
|
4007
|
-
var _excluded$
|
|
4016
|
+
var _excluded$g = ["titleProps", "title", "titleAccessory", "contentProps", "content", "defaultContent", "className", "buttons"];
|
|
4008
4017
|
function ViewItem(_ref) {
|
|
4009
4018
|
var titleProps = _ref.titleProps,
|
|
4010
4019
|
title = _ref.title,
|
|
@@ -4015,7 +4024,7 @@ function ViewItem(_ref) {
|
|
|
4015
4024
|
defaultContent = _ref$defaultContent === void 0 ? "-" : _ref$defaultContent,
|
|
4016
4025
|
className = _ref.className,
|
|
4017
4026
|
buttons = _ref.buttons,
|
|
4018
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4027
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
4019
4028
|
|
|
4020
4029
|
var titlePropsMerged = titleProps != null ? titleProps : {
|
|
4021
4030
|
text: title != null ? title : defaultContent
|
|
@@ -4845,13 +4854,13 @@ var SearchIcon$1 = function SearchIcon(props) {
|
|
|
4845
4854
|
className: props.className,
|
|
4846
4855
|
onClick: props.onClick,
|
|
4847
4856
|
role: props.onClick ? "button" : undefined,
|
|
4848
|
-
width: "
|
|
4849
|
-
height: "
|
|
4850
|
-
viewBox: "0 0
|
|
4857
|
+
width: "24",
|
|
4858
|
+
height: "24",
|
|
4859
|
+
viewBox: "0 0 24 24",
|
|
4851
4860
|
fill: "none",
|
|
4852
4861
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4853
4862
|
}, /*#__PURE__*/React__default.createElement("path", {
|
|
4854
|
-
d: "
|
|
4863
|
+
d: "M15.5 13.9996H14.71L14.43 13.7296C15.63 12.3296 16.25 10.4196 15.91 8.38965C15.44 5.60965 13.12 3.38965 10.32 3.04965C6.09001 2.52965 2.53002 6.08965 3.05002 10.3196C3.39002 13.1196 5.61002 15.4396 8.39002 15.9096C10.42 16.2496 12.33 15.6296 13.73 14.4296L14 14.7096V15.4996L18.25 19.7496C18.66 20.1596 19.33 20.1596 19.74 19.7496C20.15 19.3396 20.15 18.6696 19.74 18.2596L15.5 13.9996ZM9.50002 13.9996C7.01002 13.9996 5.00002 11.9896 5.00002 9.49965C5.00002 7.00965 7.01002 4.99965 9.50002 4.99965C11.99 4.99965 14 7.00965 14 9.49965C14 11.9896 11.99 13.9996 9.50002 13.9996Z",
|
|
4855
4864
|
fill: "currentColor"
|
|
4856
4865
|
}));
|
|
4857
4866
|
};
|