@luscii-healthtech/web-ui 0.5.2 → 0.6.2
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/ButtonProps.type.d.ts +3 -0
- package/dist/components/ButtonV2/ButtonV2.d.ts +1 -1
- package/dist/components/List/List.d.ts +7 -0
- package/dist/components/List/ListItem.d.ts +13 -0
- package/dist/index.d.ts +1 -0
- package/dist/web-ui-tailwind.css +14 -0
- package/dist/web-ui.cjs.development.js +83 -28
- 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 +83 -29
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +4 -2
- package/src/components/ButtonV2/ButtonProps.type.ts +5 -1
- package/src/components/ButtonV2/ButtonV2.tsx +11 -5
- package/src/components/ButtonV2/PrimaryButton.tsx +1 -0
- package/src/components/ButtonV2/SecondaryButton.tsx +2 -0
- package/src/components/ButtonV2/TertiaryButton.tsx +2 -0
- package/src/components/List/List.tsx +20 -0
- package/src/components/List/ListItem.tsx +45 -0
- package/src/components/Table/Table.tsx +12 -10
- package/src/index.tsx +1 -0
package/dist/web-ui.esm.js
CHANGED
|
@@ -350,10 +350,12 @@ var Spinner = function Spinner(props) {
|
|
|
350
350
|
}));
|
|
351
351
|
};
|
|
352
352
|
|
|
353
|
-
var _excluded = ["onClick", "text", "icon", "isDisabled", "isPending", "className"];
|
|
353
|
+
var _excluded = ["onClick", "text", "textColor", "textHoverColor", "icon", "isDisabled", "isPending", "className"];
|
|
354
354
|
var ButtonV2 = function ButtonV2(_ref) {
|
|
355
355
|
var onClick = _ref.onClick,
|
|
356
356
|
text = _ref.text,
|
|
357
|
+
textColor = _ref.textColor,
|
|
358
|
+
textHoverColor = _ref.textHoverColor,
|
|
357
359
|
icon = _ref.icon,
|
|
358
360
|
isDisabled = _ref.isDisabled,
|
|
359
361
|
isPending = _ref.isPending,
|
|
@@ -365,7 +367,7 @@ var ButtonV2 = function ButtonV2(_ref) {
|
|
|
365
367
|
return /*#__PURE__*/React__default.createElement("span", null, "Invalid props passed to this component.");
|
|
366
368
|
}
|
|
367
369
|
|
|
368
|
-
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"], {
|
|
370
|
+
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", "group"], {
|
|
369
371
|
"w-11": !text && icon,
|
|
370
372
|
"pl-4 pr-6": text && icon,
|
|
371
373
|
"px-4": text && !icon
|
|
@@ -392,29 +394,38 @@ var ButtonV2 = function ButtonV2(_ref) {
|
|
|
392
394
|
}
|
|
393
395
|
}, /*#__PURE__*/React__default.createElement(Spinner, {
|
|
394
396
|
className: "text-white"
|
|
395
|
-
})), text && /*#__PURE__*/React__default.createElement(
|
|
396
|
-
className: classNames(
|
|
397
|
+
})), text && /*#__PURE__*/React__default.createElement(Text, {
|
|
398
|
+
className: classNames({
|
|
397
399
|
invisible: isPending,
|
|
398
400
|
"ml-1": icon
|
|
399
|
-
})
|
|
400
|
-
|
|
401
|
+
}),
|
|
402
|
+
text: text,
|
|
403
|
+
color: textColor,
|
|
404
|
+
hoverColor: textHoverColor,
|
|
405
|
+
hoverInGroup: true
|
|
406
|
+
}));
|
|
401
407
|
};
|
|
402
408
|
|
|
403
409
|
var PrimaryButton = function PrimaryButton(props) {
|
|
404
410
|
return /*#__PURE__*/React__default.createElement(ButtonV2, Object.assign({}, props, {
|
|
405
|
-
className: classNames(["text-white", "bg-blue-800", "border-primary-transparent", "hover:bg-blue-900"], props.className)
|
|
411
|
+
className: classNames(["text-white", "bg-blue-800", "border-primary-transparent", "hover:bg-blue-900"], props.className),
|
|
412
|
+
textColor: "white"
|
|
406
413
|
}));
|
|
407
414
|
};
|
|
408
415
|
|
|
409
416
|
var SecondaryButton = function SecondaryButton(props) {
|
|
410
417
|
return /*#__PURE__*/React__default.createElement(ButtonV2, Object.assign({}, props, {
|
|
411
|
-
className: classNames(["text-blue-800", "bg-white", "border-slate-300", "hover:text-blue-900", "hover:border-slate-400", "focus:border-blue-800"], props.className)
|
|
418
|
+
className: classNames(["text-blue-800", "bg-white", "border-slate-300", "hover:text-blue-900", "hover:border-slate-400", "focus:border-blue-800"], props.className),
|
|
419
|
+
textColor: "blue-800",
|
|
420
|
+
textHoverColor: "blue-900"
|
|
412
421
|
}));
|
|
413
422
|
};
|
|
414
423
|
|
|
415
424
|
var TertiaryButton = function TertiaryButton(props) {
|
|
416
425
|
return /*#__PURE__*/React__default.createElement(ButtonV2, Object.assign({}, props, {
|
|
417
|
-
className: classNames(["text-blue-800", "bg-transparent", "border-transparent", "hover:text-blue-900", "focus:border-blue-800", "shadow-none"], props.className)
|
|
426
|
+
className: classNames(["text-blue-800", "bg-transparent", "border-transparent", "hover:text-blue-900", "focus:border-blue-800", "shadow-none"], props.className),
|
|
427
|
+
textColor: "blue-800",
|
|
428
|
+
textHoverColor: "blue-900"
|
|
418
429
|
}));
|
|
419
430
|
};
|
|
420
431
|
|
|
@@ -2449,12 +2460,12 @@ function Table(_ref) {
|
|
|
2449
2460
|
var showEmptyView = !isPristine && !isLoading && !(items && items.length > 0);
|
|
2450
2461
|
return /*#__PURE__*/React__default.createElement("table", Object.assign({
|
|
2451
2462
|
className: classNames("w-full rounded-lg bg-white border-collapse table-auto", className)
|
|
2452
|
-
}, otherAttributes), showHeader
|
|
2463
|
+
}, otherAttributes), showHeader ? /*#__PURE__*/React__default.createElement(TableHeader, {
|
|
2453
2464
|
className: "border-b border-slate-100",
|
|
2454
2465
|
fieldConfigurations: fieldConfigurations
|
|
2455
|
-
}), /*#__PURE__*/React__default.createElement(TableBody, {
|
|
2466
|
+
}) : null, /*#__PURE__*/React__default.createElement(TableBody, {
|
|
2456
2467
|
className: classNames({
|
|
2457
|
-
"border-b border-slate-100": !showEmptyView && paginationMenuProps && paginationMenuProps.pageCount >
|
|
2468
|
+
"border-b border-slate-100": !showEmptyView && paginationMenuProps && paginationMenuProps.currentPageNumber > 0 && paginationMenuProps.pageCount > 0
|
|
2458
2469
|
}),
|
|
2459
2470
|
items: items,
|
|
2460
2471
|
fieldConfigurations: fieldConfigurations,
|
|
@@ -2463,10 +2474,10 @@ function Table(_ref) {
|
|
|
2463
2474
|
isLoading: isLoading,
|
|
2464
2475
|
showEmptyView: showEmptyView,
|
|
2465
2476
|
onRowClick: onRowClick
|
|
2466
|
-
}), !showEmptyView && paginationMenuProps && paginationMenuProps.
|
|
2477
|
+
}), !showEmptyView && paginationMenuProps && paginationMenuProps.currentPageNumber > 0 && paginationMenuProps.pageCount > 0 ? /*#__PURE__*/React__default.createElement(TableFooter, {
|
|
2467
2478
|
colSpan: fieldConfigurations.length,
|
|
2468
2479
|
paginationMenuProps: paginationMenuProps
|
|
2469
|
-
}));
|
|
2480
|
+
}) : null);
|
|
2470
2481
|
}
|
|
2471
2482
|
|
|
2472
2483
|
var css_248z$d = ".cweb-menu > .cweb-menu-content {\n min-width: 300px;\n border-radius: 4px;\n background-color: #ffffff;\n}\n\n.cweb-menu > .cweb-menu-button {\n display: flex;\n justify-content: flex-start;\n flex-direction: row;\n align-items: flex-start;\n width: 44px;\n height: 44px;\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 width%3D%2244%22 height%3D%2244%22 rx%3D%2222%22 fill%3D%22%23E5F5FC%22%2F%3E%3Ccircle cx%3D%2222%22 cy%3D%2215%22 r%3D%223%22 fill%3D%22%23009FE3%22%2F%3E%3Ccircle cx%3D%2222%22 cy%3D%2222%22 r%3D%223%22 fill%3D%22%23009FE3%22%2F%3E%3Ccircle cx%3D%2222%22 cy%3D%2230%22 r%3D%223%22 fill%3D%22%23009FE3%22%2F%3E%3C%2Fsvg%3E\") no-repeat center;\n transition: 0.2s ease;\n background-size: contain;\n}\n\n.cweb-menu > .cweb-menu-button:hover {\n width: 44px;\n height: 44px;\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 width%3D%2244%22 height%3D%2244%22 rx%3D%2222%22 fill%3D%22%23B3E3F7%22%2F%3E%3Ccircle cx%3D%2222%22 cy%3D%2215%22 r%3D%223%22 fill%3D%22%23009FE3%22%2F%3E%3Ccircle cx%3D%2222%22 cy%3D%2222%22 r%3D%223%22 fill%3D%22%23009FE3%22%2F%3E%3Ccircle cx%3D%2222%22 cy%3D%2230%22 r%3D%223%22 fill%3D%22%23009FE3%22%2F%3E%3C%2Fsvg%3E\") no-repeat center;\n transition: 0.2s ease;\n}\n";
|
|
@@ -2552,6 +2563,49 @@ Menu.propTypes = {
|
|
|
2552
2563
|
children: PropTypes.node.isRequired
|
|
2553
2564
|
};
|
|
2554
2565
|
|
|
2566
|
+
var _excluded$9 = ["icon", "subTitle", "title", "accessories", "tooltipId"];
|
|
2567
|
+
var ListItem = function ListItem(_ref) {
|
|
2568
|
+
var icon = _ref.icon,
|
|
2569
|
+
subTitle = _ref.subTitle,
|
|
2570
|
+
title = _ref.title,
|
|
2571
|
+
accessories = _ref.accessories,
|
|
2572
|
+
tooltipId = _ref.tooltipId,
|
|
2573
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
2574
|
+
|
|
2575
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
2576
|
+
className: classNames("flex flex-row items-center space-x-4", "p-4 border-b last:border-b-0 border-slate-200", {
|
|
2577
|
+
"cursor-pointer": restProps.handleItemClick
|
|
2578
|
+
}),
|
|
2579
|
+
onClick: restProps.handleItemClick,
|
|
2580
|
+
"data-tip": restProps.itemId,
|
|
2581
|
+
"data-for": tooltipId
|
|
2582
|
+
}, icon && /*#__PURE__*/React__default.createElement(icon, {
|
|
2583
|
+
className: "w-6 h-6"
|
|
2584
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
2585
|
+
className: classNames({
|
|
2586
|
+
"pl-10": icon === null
|
|
2587
|
+
})
|
|
2588
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
2589
|
+
text: title
|
|
2590
|
+
}), subTitle && /*#__PURE__*/React__default.createElement(Text, {
|
|
2591
|
+
text: subTitle,
|
|
2592
|
+
type: "sm"
|
|
2593
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
2594
|
+
className: "flex-grow"
|
|
2595
|
+
}), accessories);
|
|
2596
|
+
};
|
|
2597
|
+
|
|
2598
|
+
var List = function List(_ref) {
|
|
2599
|
+
var items = _ref.items;
|
|
2600
|
+
return /*#__PURE__*/React__default.createElement("ul", {
|
|
2601
|
+
className: classNames("list-none")
|
|
2602
|
+
}, items.map(function (item) {
|
|
2603
|
+
return /*#__PURE__*/React__default.createElement(ListItem, Object.assign({}, item, {
|
|
2604
|
+
key: item.itemId
|
|
2605
|
+
}));
|
|
2606
|
+
}));
|
|
2607
|
+
};
|
|
2608
|
+
|
|
2555
2609
|
var TEXT_TYPE_OPTIONS = {
|
|
2556
2610
|
DEFAULT: "default",
|
|
2557
2611
|
STRONG: "strong",
|
|
@@ -3000,7 +3054,7 @@ Page.propTypes = {
|
|
|
3000
3054
|
navLayoutProps: PropTypes.object
|
|
3001
3055
|
};
|
|
3002
3056
|
|
|
3003
|
-
var _excluded$
|
|
3057
|
+
var _excluded$a = ["text", "type", "className"];
|
|
3004
3058
|
var TITLE_TYPE_OPTIONS = {
|
|
3005
3059
|
DEFAULT: "default",
|
|
3006
3060
|
BIG: "big",
|
|
@@ -3019,7 +3073,7 @@ function LegacyTitle(_ref) {
|
|
|
3019
3073
|
type = _ref.type,
|
|
3020
3074
|
_ref$className = _ref.className,
|
|
3021
3075
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
3022
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3076
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
3023
3077
|
|
|
3024
3078
|
var ContainerElement;
|
|
3025
3079
|
var containerClassName = classNames("cweb-title", className, {
|
|
@@ -3400,7 +3454,7 @@ Radio.propTypes = {
|
|
|
3400
3454
|
var css_248z$i = ".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}\n";
|
|
3401
3455
|
styleInject(css_248z$i);
|
|
3402
3456
|
|
|
3403
|
-
var _excluded$
|
|
3457
|
+
var _excluded$b = ["className", "radioClassName", "name", "selectedOption", "isVertical", "radioOptions", "onChange", "error", "isDisabled"];
|
|
3404
3458
|
|
|
3405
3459
|
function RadioGroup(_ref) {
|
|
3406
3460
|
var className = _ref.className,
|
|
@@ -3412,7 +3466,7 @@ function RadioGroup(_ref) {
|
|
|
3412
3466
|
onChange = _ref.onChange,
|
|
3413
3467
|
error = _ref.error,
|
|
3414
3468
|
isDisabled = _ref.isDisabled,
|
|
3415
|
-
otherOptions = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3469
|
+
otherOptions = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
3416
3470
|
|
|
3417
3471
|
var containerClassName = classNames("cweb-radio-group", {
|
|
3418
3472
|
vertical: isVertical
|
|
@@ -3458,7 +3512,7 @@ RadioGroup.propTypes = {
|
|
|
3458
3512
|
var css_248z$j = ".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}\n";
|
|
3459
3513
|
styleInject(css_248z$j);
|
|
3460
3514
|
|
|
3461
|
-
var _excluded$
|
|
3515
|
+
var _excluded$c = ["title", "buttons", "children", "className", "isLoading", "loadingIndicatorProps"];
|
|
3462
3516
|
function Section(_ref) {
|
|
3463
3517
|
var title = _ref.title,
|
|
3464
3518
|
buttons = _ref.buttons,
|
|
@@ -3467,7 +3521,7 @@ function Section(_ref) {
|
|
|
3467
3521
|
_ref$isLoading = _ref.isLoading,
|
|
3468
3522
|
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
3469
3523
|
loadingIndicatorProps = _ref.loadingIndicatorProps,
|
|
3470
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3524
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
3471
3525
|
|
|
3472
3526
|
return /*#__PURE__*/React__default.createElement("div", Object.assign({}, restProps, {
|
|
3473
3527
|
className: classNames("cweb-section", "flex justify-start flex-col items-start", "rounded-lg", "mx-0 my-4", "bg-white", "w-full", className)
|
|
@@ -3496,12 +3550,12 @@ function Section(_ref) {
|
|
|
3496
3550
|
var css_248z$k = ".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}\n";
|
|
3497
3551
|
styleInject(css_248z$k);
|
|
3498
3552
|
|
|
3499
|
-
var _excluded$
|
|
3553
|
+
var _excluded$d = ["children", "className", "onClick"];
|
|
3500
3554
|
var SectionItem = function SectionItem(props) {
|
|
3501
3555
|
var children = props.children,
|
|
3502
3556
|
className = props.className,
|
|
3503
3557
|
onClick = props.onClick,
|
|
3504
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
3558
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$d);
|
|
3505
3559
|
|
|
3506
3560
|
var classes = classNames("cweb-list-item", className, {
|
|
3507
3561
|
"cweb-list-item-clickable": !!onClick
|
|
@@ -3512,7 +3566,7 @@ var SectionItem = function SectionItem(props) {
|
|
|
3512
3566
|
}, rest), children);
|
|
3513
3567
|
};
|
|
3514
3568
|
|
|
3515
|
-
var _excluded$
|
|
3569
|
+
var _excluded$e = ["text", "icon", "className", "iconClass", "onClick"];
|
|
3516
3570
|
|
|
3517
3571
|
function SectionItemWithContent(props) {
|
|
3518
3572
|
var text = props.text,
|
|
@@ -3520,7 +3574,7 @@ function SectionItemWithContent(props) {
|
|
|
3520
3574
|
className = props.className,
|
|
3521
3575
|
iconClass = props.iconClass,
|
|
3522
3576
|
onClick = props.onClick,
|
|
3523
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
3577
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$e);
|
|
3524
3578
|
|
|
3525
3579
|
var mergedClasses = classNames("cweb-section-text-item", className);
|
|
3526
3580
|
var iconClasses = classNames("w-6 h-6 mr-4", iconClass);
|
|
@@ -3900,7 +3954,7 @@ var TagGroup = function TagGroup(_ref) {
|
|
|
3900
3954
|
var css_248z$m = ".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}\n";
|
|
3901
3955
|
styleInject(css_248z$m);
|
|
3902
3956
|
|
|
3903
|
-
var _excluded$
|
|
3957
|
+
var _excluded$f = ["className", "value", "name", "placeholder", "maxLength", "rows", "resizable", "isDisabled", "icon", "onChange", "onBlur", "onFocus", "onKeyPress", "onKeyDown", "onCtrlEnter"];
|
|
3904
3958
|
var RESIZE_TYPES = {
|
|
3905
3959
|
NONE: "none",
|
|
3906
3960
|
BOTH: "both",
|
|
@@ -3944,7 +3998,7 @@ function Textarea(props) {
|
|
|
3944
3998
|
onKeyPress = props.onKeyPress,
|
|
3945
3999
|
_onKeyDown = props.onKeyDown,
|
|
3946
4000
|
onCtrlEnter = props.onCtrlEnter,
|
|
3947
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
|
4001
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$f);
|
|
3948
4002
|
|
|
3949
4003
|
var style;
|
|
3950
4004
|
|
|
@@ -4092,7 +4146,7 @@ var TextEditorV2 = function TextEditorV2(_ref) {
|
|
|
4092
4146
|
}));
|
|
4093
4147
|
};
|
|
4094
4148
|
|
|
4095
|
-
var _excluded$
|
|
4149
|
+
var _excluded$g = ["titleProps", "title", "titleAccessory", "contentProps", "content", "defaultContent", "className", "buttons"];
|
|
4096
4150
|
function ViewItem(_ref) {
|
|
4097
4151
|
var titleProps = _ref.titleProps,
|
|
4098
4152
|
title = _ref.title,
|
|
@@ -4103,7 +4157,7 @@ function ViewItem(_ref) {
|
|
|
4103
4157
|
defaultContent = _ref$defaultContent === void 0 ? "-" : _ref$defaultContent,
|
|
4104
4158
|
className = _ref.className,
|
|
4105
4159
|
buttons = _ref.buttons,
|
|
4106
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4160
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
4107
4161
|
|
|
4108
4162
|
var titlePropsMerged = titleProps != null ? titleProps : {
|
|
4109
4163
|
text: title != null ? title : defaultContent
|
|
@@ -4960,5 +5014,5 @@ var SearchCancelIcon = function SearchCancelIcon(props) {
|
|
|
4960
5014
|
}));
|
|
4961
5015
|
};
|
|
4962
5016
|
|
|
4963
|
-
export { ACKNOWLEDGEMENT_TYPE_OPTIONS, Acknowledgement, AddIcon, AlertsIcon, Avatar, Badge, BellIcon, CRUDPage, Carousel, CenteredHero, ChartIcon, ChatBoxIcon, CheckIcon, Checkbox, ChevronDoubleIcon, ConfirmationDialog, CrossIcon, Datepicker as DatePicker, DeleteIcon, DownArrowIcon, DragIcon, Dropdown, EditIcon, EmptyListMessage, EmptyStateDashboardIcon, ErrorBlock, ExclamationMarkIcon, EyeIcon, GearIcon, GroupIcon, HamburgerIcon, HeartIcon, INPUT_TYPES, InfoBlock, InfoField, Input, LeftArrowIcon, LightBulbIcon, Line, LoadingIndicator, LockIcon, Menu, MessagesIcon, MultiSelect, NavLayout, NavMenu, NotesIcon, NotificationBanner, Page, PaginationMenu, PinIcon, PreviewPhone, PrimaryButton, PrintIcon, Radio, RadioGroup, RightArrowIcon, SearchCancelIcon, SearchIcon, SecondaryButton, Section, SectionItem, SectionItemWithContent, SettingsMenuButton, SmallCircleIcon, SmallDiamondIcon, SmallSquareIcon, SpaceRocketIcon, Spinner, StarIcon, Steps, Switcher, TabLinks, Tabbar, Table, Tag, TagGroup, TertiaryButton, Text, Textarea as TextArea, TextEditor, TextEditorV2, TextLink, Title, ViewItem };
|
|
5017
|
+
export { ACKNOWLEDGEMENT_TYPE_OPTIONS, Acknowledgement, AddIcon, AlertsIcon, Avatar, Badge, BellIcon, CRUDPage, Carousel, CenteredHero, ChartIcon, ChatBoxIcon, CheckIcon, Checkbox, ChevronDoubleIcon, ConfirmationDialog, CrossIcon, Datepicker as DatePicker, DeleteIcon, DownArrowIcon, DragIcon, Dropdown, EditIcon, EmptyListMessage, EmptyStateDashboardIcon, ErrorBlock, ExclamationMarkIcon, EyeIcon, GearIcon, GroupIcon, HamburgerIcon, HeartIcon, INPUT_TYPES, InfoBlock, InfoField, Input, LeftArrowIcon, LightBulbIcon, Line, List, LoadingIndicator, LockIcon, Menu, MessagesIcon, MultiSelect, NavLayout, NavMenu, NotesIcon, NotificationBanner, Page, PaginationMenu, PinIcon, PreviewPhone, PrimaryButton, PrintIcon, Radio, RadioGroup, RightArrowIcon, SearchCancelIcon, SearchIcon, SecondaryButton, Section, SectionItem, SectionItemWithContent, SettingsMenuButton, SmallCircleIcon, SmallDiamondIcon, SmallSquareIcon, SpaceRocketIcon, Spinner, StarIcon, Steps, Switcher, TabLinks, Tabbar, Table, Tag, TagGroup, TertiaryButton, Text, Textarea as TextArea, TextEditor, TextEditorV2, TextLink, Title, ViewItem };
|
|
4964
5018
|
//# sourceMappingURL=web-ui.esm.js.map
|