@payfit/unity-components 2.25.4 → 2.25.6
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/esm/components/action-bar/ActionBar.js +4 -3
- package/dist/esm/components/action-bar/parts/ActionBarPrefixArea.js +1 -1
- package/dist/esm/components/actionable/Actionable.d.ts +1 -1
- package/dist/esm/components/actionable/Actionable.js +13 -14
- package/dist/esm/components/app-menu/parts/AppMenuHeader.js +1 -1
- package/dist/esm/components/autocomplete/Autocomplete.d.ts +1 -1
- package/dist/esm/components/autocomplete/Autocomplete.js +5 -5
- package/dist/esm/components/autocomplete/parts/AutocompleteClearButton.js +1 -1
- package/dist/esm/components/autocomplete/parts/AutocompleteItem.d.ts +1 -1
- package/dist/esm/components/autocomplete/parts/AutocompleteItem.js +1 -1
- package/dist/esm/components/autocomplete/parts/AutocompleteItemGroup.d.ts +1 -1
- package/dist/esm/components/autocomplete/parts/AutocompleteItemGroup.js +21 -18
- package/dist/esm/components/autocomplete/parts/AutocompletePanel.d.ts +1 -1
- package/dist/esm/components/autocomplete/parts/AutocompletePanel.js +8 -7
- package/dist/esm/components/bottom-sheet/BottomSheet.js +15 -14
- package/dist/esm/components/bottom-sheet/parts/BottomSheetDragIndicator.js +1 -1
- package/dist/esm/components/bottom-sheet/parts/BottomSheetHeader.js +1 -1
- package/dist/esm/components/breadcrumbs/Breadcrumbs.d.ts +2 -2
- package/dist/esm/components/breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/esm/components/breadcrumbs/parts/Breadcrumb.d.ts +1 -1
- package/dist/esm/components/breadcrumbs/parts/Breadcrumb.js +1 -1
- package/dist/esm/components/button/Button.d.ts +1 -1
- package/dist/esm/components/button/Button.js +1 -1
- package/dist/esm/components/card/Card.js +1 -1
- package/dist/esm/components/card/parts/CardTitle.js +1 -1
- package/dist/esm/components/carousel/hooks/useCarouselAccessibility.js +1 -1
- package/dist/esm/components/checkbox/Checkbox.d.ts +1 -1
- package/dist/esm/components/checkbox/Checkbox.js +4 -4
- package/dist/esm/components/checkbox/CheckboxStandalone.d.ts +1 -1
- package/dist/esm/components/checkbox/CheckboxStandalone.js +4 -4
- package/dist/esm/components/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/dist/esm/components/checkbox-group/CheckboxGroup.js +1 -1
- package/dist/esm/components/client-side-pagination/ClientSidePagination.js +2 -2
- package/dist/esm/components/client-side-pagination/parts/PaginationEllipsis.d.ts +1 -1
- package/dist/esm/components/client-side-pagination/parts/PaginationEllipsis.js +1 -1
- package/dist/esm/components/client-side-pagination/parts/PaginationJumpDialog.d.ts +1 -1
- package/dist/esm/components/client-side-pagination/parts/PaginationJumpDialog.js +15 -13
- package/dist/esm/components/client-side-pagination/parts/RawPaginationLink.d.ts +1 -1
- package/dist/esm/components/client-side-pagination/parts/RawPaginationLink.js +1 -1
- package/dist/esm/components/collapsible/Collapsible.d.ts +1 -1
- package/dist/esm/components/collapsible/Collapsible.js +1 -1
- package/dist/esm/components/collapsible/parts/CollapsibleContent.js +1 -1
- package/dist/esm/components/collapsible/parts/CollapsibleTitle.js +11 -9
- package/dist/esm/components/data-table/DataTable.js +1 -1
- package/dist/esm/components/date-calendar/DateCalendar.d.ts +1 -1
- package/dist/esm/components/date-calendar/DateCalendar.js +1 -1
- package/dist/esm/components/date-calendar/hooks/useMonthsList.js +1 -1
- package/dist/esm/components/date-calendar/hooks/useYearsList.js +1 -1
- package/dist/esm/components/date-calendar/parts/DateSegmentSelect.js +1 -1
- package/dist/esm/components/date-picker/DatePicker.d.ts +1 -1
- package/dist/esm/components/date-picker/DatePicker.js +2 -1
- package/dist/esm/components/date-picker/parts/DateInput.d.ts +1 -1
- package/dist/esm/components/date-picker/parts/DateInput.js +1 -1
- package/dist/esm/components/date-range-calendar/DateRangeCalendar.d.ts +1 -1
- package/dist/esm/components/date-range-calendar/DateRangeCalendar.js +4 -3
- package/dist/esm/components/date-range-picker/DateRangePicker.d.ts +1 -1
- package/dist/esm/components/date-range-picker/DateRangePicker.js +2 -1
- package/dist/esm/components/date-range-picker/parts/DateRangeInput.js +1 -1
- package/dist/esm/components/definition-tooltip/DefinitionTooltip.js +1 -1
- package/dist/esm/components/dialog/Dialog.d.ts +1 -1
- package/dist/esm/components/dialog/Dialog.js +12 -11
- package/dist/esm/components/dialog/parts/DialogActions/DialogButton.js +1 -1
- package/dist/esm/components/dialog/parts/DialogContent.js +5 -4
- package/dist/esm/components/dialog/parts/DialogTitle.js +1 -1
- package/dist/esm/components/error-state/parts/Collapsible.js +9 -8
- package/dist/esm/components/fieldset/Fieldset.js +1 -1
- package/dist/esm/components/filter/Filter.controls.d.ts +1 -1
- package/dist/esm/components/filter/Filter.js +1 -1
- package/dist/esm/components/filter/hooks/useFilterIds.js +1 -1
- package/dist/esm/components/filter/parts/FilterPopover.js +11 -9
- package/dist/esm/components/filter-toolbar/FilterToolbar.js +11 -10
- package/dist/esm/components/filter-toolbar/parts/AddFilter.d.ts +1 -1
- package/dist/esm/components/filter-toolbar/parts/AddFilter.js +18 -15
- package/dist/esm/components/filter-toolbar/parts/AddFilterItem.d.ts +1 -1
- package/dist/esm/components/filter-toolbar/parts/AddFilterItem.js +1 -1
- package/dist/esm/components/floating-action-bar/FloatingActionBar.js +1 -1
- package/dist/esm/components/form/Form.d.ts +1 -1
- package/dist/esm/components/form-field/parts/FormControl.js +1 -1
- package/dist/esm/components/form-field/parts/RawFormContextualLink.js +1 -1
- package/dist/esm/components/form-field/parts/TanstackRawFormContextualLink.d.ts +1 -1
- package/dist/esm/components/form-field/parts/TanstackRawFormContextualLink.js +1 -1
- package/dist/esm/components/full-page-loader/FullPageLoader.js +1 -1
- package/dist/esm/components/funnel-layout/FunnelLayout.js +1 -1
- package/dist/esm/components/funnel-layout/parts/FunnelProgressBar.js +1 -1
- package/dist/esm/components/icon-button/CircularIconButton.d.ts +1 -1
- package/dist/esm/components/icon-button/CircularIconButton.js +6 -5
- package/dist/esm/components/icon-button/IconButton.d.ts +1 -1
- package/dist/esm/components/icon-button/IconButton.js +1 -1
- package/dist/esm/components/inline-field/parts/InlineFieldEditView.js +15 -14
- package/dist/esm/components/inline-field-group/InlineFieldGroup.js +15 -13
- package/dist/esm/components/input/Input.d.ts +1 -1
- package/dist/esm/components/input/Input.js +1 -1
- package/dist/esm/components/label/Label.d.ts +1 -1
- package/dist/esm/components/label/Label.js +15 -13
- package/dist/esm/components/link/RawLink.d.ts +1 -1
- package/dist/esm/components/link/RawLink.js +1 -1
- package/dist/esm/components/link-button/RawLinkButton.d.ts +1 -1
- package/dist/esm/components/link-button/RawLinkButton.js +1 -1
- package/dist/esm/components/list-view/ListView.d.ts +1 -1
- package/dist/esm/components/list-view/ListView.js +8 -7
- package/dist/esm/components/list-view/parts/ListViewSection.d.ts +1 -1
- package/dist/esm/components/list-view/parts/ListViewSection.js +14 -12
- package/dist/esm/components/list-view/parts/RawListViewItem.d.ts +1 -1
- package/dist/esm/components/list-view/parts/RawListViewItem.js +1 -1
- package/dist/esm/components/menu/Menu.d.ts +1 -1
- package/dist/esm/components/menu/Menu.js +1 -1
- package/dist/esm/components/menu/parts/MenuContent.d.ts +1 -1
- package/dist/esm/components/menu/parts/MenuContent.js +1 -1
- package/dist/esm/components/menu/parts/MenuHeader.js +5 -4
- package/dist/esm/components/menu/parts/MenuSeparator.js +1 -1
- package/dist/esm/components/menu/parts/MenuTrigger.js +1 -1
- package/dist/esm/components/menu/parts/RawMenuItem.d.ts +1 -1
- package/dist/esm/components/menu/parts/RawMenuItem.js +1 -1
- package/dist/esm/components/multi-select/hooks/use-combobox-filter.js +1 -1
- package/dist/esm/components/multi-select/parts/MultiSelectButton.js +1 -1
- package/dist/esm/components/nav/parts/NavGroup.js +1 -1
- package/dist/esm/components/nav/parts/RawNavItem.d.ts +1 -1
- package/dist/esm/components/nav/parts/RawNavItem.js +3 -2
- package/dist/esm/components/navigation-card/NavigationCard.js +9 -8
- package/dist/esm/components/navigation-card/NavigationCard.types.d.ts +2 -1
- package/dist/esm/components/navigation-card/parts/NavigationCardGroup.js +1 -1
- package/dist/esm/components/number-input/NumberInput.d.ts +1 -1
- package/dist/esm/components/number-input/NumberInput.js +6 -4
- package/dist/esm/components/pagination/Pagination.js +2 -2
- package/dist/esm/components/pagination/parts/PaginationEllipsis.d.ts +1 -1
- package/dist/esm/components/pagination/parts/PaginationEllipsis.js +1 -1
- package/dist/esm/components/pagination/parts/RawPaginationLink.d.ts +1 -1
- package/dist/esm/components/pagination/parts/RawPaginationLink.js +1 -1
- package/dist/esm/components/pagination/parts/RawPaginationNext.d.ts +1 -1
- package/dist/esm/components/pagination/parts/RawPaginationNext.js +1 -1
- package/dist/esm/components/pagination/parts/RawPaginationPrevious.d.ts +1 -1
- package/dist/esm/components/pagination/parts/RawPaginationPrevious.js +1 -1
- package/dist/esm/components/password-field/parts/PasswordInput.d.ts +1 -1
- package/dist/esm/components/password-field/parts/PasswordInput.js +1 -1
- package/dist/esm/components/phone-number/PhoneNumberInput.d.ts +1 -1
- package/dist/esm/components/phone-number/PhoneNumberInput.js +17 -10
- package/dist/esm/components/phone-number/parts/PhoneNumberItem.d.ts +1 -1
- package/dist/esm/components/phone-number/parts/PhoneNumberItem.js +1 -1
- package/dist/esm/components/popover/Popover.d.ts +2 -1
- package/dist/esm/components/popover/Popover.js +9 -8
- package/dist/esm/components/popover/parts/PopoverHeader.d.ts +1 -1
- package/dist/esm/components/popover/parts/PopoverHeader.js +2 -1
- package/dist/esm/components/progress-bar/ProgressBar.js +1 -1
- package/dist/esm/components/promo-dialog/PromoDialog.js +8 -7
- package/dist/esm/components/promo-dialog/parts/PromoDialogTitle.js +1 -1
- package/dist/esm/components/radio-button-group/RadioButtonGroup.d.ts +1 -1
- package/dist/esm/components/radio-button-group/RadioButtonGroup.js +1 -1
- package/dist/esm/components/radio-button-group/parts/RadioButton.d.ts +1 -1
- package/dist/esm/components/radio-button-group/parts/RadioButton.js +1 -1
- package/dist/esm/components/search/Search.d.ts +1 -1
- package/dist/esm/components/search/Search.js +5 -3
- package/dist/esm/components/segmented-button-group/SegmentedButtonGroup.d.ts +1 -1
- package/dist/esm/components/segmented-button-group/SegmentedButtonGroup.js +2 -2
- package/dist/esm/components/segmented-button-group/SegmentedButtonGroups.context.d.ts +1 -1
- package/dist/esm/components/segmented-button-group/parts/ToggleButton.d.ts +1 -1
- package/dist/esm/components/segmented-button-group/parts/ToggleButton.js +24 -21
- package/dist/esm/components/select/Select.d.ts +1 -1
- package/dist/esm/components/select/Select.js +18 -16
- package/dist/esm/components/select/parts/SearchInput.js +8 -7
- package/dist/esm/components/select/parts/SelectButton.js +2 -1
- package/dist/esm/components/select/parts/SelectOption.d.ts +1 -1
- package/dist/esm/components/select/parts/SelectOption.js +1 -1
- package/dist/esm/components/select/parts/SelectOptionGroup.d.ts +1 -1
- package/dist/esm/components/select/parts/SelectOptionGroup.js +17 -14
- package/dist/esm/components/select-list/SelectList.d.ts +1 -1
- package/dist/esm/components/select-list/SelectList.js +12 -9
- package/dist/esm/components/select-list/SelectList.types.d.ts +1 -1
- package/dist/esm/components/select-list/constants.d.ts +1 -1
- package/dist/esm/components/select-list/constants.js +1 -1
- package/dist/esm/components/select-list/helpers.d.ts +1 -1
- package/dist/esm/components/select-list/hooks/useControlledSelection.d.ts +2 -1
- package/dist/esm/components/select-list/hooks/useSelectedFirstSorting.d.ts +1 -1
- package/dist/esm/components/select-list/parts/SelectListOptGroup.d.ts +1 -1
- package/dist/esm/components/select-list/parts/SelectListOptGroup.js +18 -15
- package/dist/esm/components/select-list/parts/SelectListOption.d.ts +1 -1
- package/dist/esm/components/select-list/parts/SelectListOption.js +1 -1
- package/dist/esm/components/select-list/parts/SelectListSearchInput.js +11 -10
- package/dist/esm/components/select-list/parts/SelectedItemsSection.d.ts +2 -1
- package/dist/esm/components/select-list/parts/SelectedItemsSection.js +1 -1
- package/dist/esm/components/selectable-button-group/SelectableButtonGroup.context.d.ts +1 -1
- package/dist/esm/components/selectable-button-group/SelectableButtonGroup.d.ts +1 -1
- package/dist/esm/components/selectable-button-group/SelectableButtonGroup.js +2 -2
- package/dist/esm/components/selectable-button-group/parts/SelectableButton.d.ts +2 -2
- package/dist/esm/components/selectable-button-group/parts/SelectableButton.js +1 -1
- package/dist/esm/components/selectable-card/selectable-card-checkbox-group/SelectableCardCheckboxGroup.d.ts +1 -1
- package/dist/esm/components/selectable-card/selectable-card-checkbox-group/SelectableCardCheckboxGroup.js +1 -1
- package/dist/esm/components/selectable-card/selectable-card-checkbox-group/parts/SelectableCardCheckbox.d.ts +1 -1
- package/dist/esm/components/selectable-card/selectable-card-checkbox-group/parts/SelectableCardCheckbox.js +4 -4
- package/dist/esm/components/selectable-card/selectable-card-radio-group/SelectableCardRadioGroup.d.ts +1 -1
- package/dist/esm/components/selectable-card/selectable-card-radio-group/SelectableCardRadioGroup.js +1 -1
- package/dist/esm/components/selectable-card/selectable-card-radio-group/parts/SelectableCardRadio.d.ts +1 -1
- package/dist/esm/components/selectable-card/selectable-card-radio-group/parts/SelectableCardRadio.js +1 -1
- package/dist/esm/components/side-panel/SidePanel.js +6 -5
- package/dist/esm/components/side-panel/parts/SidePanelDragIndicator.js +1 -1
- package/dist/esm/components/side-panel/parts/SidePanelHeader.js +1 -1
- package/dist/esm/components/skip-links/SkipLinks.js +1 -1
- package/dist/esm/components/table/parts/TablePagination.js +1 -1
- package/dist/esm/components/tabs/Tabs.d.ts +1 -1
- package/dist/esm/components/tabs/Tabs.js +1 -1
- package/dist/esm/components/tabs/parts/NavigationButton.d.ts +1 -1
- package/dist/esm/components/tabs/parts/NavigationButton.js +1 -1
- package/dist/esm/components/tabs/parts/RawTab.d.ts +1 -1
- package/dist/esm/components/tabs/parts/RawTab.js +1 -1
- package/dist/esm/components/tabs/parts/TabList.js +1 -1
- package/dist/esm/components/tabs/parts/TabPanel.d.ts +1 -1
- package/dist/esm/components/tabs/parts/TabPanel.js +1 -1
- package/dist/esm/components/task-menu/TaskMenu.context.d.ts +2 -2
- package/dist/esm/components/task-menu/TaskMenu.context.js +16 -15
- package/dist/esm/components/task-menu/parts/Content.js +17 -15
- package/dist/esm/components/task-menu/parts/RawSubTask.js +16 -15
- package/dist/esm/components/task-menu/parts/RawTask.d.ts +1 -1
- package/dist/esm/components/task-menu/parts/RawTask.js +22 -21
- package/dist/esm/components/task-menu/parts/TaskGroup.js +4 -4
- package/dist/esm/components/text-area/TextArea.d.ts +1 -1
- package/dist/esm/components/text-area/TextArea.js +1 -1
- package/dist/esm/components/timeline/Timeline.js +1 -1
- package/dist/esm/components/toggle-switch/ToggleSwitch.d.ts +1 -1
- package/dist/esm/components/toggle-switch/ToggleSwitch.js +1 -1
- package/dist/esm/components/tooltip/Tooltip.js +8 -7
- package/dist/esm/hooks/use-async-list.d.ts +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/integrations/tanstack-router/components/tabs/parts/TabPanel.js +1 -1
- package/package.json +7 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX, Ref } from 'react';
|
|
2
|
-
import { ListBoxSectionProps } from 'react-aria-components';
|
|
2
|
+
import { ListBoxSectionProps } from 'react-aria-components/ListBox';
|
|
3
3
|
export declare const listViewSection: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "", {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, "", unknown, unknown, undefined>>;
|
|
4
4
|
export type ListViewSectionProps<TItem extends object> = ListBoxSectionProps<TItem> & {
|
|
5
5
|
title: string;
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import { jsxs as s, jsx as
|
|
1
|
+
import { jsxs as s, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as c } from "react";
|
|
3
3
|
import { uyTv as m } from "@payfit/unity-themes";
|
|
4
|
-
import {
|
|
5
|
-
|
|
4
|
+
import { Collection as a } from "react-aria-components/Collection";
|
|
5
|
+
import { Header as l } from "react-aria-components/Header";
|
|
6
|
+
import { ListBoxSection as p } from "react-aria-components/ListBox";
|
|
7
|
+
const V = m({
|
|
6
8
|
// add the component styles
|
|
7
9
|
base: ""
|
|
8
|
-
}), y = (
|
|
9
|
-
const { children:
|
|
10
|
-
return /* @__PURE__ */ s(
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */
|
|
10
|
+
}), y = (o, e) => {
|
|
11
|
+
const { children: r, title: n, ...t } = o;
|
|
12
|
+
return /* @__PURE__ */ s(p, { ...t, ref: e, "data-unity-slot": "ListViewSection", children: [
|
|
13
|
+
/* @__PURE__ */ i(l, { className: "uy:typography-action uy:text-content-neutral-low uy:px-200 uy:mb-50", children: n }),
|
|
14
|
+
/* @__PURE__ */ i(a, { children: r, items: t.items })
|
|
13
15
|
] });
|
|
14
|
-
},
|
|
16
|
+
}, f = c(
|
|
15
17
|
y
|
|
16
18
|
);
|
|
17
|
-
|
|
19
|
+
f.displayName = "ListViewSection";
|
|
18
20
|
export {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
f as ListViewSection,
|
|
22
|
+
V as listViewSection
|
|
21
23
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX, ReactNode, Ref } from 'react';
|
|
2
|
-
import { ListBoxItemProps } from 'react-aria-components';
|
|
2
|
+
import { ListBoxItemProps } from 'react-aria-components/ListBox';
|
|
3
3
|
export declare const listViewItem: import('tailwind-variants').TVReturnType<{
|
|
4
4
|
[key: string]: {
|
|
5
5
|
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
@@ -2,7 +2,7 @@ import { jsx as i, jsxs as l } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as g, useRef as w, useLayoutEffect as x } from "react";
|
|
3
3
|
import { Icon as v } from "@payfit/unity-icons";
|
|
4
4
|
import { uyTv as h } from "@payfit/unity-themes";
|
|
5
|
-
import { ListBoxItem as I } from "react-aria-components";
|
|
5
|
+
import { ListBoxItem as I } from "react-aria-components/ListBox";
|
|
6
6
|
const L = h({
|
|
7
7
|
// add the component styles
|
|
8
8
|
slots: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MenuTriggerProps } from 'react-aria-components';
|
|
1
|
+
import { MenuTriggerProps } from 'react-aria-components/Menu';
|
|
2
2
|
type MenuProps = Omit<MenuTriggerProps, 'className' | 'style'>;
|
|
3
3
|
export declare function Menu({ defaultOpen, children, ...rest }: MenuProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare namespace Menu {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { MenuTrigger as i } from "react-aria-components";
|
|
2
|
+
import { MenuTrigger as i } from "react-aria-components/Menu";
|
|
3
3
|
function m({ defaultOpen: r, children: e, ...n }) {
|
|
4
4
|
return /* @__PURE__ */ o(i, { defaultOpen: r, ...n, children: e });
|
|
5
5
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
1
|
+
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Header as a } from "react-aria-components/Header";
|
|
3
|
+
import { MenuSection as n } from "react-aria-components/Menu";
|
|
3
4
|
import { MenuSeparator as t } from "./MenuSeparator.js";
|
|
4
5
|
function i({
|
|
5
6
|
children: r,
|
|
6
7
|
className: o
|
|
7
8
|
}) {
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */ e(
|
|
9
|
+
return /* @__PURE__ */ m(n, { children: [
|
|
10
|
+
/* @__PURE__ */ e(a, { className: `uy:p-100 ${o}`, children: r }),
|
|
10
11
|
/* @__PURE__ */ e(t, {})
|
|
11
12
|
] });
|
|
12
13
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { Separator as a } from "react-aria-components";
|
|
2
|
+
import { Separator as a } from "react-aria-components/Separator";
|
|
3
3
|
function e() {
|
|
4
4
|
return /* @__PURE__ */ r(a, { className: "uy:h-[1px] uy:bg-surface-neutral-lowest uy:w-full uy:mt-100 uy:mb-100" });
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
-
import { MenuItemProps as MenuItemAriaComponentProps } from 'react-aria-components';
|
|
2
|
+
import { MenuItemProps as MenuItemAriaComponentProps } from 'react-aria-components/Menu';
|
|
3
3
|
import { DataAttributes } from '../../../types/DataAttributes.js';
|
|
4
4
|
export interface MenuItemProps extends DataAttributes {
|
|
5
5
|
children?: MenuItemAriaComponentProps['children'];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as s, jsx as y } from "react/jsx-runtime";
|
|
2
2
|
import { uyMerge as i } from "@payfit/unity-themes";
|
|
3
|
-
import { MenuItem as l } from "react-aria-components";
|
|
3
|
+
import { MenuItem as l } from "react-aria-components/Menu";
|
|
4
4
|
function c({
|
|
5
5
|
prefix: e,
|
|
6
6
|
children: u,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState as m, useMemo as l, startTransition as y } from "react";
|
|
2
|
-
import { useFilter as b } from "react-aria-components";
|
|
2
|
+
import { useFilter as b } from "react-aria-components/Autocomplete";
|
|
3
3
|
function p({
|
|
4
4
|
items: e = [],
|
|
5
5
|
extractSearchableText: s = (t) => [String(t)],
|
|
@@ -2,7 +2,7 @@ import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { memo as D, forwardRef as k, useContext as A, useMemo as K } from "react";
|
|
3
3
|
import { useSelectContext as R, useStoreState as $, Select as L } from "@ariakit/react";
|
|
4
4
|
import { uyTv as P } from "@payfit/unity-themes";
|
|
5
|
-
import { useId as T } from "react-aria";
|
|
5
|
+
import { useId as T } from "react-aria/useId";
|
|
6
6
|
import { useIntl as U } from "react-intl";
|
|
7
7
|
import { Badge as W } from "../../badge/Badge.js";
|
|
8
8
|
import { CircularIconButton as q } from "../../icon-button/CircularIconButton.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import o, { useState as j, useCallback as B, useMemo as D } from "react";
|
|
3
3
|
import { uyTv as S } from "@payfit/unity-themes";
|
|
4
|
-
import { Button as _ } from "react-aria-components";
|
|
4
|
+
import { Button as _ } from "react-aria-components/Button";
|
|
5
5
|
import $ from "../../../hooks/use-id.js";
|
|
6
6
|
import { Icon as k } from "../../icon/Icon.js";
|
|
7
7
|
import { navItemBase as z } from "./RawNavItem.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from '@payfit/unity-themes';
|
|
2
2
|
import { PropsWithChildren, ReactNode } from 'react';
|
|
3
|
-
import { ButtonProps as AriaButtonProps } from 'react-aria-components';
|
|
3
|
+
import { ButtonProps as AriaButtonProps } from 'react-aria-components/Button';
|
|
4
4
|
import { DataAttributes } from '../../../types/DataAttributes.js';
|
|
5
5
|
export declare const navItemBase: import('tailwind-variants').TVReturnType<{
|
|
6
6
|
level: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as u, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as C, useMemo as I } from "react";
|
|
3
3
|
import { uyTv as i, uyMerge as j } from "@payfit/unity-themes";
|
|
4
|
-
import {
|
|
4
|
+
import { Button as R } from "react-aria-components/Button";
|
|
5
|
+
import { Link as A } from "react-aria-components/Link";
|
|
5
6
|
import { useRouter as k } from "../../../providers/router/RouterProvider.js";
|
|
6
7
|
const B = i({
|
|
7
8
|
slots: {
|
|
@@ -58,7 +59,7 @@ const B = i({
|
|
|
58
59
|
isExact: p = !1,
|
|
59
60
|
...m
|
|
60
61
|
}, d) => {
|
|
61
|
-
const o = k(), b = t ?
|
|
62
|
+
const o = k(), b = t ? A : R, e = o && t ? o.isActive(t, p) : f, {
|
|
62
63
|
rawNavItemClassName: v,
|
|
63
64
|
labelClassName: x,
|
|
64
65
|
prefixClassName: g,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as r, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as C, useMemo as P } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { Link as w
|
|
3
|
+
import { Button as $ } from "react-aria-components/Button";
|
|
4
|
+
import { Link as w } from "react-aria-components/Link";
|
|
5
|
+
import { useId as I } from "react-aria/useId";
|
|
5
6
|
import { processPaddingProp as R } from "../../utils/spacing.js";
|
|
6
7
|
import { NavigationCardContext as j } from "./NavigationCard.context.js";
|
|
7
8
|
import { navigationCard as L } from "./NavigationCard.variants.js";
|
|
@@ -10,14 +11,14 @@ const k = C(
|
|
|
10
11
|
children: m,
|
|
11
12
|
asElement: f = "a",
|
|
12
13
|
prefix: t,
|
|
13
|
-
suffix:
|
|
14
|
-
padding:
|
|
14
|
+
suffix: o,
|
|
15
|
+
padding: d = "$300",
|
|
15
16
|
paddingBlock: n,
|
|
16
17
|
paddingInline: s,
|
|
17
18
|
gap: c = "$150",
|
|
18
19
|
...i
|
|
19
20
|
}, b) => {
|
|
20
|
-
const e =
|
|
21
|
+
const e = I(), l = f === "a" || "href" in i, v = i, a = {
|
|
21
22
|
id: `unity-navigation-card-${e}`,
|
|
22
23
|
labelId: i["aria-labelledby"] ?? `unity-navigation-card-label-${e}`,
|
|
23
24
|
descriptionId: i["aria-describedby"] ?? `unity-navigation-card-description-${e}`
|
|
@@ -28,7 +29,7 @@ const k = C(
|
|
|
28
29
|
suffix: x
|
|
29
30
|
} = P(() => {
|
|
30
31
|
const g = R(
|
|
31
|
-
|
|
32
|
+
d,
|
|
32
33
|
n,
|
|
33
34
|
s
|
|
34
35
|
);
|
|
@@ -36,7 +37,7 @@ const k = C(
|
|
|
36
37
|
...g,
|
|
37
38
|
gap: c
|
|
38
39
|
});
|
|
39
|
-
}, [
|
|
40
|
+
}, [d, n, s, c]), N = l ? w : $;
|
|
40
41
|
return /* @__PURE__ */ r(j.Provider, { value: a, children: /* @__PURE__ */ h(
|
|
41
42
|
N,
|
|
42
43
|
{
|
|
@@ -50,7 +51,7 @@ const k = C(
|
|
|
50
51
|
children: [
|
|
51
52
|
t && /* @__PURE__ */ r("div", { className: u(), children: t }),
|
|
52
53
|
/* @__PURE__ */ r("div", { className: p(), children: m }),
|
|
53
|
-
|
|
54
|
+
o && /* @__PURE__ */ r("div", { className: x(), children: o })
|
|
54
55
|
]
|
|
55
56
|
}
|
|
56
57
|
) });
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { ButtonProps as AriaButtonProps
|
|
2
|
+
import { ButtonProps as AriaButtonProps } from 'react-aria-components/Button';
|
|
3
|
+
import { LinkProps as AriaLinkProps } from 'react-aria-components/Link';
|
|
3
4
|
import { PaddingObject, SpacingToken } from '../../utils/spacing.js';
|
|
4
5
|
type NavigationCardAsLinkProps = Omit<AriaLinkProps, 'style' | 'className'>;
|
|
5
6
|
type NavigationCardAsButtonProps = Omit<AriaButtonProps, 'style' | 'className'>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as N, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import i, { forwardRef as w } from "react";
|
|
3
3
|
import { uyTv as C } from "@payfit/unity-themes";
|
|
4
|
-
import { useId as I } from "react-aria";
|
|
4
|
+
import { useId as I } from "react-aria/useId";
|
|
5
5
|
const L = C({
|
|
6
6
|
// add the component styles
|
|
7
7
|
slots: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from '@payfit/unity-themes';
|
|
2
2
|
import { ReactElement } from 'react';
|
|
3
|
-
import { NumberFieldProps } from 'react-aria-components';
|
|
3
|
+
import { NumberFieldProps } from 'react-aria-components/NumberField';
|
|
4
4
|
export declare const numberInput: import('tailwind-variants').TVReturnType<{
|
|
5
5
|
isReadOnly: {
|
|
6
6
|
true: {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as k } from "react";
|
|
3
3
|
import { uyTv as z } from "@payfit/unity-themes";
|
|
4
|
-
import {
|
|
4
|
+
import { Group as F } from "react-aria-components/Group";
|
|
5
|
+
import { Input as G } from "react-aria-components/Input";
|
|
6
|
+
import { NumberField as T } from "react-aria-components/NumberField";
|
|
5
7
|
import { Icon as W } from "../icon/Icon.js";
|
|
6
8
|
import "@payfit/unity-icons";
|
|
7
9
|
import { useIntl as q } from "react-intl";
|
|
@@ -112,7 +114,7 @@ const H = z({
|
|
|
112
114
|
controls: S
|
|
113
115
|
} = H({ isReadOnly: a }), o = q(), B = e !== void 0 && !isNaN(e), D = u !== void 0 && !isNaN(u), P = (B || D) && !i && !d && !a && !y;
|
|
114
116
|
return /* @__PURE__ */ t(
|
|
115
|
-
|
|
117
|
+
T,
|
|
116
118
|
{
|
|
117
119
|
ref: c,
|
|
118
120
|
className: M(),
|
|
@@ -132,8 +134,8 @@ const H = z({
|
|
|
132
134
|
...N,
|
|
133
135
|
children: [
|
|
134
136
|
f ? /* @__PURE__ */ r("span", { className: j(), children: f }) : null,
|
|
135
|
-
/* @__PURE__ */ t(
|
|
136
|
-
/* @__PURE__ */ r(
|
|
137
|
+
/* @__PURE__ */ t(F, { className: I(), children: [
|
|
138
|
+
/* @__PURE__ */ r(G, { ref: c, className: C() }),
|
|
137
139
|
/* @__PURE__ */ t("div", { className: O(), children: [
|
|
138
140
|
d && /* @__PURE__ */ r(
|
|
139
141
|
A,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as r, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as k, useRef as x, useCallback as f } from "react";
|
|
3
3
|
import { uyTv as D } from "@payfit/unity-themes";
|
|
4
|
-
import { useId as L } from "react-aria";
|
|
4
|
+
import { useId as L } from "react-aria/useId";
|
|
5
5
|
import { useIntl as A } from "react-intl";
|
|
6
|
-
import { useOverlayTriggerState as I } from "react-stately";
|
|
6
|
+
import { useOverlayTriggerState as I } from "react-stately/useOverlayTriggerState";
|
|
7
7
|
import { PaginationJumpDialog as T } from "../client-side-pagination/parts/PaginationJumpDialog.js";
|
|
8
8
|
import { PaginationContext as R } from "./PaginationContext.js";
|
|
9
9
|
const g = D({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from '@payfit/unity-themes';
|
|
2
|
-
import { ButtonProps } from 'react-aria-components';
|
|
2
|
+
import { ButtonProps } from 'react-aria-components/Button';
|
|
3
3
|
declare const paginationEllipsis: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, string[], unknown, unknown, undefined>>;
|
|
4
4
|
export interface PaginationEllipsisProps extends VariantProps<typeof paginationEllipsis>, Omit<ButtonProps, 'value' | 'children' | 'className' | 'style' | 'slot'> {
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as a, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as r } from "react";
|
|
3
3
|
import { uyTv as y } from "@payfit/unity-themes";
|
|
4
|
-
import { Button as c } from "react-aria-components";
|
|
4
|
+
import { Button as c } from "react-aria-components/Button";
|
|
5
5
|
import { useIntl as p, FormattedMessage as f } from "react-intl";
|
|
6
6
|
const m = y({
|
|
7
7
|
base: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from '@payfit/unity-themes';
|
|
2
|
-
import { LinkProps } from 'react-aria-components';
|
|
2
|
+
import { LinkProps } from 'react-aria-components/Link';
|
|
3
3
|
export declare const paginationLink: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, string[], unknown, unknown, undefined>>;
|
|
4
4
|
export interface PaginationLinkProps extends LinkProps, VariantProps<typeof paginationLink> {
|
|
5
5
|
value: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as w, useRef as h, useCallback as u } from "react";
|
|
3
3
|
import { uyTv as v } from "@payfit/unity-themes";
|
|
4
|
-
import { Link as x } from "react-aria-components";
|
|
4
|
+
import { Link as x } from "react-aria-components/Link";
|
|
5
5
|
import { useIntl as P } from "react-intl";
|
|
6
6
|
import { usePaginationContext as k } from "../PaginationContext.js";
|
|
7
7
|
const R = v({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from '@payfit/unity-themes';
|
|
2
|
-
import { LinkProps } from 'react-aria-components';
|
|
2
|
+
import { LinkProps } from 'react-aria-components/Link';
|
|
3
3
|
declare const paginationNavButton: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, string[], unknown, unknown, undefined>>;
|
|
4
4
|
export interface RawPaginationNextProps extends Omit<LinkProps, 'children' | 'className' | 'style' | 'isDisabled' | 'aria-label' | 'title'>, VariantProps<typeof paginationNavButton> {
|
|
5
5
|
id?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as g } from "react";
|
|
3
3
|
import { uyTv as b } from "@payfit/unity-themes";
|
|
4
|
-
import { Link as x } from "react-aria-components";
|
|
4
|
+
import { Link as x } from "react-aria-components/Link";
|
|
5
5
|
import { useIntl as v } from "react-intl";
|
|
6
6
|
import { Icon as w } from "../../icon/Icon.js";
|
|
7
7
|
import { Tooltip as h } from "../../tooltip/Tooltip.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from '@payfit/unity-themes';
|
|
2
|
-
import { LinkProps } from 'react-aria-components';
|
|
2
|
+
import { LinkProps } from 'react-aria-components/Link';
|
|
3
3
|
declare const paginationNavButton: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, string[], unknown, unknown, undefined>>;
|
|
4
4
|
export interface RawPaginationPreviousProps extends Omit<LinkProps, 'children' | 'className' | 'style' | 'isDisabled' | 'aria-label' | 'title'>, VariantProps<typeof paginationNavButton> {
|
|
5
5
|
id?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as m } from "react";
|
|
3
3
|
import { uyTv as g } from "@payfit/unity-themes";
|
|
4
|
-
import { Link as v } from "react-aria-components";
|
|
4
|
+
import { Link as v } from "react-aria-components/Link";
|
|
5
5
|
import { useIntl as b } from "react-intl";
|
|
6
6
|
import { Icon as w } from "../../icon/Icon.js";
|
|
7
7
|
import { Tooltip as h } from "../../tooltip/Tooltip.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InputProps as AriaInputProps } from 'react-aria-components';
|
|
1
|
+
import { InputProps as AriaInputProps } from 'react-aria-components/Input';
|
|
2
2
|
export interface PasswordInputProps extends Omit<AriaInputProps, 'type' | 'style' | 'className'> {
|
|
3
3
|
/** Whether the field is required */
|
|
4
4
|
isRequired?: boolean;
|
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as p } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as P, useState as m, useEffect as V } from "react";
|
|
3
3
|
import { Icon as b } from "@payfit/unity-icons";
|
|
4
4
|
import { uyTv as A } from "@payfit/unity-themes";
|
|
5
|
-
import { Input as B } from "react-aria-components";
|
|
5
|
+
import { Input as B } from "react-aria-components/Input";
|
|
6
6
|
import { useIntl as E } from "react-intl";
|
|
7
7
|
import { Actionable as T } from "../../actionable/Actionable.js";
|
|
8
8
|
import { useFieldA11yContext as j } from "../../form-field/TanstackFormField.context.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InputProps as AriaInputProps } from 'react-aria-components';
|
|
1
|
+
import { InputProps as AriaInputProps } from 'react-aria-components/Input';
|
|
2
2
|
import { CountryIso2, PhoneInputProps } from 'react-international-phone';
|
|
3
3
|
/**
|
|
4
4
|
* Interface for the PhoneNumberInput component props.
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as J, useState as K, useRef as Q, useImperativeHandle as X } from "react";
|
|
3
3
|
import { uyTv as Y } from "@payfit/unity-themes";
|
|
4
|
-
import { useFilter as Z,
|
|
4
|
+
import { useFilter as Z, Autocomplete as _ } from "react-aria-components/Autocomplete";
|
|
5
|
+
import { Button as ee } from "react-aria-components/Button";
|
|
6
|
+
import { Group as re } from "react-aria-components/Group";
|
|
7
|
+
import { Input as te } from "react-aria-components/Input";
|
|
8
|
+
import { ListBox as ae } from "react-aria-components/ListBox";
|
|
9
|
+
import { Popover as oe } from "react-aria-components/Popover";
|
|
10
|
+
import { Select as ue } from "react-aria-components/Select";
|
|
11
|
+
import { Virtualizer as de, ListLayout as ne } from "react-aria-components/Virtualizer";
|
|
5
12
|
import { defaultCountries as f, usePhoneInput as ie, FlagImage as le, parseCountry as se } from "react-international-phone";
|
|
6
13
|
import { useIntl as ye } from "react-intl";
|
|
7
14
|
import { CircularIconButton as ce } from "../icon-button/CircularIconButton.js";
|
|
@@ -148,7 +155,7 @@ const pe = Y({
|
|
|
148
155
|
state: H
|
|
149
156
|
} = pe(), q = c.replace(F, "").trim() !== "" && !u;
|
|
150
157
|
return /* @__PURE__ */ e("div", { ref: d, children: /* @__PURE__ */ a(
|
|
151
|
-
|
|
158
|
+
re,
|
|
152
159
|
{
|
|
153
160
|
className: W(),
|
|
154
161
|
"aria-label": `${s}${i ? `, ${i}` : ""}`,
|
|
@@ -158,7 +165,7 @@ const pe = Y({
|
|
|
158
165
|
"aria-disabled": u,
|
|
159
166
|
children: [
|
|
160
167
|
/* @__PURE__ */ a(
|
|
161
|
-
|
|
168
|
+
ue,
|
|
162
169
|
{
|
|
163
170
|
onOpenChange: (r) => {
|
|
164
171
|
L(r), r || setTimeout(() => {
|
|
@@ -174,7 +181,7 @@ const pe = Y({
|
|
|
174
181
|
isInvalid: o,
|
|
175
182
|
children: [
|
|
176
183
|
/* @__PURE__ */ a(
|
|
177
|
-
|
|
184
|
+
ee,
|
|
178
185
|
{
|
|
179
186
|
"data-dd-privacy": "mask",
|
|
180
187
|
className: E(),
|
|
@@ -222,7 +229,7 @@ const pe = Y({
|
|
|
222
229
|
}
|
|
223
230
|
),
|
|
224
231
|
/* @__PURE__ */ e(
|
|
225
|
-
|
|
232
|
+
oe,
|
|
226
233
|
{
|
|
227
234
|
style: {
|
|
228
235
|
"--trigger-width": `${d.current?.offsetWidth}px`
|
|
@@ -231,17 +238,17 @@ const pe = Y({
|
|
|
231
238
|
offset: 1,
|
|
232
239
|
containerPadding: 8,
|
|
233
240
|
className: G(),
|
|
234
|
-
children: /* @__PURE__ */ a(
|
|
241
|
+
children: /* @__PURE__ */ a(_, { filter: O, children: [
|
|
235
242
|
/* @__PURE__ */ e(fe, { "aria-label": M }),
|
|
236
243
|
/* @__PURE__ */ e(
|
|
237
|
-
|
|
244
|
+
de,
|
|
238
245
|
{
|
|
239
|
-
layout:
|
|
246
|
+
layout: ne,
|
|
240
247
|
layoutOptions: {
|
|
241
248
|
padding: 8
|
|
242
249
|
},
|
|
243
250
|
children: /* @__PURE__ */ e(
|
|
244
|
-
|
|
251
|
+
ae,
|
|
245
252
|
{
|
|
246
253
|
className: T(),
|
|
247
254
|
items: f,
|
|
@@ -268,7 +275,7 @@ const pe = Y({
|
|
|
268
275
|
),
|
|
269
276
|
/* @__PURE__ */ a("div", { className: V(), children: [
|
|
270
277
|
/* @__PURE__ */ e(
|
|
271
|
-
|
|
278
|
+
te,
|
|
272
279
|
{
|
|
273
280
|
ref: y,
|
|
274
281
|
...B,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from '@payfit/unity-themes';
|
|
2
|
-
import { ListBoxItemProps } from 'react-aria-components';
|
|
2
|
+
import { ListBoxItemProps } from 'react-aria-components/ListBox';
|
|
3
3
|
import { ParsedCountry } from 'react-international-phone';
|
|
4
4
|
export declare const phoneNumberItem: import('tailwind-variants').TVReturnType<{
|
|
5
5
|
[key: string]: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t, jsxs as a, Fragment as l } from "react/jsx-runtime";
|
|
2
2
|
import { uyTv as n } from "@payfit/unity-themes";
|
|
3
|
-
import { ListBoxItem as m } from "react-aria-components";
|
|
3
|
+
import { ListBoxItem as m } from "react-aria-components/ListBox";
|
|
4
4
|
import { FlagImage as c } from "react-international-phone";
|
|
5
5
|
import { useIntl as y } from "react-intl";
|
|
6
6
|
import { Icon as p } from "../../icon/Icon.js";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { PopoverProps as AriaPopoverProps
|
|
2
|
+
import { PopoverProps as AriaPopoverProps } from 'react-aria-components/Popover';
|
|
3
|
+
import { DialogTrigger } from 'react-aria-components/Dialog';
|
|
3
4
|
interface PopoverBaseProps extends Omit<AriaPopoverProps, 'className' | 'style'> {
|
|
4
5
|
/**
|
|
5
6
|
* The content to be displayed inside the popover.
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as t, jsxs as d } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as y } from "react";
|
|
3
3
|
import { uyTv as p } from "@payfit/unity-themes";
|
|
4
|
-
import {
|
|
5
|
-
import { DialogTrigger as
|
|
4
|
+
import { Dialog as m, DialogTrigger as g } from "react-aria-components/Dialog";
|
|
5
|
+
import { DialogTrigger as B } from "react-aria-components/Dialog";
|
|
6
|
+
import { Popover as c } from "react-aria-components/Popover";
|
|
6
7
|
import { PopoverHeader as f } from "./parts/PopoverHeader.js";
|
|
7
8
|
const x = p({
|
|
8
9
|
slots: {
|
|
@@ -20,22 +21,22 @@ const x = p({
|
|
|
20
21
|
]
|
|
21
22
|
}
|
|
22
23
|
}), b = y((a, e) => {
|
|
23
|
-
const { children: o, title: r, isTitleSrOnly:
|
|
24
|
-
return /* @__PURE__ */ t(
|
|
24
|
+
const { children: o, title: r, isTitleSrOnly: i, displayCloseButton: n, ...l } = a, { base: u, dialog: s } = x();
|
|
25
|
+
return /* @__PURE__ */ t(c, { ref: e, className: u(), offset: 8, ...l, children: /* @__PURE__ */ d(m, { className: s(), role: "dialog", children: [
|
|
25
26
|
/* @__PURE__ */ t(
|
|
26
27
|
f,
|
|
27
28
|
{
|
|
28
29
|
title: r,
|
|
29
|
-
isTitleSrOnly:
|
|
30
|
-
displayCloseButton:
|
|
30
|
+
isTitleSrOnly: i,
|
|
31
|
+
displayCloseButton: n
|
|
31
32
|
}
|
|
32
33
|
),
|
|
33
34
|
o
|
|
34
35
|
] }) });
|
|
35
36
|
});
|
|
36
37
|
b.displayName = "Popover";
|
|
37
|
-
|
|
38
|
+
g.displayName = "PopoverTrigger";
|
|
38
39
|
export {
|
|
39
40
|
b as Popover,
|
|
40
|
-
|
|
41
|
+
B as PopoverTrigger
|
|
41
42
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HeadingProps } from 'react-aria-components';
|
|
1
|
+
import { HeadingProps } from 'react-aria-components/Heading';
|
|
2
2
|
export interface PopoverHeaderProps extends Omit<HeadingProps, 'className' | 'style' | 'children'> {
|
|
3
3
|
/**
|
|
4
4
|
* Title text to be displayed in the header and used as the Popover's label.
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as u, useContext as y } from "react";
|
|
3
3
|
import { uyTv as d } from "@payfit/unity-themes";
|
|
4
|
-
import { OverlayTriggerStateContext as p
|
|
4
|
+
import { OverlayTriggerStateContext as p } from "react-aria-components/Dialog";
|
|
5
|
+
import { Heading as f } from "react-aria-components/Heading";
|
|
5
6
|
import { useIntl as g } from "react-intl";
|
|
6
7
|
import { CircularIconButton as h } from "../../icon-button/CircularIconButton.js";
|
|
7
8
|
const v = d({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as n } from "react";
|
|
3
3
|
import { uyTv as d } from "@payfit/unity-themes";
|
|
4
|
-
import { ProgressBar as c } from "react-aria-components";
|
|
4
|
+
import { ProgressBar as c } from "react-aria-components/ProgressBar";
|
|
5
5
|
const f = d({
|
|
6
6
|
slots: {
|
|
7
7
|
base: "uy:rounded-150 uy:bg-surface-neutral-disabled uy:h-150 uy:top-[50%] uy:transform uy:translate-y-[-50%] uy:w-full",
|