@adyen/adyen-platform-experience-web 1.4.1 → 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.
Files changed (91) hide show
  1. package/README.md +12 -13
  2. package/dist/adyen-platform-experience-web.css +1 -1
  3. package/dist/{angle-right-DpuNqT0j.cjs → angle-right-C1JIrQTg.cjs} +2 -2
  4. package/dist/{angle-right-DpuNqT0j.cjs.map → angle-right-C1JIrQTg.cjs.map} +1 -1
  5. package/dist/{checkmark-CC7Mmd_x.cjs → checkmark-B8DhX3p1.cjs} +2 -2
  6. package/dist/{checkmark-CC7Mmd_x.cjs.map → checkmark-B8DhX3p1.cjs.map} +1 -1
  7. package/dist/{checkmark-circle-fill-1IL4ERtO.cjs → checkmark-circle-fill-CMpIlMCC.cjs} +2 -2
  8. package/dist/{checkmark-circle-fill-1IL4ERtO.cjs.map → checkmark-circle-fill-CMpIlMCC.cjs.map} +1 -1
  9. package/dist/{checkmark-square-fill-Bu2jdGU3.cjs → checkmark-square-fill-Cy8Hzt9P.cjs} +2 -2
  10. package/dist/{checkmark-square-fill-Bu2jdGU3.cjs.map → checkmark-square-fill-Cy8Hzt9P.cjs.map} +1 -1
  11. package/dist/{chevron-down-BVCFqkLo.cjs → chevron-down-CB77LxQY.cjs} +2 -2
  12. package/dist/{chevron-down-BVCFqkLo.cjs.map → chevron-down-CB77LxQY.cjs.map} +1 -1
  13. package/dist/{chevron-left-DfGEXTbq.cjs → chevron-left-DMAmIvLF.cjs} +2 -2
  14. package/dist/{chevron-left-DfGEXTbq.cjs.map → chevron-left-DMAmIvLF.cjs.map} +1 -1
  15. package/dist/{chevron-right-DzkYlomK.cjs → chevron-right-BxLJu7Zf.cjs} +2 -2
  16. package/dist/{chevron-right-DzkYlomK.cjs.map → chevron-right-BxLJu7Zf.cjs.map} +1 -1
  17. package/dist/{chevron-up-CpmBSOon.cjs → chevron-up-CT79XJdh.cjs} +2 -2
  18. package/dist/{chevron-up-CpmBSOon.cjs.map → chevron-up-CT79XJdh.cjs.map} +1 -1
  19. package/dist/cjs/index.js +1 -1
  20. package/dist/{copy-DuV1z0-c.cjs → copy-7UpFtMvt.cjs} +2 -2
  21. package/dist/{copy-DuV1z0-c.cjs.map → copy-7UpFtMvt.cjs.map} +1 -1
  22. package/dist/{cross-C5L4gQrS.cjs → cross-DtVirgrN.cjs} +2 -2
  23. package/dist/{cross-C5L4gQrS.cjs.map → cross-DtVirgrN.cjs.map} +1 -1
  24. package/dist/{cross-circle-fill-D6Ir0xDO.cjs → cross-circle-fill-C47yImD2.cjs} +2 -2
  25. package/dist/{cross-circle-fill-D6Ir0xDO.cjs.map → cross-circle-fill-C47yImD2.cjs.map} +1 -1
  26. package/dist/{download-IwqY_7gX.cjs → download-A1m1wB_K.cjs} +2 -2
  27. package/dist/{download-IwqY_7gX.cjs.map → download-A1m1wB_K.cjs.map} +1 -1
  28. package/dist/es/components/external/CapitalOverview/components/GrantList/GrantsDisplay.js +28 -28
  29. package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +54 -43
  30. package/dist/es/components/internal/Icon/Icon.js +2 -0
  31. package/dist/es/components/internal/SegmentedControl/SegmentedControl.js +55 -0
  32. package/dist/es/core/Http/utils.js +1 -1
  33. package/dist/es/core/core.js +1 -1
  34. package/dist/es/external/preact/dist/preact.module.js +5 -5
  35. package/dist/es/hooks/useTabbedControl.js +66 -0
  36. package/dist/es/images/icons/trash-can.svg.js +9 -0
  37. package/dist/es/images/icons/upload.svg.js +9 -0
  38. package/dist/es/translations/en-US.json.js +47 -41
  39. package/dist/{external-link-r39cGU4L.cjs → external-link-Ct-WlQoY.cjs} +2 -2
  40. package/dist/{external-link-r39cGU4L.cjs.map → external-link-Ct-WlQoY.cjs.map} +1 -1
  41. package/dist/{filter-BGBP3TAU.cjs → filter-DwSaMAG7.cjs} +2 -2
  42. package/dist/{filter-BGBP3TAU.cjs.map → filter-DwSaMAG7.cjs.map} +1 -1
  43. package/dist/index-CpBGZ2AH.cjs +12 -0
  44. package/dist/index-CpBGZ2AH.cjs.map +1 -0
  45. package/dist/{info-filled-C_zUEZ2b.cjs → info-filled-bhD2VGA2.cjs} +2 -2
  46. package/dist/{info-filled-C_zUEZ2b.cjs.map → info-filled-bhD2VGA2.cjs.map} +1 -1
  47. package/dist/{minus-circle-outline-1CJ3DOVB.cjs → minus-circle-outline-pNXlRjce.cjs} +2 -2
  48. package/dist/{minus-circle-outline-1CJ3DOVB.cjs.map → minus-circle-outline-pNXlRjce.cjs.map} +1 -1
  49. package/dist/{plus-circle-outline-CPQ_oOtQ.cjs → plus-circle-outline-B3Ttq6A2.cjs} +2 -2
  50. package/dist/{plus-circle-outline-CPQ_oOtQ.cjs.map → plus-circle-outline-B3Ttq6A2.cjs.map} +1 -1
  51. package/dist/{square-BmHyYgat.cjs → square-C3hb1Bxz.cjs} +2 -2
  52. package/dist/{square-BmHyYgat.cjs.map → square-C3hb1Bxz.cjs.map} +1 -1
  53. package/dist/trash-can-D2GRVBnJ.cjs +2 -0
  54. package/dist/trash-can-D2GRVBnJ.cjs.map +1 -0
  55. package/dist/types/components/external/TransactionDetails/components/utils.d.ts +1 -1
  56. package/dist/types/components/internal/ExpandableCard/ExpandableCard.d.ts.map +1 -1
  57. package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +1 -1
  58. package/dist/types/components/internal/Icon/Icon.d.ts +2 -0
  59. package/dist/types/components/internal/Icon/Icon.d.ts.map +1 -1
  60. package/dist/types/components/internal/SegmentedControl/SegmentedControl.d.ts +5 -0
  61. package/dist/types/components/internal/SegmentedControl/SegmentedControl.d.ts.map +1 -0
  62. package/dist/types/components/internal/SegmentedControl/types.d.ts +14 -0
  63. package/dist/types/components/internal/SegmentedControl/types.d.ts.map +1 -0
  64. package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +1 -1
  65. package/dist/types/components/utils/getLabel.d.ts +1 -1
  66. package/dist/types/hooks/useTabbedControl.d.ts +19 -0
  67. package/dist/types/hooks/useTabbedControl.d.ts.map +1 -0
  68. package/dist/types/translations/index.d.ts +6 -0
  69. package/dist/types/translations/index.d.ts.map +1 -1
  70. package/dist/types/utils/file/read.d.ts +5 -0
  71. package/dist/types/utils/file/read.d.ts.map +1 -0
  72. package/dist/types/utils/file/size.d.ts +45 -0
  73. package/dist/types/utils/file/size.d.ts.map +1 -0
  74. package/dist/types/utils/file/upload.d.ts +17 -0
  75. package/dist/types/utils/file/upload.d.ts.map +1 -0
  76. package/dist/types/utils/index.d.ts +3 -0
  77. package/dist/types/utils/index.d.ts.map +1 -1
  78. package/dist/upload-CeUcEWmW.cjs +2 -0
  79. package/dist/upload-CeUcEWmW.cjs.map +1 -0
  80. package/dist/{warning-eizPFTg-.cjs → warning-C2NpcmL8.cjs} +2 -2
  81. package/dist/{warning-eizPFTg-.cjs.map → warning-C2NpcmL8.cjs.map} +1 -1
  82. package/dist/{warning-filled-CiVuOE_O.cjs → warning-filled-Bo82QPPc.cjs} +2 -2
  83. package/dist/{warning-filled-CiVuOE_O.cjs.map → warning-filled-Bo82QPPc.cjs.map} +1 -1
  84. package/package.json +5 -5
  85. package/dist/es/components/internal/Tabs/Tabs.js +0 -69
  86. package/dist/index-BeWwE_B0.cjs +0 -12
  87. package/dist/index-BeWwE_B0.cjs.map +0 -1
  88. package/dist/types/components/internal/Tabs/Tabs.d.ts +0 -5
  89. package/dist/types/components/internal/Tabs/Tabs.d.ts.map +0 -1
  90. package/dist/types/components/internal/Tabs/types.d.ts +0 -15
  91. 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 c=require("./index-BeWwE_B0.cjs"),t=e=>c.u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...e,children:c.u("path",{fill:"currentColor",d:"M3.5 1.25c-1.24 0-2.25 1-2.25 2.25v5c0 1.24 1 2.25 2.25 2.25h1.75v1.75c0 1.24 1 2.25 2.25 2.25h5c1.24 0 2.25-1 2.25-2.25v-5c0-1.24-1-2.25-2.25-2.25h-1.75V3.5c0-1.24-1-2.25-2.25-2.25zm5.75 4H7.5c-1.24 0-2.25 1-2.25 2.25v1.75H3.5a.75.75 0 0 1-.75-.75v-5c0-.41.34-.75.75-.75h5c.41 0 .75.34.75.75zm-2.5 7.25v-5c0-.41.34-.75.75-.75h5c.41 0 .75.34.75.75v5c0 .41-.34.75-.75.75h-5a.75.75 0 0 1-.75-.75"})});exports.default=t;
2
- //# sourceMappingURL=copy-DuV1z0-c.cjs.map
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-CpBGZ2AH.cjs"),t=e=>c.u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...e,children:c.u("path",{fill:"currentColor",d:"M3.5 1.25c-1.24 0-2.25 1-2.25 2.25v5c0 1.24 1 2.25 2.25 2.25h1.75v1.75c0 1.24 1 2.25 2.25 2.25h5c1.24 0 2.25-1 2.25-2.25v-5c0-1.24-1-2.25-2.25-2.25h-1.75V3.5c0-1.24-1-2.25-2.25-2.25zm5.75 4H7.5c-1.24 0-2.25 1-2.25 2.25v1.75H3.5a.75.75 0 0 1-.75-.75v-5c0-.41.34-.75.75-.75h5c.41 0 .75.34.75.75zm-2.5 7.25v-5c0-.41.34-.75.75-.75h5c.41 0 .75.34.75.75v5c0 .41-.34.75-.75.75h-5a.75.75 0 0 1-.75-.75"})});exports.default=t;
2
+ //# sourceMappingURL=copy-7UpFtMvt.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"copy-DuV1z0-c.cjs","sources":["../src/images/icons/copy.svg?component"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nconst SvgCopy = (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: \"M3.5 1.25c-1.24 0-2.25 1-2.25 2.25v5c0 1.24 1 2.25 2.25 2.25h1.75v1.75c0 1.24 1 2.25 2.25 2.25h5c1.24 0 2.25-1 2.25-2.25v-5c0-1.24-1-2.25-2.25-2.25h-1.75V3.5c0-1.24-1-2.25-2.25-2.25zm5.75 4H7.5c-1.24 0-2.25 1-2.25 2.25v1.75H3.5a.75.75 0 0 1-.75-.75v-5c0-.41.34-.75.75-.75h5c.41 0 .75.34.75.75zm-2.5 7.25v-5c0-.41.34-.75.75-.75h5c.41 0 .75.34.75.75v5c0 .41-.34.75-.75.75h-5a.75.75 0 0 1-.75-.75\" }) });\nexport default SvgCopy;\n"],"names":["SvgCopy","props","jsx"],"mappings":"wHACMA,EAAWC,GAA0BC,EAAAA,EAAI,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAA0BC,EAAAA,EAAI,OAAQ,CAAE,KAAM,eAAgB,EAAG,2YAA2Y,CAAE,CAAG,CAAA"}
1
+ {"version":3,"file":"copy-7UpFtMvt.cjs","sources":["../src/images/icons/copy.svg?component"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nconst SvgCopy = (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: \"M3.5 1.25c-1.24 0-2.25 1-2.25 2.25v5c0 1.24 1 2.25 2.25 2.25h1.75v1.75c0 1.24 1 2.25 2.25 2.25h5c1.24 0 2.25-1 2.25-2.25v-5c0-1.24-1-2.25-2.25-2.25h-1.75V3.5c0-1.24-1-2.25-2.25-2.25zm5.75 4H7.5c-1.24 0-2.25 1-2.25 2.25v1.75H3.5a.75.75 0 0 1-.75-.75v-5c0-.41.34-.75.75-.75h5c.41 0 .75.34.75.75zm-2.5 7.25v-5c0-.41.34-.75.75-.75h5c.41 0 .75.34.75.75v5c0 .41-.34.75-.75.75h-5a.75.75 0 0 1-.75-.75\" }) });\nexport default SvgCopy;\n"],"names":["SvgCopy","props","jsx"],"mappings":"wHACMA,EAAWC,GAA0BC,EAAAA,EAAI,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAA0BC,EAAAA,EAAI,OAAQ,CAAE,KAAM,eAAgB,EAAG,2YAA2Y,CAAE,CAAG,CAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BeWwE_B0.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 9.06 4 4L13.06 12l-4-4 4-4L12 2.94l-4 4-4-4L2.94 4l4 4-4 4L4 13.06z"})});exports.default=t;
2
- //# sourceMappingURL=cross-C5L4gQrS.cjs.map
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 9.06 4 4L13.06 12l-4-4 4-4L12 2.94l-4 4-4-4L2.94 4l4 4-4 4L4 13.06z"})});exports.default=t;
2
+ //# sourceMappingURL=cross-DtVirgrN.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"cross-C5L4gQrS.cjs","sources":["../src/images/icons/cross.svg?component"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nconst SvgCross = (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: \"m8 9.06 4 4L13.06 12l-4-4 4-4L12 2.94l-4 4-4-4L2.94 4l4 4-4 4L4 13.06z\" }) });\nexport default SvgCross;\n"],"names":["SvgCross","props","jsx"],"mappings":"wHACMA,EAAYC,GAA0BC,EAAAA,EAAI,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAA0BC,EAAAA,EAAI,OAAQ,CAAE,KAAM,eAAgB,EAAG,wEAAwE,CAAE,CAAG,CAAA"}
1
+ {"version":3,"file":"cross-DtVirgrN.cjs","sources":["../src/images/icons/cross.svg?component"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nconst SvgCross = (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: \"m8 9.06 4 4L13.06 12l-4-4 4-4L12 2.94l-4 4-4-4L2.94 4l4 4-4 4L4 13.06z\" }) });\nexport default SvgCross;\n"],"names":["SvgCross","props","jsx"],"mappings":"wHACMA,EAAYC,GAA0BC,EAAAA,EAAI,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAA0BC,EAAAA,EAAI,OAAQ,CAAE,KAAM,eAAgB,EAAG,wEAAwE,CAAE,CAAG,CAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-BeWwE_B0.cjs"),e=r=>l.u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...r,children:[l.u("g",{clipPath:"url(#cross-circle-fill_svg__a)",children:l.u("path",{fill:"currentColor",d:"M.25 8a7.75 7.75 0 1 1 15.5 0A7.75 7.75 0 0 1 .25 8M6 4.94 4.94 6l2 2-2 2L6 11.06l2-2 2 2L11.06 10l-2-2 2-2L10 4.94l-2 2z"})}),l.u("defs",{children:l.u("clipPath",{id:"cross-circle-fill_svg__a",children:l.u("path",{fill:"currentColor",d:"M0 0h16v16H0z"})})})]});exports.default=e;
2
- //# sourceMappingURL=cross-circle-fill-D6Ir0xDO.cjs.map
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-CpBGZ2AH.cjs"),e=r=>l.u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...r,children:[l.u("g",{clipPath:"url(#cross-circle-fill_svg__a)",children:l.u("path",{fill:"currentColor",d:"M.25 8a7.75 7.75 0 1 1 15.5 0A7.75 7.75 0 0 1 .25 8M6 4.94 4.94 6l2 2-2 2L6 11.06l2-2 2 2L11.06 10l-2-2 2-2L10 4.94l-2 2z"})}),l.u("defs",{children:l.u("clipPath",{id:"cross-circle-fill_svg__a",children:l.u("path",{fill:"currentColor",d:"M0 0h16v16H0z"})})})]});exports.default=e;
2
+ //# sourceMappingURL=cross-circle-fill-C47yImD2.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"cross-circle-fill-D6Ir0xDO.cjs","sources":["../src/images/icons/cross-circle-fill.svg?component"],"sourcesContent":["import { jsx, jsxs } from \"react/jsx-runtime\";\nconst SvgCrossCircleFill = (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(#cross-circle-fill_svg__a)\", children: /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: \"M.25 8a7.75 7.75 0 1 1 15.5 0A7.75 7.75 0 0 1 .25 8M6 4.94 4.94 6l2 2-2 2L6 11.06l2-2 2 2L11.06 10l-2-2 2-2L10 4.94l-2 2z\" }) }),\n /* @__PURE__ */ jsx(\"defs\", { children: /* @__PURE__ */ jsx(\"clipPath\", { id: \"cross-circle-fill_svg__a\", children: /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: \"M0 0h16v16H0z\" }) }) })\n] });\nexport default SvgCrossCircleFill;\n"],"names":["SvgCrossCircleFill","props","jsxs","jsx"],"mappings":"wHACMA,EAAsBC,GAA0BC,EAAI,EAAC,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAAU,CAC/IE,EAAAA,EAAI,IAAK,CAAE,SAAU,iCAAkC,SAA0BA,EAAG,EAAC,OAAQ,CAAE,KAAM,eAAgB,EAAG,2HAA2H,CAAE,CAAC,CAAE,EACxPA,EAAG,EAAC,OAAQ,CAAE,SAA0BA,EAAG,EAAC,WAAY,CAAE,GAAI,2BAA4B,SAA0BA,EAAAA,EAAI,OAAQ,CAAE,KAAM,eAAgB,EAAG,eAAe,CAAE,CAAC,CAAE,CAAG,CAAA,CACpM,CAAG,CAAA"}
1
+ {"version":3,"file":"cross-circle-fill-C47yImD2.cjs","sources":["../src/images/icons/cross-circle-fill.svg?component"],"sourcesContent":["import { jsx, jsxs } from \"react/jsx-runtime\";\nconst SvgCrossCircleFill = (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(#cross-circle-fill_svg__a)\", children: /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: \"M.25 8a7.75 7.75 0 1 1 15.5 0A7.75 7.75 0 0 1 .25 8M6 4.94 4.94 6l2 2-2 2L6 11.06l2-2 2 2L11.06 10l-2-2 2-2L10 4.94l-2 2z\" }) }),\n /* @__PURE__ */ jsx(\"defs\", { children: /* @__PURE__ */ jsx(\"clipPath\", { id: \"cross-circle-fill_svg__a\", children: /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: \"M0 0h16v16H0z\" }) }) })\n] });\nexport default SvgCrossCircleFill;\n"],"names":["SvgCrossCircleFill","props","jsxs","jsx"],"mappings":"wHACMA,EAAsBC,GAA0BC,EAAI,EAAC,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAAU,CAC/IE,EAAAA,EAAI,IAAK,CAAE,SAAU,iCAAkC,SAA0BA,EAAG,EAAC,OAAQ,CAAE,KAAM,eAAgB,EAAG,2HAA2H,CAAE,CAAC,CAAE,EACxPA,EAAG,EAAC,OAAQ,CAAE,SAA0BA,EAAG,EAAC,WAAY,CAAE,GAAI,2BAA4B,SAA0BA,EAAAA,EAAI,OAAQ,CAAE,KAAM,eAAgB,EAAG,eAAe,CAAE,CAAC,CAAE,CAAG,CAAA,CACpM,CAAG,CAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BeWwE_B0.cjs"),o=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.75 1.25v7.94L11 6.94 12.06 8 8 12.06 3.94 8 5 6.94l2.25 2.25V1.25z"}),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-.75"})]});exports.default=o;
2
- //# sourceMappingURL=download-IwqY_7gX.cjs.map
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CpBGZ2AH.cjs"),o=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.75 1.25v7.94L11 6.94 12.06 8 8 12.06 3.94 8 5 6.94l2.25 2.25V1.25z"}),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-.75"})]});exports.default=o;
2
+ //# sourceMappingURL=download-A1m1wB_K.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"download-IwqY_7gX.cjs","sources":["../src/images/icons/download.svg?component"],"sourcesContent":["import { jsx, jsxs } from \"react/jsx-runtime\";\nconst SvgDownload = (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 1.25v7.94L11 6.94 12.06 8 8 12.06 3.94 8 5 6.94l2.25 2.25V1.25z\" }),\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-.75\" })\n] });\nexport default SvgDownload;\n"],"names":["SvgDownload","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,wEAAyE,EAChHA,EAAG,EAAC,OAAQ,CAAE,KAAM,eAAgB,EAAG,8IAAgJ,CAAA,CACzM,CAAG,CAAA"}
1
+ {"version":3,"file":"download-A1m1wB_K.cjs","sources":["../src/images/icons/download.svg?component"],"sourcesContent":["import { jsx, jsxs } from \"react/jsx-runtime\";\nconst SvgDownload = (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 1.25v7.94L11 6.94 12.06 8 8 12.06 3.94 8 5 6.94l2.25 2.25V1.25z\" }),\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-.75\" })\n] });\nexport default SvgDownload;\n"],"names":["SvgDownload","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,wEAAyE,EAChHA,EAAG,EAAC,OAAQ,CAAE,KAAM,eAAgB,EAAG,8IAAgJ,CAAA,CACzM,CAAG,CAAA"}
@@ -1,42 +1,42 @@
1
1
  import { jsx as e } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
- import { BaseList as w } from "../../../../internal/BaseList/BaseList.js";
3
- import { GrantItem as S } from "../GrantItem/GrantItem.js";
4
- import { getGrantConfig as _ } from "../GrantItem/utils.js";
5
- import { GRANT_ADJUSTMENT_DETAILS as C } from "../GrantAdjustmentDetails/constants.js";
6
- import { GrantRepaymentDetails as A } from "../GrantRepaymentDetails/GrantRepaymentDetails.js";
7
- import R from "../../../../../core/Context/useCoreContext.js";
8
- import { useState as D, useMemo as l, useCallback as G } from "../../../../../external/preact/hooks/dist/hooks.module.js";
9
- import B from "../../../../internal/Button/Button.js";
10
- import { ButtonVariant as E } from "../../../../internal/Button/types.js";
11
- import k from "../../../../internal/Tabs/Tabs.js";
12
- import { CapitalHeader as x } from "../../../../internal/CapitalHeader/CapitalHeader.js";
13
- const u = ({ grants: t, showDetails: c }) => /* @__PURE__ */ e(w, { classNames: "adyen-pe-grant-list__items", children: t.map((s) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(S, { grant: s, showDetails: c.bind(null, s) }) }, s.id)) }), Y = ({ grantList: t, hideTitle: c, newOfferAvailable: s, onNewOfferRequest: b }) => {
14
- const [v, h] = D(), [n, y] = D(), { i18n: g } = R(), [i, m] = l(() => {
15
- const a = [], r = [];
2
+ import { BaseList as C } from "../../../../internal/BaseList/BaseList.js";
3
+ import { GrantItem as _ } from "../GrantItem/GrantItem.js";
4
+ import { getGrantConfig as b } from "../GrantItem/utils.js";
5
+ import { GRANT_ADJUSTMENT_DETAILS as R } from "../GrantAdjustmentDetails/constants.js";
6
+ import { GrantRepaymentDetails as T } from "../GrantRepaymentDetails/GrantRepaymentDetails.js";
7
+ import A from "../../../../internal/SegmentedControl/SegmentedControl.js";
8
+ import B from "../../../../../core/Context/useCoreContext.js";
9
+ import { useState as G, useMemo as l, useCallback as D } from "../../../../../external/preact/hooks/dist/hooks.module.js";
10
+ import E from "../../../../internal/Button/Button.js";
11
+ import { ButtonVariant as U } from "../../../../internal/Button/types.js";
12
+ import { CapitalHeader as k } from "../../../../internal/CapitalHeader/CapitalHeader.js";
13
+ const u = ({ grants: t, showDetails: c }) => /* @__PURE__ */ e(C, { classNames: "adyen-pe-grant-list__items", children: t.map((n) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(_, { grant: n, showDetails: c.bind(null, n) }) }, n.id)) }), Y = ({ grantList: t, hideTitle: c, newOfferAvailable: n, onNewOfferRequest: g }) => {
14
+ const [v, h] = G(), [a, y] = G(), { i18n: N } = B(), [i, m] = l(() => {
15
+ const s = [], r = [];
16
16
  return t == null || t.forEach((o) => {
17
- o.status === "Active" || o.status === "Pending" ? a.push(o) : r.push(o);
18
- }), [a, r];
19
- }, [t]), f = l(() => t.length > 1 && i.length && m.length ? "Tabs" : "SingleGrant", [i.length, t.length, m.length]), N = l(() => s && !i.some((a) => a.status === "Pending"), [i, s]), d = l(() => n && _(n), [n]), T = G(() => h(void 0), []), p = G((a, r) => {
20
- h(r), y(a);
17
+ o.status === "Active" || o.status === "Pending" ? s.push(o) : r.push(o);
18
+ }), [s, r];
19
+ }, [t]), f = l(() => t.length > 1 && i.length && m.length ? "SegmentedGrants" : "UnifiedGrants", [i.length, t.length, m.length]), S = l(() => n && !i.some((s) => s.status === "Pending"), [i, n]), d = l(() => a && b(a), [a]), w = D(() => h(void 0), []), p = D((s, r) => {
20
+ h(r), y(s);
21
21
  }, []);
22
- if (n)
22
+ if (a)
23
23
  switch (v) {
24
- case C.unscheduledRepayment: {
24
+ case R.unscheduledRepayment: {
25
25
  if (d != null && d.hasUnscheduledRepaymentDetails)
26
- return /* @__PURE__ */ e(A, { grant: n, onDetailsClose: T });
26
+ return /* @__PURE__ */ e(T, { grant: a, onDetailsClose: w });
27
27
  break;
28
28
  }
29
29
  }
30
30
  return /* @__PURE__ */ e("div", { className: "adyen-pe-grant-list", children: [
31
31
  /* @__PURE__ */ e("div", { className: "adyen-pe-grant-list__header-container", children: [
32
- /* @__PURE__ */ e(x, { hideTitle: c, titleKey: "capital.businessFinancing" }),
33
- N ? /* @__PURE__ */ e(B, { onClick: b, className: "adyen-pe-grant-list__offer-button", variant: E.SECONDARY, children: g.get("capital.seeNewOffer") }) : null
32
+ /* @__PURE__ */ e(k, { hideTitle: c, titleKey: "capital.businessFinancing" }),
33
+ S ? /* @__PURE__ */ e(E, { onClick: g, className: "adyen-pe-grant-list__offer-button", variant: U.SECONDARY, children: N.get("capital.seeNewOffer") }) : null
34
34
  ] }),
35
- f === "SingleGrant" && /* @__PURE__ */ e(u, { grants: t, showDetails: p }),
36
- f === "Tabs" && /* @__PURE__ */ e(
37
- k,
35
+ f === "UnifiedGrants" && /* @__PURE__ */ e(u, { grants: t, showDetails: p }),
36
+ f === "SegmentedGrants" && /* @__PURE__ */ e(
37
+ A,
38
38
  {
39
- tabs: [
39
+ items: [
40
40
  {
41
41
  label: "capital.inProgress",
42
42
  content: /* @__PURE__ */ e(u, { grants: i, showDetails: p }),
@@ -48,7 +48,7 @@ const u = ({ grants: t, showDetails: c }) => /* @__PURE__ */ e(w, { classNames:
48
48
  id: "inactive"
49
49
  }
50
50
  ],
51
- defaultActiveTab: "active"
51
+ defaultItem: "active"
52
52
  }
53
53
  )
54
54
  ] });
@@ -1,78 +1,89 @@
1
1
  import { jsx as r } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
2
  import n from "classnames";
3
- import { useState as g, useMemo as k, useCallback as T, useRef as i, useEffect as B } from "../../../external/preact/hooks/dist/hooks.module.js";
4
- import { useClickOutside as F } from "../../../hooks/element/useClickOutside.js";
5
- import P from "../../../core/Context/useCoreContext.js";
6
- import H from "../SVGIcons/ChevronUp.js";
7
- import V from "../SVGIcons/ChevronDown.js";
3
+ import { useState as x, useMemo as F, useCallback as I, useRef as i, useLayoutEffect as V, useEffect as b } from "../../../external/preact/hooks/dist/hooks.module.js";
4
+ import { useClickOutside as Y } from "../../../hooks/element/useClickOutside.js";
5
+ import w from "../../../core/Context/useCoreContext.js";
6
+ import z from "../SVGIcons/ChevronUp.js";
7
+ import U from "../SVGIcons/ChevronDown.js";
8
8
  /* empty css */
9
- import { BASE_CLASS as Y, CONTAINER_CLASS as f, CONTAINER_BUTTON_CLASS as x, CONTAINER_FILLED_CLASS as C, CONTAINER_OVERLAY_ID as u, CONTENT_CLASS as A, CONTENT_EXPANDABLE_CLASS as I, CHEVRON_CLASS as v, CONTAINER_OVERLAY_CLASS as w, CONTAINER_HIDDEN_CLASS as U, CONTAINER_IN_FLOW_CLASS as j, CARD_HEIGHT_PROPERTY as b } from "./constants.js";
10
- import { Fragment as q } from "../../../external/preact/dist/preact.module.js";
11
- import y from "../BaseButton/BaseButton.js";
12
- const re = ({ renderHeader: c, children: O, filled: l, fullWidth: S, inFlow: _, ...d }) => {
13
- const { i18n: E } = P(), [e, R] = g(!1), a = k(() => _ === !0, [_]), o = T(() => R((s) => !s), [R]), p = i(null), h = i(a), m = i(!1), L = i(e), N = F(
9
+ import { CARD_HEIGHT_PROPERTY as y, BASE_CLASS as j, CONTAINER_CLASS as p, CONTAINER_BUTTON_CLASS as g, CONTAINER_FILLED_CLASS as C, CONTAINER_OVERLAY_ID as N, CONTENT_CLASS as A, CONTENT_EXPANDABLE_CLASS as D, CHEVRON_CLASS as k, CONTAINER_OVERLAY_CLASS as q, CONTAINER_HIDDEN_CLASS as G, CONTAINER_IN_FLOW_CLASS as M } from "./constants.js";
10
+ import { Fragment as X } from "../../../external/preact/dist/preact.module.js";
11
+ import B from "../BaseButton/BaseButton.js";
12
+ const ne = ({ renderHeader: c, children: O, filled: d, fullWidth: E, inFlow: S, ...l }) => {
13
+ const { i18n: _ } = w(), [e, h] = x(!1), [R, v] = x(0), a = F(() => S === !0, [S]), o = I(() => h((s) => !s), [h]), u = i(null), L = i(null), f = i(!1), T = i(e), m = Y(
14
14
  void 0,
15
- T(() => {
16
- e && (o(), m.current = !0);
15
+ I(() => {
16
+ e && (o(), f.current = !0);
17
17
  }, [e, o])
18
- ), D = (s) => {
19
- var t;
20
- s && (a ? (!e || h.current !== a) && s.style.setProperty(b, `${((t = p.current) == null ? void 0 : t.offsetHeight) || 0}px`) : e || s.style.removeProperty(b), h.current = a);
21
- };
22
- return B(() => {
18
+ );
19
+ return V(() => {
20
+ const s = L.current;
21
+ s && (a ? s.style.setProperty(y, `${R}px`) : e || s.style.removeProperty(y));
22
+ }, [R, a, e]), b(() => {
23
+ if (!a) return void v(0);
24
+ const s = u.current;
25
+ if (!s) return;
26
+ const t = new ResizeObserver((H) => {
27
+ for (const P of H)
28
+ P.target === s && v(s.offsetHeight || 0);
29
+ });
30
+ return t.observe(s), () => {
31
+ t.unobserve(s), t.disconnect();
32
+ };
33
+ }, [a]), b(() => {
23
34
  var s, t;
24
- e ? (s = N.current) == null || s.focus() : (L.current !== e && !m.current && ((t = p.current) == null || t.focus()), m.current = !1), L.current = e;
25
- }, [e, N]), /* @__PURE__ */ r("div", { ref: D, className: Y, children: O ? /* @__PURE__ */ r(q, { children: [
35
+ e ? (s = m.current) == null || s.focus() : (T.current !== e && !f.current && ((t = u.current) == null || t.focus()), f.current = !1), T.current = e;
36
+ }, [e, m]), /* @__PURE__ */ r("div", { ref: L, className: j, children: O ? /* @__PURE__ */ r(X, { children: [
26
37
  /* @__PURE__ */ r(
27
- y,
38
+ B,
28
39
  {
29
- className: n(f, x, { [C]: l }),
40
+ className: n(p, g, { [C]: d }),
30
41
  disabled: e,
31
- fullWidth: S,
32
- "aria-controls": u,
42
+ fullWidth: E,
43
+ "aria-controls": N,
33
44
  "aria-expanded": e,
34
45
  "aria-hidden": e,
35
46
  onClick: o,
36
- ref: p,
47
+ ref: u,
37
48
  "data-testid": "expand-button",
38
- ...d,
49
+ ...l,
39
50
  children: [
40
- /* @__PURE__ */ r("span", { className: "adyen-pe-sr-only", children: E.get("expandableCard.expand") }),
41
- /* @__PURE__ */ r("div", { className: n(A, I), children: c }),
42
- /* @__PURE__ */ r("div", { className: v, children: /* @__PURE__ */ r(V, { role: "presentation" }) })
51
+ /* @__PURE__ */ r("span", { className: "adyen-pe-visually-hidden", children: _.get("expandableCard.expand") }),
52
+ /* @__PURE__ */ r("div", { className: n(A, D), children: c }),
53
+ /* @__PURE__ */ r("div", { className: k, children: /* @__PURE__ */ r(U, { role: "presentation" }) })
43
54
  ]
44
55
  }
45
56
  ),
46
57
  /* @__PURE__ */ r(
47
- y,
58
+ B,
48
59
  {
49
- id: u,
50
- className: n(f, x, w, {
51
- [C]: l,
52
- [U]: !e,
53
- [j]: a
60
+ id: N,
61
+ className: n(p, g, q, {
62
+ [C]: d,
63
+ [G]: !e,
64
+ [M]: a
54
65
  }),
55
66
  disabled: !e,
56
- fullWidth: S,
57
- "aria-controls": u,
67
+ fullWidth: E,
68
+ "aria-controls": N,
58
69
  "aria-expanded": e,
59
70
  "aria-hidden": !e,
60
71
  onClick: o,
61
- ref: N,
72
+ ref: m,
62
73
  "data-testid": "collapse-button",
63
- ...d,
74
+ ...l,
64
75
  children: [
65
- /* @__PURE__ */ r("span", { className: "adyen-pe-sr-only", children: E.get("expandableCard.collapse") }),
66
- /* @__PURE__ */ r("div", { className: n(A, I), children: [
76
+ /* @__PURE__ */ r("span", { className: "adyen-pe-visually-hidden", children: _.get("expandableCard.collapse") }),
77
+ /* @__PURE__ */ r("div", { className: n(A, D), children: [
67
78
  c,
68
79
  /* @__PURE__ */ r("div", { children: O })
69
80
  ] }),
70
- /* @__PURE__ */ r("div", { className: v, children: /* @__PURE__ */ r(H, { role: "presentation" }) })
81
+ /* @__PURE__ */ r("div", { className: k, children: /* @__PURE__ */ r(z, { role: "presentation" }) })
71
82
  ]
72
83
  }
73
84
  )
74
- ] }) : /* @__PURE__ */ r("div", { className: n(f, { [C]: l }), ...d, children: /* @__PURE__ */ r("div", { className: A, children: c }) }) });
85
+ ] }) : /* @__PURE__ */ r("div", { className: n(p, { [C]: d }), ...l, children: /* @__PURE__ */ r("div", { className: A, children: c }) }) });
75
86
  };
76
87
  export {
77
- re as default
88
+ ne as default
78
89
  };
@@ -21,6 +21,8 @@ const e = {
21
21
  "minus-circle-outline": () => import("../../../images/icons/minus-circle-outline.svg.js"),
22
22
  "plus-circle-outline": () => import("../../../images/icons/plus-circle-outline.svg.js"),
23
23
  square: () => import("../../../images/icons/square.svg.js"),
24
+ "trash-can": () => import("../../../images/icons/trash-can.svg.js"),
25
+ upload: () => import("../../../images/icons/upload.svg.js"),
24
26
  "warning-filled": () => import("../../../images/icons/warning-filled.svg.js"),
25
27
  warning: () => import("../../../images/icons/warning.svg.js")
26
28
  }, d = ({ className: n, name: o, ...c }) => {
@@ -0,0 +1,55 @@
1
+ import { jsx as o } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
+ import { TypographyElement as p, TypographyVariant as f } from "../Typography/types.js";
3
+ import g from "../../../core/Context/useCoreContext.js";
4
+ import { useTabbedControl as u } from "../../../hooks/useTabbedControl.js";
5
+ import y from "../Typography/Typography.js";
6
+ /* empty css */
7
+ function x({ defaultItem: i, items: a }) {
8
+ const { activeIndex: t, onClick: l, onKeyDown: s, refs: c, uniqueId: n } = u(a, i), { i18n: m } = g();
9
+ return /* @__PURE__ */ o("div", { children: [
10
+ /* @__PURE__ */ o("div", { role: "radiogroup", className: "adyen-fp-segmented-control", children: a.map((e, r) => {
11
+ const d = t === r;
12
+ return /* @__PURE__ */ o(
13
+ "button",
14
+ {
15
+ role: "radio",
16
+ name: e.id,
17
+ ref: c[r],
18
+ id: `item:${n}-${e.id}`,
19
+ className: "adyen-fp-segmented-control__item",
20
+ "aria-checked": d,
21
+ "aria-controls": `segment:${n}-${e.id}`,
22
+ onClick: d ? void 0 : l,
23
+ onKeyDown: s,
24
+ disabled: e.disabled,
25
+ tabIndex: d ? 0 : -1,
26
+ children: /* @__PURE__ */ o(
27
+ y,
28
+ {
29
+ el: p.SPAN,
30
+ variant: f.BODY,
31
+ className: "adyen-fp-segmented-control__item-label",
32
+ stronger: !0,
33
+ children: m.get(e.label)
34
+ }
35
+ )
36
+ },
37
+ `item:${n}-${e.id}`
38
+ );
39
+ }) }),
40
+ /* @__PURE__ */ o("div", { className: "adyen-fp-segmented-content-container", children: a.map((e, r) => /* @__PURE__ */ o(
41
+ "section",
42
+ {
43
+ id: `segment:${n}-${e.id}`,
44
+ className: "adyen-fp-segmented-content",
45
+ "aria-labelledby": `item:${n}-${e.id}`,
46
+ hidden: t !== r,
47
+ children: e.content
48
+ },
49
+ `segment:${n}-${e.id}`
50
+ )) })
51
+ ] });
52
+ }
53
+ export {
54
+ x as default
55
+ };
@@ -26,7 +26,7 @@ const l = (e) => {
26
26
  Accept: "application/json, text/plain, */*",
27
27
  "Content-Type": e.contentType ?? "application/json",
28
28
  ...n,
29
- "SDK-Version": "1.4.1"
29
+ "SDK-Version": "1.4.2"
30
30
  },
31
31
  redirect: "follow",
32
32
  signal: e.signal,
@@ -60,7 +60,7 @@ class m {
60
60
  return { ...t };
61
61
  }
62
62
  }
63
- o(m, "version", "1.4.1");
63
+ o(m, "version", "1.4.2");
64
64
  export {
65
65
  m as default
66
66
  };
@@ -56,7 +56,7 @@ function re(t, e, n, l, o, r, i, s, c, u, p) {
56
56
  function ce(t, e, n, l, o) {
57
57
  var r, i, s, c, u, p = n.length, _ = p, m = 0;
58
58
  for (t.__k = new Array(o), r = 0; r < o; r++) (i = e[r]) != null && typeof i != "boolean" && typeof i != "function" ? (c = r + m, (i = t.__k[r] = typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? T(null, i, null, null, null) : N(i) ? T(H, { children: i }, null, null, null) : i.constructor === void 0 && i.__b > 0 ? T(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i).__ = t, i.__b = t.__b + 1, s = null, (u = i.__i = ae(i, n, c, _)) !== -1 && (_--, (s = n[u]) && (s.__u |= 2)), s == null || s.__v === null ? (u == -1 && m--, typeof i.type != "function" && (i.__u |= 4)) : u != c && (u == c - 1 ? m-- : u == c + 1 ? m++ : (u > c ? m-- : m++, i.__u |= 4))) : t.__k[r] = null;
59
- if (_) for (r = 0; r < p; r++) (s = n[r]) != null && !(2 & s.__u) && (s.__e == l && (l = C(s)), ie(s, s));
59
+ if (_) for (r = 0; r < p; r++) (s = n[r]) != null && (2 & s.__u) == 0 && (s.__e == l && (l = C(s)), ie(s, s));
60
60
  return l;
61
61
  }
62
62
  function oe(t, e, n) {
@@ -78,14 +78,14 @@ function pe(t, e) {
78
78
  }
79
79
  function ae(t, e, n, l) {
80
80
  var o, r, i = t.key, s = t.type, c = e[n];
81
- if (c === null || c && i == c.key && s === c.type && !(2 & c.__u)) return n;
82
- if (l > (c != null && !(2 & c.__u) ? 1 : 0)) for (o = n - 1, r = n + 1; o >= 0 || r < e.length; ) {
81
+ if (c === null || c && i == c.key && s === c.type && (2 & c.__u) == 0) return n;
82
+ if (l > (c != null && (2 & c.__u) == 0 ? 1 : 0)) for (o = n - 1, r = n + 1; o >= 0 || r < e.length; ) {
83
83
  if (o >= 0) {
84
- if ((c = e[o]) && !(2 & c.__u) && i == c.key && s === c.type) return o;
84
+ if ((c = e[o]) && (2 & c.__u) == 0 && i == c.key && s === c.type) return o;
85
85
  o--;
86
86
  }
87
87
  if (r < e.length) {
88
- if ((c = e[r]) && !(2 & c.__u) && i == c.key && s === c.type) return r;
88
+ if ((c = e[r]) && (2 & c.__u) == 0 && i == c.key && s === c.type) return r;
89
89
  r++;
90
90
  }
91
91
  }
@@ -0,0 +1,66 @@
1
+ import { useState as x, useRef as b, useMemo as O, useCallback as R, useEffect as A } from "../external/preact/hooks/dist/hooks.module.js";
2
+ import { InteractionKeyCode as l } from "../components/types.js";
3
+ import { uniqueId as D } from "../utils/random/uniqueId.js";
4
+ const T = (f, o) => {
5
+ if (!o) return 0;
6
+ const s = f.findIndex((i) => i.id === o);
7
+ return s === -1 ? 0 : s;
8
+ }, h = (f, o) => {
9
+ const [s, i] = x(!1), [I, c] = x(T(f, o)), u = b([]), m = b(D().replace(/.*?(?=\d+$)/, "")).current, r = f.length, p = O(() => {
10
+ const e = [];
11
+ for (let n = 0; n < r; n++)
12
+ e[n] = (t) => u.current[n] = t;
13
+ return e;
14
+ }, [r]), d = R(
15
+ (e, n) => {
16
+ var a;
17
+ let t = e;
18
+ do
19
+ if (t < 0 && (t += r), t >= r && (t %= r), ((a = u.current[t]) == null ? void 0 : a.disabled) === !1) break;
20
+ while ((t += n) !== e);
21
+ return t;
22
+ },
23
+ [r]
24
+ ), g = R((e) => {
25
+ var t;
26
+ const n = u.current.findIndex((a) => a === e.currentTarget);
27
+ ((t = u.current[n]) == null ? void 0 : t.disabled) === !1 && (e.preventDefault(), c(n));
28
+ }, []), k = O(() => {
29
+ const e = {
30
+ [l.ARROW_LEFT]: () => c((n) => d(
31
+ n - 1,
32
+ -1
33
+ /* BACKWARD */
34
+ )),
35
+ [l.ARROW_RIGHT]: () => c((n) => d(
36
+ n + 1,
37
+ 1
38
+ /* FORWARD */
39
+ )),
40
+ [l.HOME]: () => c(d(
41
+ 0,
42
+ 1
43
+ /* FORWARD */
44
+ )),
45
+ [l.END]: () => c(d(
46
+ r - 1,
47
+ -1
48
+ /* BACKWARD */
49
+ ))
50
+ };
51
+ return (n) => {
52
+ var t;
53
+ e[n.key] && (n.preventDefault(), (t = e[n.key]) == null || t.call(e), i(!0));
54
+ };
55
+ }, [r]);
56
+ return A(() => {
57
+ if (s) {
58
+ const e = u.current[I];
59
+ (e == null ? void 0 : e.disabled) === !1 && (e == null || e.focus()), i(!1);
60
+ }
61
+ }, [I, s]), { activeIndex: I, onClick: g, onKeyDown: k, refs: p, uniqueId: m };
62
+ };
63
+ export {
64
+ h as default,
65
+ h as useTabbedControl
66
+ };
@@ -0,0 +1,9 @@
1
+ import "../../external/preact/compat/dist/compat.module.js";
2
+ import { jsx as l } from "../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
3
+ const o = (h) => /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", ...h, children: [
4
+ /* @__PURE__ */ l("path", { fill: "currentColor", d: "M7.25 6.25h-1.5v6.5h1.5v-6.5ZM8.75 6.25h1.5v6.5h-1.5v-6.5Z" }),
5
+ /* @__PURE__ */ l("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" })
6
+ ] });
7
+ export {
8
+ o as default
9
+ };
@@ -0,0 +1,9 @@
1
+ import "../../external/preact/compat/dist/compat.module.js";
2
+ import { jsx as o } from "../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
3
+ const a = (l) => /* @__PURE__ */ o("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", ...l, children: [
4
+ /* @__PURE__ */ o("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" }),
5
+ /* @__PURE__ */ o("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" })
6
+ ] });
7
+ export {
8
+ a as default
9
+ };