@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,6 +1,7 @@
|
|
|
1
1
|
import { jsxs as e, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as g } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { Group as y } from "react-aria-components/Group";
|
|
4
|
+
import { Toolbar as M } from "react-aria-components/Toolbar";
|
|
4
5
|
import { useIntl as x } from "react-intl";
|
|
5
6
|
import { actionBar as v } from "./ActionBar.variants.js";
|
|
6
7
|
import { useActionBarState as w } from "./hooks/use-action-bar-state.js";
|
|
@@ -29,7 +30,7 @@ const I = g(
|
|
|
29
30
|
defaultMessage: "Actions toolbar"
|
|
30
31
|
});
|
|
31
32
|
return /* @__PURE__ */ e(
|
|
32
|
-
|
|
33
|
+
M,
|
|
33
34
|
{
|
|
34
35
|
...a,
|
|
35
36
|
id: n,
|
|
@@ -43,7 +44,7 @@ const I = g(
|
|
|
43
44
|
children: [
|
|
44
45
|
o && /* @__PURE__ */ i(j, { ariaKeyshortcuts: a["aria-keyshortcuts"], children: o }),
|
|
45
46
|
h && /* @__PURE__ */ e(
|
|
46
|
-
|
|
47
|
+
y,
|
|
47
48
|
{
|
|
48
49
|
className: d(),
|
|
49
50
|
role: "group",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as a, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { Group as n } from "react-aria-components";
|
|
2
|
+
import { Group as n } from "react-aria-components/Group";
|
|
3
3
|
import { useIntl as i } from "react-intl";
|
|
4
4
|
import { actionBar as c } from "../ActionBar.variants.js";
|
|
5
5
|
const p = ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonProps as AriaButtonProps } from 'react-aria-components';
|
|
1
|
+
import { ButtonProps as AriaButtonProps } from 'react-aria-components/Button';
|
|
2
2
|
export interface ActionableProps extends AriaButtonProps {
|
|
3
3
|
/** Additional class names to apply to the actionable */
|
|
4
4
|
className?: string;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as H } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as k, useState as F, useMemo as E } from "react";
|
|
3
3
|
import { uyTv as N } from "@payfit/unity-themes";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { useButton as j } from "react-aria";
|
|
4
|
+
import { useObjectRef as x, useFocusVisible as S, useHover as U, useFocus as V, mergeProps as f } from "react-aria";
|
|
5
|
+
import { useButton as j } from "react-aria/useButton";
|
|
7
6
|
const w = N({
|
|
8
7
|
base: "uy:group",
|
|
9
8
|
variants: {
|
|
@@ -27,16 +26,16 @@ const w = N({
|
|
|
27
26
|
children: o,
|
|
28
27
|
...s
|
|
29
28
|
} = v;
|
|
30
|
-
e =
|
|
31
|
-
const { isFocusVisible:
|
|
29
|
+
e = x(e);
|
|
30
|
+
const { isFocusVisible: a } = S(), { isHovered: i, hoverProps: u } = U({
|
|
32
31
|
onHoverStart: s.onHoverStart,
|
|
33
32
|
onHoverEnd: s.onHoverEnd,
|
|
34
33
|
onHoverChange: s.onHoverChange,
|
|
35
34
|
isDisabled: s.isDisabled
|
|
36
|
-
}), [t, D] = F(!1), { focusProps: b } =
|
|
35
|
+
}), [t, D] = F(!1), { focusProps: b } = V({
|
|
37
36
|
onFocusChange: D,
|
|
38
37
|
isDisabled: s.isDisabled
|
|
39
|
-
}), { buttonProps:
|
|
38
|
+
}), { buttonProps: p, isPressed: n } = j(
|
|
40
39
|
{
|
|
41
40
|
...s,
|
|
42
41
|
isDisabled: s.isDisabled,
|
|
@@ -51,9 +50,9 @@ const w = N({
|
|
|
51
50
|
r.preventDefault(), r.stopPropagation();
|
|
52
51
|
return;
|
|
53
52
|
}
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
}, P = f(
|
|
53
|
+
const m = f(p, u, b);
|
|
54
|
+
m.onClick && m.onClick(r);
|
|
55
|
+
}, P = f(p, u, b), { onClick: M, ...h } = P;
|
|
57
56
|
return /* @__PURE__ */ H(
|
|
58
57
|
g,
|
|
59
58
|
{
|
|
@@ -62,16 +61,16 @@ const w = N({
|
|
|
62
61
|
className: y,
|
|
63
62
|
...n && { "data-pressed": n },
|
|
64
63
|
...t && { "data-focused": t },
|
|
65
|
-
...
|
|
64
|
+
...i && { "data-hovered": i },
|
|
66
65
|
...s.isDisabled && { "data-disabled": s.isDisabled },
|
|
67
|
-
...
|
|
66
|
+
...a && { "data-focus-visible": a },
|
|
68
67
|
ref: e,
|
|
69
68
|
children: typeof o == "function" ? o({
|
|
70
|
-
isHovered:
|
|
69
|
+
isHovered: i,
|
|
71
70
|
isPressed: n,
|
|
72
71
|
isFocused: t,
|
|
73
72
|
isDisabled: !!s.isDisabled,
|
|
74
|
-
isFocusVisible:
|
|
73
|
+
isFocusVisible: a,
|
|
75
74
|
isPending: !1,
|
|
76
75
|
defaultChildren: null
|
|
77
76
|
}) : o
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as r, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { Link as m } from "react-aria-components";
|
|
2
|
+
import { Link as m } from "react-aria-components/Link";
|
|
3
3
|
import { useIntl as s } from "react-intl";
|
|
4
4
|
import { IconButton as c } from "../../icon-button/IconButton.js";
|
|
5
5
|
import { PayFitBrand as y } from "../../payfit-brand/PayFitBrand.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from '@payfit/unity-themes';
|
|
2
2
|
import { LoadingState } from '@react-types/shared';
|
|
3
3
|
import { ForwardedRef, ReactNode } from 'react';
|
|
4
|
-
import { ComboBoxProps, ListBoxProps } from 'react-aria-components';
|
|
4
|
+
import { ComboBoxProps, ListBoxProps } from 'react-aria-components/ComboBox';
|
|
5
5
|
declare const autocomplete: import('tailwind-variants').TVReturnType<{
|
|
6
6
|
isReadOnly: {
|
|
7
7
|
true: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as R, useRef as A, useState as O, useCallback as W } from "react";
|
|
3
3
|
import { uyTv as k } from "@payfit/unity-themes";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { ComboBox as C, Input as z } from "react-aria-components/ComboBox";
|
|
5
|
+
import { useId as T } from "react-aria/useId";
|
|
6
6
|
import { useIntl as j } from "react-intl";
|
|
7
7
|
import { useResizeObserver as B } from "usehooks-ts";
|
|
8
8
|
import { Icon as y } from "../icon/Icon.js";
|
|
@@ -74,7 +74,7 @@ const L = k({
|
|
|
74
74
|
name: b,
|
|
75
75
|
feedbackText: p,
|
|
76
76
|
...h
|
|
77
|
-
} = a, i = j(), t = A(null), [g, v] = O(null), c =
|
|
77
|
+
} = a, i = j(), t = A(null), [g, v] = O(null), c = T(), x = W(() => {
|
|
78
78
|
t.current && v(`${t.current.offsetWidth}px`);
|
|
79
79
|
}, [t]);
|
|
80
80
|
B({ ref: t, onResize: x });
|
|
@@ -83,7 +83,7 @@ const L = k({
|
|
|
83
83
|
});
|
|
84
84
|
return /* @__PURE__ */ s("search", { ref: r, children: [
|
|
85
85
|
/* @__PURE__ */ s(
|
|
86
|
-
|
|
86
|
+
C,
|
|
87
87
|
{
|
|
88
88
|
className: w(),
|
|
89
89
|
name: b,
|
|
@@ -107,7 +107,7 @@ const L = k({
|
|
|
107
107
|
}
|
|
108
108
|
),
|
|
109
109
|
/* @__PURE__ */ e(
|
|
110
|
-
|
|
110
|
+
z,
|
|
111
111
|
{
|
|
112
112
|
className: I(),
|
|
113
113
|
"aria-describedby": c,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { useContext as u } from "react";
|
|
3
3
|
import { uyMerge as m } from "@payfit/unity-themes";
|
|
4
|
-
import { ComboBoxStateContext as a } from "react-aria-components";
|
|
4
|
+
import { ComboBoxStateContext as a } from "react-aria-components/ComboBox";
|
|
5
5
|
import { useIntl as s } from "react-intl";
|
|
6
6
|
import { CircularIconButton as i } from "../../icon-button/CircularIconButton.js";
|
|
7
7
|
const c = ({
|
|
@@ -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 autocompleteItem: import('tailwind-variants').TVReturnType<{
|
|
4
4
|
isDisabled: {
|
|
5
5
|
false: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as l } from "react";
|
|
3
3
|
import { uyTv as n } from "@payfit/unity-themes";
|
|
4
|
-
import { ListBoxItem as d } from "react-aria-components";
|
|
4
|
+
import { ListBoxItem as d } from "react-aria-components/ListBox";
|
|
5
5
|
const i = n({
|
|
6
6
|
base: [
|
|
7
7
|
"uy:flex uy:flex-col uy:typography-body uy:rounded-50 uy:pt-100 uy:pb-100 uy:pl-150 uy:pr-150 uy:outline-none uy:bg-surface-neutral-enabled uy:enabled:text-content-neutral-enabled",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from '@payfit/unity-themes';
|
|
2
2
|
import { ForwardedRef } from 'react';
|
|
3
|
-
import { ListBoxSectionProps } from 'react-aria-components';
|
|
3
|
+
import { ListBoxSectionProps } from 'react-aria-components/ListBox';
|
|
4
4
|
export declare const autocompleteItemGroup: import('tailwind-variants').TVReturnType<{
|
|
5
5
|
[key: string]: {
|
|
6
6
|
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
@@ -1,30 +1,33 @@
|
|
|
1
|
-
import { jsxs as a, jsx as e, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { uyTv as
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { jsxs as a, jsx as e, Fragment as p } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as i } from "react";
|
|
3
|
+
import { uyTv as c } from "@payfit/unity-themes";
|
|
4
|
+
import { Collection as y } from "react-aria-components/Collection";
|
|
5
|
+
import { Header as d } from "react-aria-components/Header";
|
|
6
|
+
import { ListBoxSection as f } from "react-aria-components/ListBox";
|
|
7
|
+
import { Separator as u } from "react-aria-components/Separator";
|
|
8
|
+
const h = c({
|
|
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:[section:last-child_&]:hidden"
|
|
10
13
|
}
|
|
11
|
-
}), b = ({ label: r, children:
|
|
12
|
-
const { base:
|
|
13
|
-
return /* @__PURE__ */ a(
|
|
14
|
-
/* @__PURE__ */ e(d, { className:
|
|
15
|
-
|
|
16
|
-
/* @__PURE__ */ e(
|
|
17
|
-
/* @__PURE__ */ e(
|
|
18
|
-
] }) : /* @__PURE__ */ a(
|
|
19
|
-
|
|
20
|
-
/* @__PURE__ */ e(
|
|
14
|
+
}), b = ({ label: r, children: t, items: o }, n) => {
|
|
15
|
+
const { base: l, header: s, separator: m } = h();
|
|
16
|
+
return /* @__PURE__ */ a(f, { ref: n, className: l(), id: r, items: o, children: [
|
|
17
|
+
/* @__PURE__ */ e(d, { className: s(), children: r }),
|
|
18
|
+
o ? /* @__PURE__ */ a(p, { children: [
|
|
19
|
+
/* @__PURE__ */ e(y, { items: o, children: t }),
|
|
20
|
+
/* @__PURE__ */ e(u, { orientation: "horizontal", className: m() })
|
|
21
|
+
] }) : /* @__PURE__ */ a(p, { children: [
|
|
22
|
+
t,
|
|
23
|
+
/* @__PURE__ */ e(u, { orientation: "horizontal", className: m() })
|
|
21
24
|
] })
|
|
22
25
|
] });
|
|
23
|
-
}, x =
|
|
24
|
-
return b(
|
|
26
|
+
}, x = i(function(t, o) {
|
|
27
|
+
return b(t, o);
|
|
25
28
|
});
|
|
26
29
|
x.displayName = "AutocompleteItemGroup";
|
|
27
30
|
export {
|
|
28
31
|
x as AutocompleteItemGroup,
|
|
29
|
-
|
|
32
|
+
h as autocompleteItemGroup
|
|
30
33
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
import { VariantProps } from '@payfit/unity-themes';
|
|
3
|
-
import { PopoverProps } from 'react-aria-components';
|
|
3
|
+
import { PopoverProps } from 'react-aria-components/Popover';
|
|
4
4
|
import { AutocompleteProps } from '../Autocomplete.js';
|
|
5
5
|
export declare const autocompletePanel: import('tailwind-variants').TVReturnType<{
|
|
6
6
|
[key: string]: {
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { uyTv as
|
|
3
|
-
import {
|
|
1
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { uyTv as y } from "@payfit/unity-themes";
|
|
3
|
+
import { ListBox as m } from "react-aria-components/ListBox";
|
|
4
|
+
import { Popover as c } from "react-aria-components/Popover";
|
|
4
5
|
import { FormattedMessage as d } from "react-intl";
|
|
5
6
|
import { Icon as p } from "../../icon/Icon.js";
|
|
6
7
|
import { Text as t } from "../../text/Text.js";
|
|
7
|
-
const f =
|
|
8
|
+
const f = y({
|
|
8
9
|
slots: {
|
|
9
10
|
base: "uy:rounded-75 uy:border uy:border-solid uy:border-border-neutral uy:w-[var(--trigger-width)] uy:bg-surface-neutral uy:max-h-[312px] uy:shadow-300",
|
|
10
11
|
list: "uy:overflow-y-auto uy:max-h-[296px] uy:p-100"
|
|
11
12
|
}
|
|
12
|
-
}), g = () => /* @__PURE__ */
|
|
13
|
+
}), g = () => /* @__PURE__ */ i("div", { className: "uy:flex uy:flex-col uy:gap-200 uy:items-center uy:justify-center uy:h-[312px]", children: [
|
|
13
14
|
/* @__PURE__ */ e(
|
|
14
15
|
t,
|
|
15
16
|
{
|
|
@@ -28,7 +29,7 @@ const f = i({
|
|
|
28
29
|
] }), h = (r) => {
|
|
29
30
|
const { children: o, panelWidth: s, searchRef: u, ...a } = r, { base: l, list: n } = f();
|
|
30
31
|
return /* @__PURE__ */ e(
|
|
31
|
-
|
|
32
|
+
c,
|
|
32
33
|
{
|
|
33
34
|
...a,
|
|
34
35
|
className: l(),
|
|
@@ -36,7 +37,7 @@ const f = i({
|
|
|
36
37
|
triggerRef: u,
|
|
37
38
|
isNonModal: !0,
|
|
38
39
|
style: { "--trigger-width": s },
|
|
39
|
-
children: /* @__PURE__ */ e(
|
|
40
|
+
children: /* @__PURE__ */ e(m, { className: n(), renderEmptyState: g, children: o })
|
|
40
41
|
}
|
|
41
42
|
);
|
|
42
43
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t, jsxs as f } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as s } from "react";
|
|
3
3
|
import { uyTv as c } from "@payfit/unity-themes";
|
|
4
|
-
import {
|
|
4
|
+
import { Dialog as h } from "react-aria-components/Dialog";
|
|
5
|
+
import { ModalOverlay as p, Modal as x } from "react-aria-components/Modal";
|
|
5
6
|
import { BottomSheetDragIndicator as w } from "./parts/BottomSheetDragIndicator.js";
|
|
6
7
|
const g = c({
|
|
7
8
|
slots: {
|
|
@@ -25,35 +26,35 @@ const g = c({
|
|
|
25
26
|
}
|
|
26
27
|
}), v = s(
|
|
27
28
|
({
|
|
28
|
-
children:
|
|
29
|
+
children: e,
|
|
29
30
|
isOpen: o,
|
|
30
31
|
onOpenChange: a,
|
|
31
32
|
defaultOpen: u,
|
|
32
|
-
isDismissable:
|
|
33
|
-
isKeyboardDismissDisabled:
|
|
33
|
+
isDismissable: r = !0,
|
|
34
|
+
isKeyboardDismissDisabled: y = !1,
|
|
34
35
|
...i
|
|
35
36
|
}, l) => {
|
|
36
|
-
const { overlay: d, wrapper:
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
-
|
|
37
|
+
const { overlay: d, wrapper: m, content: n } = g();
|
|
38
|
+
return /* @__PURE__ */ t(
|
|
39
|
+
p,
|
|
39
40
|
{
|
|
40
41
|
className: d(),
|
|
41
42
|
isOpen: o,
|
|
42
43
|
onOpenChange: a,
|
|
43
44
|
defaultOpen: u,
|
|
44
|
-
isDismissable:
|
|
45
|
-
isKeyboardDismissDisabled:
|
|
45
|
+
isDismissable: r,
|
|
46
|
+
isKeyboardDismissDisabled: y,
|
|
46
47
|
children: /* @__PURE__ */ f(
|
|
47
|
-
|
|
48
|
+
x,
|
|
48
49
|
{
|
|
49
50
|
"data-dd-privacy": "allow",
|
|
50
51
|
...i,
|
|
51
52
|
ref: l,
|
|
52
|
-
className:
|
|
53
|
+
className: m(),
|
|
53
54
|
"data-unity-bottom-sheet": !0,
|
|
54
55
|
children: [
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ t(w, {}),
|
|
57
|
+
/* @__PURE__ */ t(h, { className: n(), children: e })
|
|
57
58
|
]
|
|
58
59
|
}
|
|
59
60
|
)
|
|
@@ -2,7 +2,7 @@ import { jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import { useRef as h, useContext as b } from "react";
|
|
3
3
|
import { uyTv as g } from "@payfit/unity-themes";
|
|
4
4
|
import { useDrag as x } from "@use-gesture/react";
|
|
5
|
-
import { OverlayTriggerStateContext as D } from "react-aria-components";
|
|
5
|
+
import { OverlayTriggerStateContext as D } from "react-aria-components/Dialog";
|
|
6
6
|
import { useBreakpointListener as v } from "../../../hooks/use-breakpoint-listener.js";
|
|
7
7
|
const S = g({
|
|
8
8
|
slots: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as y } from "react";
|
|
3
3
|
import { uyTv as i } from "@payfit/unity-themes";
|
|
4
|
-
import { Heading as c } from "react-aria-components";
|
|
4
|
+
import { Heading as c } from "react-aria-components/Heading";
|
|
5
5
|
import { CircularIconButton as m } from "../../icon-button/CircularIconButton.js";
|
|
6
6
|
const d = i({
|
|
7
7
|
slots: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from '@payfit/unity-themes';
|
|
2
2
|
import { ComponentPropsWithoutRef, ReactElement, ReactNode, Ref } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { BreadcrumbsProps as AriaBreadcrumbsProps } from 'react-aria-components/Breadcrumbs';
|
|
4
|
+
import { AriaBreadcrumbsProps as AriaAriaBreadcrumbsProps } from 'react-aria/useBreadcrumbs';
|
|
5
5
|
import { Breadcrumb } from './parts/Breadcrumb.js';
|
|
6
6
|
import { breadcrumbsVariant } from './Breadcrumbs.variant.js';
|
|
7
7
|
export interface BreadcrumbsProps extends AriaAriaBreadcrumbsProps, Pick<AriaBreadcrumbsProps<never>, 'onAction'> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as d, Fragment as m } from "react";
|
|
3
|
-
import { Breadcrumbs as p } from "react-aria-components";
|
|
3
|
+
import { Breadcrumbs as p } from "react-aria-components/Breadcrumbs";
|
|
4
4
|
import { useBreakpointListener as u } from "../../hooks/use-breakpoint-listener.js";
|
|
5
5
|
import { BreadcrumbsProvider as l } from "./Breadcrumbs.context.js";
|
|
6
6
|
import { breadcrumbsVariant as f } from "./Breadcrumbs.variant.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactElement } from 'react';
|
|
2
|
-
import { BreadcrumbProps as AriaBreadcrumbProps } from 'react-aria-components';
|
|
2
|
+
import { BreadcrumbProps as AriaBreadcrumbProps } from 'react-aria-components/Breadcrumbs';
|
|
3
3
|
import { RawBreadcrumbLinkProps } from './RawBreadcrumbLink.js';
|
|
4
4
|
export interface BreadcrumbProps extends Omit<AriaBreadcrumbProps, 'children' | 'className' | 'style'> {
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e, Fragment as p } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as b } from "react";
|
|
3
|
-
import { Breadcrumb as n } from "react-aria-components";
|
|
3
|
+
import { Breadcrumb as n } from "react-aria-components/Breadcrumbs";
|
|
4
4
|
import { Icon as s } from "../../icon/Icon.js";
|
|
5
5
|
import { useBreadcrumbsContext as f } from "../Breadcrumbs.context.js";
|
|
6
6
|
import { breadcrumbsVariant as h } from "../Breadcrumbs.variant.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UnityIcon } from '@payfit/unity-icons';
|
|
2
2
|
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { ButtonProps as AriaButtonProps } from 'react-aria-components';
|
|
3
|
+
import { ButtonProps as AriaButtonProps } from 'react-aria-components/Button';
|
|
4
4
|
import { ButtonBase, ButtonFilled, ButtonGhost, ButtonOutlined } from './Button.variants.js';
|
|
5
5
|
type UnityButtonProps = AriaButtonProps & ButtonBase & {
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as b, useMemo as w } from "react";
|
|
3
3
|
import { uyMerge as m } from "@payfit/unity-themes";
|
|
4
|
-
import { Button as x } from "react-aria-components";
|
|
4
|
+
import { Button as x } from "react-aria-components/Button";
|
|
5
5
|
import { Icon as B } from "../icon/Icon.js";
|
|
6
6
|
import { Spinner as N } from "../spinner/Spinner.js";
|
|
7
7
|
import { buttonGhost as v, buttonOutlined as j, buttonFilled as I } from "./Button.variants.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as y } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as g, useRef as C, useState as E, useLayoutEffect as _ } from "react";
|
|
3
3
|
import { uyTv as S } from "@payfit/unity-themes";
|
|
4
|
-
import { useId as x } from "react-aria";
|
|
4
|
+
import { useId as x } from "react-aria/useId";
|
|
5
5
|
import { CardContext as N } from "./Card.context.js";
|
|
6
6
|
var T = {};
|
|
7
7
|
const V = S({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { uyTv as n } from "@payfit/unity-themes";
|
|
3
|
-
import { Heading as o } from "react-aria-components";
|
|
3
|
+
import { Heading as o } from "react-aria-components/Heading";
|
|
4
4
|
import { useCardContext as d } from "../Card.context.js";
|
|
5
5
|
const l = n({
|
|
6
6
|
base: ["uy:typography-h3 uy:text-content-neutral uy:leading-none"],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { CheckboxProps as AriaCheckboxProps } from 'react-aria-components';
|
|
2
|
+
import { CheckboxProps as AriaCheckboxProps } from 'react-aria-components/Checkbox';
|
|
3
3
|
export interface CheckboxProps extends Omit<AriaCheckboxProps, 'className'> {
|
|
4
4
|
/**
|
|
5
5
|
* The content to display as the checkbox label.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as l, jsx as a, Fragment as j } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as B, isValidElement as h, cloneElement as f } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Checkbox as R } from "react-aria-components/Checkbox";
|
|
4
|
+
import { useId as D } from "react-aria/useId";
|
|
5
5
|
import { Text as u } from "../text/Text.js";
|
|
6
6
|
import { checkbox as E } from "./Checkbox.variants.js";
|
|
7
7
|
import { CheckboxIndicator as V } from "./parts/CheckboxIndicator.js";
|
|
8
8
|
const F = B(
|
|
9
9
|
({ children: v, helperText: i, feedbackText: r, ...o }, N) => {
|
|
10
|
-
const e =
|
|
10
|
+
const e = D(), {
|
|
11
11
|
isDisabled: s,
|
|
12
12
|
isReadOnly: d,
|
|
13
13
|
isInvalid: t,
|
|
@@ -33,7 +33,7 @@ const F = B(
|
|
|
33
33
|
].filter(Boolean), w = y.length > 0 ? y.join(" ") : void 0, I = p.length > 0 ? p.join(" ") : void 0;
|
|
34
34
|
return /* @__PURE__ */ l("div", { className: g(), children: [
|
|
35
35
|
/* @__PURE__ */ a(
|
|
36
|
-
|
|
36
|
+
R,
|
|
37
37
|
{
|
|
38
38
|
...x,
|
|
39
39
|
isInvalid: t,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { CheckboxProps as AriaCheckboxProps } from 'react-aria-components';
|
|
2
|
+
import { CheckboxProps as AriaCheckboxProps } from 'react-aria-components/Checkbox';
|
|
3
3
|
export interface CheckboxStandaloneProps extends AriaCheckboxProps {
|
|
4
4
|
/**
|
|
5
5
|
* The content to display as the checkbox label.
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as e, jsxs as f, Fragment as h } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as x } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Checkbox as p } from "react-aria-components/Checkbox";
|
|
4
|
+
import { useId as y } from "react-aria/useId";
|
|
5
5
|
import { checkbox as k } from "./Checkbox.variants.js";
|
|
6
6
|
import { CheckboxIndicator as C } from "./parts/CheckboxIndicator.js";
|
|
7
7
|
const I = x(({ children: r, ...a }, i) => {
|
|
8
|
-
const o =
|
|
8
|
+
const o = y(), { isDisabled: n, isReadOnly: s, isInvalid: d } = a, { base: t, wrapper: c } = k({
|
|
9
9
|
isDisabled: n,
|
|
10
10
|
isReadOnly: s,
|
|
11
11
|
isInvalid: d
|
|
12
12
|
}), l = [a["aria-labelledby"], `${o}-label`].filter(Boolean), m = l.length > 0 ? l.join(" ") : void 0;
|
|
13
13
|
return /* @__PURE__ */ e("div", { className: t(), children: /* @__PURE__ */ e(
|
|
14
|
-
|
|
14
|
+
p,
|
|
15
15
|
{
|
|
16
16
|
...a,
|
|
17
17
|
ref: i,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from '@payfit/unity-themes';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { CheckboxGroupProps as AriaCheckboxGroupProps } from 'react-aria-components';
|
|
3
|
+
import { CheckboxGroupProps as AriaCheckboxGroupProps } from 'react-aria-components/CheckboxGroup';
|
|
4
4
|
export declare const checkboxGroup: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "uy:flex uy:flex-col uy:gap-50", {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, "uy:flex uy:flex-col uy:gap-50", unknown, unknown, undefined>>;
|
|
5
5
|
export interface CheckboxGroupProps extends VariantProps<typeof checkboxGroup>, Omit<AriaCheckboxGroupProps, 'className' | 'class'> {
|
|
6
6
|
/** The label for the checkbox group. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as f, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as d, isValidElement as x, cloneElement as h } from "react";
|
|
3
3
|
import { uyTv as g } from "@payfit/unity-themes";
|
|
4
|
-
import { CheckboxGroup as b } from "react-aria-components";
|
|
4
|
+
import { CheckboxGroup as b } from "react-aria-components/CheckboxGroup";
|
|
5
5
|
import { Label as v } from "../label/Label.js";
|
|
6
6
|
import { Text as c } from "../text/Text.js";
|
|
7
7
|
const G = g({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as x, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as M, useRef as T, useMemo as q } from "react";
|
|
3
3
|
import { uyTv as R } from "@payfit/unity-themes";
|
|
4
|
-
import { useId as S } from "react-aria";
|
|
4
|
+
import { useId as S } from "react-aria/useId";
|
|
5
5
|
import { useIntl as E } from "react-intl";
|
|
6
|
-
import { useOverlayTriggerState as W } from "react-stately";
|
|
6
|
+
import { useOverlayTriggerState as W } from "react-stately/useOverlayTriggerState";
|
|
7
7
|
import { usePagination as $ } from "./hooks/use-pagination.js";
|
|
8
8
|
import { PaginationEllipsis as j } from "./parts/PaginationEllipsis.js";
|
|
9
9
|
import { PaginationJumpDialog as J } from "./parts/PaginationJumpDialog.js";
|
|
@@ -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
|
import { paginationLink } from './RawPaginationLink.js';
|
|
4
4
|
export interface PaginationEllipsisProps extends Omit<ButtonProps, 'value' | 'children' | 'className' | 'style' | 'slot'>, VariantProps<typeof paginationLink> {
|
|
5
5
|
value: [number, number];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as l, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as r } from "react";
|
|
3
3
|
import { uyTv as a } from "@payfit/unity-themes";
|
|
4
|
-
import { Button as y } from "react-aria-components";
|
|
4
|
+
import { Button as y } from "react-aria-components/Button";
|
|
5
5
|
import { useIntl as p } from "react-intl";
|
|
6
6
|
const c = a({
|
|
7
7
|
base: [
|