@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.
- package/dist/alert-message.js +1 -1
- package/dist/alert-subtitle.js +1 -1
- package/dist/components/dismissible-alert/dismissible-alert.d.ts +6 -6
- package/dist/components/statistics/statistics-context.d.ts +1 -0
- package/dist/dismissible-alert.js +246 -222
- package/dist/index.css +1 -1
- package/dist/statistics-item.js +56 -17
- package/dist/statistics.js +60 -28
- package/dist/tab.js +4 -3
- package/package.json +2 -1
package/dist/alert-message.js
CHANGED
|
@@ -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("
|
|
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";
|
package/dist/alert-subtitle.js
CHANGED
|
@@ -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("
|
|
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
|
|
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
|
|
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>;
|