@etus/ui 0.1.0 → 0.1.1
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/package.json
CHANGED
|
@@ -6,7 +6,7 @@ import { AppShell } from "../AppShell"
|
|
|
6
6
|
import { AppSidebar, AppSidebarItem } from "./index"
|
|
7
7
|
|
|
8
8
|
// Mock ResizeObserver
|
|
9
|
-
|
|
9
|
+
;(globalThis as typeof globalThis & { ResizeObserver: unknown }).ResizeObserver = vi.fn().mockImplementation(() => ({
|
|
10
10
|
observe: vi.fn(),
|
|
11
11
|
unobserve: vi.fn(),
|
|
12
12
|
disconnect: vi.fn(),
|
|
@@ -104,12 +104,6 @@ function AvatarLabelGroup({
|
|
|
104
104
|
tooltip,
|
|
105
105
|
...props
|
|
106
106
|
}: AvatarLabelGroupProps) {
|
|
107
|
-
// Warn if both status and badge are provided (development only)
|
|
108
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
109
|
-
if (typeof process !== "undefined" && process.env?.["NODE_ENV"] === "development" && status && badge) {
|
|
110
|
-
console.warn("AvatarLabelGroup: 'status' and 'badge' cannot be used together. 'badge' will be ignored.")
|
|
111
|
-
}
|
|
112
|
-
|
|
113
107
|
// Generate tooltip text
|
|
114
108
|
const tooltipText = tooltip === true
|
|
115
109
|
? description ? `${name} - ${description}` : name
|