@luscii-healthtech/web-ui 21.3.0 → 21.3.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/index.d.ts CHANGED
@@ -88,3 +88,4 @@ export { Dropzone, type DropzoneProps } from "./components/Dropzone";
88
88
  export { FilterBar, FilterBarUtils } from "./components/FilterBar";
89
89
  export { type Weekday, WeekdaysPicker, } from "./components/WeekdaysPicker/WeekdaysPicker";
90
90
  export { default as DragHandle, type DragHandleProps, } from "./components/DragHandle";
91
+ export { StatusIndicator } from "./components/StatusIndicator/StatusIndicator";
@@ -6070,6 +6070,20 @@ const WeekdaysPicker = (props) => {
6070
6070
  WeekdaysPicker.weekdayNameToIndex = weekdayNameToIndex;
6071
6071
  WeekdaysPicker.indexToWeekdayName = indexToWeekdayName;
6072
6072
 
6073
+ const StatusIndicator = (props) => {
6074
+ const { status, children } = props;
6075
+ return React__namespace.default.createElement(
6076
+ "div",
6077
+ { className: "ui-flex ui-flex-row ui-items-center ui-gap-x-s" },
6078
+ React__namespace.default.createElement("div", { className: classNames__default.default("ui-h-3 ui-w-3 ui-rounded-full", {
6079
+ "ui-bg-green-500": status === "fine",
6080
+ "ui-bg-amber-500": status === "caution",
6081
+ "ui-bg-red-500": status === "danger"
6082
+ }) }),
6083
+ children
6084
+ );
6085
+ };
6086
+
6073
6087
  exports.AccordionList = AccordionList;
6074
6088
  exports.AccordionTemporary = Accordion;
6075
6089
  exports.AddIcon = AddIcon;
@@ -6220,6 +6234,7 @@ exports.SpaceRocketIcon = RocketIcon;
6220
6234
  exports.Spinner = Spinner;
6221
6235
  exports.StarIcon = StarIcon;
6222
6236
  exports.StatusColoredIcon = StatusColoredIcon;
6237
+ exports.StatusIndicator = StatusIndicator;
6223
6238
  exports.Steps = Steps;
6224
6239
  exports.Switcher = Switcher;
6225
6240
  exports.TOASTER_TYPE_OPTIONS = TOASTER_TYPE_OPTIONS;