@luscii-healthtech/web-ui 0.2.2 → 0.4.1

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.
Files changed (40) hide show
  1. package/dist/components/Section/SectionItem.d.ts +9 -0
  2. package/dist/components/{TextListItem/TextListItem.d.ts → Section/SectionItemWithContent.d.ts} +3 -3
  3. package/dist/components/Steps/Step.d.ts +1 -1
  4. package/dist/components/Tag/Tag.d.ts +2 -2
  5. package/dist/components/Tag/Tag.utils.d.ts +4 -0
  6. package/dist/components/Tag/TagGroup.d.ts +2 -5
  7. package/dist/components/Text/Text.d.ts +5 -3
  8. package/dist/index.d.ts +2 -2
  9. package/dist/web-ui-tailwind.css +2111 -0
  10. package/dist/web-ui.cjs.development.css +58 -58
  11. package/dist/web-ui.cjs.development.js +99 -75
  12. package/dist/web-ui.cjs.development.js.map +1 -1
  13. package/dist/web-ui.cjs.production.min.css +58 -58
  14. package/dist/web-ui.cjs.production.min.js +1 -1
  15. package/dist/web-ui.cjs.production.min.js.map +1 -1
  16. package/dist/web-ui.esm.css +58 -58
  17. package/dist/web-ui.esm.js +98 -74
  18. package/dist/web-ui.esm.js.map +1 -1
  19. package/package.json +13 -5
  20. package/src/components/Checkbox/Checkbox.tsx +27 -13
  21. package/src/components/Dropdown/Dropdown.js +89 -37
  22. package/src/components/InfoField/InfoField.tsx +12 -4
  23. package/src/components/ListTable/ListTable.tsx +2 -1
  24. package/src/components/ListTable/ListTableCell.tsx +15 -4
  25. package/src/components/NavMenu/NavMenuItem.tsx +12 -6
  26. package/src/components/NotificationBanner/NotificationBanner.tsx +29 -9
  27. package/src/components/PaginationMenu/PaginationMenuLarge.tsx +1 -1
  28. package/src/components/PaginationMenu/PaginationMenuSmall.tsx +1 -1
  29. package/src/components/{ListItem/ListItem.scss → Section/SectionItem.scss} +0 -0
  30. package/src/components/{ListItem/ListItem.tsx → Section/SectionItem.tsx} +7 -7
  31. package/src/components/{TextListItem/TextListItem.js → Section/SectionItemWithContent.js} +10 -9
  32. package/src/components/{TextListItem/TextListItem.scss → Section/SectionItemWithContent.scss} +2 -2
  33. package/src/components/Steps/Step.tsx +12 -3
  34. package/src/components/Tag/Tag.tsx +31 -12
  35. package/src/components/Tag/Tag.utils.ts +4 -0
  36. package/src/components/Tag/TagGroup.tsx +12 -8
  37. package/src/components/Text/Text.tsx +87 -37
  38. package/src/components/ViewItem/ViewItem.tsx +21 -9
  39. package/src/index.tsx +4 -4
  40. package/dist/components/ListItem/ListItem.d.ts +0 -9
@@ -546,6 +546,64 @@
546
546
  .cweb-list-item.cweb-list-item-clickable:hover {
547
547
  background-color: #f2fafd; }
548
548
 
549
+ .cweb-section .cweb-button:last-of-type {
550
+ margin-right: 24px; }
551
+
552
+ .cweb-section .cweb-button:not(:last-of-type) {
553
+ margin-right: 8px; }
554
+
555
+ .cweb-section .cweb-button.add-button, .cweb-section .cweb-button.edit-button, .cweb-section .cweb-button.delete-button {
556
+ margin-left: auto;
557
+ width: 32px;
558
+ height: 32px; }
559
+
560
+ .cweb-section .cweb-button.add-button {
561
+ background: url("../../assets/add.svg") no-repeat center;
562
+ background-size: contain; }
563
+ .cweb-section .cweb-button.add-button:hover, .cweb-section .cweb-button.add-button:active, .cweb-section .cweb-button.add-button:focus {
564
+ background: url("../../assets/add_hover.svg") no-repeat center;
565
+ background-size: contain; }
566
+
567
+ .cweb-section .cweb-button.edit-button {
568
+ background: url("../../assets/edit.svg") no-repeat center;
569
+ background-size: contain; }
570
+ .cweb-section .cweb-button.edit-button:hover, .cweb-section .cweb-button.edit-button:active, .cweb-section .cweb-button.edit-button:focus {
571
+ background: url("../../assets/edit_hover.svg") no-repeat center;
572
+ background-size: contain; }
573
+
574
+ .cweb-section .cweb-button.delete-button {
575
+ background: url("../../assets/delete.svg") no-repeat center;
576
+ background-size: contain; }
577
+ .cweb-section .cweb-button.delete-button:hover, .cweb-section .cweb-button.delete-button:active, .cweb-section .cweb-button.delete-button:focus {
578
+ background: url("../../assets/delete_hover.svg") no-repeat center;
579
+ background-size: contain; }
580
+
581
+ .cweb-section > .cweb-section-header {
582
+ display: flex;
583
+ justify-content: space-between;
584
+ flex-direction: row;
585
+ align-items: center;
586
+ border-bottom: 1px solid #eeeeee;
587
+ width: 100%;
588
+ padding: 18px 24px; }
589
+
590
+ .cweb-section > .cweb-section-footer {
591
+ display: flex;
592
+ justify-content: space-between;
593
+ flex-direction: row;
594
+ align-items: center;
595
+ border-top: 1px solid #eeeeee;
596
+ width: 100%;
597
+ padding: 1rem 24px 1rem 24px; }
598
+ .cweb-section > .cweb-section-footer img {
599
+ width: 32px;
600
+ height: 32px; }
601
+
602
+ .cweb-section-text-item .cweb-section-text-item-icon {
603
+ width: 24px;
604
+ height: 24px;
605
+ margin-right: 16px; }
606
+
549
607
  .cweb-loading {
550
608
  display: flex;
551
609
  justify-content: center;
@@ -745,59 +803,6 @@
745
803
  .cweb-radio-group.hasError > .cweb-radio .cweb-radio-icon-container {
746
804
  border: 1px solid #ff6266 !important; }
747
805
 
748
- .cweb-section .cweb-button:last-of-type {
749
- margin-right: 24px; }
750
-
751
- .cweb-section .cweb-button:not(:last-of-type) {
752
- margin-right: 8px; }
753
-
754
- .cweb-section .cweb-button.add-button, .cweb-section .cweb-button.edit-button, .cweb-section .cweb-button.delete-button {
755
- margin-left: auto;
756
- width: 32px;
757
- height: 32px; }
758
-
759
- .cweb-section .cweb-button.add-button {
760
- background: url("../../assets/add.svg") no-repeat center;
761
- background-size: contain; }
762
- .cweb-section .cweb-button.add-button:hover, .cweb-section .cweb-button.add-button:active, .cweb-section .cweb-button.add-button:focus {
763
- background: url("../../assets/add_hover.svg") no-repeat center;
764
- background-size: contain; }
765
-
766
- .cweb-section .cweb-button.edit-button {
767
- background: url("../../assets/edit.svg") no-repeat center;
768
- background-size: contain; }
769
- .cweb-section .cweb-button.edit-button:hover, .cweb-section .cweb-button.edit-button:active, .cweb-section .cweb-button.edit-button:focus {
770
- background: url("../../assets/edit_hover.svg") no-repeat center;
771
- background-size: contain; }
772
-
773
- .cweb-section .cweb-button.delete-button {
774
- background: url("../../assets/delete.svg") no-repeat center;
775
- background-size: contain; }
776
- .cweb-section .cweb-button.delete-button:hover, .cweb-section .cweb-button.delete-button:active, .cweb-section .cweb-button.delete-button:focus {
777
- background: url("../../assets/delete_hover.svg") no-repeat center;
778
- background-size: contain; }
779
-
780
- .cweb-section > .cweb-section-header {
781
- display: flex;
782
- justify-content: space-between;
783
- flex-direction: row;
784
- align-items: center;
785
- border-bottom: 1px solid #eeeeee;
786
- width: 100%;
787
- padding: 18px 24px; }
788
-
789
- .cweb-section > .cweb-section-footer {
790
- display: flex;
791
- justify-content: space-between;
792
- flex-direction: row;
793
- align-items: center;
794
- border-top: 1px solid #eeeeee;
795
- width: 100%;
796
- padding: 1rem 24px 1rem 24px; }
797
- .cweb-section > .cweb-section-footer img {
798
- width: 32px;
799
- height: 32px; }
800
-
801
806
  .cweb-textarea {
802
807
  border: 1px solid #cccccc;
803
808
  border-radius: 4px;
@@ -917,11 +922,6 @@
917
922
  .editor .rdw-editor .rdw-editor-main .DraftEditor-root {
918
923
  margin: 0 12px; }
919
924
 
920
- .cweb-text-list-item .cweb-text-list-item-icon {
921
- width: 24px;
922
- height: 24px;
923
- margin-right: 16px; }
924
-
925
925
  @font-face {
926
926
  font-family: "AvenirNextLTPro-Regular";
927
927
  src: url("../../styles/fonts/avenir/3A0AF8_1_0.eot");
@@ -19,6 +19,33 @@ import htmlToDraft from 'html-to-draftjs';
19
19
  import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css';
20
20
 
21
21
  var Text = function Text(props) {
22
+ /**
23
+ * One might argue that we're duplicating strings in this file.
24
+ * That's how tailwind expects to detect used classes, so please do not make
25
+ * anything dynamic or try to string concat class names.
26
+ * https://v1.tailwindcss.com/docs/controlling-file-size
27
+ */
28
+ var allowedColors = {
29
+ base: "text-slate-700",
30
+ "slate-500": "text-slate-500",
31
+ "slate-200": "text-slate-200",
32
+ red: "text-red-700",
33
+ green: "text-green-700",
34
+ amber: "text-yellow-700",
35
+ white: "text-white",
36
+ "blue-800": "text-blue-800"
37
+ };
38
+ var allowedHoverColors = {
39
+ "blue-900": "hover:text-blue-900",
40
+ white: "hover:text-white"
41
+ }; // What is a group hover? https://v1.tailwindcss.com/docs/pseudo-class-variants#group-hover
42
+
43
+ var allowedGroupHoverColors = {
44
+ "blue-900": "group-hover:text-blue-900",
45
+ white: "group-hover:text-white"
46
+ };
47
+ var selectedHoverColor = props.hoverColor && !props.hoverInGroup && allowedHoverColors[props.hoverColor];
48
+ var selectedGroupHoverColor = props.hoverColor && props.hoverInGroup && allowedGroupHoverColors[props.hoverColor];
22
49
  var containerProps = {
23
50
  "data-test-id": props["data-test-id"],
24
51
  className: classNames( // apply different style classes
@@ -37,17 +64,7 @@ var Text = function Text(props) {
37
64
  inline: props.inline,
38
65
  // FIXME: this class doesn't do anything without a max-width
39
66
  truncate: props.truncate
40
- }, {
41
- "text-slate-700": props.color === "base",
42
- "text-slate-500": props.color === "gray-500",
43
- "text-slate-200": props.color === "gray-200",
44
- "text-red-700": props.color === "red",
45
- "text-green-700": props.color === "green",
46
- "text-yellow-700": props.color === "amber",
47
- "text-blue-700": props.color === "blue",
48
- "text-white": props.color === "white",
49
- "text-primary-dark": props.color === "blue"
50
- }, {
67
+ }, allowedColors[props.color || "base"], selectedHoverColor, selectedGroupHoverColor, {
51
68
  "in-html-link": props.containsDangerousHtml
52
69
  }, //can be used to overwrite other classes like the color
53
70
  props.className)
@@ -948,13 +965,13 @@ var Checkbox = function Checkbox(_ref) {
948
965
  })), /*#__PURE__*/React__default.createElement("div", {
949
966
  className: "flex flex-col"
950
967
  }, text && /*#__PURE__*/React__default.createElement(Text, {
951
- className: "ml-2 select-none text-left",
968
+ className: "ml-2 text-left select-none",
952
969
  text: text,
953
970
  "data-test-id": "checkbox-text"
954
971
  }), explanation && /*#__PURE__*/React__default.createElement(Text, {
955
- className: "ml-2 select-none text-left",
972
+ className: "ml-2 text-left select-none",
956
973
  text: explanation,
957
- color: "gray-500",
974
+ color: "slate-500",
958
975
  "data-test-id": "checkbox-explanation"
959
976
  }))));
960
977
  };
@@ -1429,7 +1446,7 @@ var Dropdown = /*#__PURE__*/function (_PureComponent) {
1429
1446
  "data-test-id": item.text,
1430
1447
  text: item.title,
1431
1448
  type: "sm",
1432
- color: "gray-500",
1449
+ color: "slate-500",
1433
1450
  truncate: true
1434
1451
  })), item.subItems.map(function (subItem) {
1435
1452
  return _this.renderIndividualItem(subItem);
@@ -1698,7 +1715,7 @@ var InfoField = function InfoField(props) {
1698
1715
  }, containerProps), /*#__PURE__*/React__default.createElement(Text, {
1699
1716
  text: props.label,
1700
1717
  type: "sm",
1701
- color: "gray-500",
1718
+ color: "slate-500",
1702
1719
  className: classNames({
1703
1720
  "break-words": props.supportsMultiline
1704
1721
  }, {
@@ -1873,7 +1890,7 @@ Line.propTypes = {
1873
1890
  };
1874
1891
 
1875
1892
  var _excluded$7 = ["children", "className", "onClick"];
1876
- var ListItem = function ListItem(props) {
1893
+ var SectionItem = function SectionItem(props) {
1877
1894
  var children = props.children,
1878
1895
  className = props.className,
1879
1896
  onClick = props.onClick,
@@ -1904,7 +1921,7 @@ var PaginationMenuSmall = function PaginationMenuSmall(props) {
1904
1921
  className: "ml-4",
1905
1922
  text: props.currentPageNumber + " / " + props.pageCount,
1906
1923
  type: "sm",
1907
- color: "gray-500"
1924
+ color: "slate-500"
1908
1925
  }), /*#__PURE__*/React__default.createElement(TertiaryButton, {
1909
1926
  className: "ml-4",
1910
1927
  "data-test-id": "next-button",
@@ -2112,7 +2129,7 @@ var PaginationMenuLarge = function PaginationMenuLarge(props) {
2112
2129
  className: "ml-4 flex flex-row items-center"
2113
2130
  }, /*#__PURE__*/React__default.createElement(Text, {
2114
2131
  text: getSummaryText(props.pageCount, props.currentPageNumber, props.localization, props.pageSize, props.resultCount),
2115
- color: "gray-500"
2132
+ color: "slate-500"
2116
2133
  }), /*#__PURE__*/React__default.createElement(SecondaryButton, {
2117
2134
  "data-test-id": "prev-button",
2118
2135
  text: props.localization.previous,
@@ -2216,7 +2233,7 @@ function ListTableCell(_ref) {
2216
2233
  text: emptyValue
2217
2234
  }, textProps, {
2218
2235
  className: textClassName,
2219
- color: "gray-500"
2236
+ color: "slate-500"
2220
2237
  })), hasValue && isString(value) && /*#__PURE__*/React__default.createElement(Text, Object.assign({
2221
2238
  text: value
2222
2239
  }, textProps, {
@@ -2350,7 +2367,8 @@ function ListTable(_ref) {
2350
2367
  src: SearchNotFoundImage,
2351
2368
  alt: "no-image-found"
2352
2369
  }), /*#__PURE__*/React__default.createElement(Text, {
2353
- className: classNames("no-item-found-text", "w-56 text-base text-gray-600 text-center whitespace-pre-wrap"),
2370
+ className: classNames("no-item-found-text", "w-56 text-base text-center whitespace-pre-wrap"),
2371
+ color: "slate-500",
2354
2372
  text: configuration.emptyListText
2355
2373
  }))))), !showEmptyView && pageCount > 0 && onPaginationChange && /*#__PURE__*/React__default.createElement("tfoot", null, /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", {
2356
2374
  colSpan: configuration.fields.length
@@ -2683,11 +2701,7 @@ var NavMenuItem = function NavMenuItem(props) {
2683
2701
  currentImg = _useState[0],
2684
2702
  setCurrentImg = _useState[1];
2685
2703
 
2686
- var _useState2 = useState(props.isSelected ? "white" : "gray-200"),
2687
- textColor = _useState2[0],
2688
- setTextColor = _useState2[1];
2689
-
2690
- var classes = classNames(["flex", "flex-row", "items-center", "w-auto", "rounded", "px-2", "py-1", "my-2", "mx-2", "hover:bg-gray-600", "transition", "ease-in", "duration-150", "lg:last:pb-2", "focus:outline-primary"], {
2704
+ var classes = classNames(["flex", "flex-row", "items-center", "w-auto", "rounded", "px-2", "py-1", "my-2", "mx-2", "hover:bg-gray-600", "transition", "ease-in", "duration-150", "lg:last:pb-2", "focus:outline-primary", "group"], {
2691
2705
  "bg-nav-menu": !props.isSelected,
2692
2706
  "bg-gray-600": props.isSelected
2693
2707
  });
@@ -2695,14 +2709,12 @@ var NavMenuItem = function NavMenuItem(props) {
2695
2709
  var handleOnMouseOver = function handleOnMouseOver() {
2696
2710
  if (!props.isSelected) {
2697
2711
  setCurrentImg(props.imgOnHover);
2698
- setTextColor("white");
2699
2712
  }
2700
2713
  };
2701
2714
 
2702
2715
  var handleOnMouseOut = function handleOnMouseOut() {
2703
2716
  if (!props.isSelected) {
2704
2717
  setCurrentImg(props.img);
2705
- setTextColor("gray-200");
2706
2718
  }
2707
2719
  };
2708
2720
 
@@ -2719,7 +2731,9 @@ var NavMenuItem = function NavMenuItem(props) {
2719
2731
  }), /*#__PURE__*/createElement(Text, {
2720
2732
  type: "strong",
2721
2733
  text: props.title,
2722
- color: textColor
2734
+ hoverInGroup: true,
2735
+ color: "slate-200",
2736
+ hoverColor: "white"
2723
2737
  }));
2724
2738
 
2725
2739
  function handleMenuClick(event) {
@@ -2812,18 +2826,26 @@ var TextLink = function TextLink(props) {
2812
2826
 
2813
2827
  var NotificationBanner = function NotificationBanner(props) {
2814
2828
  var classes = classNames("w-full px-6 py-2 flex flex-row items-center border border-solid rounded", props.className, {
2815
- "bg-slate-100 border-slate-700": props.color === "base",
2816
- "bg-blue-100 border-blue-700": props.color === "blue",
2817
- "bg-red-100 border-red-700": props.color === "red",
2818
- "bg-green-100 border-green-700": props.color === "green",
2819
- "bg-yellow-100 border-yellow-700": props.color === "amber"
2829
+ "bg-slate-50 border-slate-700": props.color === "base",
2830
+ "bg-blue-50 border-blue-700": props.color === "blue",
2831
+ "bg-red-50 border-red-700": props.color === "red",
2832
+ "bg-green-50 border-green-700": props.color === "green",
2833
+ "bg-yellow-50 border-yellow-700": props.color === "amber"
2820
2834
  });
2835
+ var textColor = {
2836
+ red: "red",
2837
+ amber: "amber",
2838
+ green: "green",
2839
+ base: "base",
2840
+ // Blue must be 800 here to pass the contrast test
2841
+ blue: "blue-800"
2842
+ };
2821
2843
  return /*#__PURE__*/React__default.createElement("div", {
2822
2844
  className: classes
2823
2845
  }, props.icon, /*#__PURE__*/React__default.createElement(Text, {
2824
- className: "first:ml-0 ml-4",
2846
+ className: "ml-4 first:ml-0",
2825
2847
  text: props.text,
2826
- color: props.color
2848
+ color: props.color ? textColor[props.color] : "base"
2827
2849
  }), props.linkProps && /*#__PURE__*/React__default.createElement(TextLink, {
2828
2850
  className: "ml-4",
2829
2851
  text: props.linkProps.text,
@@ -2990,7 +3012,7 @@ var Step = function Step(_ref) {
2990
3012
  }), /*#__PURE__*/React__default.createElement(Text, {
2991
3013
  text: localization.step + " " + stepNumber,
2992
3014
  type: "strong",
2993
- color: active ? "blue" : "gray-500"
3015
+ color: active ? "blue-800" : "slate-500"
2994
3016
  }), /*#__PURE__*/React__default.createElement(Text, {
2995
3017
  text: title,
2996
3018
  type: "strong"
@@ -3515,7 +3537,7 @@ var SettingsMenuButton = function SettingsMenuButton(props) {
3515
3537
  SwitcherItem.propTypes = {
3516
3538
  name: PropTypes.string,
3517
3539
  icon: /*#__PURE__*/PropTypes.shape({
3518
- "default": /*#__PURE__*/PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
3540
+ default: /*#__PURE__*/PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
3519
3541
  active: /*#__PURE__*/PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
3520
3542
  showBadge: PropTypes.bool
3521
3543
  }),
@@ -3544,7 +3566,7 @@ function SwitcherItem(_ref) {
3544
3566
  });
3545
3567
  var calculatedIcon;
3546
3568
 
3547
- if (icon && typeof icon["default"] === "string") {
3569
+ if (icon && typeof icon.default === "string") {
3548
3570
  calculatedIcon = isSelected ? /*#__PURE__*/React__default.createElement("img", {
3549
3571
  alt: "",
3550
3572
  className: "",
@@ -3552,10 +3574,10 @@ function SwitcherItem(_ref) {
3552
3574
  }) : /*#__PURE__*/React__default.createElement("img", {
3553
3575
  alt: "",
3554
3576
  className: "",
3555
- src: icon["default"]
3577
+ src: icon.default
3556
3578
  });
3557
3579
  } else if (icon) {
3558
- calculatedIcon = isSelected ? icon.active : icon["default"];
3580
+ calculatedIcon = isSelected ? icon.active : icon.default;
3559
3581
  }
3560
3582
 
3561
3583
  return /*#__PURE__*/React__default.createElement("li", {
@@ -3611,7 +3633,7 @@ Switcher.propTypes = {
3611
3633
  items: /*#__PURE__*/PropTypes.arrayOf( /*#__PURE__*/PropTypes.shape({
3612
3634
  name: PropTypes.string,
3613
3635
  icon: /*#__PURE__*/PropTypes.shape({
3614
- "default": /*#__PURE__*/PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
3636
+ default: /*#__PURE__*/PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
3615
3637
  active: /*#__PURE__*/PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
3616
3638
  showBadge: PropTypes.bool
3617
3639
  }),
@@ -3755,22 +3777,6 @@ var TagSize;
3755
3777
  TagSize["base"] = "base";
3756
3778
  })(TagSize || (TagSize = {}));
3757
3779
 
3758
- var TagGroup = function TagGroup(_ref) {
3759
- var tags = _ref.tags,
3760
- _ref$tagSize = _ref.tagSize,
3761
- tagSize = _ref$tagSize === void 0 ? TagSize.base : _ref$tagSize,
3762
- className = _ref.className;
3763
- return /*#__PURE__*/React__default.createElement("div", {
3764
- className: classNames("flex flex-row flex-wrap", className)
3765
- }, tags.map(function (tag) {
3766
- return /*#__PURE__*/React__default.createElement(Tag, Object.assign({
3767
- size: tagSize
3768
- }, tag, {
3769
- className: classNames("mr-2 last:mr-0 mb-2")
3770
- }));
3771
- }));
3772
- };
3773
-
3774
3780
  var TagColorTheme;
3775
3781
 
3776
3782
  (function (TagColorTheme) {
@@ -3782,29 +3788,47 @@ var TagColorTheme;
3782
3788
  })(TagColorTheme || (TagColorTheme = {}));
3783
3789
 
3784
3790
  var Tag = function Tag(_ref) {
3791
+ var _textColor;
3792
+
3785
3793
  var text = _ref.text,
3786
3794
  _ref$colorTheme = _ref.colorTheme,
3787
3795
  colorTheme = _ref$colorTheme === void 0 ? TagColorTheme.Gray : _ref$colorTheme,
3788
3796
  className = _ref.className,
3789
3797
  _ref$size = _ref.size,
3790
3798
  size = _ref$size === void 0 ? TagSize.base : _ref$size;
3791
- var containerClassName = classNames("inline py-1 px-2 rounded-lg", className, {
3792
- "bg-red-100 text-red-700": colorTheme === TagColorTheme.Red,
3793
- "bg-orange-100 text-amber-700": colorTheme === TagColorTheme.Amber,
3794
- "bg-green-100 text-green-800": colorTheme === TagColorTheme.Green,
3795
- "bg-slate-100 text-slate-600": colorTheme === TagColorTheme.Gray,
3796
- "bg-blue-50 text-blue-800": colorTheme === TagColorTheme.Blue
3797
- });
3799
+ var textColor = (_textColor = {}, _textColor[TagColorTheme.Red] = "red", _textColor[TagColorTheme.Amber] = "amber", _textColor[TagColorTheme.Green] = "green", _textColor[TagColorTheme.Gray] = "base", _textColor[TagColorTheme.Blue] = "blue-800", _textColor);
3798
3800
  return /*#__PURE__*/React__default.createElement("div", {
3799
- className: containerClassName
3801
+ className: classNames("inline py-1 px-2 rounded-lg", className, {
3802
+ "bg-red-50": colorTheme === TagColorTheme.Red,
3803
+ "bg-orange-50": colorTheme === TagColorTheme.Amber,
3804
+ "bg-green-50": colorTheme === TagColorTheme.Green,
3805
+ "bg-slate-50": colorTheme === TagColorTheme.Gray,
3806
+ "bg-blue-50": colorTheme === TagColorTheme.Blue
3807
+ })
3800
3808
  }, /*#__PURE__*/React__default.createElement(Text, {
3801
3809
  inline: true,
3802
- color: "inherit",
3810
+ color: textColor[colorTheme],
3803
3811
  text: text,
3804
3812
  type: size === TagSize.small ? "sm" : "base"
3805
3813
  }));
3806
3814
  };
3807
3815
 
3816
+ var TagGroup = function TagGroup(_ref) {
3817
+ var tags = _ref.tags,
3818
+ _ref$tagSize = _ref.tagSize,
3819
+ tagSize = _ref$tagSize === void 0 ? TagSize.base : _ref$tagSize,
3820
+ className = _ref.className;
3821
+ return /*#__PURE__*/React__default.createElement("div", {
3822
+ className: classNames("flex flex-row flex-wrap", className)
3823
+ }, tags.map(function (tag) {
3824
+ return /*#__PURE__*/React__default.createElement(Tag, Object.assign({
3825
+ size: tagSize
3826
+ }, tag, {
3827
+ className: classNames("mr-2 last:mr-0 mb-2")
3828
+ }));
3829
+ }));
3830
+ };
3831
+
3808
3832
  var _excluded$e = ["className", "value", "name", "placeholder", "maxLength", "rows", "resizable", "isDisabled", "icon", "onChange", "onBlur", "onFocus", "onKeyPress", "onKeyDown", "onCtrlEnter"];
3809
3833
  var RESIZE_TYPES = {
3810
3834
  NONE: "none",
@@ -3993,7 +4017,7 @@ var TextEditorV2 = function TextEditorV2(_ref) {
3993
4017
 
3994
4018
  var _excluded$f = ["text", "icon", "className", "iconClass", "onClick"];
3995
4019
 
3996
- function TextListItem(props) {
4020
+ function SectionItemWithContent(props) {
3997
4021
  var text = props.text,
3998
4022
  icon = props.icon,
3999
4023
  className = props.className,
@@ -4001,9 +4025,9 @@ function TextListItem(props) {
4001
4025
  onClick = props.onClick,
4002
4026
  rest = _objectWithoutPropertiesLoose(props, _excluded$f);
4003
4027
 
4004
- var mergedClasses = classNames("cweb-text-list-item", className);
4005
- var iconClasses = classNames("cweb-text-list-item-icon", iconClass);
4006
- return /*#__PURE__*/React__default.createElement(ListItem, _extends({
4028
+ var mergedClasses = classNames("cweb-section-text-item", className);
4029
+ var iconClasses = classNames("cweb-section-text-item-icon", iconClass);
4030
+ return /*#__PURE__*/React__default.createElement(SectionItem, _extends({
4007
4031
  className: mergedClasses,
4008
4032
  onClick: onClick
4009
4033
  }, rest), icon && /*#__PURE__*/React__default.createElement("img", {
@@ -4015,7 +4039,7 @@ function TextListItem(props) {
4015
4039
  }));
4016
4040
  }
4017
4041
 
4018
- TextListItem.propTypes = {
4042
+ SectionItemWithContent.propTypes = {
4019
4043
  text: PropTypes.string.isRequired,
4020
4044
  icon: /*#__PURE__*/PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
4021
4045
  className: PropTypes.string,
@@ -4051,7 +4075,7 @@ function ViewItem(_ref) {
4051
4075
  className: "vitals-view-item-title-line flex justify-start flex-row items-start"
4052
4076
  }, titlePropsMerged && /*#__PURE__*/React__default.createElement(Text, Object.assign({
4053
4077
  className: classNames(titlePropsMerged.className, "vitals-view-item-title mb-1 mr-2"),
4054
- color: "gray-500"
4078
+ color: "slate-500"
4055
4079
  }, titlePropsMerged)), titleAccessory), contentPropsMerged && (contentPropsMerged == null ? void 0 : contentPropsMerged.map(function (textProps) {
4056
4080
  return /*#__PURE__*/React__default.createElement(Text, Object.assign({}, textProps, {
4057
4081
  key: textProps.key || textProps.text
@@ -4891,5 +4915,5 @@ var SearchCancelIcon$1 = function SearchCancelIcon(props) {
4891
4915
  }));
4892
4916
  };
4893
4917
 
4894
- 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$1 as HamburgerIcon, HeartIcon, INPUT_TYPES, InfoBlock, InfoField, Input, LeftArrowIcon, LightBulbIcon, Line, ListItem, ListTable, LoadingIndicator, LockIcon, Menu, MessagesIcon, MultiSelect, NavLayout, NavMenu, NotesIcon, NotificationBanner, Page, PaginationMenu, PinIcon, PreviewPhone, PrimaryButton, PrintIcon, Radio, RadioGroup, RightArrowIcon, SearchCancelIcon$1 as SearchCancelIcon, SearchIcon$1 as SearchIcon, SecondaryButton, Section, SettingsMenuButton, SmallCircleIcon, SmallDiamondIcon, SmallSquareIcon, SpaceRocketIcon, Spinner, StarIcon$1 as StarIcon, Steps, Switcher, TabLinks, Tabbar, Tag, TagGroup, TertiaryButton, Text, Textarea as TextArea, TextEditor, TextEditorV2, TextLink, TextListItem, Title, ViewItem };
4918
+ 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$1 as HamburgerIcon, HeartIcon, INPUT_TYPES, InfoBlock, InfoField, Input, LeftArrowIcon, LightBulbIcon, Line, ListTable, LoadingIndicator, LockIcon, Menu, MessagesIcon, MultiSelect, NavLayout, NavMenu, NotesIcon, NotificationBanner, Page, PaginationMenu, PinIcon, PreviewPhone, PrimaryButton, PrintIcon, Radio, RadioGroup, RightArrowIcon, SearchCancelIcon$1 as SearchCancelIcon, SearchIcon$1 as SearchIcon, SecondaryButton, Section, SectionItem, SectionItemWithContent, SettingsMenuButton, SmallCircleIcon, SmallDiamondIcon, SmallSquareIcon, SpaceRocketIcon, Spinner, StarIcon$1 as StarIcon, Steps, Switcher, TabLinks, Tabbar, Tag, TagGroup, TertiaryButton, Text, Textarea as TextArea, TextEditor, TextEditorV2, TextLink, Title, ViewItem };
4895
4919
  //# sourceMappingURL=web-ui.esm.js.map