@rws-aoa/react-library 5.0.0 → 5.1.0
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/components/atoms/icon-button/IconButton.d.ts.map +1 -1
- package/dist/components/atoms/icon-button/IconButton.js +8 -7
- package/dist/components/atoms/icon-button/IconButton.js.map +1 -1
- package/dist/components/atoms/tooltip/Tooltip.d.ts +14 -0
- package/dist/components/atoms/tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/atoms/tooltip/Tooltip.js +45 -0
- package/dist/components/atoms/tooltip/Tooltip.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +32 -30
- package/dist/index.js.map +1 -1
- package/package.json +5 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/icon-button/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/icon-button/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,OAAO,EAAE,MAAM,eAAe,CAAC;AAE1E,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG7C,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC3C;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;;;GAQG;AAEH,eAAO,MAAM,aAAa,8CAAgB,kBAAkB,KAAG,SAAS,CAqDtE,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { IconButton as a
|
|
3
|
-
import { l
|
|
4
|
-
import { memo as
|
|
5
|
-
|
|
2
|
+
import { IconButton as a } from "@mui/material";
|
|
3
|
+
import { l } from "../../../chunks/lodash.DOeeRDpT.js";
|
|
4
|
+
import { memo as t } from "react";
|
|
5
|
+
import { AoaTooltip as i } from "../tooltip/Tooltip.js";
|
|
6
|
+
const m = t((o) => {
|
|
6
7
|
const e = /* @__PURE__ */ r(
|
|
7
8
|
a,
|
|
8
9
|
{
|
|
@@ -14,7 +15,7 @@ const s = i((o) => {
|
|
|
14
15
|
disabled: o.disabled,
|
|
15
16
|
onClick: o.onClick,
|
|
16
17
|
role: "button",
|
|
17
|
-
sx:
|
|
18
|
+
sx: l.merge(
|
|
18
19
|
{
|
|
19
20
|
color: "var(--color-primary)",
|
|
20
21
|
border: "1px solid var(--color-primary)",
|
|
@@ -43,9 +44,9 @@ const s = i((o) => {
|
|
|
43
44
|
children: o.icon
|
|
44
45
|
}
|
|
45
46
|
);
|
|
46
|
-
return /* @__PURE__ */ r(
|
|
47
|
+
return /* @__PURE__ */ r(i, { title: o.label, children: o.disabled ? /* @__PURE__ */ r("span", { "aria-label": o.label, "data-testid": "disabled-span-wrapper", role: "tooltip", children: e }) : e });
|
|
47
48
|
});
|
|
48
49
|
export {
|
|
49
|
-
|
|
50
|
+
m as AoaIconButton
|
|
50
51
|
};
|
|
51
52
|
//# sourceMappingURL=IconButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.js","sources":["../../../../src/components/atoms/icon-button/IconButton.tsx"],"sourcesContent":["import { IconButton as MUIIconButton,
|
|
1
|
+
{"version":3,"file":"IconButton.js","sources":["../../../../src/components/atoms/icon-button/IconButton.tsx"],"sourcesContent":["import { IconButton as MUIIconButton, type SxProps } from '@mui/material';\nimport { merge } from 'lodash';\nimport { memo, type ReactNode } from 'react';\nimport { AoaTooltip } from '../tooltip/Tooltip';\n\nexport interface AoaIconButtonProps {\n /**\n * Data-qa tag for E2E test purposes\n */\n readonly 'data-qa'?: string;\n /**\n * Whether this button should be disabled\n */\n readonly disabled?: boolean;\n /**\n * The icon to be displayed as a button\n */\n readonly icon: JSX.Element;\n /**\n * Whether this button is being used inline\n */\n readonly inline?: boolean;\n /**\n * The label that is shown on hover\n */\n readonly label: string;\n /**\n * The action that should be triggered when clicking the button\n */\n onClick(this: void, ..._args: any[]): void;\n /**\n * Material UI's property to apply styling\n */\n readonly sx?: SxProps;\n}\n\n/**\n * Constructs an icon button using pre-defined Rijks styling\n *\n * @param props - Props to pass to the icon button\n * @example\n * ```jsx\n * <AoaIconButton onClick={() => console.log()} label='Order a burger' icon={<Fastfood />} />\n * ```\n */\n\nexport const AoaIconButton = memo((props: AoaIconButtonProps): ReactNode => {\n const Button = (\n <MUIIconButton\n aria-label={props.label}\n data-qa={props['data-qa']}\n disableFocusRipple\n disableRipple\n disableTouchRipple\n disabled={props.disabled}\n onClick={props.onClick}\n role='button'\n sx={merge(\n {\n color: 'var(--color-primary)',\n border: '1px solid var(--color-primary)',\n borderRadius: 0,\n ':hover, :active, :focus': {\n color: 'var(--color-primary-hover)',\n borderColor: 'var(--color-primary-hover)'\n },\n ':disabled': {\n backgroundColor: 'transparent',\n borderColor: 'var(--color-text-disabled)',\n color: 'var(--color-text-disabled)'\n },\n ':focus': {\n outline: '2px dashed var(--color-text)',\n outlineOffset: 3,\n boxShadow: 'none'\n },\n ...(props.inline && {\n border: 'none',\n padding: 0\n })\n },\n props.sx\n )}\n >\n {props.icon}\n </MUIIconButton>\n );\n\n return (\n <AoaTooltip title={props.label}>\n {props.disabled ? (\n <span aria-label={props.label} data-testid='disabled-span-wrapper' role='tooltip'>\n {Button}\n </span>\n ) : (\n Button\n )}\n </AoaTooltip>\n );\n});\n"],"names":["AoaIconButton","memo","props","Button","jsx","MUIIconButton","merge","AoaTooltip"],"mappings":";;;;;AA8Ca,MAAAA,IAAgBC,EAAK,CAACC,MAAyC;AAC1E,QAAMC,IACJ,gBAAAC;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,cAAYH,EAAM;AAAA,MAClB,WAASA,EAAM,SAAS;AAAA,MACxB,oBAAkB;AAAA,MAClB,eAAa;AAAA,MACb,oBAAkB;AAAA,MAClB,UAAUA,EAAM;AAAA,MAChB,SAASA,EAAM;AAAA,MACf,MAAK;AAAA,MACL,IAAII,EAAA;AAAA,QACF;AAAA,UACE,OAAO;AAAA,UACP,QAAQ;AAAA,UACR,cAAc;AAAA,UACd,2BAA2B;AAAA,YACzB,OAAO;AAAA,YACP,aAAa;AAAA,UACf;AAAA,UACA,aAAa;AAAA,YACX,iBAAiB;AAAA,YACjB,aAAa;AAAA,YACb,OAAO;AAAA,UACT;AAAA,UACA,UAAU;AAAA,YACR,SAAS;AAAA,YACT,eAAe;AAAA,YACf,WAAW;AAAA,UACb;AAAA,UACA,GAAIJ,EAAM,UAAU;AAAA,YAClB,QAAQ;AAAA,YACR,SAAS;AAAA,UAAA;AAAA,QAEb;AAAA,QACAA,EAAM;AAAA,MACR;AAAA,MAEC,UAAMA,EAAA;AAAA,IAAA;AAAA,EACT;AAGF,2BACGK,GAAW,EAAA,OAAOL,EAAM,OACtB,UAAAA,EAAM,WACJ,gBAAAE,EAAA,QAAA,EAAK,cAAYF,EAAM,OAAO,eAAY,yBAAwB,MAAK,WACrE,UAAAC,GACH,IAEAA,EAEJ,CAAA;AAEJ,CAAC;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TooltipProps } from '@mui/material';
|
|
2
|
+
export interface AoaTooltipProps extends TooltipProps {
|
|
3
|
+
/**
|
|
4
|
+
* Data-qa tag to apply to the tooltip
|
|
5
|
+
*/
|
|
6
|
+
readonly 'data-qa'?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Constructs a tooltip using pre-defined Rijks styling
|
|
10
|
+
*
|
|
11
|
+
* @param props - Props to pass to the {@link Tooltip}
|
|
12
|
+
*/
|
|
13
|
+
export declare function AoaTooltip({ 'data-qa': qaTag, title, placement, enterDelay, className, children, ...props }: AoaTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAGhF,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACnD;;OAEG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EACzB,SAAS,EAAE,KAAK,EAChB,KAAK,EACL,SAAS,EACT,UAAU,EACV,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,eAAe,2CAkCjB"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Tooltip as i, Box as x, tooltipClasses as d } from "@mui/material";
|
|
3
|
+
import { l as m } from "../../../chunks/lodash.DOeeRDpT.js";
|
|
4
|
+
function g({
|
|
5
|
+
"data-qa": t,
|
|
6
|
+
title: p,
|
|
7
|
+
placement: e,
|
|
8
|
+
enterDelay: l,
|
|
9
|
+
className: a,
|
|
10
|
+
children: s,
|
|
11
|
+
...o
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ r(
|
|
14
|
+
i,
|
|
15
|
+
{
|
|
16
|
+
...o,
|
|
17
|
+
classes: { popper: a },
|
|
18
|
+
describeChild: !0,
|
|
19
|
+
enterDelay: l ?? 300,
|
|
20
|
+
placement: e ?? "top",
|
|
21
|
+
slotProps: m.merge(
|
|
22
|
+
{
|
|
23
|
+
popper: {
|
|
24
|
+
sx: {
|
|
25
|
+
[`& .${d.tooltip}`]: {
|
|
26
|
+
lineHeight: 1.5,
|
|
27
|
+
backgroundColor: "#FFFFFF",
|
|
28
|
+
borderRadius: 0,
|
|
29
|
+
boxShadow: "0 1px 3px 0 rgb(0 0 0 / 20%), 0 1px 1px 0 rgb(0 0 0 / 14%), 0 2px 1px -1px rgb(0 0 0 / 12%) !important",
|
|
30
|
+
color: "var(--color-text)"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
o.slotProps
|
|
36
|
+
),
|
|
37
|
+
title: /* @__PURE__ */ r(x, { "data-qa": t, sx: { p: 1 }, children: p }),
|
|
38
|
+
children: s
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
g as AoaTooltip
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=Tooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.js","sources":["../../../../src/components/atoms/tooltip/Tooltip.tsx"],"sourcesContent":["import { Box, Tooltip, tooltipClasses, type TooltipProps } from '@mui/material';\nimport { merge } from 'lodash';\n\nexport interface AoaTooltipProps extends TooltipProps {\n /**\n * Data-qa tag to apply to the tooltip\n */\n readonly 'data-qa'?: string;\n}\n\n/**\n * Constructs a tooltip using pre-defined Rijks styling\n *\n * @param props - Props to pass to the {@link Tooltip}\n */\nexport function AoaTooltip({\n 'data-qa': qaTag,\n title,\n placement,\n enterDelay,\n className,\n children,\n ...props\n}: AoaTooltipProps) {\n return (\n <Tooltip\n {...props}\n classes={{ popper: className }}\n describeChild\n enterDelay={enterDelay ?? 300}\n placement={placement ?? 'top'}\n slotProps={merge(\n {\n popper: {\n sx: {\n [`& .${tooltipClasses.tooltip}`]: {\n lineHeight: 1.5,\n backgroundColor: '#FFFFFF',\n borderRadius: 0,\n boxShadow:\n '0 1px 3px 0 rgb(0 0 0 / 20%), 0 1px 1px 0 rgb(0 0 0 / 14%), 0 2px 1px -1px rgb(0 0 0 / 12%) !important',\n color: 'var(--color-text)'\n }\n }\n }\n },\n props.slotProps\n )}\n title={\n <Box data-qa={qaTag} sx={{ p: 1 }}>\n {title}\n </Box>\n }\n >\n {children}\n </Tooltip>\n );\n}\n"],"names":["AoaTooltip","qaTag","title","placement","enterDelay","className","children","props","jsx","Tooltip","merge","tooltipClasses","Box"],"mappings":";;;AAeO,SAASA,EAAW;AAAA,EACzB,WAAWC;AAAA,EACX,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,YAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,GAAoB;AAEhB,SAAA,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACE,GAAGF;AAAA,MACJ,SAAS,EAAE,QAAQF,EAAU;AAAA,MAC7B,eAAa;AAAA,MACb,YAAYD,KAAc;AAAA,MAC1B,WAAWD,KAAa;AAAA,MACxB,WAAWO,EAAA;AAAA,QACT;AAAA,UACE,QAAQ;AAAA,YACN,IAAI;AAAA,cACF,CAAC,MAAMC,EAAe,OAAO,EAAE,GAAG;AAAA,gBAChC,YAAY;AAAA,gBACZ,iBAAiB;AAAA,gBACjB,cAAc;AAAA,gBACd,WACE;AAAA,gBACF,OAAO;AAAA,cAAA;AAAA,YACT;AAAA,UACF;AAAA,QAEJ;AAAA,QACAJ,EAAM;AAAA,MACR;AAAA,MACA,OACG,gBAAAC,EAAAI,GAAA,EAAI,WAASX,GAAO,IAAI,EAAE,GAAG,EAAE,GAC7B,UACHC,EAAA,CAAA;AAAA,MAGD,UAAAI;AAAA,IAAA;AAAA,EACH;AAEJ;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export { AoaCheckbox, type AoaCheckboxProps } from './components/atoms/selection
|
|
|
11
11
|
export { AoaRadioButton, type AoaRadioButtonProps } from './components/atoms/selection-buttons/radio-button/RadioButton';
|
|
12
12
|
export { AoaSwitchButton, type AoaSwitchButtonProps } from './components/atoms/selection-buttons/switch-button/SwitchButton';
|
|
13
13
|
export { AoaTable, type AoaTableColumns, type AoaTableData, type AoaTableProps, type AoaTableQueryOptions } from './components/atoms/table/Table';
|
|
14
|
+
export { AoaTooltip, type AoaTooltipProps } from './components/atoms/tooltip/Tooltip';
|
|
14
15
|
export { AoaZeroWidthSpace } from './components/atoms/zero-width-space/ZeroWidthSpace';
|
|
15
16
|
export { AoaFieldError, type AoaFieldErrorProps } from './components/molecules/field-error/FieldError';
|
|
16
17
|
export { AoaFileDropzone, type AoaDropableFile, type AoaFileDropzoneDataQas, type AoaFileDropzoneProps } from './components/molecules/file-dropzone/FileDropzone';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,OAAO,EAAE,MAAM,6CAA6C,CAAC;AAC3E,YAAY,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AACnG,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAC3G,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MA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AAU,EAAE,KAAK,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAGvF,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACvG,OAAO,EACL,eAAe,EACf,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EAC1B,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AACnG,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AACnG,OAAO,EACL,YAAY,EACZ,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACrB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACL,mBAAmB,EACnB,KAAK,wBAAwB,EAC9B,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,KAAK,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACpG,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AACnH,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAG/G,OAAO,EACL,cAAc,IAAI,kBAAkB,EACpC,KAAK,mBAAmB,IAAI,uBAAuB,EACpD,MAAM,iDAAiD,CAAC;AAGzD,OAAO,EACL,eAAe,EACf,cAAc,EACd,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,EACZ,MAAM,gCAAgC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AoaButton as
|
|
1
|
+
import { AoaButton as a } from "./components/atoms/button/Button.js";
|
|
2
2
|
import { AoaIconButton as e } from "./components/atoms/icon-button/IconButton.js";
|
|
3
3
|
import { AoaInput as m } from "./components/atoms/input/Input.js";
|
|
4
4
|
import { AoaLogo as x } from "./components/atoms/logo/Logo.js";
|
|
@@ -8,44 +8,46 @@ import { AoaSectionHeader as d } from "./components/atoms/section-header/Section
|
|
|
8
8
|
import { AoaCheckbox as F } from "./components/atoms/selection-buttons/checkbox/Checkbox.js";
|
|
9
9
|
import { AoaRadioButton as c } from "./components/atoms/selection-buttons/radio-button/RadioButton.js";
|
|
10
10
|
import { AoaSwitchButton as b } from "./components/atoms/selection-buttons/switch-button/SwitchButton.js";
|
|
11
|
-
import { AoaTable as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
11
|
+
import { AoaTable as T } from "./components/atoms/table/Table.js";
|
|
12
|
+
import { AoaTooltip as w } from "./components/atoms/tooltip/Tooltip.js";
|
|
13
|
+
import { AoaZeroWidthSpace as N } from "./components/atoms/zero-width-space/ZeroWidthSpace.js";
|
|
14
|
+
import { A as E, a as I, b as P, c as k, d as v, u as z, e as D, f as H, w as L } from "./chunks/FieldError.DAUtZvvC.js";
|
|
15
|
+
import { AoaFileDropzone as U } from "./components/molecules/file-dropzone/FileDropzone.js";
|
|
16
|
+
import { AoaFileTable as Z } from "./components/molecules/file-table/FileTable.js";
|
|
17
|
+
import { AoaModalCloseButton as q } from "./components/molecules/modal-close-button/ModalCloseButton.js";
|
|
18
|
+
import { AoaModal as G } from "./components/molecules/modal/Modal.js";
|
|
19
|
+
import { AoaNavigationBar as K } from "./components/molecules/navigation-bar/NavigationBar.js";
|
|
20
|
+
import { AoaUploadButton as Q } from "./components/molecules/upload-button/UploadButton.js";
|
|
21
|
+
import { AoaContentPage as X } from "./components/organisms/content-page/ContentPage.js";
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
+
a as AoaButton,
|
|
23
24
|
F as AoaCheckbox,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
X as AoaContentTemplate,
|
|
26
|
+
E as AoaFieldError,
|
|
27
|
+
U as AoaFileDropzone,
|
|
28
|
+
Z as AoaFileTable,
|
|
29
|
+
I as AoaFormError,
|
|
30
|
+
P as AoaFormModal,
|
|
30
31
|
e as AoaIconButton,
|
|
31
32
|
m as AoaInput,
|
|
32
33
|
x as AoaLogo,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
G as AoaModal,
|
|
35
|
+
q as AoaModalCloseButton,
|
|
36
|
+
K as AoaNavigationBar,
|
|
36
37
|
n as AoaNoPermission,
|
|
37
38
|
s as AoaNotification,
|
|
38
39
|
c as AoaRadioButton,
|
|
39
40
|
d as AoaSectionHeader,
|
|
40
41
|
b as AoaSwitchButton,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
T as AoaTable,
|
|
43
|
+
w as AoaTooltip,
|
|
44
|
+
Q as AoaUploadButton,
|
|
45
|
+
N as AoaZeroWidthSpace,
|
|
46
|
+
k as aoaFieldContext,
|
|
47
|
+
v as aoaFormContext,
|
|
48
|
+
z as useAoaAppForm,
|
|
49
|
+
D as useAoaFieldContext,
|
|
50
|
+
H as useAoaFormContext,
|
|
51
|
+
L as withAoaForm
|
|
50
52
|
};
|
|
51
53
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rws-aoa/react-library",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "RWS AOA Design System",
|
|
5
5
|
"author": "@rws-aoa",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -210,6 +210,10 @@
|
|
|
210
210
|
"types": "./dist/contexts/TanstackFormContext.ts",
|
|
211
211
|
"default": "./dist/contexts/TanstackFormContext.ts"
|
|
212
212
|
},
|
|
213
|
+
"./tooltip": {
|
|
214
|
+
"types": "./dist/components/atoms/tooltip/Tooltip.d.ts",
|
|
215
|
+
"default": "./dist/components/atoms/tooltip/Tooltip.js"
|
|
216
|
+
},
|
|
213
217
|
"./uploadbutton": {
|
|
214
218
|
"types": "./dist/components/molecules/upload-button/UploadButton.d.ts",
|
|
215
219
|
"default": "./dist/components/molecules/upload-button/UploadButton.js"
|