@ukpc-lib/react 0.3.1 → 0.3.2

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,25 +1,12 @@
1
1
  import { CSSProperties } from 'react';
2
2
  import { firebaseProps } from '..';
3
+ import { User } from '../../share';
3
4
  type CustomColors = {
4
5
  primaryColor?: string;
5
6
  bgColor?: string;
6
7
  color?: string;
7
8
  headerTextColor?: string;
8
9
  };
9
- type User = {
10
- id?: number;
11
- firstName: string;
12
- lastName: string;
13
- countryCode?: string;
14
- status?: string;
15
- email?: string;
16
- phoneNumber?: string | null;
17
- avatarUrl?: string;
18
- languageCode?: string;
19
- isActive?: boolean;
20
- isEnable?: boolean;
21
- lastLogin?: Date;
22
- };
23
10
  export declare function TopBar({ logo, user, baseUrl, notiPath, style, classNames, customColors, notiprops, }: {
24
11
  logo: string;
25
12
  user: User;
@@ -16,13 +16,13 @@ export type User = {
16
16
  email: string;
17
17
  firstName: string;
18
18
  lastName: string;
19
- avatarUrl?: string | null;
19
+ avatarUrl?: string;
20
20
  phoneNumber?: string | null;
21
- countryCode: string;
22
- languageCode: string;
23
- isActive: boolean;
24
- isEnable: boolean;
25
- lastLogin: Date;
21
+ countryCode?: string;
22
+ languageCode?: string;
23
+ isActive?: boolean;
24
+ isEnable?: boolean;
25
+ lastLogin?: Date;
26
26
  extraAttributes?: UserAttributeModel[];
27
27
  };
28
28
  export declare const AuthProvider: FC<PropsWithChildren & {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ukpc-lib/react",
3
3
  "private": false,
4
- "version": "0.3.1",
4
+ "version": "0.3.2",
5
5
  "type": "module",
6
6
  "main": "./dist/",
7
7
  "module": "./dist/",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../react-to-web-component-5d347552.cjs");require("../index-813b234d.cjs");const e=require("../index-6c123355.cjs");require("../index-5627e1e9.cjs");exports.TopBar=e.TopBar;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../react-to-web-component-5d347552.cjs");require("../index-813b234d.cjs");const e=require("../index-efce3862.cjs");require("../index-5627e1e9.cjs");exports.TopBar=e.TopBar;
@@ -1,6 +1,6 @@
1
1
  import "../react-to-web-component-24d28041.js";
2
2
  import "../index-a716cadc.js";
3
- import { T as i } from "../index-4173d527.js";
3
+ import { T as i } from "../index-dc05ef0c.js";
4
4
  import "../index-c0edc305.js";
5
5
  export {
6
6
  i as TopBar
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../react-to-web-component-5d347552.cjs");const e=require("../index-6c123355.cjs");require("../index-813b234d.cjs");require("../index-5627e1e9.cjs");exports.HasPermission=e.HasPermission;exports.getUseHasPermission=e.getUseHasPermission;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../react-to-web-component-5d347552.cjs");const e=require("../index-efce3862.cjs");require("../index-813b234d.cjs");require("../index-5627e1e9.cjs");exports.HasPermission=e.HasPermission;exports.getUseHasPermission=e.getUseHasPermission;
@@ -1,5 +1,5 @@
1
1
  import "../react-to-web-component-24d28041.js";
2
- import { H as e, g as t } from "../index-4173d527.js";
2
+ import { H as e, g as t } from "../index-dc05ef0c.js";
3
3
  import "../index-a716cadc.js";
4
4
  import "../index-c0edc305.js";
5
5
  export {