@australiangreens/ag-internal-components 0.0.50 → 0.0.51

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.
Files changed (94) hide show
  1. package/dist/DevApp.d.ts +2 -1
  2. package/dist/DevApp.d.ts.map +1 -1
  3. package/dist/DevDemo/DevDemo.d.ts +2 -1
  4. package/dist/DevDemo/DevDemo.d.ts.map +1 -1
  5. package/dist/DevDemo/DomainCodeDemo.d.ts +1 -1
  6. package/dist/DevDemo/DomainCodeDemo.d.ts.map +1 -1
  7. package/dist/DevDemo/ExampleComponentDemo.d.ts +2 -1
  8. package/dist/DevDemo/ExampleComponentDemo.d.ts.map +1 -1
  9. package/dist/DevDemo/NavBarContent.d.ts +2 -1
  10. package/dist/DevDemo/NavBarContent.d.ts.map +1 -1
  11. package/dist/DevDemo/SaladBarDemo.d.ts +2 -1
  12. package/dist/DevDemo/SaladBarDemo.d.ts.map +1 -1
  13. package/dist/DevDemo/SomeRandomDemo.d.ts +2 -1
  14. package/dist/DevDemo/SomeRandomDemo.d.ts.map +1 -1
  15. package/dist/DevDemo/SpecialPageDemo.d.ts +2 -1
  16. package/dist/DevDemo/SpecialPageDemo.d.ts.map +1 -1
  17. package/dist/cjs/index.cjs +1 -1
  18. package/dist/cjs/index.cjs.map +1 -1
  19. package/dist/components/AgDialog/AgDialog.d.ts +24 -0
  20. package/dist/components/AgDialog/AgDialog.d.ts.map +1 -0
  21. package/dist/components/AgDialog/index.d.ts +2 -23
  22. package/dist/components/AgDialog/index.d.ts.map +1 -1
  23. package/dist/components/ExampleComponent/ExampleComponent.comp.test.d.ts +2 -0
  24. package/dist/components/ExampleComponent/ExampleComponent.comp.test.d.ts.map +1 -0
  25. package/dist/components/ExampleComponent/ExampleComponent.d.ts +7 -0
  26. package/dist/components/ExampleComponent/ExampleComponent.d.ts.map +1 -0
  27. package/dist/components/ExampleComponent/{index.stories.d.ts → ExampleComponent.stories.d.ts} +1 -1
  28. package/dist/components/ExampleComponent/ExampleComponent.stories.d.ts.map +1 -0
  29. package/dist/components/ExampleComponent/index.d.ts +2 -5
  30. package/dist/components/ExampleComponent/index.d.ts.map +1 -1
  31. package/dist/components/NavBar/NavBar.comp.test.d.ts +2 -0
  32. package/dist/components/NavBar/NavBar.comp.test.d.ts.map +1 -0
  33. package/dist/components/NavBar/NavBar.d.ts +22 -0
  34. package/dist/components/NavBar/NavBar.d.ts.map +1 -0
  35. package/dist/components/NavBar/NavBarContext.d.ts +1 -1
  36. package/dist/components/NavBar/NavBarContext.d.ts.map +1 -1
  37. package/dist/components/NavBar/index.d.ts +2 -16
  38. package/dist/components/NavBar/index.d.ts.map +1 -1
  39. package/dist/domainCode/DomainCodeDialog.d.ts +1 -1
  40. package/dist/domainCode/DomainCodeDialog.d.ts.map +1 -1
  41. package/dist/domainCode/hooks.d.ts.map +1 -1
  42. package/dist/esm/index.js +655 -667
  43. package/dist/esm/index.js.map +1 -1
  44. package/dist/layouts/AppLayout/AppLayout.d.ts +3 -1
  45. package/dist/layouts/AppLayout/AppLayout.d.ts.map +1 -1
  46. package/dist/layouts/AppLayout/NavBar/LinksMenu.d.ts +2 -1
  47. package/dist/layouts/AppLayout/NavBar/LinksMenu.d.ts.map +1 -1
  48. package/dist/layouts/AppLayout/NavBar/NavBar.d.ts +4 -2
  49. package/dist/layouts/AppLayout/NavBar/NavBar.d.ts.map +1 -1
  50. package/dist/layouts/AppLayout/NavBar/SettingsEtcPlaceholder.d.ts +2 -5
  51. package/dist/layouts/AppLayout/NavBar/SettingsEtcPlaceholder.d.ts.map +1 -1
  52. package/dist/layouts/AppLayout/NavBar/UserInfo.d.ts +9 -2
  53. package/dist/layouts/AppLayout/NavBar/UserInfo.d.ts.map +1 -1
  54. package/dist/layouts/AppLayout/PageContainer.d.ts +1 -1
  55. package/dist/layouts/AppLayout/PageContainer.d.ts.map +1 -1
  56. package/dist/layouts/AppLayout/TopBar.d.ts +2 -1
  57. package/dist/layouts/AppLayout/TopBar.d.ts.map +1 -1
  58. package/dist/layouts/AppLayout/index.d.ts.map +1 -1
  59. package/dist/layouts/PageLayout/PageLayout.comp.test.d.ts +2 -0
  60. package/dist/layouts/PageLayout/PageLayout.comp.test.d.ts.map +1 -0
  61. package/dist/layouts/PageLayout/PageLayout.d.ts +60 -0
  62. package/dist/layouts/PageLayout/PageLayout.d.ts.map +1 -0
  63. package/dist/layouts/PageLayout/SidePanel.d.ts +1 -1
  64. package/dist/layouts/PageLayout/SidePanel.d.ts.map +1 -1
  65. package/dist/layouts/PageLayout/TopBar.d.ts +2 -1
  66. package/dist/layouts/PageLayout/TopBar.d.ts.map +1 -1
  67. package/dist/layouts/PageLayout/index.d.ts +2 -59
  68. package/dist/layouts/PageLayout/index.d.ts.map +1 -1
  69. package/dist/providers/Atom/AtomProvider.d.ts +1 -1
  70. package/dist/providers/Atom/AtomProvider.d.ts.map +1 -1
  71. package/dist/providers/SaladBar/SaladBarContext.d.ts +1 -1
  72. package/dist/providers/SaladBar/SaladBarContext.d.ts.map +1 -1
  73. package/dist/testing/wrappers.d.ts +1 -1
  74. package/dist/testing/wrappers.d.ts.map +1 -1
  75. package/package.json +8 -5
  76. package/dist/components/ExampleComponent/index.comp.test.d.ts +0 -2
  77. package/dist/components/ExampleComponent/index.comp.test.d.ts.map +0 -1
  78. package/dist/components/ExampleComponent/index.stories.d.ts.map +0 -1
  79. package/dist/components/NavBar/Styling.d.ts +0 -15
  80. package/dist/components/NavBar/Styling.d.ts.map +0 -1
  81. package/dist/components/NavBar/index.comp.test.d.ts +0 -2
  82. package/dist/components/NavBar/index.comp.test.d.ts.map +0 -1
  83. package/dist/components/NavBar/index.stories.d.ts +0 -34
  84. package/dist/components/NavBar/index.stories.d.ts.map +0 -1
  85. package/dist/layouts/AppLayout/NavBar/Styling.d.ts +0 -18
  86. package/dist/layouts/AppLayout/NavBar/Styling.d.ts.map +0 -1
  87. package/dist/layouts/PageLayout/PageContainer.d.ts +0 -14
  88. package/dist/layouts/PageLayout/PageContainer.d.ts.map +0 -1
  89. package/dist/layouts/PageLayout/PanelAwareMargins.d.ts +0 -19
  90. package/dist/layouts/PageLayout/PanelAwareMargins.d.ts.map +0 -1
  91. package/dist/layouts/PageLayout/index.comp.test.d.ts +0 -2
  92. package/dist/layouts/PageLayout/index.comp.test.d.ts.map +0 -1
  93. package/dist/layouts/PageLayout/index.stories.d.ts +0 -76
  94. package/dist/layouts/PageLayout/index.stories.d.ts.map +0 -1
@@ -5,6 +5,8 @@ export interface BaseAppLayoutProps {
5
5
  /** Either an array of objects used to automatically generate the content of
6
6
  * the navbar (WIP), or a node to render directly.*/
7
7
  navBarMiddle: NavBarProps['middle'];
8
+ /** A node to render directly.*/
9
+ navBarBottom: NavBarProps['bottom'];
8
10
  /**
9
11
  * The initial titleText. Shortcut for calling a setter from useAppLayout()
10
12
  * hook since its such a common action.
@@ -32,6 +34,6 @@ export interface BaseAppLayoutProps {
32
34
  domainCode?: NavBarProps['domainCode'];
33
35
  }
34
36
  type AppLayoutProps = PropsWithChildren<BaseAppLayoutProps>;
35
- export default function AppLayout({ children, initialTitleText, initialNavBarOpen, pageContainerProps, pageContentDataTestId, topBarDataTestId, navBarDataTestId, navBarMiddle, user, domainCode, }: AppLayoutProps): import("react/jsx-runtime").JSX.Element;
37
+ export default function AppLayout({ children, initialTitleText, initialNavBarOpen, pageContainerProps, pageContentDataTestId, topBarDataTestId, navBarDataTestId, navBarMiddle, navBarBottom, user, domainCode, }: AppLayoutProps): JSX.Element;
36
38
  export {};
37
39
  //# sourceMappingURL=AppLayout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppLayout.d.ts","sourceRoot":"","sources":["../../../src/layouts/AppLayout/AppLayout.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAa,MAAM,OAAO,CAAC;AAGrE,OAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAW5C,MAAM,WA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;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;mBACe;IACf,kBAAkB,CAAC,EAAE,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC;IAE1D,kDAAkD;IAClD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,yDAAyD;IACzD,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B,sEAAsE;IACtE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;mCAC+B;IAC/B,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAE3B,oCAAoC;IACpC,UAAU,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;CACxC;AAED,KAAK,cAAc,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;AAE5D,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,QAAQ,EACR,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,IAAI,EACJ,UAAU,GACX,EAAE,cAAc,eAkDhB"}
@@ -1,6 +1,7 @@
1
+ /// <reference types="react" />
1
2
  import { NavBarLink } from './types';
2
3
  export interface LinksMenuProps {
3
4
  links: NavBarLink[];
4
5
  }
5
- export declare function LinksMenu({ links }: LinksMenuProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function LinksMenu({ links }: LinksMenuProps): JSX.Element;
6
7
  //# sourceMappingURL=LinksMenu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LinksMenu.d.ts","sourceRoot":"","sources":["../../../../src/layouts/AppLayout/NavBar/LinksMenu.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,UAAU,EAAE,CAAC;CACrB;AAGD,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE,cAAc,2CAElD"}
1
+ {"version":3,"file":"LinksMenu.d.ts","sourceRoot":"","sources":["../../../../src/layouts/AppLayout/NavBar/LinksMenu.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,UAAU,EAAE,CAAC;CACrB;AAGD,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE,cAAc,eAElD"}
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
+ import { DomainCode } from 'domainCode';
2
3
  import { NavBarLink, User } from './types';
3
- import { DomainCode } from '../../../domainCode';
4
4
  export interface NavBarProps {
5
5
  open: boolean;
6
6
  offsetTop?: number;
@@ -37,11 +37,13 @@ export interface NavBarProps {
37
37
  user?: User;
38
38
  /** Displayed below the user information when available */
39
39
  domainCode?: DomainCode;
40
+ /** The contents to be displayed at the bottom, specified to the current page */
41
+ bottom?: ReactNode;
40
42
  }
41
43
  /**
42
44
  * A styled navigation bar. At this point in time its pretty unopinionated, it
43
45
  * just renders whatever children it is given. The NavBarLightStyledList
44
46
  * component can be used for consistent styling against the background.
45
47
  */
46
- export default function NavBar({ open, offsetTop, widthOpen, widthClosed, 'data-testid': dataTestId, top, middle, user, domainCode, }: NavBarProps): import("react/jsx-runtime").JSX.Element;
48
+ export default function NavBar({ open, offsetTop, widthOpen, widthClosed, 'data-testid': dataTestId, top, middle, bottom, user, domainCode, }: NavBarProps): JSX.Element;
47
49
  //# sourceMappingURL=NavBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavBar.d.ts","sourceRoot":"","sources":["../../../../src/layouts/AppLayout/NavBar/NavBar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,SAAS,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;;;;;;;;;;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,eAyCb"}
@@ -1,6 +1,3 @@
1
- interface SettingsEtcPlaceholderProps {
2
- navBarOpen: boolean;
3
- }
4
- export default function SettingsEtcPlaceholder({ navBarOpen }: SettingsEtcPlaceholderProps): import("react/jsx-runtime").JSX.Element;
5
- export {};
1
+ /// <reference types="react" />
2
+ export default function SettingsEtcPlaceholder(): JSX.Element;
6
3
  //# sourceMappingURL=SettingsEtcPlaceholder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SettingsEtcPlaceholder.d.ts","sourceRoot":"","sources":["../../../../src/layouts/AppLayout/NavBar/SettingsEtcPlaceholder.tsx"],"names":[],"mappings":"AAUA,UAAU,2BAA2B;IACnC,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAAE,UAAU,EAAE,EAAE,2BAA2B,2CA0CzF"}
1
+ {"version":3,"file":"SettingsEtcPlaceholder.d.ts","sourceRoot":"","sources":["../../../../src/layouts/AppLayout/NavBar/SettingsEtcPlaceholder.tsx"],"names":[],"mappings":";AAWA,MAAM,CAAC,OAAO,UAAU,sBAAsB,gBA4D7C"}
@@ -1,9 +1,12 @@
1
- import { DomainCode } from '../../../domainCode';
1
+ /// <reference types="react" />
2
+ import { DomainCode } from 'domainCode';
2
3
  import { User } from './types';
3
4
  export interface UserInfoProps {
4
5
  user?: User;
5
6
  domainCode?: DomainCode;
6
7
  open: boolean;
8
+ navBarWidthClosed: number;
9
+ navBarWidthOpen: number;
7
10
  }
8
11
  /**
9
12
  * If user has a defined name and a valid url for picture, the picture will for
@@ -15,6 +18,10 @@ export interface UserInfoProps {
15
18
  *
16
19
  * If user is undefined or the name is undefined, a generic empty avatar image
17
20
  * will be displayed.
21
+ *
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]
18
25
  */
19
- export default function UserInfo({ user, domainCode, open }: UserInfoProps): import("react/jsx-runtime").JSX.Element;
26
+ export default function UserInfo({ user, domainCode, open, navBarWidthClosed, navBarWidthOpen, }: UserInfoProps): JSX.Element;
20
27
  //# sourceMappingURL=UserInfo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserInfo.d.ts","sourceRoot":"","sources":["../../../../src/layouts/AppLayout/NavBar/UserInfo.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAe/B,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,IAAI,EAAE,OAAO,CAAC;CACf;AAED;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,aAAa,2CAyEzE"}
1
+ {"version":3,"file":"UserInfo.d.ts","sourceRoot":"","sources":["../../../../src/layouts/AppLayout/NavBar/UserInfo.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,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;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,IAAI,EACJ,UAAU,EACV,IAAI,EACJ,iBAAiB,EACjB,eAAe,GAChB,EAAE,aAAa,eAoEf"}
@@ -2,6 +2,6 @@ import { PropsWithChildren } from 'react';
2
2
  interface PageContainerProps {
3
3
  topBarHeight: number;
4
4
  }
5
- declare function PageContainer({ children, topBarHeight }: PropsWithChildren<PageContainerProps>): import("react/jsx-runtime").JSX.Element;
5
+ declare function PageContainer({ children, topBarHeight }: PropsWithChildren<PageContainerProps>): JSX.Element;
6
6
  export default PageContainer;
7
7
  //# sourceMappingURL=PageContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageContainer.d.ts","sourceRoot":"","sources":["../../../src/layouts/AppLayout/PageContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AA4B1C,UAAU,kBAAkB;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,iBAAS,aAAa,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE,iBAAiB,CAAC,kBAAkB,CAAC,2CAoBvF;AAED,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"PageContainer.d.ts","sourceRoot":"","sources":["../../../src/layouts/AppLayout/PageContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AA4B1C,UAAU,kBAAkB;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,iBAAS,aAAa,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE,iBAAiB,CAAC,kBAAkB,CAAC,eAoBvF;AAED,eAAe,aAAa,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface TopBarProps {
2
3
  titleText?: string;
3
4
  height: number;
@@ -11,5 +12,5 @@ export declare const classes: {
11
12
  * the scroll bar will not appear for the whole page, instead just the page
12
13
  * content
13
14
  */
14
- export default function TopBar({ titleText, height, 'data-testid': dataTestId }: TopBarProps): import("react/jsx-runtime").JSX.Element;
15
+ export default function TopBar({ titleText, height, 'data-testid': dataTestId }: TopBarProps): JSX.Element;
15
16
  //# sourceMappingURL=TopBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TopBar.d.ts","sourceRoot":"","sources":["../../../src/layouts/AppLayout/TopBar.tsx"],"names":[],"mappings":"AAQA,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,OAAO;;CAEnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAAE,SAAc,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,EAAE,WAAW,2CA+BhG"}
1
+ {"version":3,"file":"TopBar.d.ts","sourceRoot":"","sources":["../../../src/layouts/AppLayout/TopBar.tsx"],"names":[],"mappings":";AAQA,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,OAAO;;CAEnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAAE,SAAc,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,EAAE,WAAW,eA+BhG"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layouts/AppLayout/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layouts/AppLayout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,cAAc,cAAc,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=PageLayout.comp.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageLayout.comp.test.d.ts","sourceRoot":"","sources":["../../../src/layouts/PageLayout/PageLayout.comp.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,60 @@
1
+ import { ComponentProps, PropsWithChildren, ReactNode } from 'react';
2
+ import PageContainer from './PageContainer';
3
+ export interface SidePanelProps {
4
+ titleText?: string;
5
+ content?: ReactNode;
6
+ flavour?: 'push' | 'overlay';
7
+ arrowButtons?: 'open' | 'close' | 'both' | 'none';
8
+ width?: number;
9
+ startOpen?: boolean;
10
+ /** Use this and onChangeOpen if you want to use component as a controlled component */
11
+ open?: boolean;
12
+ onChangeOpen?: (open: boolean) => void;
13
+ /** Called when the sliding transition to open has finished */
14
+ onOpened?: () => void;
15
+ /** Called when the sliding transition to open has finished */
16
+ onClosed?: () => void;
17
+ dataTestId?: string;
18
+ }
19
+ interface BasePageLayoutProps {
20
+ titleText?: string;
21
+ leftPanel?: SidePanelProps;
22
+ rightPanel?: SidePanelProps;
23
+ /** This will only have an effect for panels whose state is not controlled by
24
+ * parent */
25
+ sidePanelsAreMutuallyExclusive?: boolean;
26
+ /** Temporary, get rid of later */
27
+ debugOpacity?: boolean;
28
+ /** Props applied to the PageContainer component, which is a styled MUI Container */
29
+ pageContainerProps?: ComponentProps<typeof PageContainer>;
30
+ topBarDataTestId?: string;
31
+ pageContentDataTestId?: string;
32
+ }
33
+ interface PageLayoutWithNavBarProps extends BasePageLayoutProps {
34
+ /** Only used by side panels for alignment purposes */
35
+ navBarOpen: boolean;
36
+ /** Only used by side panels for alignment purposes */
37
+ navBarWidthOpen: number;
38
+ /** Only used by side panels for alignment purposes */
39
+ navBarWidthClosed: number;
40
+ }
41
+ interface PagelayoutWithoutNavBarProps extends BasePageLayoutProps {
42
+ navBarOpen?: never;
43
+ navBarWidthOpen?: never;
44
+ navBarWidthClosed?: never;
45
+ }
46
+ export type PageLayoutProps = PropsWithChildren<PageLayoutWithNavBarProps | PagelayoutWithoutNavBarProps>;
47
+ /**
48
+ * To be used by all Page components in our apps to use a standard Top Bar, Left
49
+ * Panel, Right Panel and Page Contents within the contents for a uniform look.
50
+ *
51
+ * At present it is somewhat crudely adapted from the code used in the
52
+ * ListManager app. It _assumes_ NavBar component on the left.
53
+ *
54
+ * It is in the process of being tidied up, and as such is very much in flux.
55
+ * The end goal is to unify the left most NavBar component with the PageLayout,
56
+ * but this has to be done incrementally.
57
+ */
58
+ export default function PageLayout({ children, titleText, leftPanel, rightPanel, sidePanelsAreMutuallyExclusive, debugOpacity, pageContainerProps, pageContentDataTestId, topBarDataTestId, navBarOpen, navBarWidthOpen, navBarWidthClosed, }: PageLayoutProps): JSX.Element;
59
+ export {};
60
+ //# sourceMappingURL=PageLayout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageLayout.d.ts","sourceRoot":"","sources":["../../../src/layouts/PageLayout/PageLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAuB,MAAM,OAAO,CAAC;AAM1F,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAmB5C,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM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EACjC,QAAQ,EACR,SAAc,EACd,SAAS,EACT,UAAU,EACV,8BAAqC,EACrC,YAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,EAChB,UAAU,EACV,eAAe,EACf,iBAAiB,GAClB,EAAE,eAAe,eAuLjB"}
@@ -21,6 +21,6 @@ type SidePanelProps = PropsWithChildren<{
21
21
  * The SidePanel is designed to be used along with the TopBar component for a
22
22
  * consistent look and feel.
23
23
  */
24
- export default function SidePanel({ children, anchor, open, onClose, titleText, width, showCloseArrow, debugOpacity, headerBoxProps, onOpened, onClosed, 'data-testid': dataTestId, navBarOpen, navBarWidthOpen, navBarWidthClosed, }: SidePanelProps): import("react/jsx-runtime").JSX.Element;
24
+ export default function SidePanel({ children, anchor, open, onClose, titleText, width, showCloseArrow, debugOpacity, headerBoxProps, onOpened, onClosed, 'data-testid': dataTestId, navBarOpen, navBarWidthOpen, navBarWidthClosed, }: SidePanelProps): JSX.Element;
25
25
  export {};
26
26
  //# sourceMappingURL=SidePanel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SidePanel.d.ts","sourceRoot":"","sources":["../../../src/layouts/PageLayout/SidePanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAM,QAAQ,EAAsD,MAAM,eAAe,CAAC;AAGjG,eAAO,MAAM,mBAAmB,MAAM,CAAC;AA+EvC,KAAK,cAAc,GAAG,iBAAiB,CAAC;IACtC,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CA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AE,MAAM,IAAI,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,QAAQ,EACR,MAAe,EACf,IAAI,EACJ,OAAkB,EAClB,SAAc,EACd,KAA2B,EAC3B,cAAqB,EACrB,YAAoB,EACpB,cAAmB,EACnB,QAAQ,EACR,QAAQ,EACR,aAAa,EAAE,UAAU,EACzB,UAAkB,EAClB,eAAmB,EACnB,iBAAqB,GACtB,EAAE,cAAc,eAgDhB"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface PanelProps {
2
3
  open: boolean;
3
4
  width: number;
@@ -27,6 +28,6 @@ export declare const classes: {
27
28
  * that it has to interact with a sliding side panel that is not the main
28
29
  * navbar.
29
30
  */
30
- export default function TopBar({ titleText, leftPanel, rightPanel, 'data-testid': dataTestId, }: TopBarProps): import("react/jsx-runtime").JSX.Element;
31
+ export default function TopBar({ titleText, leftPanel, rightPanel, 'data-testid': dataTestId, }: TopBarProps): JSX.Element;
31
32
  export {};
32
33
  //# sourceMappingURL=TopBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TopBar.d.ts","sourceRoot":"","sources":["../../../src/layouts/PageLayout/TopBar.tsx"],"names":[],"mappings":"AAQA,UAAU,UAAU;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,OAAO,CAAC;IAEvB,0EAA0E;IAC1E,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAEpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,OAAO;;;;;;;CAQnB,CAAC;AAoEF;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,SAAc,EACd,SAAS,EACT,UAAU,EACV,aAAa,EAAE,UAAU,GAC1B,EAAE,WAAW,2CAyCb"}
1
+ {"version":3,"file":"TopBar.d.ts","sourceRoot":"","sources":["../../../src/layouts/PageLayout/TopBar.tsx"],"names":[],"mappings":";AAQA,UAAU,UAAU;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,OAAO,CAAC;IAEvB,0EAA0E;IAC1E,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAEpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,OAAO;;;;;;;CAQnB,CAAC;AAoEF;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,SAAc,EACd,SAAS,EACT,UAAU,EACV,aAAa,EAAE,UAAU,GAC1B,EAAE,WAAW,eAyCb"}
@@ -1,60 +1,3 @@
1
- import { ComponentProps, PropsWithChildren, ReactNode } from 'react';
2
- import PageContainer from './PageContainer';
3
- export interface SidePanelProps {
4
- titleText?: string;
5
- content?: ReactNode;
6
- flavour?: 'push' | 'overlay';
7
- arrowButtons?: 'open' | 'close' | 'both' | 'none';
8
- width?: number;
9
- startOpen?: boolean;
10
- /** Use this and onChangeOpen if you want to use component as a controlled component */
11
- open?: boolean;
12
- onChangeOpen?: (open: boolean) => void;
13
- /** Called when the sliding transition to open has finished */
14
- onOpened?: () => void;
15
- /** Called when the sliding transition to open has finished */
16
- onClosed?: () => void;
17
- dataTestId?: string;
18
- }
19
- interface BasePageLayoutProps {
20
- titleText?: string;
21
- leftPanel?: SidePanelProps;
22
- rightPanel?: SidePanelProps;
23
- /** This will only have an effect for panels whose state is not controlled by
24
- * parent */
25
- sidePanelsAreMutuallyExclusive?: boolean;
26
- /** Temporary, get rid of later */
27
- debugOpacity?: boolean;
28
- /** Props applied to the PageContainer component, which is a styled MUI Container */
29
- pageContainerProps?: ComponentProps<typeof PageContainer>;
30
- topBarDataTestId?: string;
31
- pageContentDataTestId?: string;
32
- }
33
- interface PageLayoutWithNavBarProps extends BasePageLayoutProps {
34
- /** Only used by side panels for alignment purposes */
35
- navBarOpen: boolean;
36
- /** Only used by side panels for alignment purposes */
37
- navBarWidthOpen: number;
38
- /** Only used by side panels for alignment purposes */
39
- navBarWidthClosed: number;
40
- }
41
- interface PagelayoutWithoutNavBarProps extends BasePageLayoutProps {
42
- navBarOpen?: never;
43
- navBarWidthOpen?: never;
44
- navBarWidthClosed?: never;
45
- }
46
- export type PageLayoutProps = PropsWithChildren<PageLayoutWithNavBarProps | PagelayoutWithoutNavBarProps>;
47
- /**
48
- * To be used by all Page components in our apps to use a standard Top Bar, Left
49
- * Panel, Right Panel and Page Contents within the contents for a uniform look.
50
- *
51
- * At present it is somewhat crudely adapted from the code used in the
52
- * ListManager app. It _assumes_ NavBar component on the left.
53
- *
54
- * It is in the process of being tidied up, and as such is very much in flux.
55
- * The end goal is to unify the left most NavBar component with the PageLayout,
56
- * but this has to be done incrementally.
57
- */
58
- export default function PageLayout({ children, titleText, leftPanel, rightPanel, sidePanelsAreMutuallyExclusive, debugOpacity, pageContainerProps, pageContentDataTestId, topBarDataTestId, navBarOpen, navBarWidthOpen, navBarWidthClosed, }: PageLayoutProps): import("react/jsx-runtime").JSX.Element;
59
- export {};
1
+ export { default } from './PageLayout';
2
+ export * from './PageL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B,SAAQ,mBAAmB;IAC7D,sDAAsD;IACtD,UAAU,EAAE,OAAO,CAAC;IACpB,sDAAsD;IACtD,eAAe,EAAE,MAAM,CAAC;IACxB,sDAAsD;IACtD,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,UAAU,4BAA6B,SAAQ,mBAAmB;IAChE,UAAU,CAAC,EAAE,KAAK,CAAC;IACnB,eAAe,CAAC,EAAE,KAAK,CAAC;IACxB,iBAAiB,CAAC,EAAE,KAAK,CAAC;CAC3B;AAED,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAC7C,yBAAyB,GAAG,4BAA4B,CACzD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,QAAQ,EACR,SAAc,EACd,SAAS,EACT,UAAU,EACV,8BAAqC,EACrC,YAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,EAChB,UAAU,EACV,eAAe,EACf,iBAAiB,GAClB,EAAE,eAAe,2CAuLjB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layouts/PageLayout/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,cAAc,cAAc,CAAC"}
@@ -95,5 +95,5 @@ export declare const AtomProvider: ({ children, store, }: PropsWithChildren<{
95
95
  dev_get_mounted?: undefined;
96
96
  dev_restore_atoms?: undefined;
97
97
  } | undefined;
98
- }>) => import("react/jsx-runtime").JSX.Element;
98
+ }>) => JSX.Element;
99
99
  //# sourceMappingURL=AtomProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AtomProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/Atom/AtomProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,WAAW,EAAmB,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1C,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoB,CAAC;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CAKxB,CAAC"}
1
+ {"version":3,"file":"AtomProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/Atom/AtomProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,WAAW,EAAmB,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1C,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoB,CAAC;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAKxB,CAAC"}
@@ -12,5 +12,5 @@ export interface SaladBarProviderProps extends SnackbarProps {
12
12
  * true.*/
13
13
  shouldClose?: (event: Event | React.SyntheticEvent<Element, Event>, reason: SaladBarCloseReason) => boolean;
14
14
  }
15
- export default function SaladBarProvider({ overrideState, overrideActions, shouldClose, children, ...snackbarProps }: SaladBarProviderProps): import("react/jsx-runtime").JSX.Element;
15
+ export default function SaladBarProvider({ overrideState, overrideActions, shouldClose, children, ...snackbarProps }: SaladBarProviderProps): JSX.Element;
16
16
  //# sourceMappingURL=SaladBarContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SaladBarContext.d.ts","sourceRoot":"","sources":["../../../src/providers/SaladBar/SaladBarContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAqD,aAAa,EAAE,MAAM,eAAe,CAAC;AAEjG,OAAO,EAEL,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,eAAe,EAChB,MAAM,SAAS,CAAC;AA6BjB,eAAO,MAAM,OAAO,uCAA8C,CAAC;AAEnE,MAAM,WAAW,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G,aAAa,EACjB,EAAE,qBAAqB,eA0KvB"}
@@ -38,7 +38,7 @@ type AtomConfig = {
38
38
  export declare const withAtomProvider: import("souvlaki").SimpleHelper<[]>;
39
39
  export declare const HydrateAtoms: <T>({ initialValues, children, }: PropsWithChildren<{
40
40
  initialValues: OverrideValues<T>;
41
- }>) => import("react/jsx-runtime").JSX.Element;
41
+ }>) => JSX.Element;
42
42
  export declare const withOverrideDefaults: import("souvlaki").SimpleHelper<[overrides: Partial<AtomConfig>]>;
43
43
  export {};
44
44
  //# sourceMappingURL=wrappers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wrappers.d.ts","sourceRoot":"","sources":["../../src/testing/wrappers.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAY,YAAY,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAY1C;;;;;;;GAOG;AAEH,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;CAQpB,CAAC;AAEF,KAAK,cAAc,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;AAE3D,KAAK,gBAAgB,GAAG,MAAM,OAAO,eAAe,CAAC;AAErD,KAAK,eAAe,CAAC,CAAC,SAAS,gBAAgB,IAAI,UAAU,CAC3D,OAAO,YAAY,CAAC,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CACjD,CAAC;AAEF,KAAK,UAAU,GAAG;KAAG,CAAC,IAAI,gBAAgB,GAAG,eAAe,CAAC,CAAC,CAAC;CAAE,CAAC;AAElE,eAAO,MAAM,gBAAgB,qCAE3B,CAAC;AAEH,eAAO,MAAM,YAAY;;8CAMxB,CAAC;AAEF,eAAO,MAAM,oBAAoB,mEAiBhC,CAAC"}
1
+ {"version":3,"file":"wrappers.d.ts","sourceRoot":"","sources":["../../src/testing/wrappers.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAY,YAAY,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAa1C;;;;;;;GAOG;AACH,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;CAQpB,CAAC;AAEF,KAAK,cAAc,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;AAE3D,KAAK,gBAAgB,GAAG,MAAM,OAAO,eAAe,CAAC;AAErD,KAAK,eAAe,CAAC,CAAC,SAAS,gBAAgB,IAAI,UAAU,CAC3D,OAAO,YAAY,CAAC,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CACjD,CAAC;AAEF,KAAK,UAAU,GAAG;KAAG,CAAC,IAAI,gBAAgB,GAAG,eAAe,CAAC,CAAC,CAAC;CAAE,CAAC;AAElE,eAAO,MAAM,gBAAgB,qCAE3B,CAAC;AAEH,eAAO,MAAM,YAAY;;kBAMxB,CAAC;AAEF,eAAO,MAAM,oBAAoB,mEAiBhC,CAAC"}
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.50",
4
+ "version": "0.0.51",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/australiangreens/ag-internal-components#readme",
7
7
  "license": "MIT",
@@ -20,7 +20,7 @@
20
20
  "test:watch": "vitest",
21
21
  "### LIFECYCLE SCRIPTS ###": "See https://yarnpkg.com/advanced/lifecycle-scripts",
22
22
  "prepare": "husky install",
23
- "prepublishOnly": "yarn test && yarn build",
23
+ "prepublishOnly": "yarn eslint && yarn test && yarn build",
24
24
  "### HUSKY GIT HOOKS ###": "Called by husky pre-commit and pre-push scripts",
25
25
  "prepush": "sh ./scripts/githooks/pre-push.sh",
26
26
  "precommit": "sh ./scripts/githooks/pre-commit.sh",
@@ -42,7 +42,9 @@
42
42
  "dependencies": {
43
43
  "@australiangreens/ag-error": "^0.1.7",
44
44
  "@australiangreens/ag-error-jest": "^0.1.9",
45
+ "@types/react-transition-group": "^4.4.6",
45
46
  "jotai": "^2.3.1",
47
+ "react-transition-group": "^4.4.5",
46
48
  "souvlaki": "^0.3.0"
47
49
  },
48
50
  "peerDependencies": {
@@ -54,8 +56,8 @@
54
56
  "react-dom": "^18.2.0"
55
57
  },
56
58
  "devDependencies": {
57
- "@emotion/react": "11.11.1",
58
- "@emotion/styled": "11.11.0",
59
+ "@emotion/react": "^11.11.1",
60
+ "@emotion/styled": "^11.11.0",
59
61
  "@mui/icons-material": "^5.14.3",
60
62
  "@mui/material": "^5.14.5",
61
63
  "@storybook/addon-essentials": "^7.0.26",
@@ -65,7 +67,7 @@
65
67
  "@storybook/react": "^7.0.26",
66
68
  "@storybook/react-vite": "^7.0.26",
67
69
  "@storybook/testing-library": "^0.0.14-next.2",
68
- "@testing-library/dom": "9.3.1",
70
+ "@testing-library/dom": "^9.3.1",
69
71
  "@testing-library/jest-dom": "^6.0.0",
70
72
  "@testing-library/react": "^14.0.0",
71
73
  "@testing-library/user-event": "^14.4.3",
@@ -102,6 +104,7 @@
102
104
  "typescript": "^5.0.2",
103
105
  "vite": "^4.3.9",
104
106
  "vite-plugin-dts": "^3.5.2",
107
+ "vite-plugin-linter": "^2.0.2",
105
108
  "vite-tsconfig-paths": "^4.2.0",
106
109
  "vitest": "^0.34.1"
107
110
  },
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.comp.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.comp.test.d.ts","sourceRoot":"","sources":["../../../src/components/ExampleComponent/index.comp.test.tsx"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ExampleComponent/index.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,gBAAgB,MAAM,GAAG,CAAC;AAGjC,QAAA,MAAM,IAAI;;;CAO+B,CAAC;AAE1C,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAGnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAIxB,CAAC"}
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const NAVBAR_WIDTH_OPENED = 330;
3
- export declare const NAVBAR_WIDTH_CLOSED = 73;
4
- export declare const classes: {
5
- root: string;
6
- menuButton: string;
7
- hide: string;
8
- content: string;
9
- userInfoHolder: string;
10
- settings: string;
11
- pieChartIcon: string;
12
- };
13
- export declare const Root: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
14
- export declare const NavDrawer: import("@emotion/styled").StyledComponent<import("@mui/material/Drawer").DrawerProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
15
- //# sourceMappingURL=Styling.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Styling.d.ts","sourceRoot":"","sources":["../../../src/components/NavBar/Styling.tsx"],"names":[],"mappings":";AAGA,eAAO,MAAM,mBAAmB,MAAM,CAAC;AACvC,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAItC,eAAO,MAAM,OAAO;;;;;;;;CAQnB,CAAC;AAEF,eAAO,MAAM,IAAI,wVAuBd,CAAC;AAyBJ,eAAO,MAAM,SAAS,kLAenB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.comp.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.comp.test.d.ts","sourceRoot":"","sources":["../../../src/components/NavBar/index.comp.test.tsx"],"names":[],"mappings":""}
@@ -1,34 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from '@storybook/react';
3
- import NavBar from '.';
4
- declare const meta: {
5
- component: typeof NavBar;
6
- tags: string[];
7
- decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
8
- 'data-testid'?: string | undefined;
9
- children?: import("react").ReactNode;
10
- }>) => import("react/jsx-runtime").JSX.Element)[];
11
- argTypes: {
12
- children: {
13
- control: {
14
- type: null;
15
- };
16
- description: string;
17
- };
18
- };
19
- parameters: {
20
- controls: {
21
- matchers: {
22
- color: RegExp;
23
- date: RegExp;
24
- };
25
- };
26
- docs: {
27
- page: () => import("react/jsx-runtime").JSX.Element;
28
- };
29
- };
30
- };
31
- export default meta;
32
- type Story = StoryObj<typeof meta>;
33
- export declare const WithContent: Story;
34
- //# sourceMappingURL=index.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../../src/components/NavBar/index.stories.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAUvD,OAAO,MAAgD,MAAM,GAAG,CAAC;AAEjE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CqB,CAAC;AAEhC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAyCnC,eAAO,MAAM,WAAW,EAAE,KASzB,CAAC"}
@@ -1,18 +0,0 @@
1
- /// <reference types="react" />
2
- import { Theme } from '@mui/material/styles';
3
- export declare const classes: {
4
- root: string;
5
- menuButton: string;
6
- hide: string;
7
- content: string;
8
- };
9
- export declare const Root: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
10
- interface NavDrawerProps {
11
- open: boolean;
12
- widthOpen: number;
13
- widthClosed: number;
14
- offsetTop: number;
15
- }
16
- export declare const NavDrawer: import("@emotion/styled").StyledComponent<import("@mui/material/Drawer").DrawerProps & import("@mui/system").MUIStyledCommonProps<Theme> & NavDrawerProps, {}, {}>;
17
- export {};
18
- //# sourceMappingURL=Styling.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Styling.d.ts","sourceRoot":"","sources":["../../../../src/layouts/AppLayout/NavBar/Styling.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAqB,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAKhE,eAAO,MAAM,OAAO;;;;;CAQnB,CAAC;AAEF,eAAO,MAAM,IAAI,yTAuBd,CAAC;AA+BJ,UAAU,cAAc;IACtB,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,SAAS,oKAkBnB,CAAC"}
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- /** Just a simple styled container applying our spacings*/
3
- declare const PageContainer: import("@emotion/styled").StyledComponent<Pick<{
4
- children?: import("react").ReactNode;
5
- classes?: Partial<import("@mui/material").ContainerClasses> | undefined;
6
- disableGutters?: boolean | undefined;
7
- fixed?: boolean | undefined;
8
- maxWidth?: false | import("@mui/material").Breakpoint | undefined;
9
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
10
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
11
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
12
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "maxWidth" | "children" | "sx" | "fixed" | "disableGutters">, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "maxWidth" | "content" | "translate" | "children" | "sx" | "ref" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "fixed" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
13
- export default PageContainer;
14
- //# sourceMappingURL=PageContainer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PageContainer.d.ts","sourceRoot":"","sources":["../../../src/layouts/PageLayout/PageContainer.tsx"],"names":[],"mappings":";AAEA,0DAA0D;AAC1D,QAAA,MAAM,aAAa;;;;;;;;;0/JAMhB,CAAC;AAEJ,eAAe,aAAa,CAAC"}
@@ -1,19 +0,0 @@
1
- /// <reference types="react" />
2
- interface PanelProps {
3
- width: number;
4
- open: boolean;
5
- }
6
- interface PanelAwareMarginsProps {
7
- /** If the leftPanel prop is omitted but a left panel is still in use on the
8
- * page, it will slide over the top instead of the default pushing */
9
- leftPanel?: PanelProps;
10
- /** If the rightPanel prop is omitted but a right panel is still in use on the
11
- * page, it will slide over the top instead of the default pushing */
12
- rightPanel?: PanelProps;
13
- }
14
- /** With the optional leftPanel and rightPanel props providing state and width,
15
- * the children of of the PanelAwareMargins will looks like they is pushed aside
16
- * by the panels by transitioning the margins. */
17
- declare const PanelAwareMargins: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & PanelAwareMarginsProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
18
- export default PanelAwareMargins;
19
- //# sourceMappingURL=PanelAwareMargins.d.ts.map