@luscii-healthtech/web-ui 25.3.2 → 25.3.4

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.
@@ -20,7 +20,7 @@ export interface AccordionListProps extends Omit<AccordionProps, "items"> {
20
20
  isSearchEnabled?: boolean;
21
21
  isLoading?: boolean;
22
22
  isError?: boolean;
23
- errorState: {
23
+ errorState?: {
24
24
  title: string;
25
25
  description: string;
26
26
  };
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- import { ButtonWithPendingStateProps } from "./ButtonProps.type";
3
- export declare const PrimaryButton: (props: ButtonWithPendingStateProps) => JSX.Element;
1
+ import React from "react";
2
+ import { ButtonProps } from "./ButtonProps.type";
3
+ export declare const PrimaryButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- import { BaseButtonProps } from "./ButtonProps.type";
3
- export declare const TertiaryButton: (props: BaseButtonProps) => JSX.Element;
1
+ import React from "react";
2
+ import { ButtonProps } from "./ButtonProps.type";
3
+ export declare const TertiaryButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -2044,7 +2044,7 @@ const AccordionList = (_a) => {
2044
2044
  ),
2045
2045
  actions && React__namespace.default.createElement("div", null, actions)
2046
2046
  ),
2047
- isError && React__namespace.default.createElement(CenteredHero, { dataTestId: "hero-error", title: errorState.title, text: errorState.description, image: "" }),
2047
+ isError && errorState && React__namespace.default.createElement(CenteredHero, { dataTestId: "hero-error", title: errorState.title, text: errorState.description, image: "" }),
2048
2048
  !isError && isLoading && React__namespace.default.createElement(LoadingIndicator, { className: "ui-flex-1" }),
2049
2049
  !isError && !isLoading && filteredAccordionItems.length > 0 && React__namespace.default.createElement(Accordion, Object.assign({}, accordionProps, { items: filteredAccordionItems })),
2050
2050
  !isError && !isLoading && filteredAccordionItems.length === 0 && React__namespace.default.createElement(EmptyListMessage, { imageName: "search-not-found", text: emptyListText, className: "ui-mb-4 ui-border-b ui-border-t ui-border-slate-200 ui-py-4" })
@@ -2052,15 +2052,15 @@ const AccordionList = (_a) => {
2052
2052
  };
2053
2053
  AccordionList.Actions = AccordionListActions;
2054
2054
 
2055
- const TertiaryButton = (props) => {
2056
- return React__namespace.default.createElement(ButtonV2, Object.assign({}, props, { className: classNames__default.default([
2055
+ const TertiaryButton = React__namespace.default.forwardRef((props, innerRef) => {
2056
+ return React__namespace.default.createElement(ButtonV2, Object.assign({ ref: innerRef }, props, { className: classNames__default.default([
2057
2057
  "ui-text-primary",
2058
2058
  "ui-border-transparent ui-bg-transparent !ui-shadow-none",
2059
2059
  {
2060
2060
  "hover:ui-bg-primary-background hover:ui-text-primary-dark": !props.isDisabled
2061
2061
  }
2062
2062
  ], props.className), textColor: "blue-800", textHoverColor: "blue-900" }));
2063
- };
2063
+ });
2064
2064
 
2065
2065
  const ModalHeader = (props) => {
2066
2066
  return React__namespace.default.createElement(
@@ -2071,8 +2071,8 @@ const ModalHeader = (props) => {
2071
2071
  );
2072
2072
  };
2073
2073
 
2074
- const PrimaryButton = (props) => {
2075
- return React__namespace.default.createElement(ButtonV2, Object.assign({}, props, { className: classNames__default.default([
2074
+ const PrimaryButton = React__namespace.default.forwardRef((props, innerRef) => {
2075
+ return React__namespace.default.createElement(ButtonV2, Object.assign({ ref: innerRef }, props, { className: classNames__default.default([
2076
2076
  "ui-text-white",
2077
2077
  "ui-bg-gradient-to-r",
2078
2078
  "ui-gradient-blue",
@@ -2080,7 +2080,7 @@ const PrimaryButton = (props) => {
2080
2080
  "hover:ui-gradient-blue--hover": !props.isDisabled && !props.isPending
2081
2081
  }
2082
2082
  ], props.className), textColor: "white" }));
2083
- };
2083
+ });
2084
2084
 
2085
2085
  const ModalFooter = (props) => {
2086
2086
  return React__namespace.default.createElement(