@adyen/adyen-platform-experience-web 1.3.1 → 1.4.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/adyen-platform-experience-web.css +1 -1
- package/dist/{angle-right-reGJ7jfy.cjs → angle-right-DpuNqT0j.cjs} +2 -2
- package/dist/{angle-right-reGJ7jfy.cjs.map → angle-right-DpuNqT0j.cjs.map} +1 -1
- package/dist/{checkmark-DLQ0eQ9B.cjs → checkmark-CC7Mmd_x.cjs} +2 -2
- package/dist/{checkmark-DLQ0eQ9B.cjs.map → checkmark-CC7Mmd_x.cjs.map} +1 -1
- package/dist/{checkmark-circle-fill-daKF6pt4.cjs → checkmark-circle-fill-1IL4ERtO.cjs} +2 -2
- package/dist/{checkmark-circle-fill-daKF6pt4.cjs.map → checkmark-circle-fill-1IL4ERtO.cjs.map} +1 -1
- package/dist/{checkmark-square-fill-B6wYCtwy.cjs → checkmark-square-fill-Bu2jdGU3.cjs} +2 -2
- package/dist/{checkmark-square-fill-B6wYCtwy.cjs.map → checkmark-square-fill-Bu2jdGU3.cjs.map} +1 -1
- package/dist/{chevron-down-DN0sbcES.cjs → chevron-down-BVCFqkLo.cjs} +2 -2
- package/dist/{chevron-down-DN0sbcES.cjs.map → chevron-down-BVCFqkLo.cjs.map} +1 -1
- package/dist/{chevron-left-DQy9RoLd.cjs → chevron-left-DfGEXTbq.cjs} +2 -2
- package/dist/{chevron-left-DQy9RoLd.cjs.map → chevron-left-DfGEXTbq.cjs.map} +1 -1
- package/dist/{chevron-right-C1v8rslw.cjs → chevron-right-DzkYlomK.cjs} +2 -2
- package/dist/{chevron-right-C1v8rslw.cjs.map → chevron-right-DzkYlomK.cjs.map} +1 -1
- package/dist/{chevron-up-DLQHTfYo.cjs → chevron-up-CpmBSOon.cjs} +2 -2
- package/dist/{chevron-up-DLQHTfYo.cjs.map → chevron-up-CpmBSOon.cjs.map} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/{copy-BAyT_BYn.cjs → copy-DuV1z0-c.cjs} +2 -2
- package/dist/{copy-BAyT_BYn.cjs.map → copy-DuV1z0-c.cjs.map} +1 -1
- package/dist/{cross-8jn1CRBO.cjs → cross-C5L4gQrS.cjs} +2 -2
- package/dist/{cross-8jn1CRBO.cjs.map → cross-C5L4gQrS.cjs.map} +1 -1
- package/dist/{cross-circle-fill-DUcHCmLb.cjs → cross-circle-fill-D6Ir0xDO.cjs} +2 -2
- package/dist/{cross-circle-fill-DUcHCmLb.cjs.map → cross-circle-fill-D6Ir0xDO.cjs.map} +1 -1
- package/dist/da-DK-DHGqGo8Q.cjs +2 -0
- package/dist/da-DK-DHGqGo8Q.cjs.map +1 -0
- package/dist/de-DE-k_BRPv7a.cjs +2 -0
- package/dist/de-DE-k_BRPv7a.cjs.map +1 -0
- package/dist/{download-BwO4dcZi.cjs → download-IwqY_7gX.cjs} +2 -2
- package/dist/{download-BwO4dcZi.cjs.map → download-IwqY_7gX.cjs.map} +1 -1
- package/dist/es/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.js +5 -5
- package/dist/es/components/external/CapitalOverview/components/AccountDetails/AccountDetail.js +22 -0
- package/dist/es/components/external/CapitalOverview/components/AccountDetails/AccountDetails.js +34 -0
- package/dist/es/components/external/CapitalOverview/components/AccountDetails/utils.js +46 -0
- package/dist/es/components/external/CapitalOverview/components/CapitalOverview/CapitalOverview.js +58 -58
- package/dist/es/components/external/CapitalOverview/components/GrantAdjustmentDetails/GrantAdjustmentDetails.js +34 -0
- package/dist/es/components/external/CapitalOverview/components/GrantAdjustmentDetails/constants.js +7 -0
- package/dist/es/components/external/CapitalOverview/components/GrantItem/GrantItem.js +71 -51
- package/dist/es/components/external/CapitalOverview/components/GrantItem/constants.js +4 -2
- package/dist/es/components/external/CapitalOverview/components/GrantItem/utils.js +17 -10
- package/dist/es/components/external/CapitalOverview/components/GrantList/GrantList.js +24 -23
- package/dist/es/components/external/CapitalOverview/components/GrantList/GrantsDisplay.js +36 -23
- package/dist/es/components/external/CapitalOverview/components/GrantRepaymentDetails/GrantRepaymentDetails.js +54 -0
- package/dist/es/components/external/PayoutDetails/components/PayoutData.js +142 -92
- package/dist/es/components/external/PayoutDetails/components/constants.js +14 -9
- package/dist/es/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.js +108 -90
- package/dist/es/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.js +33 -31
- package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.js +81 -64
- package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.js +69 -75
- package/dist/es/components/external/TransactionDetails/components/TransactionData/TransactionData.js +5 -5
- package/dist/es/components/external/TransactionDetails/components/TransactionData/TransactionDataContent.js +138 -129
- package/dist/es/components/external/TransactionDetails/components/details/TransactionDataProperties.js +72 -42
- package/dist/es/components/external/TransactionDetails/context/details/context.js +46 -38
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +8 -8
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +19 -19
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +23 -23
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +144 -141
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/PaymentMethodCell.js +13 -13
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +37 -38
- package/dist/es/components/external/UIElement/UIElement.js +29 -26
- package/dist/es/components/internal/AnchorButton/AnchorButton.js +11 -11
- package/dist/es/components/internal/Button/Button.js +16 -16
- package/dist/es/components/internal/Button/ButtonActions/ButtonActions.js +15 -13
- package/dist/es/components/internal/Button/DownloadButton/DownloadButton.js +27 -27
- package/dist/es/components/internal/Button/constants.js +12 -11
- package/dist/es/components/internal/CopyText/CopyText.js +17 -21
- package/dist/es/components/internal/DataGrid/DataGridCell.js +16 -17
- package/dist/es/components/internal/DataGrid/components/TableCells.js +40 -19
- package/dist/es/components/internal/DataGrid/components/TableHeaderCell.js +12 -13
- package/dist/es/components/internal/DataOverviewDetails/DataOverviewDetails.js +62 -47
- package/dist/es/components/internal/DataOverviewDisplay/DataDetailsModal.js +14 -13
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +1 -1
- package/dist/es/components/internal/FilterBar/FilterBar.js +20 -20
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +50 -50
- package/dist/es/components/internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.js +23 -21
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +42 -42
- package/dist/es/components/internal/FormFields/Select/components/SelectList.js +15 -15
- package/dist/es/components/internal/Icon/Icon.js +1 -0
- package/dist/es/components/internal/Link/Link.js +40 -0
- package/dist/es/components/internal/Modal/Modal.js +18 -18
- package/dist/es/components/internal/Modal/ModalContent/ModalContent.js +13 -13
- package/dist/es/components/internal/StructuredList/StructuredList.js +24 -23
- package/dist/es/components/internal/StructuredList/constants.js +6 -5
- package/dist/es/components/internal/StructuredList/useStructuredListItem.js +9 -7
- package/dist/es/components/internal/Tooltip/Tooltip.js +32 -28
- package/dist/es/components/utils/customData/hasCustomField.js +22 -0
- package/dist/es/components/utils/customData/mergeRecords.js +13 -0
- package/dist/es/core/Context/CoreContext.js +4 -3
- package/dist/es/core/Context/CoreProvider.js +15 -14
- package/dist/es/core/Http/utils.js +1 -1
- package/dist/es/core/Localization/datetime/restamper/constants.js +1 -1
- package/dist/es/core/Localization/datetime/restamper/utils.js +12 -12
- package/dist/es/core/core.js +1 -1
- package/dist/es/external/preact/compat/dist/compat.module.js +18 -17
- package/dist/es/external/preact/dist/preact.module.js +10 -6
- package/dist/es/hooks/useContainerQuery.js +37 -0
- package/dist/es/hooks/useCustomColumnsData.js +24 -21
- package/dist/es/hooks/useResponsiveContainer.js +24 -0
- package/dist/es/hooks/useTableColumns.js +43 -23
- package/dist/es/images/icons/external-link.svg.js +6 -0
- package/dist/es/translations/da-DK.json.js +51 -41
- package/dist/es/translations/de-DE.json.js +63 -53
- package/dist/es/translations/en-US.json.js +39 -29
- package/dist/es/translations/es-ES.json.js +79 -69
- package/dist/es/translations/fi-FI.json.js +59 -49
- package/dist/es/translations/fr-FR.json.js +77 -67
- package/dist/es/translations/it-IT.json.js +55 -45
- package/dist/es/translations/nl-NL.json.js +35 -25
- package/dist/es/translations/no-NO.json.js +43 -33
- package/dist/es/translations/pt-BR.json.js +100 -90
- package/dist/es/translations/sv-SE.json.js +47 -37
- package/dist/es-ES-Cy-9bm8z.cjs +2 -0
- package/dist/es-ES-Cy-9bm8z.cjs.map +1 -0
- package/dist/external-link-r39cGU4L.cjs +2 -0
- package/dist/external-link-r39cGU4L.cjs.map +1 -0
- package/dist/fi-FI-C7ICLuS8.cjs +2 -0
- package/dist/fi-FI-C7ICLuS8.cjs.map +1 -0
- package/dist/{filter-DGCUlKbX.cjs → filter-BGBP3TAU.cjs} +2 -2
- package/dist/{filter-DGCUlKbX.cjs.map → filter-BGBP3TAU.cjs.map} +1 -1
- package/dist/fr-FR-DH8euUOp.cjs +2 -0
- package/dist/fr-FR-DH8euUOp.cjs.map +1 -0
- package/dist/index-BeWwE_B0.cjs +12 -0
- package/dist/index-BeWwE_B0.cjs.map +1 -0
- package/dist/{info-filled-y_-s_7-J.cjs → info-filled-C_zUEZ2b.cjs} +2 -2
- package/dist/{info-filled-y_-s_7-J.cjs.map → info-filled-C_zUEZ2b.cjs.map} +1 -1
- package/dist/it-IT-DsfPVAun.cjs +2 -0
- package/dist/it-IT-DsfPVAun.cjs.map +1 -0
- package/dist/{minus-circle-outline-BombUmpi.cjs → minus-circle-outline-1CJ3DOVB.cjs} +2 -2
- package/dist/{minus-circle-outline-BombUmpi.cjs.map → minus-circle-outline-1CJ3DOVB.cjs.map} +1 -1
- package/dist/nl-NL-DP_t6EpF.cjs +2 -0
- package/dist/nl-NL-DP_t6EpF.cjs.map +1 -0
- package/dist/no-NO-ARsXLWv0.cjs +2 -0
- package/dist/no-NO-ARsXLWv0.cjs.map +1 -0
- package/dist/{plus-circle-outline-2EQEIXAM.cjs → plus-circle-outline-CPQ_oOtQ.cjs} +2 -2
- package/dist/{plus-circle-outline-2EQEIXAM.cjs.map → plus-circle-outline-CPQ_oOtQ.cjs.map} +1 -1
- package/dist/pt-BR-CuTqntp7.cjs +2 -0
- package/dist/pt-BR-CuTqntp7.cjs.map +1 -0
- package/dist/{square-Ds2_OrAo.cjs → square-BmHyYgat.cjs} +2 -2
- package/dist/{square-Ds2_OrAo.cjs.map → square-BmHyYgat.cjs.map} +1 -1
- package/dist/sv-SE-DDAIHLKD.cjs +2 -0
- package/dist/sv-SE-DDAIHLKD.cjs.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/AccountDetails/AccountDetail.d.ts +14 -0
- package/dist/types/components/external/CapitalOverview/components/AccountDetails/AccountDetail.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/AccountDetails/AccountDetails.d.ts +5 -0
- package/dist/types/components/external/CapitalOverview/components/AccountDetails/AccountDetails.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/AccountDetails/types.d.ts +10 -0
- package/dist/types/components/external/CapitalOverview/components/AccountDetails/types.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/AccountDetails/utils.d.ts +5 -0
- package/dist/types/components/external/CapitalOverview/components/AccountDetails/utils.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantAdjustmentDetails/GrantAdjustmentDetails.d.ts +10 -0
- package/dist/types/components/external/CapitalOverview/components/GrantAdjustmentDetails/GrantAdjustmentDetails.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantAdjustmentDetails/constants.d.ts +5 -0
- package/dist/types/components/external/CapitalOverview/components/GrantAdjustmentDetails/constants.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantAdjustmentDetails/types.d.ts +10 -0
- package/dist/types/components/external/CapitalOverview/components/GrantAdjustmentDetails/types.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantItem/GrantItem.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/components/GrantItem/constants.d.ts +2 -0
- package/dist/types/components/external/CapitalOverview/components/GrantItem/constants.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/components/GrantItem/types.d.ts +21 -0
- package/dist/types/components/external/CapitalOverview/components/GrantItem/types.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/components/GrantItem/utils.d.ts +2 -19
- package/dist/types/components/external/CapitalOverview/components/GrantItem/utils.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/components/GrantList/GrantList.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/components/GrantList/GrantsDisplay.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/components/GrantList/types.d.ts +2 -1
- package/dist/types/components/external/CapitalOverview/components/GrantList/types.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/components/GrantRepaymentDetails/GrantRepaymentDetails.d.ts +5 -0
- package/dist/types/components/external/CapitalOverview/components/GrantRepaymentDetails/GrantRepaymentDetails.d.ts.map +1 -0
- package/dist/types/components/external/PayoutDetails/PayoutDetails.d.ts +3 -3
- package/dist/types/components/external/PayoutDetails/PayoutDetails.d.ts.map +1 -1
- package/dist/types/components/external/PayoutDetails/components/PayoutData.d.ts +6 -1
- package/dist/types/components/external/PayoutDetails/components/PayoutData.d.ts.map +1 -1
- package/dist/types/components/external/PayoutDetails/components/constants.d.ts +5 -0
- package/dist/types/components/external/PayoutDetails/components/constants.d.ts.map +1 -1
- package/dist/types/components/external/PayoutDetails/types.d.ts +8 -0
- package/dist/types/components/external/PayoutDetails/types.d.ts.map +1 -0
- package/dist/types/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.d.ts +1 -1
- 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 +5 -0
- package/dist/types/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.d.ts.map +1 -1
- package/dist/types/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.d.ts +1 -1
- package/dist/types/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.d.ts.map +1 -1
- package/dist/types/components/external/ReportsOverview/components/ReportsTable/ReportsTable.d.ts +5 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsTable/ReportsTable.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts +3 -3
- package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionData/TransactionData.d.ts +1 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionData/TransactionData.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionData/TransactionDataContent.d.ts +2 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionData/TransactionDataContent.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/components/constants.d.ts +1 -1
- package/dist/types/components/external/TransactionDetails/components/constants.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/components/details/TransactionDataProperties.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/context/details/context.d.ts +1 -1
- package/dist/types/components/external/TransactionDetails/context/details/context.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/context/details/types.d.ts +3 -1
- package/dist/types/components/external/TransactionDetails/context/details/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundAction.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/types.d.ts +15 -3
- package/dist/types/components/external/TransactionDetails/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/TransactionsTable.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts.map +1 -1
- package/dist/types/components/external/UIElement/UIElement.d.ts +2 -0
- package/dist/types/components/external/UIElement/UIElement.d.ts.map +1 -1
- package/dist/types/components/internal/Button/Button.d.ts.map +1 -1
- package/dist/types/components/internal/Button/ButtonActions/ButtonActions.d.ts.map +1 -1
- package/dist/types/components/internal/Button/ButtonActions/types.d.ts +1 -0
- package/dist/types/components/internal/Button/ButtonActions/types.d.ts.map +1 -1
- package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts +16 -0
- package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts.map +1 -1
- package/dist/types/components/internal/Button/constants.d.ts +1 -0
- package/dist/types/components/internal/Button/constants.d.ts.map +1 -1
- package/dist/types/components/internal/CopyText/CopyText.d.ts +8 -6
- package/dist/types/components/internal/CopyText/CopyText.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts +3 -2
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/TableHeaderCell.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/types.d.ts +1 -4
- package/dist/types/components/internal/DataGrid/types.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 +8 -3
- package/dist/types/components/internal/DataOverviewDetails/types.d.ts.map +1 -1
- package/dist/types/components/internal/DataOverviewDisplay/DataDetailsModal.d.ts +2 -0
- package/dist/types/components/internal/DataOverviewDisplay/DataDetailsModal.d.ts.map +1 -1
- 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/FilterBar/FilterBar.d.ts +2 -2
- package/dist/types/components/internal/FilterBar/FilterBar.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/types.d.ts +1 -1
- package/dist/types/components/internal/FilterBar/types.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectButton.d.ts.map +1 -1
- package/dist/types/components/internal/Icon/Icon.d.ts +1 -0
- package/dist/types/components/internal/Icon/Icon.d.ts.map +1 -1
- package/dist/types/components/internal/Link/Link.d.ts +6 -0
- package/dist/types/components/internal/Link/Link.d.ts.map +1 -0
- package/dist/types/components/internal/Link/types.d.ts +15 -0
- package/dist/types/components/internal/Link/types.d.ts.map +1 -0
- package/dist/types/components/internal/Modal/ModalContent/ModalContent.d.ts +1 -1
- package/dist/types/components/internal/Modal/ModalContent/ModalContent.d.ts.map +1 -1
- package/dist/types/components/internal/StructuredList/StructuredList.d.ts +1 -1
- package/dist/types/components/internal/StructuredList/StructuredList.d.ts.map +1 -1
- package/dist/types/components/internal/StructuredList/constants.d.ts +1 -0
- package/dist/types/components/internal/StructuredList/constants.d.ts.map +1 -1
- package/dist/types/components/internal/StructuredList/types.d.ts +6 -1
- package/dist/types/components/internal/StructuredList/types.d.ts.map +1 -1
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +3 -1
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts.map +1 -1
- package/dist/types/components/internal/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/types/components/types.d.ts +63 -13
- package/dist/types/components/types.d.ts.map +1 -1
- package/dist/types/components/utils/customData/hasCustomField.d.ts +5 -0
- package/dist/types/components/utils/customData/hasCustomField.d.ts.map +1 -0
- package/dist/types/components/utils/customData/mergeRecords.d.ts +5 -0
- package/dist/types/components/utils/customData/mergeRecords.d.ts.map +1 -0
- package/dist/types/core/ConfigContext/context.d.ts +64 -32
- package/dist/types/core/ConfigContext/context.d.ts.map +1 -1
- package/dist/types/core/ConfigContext/session/AuthSession.d.ts +128 -64
- package/dist/types/core/ConfigContext/session/AuthSession.d.ts.map +1 -1
- package/dist/types/core/ConfigContext/session/SetupContext.d.ts +64 -32
- package/dist/types/core/ConfigContext/session/SetupContext.d.ts.map +1 -1
- package/dist/types/core/Context/CoreContext.d.ts.map +1 -1
- package/dist/types/core/Context/CoreProvider.d.ts +1 -1
- package/dist/types/core/Context/CoreProvider.d.ts.map +1 -1
- package/dist/types/core/Context/types.d.ts +2 -0
- package/dist/types/core/Context/types.d.ts.map +1 -1
- package/dist/types/core/Localization/datetime/restamper/constants.d.ts.map +1 -1
- package/dist/types/hooks/useContainerQuery.d.ts +6 -0
- package/dist/types/hooks/useContainerQuery.d.ts.map +1 -0
- package/dist/types/hooks/useCustomColumnsData.d.ts +3 -2
- package/dist/types/hooks/useCustomColumnsData.d.ts.map +1 -1
- package/dist/types/hooks/useResponsiveContainer.d.ts +42 -0
- package/dist/types/hooks/useResponsiveContainer.d.ts.map +1 -0
- package/dist/types/hooks/useTableColumns.d.ts +4 -4
- package/dist/types/hooks/useTableColumns.d.ts.map +1 -1
- package/dist/types/translations/index.d.ts +10 -0
- package/dist/types/translations/index.d.ts.map +1 -1
- package/dist/types/types/api/resources/CapitalResource.d.ts +10 -0
- package/dist/types/types/api/resources/CapitalResource.d.ts.map +1 -1
- package/dist/{warning-CqutbHgk.cjs → warning-eizPFTg-.cjs} +2 -2
- package/dist/{warning-CqutbHgk.cjs.map → warning-eizPFTg-.cjs.map} +1 -1
- package/dist/{warning-filled-DL73IbMz.cjs → warning-filled-CiVuOE_O.cjs} +2 -2
- package/dist/{warning-filled-DL73IbMz.cjs.map → warning-filled-CiVuOE_O.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/da-DK-UDr4zLEm.cjs +0 -2
- package/dist/da-DK-UDr4zLEm.cjs.map +0 -1
- package/dist/de-DE-CRXo3Lip.cjs +0 -2
- package/dist/de-DE-CRXo3Lip.cjs.map +0 -1
- package/dist/es/components/internal/DataGrid/types.js +0 -4
- package/dist/es/hooks/useMediaQuery.js +0 -14
- package/dist/es/hooks/useResponsiveViewport.js +0 -24
- package/dist/es-ES-DKE_miHr.cjs +0 -2
- package/dist/es-ES-DKE_miHr.cjs.map +0 -1
- package/dist/fi-FI-MQMNSR--.cjs +0 -2
- package/dist/fi-FI-MQMNSR--.cjs.map +0 -1
- package/dist/fr-FR-Bq797--M.cjs +0 -2
- package/dist/fr-FR-Bq797--M.cjs.map +0 -1
- package/dist/index-BU9H-9Gn.cjs +0 -12
- package/dist/index-BU9H-9Gn.cjs.map +0 -1
- package/dist/it-IT-P4aG92g4.cjs +0 -2
- package/dist/it-IT-P4aG92g4.cjs.map +0 -1
- package/dist/nl-NL-CkNmbOjk.cjs +0 -2
- package/dist/nl-NL-CkNmbOjk.cjs.map +0 -1
- package/dist/no-NO-Cb48UzO1.cjs +0 -2
- package/dist/no-NO-Cb48UzO1.cjs.map +0 -1
- package/dist/pt-BR-7QdWAx4z.cjs +0 -2
- package/dist/pt-BR-7QdWAx4z.cjs.map +0 -1
- package/dist/sv-SE-DDU8uUdf.cjs +0 -2
- package/dist/sv-SE-DDU8uUdf.cjs.map +0 -1
- package/dist/types/hooks/useMediaQuery.d.ts +0 -3
- package/dist/types/hooks/useMediaQuery.d.ts.map +0 -1
- package/dist/types/hooks/useResponsiveViewport.d.ts +0 -28
- package/dist/types/hooks/useResponsiveViewport.d.ts.map +0 -1
|
@@ -1,92 +1,92 @@
|
|
|
1
1
|
import { jsx as a } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import
|
|
3
|
-
import { useMemo as
|
|
4
|
-
import
|
|
5
|
-
import { ButtonVariant as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { TypographyElement as
|
|
9
|
-
import { DROPDOWN_BUTTON_CLASS as
|
|
10
|
-
import { Fragment as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { boolOrFalse as
|
|
14
|
-
const
|
|
2
|
+
import D from "classnames";
|
|
3
|
+
import { useMemo as s } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
4
|
+
import f from "../../../../../core/Context/useCoreContext.js";
|
|
5
|
+
import { ButtonVariant as u } from "../../../Button/types.js";
|
|
6
|
+
import C from "../../../Typography/Typography.js";
|
|
7
|
+
import L from "../../../SVGIcons/ChevronDown.js";
|
|
8
|
+
import { TypographyElement as B, TypographyVariant as p } from "../../../Typography/types.js";
|
|
9
|
+
import { DROPDOWN_BUTTON_CLASS as R, DROPDOWN_BUTTON_ACTIVE_CLASS as h, DROPDOWN_BUTTON_HAS_SELECTION_CLASS as y, DROPDOWN_BUTTON_READONLY_CLASS as A, DROPDOWN_BUTTON_INVALID_CLASS as E, DROPDOWN_BUTTON_VALID_CLASS as P, DROPDOWN_BUTTON_ICON_CLASS as U, DROPDOWN_BUTTON_TEXT_CLASS as g, DROPDOWN_BUTTON_MULTI_SELECT_COUNTER_CLASS as x, DROPDOWN_BUTTON_COLLAPSE_INDICATOR_CLASS as I, DROPDOWN_BUTTON_CLASSNAME as W } from "../constants.js";
|
|
10
|
+
import { Fragment as b } from "../../../../../external/preact/dist/preact.module.js";
|
|
11
|
+
import w from "../../../Img/Img.js";
|
|
12
|
+
import V from "../../../Button/Button.js";
|
|
13
|
+
import { boolOrFalse as F } from "../../../../../utils/value/bool.js";
|
|
14
|
+
const M = ({
|
|
15
15
|
active: e,
|
|
16
|
-
disabled:
|
|
16
|
+
disabled: d,
|
|
17
17
|
className: i,
|
|
18
18
|
filterable: n,
|
|
19
19
|
toggleButtonRef: l,
|
|
20
20
|
...o
|
|
21
21
|
}) => {
|
|
22
|
-
const r =
|
|
22
|
+
const r = s(() => n ? D(W, i) : i, [i, n]);
|
|
23
23
|
return n ? /* @__PURE__ */ a("div", { ...o, className: r, ref: l }) : /* @__PURE__ */ a(
|
|
24
|
-
|
|
24
|
+
V,
|
|
25
25
|
{
|
|
26
26
|
...o,
|
|
27
27
|
className: r,
|
|
28
|
-
disabled:
|
|
29
|
-
variant:
|
|
28
|
+
disabled: d,
|
|
29
|
+
variant: u.SECONDARY,
|
|
30
30
|
ref: l
|
|
31
31
|
}
|
|
32
32
|
);
|
|
33
|
-
},
|
|
34
|
-
var
|
|
35
|
-
const { i18n:
|
|
36
|
-
var
|
|
37
|
-
return ((
|
|
38
|
-
}, [t,
|
|
33
|
+
}, $ = (e) => {
|
|
34
|
+
var T, c;
|
|
35
|
+
const { i18n: d } = f(), { active: i, filterable: n, multiSelect: l, placeholder: o, readonly: r, showList: m, withoutCollapseIndicator: S } = e, O = s(() => (o == null ? void 0 : o.trim()) || d.get("select.filter.placeholder"), [d, o]), t = s(() => F(l) ? void 0 : i[0], [i, l]), N = s(() => {
|
|
36
|
+
var _;
|
|
37
|
+
return ((_ = t == null ? void 0 : t.name) == null ? void 0 : _.trim()) || O;
|
|
38
|
+
}, [t, O]);
|
|
39
39
|
return /* @__PURE__ */ a(
|
|
40
|
-
|
|
40
|
+
M,
|
|
41
41
|
{
|
|
42
42
|
active: i,
|
|
43
43
|
disabled: r,
|
|
44
44
|
"aria-disabled": r,
|
|
45
|
-
"aria-expanded":
|
|
45
|
+
"aria-expanded": m,
|
|
46
46
|
"aria-haspopup": "listbox",
|
|
47
|
-
className:
|
|
48
|
-
[
|
|
49
|
-
[
|
|
50
|
-
[
|
|
51
|
-
[
|
|
52
|
-
[
|
|
47
|
+
className: D(R, {
|
|
48
|
+
[h]: m,
|
|
49
|
+
[y]: !!i.length,
|
|
50
|
+
[A]: r,
|
|
51
|
+
[E]: e.isInvalid,
|
|
52
|
+
[P]: e.isValid
|
|
53
53
|
}),
|
|
54
54
|
filterable: n,
|
|
55
55
|
onClick: r ? void 0 : e.toggleList,
|
|
56
56
|
onKeyDown: r ? void 0 : e.onButtonKeyDown,
|
|
57
57
|
role: n ? "button" : void 0,
|
|
58
58
|
tabIndex: 0,
|
|
59
|
-
title:
|
|
59
|
+
title: N,
|
|
60
60
|
toggleButtonRef: e.toggleButtonRef,
|
|
61
61
|
type: n ? void 0 : "button",
|
|
62
62
|
"aria-describedby": e.ariaDescribedBy,
|
|
63
63
|
id: e.id ?? "",
|
|
64
64
|
children: [
|
|
65
|
-
|
|
65
|
+
m && n ? /* @__PURE__ */ a(
|
|
66
66
|
"input",
|
|
67
67
|
{
|
|
68
68
|
"aria-autocomplete": "list",
|
|
69
69
|
"aria-controls": e.selectListId,
|
|
70
|
-
"aria-expanded":
|
|
70
|
+
"aria-expanded": m,
|
|
71
71
|
"aria-owns": e.selectListId,
|
|
72
72
|
autoComplete: "off",
|
|
73
73
|
className: "adyen-pe-filter-input",
|
|
74
74
|
onInput: e.onInput,
|
|
75
|
-
placeholder:
|
|
75
|
+
placeholder: O,
|
|
76
76
|
ref: e.filterInputRef,
|
|
77
77
|
role: "combobox",
|
|
78
78
|
type: "text"
|
|
79
79
|
}
|
|
80
|
-
) : /* @__PURE__ */ a(
|
|
81
|
-
(t == null ? void 0 : t.icon) && /* @__PURE__ */ a(
|
|
82
|
-
/* @__PURE__ */ a("span", { className:
|
|
83
|
-
l && e.appliedFilterNumber > 0 && /* @__PURE__ */ a("div", { className:
|
|
80
|
+
) : /* @__PURE__ */ a(b, { children: [
|
|
81
|
+
(t == null ? void 0 : t.icon) && /* @__PURE__ */ a(w, { className: U, src: t.icon, alt: ((T = t == null ? void 0 : t.name) == null ? void 0 : T.trim()) ?? "" }),
|
|
82
|
+
/* @__PURE__ */ a("span", { className: g, children: ((c = t == null ? void 0 : t.selectedOptionName) == null ? void 0 : c.trim()) || N }),
|
|
83
|
+
l && e.appliedFilterNumber > 0 && /* @__PURE__ */ a("div", { className: x, children: /* @__PURE__ */ a(C, { el: B.SPAN, variant: p.BODY, stronger: !0, children: e.appliedFilterNumber }) })
|
|
84
84
|
] }),
|
|
85
|
-
!
|
|
85
|
+
!S && /* @__PURE__ */ a("span", { className: I, children: /* @__PURE__ */ a(L, { role: "presentation" }) })
|
|
86
86
|
]
|
|
87
87
|
}
|
|
88
88
|
);
|
|
89
89
|
};
|
|
90
90
|
export {
|
|
91
|
-
|
|
91
|
+
$ as default
|
|
92
92
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as o } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import {
|
|
2
|
+
import { useResponsiveContainer as R, containerQueries as x } from "../../../../../hooks/useResponsiveContainer.js";
|
|
3
3
|
import b from "../../../Popover/Popover.js";
|
|
4
|
-
import { PopoverContainerSize as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { memo as
|
|
4
|
+
import { PopoverContainerSize as A, PopoverContainerVariant as g, PopoverContainerPosition as h } from "../../../Popover/types.js";
|
|
5
|
+
import F from "../../../../../core/Context/useCoreContext.js";
|
|
6
|
+
import m from "classnames";
|
|
7
|
+
import { memo as W } from "../../../../../external/preact/compat/dist/compat.module.js";
|
|
8
8
|
import { useMemo as l } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
9
|
-
import { DROPDOWN_LIST_CLASS as
|
|
9
|
+
import { DROPDOWN_LIST_CLASS as w, DROPDOWN_LIST_ACTIVE_CLASS as V, DROPDOWN_ELEMENT_CLASS as z, DROPDOWN_ELEMENT_NO_OPTION_CLASS as j } from "../constants.js";
|
|
10
10
|
import y, { renderListItemDefault as B } from "./SelectListItem.js";
|
|
11
11
|
import { fixedForwardRef as Q } from "../../../../../utils/preact/fixedForwardRef.js";
|
|
12
12
|
import { isFunction as U } from "../../../../../utils/value/is.js";
|
|
@@ -16,13 +16,13 @@ const k = Q(
|
|
|
16
16
|
active: c,
|
|
17
17
|
commitActions: p,
|
|
18
18
|
items: d,
|
|
19
|
-
multiSelect:
|
|
19
|
+
multiSelect: n,
|
|
20
20
|
onKeyDown: f,
|
|
21
21
|
onSelect: u,
|
|
22
22
|
renderListItem: t,
|
|
23
23
|
selectListId: O,
|
|
24
24
|
showList: i,
|
|
25
|
-
textFilter:
|
|
25
|
+
textFilter: s,
|
|
26
26
|
toggleButtonRef: S,
|
|
27
27
|
dismissPopover: C,
|
|
28
28
|
setToTargetWidth: N,
|
|
@@ -30,7 +30,7 @@ const k = Q(
|
|
|
30
30
|
showOverlay: _,
|
|
31
31
|
fitPosition: D
|
|
32
32
|
}, E) => {
|
|
33
|
-
const { i18n: L } =
|
|
33
|
+
const { i18n: L } = F(), T = R(x.down.xs), a = d.filter((e) => !s || e.name.toLowerCase().includes(s)), v = m(w, { [V]: i }), M = m(z, j), I = l(() => U(t) ? t : B, [t]), r = l(() => $(n), [n]);
|
|
34
34
|
return i ? /* @__PURE__ */ o(
|
|
35
35
|
b,
|
|
36
36
|
{
|
|
@@ -42,14 +42,14 @@ const k = Q(
|
|
|
42
42
|
dismissible: !1,
|
|
43
43
|
open: i,
|
|
44
44
|
setToTargetWidth: N,
|
|
45
|
-
containerSize:
|
|
46
|
-
variant:
|
|
45
|
+
containerSize: A.MEDIUM,
|
|
46
|
+
variant: g.POPOVER,
|
|
47
47
|
targetElement: S,
|
|
48
48
|
withContentPadding: !1,
|
|
49
|
-
position:
|
|
49
|
+
position: h.BOTTOM,
|
|
50
50
|
showOverlay: _ && T,
|
|
51
51
|
fitPosition: D,
|
|
52
|
-
children: /* @__PURE__ */ o("ul", { className: v, id: O, ref: E, role: "listbox", "aria-multiselectable": r, children:
|
|
52
|
+
children: /* @__PURE__ */ o("ul", { className: v, id: O, ref: E, role: "listbox", "aria-multiselectable": r, children: a.length ? a.map((e) => /* @__PURE__ */ o(
|
|
53
53
|
y,
|
|
54
54
|
{
|
|
55
55
|
item: e,
|
|
@@ -64,7 +64,7 @@ const k = Q(
|
|
|
64
64
|
}
|
|
65
65
|
) : null;
|
|
66
66
|
}
|
|
67
|
-
),
|
|
67
|
+
), ne = W(k);
|
|
68
68
|
export {
|
|
69
|
-
|
|
69
|
+
ne as default
|
|
70
70
|
};
|
|
@@ -15,6 +15,7 @@ const e = {
|
|
|
15
15
|
"cross-circle-fill": () => import("../../../images/icons/cross-circle-fill.svg.js"),
|
|
16
16
|
cross: () => import("../../../images/icons/cross.svg.js"),
|
|
17
17
|
download: () => import("../../../images/icons/download.svg.js"),
|
|
18
|
+
"external-link": () => import("../../../images/icons/external-link.svg.js"),
|
|
18
19
|
filter: () => import("../../../images/icons/filter.svg.js"),
|
|
19
20
|
"info-filled": () => import("../../../images/icons/info-filled.svg.js"),
|
|
20
21
|
"minus-circle-outline": () => import("../../../images/icons/minus-circle-outline.svg.js"),
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as e } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
+
import s from "../Typography/Typography.js";
|
|
3
|
+
import { TypographyElement as c, TypographyVariant as k } from "../Typography/types.js";
|
|
4
|
+
import y from "classnames";
|
|
5
|
+
import { useCallback as u } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
import { Icon as d } from "../Icon/Icon.js";
|
|
8
|
+
function C({
|
|
9
|
+
href: n,
|
|
10
|
+
children: o,
|
|
11
|
+
variant: r = "default",
|
|
12
|
+
truncate: t,
|
|
13
|
+
target: a = "_blank",
|
|
14
|
+
withIcon: p = !0,
|
|
15
|
+
classNames: l = [],
|
|
16
|
+
...i
|
|
17
|
+
}) {
|
|
18
|
+
const m = u((f) => f.stopPropagation(), []);
|
|
19
|
+
return /* @__PURE__ */ e(
|
|
20
|
+
"a",
|
|
21
|
+
{
|
|
22
|
+
className: y("adyen-pe-link", [...l], {
|
|
23
|
+
[`adyen-pe-link--${r}`]: r !== "default",
|
|
24
|
+
"adyen-pe-link--truncate": t
|
|
25
|
+
}),
|
|
26
|
+
href: n,
|
|
27
|
+
target: a,
|
|
28
|
+
rel: "noopener noreferrer",
|
|
29
|
+
onClick: m,
|
|
30
|
+
...i,
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ e(s, { className: "adyen-pe-link__text", el: c.SPAN, variant: k.BODY, children: o }),
|
|
33
|
+
p && a === "_blank" && /* @__PURE__ */ e(d, { name: "external-link" })
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
C as default
|
|
40
|
+
};
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { jsx as e } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import { useClickOutside as
|
|
3
|
-
import {
|
|
2
|
+
import { useClickOutside as w } from "../../../hooks/element/useClickOutside.js";
|
|
3
|
+
import { useResponsiveContainer as v, containerQueries as _ } from "../../../hooks/useResponsiveContainer.js";
|
|
4
4
|
import { ButtonVariant as x } from "../Button/types.js";
|
|
5
5
|
import g from "../../../core/Context/useCoreContext.js";
|
|
6
|
-
import { useContext as k, useCallback as
|
|
7
|
-
import { createContext as
|
|
6
|
+
import { useContext as k, useCallback as C, useEffect as E } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
7
|
+
import { createContext as N, Fragment as M } from "../../../external/preact/dist/preact.module.js";
|
|
8
8
|
import m from "classnames";
|
|
9
9
|
/* empty css */
|
|
10
10
|
import B from "../Button/Button.js";
|
|
11
11
|
import { Icon as L } from "../Icon/Icon.js";
|
|
12
|
-
const i =
|
|
13
|
-
function
|
|
14
|
-
title:
|
|
12
|
+
const i = N({ withinModal: !1 }), Q = () => k(i);
|
|
13
|
+
function S({
|
|
14
|
+
title: t,
|
|
15
15
|
children: c,
|
|
16
|
-
classNameModifiers:
|
|
16
|
+
classNameModifiers: s = [],
|
|
17
17
|
isOpen: a,
|
|
18
18
|
onClose: o,
|
|
19
19
|
isDismissible: d = !0,
|
|
20
|
-
headerWithBorder:
|
|
20
|
+
headerWithBorder: p = !0,
|
|
21
21
|
size: r = "fluid",
|
|
22
22
|
...u
|
|
23
23
|
}) {
|
|
24
|
-
const f = v(_.down.xs), { i18n: y } = g(),
|
|
24
|
+
const f = v(_.down.xs), { i18n: y } = g(), h = w(null, o), n = C(
|
|
25
25
|
(l) => {
|
|
26
26
|
l.key === "Escape" && a && d && o();
|
|
27
27
|
},
|
|
28
28
|
[a, d, o]
|
|
29
29
|
);
|
|
30
|
-
return
|
|
30
|
+
return E(() => (a ? window.addEventListener("keydown", n) : window.removeEventListener("keydown", n), () => window.removeEventListener("keydown", n)), [a, n]), /* @__PURE__ */ e(M, { children: a && /* @__PURE__ */ e(
|
|
31
31
|
"div",
|
|
32
32
|
{
|
|
33
33
|
className: m(
|
|
34
34
|
"adyen-pe-modal-wrapper",
|
|
35
|
-
|
|
35
|
+
s.map((l) => `adyen-pe-modal-wrapper--${l}`),
|
|
36
36
|
{ "adyen-pe-modal-wrapper--open": a, "adyen-pe-modal-wrapper--dismissible": d }
|
|
37
37
|
),
|
|
38
38
|
role: "dialog",
|
|
@@ -49,17 +49,17 @@ function Q({
|
|
|
49
49
|
"adyen-pe-modal--extra-large": r === "extra-large",
|
|
50
50
|
"adyen-pe-modal--full-screen": r === "full-screen" || f
|
|
51
51
|
}),
|
|
52
|
-
ref:
|
|
52
|
+
ref: h,
|
|
53
53
|
children: [
|
|
54
54
|
/* @__PURE__ */ e(
|
|
55
55
|
"div",
|
|
56
56
|
{
|
|
57
57
|
className: m("adyen-pe-modal__header", {
|
|
58
|
-
"adyen-pe-modal__header--with-title":
|
|
59
|
-
"adyen-pe-modal__header--with-border-bottom":
|
|
58
|
+
"adyen-pe-modal__header--with-title": t,
|
|
59
|
+
"adyen-pe-modal__header--with-border-bottom": p
|
|
60
60
|
}),
|
|
61
61
|
children: [
|
|
62
|
-
|
|
62
|
+
t && /* @__PURE__ */ e("div", { className: "adyen-pe-modal__header__title", children: t }),
|
|
63
63
|
d && /* @__PURE__ */ e(
|
|
64
64
|
B,
|
|
65
65
|
{
|
|
@@ -83,6 +83,6 @@ function Q({
|
|
|
83
83
|
) });
|
|
84
84
|
}
|
|
85
85
|
export {
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
S as default,
|
|
87
|
+
Q as useModalContext
|
|
88
88
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import
|
|
1
|
+
import { jsx as e } from "../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
+
import { useMemo as a } from "../../../../external/preact/hooks/dist/hooks.module.js";
|
|
3
|
+
import i from "../../DataOverviewDetails/DataOverviewDetails.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { Fragment as
|
|
6
|
-
const
|
|
5
|
+
import { Fragment as m } from "../../../../external/preact/dist/preact.module.js";
|
|
6
|
+
const c = {
|
|
7
7
|
base: "adyen-pe-modal-content"
|
|
8
8
|
};
|
|
9
|
-
function
|
|
10
|
-
const t =
|
|
9
|
+
function h({ type: r, data: o, dataCustomization: s, ...n }) {
|
|
10
|
+
const t = a(() => {
|
|
11
11
|
switch (r) {
|
|
12
12
|
case "payout":
|
|
13
|
-
return { ...
|
|
13
|
+
return { ...o, type: r, ...n };
|
|
14
14
|
case "transaction":
|
|
15
|
-
return { id:
|
|
15
|
+
return { id: o, type: r, ...n };
|
|
16
16
|
default:
|
|
17
|
-
return { data:
|
|
17
|
+
return { data: o, type: r };
|
|
18
18
|
}
|
|
19
|
-
}, [
|
|
20
|
-
return /* @__PURE__ */
|
|
19
|
+
}, [o, r]);
|
|
20
|
+
return /* @__PURE__ */ e(m, { children: t && /* @__PURE__ */ e("div", { className: c.base, children: /* @__PURE__ */ e(i, { ...t, dataCustomization: s }) }) });
|
|
21
21
|
}
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
h as default
|
|
24
24
|
};
|
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
import { jsx as t } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import a from "classnames";
|
|
3
3
|
import { useMemo as C } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
4
|
-
import
|
|
4
|
+
import T from "../../../core/Context/useCoreContext.js";
|
|
5
5
|
import { TypographyVariant as l } from "../Typography/types.js";
|
|
6
|
-
import
|
|
7
|
-
import { SL_GRID_CLASS as
|
|
6
|
+
import c from "../Typography/Typography.js";
|
|
7
|
+
import { SL_GRID_CLASS as i, SL_BASE_CLASS as h, SL_ALIGN_END as E, SL_ITEM_CLASS as I, SL_ITEM_WITH_HIGHLIGHT_CLASS as N, SL_LABEL_CLASS as y, SL_CONTENT_CLASS as g } from "./constants.js";
|
|
8
8
|
/* empty css */
|
|
9
|
-
import { useStructuredListItems as
|
|
10
|
-
const
|
|
11
|
-
function
|
|
12
|
-
items:
|
|
13
|
-
highlightable:
|
|
14
|
-
renderValue:
|
|
15
|
-
renderLabel:
|
|
16
|
-
layout:
|
|
17
|
-
grid:
|
|
18
|
-
classNames:
|
|
9
|
+
import { useStructuredListItems as v } from "./useStructuredListItem.js";
|
|
10
|
+
const O = "6-6";
|
|
11
|
+
function U({
|
|
12
|
+
items: L,
|
|
13
|
+
highlightable: n,
|
|
14
|
+
renderValue: e,
|
|
15
|
+
renderLabel: S,
|
|
16
|
+
layout: s = O,
|
|
17
|
+
grid: m = !0,
|
|
18
|
+
classNames: p,
|
|
19
|
+
align: d = "end"
|
|
19
20
|
}) {
|
|
20
|
-
const [u,
|
|
21
|
-
return /* @__PURE__ */ t("
|
|
22
|
-
"
|
|
21
|
+
const [u, A] = C(() => s.split("-").map((r) => `${i}--width-${r}-of-12`), [s]), f = v(L), { i18n: o } = T();
|
|
22
|
+
return /* @__PURE__ */ t("dl", { "aria-label": o.get("structuredList"), className: a(h, p, { [E]: d === "end" }), children: f.map((r, _) => /* @__PURE__ */ t(
|
|
23
|
+
"div",
|
|
23
24
|
{
|
|
24
|
-
className: a(
|
|
25
|
-
[
|
|
26
|
-
[
|
|
25
|
+
className: a(I, {
|
|
26
|
+
[N]: n,
|
|
27
|
+
[i]: m
|
|
27
28
|
}),
|
|
28
29
|
children: [
|
|
29
|
-
/* @__PURE__ */ t("dt", { className: a(
|
|
30
|
-
/* @__PURE__ */ t("dd", { "aria-label": `${o.get(r.key)} ${o.get("value")}`, className: a(
|
|
30
|
+
/* @__PURE__ */ t("dt", { className: a(y, u), children: S ? S(r.label, L[_].key) : /* @__PURE__ */ t(c, { variant: l.BODY, children: r.label }) }),
|
|
31
|
+
/* @__PURE__ */ t("dd", { "aria-label": `${o.get(r.key)} ${o.get("value")}`, className: a(g, A), children: e ? e(r.value, r.key, r.type, r.config) : /* @__PURE__ */ t(c, { variant: l.BODY, children: r.value }) })
|
|
31
32
|
]
|
|
32
33
|
},
|
|
33
|
-
`${
|
|
34
|
+
`${_}_${r.id || "0"}`
|
|
34
35
|
)) });
|
|
35
36
|
}
|
|
36
37
|
export {
|
|
37
|
-
|
|
38
|
+
U as default
|
|
38
39
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
const _ = "adyen-pe-structured-list", S = `${_}__item`,
|
|
1
|
+
const _ = "adyen-pe-structured-list", L = `${_}--align-end`, S = `${_}__item`, t = `${_}__grid`, n = `${_}__content`, s = `${_}__label`, c = `${S}--has-highlight`;
|
|
2
2
|
export {
|
|
3
|
+
L as SL_ALIGN_END,
|
|
3
4
|
_ as SL_BASE_CLASS,
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
n as SL_CONTENT_CLASS,
|
|
6
|
+
t as SL_GRID_CLASS,
|
|
6
7
|
S as SL_ITEM_CLASS,
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
c as SL_ITEM_WITH_HIGHLIGHT_CLASS,
|
|
9
|
+
s as SL_LABEL_CLASS
|
|
9
10
|
};
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { useMemo as
|
|
1
|
+
import { useMemo as t } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
2
2
|
import u from "../../../core/Context/useCoreContext.js";
|
|
3
3
|
import { uuid as n } from "../../../utils/random/uuid.js";
|
|
4
|
-
const
|
|
5
|
-
const { i18n:
|
|
6
|
-
return
|
|
4
|
+
const c = (r) => {
|
|
5
|
+
const { i18n: o } = u();
|
|
6
|
+
return t(() => r.map((e) => ({
|
|
7
7
|
key: e.key,
|
|
8
8
|
value: e.value,
|
|
9
9
|
id: n(),
|
|
10
|
-
label:
|
|
11
|
-
|
|
10
|
+
label: o.get(e.key),
|
|
11
|
+
type: e.type,
|
|
12
|
+
config: e.config
|
|
13
|
+
})), [o, r]);
|
|
12
14
|
};
|
|
13
15
|
export {
|
|
14
|
-
|
|
16
|
+
c as useStructuredListItems
|
|
15
17
|
};
|
|
@@ -1,41 +1,45 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { Fragment as p, cloneElement as O } from "../../../external/preact/dist/preact.module.js";
|
|
1
|
+
import { jsx as a } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
+
import v from "../Popover/Popover.js";
|
|
3
|
+
import { PopoverContainerVariant as y } from "../Popover/types.js";
|
|
4
|
+
import { useTooltipListeners as P } from "./useTooltipListeners.js";
|
|
5
|
+
import { TypographyVariant as x } from "../Typography/types.js";
|
|
6
|
+
import _ from "../Typography/Typography.js";
|
|
7
|
+
import l from "../../../hooks/element/useUniqueIdentifier.js";
|
|
8
|
+
import g from "classnames";
|
|
9
|
+
import { Fragment as s, cloneElement as b } from "../../../external/preact/dist/preact.module.js";
|
|
11
10
|
/* empty css */
|
|
12
|
-
const w = (t) => typeof t == "string"
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
return
|
|
16
|
-
|
|
11
|
+
const w = (t) => typeof t == "string";
|
|
12
|
+
function h() {
|
|
13
|
+
const t = "ontouchstart" in window, o = navigator.maxTouchPoints && navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints && navigator.msMaxTouchPoints > 0, r = window.matchMedia && window.matchMedia("(pointer: coarse)").matches;
|
|
14
|
+
return t || o || r;
|
|
15
|
+
}
|
|
16
|
+
const $ = ({ content: t, children: o, triggerRef: r, showTooltip: i, position: c, isContainerHovered: p = !1 }) => {
|
|
17
|
+
var m, u, f;
|
|
18
|
+
const e = l(), { isVisible: n, listeners: T } = P();
|
|
19
|
+
return h() ? /* @__PURE__ */ a(s, { children: o }) : /* @__PURE__ */ a(s, { children: [
|
|
20
|
+
o ? b(o, {
|
|
17
21
|
...o == null ? void 0 : o.props,
|
|
18
22
|
role: "button",
|
|
19
23
|
tabIndex: -1,
|
|
20
24
|
ref: e,
|
|
21
|
-
className: (
|
|
22
|
-
" adyen-pe__tooltip-target--hovered":
|
|
23
|
-
}) :
|
|
24
|
-
...
|
|
25
|
-
"aria-describedby": `tooltip-${(
|
|
25
|
+
className: (m = o == null ? void 0 : o.props) != null && m.className ? g(`${(u = o == null ? void 0 : o.props) == null ? void 0 : u.className} adyen-pe__tooltip-target`, {
|
|
26
|
+
" adyen-pe__tooltip-target--hovered": p
|
|
27
|
+
}) : g("adyen-pe__tooltip-target", { "adyen-pe__tooltip-target--hovered": p }),
|
|
28
|
+
...T,
|
|
29
|
+
"aria-describedby": `tooltip-${(f = e.current) == null ? void 0 : f.id}`
|
|
26
30
|
}) : null,
|
|
27
|
-
(
|
|
28
|
-
|
|
31
|
+
(n || i) && /* @__PURE__ */ a(
|
|
32
|
+
v,
|
|
29
33
|
{
|
|
30
|
-
variant:
|
|
31
|
-
targetElement:
|
|
32
|
-
position:
|
|
33
|
-
open:
|
|
34
|
-
children: /* @__PURE__ */
|
|
34
|
+
variant: y.TOOLTIP,
|
|
35
|
+
targetElement: r ?? e,
|
|
36
|
+
position: c,
|
|
37
|
+
open: n || i,
|
|
38
|
+
children: /* @__PURE__ */ a(s, { children: t && w(t) ? /* @__PURE__ */ a(_, { variant: x.CAPTION, children: t }) : { content: t } })
|
|
35
39
|
}
|
|
36
40
|
)
|
|
37
41
|
] });
|
|
38
42
|
};
|
|
39
43
|
export {
|
|
40
|
-
|
|
44
|
+
$ as Tooltip
|
|
41
45
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EMPTY_ARRAY as a } from "../../../utils/value/constants.js";
|
|
2
|
+
const c = (o, s = a) => {
|
|
3
|
+
var e;
|
|
4
|
+
if (Array.isArray(o))
|
|
5
|
+
for (const t of o)
|
|
6
|
+
try {
|
|
7
|
+
const r = typeof t == "object" ? (e = t == null ? void 0 : t.key) == null ? void 0 : e.trim() : !1;
|
|
8
|
+
if (
|
|
9
|
+
// `fieldName` is expected to be a string (except in a case of misconfiguration)
|
|
10
|
+
typeof r == "string" && // `fieldName` should not be an empty string (except in a case of misconfiguration)
|
|
11
|
+
r && // `field` is a custom field if `fieldName` is not in the `standardFields` list
|
|
12
|
+
!s.includes(r)
|
|
13
|
+
)
|
|
14
|
+
return !0;
|
|
15
|
+
} catch {
|
|
16
|
+
}
|
|
17
|
+
return !1;
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
c as default,
|
|
21
|
+
c as hasCustomField
|
|
22
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EMPTY_OBJECT as f } from "../../../utils/value/constants.js";
|
|
2
|
+
const m = (o, d, c) => {
|
|
3
|
+
const r = [];
|
|
4
|
+
for (let e = 0; e < o.length; e++) {
|
|
5
|
+
const t = o[e], n = d.find((s) => c(s, t, e));
|
|
6
|
+
r[e] = { ...n ?? f, ...t };
|
|
7
|
+
}
|
|
8
|
+
return r;
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
m as default,
|
|
12
|
+
m as mergeRecords
|
|
13
|
+
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { createContext as o } from "../../external/preact/dist/preact.module.js";
|
|
2
2
|
import t from "../Localization/Localization.js";
|
|
3
3
|
import { noop as n } from "../../utils/common.js";
|
|
4
|
-
const
|
|
4
|
+
const i = o({
|
|
5
5
|
i18n: new t().i18n,
|
|
6
6
|
loadingContext: "",
|
|
7
7
|
commonProps: {},
|
|
8
|
-
updateCore: n
|
|
8
|
+
updateCore: n,
|
|
9
|
+
componentRef: { current: null }
|
|
9
10
|
});
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
+
i as CoreContext
|
|
12
13
|
};
|