@adyen/adyen-platform-experience-web 1.0.0-beta.2 → 1.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ModalContent-387502da.js +2 -0
- package/dist/{ModalContent-88fdb6f4.js.map → ModalContent-387502da.js.map} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/es/components/external/TransactionDetails/TransactionDetails.js +6 -6
- package/dist/es/components/external/TransactionDetails/components/TransactionData.js +3 -3
- package/dist/es/components/external/TransactionDetails/components/TransactionDetails.js +6 -6
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +2 -2
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.js +7 -7
- package/dist/es/components/external/TransactionsOverview/components/Balances/Balances.js +9 -9
- package/dist/es/components/external/TransactionsOverview/components/ModalContent.js +4 -4
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +6 -6
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +7 -7
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +15 -15
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +3 -3
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.js +6 -6
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +7 -7
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +31 -31
- package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.js +15 -15
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +6 -6
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.js +21 -21
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.js +21 -21
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +30 -30
- package/dist/es/components/external/TransactionsOverview/components/utils.js +1 -1
- package/dist/es/components/external/TransactionsOverview/hooks/useMaxWidths.js +4 -4
- package/dist/es/components/external/UIElement.js +4 -4
- package/dist/es/components/internal/BaseButton/BaseButton.js +11 -11
- package/dist/es/components/internal/BaseList/BaseList.js +2 -2
- package/dist/es/components/internal/Button/Button.js +9 -9
- package/dist/es/components/internal/Button/hooks/useButton.js +2 -2
- package/dist/es/components/internal/Calendar/components/CalendarControls/CalendarControls.js +2 -2
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +4 -4
- package/dist/es/components/internal/Calendar/hooks/useCalendar.js +13 -13
- package/dist/es/components/internal/Calendar/hooks/useTimezone.js +2 -2
- package/dist/es/components/internal/DataGrid/DataGrid.js +6 -6
- package/dist/es/components/internal/DataGrid/components/InteractiveBody.js +8 -8
- package/dist/es/components/internal/DataGrid/components/TableBody.js +5 -5
- package/dist/es/components/internal/DataGrid/components/TableCells.js +2 -2
- package/dist/es/components/internal/DataGrid/hooks/useInteractiveDataGrid.js +2 -2
- package/dist/es/components/internal/DatePicker/DatePicker.js +9 -9
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.js +9 -9
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +29 -29
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +10 -10
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +14 -14
- package/dist/es/components/internal/FilterBar/FilterBar.js +12 -12
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +8 -8
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +26 -26
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +3 -3
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +27 -27
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +17 -17
- package/dist/es/components/internal/FormFields/InputBase.js +16 -16
- package/dist/es/components/internal/FormFields/InputText.js +2 -2
- package/dist/es/components/internal/FormFields/Select/Select.js +27 -27
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +16 -16
- package/dist/es/components/internal/FormFields/Select/components/SelectList.js +21 -21
- package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +9 -9
- package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +7 -7
- package/dist/es/components/internal/Image/Image.js +2 -2
- package/dist/es/components/internal/Img/Img.js +4 -4
- package/dist/es/components/internal/Modal/Modal.js +16 -16
- package/dist/es/components/internal/Pagination/Pagination.js +4 -4
- package/dist/es/components/internal/Pagination/hooks/usePageLimit.js +2 -2
- package/dist/es/components/internal/Pagination/hooks/usePaginatedRecords.js +42 -44
- package/dist/es/components/internal/Pagination/hooks/usePagination.js +15 -15
- package/dist/es/components/internal/Popover/Popover.js +31 -31
- package/dist/es/components/internal/Popover/PopoverTitle/PopoverTitle.js +2 -2
- package/dist/es/components/internal/SVGIcons/ChevronLeft.js +3 -3
- package/dist/es/components/internal/SVGIcons/ChevronRight.js +3 -3
- package/dist/es/components/internal/SVGIcons/ChevronUp.js +2 -2
- package/dist/es/components/internal/SVGIcons/Filter.js +2 -2
- package/dist/es/components/internal/Tag/Tag.js +3 -3
- package/dist/es/components/internal/Tooltip/Tooltip.js +3 -3
- package/dist/es/components/internal/Typography/Typography.js +2 -2
- package/dist/es/core/Auth/AuthProvider.js +6 -6
- package/dist/es/core/Context/CoreProvider.js +4 -4
- package/dist/es/core/Localization/utils.js +30 -30
- package/dist/es/core/Session/Session.js +1 -1
- package/dist/es/core/core.js +9 -9
- package/dist/es/external/preact/compat/dist/compat.module.js +86 -86
- package/dist/es/external/preact/dist/preact.module.js +241 -234
- package/dist/es/external/preact/hooks/dist/hooks.module.js +86 -84
- package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +5 -5
- package/dist/es/hooks/element/useClickOutside.js +2 -2
- package/dist/es/hooks/element/useDetachedRender.js +2 -2
- package/dist/es/hooks/element/useFocusCursor.js +2 -2
- package/dist/es/hooks/element/useFocusTrap.js +2 -2
- package/dist/es/hooks/element/usePopoverPositioner.js +27 -27
- package/dist/es/hooks/useCommitAction/useCommitAction.js +2 -2
- package/dist/es/hooks/useFetch/useFetch.js +1 -1
- package/dist/es/hooks/useModalDetails/useModalDetails.js +4 -4
- package/dist/es/hooks/useReactiveState/useReactiveState.js +10 -10
- package/dist/es/hooks/useSetupEndpoint/useSetupEndpoint.js +4 -4
- package/dist/es/utils/SessionStorage.js +31 -0
- package/dist/index-8daceaea.js +12 -0
- package/dist/index-8daceaea.js.map +1 -0
- package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts +2 -2
- package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts +2 -2
- package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts +1 -5
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/utils.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useMaxWidths.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts +2 -2
- package/dist/types/components/internal/Button/constants.d.ts +7 -7
- package/dist/types/components/internal/Button/constants.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/shared/indexed/index.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/components/CalendarGrid/utils.d.ts +2 -2
- package/dist/types/components/internal/Calendar/components/CalendarGrid/utils.d.ts.map +1 -1
- package/dist/types/components/internal/CopyText/CopyText.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/SkeletonBody.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/components/SkeletonBody.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/TableBody.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/components/TableBody.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/hooks/useInteractiveDataGrid.d.ts.map +1 -1
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.d.ts +1 -1
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/Select.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectButton.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +1 -3
- package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/constants.d.ts +21 -21
- package/dist/types/components/internal/FormFields/Select/constants.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/index.d.ts +1 -1
- package/dist/types/components/internal/FormFields/index.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/useCursorPaginatedRecords.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/useOffsetPaginatedRecords.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePaginatedRecords.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePaginatedRecordsFilters.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePagination.d.ts +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePagination.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/types.d.ts +5 -1
- package/dist/types/components/internal/Pagination/types.d.ts.map +1 -1
- package/dist/types/components/internal/Popover/constants.d.ts +6 -6
- package/dist/types/components/internal/Popover/constants.d.ts.map +1 -1
- package/dist/types/components/internal/Tooltip/useTooltipListeners.d.ts.map +1 -1
- package/dist/types/components/types.d.ts +2 -0
- package/dist/types/components/types.d.ts.map +1 -1
- package/dist/types/core/Localization/amount/amount-util.d.ts +28 -0
- package/dist/types/core/Localization/amount/amount-util.d.ts.map +1 -1
- package/dist/types/core/Localization/datetime/restamper/utils.d.ts.map +1 -1
- package/dist/types/core/Localization/localization-utils.d.ts.map +1 -1
- package/dist/types/core/Localization/utils.d.ts +468 -3
- package/dist/types/core/Localization/utils.d.ts.map +1 -1
- package/dist/types/core/core.d.ts +19 -0
- package/dist/types/core/core.d.ts.map +1 -1
- package/dist/types/core/types.d.ts +5 -0
- package/dist/types/core/types.d.ts.map +1 -1
- package/dist/types/hooks/element/useClickOutside.d.ts +1 -1
- package/dist/types/hooks/element/useClickOutside.d.ts.map +1 -1
- package/dist/types/hooks/element/useDetachedRender.d.ts.map +1 -1
- package/dist/types/hooks/element/useFocusTrap.d.ts.map +1 -1
- package/dist/types/hooks/useImageUrl/useImageUrl.d.ts.map +1 -1
- package/dist/types/hooks/useModalDetails/useModalDetails.d.ts.map +1 -1
- package/dist/types/hooks/useMounted/useMounted.d.ts +1 -1
- package/dist/types/hooks/useMounted/useMounted.d.ts.map +1 -1
- package/dist/types/hooks/useReactiveState/useReactiveState.d.ts.map +1 -1
- package/dist/types/hooks/useReflex/core/reflex.d.ts.map +1 -1
- package/dist/types/hooks/useReflex/core/utils.d.ts.map +1 -1
- package/dist/types/hooks/useReflex/hooks/useReflex.d.ts.map +1 -1
- package/dist/types/hooks/useSessionAwareRequest/useSessionAwareRequest.d.ts.map +1 -1
- package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts +1 -1
- package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts.map +1 -1
- package/dist/types/types/models/openapi/BalanceAccountsResource.d.ts +104 -0
- package/dist/types/types/models/openapi/BalanceAccountsResource.d.ts.map +1 -0
- package/dist/types/types/models/openapi/SetupResource.d.ts +59 -0
- package/dist/types/types/models/openapi/SetupResource.d.ts.map +1 -0
- package/dist/types/types/models/openapi/TransactionsResource.d.ts +198 -0
- package/dist/types/types/models/openapi/TransactionsResource.d.ts.map +1 -0
- package/dist/types/types/models/openapi/endpoints.d.ts +11 -0
- package/dist/types/types/models/openapi/endpoints.d.ts.map +1 -0
- package/dist/types/utils/SessionStorage.d.ts +11 -0
- package/dist/types/utils/SessionStorage.d.ts.map +1 -0
- package/dist/types/utils/common/index.d.ts +2 -2
- package/dist/types/utils/common/index.d.ts.map +1 -1
- package/dist/types/utils/fixedForwardRef.d.ts +3 -3
- package/dist/types/utils/fixedForwardRef.d.ts.map +1 -1
- package/dist/types/utils/watchable/core/Watchable.d.ts +5 -3
- package/dist/types/utils/watchable/core/Watchable.d.ts.map +1 -1
- package/dist/types/utils/watchable/core/helpers.d.ts +4 -2
- package/dist/types/utils/watchable/core/helpers.d.ts.map +1 -1
- package/dist/types/utils/watchable/core/syncEffect.d.ts +1 -1
- package/dist/types/utils/watchable/core/syncEffect.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/ModalContent-88fdb6f4.js +0 -2
- package/dist/es/utils/Storage.js +0 -31
- package/dist/index-7e2df524.js +0 -12
- package/dist/index-7e2df524.js.map +0 -1
- package/dist/types/utils/Storage.d.ts +0 -11
- package/dist/types/utils/Storage.d.ts.map +0 -1
|
@@ -9,17 +9,17 @@ import A from "../../../Img/Img.js";
|
|
|
9
9
|
import { Fragment as T } from "../../../../../external/preact/dist/preact.module.js";
|
|
10
10
|
const B = ({
|
|
11
11
|
iconClassName: e,
|
|
12
|
-
item:
|
|
13
|
-
multiSelect:
|
|
12
|
+
item: r,
|
|
13
|
+
multiSelect: o,
|
|
14
14
|
selected: s
|
|
15
15
|
}) => /* @__PURE__ */ a(T, { children: [
|
|
16
|
-
|
|
16
|
+
o && /* @__PURE__ */ a("span", { className: C, children: s ? /* @__PURE__ */ a(d, { role: "presentation" }) : /* @__PURE__ */ a(N, { role: "presentation" }) }),
|
|
17
17
|
/* @__PURE__ */ a("div", { className: D, children: [
|
|
18
|
-
|
|
19
|
-
/* @__PURE__ */ a("span", { children:
|
|
18
|
+
r.icon && /* @__PURE__ */ a(A, { className: e, alt: r.name, src: r.icon }),
|
|
19
|
+
/* @__PURE__ */ a("span", { children: r.name })
|
|
20
20
|
] }),
|
|
21
|
-
!
|
|
22
|
-
] }), h = ({ item: e, multiSelect:
|
|
21
|
+
!o && /* @__PURE__ */ a("span", { className: L, children: s && /* @__PURE__ */ a(_, { role: "presentation" }) })
|
|
22
|
+
] }), h = ({ item: e, multiSelect: r, onKeyDown: o, onSelect: s, renderListItem: i, selected: n }) => {
|
|
23
23
|
const t = !!e.disabled, l = e.disabled === !0 || null, m = c(p, {
|
|
24
24
|
[O]: n,
|
|
25
25
|
[S]: t
|
|
@@ -33,11 +33,11 @@ const B = ({
|
|
|
33
33
|
"data-disabled": l,
|
|
34
34
|
"data-value": e.id,
|
|
35
35
|
onClick: s,
|
|
36
|
-
onKeyDown:
|
|
36
|
+
onKeyDown: o,
|
|
37
37
|
title: e.name,
|
|
38
38
|
role: "option",
|
|
39
39
|
tabIndex: -1,
|
|
40
|
-
children: i({ item: e, multiSelect:
|
|
40
|
+
children: i({ item: e, multiSelect: r, selected: n, iconClassName: f })
|
|
41
41
|
}
|
|
42
42
|
);
|
|
43
43
|
}, K = E(h);
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { useCallback as i, useState as
|
|
1
|
+
import { useCallback as i, useState as p, useEffect as O } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
2
2
|
import { EMPTY_ARRAY as t } from "../../../../../utils/common/constants.js";
|
|
3
3
|
const g = ({ items: f, multiSelect: r, selected: l }) => {
|
|
4
4
|
const a = i(
|
|
5
5
|
(c = t) => {
|
|
6
|
-
const e = t.concat(c ?? t).filter(Boolean), n = f.filter((
|
|
6
|
+
const e = t.concat(c ?? t).filter(Boolean), n = f.filter((b) => e.includes(b.id)), o = r ? n : n.slice(0, 1);
|
|
7
7
|
return o.length ? Object.freeze(o) : t;
|
|
8
8
|
},
|
|
9
9
|
[f, r]
|
|
10
|
-
), [d, s] =
|
|
10
|
+
), [d, s] = p(a(l)), u = i(
|
|
11
11
|
(c = t) => {
|
|
12
12
|
const e = c.filter((n) => f.includes(n));
|
|
13
13
|
s(e.length ? Object.freeze(e) : t);
|
|
14
14
|
},
|
|
15
15
|
[f, s]
|
|
16
|
-
),
|
|
16
|
+
), x = i(
|
|
17
17
|
(c) => {
|
|
18
18
|
s((e) => {
|
|
19
19
|
const n = e.indexOf(c);
|
|
@@ -27,8 +27,8 @@ const g = ({ items: f, multiSelect: r, selected: l }) => {
|
|
|
27
27
|
},
|
|
28
28
|
[r, s]
|
|
29
29
|
);
|
|
30
|
-
return O(() => s(a(l)), [a, l, s]), { resetSelection: u, select:
|
|
31
|
-
},
|
|
30
|
+
return O(() => s(a(l)), [a, l, s]), { resetSelection: u, select: x, selection: d };
|
|
31
|
+
}, _ = g;
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
_ as default
|
|
34
34
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as t } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.m
|
|
|
2
2
|
import i from "classnames";
|
|
3
3
|
import { useImageUrl as p } from "../../../hooks/useImageUrl/useImageUrl.js";
|
|
4
4
|
import { useMemo as c } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
5
|
-
const
|
|
5
|
+
const l = ({ folder: m = "components/", className: r, alt: e, name: s, extension: o }) => {
|
|
6
6
|
const a = p({
|
|
7
7
|
options: c(() => ({ imageFolder: m, extension: o }), [o, m]),
|
|
8
8
|
name: s
|
|
@@ -10,5 +10,5 @@ const u = ({ folder: m = "components/", className: r, alt: e, name: s, extension
|
|
|
10
10
|
return /* @__PURE__ */ t("img", { className: i("adyen-pe__image", r), alt: e, src: a });
|
|
11
11
|
};
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
l as Image
|
|
14
14
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as n } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import { useState as p, useRef as N, useEffect as
|
|
3
|
-
import
|
|
2
|
+
import { useState as p, useRef as N, useEffect as y } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
3
|
+
import E from "classnames";
|
|
4
4
|
import "./Img.scss.js";
|
|
5
5
|
function L(s) {
|
|
6
6
|
const { backgroundUrl: a = "", className: c = "", classNameModifiers: m = [], src: l = "", alt: d = "", showOnError: f = !1 } = s, [i, o] = p(!1), r = N(null), u = () => {
|
|
7
7
|
o(!0);
|
|
8
8
|
}, g = () => {
|
|
9
9
|
o(f);
|
|
10
|
-
}, t =
|
|
10
|
+
}, t = E(
|
|
11
11
|
[c],
|
|
12
12
|
"adyen-pe-image",
|
|
13
13
|
{ "adyen-pe-image--loaded": i },
|
|
14
14
|
...m.map((e) => `adyen-pe-image--${e}`)
|
|
15
15
|
);
|
|
16
|
-
return
|
|
16
|
+
return y(() => {
|
|
17
17
|
const e = a ? new Image() : r.current;
|
|
18
18
|
e && (e.src = a || l, e.onload = u), o(!!(e != null && e.complete));
|
|
19
19
|
}, []), a ? /* @__PURE__ */ n("div", { style: { backgroundUrl: a }, ...s, className: t }) : /* @__PURE__ */ n("img", { ...s, alt: d, ref: r, className: t, onError: g });
|
|
@@ -2,17 +2,17 @@ import { jsx as a } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.m
|
|
|
2
2
|
import { ButtonVariant as s } from "../Button/types.js";
|
|
3
3
|
import v from "../SVGIcons/Close.js";
|
|
4
4
|
import g from "../../../core/Context/useCoreContext.js";
|
|
5
|
-
import { useRef as k, useCallback as
|
|
6
|
-
import
|
|
5
|
+
import { useRef as k, useCallback as u, useEffect as x } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
6
|
+
import c from "classnames";
|
|
7
7
|
import "./Modal.scss.js";
|
|
8
|
-
import
|
|
9
|
-
import { Fragment as
|
|
10
|
-
function
|
|
8
|
+
import E from "../Button/Button.js";
|
|
9
|
+
import { Fragment as N } from "../../../external/preact/dist/preact.module.js";
|
|
10
|
+
function L(r) {
|
|
11
11
|
return !(!r || !("nodeType" in r));
|
|
12
12
|
}
|
|
13
13
|
function M({
|
|
14
14
|
title: r,
|
|
15
|
-
children:
|
|
15
|
+
children: i,
|
|
16
16
|
classNameModifiers: f = [],
|
|
17
17
|
isOpen: e,
|
|
18
18
|
onClose: n,
|
|
@@ -21,22 +21,22 @@ function M({
|
|
|
21
21
|
size: t = "fluid",
|
|
22
22
|
...h
|
|
23
23
|
}) {
|
|
24
|
-
const l = k(null), { i18n: w } = g(), _ =
|
|
24
|
+
const l = k(null), { i18n: w } = g(), _ = u(
|
|
25
25
|
(o) => {
|
|
26
|
-
var
|
|
27
|
-
d && e &&
|
|
26
|
+
var p;
|
|
27
|
+
d && e && L(o.target) && !((p = l == null ? void 0 : l.current) != null && p.contains(o.target)) && n();
|
|
28
28
|
},
|
|
29
29
|
[d, e, n]
|
|
30
|
-
), m =
|
|
30
|
+
), m = u(
|
|
31
31
|
(o) => {
|
|
32
32
|
o.key === "Escape" && e && d && n();
|
|
33
33
|
},
|
|
34
34
|
[e, d, n]
|
|
35
35
|
);
|
|
36
|
-
return
|
|
36
|
+
return x(() => (e ? window.addEventListener("keydown", m) : window.removeEventListener("keydown", m), () => window.removeEventListener("keydown", m)), [e, m]), /* @__PURE__ */ a(N, { children: e && /* @__PURE__ */ a(
|
|
37
37
|
"div",
|
|
38
38
|
{
|
|
39
|
-
className:
|
|
39
|
+
className: c(
|
|
40
40
|
"adyen-pe-modal-wrapper",
|
|
41
41
|
f.map((o) => `adyen-pe-modal-wrapper--${o}`),
|
|
42
42
|
{ "adyen-pe-modal-wrapper--open": e, "adyen-pe-modal-wrapper--dismissible": d }
|
|
@@ -49,7 +49,7 @@ function M({
|
|
|
49
49
|
children: /* @__PURE__ */ a(
|
|
50
50
|
"div",
|
|
51
51
|
{
|
|
52
|
-
className:
|
|
52
|
+
className: c("adyen-pe-modal", {
|
|
53
53
|
"adyen-pe-modal--fluid": t === "fluid",
|
|
54
54
|
"adyen-pe-modal--small": t === "small",
|
|
55
55
|
"adyen-pe-modal--large": t === "large",
|
|
@@ -61,14 +61,14 @@ function M({
|
|
|
61
61
|
/* @__PURE__ */ a(
|
|
62
62
|
"div",
|
|
63
63
|
{
|
|
64
|
-
className:
|
|
64
|
+
className: c("adyen-pe-modal__header", {
|
|
65
65
|
"adyen-pe-modal__header--with-title": r,
|
|
66
66
|
"adyen-pe-modal__header--with-border-bottom": y
|
|
67
67
|
}),
|
|
68
68
|
children: [
|
|
69
69
|
r && /* @__PURE__ */ a("div", { className: "adyen-pe-modal__header__title", children: r }),
|
|
70
70
|
d && /* @__PURE__ */ a(
|
|
71
|
-
|
|
71
|
+
E,
|
|
72
72
|
{
|
|
73
73
|
onClick: n,
|
|
74
74
|
variant: s.TERTIARY,
|
|
@@ -80,7 +80,7 @@ function M({
|
|
|
80
80
|
]
|
|
81
81
|
}
|
|
82
82
|
),
|
|
83
|
-
/* @__PURE__ */ a("div", { className: "adyen-pe-modal__content", children:
|
|
83
|
+
/* @__PURE__ */ a("div", { className: "adyen-pe-modal__content", children: i })
|
|
84
84
|
]
|
|
85
85
|
}
|
|
86
86
|
)
|
|
@@ -5,8 +5,8 @@ import v from "classnames";
|
|
|
5
5
|
import { useMemo as h, useCallback as C } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
6
6
|
import "./Pagination.scss.js";
|
|
7
7
|
import _ from "../SVGIcons/ChevronLeft.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import R from "../SVGIcons/ChevronRight.js";
|
|
9
|
+
import T from "../FormFields/Select/Select.js";
|
|
10
10
|
import s from "../Button/Button.js";
|
|
11
11
|
import { EMPTY_ARRAY as c } from "../../../utils/common/constants.js";
|
|
12
12
|
function I({ next: m, hasNext: r, hasPrev: o, page: p, prev: f, limit: u, limitOptions: t, onLimitSelection: i }) {
|
|
@@ -27,7 +27,7 @@ function I({ next: m, hasNext: r, hasPrev: o, page: p, prev: f, limit: u, limitO
|
|
|
27
27
|
p
|
|
28
28
|
] }),
|
|
29
29
|
l && i && /* @__PURE__ */ a("div", { className: "adyen-pe-pagination__limit-selector", children: /* @__PURE__ */ a(
|
|
30
|
-
|
|
30
|
+
T,
|
|
31
31
|
{
|
|
32
32
|
setToTargetWidth: !0,
|
|
33
33
|
filterable: !1,
|
|
@@ -60,7 +60,7 @@ function I({ next: m, hasNext: r, hasPrev: o, page: p, prev: f, limit: u, limitO
|
|
|
60
60
|
iconButton: !0,
|
|
61
61
|
classNameModifiers: ["circle"].concat(r ? c : "disabled"),
|
|
62
62
|
onClick: m,
|
|
63
|
-
children: /* @__PURE__ */ a(
|
|
63
|
+
children: /* @__PURE__ */ a(R, { disabled: !r })
|
|
64
64
|
}
|
|
65
65
|
)
|
|
66
66
|
] })
|
|
@@ -1,82 +1,80 @@
|
|
|
1
|
-
import { useState as D, useRef as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { EMPTY_OBJECT as
|
|
10
|
-
const se = [
|
|
1
|
+
import { useState as D, useRef as w, useMemo as E, useCallback as y, useEffect as O } from "../../../../external/preact/hooks/dist/hooks.module.js";
|
|
2
|
+
import Q from "./usePageLimit.js";
|
|
3
|
+
import W from "./useCursorPagination.js";
|
|
4
|
+
import Z from "./useOffsetPagination.js";
|
|
5
|
+
import C from "./usePaginatedRecordsFilters.js";
|
|
6
|
+
import { PaginationType as z, PageNeighbour as F } from "../types.js";
|
|
7
|
+
import ee from "../../../../hooks/useBooleanState/useBooleanState.js";
|
|
8
|
+
import te from "../../../../hooks/useMounted/useMounted.js";
|
|
9
|
+
import { EMPTY_OBJECT as re } from "../../../../utils/common/constants.js";
|
|
10
|
+
const se = ["hasNext", "hasPrevious"], b = (e) => {
|
|
11
11
|
const t = Object.getOwnPropertyNames(e);
|
|
12
|
-
return !
|
|
13
|
-
},
|
|
12
|
+
return !se.some((r) => t.includes(r));
|
|
13
|
+
}, oe = (e, t = "data") => {
|
|
14
14
|
const r = e[t];
|
|
15
|
-
if (
|
|
15
|
+
if (b(e)) {
|
|
16
16
|
const n = Object.fromEntries(
|
|
17
|
-
Object.entries(e
|
|
18
|
-
([s, o]) => se.includes(s) && o
|
|
19
|
-
)
|
|
17
|
+
Object.entries(e._links).map(([s, o]) => [s, o.cursor])
|
|
20
18
|
);
|
|
21
19
|
return { records: r, paginationData: n };
|
|
22
20
|
}
|
|
23
21
|
throw new TypeError("MALFORMED_PAGINATED_DATA");
|
|
24
|
-
},
|
|
22
|
+
}, ae = (e, t = "data") => {
|
|
25
23
|
const r = e[t];
|
|
26
|
-
if (!
|
|
24
|
+
if (!b(e)) {
|
|
27
25
|
const { hasNext: n, hasPrevious: s } = e, o = {
|
|
28
|
-
[
|
|
29
|
-
[
|
|
26
|
+
[F.NEXT]: n === !0,
|
|
27
|
+
[F.PREV]: s === !0
|
|
30
28
|
};
|
|
31
29
|
return { records: r, paginationData: o };
|
|
32
30
|
}
|
|
33
31
|
throw new TypeError("MALFORMED_PAGINATED_DATA");
|
|
34
|
-
},
|
|
32
|
+
}, ne = ({
|
|
35
33
|
dataField: e = "data",
|
|
36
34
|
fetchRecords: t,
|
|
37
|
-
filterParams: r =
|
|
35
|
+
filterParams: r = re,
|
|
38
36
|
initialFiltersSameAsDefault: n = !0,
|
|
39
37
|
initialize: s,
|
|
40
38
|
onFiltersChanged: o,
|
|
41
|
-
onLimitChanged:
|
|
39
|
+
onLimitChanged: f,
|
|
42
40
|
pagination: $,
|
|
43
|
-
preferredLimit:
|
|
44
|
-
preferredLimitOptions:
|
|
41
|
+
preferredLimit: x,
|
|
42
|
+
preferredLimitOptions: h,
|
|
45
43
|
enabled: A
|
|
46
44
|
}) => {
|
|
47
|
-
const [
|
|
48
|
-
() => $ ===
|
|
45
|
+
const [j, v] = D([]), [I, P] = ee(!0), [L, T] = D(), [S, k] = D(x), l = te(), m = w(!0), d = w(1), M = C(r, n), { limit: c, limitOptions: q } = Q({ preferredLimit: S, preferredLimitOptions: h }), { defaultFilters: ce, filters: a, updateFilters: B, ...G } = M, [J, U] = E(
|
|
46
|
+
() => $ === z.CURSOR ? [oe, W] : [ae, Z],
|
|
49
47
|
[]
|
|
50
|
-
),
|
|
51
|
-
|
|
52
|
-
async ({ page:
|
|
48
|
+
), V = y((R) => k(R), []), { goto: g, page: X, pages: Y, resetPagination: N, ...H } = U(
|
|
49
|
+
y(
|
|
50
|
+
async ({ page: R, ...K }, i) => {
|
|
53
51
|
try {
|
|
54
|
-
if (
|
|
52
|
+
if (T(void 0), d.current = R, !l.current || P(!0))
|
|
55
53
|
return;
|
|
56
|
-
const p = await t({ ...
|
|
57
|
-
return
|
|
54
|
+
const p = await t({ ...K, ...a }, i), { records: u, paginationData: _ } = J(p, e);
|
|
55
|
+
return m.current && (s == null || s([u, _], M), m.current = !1), l.current && (v(u), P(!1)), { ..._, size: u == null ? void 0 : u.length };
|
|
58
56
|
} catch (p) {
|
|
59
57
|
if (i != null && i.aborted)
|
|
60
58
|
return;
|
|
61
|
-
|
|
59
|
+
P(!1), T(p), console.error(p);
|
|
62
60
|
}
|
|
63
61
|
},
|
|
64
62
|
[t, a, c]
|
|
65
63
|
),
|
|
66
64
|
c
|
|
67
65
|
);
|
|
68
|
-
return
|
|
69
|
-
|
|
70
|
-
}, [r]),
|
|
71
|
-
|
|
72
|
-
}, [a, c,
|
|
73
|
-
A &&
|
|
74
|
-
}, [
|
|
66
|
+
return E(() => {
|
|
67
|
+
m.current = !0;
|
|
68
|
+
}, [r]), E(() => {
|
|
69
|
+
N(), d.current = 1;
|
|
70
|
+
}, [a, c, N]), O(() => {
|
|
71
|
+
A && g(d.current);
|
|
72
|
+
}, [g, A]), O(() => {
|
|
75
73
|
o == null || o(a);
|
|
76
74
|
}, [a]), O(() => {
|
|
77
|
-
|
|
78
|
-
}, [c]), { error:
|
|
79
|
-
}, De =
|
|
75
|
+
f == null || f(c);
|
|
76
|
+
}, [c]), { error: L, fetching: I, filters: a, goto: g, limitOptions: q, page: X, pages: Y, records: j, updateFilters: B, updateLimit: V, ...G, ...H };
|
|
77
|
+
}, De = ne;
|
|
80
78
|
export {
|
|
81
79
|
De as default
|
|
82
80
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { useRef as p, useCallback as P, useState as G, useMemo as s, useEffect as
|
|
2
|
-
import { getClampedPageLimit as
|
|
3
|
-
import { noop as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
const u = p(), c = p(), h = p(), r = p(), i =
|
|
1
|
+
import { useRef as p, useCallback as P, useState as G, useMemo as s, useEffect as _ } from "../../../../external/preact/hooks/dist/hooks.module.js";
|
|
2
|
+
import { getClampedPageLimit as j } from "../utils.js";
|
|
3
|
+
import { noop as H } from "../../../../utils/common/index.js";
|
|
4
|
+
import J from "../../../../hooks/useMounted/useMounted.js";
|
|
5
|
+
import K from "../../../../hooks/useBooleanState/useBooleanState.js";
|
|
6
|
+
const L = (V, l, M) => {
|
|
7
|
+
const u = p(), c = p(), h = p(), r = p(), i = J(
|
|
8
8
|
P(() => {
|
|
9
9
|
var o;
|
|
10
10
|
(o = u.current) == null || o.abort(), u.current = void 0;
|
|
11
11
|
}, [])
|
|
12
|
-
), [t, x] = G(r.current), [g, $] =
|
|
12
|
+
), [t, x] = G(r.current), [g, $] = K(!1), e = s(() => j(M), [M]), { getPageCount: v, getPageParams: I, resetPageCount: z, updatePagination: R } = V, n = s(() => l ? (o) => {
|
|
13
13
|
var S;
|
|
14
14
|
if (!(e && Number.isInteger(o)))
|
|
15
15
|
return;
|
|
@@ -28,20 +28,20 @@ const K = (V, l, M) => {
|
|
|
28
28
|
console.error(d);
|
|
29
29
|
}
|
|
30
30
|
})()));
|
|
31
|
-
} :
|
|
31
|
+
} : H, [e, l]), q = P(() => {
|
|
32
32
|
t && n(Math.min(t + 1, v()));
|
|
33
|
-
}, [n, t]),
|
|
33
|
+
}, [n, t]), w = P(() => {
|
|
34
34
|
t && n(Math.max(t - 1, 1));
|
|
35
|
-
}, [n, t]), m = s(() => v() || t || void 0, [n, g]),
|
|
35
|
+
}, [n, t]), m = s(() => v() || t || void 0, [n, g]), A = s(() => !!(t && m) && t < m, [t, m]), E = s(() => !!t && t > 1, [t]), C = s(
|
|
36
36
|
() => c.current ? (c.current - 1) * e + (h.current || 0) : 0,
|
|
37
37
|
[n, g]
|
|
38
|
-
),
|
|
38
|
+
), N = s(() => e && Math.min(e, C || 1 / 0) % e, [e, C]), B = P(() => {
|
|
39
39
|
z(), c.current = h.current = r.current = void 0, i.current && x(r.current);
|
|
40
40
|
}, [z]);
|
|
41
|
-
return
|
|
41
|
+
return _(() => {
|
|
42
42
|
i.current && g && $(!1);
|
|
43
|
-
}, [g]), { goto: n, hasNext:
|
|
44
|
-
}, Y =
|
|
43
|
+
}, [g]), { goto: n, hasNext: A, hasPrev: E, limit: e, next: q, page: t, pages: m, pageSize: N, prev: w, resetPagination: B, size: C };
|
|
44
|
+
}, Y = L;
|
|
45
45
|
export {
|
|
46
46
|
Y as default
|
|
47
47
|
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { jsx as o } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import
|
|
3
|
-
import { ButtonActionsLayoutBasic as
|
|
4
|
-
import { DEFAULT_POPOVER_CLASSNAME as t, DEFAULT_TOOLTIP_CLASSNAME as g, POPOVER_CONTAINER_CLASSNAME as oo, TOOLTIP_CONTENT_CLASSNAME as
|
|
2
|
+
import Z from "../Button/ButtonActions/ButtonActions.js";
|
|
3
|
+
import { ButtonActionsLayoutBasic as z } from "../Button/ButtonActions/types.js";
|
|
4
|
+
import { DEFAULT_POPOVER_CLASSNAME as t, DEFAULT_TOOLTIP_CLASSNAME as g, POPOVER_CONTAINER_CLASSNAME as oo, TOOLTIP_CONTENT_CLASSNAME as k, POPOVER_CONTENT_CLASSNAME as P, POPOVER_HEADER_TITLE_CLASSNAME as eo, POPOVER_FOOTER_CLASSNAME as ro, POPOVER_HEADER_CLASSNAME as $ } from "./constants.js";
|
|
5
5
|
import no from "./PopoverDismissButton/PopoverDismissButton.js";
|
|
6
6
|
import to from "./PopoverTitle/PopoverTitle.js";
|
|
7
7
|
import { PopoverContainerVariant as c, PopoverContainerSize as h } from "./types.js";
|
|
8
8
|
import { InteractionKeyCode as co } from "../../types.js";
|
|
9
9
|
import { useClickOutside as io, ClickOutsideVariant as so } from "../../../hooks/element/useClickOutside.js";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
10
|
+
import uo from "../../../hooks/element/useFocusTrap.js";
|
|
11
|
+
import mo from "../../../hooks/element/usePopoverPositioner.js";
|
|
12
12
|
import D from "../../../hooks/element/useUniqueIdentifier.js";
|
|
13
13
|
import { getModifierClasses as ao } from "../../../utils/class-name-utils.js";
|
|
14
14
|
import { isFunction as po } from "../../../utils/common/index.js";
|
|
15
15
|
import { SELECTORS as fo, isFocusable as lo } from "../../../utils/tabbable.js";
|
|
16
16
|
import B from "classnames";
|
|
17
17
|
import { createPortal as Oo } from "../../../external/preact/compat/dist/compat.module.js";
|
|
18
|
-
import { useMemo as
|
|
18
|
+
import { useMemo as w, useRef as T, useCallback as A, useEffect as Eo } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
19
19
|
import "./Popover.scss.js";
|
|
20
20
|
import Po from "../../../hooks/useReflex/hooks/useReflex.js";
|
|
21
21
|
import { Fragment as N } from "../../../external/preact/dist/preact.module.js";
|
|
22
22
|
const To = (i) => {
|
|
23
23
|
var e;
|
|
24
24
|
let a;
|
|
25
|
-
const l = (e = i.querySelector(`.${
|
|
25
|
+
const l = (e = i.querySelector(`.${k}`)) == null ? void 0 : e.querySelectorAll(fo);
|
|
26
26
|
return l ? (Array.prototype.some.call(l, (s) => {
|
|
27
27
|
if (lo(s))
|
|
28
28
|
return a = s;
|
|
@@ -31,19 +31,19 @@ const To = (i) => {
|
|
|
31
31
|
function Uo({
|
|
32
32
|
actions: i,
|
|
33
33
|
disableFocusTrap: a = !1,
|
|
34
|
-
actionsLayout: l =
|
|
34
|
+
actionsLayout: l = z.SPACE_BETWEEN,
|
|
35
35
|
variant: e = c.TOOLTIP,
|
|
36
36
|
title: s,
|
|
37
37
|
open: p,
|
|
38
38
|
dismissible: C,
|
|
39
|
-
modifiers:
|
|
39
|
+
modifiers: q,
|
|
40
40
|
divider: L,
|
|
41
41
|
fitContent: _,
|
|
42
42
|
withoutSpace: S,
|
|
43
43
|
containerSize: O,
|
|
44
|
-
position:
|
|
44
|
+
position: x,
|
|
45
45
|
targetElement: n,
|
|
46
|
-
setToTargetWidth:
|
|
46
|
+
setToTargetWidth: b,
|
|
47
47
|
dismiss: r,
|
|
48
48
|
children: y,
|
|
49
49
|
withContentPadding: U,
|
|
@@ -52,36 +52,36 @@ function Uo({
|
|
|
52
52
|
fitPosition: W,
|
|
53
53
|
...v
|
|
54
54
|
}) {
|
|
55
|
-
const R =
|
|
56
|
-
(
|
|
57
|
-
var
|
|
58
|
-
r && r(),
|
|
55
|
+
const R = w(() => po(r) && C !== !1, [r, C]), F = D(), I = T(), j = A(
|
|
56
|
+
(u) => {
|
|
57
|
+
var m;
|
|
58
|
+
r && r(), u && ((m = n == null ? void 0 : n.current) == null || m.focus());
|
|
59
59
|
},
|
|
60
60
|
[r, n]
|
|
61
61
|
), E = A(
|
|
62
|
-
(
|
|
63
|
-
|
|
62
|
+
(u) => {
|
|
63
|
+
u.code === co.ESCAPE && (r && r(), (n == null ? void 0 : n.current).focus());
|
|
64
64
|
},
|
|
65
65
|
[r, n]
|
|
66
66
|
), d = T(E), V = T(), M = io(
|
|
67
|
-
|
|
67
|
+
mo(Ao(e), n, e, x, F, b, f, W),
|
|
68
68
|
r,
|
|
69
69
|
e === c.TOOLTIP && !p,
|
|
70
70
|
so.POPOVER
|
|
71
|
-
),
|
|
71
|
+
), H = uo(a ? null : M, j), G = Po(
|
|
72
72
|
A(
|
|
73
|
-
(
|
|
74
|
-
|
|
73
|
+
(u) => {
|
|
74
|
+
u instanceof Element && (cancelAnimationFrame(V.current), V.current = requestAnimationFrame(() => {
|
|
75
75
|
if (I.current === p || !(I.current = p))
|
|
76
76
|
return;
|
|
77
|
-
const
|
|
78
|
-
|
|
77
|
+
const m = To(u);
|
|
78
|
+
m == null || m.focus();
|
|
79
79
|
}));
|
|
80
80
|
},
|
|
81
81
|
[p]
|
|
82
82
|
),
|
|
83
|
-
a ? M :
|
|
84
|
-
),
|
|
83
|
+
a ? M : H
|
|
84
|
+
), J = D(G), Q = w(
|
|
85
85
|
() => ({
|
|
86
86
|
[`${t}--medium`]: O === h.MEDIUM,
|
|
87
87
|
[`${t}--with-divider`]: !!L,
|
|
@@ -93,7 +93,7 @@ function Uo({
|
|
|
93
93
|
[O, L, S, _, f]
|
|
94
94
|
);
|
|
95
95
|
Eo(() => (document.removeEventListener("keydown", d.current), document.addEventListener("keydown", d.current = E), () => document.removeEventListener("keydown", d.current)), [E]);
|
|
96
|
-
const
|
|
96
|
+
const X = e === c.TOOLTIP ? g : `${t} ${oo}`, Y = e === c.TOOLTIP ? k : `${P}`;
|
|
97
97
|
return Oo(
|
|
98
98
|
/* @__PURE__ */ o(N, { children: p ? /* @__PURE__ */ o(N, { children: [
|
|
99
99
|
f && /* @__PURE__ */ o("div", { className: "adyen-pe-popover__overlay" }),
|
|
@@ -101,13 +101,13 @@ function Uo({
|
|
|
101
101
|
"div",
|
|
102
102
|
{
|
|
103
103
|
id: "popover",
|
|
104
|
-
ref:
|
|
104
|
+
ref: J,
|
|
105
105
|
...v,
|
|
106
|
-
className: B(
|
|
106
|
+
className: B(X, Q, K),
|
|
107
107
|
style: { visibility: "hidden" },
|
|
108
108
|
role: v.role ?? (e === c.POPOVER ? "dialog" : "tooltip"),
|
|
109
109
|
children: [
|
|
110
|
-
(s || R) && /* @__PURE__ */ o("div", { className: ao($,
|
|
110
|
+
(s || R) && /* @__PURE__ */ o("div", { className: ao($, q, [$]), children: [
|
|
111
111
|
s && /* @__PURE__ */ o("div", { className: eo, children: /* @__PURE__ */ o(to, { title: s }) }),
|
|
112
112
|
R && /* @__PURE__ */ o(no, { onClick: r })
|
|
113
113
|
] }),
|
|
@@ -115,7 +115,7 @@ function Uo({
|
|
|
115
115
|
/* @__PURE__ */ o(
|
|
116
116
|
"div",
|
|
117
117
|
{
|
|
118
|
-
className: B(
|
|
118
|
+
className: B(Y, {
|
|
119
119
|
[`${P}--with-padding`]: U,
|
|
120
120
|
[`${P}--overlay`]: f
|
|
121
121
|
}),
|
|
@@ -124,7 +124,7 @@ function Uo({
|
|
|
124
124
|
),
|
|
125
125
|
e === c.TOOLTIP && /* @__PURE__ */ o("span", { "data-popover-placement": "hidden", ref: F, className: "adyen-pe-tooltip__arrow" })
|
|
126
126
|
] }),
|
|
127
|
-
i && /* @__PURE__ */ o("div", { className: ro, children: /* @__PURE__ */ o(
|
|
127
|
+
i && /* @__PURE__ */ o("div", { className: ro, children: /* @__PURE__ */ o(Z, { actions: i, layout: l }) })
|
|
128
128
|
]
|
|
129
129
|
}
|
|
130
130
|
)
|
|
@@ -5,7 +5,7 @@ import { memo as n } from "../../../../external/preact/compat/dist/compat.module
|
|
|
5
5
|
function p({ title: t, isImageTitle: r = !1 }) {
|
|
6
6
|
return /* @__PURE__ */ a(e, { strongest: !r, variant: (() => r ? o.SUBTITLE : o.BODY)(), children: t });
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const T = n(p);
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
T as default
|
|
11
11
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as e } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import r from "../../../utils/fixedForwardRef.js";
|
|
3
|
-
const d = r(({ title:
|
|
4
|
-
|
|
3
|
+
const d = r(({ title: t, ...o }, i) => /* @__PURE__ */ e("svg", { ...o, ref: i, width: "7", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
4
|
+
t && /* @__PURE__ */ e("title", { children: t }),
|
|
5
5
|
/* @__PURE__ */ e(
|
|
6
6
|
"path",
|
|
7
7
|
{
|
|
8
8
|
d: "M5.56077 2.00011L2.56077 5.00011L5.56077 8.00011L4.50011 9.06077L0.439453 5.00011L4.50011 0.939453L5.56077 2.00011Z",
|
|
9
|
-
fill:
|
|
9
|
+
fill: o.disabled ? "#8D95A3" : "#00112C"
|
|
10
10
|
}
|
|
11
11
|
)
|
|
12
12
|
] })), l = d;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as i } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import h from "../../../utils/fixedForwardRef.js";
|
|
3
|
-
const r = h(({ title:
|
|
4
|
-
|
|
3
|
+
const r = h(({ title: t, ...e }, o) => /* @__PURE__ */ i("svg", { ...e, ref: o, width: "7", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
4
|
+
t && /* @__PURE__ */ i("title", { children: t }),
|
|
5
5
|
/* @__PURE__ */ i(
|
|
6
6
|
"path",
|
|
7
7
|
{
|
|
8
8
|
d: "M0.439453 7.9999L3.43945 4.9999L0.439454 1.9999L1.50011 0.93924L5.56077 4.9999L1.50011 9.06056L0.439453 7.9999Z",
|
|
9
|
-
fill:
|
|
9
|
+
fill: e.disabled ? "#8D95A3" : "#00112C"
|
|
10
10
|
}
|
|
11
11
|
)
|
|
12
12
|
] })), n = r;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import i from "../../../utils/fixedForwardRef.js";
|
|
3
|
-
const n = i(({ title:
|
|
4
|
-
|
|
3
|
+
const n = i(({ title: l, ...o }, r) => /* @__PURE__ */ e("svg", { ...o, ref: r, xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: [
|
|
4
|
+
l && /* @__PURE__ */ e("title", { children: l }),
|
|
5
5
|
/* @__PURE__ */ e(
|
|
6
6
|
"path",
|
|
7
7
|
{
|