@australiangreens/ag-internal-components 0.0.50 → 0.0.52

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 (48) hide show
  1. package/dist/DevDemo/DevDemo.d.ts.map +1 -1
  2. package/dist/DevDemo/DomainCodeDemo.d.ts.map +1 -1
  3. package/dist/cjs/index.cjs +1 -1
  4. package/dist/cjs/index.cjs.map +1 -1
  5. package/dist/components/AgDialog/AgDialog.d.ts +24 -0
  6. package/dist/components/AgDialog/AgDialog.d.ts.map +1 -0
  7. package/dist/components/AgDialog/index.d.ts +2 -23
  8. package/dist/components/AgDialog/index.d.ts.map +1 -1
  9. package/dist/components/ExampleComponent/ExampleComponent.comp.test.d.ts +2 -0
  10. package/dist/components/ExampleComponent/ExampleComponent.comp.test.d.ts.map +1 -0
  11. package/dist/components/ExampleComponent/ExampleComponent.d.ts +6 -0
  12. package/dist/components/ExampleComponent/ExampleComponent.d.ts.map +1 -0
  13. package/dist/components/ExampleComponent/{index.stories.d.ts → ExampleComponent.stories.d.ts} +1 -1
  14. package/dist/components/ExampleComponent/ExampleComponent.stories.d.ts.map +1 -0
  15. package/dist/components/ExampleComponent/index.d.ts +2 -5
  16. package/dist/components/ExampleComponent/index.d.ts.map +1 -1
  17. package/dist/components/NavBar/NavBar.comp.test.d.ts +2 -0
  18. package/dist/components/NavBar/NavBar.comp.test.d.ts.map +1 -0
  19. package/dist/components/NavBar/NavBar.d.ts +22 -0
  20. package/dist/components/NavBar/NavBar.d.ts.map +1 -0
  21. package/dist/components/NavBar/index.d.ts +2 -16
  22. package/dist/components/NavBar/index.d.ts.map +1 -1
  23. package/dist/esm/index.js +613 -623
  24. package/dist/esm/index.js.map +1 -1
  25. package/dist/layouts/AppLayout/AppLayout.d.ts +3 -1
  26. package/dist/layouts/AppLayout/AppLayout.d.ts.map +1 -1
  27. package/dist/layouts/AppLayout/NavBar/NavBar.d.ts +3 -1
  28. package/dist/layouts/AppLayout/NavBar/NavBar.d.ts.map +1 -1
  29. package/dist/layouts/AppLayout/NavBar/SettingsEtcPlaceholder.d.ts +1 -5
  30. package/dist/layouts/AppLayout/NavBar/SettingsEtcPlaceholder.d.ts.map +1 -1
  31. package/dist/layouts/AppLayout/NavBar/UserInfo.d.ts +7 -1
  32. package/dist/layouts/AppLayout/NavBar/UserInfo.d.ts.map +1 -1
  33. package/dist/layouts/AppLayout/index.d.ts.map +1 -1
  34. package/dist/layouts/PageLayout/PageLayout.comp.test.d.ts +2 -0
  35. package/dist/layouts/PageLayout/PageLayout.comp.test.d.ts.map +1 -0
  36. package/dist/layouts/PageLayout/PageLayout.d.ts +60 -0
  37. package/dist/layouts/PageLayout/PageLayout.d.ts.map +1 -0
  38. package/dist/layouts/PageLayout/index.d.ts +2 -59
  39. package/dist/layouts/PageLayout/index.d.ts.map +1 -1
  40. package/dist/layouts/PageLayout/index.stories.d.ts +4 -4
  41. package/package.json +8 -5
  42. package/dist/components/ExampleComponent/index.comp.test.d.ts +0 -2
  43. package/dist/components/ExampleComponent/index.comp.test.d.ts.map +0 -1
  44. package/dist/components/ExampleComponent/index.stories.d.ts.map +0 -1
  45. package/dist/components/NavBar/index.comp.test.d.ts +0 -2
  46. package/dist/components/NavBar/index.comp.test.d.ts.map +0 -1
  47. package/dist/layouts/PageLayout/index.comp.test.d.ts +0 -2
  48. package/dist/layouts/PageLayout/index.comp.test.d.ts.map +0 -1
@@ -1,24 +1,3 @@
1
- import { Breakpoint } from '@mui/material';
2
- import { PropsWithChildren } from 'react';
3
- export type AgDialogButtonConfig = {
4
- text: string;
5
- onClick?: () => Promise<void>;
6
- disabled?: boolean;
7
- testId?: string;
8
- buttonColor?: 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
9
- };
10
- export type AgDialogProps = PropsWithChildren<{
11
- isOpen: boolean;
12
- dialogTitle: string;
13
- maxWidth?: false | Breakpoint;
14
- primaryButton?: AgDialogButtonConfig;
15
- secondaryButton?: AgDialogButtonConfig;
16
- onClose: () => void;
17
- }>;
18
- /**
19
- * Standard dialog that will auto disable it's buttons while the primaryButton onClick function is pending.
20
- *
21
- */
22
- declare const AgDialog: ({ isOpen, dialogTitle, children, maxWidth, primaryButton, secondaryButton, onClose: handleClose, }: AgDialogProps) => import("react/jsx-runtime").JSX.Element;
23
- export default AgDialog;
1
+ export { default } from './AgDialog';
2
+ export * from './AgDialog';
24
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AgDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAM3C,OAAO,EAAE,iBAAiB,EAAY,MAAM,OAAO,CAAC;AAEpD,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;CAC9F,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,iBAAiB,CAAC;IAC5C,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,GAAG,UAAU,CAAC;IAC9B,aAAa,CAAC,EAAE,oBAAoB,CAAC;IACrC,eAAe,CAAC,EAAE,oBAAoB,CAAC;IACvC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC,CAAC;AAEH;;;GAGG;AACH,QAAA,MAAM,QAAQ,uGAQX,aAAa,4CAyCf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AgDialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,cAAc,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ExampleComponent.comp.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleComponent.comp.test.d.ts","sourceRoot":"","sources":["../../../src/components/ExampleComponent/ExampleComponent.comp.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export interface ExampleComponentProps {
2
+ /** Test */
3
+ text: string;
4
+ }
5
+ export default function ExampleComponent({ text }: ExampleComponentProps): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=ExampleComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleComponent.d.ts","sourceRoot":"","sources":["../../../src/components/ExampleComponent/ExampleComponent.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,qBAAqB;IACpC,WAAW;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EAAE,IAAI,EAAE,EAAE,qBAAqB,2CAyBvE"}
@@ -8,4 +8,4 @@ export default meta;
8
8
  type Story = StoryObj<typeof meta>;
9
9
  export declare const FunText: Story;
10
10
  export declare const NotFunText: Story;
11
- //# sourceMappingURL=index.stories.d.ts.map
11
+ //# sourceMappingURL=ExampleComponent.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleComponent.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ExampleComponent/ExampleComponent.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,6 +1,3 @@
1
- export interface ExampleComponentProps {
2
- /** Test */
3
- text: string;
4
- }
5
- export default function ExampleComponent({ text }: ExampleComponentProps): import("react/jsx-runtime").JSX.Element;
1
+ export { default } from './ExampleComponent';
2
+ export * from './ExampleComponent';
6
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ExampleComponent/index.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,qBAAqB;IACpC,WAAW;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EAAE,IAAI,EAAE,EAAE,qBAAqB,2CAyBvE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ExampleComponent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=NavBar.comp.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavBar.comp.test.d.ts","sourceRoot":"","sources":["../../../src/components/NavBar/NavBar.comp.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,22 @@
1
+ import { PropsWithChildren } from 'react';
2
+ export { NAVBAR_WIDTH_OPENED, NAVBAR_WIDTH_CLOSED } from './Styling';
3
+ export type NavbarProps = {
4
+ /** Set the datatest-id on the root element for using reactdom's getByTestId()
5
+ * function */
6
+ 'data-testid'?: string;
7
+ };
8
+ /**
9
+ * A (currently uncontrolled) styled navigation bar wth a context provider to
10
+ * retrieve its current open/closed state. At this point in time its pretty
11
+ * unopinionated, it just renders whatever children it is given. THe
12
+ * NavBarDarkStyledList component can be used for consistent styling against the
13
+ * background. We'll be changing the way we use NavBars soon anyway, so not much
14
+ * point solidying the patterns yet.
15
+ */
16
+ export default function NavBar({ 'data-testid': dataTestId, children, }: PropsWithChildren<NavbarProps>): import("react/jsx-runtime").JSX.Element;
17
+ export * from './NavBarContext';
18
+ export * from './testWrappers';
19
+ export * from './NavBarDarkStyledList';
20
+ export * from './NavBarLightStyledList';
21
+ export { classes as navBarClasses } from './Styling';
22
+ //# sourceMappingURL=NavBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavBar.d.ts","sourceRoot":"","sources":["../../../src/components/NavBar/NavBar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAM1C,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAErE,MAAM,MAAM,WAAW,GAAG;IACxB;kBACc;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAQF;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,aAAa,EAAE,UAAU,EACzB,QAAQ,GACT,EAAE,iBAAiB,CAAC,WAAW,CAAC,2CAiBhC;AAED,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAE/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AAGxC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,WAAW,CAAC"}
@@ -1,19 +1,5 @@
1
- import { PropsWithChildren } from 'react';
2
- export { NAVBAR_WIDTH_OPENED, NAVBAR_WIDTH_CLOSED } from './Styling';
3
- export type NavbarProps = {
4
- /** Set the datatest-id on the root element for using reactdom's getByTestId()
5
- * function */
6
- 'data-testid'?: string;
7
- };
8
- /**
9
- * A (currently uncontrolled) styled navigation bar wth a context provider to
10
- * retrieve its current open/closed state. At this point in time its pretty
11
- * unopinionated, it just renders whatever children it is given. THe
12
- * NavBarDarkStyledList component can be used for consistent styling against the
13
- * background. We'll be changing the way we use NavBars soon anyway, so not much
14
- * point solidying the patterns yet.
15
- */
16
- export default function NavBar({ 'data-testid': dataTestId, children, }: PropsWithChildren<NavbarProps>): import("react/jsx-runtime").JSX.Element;
1
+ export { default } from './NavBar';
2
+ export * from './NavBar';
17
3
  export * from './NavBarContext';
18
4
  export * from './testWrappers';
19
5
  export * from './NavBarDarkStyledList';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NavBar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAM1C,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAErE,MAAM,MAAM,WAAW,GAAG;IACxB;kBACc;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAQF;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,aAAa,EAAE,UAAU,EACzB,QAAQ,GACT,EAAE,iBAAiB,CAAC,WAAW,CAAC,2CAiBhC;AAED,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAE/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AAGxC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NavBar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,cAAc,UAAU,CAAC;AAEzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAE/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AAGxC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,WAAW,CAAC"}