@luscii-healthtech/web-ui 0.3.0 → 0.4.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.
- package/dist/components/Section/SectionItem.d.ts +9 -0
- package/dist/components/{TextListItem/TextListItem.d.ts → Section/SectionItemWithContent.d.ts} +3 -3
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/components/Tag/Tag.utils.d.ts +4 -0
- package/dist/components/Tag/TagGroup.d.ts +2 -5
- package/dist/index.d.ts +2 -2
- package/dist/web-ui-tailwind.css +2111 -0
- package/dist/web-ui.cjs.development.css +70 -70
- package/dist/web-ui.cjs.development.js +29 -29
- package/dist/web-ui.cjs.development.js.map +1 -1
- package/dist/web-ui.cjs.production.min.css +70 -70
- 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.css +70 -70
- package/dist/web-ui.esm.js +28 -28
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +13 -5
- package/src/components/{ListItem/ListItem.scss → Section/SectionItem.scss} +0 -0
- package/src/components/{ListItem/ListItem.tsx → Section/SectionItem.tsx} +7 -7
- package/src/components/{TextListItem/TextListItem.js → Section/SectionItemWithContent.js} +10 -9
- package/src/components/{TextListItem/TextListItem.scss → Section/SectionItemWithContent.scss} +2 -2
- package/src/components/Tag/Tag.tsx +1 -1
- package/src/components/Tag/Tag.utils.ts +4 -0
- package/src/components/Tag/TagGroup.tsx +12 -8
- package/src/index.tsx +4 -4
- package/dist/components/ListItem/ListItem.d.ts +0 -9
|
@@ -190,6 +190,18 @@
|
|
|
190
190
|
.cweb-checkbox.type-switch.is-checked .cweb-checkbox-icon-container:after {
|
|
191
191
|
left: 32px; }
|
|
192
192
|
|
|
193
|
+
.vitals-confirmation-dialog {
|
|
194
|
+
margin-top: 4rem !important; }
|
|
195
|
+
.vitals-confirmation-dialog .vitals-confirmation-dialog-content {
|
|
196
|
+
padding: 24px; }
|
|
197
|
+
.vitals-confirmation-dialog .vitals-confirmation-dialog-content .vitals-confirmation-dialog-action-container {
|
|
198
|
+
display: flex;
|
|
199
|
+
justify-content: space-between;
|
|
200
|
+
flex-direction: row;
|
|
201
|
+
align-items: center;
|
|
202
|
+
width: 100%;
|
|
203
|
+
margin-top: 16px; }
|
|
204
|
+
|
|
193
205
|
.cweb-box-shadow-default {
|
|
194
206
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.24), 0 0 2px 0 rgba(0, 0, 0, 0.12); }
|
|
195
207
|
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
@@ -432,18 +444,6 @@
|
|
|
432
444
|
.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--outside-month {
|
|
433
445
|
color: #cccccc; }
|
|
434
446
|
|
|
435
|
-
.vitals-confirmation-dialog {
|
|
436
|
-
margin-top: 4rem !important; }
|
|
437
|
-
.vitals-confirmation-dialog .vitals-confirmation-dialog-content {
|
|
438
|
-
padding: 24px; }
|
|
439
|
-
.vitals-confirmation-dialog .vitals-confirmation-dialog-content .vitals-confirmation-dialog-action-container {
|
|
440
|
-
display: flex;
|
|
441
|
-
justify-content: space-between;
|
|
442
|
-
flex-direction: row;
|
|
443
|
-
align-items: center;
|
|
444
|
-
width: 100%;
|
|
445
|
-
margin-top: 16px; }
|
|
446
|
-
|
|
447
447
|
.cweb-box-shadow-default {
|
|
448
448
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.24), 0 0 2px 0 rgba(0, 0, 0, 0.12); }
|
|
449
449
|
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
@@ -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");
|
|
@@ -1898,7 +1898,7 @@ Line.propTypes = {
|
|
|
1898
1898
|
};
|
|
1899
1899
|
|
|
1900
1900
|
var _excluded$7 = ["children", "className", "onClick"];
|
|
1901
|
-
var
|
|
1901
|
+
var SectionItem = function SectionItem(props) {
|
|
1902
1902
|
var children = props.children,
|
|
1903
1903
|
className = props.className,
|
|
1904
1904
|
onClick = props.onClick,
|
|
@@ -3545,7 +3545,7 @@ var SettingsMenuButton = function SettingsMenuButton(props) {
|
|
|
3545
3545
|
SwitcherItem.propTypes = {
|
|
3546
3546
|
name: PropTypes.string,
|
|
3547
3547
|
icon: /*#__PURE__*/PropTypes.shape({
|
|
3548
|
-
|
|
3548
|
+
default: /*#__PURE__*/PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
3549
3549
|
active: /*#__PURE__*/PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
3550
3550
|
showBadge: PropTypes.bool
|
|
3551
3551
|
}),
|
|
@@ -3574,7 +3574,7 @@ function SwitcherItem(_ref) {
|
|
|
3574
3574
|
});
|
|
3575
3575
|
var calculatedIcon;
|
|
3576
3576
|
|
|
3577
|
-
if (icon && typeof icon
|
|
3577
|
+
if (icon && typeof icon.default === "string") {
|
|
3578
3578
|
calculatedIcon = isSelected ? /*#__PURE__*/React__default.createElement("img", {
|
|
3579
3579
|
alt: "",
|
|
3580
3580
|
className: "",
|
|
@@ -3582,10 +3582,10 @@ function SwitcherItem(_ref) {
|
|
|
3582
3582
|
}) : /*#__PURE__*/React__default.createElement("img", {
|
|
3583
3583
|
alt: "",
|
|
3584
3584
|
className: "",
|
|
3585
|
-
src: icon
|
|
3585
|
+
src: icon.default
|
|
3586
3586
|
});
|
|
3587
3587
|
} else if (icon) {
|
|
3588
|
-
calculatedIcon = isSelected ? icon.active : icon
|
|
3588
|
+
calculatedIcon = isSelected ? icon.active : icon.default;
|
|
3589
3589
|
}
|
|
3590
3590
|
|
|
3591
3591
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
@@ -3641,7 +3641,7 @@ Switcher.propTypes = {
|
|
|
3641
3641
|
items: /*#__PURE__*/PropTypes.arrayOf( /*#__PURE__*/PropTypes.shape({
|
|
3642
3642
|
name: PropTypes.string,
|
|
3643
3643
|
icon: /*#__PURE__*/PropTypes.shape({
|
|
3644
|
-
|
|
3644
|
+
default: /*#__PURE__*/PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
3645
3645
|
active: /*#__PURE__*/PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
3646
3646
|
showBadge: PropTypes.bool
|
|
3647
3647
|
}),
|
|
@@ -3785,22 +3785,6 @@ var TagSize;
|
|
|
3785
3785
|
TagSize["base"] = "base";
|
|
3786
3786
|
})(TagSize || (TagSize = {}));
|
|
3787
3787
|
|
|
3788
|
-
var TagGroup = function TagGroup(_ref) {
|
|
3789
|
-
var tags = _ref.tags,
|
|
3790
|
-
_ref$tagSize = _ref.tagSize,
|
|
3791
|
-
tagSize = _ref$tagSize === void 0 ? TagSize.base : _ref$tagSize,
|
|
3792
|
-
className = _ref.className;
|
|
3793
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
3794
|
-
className: classNames("flex flex-row flex-wrap", className)
|
|
3795
|
-
}, tags.map(function (tag) {
|
|
3796
|
-
return /*#__PURE__*/React__default.createElement(Tag, Object.assign({
|
|
3797
|
-
size: tagSize
|
|
3798
|
-
}, tag, {
|
|
3799
|
-
className: classNames("mr-2 last:mr-0 mb-2")
|
|
3800
|
-
}));
|
|
3801
|
-
}));
|
|
3802
|
-
};
|
|
3803
|
-
|
|
3804
3788
|
var TagColorTheme;
|
|
3805
3789
|
|
|
3806
3790
|
(function (TagColorTheme) {
|
|
@@ -3837,6 +3821,22 @@ var Tag = function Tag(_ref) {
|
|
|
3837
3821
|
}));
|
|
3838
3822
|
};
|
|
3839
3823
|
|
|
3824
|
+
var TagGroup = function TagGroup(_ref) {
|
|
3825
|
+
var tags = _ref.tags,
|
|
3826
|
+
_ref$tagSize = _ref.tagSize,
|
|
3827
|
+
tagSize = _ref$tagSize === void 0 ? TagSize.base : _ref$tagSize,
|
|
3828
|
+
className = _ref.className;
|
|
3829
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
3830
|
+
className: classNames("flex flex-row flex-wrap", className)
|
|
3831
|
+
}, tags.map(function (tag) {
|
|
3832
|
+
return /*#__PURE__*/React__default.createElement(Tag, Object.assign({
|
|
3833
|
+
size: tagSize
|
|
3834
|
+
}, tag, {
|
|
3835
|
+
className: classNames("mr-2 last:mr-0 mb-2")
|
|
3836
|
+
}));
|
|
3837
|
+
}));
|
|
3838
|
+
};
|
|
3839
|
+
|
|
3840
3840
|
var _excluded$e = ["className", "value", "name", "placeholder", "maxLength", "rows", "resizable", "isDisabled", "icon", "onChange", "onBlur", "onFocus", "onKeyPress", "onKeyDown", "onCtrlEnter"];
|
|
3841
3841
|
var RESIZE_TYPES = {
|
|
3842
3842
|
NONE: "none",
|
|
@@ -4025,7 +4025,7 @@ var TextEditorV2 = function TextEditorV2(_ref) {
|
|
|
4025
4025
|
|
|
4026
4026
|
var _excluded$f = ["text", "icon", "className", "iconClass", "onClick"];
|
|
4027
4027
|
|
|
4028
|
-
function
|
|
4028
|
+
function SectionItemWithContent(props) {
|
|
4029
4029
|
var text = props.text,
|
|
4030
4030
|
icon = props.icon,
|
|
4031
4031
|
className = props.className,
|
|
@@ -4033,9 +4033,9 @@ function TextListItem(props) {
|
|
|
4033
4033
|
onClick = props.onClick,
|
|
4034
4034
|
rest = _objectWithoutPropertiesLoose(props, _excluded$f);
|
|
4035
4035
|
|
|
4036
|
-
var mergedClasses = classNames("cweb-text-
|
|
4037
|
-
var iconClasses = classNames("cweb-text-
|
|
4038
|
-
return /*#__PURE__*/React__default.createElement(
|
|
4036
|
+
var mergedClasses = classNames("cweb-section-text-item", className);
|
|
4037
|
+
var iconClasses = classNames("cweb-section-text-item-icon", iconClass);
|
|
4038
|
+
return /*#__PURE__*/React__default.createElement(SectionItem, _extends({
|
|
4039
4039
|
className: mergedClasses,
|
|
4040
4040
|
onClick: onClick
|
|
4041
4041
|
}, rest), icon && /*#__PURE__*/React__default.createElement("img", {
|
|
@@ -4047,7 +4047,7 @@ function TextListItem(props) {
|
|
|
4047
4047
|
}));
|
|
4048
4048
|
}
|
|
4049
4049
|
|
|
4050
|
-
|
|
4050
|
+
SectionItemWithContent.propTypes = {
|
|
4051
4051
|
text: PropTypes.string.isRequired,
|
|
4052
4052
|
icon: /*#__PURE__*/PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
4053
4053
|
className: PropTypes.string,
|
|
@@ -4962,7 +4962,6 @@ exports.Input = Input;
|
|
|
4962
4962
|
exports.LeftArrowIcon = LeftArrowIcon;
|
|
4963
4963
|
exports.LightBulbIcon = LightBulbIcon;
|
|
4964
4964
|
exports.Line = Line;
|
|
4965
|
-
exports.ListItem = ListItem;
|
|
4966
4965
|
exports.ListTable = ListTable;
|
|
4967
4966
|
exports.LoadingIndicator = LoadingIndicator;
|
|
4968
4967
|
exports.LockIcon = LockIcon;
|
|
@@ -4986,6 +4985,8 @@ exports.SearchCancelIcon = SearchCancelIcon$1;
|
|
|
4986
4985
|
exports.SearchIcon = SearchIcon$1;
|
|
4987
4986
|
exports.SecondaryButton = SecondaryButton;
|
|
4988
4987
|
exports.Section = Section;
|
|
4988
|
+
exports.SectionItem = SectionItem;
|
|
4989
|
+
exports.SectionItemWithContent = SectionItemWithContent;
|
|
4989
4990
|
exports.SettingsMenuButton = SettingsMenuButton;
|
|
4990
4991
|
exports.SmallCircleIcon = SmallCircleIcon;
|
|
4991
4992
|
exports.SmallDiamondIcon = SmallDiamondIcon;
|
|
@@ -5005,7 +5006,6 @@ exports.TextArea = Textarea;
|
|
|
5005
5006
|
exports.TextEditor = TextEditor;
|
|
5006
5007
|
exports.TextEditorV2 = TextEditorV2;
|
|
5007
5008
|
exports.TextLink = TextLink;
|
|
5008
|
-
exports.TextListItem = TextListItem;
|
|
5009
5009
|
exports.Title = Title;
|
|
5010
5010
|
exports.ViewItem = ViewItem;
|
|
5011
5011
|
//# sourceMappingURL=web-ui.cjs.development.js.map
|