@payfit/unity-components 2.25.3 → 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,7 +1,8 @@
|
|
|
1
1
|
import { jsxs as n, jsx as e, Fragment as m } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as L, useEffect as R } from "react";
|
|
3
3
|
import { uyTv as j } from "@payfit/unity-themes";
|
|
4
|
-
import {
|
|
4
|
+
import { Button as O } from "react-aria-components/Button";
|
|
5
|
+
import { Link as z } from "react-aria-components/Link";
|
|
5
6
|
import { useIntl as E, FormattedMessage as i } from "react-intl";
|
|
6
7
|
import { useRouter as F } from "../../../providers/router/RouterProvider.js";
|
|
7
8
|
import { Icon as p } from "../../icon/Icon.js";
|
|
@@ -71,14 +72,14 @@ const V = j({
|
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
74
|
]
|
|
74
|
-
}), B = (t, o,
|
|
75
|
+
}), B = (t, o, a) => {
|
|
75
76
|
switch (t) {
|
|
76
77
|
case "completed":
|
|
77
78
|
return /* @__PURE__ */ n(m, { children: [
|
|
78
79
|
/* @__PURE__ */ e(
|
|
79
80
|
p,
|
|
80
81
|
{
|
|
81
|
-
className:
|
|
82
|
+
className: a?.completed,
|
|
82
83
|
src: "CheckCircleOutlined",
|
|
83
84
|
size: 20,
|
|
84
85
|
color: "content.success",
|
|
@@ -102,7 +103,7 @@ const V = j({
|
|
|
102
103
|
p,
|
|
103
104
|
{
|
|
104
105
|
"aria-hidden": "true",
|
|
105
|
-
className:
|
|
106
|
+
className: a?.locked,
|
|
106
107
|
src: "LockOutlined",
|
|
107
108
|
size: 20,
|
|
108
109
|
color: "content.neutral.lowest",
|
|
@@ -127,7 +128,7 @@ const V = j({
|
|
|
127
128
|
({
|
|
128
129
|
href: t,
|
|
129
130
|
label: o,
|
|
130
|
-
taskStatus:
|
|
131
|
+
taskStatus: a = "uncompleted",
|
|
131
132
|
isExact: u,
|
|
132
133
|
isDisabled: y,
|
|
133
134
|
onPress: f,
|
|
@@ -138,22 +139,22 @@ const V = j({
|
|
|
138
139
|
R(() => {
|
|
139
140
|
t && d?.isActive(t.toString(), u) && l?.({ uniqueId: s, label: o });
|
|
140
141
|
}, [t, u, d, s, o, l]);
|
|
141
|
-
const
|
|
142
|
-
isSelected:
|
|
143
|
-
taskStatus:
|
|
142
|
+
const r = b?.uniqueId === s, { base: v, element: S, text: x, dot: N, lock: w } = V({
|
|
143
|
+
isSelected: r,
|
|
144
|
+
taskStatus: a
|
|
144
145
|
}), M = Object.assign(
|
|
145
146
|
{},
|
|
146
|
-
|
|
147
|
-
"data-current":
|
|
148
|
-
"aria-current":
|
|
147
|
+
r !== void 0 && {
|
|
148
|
+
"data-current": r,
|
|
149
|
+
"aria-current": r ? "page" : void 0
|
|
149
150
|
}
|
|
150
|
-
), T = t ?
|
|
151
|
+
), T = t ? z : O;
|
|
151
152
|
return /* @__PURE__ */ n(
|
|
152
153
|
"li",
|
|
153
154
|
{
|
|
154
155
|
ref: g,
|
|
155
156
|
className: v(),
|
|
156
|
-
...
|
|
157
|
+
...r ? { "data-current": !0 } : {},
|
|
157
158
|
...c,
|
|
158
159
|
children: [
|
|
159
160
|
/* @__PURE__ */ e(D, { width: 8, height: 8, className: N(), role: "presentation" }),
|
|
@@ -174,11 +175,11 @@ const V = j({
|
|
|
174
175
|
{
|
|
175
176
|
asElement: "span",
|
|
176
177
|
className: x(),
|
|
177
|
-
variant:
|
|
178
|
+
variant: r ? "bodyStrong" : "body",
|
|
178
179
|
children: o
|
|
179
180
|
}
|
|
180
181
|
),
|
|
181
|
-
B(
|
|
182
|
+
B(a, k, {
|
|
182
183
|
locked: w(),
|
|
183
184
|
completed: "uy:self-center"
|
|
184
185
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from '@payfit/unity-themes';
|
|
2
2
|
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { AriaButtonProps } from 'react-aria';
|
|
3
|
+
import { AriaButtonProps } from 'react-aria/useButton';
|
|
4
4
|
export declare const rawTask: import('tailwind-variants').TVReturnType<{
|
|
5
5
|
isSelected: {
|
|
6
6
|
false: string;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as o, jsx as e, Fragment as p } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as O, useEffect as F } from "react";
|
|
3
3
|
import { uyTv as G } from "@payfit/unity-themes";
|
|
4
|
-
import {
|
|
4
|
+
import { Button as P } from "react-aria-components/Button";
|
|
5
|
+
import { Link as z } from "react-aria-components/Link";
|
|
5
6
|
import { useIntl as A, FormattedMessage as g } from "react-intl";
|
|
6
7
|
import { useRouter as B } from "../../../providers/router/RouterProvider.js";
|
|
7
8
|
import { Icon as y } from "../../icon/Icon.js";
|
|
8
|
-
import { Text as
|
|
9
|
+
import { Text as f } from "../../text/Text.js";
|
|
9
10
|
import { useTaskMenuContext as V } from "../TaskMenu.context.js";
|
|
10
11
|
import { commonTask as D } from "./task.variants.js";
|
|
11
12
|
const H = G({
|
|
@@ -64,23 +65,23 @@ const H = G({
|
|
|
64
65
|
href: a,
|
|
65
66
|
isExact: u = !1,
|
|
66
67
|
label: s,
|
|
67
|
-
onPress:
|
|
68
|
+
onPress: k,
|
|
68
69
|
taskNumber: b,
|
|
69
|
-
taskStatus:
|
|
70
|
+
taskStatus: n = "uncompleted",
|
|
70
71
|
children: h,
|
|
71
72
|
uniqueId: r,
|
|
72
|
-
...
|
|
73
|
+
...m
|
|
73
74
|
}, v) => {
|
|
74
|
-
const
|
|
75
|
+
const c = B(), d = A(), {
|
|
75
76
|
currentTask: x,
|
|
76
77
|
setCurrentTask: l,
|
|
77
78
|
state: N,
|
|
78
79
|
expandedTaskGroup: i,
|
|
79
80
|
toggleTaskGroup: T
|
|
80
|
-
} = V(), S = a ?
|
|
81
|
+
} = V(), S = a ? z : P;
|
|
81
82
|
F(() => {
|
|
82
|
-
a &&
|
|
83
|
-
}, [a, u,
|
|
83
|
+
a && c?.isActive(a.toString(), u) && l?.({ uniqueId: r, label: s });
|
|
84
|
+
}, [a, u, c, s, r, l]);
|
|
84
85
|
const t = x?.uniqueId === r, M = Object.assign(
|
|
85
86
|
{},
|
|
86
87
|
t !== void 0 && {
|
|
@@ -89,28 +90,28 @@ const H = G({
|
|
|
89
90
|
}
|
|
90
91
|
), { base: w, number: C, element: L, text: R, lock: j } = H({
|
|
91
92
|
isSelected: t,
|
|
92
|
-
taskStatus:
|
|
93
|
+
taskStatus: n
|
|
93
94
|
});
|
|
94
|
-
return /* @__PURE__ */
|
|
95
|
-
/* @__PURE__ */
|
|
95
|
+
return /* @__PURE__ */ o("li", { ref: v, className: w(), ...m, children: [
|
|
96
|
+
/* @__PURE__ */ o(
|
|
96
97
|
S,
|
|
97
98
|
{
|
|
98
99
|
className: L(),
|
|
99
100
|
href: a,
|
|
100
101
|
onPress: (E) => {
|
|
101
|
-
l?.({ uniqueId: r, label: s }), N?.toggle(), i && T?.(i),
|
|
102
|
+
l?.({ uniqueId: r, label: s }), N?.toggle(), i && T?.(i), k?.(E);
|
|
102
103
|
},
|
|
103
104
|
...M,
|
|
104
|
-
...
|
|
105
|
+
...m,
|
|
105
106
|
children: [
|
|
106
|
-
/* @__PURE__ */ e("div", { className: C(), children:
|
|
107
|
+
/* @__PURE__ */ e("div", { className: C(), children: n === "completed" ? /* @__PURE__ */ o(p, { children: [
|
|
107
108
|
/* @__PURE__ */ e(
|
|
108
109
|
y,
|
|
109
110
|
{
|
|
110
111
|
size: 24,
|
|
111
112
|
"aria-hidden": "true",
|
|
112
113
|
src: "CheckOutlined",
|
|
113
|
-
alt:
|
|
114
|
+
alt: d.formatMessage({
|
|
114
115
|
id: "unity:component:task-menu:task:completed:label",
|
|
115
116
|
defaultMessage: "Completed"
|
|
116
117
|
})
|
|
@@ -124,7 +125,7 @@ const H = G({
|
|
|
124
125
|
}
|
|
125
126
|
) })
|
|
126
127
|
] }) : /* @__PURE__ */ e(
|
|
127
|
-
|
|
128
|
+
f,
|
|
128
129
|
{
|
|
129
130
|
asElement: "span",
|
|
130
131
|
variant: t ? "bodyStrong" : "body",
|
|
@@ -133,7 +134,7 @@ const H = G({
|
|
|
133
134
|
}
|
|
134
135
|
) }),
|
|
135
136
|
/* @__PURE__ */ e(
|
|
136
|
-
|
|
137
|
+
f,
|
|
137
138
|
{
|
|
138
139
|
asElement: "span",
|
|
139
140
|
className: R(),
|
|
@@ -141,14 +142,14 @@ const H = G({
|
|
|
141
142
|
children: s
|
|
142
143
|
}
|
|
143
144
|
),
|
|
144
|
-
|
|
145
|
+
n === "locked" && /* @__PURE__ */ o(p, { children: [
|
|
145
146
|
/* @__PURE__ */ e(
|
|
146
147
|
y,
|
|
147
148
|
{
|
|
148
149
|
"aria-hidden": "true",
|
|
149
150
|
className: j(),
|
|
150
151
|
src: "LockOutlined",
|
|
151
|
-
alt:
|
|
152
|
+
alt: d.formatMessage({
|
|
152
153
|
id: "unity:component:task-menu:task:lock:label",
|
|
153
154
|
defaultMessage: "Locked"
|
|
154
155
|
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as j, Children as i, isValidElement as o, cloneElement as A } from "react";
|
|
3
3
|
import { uyTv as V } from "@payfit/unity-themes";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { Button as $ } from "react-aria-components/Button";
|
|
5
|
+
import { useId as B } from "react-aria/useId";
|
|
6
6
|
import { useIntl as D } from "react-intl";
|
|
7
7
|
import { Icon as F } from "../../icon/Icon.js";
|
|
8
8
|
import { Text as f } from "../../text/Text.js";
|
|
@@ -88,7 +88,7 @@ const P = V({
|
|
|
88
88
|
uniqueId: m,
|
|
89
89
|
...g
|
|
90
90
|
}, k) => {
|
|
91
|
-
const { currentTask: v, setCurrentTask: x, toggleTaskGroup: S, expandedTaskGroup: h } = H(), c =
|
|
91
|
+
const { currentTask: v, setCurrentTask: x, toggleTaskGroup: S, expandedTaskGroup: h } = H(), c = B(), T = D(), a = h === m, N = (u) => {
|
|
92
92
|
if (S?.(m), !u) {
|
|
93
93
|
const b = U(e);
|
|
94
94
|
if (o(b)) {
|
|
@@ -113,7 +113,7 @@ const P = V({
|
|
|
113
113
|
className: I(),
|
|
114
114
|
children: [
|
|
115
115
|
/* @__PURE__ */ l(
|
|
116
|
-
|
|
116
|
+
$,
|
|
117
117
|
{
|
|
118
118
|
id: p,
|
|
119
119
|
className: z(),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as x } from "react";
|
|
3
3
|
import { uyTv as h } from "@payfit/unity-themes";
|
|
4
|
-
import { TextArea as v } from "react-aria-components";
|
|
4
|
+
import { TextArea as v } from "react-aria-components/TextArea";
|
|
5
5
|
import { useIntl as w } from "react-intl";
|
|
6
6
|
import { useResizable as M } from "../../hooks/use-resizable.js";
|
|
7
7
|
import { Icon as z } from "../icon/Icon.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as d, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as f } from "react";
|
|
3
|
-
import { useId as c } from "react-aria";
|
|
3
|
+
import { useId as c } from "react-aria/useId";
|
|
4
4
|
import { TimelineProvider as p } from "./Timeline.context.js";
|
|
5
5
|
import { timeline as u } from "./Timeline.variants.js";
|
|
6
6
|
const v = f(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from '@payfit/unity-themes';
|
|
2
|
-
import { SwitchProps as AriaSwitchProps } from 'react-aria-components';
|
|
2
|
+
import { SwitchProps as AriaSwitchProps } from 'react-aria-components/Switch';
|
|
3
3
|
export declare const toggleSwitch: import('tailwind-variants').TVReturnType<{
|
|
4
4
|
isDisabled: {
|
|
5
5
|
false: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as h } from "react";
|
|
3
3
|
import { uyTv as v } from "@payfit/unity-themes";
|
|
4
|
-
import { Switch as b } from "react-aria-components";
|
|
4
|
+
import { Switch as b } from "react-aria-components/Switch";
|
|
5
5
|
import { useBreakpointListener as w } from "../../hooks/use-breakpoint-listener.js";
|
|
6
6
|
const x = v({
|
|
7
7
|
slots: {
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { jsxs as y, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as n } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { Button as p } from "react-aria-components/Button";
|
|
4
|
+
import { TooltipTrigger as u, Tooltip as i } from "react-aria-components/Tooltip";
|
|
4
5
|
import { Button as d } from "../button/Button.js";
|
|
5
|
-
const
|
|
6
|
+
const m = (o) => o.type === d || o.type === p, c = {
|
|
6
7
|
short: [100, 150],
|
|
7
8
|
standard: [150, 200],
|
|
8
9
|
long: [200, 300],
|
|
9
10
|
"very-long": [300, 400]
|
|
10
|
-
},
|
|
11
|
+
}, T = n(
|
|
11
12
|
({ title: o, children: t, duration: a = "standard" }, e) => {
|
|
12
|
-
const [l, s] =
|
|
13
|
+
const [l, s] = c[a];
|
|
13
14
|
return /* @__PURE__ */ y(u, { delay: l, closeDelay: s, children: [
|
|
14
15
|
t,
|
|
15
16
|
/* @__PURE__ */ r(
|
|
16
|
-
|
|
17
|
+
i,
|
|
17
18
|
{
|
|
18
19
|
ref: e,
|
|
19
20
|
"data-dd-privacy": "allow",
|
|
20
|
-
offset:
|
|
21
|
+
offset: m(t) ? 6 : 8,
|
|
21
22
|
className: "uy:inline-flex uy:rounded-50 uy:pl-100 uy:pr-100 uy:pt-50 uy:pb-50 uy:bg-grayscale-l12 uy:max-w-[300px] uy:shadow-100",
|
|
22
23
|
children: /* @__PURE__ */ r("p", { className: "uy:typography-body-small uy:text-content-inverted uy:overflow-hidden uy:text-ellipsis uy:line-clamp-3", children: o })
|
|
23
24
|
}
|
|
@@ -26,5 +27,5 @@ const c = (o) => o.type === d || o.type === i, m = {
|
|
|
26
27
|
}
|
|
27
28
|
);
|
|
28
29
|
export {
|
|
29
|
-
|
|
30
|
+
T as Tooltip
|
|
30
31
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { useAsyncList } from 'react-stately';
|
|
1
|
+
import { useAsyncList } from 'react-stately/useAsyncList';
|
|
2
2
|
export { useAsyncList };
|
package/dist/esm/index.js
CHANGED
|
@@ -226,9 +226,9 @@ import { CarouselHeader as rf, carouselHeader as tf } from "./components/carouse
|
|
|
226
226
|
import { CarouselNav as af, carouselNav as mf } from "./components/carousel/parts/CarouselNav.js";
|
|
227
227
|
import { CarouselContent as nf, carouselContent as ff } from "./components/carousel/parts/CarouselContent.js";
|
|
228
228
|
import { CarouselSlide as uf, carouselSlide as df } from "./components/carousel/parts/CarouselSlide.js";
|
|
229
|
-
import { DialogTrigger as gf, DialogTrigger as sf } from "react-aria-components";
|
|
229
|
+
import { DialogTrigger as gf, DialogTrigger as sf } from "react-aria-components/Dialog";
|
|
230
230
|
import { FilterAdapters as bf } from "./components/filter-toolbar/utils/filter-adapters.js";
|
|
231
|
-
import { useAsyncList as Tf } from "react-stately";
|
|
231
|
+
import { useAsyncList as Tf } from "react-stately/useAsyncList";
|
|
232
232
|
export {
|
|
233
233
|
p as ActionBar,
|
|
234
234
|
m as ActionBarAction,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { useContext as s } from "react";
|
|
3
|
-
import { TabListStateContext as i } from "react-aria-components";
|
|
3
|
+
import { TabListStateContext as i } from "react-aria-components/Tabs";
|
|
4
4
|
import { TabPanel as r } from "../../../../../components/tabs/parts/TabPanel.js";
|
|
5
5
|
function m({
|
|
6
6
|
children: t,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payfit/unity-components",
|
|
3
|
-
"version": "2.25.
|
|
3
|
+
"version": "2.25.5",
|
|
4
4
|
"module": "./dist/esm/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@hookform/devtools": "4.4.0",
|
|
43
43
|
"@hookform/resolvers": "5.2.1",
|
|
44
44
|
"@internationalized/date": "3.12.1",
|
|
45
|
-
"@payfit/unity-illustrations": "2.25.
|
|
45
|
+
"@payfit/unity-illustrations": "2.25.5",
|
|
46
46
|
"@radix-ui/react-avatar": "1.1.11",
|
|
47
47
|
"@radix-ui/react-slot": "1.2.4",
|
|
48
48
|
"@react-aria/interactions": "3.28.0",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"@hookform/devtools": "^4",
|
|
77
|
-
"@payfit/unity-icons": "2.25.
|
|
78
|
-
"@payfit/unity-themes": "2.25.
|
|
77
|
+
"@payfit/unity-icons": "2.25.5",
|
|
78
|
+
"@payfit/unity-themes": "2.25.5",
|
|
79
79
|
"@storybook/react-vite": "^10.3.2",
|
|
80
80
|
"@tanstack/react-query": "^5",
|
|
81
81
|
"@tanstack/react-router": "^1.131",
|
|
@@ -95,9 +95,9 @@
|
|
|
95
95
|
"@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
|
|
96
96
|
"@payfit/storybook-addon-console-errors": "0.0.0-use.local",
|
|
97
97
|
"@payfit/storybook-config": "0.0.0-use.local",
|
|
98
|
-
"@payfit/unity-icons": "2.25.
|
|
99
|
-
"@payfit/unity-illustrations": "2.25.
|
|
100
|
-
"@payfit/unity-themes": "2.25.
|
|
98
|
+
"@payfit/unity-icons": "2.25.5",
|
|
99
|
+
"@payfit/unity-illustrations": "2.25.5",
|
|
100
|
+
"@payfit/unity-themes": "2.25.5",
|
|
101
101
|
"@payfit/vite-configs": "0.0.0-use.local",
|
|
102
102
|
"@storybook/addon-a11y": "10.3.5",
|
|
103
103
|
"@storybook/addon-designs": "11.1.3",
|