@australiangreens/ag-internal-components 0.0.30 → 0.0.31
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.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/components/AgDialog/index.d.ts +23 -0
- package/dist/components/AgDialog/index.d.ts.map +1 -0
- package/dist/components/NavBar/Styling.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/domainCode/DomainCodeDialog.d.ts +24 -0
- package/dist/domainCode/DomainCodeDialog.d.ts.map +1 -0
- package/dist/domainCode/hooks.d.ts +5 -0
- package/dist/domainCode/hooks.d.ts.map +1 -0
- package/dist/domainCode/index.d.ts +4 -0
- package/dist/domainCode/index.d.ts.map +1 -0
- package/dist/esm/index.js +540 -395
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/layouts/AppLayout/NavBar/Styling.d.ts +1 -1
- package/dist/layouts/PageLayout/PageContainer.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Breakpoint } from '@mui/material';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
|
+
type ButtonConfig = {
|
|
4
|
+
text: string;
|
|
5
|
+
onClick?: () => Promise<void>;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
testId?: string;
|
|
8
|
+
};
|
|
9
|
+
type Props = PropsWithChildren<{
|
|
10
|
+
isOpen: boolean;
|
|
11
|
+
dialogTitle: string;
|
|
12
|
+
maxWidth?: false | Breakpoint;
|
|
13
|
+
primaryButton?: ButtonConfig;
|
|
14
|
+
secondaryButton?: ButtonConfig;
|
|
15
|
+
onClose: () => void;
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* Standard dialog that will auto disable it's buttons while the primaryButton onClick function is pending.
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
declare const AgDialog: ({ isOpen, dialogTitle, children, maxWidth, primaryButton, secondaryButton, onClose: handleClose, }: Props) => JSX.Element;
|
|
22
|
+
export default AgDialog;
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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,KAAK,YAAY,GAAG;IAClB,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;CACjB,CAAC;AAEF,KAAK,KAAK,GAAG,iBAAiB,CAAC;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,GAAG,UAAU,CAAC;IAC9B,aAAa,CAAC,EAAE,YAAY,CAAC;IAC7B,eAAe,CAAC,EAAE,YAAY,CAAC;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC,CAAC;AAEH;;;GAGG;AACH,QAAA,MAAM,QAAQ,uGAQX,KAAK,gBAuCP,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -10,6 +10,6 @@ export declare const classes: {
|
|
|
10
10
|
settings: string;
|
|
11
11
|
pieChartIcon: string;
|
|
12
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").
|
|
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").HTMLAttributes<HTMLDivElement> | keyof import("react").ClassAttributes<HTMLDivElement>>, {}>;
|
|
14
14
|
export declare const NavDrawer: import("@emotion/styled").StyledComponent<import("@mui/material/Drawer").DrawerProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
15
15
|
//# sourceMappingURL=Styling.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,cAAc,oBAAoB,CAAC;AAEnC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,cAAc,oBAAoB,CAAC;AAEnC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,cAAc,UAAU,CAAC;AAEzB,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
declare const DOMAIN_CODE_LABELS: {
|
|
3
|
+
readonly act: "ACT";
|
|
4
|
+
readonly nsw: "NSW";
|
|
5
|
+
readonly nt: "NT";
|
|
6
|
+
readonly qld: "QLD";
|
|
7
|
+
readonly sa: "SA";
|
|
8
|
+
readonly tas: "TAS";
|
|
9
|
+
readonly vic: "VIC";
|
|
10
|
+
readonly wa: "WA";
|
|
11
|
+
readonly ag: "AG";
|
|
12
|
+
readonly fedmps: "Fedmps";
|
|
13
|
+
readonly '': "";
|
|
14
|
+
};
|
|
15
|
+
export type DomainCode = keyof typeof DOMAIN_CODE_LABELS;
|
|
16
|
+
type Props = PropsWithChildren<{
|
|
17
|
+
isLoading: boolean;
|
|
18
|
+
isOpen: boolean;
|
|
19
|
+
onClose: () => Promise<void>;
|
|
20
|
+
domainOptions: DomainCode[];
|
|
21
|
+
}>;
|
|
22
|
+
declare const DomainCodeDialog: ({ isLoading, isOpen, onClose: handleClose, domainOptions: domainCodeOptions, }: Props) => JSX.Element;
|
|
23
|
+
export default DomainCodeDialog;
|
|
24
|
+
//# sourceMappingURL=DomainCodeDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DomainCodeDialog.d.ts","sourceRoot":"","sources":["../../../src/domainCode/DomainCodeDialog.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAY,MAAM,OAAO,CAAC;AAIpD,QAAA,MAAM,kBAAkB;;;;;;;;;;;;CAYd,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAMzD,KAAK,KAAK,GAAG,iBAAiB,CAAC;IAC7B,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,aAAa,EAAE,UAAU,EAAE,CAAC;CAC7B,CAAC,CAAC;AAEH,QAAA,MAAM,gBAAgB,mFAKnB,KAAK,gBA6CP,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RESET } from 'jotai/utils';
|
|
2
|
+
export declare const useDomainCode: () => readonly ["" | "act" | "nsw" | "nt" | "qld" | "sa" | "tas" | "vic" | "wa" | "ag" | "fedmps", (args_0: "" | "act" | "nsw" | "nt" | "qld" | "sa" | "tas" | "vic" | "wa" | "ag" | "fedmps" | typeof RESET | ((prev: "" | "act" | "nsw" | "nt" | "qld" | "sa" | "tas" | "vic" | "wa" | "ag" | "fedmps") => "" | "act" | "nsw" | "nt" | "qld" | "sa" | "tas" | "vic" | "wa" | "ag" | "fedmps" | typeof RESET)) => void, () => void];
|
|
3
|
+
export declare const useDomainCodeValue: () => "" | "act" | "nsw" | "nt" | "qld" | "sa" | "tas" | "vic" | "wa" | "ag" | "fedmps";
|
|
4
|
+
export declare const useSetDomainCode: () => (args_0: "" | "act" | "nsw" | "nt" | "qld" | "sa" | "tas" | "vic" | "wa" | "ag" | "fedmps" | typeof RESET | ((prev: "" | "act" | "nsw" | "nt" | "qld" | "sa" | "tas" | "vic" | "wa" | "ag" | "fedmps") => "" | "act" | "nsw" | "nt" | "qld" | "sa" | "tas" | "vic" | "wa" | "ag" | "fedmps" | typeof RESET)) => void;
|
|
5
|
+
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/domainCode/hooks.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAmB,MAAM,aAAa,CAAC;AAKrD,eAAO,MAAM,aAAa,saAGzB,CAAC;AAEF,eAAO,MAAM,kBAAkB,yFAE9B,CAAC;AAEF,eAAO,MAAM,gBAAgB,4TAE5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domainCode/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,cAAc,oBAAoB,CAAC;AAEnC,cAAc,SAAS,CAAC"}
|