@adyen/adyen-platform-experience-web 1.4.0 → 1.4.2
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/README.md +12 -13
- package/dist/adyen-platform-experience-web.css +1 -1
- package/dist/{angle-right-DoWVn5wu.cjs → angle-right-C1JIrQTg.cjs} +2 -2
- package/dist/{angle-right-DoWVn5wu.cjs.map → angle-right-C1JIrQTg.cjs.map} +1 -1
- package/dist/{checkmark-CJGA8ZP3.cjs → checkmark-B8DhX3p1.cjs} +2 -2
- package/dist/{checkmark-CJGA8ZP3.cjs.map → checkmark-B8DhX3p1.cjs.map} +1 -1
- package/dist/{checkmark-circle-fill-CAB5gukT.cjs → checkmark-circle-fill-CMpIlMCC.cjs} +2 -2
- package/dist/{checkmark-circle-fill-CAB5gukT.cjs.map → checkmark-circle-fill-CMpIlMCC.cjs.map} +1 -1
- package/dist/{checkmark-square-fill-CiZmFh_I.cjs → checkmark-square-fill-Cy8Hzt9P.cjs} +2 -2
- package/dist/{checkmark-square-fill-CiZmFh_I.cjs.map → checkmark-square-fill-Cy8Hzt9P.cjs.map} +1 -1
- package/dist/{chevron-down-Dta7QXOA.cjs → chevron-down-CB77LxQY.cjs} +2 -2
- package/dist/{chevron-down-Dta7QXOA.cjs.map → chevron-down-CB77LxQY.cjs.map} +1 -1
- package/dist/{chevron-left-B5Al1d4a.cjs → chevron-left-DMAmIvLF.cjs} +2 -2
- package/dist/{chevron-left-B5Al1d4a.cjs.map → chevron-left-DMAmIvLF.cjs.map} +1 -1
- package/dist/{chevron-right-D4tgeCRD.cjs → chevron-right-BxLJu7Zf.cjs} +2 -2
- package/dist/{chevron-right-D4tgeCRD.cjs.map → chevron-right-BxLJu7Zf.cjs.map} +1 -1
- package/dist/{chevron-up-BnS-kgE5.cjs → chevron-up-CT79XJdh.cjs} +2 -2
- package/dist/{chevron-up-BnS-kgE5.cjs.map → chevron-up-CT79XJdh.cjs.map} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/{copy-Cw-eOhqB.cjs → copy-7UpFtMvt.cjs} +2 -2
- package/dist/{copy-Cw-eOhqB.cjs.map → copy-7UpFtMvt.cjs.map} +1 -1
- package/dist/{cross-L2Paef-M.cjs → cross-DtVirgrN.cjs} +2 -2
- package/dist/{cross-L2Paef-M.cjs.map → cross-DtVirgrN.cjs.map} +1 -1
- package/dist/{cross-circle-fill-DJTPa1qC.cjs → cross-circle-fill-C47yImD2.cjs} +2 -2
- package/dist/{cross-circle-fill-DJTPa1qC.cjs.map → cross-circle-fill-C47yImD2.cjs.map} +1 -1
- package/dist/{download-m1Wy-73V.cjs → download-A1m1wB_K.cjs} +2 -2
- package/dist/{download-m1Wy-73V.cjs.map → download-A1m1wB_K.cjs.map} +1 -1
- package/dist/es/components/external/CapitalOverview/components/GrantList/GrantsDisplay.js +28 -28
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +54 -43
- package/dist/es/components/internal/Icon/Icon.js +2 -0
- package/dist/es/components/internal/SegmentedControl/SegmentedControl.js +55 -0
- package/dist/es/core/Http/utils.js +1 -1
- package/dist/es/core/Localization/datetime/restamper/constants.js +1 -1
- package/dist/es/core/Localization/datetime/restamper/utils.js +12 -12
- package/dist/es/core/core.js +1 -1
- package/dist/es/external/preact/dist/preact.module.js +5 -5
- package/dist/es/hooks/useTabbedControl.js +66 -0
- package/dist/es/images/icons/trash-can.svg.js +9 -0
- package/dist/es/images/icons/upload.svg.js +9 -0
- package/dist/es/translations/en-US.json.js +47 -41
- package/dist/{external-link-DnmxrmjV.cjs → external-link-Ct-WlQoY.cjs} +2 -2
- package/dist/{external-link-DnmxrmjV.cjs.map → external-link-Ct-WlQoY.cjs.map} +1 -1
- package/dist/{filter-CyAjNvvu.cjs → filter-DwSaMAG7.cjs} +2 -2
- package/dist/{filter-CyAjNvvu.cjs.map → filter-DwSaMAG7.cjs.map} +1 -1
- package/dist/index-CpBGZ2AH.cjs +12 -0
- package/dist/index-CpBGZ2AH.cjs.map +1 -0
- package/dist/{info-filled-DNy-1YG1.cjs → info-filled-bhD2VGA2.cjs} +2 -2
- package/dist/{info-filled-DNy-1YG1.cjs.map → info-filled-bhD2VGA2.cjs.map} +1 -1
- package/dist/{minus-circle-outline-BRBYMsfi.cjs → minus-circle-outline-pNXlRjce.cjs} +2 -2
- package/dist/{minus-circle-outline-BRBYMsfi.cjs.map → minus-circle-outline-pNXlRjce.cjs.map} +1 -1
- package/dist/{plus-circle-outline-C077N1t1.cjs → plus-circle-outline-B3Ttq6A2.cjs} +2 -2
- package/dist/{plus-circle-outline-C077N1t1.cjs.map → plus-circle-outline-B3Ttq6A2.cjs.map} +1 -1
- package/dist/{square-B8n_Cd4N.cjs → square-C3hb1Bxz.cjs} +2 -2
- package/dist/{square-B8n_Cd4N.cjs.map → square-C3hb1Bxz.cjs.map} +1 -1
- package/dist/trash-can-D2GRVBnJ.cjs +2 -0
- package/dist/trash-can-D2GRVBnJ.cjs.map +1 -0
- package/dist/types/components/external/TransactionDetails/components/utils.d.ts +1 -1
- package/dist/types/components/internal/ExpandableCard/ExpandableCard.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +1 -1
- package/dist/types/components/internal/Icon/Icon.d.ts +2 -0
- package/dist/types/components/internal/Icon/Icon.d.ts.map +1 -1
- package/dist/types/components/internal/SegmentedControl/SegmentedControl.d.ts +5 -0
- package/dist/types/components/internal/SegmentedControl/SegmentedControl.d.ts.map +1 -0
- package/dist/types/components/internal/SegmentedControl/types.d.ts +14 -0
- package/dist/types/components/internal/SegmentedControl/types.d.ts.map +1 -0
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +1 -1
- package/dist/types/components/utils/getLabel.d.ts +1 -1
- package/dist/types/core/Localization/datetime/restamper/constants.d.ts.map +1 -1
- package/dist/types/hooks/useTabbedControl.d.ts +19 -0
- package/dist/types/hooks/useTabbedControl.d.ts.map +1 -0
- package/dist/types/translations/index.d.ts +6 -0
- package/dist/types/translations/index.d.ts.map +1 -1
- package/dist/types/utils/file/read.d.ts +5 -0
- package/dist/types/utils/file/read.d.ts.map +1 -0
- package/dist/types/utils/file/size.d.ts +45 -0
- package/dist/types/utils/file/size.d.ts.map +1 -0
- package/dist/types/utils/file/upload.d.ts +17 -0
- package/dist/types/utils/file/upload.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +3 -0
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/upload-CeUcEWmW.cjs +2 -0
- package/dist/upload-CeUcEWmW.cjs.map +1 -0
- package/dist/{warning-6iewnkkK.cjs → warning-C2NpcmL8.cjs} +2 -2
- package/dist/{warning-6iewnkkK.cjs.map → warning-C2NpcmL8.cjs.map} +1 -1
- package/dist/{warning-filled-DbbyNMim.cjs → warning-filled-Bo82QPPc.cjs} +2 -2
- package/dist/{warning-filled-DbbyNMim.cjs.map → warning-filled-Bo82QPPc.cjs.map} +1 -1
- package/package.json +5 -5
- package/dist/es/components/internal/Tabs/Tabs.js +0 -69
- package/dist/index-LzoB__Hj.cjs +0 -12
- package/dist/index-LzoB__Hj.cjs.map +0 -1
- package/dist/types/components/internal/Tabs/Tabs.d.ts +0 -5
- package/dist/types/components/internal/Tabs/Tabs.d.ts.map +0 -1
- package/dist/types/components/internal/Tabs/types.d.ts +0 -15
- package/dist/types/components/internal/Tabs/types.d.ts.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-
|
|
2
|
-
//# sourceMappingURL=info-filled-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-CpBGZ2AH.cjs"),i=e=>l.u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...e,children:[l.u("g",{clipPath:"url(#info-filled_svg__a)",children:l.u("path",{fill:"currentColor",d:"M5.03.84a7.75 7.75 0 1 1 5.94 14.32A7.75 7.75 0 0 1 5.03.84M8.75 4.5a1 1 0 1 0-2 0 1 1 0 0 0 2 0m0 1.75h-2.5v1.5h1v2.5h-1v1.5h3.5v-1.5h-1z"})}),l.u("defs",{children:l.u("clipPath",{id:"info-filled_svg__a",children:l.u("path",{fill:"currentColor",d:"M0 0h16v16H0z"})})})]});exports.default=i;
|
|
2
|
+
//# sourceMappingURL=info-filled-bhD2VGA2.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info-filled-
|
|
1
|
+
{"version":3,"file":"info-filled-bhD2VGA2.cjs","sources":["../src/images/icons/info-filled.svg?component"],"sourcesContent":["import { jsx, jsxs } from \"react/jsx-runtime\";\nconst SvgInfoFilled = (props) => /* @__PURE__ */ jsxs(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", fill: \"none\", viewBox: \"0 0 16 16\", ...props, children: [\n /* @__PURE__ */ jsx(\"g\", { clipPath: \"url(#info-filled_svg__a)\", children: /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: \"M5.03.84a7.75 7.75 0 1 1 5.94 14.32A7.75 7.75 0 0 1 5.03.84M8.75 4.5a1 1 0 1 0-2 0 1 1 0 0 0 2 0m0 1.75h-2.5v1.5h1v2.5h-1v1.5h3.5v-1.5h-1z\" }) }),\n /* @__PURE__ */ jsx(\"defs\", { children: /* @__PURE__ */ jsx(\"clipPath\", { id: \"info-filled_svg__a\", children: /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: \"M0 0h16v16H0z\" }) }) })\n] });\nexport default SvgInfoFilled;\n"],"names":["SvgInfoFilled","props","jsxs","jsx"],"mappings":"wHACMA,EAAiBC,GAA0BC,EAAI,EAAC,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAAU,CAC1IE,EAAAA,EAAI,IAAK,CAAE,SAAU,2BAA4B,SAA0BA,EAAG,EAAC,OAAQ,CAAE,KAAM,eAAgB,EAAG,4IAA4I,CAAE,CAAC,CAAE,EACnQA,EAAG,EAAC,OAAQ,CAAE,SAA0BA,EAAG,EAAC,WAAY,CAAE,GAAI,qBAAsB,SAA0BA,EAAAA,EAAI,OAAQ,CAAE,KAAM,eAAgB,EAAG,eAAe,CAAE,CAAC,CAAE,CAAG,CAAA,CAC9L,CAAG,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
2
|
-
//# sourceMappingURL=minus-circle-outline-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CpBGZ2AH.cjs"),t=l=>e.u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...l,children:[e.u("path",{d:"M11.75 7.25h-7.5v1.5h7.5v-1.5Z",fill:"currentColor"}),e.u("path",{d:"M8 .25a7.75 7.75 0 1 0 0 15.5A7.75 7.75 0 0 0 8 .25ZM1.75 8a6.25 6.25 0 1 1 12.5 0 6.25 6.25 0 0 1-12.5 0Z",fill:"currentColor"})]});exports.default=t;
|
|
2
|
+
//# sourceMappingURL=minus-circle-outline-pNXlRjce.cjs.map
|
package/dist/{minus-circle-outline-BRBYMsfi.cjs.map → minus-circle-outline-pNXlRjce.cjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"minus-circle-outline-
|
|
1
|
+
{"version":3,"file":"minus-circle-outline-pNXlRjce.cjs","sources":["../src/images/icons/minus-circle-outline.svg?component"],"sourcesContent":["import { jsx, jsxs } from \"react/jsx-runtime\";\nconst SvgMinusCircleOutline = (props) => /* @__PURE__ */ jsxs(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", fill: \"none\", viewBox: \"0 0 16 16\", ...props, children: [\n /* @__PURE__ */ jsx(\"path\", { d: \"M11.75 7.25h-7.5v1.5h7.5v-1.5Z\", fill: \"currentColor\" }),\n /* @__PURE__ */ jsx(\"path\", { d: \"M8 .25a7.75 7.75 0 1 0 0 15.5A7.75 7.75 0 0 0 8 .25ZM1.75 8a6.25 6.25 0 1 1 12.5 0 6.25 6.25 0 0 1-12.5 0Z\", fill: \"currentColor\" })\n] });\nexport default SvgMinusCircleOutline;\n"],"names":["SvgMinusCircleOutline","props","jsxs","jsx"],"mappings":"wHACMA,EAAyBC,GAA0BC,EAAI,EAAC,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAAU,CAClJE,EAAG,EAAC,OAAQ,CAAE,EAAG,iCAAkC,KAAM,eAAgB,EACzEA,EAAG,EAAC,OAAQ,CAAE,EAAG,6GAA8G,KAAM,cAAgB,CAAA,CACvK,CAAG,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
2
|
-
//# sourceMappingURL=plus-circle-outline-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CpBGZ2AH.cjs"),t=l=>e.u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",...l,children:[e.u("path",{d:"M8.7 7.3h2.9v1.4H8.7v2.9H7.3V8.7H4.4V7.3h2.9V4.4h1.4v2.9Z",fill:"currentColor"}),e.u("path",{d:"M.3 8a7.7 7.7 0 1 1 15.4 0A7.7 7.7 0 0 1 .3 8ZM8 1.7a6.3 6.3 0 1 0 0 12.6A6.3 6.3 0 0 0 8 1.7Z",fill:"currentColor"})]});exports.default=t;
|
|
2
|
+
//# sourceMappingURL=plus-circle-outline-B3Ttq6A2.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plus-circle-outline-
|
|
1
|
+
{"version":3,"file":"plus-circle-outline-B3Ttq6A2.cjs","sources":["../src/images/icons/plus-circle-outline.svg?component"],"sourcesContent":["import { jsx, jsxs } from \"react/jsx-runtime\";\nconst SvgPlusCircleOutline = (props) => /* @__PURE__ */ jsxs(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 16 16\", fill: \"none\", ...props, children: [\n /* @__PURE__ */ jsx(\"path\", { d: \"M8.7 7.3h2.9v1.4H8.7v2.9H7.3V8.7H4.4V7.3h2.9V4.4h1.4v2.9Z\", fill: \"currentColor\" }),\n /* @__PURE__ */ jsx(\"path\", { d: \"M.3 8a7.7 7.7 0 1 1 15.4 0A7.7 7.7 0 0 1 .3 8ZM8 1.7a6.3 6.3 0 1 0 0 12.6A6.3 6.3 0 0 0 8 1.7Z\", fill: \"currentColor\" })\n] });\nexport default SvgPlusCircleOutline;\n"],"names":["SvgPlusCircleOutline","props","jsxs","jsx"],"mappings":"wHACMA,EAAwBC,GAA0BC,EAAI,EAAC,MAAO,CAAE,MAAO,6BAA8B,QAAS,YAAa,KAAM,OAAQ,GAAGD,EAAO,SAAU,CACjJE,EAAG,EAAC,OAAQ,CAAE,EAAG,4DAA6D,KAAM,eAAgB,EACpGA,EAAG,EAAC,OAAQ,CAAE,EAAG,iGAAkG,KAAM,cAAgB,CAAA,CAC3J,CAAG,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
2
|
-
//# sourceMappingURL=square-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CpBGZ2AH.cjs"),c=l=>e.u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...l,children:e.u("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.25 3.5c0-1.24 1-2.25 2.25-2.25h9c1.24 0 2.25 1 2.25 2.25v9c0 1.24-1 2.25-2.25 2.25h-9c-1.24 0-2.25-1-2.25-2.25zm2.25-.75a.75.75 0 0 0-.75.75v9c0 .41.34.75.75.75h9c.41 0 .75-.34.75-.75v-9a.75.75 0 0 0-.75-.75z",clipRule:"evenodd"})});exports.default=c;
|
|
2
|
+
//# sourceMappingURL=square-C3hb1Bxz.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"square-
|
|
1
|
+
{"version":3,"file":"square-C3hb1Bxz.cjs","sources":["../src/images/icons/square.svg?component"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nconst SvgSquare = (props) => /* @__PURE__ */ jsx(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", fill: \"none\", viewBox: \"0 0 16 16\", ...props, children: /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", fillRule: \"evenodd\", d: \"M1.25 3.5c0-1.24 1-2.25 2.25-2.25h9c1.24 0 2.25 1 2.25 2.25v9c0 1.24-1 2.25-2.25 2.25h-9c-1.24 0-2.25-1-2.25-2.25zm2.25-.75a.75.75 0 0 0-.75.75v9c0 .41.34.75.75.75h9c.41 0 .75-.34.75-.75v-9a.75.75 0 0 0-.75-.75z\", clipRule: \"evenodd\" }) });\nexport default SvgSquare;\n"],"names":["SvgSquare","props","jsx"],"mappings":"wHACMA,EAAaC,GAA0BC,EAAG,EAAC,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAA0BC,IAAI,OAAQ,CAAE,KAAM,eAAgB,SAAU,UAAW,EAAG,sNAAuN,SAAU,SAAW,CAAA,CAAG,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-CpBGZ2AH.cjs"),h=e=>l.u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...e,children:[l.u("path",{fill:"currentColor",d:"M7.25 6.25h-1.5v6.5h1.5v-6.5ZM8.75 6.25h1.5v6.5h-1.5v-6.5Z"}),l.u("path",{fill:"currentColor",d:"M14.75 3.25h-2.21l-.49-1.5a2.2 2.2 0 0 0-.83-1.1c-.39-.27-.88-.4-1.3-.41H6.09c-.45 0-.92.14-1.31.41a2.2 2.2 0 0 0-.83 1.11l-.49 1.48H1.25v1.5h1.07l.82 8.96c.05.56.31 1.08.72 1.46.41.38.95.59 1.51.59h5.27c.56 0 1.1-.21 1.51-.59.42-.38.67-.9.72-1.46l.82-8.96h1.07v-1.5l-.01.01Zm-9.38-1a.75.75 0 0 1 .27-.36.7.7 0 0 1 .44-.13h3.85c.15 0 .3.05.42.13.13.09.22.21.27.35l.33 1.02H5.02l.33-1 .02-.01Zm6 11.33a.72.72 0 0 1-.24.48.73.73 0 0 1-.5.19H5.36a.76.76 0 0 1-.5-.19.76.76 0 0 1-.24-.49l-.81-8.82h8.36l-.81 8.82.01.01Z"})]});exports.default=h;
|
|
2
|
+
//# sourceMappingURL=trash-can-D2GRVBnJ.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trash-can-D2GRVBnJ.cjs","sources":["../src/images/icons/trash-can.svg?component"],"sourcesContent":["import { jsx, jsxs } from \"react/jsx-runtime\";\nconst SvgTrashCan = (props) => /* @__PURE__ */ jsxs(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", fill: \"none\", viewBox: \"0 0 16 16\", ...props, children: [\n /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: \"M7.25 6.25h-1.5v6.5h1.5v-6.5ZM8.75 6.25h1.5v6.5h-1.5v-6.5Z\" }),\n /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: \"M14.75 3.25h-2.21l-.49-1.5a2.2 2.2 0 0 0-.83-1.1c-.39-.27-.88-.4-1.3-.41H6.09c-.45 0-.92.14-1.31.41a2.2 2.2 0 0 0-.83 1.11l-.49 1.48H1.25v1.5h1.07l.82 8.96c.05.56.31 1.08.72 1.46.41.38.95.59 1.51.59h5.27c.56 0 1.1-.21 1.51-.59.42-.38.67-.9.72-1.46l.82-8.96h1.07v-1.5l-.01.01Zm-9.38-1a.75.75 0 0 1 .27-.36.7.7 0 0 1 .44-.13h3.85c.15 0 .3.05.42.13.13.09.22.21.27.35l.33 1.02H5.02l.33-1 .02-.01Zm6 11.33a.72.72 0 0 1-.24.48.73.73 0 0 1-.5.19H5.36a.76.76 0 0 1-.5-.19.76.76 0 0 1-.24-.49l-.81-8.82h8.36l-.81 8.82.01.01Z\" })\n] });\nexport default SvgTrashCan;\n"],"names":["SvgTrashCan","props","jsxs","jsx"],"mappings":"wHACMA,EAAeC,GAA0BC,EAAI,EAAC,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAAU,CACxIE,EAAG,EAAC,OAAQ,CAAE,KAAM,eAAgB,EAAG,6DAA8D,EACrGA,EAAG,EAAC,OAAQ,CAAE,KAAM,eAAgB,EAAG,qgBAAugB,CAAA,CAChkB,CAAG,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RefundType } from '../context/types';
|
|
2
2
|
import { TagVariant } from '../../../internal/Tag/types';
|
|
3
3
|
import type { TransactionDetailData } from '../types';
|
|
4
|
-
export declare const getAmountStyleForTransaction: (transaction: TransactionDetailData) => "pending" | "
|
|
4
|
+
export declare const getAmountStyleForTransaction: (transaction: TransactionDetailData) => "pending" | "error" | "default";
|
|
5
5
|
export declare const getTagVariantForTransaction: (transaction: TransactionDetailData) => TagVariant.DEFAULT | TagVariant.ERROR | TagVariant.SUCCESS;
|
|
6
6
|
export declare const getPaymentMethodTypeForTransaction: (transaction: TransactionDetailData) => string | null;
|
|
7
7
|
export declare const getDisplayablePaymentMethodForTransaction: (transaction: TransactionDetailData) => string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpandableCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/internal/ExpandableCard/ExpandableCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAOlD,OAAO,uBAAuB,CAAC;AAgB/B,QAAA,MAAM,cAAc,wEAAyE,kBAAkB,mBAAmB,CAAC,
|
|
1
|
+
{"version":3,"file":"ExpandableCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/internal/ExpandableCard/ExpandableCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAOlD,OAAO,uBAAuB,CAAC;AAgB/B,QAAA,MAAM,cAAc,wEAAyE,kBAAkB,mBAAmB,CAAC,wCA+HlI,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SelectItem, SelectProps } from '../types';
|
|
2
|
-
declare const useSelect: <T extends SelectItem>({ items, multiSelect, selected }: Pick<SelectProps<T>, "
|
|
2
|
+
declare const useSelect: <T extends SelectItem>({ items, multiSelect, selected }: Pick<SelectProps<T>, "items" | "multiSelect" | "selected">) => {
|
|
3
3
|
readonly resetSelection: (selection?: readonly T[] | T[]) => void;
|
|
4
4
|
readonly select: (item: T) => void;
|
|
5
5
|
readonly selection: readonly T[];
|
|
@@ -20,6 +20,8 @@ declare const icons: {
|
|
|
20
20
|
readonly 'minus-circle-outline': () => Promise<typeof import("*.svg?component")>;
|
|
21
21
|
readonly 'plus-circle-outline': () => Promise<typeof import("*.svg?component")>;
|
|
22
22
|
readonly square: () => Promise<typeof import("*.svg?component")>;
|
|
23
|
+
readonly 'trash-can': () => Promise<typeof import("*.svg?component")>;
|
|
24
|
+
readonly upload: () => Promise<typeof import("*.svg?component")>;
|
|
23
25
|
readonly 'warning-filled': () => Promise<typeof import("*.svg?component")>;
|
|
24
26
|
readonly warning: () => Promise<typeof import("*.svg?component")>;
|
|
25
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../../src/components/internal/Icon/Icon.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAG7B,QAAA,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../../src/components/internal/Icon/Icon.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAG7B,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;CAuBD,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,KAAK,CAAC;AAE1C;;GAEG;AACH,UAAU,SAAS;IACf;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED,eAAO,MAAM,IAAI,kCAAmC,SAAS,uBAqB5D,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SegmentedControlItem, SegmentedControlProps } from './types';
|
|
2
|
+
import './SegmentedControl.scss';
|
|
3
|
+
declare function SegmentedControl<T extends SegmentedControlItem[]>({ defaultItem, items }: SegmentedControlProps<T>): import("preact").JSX.Element;
|
|
4
|
+
export default SegmentedControl;
|
|
5
|
+
//# sourceMappingURL=SegmentedControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../../../../src/components/internal/SegmentedControl/SegmentedControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAKtE,OAAO,yBAAyB,CAAC;AAEjC,iBAAS,gBAAgB,CAAC,CAAC,SAAS,oBAAoB,EAAE,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,qBAAqB,CAAC,CAAC,CAAC,gCAkD3G;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentChild } from 'preact';
|
|
2
|
+
import { TranslationKey } from '../../../translations';
|
|
3
|
+
import { TabbedControlOptionId } from '../../../hooks/useTabbedControl';
|
|
4
|
+
export interface SegmentedControlItem {
|
|
5
|
+
content: ComponentChild;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
id: string;
|
|
8
|
+
label: TranslationKey;
|
|
9
|
+
}
|
|
10
|
+
export interface SegmentedControlProps<T extends SegmentedControlItem[]> {
|
|
11
|
+
defaultItem?: TabbedControlOptionId<T>;
|
|
12
|
+
items: T;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/internal/SegmentedControl/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAExE,MAAM,WAAW,oBAAoB;IACjC,OAAO,EAAE,cAAc,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,cAAc,CAAC;CACzB;AAED,MAAM,WAAW,qBAAqB,CAAC,CAAC,SAAS,oBAAoB,EAAE;IACnE,WAAW,CAAC,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC;IACvC,KAAK,EAAE,CAAC,CAAC;CACZ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StructuredListItem } from './types';
|
|
2
2
|
export declare const useStructuredListItems: (items: StructuredListItem[]) => {
|
|
3
|
-
key: "mobile" | "status" | "type" | "description" | "value" | "apply" | "and" | "Booked" | "Pending" | "max" | "min" | "Reversed" | "account" | "accountBalance" | "accountDescription" | "accountID" | "additions" | "adjustments" | "amount" | "back" | "balanceAccount" | "balanceAccountId" | "button.clearAll" | "calendar.controls" | "calendar.nextMonth" | "calendar.previousMonth" | "calendar.timezone" | "capital.accountIsInactive" | "capital.actionNeeded" | "capital.bankAccountDetails" | "capital.bankAccountIban" | "capital.bankAccountNumber" | "capital.bankCountryOrRegion" | "capital.bankRoutingNumber" | "capital.bankSortCode" | "capital.businessFinancing" | "capital.businessFinancingOffer" | "capital.businessFinancingSummary" | "capital.closed" | "capital.couldNotContinueWithTheOffer" | "capital.couldNotLoadFinancialOffers" | "capital.dailyRepaymentRate" | "capital.daysAndDaysLeft" | "capital.expectedRepaymentPeriod" | "capital.failed" | "capital.fees" | "capital.fullyRepaid" | "capital.goToTermsAndConditions" | "capital.grantID" | "capital.howMuchMoneyDoYouNeed" | "capital.inProgress" | "capital.legalSubtitleAU" | "capital.legalSubtitleEU" | "capital.legalSubtitleGB" | "capital.legalSubtitleUS" | "capital.maximumRepaymentPeriod" | "capital.minimumRepaymentToRepayTheFinancingOnTime" | "capital.needSomeExtraMoney" | "capital.offerLegalNoticeDescriptionUS" | "capital.offerLegalNoticeTitleUS" | "capital.oneMonth" | "capital.pending" | "capital.primaryAccount" | "capital.remaining" | "capital.remainingAmount" | "capital.remainingFees" | "capital.repaid" | "capital.repaidAmount" | "capital.repaidFees" | "capital.repaymentBalanceInfo" | "capital.repaymentThreshold" | "capital.requestedFunds" | "capital.requestFunds" | "capital.requesting" | "capital.reviewOffer" | "capital.revoked" | "capital.seeNewOffer" | "capital.seeOptions" | "capital.sendRepayment" | "capital.sendRepaymentNotice" | "capital.sendRepaymentSubtitle" | "capital.signTermsAndConditionsToReceiveFunds" | "capital.signTheTermsToReceiveYourFunds" | "capital.termEnds" | "capital.thereIsNoPrimaryAccountConfigured" | "capital.thisOfferExpiresOn" | "capital.totalFees" | "capital.totalRepaymentAmount" | "capital.unsupportedRegionDescription" | "capital.unsupportedRegionTitle" | "capital.weCouldNotContinueWithTheOffer" | "capital.weCouldNotContinueWithTheOfferContactSupportForHelp" | "capital.weCouldNotLoadFinancialOffers" | "capital.weCouldNotProcessThisRequestTryAgain" | "capital.weReceivedYourRequestAndWeAreWorkingOnItNowCheckBackSoon" | "capital.writtenOff" | "capital.xDays" | "capital.xMonths" | "capital.xPercent" | "capital.youAcceptedButThenReturnedTheseFunds" | "capital.youAcceptedTheseFundsButDidNotRepayThem" | "capital.youAreRequestingFundingOf" | "capital.youHaveBeenPrequalifiedForBusinessFinancingUpToX.part1" | "capital.youHaveBeenPrequalifiedForBusinessFinancingUpToX.part2" | "capital.yourRequestedFundsWere" | "capital.youShouldGetTheFundsWithinOneBusinessDay" | "capital.youWillNeedToRepayAMinimumOfXEveryXDaysToPayOffTheFunds" | "capital.youWillSoonQualifyForAFinancialOffer" | "capture" | "category" | "chargeback" | "closeIconLabel" | "contactSupport" | "contactSupportForHelp" | "contactSupportForHelpAndShareErrorCode" | "copied" | "copy" | "correction" | "currency" | "date" | "dateRange" | "default" | "dismiss" | "download" | "downloading" | "email" | "entityWasNotFound" | "entityWasNotFoundDetail" | "error.pleaseTryAgainLater" | "error.somethingWentWrongWithDownload" | "expandableCard.collapse" | "expandableCard.expand" | "export" | "fee" | "
|
|
3
|
+
key: "mobile" | "status" | "type" | "description" | "value" | "file" | "apply" | "and" | "Booked" | "Pending" | "max" | "min" | "Reversed" | "account" | "accountBalance" | "accountDescription" | "accountID" | "additions" | "adjustments" | "amount" | "back" | "balanceAccount" | "balanceAccountId" | "button.clearAll" | "calendar.controls" | "calendar.nextMonth" | "calendar.previousMonth" | "calendar.timezone" | "capital.accountIsInactive" | "capital.actionNeeded" | "capital.bankAccountDetails" | "capital.bankAccountIban" | "capital.bankAccountNumber" | "capital.bankCountryOrRegion" | "capital.bankRoutingNumber" | "capital.bankSortCode" | "capital.businessFinancing" | "capital.businessFinancingOffer" | "capital.businessFinancingSummary" | "capital.closed" | "capital.couldNotContinueWithTheOffer" | "capital.couldNotLoadFinancialOffers" | "capital.dailyRepaymentRate" | "capital.daysAndDaysLeft" | "capital.expectedRepaymentPeriod" | "capital.failed" | "capital.fees" | "capital.fullyRepaid" | "capital.goToTermsAndConditions" | "capital.grantID" | "capital.howMuchMoneyDoYouNeed" | "capital.inProgress" | "capital.legalSubtitleAU" | "capital.legalSubtitleEU" | "capital.legalSubtitleGB" | "capital.legalSubtitleUS" | "capital.maximumRepaymentPeriod" | "capital.minimumRepaymentToRepayTheFinancingOnTime" | "capital.needSomeExtraMoney" | "capital.offerLegalNoticeDescriptionUS" | "capital.offerLegalNoticeTitleUS" | "capital.oneMonth" | "capital.pending" | "capital.primaryAccount" | "capital.remaining" | "capital.remainingAmount" | "capital.remainingFees" | "capital.repaid" | "capital.repaidAmount" | "capital.repaidFees" | "capital.repaymentBalanceInfo" | "capital.repaymentThreshold" | "capital.requestedFunds" | "capital.requestFunds" | "capital.requesting" | "capital.reviewOffer" | "capital.revoked" | "capital.seeNewOffer" | "capital.seeOptions" | "capital.sendRepayment" | "capital.sendRepaymentNotice" | "capital.sendRepaymentSubtitle" | "capital.signTermsAndConditionsToReceiveFunds" | "capital.signTheTermsToReceiveYourFunds" | "capital.termEnds" | "capital.thereIsNoPrimaryAccountConfigured" | "capital.thisOfferExpiresOn" | "capital.totalFees" | "capital.totalRepaymentAmount" | "capital.unsupportedRegionDescription" | "capital.unsupportedRegionTitle" | "capital.weCouldNotContinueWithTheOffer" | "capital.weCouldNotContinueWithTheOfferContactSupportForHelp" | "capital.weCouldNotLoadFinancialOffers" | "capital.weCouldNotProcessThisRequestTryAgain" | "capital.weReceivedYourRequestAndWeAreWorkingOnItNowCheckBackSoon" | "capital.writtenOff" | "capital.xDays" | "capital.xMonths" | "capital.xPercent" | "capital.youAcceptedButThenReturnedTheseFunds" | "capital.youAcceptedTheseFundsButDidNotRepayThem" | "capital.youAreRequestingFundingOf" | "capital.youHaveBeenPrequalifiedForBusinessFinancingUpToX.part1" | "capital.youHaveBeenPrequalifiedForBusinessFinancingUpToX.part2" | "capital.yourRequestedFundsWere" | "capital.youShouldGetTheFundsWithinOneBusinessDay" | "capital.youWillNeedToRepayAMinimumOfXEveryXDaysToPayOffTheFunds" | "capital.youWillSoonQualifyForAFinancialOffer" | "capture" | "category" | "chargeback" | "closeIconLabel" | "contactSupport" | "contactSupportForHelp" | "contactSupportForHelpAndShareErrorCode" | "copied" | "copy" | "correction" | "currency" | "date" | "dateRange" | "default" | "dismiss" | "download" | "downloading" | "email" | "entityWasNotFound" | "entityWasNotFoundDetail" | "error.pleaseTryAgainLater" | "error.somethingWentWrongWithDownload" | "expandableCard.collapse" | "expandableCard.expand" | "export" | "fee" | "filter.date.since" | "filter.date.until" | "filterBar" | "filterPlaceholder.category" | "filterPlaceholder.currency" | "filterPlaceholder.status" | "from" | "full" | "fundsCaptured" | "goBack" | "grantIssued" | "grantRepayment" | "hideContent" | "id" | "incompleteField" | "inProgress" | "inputError.disallowedFileType" | "inputError.fileRequired" | "inputError.tooManyFiles" | "inputError.veryLargeFile" | "loading" | "netPayout" | "nextPayouts" | "noData" | "noNegativeNumbersAllowed" | "noPayoutsFound" | "noReportsFound" | "noTransactionsFound" | "other" | "paginatedNavigation" | "pagination.nextPage" | "pagination.previousPage" | "pagination.showing" | "partial" | "paymentId" | "paymentMethod" | "payoutDetails" | "payoutsNotice" | "payoutsTitle" | "pleaseComeBackLater" | "pleaseReachOutToSupportForAssistance" | "rangePreset.custom" | "rangePreset.last30Days" | "rangePreset.last7Days" | "rangePreset.lastMonth" | "rangePreset.lastWeek" | "rangePreset.thisMonth" | "rangePreset.thisWeek" | "rangePreset.yearToDate" | "reachOutToSupport" | "referenceID" | "refresh" | "refund" | "refund.amountAlreadyRefunded" | "refund.amountFailed" | "refund.amountInProgress" | "refund.fee" | "refund.fullAmountFailed" | "refund.fullAmountRefunded" | "refund.goToPayment" | "refund.maximumRefundable" | "refund.onlyRefundable" | "refund.originalAmount" | "refund.originalPayment" | "refund.paymentPspReference" | "refund.pspReference" | "refund.refundFee" | "refund.refundPspReference" | "refund.returnToRefund" | "refund.theRefundIsBeingProcessed" | "refundAction" | "refundActionErrorSubtitle" | "refundActionErrorTitle" | "refundActionSuccessSubtitle" | "refundActionSuccessTitle" | "refundAmount" | "refundAmount.excess" | "refundAmount.required" | "refunded.full" | "refunded.partial" | "refundNotice" | "refundPayment" | "refundReason" | "refundReason.duplicate" | "refundReason.fraudulent" | "refundReason.issue_with_item_sold" | "refundReason.other" | "refundReason.requested_by_customer" | "refundReference" | "refundReference.placeholder" | "remainingAmount" | "report" | "reportsError.tooManyDownloads" | "reportsNotice" | "reportsTitle" | "reportType.payout" | "reset" | "select.filter.placeholder" | "select.noOptionsFound" | "somethingWentWrong" | "somethingWentWrongTryRefreshingOrComeBackLater" | "structuredList" | "subtractions" | "sumOfSameDayPayouts" | "tabs" | "theErrorCodeIs" | "thereAreNoResults" | "theRequestIsMissingRequiredFieldsOrContainsInvalidData" | "thereWasAnUnexpectedError" | "theSelectedBalanceAccountIsIncorrect" | "timezone" | "to" | "tooltip.ATM" | "tooltip.Capital" | "tooltip.Chargeback" | "tooltip.Correction" | "tooltip.Fee" | "tooltip.Other" | "tooltip.Payment" | "tooltip.Refund" | "tooltip.totalIncoming" | "tooltip.totalOutgoing" | "tooltip.Transfer" | "totalIncoming" | "totalOutgoing" | "toValueShouldBeGreaterThanTheFromValue" | "transactionDetails" | "transactions" | "transactionsOverviewTitle" | "transactionType" | "transfer" | "tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain" | "tryRefreshingThePageOrComeBackLater" | "txAmount" | "txType.ATM" | "txType.Capital" | "txType.Chargeback" | "txType.Correction" | "txType.Fee" | "txType.Other" | "txType.Payment" | "txType.Refund" | "txType.Transfer" | "uploadedFile.remove" | "uploadFile.browse" | "weCouldNotLoadThePayoutsOverview" | "weCouldNotLoadTheReportsOverview" | "weCouldNotLoadTheTransactionsOverview" | "weCouldNotLoadYourBalanceAccounts" | "weCouldNotLoadYourPayouts" | "weCouldNotLoadYourReports" | "weCouldNotLoadYourTransactions";
|
|
4
4
|
value: any;
|
|
5
5
|
id: string;
|
|
6
6
|
label: string;
|
|
@@ -18,6 +18,6 @@ declare const labels: {
|
|
|
18
18
|
readonly reportType: "report";
|
|
19
19
|
readonly reportFile: "file";
|
|
20
20
|
};
|
|
21
|
-
export declare const getLabel: (key: keyof typeof labels) => "status" | "description" | "account" | "adjustments" | "balanceAccount" | "category" | "currency" | "date" | "
|
|
21
|
+
export declare const getLabel: (key: keyof typeof labels) => "status" | "description" | "file" | "account" | "adjustments" | "balanceAccount" | "category" | "currency" | "date" | "fundsCaptured" | "netPayout" | "paymentId" | "paymentMethod" | "report" | "transactionType" | "txAmount";
|
|
22
22
|
export {};
|
|
23
23
|
//# sourceMappingURL=getLabel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/core/Localization/datetime/restamper/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/core/Localization/datetime/restamper/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,QAA+C,CAAC;AAE5E,eAAO,MAAQ,mBAAmB,wCAAE,WAAW,UAAE,eAAe,sBAAE,yBAAyB,iCA8BvF,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type TabbedControlOptions = readonly {
|
|
2
|
+
id: string;
|
|
3
|
+
}[];
|
|
4
|
+
export type TabbedControlOptionId<T extends TabbedControlOptions> = T[number] extends {
|
|
5
|
+
id: infer U;
|
|
6
|
+
} ? U : never;
|
|
7
|
+
export interface TabbedControlConfig<T extends TabbedControlOptions> {
|
|
8
|
+
defaultOption?: TabbedControlOptionId<T>;
|
|
9
|
+
options: T;
|
|
10
|
+
}
|
|
11
|
+
export declare const useTabbedControl: <T extends TabbedControlOptions>(options: T, defaultOption?: TabbedControlOptionId<T> | undefined) => {
|
|
12
|
+
readonly activeIndex: number;
|
|
13
|
+
readonly onClick: (event: MouseEvent) => void;
|
|
14
|
+
readonly onKeyDown: (event: KeyboardEvent) => void;
|
|
15
|
+
readonly refs: ((el: HTMLButtonElement | null) => any)[];
|
|
16
|
+
readonly uniqueId: string;
|
|
17
|
+
};
|
|
18
|
+
export default useTabbedControl;
|
|
19
|
+
//# sourceMappingURL=useTabbedControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTabbedControl.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTabbedControl.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,oBAAoB,GAAG,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,CAAC;AAC7D,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,oBAAoB,IAAI,CAAC,CAAC,MAAM,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAC,CAAA;CAAE,GAAG,CAAC,GAAG,KAAK,CAAC;AAElH,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,oBAAoB;IAC/D,aAAa,CAAC,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC;IACzC,OAAO,EAAE,CAAC,CAAC;CACd;AAgBD,eAAO,MAAM,gBAAgB;;8BAiCW,UAAU;gCAiB3B,aAAa;yBAtCH,iBAAiB,GAAG,IAAI,KAAK,GAAG;;CAwDhE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -143,6 +143,10 @@ declare const _en_US: {
|
|
|
143
143
|
id: string;
|
|
144
144
|
incompleteField: string;
|
|
145
145
|
inProgress: string;
|
|
146
|
+
"inputError.disallowedFileType": string;
|
|
147
|
+
"inputError.fileRequired": string;
|
|
148
|
+
"inputError.tooManyFiles": string;
|
|
149
|
+
"inputError.veryLargeFile": string;
|
|
146
150
|
loading: string;
|
|
147
151
|
max: string;
|
|
148
152
|
min: string;
|
|
@@ -273,6 +277,8 @@ declare const _en_US: {
|
|
|
273
277
|
"txType.Refund": string;
|
|
274
278
|
"txType.Transfer": string;
|
|
275
279
|
type: string;
|
|
280
|
+
"uploadedFile.remove": string;
|
|
281
|
+
"uploadFile.browse": string;
|
|
276
282
|
value: string;
|
|
277
283
|
weCouldNotLoadThePayoutsOverview: string;
|
|
278
284
|
weCouldNotLoadTheReportsOverview: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/translations/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAEhF,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/translations/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAEhF,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAe,CAAC;AAE5B,KAAK,gBAAgB,GAAG,WAAW,CAAC,OAAO,WAAW,CAAC,CAAC;AACxD,KAAK,aAAa,GAAG,YAAY,GAAG,WAAW,CAAC,YAAY,CAAC,CAAC;AAE9D,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AAC9D,MAAM,MAAM,MAAM,GAAG,GAAG,SAAS,CAAC,MAAM,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;AACjE,MAAM,MAAM,eAAe,GAAG,4BAA4B,CAAC,gBAAgB,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AACvF,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,OAAO,MAAM,CAAC,CAAC;AACxD,MAAM,MAAM,YAAY,GAAG;KAAG,GAAG,IAAI,cAAc,CAAC,CAAC,EAAE,MAAM;CAAE,CAAC;AAChE,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,CAAC,MAAM,aAAa,CAAC,CAAC;AAEtE,MAAM,MAAM,uBAAuB,GAAG;KACjC,CAAC,IAAI,gBAAgB,GAAG;SACpB,CAAC,IAAI,CAAC,GAAG,iBAAiB;KAC9B;CACJ,CAAC,gBAAgB,CAAC,CAAC;AAEpB,MAAM,MAAM,kBAAkB,GAAG;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,KAAK,GAAG,CAAC,CAAC;IACtG,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAKF,eAAO,MAAM,KAAK;;CAA4D,CAAC;AAC/E,eAAO,MAAM,KAAK;;CAA4D,CAAC;AAC/E,eAAO,MAAM,KAAK;;CAA4D,CAAC;AAC/E,eAAO,MAAM,KAAK;;CAA4D,CAAC;AAC/E,eAAO,MAAM,KAAK;;CAA4D,CAAC;AAC/E,eAAO,MAAM,KAAK;;CAA4D,CAAC;AAC/E,eAAO,MAAM,KAAK;;CAA4D,CAAC;AAC/E,eAAO,MAAM,KAAK;;CAA4D,CAAC;AAC/E,eAAO,MAAM,KAAK;;CAA4D,CAAC;AAC/E,eAAO,MAAM,KAAK;;CAA4D,CAAC;AAE/E,eAAO,MAAM,KAAK;;CAAoC,CAAC;AAEvD,eAAO,MAAM,WAAW;;;;;;;;;;;;CAYd,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const ERR_READ_ABORTED = "ERR_READ_ABORTED";
|
|
2
|
+
export declare const ERR_READ_FAILED = "ERR_READ_FAILED";
|
|
3
|
+
export declare const getAsBase64: (file: Blob) => Promise<string>;
|
|
4
|
+
export declare const getAsDataURL: (file: Blob) => Promise<string>;
|
|
5
|
+
//# sourceMappingURL=read.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../../src/utils/file/read.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,eAAe,oBAAoB,CAAC;AAEjD,eAAO,MAAM,WAAW,SAAgB,IAAI,KAAG,QAAQ,MAAM,CAG5D,CAAC;AAEF,eAAO,MAAM,YAAY,SAAU,IAAI,KAAG,QAAQ,MAAM,CAKvD,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare const enum ByteScale {
|
|
2
|
+
BYTES = 0,
|
|
3
|
+
KB = 1,
|
|
4
|
+
MB = 2,
|
|
5
|
+
GB = 3
|
|
6
|
+
}
|
|
7
|
+
export type FileSize = {
|
|
8
|
+
/**
|
|
9
|
+
* Byte scale of file.
|
|
10
|
+
* Maximum byte scale is {@link MAX_BYTE_SCALE}.
|
|
11
|
+
*/
|
|
12
|
+
scale: ByteScale;
|
|
13
|
+
/**
|
|
14
|
+
* Approximate (low precision) size of file at the given byte scale.
|
|
15
|
+
* @example
|
|
16
|
+
* { scale: ByteScale.KB, size: 34 } // approx. 34 KB
|
|
17
|
+
* { scale: ByteScale.MB, size: 4.5 } // approx. 4.5 MB
|
|
18
|
+
*/
|
|
19
|
+
size: number;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Given a number of bytes, will compute and return the corresponding {@link ByteScale byte scale}.
|
|
23
|
+
* May return an integer greater than 3 if given a sufficiently large number of bytes,
|
|
24
|
+
* though the predefined {@link MAX_BYTE_SCALE maximum byte scale} value is 3.
|
|
25
|
+
*
|
|
26
|
+
* @param bytes - Number of bytes
|
|
27
|
+
*/
|
|
28
|
+
export declare const getByteScale: (bytes: number) => ByteScale;
|
|
29
|
+
/**
|
|
30
|
+
* Given a number of bytes, will compute and return the approximate low-precision {@link FileSize file size}
|
|
31
|
+
* at the most appropriate {@link ByteScale byte scale}. For sufficiently large number of bytes, the scale is
|
|
32
|
+
* capped at the predefined {@link MAX_BYTE_SCALE maximum byte scale} value of 3. Hence, the size for bytes
|
|
33
|
+
* beyond the GB range, for example, will be expressed as integers greater than 1000.
|
|
34
|
+
*
|
|
35
|
+
* @param bytes - Number of bytes
|
|
36
|
+
*/
|
|
37
|
+
export declare const getFileSize: (bytes: number) => Readonly<FileSize>;
|
|
38
|
+
/**
|
|
39
|
+
* Given a number of bytes, will compute and return the approximate low-precision {@link FileSize file size}
|
|
40
|
+
* as human-readable string (e.g. 512 bytes, 23.1 KB, 4.4 GB, etc.)
|
|
41
|
+
*
|
|
42
|
+
* @param bytes - Number of bytes
|
|
43
|
+
*/
|
|
44
|
+
export declare const getHumanReadableFileSize: (bytes: number) => string;
|
|
45
|
+
//# sourceMappingURL=size.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"size.d.ts","sourceRoot":"","sources":["../../../../src/utils/file/size.ts"],"names":[],"mappings":"AAEA,0BAAkB,SAAS;IACvB,KAAK,IAAI;IACT,EAAE,IAAI;IACN,EAAE,IAAI;IACN,EAAE,IAAI;CACT;AAED,MAAM,MAAM,QAAQ,GAAG;IACnB;;;OAGG;IACH,KAAK,EAAE,SAAS,CAAC;IAEjB;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC;AAQF;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,UAAW,MAAM,KAAG,SAY5C,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,UAAW,MAAM,KAAG,SAAS,QAAQ,CAoB5D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,UAAW,MAAM,KAAG,MAkBxD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A unified interface for file (uploaded files) sources, such as:
|
|
3
|
+
* - {@link HTMLInputElement `HTMLInputElement`} — with type of `file`
|
|
4
|
+
* - {@link ClipboardEvent `ClipboardEvent`}`.clipboardData`
|
|
5
|
+
* - {@link DragEvent `DragEvent`}`.dataTransfer`
|
|
6
|
+
* - {@link InputEvent `InputEvent`}`.dataTransfer`
|
|
7
|
+
*/
|
|
8
|
+
export interface UploadedFileSource {
|
|
9
|
+
files?: FileList | null;
|
|
10
|
+
items?: DataTransferItemList | null;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Extracts uploaded {@link File files} from the specified file source and returns them in an array.
|
|
14
|
+
* @param uploadedFileSource
|
|
15
|
+
*/
|
|
16
|
+
export declare const getUploadedFilesFromSource: <T extends UploadedFileSource>(uploadedFileSource?: T | null | undefined) => File[];
|
|
17
|
+
//# sourceMappingURL=upload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../../src/utils/file/upload.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,kBAAkB;IAC/B,KAAK,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IACxB,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;CACvC;AAED;;;GAGG;AACH,eAAO,MAAM,0BAA0B,+EAAkE,IAAI,EAuB5G,CAAC"}
|
|
@@ -4,6 +4,9 @@ export * from './async/main';
|
|
|
4
4
|
export * from './collection/main';
|
|
5
5
|
export * from './common';
|
|
6
6
|
export * from './datetime/main';
|
|
7
|
+
export * from './file/read';
|
|
8
|
+
export * from './file/size';
|
|
9
|
+
export * from './file/upload';
|
|
7
10
|
export * from './random/uniqueId';
|
|
8
11
|
export * from './random/uuid';
|
|
9
12
|
export * from './struct/main';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAEhC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAE9B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAElC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAEhC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAE9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAE9B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAElC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CpBGZ2AH.cjs"),t=l=>e.u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...l,children:[e.u("path",{fill:"currentColor",d:"M8 .94 12.06 5 11 6.06 8.75 3.81v7.94h-1.5V3.81L5 6.06 3.94 5 8 .94Z"}),e.u("path",{fill:"currentColor",d:"M2.75 12.5v-2.25h-1.5v2.25a2.25 2.25 0 0 0 2.25 2.25h9a2.25 2.25 0 0 0 2.25-2.25v-2.25h-1.5v2.25a.75.75 0 0 1-.75.75h-9a.75.75 0 0 1-.75-.75Z"})]});exports.default=t;
|
|
2
|
+
//# sourceMappingURL=upload-CeUcEWmW.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-CeUcEWmW.cjs","sources":["../src/images/icons/upload.svg?component"],"sourcesContent":["import { jsx, jsxs } from \"react/jsx-runtime\";\nconst SvgUpload = (props) => /* @__PURE__ */ jsxs(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", fill: \"none\", viewBox: \"0 0 16 16\", ...props, children: [\n /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: \"M8 .94 12.06 5 11 6.06 8.75 3.81v7.94h-1.5V3.81L5 6.06 3.94 5 8 .94Z\" }),\n /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: \"M2.75 12.5v-2.25h-1.5v2.25a2.25 2.25 0 0 0 2.25 2.25h9a2.25 2.25 0 0 0 2.25-2.25v-2.25h-1.5v2.25a.75.75 0 0 1-.75.75h-9a.75.75 0 0 1-.75-.75Z\" })\n] });\nexport default SvgUpload;\n"],"names":["SvgUpload","props","jsxs","jsx"],"mappings":"wHACMA,EAAaC,GAA0BC,EAAI,EAAC,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAAU,CACtIE,EAAG,EAAC,OAAQ,CAAE,KAAM,eAAgB,EAAG,uEAAwE,EAC/GA,EAAG,EAAC,OAAQ,CAAE,KAAM,eAAgB,EAAG,+IAAiJ,CAAA,CAC1M,CAAG,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-
|
|
2
|
-
//# sourceMappingURL=warning-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-CpBGZ2AH.cjs"),e=l=>a.u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...l,children:[a.u("path",{fill:"currentColor",d:"M8.75 4.58h-1.5v4.5h1.5zm-.04 6.04a1 1 0 0 0-.51-.27 1 1 0 0 0-1.2.99q.01.41.29.71.3.29.71.29.3 0 .56-.17.24-.17.37-.45.12-.28.06-.58a1 1 0 0 0-.27-.51z"}),a.u("path",{fill:"currentColor",d:"m9.95 2.21 5.4 9.32v-.01q.3.52.3 1.13a2.2 2.2 0 0 1-1.13 1.95q-.52.3-1.12.3H2.6a2.2 2.2 0 0 1-1.95-1.12q-.3-.5-.3-1.12 0-.61.3-1.13L6.06 2.2q.3-.52.82-.82a2.26 2.26 0 0 1 3.07.83m3.82 11.09a1 1 0 0 0 .28-.27l.01.01q.1-.18.1-.38a1 1 0 0 0-.1-.37l-5.4-9.33a1 1 0 0 0-.28-.28 1 1 0 0 0-.38-.1 1 1 0 0 0-.38.1 1 1 0 0 0-.27.27l-5.4 9.34a1 1 0 0 0-.1.37q0 .2.1.37a1 1 0 0 0 .27.27q.18.1.38.1h10.79a1 1 0 0 0 .38-.1"})]});exports.default=e;
|
|
2
|
+
//# sourceMappingURL=warning-C2NpcmL8.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warning-
|
|
1
|
+
{"version":3,"file":"warning-C2NpcmL8.cjs","sources":["../src/images/icons/warning.svg?component"],"sourcesContent":["import { jsx, jsxs } from \"react/jsx-runtime\";\nconst SvgWarning = (props) => /* @__PURE__ */ jsxs(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", fill: \"none\", viewBox: \"0 0 16 16\", ...props, children: [\n /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: \"M8.75 4.58h-1.5v4.5h1.5zm-.04 6.04a1 1 0 0 0-.51-.27 1 1 0 0 0-1.2.99q.01.41.29.71.3.29.71.29.3 0 .56-.17.24-.17.37-.45.12-.28.06-.58a1 1 0 0 0-.27-.51z\" }),\n /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: \"m9.95 2.21 5.4 9.32v-.01q.3.52.3 1.13a2.2 2.2 0 0 1-1.13 1.95q-.52.3-1.12.3H2.6a2.2 2.2 0 0 1-1.95-1.12q-.3-.5-.3-1.12 0-.61.3-1.13L6.06 2.2q.3-.52.82-.82a2.26 2.26 0 0 1 3.07.83m3.82 11.09a1 1 0 0 0 .28-.27l.01.01q.1-.18.1-.38a1 1 0 0 0-.1-.37l-5.4-9.33a1 1 0 0 0-.28-.28 1 1 0 0 0-.38-.1 1 1 0 0 0-.38.1 1 1 0 0 0-.27.27l-5.4 9.34a1 1 0 0 0-.1.37q0 .2.1.37a1 1 0 0 0 .27.27q.18.1.38.1h10.79a1 1 0 0 0 .38-.1\" })\n] });\nexport default SvgWarning;\n"],"names":["SvgWarning","props","jsxs","jsx"],"mappings":"wHACMA,EAAcC,GAA0BC,EAAI,EAAC,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAAU,CACvIE,EAAG,EAAC,OAAQ,CAAE,KAAM,eAAgB,EAAG,2JAA4J,EACnMA,EAAG,EAAC,OAAQ,CAAE,KAAM,eAAgB,EAAG,2ZAA6Z,CAAA,CACtd,CAAG,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
2
|
-
//# sourceMappingURL=warning-filled-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CpBGZ2AH.cjs"),l=t=>e.u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...t,children:e.u("path",{fill:"currentColor",d:"m15.35 11.53-5.4-9.32q-.3-.52-.82-.83a2.26 2.26 0 0 0-3.07.82L.65 11.53a2.2 2.2 0 0 0 0 2.25A2.2 2.2 0 0 0 2.6 14.9h10.8q.6 0 1.12-.3t.83-.82.3-1.13-.3-1.13zm-8.1-6.95h1.5v4.5h-1.5zm1.67 7.13a1 1 0 0 1-.93.62.99.99 0 0 1-.83-1.55q.17-.24.45-.37.28-.11.58-.06a1 1 0 0 1 .78.78q.06.29-.06.58z"})});exports.default=l;
|
|
2
|
+
//# sourceMappingURL=warning-filled-Bo82QPPc.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warning-filled-
|
|
1
|
+
{"version":3,"file":"warning-filled-Bo82QPPc.cjs","sources":["../src/images/icons/warning-filled.svg?component"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nconst SvgWarningFilled = (props) => /* @__PURE__ */ jsx(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", fill: \"none\", viewBox: \"0 0 16 16\", ...props, children: /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: \"m15.35 11.53-5.4-9.32q-.3-.52-.82-.83a2.26 2.26 0 0 0-3.07.82L.65 11.53a2.2 2.2 0 0 0 0 2.25A2.2 2.2 0 0 0 2.6 14.9h10.8q.6 0 1.12-.3t.83-.82.3-1.13-.3-1.13zm-8.1-6.95h1.5v4.5h-1.5zm1.67 7.13a1 1 0 0 1-.93.62.99.99 0 0 1-.83-1.55q.17-.24.45-.37.28-.11.58-.06a1 1 0 0 1 .78.78q.06.29-.06.58z\" }) });\nexport default SvgWarningFilled;\n"],"names":["SvgWarningFilled","props","jsx"],"mappings":"wHACMA,EAAoBC,GAA0BC,EAAAA,EAAI,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAA0BC,EAAAA,EAAI,OAAQ,CAAE,KAAM,eAAgB,EAAG,oSAAoS,CAAE,CAAG,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adyen/adyen-platform-experience-web",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"adyen",
|
|
6
6
|
"adyen-pe",
|
|
@@ -115,11 +115,11 @@
|
|
|
115
115
|
"@storybook/types": "^7.0.4",
|
|
116
116
|
"@testing-library/jest-dom": "^5.16.5",
|
|
117
117
|
"@testing-library/preact": "^3.2.3",
|
|
118
|
-
"@testing-library/user-event": "^14.
|
|
118
|
+
"@testing-library/user-event": "^14.6.1",
|
|
119
119
|
"@types/node": "^20.4.7",
|
|
120
120
|
"@typescript-eslint/eslint-plugin": "^5.4.0",
|
|
121
121
|
"@typescript-eslint/parser": "^5.8.1",
|
|
122
|
-
"@vitest/coverage-v8": "^2.1.
|
|
122
|
+
"@vitest/coverage-v8": "^2.1.9",
|
|
123
123
|
"autoprefixer": "^10.4.20",
|
|
124
124
|
"concurrently": "^7.0.0",
|
|
125
125
|
"cross-env": "^7.0.3",
|
|
@@ -153,11 +153,11 @@
|
|
|
153
153
|
"stylelint-scss": "^4.2.0",
|
|
154
154
|
"ts-loader": "^9.2.6",
|
|
155
155
|
"typescript": "5.2.2",
|
|
156
|
-
"vite": "^6.0
|
|
156
|
+
"vite": "^6.2.0",
|
|
157
157
|
"vite-node": "^0.30.1",
|
|
158
158
|
"vite-plugin-checker": "^0.5.6",
|
|
159
159
|
"vite-plugin-svgr": "^4.2.0",
|
|
160
|
-
"vitest": "^2.1.
|
|
160
|
+
"vitest": "^2.1.9"
|
|
161
161
|
},
|
|
162
162
|
"msw": {
|
|
163
163
|
"workerDirectory": [
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { jsx as n } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import { useState as u, useRef as y, useCallback as h, useMemo as T } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
3
|
-
/* empty css */
|
|
4
|
-
import _ from "../../../core/Context/useCoreContext.js";
|
|
5
|
-
import g from "../Typography/Typography.js";
|
|
6
|
-
import { TypographyVariant as I, TypographyElement as N } from "../Typography/types.js";
|
|
7
|
-
import { InteractionKeyCode as r } from "../../types.js";
|
|
8
|
-
function O(s) {
|
|
9
|
-
const i = s.tabs, { i18n: d } = _(), c = s.defaultActiveTab ? s.tabs.findIndex((e) => e.id === s.defaultActiveTab) : 0, [t, b] = u(c === -1 ? 0 : c), f = y({}), o = h((e) => {
|
|
10
|
-
const a = f.current[e];
|
|
11
|
-
a == null || a.focus();
|
|
12
|
-
}, []), p = T(() => {
|
|
13
|
-
const e = i.length, a = {
|
|
14
|
-
[r.ARROW_RIGHT]: () => o((t + 1) % e),
|
|
15
|
-
[r.ARROW_LEFT]: () => o((t - 1 + e) % e),
|
|
16
|
-
[r.HOME]: () => o(0),
|
|
17
|
-
[r.END]: () => o(e - 1)
|
|
18
|
-
};
|
|
19
|
-
return (l) => {
|
|
20
|
-
var m;
|
|
21
|
-
a[l.key] && (l.preventDefault(), (m = a[l.key]) == null || m.call(a));
|
|
22
|
-
};
|
|
23
|
-
}, [i.length, t, o]);
|
|
24
|
-
return /* @__PURE__ */ n("section", { "aria-label": d.get("tabs"), children: [
|
|
25
|
-
/* @__PURE__ */ n("div", { className: "adyen-fp-tabs", role: "tablist", "aria-orientation": "horizontal", children: i.map((e, a) => /* @__PURE__ */ n(
|
|
26
|
-
"button",
|
|
27
|
-
{
|
|
28
|
-
id: `tab-id-${e.id}`,
|
|
29
|
-
name: e.id,
|
|
30
|
-
className: "adyen-fp-tabs__tab",
|
|
31
|
-
role: "tab",
|
|
32
|
-
"aria-controls": `panel-id-${e.id}`,
|
|
33
|
-
"aria-selected": t === a,
|
|
34
|
-
ref: (l) => f.current[a] = l,
|
|
35
|
-
onKeyDown: p,
|
|
36
|
-
onClick: a === t ? void 0 : () => b(a),
|
|
37
|
-
onFocus: () => b(a),
|
|
38
|
-
tabIndex: t === a ? 0 : -1,
|
|
39
|
-
disabled: e.disabled,
|
|
40
|
-
children: /* @__PURE__ */ n(
|
|
41
|
-
g,
|
|
42
|
-
{
|
|
43
|
-
variant: I.BODY,
|
|
44
|
-
el: N.SPAN,
|
|
45
|
-
stronger: !0,
|
|
46
|
-
className: "adyen-fp-tabs__tab-content-tab-label",
|
|
47
|
-
children: d.get(e.label)
|
|
48
|
-
}
|
|
49
|
-
)
|
|
50
|
-
},
|
|
51
|
-
`tab-${e.id}`
|
|
52
|
-
)) }),
|
|
53
|
-
/* @__PURE__ */ n("div", { className: "adyen-fp-tabpanel__wrapper", children: i.map((e, a) => /* @__PURE__ */ n(
|
|
54
|
-
"section",
|
|
55
|
-
{
|
|
56
|
-
className: "adyen-fp-tabpanel__content",
|
|
57
|
-
id: `panel-id-${e.id}`,
|
|
58
|
-
hidden: t !== a,
|
|
59
|
-
role: "tabpanel",
|
|
60
|
-
"aria-labelledby": `tab-id-${e.id}`,
|
|
61
|
-
children: e.content
|
|
62
|
-
},
|
|
63
|
-
`tabpanel-${e.id}`
|
|
64
|
-
)) })
|
|
65
|
-
] });
|
|
66
|
-
}
|
|
67
|
-
export {
|
|
68
|
-
O as default
|
|
69
|
-
};
|