@payfit/unity-components 2.25.4 → 2.25.5
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,8 +1,9 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as b, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as B, useState as G, useMemo as f } from "react";
|
|
3
3
|
import { uyTv as H } from "@payfit/unity-themes";
|
|
4
|
-
import {
|
|
5
|
-
import { Toolbar as Y
|
|
4
|
+
import { Group as W } from "react-aria-components/Group";
|
|
5
|
+
import { Toolbar as Y } from "react-aria-components/Toolbar";
|
|
6
|
+
import { useId as k } from "react-aria/useId";
|
|
6
7
|
import { useIntl as q, FormattedMessage as z } from "react-intl";
|
|
7
8
|
import { Button as J } from "../button/Button.js";
|
|
8
9
|
import { Filter as K } from "../filter/Filter.js";
|
|
@@ -23,7 +24,7 @@ const X = H({
|
|
|
23
24
|
onAddFilterPress: h,
|
|
24
25
|
...C
|
|
25
26
|
}, L) => {
|
|
26
|
-
const i = q(), s =
|
|
27
|
+
const i = q(), s = k(), [M, c] = G(
|
|
27
28
|
/* @__PURE__ */ new Set()
|
|
28
29
|
), {
|
|
29
30
|
appliedFilters: m,
|
|
@@ -73,7 +74,7 @@ const X = H({
|
|
|
73
74
|
filterList: `filter-toolbar-${s}__filter-list`,
|
|
74
75
|
filterControls: `filter-toolbar-${s}__filter-controls`
|
|
75
76
|
}), [s]);
|
|
76
|
-
return /* @__PURE__ */
|
|
77
|
+
return /* @__PURE__ */ b(
|
|
77
78
|
Y,
|
|
78
79
|
{
|
|
79
80
|
ref: L,
|
|
@@ -93,13 +94,13 @@ const X = H({
|
|
|
93
94
|
children: m.map((t, l) => {
|
|
94
95
|
const e = x.get(t);
|
|
95
96
|
if (!e) return null;
|
|
96
|
-
const
|
|
97
|
+
const p = A.get(t);
|
|
97
98
|
return /* @__PURE__ */ r("li", { role: "presentation", children: /* @__PURE__ */ r(
|
|
98
99
|
K,
|
|
99
100
|
{
|
|
100
101
|
id: e.id,
|
|
101
102
|
label: e.label,
|
|
102
|
-
value:
|
|
103
|
+
value: p,
|
|
103
104
|
onChange: (R) => {
|
|
104
105
|
_(e.id, R);
|
|
105
106
|
},
|
|
@@ -117,7 +118,7 @@ const X = H({
|
|
|
117
118
|
n(e.id, void 0);
|
|
118
119
|
},
|
|
119
120
|
onConfirmSelection: () => {
|
|
120
|
-
n(e.id,
|
|
121
|
+
n(e.id, p);
|
|
121
122
|
},
|
|
122
123
|
...e.filterProps
|
|
123
124
|
}
|
|
@@ -125,8 +126,8 @@ const X = H({
|
|
|
125
126
|
})
|
|
126
127
|
}
|
|
127
128
|
),
|
|
128
|
-
/* @__PURE__ */
|
|
129
|
-
|
|
129
|
+
/* @__PURE__ */ b(
|
|
130
|
+
W,
|
|
130
131
|
{
|
|
131
132
|
className: j(),
|
|
132
133
|
"aria-label": d.filterControls,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from '@payfit/unity-themes';
|
|
2
|
-
import { Selection } from 'react-aria-components';
|
|
2
|
+
import { Selection } from 'react-aria-components/GridList';
|
|
3
3
|
import { FilterDef } from '../FilterToolbar.types.js';
|
|
4
4
|
export interface AddFilterProps extends VariantProps<typeof addFilter> {
|
|
5
5
|
/** Available filter definitions that can be added */
|
|
@@ -2,7 +2,10 @@ import { jsxs as s, Fragment as y, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as g, useRef as h } from "react";
|
|
3
3
|
import { Icon as v } from "@payfit/unity-icons";
|
|
4
4
|
import { uyTv as x } from "@payfit/unity-themes";
|
|
5
|
-
import { Button as F
|
|
5
|
+
import { Button as F } from "react-aria-components/Button";
|
|
6
|
+
import { Dialog as N } from "react-aria-components/Dialog";
|
|
7
|
+
import { ListBox as M } from "react-aria-components/ListBox";
|
|
8
|
+
import { Popover as A } from "react-aria-components/Popover";
|
|
6
9
|
import { useIntl as O, FormattedMessage as P } from "react-intl";
|
|
7
10
|
import { filterPopover as w } from "../../filter/parts/FilterPopover.js";
|
|
8
11
|
import { AddFilterItem as I } from "./AddFilterItem.js";
|
|
@@ -35,15 +38,15 @@ const S = x({
|
|
|
35
38
|
isDisabled: d = !1,
|
|
36
39
|
...i
|
|
37
40
|
}) => {
|
|
38
|
-
const u = O(), [n,
|
|
41
|
+
const u = O(), [n, t] = g(!1), o = h(null), { popover: f, dialog: m } = w(), { icon: c, button: p, listbox: b } = S();
|
|
39
42
|
return /* @__PURE__ */ s(y, { children: [
|
|
40
43
|
/* @__PURE__ */ s(
|
|
41
44
|
F,
|
|
42
45
|
{
|
|
43
|
-
className:
|
|
46
|
+
className: p(),
|
|
44
47
|
ref: o,
|
|
45
48
|
onPress: () => {
|
|
46
|
-
|
|
49
|
+
t(!0);
|
|
47
50
|
},
|
|
48
51
|
isDisabled: d,
|
|
49
52
|
...i,
|
|
@@ -54,7 +57,7 @@ const S = x({
|
|
|
54
57
|
src: "PlusOutlined",
|
|
55
58
|
role: "presentation",
|
|
56
59
|
size: 20,
|
|
57
|
-
className:
|
|
60
|
+
className: c()
|
|
58
61
|
}
|
|
59
62
|
),
|
|
60
63
|
/* @__PURE__ */ e(
|
|
@@ -68,31 +71,31 @@ const S = x({
|
|
|
68
71
|
}
|
|
69
72
|
),
|
|
70
73
|
/* @__PURE__ */ e(
|
|
71
|
-
|
|
74
|
+
A,
|
|
72
75
|
{
|
|
73
|
-
className:
|
|
76
|
+
className: f(),
|
|
74
77
|
triggerRef: o,
|
|
75
78
|
isOpen: n,
|
|
76
|
-
onOpenChange:
|
|
79
|
+
onOpenChange: t,
|
|
77
80
|
placement: "bottom start",
|
|
78
81
|
children: /* @__PURE__ */ e(
|
|
79
|
-
|
|
82
|
+
N,
|
|
80
83
|
{
|
|
81
|
-
className:
|
|
84
|
+
className: m(),
|
|
82
85
|
"aria-label": u.formatMessage({
|
|
83
86
|
id: "unity:component:filter-toolbar:add-filter:popover:label",
|
|
84
87
|
defaultMessage: "Select a filter to add"
|
|
85
88
|
}),
|
|
86
89
|
children: /* @__PURE__ */ e(
|
|
87
|
-
|
|
90
|
+
M,
|
|
88
91
|
{
|
|
89
|
-
className:
|
|
92
|
+
className: b(),
|
|
90
93
|
selectionMode: "single",
|
|
91
94
|
items: a,
|
|
92
|
-
onSelectionChange: (
|
|
93
|
-
l?.(
|
|
95
|
+
onSelectionChange: (r) => {
|
|
96
|
+
l?.(r), t(!1);
|
|
94
97
|
},
|
|
95
|
-
children: (
|
|
98
|
+
children: (r) => /* @__PURE__ */ e(I, { id: r.id, children: r.label })
|
|
96
99
|
}
|
|
97
100
|
)
|
|
98
101
|
}
|
|
@@ -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
|
export declare const addFilterItem: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, string[], unknown, unknown, undefined>>;
|
|
4
4
|
export interface AddFilterItemProps extends VariantProps<typeof addFilterItem>, ListBoxItemProps {
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { uyTv as o } from "@payfit/unity-themes";
|
|
3
|
-
import { ListBoxItem as i } from "react-aria-components";
|
|
3
|
+
import { ListBoxItem as i } from "react-aria-components/ListBox";
|
|
4
4
|
const s = o({
|
|
5
5
|
base: [
|
|
6
6
|
"uy:flex uy:items-center uy:gap-100 uy:text-content-neutral uy:typography-body",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as b } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as g, useState as v, useCallback as r } from "react";
|
|
3
3
|
import { uyTv as x } from "@payfit/unity-themes";
|
|
4
|
-
import { Toolbar as B } from "react-aria-components";
|
|
4
|
+
import { Toolbar as B } from "react-aria-components/Toolbar";
|
|
5
5
|
import { useBreakpointListener as k, isDesktopBreakpoint as F } from "../../hooks/use-breakpoint-listener.js";
|
|
6
6
|
import { useMediaQuery as M } from "../../hooks/use-media-query.js";
|
|
7
7
|
import { useScrollDirection as h } from "../../hooks/use-scroll-direction.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React, PropsWithChildren, Ref } from 'react';
|
|
2
2
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
3
|
-
import { FormProps as AriaFormProps } from 'react-aria-components';
|
|
3
|
+
import { FormProps as AriaFormProps } from 'react-aria-components/Form';
|
|
4
4
|
import { FieldErrors, UseFormReturn } from 'react-hook-form';
|
|
5
5
|
import { Schema, TFormValues } from '../../hooks/use-form.types.js';
|
|
6
6
|
type AllowedAriaFormProps = Omit<AriaFormProps, 'action' | 'onSubmit' | 'method' | 'target' | 'validationErrors' | 'onInvalid'>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as I } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as g } from "react";
|
|
3
3
|
import { Slot as x } from "@radix-ui/react-slot";
|
|
4
|
-
import { mergeProps as C } from "react-aria";
|
|
4
|
+
import { mergeProps as C } from "react-aria/mergeProps";
|
|
5
5
|
import { useFormContext as D, useController as F } from "react-hook-form";
|
|
6
6
|
import { useFormField as L } from "../FormField.context.js";
|
|
7
7
|
function R({ ...s }) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as d } from "react";
|
|
3
|
-
import { Button as m } from "react-aria-components";
|
|
3
|
+
import { Button as m } from "react-aria-components/Button";
|
|
4
4
|
import { RawLink as s } from "../../link/RawLink.js";
|
|
5
5
|
import { useFormField as u } from "../FormField.context.js";
|
|
6
6
|
const c = d((l, o) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { ButtonProps } from 'react-aria-components';
|
|
2
|
+
import { ButtonProps } from 'react-aria-components/Button';
|
|
3
3
|
import { RawLinkProps } from '../../link/RawLink.js';
|
|
4
4
|
export interface FormContextualLinkProps extends RawLinkProps {
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as e } from "react";
|
|
3
|
-
import { Button as s } from "react-aria-components";
|
|
3
|
+
import { Button as s } from "react-aria-components/Button";
|
|
4
4
|
import { RawLink as m } from "../../link/RawLink.js";
|
|
5
5
|
import { useFieldA11yContext as c } from "../TanstackFormField.context.js";
|
|
6
6
|
const u = e((t, a) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { uyTv as o } from "@payfit/unity-themes";
|
|
3
|
-
import { useId as s } from "react-aria";
|
|
3
|
+
import { useId as s } from "react-aria/useId";
|
|
4
4
|
import { FormattedMessage as t } from "react-intl";
|
|
5
5
|
import { Spinner as i } from "../spinner/Spinner.js";
|
|
6
6
|
const n = o({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as d, useMemo as f } from "react";
|
|
3
3
|
import { uyTv as y } from "@payfit/unity-themes";
|
|
4
|
-
import { useId as c } from "react-aria";
|
|
4
|
+
import { useId as c } from "react-aria/useId";
|
|
5
5
|
import { FormattedMessage as a } from "react-intl";
|
|
6
6
|
import { SkipLinks as p, SkipLink as o } from "../skip-links/SkipLinks.js";
|
|
7
7
|
import { FunnelLayoutProvider as m } from "./FunnelLayout.context.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as i } from "react";
|
|
3
3
|
import { uyTv as n } from "@payfit/unity-themes";
|
|
4
|
-
import { ProgressBar as d } from "react-aria-components";
|
|
4
|
+
import { ProgressBar as d } from "react-aria-components/ProgressBar";
|
|
5
5
|
const y = n({
|
|
6
6
|
slots: {
|
|
7
7
|
base: ["uy:bg-surface-neutral-disabled", "uy:w-full uy:h-50"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UnityIcon } from '@payfit/unity-icons';
|
|
2
2
|
import { VariantProps } from '@payfit/unity-themes';
|
|
3
|
-
import { ButtonProps as AriaButtonProps } from 'react-aria-components';
|
|
3
|
+
import { ButtonProps as AriaButtonProps } from 'react-aria-components/Button';
|
|
4
4
|
export declare const circularIconButton: import('tailwind-variants').TVReturnType<{
|
|
5
5
|
size: {
|
|
6
6
|
default: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as z } from "react";
|
|
3
3
|
import { uyTv as I } from "@payfit/unity-themes";
|
|
4
|
-
import { Button as N
|
|
4
|
+
import { Button as N } from "react-aria-components/Button";
|
|
5
|
+
import { Pressable as B } from "react-aria-components/Pressable";
|
|
5
6
|
import L from "../../hooks/use-id.js";
|
|
6
7
|
import { Icon as y } from "../icon/Icon.js";
|
|
7
8
|
import { Spinner as b } from "../spinner/Spinner.js";
|
|
@@ -48,8 +49,8 @@ const j = I({
|
|
|
48
49
|
color: "content.neutral.low"
|
|
49
50
|
}
|
|
50
51
|
}), D = z((m, o) => {
|
|
51
|
-
const
|
|
52
|
-
type:
|
|
52
|
+
const p = L(), {
|
|
53
|
+
type: v,
|
|
53
54
|
onPress: s,
|
|
54
55
|
icon: u,
|
|
55
56
|
color: g,
|
|
@@ -61,14 +62,14 @@ const j = I({
|
|
|
61
62
|
className: h,
|
|
62
63
|
"aria-labelledby": x,
|
|
63
64
|
...n
|
|
64
|
-
} = m, r = `icon-button-label-${
|
|
65
|
+
} = m, r = `icon-button-label-${p}`, c = j({ class: h, color: g, size: l });
|
|
65
66
|
return w === "button" ? /* @__PURE__ */ e(f, { title: a, children: /* @__PURE__ */ d(
|
|
66
67
|
N,
|
|
67
68
|
{
|
|
68
69
|
ref: o,
|
|
69
70
|
"data-dd-privacy": "allow",
|
|
70
71
|
...n,
|
|
71
|
-
type:
|
|
72
|
+
type: v,
|
|
72
73
|
onPress: s,
|
|
73
74
|
isDisabled: i || t,
|
|
74
75
|
"aria-labelledby": x ?? r,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UnityIcon } from '@payfit/unity-icons';
|
|
2
2
|
import { AriaRole, ButtonHTMLAttributes } from 'react';
|
|
3
|
-
import { ButtonProps as AriaButtonProps } from 'react-aria-components';
|
|
3
|
+
import { ButtonProps as AriaButtonProps } from 'react-aria-components/Button';
|
|
4
4
|
import { IconButtonGhost, IconButtonPrimary, IconButtonSecondary } from './IconButton.variants.js';
|
|
5
5
|
interface IconButtonBaseProps {
|
|
6
6
|
/** Label used to describe the action of the button */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as y } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as b } from "react";
|
|
3
|
-
import { Button as B } from "react-aria-components";
|
|
3
|
+
import { Button as B } from "react-aria-components/Button";
|
|
4
4
|
import h from "../../hooks/use-id.js";
|
|
5
5
|
import { Icon as I } from "../icon/Icon.js";
|
|
6
6
|
import { Spinner as N } from "../spinner/Spinner.js";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as S, useState as N, useEffect as
|
|
1
|
+
import { jsxs as m, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as S, useState as N, useEffect as l, useCallback as v } from "react";
|
|
3
3
|
import { uyTv as L } from "@payfit/unity-themes";
|
|
4
4
|
import { useStore as P } from "@tanstack/react-form";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { Group as T } from "react-aria-components/Group";
|
|
6
|
+
import { FocusScope as R } from "react-aria/FocusScope";
|
|
7
|
+
import { useKeyboard as j } from "react-aria/useKeyboard";
|
|
7
8
|
import { useIntl as K } from "react-intl";
|
|
8
9
|
import { useFormContext as O } from "../../../hooks/tanstack-form-context.js";
|
|
9
10
|
import { TanstackFormFeedbackText as B } from "../../form-field/parts/TanstackFormFeedbackText.js";
|
|
@@ -38,11 +39,11 @@ function J({
|
|
|
38
39
|
isSubmitSuccessful: e.isSubmitSuccessful,
|
|
39
40
|
submissionAttempts: e.submissionAttempts
|
|
40
41
|
})), a = S(t), w = S(u), [k, d] = N(""), c = i?.mode === "edit";
|
|
41
|
-
|
|
42
|
+
l(() => {
|
|
42
43
|
t && !a.current && d("");
|
|
43
|
-
}, [t]),
|
|
44
|
+
}, [t]), l(() => {
|
|
44
45
|
a.current && !t && r && i?.exitEditMode();
|
|
45
|
-
}, [t, r, i]),
|
|
46
|
+
}, [t, r, i]), l(() => {
|
|
46
47
|
if (a.current && !t && !r && y) {
|
|
47
48
|
const I = b ?? n.formatMessage({
|
|
48
49
|
id: "unity:component:inline-field:save-error",
|
|
@@ -50,7 +51,7 @@ function J({
|
|
|
50
51
|
});
|
|
51
52
|
d(I);
|
|
52
53
|
}
|
|
53
|
-
}, [t, r, y, b, n]),
|
|
54
|
+
}, [t, r, y, b, n]), l(() => {
|
|
54
55
|
a.current = t, w.current = u;
|
|
55
56
|
}, [t, u]);
|
|
56
57
|
const { base: D } = z(), V = v(
|
|
@@ -60,12 +61,12 @@ function J({
|
|
|
60
61
|
[o]
|
|
61
62
|
), g = v(() => {
|
|
62
63
|
o.reset(), i?.exitEditMode(), d("");
|
|
63
|
-
}, [o, i]), { keyboardProps: A } =
|
|
64
|
+
}, [o, i]), { keyboardProps: A } = j({
|
|
64
65
|
onKeyDown: (e) => {
|
|
65
66
|
e.key === "Escape" && i?.mode === "edit" && (e.preventDefault(), f?.(), g());
|
|
66
67
|
}
|
|
67
68
|
});
|
|
68
|
-
return /* @__PURE__ */
|
|
69
|
+
return /* @__PURE__ */ m(
|
|
69
70
|
"div",
|
|
70
71
|
{
|
|
71
72
|
className: D(),
|
|
@@ -81,12 +82,12 @@ function J({
|
|
|
81
82
|
className: "uy:flex uy:flex-1 uy:min-w-0",
|
|
82
83
|
onSubmit: V,
|
|
83
84
|
id: i?.editViewId,
|
|
84
|
-
children: /* @__PURE__ */
|
|
85
|
+
children: /* @__PURE__ */ m(H, { children: [
|
|
85
86
|
p && /* @__PURE__ */ s(G, { children: p }),
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
+
/* @__PURE__ */ m("div", { className: "uy:flex", children: [
|
|
87
88
|
x,
|
|
88
|
-
/* @__PURE__ */
|
|
89
|
-
|
|
89
|
+
/* @__PURE__ */ m(
|
|
90
|
+
T,
|
|
90
91
|
{
|
|
91
92
|
className: "uy:flex uy:gap-50 uy:items-center uy:ml-100",
|
|
92
93
|
"aria-busy": i?.isLoading,
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { jsx as u, jsxs as te } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as ie, useRef as
|
|
2
|
+
import { forwardRef as ie, useRef as m, useState as K, useEffect as o, useCallback as P, useImperativeHandle as oe, useMemo as re } from "react";
|
|
3
3
|
import { uyTv as ne } from "@payfit/unity-themes";
|
|
4
4
|
import { useStore as se } from "@tanstack/react-form";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { FocusScope as ue } from "react-aria/FocusScope";
|
|
6
|
+
import { useId as le } from "react-aria/useId";
|
|
7
|
+
import { useKeyboard as ce } from "react-aria/useKeyboard";
|
|
8
|
+
import { useIntl as me } from "react-intl";
|
|
9
|
+
import { useFormContext as ae } from "../../hooks/tanstack-form-context.js";
|
|
8
10
|
import { useBreakpointListener as de } from "../../hooks/use-breakpoint-listener.js";
|
|
9
11
|
import { useInlineFieldGroupMode as fe } from "./hooks/useInlineFieldGroupMode.js";
|
|
10
12
|
import { InlineFieldGroupContext as pe } from "./InlineFieldGroup.context.js";
|
|
@@ -13,15 +15,15 @@ const ve = ne({
|
|
|
13
15
|
slots: {
|
|
14
16
|
form: "uy:flex uy:flex-col uy:gap-300"
|
|
15
17
|
}
|
|
16
|
-
}), $ = (
|
|
17
|
-
if (!
|
|
18
|
-
const d =
|
|
18
|
+
}), $ = (a) => {
|
|
19
|
+
if (!a.current) return;
|
|
20
|
+
const d = a.current.querySelector(
|
|
19
21
|
'[aria-invalid="true"]'
|
|
20
22
|
);
|
|
21
23
|
d && d.focus();
|
|
22
24
|
}, H = 5e3, ye = ie(
|
|
23
25
|
({
|
|
24
|
-
children:
|
|
26
|
+
children: a,
|
|
25
27
|
mode: d,
|
|
26
28
|
defaultMode: U,
|
|
27
29
|
onModeChange: W,
|
|
@@ -39,7 +41,7 @@ const ve = ne({
|
|
|
39
41
|
onSavePress: C,
|
|
40
42
|
onCancelPress: D
|
|
41
43
|
}, Q) => {
|
|
42
|
-
const l =
|
|
44
|
+
const l = le(), g = `unity-InlineFieldGroup-${l}__header`, q = `unity-InlineFieldGroup-${l}__edit-view`, b = m(null), r = m(null), B = m(!0), [G, h] = K(""), [R, v] = K(""), y = me(), c = ae(), O = de(), X = O === "xs" || O === "sm", { mode: t, enterEditMode: S, exitEditMode: n } = fe({
|
|
43
45
|
mode: d,
|
|
44
46
|
defaultMode: U,
|
|
45
47
|
onModeChange: W,
|
|
@@ -49,7 +51,7 @@ const ve = ne({
|
|
|
49
51
|
isValid: e.isValid,
|
|
50
52
|
isSubmitSuccessful: e.isSubmitSuccessful,
|
|
51
53
|
submissionAttempts: e.submissionAttempts
|
|
52
|
-
})), A =
|
|
54
|
+
})), A = m(i), j = m(x);
|
|
53
55
|
o(() => {
|
|
54
56
|
i && !A.current && (h(""), v(""));
|
|
55
57
|
}, [i]), o(() => {
|
|
@@ -111,7 +113,7 @@ const ve = ne({
|
|
|
111
113
|
(e || s) && b.current && b.current.focus();
|
|
112
114
|
});
|
|
113
115
|
}, [t]);
|
|
114
|
-
const { keyboardProps: Z } =
|
|
116
|
+
const { keyboardProps: Z } = ce({
|
|
115
117
|
onKeyDown: (e) => {
|
|
116
118
|
e.key === "Escape" && t === "edit" && (e.preventDefault(), N());
|
|
117
119
|
}
|
|
@@ -180,8 +182,8 @@ const ve = ne({
|
|
|
180
182
|
onSubmit: Y,
|
|
181
183
|
"aria-label": M,
|
|
182
184
|
"aria-labelledby": M ? void 0 : g,
|
|
183
|
-
children: /* @__PURE__ */ te(
|
|
184
|
-
|
|
185
|
+
children: /* @__PURE__ */ te(ue, { contain: J && t === "edit", children: [
|
|
186
|
+
a,
|
|
185
187
|
X && /* @__PURE__ */ u("div", { className: "uy:flex", children: /* @__PURE__ */ u(be, { orientation: "vertical" }) }),
|
|
186
188
|
/* @__PURE__ */ u(
|
|
187
189
|
"div",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { InputProps as AriaInputProps } from 'react-aria-components';
|
|
2
|
+
import { InputProps as AriaInputProps } from 'react-aria-components/Input';
|
|
3
3
|
export interface InputProps extends Omit<AriaInputProps, 'prefix' | 'style' | 'className'> {
|
|
4
4
|
/**
|
|
5
5
|
* The type of the input field
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as v } from "react";
|
|
3
3
|
import { uyTv as h } from "@payfit/unity-themes";
|
|
4
|
-
import { Input as I } from "react-aria-components";
|
|
4
|
+
import { Input as I } from "react-aria-components/Input";
|
|
5
5
|
import { useIntl as N } from "react-intl";
|
|
6
6
|
import { CircularIconButton as W } from "../icon-button/CircularIconButton.js";
|
|
7
7
|
import { Icon as M } from "../icon/Icon.js";
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as r, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as c } from "react";
|
|
3
3
|
import { uyTv as b } from "@payfit/unity-themes";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { InputContext as f } from "react-aria-components/Input";
|
|
5
|
+
import { Label as g } from "react-aria-components/Label";
|
|
6
|
+
import { useSlottedContext as h } from "react-aria-components/slots";
|
|
7
|
+
import { mergeProps as N } from "react-aria/mergeProps";
|
|
6
8
|
import { useIntl as q } from "react-intl";
|
|
7
9
|
const x = b({
|
|
8
10
|
slots: {
|
|
@@ -25,31 +27,31 @@ const x = b({
|
|
|
25
27
|
}
|
|
26
28
|
}), v = c(
|
|
27
29
|
({ children: n, ...a }, l) => {
|
|
28
|
-
const e = q(), i = f
|
|
30
|
+
const e = q(), i = h(f), m = N(
|
|
29
31
|
{ isRequired: i?.["aria-required"] },
|
|
30
32
|
a
|
|
31
33
|
), {
|
|
32
34
|
isRequired: t = !1,
|
|
33
35
|
requiredVariant: o = "required",
|
|
34
|
-
...
|
|
35
|
-
} =
|
|
36
|
-
return /* @__PURE__ */
|
|
37
|
-
|
|
36
|
+
...p
|
|
37
|
+
} = m, { base: d, asterisk: y, optionalTag: u } = x();
|
|
38
|
+
return /* @__PURE__ */ r(
|
|
39
|
+
g,
|
|
38
40
|
{
|
|
39
41
|
"data-dd-privacy": "allow",
|
|
40
|
-
...
|
|
42
|
+
...p,
|
|
41
43
|
ref: l,
|
|
42
|
-
className:
|
|
44
|
+
className: d({ className: a.className }),
|
|
43
45
|
children: [
|
|
44
46
|
n,
|
|
45
|
-
o === "required" && t && /* @__PURE__ */
|
|
47
|
+
o === "required" && t && /* @__PURE__ */ r("span", { className: y(), children: [
|
|
46
48
|
"*",
|
|
47
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ s("span", { className: "uy:sr-only", children: e.formatMessage({
|
|
48
50
|
id: "unity:component:label:required",
|
|
49
51
|
defaultMessage: "required"
|
|
50
52
|
}) })
|
|
51
53
|
] }),
|
|
52
|
-
o === "optional" && !t && /* @__PURE__ */
|
|
54
|
+
o === "optional" && !t && /* @__PURE__ */ s("span", { className: u({ className: a.className }), children: e.formatMessage({
|
|
53
55
|
id: "unity:component:label:optional",
|
|
54
56
|
defaultMessage: "(optional)"
|
|
55
57
|
}) })
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from '@payfit/unity-themes';
|
|
2
2
|
import { HTMLAttributes } from 'react';
|
|
3
|
-
import { LinkProps as AriaLinkProps } from 'react-aria-components';
|
|
3
|
+
import { LinkProps as AriaLinkProps } from 'react-aria-components/Link';
|
|
4
4
|
export declare const link: import('tailwind-variants').TVReturnType<{
|
|
5
5
|
variant: {
|
|
6
6
|
inline: {
|
|
@@ -2,7 +2,7 @@ import { jsxs as h, jsx as g } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as w } from "react";
|
|
3
3
|
import { IconSprite as k } from "@payfit/unity-icons";
|
|
4
4
|
import { uyTv as D } from "@payfit/unity-themes";
|
|
5
|
-
import { Link as z } from "react-aria-components";
|
|
5
|
+
import { Link as z } from "react-aria-components/Link";
|
|
6
6
|
import { useRouter as A } from "../../providers/router/RouterProvider.js";
|
|
7
7
|
import { isExternalUrl as E } from "./utils.js";
|
|
8
8
|
const L = D({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UnityIcon } from '@payfit/unity-icons';
|
|
2
2
|
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { LinkProps as AriaLinkProps } from 'react-aria-components';
|
|
3
|
+
import { LinkProps as AriaLinkProps } from 'react-aria-components/Link';
|
|
4
4
|
import { ButtonBase, ButtonFilled, ButtonGhost, ButtonOutlined } from '../button/Button.variants.js';
|
|
5
5
|
type UnityLinkButtonProps = Omit<AriaLinkProps, 'style' | 'className'> & ButtonBase & {
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as u, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as v, useMemo as N } from "react";
|
|
3
3
|
import { uyMerge as m, cn as E } from "@payfit/unity-themes";
|
|
4
|
-
import { Link as R } from "react-aria-components";
|
|
4
|
+
import { Link as R } from "react-aria-components/Link";
|
|
5
5
|
import { buttonGhost as g, buttonOutlined as j, buttonFilled as B } from "../button/Button.variants.js";
|
|
6
6
|
import { Icon as I } from "../icon/Icon.js";
|
|
7
7
|
import { isExternalUrl as M } from "../link/utils.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX, Ref } from 'react';
|
|
2
|
-
import { ListBoxProps } from 'react-aria-components';
|
|
2
|
+
import { ListBoxProps } from 'react-aria-components/ListBox';
|
|
3
3
|
export type ListViewProps<TItem extends object> = Omit<ListBoxProps<TItem>, 'layout' | 'selectionBehavior' | 'selectionMode' | 'selectedKeys' | 'defaultSelectedKeys' | 'onSelectionChange' | 'shouldSelectOnPressUp' | 'disallowEmptySelection' | 'escapeKeyBehavior' | 'className'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Controls whether to enable virtualization for the list.
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { uyTv as
|
|
4
|
-
import {
|
|
5
|
-
|
|
2
|
+
import { forwardRef as m } from "react";
|
|
3
|
+
import { uyTv as l } from "@payfit/unity-themes";
|
|
4
|
+
import { ListBox as o } from "react-aria-components/ListBox";
|
|
5
|
+
import { Virtualizer as p, ListLayout as c } from "react-aria-components/Virtualizer";
|
|
6
|
+
const u = l({
|
|
6
7
|
base: [
|
|
7
8
|
"uy:pb-500 uy:data-[empty=true]:pb-0",
|
|
8
9
|
'uy:[&_[data-unity-slot="ListViewSection"]]:pb-300',
|
|
9
10
|
'uy:[&_[data-unity-slot="ListViewSection"]:last-child]:pb-0'
|
|
10
11
|
]
|
|
11
12
|
}), y = {
|
|
12
|
-
layout:
|
|
13
|
+
layout: c,
|
|
13
14
|
layoutOptions: {
|
|
14
15
|
estimatedRowHeight: 56,
|
|
15
16
|
estimatedHeadingHeight: 24,
|
|
@@ -18,7 +19,7 @@ const u = c({
|
|
|
18
19
|
}
|
|
19
20
|
}, w = (r, i) => {
|
|
20
21
|
const { children: a, enableVirtualization: n, className: d, ...e } = r, s = u({ className: d });
|
|
21
|
-
return n ? /* @__PURE__ */ t(
|
|
22
|
+
return n ? /* @__PURE__ */ t(p, { ...y, children: /* @__PURE__ */ t(
|
|
22
23
|
o,
|
|
23
24
|
{
|
|
24
25
|
...e,
|
|
@@ -37,7 +38,7 @@ const u = c({
|
|
|
37
38
|
children: a
|
|
38
39
|
}
|
|
39
40
|
);
|
|
40
|
-
}, V =
|
|
41
|
+
}, V = m(w);
|
|
41
42
|
V.displayName = "ListView";
|
|
42
43
|
export {
|
|
43
44
|
V as ListView
|