@luscii-healthtech/web-ui 2.69.2 → 2.70.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.
@@ -0,0 +1,3 @@
1
+ import { IconProps } from "./types/IconProps.type";
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,6 +1,7 @@
1
1
  export { default as AddIcon } from "./AddIcon";
2
2
  export { default as AlertsIcon } from "./AlertsIcon";
3
3
  export { default as BellIcon } from "./BellIcon";
4
+ export { default as BluetoothIcon } from "./BluetoothIcon";
4
5
  export { default as ChartIcon } from "./ChartIcon";
5
6
  export { default as ChartLineColoredIcon } from "./ChartLineColoredIcon";
6
7
  export { default as ChatBoxIcon } from "./ChatBoxIcon";
@@ -9,6 +9,10 @@ export interface TableFieldConfig<Item> {
9
9
  export declare type TableFieldContent<Item> = TableFieldText | [TableFieldAction<Item>?, TableFieldAction<Item>?];
10
10
  export interface TableFieldText {
11
11
  text: string;
12
+ description?: {
13
+ content: string;
14
+ breakAllWord?: boolean;
15
+ };
12
16
  breakAllWord?: boolean;
13
17
  tag?: {
14
18
  text: string;
@@ -726,6 +726,21 @@ var SvgBellIcon = function SvgBellIcon(props) {
726
726
 
727
727
  var BellIcon = /*#__PURE__*/IconWrapper(SvgBellIcon);
728
728
 
729
+ var SvgBluetoothIcon = function SvgBluetoothIcon(props) {
730
+ return /*#__PURE__*/React__default.createElement("svg", _extends({
731
+ xmlns: "http://www.w3.org/2000/svg",
732
+ width: 24,
733
+ height: 24,
734
+ fill: "none",
735
+ viewBox: "0 0 24 24"
736
+ }, props), /*#__PURE__*/React__default.createElement("path", {
737
+ fill: "currentColor",
738
+ d: "m17 7-4.29-4.29c-.63-.63-1.71-.19-1.71.7v6.18L7.11 5.7A.996.996 0 1 0 5.7 7.11L10.59 12 5.7 16.89a.996.996 0 1 0 1.41 1.41L11 14.41v6.18c0 .89 1.08 1.34 1.71.71L17 17a.996.996 0 0 0 0-1.41L13.41 12 17 8.42c.39-.39.39-1.03 0-1.42Zm-4-1.17 1.88 1.88L13 9.59V5.83Zm1.88 10.46L13 18.17v-3.76l1.88 1.88Z"
739
+ }));
740
+ };
741
+
742
+ var BluetoothIcon = /*#__PURE__*/IconWrapper(SvgBluetoothIcon);
743
+
729
744
  var SvgChartIcon = function SvgChartIcon(props) {
730
745
  return /*#__PURE__*/React__default.createElement("svg", _extends({
731
746
  xmlns: "http://www.w3.org/2000/svg",
@@ -1812,6 +1827,7 @@ var Icons = {
1812
1827
  AddIcon: AddIcon,
1813
1828
  AlertsIcon: AlertsIcon,
1814
1829
  BellIcon: BellIcon,
1830
+ BluetoothIcon: BluetoothIcon,
1815
1831
  ChartIcon: ChartIcon,
1816
1832
  ChartLineColoredIcon: ChartLineColoredIcon,
1817
1833
  ChatBoxIcon: ChatBoxIcon,
@@ -5096,7 +5112,7 @@ var Tag = function Tag(_ref) {
5096
5112
  };
5097
5113
 
5098
5114
  function isTableFieldText(content) {
5099
- return "text" in content || "tag" in content;
5115
+ return "text" in content || "tag" in content || "description" in content;
5100
5116
  }
5101
5117
  function isTableFieldAction(content) {
5102
5118
  return Array.isArray(content) && content.some(function (action) {
@@ -5109,6 +5125,7 @@ function TableBodyRowDataCell(props) {
5109
5125
 
5110
5126
  var content = props.fieldConfig.content(props.item);
5111
5127
  var emptyFieldContentText = (_props$emptyFieldCont = props.emptyFieldContentText) != null ? _props$emptyFieldCont : "";
5128
+ var isTextCellEmpty = isTableFieldText(content) && !content.text && !content.tag;
5112
5129
  return /*#__PURE__*/React__default.createElement("td", {
5113
5130
  className: classNames("px-2 first:pl-6 last:pr-6", {
5114
5131
  "align-top": !isTableFieldAction(content)
@@ -5120,14 +5137,24 @@ function TableBodyRowDataCell(props) {
5120
5137
  }, /*#__PURE__*/React__default.createElement(Tag, {
5121
5138
  text: content.tag.text,
5122
5139
  colorTheme: content.tag.color
5123
- })), /*#__PURE__*/React__default.createElement(Text, {
5124
- className: classNames("py-4 text-left leading-5", {
5140
+ })), /*#__PURE__*/React__default.createElement("div", {
5141
+ className: "flex flex-col py-4"
5142
+ }, /*#__PURE__*/React__default.createElement(Text, {
5143
+ className: classNames("text-left leading-5", {
5125
5144
  "break-all": content.breakAllWord,
5126
5145
  "break-words": !content.breakAllWord
5127
5146
  }),
5128
- text: content.text === "" ? emptyFieldContentText : content.text,
5147
+ text: isTextCellEmpty ? emptyFieldContentText : content.text,
5129
5148
  type: "base"
5130
- })), isTableFieldAction(content) && /*#__PURE__*/React__default.createElement("div", {
5149
+ }), content.description && /*#__PURE__*/React__default.createElement(Text, {
5150
+ className: classNames({
5151
+ "break-all": content.description.breakAllWord,
5152
+ "break-words": !content.description.breakAllWord
5153
+ }),
5154
+ text: content.description.content,
5155
+ type: "sm",
5156
+ color: "slate-500"
5157
+ }))), isTableFieldAction(content) && /*#__PURE__*/React__default.createElement("div", {
5131
5158
  className: classNames("flex flex-row justify-end", "transition-opacity ease-in-out duration-300", {
5132
5159
  "opacity-0": props.fieldConfig.onlyShowContentOnHovering,
5133
5160
  "group-hover:opacity-100": props.fieldConfig.onlyShowContentOnHovering
@@ -8814,6 +8841,7 @@ exports.AlertsIcon = AlertsIcon;
8814
8841
  exports.Avatar = Avatar;
8815
8842
  exports.Badge = Badge;
8816
8843
  exports.BellIcon = BellIcon;
8844
+ exports.BluetoothIcon = BluetoothIcon;
8817
8845
  exports.Breadcrumbs = Breadcrumbs;
8818
8846
  exports.CRUDPage = CRUDPage;
8819
8847
  exports.Card = Card;