@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
1
|
import { jsx as t, jsxs as c } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as P, Children as m, isValidElement as l, useLayoutEffect as b } from "react";
|
|
3
3
|
import { uyTv as N } from "@payfit/unity-themes";
|
|
4
|
-
import {
|
|
5
|
-
import { ModalOverlay as
|
|
4
|
+
import { DialogContext as C, Dialog as A } from "react-aria-components/Dialog";
|
|
5
|
+
import { ModalOverlay as E, Modal as I } from "react-aria-components/Modal";
|
|
6
|
+
import { useId as j } from "react-aria/useId";
|
|
6
7
|
import { useIntl as z } from "react-intl";
|
|
7
8
|
import { useHasScroll as M } from "../../hooks/use-has-scroll.js";
|
|
8
9
|
import { DialogButton as H } from "../dialog/parts/DialogActions/DialogButton.js";
|
|
@@ -101,7 +102,7 @@ function q({
|
|
|
101
102
|
isDismissable: p = !0,
|
|
102
103
|
...y
|
|
103
104
|
}) {
|
|
104
|
-
const f = z(), d =
|
|
105
|
+
const f = z(), d = j(), g = P(null), { hasAnyScroll: i } = M(g, {
|
|
105
106
|
strategy: "both",
|
|
106
107
|
watchMutations: !0
|
|
107
108
|
}), s = m.toArray(r), u = s.find(
|
|
@@ -125,20 +126,20 @@ function q({
|
|
|
125
126
|
}, [r, y]);
|
|
126
127
|
const a = k();
|
|
127
128
|
return /* @__PURE__ */ t(
|
|
128
|
-
|
|
129
|
+
E,
|
|
129
130
|
{
|
|
130
131
|
isDismissable: p,
|
|
131
132
|
isOpen: n,
|
|
132
133
|
onOpenChange: e,
|
|
133
134
|
className: a.overlay(),
|
|
134
135
|
children: /* @__PURE__ */ t(
|
|
135
|
-
|
|
136
|
+
I,
|
|
136
137
|
{
|
|
137
138
|
className: a.wrapper(),
|
|
138
139
|
"data-unity-promo-dialog": !0,
|
|
139
140
|
"data-dd-privacy": "allow",
|
|
140
|
-
children: /* @__PURE__ */ t(
|
|
141
|
-
|
|
141
|
+
children: /* @__PURE__ */ t(C.Provider, { value: { "aria-describedby": d }, children: /* @__PURE__ */ c(
|
|
142
|
+
A,
|
|
142
143
|
{
|
|
143
144
|
role: B(r) ? "alertdialog" : "dialog",
|
|
144
145
|
"aria-modal": "true",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { uyTv as a } from "@payfit/unity-themes";
|
|
3
|
-
import { Heading as m } from "react-aria-components";
|
|
3
|
+
import { Heading as m } from "react-aria-components/Heading";
|
|
4
4
|
const r = a({
|
|
5
5
|
base: ["uy:typography-h2 uy:md:typography-h1", "uy:mb-150 uy:md:mb-250"]
|
|
6
6
|
}), i = ({ children: o }) => /* @__PURE__ */ t(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as i } from "react";
|
|
3
|
-
import { RadioGroup as d } from "react-aria-components";
|
|
3
|
+
import { RadioGroup as d } from "react-aria-components/RadioGroup";
|
|
4
4
|
const l = i(
|
|
5
5
|
({ children: o, isReadOnly: r, isDisabled: t, value: a, onChange: p, onBlur: u, ...m }, e) => /* @__PURE__ */ f(
|
|
6
6
|
d,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from '@payfit/unity-themes';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { RadioProps } from 'react-aria-components';
|
|
3
|
+
import { RadioProps } from 'react-aria-components/RadioGroup';
|
|
4
4
|
export declare const radioButton: import('tailwind-variants').TVReturnType<{
|
|
5
5
|
[key: string]: {
|
|
6
6
|
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as u, jsx as o, Fragment as x } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as g, useContext as v, useMemo as l } from "react";
|
|
3
3
|
import { uyTv as R } from "@payfit/unity-themes";
|
|
4
|
-
import { RadioGroupStateContext as S, Radio as h } from "react-aria-components";
|
|
4
|
+
import { RadioGroupStateContext as S, Radio as h } from "react-aria-components/RadioGroup";
|
|
5
5
|
import { Flex as w } from "../../flex/Flex.js";
|
|
6
6
|
import { Text as N } from "../../text/Text.js";
|
|
7
7
|
import B from "./radio-input-selected.svg.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from '@payfit/unity-themes';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { SearchFieldProps } from 'react-aria-components';
|
|
3
|
+
import { SearchFieldProps } from 'react-aria-components/SearchField';
|
|
4
4
|
export declare const search: import('tailwind-variants').TVReturnType<{
|
|
5
5
|
isReadOnly: {
|
|
6
6
|
true: {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as w } from "react";
|
|
3
3
|
import { uyTv as M } from "@payfit/unity-themes";
|
|
4
|
-
import {
|
|
4
|
+
import { FieldError as N } from "react-aria-components/FieldError";
|
|
5
|
+
import { Input as S } from "react-aria-components/Input";
|
|
6
|
+
import { SearchField as I } from "react-aria-components/SearchField";
|
|
5
7
|
import { useIntl as k } from "react-intl";
|
|
6
8
|
import { CircularIconButton as C } from "../icon-button/CircularIconButton.js";
|
|
7
9
|
import { Icon as n } from "../icon/Icon.js";
|
|
@@ -85,7 +87,7 @@ const B = M({
|
|
|
85
87
|
isReadOnly: u
|
|
86
88
|
}), o = k();
|
|
87
89
|
return /* @__PURE__ */ i(
|
|
88
|
-
|
|
90
|
+
I,
|
|
89
91
|
{
|
|
90
92
|
"aria-label": c,
|
|
91
93
|
className: "uy:group",
|
|
@@ -151,7 +153,7 @@ const B = M({
|
|
|
151
153
|
)
|
|
152
154
|
] })
|
|
153
155
|
] }),
|
|
154
|
-
/* @__PURE__ */ e(
|
|
156
|
+
/* @__PURE__ */ e(N, { className: v(), children: s })
|
|
155
157
|
]
|
|
156
158
|
}
|
|
157
159
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { RadioGroupProps } from 'react-aria-components';
|
|
2
|
+
import { RadioGroupProps } from 'react-aria-components/RadioGroup';
|
|
3
3
|
export interface BasedSegmentedButtonGroupProps extends Omit<RadioGroupProps, 'children' | 'style' | 'className' | 'isDisabled' | 'isInvalid' | 'isReadOnly' | 'orientation' | 'validationBehavior' | 'isRequired' | 'validate' | 'defaultValue'> {
|
|
4
4
|
/**
|
|
5
5
|
* The content of the `SegmentedButtonGroup`. Should contain `ToggleButton` components as children.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { useRadioGroup as n } from "react-aria";
|
|
3
|
-
import { useRadioGroupState as i } from "react-stately";
|
|
2
|
+
import { useRadioGroup as n } from "react-aria/useRadioGroup";
|
|
3
|
+
import { useRadioGroupState as i } from "react-stately/useRadioGroupState";
|
|
4
4
|
import { SegmentedButtonGroupProvider as a } from "./SegmentedButtonGroups.context.js";
|
|
5
5
|
const d = (o) => {
|
|
6
6
|
const { children: e } = o, t = i(o), { radioGroupProps: u } = n(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UnityIcon } from '@payfit/unity-icons';
|
|
2
|
-
import { AriaRadioProps } from 'react-aria';
|
|
2
|
+
import { AriaRadioProps } from 'react-aria/useRadioGroup';
|
|
3
3
|
import { IconName } from '../../../types/utils.js';
|
|
4
4
|
export interface ToggleButtonProps extends AriaRadioProps {
|
|
5
5
|
/**
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { jsxs as c, jsx as
|
|
1
|
+
import { jsxs as c, jsx as s, Fragment as b } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as h, useContext as x, useRef as v } from "react";
|
|
3
3
|
import { uyTv as w } from "@payfit/unity-themes";
|
|
4
|
-
import {
|
|
4
|
+
import { mergeProps as P } from "react-aria/mergeProps";
|
|
5
|
+
import { useFocusRing as L } from "react-aria/useFocusRing";
|
|
6
|
+
import { useRadio as I } from "react-aria/useRadioGroup";
|
|
7
|
+
import { VisuallyHidden as N } from "react-aria/VisuallyHidden";
|
|
5
8
|
import { useIntl as V } from "react-intl";
|
|
6
9
|
import { Icon as F } from "../../icon/Icon.js";
|
|
7
10
|
import { Spinner as R } from "../../spinner/Spinner.js";
|
|
@@ -70,15 +73,15 @@ const B = w({
|
|
|
70
73
|
hasPrefixIcon: !1
|
|
71
74
|
}
|
|
72
75
|
}), C = ({
|
|
73
|
-
intl:
|
|
74
|
-
children:
|
|
75
|
-
isLoading:
|
|
76
|
+
intl: t,
|
|
77
|
+
children: a,
|
|
78
|
+
isLoading: n,
|
|
76
79
|
prefixIcon: e,
|
|
77
|
-
isSelected:
|
|
78
|
-
}) =>
|
|
80
|
+
isSelected: r
|
|
81
|
+
}) => n ? /* @__PURE__ */ s(
|
|
79
82
|
R,
|
|
80
83
|
{
|
|
81
|
-
label:
|
|
84
|
+
label: t.formatMessage({
|
|
82
85
|
id: "unity:component:common:loading:label",
|
|
83
86
|
defaultMessage: "Loading..."
|
|
84
87
|
}),
|
|
@@ -86,33 +89,33 @@ const B = w({
|
|
|
86
89
|
size: "small"
|
|
87
90
|
}
|
|
88
91
|
) : /* @__PURE__ */ c(b, { children: [
|
|
89
|
-
e ? /* @__PURE__ */
|
|
92
|
+
e ? /* @__PURE__ */ s(
|
|
90
93
|
F,
|
|
91
94
|
{
|
|
92
|
-
src:
|
|
93
|
-
color:
|
|
95
|
+
src: r ? `${e}Filled` : `${e}Outlined`,
|
|
96
|
+
color: r ? "content.neutral" : "content.neutral.low",
|
|
94
97
|
role: "presentation"
|
|
95
98
|
}
|
|
96
99
|
) : null,
|
|
97
|
-
|
|
100
|
+
a
|
|
98
101
|
] }), T = h(
|
|
99
|
-
(
|
|
100
|
-
const { children:
|
|
102
|
+
(t, a) => {
|
|
103
|
+
const { children: n, value: e, prefixIcon: r, isLoading: o } = t, { state: u } = x(S), i = v(null), { inputProps: d } = I(t, u, i), { focusProps: p, isFocusVisible: f } = L(), y = V(), l = u.selectedValue === e, { base: m, wrapper: g } = B({
|
|
101
104
|
isSelected: l,
|
|
102
|
-
hasPrefixIcon: !!
|
|
103
|
-
isLoading:
|
|
105
|
+
hasPrefixIcon: !!r,
|
|
106
|
+
isLoading: o,
|
|
104
107
|
isFocusVisible: f
|
|
105
108
|
});
|
|
106
|
-
return /* @__PURE__ */ c("label", { ref:
|
|
107
|
-
/* @__PURE__ */
|
|
109
|
+
return /* @__PURE__ */ c("label", { ref: a, className: m(), "aria-disabled": o, children: [
|
|
110
|
+
/* @__PURE__ */ s(N, { children: /* @__PURE__ */ s(
|
|
108
111
|
"input",
|
|
109
112
|
{
|
|
110
|
-
...
|
|
113
|
+
...P(d, p),
|
|
111
114
|
ref: i,
|
|
112
|
-
disabled:
|
|
115
|
+
disabled: o
|
|
113
116
|
}
|
|
114
117
|
) }),
|
|
115
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ s("span", { className: g(), children: C({ intl: y, children: n, isLoading: o, isSelected: l, prefixIcon: r }) })
|
|
116
119
|
] });
|
|
117
120
|
}
|
|
118
121
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Node } from '@react-types/shared';
|
|
2
2
|
import { ForwardedRef, JSX, ReactNode } from 'react';
|
|
3
|
-
import { PopoverProps as AriaPopoverProps, SelectProps as AriaSelectProps } from 'react-aria-components';
|
|
3
|
+
import { PopoverProps as AriaPopoverProps, SelectProps as AriaSelectProps } from 'react-aria-components/Select';
|
|
4
4
|
export interface SelectProps<T extends object> extends Omit<AriaSelectProps<T>, 'children' | 'label' | 'style' | 'className' | 'value' | 'defaultValue' | 'onChange' | 'selectionMode'> {
|
|
5
5
|
/** In static mode, contains <SelectOption /> and <SelectOptionGroup /> components, in dynamic mode, contains a function to render items passed to the component*/
|
|
6
6
|
children: ReactNode | ((item: T) => ReactNode);
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { jsxs as d, jsx as
|
|
1
|
+
import { jsxs as d, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as C, useState as F, useMemo as I } from "react";
|
|
3
3
|
import { uyTv as A } from "@payfit/unity-themes";
|
|
4
|
-
import { useFilter as T,
|
|
4
|
+
import { useFilter as T, Autocomplete as U } from "react-aria-components/Autocomplete";
|
|
5
|
+
import { Select as V, Popover as $, ListBox as m } from "react-aria-components/Select";
|
|
6
|
+
import { Virtualizer as f, ListLayout as y } from "react-aria-components/Virtualizer";
|
|
5
7
|
import { useIntl as k } from "react-intl";
|
|
6
8
|
import { SearchInput as q } from "./parts/SearchInput.js";
|
|
7
9
|
import { SelectButton as G } from "./parts/SelectButton.js";
|
|
@@ -25,7 +27,7 @@ const H = A({
|
|
|
25
27
|
onBlur: v,
|
|
26
28
|
placement: x,
|
|
27
29
|
searchInputAriaLabel: g,
|
|
28
|
-
renderEmptyState:
|
|
30
|
+
renderEmptyState: e,
|
|
29
31
|
renderValue: S,
|
|
30
32
|
...w
|
|
31
33
|
}, N) => {
|
|
@@ -33,11 +35,11 @@ const H = A({
|
|
|
33
35
|
value: a,
|
|
34
36
|
onChange: u
|
|
35
37
|
} : { defaultValue: b }, p = I(() => {
|
|
36
|
-
if (
|
|
37
|
-
return typeof
|
|
38
|
-
}, [
|
|
38
|
+
if (e !== void 0)
|
|
39
|
+
return typeof e == "function" ? e : () => e;
|
|
40
|
+
}, [e]);
|
|
39
41
|
return /* @__PURE__ */ d(
|
|
40
|
-
|
|
42
|
+
V,
|
|
41
43
|
{
|
|
42
44
|
onOpenChange: M,
|
|
43
45
|
...w,
|
|
@@ -49,7 +51,7 @@ const H = A({
|
|
|
49
51
|
onBlur: v,
|
|
50
52
|
...B,
|
|
51
53
|
children: [
|
|
52
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ o(
|
|
53
55
|
G,
|
|
54
56
|
{
|
|
55
57
|
isDisabled: l,
|
|
@@ -59,15 +61,15 @@ const H = A({
|
|
|
59
61
|
renderValue: S
|
|
60
62
|
}
|
|
61
63
|
),
|
|
62
|
-
/* @__PURE__ */
|
|
63
|
-
|
|
64
|
+
/* @__PURE__ */ o(
|
|
65
|
+
$,
|
|
64
66
|
{
|
|
65
67
|
offset: 1,
|
|
66
68
|
containerPadding: 8,
|
|
67
69
|
className: z(),
|
|
68
70
|
placement: x,
|
|
69
|
-
children: h ? /* @__PURE__ */ d(
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
+
children: h ? /* @__PURE__ */ d(U, { filter: P, children: [
|
|
72
|
+
/* @__PURE__ */ o(
|
|
71
73
|
q,
|
|
72
74
|
{
|
|
73
75
|
"aria-label": g ?? O.formatMessage({
|
|
@@ -76,14 +78,14 @@ const H = A({
|
|
|
76
78
|
})
|
|
77
79
|
}
|
|
78
80
|
),
|
|
79
|
-
/* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ o(
|
|
80
82
|
f,
|
|
81
83
|
{
|
|
82
84
|
layout: y,
|
|
83
85
|
layoutOptions: {
|
|
84
86
|
padding: 8
|
|
85
87
|
},
|
|
86
|
-
children: /* @__PURE__ */
|
|
88
|
+
children: /* @__PURE__ */ o(
|
|
87
89
|
m,
|
|
88
90
|
{
|
|
89
91
|
items: t,
|
|
@@ -94,14 +96,14 @@ const H = A({
|
|
|
94
96
|
)
|
|
95
97
|
}
|
|
96
98
|
)
|
|
97
|
-
] }) : /* @__PURE__ */
|
|
99
|
+
] }) : /* @__PURE__ */ o(
|
|
98
100
|
f,
|
|
99
101
|
{
|
|
100
102
|
layout: y,
|
|
101
103
|
layoutOptions: {
|
|
102
104
|
padding: 8
|
|
103
105
|
},
|
|
104
|
-
children: /* @__PURE__ */
|
|
106
|
+
children: /* @__PURE__ */ o(
|
|
105
107
|
m,
|
|
106
108
|
{
|
|
107
109
|
items: t,
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { jsxs as e, Fragment as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { uyTv as
|
|
4
|
-
import {
|
|
2
|
+
import { forwardRef as m } from "react";
|
|
3
|
+
import { uyTv as c } from "@payfit/unity-themes";
|
|
4
|
+
import { Input as y } from "react-aria-components/Input";
|
|
5
|
+
import { SearchField as d } from "react-aria-components/SearchField";
|
|
5
6
|
import { useIntl as p } from "react-intl";
|
|
6
7
|
import { CircularIconButton as f } from "../../icon-button/CircularIconButton.js";
|
|
7
8
|
import { Icon as b } from "../../icon/Icon.js";
|
|
8
|
-
const h =
|
|
9
|
+
const h = c({
|
|
9
10
|
slots: {
|
|
10
11
|
base: "uy:flex uy:gap-100 uy:transition-colors uy:py-125 uy:sm:py-100 uy:px-150 uy:rounded-100 uy:sm:rounded-75 uy:bg-surface-form-high-enabled uy:text-content-form-active uy:mt-100 uy:mb-100 uy:ml-100 uy:mr-100 uy:typography-body uy:focus-within:border uy:focus-within:border-solid uy:focus-within:border-border-form-active",
|
|
11
12
|
input: "uy:flex-grow uy:outline-none uy:[&::-webkit-search-cancel-button]:hidden uy:min-h-300",
|
|
12
13
|
button: "uy:text-content-neutral-enabled",
|
|
13
14
|
separator: "uy:h-[1px] uy:bg-surface-neutral-lowest uy:w-full uy:mt-100"
|
|
14
15
|
}
|
|
15
|
-
}), g =
|
|
16
|
+
}), g = m(
|
|
16
17
|
({ "aria-label": r }, o) => {
|
|
17
18
|
const a = p(), { base: u, input: n, button: i, separator: s } = h();
|
|
18
19
|
return /* @__PURE__ */ e(l, { children: [
|
|
19
20
|
/* @__PURE__ */ e(
|
|
20
|
-
|
|
21
|
+
d,
|
|
21
22
|
{
|
|
22
23
|
className: u(),
|
|
23
24
|
ref: o,
|
|
@@ -32,7 +33,7 @@ const h = m({
|
|
|
32
33
|
color: "content.neutral.lowest"
|
|
33
34
|
}
|
|
34
35
|
),
|
|
35
|
-
/* @__PURE__ */ t(
|
|
36
|
+
/* @__PURE__ */ t(y, { className: n() }),
|
|
36
37
|
/* @__PURE__ */ t(
|
|
37
38
|
f,
|
|
38
39
|
{
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { uyTv as b } from "@payfit/unity-themes";
|
|
3
|
-
import { Button as p
|
|
3
|
+
import { Button as p } from "react-aria-components/Button";
|
|
4
|
+
import { SelectValue as n } from "react-aria-components/Select";
|
|
4
5
|
import { useIntl as v } from "react-intl";
|
|
5
6
|
import { Icon as u } from "../../icon/Icon.js";
|
|
6
7
|
const x = b({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
|
-
import { ListBoxItemProps } from 'react-aria-components';
|
|
2
|
+
import { ListBoxItemProps } from 'react-aria-components/ListBox';
|
|
3
3
|
/**
|
|
4
4
|
* SelectOption component for displaying options in a Select dropdown.
|
|
5
5
|
* @note The `textValue` prop (inherited from ListBoxItemProps) is used for searching when the content
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as y, Fragment as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as d } from "react";
|
|
3
3
|
import { uyTv as f } from "@payfit/unity-themes";
|
|
4
|
-
import { ListBoxItem as p } from "react-aria-components";
|
|
4
|
+
import { ListBoxItem as p } from "react-aria-components/ListBox";
|
|
5
5
|
import { Icon as m } from "../../icon/Icon.js";
|
|
6
6
|
import { SelectOptionProvider as b } from "./SelectOption.context.js";
|
|
7
7
|
const x = f({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ForwardedRef, JSX } from 'react';
|
|
2
|
-
import { ListBoxSectionProps } from 'react-aria-components';
|
|
2
|
+
import { ListBoxSectionProps } from 'react-aria-components/ListBox';
|
|
3
3
|
export interface SelectOptionGroupProps<T extends object> extends ListBoxSectionProps<T> {
|
|
4
4
|
label: string;
|
|
5
5
|
}
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { uyTv as
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { jsxs as p, Fragment as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as l } from "react";
|
|
3
|
+
import { uyTv as m } from "@payfit/unity-themes";
|
|
4
|
+
import { Collection as c } from "react-aria-components/Collection";
|
|
5
|
+
import { Header as y } from "react-aria-components/Header";
|
|
6
|
+
import { ListBoxSection as d } from "react-aria-components/ListBox";
|
|
7
|
+
import { Separator as f } from "react-aria-components/Separator";
|
|
8
|
+
const h = m({
|
|
6
9
|
slots: {
|
|
7
10
|
base: "",
|
|
8
11
|
header: "uy:text-content-neutral-enabled uy:typography-body-strong uy:pt-100 uy:pb-100 uy:pl-150 uy:pr-150",
|
|
9
12
|
separator: "uy:h-[1px] uy:bg-surface-neutral-lowest uy:w-full uy:mb-100 uy:mt-100 uy:last:hidden"
|
|
10
13
|
}
|
|
11
|
-
}), b = ({ label:
|
|
12
|
-
const { base: u, header: s, separator:
|
|
13
|
-
return /* @__PURE__ */ n
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
|
|
14
|
+
}), b = ({ label: e, children: t, items: o }, a) => {
|
|
15
|
+
const { base: u, header: s, separator: i } = h();
|
|
16
|
+
return /* @__PURE__ */ p(n, { children: [
|
|
17
|
+
/* @__PURE__ */ p(d, { ref: a, className: u(), id: e, items: o, children: [
|
|
18
|
+
/* @__PURE__ */ r(y, { className: s(), children: e }),
|
|
19
|
+
o ? /* @__PURE__ */ r(c, { items: o, children: t }) : /* @__PURE__ */ r(n, { children: t })
|
|
17
20
|
] }),
|
|
18
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ r(f, { orientation: "horizontal", className: i() })
|
|
19
22
|
] });
|
|
20
|
-
}, x =
|
|
21
|
-
return b(
|
|
23
|
+
}, x = l(function(t, o) {
|
|
24
|
+
return b(t, o);
|
|
22
25
|
});
|
|
23
26
|
x.displayName = "SelectOptionGroup";
|
|
24
27
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX, Ref } from 'react';
|
|
2
|
-
import { ListBoxProps as AriaListBoxProps } from 'react-aria-components';
|
|
2
|
+
import { ListBoxProps as AriaListBoxProps } from 'react-aria-components/ListBox';
|
|
3
3
|
/**
|
|
4
4
|
* Props for the SelectList component.
|
|
5
5
|
* @template TType - The type of items in the list
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s, Fragment as E } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as F, useMemo as
|
|
2
|
+
import { forwardRef as F, useMemo as m } from "react";
|
|
3
3
|
import { uyTv as R } from "@payfit/unity-themes";
|
|
4
|
-
import { useFilter as T,
|
|
4
|
+
import { useFilter as T, Autocomplete as H } from "react-aria-components/Autocomplete";
|
|
5
|
+
import { ListBox as M, Collection as O } from "react-aria-components/ListBox";
|
|
6
|
+
import { Separator as _ } from "react-aria-components/Separator";
|
|
7
|
+
import { Virtualizer as y } from "react-aria-components/Virtualizer";
|
|
5
8
|
import { DEFAULT_SEARCH_THRESHOLD as j, VIRTUALIZATION_CONFIG as d } from "./constants.js";
|
|
6
9
|
import { useControlledSelection as k } from "./hooks/useControlledSelection.js";
|
|
7
10
|
import { useSelectedFirstSorting as D } from "./hooks/useSelectedFirstSorting.js";
|
|
@@ -32,11 +35,11 @@ function K({
|
|
|
32
35
|
const { contains: L } = T({ sensitivity: "base" }), { wrapper: x, inputContainer: v, list: w, separator: C, selectedListBox: A } = G(), [i, l] = k(
|
|
33
36
|
f,
|
|
34
37
|
h
|
|
35
|
-
), N =
|
|
38
|
+
), N = m(() => (Array.isArray(r) ? r.length : Array.from(r).length) >= j || a, [r, a]), t = D(
|
|
36
39
|
r,
|
|
37
40
|
i,
|
|
38
41
|
g
|
|
39
|
-
), n =
|
|
42
|
+
), n = m(() => t.remainingItems ? !t.remainingItems[Symbol.iterator]().next().done : !1, [t.remainingItems]), u = /* @__PURE__ */ e(
|
|
40
43
|
U,
|
|
41
44
|
{
|
|
42
45
|
items: t.selectedItems,
|
|
@@ -49,7 +52,7 @@ function K({
|
|
|
49
52
|
"data-is-last": !n
|
|
50
53
|
}
|
|
51
54
|
), c = /* @__PURE__ */ e(
|
|
52
|
-
|
|
55
|
+
M,
|
|
53
56
|
{
|
|
54
57
|
...o,
|
|
55
58
|
className: w({ className: b }),
|
|
@@ -57,19 +60,19 @@ function K({
|
|
|
57
60
|
selectedKeys: i,
|
|
58
61
|
onSelectionChange: l,
|
|
59
62
|
renderEmptyState: V,
|
|
60
|
-
children: /* @__PURE__ */ e(
|
|
63
|
+
children: /* @__PURE__ */ e(O, { items: t.remainingItems, children: p })
|
|
61
64
|
}
|
|
62
65
|
);
|
|
63
|
-
return /* @__PURE__ */ e("div", { ref: I, className: x(), children: N ? /* @__PURE__ */ s(
|
|
66
|
+
return /* @__PURE__ */ e("div", { ref: I, className: x(), children: N ? /* @__PURE__ */ s(H, { filter: L, children: [
|
|
64
67
|
/* @__PURE__ */ s("div", { className: v(), "data-dd-privacy": "mask", children: [
|
|
65
68
|
/* @__PURE__ */ e(z, {}),
|
|
66
69
|
/* @__PURE__ */ e(_, { className: C() })
|
|
67
70
|
] }),
|
|
68
71
|
u,
|
|
69
|
-
n && /* @__PURE__ */ e(
|
|
72
|
+
n && /* @__PURE__ */ e(y, { ...d, children: c })
|
|
70
73
|
] }) : /* @__PURE__ */ s(E, { children: [
|
|
71
74
|
u,
|
|
72
|
-
n && /* @__PURE__ */ e(
|
|
75
|
+
n && /* @__PURE__ */ e(y, { ...d, children: c })
|
|
73
76
|
] }) });
|
|
74
77
|
}
|
|
75
78
|
const Z = F(K);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as t from "@payfit/unity-themes/tokens/common/spacings.json";
|
|
2
|
-
import { ListLayout as s } from "react-aria-components";
|
|
2
|
+
import { ListLayout as s } from "react-aria-components/Virtualizer";
|
|
3
3
|
const a = (o) => parseInt(o.replace("px", "").trim(), 10), i = a(t.spacing[500].$value), n = a(t.spacing[400].$value), p = {
|
|
4
4
|
layout: s,
|
|
5
5
|
layoutOptions: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Key } from 'react-aria-components';
|
|
1
|
+
import { Key } from 'react-aria-components/Breadcrumbs';
|
|
2
2
|
import { ProcessedDynamicContent, ProcessedFlatDynamicContent, SectionWithChildren, SelectableItem } from './SelectList.types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Type guard to check if an object has a children array property,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Key
|
|
1
|
+
import { Key } from 'react-aria-components/Breadcrumbs';
|
|
2
|
+
import { Selection } from 'react-aria-components/GridList';
|
|
2
3
|
/**
|
|
3
4
|
* Hook to manage controlled/uncontrolled selection state.
|
|
4
5
|
* Follows React's controlled component pattern.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ListBoxSectionProps } from 'react-aria-components';
|
|
1
|
+
import { ListBoxSectionProps } from 'react-aria-components/ListBox';
|
|
2
2
|
export declare const selectListOptGroup: import('tailwind-variants').TVReturnType<{
|
|
3
3
|
[key: string]: {
|
|
4
4
|
[key: string]: import('tailwind-merge').ClassNameValue | {
|