@ah-automation.nl/component-lib 0.0.22 → 0.0.23

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.
@@ -0,0 +1,40 @@
1
+ import type { ComponentType, MouseEvent, ReactNode } from "react";
2
+ export type AppHeaderIcon = ComponentType<{
3
+ className?: string;
4
+ }>;
5
+ export type AppHeaderSession = {
6
+ name?: string;
7
+ email?: string;
8
+ avatarUrl?: string;
9
+ };
10
+ export type AppHeaderAppItemEvent = MouseEvent<HTMLAnchorElement | HTMLButtonElement>;
11
+ export type AppHeaderProfileActionEvent = MouseEvent<HTMLAnchorElement | HTMLButtonElement>;
12
+ export type AppHeaderAppItem = {
13
+ id: string;
14
+ label: string;
15
+ icon?: AppHeaderIcon;
16
+ href?: string;
17
+ onSelect?: (item: AppHeaderAppItem, event: AppHeaderAppItemEvent) => void;
18
+ disabled?: boolean;
19
+ };
20
+ export type AppHeaderProfileAction = {
21
+ id: string;
22
+ label: string;
23
+ icon?: AppHeaderIcon;
24
+ href?: string;
25
+ onSelect?: (action: AppHeaderProfileAction, event: AppHeaderProfileActionEvent) => void;
26
+ disabled?: boolean;
27
+ destructive?: boolean;
28
+ };
29
+ export type AppHeaderProps = {
30
+ environmentLabel: string;
31
+ currentPath: string;
32
+ session: AppHeaderSession;
33
+ apps?: AppHeaderAppItem[];
34
+ profileActions?: AppHeaderProfileAction[];
35
+ logo?: ReactNode;
36
+ openInNewTabHref?: string;
37
+ openInNewTabAriaLabel?: string;
38
+ className?: string;
39
+ };
40
+ //# sourceMappingURL=app-header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-header.d.ts","sourceRoot":"","sources":["../../src/types/app-header.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElE,MAAM,MAAM,aAAa,GAAG,aAAa,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CA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S,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -1,4 +1,6 @@
1
1
  export type { GenericDrawerProps } from "./generic-drawer";
2
+ export type { UserImageProps } from "./user-image";
3
+ export type { AppHeaderAppItem, AppHeaderAppItemEvent, AppHeaderIcon, AppHeaderProfileAction, AppHeaderProfileActionEvent, AppHeaderProps, AppHeaderSession, } from "./app-header";
2
4
  export type { SidebarNavGroup, SidebarNavGroupItem, SidebarNavIcon, SidebarNavItem, SidebarNavProps, } from "./sidebar-nav";
3
5
  export type { MultiSelectOption, MultiSelectProps } from "./multi-select";
4
6
  export type { SingleSelectOption, SingleSelectProps } from "./single-select";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,YAAY,EACV,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC1E,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAC7E,YAAY,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,YAAY,EACV,gBAAgB,EAChB,qBAAqB,EACrB,aAAa,EACb,sBAAsB,EACtB,2BAA2B,EAC3B,cAAc,EACd,gBAAgB,GACjB,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC1E,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAC7E,YAAY,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,9 @@
1
+ export type UserImageProps = {
2
+ src?: string | null;
3
+ alt: string;
4
+ name?: string | null;
5
+ email?: string | null;
6
+ className?: string;
7
+ fallbackClassName?: string;
8
+ };
9
+ //# sourceMappingURL=user-image.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-image.d.ts","sourceRoot":"","sources":["../../src/types/user-image.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ah-automation.nl/component-lib",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",