@adyen/adyen-platform-experience-web 1.6.1 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/adyen-platform-experience-web.css +1 -1
- package/dist/{angle-right-K64mXtoy.cjs → angle-right-BYzD_-Ft.cjs} +2 -2
- package/dist/{angle-right-K64mXtoy.cjs.map → angle-right-BYzD_-Ft.cjs.map} +1 -1
- package/dist/{checkmark-BFOfQ4U3.cjs → checkmark-BvN7Hdc4.cjs} +2 -2
- package/dist/{checkmark-BFOfQ4U3.cjs.map → checkmark-BvN7Hdc4.cjs.map} +1 -1
- package/dist/{checkmark-circle-fill-BV2FvQh0.cjs → checkmark-circle-fill-B2FBCXMi.cjs} +2 -2
- package/dist/{checkmark-circle-fill-BV2FvQh0.cjs.map → checkmark-circle-fill-B2FBCXMi.cjs.map} +1 -1
- package/dist/{checkmark-square-fill-B6rUSLy6.cjs → checkmark-square-fill-C0yzqh08.cjs} +2 -2
- package/dist/{checkmark-square-fill-B6rUSLy6.cjs.map → checkmark-square-fill-C0yzqh08.cjs.map} +1 -1
- package/dist/{chevron-down-Cwk2F1N2.cjs → chevron-down-Bh5iG-g7.cjs} +2 -2
- package/dist/{chevron-down-Cwk2F1N2.cjs.map → chevron-down-Bh5iG-g7.cjs.map} +1 -1
- package/dist/{chevron-left-3kfyOgH8.cjs → chevron-left-CslKDyxG.cjs} +2 -2
- package/dist/{chevron-left-3kfyOgH8.cjs.map → chevron-left-CslKDyxG.cjs.map} +1 -1
- package/dist/{chevron-right-DlSewmYP.cjs → chevron-right-B86-08tq.cjs} +2 -2
- package/dist/{chevron-right-DlSewmYP.cjs.map → chevron-right-B86-08tq.cjs.map} +1 -1
- package/dist/{chevron-up-DcHOD7ve.cjs → chevron-up-DRKXzgCM.cjs} +2 -2
- package/dist/{chevron-up-DcHOD7ve.cjs.map → chevron-up-DRKXzgCM.cjs.map} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/{copy-DmBUwp7_.cjs → copy--wgagwiQ.cjs} +2 -2
- package/dist/{copy-DmBUwp7_.cjs.map → copy--wgagwiQ.cjs.map} +1 -1
- package/dist/{cross-JGXC9RPo.cjs → cross-BWhI1OkU.cjs} +2 -2
- package/dist/{cross-JGXC9RPo.cjs.map → cross-BWhI1OkU.cjs.map} +1 -1
- package/dist/{cross-circle-fill-CepPVSd-.cjs → cross-circle-fill-CNa1fp55.cjs} +2 -2
- package/dist/{cross-circle-fill-CepPVSd-.cjs.map → cross-circle-fill-CNa1fp55.cjs.map} +1 -1
- package/dist/{download-BToMR9ry.cjs → download-v3aQcc7_.cjs} +2 -2
- package/dist/{download-BToMR9ry.cjs.map → download-v3aQcc7_.cjs.map} +1 -1
- package/dist/es/components/external/CapitalOverview/components/GrantActions/GrantActions.js +133 -0
- package/dist/es/components/external/CapitalOverview/components/GrantActions/constants.js +9 -0
- package/dist/es/components/external/CapitalOverview/components/GrantItem/GrantItem.js +39 -40
- package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.js +11 -11
- package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundAmount.js +19 -19
- package/dist/es/components/internal/Accordion/Accordion.js +19 -20
- package/dist/es/components/internal/Button/DownloadButton/DownloadButton.js +37 -37
- package/dist/es/components/internal/Calendar/hooks/useCalendarControlsRendering.js +18 -19
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +47 -48
- package/dist/es/components/internal/FormFields/Select/Select.js +29 -29
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +27 -27
- package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +27 -29
- package/dist/es/components/internal/Pagination/Pagination.js +41 -38
- package/dist/es/constants/dateFormats.js +19 -18
- package/dist/es/core/Http/utils.js +1 -1
- package/dist/es/core/core.js +1 -1
- package/dist/es/translations/en-US.json.js +4 -0
- package/dist/{external-link-BRDaK3Bx.cjs → external-link-Y0ITwX_D.cjs} +2 -2
- package/dist/{external-link-BRDaK3Bx.cjs.map → external-link-Y0ITwX_D.cjs.map} +1 -1
- package/dist/{filter-DXSSpM1j.cjs → filter-B0jf9LNT.cjs} +2 -2
- package/dist/{filter-DXSSpM1j.cjs.map → filter-B0jf9LNT.cjs.map} +1 -1
- package/dist/index-CldOsFs0.cjs +12 -0
- package/dist/index-CldOsFs0.cjs.map +1 -0
- package/dist/{info-filled-CqqSx6ab.cjs → info-filled-DWI7yYIK.cjs} +2 -2
- package/dist/{info-filled-CqqSx6ab.cjs.map → info-filled-DWI7yYIK.cjs.map} +1 -1
- package/dist/{minus-circle-outline-C_OF3LwJ.cjs → minus-circle-outline-TX4FRKCq.cjs} +2 -2
- package/dist/{minus-circle-outline-C_OF3LwJ.cjs.map → minus-circle-outline-TX4FRKCq.cjs.map} +1 -1
- package/dist/{plus-CW8c0zs1.cjs → plus-WkQleJCL.cjs} +2 -2
- package/dist/{plus-CW8c0zs1.cjs.map → plus-WkQleJCL.cjs.map} +1 -1
- package/dist/{plus-circle-outline-DJ6zGU6z.cjs → plus-circle-outline-BSbUWJEJ.cjs} +2 -2
- package/dist/{plus-circle-outline-DJ6zGU6z.cjs.map → plus-circle-outline-BSbUWJEJ.cjs.map} +1 -1
- package/dist/{square-2HAeIvAR.cjs → square-wBNy5hkk.cjs} +2 -2
- package/dist/{square-2HAeIvAR.cjs.map → square-wBNy5hkk.cjs.map} +1 -1
- package/dist/{trash-can-BLQ5Pm8W.cjs → trash-can-BtOHiu0D.cjs} +2 -2
- package/dist/{trash-can-BLQ5Pm8W.cjs.map → trash-can-BtOHiu0D.cjs.map} +1 -1
- package/dist/types/components/external/CapitalOverview/components/AccountDetails/types.d.ts +2 -2
- package/dist/types/components/external/CapitalOverview/components/AccountDetails/types.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/components/GrantActions/GrantActions.d.ts +9 -0
- package/dist/types/components/external/CapitalOverview/components/GrantActions/GrantActions.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantActions/constants.d.ts +7 -0
- package/dist/types/components/external/CapitalOverview/components/{GrantAction → GrantActions}/constants.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/components/GrantActions/utils.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantItem/GrantItem.d.ts.map +1 -1
- package/dist/types/components/external/ReportsOverview/components/ReportsTable/ReportsTable.d.ts.map +1 -1
- package/dist/types/components/internal/Accordion/Accordion.d.ts.map +1 -1
- package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts +5 -21
- package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/hooks/useCalendarControlsRendering.d.ts.map +1 -1
- package/dist/types/components/internal/ExpandableCard/ExpandableCard.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/Pagination.d.ts +1 -1
- package/dist/types/components/internal/Pagination/Pagination.d.ts.map +1 -1
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +1 -1
- package/dist/types/constants/dateFormats.d.ts +1 -0
- package/dist/types/constants/dateFormats.d.ts.map +1 -1
- package/dist/types/core/ConfigContext/context.d.ts +38 -20
- package/dist/types/core/ConfigContext/context.d.ts.map +1 -1
- package/dist/types/core/ConfigContext/session/AuthSession.d.ts +76 -40
- package/dist/types/core/ConfigContext/session/AuthSession.d.ts.map +1 -1
- package/dist/types/core/ConfigContext/session/SetupContext.d.ts +38 -20
- package/dist/types/core/ConfigContext/session/SetupContext.d.ts.map +1 -1
- package/dist/types/core/ConfigContext/types.d.ts +7 -1
- package/dist/types/core/ConfigContext/types.d.ts.map +1 -1
- package/dist/types/hooks/useTableColumns.d.ts +1 -1
- package/dist/types/translations/index.d.ts +4 -0
- package/dist/types/translations/index.d.ts.map +1 -1
- package/dist/types/types/api/endpoints.d.ts +4 -2
- package/dist/types/types/api/endpoints.d.ts.map +1 -1
- package/dist/types/types/api/models/capital.d.ts +10 -6
- package/dist/types/types/api/models/capital.d.ts.map +1 -1
- package/dist/types/types/api/resources/BalanceAccountsResource.d.ts +56 -28
- package/dist/types/types/api/resources/BalanceAccountsResource.d.ts.map +1 -1
- package/dist/types/types/api/resources/CapitalGrantOffersResource.d.ts +182 -0
- package/dist/types/types/api/resources/CapitalGrantOffersResource.d.ts.map +1 -0
- package/dist/types/types/api/resources/CapitalGrantsResource.d.ts +190 -0
- package/dist/types/types/api/resources/CapitalGrantsResource.d.ts.map +1 -0
- package/dist/types/types/api/resources/CapitalMissingActionsResource.d.ts +112 -0
- package/dist/types/types/api/resources/CapitalMissingActionsResource.d.ts.map +1 -0
- package/dist/types/types/api/resources/SetupResource.d.ts +33 -15
- package/dist/types/types/api/resources/SetupResource.d.ts.map +1 -1
- package/dist/types/utils/abort/main.d.ts +1 -2
- package/dist/types/utils/abort/main.d.ts.map +1 -1
- package/dist/{upload-C9Z9qRuS.cjs → upload-CwRQ9v3Y.cjs} +2 -2
- package/dist/{upload-C9Z9qRuS.cjs.map → upload-CwRQ9v3Y.cjs.map} +1 -1
- package/dist/{warning-CIRG3GTY.cjs → warning-DBphva9h.cjs} +2 -2
- package/dist/{warning-CIRG3GTY.cjs.map → warning-DBphva9h.cjs.map} +1 -1
- package/dist/{warning-filled-3hD1yAKv.cjs → warning-filled-Ctsg1oEC.cjs} +2 -2
- package/dist/{warning-filled-3hD1yAKv.cjs.map → warning-filled-Ctsg1oEC.cjs.map} +1 -1
- package/package.json +20 -43
- package/dist/es/components/external/CapitalOverview/components/GrantAction/GrantAction.js +0 -65
- package/dist/es/components/external/CapitalOverview/components/GrantAction/constants.js +0 -6
- package/dist/es/components/internal/SVGIcons/CheckedBox.js +0 -15
- package/dist/es/components/internal/SVGIcons/Checkmark.js +0 -17
- package/dist/es/components/internal/SVGIcons/ChevronDown.js +0 -17
- package/dist/es/components/internal/SVGIcons/ChevronLeft.js +0 -17
- package/dist/es/components/internal/SVGIcons/ChevronRight.js +0 -17
- package/dist/es/components/internal/SVGIcons/ChevronUp.js +0 -17
- package/dist/es/components/internal/SVGIcons/CloseCircle.js +0 -16
- package/dist/es/components/internal/SVGIcons/Download.js +0 -20
- package/dist/es/components/internal/SVGIcons/UncheckedBox.js +0 -9
- package/dist/es/components/internal/SVGIcons/Warning.js +0 -21
- package/dist/index-BKTWT4wv.cjs +0 -12
- package/dist/index-BKTWT4wv.cjs.map +0 -1
- package/dist/types/components/external/CapitalOverview/components/GrantAction/GrantAction.d.ts +0 -5
- package/dist/types/components/external/CapitalOverview/components/GrantAction/GrantAction.d.ts.map +0 -1
- package/dist/types/components/external/CapitalOverview/components/GrantAction/constants.d.ts +0 -4
- package/dist/types/components/external/CapitalOverview/components/GrantAction/types.d.ts +0 -7
- package/dist/types/components/external/CapitalOverview/components/GrantAction/types.d.ts.map +0 -1
- package/dist/types/components/external/CapitalOverview/components/GrantAction/utils.d.ts.map +0 -1
- package/dist/types/components/internal/SVGIcons/CheckedBox.d.ts +0 -10
- package/dist/types/components/internal/SVGIcons/CheckedBox.d.ts.map +0 -1
- package/dist/types/components/internal/SVGIcons/Checkmark.d.ts +0 -10
- package/dist/types/components/internal/SVGIcons/Checkmark.d.ts.map +0 -1
- package/dist/types/components/internal/SVGIcons/ChevronDown.d.ts +0 -10
- package/dist/types/components/internal/SVGIcons/ChevronDown.d.ts.map +0 -1
- package/dist/types/components/internal/SVGIcons/ChevronLeft.d.ts +0 -10
- package/dist/types/components/internal/SVGIcons/ChevronLeft.d.ts.map +0 -1
- package/dist/types/components/internal/SVGIcons/ChevronRight.d.ts +0 -10
- package/dist/types/components/internal/SVGIcons/ChevronRight.d.ts.map +0 -1
- package/dist/types/components/internal/SVGIcons/ChevronUp.d.ts +0 -10
- package/dist/types/components/internal/SVGIcons/ChevronUp.d.ts.map +0 -1
- package/dist/types/components/internal/SVGIcons/CloseCircle.d.ts +0 -7
- package/dist/types/components/internal/SVGIcons/CloseCircle.d.ts.map +0 -1
- package/dist/types/components/internal/SVGIcons/Download.d.ts +0 -7
- package/dist/types/components/internal/SVGIcons/Download.d.ts.map +0 -1
- package/dist/types/components/internal/SVGIcons/UncheckedBox.d.ts +0 -10
- package/dist/types/components/internal/SVGIcons/UncheckedBox.d.ts.map +0 -1
- package/dist/types/components/internal/SVGIcons/Warning.d.ts +0 -7
- package/dist/types/components/internal/SVGIcons/Warning.d.ts.map +0 -1
- package/dist/types/types/api/resources/CapitalResource.d.ts +0 -255
- package/dist/types/types/api/resources/CapitalResource.d.ts.map +0 -1
- /package/dist/es/components/external/CapitalOverview/components/{GrantAction → GrantActions}/utils.js +0 -0
- /package/dist/types/components/external/CapitalOverview/components/{GrantAction → GrantActions}/utils.d.ts +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as a } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import D from "classnames";
|
|
3
|
-
import { useMemo as
|
|
3
|
+
import { useMemo as s } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
4
4
|
import C from "../../../../../core/Context/useCoreContext.js";
|
|
5
5
|
import { ButtonVariant as f } from "../../../Button/types.js";
|
|
6
6
|
import L from "../../../Typography/Typography.js";
|
|
7
|
-
import u from "../../../
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import v from "../../../
|
|
7
|
+
import { TypographyVariant as u, TypographyElement as B } from "../../../Typography/types.js";
|
|
8
|
+
import { DROPDOWN_BUTTON_ICON_CLASS as p, DROPDOWN_BUTTON_TEXT_CLASS as R, DROPDOWN_BUTTON_MULTI_SELECT_COUNTER_CLASS as h, DROPDOWN_BUTTON_COLLAPSE_INDICATOR_CLASS as y, DROPDOWN_BUTTON_CLASS as A, DROPDOWN_BUTTON_VALID_CLASS as E, DROPDOWN_BUTTON_INVALID_CLASS as P, DROPDOWN_BUTTON_READONLY_CLASS as U, DROPDOWN_BUTTON_HAS_SELECTION_CLASS as g, DROPDOWN_BUTTON_ACTIVE_CLASS as x, DROPDOWN_BUTTON_CLASSNAME as I } from "../constants.js";
|
|
9
|
+
import { Fragment as W } from "../../../../../external/preact/dist/preact.module.js";
|
|
10
|
+
import b from "../../../Img/Img.js";
|
|
11
|
+
import { Icon as v } from "../../../Icon/Icon.js";
|
|
12
12
|
import w from "../../../Button/Button.js";
|
|
13
13
|
import { boolOrFalse as V } from "../../../../../utils/value/bool.js";
|
|
14
14
|
const F = ({
|
|
@@ -19,7 +19,7 @@ const F = ({
|
|
|
19
19
|
toggleButtonRef: l,
|
|
20
20
|
...n
|
|
21
21
|
}) => {
|
|
22
|
-
const r =
|
|
22
|
+
const r = s(() => i ? D(I, o) : o, [o, i]);
|
|
23
23
|
return i ? /* @__PURE__ */ a("div", { ...n, className: r, ref: l }) : /* @__PURE__ */ a(
|
|
24
24
|
w,
|
|
25
25
|
{
|
|
@@ -31,58 +31,58 @@ const F = ({
|
|
|
31
31
|
}
|
|
32
32
|
);
|
|
33
33
|
}, $ = (e) => {
|
|
34
|
-
var
|
|
35
|
-
const { i18n: m } = C(), { active: o, filterable: i, multiSelect: l, placeholder: n, readonly: r, showList:
|
|
34
|
+
var c, T;
|
|
35
|
+
const { i18n: m } = C(), { active: o, filterable: i, multiSelect: l, placeholder: n, readonly: r, showList: O, withoutCollapseIndicator: S } = e, d = s(() => (n == null ? void 0 : n.trim()) || m.get("select.filter.placeholder"), [m, n]), t = s(() => V(l) ? void 0 : o[0], [o, l]), N = s(() => {
|
|
36
36
|
var _;
|
|
37
|
-
return ((_ = t == null ? void 0 : t.name) == null ? void 0 : _.trim()) ||
|
|
38
|
-
}, [t,
|
|
37
|
+
return ((_ = t == null ? void 0 : t.name) == null ? void 0 : _.trim()) || d;
|
|
38
|
+
}, [t, d]);
|
|
39
39
|
return /* @__PURE__ */ a(
|
|
40
40
|
F,
|
|
41
41
|
{
|
|
42
42
|
active: o,
|
|
43
43
|
disabled: r,
|
|
44
44
|
"aria-disabled": r,
|
|
45
|
-
"aria-expanded":
|
|
45
|
+
"aria-expanded": O,
|
|
46
46
|
"aria-haspopup": "listbox",
|
|
47
|
-
className: D(
|
|
48
|
-
[
|
|
49
|
-
[
|
|
50
|
-
[
|
|
51
|
-
[
|
|
52
|
-
[
|
|
47
|
+
className: D(A, {
|
|
48
|
+
[x]: O,
|
|
49
|
+
[g]: !!o.length,
|
|
50
|
+
[U]: r,
|
|
51
|
+
[P]: e.isInvalid,
|
|
52
|
+
[E]: e.isValid
|
|
53
53
|
}),
|
|
54
54
|
filterable: i,
|
|
55
55
|
onClick: r ? void 0 : e.toggleList,
|
|
56
56
|
onKeyDown: r ? void 0 : e.onButtonKeyDown,
|
|
57
57
|
role: i ? "button" : void 0,
|
|
58
58
|
tabIndex: 0,
|
|
59
|
-
title:
|
|
59
|
+
title: N,
|
|
60
60
|
toggleButtonRef: e.toggleButtonRef,
|
|
61
61
|
type: i ? void 0 : "button",
|
|
62
62
|
"aria-describedby": e.ariaDescribedBy,
|
|
63
63
|
id: e.id ?? "",
|
|
64
64
|
children: [
|
|
65
|
-
|
|
65
|
+
O && i ? /* @__PURE__ */ a(
|
|
66
66
|
"input",
|
|
67
67
|
{
|
|
68
68
|
"aria-autocomplete": "list",
|
|
69
69
|
"aria-controls": e.selectListId,
|
|
70
|
-
"aria-expanded":
|
|
70
|
+
"aria-expanded": O,
|
|
71
71
|
"aria-owns": e.selectListId,
|
|
72
72
|
autoComplete: "off",
|
|
73
73
|
className: "adyen-pe-filter-input",
|
|
74
74
|
onInput: e.onInput,
|
|
75
|
-
placeholder:
|
|
75
|
+
placeholder: d,
|
|
76
76
|
ref: e.filterInputRef,
|
|
77
77
|
role: "combobox",
|
|
78
78
|
type: "text"
|
|
79
79
|
}
|
|
80
|
-
) : /* @__PURE__ */ a(
|
|
81
|
-
(t == null ? void 0 : t.icon) && /* @__PURE__ */ a(
|
|
82
|
-
/* @__PURE__ */ a("span", { className:
|
|
83
|
-
l && e.appliedFilterNumber > 0 && /* @__PURE__ */ a("div", { className:
|
|
80
|
+
) : /* @__PURE__ */ a(W, { children: [
|
|
81
|
+
(t == null ? void 0 : t.icon) && /* @__PURE__ */ a(b, { className: p, src: t.icon, alt: ((c = t == null ? void 0 : t.name) == null ? void 0 : c.trim()) ?? "" }),
|
|
82
|
+
/* @__PURE__ */ a("span", { className: R, children: ((T = t == null ? void 0 : t.selectedOptionName) == null ? void 0 : T.trim()) || N }),
|
|
83
|
+
l && e.appliedFilterNumber > 0 && /* @__PURE__ */ a("div", { className: h, children: /* @__PURE__ */ a(L, { el: B.SPAN, variant: u.BODY, stronger: !0, children: e.appliedFilterNumber }) })
|
|
84
84
|
] }),
|
|
85
|
-
!S && /* @__PURE__ */ a("span", { className:
|
|
85
|
+
!S && /* @__PURE__ */ a("span", { className: y, children: /* @__PURE__ */ a(v, { name: "chevron-down" }) })
|
|
86
86
|
]
|
|
87
87
|
}
|
|
88
88
|
);
|
|
@@ -1,51 +1,49 @@
|
|
|
1
1
|
import { jsx as s } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import
|
|
3
|
-
import { memo as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import d from "../../../SVGIcons/Checkmark.js";
|
|
7
|
-
import { DROPDOWN_ELEMENT_CHECKMARK_CLASS as S, DROPDOWN_ELEMENT_CLASS as D, DROPDOWN_ELEMENT_DISABLED_CLASS as _, DROPDOWN_ELEMENT_ACTIVE_CLASS as p, DROPDOWN_ELEMENT_ICON_CLASS as L, DROPDOWN_ELEMENT_CONTENT_CLASS as O, DROPDOWN_ELEMENT_CHECKBOX_CLASS as f } from "../constants.js";
|
|
2
|
+
import N from "classnames";
|
|
3
|
+
import { memo as E } from "../../../../../external/preact/compat/dist/compat.module.js";
|
|
4
|
+
import { DROPDOWN_ELEMENT_CHECKMARK_CLASS as C, DROPDOWN_ELEMENT_CLASS as S, DROPDOWN_ELEMENT_DISABLED_CLASS as d, DROPDOWN_ELEMENT_ACTIVE_CLASS as D, DROPDOWN_ELEMENT_ICON_CLASS as _, DROPDOWN_ELEMENT_CONTENT_CLASS as L, DROPDOWN_ELEMENT_CHECKBOX_CLASS as O } from "../constants.js";
|
|
5
|
+
import { Icon as n } from "../../../Icon/Icon.js";
|
|
8
6
|
import u from "../../../Img/Img.js";
|
|
9
|
-
import { Fragment as
|
|
10
|
-
import { boolOrFalse as
|
|
11
|
-
const
|
|
12
|
-
|
|
7
|
+
import { Fragment as f } from "../../../../../external/preact/dist/preact.module.js";
|
|
8
|
+
import { boolOrFalse as p } from "../../../../../utils/value/bool.js";
|
|
9
|
+
const h = (e) => e.multiSelect ? /* @__PURE__ */ s("span", { className: O, children: e.selected ? /* @__PURE__ */ s(n, { name: "checkmark-square-fill" }) : /* @__PURE__ */ s(n, { name: "square" }) }) : null, A = (e) => e.multiSelect ? null : /* @__PURE__ */ s("span", { className: C, children: e.selected && /* @__PURE__ */ s(n, { name: "checkmark" }) }), g = (e) => /* @__PURE__ */ s(f, { children: [
|
|
10
|
+
h(e),
|
|
13
11
|
/* @__PURE__ */ s("div", { className: e.contentClassName, children: [
|
|
14
12
|
e.item.icon && /* @__PURE__ */ s(u, { className: e.iconClassName, alt: e.item.name, src: e.item.icon }),
|
|
15
13
|
/* @__PURE__ */ s("span", { children: e.item.name })
|
|
16
14
|
] }),
|
|
17
|
-
|
|
18
|
-
] }),
|
|
19
|
-
const
|
|
20
|
-
[
|
|
21
|
-
[
|
|
15
|
+
A(e)
|
|
16
|
+
] }), M = ({ item: e, multiSelect: m, onKeyDown: i, onSelect: t, renderListItem: c, selected: l }) => {
|
|
17
|
+
const a = !!e.disabled, o = p(e.disabled) || null, r = N(S, {
|
|
18
|
+
[D]: l,
|
|
19
|
+
[d]: a
|
|
22
20
|
});
|
|
23
21
|
return /* @__PURE__ */ s(
|
|
24
22
|
"li",
|
|
25
23
|
{
|
|
26
|
-
"aria-disabled":
|
|
24
|
+
"aria-disabled": a,
|
|
27
25
|
"aria-selected": l,
|
|
28
|
-
className:
|
|
29
|
-
"data-disabled":
|
|
26
|
+
className: r,
|
|
27
|
+
"data-disabled": o,
|
|
30
28
|
"data-value": e.id,
|
|
31
|
-
onClick:
|
|
32
|
-
onKeyDown:
|
|
29
|
+
onClick: t,
|
|
30
|
+
onKeyDown: i,
|
|
33
31
|
title: e.name,
|
|
34
32
|
role: "option",
|
|
35
33
|
tabIndex: -1,
|
|
36
|
-
children:
|
|
34
|
+
children: c({
|
|
37
35
|
item: e,
|
|
38
|
-
multiSelect:
|
|
36
|
+
multiSelect: m,
|
|
39
37
|
selected: l,
|
|
40
|
-
contentClassName:
|
|
41
|
-
iconClassName:
|
|
38
|
+
contentClassName: L,
|
|
39
|
+
iconClassName: _
|
|
42
40
|
})
|
|
43
41
|
}
|
|
44
42
|
);
|
|
45
|
-
},
|
|
43
|
+
}, K = E(M);
|
|
46
44
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
K as default,
|
|
46
|
+
h as renderDefaultMultiSelectionCheckedness,
|
|
47
|
+
A as renderDefaultSingleSelectionCheckedness,
|
|
48
|
+
g as renderListItemDefault
|
|
51
49
|
};
|
|
@@ -1,69 +1,72 @@
|
|
|
1
1
|
import { jsx as a } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
2
|
+
import g from "classnames";
|
|
3
|
+
import v from "../../../core/Context/useCoreContext.js";
|
|
4
|
+
import { useMemo as N, useCallback as _ } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
5
|
+
import { ButtonVariant as l } from "../Button/types.js";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
), u = v(
|
|
7
|
+
import { Fragment as b } from "../../../external/preact/dist/preact.module.js";
|
|
8
|
+
import y from "../FormFields/Select/Select.js";
|
|
9
|
+
import c from "../Button/Button.js";
|
|
10
|
+
import { Icon as d } from "../Icon/Icon.js";
|
|
11
|
+
import { isNullish as T } from "../../../utils/value/is.js";
|
|
12
|
+
import { EMPTY_ARRAY as m } from "../../../utils/value/constants.js";
|
|
13
|
+
function j({ next: p, hasNext: o, hasPrev: s, prev: u, limit: f, limitOptions: r, onLimitSelection: i }) {
|
|
14
|
+
const { i18n: n } = v(), t = N(
|
|
15
|
+
() => r && Object.freeze(r.map((e) => ({ id: `${e}`, name: `${e}` }))),
|
|
16
|
+
[r]
|
|
17
|
+
), h = _(
|
|
19
18
|
({ target: e }) => {
|
|
20
|
-
|
|
19
|
+
T(e == null ? void 0 : e.value) || i == null || i(+e.value);
|
|
21
20
|
},
|
|
22
21
|
[i]
|
|
23
22
|
);
|
|
24
|
-
return /* @__PURE__ */ a("div", { "aria-label":
|
|
25
|
-
/* @__PURE__ */ a("div", { className: "adyen-pe-pagination__context", children:
|
|
26
|
-
/* @__PURE__ */ a("span", { children:
|
|
23
|
+
return /* @__PURE__ */ a("div", { "aria-label": n.get("paginatedNavigation"), className: `adyen-pe-pagination ${g({})}`, children: [
|
|
24
|
+
/* @__PURE__ */ a("div", { className: "adyen-pe-pagination__context", children: t && i && /* @__PURE__ */ a(b, { children: [
|
|
25
|
+
/* @__PURE__ */ a("span", { children: n.get("pagination.showing") }),
|
|
27
26
|
/* @__PURE__ */ a("div", { className: "adyen-pe-pagination__limit-selector", children: /* @__PURE__ */ a(
|
|
28
|
-
|
|
27
|
+
y,
|
|
29
28
|
{
|
|
30
29
|
setToTargetWidth: !0,
|
|
31
30
|
filterable: !1,
|
|
32
31
|
multiSelect: !1,
|
|
33
|
-
items:
|
|
34
|
-
onChange:
|
|
32
|
+
items: t,
|
|
33
|
+
onChange: h,
|
|
35
34
|
selected: `${f ?? ""}`
|
|
36
35
|
}
|
|
37
36
|
) })
|
|
38
37
|
] }) }),
|
|
39
38
|
/* @__PURE__ */ a("div", { className: "adyen-pe-pagination__controls", children: [
|
|
40
39
|
/* @__PURE__ */ a(
|
|
41
|
-
|
|
40
|
+
c,
|
|
42
41
|
{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
disabled: !o,
|
|
42
|
+
variant: l.TERTIARY,
|
|
43
|
+
disabled: !s,
|
|
46
44
|
iconButton: !0,
|
|
47
|
-
classNameModifiers: ["circle"].concat(
|
|
48
|
-
onClick:
|
|
49
|
-
children:
|
|
45
|
+
classNameModifiers: ["circle"].concat(s ? m : "disabled"),
|
|
46
|
+
onClick: u,
|
|
47
|
+
children: [
|
|
48
|
+
/* @__PURE__ */ a(d, { name: "chevron-left" }),
|
|
49
|
+
/* @__PURE__ */ a("span", { className: "adyen-pe-visually-hidden", children: n.get("pagination.previousPage") })
|
|
50
|
+
]
|
|
50
51
|
}
|
|
51
52
|
),
|
|
52
53
|
/* @__PURE__ */ a(
|
|
53
|
-
|
|
54
|
+
c,
|
|
54
55
|
{
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
disabled: !n,
|
|
56
|
+
variant: l.TERTIARY,
|
|
57
|
+
disabled: !o,
|
|
58
58
|
iconButton: !0,
|
|
59
|
-
classNameModifiers: ["circle"].concat(
|
|
60
|
-
onClick:
|
|
61
|
-
children:
|
|
59
|
+
classNameModifiers: ["circle"].concat(o ? m : "disabled"),
|
|
60
|
+
onClick: p,
|
|
61
|
+
children: [
|
|
62
|
+
/* @__PURE__ */ a("span", { className: "adyen-pe-visually-hidden", children: n.get("pagination.nextPage") }),
|
|
63
|
+
/* @__PURE__ */ a(d, { name: "chevron-right" })
|
|
64
|
+
]
|
|
62
65
|
}
|
|
63
66
|
)
|
|
64
67
|
] })
|
|
65
68
|
] });
|
|
66
69
|
}
|
|
67
70
|
export {
|
|
68
|
-
|
|
71
|
+
j as default
|
|
69
72
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const _ = "2-digit", A = "long", o = "numeric",
|
|
1
|
+
const _ = "2-digit", A = "long", o = "numeric", t = "short", E = "shortOffset", T = {
|
|
2
2
|
month: A,
|
|
3
3
|
day: o,
|
|
4
4
|
year: o
|
|
@@ -8,35 +8,36 @@ const _ = "2-digit", A = "long", o = "numeric", E = "short", t = "shortOffset",
|
|
|
8
8
|
}, n = {
|
|
9
9
|
...T,
|
|
10
10
|
...O,
|
|
11
|
-
month:
|
|
11
|
+
month: t,
|
|
12
12
|
hour12: !1
|
|
13
|
-
},
|
|
13
|
+
}, s = { ...n, year: void 0 }, R = { ...T, month: "short" }, S = { ...T, month: "long" }, e = T, M = s, D = { ...T, weekday: A }, I = { ...T, month: t }, c = n, F = s, m = {
|
|
14
14
|
...T,
|
|
15
15
|
...O,
|
|
16
16
|
weekday: A,
|
|
17
|
-
timeZoneName:
|
|
18
|
-
},
|
|
17
|
+
timeZoneName: E
|
|
18
|
+
}, N = T, h = {
|
|
19
19
|
...n,
|
|
20
20
|
hour12: !0,
|
|
21
|
-
timeZoneName:
|
|
22
|
-
},
|
|
23
|
-
month:
|
|
21
|
+
timeZoneName: E
|
|
22
|
+
}, r = {
|
|
23
|
+
month: t,
|
|
24
24
|
weekday: A,
|
|
25
25
|
hour: _,
|
|
26
26
|
minute: o,
|
|
27
27
|
year: void 0,
|
|
28
|
-
timeZoneName:
|
|
28
|
+
timeZoneName: E
|
|
29
29
|
};
|
|
30
30
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
R as DATE_FORMAT_CAPITAL_OVERVIEW,
|
|
32
|
+
N as DATE_FORMAT_DISPUTES,
|
|
33
|
+
h as DATE_FORMAT_DISPUTE_DETAILS,
|
|
34
|
+
S as DATE_FORMAT_MISSING_ACTION,
|
|
35
|
+
e as DATE_FORMAT_PAYOUTS,
|
|
36
|
+
M as DATE_FORMAT_PAYOUTS_MOBILE,
|
|
36
37
|
D as DATE_FORMAT_PAYOUT_DETAILS,
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
I as DATE_FORMAT_REPORTS,
|
|
39
|
+
r as DATE_FORMAT_RESPONSE_DEADLINE,
|
|
39
40
|
c as DATE_FORMAT_TRANSACTIONS,
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
F as DATE_FORMAT_TRANSACTIONS_MOBILE,
|
|
42
|
+
m as DATE_FORMAT_TRANSACTION_DETAILS
|
|
42
43
|
};
|
|
@@ -26,7 +26,7 @@ const p = (e) => {
|
|
|
26
26
|
}
|
|
27
27
|
}, O = (e) => {
|
|
28
28
|
var s;
|
|
29
|
-
const { headers: n = [], method: t = "GET" } = e, r = "1.
|
|
29
|
+
const { headers: n = [], method: t = "GET" } = e, r = "1.7.0", o = ((s = e.contentType) == null ? void 0 : s.toLowerCase()) ?? "application/json";
|
|
30
30
|
return {
|
|
31
31
|
method: t,
|
|
32
32
|
mode: "cors",
|
package/dist/es/core/core.js
CHANGED
|
@@ -77,6 +77,7 @@ const e = "Account", t = "Account Balance", n = "Account description", a = "Acco
|
|
|
77
77
|
"capital.sendRepaymentSubtitle": "Transfer money to this bank account to repay back part of your loan or the entirety of it.",
|
|
78
78
|
"capital.signTermsAndConditionsToReceiveFunds": "Sign the Terms & Conditions to receive your funds.",
|
|
79
79
|
"capital.signTheTermsToReceiveYourFunds": "Sign the terms to receive your funds",
|
|
80
|
+
"capital.submitInformation": "Submit information",
|
|
80
81
|
"capital.termEnds": "Term ends: ",
|
|
81
82
|
"capital.thereIsNoPrimaryAccountConfigured": "There is no primary account configured",
|
|
82
83
|
"capital.thisOfferExpiresOn": "This offer expires on %{date}.",
|
|
@@ -88,6 +89,9 @@ const e = "Account", t = "Account Balance", n = "Account description", a = "Acco
|
|
|
88
89
|
"capital.weCouldNotContinueWithTheOfferContactSupportForHelp": "We couldn't continue with the offer. Contact support for help.",
|
|
89
90
|
"capital.weCouldNotLoadFinancialOffers": "We couldn't load financial offers.",
|
|
90
91
|
"capital.weCouldNotProcessThisRequestTryAgain": "We couldn't process this request. Try again with a new offer.",
|
|
92
|
+
"capital.weNeedABitMoreInformationToProcessYourFundsPleaseCompleteTheseActions": "We need a bit more information to process your funds. Please complete these actions:",
|
|
93
|
+
"capital.weNeedABitMoreInformationToProcessYourFundsPleaseCompleteThisAction": "We need a bit more information to process your funds. Please complete this action:",
|
|
94
|
+
"capital.weNeedABitMoreInformationToProcessYourFundsPleaseCompleteThisActionBy": "We need a bit more information to process your funds. Please complete this action by %{date}:",
|
|
91
95
|
"capital.weReceivedYourRequestAndWeAreWorkingOnItNowCheckBackSoon": "We received your request and we’re working on it now. Check back soon for the next steps.",
|
|
92
96
|
"capital.writtenOff": "Written off",
|
|
93
97
|
"capital.xDays": "%{days} days",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
2
|
-
//# sourceMappingURL=external-link-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CldOsFs0.cjs"),i=t=>e.u("svg",{width:11,height:11,viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:e.u("path",{d:"M0.939453 9L8.18945 1.75H3.25011V0.25H10.7501V7.75H9.25011V2.81066L2.00011 10.0607L0.939453 9Z",fill:"#00112C"})});exports.default=i;
|
|
2
|
+
//# sourceMappingURL=external-link-Y0ITwX_D.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-link-
|
|
1
|
+
{"version":3,"file":"external-link-Y0ITwX_D.cjs","sources":["../src/images/icons/external-link.svg?component"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nconst SvgExternalLink = (props) => /* @__PURE__ */ jsx(\"svg\", { width: 11, height: 11, viewBox: \"0 0 11 11\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", ...props, children: /* @__PURE__ */ jsx(\"path\", { d: \"M0.939453 9L8.18945 1.75H3.25011V0.25H10.7501V7.75H9.25011V2.81066L2.00011 10.0607L0.939453 9Z\", fill: \"#00112C\" }) });\nexport default SvgExternalLink;\n"],"names":["SvgExternalLink","props","jsx"],"mappings":"wHACMA,EAAmBC,GAA0BC,EAAG,EAAC,MAAO,CAAE,MAAO,GAAI,OAAQ,GAAI,QAAS,YAAa,KAAM,OAAQ,MAAO,6BAA8B,GAAGD,EAAO,SAA0BC,EAAG,EAAC,OAAQ,CAAE,EAAG,iGAAkG,KAAM,SAAW,CAAA,CAAG,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-
|
|
2
|
-
//# sourceMappingURL=filter-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-CldOsFs0.cjs"),t=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:"M1.25 1.25h13.5v2.8c0 .6-.24 1.17-.66 1.59l-4.01 4.01v1.97l-2.74 3.14H5.92v-5.1L1.91 5.63a2.3 2.3 0 0 1-.66-1.59zm1.5 1.5v1.3q0 .31.22.53l4.45 4.45v3.36l1.16-1.33V9.03l4.45-4.45a.8.8 0 0 0 .22-.53v-1.3z"})});exports.default=t;
|
|
2
|
+
//# sourceMappingURL=filter-B0jf9LNT.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-
|
|
1
|
+
{"version":3,"file":"filter-B0jf9LNT.cjs","sources":["../src/images/icons/filter.svg?component"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nconst SvgFilter = (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: \"M1.25 1.25h13.5v2.8c0 .6-.24 1.17-.66 1.59l-4.01 4.01v1.97l-2.74 3.14H5.92v-5.1L1.91 5.63a2.3 2.3 0 0 1-.66-1.59zm1.5 1.5v1.3q0 .31.22.53l4.45 4.45v3.36l1.16-1.33V9.03l4.45-4.45a.8.8 0 0 0 .22-.53v-1.3z\" }) });\nexport default SvgFilter;\n"],"names":["SvgFilter","props","jsx"],"mappings":"wHACMA,EAAaC,GAA0BC,EAAAA,EAAI,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAA0BC,EAAAA,EAAI,OAAQ,CAAE,KAAM,eAAgB,EAAG,4MAA4M,CAAE,CAAG,CAAA"}
|