chop-logic-components 1.2.7 → 1.3.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/{BackIcon-CpYt9V1m.cjs → BackIcon-6kCLtmiI.cjs} +2 -2
- package/dist/{BackIcon-CpYt9V1m.cjs.map → BackIcon-6kCLtmiI.cjs.map} +1 -1
- package/dist/{BackIcon-TE5kGNRb.js → BackIcon-B5Gqa4ZM.js} +2 -2
- package/dist/{BackIcon-TE5kGNRb.js.map → BackIcon-B5Gqa4ZM.js.map} +1 -1
- package/dist/{CancelIcon-CqpFhmSb.cjs → CancelIcon-CSYMYQ4z.cjs} +2 -2
- package/dist/{CancelIcon-CqpFhmSb.cjs.map → CancelIcon-CSYMYQ4z.cjs.map} +1 -1
- package/dist/{CancelIcon-BDTlCliW.js → CancelIcon-Dd_V0Dau.js} +2 -2
- package/dist/{CancelIcon-BDTlCliW.js.map → CancelIcon-Dd_V0Dau.js.map} +1 -1
- package/dist/{ChevronDownIcon-TI0qjNaL.js → ChevronDownIcon-BAP_RxAA.js} +2 -2
- package/dist/{ChevronDownIcon-TI0qjNaL.js.map → ChevronDownIcon-BAP_RxAA.js.map} +1 -1
- package/dist/{ChevronDownIcon-B6aXI0pk.cjs → ChevronDownIcon-CqL27BVM.cjs} +2 -2
- package/dist/{ChevronDownIcon-B6aXI0pk.cjs.map → ChevronDownIcon-CqL27BVM.cjs.map} +1 -1
- package/dist/{ChevronLeftIcon-CcViyK8O.cjs → ChevronLeftIcon-CwQpbaR1.cjs} +2 -2
- package/dist/{ChevronLeftIcon-CcViyK8O.cjs.map → ChevronLeftIcon-CwQpbaR1.cjs.map} +1 -1
- package/dist/{ChevronLeftIcon-DsE58giA.js → ChevronLeftIcon-DI7EhtBk.js} +2 -2
- package/dist/{ChevronLeftIcon-DsE58giA.js.map → ChevronLeftIcon-DI7EhtBk.js.map} +1 -1
- package/dist/{ChevronRightIcon-D9p3TtYP.cjs → ChevronRightIcon-BZIUbBPo.cjs} +2 -2
- package/dist/{ChevronRightIcon-D9p3TtYP.cjs.map → ChevronRightIcon-BZIUbBPo.cjs.map} +1 -1
- package/dist/{ChevronRightIcon-BMsrZWxH.js → ChevronRightIcon-DuLbG3su.js} +2 -2
- package/dist/{ChevronRightIcon-BMsrZWxH.js.map → ChevronRightIcon-DuLbG3su.js.map} +1 -1
- package/dist/{ChevronUpIcon-o2Yc8G25.js → ChevronUpIcon-BM-ME1n1.js} +2 -2
- package/dist/{ChevronUpIcon-o2Yc8G25.js.map → ChevronUpIcon-BM-ME1n1.js.map} +1 -1
- package/dist/{ChevronUpIcon-CFw1wU2v.cjs → ChevronUpIcon-CdGgBXuQ.cjs} +2 -2
- package/dist/{ChevronUpIcon-CFw1wU2v.cjs.map → ChevronUpIcon-CdGgBXuQ.cjs.map} +1 -1
- package/dist/{ClearIcon-BrT_XeGl.js → ClearIcon-CqoSUm3Z.js} +2 -2
- package/dist/{ClearIcon-BrT_XeGl.js.map → ClearIcon-CqoSUm3Z.js.map} +1 -1
- package/dist/{ClearIcon-DdamRUk1.cjs → ClearIcon-aO0tljyZ.cjs} +2 -2
- package/dist/{ClearIcon-DdamRUk1.cjs.map → ClearIcon-aO0tljyZ.cjs.map} +1 -1
- package/dist/{CopyIcon-DYJjKn39.cjs → CopyIcon-BWhAxikj.cjs} +2 -2
- package/dist/{CopyIcon-DYJjKn39.cjs.map → CopyIcon-BWhAxikj.cjs.map} +1 -1
- package/dist/{CopyIcon-C6QdFBiP.js → CopyIcon-Oejhoi_O.js} +2 -2
- package/dist/{CopyIcon-C6QdFBiP.js.map → CopyIcon-Oejhoi_O.js.map} +1 -1
- package/dist/{CutIcon-CAn_LBGS.cjs → CutIcon-DfSB_bG8.cjs} +2 -2
- package/dist/{CutIcon-CAn_LBGS.cjs.map → CutIcon-DfSB_bG8.cjs.map} +1 -1
- package/dist/{CutIcon-DsVmmghm.js → CutIcon-tF4nvJEe.js} +2 -2
- package/dist/{CutIcon-DsVmmghm.js.map → CutIcon-tF4nvJEe.js.map} +1 -1
- package/dist/{DeleteIcon-CFFB1W5Q.js → DeleteIcon-Wu8Bb0yj.js} +2 -2
- package/dist/{DeleteIcon-CFFB1W5Q.js.map → DeleteIcon-Wu8Bb0yj.js.map} +1 -1
- package/dist/{DeleteIcon-ChkjH2S9.cjs → DeleteIcon-clA_vG4P.cjs} +2 -2
- package/dist/{DeleteIcon-ChkjH2S9.cjs.map → DeleteIcon-clA_vG4P.cjs.map} +1 -1
- package/dist/{DownloadIcon--99pSOdm.js → DownloadIcon-88UVXrmf.js} +2 -2
- package/dist/{DownloadIcon--99pSOdm.js.map → DownloadIcon-88UVXrmf.js.map} +1 -1
- package/dist/{DownloadIcon-CuV4Qzc6.cjs → DownloadIcon-iX8-O-Os.cjs} +2 -2
- package/dist/{DownloadIcon-CuV4Qzc6.cjs.map → DownloadIcon-iX8-O-Os.cjs.map} +1 -1
- package/dist/{ForwardIcon-BlY00snB.js → ForwardIcon-GwEZl1zz.js} +2 -2
- package/dist/{ForwardIcon-BlY00snB.js.map → ForwardIcon-GwEZl1zz.js.map} +1 -1
- package/dist/{ForwardIcon-z7GFeyi_.cjs → ForwardIcon-HuqcInC_.cjs} +2 -2
- package/dist/{ForwardIcon-z7GFeyi_.cjs.map → ForwardIcon-HuqcInC_.cjs.map} +1 -1
- package/dist/{GraduateIcon-DQ62Dfua.cjs → GraduateIcon-B-QrUIM6.cjs} +2 -2
- package/dist/{GraduateIcon-DQ62Dfua.cjs.map → GraduateIcon-B-QrUIM6.cjs.map} +1 -1
- package/dist/{GraduateIcon-BMc3pMmN.js → GraduateIcon-vBMEiTF4.js} +2 -2
- package/dist/{GraduateIcon-BMc3pMmN.js.map → GraduateIcon-vBMEiTF4.js.map} +1 -1
- package/dist/{HideIcon-BlIlaaVy.cjs → HideIcon-CIBvv4gO.cjs} +2 -2
- package/dist/{HideIcon-BlIlaaVy.cjs.map → HideIcon-CIBvv4gO.cjs.map} +1 -1
- package/dist/{HideIcon-DZSdFAwB.js → HideIcon-D60cTu6E.js} +2 -2
- package/dist/{HideIcon-DZSdFAwB.js.map → HideIcon-D60cTu6E.js.map} +1 -1
- package/dist/{HomeIcon-BaKRJoKU.js → HomeIcon-BLt4IjqM.js} +2 -2
- package/dist/{HomeIcon-BaKRJoKU.js.map → HomeIcon-BLt4IjqM.js.map} +1 -1
- package/dist/{HomeIcon-B2yHdDQD.cjs → HomeIcon-BsW_jabJ.cjs} +2 -2
- package/dist/{HomeIcon-B2yHdDQD.cjs.map → HomeIcon-BsW_jabJ.cjs.map} +1 -1
- package/dist/{LoginIcon-CU7xX9lG.js → LoginIcon-CL39X1YU.js} +2 -2
- package/dist/{LoginIcon-CU7xX9lG.js.map → LoginIcon-CL39X1YU.js.map} +1 -1
- package/dist/{LoginIcon-Drqg7DV3.cjs → LoginIcon-CcHIc8j9.cjs} +2 -2
- package/dist/{LoginIcon-Drqg7DV3.cjs.map → LoginIcon-CcHIc8j9.cjs.map} +1 -1
- package/dist/{PasteIcon-ByJPJb_G.cjs → PasteIcon-Bq7_QzoN.cjs} +2 -2
- package/dist/{PasteIcon-ByJPJb_G.cjs.map → PasteIcon-Bq7_QzoN.cjs.map} +1 -1
- package/dist/{PasteIcon-CmFO368c.js → PasteIcon-CZjp6nkb.js} +2 -2
- package/dist/{PasteIcon-CmFO368c.js.map → PasteIcon-CZjp6nkb.js.map} +1 -1
- package/dist/{QuestionIcon-CpCXnAaT.js → QuestionIcon-CPcLvEor.js} +2 -2
- package/dist/{QuestionIcon-CpCXnAaT.js.map → QuestionIcon-CPcLvEor.js.map} +1 -1
- package/dist/{QuestionIcon-BtDFaf19.cjs → QuestionIcon-DU4aPXkV.cjs} +2 -2
- package/dist/{QuestionIcon-BtDFaf19.cjs.map → QuestionIcon-DU4aPXkV.cjs.map} +1 -1
- package/dist/{RemoveIcon-Bnl0OadW.js → RemoveIcon-BuRToMfF.js} +2 -2
- package/dist/{RemoveIcon-Bnl0OadW.js.map → RemoveIcon-BuRToMfF.js.map} +1 -1
- package/dist/{RemoveIcon-BlXR-RC7.cjs → RemoveIcon-C1CAo905.cjs} +2 -2
- package/dist/{RemoveIcon-BlXR-RC7.cjs.map → RemoveIcon-C1CAo905.cjs.map} +1 -1
- package/dist/{SaveIcon-BNytTmKH.cjs → SaveIcon-BmGtZ_2_.cjs} +2 -2
- package/dist/{SaveIcon-BNytTmKH.cjs.map → SaveIcon-BmGtZ_2_.cjs.map} +1 -1
- package/dist/{SaveIcon-DJIfrlD7.js → SaveIcon-oSVVhgZK.js} +2 -2
- package/dist/{SaveIcon-DJIfrlD7.js.map → SaveIcon-oSVVhgZK.js.map} +1 -1
- package/dist/{ShowIcon-Bs-2cFj5.cjs → ShowIcon-C9IDP54e.cjs} +2 -2
- package/dist/{ShowIcon-Bs-2cFj5.cjs.map → ShowIcon-C9IDP54e.cjs.map} +1 -1
- package/dist/{ShowIcon-DS8F0Sgp.js → ShowIcon-DL2TN936.js} +2 -2
- package/dist/{ShowIcon-DS8F0Sgp.js.map → ShowIcon-DL2TN936.js.map} +1 -1
- package/dist/{UploadIcon-DLE-gkUx.cjs → UploadIcon-DQb19kiB.cjs} +2 -2
- package/dist/{UploadIcon-DLE-gkUx.cjs.map → UploadIcon-DQb19kiB.cjs.map} +1 -1
- package/dist/{UploadIcon-Bj-xzZWj.js → UploadIcon-DcqjxXG_.js} +2 -2
- package/dist/{UploadIcon-Bj-xzZWj.js.map → UploadIcon-DcqjxXG_.js.map} +1 -1
- package/dist/css/__docs__/ExampleGridContainer.styled.d.ts +9 -0
- package/dist/elements/loader/Loader.d.ts +5 -0
- package/dist/elements/loader/__docs__/Loader.example.d.ts +5 -0
- package/dist/elements/loader/__docs__/Loader.stories.d.ts +7 -0
- package/dist/elements/loader/views/Arrow.styled.d.ts +5 -0
- package/dist/elements/loader/views/Brackets.styled.d.ts +5 -0
- package/dist/elements/loader/views/Circle.styled.d.ts +5 -0
- package/dist/elements/loader/views/Dots.styled.d.ts +5 -0
- package/dist/elements/loader/views/Filler.styled.d.ts +5 -0
- package/dist/elements/loader/views/Linear.styled.d.ts +5 -0
- package/dist/elements/loader/views/Pulse.styled.d.ts +5 -0
- package/dist/elements/loader/views/Rotation.styled.d.ts +5 -0
- package/dist/elements/loader/views/Square.styled.d.ts +5 -0
- package/dist/enums/chop-logic-loader-view.d.ts +11 -0
- package/dist/enums/index.d.ts +1 -0
- package/dist/hocs/index.d.ts +1 -1
- package/dist/hocs/with-tooltip/__tests__/with-tooltip.test.d.ts +1 -0
- package/dist/{index-CJYHpjrY.js → index-CL5Yr-gF.js} +254 -253
- package/dist/index-CL5Yr-gF.js.map +1 -0
- package/dist/{index-D3Cy2Oc2.cjs → index-D1sJ8YFM.cjs} +71 -71
- package/dist/index-D1sJ8YFM.cjs.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +23 -22
- package/dist/models/components/loader.d.ts +6 -0
- package/dist/models/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/index-CJYHpjrY.js.map +0 -1
- package/dist/index-D3Cy2Oc2.cjs.map +0 -1
- /package/dist/{__docs__/styles → css/__docs__}/ExampleDivContainer.styled.d.ts +0 -0
- /package/dist/{__docs__/styles → css/__docs__}/story-wrapper-styles.d.ts +0 -0
- /package/dist/{elements/styled → css/common}/Select.styled.d.ts +0 -0
- /package/dist/{hocs/__tests__/with-tooltip.test.d.ts → elements/loader/__tests__/Loader.test.d.ts} +0 -0
- /package/dist/hocs/{with-tooltip.d.ts → with-tooltip/index.d.ts} +0 -0
|
@@ -1883,44 +1883,44 @@ const qe = `
|
|
|
1883
1883
|
style: o,
|
|
1884
1884
|
theme: i
|
|
1885
1885
|
}) => /* @__PURE__ */ c.jsx(Si, { id: e, $visible: n, "data-testid": t, style: o, $theme: i, "aria-hidden": !n, children: r });
|
|
1886
|
-
var te = /* @__PURE__ */ ((e) => (e.Success = "success", e.Error = "error", e.Warning = "warning", e.Info = "info", e.Help = "help", e))(te || {}), we = /* @__PURE__ */ ((e) => (e.Primary = "primary", e.Flat = "flat", e.Icon = "icon", e))(we || {}), j = /* @__PURE__ */ ((e) => (e.ArrowDown = "arrow-down", e.ArrowUp = "arrow-up", e.Back = "back", e.Cancel = "cancel", e.CheckboxChecked = "checkbox-checked", e.CheckboxUnchecked = "checkbox-unchecked", e.CheckMark = "check-mark", e.ChevronDown = "chevron-down", e.ChevronLeft = "chevron-left", e.ChevronRight = "chevron-right", e.ChevronUp = "chevron-up", e.Clear = "clear", e.Copy = "copy", e.Cut = "cut", e.Delete = "delete", e.Download = "download", e.Error = "error", e.Forward = "forward", e.Graduate = "graduate", e.Help = "help", e.Hide = "hide", e.Home = "home", e.Info = "info", e.Login = "login", e.Paste = "paste", e.Question = "question", e.Save = "save", e.Show = "show", e.Upload = "upload", e.Warning = "warning", e.Remove = "remove", e))(j || {}), X = /* @__PURE__ */ ((e) => (e.Vertical = "vertical", e.Horizontal = "horizontal", e))(X || {}), vn = /* @__PURE__ */ ((e) => (e.Light = "light", e.Dark = "dark", e))(vn || {}), $n = /* @__PURE__ */ ((e) => (e.Span = "span", e.Div = "div", e.P = "p", e.Strong = "strong", e.Em = "em", e))($n || {});
|
|
1887
|
-
const
|
|
1888
|
-
[j.ArrowDown]:
|
|
1889
|
-
[j.ArrowUp]:
|
|
1890
|
-
[j.Back]:
|
|
1891
|
-
[j.Cancel]:
|
|
1892
|
-
[j.CheckboxChecked]:
|
|
1893
|
-
[j.CheckboxUnchecked]:
|
|
1894
|
-
[j.CheckMark]:
|
|
1895
|
-
[j.ChevronDown]:
|
|
1896
|
-
[j.ChevronUp]:
|
|
1897
|
-
[j.ChevronLeft]:
|
|
1898
|
-
[j.ChevronRight]:
|
|
1899
|
-
[j.Clear]:
|
|
1900
|
-
[j.Copy]:
|
|
1901
|
-
[j.Cut]:
|
|
1902
|
-
[j.Delete]:
|
|
1903
|
-
[j.Download]:
|
|
1904
|
-
[j.Error]:
|
|
1905
|
-
[j.Forward]:
|
|
1906
|
-
[j.Graduate]:
|
|
1907
|
-
[j.Help]:
|
|
1908
|
-
[j.Hide]:
|
|
1909
|
-
[j.Home]:
|
|
1910
|
-
[j.Info]:
|
|
1911
|
-
[j.Login]:
|
|
1912
|
-
[j.Paste]:
|
|
1913
|
-
[j.Question]:
|
|
1914
|
-
[j.Save]:
|
|
1915
|
-
[j.Show]:
|
|
1916
|
-
[j.Upload]:
|
|
1917
|
-
[j.Warning]:
|
|
1918
|
-
[j.Remove]:
|
|
1886
|
+
var te = /* @__PURE__ */ ((e) => (e.Success = "success", e.Error = "error", e.Warning = "warning", e.Info = "info", e.Help = "help", e))(te || {}), we = /* @__PURE__ */ ((e) => (e.Primary = "primary", e.Flat = "flat", e.Icon = "icon", e))(we || {}), j = /* @__PURE__ */ ((e) => (e.ArrowDown = "arrow-down", e.ArrowUp = "arrow-up", e.Back = "back", e.Cancel = "cancel", e.CheckboxChecked = "checkbox-checked", e.CheckboxUnchecked = "checkbox-unchecked", e.CheckMark = "check-mark", e.ChevronDown = "chevron-down", e.ChevronLeft = "chevron-left", e.ChevronRight = "chevron-right", e.ChevronUp = "chevron-up", e.Clear = "clear", e.Copy = "copy", e.Cut = "cut", e.Delete = "delete", e.Download = "download", e.Error = "error", e.Forward = "forward", e.Graduate = "graduate", e.Help = "help", e.Hide = "hide", e.Home = "home", e.Info = "info", e.Login = "login", e.Paste = "paste", e.Question = "question", e.Save = "save", e.Show = "show", e.Upload = "upload", e.Warning = "warning", e.Remove = "remove", e))(j || {}), ki = /* @__PURE__ */ ((e) => (e.Dots = "dots", e.Brackets = "brackets", e.Linear = "linear", e.Square = "square", e.Circle = "circle", e.Pulse = "pulse", e.Arrow = "arrow", e.Filler = "filler", e.Rotation = "rotation", e))(ki || {}), X = /* @__PURE__ */ ((e) => (e.Vertical = "vertical", e.Horizontal = "horizontal", e))(X || {}), vn = /* @__PURE__ */ ((e) => (e.Light = "light", e.Dark = "dark", e))(vn || {}), $n = /* @__PURE__ */ ((e) => (e.Span = "span", e.Div = "div", e.P = "p", e.Strong = "strong", e.Em = "em", e))($n || {});
|
|
1887
|
+
const Ci = O(() => Promise.resolve().then(() => ws)), ji = O(() => Promise.resolve().then(() => Ss)), Ei = O(() => import("./BackIcon-B5Gqa4ZM.js")), Ii = O(() => import("./CancelIcon-Dd_V0Dau.js")), Ri = O(() => Promise.resolve().then(() => gs)), _i = O(() => Promise.resolve().then(() => ys)), Ai = O(() => Promise.resolve().then(() => zs)), Pi = O(() => import("./ChevronDownIcon-BAP_RxAA.js")), Ti = O(() => import("./ChevronLeftIcon-DI7EhtBk.js")), Oi = O(() => import("./ChevronRightIcon-DuLbG3su.js")), zi = O(() => import("./ChevronUpIcon-BM-ME1n1.js")), Di = O(() => import("./ClearIcon-CqoSUm3Z.js")), Mi = O(() => import("./CopyIcon-Oejhoi_O.js")), Bi = O(() => import("./CutIcon-tF4nvJEe.js")), Li = O(() => import("./DeleteIcon-Wu8Bb0yj.js")), Fi = O(() => import("./DownloadIcon-88UVXrmf.js")), Ni = O(() => Promise.resolve().then(() => La)), Hi = O(() => import("./ForwardIcon-GwEZl1zz.js")), Wi = O(() => import("./GraduateIcon-vBMEiTF4.js")), Gi = O(() => Promise.resolve().then(() => Fa)), Ui = O(() => import("./HideIcon-D60cTu6E.js")), Yi = O(() => import("./HomeIcon-BLt4IjqM.js")), Vi = O(() => Promise.resolve().then(() => Na)), Ki = O(() => import("./LoginIcon-CL39X1YU.js")), qi = O(() => import("./PasteIcon-CZjp6nkb.js")), Xi = O(() => import("./QuestionIcon-CPcLvEor.js")), Ji = O(() => import("./RemoveIcon-BuRToMfF.js")), Zi = O(() => import("./SaveIcon-oSVVhgZK.js")), Qi = O(() => import("./ShowIcon-DL2TN936.js")), es = O(() => import("./UploadIcon-DcqjxXG_.js")), ts = O(() => Promise.resolve().then(() => Ha)), rs = {
|
|
1888
|
+
[j.ArrowDown]: Ci,
|
|
1889
|
+
[j.ArrowUp]: ji,
|
|
1890
|
+
[j.Back]: Ei,
|
|
1891
|
+
[j.Cancel]: Ii,
|
|
1892
|
+
[j.CheckboxChecked]: Ri,
|
|
1893
|
+
[j.CheckboxUnchecked]: _i,
|
|
1894
|
+
[j.CheckMark]: Ai,
|
|
1895
|
+
[j.ChevronDown]: Pi,
|
|
1896
|
+
[j.ChevronUp]: zi,
|
|
1897
|
+
[j.ChevronLeft]: Ti,
|
|
1898
|
+
[j.ChevronRight]: Oi,
|
|
1899
|
+
[j.Clear]: Di,
|
|
1900
|
+
[j.Copy]: Mi,
|
|
1901
|
+
[j.Cut]: Bi,
|
|
1902
|
+
[j.Delete]: Li,
|
|
1903
|
+
[j.Download]: Fi,
|
|
1904
|
+
[j.Error]: Ni,
|
|
1905
|
+
[j.Forward]: Hi,
|
|
1906
|
+
[j.Graduate]: Wi,
|
|
1907
|
+
[j.Help]: Gi,
|
|
1908
|
+
[j.Hide]: Ui,
|
|
1909
|
+
[j.Home]: Yi,
|
|
1910
|
+
[j.Info]: Vi,
|
|
1911
|
+
[j.Login]: Ki,
|
|
1912
|
+
[j.Paste]: qi,
|
|
1913
|
+
[j.Question]: Xi,
|
|
1914
|
+
[j.Save]: Zi,
|
|
1915
|
+
[j.Show]: Qi,
|
|
1916
|
+
[j.Upload]: es,
|
|
1917
|
+
[j.Warning]: ts,
|
|
1918
|
+
[j.Remove]: Ji
|
|
1919
1919
|
}, ue = ({ name: e, testId: t, ...r }) => {
|
|
1920
1920
|
if (!e) return null;
|
|
1921
|
-
const n = /* @__PURE__ */ c.jsx("span", { style: { fontSize: "1rem" }, "aria-label": "SVG Icon Fallback", children: "⬜" }), o =
|
|
1921
|
+
const n = /* @__PURE__ */ c.jsx("span", { style: { fontSize: "1rem" }, "aria-label": "SVG Icon Fallback", children: "⬜" }), o = rs[e];
|
|
1922
1922
|
return /* @__PURE__ */ c.jsx(ao, { fallback: n, children: /* @__PURE__ */ c.jsx(o, { "data-testid": t, ...r }) });
|
|
1923
|
-
},
|
|
1923
|
+
}, ns = k.button`
|
|
1924
1924
|
background: transparent;
|
|
1925
1925
|
border: none;
|
|
1926
1926
|
display: flex;
|
|
@@ -1948,7 +1948,7 @@ const ki = O(() => Promise.resolve().then(() => xs)), Ci = O(() => Promise.resol
|
|
|
1948
1948
|
pointer-events: none;
|
|
1949
1949
|
opacity: 0.5;
|
|
1950
1950
|
}
|
|
1951
|
-
`, St = ({ onClick: e, label: t, icon: r, disabled: n, theme: o }) => /* @__PURE__ */ c.jsx(
|
|
1951
|
+
`, St = ({ onClick: e, label: t, icon: r, disabled: n, theme: o }) => /* @__PURE__ */ c.jsx(ns, { onClick: e, "aria-label": t, type: "button", disabled: n, $theme: o, children: /* @__PURE__ */ c.jsx(ue, { name: r }) }), os = k.label`
|
|
1952
1952
|
display: flex;
|
|
1953
1953
|
align-items: center;
|
|
1954
1954
|
font-size: ${(e) => e.$theme.fontSizeSmall};
|
|
@@ -1983,7 +1983,7 @@ const ki = O(() => Promise.resolve().then(() => xs)), Ci = O(() => Promise.resol
|
|
|
1983
1983
|
style: d
|
|
1984
1984
|
}) => {
|
|
1985
1985
|
const l = !!o && i === "left", f = !!o && i === "right";
|
|
1986
|
-
return /* @__PURE__ */ c.jsxs(
|
|
1986
|
+
return /* @__PURE__ */ c.jsxs(os, { htmlFor: r, style: d, $theme: n, children: [
|
|
1987
1987
|
l && o,
|
|
1988
1988
|
!a && /* @__PURE__ */ c.jsxs("span", { children: [
|
|
1989
1989
|
e,
|
|
@@ -1992,13 +1992,13 @@ const ki = O(() => Promise.resolve().then(() => xs)), Ci = O(() => Promise.resol
|
|
|
1992
1992
|
f && o
|
|
1993
1993
|
] });
|
|
1994
1994
|
};
|
|
1995
|
-
function
|
|
1996
|
-
return ({ tooltip: t, visibleOn: r, ...n }) => t != null && t.length ? /* @__PURE__ */ c.jsx(
|
|
1995
|
+
function is(e) {
|
|
1996
|
+
return ({ tooltip: t, visibleOn: r, ...n }) => t != null && t.length ? /* @__PURE__ */ c.jsx(Zs, { tooltipContent: t, visibleOn: r, children: /* @__PURE__ */ c.jsx(e, { ...n }) }) : /* @__PURE__ */ c.jsx(e, { ...n });
|
|
1997
1997
|
}
|
|
1998
|
-
const Te = fe.createContext({}),
|
|
1998
|
+
const Te = fe.createContext({}), ss = fe.createContext({
|
|
1999
1999
|
mode: vn.Light
|
|
2000
2000
|
});
|
|
2001
|
-
function
|
|
2001
|
+
function as(e, t) {
|
|
2002
2002
|
const r = e === "dark" ? wi : xi;
|
|
2003
2003
|
if (t)
|
|
2004
2004
|
for (const n in t) {
|
|
@@ -2041,8 +2041,8 @@ function xn({
|
|
|
2041
2041
|
}
|
|
2042
2042
|
}
|
|
2043
2043
|
const Z = () => {
|
|
2044
|
-
const { customTheme: e, mode: t } = ke(
|
|
2045
|
-
return
|
|
2044
|
+
const { customTheme: e, mode: t } = ke(ss);
|
|
2045
|
+
return as(t, e);
|
|
2046
2046
|
}, At = ({ ref: e, onClickOutsideHandler: t, dependentRef: r }) => {
|
|
2047
2047
|
he(() => {
|
|
2048
2048
|
const n = (o) => {
|
|
@@ -2053,7 +2053,7 @@ const Z = () => {
|
|
|
2053
2053
|
document.removeEventListener("mousedown", n);
|
|
2054
2054
|
};
|
|
2055
2055
|
}, [e, r, t]);
|
|
2056
|
-
},
|
|
2056
|
+
}, cs = ({ ref: e, isVisible: t }) => {
|
|
2057
2057
|
const [r, n] = L({ width: 0, height: 0 });
|
|
2058
2058
|
return he(() => {
|
|
2059
2059
|
e.current && t && n({
|
|
@@ -2079,7 +2079,7 @@ const Pt = ({ ref: e, keyCode: t, onKeyPress: r }) => {
|
|
|
2079
2079
|
document.removeEventListener("keydown", n, !1);
|
|
2080
2080
|
};
|
|
2081
2081
|
}, [e, t, r]);
|
|
2082
|
-
},
|
|
2082
|
+
}, ls = ({ modalRef: e, isOpened: t }) => {
|
|
2083
2083
|
he(() => {
|
|
2084
2084
|
const r = e.current;
|
|
2085
2085
|
if (!t || !r) return;
|
|
@@ -2107,7 +2107,7 @@ function Wr() {
|
|
|
2107
2107
|
const { innerWidth: e, innerHeight: t } = window;
|
|
2108
2108
|
return { width: e, height: t };
|
|
2109
2109
|
}
|
|
2110
|
-
function
|
|
2110
|
+
function ds() {
|
|
2111
2111
|
const [e, t] = L(Wr());
|
|
2112
2112
|
return he(() => {
|
|
2113
2113
|
function r() {
|
|
@@ -2116,8 +2116,8 @@ function ls() {
|
|
|
2116
2116
|
return window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
|
|
2117
2117
|
}, []), e;
|
|
2118
2118
|
}
|
|
2119
|
-
const
|
|
2120
|
-
const [o, i] = L({ top: 0, left: 0 }), { width: a, height: d } =
|
|
2119
|
+
const us = ({ wrapperRef: e, tooltipRef: t, isOpened: r, spacing: n = 4 }) => {
|
|
2120
|
+
const [o, i] = L({ top: 0, left: 0 }), { width: a, height: d } = cs({ ref: t, isVisible: r }), { width: l, height: f } = ds();
|
|
2121
2121
|
return he(() => {
|
|
2122
2122
|
if (r && e.current) {
|
|
2123
2123
|
const u = e.current.getBoundingClientRect();
|
|
@@ -2125,7 +2125,7 @@ const ds = ({ wrapperRef: e, tooltipRef: t, isOpened: r, spacing: n = 4 }) => {
|
|
|
2125
2125
|
h + d > window.innerHeight && (h = Math.round(u.top - d - n)), g + a > window.innerWidth && (g = Math.round(window.innerWidth - a - n)), g < 0 && (g = n), i({ top: h, left: g });
|
|
2126
2126
|
}
|
|
2127
2127
|
}, [r, e, d, a, n, l, f]), o;
|
|
2128
|
-
},
|
|
2128
|
+
}, fs = k.button`
|
|
2129
2129
|
position: relative;
|
|
2130
2130
|
border: none;
|
|
2131
2131
|
background: transparent;
|
|
@@ -2208,7 +2208,7 @@ const ds = ({ wrapperRef: e, tooltipRef: t, isOpened: r, spacing: n = 4 }) => {
|
|
|
2208
2208
|
outline: ${(e) => e.$theme.borderOutline};
|
|
2209
2209
|
outline-offset: 4px;
|
|
2210
2210
|
}
|
|
2211
|
-
`,
|
|
2211
|
+
`, hs = k.button`
|
|
2212
2212
|
border: none;
|
|
2213
2213
|
cursor: pointer;
|
|
2214
2214
|
display: flex;
|
|
@@ -2237,7 +2237,7 @@ const ds = ({ wrapperRef: e, tooltipRef: t, isOpened: r, spacing: n = 4 }) => {
|
|
|
2237
2237
|
pointer-events: none;
|
|
2238
2238
|
opacity: 0.5;
|
|
2239
2239
|
}
|
|
2240
|
-
`,
|
|
2240
|
+
`, ps = k.button`
|
|
2241
2241
|
border: none;
|
|
2242
2242
|
cursor: pointer;
|
|
2243
2243
|
display: flex;
|
|
@@ -2268,7 +2268,7 @@ const ds = ({ wrapperRef: e, tooltipRef: t, isOpened: r, spacing: n = 4 }) => {
|
|
|
2268
2268
|
height: ${(e) => e.$theme.iconSize};
|
|
2269
2269
|
width: ${(e) => e.$theme.iconSize};
|
|
2270
2270
|
}
|
|
2271
|
-
`,
|
|
2271
|
+
`, ms = ({
|
|
2272
2272
|
onClick: e,
|
|
2273
2273
|
text: t,
|
|
2274
2274
|
icon: r,
|
|
@@ -2283,7 +2283,7 @@ const ds = ({ wrapperRef: e, tooltipRef: t, isOpened: r, spacing: n = 4 }) => {
|
|
|
2283
2283
|
switch (d) {
|
|
2284
2284
|
case we.Primary:
|
|
2285
2285
|
return /* @__PURE__ */ c.jsxs(
|
|
2286
|
-
|
|
2286
|
+
fs,
|
|
2287
2287
|
{
|
|
2288
2288
|
$extended: i,
|
|
2289
2289
|
"aria-label": n,
|
|
@@ -2304,7 +2304,7 @@ const ds = ({ wrapperRef: e, tooltipRef: t, isOpened: r, spacing: n = 4 }) => {
|
|
|
2304
2304
|
);
|
|
2305
2305
|
case we.Flat:
|
|
2306
2306
|
return /* @__PURE__ */ c.jsxs(
|
|
2307
|
-
|
|
2307
|
+
hs,
|
|
2308
2308
|
{
|
|
2309
2309
|
$extended: i,
|
|
2310
2310
|
"aria-label": n,
|
|
@@ -2320,11 +2320,11 @@ const ds = ({ wrapperRef: e, tooltipRef: t, isOpened: r, spacing: n = 4 }) => {
|
|
|
2320
2320
|
}
|
|
2321
2321
|
);
|
|
2322
2322
|
case we.Icon:
|
|
2323
|
-
return /* @__PURE__ */ c.jsx(
|
|
2323
|
+
return /* @__PURE__ */ c.jsx(ps, { "aria-label": n, type: a, onClick: e, disabled: o, $theme: f, ...l, children: /* @__PURE__ */ c.jsx(ue, { name: r }) });
|
|
2324
2324
|
default:
|
|
2325
2325
|
return null;
|
|
2326
2326
|
}
|
|
2327
|
-
}, kt =
|
|
2327
|
+
}, kt = is(ms);
|
|
2328
2328
|
function Tt(e) {
|
|
2329
2329
|
return /* @__PURE__ */ c.jsxs("svg", { viewBox: "0 0 16 16", fill: "currentColor", height: "1em", width: "1em", role: "img", ...e, children: [
|
|
2330
2330
|
/* @__PURE__ */ c.jsx("title", { children: "Checkbox Checked" }),
|
|
@@ -2337,7 +2337,7 @@ function Tt(e) {
|
|
|
2337
2337
|
)
|
|
2338
2338
|
] });
|
|
2339
2339
|
}
|
|
2340
|
-
const
|
|
2340
|
+
const gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2341
2341
|
__proto__: null,
|
|
2342
2342
|
default: Tt
|
|
2343
2343
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -2347,10 +2347,10 @@ function Ot(e) {
|
|
|
2347
2347
|
/* @__PURE__ */ c.jsx("path", { fill: "currentColor", d: "M14 0H2C.9 0 0 .9 0 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm0 14H2V2h12v12z" })
|
|
2348
2348
|
] });
|
|
2349
2349
|
}
|
|
2350
|
-
const
|
|
2350
|
+
const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2351
2351
|
__proto__: null,
|
|
2352
2352
|
default: Ot
|
|
2353
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2353
|
+
}, Symbol.toStringTag, { value: "Module" })), bs = k.div`
|
|
2354
2354
|
display: flex;
|
|
2355
2355
|
gap: ${(e) => e.$theme.gapMedium};
|
|
2356
2356
|
padding: ${(e) => e.$theme.gapMedium} 0;
|
|
@@ -2390,19 +2390,19 @@ const gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2390
2390
|
}
|
|
2391
2391
|
}
|
|
2392
2392
|
`;
|
|
2393
|
-
function
|
|
2393
|
+
function vs({
|
|
2394
2394
|
defaultChecked: e,
|
|
2395
2395
|
initialValues: t,
|
|
2396
2396
|
name: r
|
|
2397
2397
|
}) {
|
|
2398
2398
|
return t && (t == null ? void 0 : t[r]) !== void 0 ? !!(t != null && t[r]) : !!e;
|
|
2399
2399
|
}
|
|
2400
|
-
function
|
|
2400
|
+
function $s({
|
|
2401
2401
|
name: e,
|
|
2402
2402
|
defaultChecked: t,
|
|
2403
2403
|
onChange: r
|
|
2404
2404
|
}) {
|
|
2405
|
-
const { onChangeFormInput: n, initialValues: o } = ke(Te), i =
|
|
2405
|
+
const { onChangeFormInput: n, initialValues: o } = ke(Te), i = vs({ initialValues: o, name: e, defaultChecked: t }), [a, d] = L(i), l = (u) => {
|
|
2406
2406
|
const h = u.target.checked;
|
|
2407
2407
|
d(h), r == null || r(u), n == null || n({ name: e, value: h });
|
|
2408
2408
|
}, f = st(() => {
|
|
@@ -2413,7 +2413,7 @@ function vs({
|
|
|
2413
2413
|
checked: a
|
|
2414
2414
|
};
|
|
2415
2415
|
}
|
|
2416
|
-
const
|
|
2416
|
+
const Ka = ({
|
|
2417
2417
|
name: e,
|
|
2418
2418
|
label: t,
|
|
2419
2419
|
disabled: r,
|
|
@@ -2425,8 +2425,8 @@ const Va = ({
|
|
|
2425
2425
|
id: l,
|
|
2426
2426
|
...f
|
|
2427
2427
|
}) => {
|
|
2428
|
-
const { handleChange: u, checked: h } =
|
|
2429
|
-
return /* @__PURE__ */ c.jsxs(
|
|
2428
|
+
const { handleChange: u, checked: h } = $s({ name: e, defaultChecked: a, onChange: d }), { elementId: g } = Ce(l), m = Z();
|
|
2429
|
+
return /* @__PURE__ */ c.jsxs(bs, { $disabled: !!r, $theme: m, $checked: h, ...f, children: [
|
|
2430
2430
|
/* @__PURE__ */ c.jsx(
|
|
2431
2431
|
"input",
|
|
2432
2432
|
{
|
|
@@ -2470,7 +2470,7 @@ const Va = ({
|
|
|
2470
2470
|
padding: ${(e) => e.$theme.gapMedium};
|
|
2471
2471
|
border: ${(e) => e.$theme.borderLight};
|
|
2472
2472
|
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2473
|
-
background-color: ${(e) => e.$theme.
|
|
2473
|
+
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
2474
2474
|
white-space: nowrap;
|
|
2475
2475
|
text-overflow: ellipsis;
|
|
2476
2476
|
overflow: hidden;
|
|
@@ -2510,7 +2510,7 @@ const Va = ({
|
|
|
2510
2510
|
visibility 0s,
|
|
2511
2511
|
opacity 0.3s linear;
|
|
2512
2512
|
position: absolute;
|
|
2513
|
-
background: ${(e) => e.$theme.
|
|
2513
|
+
background: ${(e) => e.$theme.backgroundColorBase};
|
|
2514
2514
|
margin: 0;
|
|
2515
2515
|
padding: 0;
|
|
2516
2516
|
list-style: none;
|
|
@@ -2551,7 +2551,7 @@ const Va = ({
|
|
|
2551
2551
|
width: ${(e) => e.$theme.iconSize};
|
|
2552
2552
|
height: ${(e) => e.$theme.iconSize};
|
|
2553
2553
|
}
|
|
2554
|
-
`,
|
|
2554
|
+
`, xs = k(jn)`
|
|
2555
2555
|
justify-content: flex-start;
|
|
2556
2556
|
`;
|
|
2557
2557
|
function ir(e) {
|
|
@@ -2560,7 +2560,7 @@ function ir(e) {
|
|
|
2560
2560
|
/* @__PURE__ */ c.jsx("path", { d: "M21.886 5.536A1.002 1.002 0 0021 5H3a1.002 1.002 0 00-.822 1.569l9 13a.998.998 0 001.644 0l9-13a.998.998 0 00.064-1.033zM12 17.243L4.908 7h14.184L12 17.243z" })
|
|
2561
2561
|
] });
|
|
2562
2562
|
}
|
|
2563
|
-
const
|
|
2563
|
+
const ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2564
2564
|
__proto__: null,
|
|
2565
2565
|
default: ir
|
|
2566
2566
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -2570,10 +2570,10 @@ function sr(e) {
|
|
|
2570
2570
|
/* @__PURE__ */ c.jsx("path", { d: "M3 19h18a1.002 1.002 0 00.823-1.569l-9-13c-.373-.539-1.271-.539-1.645 0l-9 13A.999.999 0 003 19zm9-12.243L19.092 17H4.908L12 6.757z" })
|
|
2571
2571
|
] });
|
|
2572
2572
|
}
|
|
2573
|
-
const
|
|
2573
|
+
const Ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2574
2574
|
__proto__: null,
|
|
2575
2575
|
default: sr
|
|
2576
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2576
|
+
}, Symbol.toStringTag, { value: "Module" })), ks = ({
|
|
2577
2577
|
opened: e,
|
|
2578
2578
|
onClick: t,
|
|
2579
2579
|
comboboxId: r,
|
|
@@ -2608,7 +2608,7 @@ const ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2608
2608
|
]
|
|
2609
2609
|
}
|
|
2610
2610
|
);
|
|
2611
|
-
},
|
|
2611
|
+
}, Cs = ({ value: e, onSelect: t, theme: r }) => {
|
|
2612
2612
|
const { id: n, label: o, selected: i } = e, a = (d) => (l) => {
|
|
2613
2613
|
switch (l.key) {
|
|
2614
2614
|
case " ":
|
|
@@ -2619,7 +2619,7 @@ const ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2619
2619
|
}
|
|
2620
2620
|
};
|
|
2621
2621
|
return /* @__PURE__ */ c.jsxs(
|
|
2622
|
-
|
|
2622
|
+
xs,
|
|
2623
2623
|
{
|
|
2624
2624
|
id: n,
|
|
2625
2625
|
role: "option",
|
|
@@ -2635,7 +2635,7 @@ const ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2635
2635
|
]
|
|
2636
2636
|
}
|
|
2637
2637
|
);
|
|
2638
|
-
},
|
|
2638
|
+
}, js = ({ options: e, opened: t, onClose: r, onSelect: n, dropdownId: o, theme: i }) => /* @__PURE__ */ c.jsx(
|
|
2639
2639
|
Cn,
|
|
2640
2640
|
{
|
|
2641
2641
|
$opened: t,
|
|
@@ -2644,10 +2644,10 @@ const ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2644
2644
|
tabIndex: -1,
|
|
2645
2645
|
onKeyDown: (a) => xn({ e: a, options: e, onClose: r }),
|
|
2646
2646
|
$theme: i,
|
|
2647
|
-
children: e.map((a) => /* @__PURE__ */ c.jsx(
|
|
2647
|
+
children: e.map((a) => /* @__PURE__ */ c.jsx(Cs, { value: a, onSelect: () => n(a.id), theme: i }, a.id))
|
|
2648
2648
|
}
|
|
2649
2649
|
);
|
|
2650
|
-
function
|
|
2650
|
+
function Es({
|
|
2651
2651
|
name: e,
|
|
2652
2652
|
options: t,
|
|
2653
2653
|
initialValues: r,
|
|
@@ -2658,18 +2658,18 @@ function js({
|
|
|
2658
2658
|
return r && (r != null && r[e]) && Array.isArray(r[e]) && r[e].find((d) => d === o.id || (d == null ? void 0 : d.id) === o.id) && (i = !0), !(r != null && r[e]) && Array.isArray(n) && n.find((d) => d === o.id) && (i = !0), { ...o, selected: i };
|
|
2659
2659
|
});
|
|
2660
2660
|
}
|
|
2661
|
-
const Gr = (e) => e.filter((t) => t.selected).map((t) => t.id),
|
|
2661
|
+
const Gr = (e) => e.filter((t) => t.selected).map((t) => t.id), Is = (e, t) => {
|
|
2662
2662
|
const r = e.find((n) => n.id === t);
|
|
2663
2663
|
return e.map((n) => n.id === t ? { ...n, selected: !(r != null && r.selected) } : n);
|
|
2664
2664
|
};
|
|
2665
|
-
function
|
|
2665
|
+
function Rs({
|
|
2666
2666
|
name: e,
|
|
2667
2667
|
defaultValue: t,
|
|
2668
2668
|
onChange: r,
|
|
2669
2669
|
options: n
|
|
2670
2670
|
}) {
|
|
2671
|
-
const [o, i] = L(!1), { onChangeFormInput: a, initialValues: d } = ke(Te), l =
|
|
2672
|
-
const C =
|
|
2671
|
+
const [o, i] = L(!1), { onChangeFormInput: a, initialValues: d } = ke(Te), l = Es({ name: e, options: n, initialValues: d, defaultValue: t }), [f, u] = L(l), h = () => i(!1), g = () => i(!o), m = ($) => {
|
|
2672
|
+
const C = Is(f, $);
|
|
2673
2673
|
u(C), r == null || r(C), a == null || a({ name: e, value: Gr(C) });
|
|
2674
2674
|
}, y = st(() => {
|
|
2675
2675
|
i(!1), u(l), a == null || a({ name: e, value: Gr(l) });
|
|
@@ -2682,7 +2682,7 @@ function Is({
|
|
|
2682
2682
|
values: f
|
|
2683
2683
|
};
|
|
2684
2684
|
}
|
|
2685
|
-
const
|
|
2685
|
+
const qa = ({
|
|
2686
2686
|
options: e,
|
|
2687
2687
|
name: t,
|
|
2688
2688
|
label: r,
|
|
@@ -2694,7 +2694,7 @@ const Ka = ({
|
|
|
2694
2694
|
id: l,
|
|
2695
2695
|
...f
|
|
2696
2696
|
}) => {
|
|
2697
|
-
const u = Se(null), { elementId: h, dropdownId: g } = Ce(l), m = Z(), { handleClose: y, handleSelect: $, handleToggle: C, opened: w, values: v } =
|
|
2697
|
+
const u = Se(null), { elementId: h, dropdownId: g } = Ce(l), m = Z(), { handleClose: y, handleSelect: $, handleToggle: C, opened: w, values: v } = Rs({
|
|
2698
2698
|
name: t,
|
|
2699
2699
|
options: e,
|
|
2700
2700
|
defaultValue: d,
|
|
@@ -2703,7 +2703,7 @@ const Ka = ({
|
|
|
2703
2703
|
return At({ ref: u, onClickOutsideHandler: y }), Pt({ keyCode: "Escape", ref: u, onKeyPress: y }), /* @__PURE__ */ c.jsxs(Sn, { ref: u, $theme: m, ...f, children: [
|
|
2704
2704
|
/* @__PURE__ */ c.jsx(Xe, { label: r, required: n, inputId: h, theme: m }),
|
|
2705
2705
|
/* @__PURE__ */ c.jsx(
|
|
2706
|
-
|
|
2706
|
+
ks,
|
|
2707
2707
|
{
|
|
2708
2708
|
name: t,
|
|
2709
2709
|
opened: w,
|
|
@@ -2718,7 +2718,7 @@ const Ka = ({
|
|
|
2718
2718
|
}
|
|
2719
2719
|
),
|
|
2720
2720
|
/* @__PURE__ */ c.jsx(
|
|
2721
|
-
|
|
2721
|
+
js,
|
|
2722
2722
|
{
|
|
2723
2723
|
theme: m,
|
|
2724
2724
|
options: v,
|
|
@@ -2730,14 +2730,14 @@ const Ka = ({
|
|
|
2730
2730
|
)
|
|
2731
2731
|
] });
|
|
2732
2732
|
};
|
|
2733
|
-
function
|
|
2733
|
+
function _s({
|
|
2734
2734
|
name: e,
|
|
2735
2735
|
initialValues: t,
|
|
2736
2736
|
defaultValue: r
|
|
2737
2737
|
}) {
|
|
2738
2738
|
return t && t[e] ? Number(t[e]) : r && typeof r == "number" ? r : 0;
|
|
2739
2739
|
}
|
|
2740
|
-
function
|
|
2740
|
+
function As({
|
|
2741
2741
|
value: e,
|
|
2742
2742
|
required: t,
|
|
2743
2743
|
validator: r,
|
|
@@ -2746,7 +2746,7 @@ function _s({
|
|
|
2746
2746
|
}) {
|
|
2747
2747
|
return t && !r && e === void 0 ? !1 : r && typeof r == "function" ? r(e) : n && o && e && !r ? e <= n && e >= o : !0;
|
|
2748
2748
|
}
|
|
2749
|
-
function
|
|
2749
|
+
function Ps({
|
|
2750
2750
|
name: e,
|
|
2751
2751
|
defaultValue: t,
|
|
2752
2752
|
onChange: r,
|
|
@@ -2757,9 +2757,9 @@ function As({
|
|
|
2757
2757
|
required: d,
|
|
2758
2758
|
validator: l
|
|
2759
2759
|
}) {
|
|
2760
|
-
const { onChangeFormInput: f, initialValues: u } = ke(Te), h =
|
|
2760
|
+
const { onChangeFormInput: f, initialValues: u } = ke(Te), h = _s({ initialValues: u, defaultValue: t, name: e }), g = i ? Number(i) : Number.MAX_SAFE_INTEGER, m = o ? Number(o) : Number.MIN_SAFE_INTEGER, [y, $] = L(h), [C, w] = L(!0), v = (x) => {
|
|
2761
2761
|
$(x);
|
|
2762
|
-
const W =
|
|
2762
|
+
const W = As({ value: x, required: d, validator: l, maxValue: g, minValue: m });
|
|
2763
2763
|
w(W), f == null || f({ name: e, value: x, valid: W });
|
|
2764
2764
|
}, E = (x) => {
|
|
2765
2765
|
const W = Number(x.target.value);
|
|
@@ -2781,7 +2781,7 @@ function As({
|
|
|
2781
2781
|
decrement: _
|
|
2782
2782
|
};
|
|
2783
2783
|
}
|
|
2784
|
-
const
|
|
2784
|
+
const Ts = k.div`
|
|
2785
2785
|
display: flex;
|
|
2786
2786
|
flex-direction: column;
|
|
2787
2787
|
gap: ${(e) => e.$theme.gapMedium};
|
|
@@ -2791,10 +2791,10 @@ const Ps = k.div`
|
|
|
2791
2791
|
display: flex;
|
|
2792
2792
|
gap: ${(e) => e.$theme.gapMedium};
|
|
2793
2793
|
align-items: center;
|
|
2794
|
-
border: ${(e) => e.$theme.
|
|
2794
|
+
border: ${(e) => e.$theme.borderLight};
|
|
2795
2795
|
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2796
2796
|
padding: ${(e) => e.$theme.gapMedium};
|
|
2797
|
-
background-color: ${(e) => e.$theme.
|
|
2797
|
+
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
2798
2798
|
|
|
2799
2799
|
&:has(input:focus) {
|
|
2800
2800
|
border: ${(e) => e.$theme.borderOutline};
|
|
@@ -2843,7 +2843,7 @@ const Ps = k.div`
|
|
|
2843
2843
|
-moz-appearance: textfield;
|
|
2844
2844
|
}
|
|
2845
2845
|
}
|
|
2846
|
-
`,
|
|
2846
|
+
`, Xa = ({
|
|
2847
2847
|
name: e,
|
|
2848
2848
|
label: t,
|
|
2849
2849
|
errorMessage: r,
|
|
@@ -2864,7 +2864,7 @@ const Ps = k.div`
|
|
|
2864
2864
|
step: w = 1,
|
|
2865
2865
|
...v
|
|
2866
2866
|
}) => {
|
|
2867
|
-
const { elementId: E, errorId: A } = Ce(u), _ = Z(), { value: I, valid: x, handleChange: W, increment: J, decrement: pe, minValue: me, maxValue: ge } =
|
|
2867
|
+
const { elementId: E, errorId: A } = Ce(u), _ = Z(), { value: I, valid: x, handleChange: W, increment: J, decrement: pe, minValue: me, maxValue: ge } = Ps({
|
|
2868
2868
|
name: e,
|
|
2869
2869
|
defaultValue: C,
|
|
2870
2870
|
min: l,
|
|
@@ -2875,7 +2875,7 @@ const Ps = k.div`
|
|
|
2875
2875
|
step: w,
|
|
2876
2876
|
onSpinButtonClick: a
|
|
2877
2877
|
});
|
|
2878
|
-
return /* @__PURE__ */ c.jsxs(
|
|
2878
|
+
return /* @__PURE__ */ c.jsxs(Ts, { $theme: _, ...v, children: [
|
|
2879
2879
|
/* @__PURE__ */ c.jsx(Xe, { label: t, required: m, inputId: E, theme: _ }),
|
|
2880
2880
|
/* @__PURE__ */ c.jsxs("div", { children: [
|
|
2881
2881
|
/* @__PURE__ */ c.jsx(
|
|
@@ -2925,7 +2925,7 @@ const Ps = k.div`
|
|
|
2925
2925
|
] }),
|
|
2926
2926
|
/* @__PURE__ */ c.jsx(bn, { errorId: A, message: r, visible: !x, theme: _ })
|
|
2927
2927
|
] });
|
|
2928
|
-
},
|
|
2928
|
+
}, Os = ({
|
|
2929
2929
|
opened: e,
|
|
2930
2930
|
onClick: t,
|
|
2931
2931
|
comboboxId: r,
|
|
@@ -2963,10 +2963,10 @@ function ar(e) {
|
|
|
2963
2963
|
/* @__PURE__ */ c.jsx("path", { d: "M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7l233.4-233.3c12.5-12.5 32.8-12.5 45.3 0z" })
|
|
2964
2964
|
] });
|
|
2965
2965
|
}
|
|
2966
|
-
const
|
|
2966
|
+
const zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2967
2967
|
__proto__: null,
|
|
2968
2968
|
default: ar
|
|
2969
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2969
|
+
}, Symbol.toStringTag, { value: "Module" })), Ds = ({ value: e, selected: t, onSelect: r, onClear: n, theme: o }) => {
|
|
2970
2970
|
const { id: i, label: a } = e, d = (f) => {
|
|
2971
2971
|
t ? n() : r(f);
|
|
2972
2972
|
}, l = (f) => (u) => {
|
|
@@ -2995,7 +2995,7 @@ const Os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2995
2995
|
]
|
|
2996
2996
|
}
|
|
2997
2997
|
);
|
|
2998
|
-
},
|
|
2998
|
+
}, Ms = ({
|
|
2999
2999
|
options: e,
|
|
3000
3000
|
opened: t,
|
|
3001
3001
|
onClose: r,
|
|
@@ -3019,7 +3019,7 @@ const Os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3019
3019
|
$opened: t,
|
|
3020
3020
|
$theme: l,
|
|
3021
3021
|
children: e.map((u) => /* @__PURE__ */ c.jsx(
|
|
3022
|
-
|
|
3022
|
+
Ds,
|
|
3023
3023
|
{
|
|
3024
3024
|
value: u,
|
|
3025
3025
|
onSelect: () => f(u.id),
|
|
@@ -3032,7 +3032,7 @@ const Os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3032
3032
|
}
|
|
3033
3033
|
);
|
|
3034
3034
|
};
|
|
3035
|
-
function
|
|
3035
|
+
function Bs({
|
|
3036
3036
|
name: e,
|
|
3037
3037
|
options: t,
|
|
3038
3038
|
initialValues: r,
|
|
@@ -3042,13 +3042,13 @@ function Ms({
|
|
|
3042
3042
|
let o;
|
|
3043
3043
|
return r && r[e] && (o = ((i = r[e]) == null ? void 0 : i.id) ?? r[e]), !(r != null && r[e]) && n && typeof n == "string" && (o = n), t.find((a) => a.id === o);
|
|
3044
3044
|
}
|
|
3045
|
-
function
|
|
3045
|
+
function Ls({
|
|
3046
3046
|
name: e,
|
|
3047
3047
|
defaultValue: t,
|
|
3048
3048
|
onChange: r,
|
|
3049
3049
|
options: n
|
|
3050
3050
|
}) {
|
|
3051
|
-
const { onChangeFormInput: o, initialValues: i } = ke(Te), a =
|
|
3051
|
+
const { onChangeFormInput: o, initialValues: i } = ke(Te), a = Bs({ name: e, options: n, defaultValue: t, initialValues: i }), [d, l] = L(!1), [f, u] = L(a), h = () => l(!1), g = () => l(!d), m = (C) => {
|
|
3052
3052
|
const w = n.find((v) => v.id === C);
|
|
3053
3053
|
u(w), r == null || r(w), o == null || o({ name: e, value: w == null ? void 0 : w.id });
|
|
3054
3054
|
}, y = () => {
|
|
@@ -3065,7 +3065,7 @@ function Bs({
|
|
|
3065
3065
|
handleSelect: m
|
|
3066
3066
|
};
|
|
3067
3067
|
}
|
|
3068
|
-
const
|
|
3068
|
+
const Ja = ({
|
|
3069
3069
|
options: e,
|
|
3070
3070
|
onChange: t,
|
|
3071
3071
|
name: r,
|
|
@@ -3077,7 +3077,7 @@ const Xa = ({
|
|
|
3077
3077
|
disabled: l = !1,
|
|
3078
3078
|
...f
|
|
3079
3079
|
}) => {
|
|
3080
|
-
const u = Se(null), h = Z(), { elementId: g, dropdownId: m } = Ce(i), { handleClear: y, handleClose: $, handleSelect: C, handleToggle: w, selected: v, opened: E } =
|
|
3080
|
+
const u = Se(null), h = Z(), { elementId: g, dropdownId: m } = Ce(i), { handleClear: y, handleClose: $, handleSelect: C, handleToggle: w, selected: v, opened: E } = Ls({
|
|
3081
3081
|
options: e,
|
|
3082
3082
|
onChange: t,
|
|
3083
3083
|
defaultValue: o,
|
|
@@ -3086,7 +3086,7 @@ const Xa = ({
|
|
|
3086
3086
|
return At({ ref: u, onClickOutsideHandler: $ }), Pt({ keyCode: "Escape", ref: u, onKeyPress: $ }), /* @__PURE__ */ c.jsxs(Sn, { ref: u, $theme: h, ...f, children: [
|
|
3087
3087
|
/* @__PURE__ */ c.jsx(Xe, { label: n, required: d, inputId: g, theme: h }),
|
|
3088
3088
|
/* @__PURE__ */ c.jsx(
|
|
3089
|
-
|
|
3089
|
+
Os,
|
|
3090
3090
|
{
|
|
3091
3091
|
name: r,
|
|
3092
3092
|
opened: E,
|
|
@@ -3101,7 +3101,7 @@ const Xa = ({
|
|
|
3101
3101
|
}
|
|
3102
3102
|
),
|
|
3103
3103
|
/* @__PURE__ */ c.jsx(
|
|
3104
|
-
|
|
3104
|
+
Ms,
|
|
3105
3105
|
{
|
|
3106
3106
|
options: e,
|
|
3107
3107
|
selected: v,
|
|
@@ -3116,21 +3116,21 @@ const Xa = ({
|
|
|
3116
3116
|
)
|
|
3117
3117
|
] });
|
|
3118
3118
|
};
|
|
3119
|
-
function
|
|
3119
|
+
function Fs({
|
|
3120
3120
|
value: e,
|
|
3121
3121
|
required: t,
|
|
3122
3122
|
validator: r
|
|
3123
3123
|
}) {
|
|
3124
3124
|
return t && !r && !e.length ? !1 : r && typeof r == "function" ? r(e) : r && typeof r == "object" ? new RegExp(r.regexp, r == null ? void 0 : r.flags).test(e) : !0;
|
|
3125
3125
|
}
|
|
3126
|
-
function
|
|
3126
|
+
function Ns({
|
|
3127
3127
|
name: e,
|
|
3128
3128
|
initialValues: t,
|
|
3129
3129
|
defaultValue: r
|
|
3130
3130
|
}) {
|
|
3131
3131
|
return t && (t != null && t[e]) ? t[e].toString() : r && typeof r == "string" ? r : "";
|
|
3132
3132
|
}
|
|
3133
|
-
function
|
|
3133
|
+
function Hs({
|
|
3134
3134
|
name: e,
|
|
3135
3135
|
defaultValue: t,
|
|
3136
3136
|
onChange: r,
|
|
@@ -3138,8 +3138,8 @@ function Ns({
|
|
|
3138
3138
|
required: o,
|
|
3139
3139
|
validator: i
|
|
3140
3140
|
}) {
|
|
3141
|
-
const { onChangeFormInput: a, initialValues: d } = ke(Te), l =
|
|
3142
|
-
const A = E.target.value, _ =
|
|
3141
|
+
const { onChangeFormInput: a, initialValues: d } = ke(Te), l = Ns({ initialValues: d, defaultValue: t, name: e }), [f, u] = L(l), [h, g] = L(!0), [m, y] = L(!1), $ = (E) => {
|
|
3142
|
+
const A = E.target.value, _ = Fs({ value: A, required: o, validator: i });
|
|
3143
3143
|
u(A), g(_), a == null || a({ name: e, value: A, valid: _ }), r == null || r(E);
|
|
3144
3144
|
}, C = () => {
|
|
3145
3145
|
u(""), g(!0), a == null || a({ name: e, value: "", valid: !0 }), n == null || n();
|
|
@@ -3157,7 +3157,7 @@ function Ns({
|
|
|
3157
3157
|
togglePassword: v
|
|
3158
3158
|
};
|
|
3159
3159
|
}
|
|
3160
|
-
const
|
|
3160
|
+
const Ws = k.div`
|
|
3161
3161
|
display: flex;
|
|
3162
3162
|
flex-direction: column;
|
|
3163
3163
|
gap: ${(e) => e.$theme.gapMedium};
|
|
@@ -3170,7 +3170,7 @@ const Hs = k.div`
|
|
|
3170
3170
|
border: ${(e) => e.$theme.borderLight};
|
|
3171
3171
|
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3172
3172
|
padding: ${(e) => e.$theme.gapMedium};
|
|
3173
|
-
background-color: ${(e) => e.$theme.
|
|
3173
|
+
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
3174
3174
|
|
|
3175
3175
|
&:has(input:focus) {
|
|
3176
3176
|
border: ${(e) => e.$theme.borderOutline};
|
|
@@ -3214,7 +3214,7 @@ const Hs = k.div`
|
|
|
3214
3214
|
display: none !important;
|
|
3215
3215
|
}
|
|
3216
3216
|
}
|
|
3217
|
-
`,
|
|
3217
|
+
`, Za = ({
|
|
3218
3218
|
name: e,
|
|
3219
3219
|
label: t,
|
|
3220
3220
|
errorMessage: r,
|
|
@@ -3236,7 +3236,7 @@ const Hs = k.div`
|
|
|
3236
3236
|
type: v = "text",
|
|
3237
3237
|
...E
|
|
3238
3238
|
}) => {
|
|
3239
|
-
const { value: A, valid: _, handleChange: I, handleClear: x, passwordShown: W, togglePassword: J } =
|
|
3239
|
+
const { value: A, valid: _, handleChange: I, handleClear: x, passwordShown: W, togglePassword: J } = Hs({
|
|
3240
3240
|
defaultValue: n,
|
|
3241
3241
|
name: e,
|
|
3242
3242
|
onChange: o,
|
|
@@ -3244,7 +3244,7 @@ const Hs = k.div`
|
|
|
3244
3244
|
required: y,
|
|
3245
3245
|
validator: l
|
|
3246
3246
|
}), { elementId: pe, errorId: me } = Ce(u), ge = v === "password", G = Z();
|
|
3247
|
-
return /* @__PURE__ */ c.jsxs(
|
|
3247
|
+
return /* @__PURE__ */ c.jsxs(Ws, { $theme: G, ...E, children: [
|
|
3248
3248
|
/* @__PURE__ */ c.jsx(Xe, { label: t, required: y, inputId: pe, theme: G }),
|
|
3249
3249
|
/* @__PURE__ */ c.jsxs("div", { children: [
|
|
3250
3250
|
/* @__PURE__ */ c.jsx(
|
|
@@ -3294,7 +3294,7 @@ const Hs = k.div`
|
|
|
3294
3294
|
] }),
|
|
3295
3295
|
/* @__PURE__ */ c.jsx(bn, { errorId: me, message: r, visible: !_, theme: G })
|
|
3296
3296
|
] });
|
|
3297
|
-
},
|
|
3297
|
+
}, Gs = k.div`
|
|
3298
3298
|
z-index: ${(e) => e.$theme.zIndexModal};
|
|
3299
3299
|
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
3300
3300
|
box-shadow: ${(e) => e.$theme.boxShadow};
|
|
@@ -3323,7 +3323,7 @@ const Hs = k.div`
|
|
|
3323
3323
|
font-size: ${(e) => e.$theme.fontSizeHeader};
|
|
3324
3324
|
}
|
|
3325
3325
|
}
|
|
3326
|
-
`,
|
|
3326
|
+
`, Us = k.div`
|
|
3327
3327
|
position: fixed;
|
|
3328
3328
|
top: 0;
|
|
3329
3329
|
left: 0;
|
|
@@ -3337,7 +3337,7 @@ const Hs = k.div`
|
|
|
3337
3337
|
${qe}
|
|
3338
3338
|
|
|
3339
3339
|
${(e) => e.$isClosing && yn}
|
|
3340
|
-
`,
|
|
3340
|
+
`, Ys = k.header`
|
|
3341
3341
|
font-size: 1.6rem;
|
|
3342
3342
|
font-weight: bold;
|
|
3343
3343
|
display: flex;
|
|
@@ -3347,23 +3347,23 @@ const Hs = k.div`
|
|
|
3347
3347
|
padding: ${(e) => e.$theme.gapBig};
|
|
3348
3348
|
border-bottom: ${(e) => e.$theme.borderBase};
|
|
3349
3349
|
color: ${(e) => e.$theme.fontColorBase};
|
|
3350
|
-
`,
|
|
3350
|
+
`, Vs = k.div`
|
|
3351
3351
|
padding: ${(e) => e.$theme.gapBig};
|
|
3352
3352
|
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
3353
|
-
`,
|
|
3353
|
+
`, Ks = ({ title: e, onClose: t, theme: r }) => /* @__PURE__ */ c.jsxs(Ys, { $theme: r, children: [
|
|
3354
3354
|
e,
|
|
3355
3355
|
/* @__PURE__ */ c.jsx(kt, { icon: j.Cancel, view: we.Icon, label: "Close modal window", onClick: t })
|
|
3356
|
-
] }),
|
|
3356
|
+
] }), qs = ({ title: e, onClose: t, isOpened: r, children: n, theme: o, ...i }) => {
|
|
3357
3357
|
const a = Se(null);
|
|
3358
|
-
return
|
|
3359
|
-
/* @__PURE__ */ c.jsx(
|
|
3360
|
-
/* @__PURE__ */ c.jsx(
|
|
3358
|
+
return ls({ modalRef: a, isOpened: r }), Pt({ keyCode: "Escape", ref: a, onKeyPress: t }), /* @__PURE__ */ c.jsxs(Gs, { ref: a, role: "dialog", "aria-modal": "true", $theme: o, ...i, children: [
|
|
3359
|
+
/* @__PURE__ */ c.jsx(Ks, { title: e, onClose: t, theme: o }),
|
|
3360
|
+
/* @__PURE__ */ c.jsx(Vs, { $theme: o, children: n })
|
|
3361
3361
|
] });
|
|
3362
|
-
},
|
|
3362
|
+
}, Qa = ({ isOpened: e, onClose: t, title: r, children: n, ...o }) => {
|
|
3363
3363
|
const i = wn(e), a = i && !e, d = Z();
|
|
3364
|
-
return i ? /* @__PURE__ */ c.jsx(cr, { children: /* @__PURE__ */ c.jsx(
|
|
3365
|
-
},
|
|
3366
|
-
const [t, r] = L(!1), n = Se(null), o = Se(null), { top: i, left: a } =
|
|
3364
|
+
return i ? /* @__PURE__ */ c.jsx(cr, { children: /* @__PURE__ */ c.jsx(Us, { $isClosing: a, $theme: d, children: /* @__PURE__ */ c.jsx(qs, { title: r, onClose: t, isOpened: e, ...o, theme: d, children: n }) }) }) : null;
|
|
3365
|
+
}, Xs = ({ id: e }) => {
|
|
3366
|
+
const [t, r] = L(!1), n = Se(null), o = Se(null), { top: i, left: a } = us({ wrapperRef: n, tooltipRef: o, isOpened: t }), { elementId: d } = Ce(e), l = () => r(!1), f = () => r(!0), u = () => r(!t), h = (g) => {
|
|
3367
3367
|
g.preventDefault(), u();
|
|
3368
3368
|
};
|
|
3369
3369
|
return Pt({ keyCode: "Escape", ref: o, onKeyPress: l }), At({ ref: o, onClickOutsideHandler: l, dependentRef: n }), {
|
|
@@ -3378,7 +3378,7 @@ const Hs = k.div`
|
|
|
3378
3378
|
wrapperRef: n,
|
|
3379
3379
|
tooltipRef: o
|
|
3380
3380
|
};
|
|
3381
|
-
},
|
|
3381
|
+
}, Js = k.div`
|
|
3382
3382
|
position: absolute;
|
|
3383
3383
|
left: 0;
|
|
3384
3384
|
top: 0;
|
|
@@ -3395,7 +3395,7 @@ const Hs = k.div`
|
|
|
3395
3395
|
white-space: nowrap;
|
|
3396
3396
|
|
|
3397
3397
|
${qe}
|
|
3398
|
-
`,
|
|
3398
|
+
`, Zs = ({
|
|
3399
3399
|
children: e,
|
|
3400
3400
|
tooltipContent: t,
|
|
3401
3401
|
containerTag: r = $n.Span,
|
|
@@ -3404,7 +3404,7 @@ const Hs = k.div`
|
|
|
3404
3404
|
style: i,
|
|
3405
3405
|
...a
|
|
3406
3406
|
}) => {
|
|
3407
|
-
const d = r, l = Z(), { openTooltip: f, closeTooltip: u, toggleTooltip: h, handleContextMenu: g, elementId: m, top: y, left: $, isOpened: C, wrapperRef: w, tooltipRef: v } =
|
|
3407
|
+
const d = r, l = Z(), { openTooltip: f, closeTooltip: u, toggleTooltip: h, handleContextMenu: g, elementId: m, top: y, left: $, isOpened: C, wrapperRef: w, tooltipRef: v } = Xs({ id: o });
|
|
3408
3408
|
return /* @__PURE__ */ c.jsxs(
|
|
3409
3409
|
d,
|
|
3410
3410
|
{
|
|
@@ -3420,31 +3420,31 @@ const Hs = k.div`
|
|
|
3420
3420
|
"aria-describedby": m,
|
|
3421
3421
|
children: [
|
|
3422
3422
|
e,
|
|
3423
|
-
C && /* @__PURE__ */ c.jsx(cr, { children: /* @__PURE__ */ c.jsx(
|
|
3423
|
+
C && /* @__PURE__ */ c.jsx(cr, { children: /* @__PURE__ */ c.jsx(Js, { style: { ...i, top: y, left: $ }, ref: v, role: "tooltip", id: m, $theme: l, ...a, children: t }) })
|
|
3424
3424
|
]
|
|
3425
3425
|
}
|
|
3426
3426
|
);
|
|
3427
3427
|
};
|
|
3428
|
-
function
|
|
3428
|
+
function Qs(e) {
|
|
3429
3429
|
return e ? Object.keys(e).map((t) => [t, !0]) : [];
|
|
3430
3430
|
}
|
|
3431
|
-
function
|
|
3431
|
+
function ea(e, t) {
|
|
3432
3432
|
return (t == null ? void 0 : t.valid) === void 0 ? e : e.map((r) => r[0] !== t.name ? r : [r[0], !!(t != null && t.valid)]);
|
|
3433
3433
|
}
|
|
3434
|
-
function
|
|
3434
|
+
function ta(e) {
|
|
3435
3435
|
return e.every((t) => t[1]);
|
|
3436
3436
|
}
|
|
3437
|
-
function
|
|
3437
|
+
function ra({
|
|
3438
3438
|
initialValues: e,
|
|
3439
3439
|
onReset: t,
|
|
3440
3440
|
onSubmit: r,
|
|
3441
3441
|
onClickSubmit: n
|
|
3442
3442
|
}) {
|
|
3443
|
-
const [o, i] = L(e), [a, d] = L(
|
|
3443
|
+
const [o, i] = L(e), [a, d] = L(Qs(e)), [l, f] = L(0);
|
|
3444
3444
|
return {
|
|
3445
3445
|
handleInputChange: (m) => {
|
|
3446
3446
|
const y = { ...o, [m.name]: m.value };
|
|
3447
|
-
i(y), d(
|
|
3447
|
+
i(y), d(ea(a, m));
|
|
3448
3448
|
},
|
|
3449
3449
|
handleSubmit: (m) => {
|
|
3450
3450
|
m.preventDefault();
|
|
@@ -3455,10 +3455,10 @@ function ta({
|
|
|
3455
3455
|
t == null || t(m), i(e), f(l + 1);
|
|
3456
3456
|
},
|
|
3457
3457
|
resetSignal: l,
|
|
3458
|
-
valid:
|
|
3458
|
+
valid: ta(a)
|
|
3459
3459
|
};
|
|
3460
3460
|
}
|
|
3461
|
-
const
|
|
3461
|
+
const na = k.form`
|
|
3462
3462
|
display: grid;
|
|
3463
3463
|
align-items: end;
|
|
3464
3464
|
gap: ${(e) => e.$theme.gapMedium};
|
|
@@ -3469,7 +3469,7 @@ const ra = k.form`
|
|
|
3469
3469
|
grid-template-columns: repeat(${e}, 1fr);
|
|
3470
3470
|
grid-template-rows: auto;
|
|
3471
3471
|
`}
|
|
3472
|
-
`,
|
|
3472
|
+
`, oa = k.div`
|
|
3473
3473
|
display: flex;
|
|
3474
3474
|
align-items: center;
|
|
3475
3475
|
justify-content: space-between;
|
|
@@ -3478,7 +3478,7 @@ const ra = k.form`
|
|
|
3478
3478
|
${({ $columns: e }) => `
|
|
3479
3479
|
grid-column: 1 / ${e + 1};
|
|
3480
3480
|
`}
|
|
3481
|
-
`,
|
|
3481
|
+
`, ec = ({
|
|
3482
3482
|
children: e,
|
|
3483
3483
|
initialValues: t,
|
|
3484
3484
|
onReset: r,
|
|
@@ -3488,44 +3488,44 @@ const ra = k.form`
|
|
|
3488
3488
|
hasReset: a = !0,
|
|
3489
3489
|
...d
|
|
3490
3490
|
}) => {
|
|
3491
|
-
const { handleInputChange: l, handleSubmit: f, handleReset: u, resetSignal: h, valid: g } =
|
|
3491
|
+
const { handleInputChange: l, handleSubmit: f, handleReset: u, resetSignal: h, valid: g } = ra({
|
|
3492
3492
|
initialValues: t,
|
|
3493
3493
|
onReset: r,
|
|
3494
3494
|
onSubmit: n,
|
|
3495
3495
|
onClickSubmit: o
|
|
3496
3496
|
}), m = Z();
|
|
3497
|
-
return /* @__PURE__ */ c.jsx(
|
|
3497
|
+
return /* @__PURE__ */ c.jsx(na, { onSubmit: f, onReset: u, $columns: i, $theme: m, ...d, children: /* @__PURE__ */ c.jsxs(Te.Provider, { value: { onChangeFormInput: l, initialValues: t, resetSignal: h }, children: [
|
|
3498
3498
|
e,
|
|
3499
|
-
/* @__PURE__ */ c.jsxs(
|
|
3499
|
+
/* @__PURE__ */ c.jsxs(oa, { $columns: i, children: [
|
|
3500
3500
|
a && /* @__PURE__ */ c.jsx(kt, { type: "reset", text: "Reset", icon: j.Clear, view: we.Flat }),
|
|
3501
3501
|
/* @__PURE__ */ c.jsx(kt, { type: "submit", text: "Submit", icon: j.Forward, extended: !a, disabled: !g })
|
|
3502
3502
|
] })
|
|
3503
3503
|
] }) });
|
|
3504
|
-
},
|
|
3504
|
+
}, ia = k.table`
|
|
3505
3505
|
border-collapse: collapse;
|
|
3506
|
-
`,
|
|
3506
|
+
`, sa = k.thead`
|
|
3507
3507
|
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3508
3508
|
color: ${(e) => e.$theme.fontColorBase};
|
|
3509
3509
|
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
3510
|
-
`,
|
|
3510
|
+
`, aa = k.tbody`
|
|
3511
3511
|
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3512
3512
|
color: ${(e) => e.$theme.fontColorBase};
|
|
3513
3513
|
`, En = k.th`
|
|
3514
3514
|
padding: ${(e) => e.$theme.gapMedium};
|
|
3515
3515
|
text-align: left;
|
|
3516
|
-
`,
|
|
3516
|
+
`, ca = k.tr`
|
|
3517
3517
|
font-weight: bold;
|
|
3518
3518
|
border-top: ${(e) => e.$theme.borderLight};
|
|
3519
3519
|
border-bottom: ${(e) => e.$theme.borderLight};
|
|
3520
3520
|
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
3521
3521
|
`, In = k.td`
|
|
3522
3522
|
padding: ${(e) => e.$theme.gapMedium};
|
|
3523
|
-
`,
|
|
3523
|
+
`, la = k.caption`
|
|
3524
3524
|
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3525
3525
|
color: ${(e) => e.$theme.fontColorBase};
|
|
3526
3526
|
padding: ${(e) => e.$theme.gapMedium};
|
|
3527
3527
|
font-weight: bold;
|
|
3528
|
-
`,
|
|
3528
|
+
`, da = k.tr`
|
|
3529
3529
|
border-bottom: ${(e) => e.$theme.borderLight};
|
|
3530
3530
|
|
|
3531
3531
|
${(e) => e.$selected && `
|
|
@@ -3536,7 +3536,7 @@ const ra = k.form`
|
|
|
3536
3536
|
|
|
3537
3537
|
${(e) => e.$isFirst && `border-left: ${e.$theme.borderLight};`}
|
|
3538
3538
|
${(e) => e.$highlighted && `background-color: ${e.$theme.backgroundColorLight};`}
|
|
3539
|
-
`,
|
|
3539
|
+
`, ua = k.div`
|
|
3540
3540
|
display: flex;
|
|
3541
3541
|
gap: ${(e) => e.$theme.gapSmall};
|
|
3542
3542
|
padding: ${(e) => e.$theme.gapSmall} 0;
|
|
@@ -3561,7 +3561,7 @@ const ra = k.form`
|
|
|
3561
3561
|
pointer-events: none;
|
|
3562
3562
|
opacity: 0.5;
|
|
3563
3563
|
`}
|
|
3564
|
-
`,
|
|
3564
|
+
`, fa = k.input`
|
|
3565
3565
|
position: absolute;
|
|
3566
3566
|
z-index: -1;
|
|
3567
3567
|
opacity: 0;
|
|
@@ -3574,7 +3574,7 @@ const ra = k.form`
|
|
|
3574
3574
|
outline-offset: 2px;
|
|
3575
3575
|
}
|
|
3576
3576
|
`;
|
|
3577
|
-
function
|
|
3577
|
+
function ha({
|
|
3578
3578
|
item: e,
|
|
3579
3579
|
columns: t,
|
|
3580
3580
|
renderDataItem: r
|
|
@@ -3586,7 +3586,7 @@ function fa({
|
|
|
3586
3586
|
}
|
|
3587
3587
|
return n;
|
|
3588
3588
|
}
|
|
3589
|
-
const
|
|
3589
|
+
const pa = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, children: e }), Rn = ({
|
|
3590
3590
|
name: e,
|
|
3591
3591
|
label: t,
|
|
3592
3592
|
disabled: r,
|
|
@@ -3597,9 +3597,9 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
3597
3597
|
...d
|
|
3598
3598
|
}) => {
|
|
3599
3599
|
const { elementId: l } = Ce(d == null ? void 0 : d.id);
|
|
3600
|
-
return /* @__PURE__ */ c.jsxs(
|
|
3600
|
+
return /* @__PURE__ */ c.jsxs(ua, { $disabled: !!r, $checked: i, $theme: a, children: [
|
|
3601
3601
|
/* @__PURE__ */ c.jsx(
|
|
3602
|
-
|
|
3602
|
+
fa,
|
|
3603
3603
|
{
|
|
3604
3604
|
id: l,
|
|
3605
3605
|
name: e,
|
|
@@ -3624,7 +3624,7 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
3624
3624
|
}
|
|
3625
3625
|
)
|
|
3626
3626
|
] });
|
|
3627
|
-
},
|
|
3627
|
+
}, ma = ({
|
|
3628
3628
|
rowId: e,
|
|
3629
3629
|
isRowSelected: t,
|
|
3630
3630
|
selectRowById: r,
|
|
@@ -3647,11 +3647,11 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
3647
3647
|
disabled: o
|
|
3648
3648
|
}
|
|
3649
3649
|
) });
|
|
3650
|
-
},
|
|
3650
|
+
}, ga = ({ rowId: e, selectRowById: t, deselectRowById: r, selectable: n, values: o, selectedIds: i, disabled: a, theme: d }) => {
|
|
3651
3651
|
const l = i.includes(e);
|
|
3652
|
-
return /* @__PURE__ */ c.jsxs(
|
|
3652
|
+
return /* @__PURE__ */ c.jsxs(da, { $selected: l, $theme: d, children: [
|
|
3653
3653
|
n && /* @__PURE__ */ c.jsx(
|
|
3654
|
-
|
|
3654
|
+
ma,
|
|
3655
3655
|
{
|
|
3656
3656
|
rowId: e,
|
|
3657
3657
|
selectRowById: t,
|
|
@@ -3661,9 +3661,9 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
3661
3661
|
theme: d
|
|
3662
3662
|
}
|
|
3663
3663
|
),
|
|
3664
|
-
o.map((f, u) => /* @__PURE__ */ c.jsx(
|
|
3664
|
+
o.map((f, u) => /* @__PURE__ */ c.jsx(pa, { value: f, theme: d }, `row_${u}`))
|
|
3665
3665
|
] });
|
|
3666
|
-
},
|
|
3666
|
+
}, ya = ({
|
|
3667
3667
|
selectRowById: e,
|
|
3668
3668
|
deselectRowById: t,
|
|
3669
3669
|
renderDataItem: r,
|
|
@@ -3672,10 +3672,10 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
3672
3672
|
data: i,
|
|
3673
3673
|
columns: a,
|
|
3674
3674
|
theme: d
|
|
3675
|
-
}) => /* @__PURE__ */ c.jsx(
|
|
3676
|
-
const f =
|
|
3675
|
+
}) => /* @__PURE__ */ c.jsx(aa, { $theme: d, children: i.map((l) => {
|
|
3676
|
+
const f = ha({ item: l, columns: a, renderDataItem: r });
|
|
3677
3677
|
return /* @__PURE__ */ c.jsx(
|
|
3678
|
-
|
|
3678
|
+
ga,
|
|
3679
3679
|
{
|
|
3680
3680
|
rowId: l.id,
|
|
3681
3681
|
disabled: l == null ? void 0 : l.disabled,
|
|
@@ -3688,7 +3688,7 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
3688
3688
|
},
|
|
3689
3689
|
l.id
|
|
3690
3690
|
);
|
|
3691
|
-
}) }),
|
|
3691
|
+
}) }), ba = ({
|
|
3692
3692
|
columns: e,
|
|
3693
3693
|
selectable: t,
|
|
3694
3694
|
theme: r
|
|
@@ -3704,11 +3704,11 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
3704
3704
|
},
|
|
3705
3705
|
n == null ? void 0 : n.title
|
|
3706
3706
|
))
|
|
3707
|
-
] }),
|
|
3707
|
+
] }), va = ({
|
|
3708
3708
|
title: e,
|
|
3709
3709
|
component: t,
|
|
3710
3710
|
theme: r
|
|
3711
|
-
}) => /* @__PURE__ */ c.jsx(En, { $theme: r, children: t ?? e ?? "" }),
|
|
3711
|
+
}) => /* @__PURE__ */ c.jsx(En, { $theme: r, children: t ?? e ?? "" }), $a = ({ gridId: e, isAllSelected: t, selectAll: r, deselectAll: n, disabled: o, theme: i }) => {
|
|
3712
3712
|
const a = (d) => {
|
|
3713
3713
|
const { checked: l } = d.target;
|
|
3714
3714
|
l ? r() : n();
|
|
@@ -3724,7 +3724,7 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
3724
3724
|
theme: i
|
|
3725
3725
|
}
|
|
3726
3726
|
) });
|
|
3727
|
-
},
|
|
3727
|
+
}, xa = ({
|
|
3728
3728
|
columns: e,
|
|
3729
3729
|
gridId: t,
|
|
3730
3730
|
selectAll: r,
|
|
@@ -3733,9 +3733,9 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
3733
3733
|
isAllSelected: i,
|
|
3734
3734
|
isAllCheckboxDisabled: a = !1,
|
|
3735
3735
|
theme: d
|
|
3736
|
-
}) => /* @__PURE__ */ c.jsx(
|
|
3736
|
+
}) => /* @__PURE__ */ c.jsx(sa, { $theme: d, children: /* @__PURE__ */ c.jsxs(ca, { $theme: d, children: [
|
|
3737
3737
|
o && /* @__PURE__ */ c.jsx(
|
|
3738
|
-
|
|
3738
|
+
$a,
|
|
3739
3739
|
{
|
|
3740
3740
|
isAllSelected: i,
|
|
3741
3741
|
disabled: a,
|
|
@@ -3745,8 +3745,8 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
3745
3745
|
theme: d
|
|
3746
3746
|
}
|
|
3747
3747
|
),
|
|
3748
|
-
e.map((l) => /* @__PURE__ */ c.jsx(
|
|
3749
|
-
] }) }),
|
|
3748
|
+
e.map((l) => /* @__PURE__ */ c.jsx(va, { title: l.title, component: l.component, theme: d }, `${l.title}_${t}`))
|
|
3749
|
+
] }) }), wa = ({
|
|
3750
3750
|
data: e,
|
|
3751
3751
|
id: t,
|
|
3752
3752
|
onSelect: r
|
|
@@ -3774,7 +3774,7 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
3774
3774
|
f($);
|
|
3775
3775
|
}
|
|
3776
3776
|
};
|
|
3777
|
-
},
|
|
3777
|
+
}, tc = ({
|
|
3778
3778
|
columns: e,
|
|
3779
3779
|
data: t,
|
|
3780
3780
|
id: r,
|
|
@@ -3793,12 +3793,12 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
3793
3793
|
handleDeselectRowById: m,
|
|
3794
3794
|
handleSelectRowById: y,
|
|
3795
3795
|
selectedIds: $
|
|
3796
|
-
} =
|
|
3797
|
-
return /* @__PURE__ */ c.jsxs(
|
|
3798
|
-
i && /* @__PURE__ */ c.jsx(
|
|
3799
|
-
/* @__PURE__ */ c.jsx(
|
|
3796
|
+
} = wa({ id: r, data: t, onSelect: n }), C = Z();
|
|
3797
|
+
return /* @__PURE__ */ c.jsxs(ia, { ...d, children: [
|
|
3798
|
+
i && /* @__PURE__ */ c.jsx(la, { $theme: C, children: i }),
|
|
3799
|
+
/* @__PURE__ */ c.jsx(ba, { columns: e, selectable: a, theme: C }),
|
|
3800
3800
|
/* @__PURE__ */ c.jsx(
|
|
3801
|
-
|
|
3801
|
+
xa,
|
|
3802
3802
|
{
|
|
3803
3803
|
gridId: l,
|
|
3804
3804
|
columns: e,
|
|
@@ -3811,7 +3811,7 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
3811
3811
|
}
|
|
3812
3812
|
),
|
|
3813
3813
|
/* @__PURE__ */ c.jsx(
|
|
3814
|
-
|
|
3814
|
+
ya,
|
|
3815
3815
|
{
|
|
3816
3816
|
columns: e,
|
|
3817
3817
|
data: t,
|
|
@@ -3834,7 +3834,7 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
3834
3834
|
flex-direction: ${(e) => e.$mode === X.Vertical ? "column" : "row"};
|
|
3835
3835
|
justify-content: flex-start;
|
|
3836
3836
|
width: 100%;
|
|
3837
|
-
`,
|
|
3837
|
+
`, Sa = k(_n)`
|
|
3838
3838
|
flex-direction: column;
|
|
3839
3839
|
padding-left: ${(e) => e.$theme.gapBig};
|
|
3840
3840
|
margin-left: ${(e) => e.$theme.gapBig};
|
|
@@ -3856,7 +3856,7 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
3856
3856
|
margin: 0;
|
|
3857
3857
|
z-index: ${e.zIndexPopup};
|
|
3858
3858
|
`}
|
|
3859
|
-
`,
|
|
3859
|
+
`, ka = k.li`
|
|
3860
3860
|
display: flex;
|
|
3861
3861
|
justify-content: flex-start;
|
|
3862
3862
|
align-items: center;
|
|
@@ -3876,7 +3876,7 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
3876
3876
|
&:focus-visible {
|
|
3877
3877
|
outline: ${(e) => e.$theme.borderOutline};
|
|
3878
3878
|
}
|
|
3879
|
-
`,
|
|
3879
|
+
`, Ca = k.li`
|
|
3880
3880
|
display: flex;
|
|
3881
3881
|
justify-content: flex-start;
|
|
3882
3882
|
align-items: center;
|
|
@@ -3889,7 +3889,7 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
3889
3889
|
&:focus-visible {
|
|
3890
3890
|
outline: ${(e) => e.$theme.borderOutline};
|
|
3891
3891
|
}
|
|
3892
|
-
`,
|
|
3892
|
+
`, ja = k.span`
|
|
3893
3893
|
position: relative;
|
|
3894
3894
|
display: flex;
|
|
3895
3895
|
box-sizing: border-box;
|
|
@@ -3914,13 +3914,13 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
3914
3914
|
&:hover {
|
|
3915
3915
|
color: ${(e) => e.$theme.fontColorAccent};
|
|
3916
3916
|
}
|
|
3917
|
-
`,
|
|
3917
|
+
`, Ea = ({ theme: e, item: t }) => {
|
|
3918
3918
|
const { icon: r, link: n, label: o, onFocus: i, onClick: a, onHover: d } = t, l = n ? /* @__PURE__ */ c.jsx("a", { href: n, target: "_blank", rel: "noreferrer", children: o }) : /* @__PURE__ */ c.jsx("span", { children: o });
|
|
3919
|
-
return /* @__PURE__ */ c.jsxs(
|
|
3919
|
+
return /* @__PURE__ */ c.jsxs(ka, { tabIndex: 0, role: "menuitem", $theme: e, onFocus: i, onClick: a, onMouseOver: d, children: [
|
|
3920
3920
|
/* @__PURE__ */ c.jsx(ue, { name: r }),
|
|
3921
3921
|
l
|
|
3922
3922
|
] });
|
|
3923
|
-
},
|
|
3923
|
+
}, Ia = ({ item: e, theme: t, isSubMenuOpened: r, toggleSubMenu: n, closeSubMenu: o, mode: i, children: a }) => {
|
|
3924
3924
|
const { icon: d, link: l, label: f } = e, u = Se(null), h = Se(null), g = l ? /* @__PURE__ */ c.jsxs("a", { href: l, target: "_blank", rel: "noreferrer", children: [
|
|
3925
3925
|
/* @__PURE__ */ c.jsx(ue, { name: d }),
|
|
3926
3926
|
f
|
|
@@ -3933,7 +3933,7 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
3933
3933
|
return At({ ref: u, dependentRef: h, onClickOutsideHandler: () => {
|
|
3934
3934
|
i !== X.Vertical && o();
|
|
3935
3935
|
} }), /* @__PURE__ */ c.jsxs(
|
|
3936
|
-
|
|
3936
|
+
Ca,
|
|
3937
3937
|
{
|
|
3938
3938
|
tabIndex: 0,
|
|
3939
3939
|
role: "menuitem",
|
|
@@ -3943,7 +3943,7 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
3943
3943
|
onKeyDown: m,
|
|
3944
3944
|
ref: u,
|
|
3945
3945
|
children: [
|
|
3946
|
-
/* @__PURE__ */ c.jsxs(
|
|
3946
|
+
/* @__PURE__ */ c.jsxs(ja, { ref: h, $theme: t, onClick: n, $mode: i, children: [
|
|
3947
3947
|
g,
|
|
3948
3948
|
/* @__PURE__ */ c.jsx(ue, { name: r ? j.ArrowUp : j.ArrowDown })
|
|
3949
3949
|
] }),
|
|
@@ -3955,14 +3955,14 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
3955
3955
|
var l, f;
|
|
3956
3956
|
const n = !((l = e == null ? void 0 : e.nestedItems) != null && l.length), [o, i] = L(!1);
|
|
3957
3957
|
if (n)
|
|
3958
|
-
return /* @__PURE__ */ c.jsx(
|
|
3958
|
+
return /* @__PURE__ */ c.jsx(Ea, { item: e, theme: t });
|
|
3959
3959
|
const a = () => {
|
|
3960
3960
|
i(!o);
|
|
3961
3961
|
}, d = () => {
|
|
3962
3962
|
i(!1);
|
|
3963
3963
|
};
|
|
3964
3964
|
return /* @__PURE__ */ c.jsx(
|
|
3965
|
-
|
|
3965
|
+
Ia,
|
|
3966
3966
|
{
|
|
3967
3967
|
item: e,
|
|
3968
3968
|
theme: t,
|
|
@@ -3970,10 +3970,10 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
3970
3970
|
toggleSubMenu: a,
|
|
3971
3971
|
closeSubMenu: d,
|
|
3972
3972
|
mode: r,
|
|
3973
|
-
children: /* @__PURE__ */ c.jsx(
|
|
3973
|
+
children: /* @__PURE__ */ c.jsx(Sa, { role: "menu", "aria-label": e.label, $theme: t, $mode: r, children: (f = e == null ? void 0 : e.nestedItems) == null ? void 0 : f.map((u) => /* @__PURE__ */ c.jsx(An, { item: u, theme: t, mode: r }, u.id)) })
|
|
3974
3974
|
}
|
|
3975
3975
|
);
|
|
3976
|
-
},
|
|
3976
|
+
}, rc = ({ items: e, mode: t = X.Vertical, ...r }) => {
|
|
3977
3977
|
const n = Z();
|
|
3978
3978
|
return /* @__PURE__ */ c.jsx(_n, { role: "menubar", $theme: n, $mode: t, ...r, children: e.map((o) => /* @__PURE__ */ c.jsx(An, { item: o, theme: n, mode: t }, o.id)) });
|
|
3979
3979
|
}, cr = ({ children: e }) => {
|
|
@@ -3981,7 +3981,7 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
3981
3981
|
return he(() => (document.body.appendChild(t), () => {
|
|
3982
3982
|
document.body.removeChild(t);
|
|
3983
3983
|
}), [t]), lo.createPortal(e, t);
|
|
3984
|
-
},
|
|
3984
|
+
}, Ra = k.button`
|
|
3985
3985
|
background: transparent;
|
|
3986
3986
|
position: relative;
|
|
3987
3987
|
outline: none;
|
|
@@ -4032,14 +4032,14 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
4032
4032
|
top: 0px;
|
|
4033
4033
|
left: 1px;
|
|
4034
4034
|
`}
|
|
4035
|
-
`,
|
|
4035
|
+
`, _a = k.div`
|
|
4036
4036
|
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
4037
4037
|
color: ${(e) => e.$theme.fontColorBase};
|
|
4038
4038
|
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
4039
4039
|
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
4040
4040
|
padding: ${(e) => e.$theme.gapBig};
|
|
4041
4041
|
flex-grow: 1;
|
|
4042
|
-
`,
|
|
4042
|
+
`, Aa = k.div`
|
|
4043
4043
|
border-bottom: ${(e) => e.$theme.borderLight};
|
|
4044
4044
|
padding: 0 ${(e) => e.$theme.gapMedium};
|
|
4045
4045
|
display: flex;
|
|
@@ -4051,7 +4051,7 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
4051
4051
|
border-right: ${e.$theme.borderLight};
|
|
4052
4052
|
padding: ${e.$theme.gapMedium} 0;
|
|
4053
4053
|
`}
|
|
4054
|
-
`,
|
|
4054
|
+
`, Pa = k.div`
|
|
4055
4055
|
display: flex;
|
|
4056
4056
|
flex-direction: column;
|
|
4057
4057
|
width: 100%;
|
|
@@ -4059,11 +4059,11 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
4059
4059
|
${({ $mode: e }) => e === X.Vertical && `
|
|
4060
4060
|
flex-direction: row;
|
|
4061
4061
|
`}
|
|
4062
|
-
`,
|
|
4062
|
+
`, Ta = ({ tabs: e, selectedTabId: t, theme: r }) => {
|
|
4063
4063
|
var i;
|
|
4064
4064
|
const n = (i = e.find((a) => a.id === t)) == null ? void 0 : i.content, o = `tabpanel_${t}`;
|
|
4065
|
-
return /* @__PURE__ */ c.jsx(
|
|
4066
|
-
},
|
|
4065
|
+
return /* @__PURE__ */ c.jsx(_a, { role: "tabpanel", "aria-labelledby": t, id: o, $theme: r, children: n });
|
|
4066
|
+
}, Oa = ({
|
|
4067
4067
|
title: e,
|
|
4068
4068
|
onTabSelect: t,
|
|
4069
4069
|
tabId: r,
|
|
@@ -4073,7 +4073,7 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
4073
4073
|
mode: a,
|
|
4074
4074
|
theme: d
|
|
4075
4075
|
}) => /* @__PURE__ */ c.jsx(
|
|
4076
|
-
|
|
4076
|
+
Ra,
|
|
4077
4077
|
{
|
|
4078
4078
|
role: "tab",
|
|
4079
4079
|
id: r,
|
|
@@ -4086,7 +4086,7 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
4086
4086
|
$theme: d,
|
|
4087
4087
|
children: e
|
|
4088
4088
|
}
|
|
4089
|
-
),
|
|
4089
|
+
), za = ({ tabs: e, onTabSelect: t, selectedTabId: r, tabPanelIds: n, mode: o, tabIds: i, theme: a }) => {
|
|
4090
4090
|
const d = (l) => {
|
|
4091
4091
|
const f = i.findIndex((u) => u === r);
|
|
4092
4092
|
switch (l.key) {
|
|
@@ -4106,8 +4106,8 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
4106
4106
|
}
|
|
4107
4107
|
}
|
|
4108
4108
|
};
|
|
4109
|
-
return /* @__PURE__ */ c.jsx(
|
|
4110
|
-
|
|
4109
|
+
return /* @__PURE__ */ c.jsx(Aa, { role: "tablist", $mode: o, onKeyDown: d, $theme: a, children: e.map(({ id: l, title: f, disabled: u }, h) => /* @__PURE__ */ c.jsx(
|
|
4110
|
+
Oa,
|
|
4111
4111
|
{
|
|
4112
4112
|
title: f,
|
|
4113
4113
|
onTabSelect: t,
|
|
@@ -4120,13 +4120,13 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
4120
4120
|
},
|
|
4121
4121
|
l
|
|
4122
4122
|
)) });
|
|
4123
|
-
},
|
|
4123
|
+
}, nc = ({ tabs: e, defaultTabId: t, mode: r = X.Horizontal, ...n }) => {
|
|
4124
4124
|
const o = e.map((h) => h.id), i = o.map((h) => `tabpanel_${h}`), a = t && o.includes(t) ? t : o[0], [d, l] = L(a), f = Z(), u = (h) => {
|
|
4125
4125
|
l(h);
|
|
4126
4126
|
};
|
|
4127
|
-
return /* @__PURE__ */ c.jsxs(
|
|
4127
|
+
return /* @__PURE__ */ c.jsxs(Pa, { $mode: r, ...n, children: [
|
|
4128
4128
|
/* @__PURE__ */ c.jsx(
|
|
4129
|
-
|
|
4129
|
+
za,
|
|
4130
4130
|
{
|
|
4131
4131
|
tabs: e,
|
|
4132
4132
|
selectedTabId: d,
|
|
@@ -4137,9 +4137,9 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
4137
4137
|
theme: f
|
|
4138
4138
|
}
|
|
4139
4139
|
),
|
|
4140
|
-
/* @__PURE__ */ c.jsx(
|
|
4140
|
+
/* @__PURE__ */ c.jsx(Ta, { tabs: e, selectedTabId: d, theme: f })
|
|
4141
4141
|
] });
|
|
4142
|
-
},
|
|
4142
|
+
}, Da = k.header`
|
|
4143
4143
|
display: flex;
|
|
4144
4144
|
justify-content: space-between;
|
|
4145
4145
|
align-items: center;
|
|
@@ -4155,7 +4155,7 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
4155
4155
|
color: ${(e) => e.$theme.fontColorAccent};
|
|
4156
4156
|
}
|
|
4157
4157
|
}
|
|
4158
|
-
`,
|
|
4158
|
+
`, Ma = k.div`
|
|
4159
4159
|
position: fixed;
|
|
4160
4160
|
bottom: ${(e) => e.$theme.gapBig};
|
|
4161
4161
|
left: 50%;
|
|
@@ -4164,7 +4164,7 @@ const ha = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, ch
|
|
|
4164
4164
|
${qe}
|
|
4165
4165
|
|
|
4166
4166
|
${(e) => e.$isClosing && yn}
|
|
4167
|
-
`,
|
|
4167
|
+
`, Ba = k.div`
|
|
4168
4168
|
display: flex;
|
|
4169
4169
|
flex-direction: column;
|
|
4170
4170
|
gap: ${(e) => e.$theme.gapMedium};
|
|
@@ -4184,7 +4184,7 @@ function Pn(e) {
|
|
|
4184
4184
|
/* @__PURE__ */ c.jsx("path", { d: "M21.707 7.293l-5-5A.996.996 0 0016 2H8a.996.996 0 00-.707.293l-5 5A.996.996 0 002 8v8c0 .266.105.52.293.707l5 5A.996.996 0 008 22h8c.266 0 .52-.105.707-.293l5-5A.996.996 0 0022 16V8a.996.996 0 00-.293-.707zM20 15.586L15.586 20H8.414L4 15.586V8.414L8.414 4h7.172L20 8.414v7.172z" })
|
|
4185
4185
|
] });
|
|
4186
4186
|
}
|
|
4187
|
-
const
|
|
4187
|
+
const La = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4188
4188
|
__proto__: null,
|
|
4189
4189
|
default: Pn
|
|
4190
4190
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -4194,7 +4194,7 @@ function Tn(e) {
|
|
|
4194
4194
|
/* @__PURE__ */ c.jsx("path", { d: "M414.39 97.61A224 224 0 1097.61 414.39 224 224 0 10414.39 97.61zM192.13 260.18a64 64 0 1159.69 59.69 64.07 64.07 0 01-59.69-59.69zm240-66.64l-96.37 5.84a4.06 4.06 0 01-3.44-1.59 96 96 0 00-18.07-18.07 4.06 4.06 0 01-1.59-3.44l5.84-96.37a4 4 0 015.42-3.51A193 193 0 01435.6 188.12a4 4 0 01-3.51 5.42zM193.54 79.91l5.84 96.37a4.06 4.06 0 01-1.59 3.44 96 96 0 00-18.07 18.07 4.06 4.06 0 01-3.44 1.59l-96.37-5.84a4 4 0 01-3.51-5.42A193 193 0 01188.12 76.4a4 4 0 015.42 3.51zM79.91 318.46l96.37-5.84a4.06 4.06 0 013.44 1.59 96 96 0 0018.07 18.07 4.06 4.06 0 011.59 3.44l-5.84 96.37a4 4 0 01-5.42 3.51A193 193 0 0176.4 323.88a4 4 0 013.51-5.42zm238.55 113.63l-5.84-96.37a4.06 4.06 0 011.59-3.44 96 96 0 0018.07-18.07 4.06 4.06 0 013.44-1.59l96.37 5.84a4 4 0 013.51 5.42A193 193 0 01323.88 435.6a4 4 0 01-5.42-3.51z" })
|
|
4195
4195
|
] });
|
|
4196
4196
|
}
|
|
4197
|
-
const
|
|
4197
|
+
const Fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4198
4198
|
__proto__: null,
|
|
4199
4199
|
default: Tn
|
|
4200
4200
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -4205,7 +4205,7 @@ function On(e) {
|
|
|
4205
4205
|
/* @__PURE__ */ c.jsx("path", { d: "M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" })
|
|
4206
4206
|
] });
|
|
4207
4207
|
}
|
|
4208
|
-
const
|
|
4208
|
+
const Na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4209
4209
|
__proto__: null,
|
|
4210
4210
|
default: On
|
|
4211
4211
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -4216,11 +4216,11 @@ function zn(e) {
|
|
|
4216
4216
|
/* @__PURE__ */ c.jsx("path", { d: "M4 20v-6a8 8 0 1116 0v6h1v2H3v-2h1zm2 0h12v-6a6 6 0 10-12 0v6zm5-18h2v3h-2V2zm8.778 2.808l1.414 1.414-2.12 2.121-1.415-1.414 2.121-2.121zM2.808 6.222l1.414-1.414 2.121 2.12L4.93 8.344 2.808 6.222zM7 14a5 5 0 015-5v2a3 3 0 00-3 3H7z" })
|
|
4217
4217
|
] });
|
|
4218
4218
|
}
|
|
4219
|
-
const
|
|
4219
|
+
const Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4220
4220
|
__proto__: null,
|
|
4221
4221
|
default: zn
|
|
4222
4222
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4223
|
-
function
|
|
4223
|
+
function Wa(e, t) {
|
|
4224
4224
|
if (t) return t;
|
|
4225
4225
|
switch (e) {
|
|
4226
4226
|
case te.Info:
|
|
@@ -4237,7 +4237,7 @@ function Ha(e, t) {
|
|
|
4237
4237
|
return "Alert";
|
|
4238
4238
|
}
|
|
4239
4239
|
}
|
|
4240
|
-
function
|
|
4240
|
+
function Ga(e, t) {
|
|
4241
4241
|
if (t)
|
|
4242
4242
|
return /* @__PURE__ */ c.jsx(ue, { name: t });
|
|
4243
4243
|
switch (e) {
|
|
@@ -4255,16 +4255,16 @@ function Wa(e, t) {
|
|
|
4255
4255
|
return null;
|
|
4256
4256
|
}
|
|
4257
4257
|
}
|
|
4258
|
-
const
|
|
4259
|
-
const i =
|
|
4260
|
-
return /* @__PURE__ */ c.jsxs(
|
|
4258
|
+
const Ua = ({ title: e, onClose: t, mode: r, icon: n, theme: o }) => {
|
|
4259
|
+
const i = Wa(r, e), a = Ga(r, n);
|
|
4260
|
+
return /* @__PURE__ */ c.jsxs(Da, { $theme: o, children: [
|
|
4261
4261
|
/* @__PURE__ */ c.jsxs("h3", { children: [
|
|
4262
4262
|
a,
|
|
4263
4263
|
i
|
|
4264
4264
|
] }),
|
|
4265
4265
|
/* @__PURE__ */ c.jsx(kt, { icon: j.Cancel, view: we.Icon, label: "Close alert popup", onClick: t })
|
|
4266
4266
|
] });
|
|
4267
|
-
},
|
|
4267
|
+
}, oc = ({
|
|
4268
4268
|
isOpened: e,
|
|
4269
4269
|
onClose: t,
|
|
4270
4270
|
title: r,
|
|
@@ -4274,48 +4274,49 @@ const Ga = ({ title: e, onClose: t, mode: r, icon: n, theme: o }) => {
|
|
|
4274
4274
|
...a
|
|
4275
4275
|
}) => {
|
|
4276
4276
|
const d = wn(e), l = d && !e, f = Z();
|
|
4277
|
-
return d ? /* @__PURE__ */ c.jsx(cr, { children: /* @__PURE__ */ c.jsx(
|
|
4278
|
-
/* @__PURE__ */ c.jsx(
|
|
4277
|
+
return d ? /* @__PURE__ */ c.jsx(cr, { children: /* @__PURE__ */ c.jsx(Ma, { $isClosing: l, $theme: f, children: /* @__PURE__ */ c.jsxs(Ba, { ...a, $theme: f, children: [
|
|
4278
|
+
/* @__PURE__ */ c.jsx(Ua, { title: r, onClose: t, mode: o, icon: i, theme: f }),
|
|
4279
4279
|
/* @__PURE__ */ c.jsx("p", { children: n })
|
|
4280
4280
|
] }) }) }) : null;
|
|
4281
4281
|
};
|
|
4282
4282
|
export {
|
|
4283
|
-
|
|
4284
|
-
|
|
4283
|
+
Z as A,
|
|
4284
|
+
At as B,
|
|
4285
4285
|
kt as C,
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4286
|
+
cs as D,
|
|
4287
|
+
Ce as E,
|
|
4288
|
+
Pt as F,
|
|
4289
|
+
ls as G,
|
|
4290
|
+
wn as H,
|
|
4291
4291
|
St as I,
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
Ka as
|
|
4296
|
-
qa as
|
|
4297
|
-
Xa as
|
|
4298
|
-
Ja as
|
|
4299
|
-
Za as
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
ec as
|
|
4292
|
+
at as J,
|
|
4293
|
+
us as K,
|
|
4294
|
+
ds as L,
|
|
4295
|
+
Ka as a,
|
|
4296
|
+
qa as b,
|
|
4297
|
+
Xa as c,
|
|
4298
|
+
Ja as d,
|
|
4299
|
+
Za as e,
|
|
4300
|
+
Qa as f,
|
|
4301
|
+
Zs as g,
|
|
4302
|
+
ec as h,
|
|
4303
|
+
tc as i,
|
|
4303
4304
|
c as j,
|
|
4304
|
-
|
|
4305
|
+
rc as k,
|
|
4305
4306
|
cr as l,
|
|
4306
|
-
|
|
4307
|
-
|
|
4307
|
+
nc as m,
|
|
4308
|
+
oc as n,
|
|
4308
4309
|
Te as o,
|
|
4309
|
-
|
|
4310
|
+
ss as p,
|
|
4310
4311
|
bn as q,
|
|
4311
4312
|
ue as r,
|
|
4312
4313
|
Xe as s,
|
|
4313
4314
|
te as t,
|
|
4314
4315
|
we as u,
|
|
4315
4316
|
j as v,
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4317
|
+
ki as w,
|
|
4318
|
+
X as x,
|
|
4319
|
+
vn as y,
|
|
4320
|
+
$n as z
|
|
4320
4321
|
};
|
|
4321
|
-
//# sourceMappingURL=index-
|
|
4322
|
+
//# sourceMappingURL=index-CL5Yr-gF.js.map
|