@luscii-healthtech/web-ui 11.3.3 → 12.0.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/index.d.ts CHANGED
@@ -57,7 +57,6 @@ export { MediaPicker, TargetProps } from "./components/MediaPicker/MediaPicker";
57
57
  export { default as Tabbar, TabbarProps, TabItemDetails, } from "./components/Tabbar/Tabbar";
58
58
  export { Breadcrumbs, BreadcrumbProps } from "./components/Breadcrumbs";
59
59
  export { PageHeader, PageHeaderProps } from "./components/PageHeader";
60
- export { default as TabLinks } from "./components/TabLinks/TabLinks";
61
60
  export { default as Tag } from "./components/Tag/Tag";
62
61
  export { default as TagGroup } from "./components/Tag/TagGroup";
63
62
  export { Textarea, TextareaProps, ResizeTypes, } from "./components/Textarea/Textarea";
@@ -4804,33 +4804,6 @@ const MediaPicker = (props) => {
4804
4804
  return React__namespace.default.createElement(ImagePicker, Object.assign({}, mappedProps));
4805
4805
  };
4806
4806
 
4807
- const TabLinksSelect = ({ items, navigate, location }) => {
4808
- const options = items.map(({ url, text }) => ({ value: url, label: text }));
4809
- const handleChange = (value) => {
4810
- navigate(value === null || value === void 0 ? void 0 : value.href);
4811
- };
4812
- return React__namespace.default.createElement(Select, { value: options.filter(({ value }) => (location === null || location === void 0 ? void 0 : location.href) === (value === null || value === void 0 ? void 0 : value.href)), options, onChange: handleChange });
4813
- };
4814
- const TabLinks = ({ patientUuid, items, navigate, location }) => {
4815
- const linkProps = ({ isCurrent }) => {
4816
- return isCurrent ? {
4817
- className: "ui-mr-2 ui-bg-slate-100 is-selected ui-py-3 ui-px-4 ui-rounded-lg ui-text-sm ui-font-semibold ui-transition ui-ease-in ui-duration-150 ui-text-slate-800 hover:ui-text-slate-800 focus:ui-text-slate-800 focus:ui-outline-primary"
4818
- } : {
4819
- className: "ui-mr-2 ui-text-slate-500 ui-py-3 ui-px-4 ui-text-sm hover:ui-bg-slate-100 hover:ui-text-slate-500 focus:ui-text-slate-500 ui-rounded-lg ui-transition ui-ease-in ui-duration-150 focus:ui-outline-primary"
4820
- };
4821
- };
4822
- return React__namespace.default.createElement(
4823
- React__namespace.default.Fragment,
4824
- null,
4825
- React__namespace.default.createElement(
4826
- "div",
4827
- { className: "ui-block ui-w-full ui-bg-white ui-p-2 xl:ui-hidden" },
4828
- React__namespace.default.createElement(TabLinksSelect, { items, navigate, location })
4829
- ),
4830
- React__namespace.default.createElement("div", { className: "ui-hidden ui-w-full ui-rounded-xl ui-bg-white ui-p-2 xl:ui-flex" }, items.map(({ text, url }) => React__namespace.default.createElement(router.Link, { key: `${patientUuid}_${text}`, to: url.pathname, getProps: linkProps }, text)))
4831
- );
4832
- };
4833
-
4834
4807
  const TagGroup = ({ tags, tagSize = TagSize.base, className }) => React__namespace.default.createElement("div", { className: classNames__default.default("ui-flex ui-flex-row ui-flex-wrap", className) }, tags.map((tag) => React__namespace.default.createElement(Tag, Object.assign({ size: tagSize }, tag, { className: classNames__default.default("ui-mb-2 ui-mr-2 last:ui-mr-0") }))));
4835
4808
 
4836
4809
  var css_248z$2 = "/**\n * --- DEPRECATED ---\n * DON'T USE ANYTHING FROM THIS FILE IN FUTURE CHANGES. WE SHOULD BE\n * USING TAILWIND CLASSES DIRECTLY IN OUR COMPONENTS.\n */\n.cweb-textarea {\n border: 1px solid #cccccc;\n border-radius: 4px;\n outline: none;\n background-color: #ffffff;\n resize: none;\n}\n.cweb-textarea.has-icon {\n background-size: 24px;\n background-position: 10px 10px;\n background-repeat: no-repeat;\n padding-left: 44px;\n}\n.cweb-textarea.resizable {\n resize: both;\n}\n.cweb-textarea.resizable-x {\n resize: horizontal;\n}\n.cweb-textarea.resizable-y {\n resize: vertical;\n}\n.cweb-textarea::placeholder {\n color: #737373;\n}\n.cweb-textarea:-ms-input-placeholder {\n color: #64748b !important;\n}\n.cweb-textarea::-ms-input-placeholder {\n color: #64748b;\n}\n.cweb-textarea:focus {\n border-color: #0074dd;\n}\n.cweb-textarea:disabled {\n cursor: not-allowed;\n}\n.cweb-textarea.has-error {\n border: 1px solid #ff6266;\n color: #ff6266;\n}";
@@ -5634,7 +5607,6 @@ exports.StatusColoredIcon = StatusColoredIcon;
5634
5607
  exports.Steps = Steps;
5635
5608
  exports.Switcher = Switcher;
5636
5609
  exports.TOASTER_TYPE_OPTIONS = TOASTER_TYPE_OPTIONS;
5637
- exports.TabLinks = TabLinks;
5638
5610
  exports.Tabbar = Tabbar;
5639
5611
  exports.Table = Table;
5640
5612
  exports.Tag = Tag;