@dmsi/wedgekit-react 0.0.498 → 0.0.500
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/{chunk-3WCLGTYP.js → chunk-4LBQSSGH.js} +1 -1
- package/dist/{chunk-RQRR4FEF.js → chunk-5MLYAQQO.js} +1 -1
- package/dist/{chunk-44TH3VC7.js → chunk-G4AWTFBQ.js} +15 -6
- package/dist/{chunk-ZKTHUXKS.js → chunk-HIKWIY5Q.js} +1 -1
- package/dist/{chunk-HVNHTM3P.js → chunk-PIBHG6DH.js} +1 -1
- package/dist/{chunk-X67L3NZI.js → chunk-TOKS63IK.js} +5 -3
- package/dist/{chunk-7LKGHCVT.js → chunk-TWDH7ZDS.js} +5 -5
- package/dist/{chunk-G7KIKHER.js → chunk-X4UK7HE2.js} +4 -2
- package/dist/{chunk-4Q7T4GJ2.js → chunk-YD3HWIUJ.js} +1 -1
- package/dist/components/CalendarRange.cjs +20 -10
- package/dist/components/CalendarRange.js +9 -9
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +20 -10
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +9 -9
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +20 -10
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +9 -9
- package/dist/components/DataGrid/PinnedColumns.cjs +20 -10
- package/dist/components/DataGrid/PinnedColumns.js +9 -9
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +20 -10
- package/dist/components/DataGrid/TableBody/LoadingCell.js +9 -9
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +20 -10
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +9 -9
- package/dist/components/DataGrid/TableBody/index.cjs +20 -10
- package/dist/components/DataGrid/TableBody/index.js +9 -9
- package/dist/components/DataGrid/index.cjs +20 -10
- package/dist/components/DataGrid/index.js +9 -9
- package/dist/components/DataGrid/utils.cjs +20 -10
- package/dist/components/DataGrid/utils.js +9 -9
- package/dist/components/DataGridCell.cjs +12 -6
- package/dist/components/DataGridCell.js +3 -3
- package/dist/components/DateInput.cjs +102 -92
- package/dist/components/DateInput.js +9 -9
- package/dist/components/DateRangeInput.cjs +102 -92
- package/dist/components/DateRangeInput.js +9 -9
- package/dist/components/FilterGroup.cjs +12 -6
- package/dist/components/FilterGroup.js +2 -2
- package/dist/components/Input.cjs +94 -35
- package/dist/components/Input.js +2 -1
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +20 -10
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +9 -9
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +20 -10
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +9 -9
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +8 -4
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +3 -3
- package/dist/components/MobileDataGrid/index.cjs +20 -10
- package/dist/components/MobileDataGrid/index.js +9 -9
- package/dist/components/Modal.cjs +8 -4
- package/dist/components/Modal.js +2 -2
- package/dist/components/ModalHeader.cjs +4 -2
- package/dist/components/ModalHeader.js +1 -1
- package/dist/components/PDFViewer/index.cjs +8 -4
- package/dist/components/PDFViewer/index.js +3 -3
- package/dist/components/Password.cjs +99 -40
- package/dist/components/Password.js +2 -1
- package/dist/components/Search.cjs +97 -38
- package/dist/components/Search.js +3 -2
- package/dist/components/Select.cjs +102 -43
- package/dist/components/Select.js +3 -2
- package/dist/components/Stepper.cjs +107 -48
- package/dist/components/Stepper.js +2 -1
- package/dist/components/Time.cjs +114 -55
- package/dist/components/Time.js +2 -1
- package/dist/components/index.cjs +20 -10
- package/dist/components/index.js +9 -9
- package/package.json +1 -1
- package/src/components/Input.tsx +10 -4
- package/src/components/Modal.tsx +3 -0
- package/src/components/ModalHeader.tsx +6 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ColumnSelectorHeaderCell
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-TWDH7ZDS.js";
|
|
4
4
|
import "../../../chunk-M7INAUAJ.js";
|
|
5
|
-
import "../../../chunk-
|
|
5
|
+
import "../../../chunk-YD3HWIUJ.js";
|
|
6
6
|
import "../../../chunk-3DEYCNUE.js";
|
|
7
7
|
import "../../../chunk-XHQOTLG6.js";
|
|
8
8
|
import "../../../chunk-BQNPOGD5.js";
|
|
9
9
|
import "../../../chunk-Y5GD2FJA.js";
|
|
10
|
-
import "../../../chunk-
|
|
10
|
+
import "../../../chunk-4LBQSSGH.js";
|
|
11
11
|
import "../../../chunk-YEZBNQZI.js";
|
|
12
12
|
import "../../../chunk-B53XDCLO.js";
|
|
13
13
|
import "../../../chunk-S5ZJ3Q7P.js";
|
|
@@ -28,23 +28,23 @@ import "../../../chunk-7BVUTFZ5.js";
|
|
|
28
28
|
import "../../../chunk-L3BXRDLP.js";
|
|
29
29
|
import "../../../chunk-34VEVX5H.js";
|
|
30
30
|
import "../../../chunk-GRGDX7JC.js";
|
|
31
|
-
import "../../../chunk-
|
|
32
|
-
import "../../../chunk-
|
|
31
|
+
import "../../../chunk-PIBHG6DH.js";
|
|
32
|
+
import "../../../chunk-TOKS63IK.js";
|
|
33
33
|
import "../../../chunk-4RJKB7LC.js";
|
|
34
34
|
import "../../../chunk-FG7GNGE3.js";
|
|
35
|
-
import "../../../chunk-
|
|
35
|
+
import "../../../chunk-X4UK7HE2.js";
|
|
36
36
|
import "../../../chunk-AG43RS4Q.js";
|
|
37
37
|
import "../../../chunk-ZQJMNPCF.js";
|
|
38
38
|
import "../../../chunk-6TYWM26K.js";
|
|
39
39
|
import "../../../chunk-SBRRNFOP.js";
|
|
40
40
|
import "../../../chunk-Y2GK27RX.js";
|
|
41
41
|
import "../../../chunk-QVWYTQKL.js";
|
|
42
|
-
import "../../../chunk-
|
|
42
|
+
import "../../../chunk-HIKWIY5Q.js";
|
|
43
43
|
import "../../../chunk-TCMOGTPB.js";
|
|
44
44
|
import "../../../chunk-DVU5XV7L.js";
|
|
45
45
|
import "../../../chunk-5R4C5F63.js";
|
|
46
|
-
import "../../../chunk-
|
|
47
|
-
import "../../../chunk-
|
|
46
|
+
import "../../../chunk-5MLYAQQO.js";
|
|
47
|
+
import "../../../chunk-G4AWTFBQ.js";
|
|
48
48
|
import "../../../chunk-AL5QIRY3.js";
|
|
49
49
|
import "../../../chunk-WVUIIBRR.js";
|
|
50
50
|
import "../../../chunk-75USUR3I.js";
|
|
@@ -1624,6 +1624,7 @@ var InputBase = (_a) => {
|
|
|
1624
1624
|
testid,
|
|
1625
1625
|
before,
|
|
1626
1626
|
after,
|
|
1627
|
+
rightAdornment,
|
|
1627
1628
|
type,
|
|
1628
1629
|
label,
|
|
1629
1630
|
error,
|
|
@@ -1647,6 +1648,7 @@ var InputBase = (_a) => {
|
|
|
1647
1648
|
"testid",
|
|
1648
1649
|
"before",
|
|
1649
1650
|
"after",
|
|
1651
|
+
"rightAdornment",
|
|
1650
1652
|
"type",
|
|
1651
1653
|
"label",
|
|
1652
1654
|
"error",
|
|
@@ -1788,7 +1790,8 @@ var InputBase = (_a) => {
|
|
|
1788
1790
|
style: __spreadProps(__spreadValues({}, props.style), { width })
|
|
1789
1791
|
})
|
|
1790
1792
|
),
|
|
1791
|
-
secondaryIconColor ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "contents text-text-secondary-normal", children: after }) : after
|
|
1793
|
+
secondaryIconColor ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "contents text-text-secondary-normal", children: after }) : after,
|
|
1794
|
+
rightAdornment
|
|
1792
1795
|
]
|
|
1793
1796
|
}
|
|
1794
1797
|
),
|
|
@@ -1815,7 +1818,8 @@ var Input = (_a) => {
|
|
|
1815
1818
|
onBlur,
|
|
1816
1819
|
onClear,
|
|
1817
1820
|
id,
|
|
1818
|
-
testid
|
|
1821
|
+
testid,
|
|
1822
|
+
rightAdornment
|
|
1819
1823
|
} = _b, props = __objRest(_b, [
|
|
1820
1824
|
"variant",
|
|
1821
1825
|
"decimals",
|
|
@@ -1826,7 +1830,8 @@ var Input = (_a) => {
|
|
|
1826
1830
|
"onBlur",
|
|
1827
1831
|
"onClear",
|
|
1828
1832
|
"id",
|
|
1829
|
-
"testid"
|
|
1833
|
+
"testid",
|
|
1834
|
+
"rightAdornment"
|
|
1830
1835
|
]);
|
|
1831
1836
|
const [internalValue, setInternalValue] = (0, import_react9.useState)("");
|
|
1832
1837
|
const [displayValue, setDisplayValue] = (0, import_react9.useState)("");
|
|
@@ -1848,7 +1853,7 @@ var Input = (_a) => {
|
|
|
1848
1853
|
const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
|
|
1849
1854
|
setInternalValue(formatted);
|
|
1850
1855
|
setDisplayValue(formatCurrencyDisplay(formatted));
|
|
1851
|
-
}, []);
|
|
1856
|
+
}, [variant, propValue, decimals]);
|
|
1852
1857
|
const getInputProps = () => {
|
|
1853
1858
|
var _a2;
|
|
1854
1859
|
const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
|
|
@@ -1911,7 +1916,7 @@ var Input = (_a) => {
|
|
|
1911
1916
|
case "finder":
|
|
1912
1917
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "search" });
|
|
1913
1918
|
case "uom":
|
|
1914
|
-
return uom ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1919
|
+
return uom ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Paragraph, { color: "text-secondary-normal", children: uom.toUpperCase() }) : null;
|
|
1915
1920
|
case "percentage":
|
|
1916
1921
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "percent" }) });
|
|
1917
1922
|
default:
|
|
@@ -1997,7 +2002,8 @@ var Input = (_a) => {
|
|
|
1997
2002
|
after: getAfterElement(),
|
|
1998
2003
|
onChange: handleChange,
|
|
1999
2004
|
onBlur: handleBlur,
|
|
2000
|
-
testid
|
|
2005
|
+
testid,
|
|
2006
|
+
rightAdornment
|
|
2001
2007
|
})
|
|
2002
2008
|
);
|
|
2003
2009
|
};
|
|
@@ -4800,8 +4806,10 @@ var ModalHeader = ({
|
|
|
4800
4806
|
onClose,
|
|
4801
4807
|
id,
|
|
4802
4808
|
testid,
|
|
4803
|
-
headerClassname
|
|
4809
|
+
headerClassname,
|
|
4810
|
+
titleAs: TitleComponent
|
|
4804
4811
|
}) => {
|
|
4812
|
+
const Title = TitleComponent || Heading2;
|
|
4805
4813
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
4806
4814
|
"div",
|
|
4807
4815
|
{
|
|
@@ -4820,7 +4828,7 @@ var ModalHeader = ({
|
|
|
4820
4828
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: (0, import_clsx24.default)("flex items-center flex-1", layoutGroupGap), children: [
|
|
4821
4829
|
headerIcon,
|
|
4822
4830
|
title && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
4823
|
-
|
|
4831
|
+
Title,
|
|
4824
4832
|
{
|
|
4825
4833
|
id: id ? `${id}-title` : void 0,
|
|
4826
4834
|
testid: testid ? `${testid}-title` : void 0,
|
|
@@ -5050,7 +5058,8 @@ var Modal = ({
|
|
|
5050
5058
|
customActions,
|
|
5051
5059
|
headerClassname,
|
|
5052
5060
|
customFooter,
|
|
5053
|
-
noWrapper
|
|
5061
|
+
noWrapper,
|
|
5062
|
+
titleAs: TitleComponent
|
|
5054
5063
|
}) => {
|
|
5055
5064
|
var _a;
|
|
5056
5065
|
const mounted = useMounted();
|
|
@@ -5176,7 +5185,8 @@ var Modal = ({
|
|
|
5176
5185
|
hideCloseIcon,
|
|
5177
5186
|
headerIcon,
|
|
5178
5187
|
headerIconAlign,
|
|
5179
|
-
headerClassname
|
|
5188
|
+
headerClassname,
|
|
5189
|
+
titleAs: TitleComponent
|
|
5180
5190
|
}
|
|
5181
5191
|
),
|
|
5182
5192
|
children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PinnedColumns
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-TWDH7ZDS.js";
|
|
4
4
|
import "../../chunk-M7INAUAJ.js";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-YD3HWIUJ.js";
|
|
6
6
|
import "../../chunk-3DEYCNUE.js";
|
|
7
7
|
import "../../chunk-XHQOTLG6.js";
|
|
8
8
|
import "../../chunk-BQNPOGD5.js";
|
|
9
9
|
import "../../chunk-Y5GD2FJA.js";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-4LBQSSGH.js";
|
|
11
11
|
import "../../chunk-YEZBNQZI.js";
|
|
12
12
|
import "../../chunk-B53XDCLO.js";
|
|
13
13
|
import "../../chunk-S5ZJ3Q7P.js";
|
|
@@ -28,23 +28,23 @@ import "../../chunk-7BVUTFZ5.js";
|
|
|
28
28
|
import "../../chunk-L3BXRDLP.js";
|
|
29
29
|
import "../../chunk-34VEVX5H.js";
|
|
30
30
|
import "../../chunk-GRGDX7JC.js";
|
|
31
|
-
import "../../chunk-
|
|
32
|
-
import "../../chunk-
|
|
31
|
+
import "../../chunk-PIBHG6DH.js";
|
|
32
|
+
import "../../chunk-TOKS63IK.js";
|
|
33
33
|
import "../../chunk-4RJKB7LC.js";
|
|
34
34
|
import "../../chunk-FG7GNGE3.js";
|
|
35
|
-
import "../../chunk-
|
|
35
|
+
import "../../chunk-X4UK7HE2.js";
|
|
36
36
|
import "../../chunk-AG43RS4Q.js";
|
|
37
37
|
import "../../chunk-ZQJMNPCF.js";
|
|
38
38
|
import "../../chunk-6TYWM26K.js";
|
|
39
39
|
import "../../chunk-SBRRNFOP.js";
|
|
40
40
|
import "../../chunk-Y2GK27RX.js";
|
|
41
41
|
import "../../chunk-QVWYTQKL.js";
|
|
42
|
-
import "../../chunk-
|
|
42
|
+
import "../../chunk-HIKWIY5Q.js";
|
|
43
43
|
import "../../chunk-TCMOGTPB.js";
|
|
44
44
|
import "../../chunk-DVU5XV7L.js";
|
|
45
45
|
import "../../chunk-5R4C5F63.js";
|
|
46
|
-
import "../../chunk-
|
|
47
|
-
import "../../chunk-
|
|
46
|
+
import "../../chunk-5MLYAQQO.js";
|
|
47
|
+
import "../../chunk-G4AWTFBQ.js";
|
|
48
48
|
import "../../chunk-AL5QIRY3.js";
|
|
49
49
|
import "../../chunk-WVUIIBRR.js";
|
|
50
50
|
import "../../chunk-75USUR3I.js";
|
|
@@ -1623,6 +1623,7 @@ var InputBase = (_a) => {
|
|
|
1623
1623
|
testid,
|
|
1624
1624
|
before,
|
|
1625
1625
|
after,
|
|
1626
|
+
rightAdornment,
|
|
1626
1627
|
type,
|
|
1627
1628
|
label,
|
|
1628
1629
|
error,
|
|
@@ -1646,6 +1647,7 @@ var InputBase = (_a) => {
|
|
|
1646
1647
|
"testid",
|
|
1647
1648
|
"before",
|
|
1648
1649
|
"after",
|
|
1650
|
+
"rightAdornment",
|
|
1649
1651
|
"type",
|
|
1650
1652
|
"label",
|
|
1651
1653
|
"error",
|
|
@@ -1787,7 +1789,8 @@ var InputBase = (_a) => {
|
|
|
1787
1789
|
style: __spreadProps(__spreadValues({}, props.style), { width })
|
|
1788
1790
|
})
|
|
1789
1791
|
),
|
|
1790
|
-
secondaryIconColor ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "contents text-text-secondary-normal", children: after }) : after
|
|
1792
|
+
secondaryIconColor ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "contents text-text-secondary-normal", children: after }) : after,
|
|
1793
|
+
rightAdornment
|
|
1791
1794
|
]
|
|
1792
1795
|
}
|
|
1793
1796
|
),
|
|
@@ -1814,7 +1817,8 @@ var Input = (_a) => {
|
|
|
1814
1817
|
onBlur,
|
|
1815
1818
|
onClear,
|
|
1816
1819
|
id,
|
|
1817
|
-
testid
|
|
1820
|
+
testid,
|
|
1821
|
+
rightAdornment
|
|
1818
1822
|
} = _b, props = __objRest(_b, [
|
|
1819
1823
|
"variant",
|
|
1820
1824
|
"decimals",
|
|
@@ -1825,7 +1829,8 @@ var Input = (_a) => {
|
|
|
1825
1829
|
"onBlur",
|
|
1826
1830
|
"onClear",
|
|
1827
1831
|
"id",
|
|
1828
|
-
"testid"
|
|
1832
|
+
"testid",
|
|
1833
|
+
"rightAdornment"
|
|
1829
1834
|
]);
|
|
1830
1835
|
const [internalValue, setInternalValue] = (0, import_react9.useState)("");
|
|
1831
1836
|
const [displayValue, setDisplayValue] = (0, import_react9.useState)("");
|
|
@@ -1847,7 +1852,7 @@ var Input = (_a) => {
|
|
|
1847
1852
|
const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
|
|
1848
1853
|
setInternalValue(formatted);
|
|
1849
1854
|
setDisplayValue(formatCurrencyDisplay(formatted));
|
|
1850
|
-
}, []);
|
|
1855
|
+
}, [variant, propValue, decimals]);
|
|
1851
1856
|
const getInputProps = () => {
|
|
1852
1857
|
var _a2;
|
|
1853
1858
|
const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
|
|
@@ -1910,7 +1915,7 @@ var Input = (_a) => {
|
|
|
1910
1915
|
case "finder":
|
|
1911
1916
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "search" });
|
|
1912
1917
|
case "uom":
|
|
1913
|
-
return uom ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1918
|
+
return uom ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Paragraph, { color: "text-secondary-normal", children: uom.toUpperCase() }) : null;
|
|
1914
1919
|
case "percentage":
|
|
1915
1920
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "percent" }) });
|
|
1916
1921
|
default:
|
|
@@ -1996,7 +2001,8 @@ var Input = (_a) => {
|
|
|
1996
2001
|
after: getAfterElement(),
|
|
1997
2002
|
onChange: handleChange,
|
|
1998
2003
|
onBlur: handleBlur,
|
|
1999
|
-
testid
|
|
2004
|
+
testid,
|
|
2005
|
+
rightAdornment
|
|
2000
2006
|
})
|
|
2001
2007
|
);
|
|
2002
2008
|
};
|
|
@@ -5017,8 +5023,10 @@ var ModalHeader = ({
|
|
|
5017
5023
|
onClose,
|
|
5018
5024
|
id,
|
|
5019
5025
|
testid,
|
|
5020
|
-
headerClassname
|
|
5026
|
+
headerClassname,
|
|
5027
|
+
titleAs: TitleComponent
|
|
5021
5028
|
}) => {
|
|
5029
|
+
const Title = TitleComponent || Heading2;
|
|
5022
5030
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
5023
5031
|
"div",
|
|
5024
5032
|
{
|
|
@@ -5037,7 +5045,7 @@ var ModalHeader = ({
|
|
|
5037
5045
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: (0, import_clsx25.default)("flex items-center flex-1", layoutGroupGap), children: [
|
|
5038
5046
|
headerIcon,
|
|
5039
5047
|
title && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
5040
|
-
|
|
5048
|
+
Title,
|
|
5041
5049
|
{
|
|
5042
5050
|
id: id ? `${id}-title` : void 0,
|
|
5043
5051
|
testid: testid ? `${testid}-title` : void 0,
|
|
@@ -5267,7 +5275,8 @@ var Modal = ({
|
|
|
5267
5275
|
customActions,
|
|
5268
5276
|
headerClassname,
|
|
5269
5277
|
customFooter,
|
|
5270
|
-
noWrapper
|
|
5278
|
+
noWrapper,
|
|
5279
|
+
titleAs: TitleComponent
|
|
5271
5280
|
}) => {
|
|
5272
5281
|
var _a;
|
|
5273
5282
|
const mounted = useMounted();
|
|
@@ -5393,7 +5402,8 @@ var Modal = ({
|
|
|
5393
5402
|
hideCloseIcon,
|
|
5394
5403
|
headerIcon,
|
|
5395
5404
|
headerIconAlign,
|
|
5396
|
-
headerClassname
|
|
5405
|
+
headerClassname,
|
|
5406
|
+
titleAs: TitleComponent
|
|
5397
5407
|
}
|
|
5398
5408
|
),
|
|
5399
5409
|
children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LoadingCell
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-TWDH7ZDS.js";
|
|
4
4
|
import "../../../chunk-M7INAUAJ.js";
|
|
5
|
-
import "../../../chunk-
|
|
5
|
+
import "../../../chunk-YD3HWIUJ.js";
|
|
6
6
|
import "../../../chunk-3DEYCNUE.js";
|
|
7
7
|
import "../../../chunk-XHQOTLG6.js";
|
|
8
8
|
import "../../../chunk-BQNPOGD5.js";
|
|
9
9
|
import "../../../chunk-Y5GD2FJA.js";
|
|
10
|
-
import "../../../chunk-
|
|
10
|
+
import "../../../chunk-4LBQSSGH.js";
|
|
11
11
|
import "../../../chunk-YEZBNQZI.js";
|
|
12
12
|
import "../../../chunk-B53XDCLO.js";
|
|
13
13
|
import "../../../chunk-S5ZJ3Q7P.js";
|
|
@@ -28,23 +28,23 @@ import "../../../chunk-7BVUTFZ5.js";
|
|
|
28
28
|
import "../../../chunk-L3BXRDLP.js";
|
|
29
29
|
import "../../../chunk-34VEVX5H.js";
|
|
30
30
|
import "../../../chunk-GRGDX7JC.js";
|
|
31
|
-
import "../../../chunk-
|
|
32
|
-
import "../../../chunk-
|
|
31
|
+
import "../../../chunk-PIBHG6DH.js";
|
|
32
|
+
import "../../../chunk-TOKS63IK.js";
|
|
33
33
|
import "../../../chunk-4RJKB7LC.js";
|
|
34
34
|
import "../../../chunk-FG7GNGE3.js";
|
|
35
|
-
import "../../../chunk-
|
|
35
|
+
import "../../../chunk-X4UK7HE2.js";
|
|
36
36
|
import "../../../chunk-AG43RS4Q.js";
|
|
37
37
|
import "../../../chunk-ZQJMNPCF.js";
|
|
38
38
|
import "../../../chunk-6TYWM26K.js";
|
|
39
39
|
import "../../../chunk-SBRRNFOP.js";
|
|
40
40
|
import "../../../chunk-Y2GK27RX.js";
|
|
41
41
|
import "../../../chunk-QVWYTQKL.js";
|
|
42
|
-
import "../../../chunk-
|
|
42
|
+
import "../../../chunk-HIKWIY5Q.js";
|
|
43
43
|
import "../../../chunk-TCMOGTPB.js";
|
|
44
44
|
import "../../../chunk-DVU5XV7L.js";
|
|
45
45
|
import "../../../chunk-5R4C5F63.js";
|
|
46
|
-
import "../../../chunk-
|
|
47
|
-
import "../../../chunk-
|
|
46
|
+
import "../../../chunk-5MLYAQQO.js";
|
|
47
|
+
import "../../../chunk-G4AWTFBQ.js";
|
|
48
48
|
import "../../../chunk-AL5QIRY3.js";
|
|
49
49
|
import "../../../chunk-WVUIIBRR.js";
|
|
50
50
|
import "../../../chunk-75USUR3I.js";
|
|
@@ -1626,6 +1626,7 @@ var InputBase = (_a) => {
|
|
|
1626
1626
|
testid,
|
|
1627
1627
|
before,
|
|
1628
1628
|
after,
|
|
1629
|
+
rightAdornment,
|
|
1629
1630
|
type,
|
|
1630
1631
|
label,
|
|
1631
1632
|
error,
|
|
@@ -1649,6 +1650,7 @@ var InputBase = (_a) => {
|
|
|
1649
1650
|
"testid",
|
|
1650
1651
|
"before",
|
|
1651
1652
|
"after",
|
|
1653
|
+
"rightAdornment",
|
|
1652
1654
|
"type",
|
|
1653
1655
|
"label",
|
|
1654
1656
|
"error",
|
|
@@ -1790,7 +1792,8 @@ var InputBase = (_a) => {
|
|
|
1790
1792
|
style: __spreadProps(__spreadValues({}, props.style), { width })
|
|
1791
1793
|
})
|
|
1792
1794
|
),
|
|
1793
|
-
secondaryIconColor ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "contents text-text-secondary-normal", children: after }) : after
|
|
1795
|
+
secondaryIconColor ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "contents text-text-secondary-normal", children: after }) : after,
|
|
1796
|
+
rightAdornment
|
|
1794
1797
|
]
|
|
1795
1798
|
}
|
|
1796
1799
|
),
|
|
@@ -1817,7 +1820,8 @@ var Input = (_a) => {
|
|
|
1817
1820
|
onBlur,
|
|
1818
1821
|
onClear,
|
|
1819
1822
|
id,
|
|
1820
|
-
testid
|
|
1823
|
+
testid,
|
|
1824
|
+
rightAdornment
|
|
1821
1825
|
} = _b, props = __objRest(_b, [
|
|
1822
1826
|
"variant",
|
|
1823
1827
|
"decimals",
|
|
@@ -1828,7 +1832,8 @@ var Input = (_a) => {
|
|
|
1828
1832
|
"onBlur",
|
|
1829
1833
|
"onClear",
|
|
1830
1834
|
"id",
|
|
1831
|
-
"testid"
|
|
1835
|
+
"testid",
|
|
1836
|
+
"rightAdornment"
|
|
1832
1837
|
]);
|
|
1833
1838
|
const [internalValue, setInternalValue] = (0, import_react9.useState)("");
|
|
1834
1839
|
const [displayValue, setDisplayValue] = (0, import_react9.useState)("");
|
|
@@ -1850,7 +1855,7 @@ var Input = (_a) => {
|
|
|
1850
1855
|
const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
|
|
1851
1856
|
setInternalValue(formatted);
|
|
1852
1857
|
setDisplayValue(formatCurrencyDisplay(formatted));
|
|
1853
|
-
}, []);
|
|
1858
|
+
}, [variant, propValue, decimals]);
|
|
1854
1859
|
const getInputProps = () => {
|
|
1855
1860
|
var _a2;
|
|
1856
1861
|
const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
|
|
@@ -1913,7 +1918,7 @@ var Input = (_a) => {
|
|
|
1913
1918
|
case "finder":
|
|
1914
1919
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "search" });
|
|
1915
1920
|
case "uom":
|
|
1916
|
-
return uom ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1921
|
+
return uom ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Paragraph, { color: "text-secondary-normal", children: uom.toUpperCase() }) : null;
|
|
1917
1922
|
case "percentage":
|
|
1918
1923
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "percent" }) });
|
|
1919
1924
|
default:
|
|
@@ -1999,7 +2004,8 @@ var Input = (_a) => {
|
|
|
1999
2004
|
after: getAfterElement(),
|
|
2000
2005
|
onChange: handleChange,
|
|
2001
2006
|
onBlur: handleBlur,
|
|
2002
|
-
testid
|
|
2007
|
+
testid,
|
|
2008
|
+
rightAdornment
|
|
2003
2009
|
})
|
|
2004
2010
|
);
|
|
2005
2011
|
};
|
|
@@ -4951,8 +4957,10 @@ var ModalHeader = ({
|
|
|
4951
4957
|
onClose,
|
|
4952
4958
|
id,
|
|
4953
4959
|
testid,
|
|
4954
|
-
headerClassname
|
|
4960
|
+
headerClassname,
|
|
4961
|
+
titleAs: TitleComponent
|
|
4955
4962
|
}) => {
|
|
4963
|
+
const Title = TitleComponent || Heading2;
|
|
4956
4964
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
4957
4965
|
"div",
|
|
4958
4966
|
{
|
|
@@ -4971,7 +4979,7 @@ var ModalHeader = ({
|
|
|
4971
4979
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: (0, import_clsx24.default)("flex items-center flex-1", layoutGroupGap), children: [
|
|
4972
4980
|
headerIcon,
|
|
4973
4981
|
title && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
4974
|
-
|
|
4982
|
+
Title,
|
|
4975
4983
|
{
|
|
4976
4984
|
id: id ? `${id}-title` : void 0,
|
|
4977
4985
|
testid: testid ? `${testid}-title` : void 0,
|
|
@@ -5201,7 +5209,8 @@ var Modal = ({
|
|
|
5201
5209
|
customActions,
|
|
5202
5210
|
headerClassname,
|
|
5203
5211
|
customFooter,
|
|
5204
|
-
noWrapper
|
|
5212
|
+
noWrapper,
|
|
5213
|
+
titleAs: TitleComponent
|
|
5205
5214
|
}) => {
|
|
5206
5215
|
var _a;
|
|
5207
5216
|
const mounted = useMounted();
|
|
@@ -5327,7 +5336,8 @@ var Modal = ({
|
|
|
5327
5336
|
hideCloseIcon,
|
|
5328
5337
|
headerIcon,
|
|
5329
5338
|
headerIconAlign,
|
|
5330
|
-
headerClassname
|
|
5339
|
+
headerClassname,
|
|
5340
|
+
titleAs: TitleComponent
|
|
5331
5341
|
}
|
|
5332
5342
|
),
|
|
5333
5343
|
children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TableBodyRow
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-TWDH7ZDS.js";
|
|
4
4
|
import "../../../chunk-M7INAUAJ.js";
|
|
5
|
-
import "../../../chunk-
|
|
5
|
+
import "../../../chunk-YD3HWIUJ.js";
|
|
6
6
|
import "../../../chunk-3DEYCNUE.js";
|
|
7
7
|
import "../../../chunk-XHQOTLG6.js";
|
|
8
8
|
import "../../../chunk-BQNPOGD5.js";
|
|
9
9
|
import "../../../chunk-Y5GD2FJA.js";
|
|
10
|
-
import "../../../chunk-
|
|
10
|
+
import "../../../chunk-4LBQSSGH.js";
|
|
11
11
|
import "../../../chunk-YEZBNQZI.js";
|
|
12
12
|
import "../../../chunk-B53XDCLO.js";
|
|
13
13
|
import "../../../chunk-S5ZJ3Q7P.js";
|
|
@@ -28,23 +28,23 @@ import "../../../chunk-7BVUTFZ5.js";
|
|
|
28
28
|
import "../../../chunk-L3BXRDLP.js";
|
|
29
29
|
import "../../../chunk-34VEVX5H.js";
|
|
30
30
|
import "../../../chunk-GRGDX7JC.js";
|
|
31
|
-
import "../../../chunk-
|
|
32
|
-
import "../../../chunk-
|
|
31
|
+
import "../../../chunk-PIBHG6DH.js";
|
|
32
|
+
import "../../../chunk-TOKS63IK.js";
|
|
33
33
|
import "../../../chunk-4RJKB7LC.js";
|
|
34
34
|
import "../../../chunk-FG7GNGE3.js";
|
|
35
|
-
import "../../../chunk-
|
|
35
|
+
import "../../../chunk-X4UK7HE2.js";
|
|
36
36
|
import "../../../chunk-AG43RS4Q.js";
|
|
37
37
|
import "../../../chunk-ZQJMNPCF.js";
|
|
38
38
|
import "../../../chunk-6TYWM26K.js";
|
|
39
39
|
import "../../../chunk-SBRRNFOP.js";
|
|
40
40
|
import "../../../chunk-Y2GK27RX.js";
|
|
41
41
|
import "../../../chunk-QVWYTQKL.js";
|
|
42
|
-
import "../../../chunk-
|
|
42
|
+
import "../../../chunk-HIKWIY5Q.js";
|
|
43
43
|
import "../../../chunk-TCMOGTPB.js";
|
|
44
44
|
import "../../../chunk-DVU5XV7L.js";
|
|
45
45
|
import "../../../chunk-5R4C5F63.js";
|
|
46
|
-
import "../../../chunk-
|
|
47
|
-
import "../../../chunk-
|
|
46
|
+
import "../../../chunk-5MLYAQQO.js";
|
|
47
|
+
import "../../../chunk-G4AWTFBQ.js";
|
|
48
48
|
import "../../../chunk-AL5QIRY3.js";
|
|
49
49
|
import "../../../chunk-WVUIIBRR.js";
|
|
50
50
|
import "../../../chunk-75USUR3I.js";
|
|
@@ -1624,6 +1624,7 @@ var InputBase = (_a) => {
|
|
|
1624
1624
|
testid,
|
|
1625
1625
|
before,
|
|
1626
1626
|
after,
|
|
1627
|
+
rightAdornment,
|
|
1627
1628
|
type,
|
|
1628
1629
|
label,
|
|
1629
1630
|
error,
|
|
@@ -1647,6 +1648,7 @@ var InputBase = (_a) => {
|
|
|
1647
1648
|
"testid",
|
|
1648
1649
|
"before",
|
|
1649
1650
|
"after",
|
|
1651
|
+
"rightAdornment",
|
|
1650
1652
|
"type",
|
|
1651
1653
|
"label",
|
|
1652
1654
|
"error",
|
|
@@ -1788,7 +1790,8 @@ var InputBase = (_a) => {
|
|
|
1788
1790
|
style: __spreadProps(__spreadValues({}, props.style), { width })
|
|
1789
1791
|
})
|
|
1790
1792
|
),
|
|
1791
|
-
secondaryIconColor ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "contents text-text-secondary-normal", children: after }) : after
|
|
1793
|
+
secondaryIconColor ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "contents text-text-secondary-normal", children: after }) : after,
|
|
1794
|
+
rightAdornment
|
|
1792
1795
|
]
|
|
1793
1796
|
}
|
|
1794
1797
|
),
|
|
@@ -1815,7 +1818,8 @@ var Input = (_a) => {
|
|
|
1815
1818
|
onBlur,
|
|
1816
1819
|
onClear,
|
|
1817
1820
|
id,
|
|
1818
|
-
testid
|
|
1821
|
+
testid,
|
|
1822
|
+
rightAdornment
|
|
1819
1823
|
} = _b, props = __objRest(_b, [
|
|
1820
1824
|
"variant",
|
|
1821
1825
|
"decimals",
|
|
@@ -1826,7 +1830,8 @@ var Input = (_a) => {
|
|
|
1826
1830
|
"onBlur",
|
|
1827
1831
|
"onClear",
|
|
1828
1832
|
"id",
|
|
1829
|
-
"testid"
|
|
1833
|
+
"testid",
|
|
1834
|
+
"rightAdornment"
|
|
1830
1835
|
]);
|
|
1831
1836
|
const [internalValue, setInternalValue] = (0, import_react9.useState)("");
|
|
1832
1837
|
const [displayValue, setDisplayValue] = (0, import_react9.useState)("");
|
|
@@ -1848,7 +1853,7 @@ var Input = (_a) => {
|
|
|
1848
1853
|
const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
|
|
1849
1854
|
setInternalValue(formatted);
|
|
1850
1855
|
setDisplayValue(formatCurrencyDisplay(formatted));
|
|
1851
|
-
}, []);
|
|
1856
|
+
}, [variant, propValue, decimals]);
|
|
1852
1857
|
const getInputProps = () => {
|
|
1853
1858
|
var _a2;
|
|
1854
1859
|
const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
|
|
@@ -1911,7 +1916,7 @@ var Input = (_a) => {
|
|
|
1911
1916
|
case "finder":
|
|
1912
1917
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "search" });
|
|
1913
1918
|
case "uom":
|
|
1914
|
-
return uom ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1919
|
+
return uom ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Paragraph, { color: "text-secondary-normal", children: uom.toUpperCase() }) : null;
|
|
1915
1920
|
case "percentage":
|
|
1916
1921
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "percent" }) });
|
|
1917
1922
|
default:
|
|
@@ -1997,7 +2002,8 @@ var Input = (_a) => {
|
|
|
1997
2002
|
after: getAfterElement(),
|
|
1998
2003
|
onChange: handleChange,
|
|
1999
2004
|
onBlur: handleBlur,
|
|
2000
|
-
testid
|
|
2005
|
+
testid,
|
|
2006
|
+
rightAdornment
|
|
2001
2007
|
})
|
|
2002
2008
|
);
|
|
2003
2009
|
};
|
|
@@ -4770,8 +4776,10 @@ var ModalHeader = ({
|
|
|
4770
4776
|
onClose,
|
|
4771
4777
|
id,
|
|
4772
4778
|
testid,
|
|
4773
|
-
headerClassname
|
|
4779
|
+
headerClassname,
|
|
4780
|
+
titleAs: TitleComponent
|
|
4774
4781
|
}) => {
|
|
4782
|
+
const Title = TitleComponent || Heading2;
|
|
4775
4783
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
4776
4784
|
"div",
|
|
4777
4785
|
{
|
|
@@ -4790,7 +4798,7 @@ var ModalHeader = ({
|
|
|
4790
4798
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: (0, import_clsx23.default)("flex items-center flex-1", layoutGroupGap), children: [
|
|
4791
4799
|
headerIcon,
|
|
4792
4800
|
title && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
4793
|
-
|
|
4801
|
+
Title,
|
|
4794
4802
|
{
|
|
4795
4803
|
id: id ? `${id}-title` : void 0,
|
|
4796
4804
|
testid: testid ? `${testid}-title` : void 0,
|
|
@@ -5020,7 +5028,8 @@ var Modal = ({
|
|
|
5020
5028
|
customActions,
|
|
5021
5029
|
headerClassname,
|
|
5022
5030
|
customFooter,
|
|
5023
|
-
noWrapper
|
|
5031
|
+
noWrapper,
|
|
5032
|
+
titleAs: TitleComponent
|
|
5024
5033
|
}) => {
|
|
5025
5034
|
var _a;
|
|
5026
5035
|
const mounted = useMounted();
|
|
@@ -5146,7 +5155,8 @@ var Modal = ({
|
|
|
5146
5155
|
hideCloseIcon,
|
|
5147
5156
|
headerIcon,
|
|
5148
5157
|
headerIconAlign,
|
|
5149
|
-
headerClassname
|
|
5158
|
+
headerClassname,
|
|
5159
|
+
titleAs: TitleComponent
|
|
5150
5160
|
}
|
|
5151
5161
|
),
|
|
5152
5162
|
children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|