@adyen/adyen-platform-experience-web 1.0.3 → 1.1.1
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/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/da-DK-a148e492.cjs +2 -0
- package/dist/da-DK-a148e492.cjs.map +1 -0
- package/dist/de-DE-a39a50e8.cjs +2 -0
- package/dist/de-DE-a39a50e8.cjs.map +1 -0
- package/dist/es/components/external/PayoutDetails/components/PayoutData.js +41 -41
- package/dist/es/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.js +93 -94
- package/dist/es/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.js +76 -69
- package/dist/es/components/external/ReportsOverview/ReportsOverviewElement.js +25 -0
- package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.js +112 -0
- package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.scss.js +4 -0
- package/dist/es/components/external/ReportsOverview/components/ReportsOverview/constants.js +5 -0
- package/dist/es/components/external/ReportsOverview/components/ReportsOverviewContainer/ReportsOverviewContainer.js +30 -0
- package/dist/es/components/external/ReportsOverview/components/ReportsOverviewContainer/constants.js +4 -0
- package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.js +149 -0
- package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.scss.js +4 -0
- package/dist/es/components/external/ReportsOverview/components/ReportsTable/constants.js +7 -0
- package/dist/es/components/external/TransactionDetails/components/TransactionData.js +67 -46
- package/dist/es/components/external/TransactionDetails/components/TransactionDataSkeleton.js +28 -17
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +13 -13
- package/dist/es/components/external/TransactionsOverview/components/Category/Category.js +19 -14
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +1 -1
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +10 -10
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +11 -11
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +1 -1
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +183 -164
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/PaymentMethodCell.js +31 -24
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +95 -89
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/constants.js +6 -5
- package/dist/es/components/hooks/useCustomColumnsData.js +29 -0
- package/dist/es/components/hooks/useFreezePeriod.js +18 -0
- package/dist/es/components/{external/TransactionsOverview/hooks → hooks}/useResponsiveViewport.js +2 -2
- package/dist/es/components/hooks/useTableColumns.js +46 -0
- package/dist/es/components/internal/Accordion/Accordion.js +15 -15
- package/dist/es/components/internal/Alert/Alert.js +62 -0
- package/dist/es/components/internal/Alert/Alert.scss.js +4 -0
- package/dist/es/components/internal/Alert/types.js +4 -0
- package/dist/es/components/internal/Button/DownloadButton/DownloadButton.js +81 -0
- package/dist/es/components/internal/Button/DownloadButton/DownloadButton.scss.js +4 -0
- package/dist/es/components/internal/Button/DownloadButton/useDownload.js +18 -0
- package/dist/es/components/internal/Card/Card.js +15 -15
- package/dist/es/components/internal/DataGrid/DataGrid.js +4 -4
- package/dist/es/components/internal/DataGrid/DataGridCell.js +12 -12
- package/dist/es/components/internal/DataGrid/components/Icon.js +17 -0
- package/dist/es/components/internal/DataGrid/components/SkeletonBody.js +7 -7
- package/dist/es/components/internal/DataGrid/components/TableCells.js +54 -37
- package/dist/es/components/internal/DataOverviewContainer/DataOverviewContainer.js +11 -11
- package/dist/es/components/internal/DataOverviewDetails/DataOverviewDetails.js +54 -54
- package/dist/es/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.js +45 -0
- package/dist/es/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.scss.js +4 -0
- package/dist/es/components/internal/DataOverviewDisplay/constants.js +30 -24
- package/dist/es/components/internal/DatePicker/DatePicker.js +10 -10
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +13 -13
- package/dist/es/components/internal/FilterBar/FilterBar.js +50 -42
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +7 -7
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +54 -50
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +1 -1
- package/dist/es/components/internal/FormFields/InputBase.js +25 -25
- package/dist/es/components/internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.js +1 -1
- package/dist/es/components/internal/FormFields/Select/Select.js +5 -5
- package/dist/es/components/internal/FormFields/Select/components/SelectList.js +5 -5
- package/dist/es/components/internal/Image/Image.js +6 -6
- package/dist/es/components/internal/Img/Img.js +4 -4
- package/dist/es/components/internal/Modal/Modal.js +6 -6
- package/dist/es/components/internal/Pagination/Pagination.js +17 -17
- package/dist/es/components/internal/Popover/Popover.js +11 -11
- package/dist/es/components/internal/SVGIcons/Download.js +21 -0
- package/dist/es/components/internal/SVGIcons/Warning.js +23 -0
- package/dist/es/components/internal/SVGIcons/WarningFilled.js +18 -0
- package/dist/es/components/internal/StructuredList/StructuredList.js +8 -8
- package/dist/es/components/internal/Tag/Tag.js +8 -8
- package/dist/es/components/internal/Tooltip/Tooltip.js +20 -20
- package/dist/es/components/internal/Typography/Typography.js +12 -12
- package/dist/es/components/utils/getLabel.js +6 -3
- package/dist/es/core/Http/http.js +34 -31
- package/dist/es/core/Http/utils.js +39 -30
- package/dist/es/core/Localization/Localization.js +74 -76
- package/dist/es/core/Localization/constants/localization.js +9 -6
- package/dist/es/core/Localization/localization-utils.js +11 -12
- package/dist/es/core/Localization/utils.js +45 -47
- package/dist/es/core/core.js +1 -1
- package/dist/es/index.js +14 -12
- package/dist/es/translations/da-DK.json.js +2 -218
- package/dist/es/translations/de-DE.json.js +2 -218
- package/dist/es/translations/en-US.json.js +2 -218
- package/dist/es/translations/es-ES.json.js +2 -218
- package/dist/es/translations/fr-FR.json.js +2 -218
- package/dist/es/translations/index.js +41 -45
- package/dist/es/translations/it-IT.json.js +2 -218
- package/dist/es/translations/nl-NL.json.js +2 -218
- package/dist/es/translations/no-NO.json.js +2 -218
- package/dist/es/translations/pt-BR.json.js +2 -218
- package/dist/es/translations/sv-SE.json.js +2 -218
- package/dist/es/utils/preact/className.js +3 -3
- package/dist/es-ES-153e5f15.cjs +2 -0
- package/dist/es-ES-153e5f15.cjs.map +1 -0
- package/dist/fr-FR-69b3df0d.cjs +2 -0
- package/dist/fr-FR-69b3df0d.cjs.map +1 -0
- package/dist/it-IT-efca230f.cjs +2 -0
- package/dist/it-IT-efca230f.cjs.map +1 -0
- package/dist/nl-NL-ffbb8184.cjs +2 -0
- package/dist/nl-NL-ffbb8184.cjs.map +1 -0
- package/dist/no-NO-eaf65f6f.cjs +2 -0
- package/dist/no-NO-eaf65f6f.cjs.map +1 -0
- package/dist/pt-BR-590ccc53.cjs +2 -0
- package/dist/pt-BR-590ccc53.cjs.map +1 -0
- package/dist/style.css +1 -1
- package/dist/sv-SE-18f4e86e.cjs +2 -0
- package/dist/sv-SE-18f4e86e.cjs.map +1 -0
- package/dist/types/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.d.ts.map +1 -1
- package/dist/types/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.d.ts +2 -2
- package/dist/types/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.d.ts.map +1 -1
- package/dist/types/components/external/ReportsOverview/ReportsOverviewElement.d.ts +9 -0
- package/dist/types/components/external/ReportsOverview/ReportsOverviewElement.d.ts.map +1 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.d.ts +8 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.d.ts.map +1 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsOverview/constants.d.ts +3 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsOverview/constants.d.ts.map +1 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsOverviewContainer/ReportsOverviewContainer.d.ts +4 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsOverviewContainer/ReportsOverviewContainer.d.ts.map +1 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsOverviewContainer/constants.d.ts +2 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsOverviewContainer/constants.d.ts.map +1 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsTable/ReportsTable.d.ts +15 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsTable/ReportsTable.d.ts.map +1 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsTable/constants.d.ts +5 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsTable/constants.d.ts.map +1 -0
- package/dist/types/components/external/ReportsOverview/index.d.ts +2 -0
- package/dist/types/components/external/ReportsOverview/index.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts +20 -2
- package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/types.d.ts +5 -1
- package/dist/types/components/external/TransactionDetails/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/PaymentMethodCell.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts +3 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/constants.d.ts +1 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/constants.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts +5 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts.map +1 -1
- package/dist/types/components/external/index.d.ts +1 -0
- package/dist/types/components/external/index.d.ts.map +1 -1
- package/dist/types/components/hooks/useCustomColumnsData.d.ts +13 -0
- package/dist/types/components/hooks/useCustomColumnsData.d.ts.map +1 -0
- package/dist/types/components/hooks/useFreezePeriod.d.ts +6 -0
- package/dist/types/components/hooks/useFreezePeriod.d.ts.map +1 -0
- package/dist/types/components/{external/TransactionsOverview/hooks → hooks}/useResponsiveViewport.d.ts +1 -1
- package/dist/types/components/hooks/useResponsiveViewport.d.ts.map +1 -0
- package/dist/types/components/hooks/useTableColumns.d.ts +20 -0
- package/dist/types/components/hooks/useTableColumns.d.ts.map +1 -0
- package/dist/types/components/internal/Alert/Alert.d.ts +5 -0
- package/dist/types/components/internal/Alert/Alert.d.ts.map +1 -0
- package/dist/types/components/internal/Alert/types.d.ts +17 -0
- package/dist/types/components/internal/Alert/types.d.ts.map +1 -0
- package/dist/types/components/internal/Button/DownloadButton/DownloadButton.d.ts +16 -0
- package/dist/types/components/internal/Button/DownloadButton/DownloadButton.d.ts.map +1 -0
- package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts +143 -0
- package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts.map +1 -0
- package/dist/types/components/internal/DataGrid/DataGrid.d.ts +2 -5
- package/dist/types/components/internal/DataGrid/DataGrid.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/Icon.d.ts +7 -0
- package/dist/types/components/internal/DataGrid/components/Icon.d.ts.map +1 -0
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/types.d.ts +4 -3
- package/dist/types/components/internal/DataGrid/types.d.ts.map +1 -1
- package/dist/types/components/internal/DataOverviewContainer/DataOverviewContainer.d.ts +1 -1
- package/dist/types/components/internal/DataOverviewContainer/DataOverviewContainer.d.ts.map +1 -1
- package/dist/types/components/internal/DataOverviewDetails/DataOverviewDetails.d.ts.map +1 -1
- package/dist/types/components/internal/DataOverviewDetails/types.d.ts +3 -2
- package/dist/types/components/internal/DataOverviewDetails/types.d.ts.map +1 -1
- package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.d.ts +13 -0
- package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.d.ts.map +1 -0
- package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/index.d.ts +3 -0
- package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/index.d.ts.map +1 -0
- package/dist/types/components/internal/DataOverviewDisplay/constants.d.ts +5 -2
- package/dist/types/components/internal/DataOverviewDisplay/constants.d.ts.map +1 -1
- package/dist/types/components/internal/DataOverviewError/DataOverviewError.d.ts +1 -1
- package/dist/types/components/internal/DataOverviewError/DataOverviewError.d.ts.map +1 -1
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts +1 -1
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts.map +1 -1
- package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts +1 -1
- package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/FilterBar.d.ts +9 -2
- package/dist/types/components/internal/FilterBar/FilterBar.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/AmountFilter/RangeSelection.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/index.d.ts +1 -0
- package/dist/types/components/internal/FilterBar/index.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/types.d.ts +11 -1
- package/dist/types/components/internal/FilterBar/types.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +1 -1
- package/dist/types/components/internal/Pagination/Pagination.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/Download.d.ts +4 -0
- package/dist/types/components/internal/SVGIcons/Download.d.ts.map +1 -0
- package/dist/types/components/internal/SVGIcons/Warning.d.ts +4 -0
- package/dist/types/components/internal/SVGIcons/Warning.d.ts.map +1 -0
- package/dist/types/components/internal/SVGIcons/WarningFilled.d.ts +4 -0
- package/dist/types/components/internal/SVGIcons/WarningFilled.d.ts.map +1 -0
- package/dist/types/components/internal/StructuredList/types.d.ts +1 -1
- package/dist/types/components/internal/StructuredList/types.d.ts.map +1 -1
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +2 -2
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts.map +1 -1
- package/dist/types/components/types.d.ts +33 -1
- package/dist/types/components/types.d.ts.map +1 -1
- package/dist/types/components/utils/getCommonErrorCode.d.ts +1 -1
- package/dist/types/components/utils/getCommonErrorCode.d.ts.map +1 -1
- package/dist/types/components/utils/getErrorMessage.d.ts +1 -1
- package/dist/types/components/utils/getErrorMessage.d.ts.map +1 -1
- package/dist/types/components/utils/getLabel.d.ts +4 -1
- package/dist/types/components/utils/getLabel.d.ts.map +1 -1
- package/dist/types/core/Auth/context.d.ts +8 -6
- package/dist/types/core/Auth/context.d.ts.map +1 -1
- package/dist/types/core/Auth/session/AuthSession.d.ts +8 -6
- package/dist/types/core/Auth/session/AuthSession.d.ts.map +1 -1
- package/dist/types/core/Auth/session/AuthSetupContext.d.ts +8 -6
- package/dist/types/core/Auth/session/AuthSetupContext.d.ts.map +1 -1
- package/dist/types/core/Http/http.d.ts.map +1 -1
- package/dist/types/core/Http/utils.d.ts +2 -0
- package/dist/types/core/Http/utils.d.ts.map +1 -1
- package/dist/types/core/Localization/Localization.d.ts +8 -10
- package/dist/types/core/Localization/Localization.d.ts.map +1 -1
- package/dist/types/core/Localization/constants/localization.d.ts +5 -2
- package/dist/types/core/Localization/constants/localization.d.ts.map +1 -1
- package/dist/types/core/Localization/localization-utils.d.ts +4 -4
- package/dist/types/core/Localization/localization-utils.d.ts.map +1 -1
- package/dist/types/core/Localization/types.d.ts +0 -19
- package/dist/types/core/Localization/types.d.ts.map +1 -1
- package/dist/types/core/Localization/utils.d.ts +7 -271
- package/dist/types/core/Localization/utils.d.ts.map +1 -1
- package/dist/types/core/core.d.ts +2 -3
- package/dist/types/core/core.d.ts.map +1 -1
- package/dist/types/core/types.d.ts +5 -4
- package/dist/types/core/types.d.ts.map +1 -1
- package/dist/types/hooks/useFetch/useFetch.d.ts +1 -1
- package/dist/types/hooks/useFetch/useFetch.d.ts.map +1 -1
- package/dist/types/hooks/useModalDetails/types.d.ts +1 -1
- package/dist/types/hooks/useModalDetails/types.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/translations/index.d.ts +189 -2529
- package/dist/types/translations/index.d.ts.map +1 -1
- package/dist/types/types/api/models/reports.d.ts +1 -1
- package/dist/types/types/api/models/reports.d.ts.map +1 -1
- package/dist/types/types/api/resources/ReportsResource.d.ts +18 -19
- package/dist/types/types/api/resources/ReportsResource.d.ts.map +1 -1
- package/dist/types/utils/types.d.ts +3 -0
- package/dist/types/utils/types.d.ts.map +1 -1
- package/package.json +7 -5
- package/dist/es/core/Localization/constants/locale.js +0 -7
- package/dist/types/components/external/TransactionsOverview/hooks/useResponsiveViewport.d.ts.map +0 -1
- package/dist/types/core/Localization/constants/locale.d.ts +0 -139
- package/dist/types/core/Localization/constants/locale.d.ts.map +0 -1
|
@@ -3,7 +3,7 @@ import { useState as v, useCallback as h, useRef as l, useEffect as I } from "..
|
|
|
3
3
|
import "./ExpandableCard.scss.js";
|
|
4
4
|
import b from "../SVGIcons/ChevronUp.js";
|
|
5
5
|
import B from "../SVGIcons/ChevronDown.js";
|
|
6
|
-
import { BASE_CLASS as D, CONTAINER_CLASS as
|
|
6
|
+
import { BASE_CLASS as D, CONTAINER_CLASS as p, CONTAINER_BUTTON_CLASS as x, CONTAINER_FILLED_CLASS as m, CONTAINER_OVERLAY_ID as C, CONTENT_CLASS as N, CONTENT_EXPANDABLE_CLASS as L, CHEVRON_CLASS as R, CONTAINER_OVERLAY_CLASS as g, CONTAINER_HIDDEN_CLASS as k } from "./constants.js";
|
|
7
7
|
import y from "../../../core/Context/useCoreContext.js";
|
|
8
8
|
import { useClickOutside as F } from "../../../hooks/element/useClickOutside.js";
|
|
9
9
|
import { jsx as e } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
@@ -28,12 +28,12 @@ const w = ({
|
|
|
28
28
|
className: D,
|
|
29
29
|
children: u ? e(V, {
|
|
30
30
|
children: [e(T, {
|
|
31
|
-
className: s(
|
|
32
|
-
[
|
|
31
|
+
className: s(p, x, {
|
|
32
|
+
[m]: o
|
|
33
33
|
}),
|
|
34
34
|
disabled: a,
|
|
35
35
|
fullWidth: f,
|
|
36
|
-
"aria-controls":
|
|
36
|
+
"aria-controls": C,
|
|
37
37
|
"aria-expanded": a,
|
|
38
38
|
"aria-hidden": a,
|
|
39
39
|
onClick: r,
|
|
@@ -44,7 +44,7 @@ const w = ({
|
|
|
44
44
|
className: "adyen-pe-sr-only",
|
|
45
45
|
children: A.get("expandableCard.expand")
|
|
46
46
|
}), e("div", {
|
|
47
|
-
className: s(
|
|
47
|
+
className: s(N, L),
|
|
48
48
|
children: t
|
|
49
49
|
}), e("div", {
|
|
50
50
|
className: R,
|
|
@@ -53,14 +53,14 @@ const w = ({
|
|
|
53
53
|
})
|
|
54
54
|
})]
|
|
55
55
|
}), e(T, {
|
|
56
|
-
id:
|
|
57
|
-
className: s(
|
|
58
|
-
[
|
|
56
|
+
id: C,
|
|
57
|
+
className: s(p, x, g, {
|
|
58
|
+
[m]: o,
|
|
59
59
|
[k]: !a
|
|
60
60
|
}),
|
|
61
61
|
disabled: !a,
|
|
62
62
|
fullWidth: f,
|
|
63
|
-
"aria-controls":
|
|
63
|
+
"aria-controls": C,
|
|
64
64
|
"aria-expanded": a,
|
|
65
65
|
"aria-hidden": !a,
|
|
66
66
|
onClick: r,
|
|
@@ -71,7 +71,7 @@ const w = ({
|
|
|
71
71
|
className: "adyen-pe-sr-only",
|
|
72
72
|
children: A.get("expandableCard.collapse")
|
|
73
73
|
}), e("div", {
|
|
74
|
-
className: s(
|
|
74
|
+
className: s(N, L),
|
|
75
75
|
children: [t, e("div", {
|
|
76
76
|
children: u
|
|
77
77
|
})]
|
|
@@ -83,12 +83,12 @@ const w = ({
|
|
|
83
83
|
})]
|
|
84
84
|
})]
|
|
85
85
|
}) : e("div", {
|
|
86
|
-
className: s(
|
|
87
|
-
[
|
|
86
|
+
className: s(p, {
|
|
87
|
+
[m]: o
|
|
88
88
|
}),
|
|
89
89
|
...i,
|
|
90
90
|
children: e("div", {
|
|
91
|
-
className:
|
|
91
|
+
className: N,
|
|
92
92
|
children: t
|
|
93
93
|
})
|
|
94
94
|
})
|
|
@@ -1,48 +1,56 @@
|
|
|
1
|
-
import
|
|
1
|
+
import l from "classnames";
|
|
2
|
+
import s from "../SVGIcons/Close.js";
|
|
3
|
+
import c from "../SVGIcons/Filter.js";
|
|
2
4
|
import { ButtonVariant as n } from "../Button/types.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import u from "../Typography/Typography.js";
|
|
7
|
-
import h from "../../../core/Context/useCoreContext.js";
|
|
8
|
-
import y from "classnames";
|
|
9
|
-
import { useState as F, useEffect as b } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
5
|
+
import { useState as m, useEffect as u } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
6
|
+
import f from "../../../core/Context/useCoreContext.js";
|
|
7
|
+
import { useResponsiveViewport as d, mediaQueries as b } from "../../hooks/useResponsiveViewport.js";
|
|
10
8
|
import "./FilterBar.scss.js";
|
|
11
|
-
import { jsx as
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
|
|
9
|
+
import { jsx as i } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
10
|
+
import a from "../Button/Button.js";
|
|
11
|
+
import { isFunction as p } from "../../../utils/value/is.js";
|
|
12
|
+
const o = "adyen-pe-filter-bar-mobile-switch", V = () => {
|
|
13
|
+
const t = d(b.down.xs), [e, r] = m(!t);
|
|
14
|
+
return u(() => {
|
|
15
|
+
r(!t);
|
|
16
|
+
}, [t]), {
|
|
17
|
+
isMobileViewport: t,
|
|
18
|
+
showingFilters: e,
|
|
19
|
+
setShowingFilters: r
|
|
20
|
+
};
|
|
21
|
+
}, w = ({
|
|
22
|
+
isMobileViewport: t,
|
|
23
|
+
showingFilters: e,
|
|
24
|
+
setShowingFilters: r
|
|
25
|
+
}) => t ? i("div", {
|
|
26
|
+
className: o,
|
|
27
|
+
children: i(a, {
|
|
28
|
+
iconButton: !0,
|
|
29
|
+
className: `${o}__button`,
|
|
30
|
+
disabled: !p(r),
|
|
31
|
+
onClick: () => r == null ? void 0 : r(!e),
|
|
32
|
+
variant: n.SECONDARY,
|
|
33
|
+
children: e ? i(s, {}) : i(c, {})
|
|
34
|
+
})
|
|
35
|
+
}) : null, B = (t) => {
|
|
15
36
|
const {
|
|
16
|
-
i18n:
|
|
17
|
-
} =
|
|
18
|
-
return
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
className: "adyen-pe-filter-bar__header-icon",
|
|
28
|
-
variant: n.SECONDARY,
|
|
29
|
-
iconButton: !0,
|
|
30
|
-
onClick: () => a((l) => !l),
|
|
31
|
-
children: o ? e(f, {}) : e(p, {})
|
|
32
|
-
})]
|
|
33
|
-
}), o && e("div", {
|
|
34
|
-
"aria-label": i.get("filterBar"),
|
|
35
|
-
className: y("adyen-pe-filter-bar", {
|
|
36
|
-
"adyen-pe-filter-bar__content--mobile": r
|
|
37
|
-
}),
|
|
38
|
-
children: [t.children, t.canResetFilters && !!t.resetFilters && e(s, {
|
|
39
|
-
variant: n.TERTIARY,
|
|
40
|
-
onClick: t.resetFilters,
|
|
41
|
-
children: i.get("button.clearAll")
|
|
42
|
-
})]
|
|
37
|
+
i18n: e
|
|
38
|
+
} = f();
|
|
39
|
+
return t.showingFilters ? i("div", {
|
|
40
|
+
"aria-label": e.get("filterBar"),
|
|
41
|
+
className: l("adyen-pe-filter-bar", {
|
|
42
|
+
"adyen-pe-filter-bar__content--mobile": t.isMobileViewport
|
|
43
|
+
}),
|
|
44
|
+
children: [t.children, t.canResetFilters && !!t.resetFilters && i(a, {
|
|
45
|
+
variant: n.TERTIARY,
|
|
46
|
+
onClick: t.resetFilters,
|
|
47
|
+
children: e.get("button.clearAll")
|
|
43
48
|
})]
|
|
44
|
-
});
|
|
45
|
-
}
|
|
49
|
+
}) : null;
|
|
50
|
+
}, y = B;
|
|
46
51
|
export {
|
|
47
|
-
|
|
52
|
+
B as FilterBar,
|
|
53
|
+
w as FilterBarMobileSwitch,
|
|
54
|
+
y as default,
|
|
55
|
+
V as useFilterBarState
|
|
48
56
|
};
|
|
@@ -6,9 +6,9 @@ import "./FilterButton.scss.js";
|
|
|
6
6
|
import { jsx as e } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
7
7
|
import { fixedForwardRef as d } from "../../../../../utils/preact/fixedForwardRef.js";
|
|
8
8
|
import { parseClassName as F } from "../../../../../utils/preact/className.js";
|
|
9
|
-
import { parseBooleanProp as
|
|
10
|
-
const
|
|
11
|
-
function
|
|
9
|
+
import { parseBooleanProp as g } from "../../../../../utils/preact/props.js";
|
|
10
|
+
const h = "adyen-pe-filter-button";
|
|
11
|
+
function E({
|
|
12
12
|
className: o,
|
|
13
13
|
classNameModifiers: a = [],
|
|
14
14
|
children: m,
|
|
@@ -16,24 +16,24 @@ function h({
|
|
|
16
16
|
onClick: n,
|
|
17
17
|
...s
|
|
18
18
|
}, p) {
|
|
19
|
-
const i = t(() => F("", o) || "", [o]), l = t(() =>
|
|
19
|
+
const i = t(() => F("", o) || "", [o]), l = t(() => g(r), [r]), {
|
|
20
20
|
classes: u,
|
|
21
21
|
click: f
|
|
22
|
-
} = c(i, a,
|
|
22
|
+
} = c(i, a, h, l, n);
|
|
23
23
|
return e("button", {
|
|
24
24
|
className: u,
|
|
25
25
|
ref: p,
|
|
26
26
|
onClick: f,
|
|
27
27
|
...s,
|
|
28
28
|
children: e(B, {
|
|
29
|
-
el: y.
|
|
29
|
+
el: y.DIV,
|
|
30
30
|
variant: T.BODY,
|
|
31
31
|
stronger: !0,
|
|
32
32
|
children: m
|
|
33
33
|
})
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
const k = d(
|
|
36
|
+
const k = d(E);
|
|
37
37
|
export {
|
|
38
38
|
k as default
|
|
39
39
|
};
|
|
@@ -1,83 +1,87 @@
|
|
|
1
|
-
import
|
|
1
|
+
import g from "../../../FormFields/InputBase.js";
|
|
2
2
|
import "./AmountFilter.scss.js";
|
|
3
|
-
import { useState as
|
|
3
|
+
import { useState as p, useCallback as x, useEffect as T, useMemo as N } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
4
4
|
import h from "../../../../../core/Context/useCoreContext.js";
|
|
5
|
-
import { AMOUNT_MULTIPLIER as
|
|
6
|
-
import { jsx as
|
|
7
|
-
import { isUndefined as
|
|
5
|
+
import { AMOUNT_MULTIPLIER as b } from "./constants.js";
|
|
6
|
+
import { jsx as n } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
7
|
+
import { isUndefined as m } from "../../../../../utils/value/is.js";
|
|
8
8
|
import { CommitAction as F } from "../../../../../hooks/useCommitAction/types.js";
|
|
9
|
-
const
|
|
10
|
-
onChange:
|
|
11
|
-
editAction:
|
|
12
|
-
onValueUpdated:
|
|
9
|
+
const S = ({
|
|
10
|
+
onChange: i,
|
|
11
|
+
editAction: o,
|
|
12
|
+
onValueUpdated: u,
|
|
13
13
|
selectedCurrencies: I,
|
|
14
14
|
availableCurrencies: M,
|
|
15
15
|
value: V,
|
|
16
|
-
...
|
|
16
|
+
...l
|
|
17
17
|
}) => {
|
|
18
18
|
const {
|
|
19
|
-
i18n:
|
|
20
|
-
} = h(), [
|
|
21
|
-
|
|
22
|
-
minAmount:
|
|
23
|
-
maxAmount:
|
|
19
|
+
i18n: r
|
|
20
|
+
} = h(), [t, c] = p(m(l.minAmount) ? void 0 : parseFloat(l.minAmount) / b), [a, d] = p(m(l.maxAmount) ? void 0 : parseFloat(l.maxAmount) / b), v = x(() => {
|
|
21
|
+
i({
|
|
22
|
+
minAmount: t,
|
|
23
|
+
maxAmount: a
|
|
24
24
|
});
|
|
25
|
-
}, [
|
|
26
|
-
|
|
25
|
+
}, [a, t, i]), f = x(() => {
|
|
26
|
+
i({
|
|
27
27
|
minAmount: void 0,
|
|
28
28
|
maxAmount: void 0
|
|
29
29
|
}), d(void 0), c(void 0);
|
|
30
|
-
}, [
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}, [v, f,
|
|
34
|
-
const
|
|
35
|
-
minAmount:
|
|
36
|
-
maxAmount:
|
|
37
|
-
}), [
|
|
38
|
-
return
|
|
39
|
-
|
|
40
|
-
|
|
30
|
+
}, [i]);
|
|
31
|
+
T(() => {
|
|
32
|
+
o === F.APPLY && v(), o === F.CLEAR && f();
|
|
33
|
+
}, [v, f, o]);
|
|
34
|
+
const A = N(() => ({
|
|
35
|
+
minAmount: Number(t),
|
|
36
|
+
maxAmount: Number(a)
|
|
37
|
+
}), [a, t]);
|
|
38
|
+
return T(() => {
|
|
39
|
+
const {
|
|
40
|
+
maxAmount: e,
|
|
41
|
+
minAmount: s
|
|
42
|
+
} = A;
|
|
43
|
+
m(e) && m(s) || s > e ? u(null) : u(`${s}-${e}`);
|
|
44
|
+
}, [A, u]), n("div", {
|
|
41
45
|
className: "adyen-pe-range-selection-filter",
|
|
42
|
-
children: [
|
|
46
|
+
children: [n("div", {
|
|
43
47
|
className: "adyen-pe-range-selection-filter__input",
|
|
44
|
-
children: [
|
|
48
|
+
children: [n("label", {
|
|
45
49
|
htmlFor: "minValue",
|
|
46
|
-
children: `${
|
|
47
|
-
}),
|
|
50
|
+
children: `${r.get("from")}:`
|
|
51
|
+
}), n(g, {
|
|
48
52
|
"data-testid": "minValueFilter",
|
|
49
|
-
lang:
|
|
53
|
+
lang: r.locale,
|
|
50
54
|
name: "minValue",
|
|
51
55
|
type: "number",
|
|
52
|
-
value:
|
|
53
|
-
onInput: (
|
|
54
|
-
|
|
56
|
+
value: t,
|
|
57
|
+
onInput: (e) => {
|
|
58
|
+
e.currentTarget && c(e.currentTarget.value !== "" ? e.currentTarget.value : void 0);
|
|
55
59
|
},
|
|
56
60
|
min: 0,
|
|
57
|
-
isInvalid:
|
|
58
|
-
errorMessage:
|
|
61
|
+
isInvalid: t ? t < 0 : !1,
|
|
62
|
+
errorMessage: r.get("noNegativeNumbersAllowed")
|
|
59
63
|
})]
|
|
60
|
-
}),
|
|
64
|
+
}), n("div", {
|
|
61
65
|
className: "adyen-pe-range-selection-filter__input",
|
|
62
|
-
children: [
|
|
66
|
+
children: [n("label", {
|
|
63
67
|
htmlFor: "maxValue",
|
|
64
|
-
children: `${
|
|
65
|
-
}),
|
|
68
|
+
children: `${r.get("to")}:`
|
|
69
|
+
}), n(g, {
|
|
66
70
|
"data-testid": "maxValueFilter",
|
|
67
|
-
lang:
|
|
71
|
+
lang: r.locale,
|
|
68
72
|
name: "maxValue",
|
|
69
73
|
type: "number",
|
|
70
|
-
value:
|
|
71
|
-
onInput: (
|
|
72
|
-
|
|
74
|
+
value: a,
|
|
75
|
+
onInput: (e) => {
|
|
76
|
+
e.currentTarget && d(e.currentTarget.value !== "" ? e.currentTarget.value : void 0);
|
|
73
77
|
},
|
|
74
|
-
min:
|
|
75
|
-
isInvalid: !
|
|
76
|
-
errorMessage:
|
|
78
|
+
min: t,
|
|
79
|
+
isInvalid: !m(a) && !m(t) && a < t,
|
|
80
|
+
errorMessage: r.get("toValueShouldBeGreaterThanTheFromValue")
|
|
77
81
|
})]
|
|
78
82
|
})]
|
|
79
83
|
});
|
|
80
84
|
};
|
|
81
85
|
export {
|
|
82
|
-
|
|
86
|
+
S as RangeSelection
|
|
83
87
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useResponsiveViewport as g, mediaQueries as V } from "../../../../
|
|
1
|
+
import { useResponsiveViewport as g, mediaQueries as V } from "../../../../hooks/useResponsiveViewport.js";
|
|
2
2
|
import Y from "../../components/FilterButton/FilterButton.js";
|
|
3
3
|
import q from "../../../Popover/Popover.js";
|
|
4
4
|
import { PopoverContainerVariant as z, PopoverContainerPosition as H } from "../../../Popover/types.js";
|
|
@@ -3,13 +3,13 @@ import _ from "classnames";
|
|
|
3
3
|
import { forwardRef as P } from "../../../external/preact/compat/dist/compat.module.js";
|
|
4
4
|
import { useCallback as r } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
5
5
|
import "./FormFields.scss.js";
|
|
6
|
-
import { jsx as
|
|
6
|
+
import { jsx as c } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
7
7
|
import { Fragment as k } from "../../../external/preact/dist/preact.module.js";
|
|
8
8
|
import { hasOwnProperty as q } from "../../../utils/struct/property.js";
|
|
9
9
|
function u({
|
|
10
|
-
onInput:
|
|
10
|
+
onInput: a,
|
|
11
11
|
onKeyUp: d,
|
|
12
|
-
trimOnBlur:
|
|
12
|
+
trimOnBlur: l,
|
|
13
13
|
onBlurHandler: e,
|
|
14
14
|
onBlur: t,
|
|
15
15
|
onFocusHandler: s,
|
|
@@ -25,22 +25,22 @@ function u({
|
|
|
25
25
|
spellCheck: O,
|
|
26
26
|
type: y,
|
|
27
27
|
uniqueId: o,
|
|
28
|
-
isCollatingErrors:
|
|
29
|
-
disabled:
|
|
28
|
+
isCollatingErrors: $,
|
|
29
|
+
disabled: g
|
|
30
30
|
} = p;
|
|
31
31
|
q(p, "onChange") && console.error("Error: Form fields that rely on InputBase may not have an onChange property");
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
}, [
|
|
35
|
-
d && d(
|
|
36
|
-
}, [d]),
|
|
37
|
-
e == null || e(
|
|
38
|
-
}, [t, e,
|
|
39
|
-
s == null || s(
|
|
40
|
-
}, [s]),
|
|
32
|
+
const N = r((i) => {
|
|
33
|
+
a == null || a(i);
|
|
34
|
+
}, [a]), x = r((i) => {
|
|
35
|
+
d && d(i);
|
|
36
|
+
}, [d]), R = r((i) => {
|
|
37
|
+
e == null || e(i), l && (i.target.value = i.target.value.trim()), t == null || t(i);
|
|
38
|
+
}, [t, e, l]), b = r((i) => {
|
|
39
|
+
s == null || s(i);
|
|
40
|
+
}, [s]), w = _("adyen-pe-input", [`adyen-pe-input--${y}`], p.className, {
|
|
41
41
|
"adyen-pe-input--invalid": n,
|
|
42
42
|
"adyen-pe-input--valid": C
|
|
43
|
-
}, m == null ? void 0 : m.map((
|
|
43
|
+
}, m == null ? void 0 : m.map((i) => `adyen-pe-input--${i}`)), {
|
|
44
44
|
classNameModifiers: V,
|
|
45
45
|
uniqueId: j,
|
|
46
46
|
isInvalid: F,
|
|
@@ -48,22 +48,22 @@ function u({
|
|
|
48
48
|
isCollatingErrors: U,
|
|
49
49
|
...E
|
|
50
50
|
} = p;
|
|
51
|
-
return
|
|
52
|
-
children: [
|
|
51
|
+
return c(k, {
|
|
52
|
+
children: [c("input", {
|
|
53
53
|
id: o,
|
|
54
54
|
...E,
|
|
55
55
|
type: y,
|
|
56
|
-
className:
|
|
56
|
+
className: w,
|
|
57
57
|
readOnly: I,
|
|
58
|
-
"aria-describedby":
|
|
58
|
+
"aria-describedby": $ ? void 0 : `${o}${h}`,
|
|
59
59
|
"aria-invalid": n,
|
|
60
|
-
onInput:
|
|
61
|
-
onBlur:
|
|
62
|
-
onFocus:
|
|
63
|
-
onKeyUp:
|
|
64
|
-
disabled:
|
|
60
|
+
onInput: N,
|
|
61
|
+
onBlur: R,
|
|
62
|
+
onFocus: b,
|
|
63
|
+
onKeyUp: x,
|
|
64
|
+
disabled: g,
|
|
65
65
|
ref: v
|
|
66
|
-
}), n && f &&
|
|
66
|
+
}), n && f && c("span", {
|
|
67
67
|
className: "adyen-pe-input__invalid-value",
|
|
68
68
|
id: `${o}${h}`,
|
|
69
69
|
children: f
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { memo as n } from "../../../../../external/preact/compat/dist/compat.module.js";
|
|
2
2
|
import { useCallback as a } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
3
|
-
import { useResponsiveViewport as p, mediaQueries as C } from "../../../../
|
|
3
|
+
import { useResponsiveViewport as p, mediaQueries as C } from "../../../../hooks/useResponsiveViewport.js";
|
|
4
4
|
import { renderDefaultSingleSelectionCheckedness as c } from "../components/SelectListItem.js";
|
|
5
5
|
import "./BalanceAccountSelector.scss.js";
|
|
6
6
|
import { jsx as s } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
@@ -44,7 +44,7 @@ const ke = ({
|
|
|
44
44
|
items: g,
|
|
45
45
|
multiSelect: m,
|
|
46
46
|
selected: H
|
|
47
|
-
}), [o, i] = T(!1), [h, d] = T(""), E = a(null), p = a(null), k = a(null), v = a(`select-${Re()}`), [te,
|
|
47
|
+
}), [o, i] = T(!1), [h, d] = T(""), E = a(null), p = a(null), k = a(null), v = a(`select-${Re()}`), [te, x] = T(0), B = a(), S = a(!0), C = a(!1), L = a(n), N = a(n), re = l(() => {
|
|
48
48
|
d(""), i(!1), o && (f(L.current), S.current = !0);
|
|
49
49
|
}, [f, i, d, o]), se = de(() => fe([K, {
|
|
50
50
|
[Ee]: De(m)
|
|
@@ -90,10 +90,10 @@ const ke = ({
|
|
|
90
90
|
}
|
|
91
91
|
}, [g, I]);
|
|
92
92
|
b(() => {
|
|
93
|
-
|
|
93
|
+
N.current !== n && (N.current = n, (!m || C.current) && (R(), c())), C.current = !1;
|
|
94
94
|
}, [c, R, m, n]), b(() => {
|
|
95
|
-
W && (
|
|
96
|
-
}, [W, c,
|
|
95
|
+
W && (x(n.length), c());
|
|
96
|
+
}, [W, c, x, n.length]);
|
|
97
97
|
const oe = l((e) => {
|
|
98
98
|
switch (e.code) {
|
|
99
99
|
case s.ESCAPE:
|
|
@@ -120,7 +120,7 @@ const ke = ({
|
|
|
120
120
|
e.preventDefault(), i(!0);
|
|
121
121
|
}, [c, u, A, o, i, h]);
|
|
122
122
|
b(() => {
|
|
123
|
-
o && (cancelAnimationFrame(
|
|
123
|
+
o && (cancelAnimationFrame(B.current), B.current = requestAnimationFrame(() => {
|
|
124
124
|
var e;
|
|
125
125
|
e: {
|
|
126
126
|
let t = (e = p.current) == null ? void 0 : e.firstElementChild, r;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useResponsiveViewport as R, mediaQueries as w } from "../../../../
|
|
2
|
-
import
|
|
3
|
-
import { PopoverContainerSize as
|
|
1
|
+
import { useResponsiveViewport as R, mediaQueries as w } from "../../../../hooks/useResponsiveViewport.js";
|
|
2
|
+
import x from "../../../Popover/Popover.js";
|
|
3
|
+
import { PopoverContainerSize as b, PopoverContainerVariant as A, PopoverContainerPosition as V } from "../../../Popover/types.js";
|
|
4
4
|
import g from "../../../../../core/Context/useCoreContext.js";
|
|
5
5
|
import a from "classnames";
|
|
6
6
|
import { memo as h } from "../../../../../external/preact/compat/dist/compat.module.js";
|
|
@@ -34,7 +34,7 @@ const $ = B(({
|
|
|
34
34
|
} = g(), L = R(w.down.xs), m = d.filter((e) => !n || e.name.toLowerCase().includes(n)), T = a(F, {
|
|
35
35
|
[W]: i
|
|
36
36
|
}), I = a(z, j), M = l(() => Q(t) ? t : y, [t]), r = l(() => U(s), [s]);
|
|
37
|
-
return i ? o(
|
|
37
|
+
return i ? o(x, {
|
|
38
38
|
classNameModifiers: P,
|
|
39
39
|
actions: r ? p : void 0,
|
|
40
40
|
disableFocusTrap: !0,
|
|
@@ -43,7 +43,7 @@ const $ = B(({
|
|
|
43
43
|
dismissible: !1,
|
|
44
44
|
open: i,
|
|
45
45
|
setToTargetWidth: N,
|
|
46
|
-
containerSize:
|
|
46
|
+
containerSize: b.MEDIUM,
|
|
47
47
|
variant: A.POPOVER,
|
|
48
48
|
targetElement: S,
|
|
49
49
|
withContentPadding: !1,
|
|
@@ -2,11 +2,11 @@ import t from "classnames";
|
|
|
2
2
|
import { useImageUrl as i } from "../../../hooks/useImageUrl/useImageUrl.js";
|
|
3
3
|
import { useMemo as p } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
4
4
|
import { jsx as c } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
5
|
-
const
|
|
5
|
+
const l = ({
|
|
6
6
|
folder: m = "components/",
|
|
7
7
|
className: r,
|
|
8
|
-
alt:
|
|
9
|
-
name:
|
|
8
|
+
alt: e,
|
|
9
|
+
name: s,
|
|
10
10
|
extension: o
|
|
11
11
|
}) => {
|
|
12
12
|
const a = i({
|
|
@@ -14,14 +14,14 @@ const f = ({
|
|
|
14
14
|
imageFolder: m,
|
|
15
15
|
extension: o
|
|
16
16
|
}), [o, m]),
|
|
17
|
-
name:
|
|
17
|
+
name: s
|
|
18
18
|
});
|
|
19
19
|
return c("img", {
|
|
20
20
|
className: t("adyen-pe__image", r),
|
|
21
|
-
alt:
|
|
21
|
+
alt: e,
|
|
22
22
|
src: a
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
l as Image
|
|
27
27
|
};
|
|
@@ -5,8 +5,8 @@ import { jsx as n } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.m
|
|
|
5
5
|
function L(s) {
|
|
6
6
|
const {
|
|
7
7
|
backgroundUrl: a = "",
|
|
8
|
-
className:
|
|
9
|
-
classNameModifiers:
|
|
8
|
+
className: c = "",
|
|
9
|
+
classNameModifiers: m = [],
|
|
10
10
|
src: l = "",
|
|
11
11
|
alt: d = "",
|
|
12
12
|
showOnError: f = !1
|
|
@@ -14,9 +14,9 @@ function L(s) {
|
|
|
14
14
|
o(!0);
|
|
15
15
|
}, g = () => {
|
|
16
16
|
o(f);
|
|
17
|
-
}, t = E([
|
|
17
|
+
}, t = E([c], "adyen-pe-image", {
|
|
18
18
|
"adyen-pe-image--loaded": i
|
|
19
|
-
}, ...
|
|
19
|
+
}, ...m.map((e) => `adyen-pe-image--${e}`));
|
|
20
20
|
return y(() => {
|
|
21
21
|
const e = a ? new Image() : r.current;
|
|
22
22
|
e && (e.src = a || l, e.onload = u), o(!!(e != null && e.complete));
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { useClickOutside as w } from "../../../hooks/element/useClickOutside.js";
|
|
2
|
-
import { useResponsiveViewport as h, mediaQueries as _ } from "../../
|
|
2
|
+
import { useResponsiveViewport as h, mediaQueries as _ } from "../../hooks/useResponsiveViewport.js";
|
|
3
3
|
import { ButtonVariant as v } from "../Button/types.js";
|
|
4
4
|
import g from "../SVGIcons/Close.js";
|
|
5
|
-
import
|
|
6
|
-
import { useCallback as
|
|
5
|
+
import x from "../../../core/Context/useCoreContext.js";
|
|
6
|
+
import { useCallback as E, useEffect as k } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
7
7
|
import m from "classnames";
|
|
8
8
|
import "./Modal.scss.js";
|
|
9
9
|
import { jsx as e } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
10
|
-
import
|
|
10
|
+
import N from "../Button/Button.js";
|
|
11
11
|
import { Fragment as B } from "../../../external/preact/dist/preact.module.js";
|
|
12
12
|
function K({
|
|
13
13
|
title: n,
|
|
@@ -22,7 +22,7 @@ function K({
|
|
|
22
22
|
}) {
|
|
23
23
|
const u = h(_.down.xs), {
|
|
24
24
|
i18n: f
|
|
25
|
-
} =
|
|
25
|
+
} = x(), y = w(null, d), l = E((t) => {
|
|
26
26
|
t.key === "Escape" && a && o && d();
|
|
27
27
|
}, [a, o, d]);
|
|
28
28
|
return k(() => (a ? window.addEventListener("keydown", l) : window.removeEventListener("keydown", l), () => window.removeEventListener("keydown", l)), [a, l]), e(B, {
|
|
@@ -52,7 +52,7 @@ function K({
|
|
|
52
52
|
children: [n && e("div", {
|
|
53
53
|
className: "adyen-pe-modal__header__title",
|
|
54
54
|
children: n
|
|
55
|
-
}), o && e(
|
|
55
|
+
}), o && e(N, {
|
|
56
56
|
onClick: d,
|
|
57
57
|
variant: v.TERTIARY,
|
|
58
58
|
iconButton: !0,
|