@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.
@@ -1,8 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import { IconProps } from "../Icons/types/IconProps.type";
3
+ import { TextColor, TextHoverColor } from "../Text/Text";
3
4
  export interface BaseButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
4
5
  onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
5
6
  text?: string;
7
+ textColor?: TextColor;
8
+ textHoverColor?: TextHoverColor;
6
9
  icon?: React.FunctionComponent<IconProps>;
7
10
  isDisabled?: boolean;
8
11
  className?: string;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { ButtonProps } from "./ButtonProps.type";
3
- export declare const ButtonV2: ({ onClick, text, icon, isDisabled, isPending, className, ...otherAttributes }: ButtonProps) => JSX.Element;
3
+ export declare const ButtonV2: ({ onClick, text, textColor, textHoverColor, icon, isDisabled, isPending, className, ...otherAttributes }: ButtonProps) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { ListItemProps } from "./ListItem";
3
+ export interface ListProps {
4
+ items: ListItemProps[];
5
+ }
6
+ export declare const List: ({ items }: ListProps) => JSX.Element;
7
+ export default List;
@@ -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";
@@ -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
  }
@@ -358,10 +358,12 @@ var Spinner = function Spinner(props) {
358
358
  }));
359
359
  };
360
360
 
361
- var _excluded = ["onClick", "text", "icon", "isDisabled", "isPending", "className"];
361
+ var _excluded = ["onClick", "text", "textColor", "textHoverColor", "icon", "isDisabled", "isPending", "className"];
362
362
  var ButtonV2 = function ButtonV2(_ref) {
363
363
  var onClick = _ref.onClick,
364
364
  text = _ref.text,
365
+ textColor = _ref.textColor,
366
+ textHoverColor = _ref.textHoverColor,
365
367
  icon = _ref.icon,
366
368
  isDisabled = _ref.isDisabled,
367
369
  isPending = _ref.isPending,
@@ -373,7 +375,7 @@ var ButtonV2 = function ButtonV2(_ref) {
373
375
  return /*#__PURE__*/React__default.createElement("span", null, "Invalid props passed to this component.");
374
376
  }
375
377
 
376
- 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"], {
378
+ 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"], {
377
379
  "w-11": !text && icon,
378
380
  "pl-4 pr-6": text && icon,
379
381
  "px-4": text && !icon
@@ -400,29 +402,38 @@ var ButtonV2 = function ButtonV2(_ref) {
400
402
  }
401
403
  }, /*#__PURE__*/React__default.createElement(Spinner, {
402
404
  className: "text-white"
403
- })), text && /*#__PURE__*/React__default.createElement("span", {
404
- className: classNames("text-sm font-medium", {
405
+ })), text && /*#__PURE__*/React__default.createElement(Text, {
406
+ className: classNames({
405
407
  invisible: isPending,
406
408
  "ml-1": icon
407
- })
408
- }, text));
409
+ }),
410
+ text: text,
411
+ color: textColor,
412
+ hoverColor: textHoverColor,
413
+ hoverInGroup: true
414
+ }));
409
415
  };
410
416
 
411
417
  var PrimaryButton = function PrimaryButton(props) {
412
418
  return /*#__PURE__*/React__default.createElement(ButtonV2, Object.assign({}, props, {
413
- className: classNames(["text-white", "bg-blue-800", "border-primary-transparent", "hover:bg-blue-900"], props.className)
419
+ className: classNames(["text-white", "bg-blue-800", "border-primary-transparent", "hover:bg-blue-900"], props.className),
420
+ textColor: "white"
414
421
  }));
415
422
  };
416
423
 
417
424
  var SecondaryButton = function SecondaryButton(props) {
418
425
  return /*#__PURE__*/React__default.createElement(ButtonV2, Object.assign({}, props, {
419
- className: classNames(["text-blue-800", "bg-white", "border-slate-300", "hover:text-blue-900", "hover:border-slate-400", "focus:border-blue-800"], props.className)
426
+ className: classNames(["text-blue-800", "bg-white", "border-slate-300", "hover:text-blue-900", "hover:border-slate-400", "focus:border-blue-800"], props.className),
427
+ textColor: "blue-800",
428
+ textHoverColor: "blue-900"
420
429
  }));
421
430
  };
422
431
 
423
432
  var TertiaryButton = function TertiaryButton(props) {
424
433
  return /*#__PURE__*/React__default.createElement(ButtonV2, Object.assign({}, props, {
425
- className: classNames(["text-blue-800", "bg-transparent", "border-transparent", "hover:text-blue-900", "focus:border-blue-800", "shadow-none"], props.className)
434
+ className: classNames(["text-blue-800", "bg-transparent", "border-transparent", "hover:text-blue-900", "focus:border-blue-800", "shadow-none"], props.className),
435
+ textColor: "blue-800",
436
+ textHoverColor: "blue-900"
426
437
  }));
427
438
  };
428
439
 
@@ -2457,12 +2468,12 @@ function Table(_ref) {
2457
2468
  var showEmptyView = !isPristine && !isLoading && !(items && items.length > 0);
2458
2469
  return /*#__PURE__*/React__default.createElement("table", Object.assign({
2459
2470
  className: classNames("w-full rounded-lg bg-white border-collapse table-auto", className)
2460
- }, otherAttributes), showHeader && /*#__PURE__*/React__default.createElement(TableHeader, {
2471
+ }, otherAttributes), showHeader ? /*#__PURE__*/React__default.createElement(TableHeader, {
2461
2472
  className: "border-b border-slate-100",
2462
2473
  fieldConfigurations: fieldConfigurations
2463
- }), /*#__PURE__*/React__default.createElement(TableBody, {
2474
+ }) : null, /*#__PURE__*/React__default.createElement(TableBody, {
2464
2475
  className: classNames({
2465
- "border-b border-slate-100": !showEmptyView && paginationMenuProps && paginationMenuProps.pageCount > 1
2476
+ "border-b border-slate-100": !showEmptyView && paginationMenuProps && paginationMenuProps.currentPageNumber > 0 && paginationMenuProps.pageCount > 0
2466
2477
  }),
2467
2478
  items: items,
2468
2479
  fieldConfigurations: fieldConfigurations,
@@ -2471,10 +2482,10 @@ function Table(_ref) {
2471
2482
  isLoading: isLoading,
2472
2483
  showEmptyView: showEmptyView,
2473
2484
  onRowClick: onRowClick
2474
- }), !showEmptyView && paginationMenuProps && paginationMenuProps.pageCount > 1 && /*#__PURE__*/React__default.createElement(TableFooter, {
2485
+ }), !showEmptyView && paginationMenuProps && paginationMenuProps.currentPageNumber > 0 && paginationMenuProps.pageCount > 0 ? /*#__PURE__*/React__default.createElement(TableFooter, {
2475
2486
  colSpan: fieldConfigurations.length,
2476
2487
  paginationMenuProps: paginationMenuProps
2477
- }));
2488
+ }) : null);
2478
2489
  }
2479
2490
 
2480
2491
  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";
@@ -2560,6 +2571,49 @@ Menu.propTypes = {
2560
2571
  children: PropTypes.node.isRequired
2561
2572
  };
2562
2573
 
2574
+ var _excluded$9 = ["icon", "subTitle", "title", "accessories", "tooltipId"];
2575
+ var ListItem = function ListItem(_ref) {
2576
+ var icon = _ref.icon,
2577
+ subTitle = _ref.subTitle,
2578
+ title = _ref.title,
2579
+ accessories = _ref.accessories,
2580
+ tooltipId = _ref.tooltipId,
2581
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$9);
2582
+
2583
+ return /*#__PURE__*/React__default.createElement("li", {
2584
+ className: classNames("flex flex-row items-center space-x-4", "p-4 border-b last:border-b-0 border-slate-200", {
2585
+ "cursor-pointer": restProps.handleItemClick
2586
+ }),
2587
+ onClick: restProps.handleItemClick,
2588
+ "data-tip": restProps.itemId,
2589
+ "data-for": tooltipId
2590
+ }, icon && /*#__PURE__*/React__default.createElement(icon, {
2591
+ className: "w-6 h-6"
2592
+ }), /*#__PURE__*/React__default.createElement("div", {
2593
+ className: classNames({
2594
+ "pl-10": icon === null
2595
+ })
2596
+ }, /*#__PURE__*/React__default.createElement(Text, {
2597
+ text: title
2598
+ }), subTitle && /*#__PURE__*/React__default.createElement(Text, {
2599
+ text: subTitle,
2600
+ type: "sm"
2601
+ })), /*#__PURE__*/React__default.createElement("div", {
2602
+ className: "flex-grow"
2603
+ }), accessories);
2604
+ };
2605
+
2606
+ var List = function List(_ref) {
2607
+ var items = _ref.items;
2608
+ return /*#__PURE__*/React__default.createElement("ul", {
2609
+ className: classNames("list-none")
2610
+ }, items.map(function (item) {
2611
+ return /*#__PURE__*/React__default.createElement(ListItem, Object.assign({}, item, {
2612
+ key: item.itemId
2613
+ }));
2614
+ }));
2615
+ };
2616
+
2563
2617
  var TEXT_TYPE_OPTIONS = {
2564
2618
  DEFAULT: "default",
2565
2619
  STRONG: "strong",
@@ -3008,7 +3062,7 @@ Page.propTypes = {
3008
3062
  navLayoutProps: PropTypes.object
3009
3063
  };
3010
3064
 
3011
- var _excluded$9 = ["text", "type", "className"];
3065
+ var _excluded$a = ["text", "type", "className"];
3012
3066
  var TITLE_TYPE_OPTIONS = {
3013
3067
  DEFAULT: "default",
3014
3068
  BIG: "big",
@@ -3027,7 +3081,7 @@ function LegacyTitle(_ref) {
3027
3081
  type = _ref.type,
3028
3082
  _ref$className = _ref.className,
3029
3083
  className = _ref$className === void 0 ? "" : _ref$className,
3030
- otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$9);
3084
+ otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$a);
3031
3085
 
3032
3086
  var ContainerElement;
3033
3087
  var containerClassName = classNames("cweb-title", className, {
@@ -3408,7 +3462,7 @@ Radio.propTypes = {
3408
3462
  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
3463
  styleInject(css_248z$i);
3410
3464
 
3411
- var _excluded$a = ["className", "radioClassName", "name", "selectedOption", "isVertical", "radioOptions", "onChange", "error", "isDisabled"];
3465
+ var _excluded$b = ["className", "radioClassName", "name", "selectedOption", "isVertical", "radioOptions", "onChange", "error", "isDisabled"];
3412
3466
 
3413
3467
  function RadioGroup(_ref) {
3414
3468
  var className = _ref.className,
@@ -3420,7 +3474,7 @@ function RadioGroup(_ref) {
3420
3474
  onChange = _ref.onChange,
3421
3475
  error = _ref.error,
3422
3476
  isDisabled = _ref.isDisabled,
3423
- otherOptions = _objectWithoutPropertiesLoose(_ref, _excluded$a);
3477
+ otherOptions = _objectWithoutPropertiesLoose(_ref, _excluded$b);
3424
3478
 
3425
3479
  var containerClassName = classNames("cweb-radio-group", {
3426
3480
  vertical: isVertical
@@ -3466,7 +3520,7 @@ RadioGroup.propTypes = {
3466
3520
  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
3521
  styleInject(css_248z$j);
3468
3522
 
3469
- var _excluded$b = ["title", "buttons", "children", "className", "isLoading", "loadingIndicatorProps"];
3523
+ var _excluded$c = ["title", "buttons", "children", "className", "isLoading", "loadingIndicatorProps"];
3470
3524
  function Section(_ref) {
3471
3525
  var title = _ref.title,
3472
3526
  buttons = _ref.buttons,
@@ -3475,7 +3529,7 @@ function Section(_ref) {
3475
3529
  _ref$isLoading = _ref.isLoading,
3476
3530
  isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
3477
3531
  loadingIndicatorProps = _ref.loadingIndicatorProps,
3478
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$b);
3532
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$c);
3479
3533
 
3480
3534
  return /*#__PURE__*/React__default.createElement("div", Object.assign({}, restProps, {
3481
3535
  className: classNames("cweb-section", "flex justify-start flex-col items-start", "rounded-lg", "mx-0 my-4", "bg-white", "w-full", className)
@@ -3504,12 +3558,12 @@ function Section(_ref) {
3504
3558
  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
3559
  styleInject(css_248z$k);
3506
3560
 
3507
- var _excluded$c = ["children", "className", "onClick"];
3561
+ var _excluded$d = ["children", "className", "onClick"];
3508
3562
  var SectionItem = function SectionItem(props) {
3509
3563
  var children = props.children,
3510
3564
  className = props.className,
3511
3565
  onClick = props.onClick,
3512
- rest = _objectWithoutPropertiesLoose(props, _excluded$c);
3566
+ rest = _objectWithoutPropertiesLoose(props, _excluded$d);
3513
3567
 
3514
3568
  var classes = classNames("cweb-list-item", className, {
3515
3569
  "cweb-list-item-clickable": !!onClick
@@ -3520,7 +3574,7 @@ var SectionItem = function SectionItem(props) {
3520
3574
  }, rest), children);
3521
3575
  };
3522
3576
 
3523
- var _excluded$d = ["text", "icon", "className", "iconClass", "onClick"];
3577
+ var _excluded$e = ["text", "icon", "className", "iconClass", "onClick"];
3524
3578
 
3525
3579
  function SectionItemWithContent(props) {
3526
3580
  var text = props.text,
@@ -3528,7 +3582,7 @@ function SectionItemWithContent(props) {
3528
3582
  className = props.className,
3529
3583
  iconClass = props.iconClass,
3530
3584
  onClick = props.onClick,
3531
- rest = _objectWithoutPropertiesLoose(props, _excluded$d);
3585
+ rest = _objectWithoutPropertiesLoose(props, _excluded$e);
3532
3586
 
3533
3587
  var mergedClasses = classNames("cweb-section-text-item", className);
3534
3588
  var iconClasses = classNames("w-6 h-6 mr-4", iconClass);
@@ -3908,7 +3962,7 @@ var TagGroup = function TagGroup(_ref) {
3908
3962
  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
3963
  styleInject(css_248z$m);
3910
3964
 
3911
- var _excluded$e = ["className", "value", "name", "placeholder", "maxLength", "rows", "resizable", "isDisabled", "icon", "onChange", "onBlur", "onFocus", "onKeyPress", "onKeyDown", "onCtrlEnter"];
3965
+ var _excluded$f = ["className", "value", "name", "placeholder", "maxLength", "rows", "resizable", "isDisabled", "icon", "onChange", "onBlur", "onFocus", "onKeyPress", "onKeyDown", "onCtrlEnter"];
3912
3966
  var RESIZE_TYPES = {
3913
3967
  NONE: "none",
3914
3968
  BOTH: "both",
@@ -3952,7 +4006,7 @@ function Textarea(props) {
3952
4006
  onKeyPress = props.onKeyPress,
3953
4007
  _onKeyDown = props.onKeyDown,
3954
4008
  onCtrlEnter = props.onCtrlEnter,
3955
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$e);
4009
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$f);
3956
4010
 
3957
4011
  var style;
3958
4012
 
@@ -4100,7 +4154,7 @@ var TextEditorV2 = function TextEditorV2(_ref) {
4100
4154
  }));
4101
4155
  };
4102
4156
 
4103
- var _excluded$f = ["titleProps", "title", "titleAccessory", "contentProps", "content", "defaultContent", "className", "buttons"];
4157
+ var _excluded$g = ["titleProps", "title", "titleAccessory", "contentProps", "content", "defaultContent", "className", "buttons"];
4104
4158
  function ViewItem(_ref) {
4105
4159
  var titleProps = _ref.titleProps,
4106
4160
  title = _ref.title,
@@ -4111,7 +4165,7 @@ function ViewItem(_ref) {
4111
4165
  defaultContent = _ref$defaultContent === void 0 ? "-" : _ref$defaultContent,
4112
4166
  className = _ref.className,
4113
4167
  buttons = _ref.buttons,
4114
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$f);
4168
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$g);
4115
4169
 
4116
4170
  var titlePropsMerged = titleProps != null ? titleProps : {
4117
4171
  text: title != null ? title : defaultContent
@@ -5007,6 +5061,7 @@ exports.Input = Input;
5007
5061
  exports.LeftArrowIcon = LeftArrowIcon;
5008
5062
  exports.LightBulbIcon = LightBulbIcon;
5009
5063
  exports.Line = Line;
5064
+ exports.List = List;
5010
5065
  exports.LoadingIndicator = LoadingIndicator;
5011
5066
  exports.LockIcon = LockIcon;
5012
5067
  exports.Menu = Menu;