@adyen/adyen-platform-experience-web 1.0.0-beta → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ModalContent-88fdb6f4.js +2 -0
- package/dist/ModalContent-88fdb6f4.js.map +1 -0
- package/dist/cjs/index.js +1 -35
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/components/external/BaseElement.js +48 -88
- package/dist/es/components/external/EventEmitter.js +17 -28
- package/dist/es/components/external/TransactionDetails/TransactionDetails.js +15 -20
- package/dist/es/components/external/TransactionDetails/components/TransactionData.js +41 -42
- package/dist/es/components/external/TransactionDetails/components/TransactionDataSkeleton.js +13 -13
- package/dist/es/components/external/TransactionDetails/components/TransactionDetails.js +28 -39
- package/dist/es/components/external/TransactionDetails/components/TransactionDetails.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/TransactionsOverviewElement.js +25 -31
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +7 -10
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/constants.js +4 -6
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/BalanceAccountSelector.js +21 -22
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/BalanceAccountSelector.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.js +13 -21
- package/dist/es/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.js +22 -25
- package/dist/es/components/external/TransactionsOverview/components/Balances/Balances.js +36 -47
- package/dist/es/components/external/TransactionsOverview/components/Balances/constants.js +2 -2
- package/dist/es/components/external/TransactionsOverview/components/Category/Category.js +8 -9
- package/dist/es/components/external/TransactionsOverview/components/ModalContent.js +9 -9
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +23 -25
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.js +13 -16
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +16 -26
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.js +7 -9
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +42 -50
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +18 -19
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/constants.js +8 -14
- package/dist/es/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.js +16 -16
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.js +37 -42
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +36 -39
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +48 -60
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/constants.js +3 -4
- package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.js +62 -73
- package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/constants.js +3 -4
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +133 -152
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/constants.js +4 -6
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.js +32 -40
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/constants.js +3 -4
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.js +49 -53
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionTable.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +75 -84
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/constants.js +6 -10
- package/dist/es/components/external/TransactionsOverview/components/utils.js +6 -12
- package/dist/es/components/external/TransactionsOverview/hooks/useDefaultTransactionsOverviewFilterParams.js +21 -39
- package/dist/es/components/external/TransactionsOverview/hooks/useMaxWidths.js +9 -10
- package/dist/es/components/external/TransactionsOverview/hooks/useMediaQuery.js +23 -28
- package/dist/es/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.js +24 -28
- package/dist/es/components/external/TransactionsOverview/types.js +4 -0
- package/dist/es/components/external/UIElement.js +38 -51
- package/dist/es/components/internal/BaseButton/BaseButton.js +18 -21
- package/dist/es/components/internal/BaseButton/BaseButton.scss.js +4 -0
- package/dist/es/components/internal/BaseButton/constants.js +2 -2
- package/dist/es/components/internal/BaseList/BaseList.js +5 -8
- package/dist/es/components/internal/BaseList/BaseList.scss.js +4 -0
- package/dist/es/components/internal/BaseList/constants.js +2 -2
- package/dist/es/components/internal/Button/Button.js +39 -41
- package/dist/es/components/internal/Button/Button.scss.js +4 -0
- package/dist/es/components/internal/Button/ButtonActions/ButtonActions.js +27 -8
- package/dist/es/components/internal/Button/ButtonActions/ButtonActions.scss.js +4 -0
- package/dist/es/components/internal/Button/ButtonActions/types.js +7 -0
- package/dist/es/components/internal/Button/constants.js +9 -16
- package/dist/es/components/internal/Button/hooks/useButton.js +13 -17
- package/dist/es/components/internal/Button/types.js +4 -0
- package/dist/es/components/internal/Calendar/Calendar.js +20 -21
- package/dist/es/components/internal/Calendar/Calendar.scss.js +4 -0
- package/dist/es/components/internal/Calendar/calendar/constants.js +35 -70
- package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +322 -552
- package/dist/es/components/internal/Calendar/calendar/facade/index.js +37 -46
- package/dist/es/components/internal/Calendar/calendar/shared/indexed/index.js +34 -46
- package/dist/es/components/internal/Calendar/calendar/timeframe/common/flags.js +31 -5
- package/dist/es/components/internal/Calendar/calendar/timeframe/common/utils.js +14 -16
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +122 -221
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +238 -418
- package/dist/es/components/internal/Calendar/calendar/timerange/factory.js +40 -63
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastMonth.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +16 -27
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastWeek.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js +14 -23
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +21 -29
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisMonth.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisWeek.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.js +9 -13
- package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +49 -83
- package/dist/es/components/internal/Calendar/calendar/timeslice/TimeSlice.js +38 -61
- package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +17 -21
- package/dist/es/components/internal/Calendar/calendar/types.js +15 -0
- package/dist/es/components/internal/Calendar/calendar/utils.js +15 -22
- package/dist/es/components/internal/Calendar/clock/clock.js +23 -41
- package/dist/es/components/internal/Calendar/clock/today.js +37 -57
- package/dist/es/components/internal/Calendar/components/CalendarControls/CalendarControls.js +7 -12
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGrid.js +26 -28
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDate.js +33 -58
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +30 -40
- package/dist/es/components/internal/Calendar/components/CalendarGrid/utils.js +44 -49
- package/dist/es/components/internal/Calendar/hooks/useCalendar.js +84 -115
- package/dist/es/components/internal/Calendar/hooks/useCalendarControlsRendering.js +35 -40
- package/dist/es/components/internal/Calendar/hooks/useTimezone.js +24 -46
- package/dist/es/components/internal/Calendar/types.js +4 -0
- package/dist/es/components/internal/CopyText/CopyText.js +26 -31
- package/dist/es/components/internal/CopyText/CopyText.scss.js +4 -0
- package/dist/es/components/internal/DataGrid/DataGrid.js +93 -10
- package/dist/es/components/internal/DataGrid/DataGrid.scss.js +4 -0
- package/dist/es/components/internal/DataGrid/DataGridCell.js +4 -4
- package/dist/es/components/internal/DataGrid/components/InteractiveBody.js +38 -8
- package/dist/es/components/internal/DataGrid/components/SkeletonBody.js +15 -17
- package/dist/es/components/internal/DataGrid/components/TableBody.js +19 -19
- package/dist/es/components/internal/DataGrid/components/TableCells.js +19 -25
- package/dist/es/components/internal/DataGrid/hooks/useInteractiveDataGrid.js +76 -5
- package/dist/es/components/internal/DataGrid/types.js +4 -0
- package/dist/es/components/internal/DatePicker/DatePicker.js +45 -62
- package/dist/es/components/internal/DatePicker/DatePicker.scss.js +4 -0
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.js +26 -43
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +56 -85
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +45 -53
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.scss.js +4 -0
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +56 -75
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.scss.js +4 -0
- package/dist/es/components/internal/ExpandableCard/constants.js +11 -20
- package/dist/es/components/internal/FilterBar/FilterBar.js +32 -35
- package/dist/es/components/internal/FilterBar/FilterBar.scss.js +4 -0
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +15 -17
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.scss.js +4 -0
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +41 -63
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.scss.js +4 -0
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +53 -68
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/constants.js +2 -2
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +104 -153
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +118 -10
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.scss.js +4 -0
- package/dist/es/components/internal/FilterBar/filters/DateFilter/types.js +4 -0
- package/dist/es/components/internal/FormFields/FormFields.scss.js +4 -0
- package/dist/es/components/internal/FormFields/InputBase.js +53 -66
- package/dist/es/components/internal/FormFields/InputText.js +6 -6
- package/dist/es/components/internal/FormFields/Select/Select.js +187 -246
- package/dist/es/components/internal/FormFields/Select/Select.scss.js +4 -0
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +68 -72
- package/dist/es/components/internal/FormFields/Select/components/SelectList.js +62 -71
- package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +37 -41
- package/dist/es/components/internal/FormFields/Select/constants.js +27 -49
- package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +27 -35
- package/dist/es/components/internal/Image/Image.js +10 -10
- package/dist/es/components/internal/Img/Img.js +18 -32
- package/dist/es/components/internal/Img/Img.scss.js +4 -0
- package/dist/es/components/internal/Modal/Modal.js +58 -77
- package/dist/es/components/internal/Modal/Modal.scss.js +4 -0
- package/dist/es/components/internal/Pagination/Pagination.js +52 -58
- package/dist/es/components/internal/Pagination/Pagination.scss.js +4 -0
- package/dist/es/components/internal/Pagination/constants.js +4 -6
- package/dist/es/components/internal/Pagination/hooks/useCursorPaginatedRecords.js +7 -8
- package/dist/es/components/internal/Pagination/hooks/useCursorPagination.js +18 -30
- package/dist/es/components/internal/Pagination/hooks/useOffsetPagination.js +14 -21
- package/dist/es/components/internal/Pagination/hooks/usePageLimit.js +52 -60
- package/dist/es/components/internal/Pagination/hooks/usePaginatedRecords.js +80 -11
- package/dist/es/components/internal/Pagination/hooks/usePaginatedRecordsFilters.js +12 -13
- package/dist/es/components/internal/Pagination/hooks/usePagination.js +43 -87
- package/dist/es/components/internal/Pagination/types.js +5 -0
- package/dist/es/components/internal/Pagination/utils.js +5 -5
- package/dist/es/components/internal/Popover/Popover.js +106 -139
- package/dist/es/components/internal/Popover/Popover.scss.js +4 -0
- package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.js +18 -22
- package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.scss.js +4 -0
- package/dist/es/components/internal/Popover/PopoverTitle/PopoverTitle.js +8 -10
- package/dist/es/components/internal/Popover/constants.js +9 -16
- package/dist/es/components/internal/Popover/types.js +6 -0
- package/dist/es/components/internal/Popover/utils/popoverUtil.js +27 -45
- package/dist/es/components/internal/Popover/utils/utils.js +23 -29
- package/dist/es/components/internal/SVGIcons/CheckedBox.js +6 -6
- package/dist/es/components/internal/SVGIcons/Checkmark.js +7 -7
- package/dist/es/components/internal/SVGIcons/ChevronDown.js +6 -6
- package/dist/es/components/internal/SVGIcons/ChevronLeft.js +8 -8
- package/dist/es/components/internal/SVGIcons/ChevronRight.js +8 -8
- package/dist/es/components/internal/SVGIcons/ChevronUp.js +7 -7
- package/dist/es/components/internal/SVGIcons/Close.js +4 -4
- package/dist/es/components/internal/SVGIcons/Copy.js +3 -3
- package/dist/es/components/internal/SVGIcons/Filter.js +4 -4
- package/dist/es/components/internal/SVGIcons/UncheckedBox.js +6 -6
- package/dist/es/components/internal/Spinner/Spinner.js +4 -5
- package/dist/es/components/internal/Spinner/Spinner.scss.js +4 -0
- package/dist/es/components/internal/Tag/Tag.js +19 -5
- package/dist/es/components/internal/Tag/Tag.scss.js +4 -0
- package/dist/es/components/internal/Tag/types.js +4 -0
- package/dist/es/components/internal/Tooltip/Tooltip.js +31 -38
- package/dist/es/components/internal/Tooltip/Tooltip.scss.js +4 -0
- package/dist/es/components/internal/Tooltip/useTooltipListeners.js +17 -20
- package/dist/es/components/internal/Typography/Typography.js +33 -7
- package/dist/es/components/internal/Typography/Typography.scss.js +4 -0
- package/dist/es/components/internal/Typography/constants.js +2 -2
- package/dist/es/components/internal/Typography/types.js +6 -0
- package/dist/es/components/shared.scss.js +4 -0
- package/dist/es/components/types.js +4 -0
- package/dist/es/components/utils/transactionResourceErrorCodes.js +14 -15
- package/dist/es/constants.js +2 -2
- package/dist/es/core/Auth/AuthContext.js +7 -7
- package/dist/es/core/Auth/AuthProvider.js +15 -23
- package/dist/es/core/Auth/useAuthContext.js +4 -4
- package/dist/es/core/Context/CoreContext.js +5 -5
- package/dist/es/core/Context/CoreProvider.js +17 -23
- package/dist/es/core/Context/useCoreContext.js +4 -4
- package/dist/es/core/Errors/AdyenPlatformExperienceError.js +12 -17
- package/dist/es/core/Errors/constants.js +2 -4
- package/dist/es/core/Localization/Localization.js +155 -12
- package/dist/es/core/Localization/amount/amount-util.js +19 -42
- package/dist/es/core/Localization/constants/currency-codes.js +3 -3
- package/dist/es/core/Localization/constants/currency-decimals.js +3 -3
- package/dist/es/core/Localization/constants/locale.js +5 -7
- package/dist/es/core/Localization/constants/localization.js +6 -9
- package/dist/es/core/Localization/datetime/restamper/constants.js +20 -29
- package/dist/es/core/Localization/datetime/restamper/restamper.js +32 -44
- package/dist/es/core/Localization/datetime/restamper/utils.js +26 -44
- package/dist/es/core/Localization/localization-utils.js +31 -7
- package/dist/es/core/Localization/translations/ar.json.js +4 -0
- package/dist/es/core/Localization/translations/cs-CZ.json.js +4 -0
- package/dist/es/core/Localization/translations/da-DK.json.js +4 -0
- package/dist/es/core/Localization/translations/de-DE.json.js +4 -0
- package/dist/es/core/Localization/translations/el-GR.json.js +4 -0
- package/dist/es/core/Localization/translations/en-US.json.js +371 -0
- package/dist/es/core/Localization/translations/es-ES.json.js +255 -0
- package/dist/es/core/Localization/translations/fi-FI.json.js +4 -0
- package/dist/es/core/Localization/translations/fr-FR.json.js +4 -0
- package/dist/es/core/Localization/translations/hr-HR.json.js +4 -0
- package/dist/es/core/Localization/translations/hu-HU.json.js +4 -0
- package/dist/es/core/Localization/translations/index.js +79 -356
- package/dist/es/core/Localization/translations/it-IT.json.js +4 -0
- package/dist/es/core/Localization/translations/ja-JP.json.js +4 -0
- package/dist/es/core/Localization/translations/ko-KR.json.js +4 -0
- package/dist/es/core/Localization/translations/nl-NL.json.js +4 -0
- package/dist/es/core/Localization/translations/no-NO.json.js +4 -0
- package/dist/es/core/Localization/translations/pl-PL.json.js +4 -0
- package/dist/es/core/Localization/translations/pt-BR.json.js +4 -0
- package/dist/es/core/Localization/translations/pt-PT.json.js +4 -0
- package/dist/es/core/Localization/translations/ro-RO.json.js +4 -0
- package/dist/es/core/Localization/translations/ru-RU.json.js +4 -0
- package/dist/es/core/Localization/translations/sk-SK.json.js +4 -0
- package/dist/es/core/Localization/translations/sl-SI.json.js +4 -0
- package/dist/es/core/Localization/translations/sv-SE.json.js +4 -0
- package/dist/es/core/Localization/translations/zh-CN.json.js +4 -0
- package/dist/es/core/Localization/translations/zh-TW.json.js +4 -0
- package/dist/es/core/Localization/utils.js +44 -72
- package/dist/es/core/Services/requests/http.js +31 -49
- package/dist/es/core/Services/requests/utils.js +34 -49
- package/dist/es/core/Services/sessions/constants.js +2 -2
- package/dist/es/core/Services/sessions/setup-session.js +9 -9
- package/dist/es/core/Session/Session.js +23 -38
- package/dist/es/core/Session/utils.js +5 -5
- package/dist/es/core/config.js +2 -6
- package/dist/es/core/core.js +44 -85
- package/dist/es/core/utils.js +8 -10
- package/dist/es/external/preact/compat/dist/compat.module.js +253 -0
- package/dist/es/external/preact/dist/preact.module.js +316 -0
- package/dist/es/external/preact/hooks/dist/hooks.module.js +161 -0
- package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +19 -0
- package/dist/es/hooks/element/useClickOutside.js +32 -73
- package/dist/es/hooks/element/useDetachedRender.js +15 -17
- package/dist/es/hooks/element/useFocusCursor.js +14 -19
- package/dist/es/hooks/element/useFocusTrap.js +48 -91
- package/dist/es/hooks/element/usePopoverPositioner.js +105 -5
- package/dist/es/hooks/element/useUniqueIdentifier.js +13 -17
- package/dist/es/hooks/useBooleanState/useBooleanState.js +6 -8
- package/dist/es/hooks/useCommitAction/types.js +4 -0
- package/dist/es/hooks/useCommitAction/useCommitAction.js +27 -38
- package/dist/es/hooks/useFetch/useFetch.js +27 -37
- package/dist/es/hooks/useImageUrl/useImageUrl.js +22 -26
- package/dist/es/hooks/useModalDetails/types.js +6 -0
- package/dist/es/hooks/useModalDetails/useModalDetails.js +28 -37
- package/dist/es/hooks/useMounted/useMounted.js +8 -14
- package/dist/es/hooks/useReactiveState/useReactiveState.js +27 -53
- package/dist/es/hooks/useReflex/constants.js +2 -2
- package/dist/es/hooks/useReflex/core/reflex.js +47 -66
- package/dist/es/hooks/useReflex/core/registry.js +46 -68
- package/dist/es/hooks/useReflex/core/utils.js +16 -18
- package/dist/es/hooks/useReflex/errors.js +6 -6
- package/dist/es/hooks/useReflex/hooks/useReflex.js +7 -12
- package/dist/es/hooks/useSessionAwareRequest/useSessionAwareRequest.js +22 -36
- package/dist/es/hooks/useSetupEndpoint/useSetupEndpoint.js +20 -26
- package/dist/es/images/no-data-female.svg.js +4 -0
- package/dist/es/images/no-results.svg.js +4 -0
- package/dist/es/index.js +41 -45
- package/dist/es/style/index.scss.js +4 -0
- package/dist/es/utils/Storage.js +17 -21
- package/dist/es/utils/class-name-utils.js +5 -11
- package/dist/es/utils/common/constants.js +6 -10
- package/dist/es/utils/common/index.js +32 -59
- package/dist/es/utils/fixedForwardRef.js +3 -3
- package/dist/es/utils/get-image.js +11 -12
- package/dist/es/utils/idGenerator.js +3 -6
- package/dist/es/utils/memoComparator/memoComparator.js +17 -26
- package/dist/es/utils/tabbable.js +71 -110
- package/dist/es/utils/uuid.js +5 -5
- package/dist/es/utils/validator-utils.js +3 -44
- package/dist/es/utils/watchable/constants.js +2 -2
- package/dist/es/utils/watchable/core/Watchable.js +45 -83
- package/dist/es/utils/watchable/core/helpers.js +19 -26
- package/dist/es/utils/watchable/core/syncEffect.js +15 -19
- package/dist/es/utils/watchable/index.js +16 -17
- package/dist/index-7e2df524.js +12 -0
- package/dist/index-7e2df524.js.map +1 -0
- package/dist/style.css +1 -0
- package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts +1 -1
- package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts +1 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/types.d.ts +3 -3
- package/dist/types/components/external/TransactionDetails/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceItem/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceItem/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/Balances/Balances.d.ts +3 -3
- package/dist/types/components/external/TransactionsOverview/components/Balances/Balances.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/Category/types.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/Category/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/ModalContent.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/ModalContent.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.d.ts +3 -3
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts +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 +4 -4
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useDefaultTransactionsOverviewFilterParams.d.ts +1 -0
- package/dist/types/components/external/TransactionsOverview/hooks/useDefaultTransactionsOverviewFilterParams.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useMediaQuery.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useMediaQuery.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/types.d.ts +2 -1
- package/dist/types/components/external/TransactionsOverview/types.d.ts.map +1 -1
- package/dist/types/components/external/UIElement.d.ts +1 -1
- package/dist/types/components/external/UIElement.d.ts.map +1 -1
- package/dist/types/components/internal/BaseList/BaseList.d.ts +1 -1
- package/dist/types/components/internal/BaseList/BaseList.d.ts.map +1 -1
- package/dist/types/components/internal/Button/ButtonActions/ButtonActions.d.ts +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 -1
- package/dist/types/components/internal/Button/ButtonActions/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/shared/indexed/index.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/types.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/types.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/clock/today.d.ts +1 -1
- package/dist/types/components/internal/Calendar/clock/today.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/clock/types.d.ts +2 -2
- package/dist/types/components/internal/Calendar/clock/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/components/CalendarGrid/utils.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts +1 -1
- package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/hooks/useTimezone.d.ts +1 -1
- package/dist/types/components/internal/Calendar/hooks/useTimezone.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/TableBody.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/components/TableBody.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts +2 -2
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/hooks/useInteractiveDataGrid.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/types.d.ts +2 -2
- package/dist/types/components/internal/DataGrid/types.d.ts.map +1 -1
- package/dist/types/components/internal/DatePicker/DatePicker.d.ts +1 -1
- package/dist/types/components/internal/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts +3 -3
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts.map +1 -1
- package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts +1 -1
- package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/AmountFilter/types.d.ts +2 -2
- package/dist/types/components/internal/FilterBar/filters/AmountFilter/types.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/BaseFilter/types.d.ts +2 -2
- package/dist/types/components/internal/FilterBar/filters/BaseFilter/types.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/DateFilter/types.d.ts +1 -1
- package/dist/types/components/internal/FilterBar/filters/DateFilter/types.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/types.d.ts +1 -1
- package/dist/types/components/internal/Pagination/hooks/types.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePaginatedRecordsFilters.d.ts +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePaginatedRecordsFilters.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/types.d.ts +1 -1
- package/dist/types/components/internal/Pagination/types.d.ts.map +1 -1
- package/dist/types/components/internal/Popover/Popover.d.ts +1 -1
- package/dist/types/components/internal/Popover/Popover.d.ts.map +1 -1
- package/dist/types/components/internal/Popover/types.d.ts +1 -1
- package/dist/types/components/internal/Popover/types.d.ts.map +1 -1
- package/dist/types/components/internal/Tooltip/types.d.ts +2 -2
- package/dist/types/components/internal/Tooltip/types.d.ts.map +1 -1
- package/dist/types/components/utils/transactionResourceErrorCodes.d.ts +2 -2
- package/dist/types/components/utils/transactionResourceErrorCodes.d.ts.map +1 -1
- package/dist/types/core/Auth/AuthContext.d.ts +1 -1
- package/dist/types/core/Auth/AuthContext.d.ts.map +1 -1
- package/dist/types/core/Auth/AuthProvider.d.ts +1 -1
- package/dist/types/core/Auth/AuthProvider.d.ts.map +1 -1
- package/dist/types/core/Auth/types.d.ts +1 -1
- package/dist/types/core/Auth/types.d.ts.map +1 -1
- package/dist/types/core/Context/CoreContext.d.ts +1 -1
- package/dist/types/core/Context/CoreContext.d.ts.map +1 -1
- package/dist/types/core/Context/types.d.ts +1 -1
- package/dist/types/core/Context/types.d.ts.map +1 -1
- package/dist/types/core/Errors/AdyenPlatformExperienceError.d.ts +1 -1
- package/dist/types/core/Errors/AdyenPlatformExperienceError.d.ts.map +1 -1
- package/dist/types/core/Localization/localization-utils.d.ts.map +1 -1
- package/dist/types/core/Localization/types.d.ts +3 -3
- package/dist/types/core/Localization/types.d.ts.map +1 -1
- package/dist/types/core/Session/types.d.ts +1 -1
- package/dist/types/core/Session/types.d.ts.map +1 -1
- package/dist/types/hooks/element/useClickOutside.d.ts +2 -2
- package/dist/types/hooks/element/useClickOutside.d.ts.map +1 -1
- package/dist/types/hooks/element/usePopoverPositioner.d.ts +1 -1
- package/dist/types/hooks/element/usePopoverPositioner.d.ts.map +1 -1
- package/dist/types/hooks/useCommitAction/types.d.ts +1 -1
- package/dist/types/hooks/useCommitAction/types.d.ts.map +1 -1
- package/dist/types/hooks/useFetch/useFetch.d.ts +1 -1
- package/dist/types/hooks/useFetch/useFetch.d.ts.map +1 -1
- package/dist/types/hooks/useModalDetails/types.d.ts +2 -2
- package/dist/types/hooks/useModalDetails/types.d.ts.map +1 -1
- package/dist/types/hooks/useSessionAwareRequest/useSessionAwareRequest.d.ts +1 -1
- package/dist/types/hooks/useSessionAwareRequest/useSessionAwareRequest.d.ts.map +1 -1
- package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts +2 -2
- package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts.map +1 -1
- package/dist/types/utils/Validator/types.d.ts +1 -1
- package/dist/types/utils/Validator/types.d.ts.map +1 -1
- package/dist/types/utils/useForm/types.d.ts +1 -1
- package/dist/types/utils/useForm/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/AmountSkeleton.css +0 -23
- package/dist/BalanceAccountSelector.css +0 -4
- package/dist/BaseButton.css +0 -14
- package/dist/BaseList.css +0 -5
- package/dist/Button.css +0 -114
- package/dist/ButtonActions-eb064f69.mjs +0 -46
- package/dist/ButtonActions.css +0 -28
- package/dist/CalendarGrid.css +0 -113
- package/dist/CopyText.css +0 -18
- package/dist/DatePicker.css +0 -64
- package/dist/ErrorMessageDisplay.css +0 -20
- package/dist/ErrorPanel.css +0 -15
- package/dist/ExpandableCard.css +0 -71
- package/dist/FilterBar.css +0 -40
- package/dist/FilterButton.css +0 -48
- package/dist/Img.css +0 -7
- package/dist/InputBase.css +0 -175
- package/dist/Modal.css +0 -110
- package/dist/Pagination.css +0 -25
- package/dist/Popover.css +0 -127
- package/dist/PopoverDismissButton.css +0 -12
- package/dist/RangeSelection.css +0 -26
- package/dist/Select.css +0 -149
- package/dist/SkeletonBody.css +0 -154
- package/dist/Spinner.css +0 -50
- package/dist/SummaryItem.css +0 -37
- package/dist/Tag-6d02fd64.mjs +0 -32
- package/dist/Tag.css +0 -34
- package/dist/Tooltip.css +0 -7
- package/dist/TotalsCard.css +0 -14
- package/dist/TransactionDetails.css +0 -74
- package/dist/TransactionsDisplay.css +0 -4
- package/dist/TransactionsOverview.css +0 -29
- package/dist/TransactionsOverviewContainer.css +0 -3
- package/dist/TransactionsTable.css +0 -18
- package/dist/Typography-11b95870.mjs +0 -68
- package/dist/Typography.css +0 -57
- package/dist/cjs/ModalContent-f4990141.js +0 -10
- package/dist/cjs/ModalContent-f4990141.js.map +0 -1
- package/dist/cjs/index-8c098f20.js +0 -10401
- package/dist/cjs/index-8c098f20.js.map +0 -1
- package/dist/cjs/index.css +0 -1709
- package/dist/compat.module-a4d537ff.mjs +0 -237
- package/dist/en-US-1daadfc1.mjs +0 -371
- package/dist/es/components/external/FormElement.js +0 -78
- package/dist/es/components/external/TransactionDetails/index.js +0 -4
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/index.js +0 -6
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/index.js +0 -15
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/index.js +0 -13
- package/dist/es/components/external/TransactionsOverview/index.js +0 -6
- package/dist/es/components/external/index.js +0 -8
- package/dist/es/components/index.js +0 -11
- package/dist/es/components/internal/BaseButton/index.js +0 -4
- package/dist/es/components/internal/Button/index.js +0 -4
- package/dist/es/components/internal/Calendar/calendar/index.js +0 -4
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/YearFrame.js +0 -197
- package/dist/es/components/internal/Calendar/calendar/timeframe/index.js +0 -8
- package/dist/es/components/internal/Calendar/calendar/timerange/factory.test.js +0 -139
- package/dist/es/components/internal/Calendar/calendar/timerange/index.js +0 -4
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/index.js +0 -14
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastMonth.test.js +0 -69
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.test.js +0 -69
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastWeek.test.js +0 -108
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/testing/fixtures.js +0 -15
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/testing/helpers.js +0 -19
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisMonth.test.js +0 -46
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisWeek.test.js +0 -85
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.test.js +0 -49
- package/dist/es/components/internal/Calendar/clock/clock.test.js +0 -43
- package/dist/es/components/internal/Calendar/clock/index.js +0 -7
- package/dist/es/components/internal/Calendar/clock/testing/fixtures.js +0 -60
- package/dist/es/components/internal/Calendar/clock/today.test.js +0 -98
- package/dist/es/components/internal/Calendar/components/CalendarControls/index.js +0 -4
- package/dist/es/components/internal/Calendar/components/CalendarGrid/index.js +0 -4
- package/dist/es/components/internal/Calendar/index.js +0 -4
- package/dist/es/components/internal/DataGrid/index.js +0 -4
- package/dist/es/components/internal/DataGrid/tests/DataGrid.test.js +0 -190
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/index.js +0 -7
- package/dist/es/components/internal/DatePicker/index.js +0 -4
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.test.js +0 -45
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/index.js +0 -4
- package/dist/es/components/internal/FilterBar/filters/DateFilter/index.js +0 -4
- package/dist/es/components/internal/FilterBar/filters/TextFilter/TextFilter.js +0 -8
- package/dist/es/components/internal/FilterBar/filters/TextFilter/index.js +0 -4
- package/dist/es/components/internal/FilterBar/index.js +0 -4
- package/dist/es/components/internal/FormFields/Select/index.js +0 -4
- package/dist/es/components/internal/FormFields/index.js +0 -18
- package/dist/es/components/internal/FormFields/utils.js +0 -4
- package/dist/es/components/internal/Img/index.js +0 -4
- package/dist/es/components/internal/Modal/index.js +0 -4
- package/dist/es/components/internal/Pagination/components/LimitSelect.js +0 -1
- package/dist/es/components/internal/Pagination/hooks/index.js +0 -6
- package/dist/es/components/internal/Pagination/hooks/useOffsetPaginatedRecords.js +0 -10
- package/dist/es/components/internal/Pagination/index.js +0 -4
- package/dist/es/components/internal/Popover/Popover.test.js +0 -119
- package/dist/es/components/internal/Spinner/index.js +0 -4
- package/dist/es/components/utils/utils.js +0 -34
- package/dist/es/core/Analytics/Analytics.js +0 -63
- package/dist/es/core/Analytics/EventsQueue.js +0 -22
- package/dist/es/core/Analytics/index.js +0 -4
- package/dist/es/core/Errors/ErrorPanel.js +0 -19
- package/dist/es/core/Localization/Localization.test.js +0 -70
- package/dist/es/core/Localization/amount/amount-util.test.js +0 -54
- package/dist/es/core/Localization/datetime/restamper/index.js +0 -9
- package/dist/es/core/Localization/datetime/restamper/restamper.test.js +0 -179
- package/dist/es/core/Localization/datetime/restamper/testing/fixtures.js +0 -21
- package/dist/es/core/Localization/datetime/restamper/testing/helpers.js +0 -27
- package/dist/es/core/Localization/index.js +0 -32
- package/dist/es/core/Localization/utils.test.js +0 -215
- package/dist/es/core/ProcessResponse/index.js +0 -4
- package/dist/es/core/ProcessResponse/process-response.js +0 -40
- package/dist/es/core/Services/analytics/collect-id.js +0 -37
- package/dist/es/core/Services/analytics/log-event.js +0 -14
- package/dist/es/core/Services/analytics/post-telemetry.js +0 -22
- package/dist/es/core/Services/data-set.js +0 -1
- package/dist/es/core/Services/get-dataset.js +0 -13
- package/dist/es/core/Services/requests/endpoints.js +0 -9
- package/dist/es/core/Session/index.js +0 -4
- package/dist/es/core/index.js +0 -36
- package/dist/es/hooks/element/useIdentifierString.js +0 -61
- package/dist/es/hooks/useBooleanState/index.js +0 -4
- package/dist/es/hooks/useCommitAction/index.js +0 -6
- package/dist/es/hooks/useDefinedValue/index.js +0 -4
- package/dist/es/hooks/useDefinedValue/useDefinedValue.js +0 -16
- package/dist/es/hooks/useMounted/index.js +0 -4
- package/dist/es/hooks/useReactiveState/index.js +0 -4
- package/dist/es/hooks/useReflex/core/reflex.test.js +0 -170
- package/dist/es/hooks/useReflex/core/registry.test.js +0 -114
- package/dist/es/hooks/useReflex/core/utils.test.js +0 -59
- package/dist/es/hooks/useReflex/index.js +0 -8
- package/dist/es/utils/Validator/ValidationRuleResult.js +0 -28
- package/dist/es/utils/Validator/Validator.js +0 -67
- package/dist/es/utils/Validator/Validator.test.js +0 -27
- package/dist/es/utils/Validator/defaultRules.js +0 -12
- package/dist/es/utils/Validator/index.js +0 -4
- package/dist/es/utils/get-image.test.js +0 -38
- package/dist/es/utils/memoComparator/index.js +0 -4
- package/dist/es/utils/regex.js +0 -6
- package/dist/es/utils/useForm/index.js +0 -4
- package/dist/es/utils/useForm/reducer.js +0 -153
- package/dist/es/utils/useForm/useForm.js +0 -85
- package/dist/es/utils/useForm/useForm.test.js +0 -107
- package/dist/es/utils/uuid.test.js +0 -13
- package/dist/es/utils/watchable/core/Watchable.test.js +0 -103
- package/dist/es/utils/watchable/core/helpers.test.js +0 -106
- package/dist/es/utils/watchable/core/syncEffect.test.js +0 -103
- package/dist/flags-41c36e13.mjs +0 -83
- package/dist/hooks.module-8565d716.mjs +0 -161
- package/dist/index-2c0f6175.mjs +0 -12069
- package/dist/index-6e47f755.mjs +0 -231
- package/dist/index-944be685.mjs +0 -6609
- package/dist/index-c88cd37e.mjs +0 -243
- package/dist/index-f5bc0382.mjs +0 -155
- package/dist/index.css +0 -65
- package/dist/index2.css +0 -4
- package/dist/jsxRuntime.module-69493d81.mjs +0 -15
- package/dist/magic-string.es-219c273f.mjs +0 -1146
- package/dist/preact.module-38e5a571.mjs +0 -323
- package/dist/types-0027b7c2.mjs +0 -9
- package/dist/types-0aaff3aa.mjs +0 -19
- package/dist/types-7ad6576a.mjs +0 -10
- package/dist/types-e4bbd37f.mjs +0 -13
- package/dist/types-e6a6a3ff.mjs +0 -9
- package/dist/usePaginatedRecords-63a69bf1.mjs +0 -131
- package/dist/usePopoverPositioner-882fea89.mjs +0 -182
- package/dist/vendor-vi.a3ff54b1-5e924357.mjs +0 -22389
|
@@ -1,13 +1,82 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "
|
|
7
|
-
import "../../../../hooks/useBooleanState/useBooleanState.js";
|
|
8
|
-
import "../../../../hooks/useMounted/useMounted.js";
|
|
9
|
-
import {
|
|
10
|
-
|
|
1
|
+
import { useState as D, useRef as y, useMemo as T, useCallback as F, useEffect as O } from "../../../../external/preact/hooks/dist/hooks.module.js";
|
|
2
|
+
import W from "./usePageLimit.js";
|
|
3
|
+
import Z from "./useCursorPagination.js";
|
|
4
|
+
import C from "./useOffsetPagination.js";
|
|
5
|
+
import z from "./usePaginatedRecordsFilters.js";
|
|
6
|
+
import { PageNeighbour as f, PaginationType as ee } from "../types.js";
|
|
7
|
+
import te from "../../../../hooks/useBooleanState/useBooleanState.js";
|
|
8
|
+
import re from "../../../../hooks/useMounted/useMounted.js";
|
|
9
|
+
import { EMPTY_OBJECT as _ } from "../../../../utils/common/constants.js";
|
|
10
|
+
const se = [f.NEXT, f.PREV], oe = ["hasNext", "hasPrevious"], h = (e) => {
|
|
11
|
+
const t = Object.getOwnPropertyNames(e);
|
|
12
|
+
return !oe.some((r) => t.includes(r));
|
|
13
|
+
}, ae = (e, t = "data") => {
|
|
14
|
+
const r = e[t];
|
|
15
|
+
if (h(e)) {
|
|
16
|
+
const n = Object.fromEntries(
|
|
17
|
+
Object.entries(e || _).filter(
|
|
18
|
+
([s, o]) => se.includes(s) && o
|
|
19
|
+
)
|
|
20
|
+
);
|
|
21
|
+
return { records: r, paginationData: n };
|
|
22
|
+
}
|
|
23
|
+
throw new TypeError("MALFORMED_PAGINATED_DATA");
|
|
24
|
+
}, ne = (e, t = "data") => {
|
|
25
|
+
const r = e[t];
|
|
26
|
+
if (!h(e)) {
|
|
27
|
+
const { hasNext: n, hasPrevious: s } = e, o = {
|
|
28
|
+
[f.NEXT]: n === !0,
|
|
29
|
+
[f.PREV]: s === !0
|
|
30
|
+
};
|
|
31
|
+
return { records: r, paginationData: o };
|
|
32
|
+
}
|
|
33
|
+
throw new TypeError("MALFORMED_PAGINATED_DATA");
|
|
34
|
+
}, ce = ({
|
|
35
|
+
dataField: e = "data",
|
|
36
|
+
fetchRecords: t,
|
|
37
|
+
filterParams: r = _,
|
|
38
|
+
initialFiltersSameAsDefault: n = !0,
|
|
39
|
+
initialize: s,
|
|
40
|
+
onFiltersChanged: o,
|
|
41
|
+
onLimitChanged: P,
|
|
42
|
+
pagination: $,
|
|
43
|
+
preferredLimit: j,
|
|
44
|
+
preferredLimitOptions: v,
|
|
45
|
+
enabled: A
|
|
46
|
+
}) => {
|
|
47
|
+
const [x, I] = D([]), [L, m] = te(!0), [S, l] = D(), [B, G] = D(j), N = re(), d = y(!0), g = y(1), M = z(r, n), { limit: c, limitOptions: V } = W({ preferredLimit: B, preferredLimitOptions: v }), { defaultFilters: ue, filters: a, updateFilters: X, ...k } = M, [q, J] = T(
|
|
48
|
+
() => $ === ee.CURSOR ? [ae, Z] : [ne, C],
|
|
49
|
+
[]
|
|
50
|
+
), U = F((E) => G(E), []), { goto: R, page: Y, pages: H, resetPagination: b, ...K } = J(
|
|
51
|
+
F(
|
|
52
|
+
async ({ page: E, ...Q }, i) => {
|
|
53
|
+
try {
|
|
54
|
+
if (l(void 0), g.current = E, !N.current || m(!0))
|
|
55
|
+
return;
|
|
56
|
+
const p = await t({ ...Q, ...a }, i), { records: u, paginationData: w } = q(p, e);
|
|
57
|
+
return d.current && (s == null || s([u, w], M), d.current = !1), N.current && (I(u), m(!1)), { ...w, size: u == null ? void 0 : u.length };
|
|
58
|
+
} catch (p) {
|
|
59
|
+
if (i != null && i.aborted)
|
|
60
|
+
return;
|
|
61
|
+
m(!1), l(p), console.error(p);
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
[t, a, c]
|
|
65
|
+
),
|
|
66
|
+
c
|
|
67
|
+
);
|
|
68
|
+
return T(() => {
|
|
69
|
+
d.current = !0;
|
|
70
|
+
}, [r]), T(() => {
|
|
71
|
+
b(), g.current = 1;
|
|
72
|
+
}, [a, c, b]), O(() => {
|
|
73
|
+
A && R(g.current);
|
|
74
|
+
}, [R, A]), O(() => {
|
|
75
|
+
o == null || o(a);
|
|
76
|
+
}, [a]), O(() => {
|
|
77
|
+
P == null || P(c);
|
|
78
|
+
}, [c]), { error: S, fetching: L, filters: a, goto: R, limitOptions: V, page: Y, pages: H, records: x, updateFilters: X, updateLimit: U, ...k, ...K };
|
|
79
|
+
}, De = ce;
|
|
11
80
|
export {
|
|
12
|
-
|
|
81
|
+
De as default
|
|
13
82
|
};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import "../../../../
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
const usePaginatedRecordsFilters = (filterParams = EMPTY_OBJECT, initialFiltersSameAsDefault) => {
|
|
1
|
+
import o from "../../../../hooks/useReactiveState/useReactiveState.js";
|
|
2
|
+
import { EMPTY_OBJECT as d } from "../../../../utils/common/constants.js";
|
|
3
|
+
const u = (t = d, e) => {
|
|
5
4
|
const {
|
|
6
|
-
canResetState:
|
|
7
|
-
defaultState:
|
|
8
|
-
resetState:
|
|
9
|
-
state:
|
|
10
|
-
updateState:
|
|
11
|
-
} =
|
|
12
|
-
return { canResetFilters, defaultFilters, filters, resetFilters, updateFilters };
|
|
13
|
-
};
|
|
5
|
+
canResetState: s,
|
|
6
|
+
defaultState: a,
|
|
7
|
+
resetState: r,
|
|
8
|
+
state: i,
|
|
9
|
+
updateState: l
|
|
10
|
+
} = o(t, e);
|
|
11
|
+
return { canResetFilters: s, defaultFilters: a, filters: i, resetFilters: r, updateFilters: l };
|
|
12
|
+
}, f = u;
|
|
14
13
|
export {
|
|
15
|
-
|
|
14
|
+
f as default
|
|
16
15
|
};
|
|
@@ -1,91 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const $mounted = useMounted(
|
|
12
|
-
T(() => {
|
|
13
|
-
var _a;
|
|
14
|
-
(_a = $controller.current) == null ? void 0 : _a.abort();
|
|
15
|
-
$controller.current = void 0;
|
|
1
|
+
import { useRef as p, useCallback as P, useState as G, useMemo as s, useEffect as T } from "../../../../external/preact/hooks/dist/hooks.module.js";
|
|
2
|
+
import { getClampedPageLimit as _ } from "../utils.js";
|
|
3
|
+
import { noop as j } from "../../../../utils/common/index.js";
|
|
4
|
+
import H from "../../../../hooks/useMounted/useMounted.js";
|
|
5
|
+
import J from "../../../../hooks/useBooleanState/useBooleanState.js";
|
|
6
|
+
const K = (V, l, M) => {
|
|
7
|
+
const u = p(), c = p(), h = p(), r = p(), i = H(
|
|
8
|
+
P(() => {
|
|
9
|
+
var o;
|
|
10
|
+
(o = u.current) == null || o.abort(), u.current = void 0;
|
|
16
11
|
}, [])
|
|
17
|
-
)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
if (!$mounted.current)
|
|
35
|
-
return;
|
|
36
|
-
if (($page.current = requestedPage) > 1 || PAGES) {
|
|
37
|
-
setCurrentPage($page.current);
|
|
12
|
+
), [t, x] = G(r.current), [g, $] = J(!1), e = s(() => _(M), [M]), { getPageCount: v, getPageParams: I, resetPageCount: z, updatePagination: R } = V, n = s(() => l ? (o) => {
|
|
13
|
+
var S;
|
|
14
|
+
if (!(e && Number.isInteger(o)))
|
|
15
|
+
return;
|
|
16
|
+
const f = v(), a = o < 0 ? o + f + 1 : o;
|
|
17
|
+
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 () => {
|
|
18
|
+
const { signal: b } = u.current, D = { ...I(a, e), limit: e, page: a };
|
|
19
|
+
try {
|
|
20
|
+
const d = await l(D, b);
|
|
21
|
+
if (!d || !i.current)
|
|
22
|
+
return;
|
|
23
|
+
const { size: y, ...F } = d;
|
|
24
|
+
R(a, e, F), c.current = r.current && Math.max(r.current, c.current || -1 / 0), r.current && r.current === c.current && (h.current = y), r.current === 1 && y > 0 && x(r.current), r.current = void 0, $(!0);
|
|
25
|
+
} catch (d) {
|
|
26
|
+
if (b.aborted)
|
|
27
|
+
return;
|
|
28
|
+
console.error(d);
|
|
38
29
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
updatePaginationChanged(true);
|
|
55
|
-
} catch (ex) {
|
|
56
|
-
if (signal.aborted)
|
|
57
|
-
return;
|
|
58
|
-
console.error(ex);
|
|
59
|
-
}
|
|
60
|
-
})();
|
|
61
|
-
} : noop;
|
|
62
|
-
}, [limit, requestPageCallback]);
|
|
63
|
-
const next = T(() => {
|
|
64
|
-
page && goto(Math.min(page + 1, getPageCount()));
|
|
65
|
-
}, [goto, page]);
|
|
66
|
-
const prev = T(() => {
|
|
67
|
-
page && goto(Math.max(page - 1, 1));
|
|
68
|
-
}, [goto, page]);
|
|
69
|
-
const pages = F(() => getPageCount() || page || void 0, [goto, paginationChanged]);
|
|
70
|
-
const hasNext = F(() => !!(page && pages) && page < pages, [page, pages]);
|
|
71
|
-
const hasPrev = F(() => !!page && page > 1, [page]);
|
|
72
|
-
const size = F(
|
|
73
|
-
() => $maxVisitedPage.current ? ($maxVisitedPage.current - 1) * limit + ($maxVisitedPageSize.current || 0) : 0,
|
|
74
|
-
[goto, paginationChanged]
|
|
75
|
-
);
|
|
76
|
-
const pageSize = F(() => limit && Math.min(limit, size || Infinity) % limit, [limit, size]);
|
|
77
|
-
const resetPagination = T(() => {
|
|
78
|
-
resetPageCount();
|
|
79
|
-
$maxVisitedPage.current = $maxVisitedPageSize.current = $page.current = void 0;
|
|
80
|
-
$mounted.current && setCurrentPage($page.current);
|
|
81
|
-
}, [resetPageCount]);
|
|
82
|
-
p(() => {
|
|
83
|
-
if ($mounted.current && paginationChanged) {
|
|
84
|
-
updatePaginationChanged(false);
|
|
85
|
-
}
|
|
86
|
-
}, [paginationChanged]);
|
|
87
|
-
return { goto, hasNext, hasPrev, limit, next, page, pages, pageSize, prev, resetPagination, size };
|
|
88
|
-
};
|
|
30
|
+
})()));
|
|
31
|
+
} : j, [e, l]), w = P(() => {
|
|
32
|
+
t && n(Math.min(t + 1, v()));
|
|
33
|
+
}, [n, t]), A = P(() => {
|
|
34
|
+
t && n(Math.max(t - 1, 1));
|
|
35
|
+
}, [n, t]), m = s(() => v() || t || void 0, [n, g]), E = s(() => !!(t && m) && t < m, [t, m]), N = s(() => !!t && t > 1, [t]), C = s(
|
|
36
|
+
() => c.current ? (c.current - 1) * e + (h.current || 0) : 0,
|
|
37
|
+
[n, g]
|
|
38
|
+
), q = s(() => e && Math.min(e, C || 1 / 0) % e, [e, C]), B = P(() => {
|
|
39
|
+
z(), c.current = h.current = r.current = void 0, i.current && x(r.current);
|
|
40
|
+
}, [z]);
|
|
41
|
+
return T(() => {
|
|
42
|
+
i.current && g && $(!1);
|
|
43
|
+
}, [g]), { goto: n, hasNext: E, hasPrev: N, limit: e, next: w, page: t, pages: m, pageSize: q, prev: A, resetPagination: B, size: C };
|
|
44
|
+
}, Y = K;
|
|
89
45
|
export {
|
|
90
|
-
|
|
46
|
+
Y as default
|
|
91
47
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { MAX_PAGE_LIMIT } from "./constants.js";
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
return
|
|
1
|
+
import { MAX_PAGE_LIMIT as o } from "./constants.js";
|
|
2
|
+
const a = (m) => {
|
|
3
|
+
const t = ~~m;
|
|
4
|
+
return t === m && t > 0 ? Math.min(t, o) : Math.max(t, 0);
|
|
5
5
|
};
|
|
6
6
|
export {
|
|
7
|
-
getClampedPageLimit
|
|
7
|
+
a as getClampedPageLimit
|
|
8
8
|
};
|
|
@@ -1,163 +1,130 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { DEFAULT_POPOVER_CLASSNAME, DEFAULT_TOOLTIP_CLASSNAME, POPOVER_CONTAINER_CLASSNAME, TOOLTIP_CONTENT_CLASSNAME, POPOVER_CONTENT_CLASSNAME
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { useClickOutside, ClickOutsideVariant } from "../../../hooks/element/useClickOutside.js";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { getModifierClasses } from "../../../utils/class-name-utils.js";
|
|
14
|
-
import { isFunction } from "../../../utils/common/index.js";
|
|
15
|
-
import { SELECTORS, isFocusable } from "../../../utils/tabbable.js";
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
children,
|
|
55
|
-
withContentPadding,
|
|
56
|
-
classNameModifiers,
|
|
57
|
-
showOverlay = false,
|
|
58
|
-
fitPosition,
|
|
59
|
-
...uncontrolledProps
|
|
1
|
+
import { jsx as o } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
+
import Y from "../Button/ButtonActions/ButtonActions.js";
|
|
3
|
+
import { ButtonActionsLayoutBasic as Z } from "../Button/ButtonActions/types.js";
|
|
4
|
+
import { DEFAULT_POPOVER_CLASSNAME as t, DEFAULT_TOOLTIP_CLASSNAME as g, POPOVER_CONTAINER_CLASSNAME as oo, TOOLTIP_CONTENT_CLASSNAME as w, POPOVER_CONTENT_CLASSNAME as P, POPOVER_HEADER_TITLE_CLASSNAME as eo, POPOVER_FOOTER_CLASSNAME as ro, POPOVER_HEADER_CLASSNAME as $ } from "./constants.js";
|
|
5
|
+
import no from "./PopoverDismissButton/PopoverDismissButton.js";
|
|
6
|
+
import to from "./PopoverTitle/PopoverTitle.js";
|
|
7
|
+
import { PopoverContainerVariant as c, PopoverContainerSize as h } from "./types.js";
|
|
8
|
+
import { InteractionKeyCode as co } from "../../types.js";
|
|
9
|
+
import { useClickOutside as io, ClickOutsideVariant as so } from "../../../hooks/element/useClickOutside.js";
|
|
10
|
+
import mo from "../../../hooks/element/useFocusTrap.js";
|
|
11
|
+
import uo from "../../../hooks/element/usePopoverPositioner.js";
|
|
12
|
+
import D from "../../../hooks/element/useUniqueIdentifier.js";
|
|
13
|
+
import { getModifierClasses as ao } from "../../../utils/class-name-utils.js";
|
|
14
|
+
import { isFunction as po } from "../../../utils/common/index.js";
|
|
15
|
+
import { SELECTORS as fo, isFocusable as lo } from "../../../utils/tabbable.js";
|
|
16
|
+
import B from "classnames";
|
|
17
|
+
import { createPortal as Oo } from "../../../external/preact/compat/dist/compat.module.js";
|
|
18
|
+
import { useMemo as k, useRef as T, useCallback as A, useEffect as Eo } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
19
|
+
import "./Popover.scss.js";
|
|
20
|
+
import Po from "../../../hooks/useReflex/hooks/useReflex.js";
|
|
21
|
+
import { Fragment as N } from "../../../external/preact/dist/preact.module.js";
|
|
22
|
+
const To = (i) => {
|
|
23
|
+
var e;
|
|
24
|
+
let a;
|
|
25
|
+
const l = (e = i.querySelector(`.${w}`)) == null ? void 0 : e.querySelectorAll(fo);
|
|
26
|
+
return l ? (Array.prototype.some.call(l, (s) => {
|
|
27
|
+
if (lo(s))
|
|
28
|
+
return a = s;
|
|
29
|
+
}), a) : null;
|
|
30
|
+
}, Ao = (i) => i === c.TOOLTIP ? [10, 3, 5, 5] : [15, 15, 15, 15];
|
|
31
|
+
function Uo({
|
|
32
|
+
actions: i,
|
|
33
|
+
disableFocusTrap: a = !1,
|
|
34
|
+
actionsLayout: l = Z.SPACE_BETWEEN,
|
|
35
|
+
variant: e = c.TOOLTIP,
|
|
36
|
+
title: s,
|
|
37
|
+
open: p,
|
|
38
|
+
dismissible: C,
|
|
39
|
+
modifiers: b,
|
|
40
|
+
divider: L,
|
|
41
|
+
fitContent: _,
|
|
42
|
+
withoutSpace: S,
|
|
43
|
+
containerSize: O,
|
|
44
|
+
position: q,
|
|
45
|
+
targetElement: n,
|
|
46
|
+
setToTargetWidth: x,
|
|
47
|
+
dismiss: r,
|
|
48
|
+
children: y,
|
|
49
|
+
withContentPadding: U,
|
|
50
|
+
classNameModifiers: K,
|
|
51
|
+
showOverlay: f = !1,
|
|
52
|
+
fitPosition: W,
|
|
53
|
+
...v
|
|
60
54
|
}) {
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
(interactionKeyPressed) => {
|
|
66
|
-
var _a;
|
|
67
|
-
dismiss && dismiss();
|
|
68
|
-
if (interactionKeyPressed) {
|
|
69
|
-
(_a = targetElement == null ? void 0 : targetElement.current) == null ? void 0 : _a.focus();
|
|
70
|
-
}
|
|
55
|
+
const R = k(() => po(r) && C !== !1, [r, C]), F = D(), I = T(), H = A(
|
|
56
|
+
(m) => {
|
|
57
|
+
var u;
|
|
58
|
+
r && r(), m && ((u = n == null ? void 0 : n.current) == null || u.focus());
|
|
71
59
|
},
|
|
72
|
-
[
|
|
73
|
-
)
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
if (e.code === InteractionKeyCode.ESCAPE) {
|
|
77
|
-
dismiss && dismiss();
|
|
78
|
-
(targetElement == null ? void 0 : targetElement.current).focus();
|
|
79
|
-
}
|
|
60
|
+
[r, n]
|
|
61
|
+
), E = A(
|
|
62
|
+
(m) => {
|
|
63
|
+
m.code === co.ESCAPE && (r && r(), (n == null ? void 0 : n.current).focus());
|
|
80
64
|
},
|
|
81
|
-
[
|
|
82
|
-
)
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
cancelAnimationFrame(autoFocusAnimFrame.current);
|
|
97
|
-
autoFocusAnimFrame.current = requestAnimationFrame(() => {
|
|
98
|
-
if (popoverOpen.current === open)
|
|
99
|
-
return;
|
|
100
|
-
if (!(popoverOpen.current = open))
|
|
101
|
-
return;
|
|
102
|
-
const focusable = findFirstFocusableElement(current);
|
|
103
|
-
focusable == null ? void 0 : focusable.focus();
|
|
104
|
-
});
|
|
105
|
-
}
|
|
65
|
+
[r, n]
|
|
66
|
+
), d = T(E), V = T(), M = io(
|
|
67
|
+
uo(Ao(e), n, e, q, F, x, f, W),
|
|
68
|
+
r,
|
|
69
|
+
e === c.TOOLTIP && !p,
|
|
70
|
+
so.POPOVER
|
|
71
|
+
), j = mo(a ? null : M, H), G = Po(
|
|
72
|
+
A(
|
|
73
|
+
(m) => {
|
|
74
|
+
m instanceof Element && (cancelAnimationFrame(V.current), V.current = requestAnimationFrame(() => {
|
|
75
|
+
if (I.current === p || !(I.current = p))
|
|
76
|
+
return;
|
|
77
|
+
const u = To(m);
|
|
78
|
+
u == null || u.focus();
|
|
79
|
+
}));
|
|
106
80
|
},
|
|
107
|
-
[
|
|
81
|
+
[p]
|
|
108
82
|
),
|
|
109
|
-
|
|
110
|
-
)
|
|
111
|
-
const popoverElementWithId = useUniqueIdentifier(popoverElement);
|
|
112
|
-
const conditionalClasses = F(
|
|
83
|
+
a ? M : j
|
|
84
|
+
), z = D(G), J = k(
|
|
113
85
|
() => ({
|
|
114
|
-
[`${
|
|
115
|
-
[`${
|
|
116
|
-
[`${
|
|
117
|
-
[`${
|
|
118
|
-
[`${
|
|
119
|
-
[`${
|
|
86
|
+
[`${t}--medium`]: O === h.MEDIUM,
|
|
87
|
+
[`${t}--with-divider`]: !!L,
|
|
88
|
+
[`${t}--wide`]: O === h.WIDE,
|
|
89
|
+
[`${t}--fit-content`]: _,
|
|
90
|
+
[`${t}--without-space`]: S,
|
|
91
|
+
[`${t}--auto-width`]: f
|
|
120
92
|
}),
|
|
121
|
-
[
|
|
93
|
+
[O, L, S, _, f]
|
|
122
94
|
);
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
const classNamesByVariant = variant === PopoverContainerVariant.TOOLTIP ? DEFAULT_TOOLTIP_CLASSNAME : `${DEFAULT_POPOVER_CLASSNAME} ${POPOVER_CONTAINER_CLASSNAME}`;
|
|
129
|
-
const classNamesContentByVariant = variant === PopoverContainerVariant.TOOLTIP ? TOOLTIP_CONTENT_CLASSNAME : `${POPOVER_CONTENT_CLASSNAME}`;
|
|
130
|
-
return z(
|
|
131
|
-
/* @__PURE__ */ o(k, { children: open ? /* @__PURE__ */ o(k, { children: [
|
|
132
|
-
showOverlay && /* @__PURE__ */ o("div", { className: "adyen-pe-popover__overlay" }),
|
|
95
|
+
Eo(() => (document.removeEventListener("keydown", d.current), document.addEventListener("keydown", d.current = E), () => document.removeEventListener("keydown", d.current)), [E]);
|
|
96
|
+
const Q = e === c.TOOLTIP ? g : `${t} ${oo}`, X = e === c.TOOLTIP ? w : `${P}`;
|
|
97
|
+
return Oo(
|
|
98
|
+
/* @__PURE__ */ o(N, { children: p ? /* @__PURE__ */ o(N, { children: [
|
|
99
|
+
f && /* @__PURE__ */ o("div", { className: "adyen-pe-popover__overlay" }),
|
|
133
100
|
/* @__PURE__ */ o(
|
|
134
101
|
"div",
|
|
135
102
|
{
|
|
136
103
|
id: "popover",
|
|
137
|
-
ref:
|
|
138
|
-
...
|
|
139
|
-
className:
|
|
104
|
+
ref: z,
|
|
105
|
+
...v,
|
|
106
|
+
className: B(Q, J, K),
|
|
140
107
|
style: { visibility: "hidden" },
|
|
141
|
-
role:
|
|
108
|
+
role: v.role ?? (e === c.POPOVER ? "dialog" : "tooltip"),
|
|
142
109
|
children: [
|
|
143
|
-
(
|
|
144
|
-
|
|
145
|
-
|
|
110
|
+
(s || R) && /* @__PURE__ */ o("div", { className: ao($, b, [$]), children: [
|
|
111
|
+
s && /* @__PURE__ */ o("div", { className: eo, children: /* @__PURE__ */ o(to, { title: s }) }),
|
|
112
|
+
R && /* @__PURE__ */ o(no, { onClick: r })
|
|
146
113
|
] }),
|
|
147
|
-
|
|
114
|
+
y && /* @__PURE__ */ o(N, { children: [
|
|
148
115
|
/* @__PURE__ */ o(
|
|
149
116
|
"div",
|
|
150
117
|
{
|
|
151
|
-
className:
|
|
152
|
-
[`${
|
|
153
|
-
[`${
|
|
118
|
+
className: B(X, {
|
|
119
|
+
[`${P}--with-padding`]: U,
|
|
120
|
+
[`${P}--overlay`]: f
|
|
154
121
|
}),
|
|
155
|
-
children
|
|
122
|
+
children: y
|
|
156
123
|
}
|
|
157
124
|
),
|
|
158
|
-
|
|
125
|
+
e === c.TOOLTIP && /* @__PURE__ */ o("span", { "data-popover-placement": "hidden", ref: F, className: "adyen-pe-tooltip__arrow" })
|
|
159
126
|
] }),
|
|
160
|
-
|
|
127
|
+
i && /* @__PURE__ */ o("div", { className: ro, children: /* @__PURE__ */ o(Y, { actions: i, layout: l }) })
|
|
161
128
|
]
|
|
162
129
|
}
|
|
163
130
|
)
|
|
@@ -166,5 +133,5 @@ function Popover({
|
|
|
166
133
|
);
|
|
167
134
|
}
|
|
168
135
|
export {
|
|
169
|
-
|
|
136
|
+
Uo as default
|
|
170
137
|
};
|
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return image ? "adyen-pe-popover-dismiss-button--on-image" : "";
|
|
13
|
-
};
|
|
14
|
-
return /* @__PURE__ */ o(k, { children: /* @__PURE__ */ o(
|
|
15
|
-
Button,
|
|
1
|
+
import { jsx as o } from "../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
+
import { ButtonVariant as n } from "../../Button/types.js";
|
|
3
|
+
import "./PopoverDismissButton.scss.js";
|
|
4
|
+
import r from "../../../../core/Context/useCoreContext.js";
|
|
5
|
+
import { memo as s } from "../../../../external/preact/compat/dist/compat.module.js";
|
|
6
|
+
import l from "../../Button/Button.js";
|
|
7
|
+
import { Fragment as m } from "../../../../external/preact/dist/preact.module.js";
|
|
8
|
+
function a({ image: t = !0, onClick: e }) {
|
|
9
|
+
const { i18n: i } = r();
|
|
10
|
+
return /* @__PURE__ */ o(m, { children: /* @__PURE__ */ o(
|
|
11
|
+
l,
|
|
16
12
|
{
|
|
17
|
-
className:
|
|
18
|
-
iconButton:
|
|
19
|
-
variant:
|
|
20
|
-
onClick,
|
|
21
|
-
"aria-label":
|
|
13
|
+
className: (() => t ? "adyen-pe-popover-dismiss-button--on-image" : "")(),
|
|
14
|
+
iconButton: !0,
|
|
15
|
+
variant: n.TERTIARY,
|
|
16
|
+
onClick: e,
|
|
17
|
+
"aria-label": i.get("closeIconLabel"),
|
|
22
18
|
children: /* @__PURE__ */ o("svg", { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none", children: [
|
|
23
19
|
/* @__PURE__ */ o("title", { children: "dismiss" }),
|
|
24
20
|
/* @__PURE__ */ o(
|
|
@@ -34,7 +30,7 @@ function PopoverDismissButton({ image = true, onClick }) {
|
|
|
34
30
|
}
|
|
35
31
|
) });
|
|
36
32
|
}
|
|
37
|
-
const
|
|
33
|
+
const L = s(a);
|
|
38
34
|
export {
|
|
39
|
-
|
|
35
|
+
L as default
|
|
40
36
|
};
|