@adyen/adyen-platform-experience-web 1.4.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -13
- package/dist/adyen-platform-experience-web.css +1 -1
- package/dist/{angle-right-DpuNqT0j.cjs → angle-right-B2I_t62j.cjs} +2 -2
- package/dist/{angle-right-DpuNqT0j.cjs.map → angle-right-B2I_t62j.cjs.map} +1 -1
- package/dist/{checkmark-CC7Mmd_x.cjs → checkmark-CIwP_FdK.cjs} +2 -2
- package/dist/{checkmark-CC7Mmd_x.cjs.map → checkmark-CIwP_FdK.cjs.map} +1 -1
- package/dist/{checkmark-circle-fill-1IL4ERtO.cjs → checkmark-circle-fill-Cw5UXqzN.cjs} +2 -2
- package/dist/{checkmark-circle-fill-1IL4ERtO.cjs.map → checkmark-circle-fill-Cw5UXqzN.cjs.map} +1 -1
- package/dist/{checkmark-square-fill-Bu2jdGU3.cjs → checkmark-square-fill-BwkQfKCG.cjs} +2 -2
- package/dist/{checkmark-square-fill-Bu2jdGU3.cjs.map → checkmark-square-fill-BwkQfKCG.cjs.map} +1 -1
- package/dist/{chevron-down-BVCFqkLo.cjs → chevron-down-BuYiZOY7.cjs} +2 -2
- package/dist/{chevron-down-BVCFqkLo.cjs.map → chevron-down-BuYiZOY7.cjs.map} +1 -1
- package/dist/{chevron-left-DfGEXTbq.cjs → chevron-left-DhRCcHqQ.cjs} +2 -2
- package/dist/{chevron-left-DfGEXTbq.cjs.map → chevron-left-DhRCcHqQ.cjs.map} +1 -1
- package/dist/{chevron-right-DzkYlomK.cjs → chevron-right-DvPR8FD2.cjs} +2 -2
- package/dist/{chevron-right-DzkYlomK.cjs.map → chevron-right-DvPR8FD2.cjs.map} +1 -1
- package/dist/{chevron-up-CpmBSOon.cjs → chevron-up-DFrrO8PJ.cjs} +2 -2
- package/dist/{chevron-up-CpmBSOon.cjs.map → chevron-up-DFrrO8PJ.cjs.map} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/{copy-DuV1z0-c.cjs → copy-Bl3l133y.cjs} +2 -2
- package/dist/{copy-DuV1z0-c.cjs.map → copy-Bl3l133y.cjs.map} +1 -1
- package/dist/{cross-C5L4gQrS.cjs → cross-BtdvCTEP.cjs} +2 -2
- package/dist/{cross-C5L4gQrS.cjs.map → cross-BtdvCTEP.cjs.map} +1 -1
- package/dist/{cross-circle-fill-D6Ir0xDO.cjs → cross-circle-fill-BBjJLOad.cjs} +2 -2
- package/dist/{cross-circle-fill-D6Ir0xDO.cjs.map → cross-circle-fill-BBjJLOad.cjs.map} +1 -1
- package/dist/da-DK-qSZWEjaU.cjs +2 -0
- package/dist/da-DK-qSZWEjaU.cjs.map +1 -0
- package/dist/de-DE-Dngq7NwF.cjs +2 -0
- package/dist/de-DE-Dngq7NwF.cjs.map +1 -0
- package/dist/{download-IwqY_7gX.cjs → download-Cqu4yqTE.cjs} +2 -2
- package/dist/{download-IwqY_7gX.cjs.map → download-Cqu4yqTE.cjs.map} +1 -1
- package/dist/es/components/external/CapitalOffer/components/CapitalOffer/CapitalOffer.js +14 -14
- package/dist/es/components/external/CapitalOffer/components/CapitalOfferSelection/CapitalOfferSelection.js +20 -20
- package/dist/es/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.js +73 -62
- package/dist/es/components/external/CapitalOffer/components/utils/utils.js +16 -16
- package/dist/es/components/external/CapitalOverview/components/AccountDetails/AccountDetail.js +3 -3
- package/dist/es/components/external/CapitalOverview/components/AccountDetails/AccountDetails.js +3 -3
- package/dist/es/components/external/CapitalOverview/components/AccountDetails/utils.js +3 -3
- package/dist/es/components/external/CapitalOverview/components/GrantAction/GrantAction.js +6 -6
- package/dist/es/components/external/CapitalOverview/components/GrantAdjustmentDetails/constants.js +0 -1
- package/dist/es/components/external/CapitalOverview/components/GrantDetails/GrantDetails.js +2 -2
- package/dist/es/components/external/CapitalOverview/components/GrantItem/utils.js +14 -14
- package/dist/es/components/external/CapitalOverview/components/GrantList/GrantList.js +2 -2
- package/dist/es/components/external/CapitalOverview/components/GrantList/GrantsDisplay.js +29 -29
- package/dist/es/components/external/CapitalOverview/components/GrantRepaymentDetails/GrantRepaymentDetails.js +1 -1
- package/dist/es/components/external/CapitalOverview/components/PreQualified/PreQualified.js +13 -13
- package/dist/es/components/external/CapitalOverview/components/Unqualified.js +2 -2
- package/dist/es/components/external/CapitalOverview/constants.js +0 -1
- package/dist/es/components/external/PayoutDetails/components/PayoutData.js +21 -21
- package/dist/es/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.js +17 -17
- package/dist/es/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.js +4 -4
- package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.js +16 -16
- package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.js +1 -1
- package/dist/es/components/external/TransactionDetails/components/TransactionData/TransactionDataContent.js +20 -20
- package/dist/es/components/external/TransactionDetails/components/details/TransactionDataProperties.js +4 -4
- package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundAmount.js +8 -8
- package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundNotice.js +1 -1
- package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundReason.js +2 -2
- package/dist/es/components/external/TransactionDetails/context/details/context.js +10 -10
- package/dist/es/components/external/TransactionDetails/context/refund/context.js +1 -1
- package/dist/es/components/external/TransactionDetails/context/refund/hooks/useRefundContextLineItems.js +2 -2
- package/dist/es/components/external/TransactionDetails/hooks/useTransaction/transactionNavigator/createDuplexTransactionNavigator.js +20 -20
- package/dist/es/components/external/TransactionDetails/hooks/useTransaction/useTransaction.js +3 -3
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +2 -2
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +4 -4
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +3 -3
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +8 -8
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +66 -66
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +19 -19
- package/dist/es/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.js +3 -3
- package/dist/es/components/internal/Accordion/Accordion.js +10 -10
- package/dist/es/components/internal/Alert/Alert.js +1 -1
- package/dist/es/components/internal/Button/DownloadButton/DownloadButton.js +5 -5
- package/dist/es/components/internal/Button/hooks/useButton.js +7 -7
- package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +104 -104
- package/dist/es/components/internal/Calendar/calendar/facade/index.js +12 -12
- package/dist/es/components/internal/Calendar/calendar/timeframe/common/flags.js +14 -14
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +4 -4
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +58 -58
- package/dist/es/components/internal/Calendar/calendar/timerange/factory.js +4 -4
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +2 -2
- package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +7 -7
- package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +6 -6
- package/dist/es/components/internal/Calendar/calendar/utils.js +22 -22
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +11 -11
- package/dist/es/components/internal/Calendar/components/CalendarGrid/utils.js +22 -22
- package/dist/es/components/internal/Calendar/hooks/useCalendar.js +7 -7
- package/dist/es/components/internal/Calendar/hooks/useTimezone.js +12 -12
- package/dist/es/components/internal/CapitalHeader/constants.js +4 -4
- package/dist/es/components/internal/CapitalHeader/helpers.js +14 -12
- package/dist/es/components/internal/Card/Card.js +9 -9
- package/dist/es/components/internal/DataGrid/DataGridCell.js +8 -8
- package/dist/es/components/internal/DataGrid/components/TableCells.js +16 -16
- package/dist/es/components/internal/DataOverviewDetails/DataOverviewDetails.js +13 -13
- package/dist/es/components/internal/DataOverviewDetails/useDataOverviewDetailsTitle.js +8 -8
- package/dist/es/components/internal/DataOverviewDisplay/DataDetailsModal.js +5 -5
- package/dist/es/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.js +3 -3
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +29 -29
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +1 -2
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +53 -42
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +2 -2
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +31 -31
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +33 -33
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +15 -15
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +2 -2
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilterCore.js +9 -9
- package/dist/es/components/internal/FormFields/InputBase.js +5 -5
- package/dist/es/components/internal/FormFields/Select/Select.js +15 -15
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +43 -43
- package/dist/es/components/internal/FormFields/Select/components/SelectList.js +14 -14
- package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +5 -5
- package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +2 -2
- package/dist/es/components/internal/Header/Header.js +4 -4
- package/dist/es/components/internal/Icon/Icon.js +5 -3
- package/dist/es/components/internal/Img/Img.js +2 -2
- package/dist/es/components/internal/Link/Link.js +2 -2
- package/dist/es/components/internal/Modal/Modal.js +4 -4
- package/dist/es/components/internal/Pagination/hooks/useCursorPagination.js +12 -12
- package/dist/es/components/internal/Pagination/hooks/usePagination.js +22 -22
- package/dist/es/components/internal/Popover/Popover.js +4 -4
- package/dist/es/components/internal/ProgressBar/ProgressBar.js +3 -3
- package/dist/es/components/internal/SVGIcons/Checkmark.js +3 -3
- package/dist/es/components/internal/SVGIcons/ChevronLeft.js +12 -10
- package/dist/es/components/internal/SVGIcons/ChevronRight.js +12 -10
- package/dist/es/components/internal/SVGIcons/CloseCircle.js +1 -1
- package/dist/es/components/internal/SegmentedControl/SegmentedControl.js +55 -0
- package/dist/es/components/internal/StructuredList/StructuredList.js +4 -4
- package/dist/es/components/internal/Translation/Translation.js +15 -15
- package/dist/es/components/utils/getErrorMessage.js +2 -2
- package/dist/es/constants/dateFormats.js +3 -3
- package/dist/es/core/ConfigContext/context.js +18 -18
- package/dist/es/core/ConfigContext/session/AuthSession.js +36 -36
- package/dist/es/core/ConfigContext/session/AuthSessionSpecification.js +7 -7
- package/dist/es/core/ConfigContext/session/SetupContext.js +5 -5
- package/dist/es/core/ConfigContext/session/constants.js +8 -8
- package/dist/es/core/ConfigContext/session/utils/sessionReady.js +5 -5
- package/dist/es/core/Http/utils.js +1 -1
- package/dist/es/core/Localization/Localization.js +32 -32
- package/dist/es/core/Localization/datetime/restamper/constants.js +3 -3
- package/dist/es/core/Localization/datetime/restamper/restamper.js +1 -1
- package/dist/es/core/Localization/utils.js +1 -1
- package/dist/es/core/core.js +1 -1
- package/dist/es/external/preact/compat/dist/compat.module.js +40 -40
- package/dist/es/external/preact/dist/preact.module.js +197 -195
- package/dist/es/external/preact/hooks/dist/hooks.module.js +71 -67
- package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +9 -9
- package/dist/es/hooks/element/useDetachedRender.js +11 -11
- package/dist/es/hooks/element/useFocusTrap.js +5 -5
- package/dist/es/hooks/useBalanceAccountSelection.js +10 -10
- package/dist/es/hooks/useCommitAction/useCommitAction.js +7 -7
- package/dist/es/hooks/useContainerQuery.js +4 -4
- package/dist/es/hooks/useCustomColumnsData.js +2 -2
- package/dist/es/hooks/useDefaultOverviewFilterParams.js +18 -18
- package/dist/es/hooks/useFetch.js +22 -22
- package/dist/es/hooks/useModalDetails/useModalDetails.js +7 -7
- package/dist/es/hooks/useMutation/useMutation.js +3 -3
- package/dist/es/hooks/useReactiveState/useReactiveState.js +21 -21
- package/dist/es/hooks/useResponsiveContainer.js +7 -10
- package/dist/es/hooks/useTabbedControl.js +66 -0
- package/dist/es/images/icons/trash-can.svg.js +9 -0
- package/dist/es/images/icons/upload.svg.js +9 -0
- package/dist/es/primitives/async/abortable/main.js +9 -9
- package/dist/es/primitives/async/deferred/main.js +1 -1
- package/dist/es/primitives/auxiliary/errorContainer/main.js +9 -9
- package/dist/es/primitives/auxiliary/indexed/helpers.js +4 -4
- package/dist/es/primitives/auxiliary/indexed/main.js +7 -7
- package/dist/es/primitives/context/session/internal/autofresher.js +15 -15
- package/dist/es/primitives/context/session/internal/deadline.js +22 -22
- package/dist/es/primitives/context/session/internal/refresher.js +19 -19
- package/dist/es/primitives/dom/tabbableRoot/tabbable.js +3 -3
- package/dist/es/primitives/reactive/eventEmitter/main.js +3 -3
- package/dist/es/primitives/reactive/reflex/main.js +22 -22
- package/dist/es/primitives/reactive/reflex/register.js +25 -25
- package/dist/es/primitives/reactive/watchlist/main.js +24 -24
- package/dist/es/primitives/time/clock/main.js +6 -6
- package/dist/es/primitives/time/interval/main.js +9 -9
- package/dist/es/translations/da-DK.json.js +55 -46
- package/dist/es/translations/de-DE.json.js +67 -58
- package/dist/es/translations/en-US.json.js +79 -70
- package/dist/es/translations/es-ES.json.js +91 -82
- package/dist/es/translations/fi-FI.json.js +93 -84
- package/dist/es/translations/fr-FR.json.js +75 -66
- package/dist/es/translations/it-IT.json.js +95 -86
- package/dist/es/translations/nl-NL.json.js +92 -83
- package/dist/es/translations/no-NO.json.js +71 -62
- package/dist/es/translations/pt-BR.json.js +67 -58
- package/dist/es/translations/sv-SE.json.js +95 -86
- package/dist/es/utils/abort/internals.js +3 -3
- package/dist/es/utils/abort/main.js +19 -19
- package/dist/es/utils/collection/main.js +14 -14
- package/dist/es/utils/datetime/main.js +3 -3
- package/dist/es/utils/preact/className.js +2 -2
- package/dist/es/utils/struct/main.js +8 -8
- package/dist/es/utils/value/is.js +9 -9
- package/dist/es/utils/value/number.js +2 -2
- package/dist/es-ES-Bjddx94n.cjs +2 -0
- package/dist/es-ES-Bjddx94n.cjs.map +1 -0
- package/dist/{external-link-r39cGU4L.cjs → external-link-CqDz5BtK.cjs} +2 -2
- package/dist/{external-link-r39cGU4L.cjs.map → external-link-CqDz5BtK.cjs.map} +1 -1
- package/dist/fi-FI-CNpmToDG.cjs +2 -0
- package/dist/fi-FI-CNpmToDG.cjs.map +1 -0
- package/dist/{filter-BGBP3TAU.cjs → filter-DLAt7sYb.cjs} +2 -2
- package/dist/{filter-BGBP3TAU.cjs.map → filter-DLAt7sYb.cjs.map} +1 -1
- package/dist/fr-FR-CUUHB8JU.cjs +2 -0
- package/dist/fr-FR-CUUHB8JU.cjs.map +1 -0
- package/dist/index-DbNUA_xB.cjs +12 -0
- package/dist/index-DbNUA_xB.cjs.map +1 -0
- package/dist/{info-filled-C_zUEZ2b.cjs → info-filled-B9fmmNGT.cjs} +2 -2
- package/dist/{info-filled-C_zUEZ2b.cjs.map → info-filled-B9fmmNGT.cjs.map} +1 -1
- package/dist/it-IT-B-E80zCo.cjs +2 -0
- package/dist/it-IT-B-E80zCo.cjs.map +1 -0
- package/dist/{minus-circle-outline-1CJ3DOVB.cjs → minus-circle-outline-JkeH7g3f.cjs} +2 -2
- package/dist/{minus-circle-outline-1CJ3DOVB.cjs.map → minus-circle-outline-JkeH7g3f.cjs.map} +1 -1
- package/dist/nl-NL--CGhOJhH.cjs +2 -0
- package/dist/nl-NL--CGhOJhH.cjs.map +1 -0
- package/dist/no-NO-D0UNXgzr.cjs +2 -0
- package/dist/no-NO-D0UNXgzr.cjs.map +1 -0
- package/dist/{plus-circle-outline-CPQ_oOtQ.cjs → plus-circle-outline-Cmz1Lb00.cjs} +2 -2
- package/dist/{plus-circle-outline-CPQ_oOtQ.cjs.map → plus-circle-outline-Cmz1Lb00.cjs.map} +1 -1
- package/dist/pt-BR-Du4cDUgf.cjs +2 -0
- package/dist/pt-BR-Du4cDUgf.cjs.map +1 -0
- package/dist/{square-BmHyYgat.cjs → square-Bow_5TP1.cjs} +2 -2
- package/dist/{square-BmHyYgat.cjs.map → square-Bow_5TP1.cjs.map} +1 -1
- package/dist/sv-SE-C92aO-iv.cjs +2 -0
- package/dist/sv-SE-C92aO-iv.cjs.map +1 -0
- package/dist/trash-can-DLEmgXUG.cjs +2 -0
- package/dist/trash-can-DLEmgXUG.cjs.map +1 -0
- package/dist/types/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOffer/components/utils/utils.d.ts +1 -1
- package/dist/types/components/external/CapitalOffer/components/utils/utils.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/components/utils.d.ts +1 -1
- package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts +71 -0
- package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts.map +1 -1
- package/dist/types/components/internal/CapitalHeader/constants.d.ts +2 -1
- package/dist/types/components/internal/CapitalHeader/constants.d.ts.map +1 -1
- package/dist/types/components/internal/CapitalHeader/helpers.d.ts.map +1 -1
- package/dist/types/components/internal/ExpandableCard/ExpandableCard.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +3 -3
- package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +1 -1
- package/dist/types/components/internal/Icon/Icon.d.ts +2 -0
- package/dist/types/components/internal/Icon/Icon.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/CheckedBox.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/Checkmark.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronDown.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronLeft.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronLeft.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronRight.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronRight.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronUp.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/CloseCircle.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/Download.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/Download.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/UncheckedBox.d.ts +1 -1
- package/dist/types/components/internal/SegmentedControl/SegmentedControl.d.ts +5 -0
- package/dist/types/components/internal/SegmentedControl/SegmentedControl.d.ts.map +1 -0
- package/dist/types/components/internal/SegmentedControl/types.d.ts +14 -0
- package/dist/types/components/internal/SegmentedControl/types.d.ts.map +1 -0
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +1 -1
- package/dist/types/components/utils/getLabel.d.ts +1 -1
- package/dist/types/core/ConfigContext/context.d.ts +2 -0
- package/dist/types/core/ConfigContext/context.d.ts.map +1 -1
- package/dist/types/core/ConfigContext/session/AuthSession.d.ts +4 -0
- package/dist/types/core/ConfigContext/session/AuthSession.d.ts.map +1 -1
- package/dist/types/core/ConfigContext/session/SetupContext.d.ts +2 -0
- package/dist/types/core/ConfigContext/session/SetupContext.d.ts.map +1 -1
- package/dist/types/hooks/useTabbedControl.d.ts +19 -0
- package/dist/types/hooks/useTabbedControl.d.ts.map +1 -0
- package/dist/types/translations/index.d.ts +9 -0
- package/dist/types/translations/index.d.ts.map +1 -1
- package/dist/types/types/api/resources/CapitalResource.d.ts +1 -0
- package/dist/types/types/api/resources/CapitalResource.d.ts.map +1 -1
- package/dist/types/utils/file/read.d.ts +5 -0
- package/dist/types/utils/file/read.d.ts.map +1 -0
- package/dist/types/utils/file/size.d.ts +45 -0
- package/dist/types/utils/file/size.d.ts.map +1 -0
- package/dist/types/utils/file/upload.d.ts +17 -0
- package/dist/types/utils/file/upload.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +3 -0
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/upload-DWOtVcWc.cjs +2 -0
- package/dist/upload-DWOtVcWc.cjs.map +1 -0
- package/dist/{warning-eizPFTg-.cjs → warning-DNUR39rT.cjs} +2 -2
- package/dist/{warning-eizPFTg-.cjs.map → warning-DNUR39rT.cjs.map} +1 -1
- package/dist/{warning-filled-CiVuOE_O.cjs → warning-filled-qxDqTfWV.cjs} +2 -2
- package/dist/{warning-filled-CiVuOE_O.cjs.map → warning-filled-qxDqTfWV.cjs.map} +1 -1
- package/package.json +16 -15
- package/dist/da-DK-DHGqGo8Q.cjs +0 -2
- package/dist/da-DK-DHGqGo8Q.cjs.map +0 -1
- package/dist/de-DE-k_BRPv7a.cjs +0 -2
- package/dist/de-DE-k_BRPv7a.cjs.map +0 -1
- package/dist/es/components/internal/Tabs/Tabs.js +0 -69
- package/dist/es-ES-Cy-9bm8z.cjs +0 -2
- package/dist/es-ES-Cy-9bm8z.cjs.map +0 -1
- package/dist/fi-FI-C7ICLuS8.cjs +0 -2
- package/dist/fi-FI-C7ICLuS8.cjs.map +0 -1
- package/dist/fr-FR-DH8euUOp.cjs +0 -2
- package/dist/fr-FR-DH8euUOp.cjs.map +0 -1
- package/dist/index-BeWwE_B0.cjs +0 -12
- package/dist/index-BeWwE_B0.cjs.map +0 -1
- package/dist/it-IT-DsfPVAun.cjs +0 -2
- package/dist/it-IT-DsfPVAun.cjs.map +0 -1
- package/dist/nl-NL-DP_t6EpF.cjs +0 -2
- package/dist/nl-NL-DP_t6EpF.cjs.map +0 -1
- package/dist/no-NO-ARsXLWv0.cjs +0 -2
- package/dist/no-NO-ARsXLWv0.cjs.map +0 -1
- package/dist/pt-BR-CuTqntp7.cjs +0 -2
- package/dist/pt-BR-CuTqntp7.cjs.map +0 -1
- package/dist/sv-SE-DDAIHLKD.cjs +0 -2
- package/dist/sv-SE-DDAIHLKD.cjs.map +0 -1
- package/dist/types/components/internal/Tabs/Tabs.d.ts +0 -5
- package/dist/types/components/internal/Tabs/Tabs.d.ts.map +0 -1
- package/dist/types/components/internal/Tabs/types.d.ts +0 -15
- package/dist/types/components/internal/Tabs/types.d.ts.map +0 -1
|
@@ -1,88 +1,88 @@
|
|
|
1
1
|
import { jsx as a } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import D from "classnames";
|
|
3
|
-
import { useMemo as
|
|
4
|
-
import
|
|
5
|
-
import { ButtonVariant as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
3
|
+
import { useMemo as O } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
4
|
+
import C from "../../../../../core/Context/useCoreContext.js";
|
|
5
|
+
import { ButtonVariant as f } from "../../../Button/types.js";
|
|
6
|
+
import L from "../../../Typography/Typography.js";
|
|
7
|
+
import u from "../../../SVGIcons/ChevronDown.js";
|
|
8
|
+
import { TypographyVariant as B, TypographyElement as p } from "../../../Typography/types.js";
|
|
9
|
+
import { DROPDOWN_BUTTON_ICON_CLASS as R, DROPDOWN_BUTTON_TEXT_CLASS as h, DROPDOWN_BUTTON_MULTI_SELECT_COUNTER_CLASS as y, DROPDOWN_BUTTON_COLLAPSE_INDICATOR_CLASS as A, DROPDOWN_BUTTON_CLASS as E, DROPDOWN_BUTTON_VALID_CLASS as P, DROPDOWN_BUTTON_INVALID_CLASS as U, DROPDOWN_BUTTON_READONLY_CLASS as g, DROPDOWN_BUTTON_HAS_SELECTION_CLASS as x, DROPDOWN_BUTTON_ACTIVE_CLASS as I, DROPDOWN_BUTTON_CLASSNAME as W } from "../constants.js";
|
|
10
10
|
import { Fragment as b } from "../../../../../external/preact/dist/preact.module.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { boolOrFalse as
|
|
14
|
-
const
|
|
11
|
+
import v from "../../../Img/Img.js";
|
|
12
|
+
import w from "../../../Button/Button.js";
|
|
13
|
+
import { boolOrFalse as V } from "../../../../../utils/value/bool.js";
|
|
14
|
+
const F = ({
|
|
15
15
|
active: e,
|
|
16
|
-
disabled:
|
|
17
|
-
className:
|
|
18
|
-
filterable:
|
|
16
|
+
disabled: m,
|
|
17
|
+
className: o,
|
|
18
|
+
filterable: i,
|
|
19
19
|
toggleButtonRef: l,
|
|
20
|
-
...
|
|
20
|
+
...n
|
|
21
21
|
}) => {
|
|
22
|
-
const r =
|
|
23
|
-
return
|
|
24
|
-
|
|
22
|
+
const r = O(() => i ? D(W, o) : o, [o, i]);
|
|
23
|
+
return i ? /* @__PURE__ */ a("div", { ...n, className: r, ref: l }) : /* @__PURE__ */ a(
|
|
24
|
+
w,
|
|
25
25
|
{
|
|
26
|
-
...
|
|
26
|
+
...n,
|
|
27
27
|
className: r,
|
|
28
|
-
disabled:
|
|
29
|
-
variant:
|
|
28
|
+
disabled: m,
|
|
29
|
+
variant: f.SECONDARY,
|
|
30
30
|
ref: l
|
|
31
31
|
}
|
|
32
32
|
);
|
|
33
33
|
}, $ = (e) => {
|
|
34
34
|
var T, c;
|
|
35
|
-
const { i18n:
|
|
35
|
+
const { i18n: m } = C(), { active: o, filterable: i, multiSelect: l, placeholder: n, readonly: r, showList: s, withoutCollapseIndicator: S } = e, N = O(() => (n == null ? void 0 : n.trim()) || m.get("select.filter.placeholder"), [m, n]), t = O(() => V(l) ? void 0 : o[0], [o, l]), d = O(() => {
|
|
36
36
|
var _;
|
|
37
|
-
return ((_ = t == null ? void 0 : t.name) == null ? void 0 : _.trim()) ||
|
|
38
|
-
}, [t,
|
|
37
|
+
return ((_ = t == null ? void 0 : t.name) == null ? void 0 : _.trim()) || N;
|
|
38
|
+
}, [t, N]);
|
|
39
39
|
return /* @__PURE__ */ a(
|
|
40
|
-
|
|
40
|
+
F,
|
|
41
41
|
{
|
|
42
|
-
active:
|
|
42
|
+
active: o,
|
|
43
43
|
disabled: r,
|
|
44
44
|
"aria-disabled": r,
|
|
45
|
-
"aria-expanded":
|
|
45
|
+
"aria-expanded": s,
|
|
46
46
|
"aria-haspopup": "listbox",
|
|
47
|
-
className: D(
|
|
48
|
-
[
|
|
49
|
-
[
|
|
50
|
-
[
|
|
51
|
-
[
|
|
47
|
+
className: D(E, {
|
|
48
|
+
[I]: s,
|
|
49
|
+
[x]: !!o.length,
|
|
50
|
+
[g]: r,
|
|
51
|
+
[U]: e.isInvalid,
|
|
52
52
|
[P]: e.isValid
|
|
53
53
|
}),
|
|
54
|
-
filterable:
|
|
54
|
+
filterable: i,
|
|
55
55
|
onClick: r ? void 0 : e.toggleList,
|
|
56
56
|
onKeyDown: r ? void 0 : e.onButtonKeyDown,
|
|
57
|
-
role:
|
|
57
|
+
role: i ? "button" : void 0,
|
|
58
58
|
tabIndex: 0,
|
|
59
|
-
title:
|
|
59
|
+
title: d,
|
|
60
60
|
toggleButtonRef: e.toggleButtonRef,
|
|
61
|
-
type:
|
|
61
|
+
type: i ? void 0 : "button",
|
|
62
62
|
"aria-describedby": e.ariaDescribedBy,
|
|
63
63
|
id: e.id ?? "",
|
|
64
64
|
children: [
|
|
65
|
-
|
|
65
|
+
s && i ? /* @__PURE__ */ a(
|
|
66
66
|
"input",
|
|
67
67
|
{
|
|
68
68
|
"aria-autocomplete": "list",
|
|
69
69
|
"aria-controls": e.selectListId,
|
|
70
|
-
"aria-expanded":
|
|
70
|
+
"aria-expanded": s,
|
|
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: N,
|
|
76
76
|
ref: e.filterInputRef,
|
|
77
77
|
role: "combobox",
|
|
78
78
|
type: "text"
|
|
79
79
|
}
|
|
80
80
|
) : /* @__PURE__ */ a(b, { children: [
|
|
81
|
-
(t == null ? void 0 : t.icon) && /* @__PURE__ */ a(
|
|
82
|
-
/* @__PURE__ */ a("span", { className:
|
|
83
|
-
l && e.appliedFilterNumber > 0 && /* @__PURE__ */ a("div", { className:
|
|
81
|
+
(t == null ? void 0 : t.icon) && /* @__PURE__ */ a(v, { className: R, src: t.icon, alt: ((T = t == null ? void 0 : t.name) == null ? void 0 : T.trim()) ?? "" }),
|
|
82
|
+
/* @__PURE__ */ a("span", { className: h, children: ((c = t == null ? void 0 : t.selectedOptionName) == null ? void 0 : c.trim()) || d }),
|
|
83
|
+
l && e.appliedFilterNumber > 0 && /* @__PURE__ */ a("div", { className: y, children: /* @__PURE__ */ a(L, { el: p.SPAN, variant: B.BODY, stronger: !0, children: e.appliedFilterNumber }) })
|
|
84
84
|
] }),
|
|
85
|
-
!S && /* @__PURE__ */ a("span", { className:
|
|
85
|
+
!S && /* @__PURE__ */ a("span", { className: A, children: /* @__PURE__ */ a(u, { role: "presentation" }) })
|
|
86
86
|
]
|
|
87
87
|
}
|
|
88
88
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import { useResponsiveContainer as R, containerQueries as x } from "../../../../../hooks/useResponsiveContainer.js";
|
|
3
3
|
import b from "../../../Popover/Popover.js";
|
|
4
|
-
import {
|
|
4
|
+
import { PopoverContainerPosition as A, PopoverContainerVariant as g, PopoverContainerSize as h } from "../../../Popover/types.js";
|
|
5
5
|
import F from "../../../../../core/Context/useCoreContext.js";
|
|
6
6
|
import m from "classnames";
|
|
7
7
|
import { memo as W } from "../../../../../external/preact/compat/dist/compat.module.js";
|
|
@@ -16,21 +16,21 @@ const k = Q(
|
|
|
16
16
|
active: c,
|
|
17
17
|
commitActions: p,
|
|
18
18
|
items: d,
|
|
19
|
-
multiSelect:
|
|
19
|
+
multiSelect: s,
|
|
20
20
|
onKeyDown: f,
|
|
21
21
|
onSelect: u,
|
|
22
22
|
renderListItem: t,
|
|
23
23
|
selectListId: O,
|
|
24
24
|
showList: i,
|
|
25
|
-
textFilter:
|
|
25
|
+
textFilter: n,
|
|
26
26
|
toggleButtonRef: S,
|
|
27
27
|
dismissPopover: C,
|
|
28
28
|
setToTargetWidth: N,
|
|
29
29
|
popoverClassNameModifiers: P,
|
|
30
30
|
showOverlay: _,
|
|
31
|
-
fitPosition:
|
|
32
|
-
},
|
|
33
|
-
const { i18n:
|
|
31
|
+
fitPosition: v
|
|
32
|
+
}, D) => {
|
|
33
|
+
const { i18n: E } = F(), L = R(x.down.xs), a = d.filter((e) => !n || e.name.toLowerCase().includes(n)), T = m(w, { [V]: i }), M = m(z, j), I = l(() => U(t) ? t : B, [t]), r = l(() => $(s), [s]);
|
|
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:
|
|
45
|
+
containerSize: h.MEDIUM,
|
|
46
46
|
variant: g.POPOVER,
|
|
47
47
|
targetElement: S,
|
|
48
48
|
withContentPadding: !1,
|
|
49
|
-
position:
|
|
50
|
-
showOverlay: _ &&
|
|
51
|
-
fitPosition:
|
|
52
|
-
children: /* @__PURE__ */ o("ul", { className:
|
|
49
|
+
position: A.BOTTOM,
|
|
50
|
+
showOverlay: _ && L,
|
|
51
|
+
fitPosition: v,
|
|
52
|
+
children: /* @__PURE__ */ o("ul", { className: T, id: O, ref: D, role: "listbox", "aria-multiselectable": r, children: a.length ? a.map((e) => /* @__PURE__ */ o(
|
|
53
53
|
y,
|
|
54
54
|
{
|
|
55
55
|
item: e,
|
|
@@ -60,11 +60,11 @@ const k = Q(
|
|
|
60
60
|
selected: c.includes(e)
|
|
61
61
|
},
|
|
62
62
|
e.id
|
|
63
|
-
)) : /* @__PURE__ */ o("div", { className: M, children:
|
|
63
|
+
)) : /* @__PURE__ */ o("div", { className: M, children: E.get("select.noOptionsFound") }) })
|
|
64
64
|
}
|
|
65
65
|
) : null;
|
|
66
66
|
}
|
|
67
|
-
),
|
|
67
|
+
), se = W(k);
|
|
68
68
|
export {
|
|
69
|
-
|
|
69
|
+
se as default
|
|
70
70
|
};
|
|
@@ -4,7 +4,7 @@ import { memo as N } from "../../../../../external/preact/compat/dist/compat.mod
|
|
|
4
4
|
import E from "../../../SVGIcons/CheckedBox.js";
|
|
5
5
|
import C from "../../../SVGIcons/UncheckedBox.js";
|
|
6
6
|
import d from "../../../SVGIcons/Checkmark.js";
|
|
7
|
-
import { DROPDOWN_ELEMENT_CHECKMARK_CLASS as S, DROPDOWN_ELEMENT_CLASS as D,
|
|
7
|
+
import { DROPDOWN_ELEMENT_CHECKMARK_CLASS as S, DROPDOWN_ELEMENT_CLASS as D, DROPDOWN_ELEMENT_DISABLED_CLASS as _, DROPDOWN_ELEMENT_ACTIVE_CLASS as p, DROPDOWN_ELEMENT_ICON_CLASS as L, DROPDOWN_ELEMENT_CONTENT_CLASS as O, DROPDOWN_ELEMENT_CHECKBOX_CLASS as f } from "../constants.js";
|
|
8
8
|
import u from "../../../Img/Img.js";
|
|
9
9
|
import { Fragment as h } from "../../../../../external/preact/dist/preact.module.js";
|
|
10
10
|
import { boolOrFalse as A } from "../../../../../utils/value/bool.js";
|
|
@@ -17,8 +17,8 @@ const M = (e) => e.multiSelect ? /* @__PURE__ */ s("span", { className: f, child
|
|
|
17
17
|
T(e)
|
|
18
18
|
] }), b = ({ item: e, multiSelect: n, onKeyDown: t, onSelect: r, renderListItem: i, selected: l }) => {
|
|
19
19
|
const o = !!e.disabled, m = A(e.disabled) || null, a = c(D, {
|
|
20
|
-
[
|
|
21
|
-
[
|
|
20
|
+
[p]: l,
|
|
21
|
+
[_]: o
|
|
22
22
|
});
|
|
23
23
|
return /* @__PURE__ */ s(
|
|
24
24
|
"li",
|
|
@@ -37,8 +37,8 @@ const M = (e) => e.multiSelect ? /* @__PURE__ */ s("span", { className: f, child
|
|
|
37
37
|
item: e,
|
|
38
38
|
multiSelect: n,
|
|
39
39
|
selected: l,
|
|
40
|
-
contentClassName:
|
|
41
|
-
iconClassName:
|
|
40
|
+
contentClassName: O,
|
|
41
|
+
iconClassName: L
|
|
42
42
|
})
|
|
43
43
|
}
|
|
44
44
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback as i, useState as O, useEffect as g } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
2
2
|
import { EMPTY_ARRAY as t } from "../../../../../utils/value/constants.js";
|
|
3
|
-
const
|
|
3
|
+
const z = ({ items: f, multiSelect: r, selected: l }) => {
|
|
4
4
|
const a = i(
|
|
5
5
|
(c = t) => {
|
|
6
6
|
const e = t.concat(c ?? t).filter(Boolean), n = f.filter((x) => e.includes(x.id)), o = r ? n : n.slice(0, 1);
|
|
@@ -28,5 +28,5 @@ const p = ({ items: f, multiSelect: r, selected: l }) => {
|
|
|
28
28
|
return g(() => s(a(l)), [a, l, s]), { resetSelection: b, select: u, selection: d };
|
|
29
29
|
};
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
z as default
|
|
32
32
|
};
|
|
@@ -2,19 +2,19 @@ import { jsx as d } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.m
|
|
|
2
2
|
import n from "classnames";
|
|
3
3
|
import o from "../Typography/Typography.js";
|
|
4
4
|
import S from "../../../core/Context/useCoreContext.js";
|
|
5
|
-
import {
|
|
5
|
+
import { TypographyVariant as _, TypographyElement as e } from "../Typography/types.js";
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { Divider as T } from "../Divider/Divider.js";
|
|
8
8
|
const $ = "adyen-pe-header", P = ({ baseClassName: m = $, children: a, hasDivider: v, hideTitle: y, titleKey: c, subtitleKey: p, subtitleConfig: r }) => {
|
|
9
9
|
const { i18n: h } = S();
|
|
10
10
|
return /* @__PURE__ */ d("header", { className: m, children: [
|
|
11
11
|
/* @__PURE__ */ d("div", { className: `${m}__headings`, children: [
|
|
12
|
-
!y && c && /* @__PURE__ */ d("div", { className: `${m}__title`, children: /* @__PURE__ */ d(o, { el:
|
|
12
|
+
!y && c && /* @__PURE__ */ d("div", { className: `${m}__title`, children: /* @__PURE__ */ d(o, { el: e.SPAN, variant: _.TITLE, medium: !0, children: h.get(c) }) }),
|
|
13
13
|
p && /* @__PURE__ */ d("div", { className: n(`${m}__subtitle`, r == null ? void 0 : r.classNames), children: /* @__PURE__ */ d(
|
|
14
14
|
o,
|
|
15
15
|
{
|
|
16
|
-
el: (r == null ? void 0 : r.typographyEl) ??
|
|
17
|
-
variant: (r == null ? void 0 : r.variant) ??
|
|
16
|
+
el: (r == null ? void 0 : r.typographyEl) ?? e.SPAN,
|
|
17
|
+
variant: (r == null ? void 0 : r.variant) ?? _.BODY,
|
|
18
18
|
children: h.get(p)
|
|
19
19
|
}
|
|
20
20
|
) }),
|
|
@@ -21,9 +21,11 @@ const e = {
|
|
|
21
21
|
"minus-circle-outline": () => import("../../../images/icons/minus-circle-outline.svg.js"),
|
|
22
22
|
"plus-circle-outline": () => import("../../../images/icons/plus-circle-outline.svg.js"),
|
|
23
23
|
square: () => import("../../../images/icons/square.svg.js"),
|
|
24
|
+
"trash-can": () => import("../../../images/icons/trash-can.svg.js"),
|
|
25
|
+
upload: () => import("../../../images/icons/upload.svg.js"),
|
|
24
26
|
"warning-filled": () => import("../../../images/icons/warning-filled.svg.js"),
|
|
25
27
|
warning: () => import("../../../images/icons/warning.svg.js")
|
|
26
|
-
},
|
|
28
|
+
}, h = ({ className: n, name: o, ...c }) => {
|
|
27
29
|
const [r, i] = p(null);
|
|
28
30
|
return s(() => {
|
|
29
31
|
e[o] ? e[o]().then(({ default: l }) => {
|
|
@@ -32,6 +34,6 @@ const e = {
|
|
|
32
34
|
}, [o]), r && /* @__PURE__ */ t("span", { className: m("adyen-pe-icon", n), role: "img", "aria-hidden": !0, ...c, children: r });
|
|
33
35
|
};
|
|
34
36
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
h as Icon,
|
|
38
|
+
h as default
|
|
37
39
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as n } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import { useState as p, useRef as y, useEffect as N } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
3
|
-
import
|
|
3
|
+
import E from "classnames";
|
|
4
4
|
/* empty css */
|
|
5
5
|
function L(s) {
|
|
6
6
|
const { backgroundUrl: a = "", className: c = "", classNameModifiers: m = [], src: l = "", alt: d = "", showOnError: f = !1 } = s, [i, o] = p(!1), r = y(null), u = () => {
|
|
7
7
|
o(!0);
|
|
8
8
|
}, g = () => {
|
|
9
9
|
o(f);
|
|
10
|
-
}, t =
|
|
10
|
+
}, t = E(
|
|
11
11
|
[c],
|
|
12
12
|
"adyen-pe-image",
|
|
13
13
|
{ "adyen-pe-image--loaded": i },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import s from "../Typography/Typography.js";
|
|
3
|
-
import {
|
|
3
|
+
import { TypographyVariant as c, TypographyElement as k } from "../Typography/types.js";
|
|
4
4
|
import y from "classnames";
|
|
5
5
|
import { useCallback as u } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
6
6
|
/* empty css */
|
|
@@ -29,7 +29,7 @@ function C({
|
|
|
29
29
|
onClick: m,
|
|
30
30
|
...i,
|
|
31
31
|
children: [
|
|
32
|
-
/* @__PURE__ */ e(s, { className: "adyen-pe-link__text", el:
|
|
32
|
+
/* @__PURE__ */ e(s, { className: "adyen-pe-link__text", el: k.SPAN, variant: c.BODY, children: o }),
|
|
33
33
|
p && a === "_blank" && /* @__PURE__ */ e(d, { name: "external-link" })
|
|
34
34
|
]
|
|
35
35
|
}
|
|
@@ -9,8 +9,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 = N({ withinModal: !1 }),
|
|
13
|
-
function
|
|
12
|
+
const i = N({ withinModal: !1 }), S = () => k(i);
|
|
13
|
+
function V({
|
|
14
14
|
title: t,
|
|
15
15
|
children: c,
|
|
16
16
|
classNameModifiers: s = [],
|
|
@@ -83,6 +83,6 @@ function S({
|
|
|
83
83
|
) });
|
|
84
84
|
}
|
|
85
85
|
export {
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
V as default,
|
|
87
|
+
S as useModalContext
|
|
88
88
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { useMemo as
|
|
2
|
-
import
|
|
3
|
-
import { isString as i, isUndefined as
|
|
4
|
-
const C = (
|
|
5
|
-
const c =
|
|
6
|
-
const e = [], P = () => e.length,
|
|
1
|
+
import { useMemo as a } from "../../../../external/preact/hooks/dist/hooks.module.js";
|
|
2
|
+
import d from "./usePagination.js";
|
|
3
|
+
import { isString as i, isUndefined as f } from "../../../../utils/value/is.js";
|
|
4
|
+
const C = (n) => i(n.next), h = (n) => i(n.prev), S = (n, u) => {
|
|
5
|
+
const c = a(() => {
|
|
6
|
+
const e = [], P = () => e.length, g = () => {
|
|
7
7
|
e.length = 0;
|
|
8
|
-
},
|
|
9
|
-
const
|
|
10
|
-
(r === 1 || r === (e.length || 1) + 1) &&
|
|
8
|
+
}, m = (t) => ({ cursor: e[t - 1] }), s = (t, r) => {
|
|
9
|
+
const o = e[r - 1];
|
|
10
|
+
(r === 1 || r === (e.length || 1) + 1) && f(o) && (e[r - 1] = t ? decodeURIComponent(t) : void 0);
|
|
11
11
|
};
|
|
12
|
-
return { getPageCount: P, getPageParams:
|
|
13
|
-
C(
|
|
12
|
+
return { getPageCount: P, getPageParams: m, resetPageCount: g, updatePagination: (t, r, o) => {
|
|
13
|
+
C(o) && s(o.next, t + 1), h(o) && s(o.prev, t - 1);
|
|
14
14
|
} };
|
|
15
15
|
}, []);
|
|
16
|
-
return
|
|
16
|
+
return d(c, n, u);
|
|
17
17
|
};
|
|
18
18
|
export {
|
|
19
19
|
S as default,
|
|
@@ -3,41 +3,41 @@ import F from "../../../../hooks/useBooleanState.js";
|
|
|
3
3
|
import H from "../../../../hooks/useMounted.js";
|
|
4
4
|
import { getClampedPageLimit as J } from "../utils.js";
|
|
5
5
|
import { noop as K } from "../../../../utils/common.js";
|
|
6
|
-
const Y = (
|
|
7
|
-
const u = p(), c = p(), h = p(),
|
|
6
|
+
const Y = (V, l, M) => {
|
|
7
|
+
const u = p(), c = p(), h = p(), r = p(), i = H(
|
|
8
8
|
P(() => {
|
|
9
9
|
var o;
|
|
10
10
|
(o = u.current) == null || o.abort(), u.current = void 0;
|
|
11
11
|
}, [])
|
|
12
|
-
), [t, x] = T(
|
|
13
|
-
var
|
|
14
|
-
if (!(
|
|
15
|
-
const
|
|
16
|
-
a > 0 && (
|
|
17
|
-
const { signal:
|
|
12
|
+
), [t, x] = T(r.current), [g, y] = F(!1), e = s(() => J(M), [M]), { getPageCount: v, getPageParams: A, resetPageCount: z, updatePagination: I } = V, n = s(() => l ? (o) => {
|
|
13
|
+
var S;
|
|
14
|
+
if (!(e && Number.isInteger(o))) return;
|
|
15
|
+
const f = v(), a = o < 0 ? o + f + 1 : o;
|
|
16
|
+
a > 0 && (f ? a <= f : a === 1) && ((S = u.current) == null || S.abort(), u.current = new AbortController(), i.current && (((r.current = a) > 1 || f) && x(r.current), (async () => {
|
|
17
|
+
const { signal: $ } = u.current, D = { ...A(a, e), limit: e, page: a };
|
|
18
18
|
try {
|
|
19
|
-
const d = await l(D,
|
|
19
|
+
const d = await l(D, $);
|
|
20
20
|
if (!d || !i.current) return;
|
|
21
|
-
const { size:
|
|
22
|
-
I(a,
|
|
21
|
+
const { size: b, ...G } = d;
|
|
22
|
+
I(a, e, G), c.current = r.current && Math.max(r.current, c.current || -1 / 0), r.current && r.current === c.current && (h.current = b), r.current === 1 && b > 0 && x(r.current), r.current = void 0, y(!0);
|
|
23
23
|
} catch (d) {
|
|
24
|
-
if (
|
|
24
|
+
if ($.aborted) return;
|
|
25
25
|
console.error(d);
|
|
26
26
|
}
|
|
27
27
|
})()));
|
|
28
|
-
} : K, [
|
|
29
|
-
t && n(Math.min(t + 1,
|
|
28
|
+
} : K, [e, l]), R = P(() => {
|
|
29
|
+
t && n(Math.min(t + 1, v()));
|
|
30
30
|
}, [n, t]), q = P(() => {
|
|
31
31
|
t && n(Math.max(t - 1, 1));
|
|
32
|
-
}, [n, t]),
|
|
33
|
-
() => c.current ? (c.current - 1) *
|
|
34
|
-
[n,
|
|
35
|
-
), N = s(() =>
|
|
36
|
-
|
|
37
|
-
}, [
|
|
32
|
+
}, [n, t]), m = s(() => v() || t || void 0, [n, g]), w = s(() => !!(t && m) && t < m, [t, m]), E = s(() => !!t && t > 1, [t]), C = s(
|
|
33
|
+
() => c.current ? (c.current - 1) * e + (h.current || 0) : 0,
|
|
34
|
+
[n, g]
|
|
35
|
+
), N = s(() => e && Math.min(e, C || 1 / 0) % e, [e, C]), B = P(() => {
|
|
36
|
+
z(), c.current = h.current = r.current = void 0, i.current && x(r.current);
|
|
37
|
+
}, [z]);
|
|
38
38
|
return j(() => {
|
|
39
|
-
i.current &&
|
|
40
|
-
}, [
|
|
39
|
+
i.current && g && y(!1);
|
|
40
|
+
}, [g]), { goto: n, hasNext: w, hasPrev: E, limit: e, next: R, page: t, pages: m, pageSize: N, prev: q, resetPagination: B, size: C };
|
|
41
41
|
};
|
|
42
42
|
export {
|
|
43
43
|
Y as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import oo from "../Button/ButtonActions/ButtonActions.js";
|
|
3
3
|
import { ButtonActionsLayoutBasic as ro } from "../Button/ButtonActions/types.js";
|
|
4
|
-
import { DEFAULT_POPOVER_CLASSNAME as c,
|
|
4
|
+
import { DEFAULT_POPOVER_CLASSNAME as c, POPOVER_HEADER_TITLE_CLASSNAME as eo, TOOLTIP_CONTENT_CLASSNAME as U, POPOVER_CONTENT_CLASSNAME as N, POPOVER_FOOTER_CLASSNAME as no, DEFAULT_TOOLTIP_CLASSNAME as to, POPOVER_CONTAINER_CLASSNAME as co, POPOVER_HEADER_CLASSNAME as B } from "./constants.js";
|
|
5
5
|
import io from "./PopoverDismissButton/PopoverDismissButton.js";
|
|
6
6
|
import so from "./PopoverTitle/PopoverTitle.js";
|
|
7
7
|
import { PopoverContainerVariant as i, PopoverContainerSize as k } from "./types.js";
|
|
@@ -94,7 +94,7 @@ function jo({
|
|
|
94
94
|
x(() => {
|
|
95
95
|
P.current && (P.current[O] = o.current);
|
|
96
96
|
}, [o]), x(() => (document.removeEventListener("keydown", T.current), document.addEventListener("keydown", T.current = E), () => document.removeEventListener("keydown", T.current)), [E]);
|
|
97
|
-
const z = e === i.TOOLTIP ?
|
|
97
|
+
const z = e === i.TOOLTIP ? to : `${c} ${co}`, g = e === i.TOOLTIP ? U : `${N}`;
|
|
98
98
|
return To(
|
|
99
99
|
/* @__PURE__ */ r(_, { children: a ? /* @__PURE__ */ r(_, { children: [
|
|
100
100
|
f && /* @__PURE__ */ r("div", { className: "adyen-pe-popover__overlay" }),
|
|
@@ -109,7 +109,7 @@ function jo({
|
|
|
109
109
|
role: F.role ?? (e === i.POPOVER ? "dialog" : "tooltip"),
|
|
110
110
|
children: [
|
|
111
111
|
(u || M) && /* @__PURE__ */ r("div", { className: No(B, K, [B]), children: [
|
|
112
|
-
u && /* @__PURE__ */ r("div", { className:
|
|
112
|
+
u && /* @__PURE__ */ r("div", { className: eo, children: /* @__PURE__ */ r(so, { title: u }) }),
|
|
113
113
|
M && /* @__PURE__ */ r(io, { onClick: n })
|
|
114
114
|
] }),
|
|
115
115
|
I && /* @__PURE__ */ r(_, { children: [
|
|
@@ -125,7 +125,7 @@ function jo({
|
|
|
125
125
|
),
|
|
126
126
|
e === i.TOOLTIP && /* @__PURE__ */ r("span", { "data-popover-placement": "hidden", ref: V, className: "adyen-pe-tooltip__arrow" })
|
|
127
127
|
] }),
|
|
128
|
-
s && /* @__PURE__ */ r("div", { className:
|
|
128
|
+
s && /* @__PURE__ */ r("div", { className: no, children: /* @__PURE__ */ r(oo, { actions: s, layout: l }) })
|
|
129
129
|
]
|
|
130
130
|
}
|
|
131
131
|
)
|
|
@@ -3,7 +3,7 @@ import { useMemo as u } from "../../../external/preact/hooks/dist/hooks.module.j
|
|
|
3
3
|
import _ from "classnames";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import m from "../Typography/Typography.js";
|
|
6
|
-
import {
|
|
6
|
+
import { TypographyVariant as o, TypographyElement as p } from "../Typography/types.js";
|
|
7
7
|
import { Tooltip as h } from "../Tooltip/Tooltip.js";
|
|
8
8
|
import { clamp as N } from "../../../utils/value/number.js";
|
|
9
9
|
const A = ({ max: a = 1, value: t, labels: r, tooltips: n, className: i }) => {
|
|
@@ -41,8 +41,8 @@ const A = ({ max: a = 1, value: t, labels: r, tooltips: n, className: i }) => {
|
|
|
41
41
|
)
|
|
42
42
|
] }),
|
|
43
43
|
g && /* @__PURE__ */ e("div", { className: "adyen-pe-progress-bar__legend", "aria-hidden": "true", children: [
|
|
44
|
-
r.current && /* @__PURE__ */ e(m, { el:
|
|
45
|
-
r.max && /* @__PURE__ */ e(m, { el:
|
|
44
|
+
r.current && /* @__PURE__ */ e(m, { el: p.SPAN, variant: o.CAPTION, className: "adyen-pe-progress-bar__legend-label", children: r.current }),
|
|
45
|
+
r.max && /* @__PURE__ */ e(m, { el: p.SPAN, variant: o.CAPTION, className: "adyen-pe-progress-bar__legend-label", children: r.max })
|
|
46
46
|
] })
|
|
47
47
|
]
|
|
48
48
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as e } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import { fixedForwardRef as i } from "../../../utils/preact/fixedForwardRef.js";
|
|
3
|
-
const a = i(({ title: l, ...
|
|
3
|
+
const a = i(({ title: l, ...o }, r) => /* @__PURE__ */ e("svg", { ...o, ref: r, xmlns: "http://www.w3.org/2000/svg", fill: "none", width: "16", viewBox: "0 0 16 16", height: "16", children: [
|
|
4
4
|
l && /* @__PURE__ */ e("title", { children: l }),
|
|
5
5
|
/* @__PURE__ */ e(
|
|
6
6
|
"path",
|
|
7
7
|
{
|
|
8
8
|
fill: "currentColor",
|
|
9
|
-
|
|
9
|
+
fillRule: "evenodd",
|
|
10
10
|
d: "M14.5 4.5a.7.7 0 0 0-1-1L6 10.9 2.5 7.5a.8.8 0 0 0-1 1l4 4a.8.8 0 0 0 1 0l8-8Z",
|
|
11
|
-
|
|
11
|
+
clipRule: "evenodd"
|
|
12
12
|
}
|
|
13
13
|
)
|
|
14
14
|
] }));
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { jsx as e } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import { fixedForwardRef as r } from "../../../utils/preact/fixedForwardRef.js";
|
|
3
|
-
const f = r(
|
|
4
|
-
i
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
const f = r(
|
|
4
|
+
({ title: i, ...t }, o) => /* @__PURE__ */ e("svg", { ...t, ref: o, width: "7", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
5
|
+
i && /* @__PURE__ */ e("title", { children: i }),
|
|
6
|
+
/* @__PURE__ */ e(
|
|
7
|
+
"path",
|
|
8
|
+
{
|
|
9
|
+
d: "M5.56077 2.00011L2.56077 5.00011L5.56077 8.00011L4.50011 9.06077L0.439453 5.00011L4.50011 0.939453L5.56077 2.00011Z",
|
|
10
|
+
fill: t.disabled ? "#8D95A3" : "#00112C"
|
|
11
|
+
}
|
|
12
|
+
)
|
|
13
|
+
] })
|
|
14
|
+
);
|
|
13
15
|
export {
|
|
14
16
|
f as default
|
|
15
17
|
};
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { jsx as i } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import { fixedForwardRef as r } from "../../../utils/preact/fixedForwardRef.js";
|
|
3
|
-
const l = r(
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
const l = r(
|
|
4
|
+
({ title: e, ...t }, o) => /* @__PURE__ */ i("svg", { ...t, ref: o, width: "7", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
5
|
+
e && /* @__PURE__ */ i("title", { children: e }),
|
|
6
|
+
/* @__PURE__ */ i(
|
|
7
|
+
"path",
|
|
8
|
+
{
|
|
9
|
+
d: "M0.439453 7.9999L3.43945 4.9999L0.439454 1.9999L1.50011 0.93924L5.56077 4.9999L1.50011 9.06056L0.439453 7.9999Z",
|
|
10
|
+
fill: t.disabled ? "#8D95A3" : "#00112C"
|
|
11
|
+
}
|
|
12
|
+
)
|
|
13
|
+
] })
|
|
14
|
+
);
|
|
13
15
|
export {
|
|
14
16
|
l as default
|
|
15
17
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as l } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.m
|
|
|
2
2
|
import { fixedForwardRef as h } from "../../../utils/preact/fixedForwardRef.js";
|
|
3
3
|
const o = h(({ title: i, ...r }, e) => /* @__PURE__ */ l("svg", { ref: e, xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", ...r, children: [
|
|
4
4
|
i && /* @__PURE__ */ l("title", { children: i }),
|
|
5
|
-
/* @__PURE__ */ l("g", {
|
|
5
|
+
/* @__PURE__ */ l("g", { clipPath: "url(#a)", children: /* @__PURE__ */ l(
|
|
6
6
|
"path",
|
|
7
7
|
{
|
|
8
8
|
d: "M.25 8a7.75 7.75 0 1 1 15.5 0A7.75 7.75 0 0 1 .25 8ZM6 4.94 4.94 6l2 2-2 2L6 11.06l2-2 2 2L11.06 10l-2-2 2-2L10 4.94l-2 2-2-2Z",
|