@adyen/adyen-platform-experience-web 1.0.3 → 1.1.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/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 +39 -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 +44 -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
|
@@ -1,78 +1,79 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { useState as F, useCallback as Y, useMemo as k } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
2
|
+
import { DATE_FORMAT_TRANSACTIONS_MOBILE as x, DATE_FORMAT_TRANSACTIONS as H } from "../../../../internal/DataOverviewDisplay/constants.js";
|
|
3
|
+
import I from "../Category/Category.js";
|
|
4
|
+
import P from "../../../../internal/DataOverviewError/DataOverviewError.js";
|
|
5
5
|
import V from "../../../../../core/Context/useCoreContext.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { CellTextPosition as
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
6
|
+
import { getCurrencyCode as $ } from "../../../../../core/Localization/amount/amount-util.js";
|
|
7
|
+
import B from "../../../../hooks/useTimezoneAwareDateFormatting.js";
|
|
8
|
+
import { CellTextPosition as G } from "../../../../internal/DataGrid/types.js";
|
|
9
|
+
import { TypographyVariant as r } from "../../../../internal/Typography/types.js";
|
|
10
|
+
import n from "../../../../internal/Typography/Typography.js";
|
|
11
|
+
import { useResponsiveViewport as p, mediaQueries as d } from "../../../../hooks/useResponsiveViewport.js";
|
|
12
|
+
import { BASE_CLASS as U, AMOUNT_CLASS as W, DATE_AND_PAYMENT_METHOD_CLASS as j, DATE_METHOD_CLASS as q } from "./constants.js";
|
|
11
13
|
import "./TransactionTable.scss.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
+
import y from "./PaymentMethodCell.js";
|
|
15
|
+
import { useTableColumns as z } from "../../../../hooks/useTableColumns.js";
|
|
14
16
|
import { jsx as t } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
const
|
|
18
|
-
activeBalanceAccount:
|
|
19
|
-
availableCurrencies:
|
|
20
|
-
error:
|
|
21
|
-
hasMultipleCurrencies:
|
|
22
|
-
loading:
|
|
17
|
+
import f from "../../../../internal/DataGrid/DataGrid.js";
|
|
18
|
+
import K from "../../../../internal/Pagination/Pagination.js";
|
|
19
|
+
const Q = ["createdAt", "paymentMethod", "transactionType", "amount"], fo = ({
|
|
20
|
+
activeBalanceAccount: a,
|
|
21
|
+
availableCurrencies: s,
|
|
22
|
+
error: i,
|
|
23
|
+
hasMultipleCurrencies: c,
|
|
24
|
+
loading: h,
|
|
23
25
|
onContactSupport: l,
|
|
24
|
-
onRowClick:
|
|
25
|
-
showDetails:
|
|
26
|
-
showPagination:
|
|
27
|
-
transactions:
|
|
28
|
-
|
|
26
|
+
onRowClick: M,
|
|
27
|
+
showDetails: X,
|
|
28
|
+
showPagination: D,
|
|
29
|
+
transactions: S,
|
|
30
|
+
customColumns: C,
|
|
31
|
+
...g
|
|
29
32
|
}) => {
|
|
30
33
|
const {
|
|
31
|
-
i18n:
|
|
34
|
+
i18n: m
|
|
32
35
|
} = V(), {
|
|
33
|
-
dateFormat:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
};
|
|
52
|
-
}), [n, f, i, a, r]), R = {
|
|
36
|
+
dateFormat: T
|
|
37
|
+
} = B(a == null ? void 0 : a.timeZone), [_, u] = F(), A = p(d.up.sm), E = p(d.up.md), O = p(d.down.xs), v = m.get("amount"), w = z({
|
|
38
|
+
fields: Q,
|
|
39
|
+
customColumns: C,
|
|
40
|
+
columnConfig: {
|
|
41
|
+
amount: {
|
|
42
|
+
label: c ? void 0 : `${v} ${s && s[0] ? `(${$(s[0])})` : ""}`,
|
|
43
|
+
position: G.RIGHT,
|
|
44
|
+
flex: A ? 1.5 : void 0
|
|
45
|
+
},
|
|
46
|
+
transactionType: {
|
|
47
|
+
visible: E
|
|
48
|
+
},
|
|
49
|
+
paymentMethod: {
|
|
50
|
+
visible: A
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}), N = {
|
|
53
54
|
title: "noTransactionsFound",
|
|
54
55
|
message: ["tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain"]
|
|
55
|
-
},
|
|
56
|
+
}, R = Y((o) => {
|
|
56
57
|
u(o ?? void 0);
|
|
57
|
-
}, [u]),
|
|
58
|
-
error:
|
|
58
|
+
}, [u]), b = k(() => () => t(P, {
|
|
59
|
+
error: i,
|
|
59
60
|
onContactSupport: l,
|
|
60
61
|
errorMessage: "weCouldNotLoadYourTransactions"
|
|
61
|
-
}), [
|
|
62
|
+
}), [i, l]);
|
|
62
63
|
return t("div", {
|
|
63
|
-
className:
|
|
64
|
-
children: t(
|
|
65
|
-
errorDisplay:
|
|
66
|
-
error:
|
|
67
|
-
columns:
|
|
68
|
-
data:
|
|
69
|
-
loading:
|
|
64
|
+
className: U,
|
|
65
|
+
children: t(f, {
|
|
66
|
+
errorDisplay: b,
|
|
67
|
+
error: i,
|
|
68
|
+
columns: w,
|
|
69
|
+
data: S,
|
|
70
|
+
loading: h,
|
|
70
71
|
outline: !1,
|
|
71
72
|
onRowClick: {
|
|
72
|
-
callback:
|
|
73
|
+
callback: M
|
|
73
74
|
},
|
|
74
|
-
onRowHover:
|
|
75
|
-
emptyTableMessage:
|
|
75
|
+
onRowHover: R,
|
|
76
|
+
emptyTableMessage: N,
|
|
76
77
|
customCells: {
|
|
77
78
|
// Remove status column temporarily
|
|
78
79
|
/* status: ({ value }) => {
|
|
@@ -83,59 +84,64 @@ const q = ["dateAndPaymentMethod", "createdAt", "paymentMethod", "transactionTyp
|
|
|
83
84
|
/>
|
|
84
85
|
);
|
|
85
86
|
},*/
|
|
86
|
-
dateAndPaymentMethod: ({
|
|
87
|
-
item: o
|
|
88
|
-
}) => t("div", {
|
|
89
|
-
className: T,
|
|
90
|
-
children: [t(h, {
|
|
91
|
-
paymentMethod: o.paymentMethod,
|
|
92
|
-
bankAccount: o.bankAccount
|
|
93
|
-
}), t("span", {
|
|
94
|
-
className: T,
|
|
95
|
-
children: E(o.createdAt, x)
|
|
96
|
-
})]
|
|
97
|
-
}),
|
|
98
87
|
transactionType: ({
|
|
99
88
|
item: o,
|
|
100
89
|
rowIndex: e
|
|
101
90
|
}) => {
|
|
102
|
-
const
|
|
103
|
-
return o.category ?
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}) :
|
|
91
|
+
const L = `tooltip.${o.category}`;
|
|
92
|
+
return o.category ? m.has(L) ? t(I, {
|
|
93
|
+
isContainerHovered: e === _,
|
|
94
|
+
value: o.category
|
|
95
|
+
}) : t(n, {
|
|
96
|
+
variant: r.BODY,
|
|
97
|
+
children: o.category
|
|
98
|
+
}) : null;
|
|
107
99
|
},
|
|
108
|
-
createdAt: ({
|
|
109
|
-
value: o
|
|
110
|
-
}) => t("span", {
|
|
111
|
-
children: b(o)
|
|
112
|
-
}),
|
|
113
100
|
amount: ({
|
|
114
101
|
value: o
|
|
115
102
|
}) => {
|
|
116
|
-
const e =
|
|
117
|
-
hideCurrency: !
|
|
103
|
+
const e = m.amount(o.value, o.currency, {
|
|
104
|
+
hideCurrency: !c
|
|
118
105
|
});
|
|
119
|
-
return t(
|
|
106
|
+
return t(n, {
|
|
107
|
+
variant: r.BODY,
|
|
120
108
|
className: W,
|
|
121
109
|
children: e
|
|
122
110
|
});
|
|
123
111
|
},
|
|
112
|
+
createdAt: ({
|
|
113
|
+
item: o,
|
|
114
|
+
value: e
|
|
115
|
+
}) => O ? t("div", {
|
|
116
|
+
className: j,
|
|
117
|
+
children: [t(y, {
|
|
118
|
+
paymentMethod: o.paymentMethod,
|
|
119
|
+
bankAccount: o.bankAccount
|
|
120
|
+
}), t(n, {
|
|
121
|
+
variant: r.BODY,
|
|
122
|
+
className: q,
|
|
123
|
+
children: T(o.createdAt, x)
|
|
124
|
+
})]
|
|
125
|
+
}) : t(n, {
|
|
126
|
+
variant: r.BODY,
|
|
127
|
+
children: T(e, H)
|
|
128
|
+
}),
|
|
124
129
|
paymentMethod: ({
|
|
125
130
|
item: o
|
|
126
|
-
}) => t(
|
|
131
|
+
}) => t(y, {
|
|
127
132
|
paymentMethod: o.paymentMethod,
|
|
128
133
|
bankAccount: o.bankAccount
|
|
129
134
|
})
|
|
130
135
|
},
|
|
131
|
-
children:
|
|
132
|
-
children: t(
|
|
133
|
-
...
|
|
136
|
+
children: D && t(f.Footer, {
|
|
137
|
+
children: t(K, {
|
|
138
|
+
...g
|
|
134
139
|
})
|
|
135
140
|
})
|
|
136
141
|
})
|
|
137
142
|
});
|
|
138
143
|
};
|
|
139
144
|
export {
|
|
140
|
-
|
|
145
|
+
Q as TRANSACTION_FIELDS,
|
|
146
|
+
fo as TransactionsTable
|
|
141
147
|
};
|
package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/constants.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
const _ = "adyen-pe-transactions-table", t = _ + "__amount",
|
|
1
|
+
const _ = "adyen-pe-transactions-table", t = _ + "__amount", n = _ + "__payment-method", o = _ + "__payment-method-logo-container", e = _ + "__payment-method-logo", A = _ + "__date-and-payment-method", a = _ + "__date-and-payment-method--date";
|
|
2
2
|
export {
|
|
3
3
|
t as AMOUNT_CLASS,
|
|
4
4
|
_ as BASE_CLASS,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
A as DATE_AND_PAYMENT_METHOD_CLASS,
|
|
6
|
+
a as DATE_METHOD_CLASS,
|
|
7
|
+
n as PAYMENT_METHOD_CLASS,
|
|
8
|
+
e as PAYMENT_METHOD_LOGO_CLASS,
|
|
9
|
+
o as PAYMENT_METHOD_LOGO_CONTAINER_CLASS
|
|
9
10
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useState as n, useCallback as C, useEffect as r } from "../../external/preact/hooks/dist/hooks.module.js";
|
|
2
|
+
const i = ({
|
|
3
|
+
records: s,
|
|
4
|
+
onDataRetrieved: t,
|
|
5
|
+
mergeCustomData: c
|
|
6
|
+
}) => {
|
|
7
|
+
const [e, u] = n(s), [f, l] = n(!1), a = C((m) => async () => {
|
|
8
|
+
try {
|
|
9
|
+
const o = t ? await t(m) : [];
|
|
10
|
+
u(c({
|
|
11
|
+
records: s,
|
|
12
|
+
retrievedData: o
|
|
13
|
+
}));
|
|
14
|
+
} catch (o) {
|
|
15
|
+
u(s), console.error(o);
|
|
16
|
+
} finally {
|
|
17
|
+
l(!1);
|
|
18
|
+
}
|
|
19
|
+
}, [t, s, c]);
|
|
20
|
+
return r(() => {
|
|
21
|
+
t && s.length && (l(!0), a(s)());
|
|
22
|
+
}, [t, a, s]), {
|
|
23
|
+
customRecords: e,
|
|
24
|
+
loadingCustomRecords: f
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
i as useCustomColumnsData
|
|
29
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { useState as o, useRef as u, useCallback as f, useEffect as i } from "../../external/preact/hooks/dist/hooks.module.js";
|
|
2
|
+
const l = (e = 1e3, a = !1) => {
|
|
3
|
+
const [r, s] = o(a), t = u(), n = u(), c = f(() => {
|
|
4
|
+
r || (n.current = setTimeout(() => {
|
|
5
|
+
t.current = requestAnimationFrame(() => s(!1));
|
|
6
|
+
}, e), s(!0));
|
|
7
|
+
}, [r, e]);
|
|
8
|
+
return i(() => () => {
|
|
9
|
+
cancelAnimationFrame(t.current), clearTimeout(n.current), t.current = n.current = null;
|
|
10
|
+
}, [e]), {
|
|
11
|
+
freeze: c,
|
|
12
|
+
frozen: r
|
|
13
|
+
};
|
|
14
|
+
}, F = l;
|
|
15
|
+
export {
|
|
16
|
+
F as default,
|
|
17
|
+
l as useFreezePeriod
|
|
18
|
+
};
|
package/dist/es/components/{external/TransactionsOverview/hooks → hooks}/useResponsiveViewport.js
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BREAKPOINTS as m } from "
|
|
2
|
-
import { useMediaQuery as i } from "
|
|
1
|
+
import { BREAKPOINTS as m } from "../../constants.js";
|
|
2
|
+
import { useMediaQuery as i } from "../../hooks/useMediaQuery/useMediaQuery.js";
|
|
3
3
|
const p = {
|
|
4
4
|
up: {
|
|
5
5
|
sm: `(min-width: ${m.sm}px)`,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { useMemo as p } from "../../external/preact/hooks/dist/hooks.module.js";
|
|
2
|
+
import { getLabel as c } from "../utils/getLabel.js";
|
|
3
|
+
import b from "../../core/Context/useCoreContext.js";
|
|
4
|
+
import { EMPTY_OBJECT as a } from "../../utils/value/constants.js";
|
|
5
|
+
import { isUndefined as l, isString as v } from "../../utils/value/is.js";
|
|
6
|
+
function y(r) {
|
|
7
|
+
let e = {};
|
|
8
|
+
for (const t of Object.keys(r))
|
|
9
|
+
l(r[t]) || (e = {
|
|
10
|
+
...e,
|
|
11
|
+
[t]: r[t]
|
|
12
|
+
});
|
|
13
|
+
return e;
|
|
14
|
+
}
|
|
15
|
+
function u(r) {
|
|
16
|
+
return r.every(v);
|
|
17
|
+
}
|
|
18
|
+
const P = ({
|
|
19
|
+
fields: r,
|
|
20
|
+
customColumns: e,
|
|
21
|
+
columnConfig: t
|
|
22
|
+
}) => {
|
|
23
|
+
const {
|
|
24
|
+
i18n: n
|
|
25
|
+
} = b(), o = p(() => r.map((i) => ({
|
|
26
|
+
key: i
|
|
27
|
+
})), [r]);
|
|
28
|
+
return p(() => ((e ? u(e) ? e.map((s) => ({
|
|
29
|
+
key: s
|
|
30
|
+
})) : e : void 0) || o).map(({
|
|
31
|
+
key: s,
|
|
32
|
+
flex: f
|
|
33
|
+
}) => {
|
|
34
|
+
const d = n.get(c(s)), m = y((t == null ? void 0 : t[s]) || a);
|
|
35
|
+
return {
|
|
36
|
+
key: s,
|
|
37
|
+
label: d,
|
|
38
|
+
visible: !0,
|
|
39
|
+
flex: f,
|
|
40
|
+
...m || a
|
|
41
|
+
};
|
|
42
|
+
}), [t, e, n, o]);
|
|
43
|
+
};
|
|
44
|
+
export {
|
|
45
|
+
P as useTableColumns
|
|
46
|
+
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import d from "classnames";
|
|
2
|
-
import { useState as C, useRef as m, useCallback as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import { useState as C, useRef as m, useCallback as h } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
3
|
+
import A from "../SVGIcons/ChevronDown.js";
|
|
4
|
+
import N from "../SVGIcons/ChevronUp.js";
|
|
5
5
|
import { ACCORDION_BASE_CLASS as O, ACCORDION_HEADER_CLASS as p, ACCORDION_HEADER_CONTAINER_CLASS as E, ACCORDION_HEADER_CONTROLLER_CLASS as S, ACCORDION_CONTENT_CLASS as _ } from "./constants.js";
|
|
6
6
|
import "./Accordion.scss.js";
|
|
7
7
|
import { jsx as e } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
8
8
|
function L({
|
|
9
|
-
children:
|
|
9
|
+
children: a,
|
|
10
10
|
classNames: c,
|
|
11
|
-
header:
|
|
12
|
-
headerInformation:
|
|
11
|
+
header: n,
|
|
12
|
+
headerInformation: i
|
|
13
13
|
}) {
|
|
14
|
-
var
|
|
15
|
-
const [o, l] = C(!1), r = m(null),
|
|
14
|
+
var t;
|
|
15
|
+
const [o, l] = C(!1), r = m(null), s = h(() => {
|
|
16
16
|
l(!o);
|
|
17
17
|
}, [o]);
|
|
18
18
|
return e("div", {
|
|
@@ -23,32 +23,32 @@ function L({
|
|
|
23
23
|
id: "accordion-controller",
|
|
24
24
|
"aria-controls": "accordion-content",
|
|
25
25
|
className: E,
|
|
26
|
-
onClick:
|
|
26
|
+
onClick: s,
|
|
27
27
|
"aria-expanded": o,
|
|
28
28
|
children: e("div", {
|
|
29
29
|
className: S,
|
|
30
|
-
children: [
|
|
30
|
+
children: [n, o ? e(N, {
|
|
31
31
|
height: 8,
|
|
32
32
|
width: 15
|
|
33
|
-
}) : e(
|
|
33
|
+
}) : e(A, {
|
|
34
34
|
height: 8,
|
|
35
35
|
width: 15
|
|
36
36
|
})]
|
|
37
37
|
})
|
|
38
|
-
}),
|
|
39
|
-
children:
|
|
38
|
+
}), i && e("div", {
|
|
39
|
+
children: i
|
|
40
40
|
})]
|
|
41
41
|
}), e("div", {
|
|
42
42
|
role: "region",
|
|
43
43
|
id: "accordion-content",
|
|
44
44
|
"aria-labelledby": "accordion-controller",
|
|
45
45
|
style: {
|
|
46
|
-
maxHeight: o ? (
|
|
46
|
+
maxHeight: o ? (t = r == null ? void 0 : r.current) == null ? void 0 : t.offsetHeight : 0
|
|
47
47
|
},
|
|
48
48
|
className: _,
|
|
49
49
|
children: e("div", {
|
|
50
50
|
ref: r,
|
|
51
|
-
children:
|
|
51
|
+
children: a
|
|
52
52
|
})
|
|
53
53
|
})]
|
|
54
54
|
});
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import p from "classnames";
|
|
2
|
+
import { ButtonVariant as c } from "../Button/types.js";
|
|
3
|
+
import s from "../SVGIcons/Close.js";
|
|
4
|
+
import h from "../SVGIcons/WarningFilled.js";
|
|
5
|
+
import { TypographyElement as t, TypographyVariant as n } from "../Typography/types.js";
|
|
6
|
+
import i from "../Typography/Typography.js";
|
|
7
|
+
import "./Alert.scss.js";
|
|
8
|
+
import { jsx as e } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
9
|
+
import y from "../Button/Button.js";
|
|
10
|
+
import { Fragment as u } from "../../../external/preact/dist/preact.module.js";
|
|
11
|
+
function x({
|
|
12
|
+
className: o,
|
|
13
|
+
description: r,
|
|
14
|
+
title: a,
|
|
15
|
+
type: l,
|
|
16
|
+
onClose: m,
|
|
17
|
+
isOpen: d
|
|
18
|
+
}) {
|
|
19
|
+
return e(u, {
|
|
20
|
+
children: d && e("div", {
|
|
21
|
+
className: p("adyen-pe-alert", o),
|
|
22
|
+
role: "alert",
|
|
23
|
+
children: e("div", {
|
|
24
|
+
className: `adyen-pe-alert__inner-container adyen-pe-alert--${l}`,
|
|
25
|
+
children: [e("div", {
|
|
26
|
+
className: "adyen-pe-alert__icon",
|
|
27
|
+
children: e(h, {})
|
|
28
|
+
}), e("div", {
|
|
29
|
+
className: "adyen-pe-alert__content",
|
|
30
|
+
children: [a && e(i, {
|
|
31
|
+
className: "adyen-pe-alert__title",
|
|
32
|
+
el: t.DIV,
|
|
33
|
+
variant: n.BODY,
|
|
34
|
+
wide: !0,
|
|
35
|
+
strongest: !0,
|
|
36
|
+
children: a
|
|
37
|
+
}), r && e(i, {
|
|
38
|
+
className: "adyen-pe-alert__description",
|
|
39
|
+
el: t.DIV,
|
|
40
|
+
variant: n.BODY,
|
|
41
|
+
wide: !0,
|
|
42
|
+
children: r
|
|
43
|
+
})]
|
|
44
|
+
}), e("div", {
|
|
45
|
+
className: "adyen-pe-alert__close-button",
|
|
46
|
+
children: e(y, {
|
|
47
|
+
iconButton: !0,
|
|
48
|
+
variant: c.TERTIARY,
|
|
49
|
+
onClick: m,
|
|
50
|
+
children: e(s, {
|
|
51
|
+
width: 7.12,
|
|
52
|
+
height: 7.12
|
|
53
|
+
})
|
|
54
|
+
})
|
|
55
|
+
})]
|
|
56
|
+
})
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
export {
|
|
61
|
+
x as default
|
|
62
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import g from "classnames";
|
|
2
|
+
import { useState as k, useEffect as m } from "../../../../external/preact/hooks/dist/hooks.module.js";
|
|
3
|
+
import x from "../../../../core/Context/useCoreContext.js";
|
|
4
|
+
import { useResponsiveViewport as B, mediaQueries as C } from "../../../hooks/useResponsiveViewport.js";
|
|
5
|
+
import h from "../../SVGIcons/Download.js";
|
|
6
|
+
import v from "../Button.js";
|
|
7
|
+
import { ButtonVariant as _ } from "../types.js";
|
|
8
|
+
import E from "./useDownload.js";
|
|
9
|
+
import "./DownloadButton.scss.js";
|
|
10
|
+
import { jsx as o } from "../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
11
|
+
import b from "../../Spinner/Spinner.js";
|
|
12
|
+
function N({
|
|
13
|
+
blob: r,
|
|
14
|
+
filename: c
|
|
15
|
+
}) {
|
|
16
|
+
const t = document.createElement("a"), n = URL.createObjectURL(r);
|
|
17
|
+
t.href = n, t.download = c || "download";
|
|
18
|
+
const a = () => {
|
|
19
|
+
setTimeout(() => {
|
|
20
|
+
URL.revokeObjectURL(n);
|
|
21
|
+
}, 150);
|
|
22
|
+
};
|
|
23
|
+
t.addEventListener("click", a, {
|
|
24
|
+
once: !0
|
|
25
|
+
}), t.click();
|
|
26
|
+
}
|
|
27
|
+
function Y({
|
|
28
|
+
className: r,
|
|
29
|
+
disabled: c,
|
|
30
|
+
endpointName: t,
|
|
31
|
+
params: n,
|
|
32
|
+
setError: a,
|
|
33
|
+
errorDisplay: f,
|
|
34
|
+
onDownloadRequested: d
|
|
35
|
+
}) {
|
|
36
|
+
const {
|
|
37
|
+
i18n: p
|
|
38
|
+
} = x(), [s, u] = k(!1), L = B(C.down.xs), {
|
|
39
|
+
data: l,
|
|
40
|
+
error: i,
|
|
41
|
+
isFetching: e
|
|
42
|
+
} = E(t, n, s);
|
|
43
|
+
m(() => {
|
|
44
|
+
s && u(!1);
|
|
45
|
+
}, [s]), m(() => {
|
|
46
|
+
l && N(l);
|
|
47
|
+
}, [l]), m(() => {
|
|
48
|
+
a && i && a(i);
|
|
49
|
+
}, [i]);
|
|
50
|
+
const w = () => {
|
|
51
|
+
u(!0), d == null || d();
|
|
52
|
+
};
|
|
53
|
+
return o("div", {
|
|
54
|
+
className: "adyen-pe-download",
|
|
55
|
+
children: [L ? o(v, {
|
|
56
|
+
iconButton: !0,
|
|
57
|
+
variant: _.TERTIARY,
|
|
58
|
+
onClick: w,
|
|
59
|
+
children: e ? o(b, {
|
|
60
|
+
size: "small"
|
|
61
|
+
}) : o(h, {})
|
|
62
|
+
}) : o(v, {
|
|
63
|
+
className: g("adyen-pe-download__button", {
|
|
64
|
+
"adyen-pe-download__button--loading": e
|
|
65
|
+
}, r),
|
|
66
|
+
disabled: c || e,
|
|
67
|
+
variant: _.SECONDARY,
|
|
68
|
+
onClick: w,
|
|
69
|
+
iconLeft: e ? o(b, {
|
|
70
|
+
size: "small"
|
|
71
|
+
}) : o(h, {}),
|
|
72
|
+
children: e ? `${p.get("downloading")}..` : p.get("download")
|
|
73
|
+
}), i && f && o("div", {
|
|
74
|
+
className: "adyen-pe-download__error",
|
|
75
|
+
children: f
|
|
76
|
+
})]
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
export {
|
|
80
|
+
Y as default
|
|
81
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { useFetch as r } from "../../../../hooks/useFetch/useFetch.js";
|
|
2
|
+
import { useAuthContext as s } from "../../../../core/Auth/context.js";
|
|
3
|
+
import { EMPTY_OBJECT as u } from "../../../../utils/value/constants.js";
|
|
4
|
+
const a = (t, e, n) => {
|
|
5
|
+
const o = s().endpoints[t];
|
|
6
|
+
return r({
|
|
7
|
+
fetchOptions: {
|
|
8
|
+
enabled: !!o && n,
|
|
9
|
+
keepPrevData: !0
|
|
10
|
+
},
|
|
11
|
+
queryFn: async () => o(u, {
|
|
12
|
+
...e
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
}, i = a;
|
|
16
|
+
export {
|
|
17
|
+
i as default
|
|
18
|
+
};
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { CARD_BASE_CLASS as
|
|
1
|
+
import { CARD_BASE_CLASS as l, CARD_FILLED as o, CARD_NO_OUTLINE as h, CARD_HEADER as L, CARD_HEADER_CONTENT as O, CARD_TITLE as n, CARD_SUBTITLE as p, CARD_BODY as I, CARD_BODY_WITH_TITLE as f, CARD_FOOTER as B } from "./constants.js";
|
|
2
2
|
import A from "classnames";
|
|
3
3
|
import "./Card.scss.js";
|
|
4
4
|
import { jsx as s } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
5
5
|
const S = ({
|
|
6
6
|
title: c,
|
|
7
|
-
subTitle:
|
|
7
|
+
subTitle: _,
|
|
8
8
|
children: C,
|
|
9
|
-
footer:
|
|
9
|
+
footer: m,
|
|
10
10
|
el: R,
|
|
11
11
|
renderHeader: a,
|
|
12
|
-
renderFooter:
|
|
12
|
+
renderFooter: D,
|
|
13
13
|
filled: E,
|
|
14
14
|
noOutline: N,
|
|
15
|
-
classNameModifiers:
|
|
15
|
+
classNameModifiers: T
|
|
16
16
|
}) => {
|
|
17
|
-
const
|
|
17
|
+
const i = R || "header";
|
|
18
18
|
return s("section", {
|
|
19
|
-
className: A(
|
|
19
|
+
className: A(l, {
|
|
20
20
|
[o]: E,
|
|
21
21
|
[h]: N
|
|
22
|
-
},
|
|
23
|
-
children: [(c || a) && s(
|
|
22
|
+
}, T),
|
|
23
|
+
children: [(c || a) && s(i, {
|
|
24
24
|
className: L,
|
|
25
25
|
children: (c || a) && s("div", {
|
|
26
26
|
className: O,
|
|
27
27
|
children: [a || s("span", {
|
|
28
28
|
className: n,
|
|
29
29
|
children: c
|
|
30
|
-
}),
|
|
30
|
+
}), _ && s("div", {
|
|
31
31
|
className: p,
|
|
32
|
-
children:
|
|
32
|
+
children: _
|
|
33
33
|
})]
|
|
34
34
|
})
|
|
35
35
|
}), s("div", {
|
|
@@ -37,12 +37,12 @@ const S = ({
|
|
|
37
37
|
[f]: c || a
|
|
38
38
|
}),
|
|
39
39
|
children: C
|
|
40
|
-
}), (
|
|
40
|
+
}), (m || D) && s("footer", {
|
|
41
41
|
className: B,
|
|
42
|
-
children:
|
|
42
|
+
children: D || m
|
|
43
43
|
})]
|
|
44
44
|
});
|
|
45
|
-
},
|
|
45
|
+
}, u = S;
|
|
46
46
|
export {
|
|
47
|
-
|
|
47
|
+
u as default
|
|
48
48
|
};
|