@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.
- package/dist/DevDemo/DevDemo.d.ts.map +1 -1
- package/dist/DevDemo/DomainCodeDemo.d.ts.map +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/components/AgDialog/AgDialog.d.ts +24 -0
- package/dist/components/AgDialog/AgDialog.d.ts.map +1 -0
- package/dist/components/AgDialog/index.d.ts +2 -23
- package/dist/components/AgDialog/index.d.ts.map +1 -1
- package/dist/components/ExampleComponent/ExampleComponent.comp.test.d.ts +2 -0
- package/dist/components/ExampleComponent/ExampleComponent.comp.test.d.ts.map +1 -0
- package/dist/components/ExampleComponent/ExampleComponent.d.ts +6 -0
- package/dist/components/ExampleComponent/ExampleComponent.d.ts.map +1 -0
- package/dist/components/ExampleComponent/{index.stories.d.ts → ExampleComponent.stories.d.ts} +1 -1
- package/dist/components/ExampleComponent/ExampleComponent.stories.d.ts.map +1 -0
- package/dist/components/ExampleComponent/index.d.ts +2 -5
- package/dist/components/ExampleComponent/index.d.ts.map +1 -1
- package/dist/components/NavBar/NavBar.comp.test.d.ts +2 -0
- package/dist/components/NavBar/NavBar.comp.test.d.ts.map +1 -0
- package/dist/components/NavBar/NavBar.d.ts +22 -0
- package/dist/components/NavBar/NavBar.d.ts.map +1 -0
- package/dist/components/NavBar/index.d.ts +2 -16
- package/dist/components/NavBar/index.d.ts.map +1 -1
- package/dist/esm/index.js +613 -623
- package/dist/esm/index.js.map +1 -1
- package/dist/layouts/AppLayout/AppLayout.d.ts +3 -1
- package/dist/layouts/AppLayout/AppLayout.d.ts.map +1 -1
- package/dist/layouts/AppLayout/NavBar/NavBar.d.ts +3 -1
- package/dist/layouts/AppLayout/NavBar/NavBar.d.ts.map +1 -1
- package/dist/layouts/AppLayout/NavBar/SettingsEtcPlaceholder.d.ts +1 -5
- package/dist/layouts/AppLayout/NavBar/SettingsEtcPlaceholder.d.ts.map +1 -1
- package/dist/layouts/AppLayout/NavBar/UserInfo.d.ts +7 -1
- package/dist/layouts/AppLayout/NavBar/UserInfo.d.ts.map +1 -1
- package/dist/layouts/AppLayout/index.d.ts.map +1 -1
- package/dist/layouts/PageLayout/PageLayout.comp.test.d.ts +2 -0
- package/dist/layouts/PageLayout/PageLayout.comp.test.d.ts.map +1 -0
- package/dist/layouts/PageLayout/PageLayout.d.ts +60 -0
- package/dist/layouts/PageLayout/PageLayout.d.ts.map +1 -0
- package/dist/layouts/PageLayout/index.d.ts +2 -59
- package/dist/layouts/PageLayout/index.d.ts.map +1 -1
- package/dist/layouts/PageLayout/index.stories.d.ts +4 -4
- package/package.json +8 -5
- package/dist/components/ExampleComponent/index.comp.test.d.ts +0 -2
- package/dist/components/ExampleComponent/index.comp.test.d.ts.map +0 -1
- package/dist/components/ExampleComponent/index.stories.d.ts.map +0 -1
- package/dist/components/NavBar/index.comp.test.d.ts +0 -2
- package/dist/components/NavBar/index.comp.test.d.ts.map +0 -1
- package/dist/layouts/PageLayout/index.comp.test.d.ts +0 -2
- package/dist/layouts/PageLayout/index.comp.test.d.ts.map +0 -1
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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.
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"ExampleComponent.comp.test.d.ts","sourceRoot":"","sources":["../../../src/components/ExampleComponent/ExampleComponent.comp.test.tsx"],"names":[],"mappings":""}
|
|
@@ -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"}
|
|
@@ -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
|
|
2
|
-
|
|
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.
|
|
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 @@
|
|
|
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
|
-
|
|
2
|
-
export
|
|
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.
|
|
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"}
|