@uoguelph/react-components 1.6.3-rc.9 → 1.7.0-rc.13

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.
@@ -1,7 +1,7 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { twMerge as o } from "tailwind-merge";
3
3
  function a({ children: e, className: r }) {
4
- const s = o("flex flex-col border-x border-b border-grey-light bg-white px-4 py-3", r);
4
+ const s = o("border-x border-b border-grey-light bg-white px-4 py-3", r);
5
5
  return /* @__PURE__ */ t("div", { className: `uofg-alert-message ${s}`, children: e });
6
6
  }
7
7
  a.displayName = "AlertMessage";
@@ -2,7 +2,7 @@ import { jsx as r } from "react/jsx-runtime";
2
2
  import { twMerge as o } from "tailwind-merge";
3
3
  function i({ children: t, className: e }) {
4
4
  const l = o("mb-4 text-xl font-bold", e);
5
- return /* @__PURE__ */ r("span", { className: `uofg-alert-subtitle ${l}`, children: t });
5
+ return /* @__PURE__ */ r("div", { className: `uofg-alert-subtitle ${l}`, children: t });
6
6
  }
7
7
  i.displayName = "AlertSubtitle";
8
8
  export {
@@ -1,10 +1,10 @@
1
- export type AlertObject = {
1
+ export type DismissibleAlertProps = {
2
2
  title: string;
3
3
  description: string;
4
4
  timestamp: string;
5
+ link?: {
6
+ url: string;
7
+ text: string;
8
+ };
5
9
  };
6
- export type DismissibleAlertProps = {
7
- /** Whether to use the testing app armor test ID */
8
- alert?: AlertObject;
9
- };
10
- export declare function DismissibleAlert({ alert }: DismissibleAlertProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function DismissibleAlert({ title, description, timestamp, link }: DismissibleAlertProps): import("react/jsx-runtime").JSX.Element;
@@ -2,6 +2,7 @@ import { StatisticsProps } from './statistics';
2
2
  export type StatisticsContextValue = {
3
3
  variant: StatisticsProps['variant'];
4
4
  incrementCount: () => void;
5
+ decrementCount: () => void;
5
6
  count: number;
6
7
  };
7
8
  export declare const StatisticsContext: import('react').Context<StatisticsContextValue | null>;