@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.
- package/dist/components/Icons/BluetoothIcon.d.ts +3 -0
- package/dist/components/Icons/index.d.ts +1 -0
- package/dist/components/Table/Table.types.d.ts +4 -0
- package/dist/web-ui.cjs.development.js +33 -5
- 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 +33 -6
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/web-ui.esm.js
CHANGED
|
@@ -718,6 +718,21 @@ var SvgBellIcon = function SvgBellIcon(props) {
|
|
|
718
718
|
|
|
719
719
|
var BellIcon = /*#__PURE__*/IconWrapper(SvgBellIcon);
|
|
720
720
|
|
|
721
|
+
var SvgBluetoothIcon = function SvgBluetoothIcon(props) {
|
|
722
|
+
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
723
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
724
|
+
width: 24,
|
|
725
|
+
height: 24,
|
|
726
|
+
fill: "none",
|
|
727
|
+
viewBox: "0 0 24 24"
|
|
728
|
+
}, props), /*#__PURE__*/React__default.createElement("path", {
|
|
729
|
+
fill: "currentColor",
|
|
730
|
+
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"
|
|
731
|
+
}));
|
|
732
|
+
};
|
|
733
|
+
|
|
734
|
+
var BluetoothIcon = /*#__PURE__*/IconWrapper(SvgBluetoothIcon);
|
|
735
|
+
|
|
721
736
|
var SvgChartIcon = function SvgChartIcon(props) {
|
|
722
737
|
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
723
738
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1804,6 +1819,7 @@ var Icons = {
|
|
|
1804
1819
|
AddIcon: AddIcon,
|
|
1805
1820
|
AlertsIcon: AlertsIcon,
|
|
1806
1821
|
BellIcon: BellIcon,
|
|
1822
|
+
BluetoothIcon: BluetoothIcon,
|
|
1807
1823
|
ChartIcon: ChartIcon,
|
|
1808
1824
|
ChartLineColoredIcon: ChartLineColoredIcon,
|
|
1809
1825
|
ChatBoxIcon: ChatBoxIcon,
|
|
@@ -5088,7 +5104,7 @@ var Tag = function Tag(_ref) {
|
|
|
5088
5104
|
};
|
|
5089
5105
|
|
|
5090
5106
|
function isTableFieldText(content) {
|
|
5091
|
-
return "text" in content || "tag" in content;
|
|
5107
|
+
return "text" in content || "tag" in content || "description" in content;
|
|
5092
5108
|
}
|
|
5093
5109
|
function isTableFieldAction(content) {
|
|
5094
5110
|
return Array.isArray(content) && content.some(function (action) {
|
|
@@ -5101,6 +5117,7 @@ function TableBodyRowDataCell(props) {
|
|
|
5101
5117
|
|
|
5102
5118
|
var content = props.fieldConfig.content(props.item);
|
|
5103
5119
|
var emptyFieldContentText = (_props$emptyFieldCont = props.emptyFieldContentText) != null ? _props$emptyFieldCont : "";
|
|
5120
|
+
var isTextCellEmpty = isTableFieldText(content) && !content.text && !content.tag;
|
|
5104
5121
|
return /*#__PURE__*/React__default.createElement("td", {
|
|
5105
5122
|
className: classNames("px-2 first:pl-6 last:pr-6", {
|
|
5106
5123
|
"align-top": !isTableFieldAction(content)
|
|
@@ -5112,14 +5129,24 @@ function TableBodyRowDataCell(props) {
|
|
|
5112
5129
|
}, /*#__PURE__*/React__default.createElement(Tag, {
|
|
5113
5130
|
text: content.tag.text,
|
|
5114
5131
|
colorTheme: content.tag.color
|
|
5115
|
-
})), /*#__PURE__*/React__default.createElement(
|
|
5116
|
-
className:
|
|
5132
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
5133
|
+
className: "flex flex-col py-4"
|
|
5134
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
5135
|
+
className: classNames("text-left leading-5", {
|
|
5117
5136
|
"break-all": content.breakAllWord,
|
|
5118
5137
|
"break-words": !content.breakAllWord
|
|
5119
5138
|
}),
|
|
5120
|
-
text:
|
|
5139
|
+
text: isTextCellEmpty ? emptyFieldContentText : content.text,
|
|
5121
5140
|
type: "base"
|
|
5122
|
-
})
|
|
5141
|
+
}), content.description && /*#__PURE__*/React__default.createElement(Text, {
|
|
5142
|
+
className: classNames({
|
|
5143
|
+
"break-all": content.description.breakAllWord,
|
|
5144
|
+
"break-words": !content.description.breakAllWord
|
|
5145
|
+
}),
|
|
5146
|
+
text: content.description.content,
|
|
5147
|
+
type: "sm",
|
|
5148
|
+
color: "slate-500"
|
|
5149
|
+
}))), isTableFieldAction(content) && /*#__PURE__*/React__default.createElement("div", {
|
|
5123
5150
|
className: classNames("flex flex-row justify-end", "transition-opacity ease-in-out duration-300", {
|
|
5124
5151
|
"opacity-0": props.fieldConfig.onlyShowContentOnHovering,
|
|
5125
5152
|
"group-hover:opacity-100": props.fieldConfig.onlyShowContentOnHovering
|
|
@@ -8800,5 +8827,5 @@ var Card = function Card(_ref) {
|
|
|
8800
8827
|
}), children);
|
|
8801
8828
|
};
|
|
8802
8829
|
|
|
8803
|
-
export { AccordionList, AddIcon, AlertsIcon, Avatar, Badge, BellIcon, Breadcrumbs, CRUDPage, Card, Carousel, CenteredHero, ChartIcon, ChartLineColoredIcon, ChatBoxIcon, CheckIcon, Checkbox, CheckboxList, CheckboxListModal, ChevronDoubleIcon, ChevronDownIcon, ChevronRightIcon, ConfirmationDialog, CrossIcon, Datepicker as DatePicker, DeleteIcon, Divider, DownArrowIcon, DragHandle, DragIcon, Dropdown, Dropzone, EditIcon, EmptyIcon, EmptyListMessage, EmptyStateDashboardIcon, ErrorBlock, ExclamationMarkIcon, EyeIcon, FlexColumn, FlexRow, Form, FullPageModal, GearColoredIcon, GearIcon, GenericForm, GroupColoredIcon, GroupIcon, HamburgerIcon, HeartIcon, INPUT_TYPES, Icon, ImageIcon, ImagePicker, InfoBlock, InfoField, InfoIcon, Input, LeftArrowIcon, LightBulbIcon, Line, LinkIcon, List, ListItem, LoadingIndicator, LockIcon, Menu, MessagesIcon, Modal, MouseIcon, MultiSelect, NavLayout, NavMenu, NotesIcon, NotificationBanner, Page, PageHeader, PaginationMenu, PinIcon, PreviewPhone, PrimaryButton, PrintIcon, Radio, RadioGroup, RadioGroupV2, RadioV2, RightArrowIcon, SearchCancelIcon, SearchIcon, SearchInput, SecondaryButton, Section, SectionItem, SectionItemWithContent, Select, SettingsMenuButton, SmallCircleIcon, SmallDiamondIcon, SmallSquareIcon, SpaceRocketIcon, Spinner, StarIcon, StatusColoredIcon, Steps, Switcher, TOASTER_TYPE_OPTIONS, TabLinks, Tabbar, Table, Tag, TagGroup, TertiaryButton, Text, TextEditor, TextEditorV2, TextLink, Textarea, Timeline, Title, Toaster, ViewItem, WarningIcon, getDndListItemProps, toast };
|
|
8830
|
+
export { AccordionList, AddIcon, AlertsIcon, Avatar, Badge, BellIcon, BluetoothIcon, Breadcrumbs, CRUDPage, Card, Carousel, CenteredHero, ChartIcon, ChartLineColoredIcon, ChatBoxIcon, CheckIcon, Checkbox, CheckboxList, CheckboxListModal, ChevronDoubleIcon, ChevronDownIcon, ChevronRightIcon, ConfirmationDialog, CrossIcon, Datepicker as DatePicker, DeleteIcon, Divider, DownArrowIcon, DragHandle, DragIcon, Dropdown, Dropzone, EditIcon, EmptyIcon, EmptyListMessage, EmptyStateDashboardIcon, ErrorBlock, ExclamationMarkIcon, EyeIcon, FlexColumn, FlexRow, Form, FullPageModal, GearColoredIcon, GearIcon, GenericForm, GroupColoredIcon, GroupIcon, HamburgerIcon, HeartIcon, INPUT_TYPES, Icon, ImageIcon, ImagePicker, InfoBlock, InfoField, InfoIcon, Input, LeftArrowIcon, LightBulbIcon, Line, LinkIcon, List, ListItem, LoadingIndicator, LockIcon, Menu, MessagesIcon, Modal, MouseIcon, MultiSelect, NavLayout, NavMenu, NotesIcon, NotificationBanner, Page, PageHeader, PaginationMenu, PinIcon, PreviewPhone, PrimaryButton, PrintIcon, Radio, RadioGroup, RadioGroupV2, RadioV2, RightArrowIcon, SearchCancelIcon, SearchIcon, SearchInput, SecondaryButton, Section, SectionItem, SectionItemWithContent, Select, SettingsMenuButton, SmallCircleIcon, SmallDiamondIcon, SmallSquareIcon, SpaceRocketIcon, Spinner, StarIcon, StatusColoredIcon, Steps, Switcher, TOASTER_TYPE_OPTIONS, TabLinks, Tabbar, Table, Tag, TagGroup, TertiaryButton, Text, TextEditor, TextEditorV2, TextLink, Textarea, Timeline, Title, Toaster, ViewItem, WarningIcon, getDndListItemProps, toast };
|
|
8804
8831
|
//# sourceMappingURL=web-ui.esm.js.map
|