@luscii-healthtech/web-ui 0.5.2 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +58 -14
- 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 +58 -15
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +4 -2
- package/src/components/List/List.tsx +20 -0
- package/src/components/List/ListItem.tsx +45 -0
- package/src/index.tsx +1 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IconProps } from "../Icons/types/IconProps.type";
|
|
3
|
+
export interface ListItemProps {
|
|
4
|
+
itemId: string | number;
|
|
5
|
+
title: string;
|
|
6
|
+
subTitle?: string;
|
|
7
|
+
icon?: React.FunctionComponent<IconProps> | null;
|
|
8
|
+
accessories?: JSX.Element[];
|
|
9
|
+
handleItemClick?: () => void;
|
|
10
|
+
tooltipId?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const ListItem: ({ icon, subTitle, title, accessories, tooltipId, ...restProps }: ListItemProps) => JSX.Element;
|
|
13
|
+
export default ListItem;
|
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export { Table, TableProps } from "./components/Table/Table";
|
|
|
21
21
|
export { TableFieldConfig, TableFieldContent, TableFieldText, TableFieldAction, } from "./components/Table/Table.types";
|
|
22
22
|
export { LoadingIndicator, LoadingIndicatorProps, } from "./components/LoadingIndicator/LoadingIndicator";
|
|
23
23
|
export { default as Menu } from "./components/Menu/Menu";
|
|
24
|
+
export { List } from "./components/List/List";
|
|
24
25
|
export { MultiSelect } from "./components/MultiSelect/MultiSelect";
|
|
25
26
|
export { NavLayout, NavMenuLayoutProps } from "./components/NavMenu/NavLayout";
|
|
26
27
|
export { NavMenu, NavMenuElement } from "./components/NavMenu/NavMenu";
|
package/dist/web-ui-tailwind.css
CHANGED
|
@@ -621,6 +621,12 @@ video {
|
|
|
621
621
|
margin-left: calc(0.75rem * calc(1 - var(--space-x-reverse)));
|
|
622
622
|
}
|
|
623
623
|
|
|
624
|
+
.space-x-4 > :not(template) ~ :not(template) {
|
|
625
|
+
--space-x-reverse: 0;
|
|
626
|
+
margin-right: calc(1rem * var(--space-x-reverse));
|
|
627
|
+
margin-left: calc(1rem * calc(1 - var(--space-x-reverse)));
|
|
628
|
+
}
|
|
629
|
+
|
|
624
630
|
.space-x-6 > :not(template) ~ :not(template) {
|
|
625
631
|
--space-x-reverse: 0;
|
|
626
632
|
margin-right: calc(1.5rem * var(--space-x-reverse));
|
|
@@ -982,6 +988,10 @@ video {
|
|
|
982
988
|
border-left-width: 1px;
|
|
983
989
|
}
|
|
984
990
|
|
|
991
|
+
.last\:border-b-0:last-child {
|
|
992
|
+
border-bottom-width: 0;
|
|
993
|
+
}
|
|
994
|
+
|
|
985
995
|
.last\:border-r:last-child {
|
|
986
996
|
border-right-width: 1px;
|
|
987
997
|
}
|
|
@@ -1387,6 +1397,10 @@ video {
|
|
|
1387
1397
|
padding: 0.75rem;
|
|
1388
1398
|
}
|
|
1389
1399
|
|
|
1400
|
+
.p-4 {
|
|
1401
|
+
padding: 1rem;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1390
1404
|
.p-6 {
|
|
1391
1405
|
padding: 1.5rem;
|
|
1392
1406
|
}
|
|
@@ -2560,6 +2560,49 @@ Menu.propTypes = {
|
|
|
2560
2560
|
children: PropTypes.node.isRequired
|
|
2561
2561
|
};
|
|
2562
2562
|
|
|
2563
|
+
var _excluded$9 = ["icon", "subTitle", "title", "accessories", "tooltipId"];
|
|
2564
|
+
var ListItem = function ListItem(_ref) {
|
|
2565
|
+
var icon = _ref.icon,
|
|
2566
|
+
subTitle = _ref.subTitle,
|
|
2567
|
+
title = _ref.title,
|
|
2568
|
+
accessories = _ref.accessories,
|
|
2569
|
+
tooltipId = _ref.tooltipId,
|
|
2570
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
2571
|
+
|
|
2572
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
2573
|
+
className: classNames("flex flex-row items-center space-x-4", "p-4 border-b last:border-b-0 border-slate-200", {
|
|
2574
|
+
"cursor-pointer": restProps.handleItemClick
|
|
2575
|
+
}),
|
|
2576
|
+
onClick: restProps.handleItemClick,
|
|
2577
|
+
"data-tip": restProps.itemId,
|
|
2578
|
+
"data-for": tooltipId
|
|
2579
|
+
}, icon && /*#__PURE__*/React__default.createElement(icon, {
|
|
2580
|
+
className: "w-6 h-6"
|
|
2581
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
2582
|
+
className: classNames({
|
|
2583
|
+
"pl-10": icon === null
|
|
2584
|
+
})
|
|
2585
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
2586
|
+
text: title
|
|
2587
|
+
}), subTitle && /*#__PURE__*/React__default.createElement(Text, {
|
|
2588
|
+
text: subTitle,
|
|
2589
|
+
type: "sm"
|
|
2590
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
2591
|
+
className: "flex-grow"
|
|
2592
|
+
}), accessories);
|
|
2593
|
+
};
|
|
2594
|
+
|
|
2595
|
+
var List = function List(_ref) {
|
|
2596
|
+
var items = _ref.items;
|
|
2597
|
+
return /*#__PURE__*/React__default.createElement("ul", {
|
|
2598
|
+
className: classNames("list-none")
|
|
2599
|
+
}, items.map(function (item) {
|
|
2600
|
+
return /*#__PURE__*/React__default.createElement(ListItem, Object.assign({}, item, {
|
|
2601
|
+
key: item.itemId
|
|
2602
|
+
}));
|
|
2603
|
+
}));
|
|
2604
|
+
};
|
|
2605
|
+
|
|
2563
2606
|
var TEXT_TYPE_OPTIONS = {
|
|
2564
2607
|
DEFAULT: "default",
|
|
2565
2608
|
STRONG: "strong",
|
|
@@ -3008,7 +3051,7 @@ Page.propTypes = {
|
|
|
3008
3051
|
navLayoutProps: PropTypes.object
|
|
3009
3052
|
};
|
|
3010
3053
|
|
|
3011
|
-
var _excluded$
|
|
3054
|
+
var _excluded$a = ["text", "type", "className"];
|
|
3012
3055
|
var TITLE_TYPE_OPTIONS = {
|
|
3013
3056
|
DEFAULT: "default",
|
|
3014
3057
|
BIG: "big",
|
|
@@ -3027,7 +3070,7 @@ function LegacyTitle(_ref) {
|
|
|
3027
3070
|
type = _ref.type,
|
|
3028
3071
|
_ref$className = _ref.className,
|
|
3029
3072
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
3030
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3073
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
3031
3074
|
|
|
3032
3075
|
var ContainerElement;
|
|
3033
3076
|
var containerClassName = classNames("cweb-title", className, {
|
|
@@ -3408,7 +3451,7 @@ Radio.propTypes = {
|
|
|
3408
3451
|
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";
|
|
3409
3452
|
styleInject(css_248z$i);
|
|
3410
3453
|
|
|
3411
|
-
var _excluded$
|
|
3454
|
+
var _excluded$b = ["className", "radioClassName", "name", "selectedOption", "isVertical", "radioOptions", "onChange", "error", "isDisabled"];
|
|
3412
3455
|
|
|
3413
3456
|
function RadioGroup(_ref) {
|
|
3414
3457
|
var className = _ref.className,
|
|
@@ -3420,7 +3463,7 @@ function RadioGroup(_ref) {
|
|
|
3420
3463
|
onChange = _ref.onChange,
|
|
3421
3464
|
error = _ref.error,
|
|
3422
3465
|
isDisabled = _ref.isDisabled,
|
|
3423
|
-
otherOptions = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3466
|
+
otherOptions = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
3424
3467
|
|
|
3425
3468
|
var containerClassName = classNames("cweb-radio-group", {
|
|
3426
3469
|
vertical: isVertical
|
|
@@ -3466,7 +3509,7 @@ RadioGroup.propTypes = {
|
|
|
3466
3509
|
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";
|
|
3467
3510
|
styleInject(css_248z$j);
|
|
3468
3511
|
|
|
3469
|
-
var _excluded$
|
|
3512
|
+
var _excluded$c = ["title", "buttons", "children", "className", "isLoading", "loadingIndicatorProps"];
|
|
3470
3513
|
function Section(_ref) {
|
|
3471
3514
|
var title = _ref.title,
|
|
3472
3515
|
buttons = _ref.buttons,
|
|
@@ -3475,7 +3518,7 @@ function Section(_ref) {
|
|
|
3475
3518
|
_ref$isLoading = _ref.isLoading,
|
|
3476
3519
|
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
3477
3520
|
loadingIndicatorProps = _ref.loadingIndicatorProps,
|
|
3478
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3521
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
3479
3522
|
|
|
3480
3523
|
return /*#__PURE__*/React__default.createElement("div", Object.assign({}, restProps, {
|
|
3481
3524
|
className: classNames("cweb-section", "flex justify-start flex-col items-start", "rounded-lg", "mx-0 my-4", "bg-white", "w-full", className)
|
|
@@ -3504,12 +3547,12 @@ function Section(_ref) {
|
|
|
3504
3547
|
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";
|
|
3505
3548
|
styleInject(css_248z$k);
|
|
3506
3549
|
|
|
3507
|
-
var _excluded$
|
|
3550
|
+
var _excluded$d = ["children", "className", "onClick"];
|
|
3508
3551
|
var SectionItem = function SectionItem(props) {
|
|
3509
3552
|
var children = props.children,
|
|
3510
3553
|
className = props.className,
|
|
3511
3554
|
onClick = props.onClick,
|
|
3512
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
3555
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$d);
|
|
3513
3556
|
|
|
3514
3557
|
var classes = classNames("cweb-list-item", className, {
|
|
3515
3558
|
"cweb-list-item-clickable": !!onClick
|
|
@@ -3520,7 +3563,7 @@ var SectionItem = function SectionItem(props) {
|
|
|
3520
3563
|
}, rest), children);
|
|
3521
3564
|
};
|
|
3522
3565
|
|
|
3523
|
-
var _excluded$
|
|
3566
|
+
var _excluded$e = ["text", "icon", "className", "iconClass", "onClick"];
|
|
3524
3567
|
|
|
3525
3568
|
function SectionItemWithContent(props) {
|
|
3526
3569
|
var text = props.text,
|
|
@@ -3528,7 +3571,7 @@ function SectionItemWithContent(props) {
|
|
|
3528
3571
|
className = props.className,
|
|
3529
3572
|
iconClass = props.iconClass,
|
|
3530
3573
|
onClick = props.onClick,
|
|
3531
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
3574
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$e);
|
|
3532
3575
|
|
|
3533
3576
|
var mergedClasses = classNames("cweb-section-text-item", className);
|
|
3534
3577
|
var iconClasses = classNames("w-6 h-6 mr-4", iconClass);
|
|
@@ -3908,7 +3951,7 @@ var TagGroup = function TagGroup(_ref) {
|
|
|
3908
3951
|
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";
|
|
3909
3952
|
styleInject(css_248z$m);
|
|
3910
3953
|
|
|
3911
|
-
var _excluded$
|
|
3954
|
+
var _excluded$f = ["className", "value", "name", "placeholder", "maxLength", "rows", "resizable", "isDisabled", "icon", "onChange", "onBlur", "onFocus", "onKeyPress", "onKeyDown", "onCtrlEnter"];
|
|
3912
3955
|
var RESIZE_TYPES = {
|
|
3913
3956
|
NONE: "none",
|
|
3914
3957
|
BOTH: "both",
|
|
@@ -3952,7 +3995,7 @@ function Textarea(props) {
|
|
|
3952
3995
|
onKeyPress = props.onKeyPress,
|
|
3953
3996
|
_onKeyDown = props.onKeyDown,
|
|
3954
3997
|
onCtrlEnter = props.onCtrlEnter,
|
|
3955
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
|
3998
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$f);
|
|
3956
3999
|
|
|
3957
4000
|
var style;
|
|
3958
4001
|
|
|
@@ -4100,7 +4143,7 @@ var TextEditorV2 = function TextEditorV2(_ref) {
|
|
|
4100
4143
|
}));
|
|
4101
4144
|
};
|
|
4102
4145
|
|
|
4103
|
-
var _excluded$
|
|
4146
|
+
var _excluded$g = ["titleProps", "title", "titleAccessory", "contentProps", "content", "defaultContent", "className", "buttons"];
|
|
4104
4147
|
function ViewItem(_ref) {
|
|
4105
4148
|
var titleProps = _ref.titleProps,
|
|
4106
4149
|
title = _ref.title,
|
|
@@ -4111,7 +4154,7 @@ function ViewItem(_ref) {
|
|
|
4111
4154
|
defaultContent = _ref$defaultContent === void 0 ? "-" : _ref$defaultContent,
|
|
4112
4155
|
className = _ref.className,
|
|
4113
4156
|
buttons = _ref.buttons,
|
|
4114
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4157
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
4115
4158
|
|
|
4116
4159
|
var titlePropsMerged = titleProps != null ? titleProps : {
|
|
4117
4160
|
text: title != null ? title : defaultContent
|
|
@@ -5007,6 +5050,7 @@ exports.Input = Input;
|
|
|
5007
5050
|
exports.LeftArrowIcon = LeftArrowIcon;
|
|
5008
5051
|
exports.LightBulbIcon = LightBulbIcon;
|
|
5009
5052
|
exports.Line = Line;
|
|
5053
|
+
exports.List = List;
|
|
5010
5054
|
exports.LoadingIndicator = LoadingIndicator;
|
|
5011
5055
|
exports.LockIcon = LockIcon;
|
|
5012
5056
|
exports.Menu = Menu;
|