@australiangreens/ag-internal-components 0.0.54 → 0.0.56
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/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +521 -533
- package/dist/esm/index.js.map +1 -1
- package/dist/layouts/AppLayout/NavBar/NavBar.d.ts +1 -1
- package/dist/layouts/AppLayout/NavBar/NavBar.d.ts.map +1 -1
- package/dist/layouts/AppLayout/NavBar/Styling.d.ts +2 -0
- package/dist/layouts/AppLayout/NavBar/Styling.d.ts.map +1 -1
- package/dist/layouts/AppLayout/NavBar/UserInfo.d.ts +1 -6
- package/dist/layouts/AppLayout/NavBar/UserInfo.d.ts.map +1 -1
- package/package.json +21 -19
- package/dist/.gitignore +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavBar.d.ts","sourceRoot":"","sources":["../../../../src/layouts/AppLayout/NavBar/NavBar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NavBar.d.ts","sourceRoot":"","sources":["../../../../src/layouts/AppLayout/NavBar/NavBar.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,OAAO,CAAC;IAEd,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,SAAS,EAAE,MAAM,CAAC;IAElB,WAAW,EAAE,MAAM,CAAC;IAEpB;kBACc;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,6EAA6E;IAC7E,GAAG,CAAC,EAAE,SAAS,CAAC;IAEhB;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,EAAE,SAAS,GAAG,UAAU,EAAE,CAAC;IAEjC,qEAAqE;IACrE,IAAI,CAAC,EAAE,IAAI,CAAC;IAEZ,0DAA0D;IAC1D,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB,gFAAgF;IAChF,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,IAAI,EACJ,SAAa,EACb,SAAS,EACT,WAAW,EACX,aAAa,EAAE,UAAU,EACzB,GAAG,EACH,MAAM,EACN,MAAM,EACN,IAAI,EACJ,UAAU,GACX,EAAE,WAAW,eAmCb"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { StyledComponent } from '@emotion/styled';
|
|
2
2
|
import { BoxProps, DrawerProps } from '@mui/material';
|
|
3
|
+
import { Theme } from '@mui/material/styles';
|
|
3
4
|
export declare const classes: {
|
|
4
5
|
root: string;
|
|
5
6
|
menuButton: string;
|
|
@@ -7,6 +8,7 @@ export declare const classes: {
|
|
|
7
8
|
content: string;
|
|
8
9
|
};
|
|
9
10
|
export declare const Root: StyledComponent<BoxProps>;
|
|
11
|
+
export declare const navbarTransition: (theme: Theme, property: string | string[], action: 'entering' | 'leaving') => string;
|
|
10
12
|
interface NavDrawerProps {
|
|
11
13
|
open: boolean;
|
|
12
14
|
widthOpen: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Styling.d.ts","sourceRoot":"","sources":["../../../../src/layouts/AppLayout/NavBar/Styling.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Styling.d.ts","sourceRoot":"","sources":["../../../../src/layouts/AppLayout/NavBar/Styling.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAO,QAAQ,EAAU,WAAW,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAa,KAAK,EAAU,MAAM,sBAAsB,CAAC;AAIhE,eAAO,MAAM,OAAO;;;;;CAQnB,CAAC;AAIF,eAAO,MAAM,IAAI,EAAE,eAAe,CAAC,QAAQ,CAuBxC,CAAC;AAEJ,eAAO,MAAM,gBAAgB,UACpB,KAAK,YACF,MAAM,GAAG,MAAM,EAAE,UACnB,UAAU,GAAG,SAAS,WAQ5B,CAAC;AAyBL,UAAU,cAAc;IACtB,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB;AAKD,eAAO,MAAM,SAAS,EAAE,eAAe,CAAC,WAAW,EAAE,cAAc,CAkBhE,CAAC"}
|
|
@@ -5,8 +5,6 @@ export interface UserInfoProps {
|
|
|
5
5
|
user?: User;
|
|
6
6
|
domainCode?: DomainCode;
|
|
7
7
|
open: boolean;
|
|
8
|
-
navBarWidthClosed: number;
|
|
9
|
-
navBarWidthOpen: number;
|
|
10
8
|
}
|
|
11
9
|
/**
|
|
12
10
|
* If user has a defined name and a valid url for picture, the picture will for
|
|
@@ -19,9 +17,6 @@ export interface UserInfoProps {
|
|
|
19
17
|
* If user is undefined or the name is undefined, a generic empty avatar image
|
|
20
18
|
* will be displayed.
|
|
21
19
|
*
|
|
22
|
-
* ! navBarWidthClosed and navBarWidthOpen are needed to size the avatar
|
|
23
|
-
* ! correctly. Specifying css in Styling.tsx might
|
|
24
|
-
* ! be a better approach. See [EVNT-59]
|
|
25
20
|
*/
|
|
26
|
-
export default function UserInfo({ user, domainCode, open
|
|
21
|
+
export default function UserInfo({ user, domainCode, open }: UserInfoProps): JSX.Element;
|
|
27
22
|
//# sourceMappingURL=UserInfo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserInfo.d.ts","sourceRoot":"","sources":["../../../../src/layouts/AppLayout/NavBar/UserInfo.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"UserInfo.d.ts","sourceRoot":"","sources":["../../../../src/layouts/AppLayout/NavBar/UserInfo.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAc/B,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,IAAI,EAAE,OAAO,CAAC;CACf;AAED;;;;;;;;;;;GAWG;AAEH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,aAAa,eA6DzE"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@australiangreens/ag-internal-components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.56",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://github.com/australiangreens/ag-internal-components#readme",
|
|
7
7
|
"license": "MIT",
|
|
@@ -10,6 +10,25 @@
|
|
|
10
10
|
"contributors": [
|
|
11
11
|
"Anthony Blond <anthony@unfinishedteleporter.com>"
|
|
12
12
|
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"dev": "vite",
|
|
15
|
+
"build": "vite build && sh ./scripts/post-build.sh",
|
|
16
|
+
"preview": "vite preview",
|
|
17
|
+
"eslint": "eslint 'src/**/*.{js,jsx,ts,tsx}'",
|
|
18
|
+
"test": "vitest run",
|
|
19
|
+
"test:coverage": "vitest run --coverage",
|
|
20
|
+
"test:watch": "vitest",
|
|
21
|
+
"### LIFECYCLE SCRIPTS ###": "",
|
|
22
|
+
"prepare": "husky install",
|
|
23
|
+
"prepublishOnly": "pnpm eslint && pnpm test && pnpm build",
|
|
24
|
+
"### HUSKY GIT HOOKS ###": "Called by husky pre-commit and pre-push scripts",
|
|
25
|
+
"prepush": "sh ./scripts/githooks/pre-push.sh",
|
|
26
|
+
"precommit": "sh ./scripts/githooks/pre-commit.sh",
|
|
27
|
+
"commitmsg": "sh ./scripts/githooks/commit-msg.sh",
|
|
28
|
+
"storybook": "storybook dev -p 6006",
|
|
29
|
+
"storybook:no": "storybook dev -p 6006 --no-open",
|
|
30
|
+
"build-storybook": "storybook build"
|
|
31
|
+
},
|
|
13
32
|
"files": [
|
|
14
33
|
"dist/*"
|
|
15
34
|
],
|
|
@@ -105,22 +124,5 @@
|
|
|
105
124
|
},
|
|
106
125
|
"engines": {
|
|
107
126
|
"node": ">=16.14.0"
|
|
108
|
-
},
|
|
109
|
-
"scripts": {
|
|
110
|
-
"dev": "vite",
|
|
111
|
-
"build": "vite build && sh ./scripts/post-build.sh",
|
|
112
|
-
"preview": "vite preview",
|
|
113
|
-
"eslint": "eslint 'src/**/*.{js,jsx,ts,tsx}'",
|
|
114
|
-
"test": "vitest run",
|
|
115
|
-
"test:coverage": "vitest run --coverage",
|
|
116
|
-
"test:watch": "vitest",
|
|
117
|
-
"### LIFECYCLE SCRIPTS ###": "",
|
|
118
|
-
"### HUSKY GIT HOOKS ###": "Called by husky pre-commit and pre-push scripts",
|
|
119
|
-
"prepush": "sh ./scripts/githooks/pre-push.sh",
|
|
120
|
-
"precommit": "sh ./scripts/githooks/pre-commit.sh",
|
|
121
|
-
"commitmsg": "sh ./scripts/githooks/commit-msg.sh",
|
|
122
|
-
"storybook": "storybook dev -p 6006",
|
|
123
|
-
"storybook:no": "storybook dev -p 6006 --no-open",
|
|
124
|
-
"build-storybook": "storybook build"
|
|
125
127
|
}
|
|
126
|
-
}
|
|
128
|
+
}
|
package/dist/.gitignore
DELETED
|
File without changes
|