@payfit/unity-components 3.29.59 → 3.29.61
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/core/components/action-bar/parts/ActionBarOverflowMenu.d.ts +1 -1
- package/dist/esm/core/components/action-bar/parts/ActionBarPrefixArea.d.ts +1 -1
- package/dist/esm/core/components/actionable/Actionable.js +13 -13
- package/dist/esm/core/components/alert/parts/AlertActions.d.ts +1 -1
- package/dist/esm/core/components/anchor/Anchor.d.ts +1 -1
- package/dist/esm/core/components/app-menu/parts/AppMenu.context.d.ts +1 -1
- package/dist/esm/core/components/autocomplete/Autocomplete.d.ts +1 -1
- package/dist/esm/core/components/autocomplete/parts/AutocompleteItem.d.ts +1 -1
- package/dist/esm/core/components/autocomplete/parts/AutocompleteItemGroup.d.ts +1 -1
- package/dist/esm/core/components/autocomplete/parts/AutocompletePanel.d.ts +1 -1
- package/dist/esm/core/components/avatar/Avatar.d.ts +1 -1
- package/dist/esm/core/components/avatar/Avatar.js +7 -7
- package/dist/esm/core/components/avatar/AvatarWithTooltip.js +4 -4
- package/dist/esm/core/components/avatar/InteractiveAvatar.js +4 -4
- package/dist/esm/core/components/avatar/parts/AvatarPair.d.ts +1 -1
- package/dist/esm/core/components/badge/Badge.d.ts +1 -1
- package/dist/esm/core/components/badge/parts/BadgeDot.d.ts +1 -1
- package/dist/esm/core/components/bottom-sheet/BottomSheet.d.ts +1 -1
- package/dist/esm/core/components/bottom-sheet/parts/BottomSheetContent.d.ts +1 -1
- package/dist/esm/core/components/bottom-sheet/parts/BottomSheetFooter.d.ts +1 -1
- package/dist/esm/core/components/bottom-sheet/parts/BottomSheetHeader.d.ts +1 -1
- package/dist/esm/core/components/bottom-sheet/test-utils.d.ts +1 -1
- package/dist/esm/core/components/breadcrumbs/Breadcrumbs.context.d.ts +1 -1
- package/dist/esm/core/components/breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/esm/core/components/button/Button.d.ts +1 -1
- package/dist/esm/core/components/card/Card.d.ts +1 -1
- package/dist/esm/core/components/card/parts/CardContent.d.ts +1 -1
- package/dist/esm/core/components/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/dist/esm/core/components/client-side-pagination/ClientSidePagination.d.ts +1 -1
- package/dist/esm/core/components/client-side-pagination/parts/PaginationEllipsis.d.ts +1 -1
- package/dist/esm/core/components/client-side-pagination/parts/PaginationJumpDialog.js +8 -8
- package/dist/esm/core/components/client-side-pagination/parts/RawPaginationLink.d.ts +1 -1
- package/dist/esm/core/components/collapsible/Collapsible.d.ts +1 -1
- package/dist/esm/core/components/collapsible/parts/CollapsibleContent.d.ts +1 -1
- package/dist/esm/core/components/collapsible-group/CollapsibleGroup.d.ts +1 -1
- package/dist/esm/core/components/dialog/Dialog.d.ts +1 -1
- package/dist/esm/core/components/dialog/parts/DialogActions/DialogButton.d.ts +1 -1
- package/dist/esm/core/components/dropzone/DropzoneOverlay.js +6 -6
- package/dist/esm/core/components/error-state/ErrorState.d.ts +1 -1
- package/dist/esm/core/components/error-state/initConfig.d.ts +2 -2
- package/dist/esm/core/components/error-state/initConfig.js +7 -7
- package/dist/esm/core/components/fieldset/Fieldset.d.ts +1 -1
- package/dist/esm/core/components/filter/Filter.types.d.ts +1 -1
- package/dist/esm/core/components/filter/parts/FilterButton.d.ts +2 -2
- package/dist/esm/core/components/filter/parts/FilterPopover.d.ts +1 -1
- package/dist/esm/core/components/filter-toolbar/parts/AddFilter.d.ts +1 -1
- package/dist/esm/core/components/filter-toolbar/parts/AddFilterItem.d.ts +1 -1
- package/dist/esm/core/components/funnel-layout/FunnelLayout.context.d.ts +1 -1
- package/dist/esm/core/components/funnel-layout/parts/FunnelBody.d.ts +1 -1
- package/dist/esm/core/components/funnel-layout/parts/FunnelPage.d.ts +1 -1
- package/dist/esm/core/components/funnel-layout/parts/FunnelPageContent.d.ts +1 -1
- package/dist/esm/core/components/funnel-layout/parts/FunnelPageFooter.d.ts +1 -1
- package/dist/esm/core/components/funnel-layout/parts/FunnelPageHeader.d.ts +1 -1
- package/dist/esm/core/components/funnel-layout/parts/FunnelSidebar.d.ts +1 -1
- package/dist/esm/core/components/icon/Icon.d.ts +1 -1
- package/dist/esm/core/components/icon-button/CircularIconButton.d.ts +1 -1
- package/dist/esm/core/components/icon-button/IconButton.d.ts +1 -1
- package/dist/esm/core/components/link/RawLink.d.ts +1 -1
- package/dist/esm/core/components/link-button/RawLinkButton.d.ts +1 -1
- package/dist/esm/core/components/menu/parts/MenuHeader.d.ts +1 -1
- package/dist/esm/core/components/menu/parts/MenuTrigger.d.ts +1 -1
- package/dist/esm/core/components/multi-select/MultiSelect.js +8 -8
- package/dist/esm/core/components/nav/parts/RawNavItem.d.ts +1 -1
- package/dist/esm/core/components/number-input/NumberInput.d.ts +1 -1
- package/dist/esm/core/components/page/Page.d.ts +1 -1
- package/dist/esm/core/components/page/parts/PageHeader.d.ts +1 -1
- package/dist/esm/core/components/pagination/Pagination.d.ts +1 -1
- package/dist/esm/core/components/pagination/parts/PaginationContent.d.ts +1 -1
- package/dist/esm/core/components/pagination/parts/PaginationEllipsis.d.ts +1 -1
- package/dist/esm/core/components/pagination/parts/RawPaginationLink.d.ts +1 -1
- package/dist/esm/core/components/pagination/parts/RawPaginationNext.d.ts +1 -1
- package/dist/esm/core/components/pagination/parts/RawPaginationPrevious.d.ts +1 -1
- package/dist/esm/core/components/phone-number/parts/PhoneNumberItem.d.ts +1 -1
- package/dist/esm/core/components/pill/Pill.d.ts +1 -1
- package/dist/esm/core/components/progress-bar/ProgressBar.d.ts +1 -1
- package/dist/esm/core/components/promo-dialog/PromoDialog.d.ts +1 -1
- package/dist/esm/core/components/radio-button-group/parts/RadioButton.d.ts +1 -1
- package/dist/esm/core/components/radio-button-group/parts/RadioIndicator.d.ts +1 -1
- package/dist/esm/core/components/search/Search.d.ts +1 -1
- package/dist/esm/core/components/segmented-button-group/parts/ToggleButton.d.ts +1 -1
- package/dist/esm/core/components/segmented-button-group/parts/ToggleButton.js +4 -4
- package/dist/esm/core/components/select-list/parts/SelectedItemsSection.d.ts +1 -1
- package/dist/esm/core/components/selectable-button-group/SelectableButtonGroup.d.ts +1 -1
- package/dist/esm/core/components/selectable-button-group/parts/SelectableButton.js +7 -7
- package/dist/esm/core/components/selectable-card/selectable-card-checkbox-group/parts/SelectableCardCheckbox.d.ts +1 -1
- package/dist/esm/core/components/selectable-card/selectable-card-radio-group/parts/SelectableCardRadio.d.ts +1 -1
- package/dist/esm/core/components/side-panel/SidePanel.d.ts +1 -1
- package/dist/esm/core/components/side-panel/parts/SidePanelContent.d.ts +1 -1
- package/dist/esm/core/components/side-panel/parts/SidePanelFooter.d.ts +1 -1
- package/dist/esm/core/components/side-panel/parts/SidePanelHeader.d.ts +1 -1
- package/dist/esm/core/components/stepper/Stepper.context.d.ts +1 -1
- package/dist/esm/core/components/table/parts/TableEmptyState.d.ts +3 -3
- package/dist/esm/core/components/table/parts/TablePagination.d.ts +1 -1
- package/dist/esm/core/components/tabs/Tabs.context.d.ts +1 -1
- package/dist/esm/core/components/tabs/Tabs.d.ts +1 -1
- package/dist/esm/core/components/task-menu/TaskMenu.d.ts +1 -1
- package/dist/esm/core/components/task-menu/parts/RawTask.d.ts +1 -1
- package/dist/esm/core/components/text/Text.d.ts +1 -1
- package/dist/esm/core/components/timeline/Timeline.d.ts +1 -1
- package/dist/esm/core/components/toast/UnityToast.d.ts +1 -1
- package/dist/esm/core/components/toast/parts/ToastAction.d.ts +1 -1
- package/dist/esm/core/components/toggle-switch/ToggleSwitch.d.ts +1 -1
- package/dist/esm/core/components/toggle-switch-group/ToggleSwitchGroup.d.ts +1 -1
- package/dist/esm/docs/reference/catalog/CatalogCard.d.ts +1 -1
- package/dist/esm/modules/ai-kit/components/ai-button/AIButton.d.ts +1 -1
- package/dist/esm/modules/ai-kit/components/ai-composer/parts/AIComposerActions.d.ts +1 -1
- package/dist/esm/modules/ai-kit/components/ai-composer/parts/AIComposerAttachment.d.ts +1 -1
- package/dist/esm/modules/ai-kit/components/ai-outcome-card/parts/AIOutcomeCardActions.d.ts +1 -1
- package/dist/esm/modules/ai-kit/components/ai-structured-input/hooks/use-ai-structured-input-navigation.d.ts +1 -4
- package/dist/esm/modules/ai-kit/components/proposal-card/ProposalCard.d.ts +1 -1
- package/dist/esm/modules/ai-kit/index.d.ts +4 -4
- package/dist/esm/modules/tanstack-form/components/checkbox-field/TanstackCheckboxField.d.ts +1 -1
- package/dist/esm/modules/tanstack-form/components/checkbox-group-field/TanstackCheckGroupField.d.ts +1 -1
- package/dist/esm/modules/tanstack-form/components/date-picker-field/TanstackDatePickerField.d.ts +1 -1
- package/dist/esm/modules/tanstack-form/components/date-range-picker-field/TanstackDateRangePickerField.d.ts +1 -1
- package/dist/esm/modules/tanstack-form/components/inline-field/parts/InlineFieldReadView.d.ts +1 -1
- package/dist/esm/modules/tanstack-form/components/inline-field-group/parts/InlineFieldGroupReadView.d.ts +1 -1
- package/dist/esm/modules/tanstack-form/components/password-field/parts/PasswordFieldDetails.d.ts +1 -1
- package/dist/esm/modules/tanstack-form/components/password-field/parts/ValidationRuleItem.d.ts +1 -1
- package/dist/esm/modules/tanstack-form/components/text-field/TanstackTextField.d.ts +1 -1
- package/dist/esm/modules/tanstack-form/hooks/tanstack-form-default-values.d.ts +1 -4
- package/dist/esm/modules/tanstack-table/components/data-table/DataTable.d.ts +1 -1
- package/dist/esm/modules/tanstack-table/components/data-table/DataTable.js +7 -7
- package/package.json +6 -6
- package/skills/unity-data-table/SKILL.md +9 -10
- package/skills/unity-data-table/references/patterns.md +28 -30
- package/skills/unity-find-component/SKILL.md +23 -26
- package/skills/unity-layout/SKILL.md +16 -4
- package/skills/unity-layout/references/patterns.md +10 -2
- package/skills/unity-migrate-from-midnight/SKILL.md +8 -2
- package/skills/unity-navigation/SKILL.md +3 -2
- package/skills/unity-navigation/references/patterns.md +9 -7
- package/skills/unity-overlays/SKILL.md +8 -2
- package/skills/unity-overlays/references/patterns.md +21 -22
- package/skills/unity-tanstack-form/SKILL.md +18 -15
- package/skills/unity-tanstack-form/references/patterns.md +3 -5
|
@@ -90,5 +90,5 @@ interface FilterPopoverProps {
|
|
|
90
90
|
* @param props.onClear - Callback invoked when the "Clear" button is pressed.
|
|
91
91
|
* @returns The rendered popover element
|
|
92
92
|
*/
|
|
93
|
-
export declare function FilterPopover({ children, onConfirm, onClear
|
|
93
|
+
export declare function FilterPopover({ children, onConfirm, onClear }: FilterPopoverProps): import('react/jsx-runtime').JSX.Element;
|
|
94
94
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { Selection } from 'react-aria-components/GridList';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
import { FilterDef } from '../FilterToolbar.types.js';
|
|
4
4
|
interface AddFilterProps extends VariantProps<typeof addFilter> {
|
|
5
5
|
/** Available filter definitions that can be added */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { ListBoxItemProps } from 'react-aria-components/ListBox';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
declare const addFilterItem: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
4
4
|
interface AddFilterItemProps extends VariantProps<typeof addFilterItem>, ListBoxItemProps {
|
|
5
5
|
}
|
|
@@ -14,5 +14,5 @@ export declare const useFunnelLayoutContext: () => FunnelLayoutContextValue;
|
|
|
14
14
|
interface FunnelLayoutProviderProps extends PropsWithChildren {
|
|
15
15
|
ids: FunnelLayoutContextValue['ids'];
|
|
16
16
|
}
|
|
17
|
-
export declare const FunnelLayoutProvider: ({ children, ids
|
|
17
|
+
export declare const FunnelLayoutProvider: ({ children, ids }: FunnelLayoutProviderProps) => import('react/jsx-runtime').JSX.Element;
|
|
18
18
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
export declare const funnelBody: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "uy:group/funnelbody uy:mx-auto uy:w-full uy:min-h-full uy:flex-1 uy:md:max-w-(--uy-container-lg) uy:md:px-300 uy:lg:max-w-(--uy-container-xl) uy:flex uy:flex-col uy:md:flex-row uy:gap-x-200 uy:md:py-600", {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
4
4
|
export type FunnelBodyProps = PropsWithChildren<VariantProps<typeof funnelBody>>;
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
export declare const funnelPage: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
4
4
|
export type FunnelPageProps = PropsWithChildren<VariantProps<typeof funnelPage>>;
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
export declare const funnelPageContent: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "uy:flex-1 uy:px-300 uy:my-400 uy:md:px-400 uy:group-has-[[data-unity-component=\"FunnelPageHeader\"]]/funnelpage:mt-0", {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
4
4
|
export type FunnelPageContentProps = PropsWithChildren<VariantProps<typeof funnelPageContent>>;
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
export declare const funnelPageFooter: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "uy:px-300 uy:md:px-400", {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
4
4
|
export type FunnelPageFooterProps = PropsWithChildren<VariantProps<typeof funnelPageFooter>>;
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
export declare const funnelPageHeader: import('tailwind-variants').TVReturnType<{
|
|
4
4
|
gradient: {
|
|
5
5
|
default: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
1
2
|
import { UnityIcon } from '@payfit/unity-icons';
|
|
2
3
|
import { VariantProps } from '@payfit/unity-themes';
|
|
3
|
-
import { HTMLAttributes } from 'react';
|
|
4
4
|
declare const icon: import('tailwind-variants').TVReturnType<{
|
|
5
5
|
size: {
|
|
6
6
|
20: "uy:w-250 uy:h-250";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ButtonProps as AriaButtonProps } from 'react-aria-components/Button';
|
|
1
2
|
import { UnityIcon } from '@payfit/unity-icons';
|
|
2
3
|
import { VariantProps } from '@payfit/unity-themes';
|
|
3
|
-
import { ButtonProps as AriaButtonProps } from 'react-aria-components/Button';
|
|
4
4
|
export declare const circularIconButton: import('tailwind-variants').TVReturnType<{
|
|
5
5
|
size: {
|
|
6
6
|
default: "uy:w-300 uy:h-300";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { UnityIcon } from '@payfit/unity-icons';
|
|
2
1
|
import { AriaRole } from 'react';
|
|
3
2
|
import { ButtonProps as AriaButtonProps } from 'react-aria-components/Button';
|
|
4
3
|
import { LinkProps as AriaLinkProps } from 'react-aria-components/Link';
|
|
4
|
+
import { UnityIcon } from '@payfit/unity-icons';
|
|
5
5
|
import { IconButtonBase, IconButtonFilled, IconButtonGhost, IconButtonOutlined } from './IconButton.variants.js';
|
|
6
6
|
type IconButtonBaseProps = IconButtonBase & {
|
|
7
7
|
/** Label used to describe the action of the button */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { CSSProperties, HTMLAttributes } from 'react';
|
|
3
2
|
import { LinkProps as AriaLinkProps } from 'react-aria-components/Link';
|
|
3
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
4
4
|
export declare const link: import('tailwind-variants').TVReturnType<{
|
|
5
5
|
variant: {
|
|
6
6
|
inline: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { UnityIcon } from '@payfit/unity-icons';
|
|
2
1
|
import { PropsWithChildren } from 'react';
|
|
3
2
|
import { LinkProps as AriaLinkProps } from 'react-aria-components/Link';
|
|
3
|
+
import { UnityIcon } from '@payfit/unity-icons';
|
|
4
4
|
import { ButtonBase, ButtonFilled, ButtonGhost, ButtonOutlined } from '../button/Button.variants.js';
|
|
5
5
|
type UnityLinkButtonProps = Omit<AriaLinkProps, 'style' | 'className'> & ButtonBase & {
|
|
6
6
|
/**
|
|
@@ -13,7 +13,7 @@ export interface MenuHeaderProps {
|
|
|
13
13
|
* @param props.children - The non-interactive heading content.
|
|
14
14
|
* @param props.className - Adds classes to the header element.
|
|
15
15
|
*/
|
|
16
|
-
export declare function MenuHeader({ children, className
|
|
16
|
+
export declare function MenuHeader({ children, className }: PropsWithChildren<MenuHeaderProps>): import('react/jsx-runtime').JSX.Element;
|
|
17
17
|
export declare namespace MenuHeader {
|
|
18
18
|
var displayName: string;
|
|
19
19
|
}
|
|
@@ -25,7 +25,7 @@ export interface MenuTriggerProps {
|
|
|
25
25
|
* </MenuTrigger>
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
|
-
export declare function MenuTrigger({ children, asChild, className
|
|
28
|
+
export declare function MenuTrigger({ children, asChild, className }: PropsWithChildren<MenuTriggerProps>): import('react/jsx-runtime').JSX.Element;
|
|
29
29
|
export declare namespace MenuTrigger {
|
|
30
30
|
var displayName: string;
|
|
31
31
|
}
|
|
@@ -2,9 +2,9 @@ import { Icon as e } from "../icon/Icon.js";
|
|
|
2
2
|
import { Spinner as t } from "../spinner/Spinner.js";
|
|
3
3
|
import { CircularIconButton as n } from "../icon-button/CircularIconButton.js";
|
|
4
4
|
import { Badge as r } from "../badge/Badge.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { Search as ee } from "../search/Search.js";
|
|
6
|
+
import { MultiSelectContext as i } from "./Multiselect.context.js";
|
|
7
|
+
import { reactAriaValueToSet as te, setToReactAriaDefaultValue as ne, setToReactAriaValue as re } from "./utils/selection-adapter.js";
|
|
8
8
|
import { forwardRef as a, useCallback as o, useMemo as s, useRef as c, useState as l } from "react";
|
|
9
9
|
import { uyTv as u } from "@payfit/unity-themes";
|
|
10
10
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
@@ -111,7 +111,7 @@ function _(a, u) {
|
|
|
111
111
|
]), X = o((e) => {
|
|
112
112
|
V || xe(e), k?.(e);
|
|
113
113
|
}, [V, k]), je = o((e) => {
|
|
114
|
-
X(
|
|
114
|
+
X(te(e));
|
|
115
115
|
}, [X]), Me = o(() => {
|
|
116
116
|
X(/* @__PURE__ */ new Set()), O?.();
|
|
117
117
|
}, [O, X]), Z = o((e) => {
|
|
@@ -143,10 +143,10 @@ function _(a, u) {
|
|
|
143
143
|
placeholder: C,
|
|
144
144
|
selectionMode: "multiple",
|
|
145
145
|
shouldCloseOnSelect: !1,
|
|
146
|
-
value:
|
|
147
|
-
defaultValue:
|
|
146
|
+
value: re(H),
|
|
147
|
+
defaultValue: ne(M),
|
|
148
148
|
allowsEmptyCollection: !0,
|
|
149
|
-
children: /* @__PURE__ */ f(
|
|
149
|
+
children: /* @__PURE__ */ f(i.Provider, {
|
|
150
150
|
value: {
|
|
151
151
|
isSearchable: N,
|
|
152
152
|
maxVisibleItems: I,
|
|
@@ -225,7 +225,7 @@ function _(a, u) {
|
|
|
225
225
|
children: [
|
|
226
226
|
/* @__PURE__ */ d("div", {
|
|
227
227
|
className: "uy:m-100",
|
|
228
|
-
children: /* @__PURE__ */ d(
|
|
228
|
+
children: /* @__PURE__ */ d(ee, {
|
|
229
229
|
label: _.formatMessage({
|
|
230
230
|
id: "unity:component:select:search:label",
|
|
231
231
|
defaultMessage: "Search options"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { PropsWithChildren, ReactNode } from 'react';
|
|
3
2
|
import { ButtonProps as AriaButtonProps } from 'react-aria-components/Button';
|
|
3
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
4
4
|
import { DataAttributes } from '../../../types/DataAttributes.js';
|
|
5
5
|
export declare const navItemBase: import('tailwind-variants').TVReturnType<{
|
|
6
6
|
level: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { ReactElement } from 'react';
|
|
3
2
|
import { NumberFieldProps } from 'react-aria-components/NumberField';
|
|
3
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
4
4
|
export declare const numberInput: import('tailwind-variants').TVReturnType<{
|
|
5
5
|
isReadOnly: {
|
|
6
6
|
true: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
export declare const pageHeader: import('tailwind-variants').TVReturnType<{
|
|
4
4
|
[key: string]: {
|
|
5
5
|
[key: string]: import('tailwind-variants').ClassValue | {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
export declare const pagination: import('tailwind-variants').TVReturnType<{
|
|
4
4
|
[key: string]: {
|
|
5
5
|
[key: string]: import('tailwind-variants').ClassValue | {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
export declare const paginationContent: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "uy:flex uy:gap-100 uy:list-none uy:m-0 uy:p-0", {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
4
4
|
export interface PaginationContentProps extends VariantProps<typeof paginationContent>, ComponentPropsWithoutRef<'ul'> {
|
|
5
5
|
children: ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { ButtonProps } from 'react-aria-components/Button';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
declare const paginationEllipsis: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
4
4
|
export interface PaginationEllipsisProps extends VariantProps<typeof paginationEllipsis>, Omit<ButtonProps, 'value' | 'children' | 'className' | 'style' | 'slot'> {
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { LinkProps } from 'react-aria-components/Link';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
export declare const paginationLink: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
4
4
|
export interface PaginationLinkProps extends LinkProps, VariantProps<typeof paginationLink> {
|
|
5
5
|
value: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { LinkProps } from 'react-aria-components/Link';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
declare const paginationNavButton: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
4
4
|
export interface RawPaginationNextProps extends Omit<LinkProps, 'children' | 'className' | 'style' | 'isDisabled' | 'aria-label' | 'title'>, VariantProps<typeof paginationNavButton> {
|
|
5
5
|
id?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { LinkProps } from 'react-aria-components/Link';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
declare const paginationNavButton: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
4
4
|
export interface RawPaginationPreviousProps extends Omit<LinkProps, 'children' | 'className' | 'style' | 'isDisabled' | 'aria-label' | 'title'>, VariantProps<typeof paginationNavButton> {
|
|
5
5
|
id?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { ListBoxItemProps } from 'react-aria-components/ListBox';
|
|
3
2
|
import { ParsedCountry } from 'react-international-phone';
|
|
3
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
4
4
|
declare const phoneNumberItem: import('tailwind-variants').TVReturnType<{
|
|
5
5
|
[key: string]: {
|
|
6
6
|
[key: string]: import('tailwind-variants').ClassValue | {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { AriaAttributes } from 'react';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
declare const pill: import('tailwind-variants').TVReturnType<{
|
|
4
4
|
variant: {
|
|
5
5
|
critical: "uy:bg-surface-danger uy:text-content-inverted";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { ProgressBarProps as AriaProgressBarProps } from 'react-aria-components/ProgressBar';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
declare const progressBar: import('tailwind-variants').TVReturnType<{
|
|
4
4
|
variant: {
|
|
5
5
|
success: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
export declare const promoDialog: import('tailwind-variants').TVReturnType<{
|
|
4
4
|
[key: string]: {
|
|
5
5
|
[key: string]: import('tailwind-variants').ClassValue | {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { ReactNode } from 'react';
|
|
3
2
|
import { RadioFieldProps } from 'react-aria-components/RadioGroup';
|
|
3
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
4
4
|
export { RadioIndicator } from './RadioIndicator.js';
|
|
5
5
|
export type { RadioIndicatorProps, RadioState } from './RadioIndicator.js';
|
|
6
6
|
export declare const radioButton: import('tailwind-variants').TVReturnType<{
|
|
@@ -6,5 +6,5 @@ export interface RadioIndicatorProps {
|
|
|
6
6
|
state: RadioState;
|
|
7
7
|
className?: string;
|
|
8
8
|
}
|
|
9
|
-
export declare const RadioIndicator: ({ isSelected, state, className
|
|
9
|
+
export declare const RadioIndicator: ({ isSelected, state, className }: RadioIndicatorProps) => import('react/jsx-runtime').JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { ReactNode } from 'react';
|
|
3
2
|
import { SearchFieldProps } from 'react-aria-components/SearchField';
|
|
3
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
4
4
|
export declare const search: import('tailwind-variants').TVReturnType<{
|
|
5
5
|
isReadOnly: {
|
|
6
6
|
true: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UnityIcon } from '@payfit/unity-icons';
|
|
2
1
|
import { AriaRadioProps } from 'react-aria/useRadioGroup';
|
|
2
|
+
import { UnityIcon } from '@payfit/unity-icons';
|
|
3
3
|
import { IconName } from '../../../types/utils.js';
|
|
4
4
|
export interface ToggleButtonProps extends AriaRadioProps {
|
|
5
5
|
/**
|
|
@@ -2,15 +2,15 @@ import { Icon as e } from "../../icon/Icon.js";
|
|
|
2
2
|
import { Spinner as t } from "../../spinner/Spinner.js";
|
|
3
3
|
import { SegmentedButtonGroupContext as n } from "../SegmentedButtonGroups.context.js";
|
|
4
4
|
import { forwardRef as r, useContext as i, useRef as a } from "react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { useFocusRing as o } from "react-aria/useFocusRing";
|
|
6
|
+
import { uyTv as s } from "@payfit/unity-themes";
|
|
7
7
|
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
8
8
|
import { useIntl as d } from "react-intl";
|
|
9
9
|
import { mergeProps as f } from "react-aria/mergeProps";
|
|
10
10
|
import { useRadio as p } from "react-aria/useRadioGroup";
|
|
11
11
|
import { VisuallyHidden as m } from "react-aria/VisuallyHidden";
|
|
12
12
|
//#region src/core/components/segmented-button-group/parts/ToggleButton.tsx
|
|
13
|
-
var h =
|
|
13
|
+
var h = s({
|
|
14
14
|
slots: {
|
|
15
15
|
base: ["uy:group uy:rounded-50 uy:pt-50 uy:pb-50 uy:pr-150 uy:flex uy:gap-25 uy:h-400", "uy:active:gb-surface-neutral-pressed"],
|
|
16
16
|
wrapper: ["uy:flex uy:gap-50 uy:items-center uy:typography-action", "uy:active:text-content-neutral-pressed"]
|
|
@@ -74,7 +74,7 @@ var h = o({
|
|
|
74
74
|
color: o ? "content.neutral" : "content.neutral.low",
|
|
75
75
|
role: "presentation"
|
|
76
76
|
}) : null, r] }), _ = r((e, t) => {
|
|
77
|
-
let { children: r, value:
|
|
77
|
+
let { children: r, value: s, prefixIcon: c, isLoading: _ } = e, { state: v } = i(n), y = a(null), { inputProps: b } = p(e, v, y), { focusProps: x, isFocusVisible: S } = o(), C = d(), w = v.selectedValue === s, { base: T, wrapper: E } = h({
|
|
78
78
|
isSelected: w,
|
|
79
79
|
hasPrefixIcon: !!c,
|
|
80
80
|
isLoading: _,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SelectionBehavior } from '@react-types/shared';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
2
3
|
import { Key } from 'react-aria-components/Breadcrumbs';
|
|
3
4
|
import { Selection, SelectionMode } from 'react-aria-components/GridList';
|
|
4
|
-
import { ReactElement } from 'react';
|
|
5
5
|
interface SelectableItem {
|
|
6
6
|
id: Key;
|
|
7
7
|
label: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { AriaToggleButtonGroupProps } from 'react-aria/useToggleButtonGroup';
|
|
3
2
|
import { Key } from 'react-stately';
|
|
3
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
4
4
|
export declare const selectableButtonGroup: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "uy:group uy:flex uy:gap-100 uy:flex-wrap", {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
5
5
|
export interface SelectableButtonGroupProps extends VariantProps<typeof selectableButtonGroup>, Omit<AriaToggleButtonGroupProps, 'selectedKeys' | 'defaultSelectedKeys' | 'onSelectionChange' | 'style'> {
|
|
6
6
|
/**
|
|
@@ -2,14 +2,14 @@ import { Icon as e } from "../../icon/Icon.js";
|
|
|
2
2
|
import { Spinner as t } from "../../spinner/Spinner.js";
|
|
3
3
|
import { SelectableButtonGroupContext as n } from "../SelectableButtonGroup.context.js";
|
|
4
4
|
import { forwardRef as r, useCallback as i, useContext as a, useRef as o } from "react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { useFocusRing as s } from "react-aria/useFocusRing";
|
|
6
|
+
import { uyTv as c } from "@payfit/unity-themes";
|
|
7
7
|
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
8
8
|
import { mergeProps as f } from "react-aria/mergeProps";
|
|
9
9
|
import { useToggleButtonGroupItem as p } from "react-aria/useToggleButtonGroup";
|
|
10
10
|
import { useHover as m } from "react-aria/useHover";
|
|
11
11
|
//#region src/core/components/selectable-button-group/parts/SelectableButton.tsx
|
|
12
|
-
var h =
|
|
12
|
+
var h = c({
|
|
13
13
|
slots: {
|
|
14
14
|
base: [
|
|
15
15
|
"uy:group uy:border uy:border-solid uy:rounded-pill uy:py-125 uy:sm:py-100 uy:flex uy:gap-50 uy:items-center uy:cursor-pointer",
|
|
@@ -37,15 +37,15 @@ var h = s({
|
|
|
37
37
|
false: { base: "uy:px-200" }
|
|
38
38
|
} },
|
|
39
39
|
defaultVariants: { hasIcon: !1 }
|
|
40
|
-
}), g = r((r,
|
|
40
|
+
}), g = r((r, c) => {
|
|
41
41
|
let g = o(null), _ = a(n);
|
|
42
42
|
if (!_) throw Error("SelectableButton must be used within a SelectableButtonGroup component");
|
|
43
43
|
let { buttonProps: v, isPressed: y, isSelected: b } = p({
|
|
44
44
|
id: r.value,
|
|
45
45
|
...r
|
|
46
|
-
}, _, g), { isDisabled: x = !1, isLoading: S = !1, prefixIcon: C, children: w } = r, { hoverProps: T, isHovered: E } = m({ isDisabled: x || S }), { isFocusVisible: D, focusProps: O } =
|
|
47
|
-
g.current = e, typeof
|
|
48
|
-
}, [
|
|
46
|
+
}, _, g), { isDisabled: x = !1, isLoading: S = !1, prefixIcon: C, children: w } = r, { hoverProps: T, isHovered: E } = m({ isDisabled: x || S }), { isFocusVisible: D, focusProps: O } = s(), k = i((e) => {
|
|
47
|
+
g.current = e, typeof c == "function" ? c(e) : c && (c.current = e);
|
|
48
|
+
}, [c]), { base: A, icon: j, label: M } = h({ hasIcon: !!C && !S });
|
|
49
49
|
return /* @__PURE__ */ d("button", {
|
|
50
50
|
"data-dd-privacy": "allow",
|
|
51
51
|
...f(v, T, O),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { ReactNode } from 'react';
|
|
3
2
|
import { CheckboxFieldProps as AriaCheckboxFieldProps } from 'react-aria-components/Checkbox';
|
|
3
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
4
4
|
import { selectableCard } from '../../selectableCard.variant.js';
|
|
5
5
|
export interface SelectableCardCheckboxProps extends Omit<AriaCheckboxFieldProps, 'children'>, VariantProps<typeof selectableCard> {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { PropsWithChildren, ReactNode } from 'react';
|
|
3
2
|
import { RadioFieldProps } from 'react-aria-components/RadioGroup';
|
|
3
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
4
4
|
import { selectableCard } from '../../selectableCard.variant.js';
|
|
5
5
|
export interface SelectableCardRadioProps extends Omit<RadioFieldProps, 'children'>, PropsWithChildren<VariantProps<typeof selectableCard>> {
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
export declare const sidePanelContent: import('tailwind-variants').TVReturnType<{
|
|
4
4
|
[key: string]: {
|
|
5
5
|
[key: string]: import('tailwind-variants').ClassValue | {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
export declare const sidePanelFooter: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
4
4
|
export interface SidePanelFooterProps extends PropsWithChildren<VariantProps<typeof sidePanelFooter>> {
|
|
5
5
|
className?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
export declare const sidePanelHeader: import('tailwind-variants').TVReturnType<{
|
|
4
4
|
[key: string]: {
|
|
5
5
|
[key: string]: import('tailwind-variants').ClassValue | {
|
|
@@ -2,6 +2,6 @@ import { PropsWithChildren } from 'react';
|
|
|
2
2
|
interface StepperContextValue {
|
|
3
3
|
currentStep: number;
|
|
4
4
|
}
|
|
5
|
-
export declare function StepperProvider({ children, currentStep
|
|
5
|
+
export declare function StepperProvider({ children, currentStep }: PropsWithChildren<StepperContextValue>): import('react/jsx-runtime').JSX.Element;
|
|
6
6
|
export declare function useStepperContext(): StepperContextValue;
|
|
7
7
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
export declare const tableEmptyState: import('tailwind-variants').TVReturnType<{
|
|
4
4
|
[key: string]: {
|
|
5
5
|
[key: string]: import('tailwind-variants').ClassValue | {
|
|
@@ -161,7 +161,7 @@ declare const TableEmptyStateNoData: ({ description, onButtonPress, }: {
|
|
|
161
161
|
* <TableBody renderEmptyState={() => <TableEmptyStateError onButtonPress={() => navigate('/dashboard')} />}>{[]}</TableBody>
|
|
162
162
|
* ```
|
|
163
163
|
*/
|
|
164
|
-
declare const TableEmptyStateError: ({ onButtonPress
|
|
164
|
+
declare const TableEmptyStateError: ({ onButtonPress }: {
|
|
165
165
|
onButtonPress?: () => void;
|
|
166
166
|
}) => import('react/jsx-runtime').JSX.Element;
|
|
167
167
|
/**
|
|
@@ -181,7 +181,7 @@ declare const TableEmptyStateError: ({ onButtonPress, }: {
|
|
|
181
181
|
* <TableBody renderEmptyState={() => <TableNoSearchResults onButtonPress={() => clearFilters()} />}>{[]}</TableBody>
|
|
182
182
|
* ```
|
|
183
183
|
*/
|
|
184
|
-
declare const TableNoSearchResults: ({ onButtonPress
|
|
184
|
+
declare const TableNoSearchResults: ({ onButtonPress }: {
|
|
185
185
|
onButtonPress?: () => void;
|
|
186
186
|
}) => import('react/jsx-runtime').JSX.Element;
|
|
187
187
|
export { TableEmptyState, TableEmptyStateText, TableEmptyStateLoading, TableEmptyStateNoData, TableEmptyStateError, TableNoSearchResults, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
import { ClientSidePaginationProps } from '../../client-side-pagination/ClientSidePagination.js';
|
|
4
4
|
export declare const tablePagination: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
5
5
|
type PageSizeOption = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
import { tabsVariant } from './Tabs.variant.js';
|
|
4
4
|
interface TabsContextValue {
|
|
5
5
|
variant: VariantProps<typeof tabsVariant>['variant'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { TabsProps as AriaTabsProps } from 'react-aria-components/Tabs';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
import { tabsVariant } from './Tabs.variant.js';
|
|
4
4
|
type TabsLayout = NonNullable<VariantProps<typeof tabsVariant>['layout']>;
|
|
5
5
|
export interface TabsProps extends Omit<AriaTabsProps, 'isDisabled' | 'orientation' | 'className' | 'style' | 'disabledKeys' | 'keyboardActivation' | 'slot'>, VariantProps<typeof tabsVariant> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
export declare const taskMenu: import('tailwind-variants').TVReturnType<{
|
|
4
4
|
[key: string]: {
|
|
5
5
|
[key: string]: import('tailwind-variants').ClassValue | {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { PropsWithChildren } from 'react';
|
|
3
2
|
import { AriaButtonProps } from 'react-aria/useButton';
|
|
3
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
4
4
|
export declare const rawTask: import('tailwind-variants').TVReturnType<{
|
|
5
5
|
[key: string]: {
|
|
6
6
|
[key: string]: import('tailwind-variants').ClassValue | {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from '@payfit/unity-themes';
|
|
2
1
|
import { HTMLAttributes, PropsWithChildren } from 'react';
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
import { text } from './Text.variants.js';
|
|
4
4
|
export type ValidTextElements = 'p' | 'span' | 'div' | 'abbr' | 'dfn' | 'displayHeading' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'em' | 'strong' | 'small';
|
|
5
5
|
export type TextProps = PropsWithChildren<HTMLAttributes<HTMLSpanElement> & {
|
|
@@ -2,7 +2,7 @@ import { PropsWithChildren } from 'react';
|
|
|
2
2
|
export interface ToastActionProps {
|
|
3
3
|
onPress: () => void;
|
|
4
4
|
}
|
|
5
|
-
declare function ToastAction({ children, onPress
|
|
5
|
+
declare function ToastAction({ children, onPress }: PropsWithChildren<ToastActionProps>): import('react/jsx-runtime').JSX.Element;
|
|
6
6
|
declare namespace ToastAction {
|
|
7
7
|
var displayName: string;
|
|
8
8
|
}
|