@payfit/unity-components 3.15.14 → 3.15.16
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/dropzone/Dropzone.context.d.ts +6 -0
- package/dist/esm/core/components/dropzone/Dropzone.context.js +10 -0
- package/dist/esm/core/components/dropzone/Dropzone.d.ts +82 -0
- package/dist/esm/core/components/dropzone/Dropzone.js +32 -0
- package/dist/esm/core/components/dropzone/Dropzone.variants.d.ts +24 -0
- package/dist/esm/core/components/dropzone/Dropzone.variants.js +23 -0
- package/dist/esm/core/components/dropzone/DropzoneOverlay.d.ts +67 -0
- package/dist/esm/core/components/dropzone/DropzoneOverlay.js +53 -0
- package/dist/esm/core/components/dropzone/parts/DropzoneActions.d.ts +13 -0
- package/dist/esm/core/components/dropzone/parts/DropzoneActions.js +13 -0
- package/dist/esm/core/components/dropzone/parts/DropzoneContent.d.ts +13 -0
- package/dist/esm/core/components/dropzone/parts/DropzoneContent.js +13 -0
- package/dist/esm/core/components/dropzone/parts/DropzoneDescription.d.ts +5 -0
- package/dist/esm/core/components/dropzone/parts/DropzoneDescription.js +21 -0
- package/dist/esm/core/components/dropzone/parts/DropzoneIcon.d.ts +5 -0
- package/dist/esm/core/components/dropzone/parts/DropzoneIcon.js +11 -0
- package/dist/esm/core/components/dropzone/parts/DropzoneIllustration.d.ts +5 -0
- package/dist/esm/core/components/dropzone/parts/DropzoneIllustration.js +14 -0
- package/dist/esm/core/components/dropzone/parts/DropzoneLabel.d.ts +5 -0
- package/dist/esm/core/components/dropzone/parts/DropzoneLabel.js +20 -0
- package/dist/esm/core/components/file-upload-dropzone/FileUploadDropzone.d.ts +51 -0
- package/dist/esm/core/components/file-upload-dropzone/FileUploadDropzone.js +46 -0
- package/dist/esm/core/components/file-upload-dropzone/parts/FileUploadDropzoneButton.d.ts +13 -0
- package/dist/esm/core/components/file-upload-dropzone/parts/FileUploadDropzoneButton.js +14 -0
- package/dist/esm/core/components/file-upload-trigger/FileUploadTrigger.d.ts +52 -0
- package/dist/esm/core/components/file-upload-trigger/FileUploadTrigger.js +19 -0
- package/dist/esm/core/index.d.ts +11 -0
- package/dist/esm/core/index.js +12 -1
- package/dist/esm/index.js +25 -14
- package/dist/esm/modules/tanstack-form/components/tanstack-file-upload-dropzone/TanstackFileUploadDropzone.d.ts +52 -0
- package/dist/esm/modules/tanstack-form/components/tanstack-file-upload-dropzone/TanstackFileUploadDropzone.js +26 -0
- package/dist/esm/modules/tanstack-form/components/tanstack-file-upload-dropzone/TanstackFileUploadDropzoneField.d.ts +68 -0
- package/dist/esm/modules/tanstack-form/components/tanstack-file-upload-dropzone/TanstackFileUploadDropzoneField.js +22 -0
- package/dist/esm/modules/tanstack-form/components/tanstack-file-upload-trigger/TanstackFileUploadTrigger.d.ts +48 -0
- package/dist/esm/modules/tanstack-form/components/tanstack-file-upload-trigger/TanstackFileUploadTrigger.js +26 -0
- package/dist/esm/modules/tanstack-form/components/tanstack-file-upload-trigger/TanstackFileUploadTriggerField.d.ts +13 -0
- package/dist/esm/modules/tanstack-form/components/tanstack-file-upload-trigger/TanstackFileUploadTriggerField.js +28 -0
- package/dist/esm/modules/tanstack-form/hooks/use-tanstack-form.d.ts +24 -0
- package/dist/esm/modules/tanstack-form/hooks/use-tanstack-form.js +29 -25
- package/package.json +7 -7
- package/src/agent-references/component-catalog.json +170 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { forwardRef as e, useCallback as t } from "react";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { FileTrigger as r } from "react-aria-components";
|
|
4
|
+
//#region src/core/components/file-upload-trigger/FileUploadTrigger.tsx
|
|
5
|
+
var i = e(({ id: e, name: i, ...a }, o) => /* @__PURE__ */ n("div", {
|
|
6
|
+
ref: t((t) => {
|
|
7
|
+
let n = t?.querySelector("input[type=\"file\"]") ?? null;
|
|
8
|
+
n && (e && (n.id = e), i && (n.name = i)), typeof o == "function" ? o(n) : o && (o.current = n);
|
|
9
|
+
}, [
|
|
10
|
+
o,
|
|
11
|
+
e,
|
|
12
|
+
i
|
|
13
|
+
]),
|
|
14
|
+
className: "uy:contents",
|
|
15
|
+
children: /* @__PURE__ */ n(r, { ...a })
|
|
16
|
+
}));
|
|
17
|
+
i.displayName = "FileUploadTrigger";
|
|
18
|
+
//#endregion
|
|
19
|
+
export { i as FileUploadTrigger };
|
package/dist/esm/core/index.d.ts
CHANGED
|
@@ -217,3 +217,14 @@ export * from './hooks/use-container-query-level.js';
|
|
|
217
217
|
export * from './hooks/use-media-query.js';
|
|
218
218
|
export * from './providers/router/RouterProvider.js';
|
|
219
219
|
export * from './components/scroll-area/ScrollArea.js';
|
|
220
|
+
export * from './components/dropzone/Dropzone.js';
|
|
221
|
+
export * from './components/dropzone/DropzoneOverlay.js';
|
|
222
|
+
export * from './components/dropzone/parts/DropzoneIcon.js';
|
|
223
|
+
export * from './components/dropzone/parts/DropzoneContent.js';
|
|
224
|
+
export * from './components/dropzone/parts/DropzoneActions.js';
|
|
225
|
+
export * from './components/dropzone/parts/DropzoneIllustration.js';
|
|
226
|
+
export * from './components/dropzone/parts/DropzoneLabel.js';
|
|
227
|
+
export * from './components/dropzone/parts/DropzoneDescription.js';
|
|
228
|
+
export * from './components/file-upload-trigger/FileUploadTrigger.js';
|
|
229
|
+
export * from './components/file-upload-dropzone/FileUploadDropzone.js';
|
|
230
|
+
export * from './components/file-upload-dropzone/parts/FileUploadDropzoneButton.js';
|
package/dist/esm/core/index.js
CHANGED
|
@@ -218,4 +218,15 @@ import { ToggleSwitchGroup as Ii, toggleSwitchGroup as Li } from "./components/t
|
|
|
218
218
|
import { ToggleSwitch as Ri, toggleSwitch as zi } from "./components/toggle-switch/ToggleSwitch.js";
|
|
219
219
|
import { useAsyncList as Bi } from "./hooks/use-async-list.js";
|
|
220
220
|
import { ScrollArea as Vi } from "./components/scroll-area/ScrollArea.js";
|
|
221
|
-
|
|
221
|
+
import { Dropzone as Hi } from "./components/dropzone/Dropzone.js";
|
|
222
|
+
import { DropzoneContent as Ui } from "./components/dropzone/parts/DropzoneContent.js";
|
|
223
|
+
import { DropzoneOverlay as Wi, dropzoneOverlay as Gi } from "./components/dropzone/DropzoneOverlay.js";
|
|
224
|
+
import { DropzoneIcon as Ki } from "./components/dropzone/parts/DropzoneIcon.js";
|
|
225
|
+
import { DropzoneActions as qi } from "./components/dropzone/parts/DropzoneActions.js";
|
|
226
|
+
import { DropzoneIllustration as Ji } from "./components/dropzone/parts/DropzoneIllustration.js";
|
|
227
|
+
import { DropzoneLabel as Yi } from "./components/dropzone/parts/DropzoneLabel.js";
|
|
228
|
+
import { DropzoneDescription as Xi } from "./components/dropzone/parts/DropzoneDescription.js";
|
|
229
|
+
import { FileUploadTrigger as Zi } from "./components/file-upload-trigger/FileUploadTrigger.js";
|
|
230
|
+
import { FileUploadDropzoneButton as Qi } from "./components/file-upload-dropzone/parts/FileUploadDropzoneButton.js";
|
|
231
|
+
import { FileUploadDropzone as $i } from "./components/file-upload-dropzone/FileUploadDropzone.js";
|
|
232
|
+
export { v as ActionBar, u as ActionBarButton, p as ActionBarIconButton, y as ActionBarRoot, e as Actionable, C as Alert, w as AlertActions, D as AlertContent, O as AlertTitle, k as Anchor, A as AppLayout, F as AppMenu, M as AppMenuContext, N as AppMenuContextProvider, W as AppMenuFooter, J as AppMenuHeader, Y as AppMenuNavContent, U as AppProfileMenuButton, j as AppTopBar, X as Autocomplete, Z as AutocompleteItem, $ as AutocompleteItemGroup, z as Avatar, V as AvatarFallback, oe as AvatarGroup, ae as AvatarGroupCount, re as AvatarIcon, H as AvatarImage, ie as AvatarPair, te as AvatarWithTooltip, G as BRAND_ASSETS, Ce as BREADCRUMB_ITEM_MAX_WIDTH, R as Badge, se as BadgeDot, ce as BottomSheet, ue as BottomSheetContent, fe as BottomSheetFooter, me as BottomSheetHeader, _e as Breadcrumb, ge as Breadcrumbs, l as Button, Fe as Card, Re as CardContent, Le as CardTitle, De as Carousel, je as CarouselContent, ke as CarouselHeader, Te as CarouselNav, Ne as CarouselSlide, He as Checkbox, Be as CheckboxGroup, Ue as CheckboxStandalone, x as CircularIconButton, We as Collapsible, Ge as CollapsibleContent, qe as CollapsibleGroup, Ke as CollapsibleTitle, n as DESKTOP_BREAKPOINTS, Je as DateCalendar, Ye as DatePicker, Xe as DateRangeCalendar, Ze as DateRangePicker, $e as DefinitionItem, Qe as DefinitionList, et as DefinitionListGroup, tt as DefinitionTooltip, rt as Dialog, ot as DialogActions, nt as DialogButton, st as DialogContent, ct as DialogTitle, it as DialogTrigger, Hi as Dropzone, qi as DropzoneActions, Ui as DropzoneContent, Xi as DropzoneDescription, Ki as DropzoneIcon, Ji as DropzoneIllustration, Yi as DropzoneLabel, Wi as DropzoneOverlay, gt as EmptyState, yt as EmptyStateActions, vt as EmptyStateContent, bt as EmptyStateGetStarted, St as EmptyStateGoodJob, _t as EmptyStateIcon, wt as EmptyStateNoSearchResults, Ct as EmptyStateUpgradeRequired, Tt as EmptyStateUseDesktop, xt as EmptyStateWaitingForData, Dt as ErrorState, jt as FieldGroup, kt as Fieldset, $i as FileUploadDropzone, Qi as FileUploadDropzoneButton, Zi as FileUploadTrigger, Mt as Filter, Nt as FilterControls, Pt as FilterLabels, zt as FilterToolbar, Ut as Flex, Gt as FlexItem, Lt as FloatingActionBar, qt as FullPageLoader, ln as FunnelBackButton, $t as FunnelBody, Zt as FunnelLayout, tn as FunnelPage, rn as FunnelPageAction, an as FunnelPageActions, sn as FunnelPageContent, un as FunnelPageFooter, fn as FunnelPageHeader, mn as FunnelSidebar, gn as FunnelTopBar, bn as Grid, xn as GridItem, s as Icon, f as IconButton, Sn as Input, ne as InteractiveAvatar, ze as Label, wn as ListView, kn as ListViewItemLabel, An as ListViewItemText, Dn as ListViewSection, r as MOBILE_BREAKPOINTS, m as Menu, h as MenuContent, L as MenuHeader, jn as MenuSection, I as MenuSeparator, g as MenuTrigger, Pn as MultiSelect, Fn as MultiSelectOptGroup, In as MultiSelectOption, Ln as Nav, Bn as NavGroup, Gn as NavigationCardDescription, Hn as NavigationCardGroup, Wn as NavigationCardLabel, ve as NoopRouterProvider, Kn as NumberInput, Jn as Page, Xn as PageHeader, Qn as PageHeading, $n as Pagination, tr as PaginationContent, cr as PaginationEllipsis, rr as PaginationItem, K as PayFitBrand, q as PayFitBrandPreprod, dr as PhoneNumberInput, fr as Pill, pr as Popover, mr as PopoverTrigger, hr as ProgressBar, ft as PromoDialog, lt as PromoDialogActions, ht as PromoDialogContent, ut as PromoDialogHero, mt as PromoDialogSubtitle, dt as PromoDialogTitle, yr as RadioButton, gr as RadioButtonGroup, _r as RadioButtonHelper, vr as RadioIndicator, we as RawBreadcrumbLink, xe as RawLink, Cn as RawLinkButton, Tn as RawListViewItem, _ as RawMenuItem, Rn as RawNavItem, Vn as RawNavigationCard, ir as RawPaginationLink, sr as RawPaginationNext, or as RawPaginationPrevious, Si as RawSubTask, gi as RawTab, wi as RawTask, ye as RouterProvider, Vi as ScrollArea, Mn as Search, Sr as SegmentedButtonGroup, Nr as Select, Mr as SelectButton, Pr as SelectOption, Fr as SelectOptionGroup, Ir as SelectOptionHelper, Er as SelectableButton, wr as SelectableButtonGroup, kr as SelectableCardCheckbox, Or as SelectableCardCheckboxGroup, jr as SelectableCardRadio, Ar as SelectableCardRadioGroup, Lr as SidePanel, zr as SidePanelContent, Vr as SidePanelFooter, Ur as SidePanelHeader, xr as Skeleton, Yt as SkipLink, Xt as SkipLinks, c as Spinner, Wt as Stack, Kt as StackItem, Kr as Step, Gr as Stepper, Ni as TOAST_CONFIG, _i as TabList, vi as TabPanel, yi as TabPanels, Jr as Table, Xr as TableBody, Qr as TableCell, ei as TableColumnHeader, ni as TableEmptyState, ri as TableEmptyStateError, ii as TableEmptyStateLoading, ai as TableEmptyStateNoData, oi as TableEmptyStateText, li as TableHeader, si as TableNoSearchResults, di as TablePagination, Yr as TableRoot, pi as TableRow, hi as Tabs, Ei as TaskGroup, bi as TaskMenu, E as Text, Di as TextArea, ki as Timeline, Ai as TimelineStep, Mi as TimelineStepDescription, ji as TimelineStepHeader, Pi as ToastManager, Cr as ToggleButton, Ri as ToggleSwitch, Ii as ToggleSwitchGroup, d as Tooltip, b as actionBarRoot, Q as autocompleteItem, ee as autocompleteItemGroup, le as bottomSheet, de as bottomSheetContent, pe as bottomSheetFooter, he as bottomSheetHeader, Ie as card, Oe as carousel, Me as carouselContent, Ae as carouselHeader, Ee as carouselNav, Pe as carouselSlide, Ve as checkboxGroup, S as circularIconButton, at as dialog, Gi as dropzoneOverlay, Ot as errorState, At as fieldset, Ft as filterContainer, It as filterDismissButton, Bt as filterToolbar, Vt as flex, Ht as flexItem, Rt as floatingActionBar, Jt as fullPageLoader, en as funnelBody, Qt as funnelLayout, nn as funnelPage, on as funnelPageActions, cn as funnelPageContent, dn as funnelPageFooter, pn as funnelPageHeader, hn as funnelSidebar, _n as funnelTopBar, B as getInitials, vn as grid, yn as gridItem, i as isDesktopBreakpoint, a as isMobileBreakpoint, Se as link, En as listViewItem, On as listViewSection, zn as navItemBase, Un as navigationCardGroup, qn as numberInput, Yn as page, Zn as pageHeader, er as pagination, nr as paginationContent, ar as paginationLink, pt as promoDialog, br as radioButton, Ci as rawSubTask, Ti as rawTask, Nn as search, Dr as selectableButton, Tr as selectableButtonGroup, Rr as sidePanel, Br as sidePanelContent, Hr as sidePanelFooter, Wr as sidePanelHeader, Zr as tableBody, $r as tableCell, ti as tableColumnHeader, ci as tableEmptyState, ui as tableHeader, fi as tablePagination, mi as tableRow, xi as taskMenu, T as text, Oi as textArea, Fi as toast, zi as toggleSwitch, Li as toggleSwitchGroup, P as useAppMenuContext, Bi as useAsyncList, o as useBreakpointListener, Et as useContainerQueryLevel, t as useMediaQuery, ur as usePaginationState, lr as usePaginationWindow, be as useRouter, qr as useStepper };
|
package/dist/esm/index.js
CHANGED
|
@@ -218,17 +218,28 @@ import { ToggleSwitchGroup as Ii, toggleSwitchGroup as Li } from "./core/compone
|
|
|
218
218
|
import { ToggleSwitch as Ri, toggleSwitch as zi } from "./core/components/toggle-switch/ToggleSwitch.js";
|
|
219
219
|
import { useAsyncList as Bi } from "./core/hooks/use-async-list.js";
|
|
220
220
|
import { ScrollArea as Vi } from "./core/components/scroll-area/ScrollArea.js";
|
|
221
|
-
import {
|
|
222
|
-
import {
|
|
223
|
-
import {
|
|
224
|
-
import {
|
|
225
|
-
import {
|
|
226
|
-
import {
|
|
227
|
-
import {
|
|
228
|
-
import {
|
|
229
|
-
import {
|
|
230
|
-
import {
|
|
231
|
-
import {
|
|
232
|
-
import {
|
|
233
|
-
import {
|
|
234
|
-
|
|
221
|
+
import { Dropzone as Hi } from "./core/components/dropzone/Dropzone.js";
|
|
222
|
+
import { DropzoneContent as Ui } from "./core/components/dropzone/parts/DropzoneContent.js";
|
|
223
|
+
import { DropzoneOverlay as Wi, dropzoneOverlay as Gi } from "./core/components/dropzone/DropzoneOverlay.js";
|
|
224
|
+
import { DropzoneIcon as Ki } from "./core/components/dropzone/parts/DropzoneIcon.js";
|
|
225
|
+
import { DropzoneActions as qi } from "./core/components/dropzone/parts/DropzoneActions.js";
|
|
226
|
+
import { DropzoneIllustration as Ji } from "./core/components/dropzone/parts/DropzoneIllustration.js";
|
|
227
|
+
import { DropzoneLabel as Yi } from "./core/components/dropzone/parts/DropzoneLabel.js";
|
|
228
|
+
import { DropzoneDescription as Xi } from "./core/components/dropzone/parts/DropzoneDescription.js";
|
|
229
|
+
import { FileUploadTrigger as Zi } from "./core/components/file-upload-trigger/FileUploadTrigger.js";
|
|
230
|
+
import { FileUploadDropzoneButton as Qi } from "./core/components/file-upload-dropzone/parts/FileUploadDropzoneButton.js";
|
|
231
|
+
import { FileUploadDropzone as $i } from "./core/components/file-upload-dropzone/FileUploadDropzone.js";
|
|
232
|
+
import { useFieldContext as ea, useFormContext as ta } from "./modules/tanstack-form/hooks/tanstack-form-context.js";
|
|
233
|
+
import { useTanstackUnityForm as na, withFieldGroup as ra, withForm as ia } from "./modules/tanstack-form/hooks/use-tanstack-form.js";
|
|
234
|
+
import { tanstackFormDefaultValues as aa } from "./modules/tanstack-form/hooks/tanstack-form-default-values.js";
|
|
235
|
+
import { useFieldA11yContext as oa } from "./modules/tanstack-form/components/form-field/TanstackFormField.context.js";
|
|
236
|
+
import { fieldRevalidateLogic as sa } from "./modules/tanstack-form/utils/field-revalidate-logic.js";
|
|
237
|
+
import { StandardSchemaAdapter as ca } from "./modules/tanstack-form/adapters/standardSchemaAdapter.js";
|
|
238
|
+
import { ZodV3SchemaAdapter as la, ZodV4SchemaAdapter as ua } from "./modules/tanstack-form/adapters/zodAdapter.js";
|
|
239
|
+
import { createSchemaAdapter as da } from "./modules/tanstack-form/utils/createSchemaAdapter.js";
|
|
240
|
+
import { ColumnSortHeader as fa, isSortableHeader as pa } from "./modules/tanstack-table/components/data-table/parts/ColumnSortHeader.js";
|
|
241
|
+
import { DataTable as ma } from "./modules/tanstack-table/components/data-table/DataTable.js";
|
|
242
|
+
import { DataTableRoot as ha, dataTableRoot as ga } from "./modules/tanstack-table/components/data-table/parts/DataTableRoot.js";
|
|
243
|
+
import { DataTableBulkActions as _a } from "./modules/tanstack-table/components/data-table-bulk-actions/DataTableBulkActions.js";
|
|
244
|
+
import { FilterAdapters as va } from "./modules/tanstack-table/adapters/filter-adapters.js";
|
|
245
|
+
export { v as ActionBar, u as ActionBarButton, p as ActionBarIconButton, y as ActionBarRoot, e as Actionable, C as Alert, w as AlertActions, D as AlertContent, O as AlertTitle, k as Anchor, A as AppLayout, F as AppMenu, M as AppMenuContext, N as AppMenuContextProvider, W as AppMenuFooter, J as AppMenuHeader, Y as AppMenuNavContent, U as AppProfileMenuButton, j as AppTopBar, X as Autocomplete, Z as AutocompleteItem, $ as AutocompleteItemGroup, z as Avatar, V as AvatarFallback, oe as AvatarGroup, ae as AvatarGroupCount, re as AvatarIcon, H as AvatarImage, ie as AvatarPair, te as AvatarWithTooltip, G as BRAND_ASSETS, Ce as BREADCRUMB_ITEM_MAX_WIDTH, R as Badge, se as BadgeDot, ce as BottomSheet, ue as BottomSheetContent, fe as BottomSheetFooter, me as BottomSheetHeader, _e as Breadcrumb, ge as Breadcrumbs, l as Button, Fe as Card, Re as CardContent, Le as CardTitle, De as Carousel, je as CarouselContent, ke as CarouselHeader, Te as CarouselNav, Ne as CarouselSlide, He as Checkbox, Be as CheckboxGroup, Ue as CheckboxStandalone, x as CircularIconButton, We as Collapsible, Ge as CollapsibleContent, qe as CollapsibleGroup, Ke as CollapsibleTitle, fa as ColumnSortHeader, n as DESKTOP_BREAKPOINTS, ma as DataTable, _a as DataTableBulkActions, ha as DataTableRoot, Je as DateCalendar, Ye as DatePicker, Xe as DateRangeCalendar, Ze as DateRangePicker, $e as DefinitionItem, Qe as DefinitionList, et as DefinitionListGroup, tt as DefinitionTooltip, rt as Dialog, ot as DialogActions, nt as DialogButton, st as DialogContent, ct as DialogTitle, it as DialogTrigger, Hi as Dropzone, qi as DropzoneActions, Ui as DropzoneContent, Xi as DropzoneDescription, Ki as DropzoneIcon, Ji as DropzoneIllustration, Yi as DropzoneLabel, Wi as DropzoneOverlay, gt as EmptyState, yt as EmptyStateActions, vt as EmptyStateContent, bt as EmptyStateGetStarted, St as EmptyStateGoodJob, _t as EmptyStateIcon, wt as EmptyStateNoSearchResults, Ct as EmptyStateUpgradeRequired, Tt as EmptyStateUseDesktop, xt as EmptyStateWaitingForData, Dt as ErrorState, jt as FieldGroup, kt as Fieldset, $i as FileUploadDropzone, Qi as FileUploadDropzoneButton, Zi as FileUploadTrigger, Mt as Filter, va as FilterAdapters, Nt as FilterControls, Pt as FilterLabels, zt as FilterToolbar, Ut as Flex, Gt as FlexItem, Lt as FloatingActionBar, qt as FullPageLoader, ln as FunnelBackButton, $t as FunnelBody, Zt as FunnelLayout, tn as FunnelPage, rn as FunnelPageAction, an as FunnelPageActions, sn as FunnelPageContent, un as FunnelPageFooter, fn as FunnelPageHeader, mn as FunnelSidebar, gn as FunnelTopBar, bn as Grid, xn as GridItem, s as Icon, f as IconButton, Sn as Input, ne as InteractiveAvatar, ze as Label, wn as ListView, kn as ListViewItemLabel, An as ListViewItemText, Dn as ListViewSection, r as MOBILE_BREAKPOINTS, m as Menu, h as MenuContent, L as MenuHeader, jn as MenuSection, I as MenuSeparator, g as MenuTrigger, Pn as MultiSelect, Fn as MultiSelectOptGroup, In as MultiSelectOption, Ln as Nav, Bn as NavGroup, Gn as NavigationCardDescription, Hn as NavigationCardGroup, Wn as NavigationCardLabel, ve as NoopRouterProvider, Kn as NumberInput, Jn as Page, Xn as PageHeader, Qn as PageHeading, $n as Pagination, tr as PaginationContent, cr as PaginationEllipsis, rr as PaginationItem, K as PayFitBrand, q as PayFitBrandPreprod, dr as PhoneNumberInput, fr as Pill, pr as Popover, mr as PopoverTrigger, hr as ProgressBar, ft as PromoDialog, lt as PromoDialogActions, ht as PromoDialogContent, ut as PromoDialogHero, mt as PromoDialogSubtitle, dt as PromoDialogTitle, yr as RadioButton, gr as RadioButtonGroup, _r as RadioButtonHelper, vr as RadioIndicator, we as RawBreadcrumbLink, xe as RawLink, Cn as RawLinkButton, Tn as RawListViewItem, _ as RawMenuItem, Rn as RawNavItem, Vn as RawNavigationCard, ir as RawPaginationLink, sr as RawPaginationNext, or as RawPaginationPrevious, Si as RawSubTask, gi as RawTab, wi as RawTask, ye as RouterProvider, Vi as ScrollArea, Mn as Search, Sr as SegmentedButtonGroup, Nr as Select, Mr as SelectButton, Pr as SelectOption, Fr as SelectOptionGroup, Ir as SelectOptionHelper, Er as SelectableButton, wr as SelectableButtonGroup, kr as SelectableCardCheckbox, Or as SelectableCardCheckboxGroup, jr as SelectableCardRadio, Ar as SelectableCardRadioGroup, Lr as SidePanel, zr as SidePanelContent, Vr as SidePanelFooter, Ur as SidePanelHeader, xr as Skeleton, Yt as SkipLink, Xt as SkipLinks, c as Spinner, Wt as Stack, Kt as StackItem, ca as StandardSchemaAdapter, Kr as Step, Gr as Stepper, Ni as TOAST_CONFIG, _i as TabList, vi as TabPanel, yi as TabPanels, Jr as Table, Xr as TableBody, Qr as TableCell, ei as TableColumnHeader, ni as TableEmptyState, ri as TableEmptyStateError, ii as TableEmptyStateLoading, ai as TableEmptyStateNoData, oi as TableEmptyStateText, li as TableHeader, si as TableNoSearchResults, di as TablePagination, Yr as TableRoot, pi as TableRow, hi as Tabs, Ei as TaskGroup, bi as TaskMenu, E as Text, Di as TextArea, ki as Timeline, Ai as TimelineStep, Mi as TimelineStepDescription, ji as TimelineStepHeader, Pi as ToastManager, Cr as ToggleButton, Ri as ToggleSwitch, Ii as ToggleSwitchGroup, d as Tooltip, la as ZodV3SchemaAdapter, ua as ZodV4SchemaAdapter, b as actionBarRoot, Q as autocompleteItem, ee as autocompleteItemGroup, le as bottomSheet, de as bottomSheetContent, pe as bottomSheetFooter, he as bottomSheetHeader, Ie as card, Oe as carousel, Me as carouselContent, Ae as carouselHeader, Ee as carouselNav, Pe as carouselSlide, Ve as checkboxGroup, S as circularIconButton, da as createSchemaAdapter, ga as dataTableRoot, at as dialog, Gi as dropzoneOverlay, Ot as errorState, sa as fieldRevalidateLogic, At as fieldset, Ft as filterContainer, It as filterDismissButton, Bt as filterToolbar, Vt as flex, Ht as flexItem, Rt as floatingActionBar, Jt as fullPageLoader, en as funnelBody, Qt as funnelLayout, nn as funnelPage, on as funnelPageActions, cn as funnelPageContent, dn as funnelPageFooter, pn as funnelPageHeader, hn as funnelSidebar, _n as funnelTopBar, B as getInitials, vn as grid, yn as gridItem, i as isDesktopBreakpoint, a as isMobileBreakpoint, pa as isSortableHeader, Se as link, En as listViewItem, On as listViewSection, zn as navItemBase, Un as navigationCardGroup, qn as numberInput, Yn as page, Zn as pageHeader, er as pagination, nr as paginationContent, ar as paginationLink, pt as promoDialog, br as radioButton, Ci as rawSubTask, Ti as rawTask, Nn as search, Dr as selectableButton, Tr as selectableButtonGroup, Rr as sidePanel, Br as sidePanelContent, Hr as sidePanelFooter, Wr as sidePanelHeader, Zr as tableBody, $r as tableCell, ti as tableColumnHeader, ci as tableEmptyState, ui as tableHeader, fi as tablePagination, mi as tableRow, aa as tanstackFormDefaultValues, xi as taskMenu, T as text, Oi as textArea, Fi as toast, zi as toggleSwitch, Li as toggleSwitchGroup, P as useAppMenuContext, Bi as useAsyncList, o as useBreakpointListener, Et as useContainerQueryLevel, oa as useFieldA11yContext, ea as useFieldContext, ta as useFormContext, t as useMediaQuery, ur as usePaginationState, lr as usePaginationWindow, be as useRouter, qr as useStepper, na as useTanstackUnityForm, ra as withFieldGroup, ia as withForm };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { FileUploadDropzoneProps } from '../../../../core/components/file-upload-dropzone/FileUploadDropzone.js';
|
|
2
|
+
export interface FileUploadDropzoneInputProps extends Omit<FileUploadDropzoneProps, 'name' | 'onDrop' | 'onSelect' | 'state'> {
|
|
3
|
+
/** Disables both file selection and file dropping. */
|
|
4
|
+
isDisabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Keeps file drops and picker selections in the same TanStack Form field.
|
|
8
|
+
*
|
|
9
|
+
* FileUploadDropzoneInput derives its field name, accessible relationships,
|
|
10
|
+
* disabled state, and invalid state from the current `AppField`. It replaces
|
|
11
|
+
* the field's `File[]` value after a picker selection or file drop.
|
|
12
|
+
* @param props - File-acquisition options and the Dropzone target content.
|
|
13
|
+
* @param props.children - The icon, label, and description shown in the target.
|
|
14
|
+
* @param props.isDisabled - Disables dropping and file selection.
|
|
15
|
+
* @see {@link FileUploadDropzoneInputProps} for all supported props.
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* import {
|
|
19
|
+
* DropzoneDescription,
|
|
20
|
+
* DropzoneLabel,
|
|
21
|
+
* } from '@payfit/unity-components'
|
|
22
|
+
* import { useTanstackUnityForm } from '@payfit/unity-components/forms'
|
|
23
|
+
*
|
|
24
|
+
* export function SupportingDocumentsForm() {
|
|
25
|
+
* const form = useTanstackUnityForm({
|
|
26
|
+
* defaultValues: { documents: [] as File[] },
|
|
27
|
+
* })
|
|
28
|
+
*
|
|
29
|
+
* return (
|
|
30
|
+
* <form.AppForm>
|
|
31
|
+
* <form.Form>
|
|
32
|
+
* <form.AppField name="documents">
|
|
33
|
+
* {field => (
|
|
34
|
+
* <field.FileUploadDropzoneInput allowsMultiple>
|
|
35
|
+
* <DropzoneLabel>Drop documents here</DropzoneLabel>
|
|
36
|
+
* <DropzoneDescription>
|
|
37
|
+
* Or choose files from your device.
|
|
38
|
+
* </DropzoneDescription>
|
|
39
|
+
* </field.FileUploadDropzoneInput>
|
|
40
|
+
* )}
|
|
41
|
+
* </form.AppField>
|
|
42
|
+
* </form.Form>
|
|
43
|
+
* </form.AppForm>
|
|
44
|
+
* )
|
|
45
|
+
* }
|
|
46
|
+
* ```
|
|
47
|
+
* @remarks
|
|
48
|
+
* - Render FileUploadDropzoneInput inside `form.AppField`.
|
|
49
|
+
* - Drops update TanStack Form state only; they cannot populate the browser's hidden native input.
|
|
50
|
+
* - Use `field.FileUploadDropzoneField` when the dropzone needs its own label, helper text, and validation feedback.
|
|
51
|
+
*/
|
|
52
|
+
export declare function FileUploadDropzoneInput({ isDisabled, ...props }: FileUploadDropzoneInputProps): import('react/jsx-runtime').JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FileUploadDropzone as e } from "../../../../core/components/file-upload-dropzone/FileUploadDropzone.js";
|
|
2
|
+
import { useFieldContext as t } from "../../hooks/tanstack-form-context.js";
|
|
3
|
+
import { useFieldA11yContext as n } from "../form-field/TanstackFormField.context.js";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
//#region src/modules/tanstack-form/components/tanstack-file-upload-dropzone/TanstackFileUploadDropzone.tsx
|
|
6
|
+
function i({ isDisabled: i, ...a }) {
|
|
7
|
+
let o = t(), s = n(), c = o.state.meta.isTouched && !o.state.meta.isValid;
|
|
8
|
+
return /* @__PURE__ */ r(e, {
|
|
9
|
+
...a,
|
|
10
|
+
name: o.name,
|
|
11
|
+
state: i ? "disabled" : c ? "invalid" : void 0,
|
|
12
|
+
"aria-labelledby": s.labelId || void 0,
|
|
13
|
+
"aria-describedby": [s.helperTextId, s.feedbackTextId].filter(Boolean).join(" ") || void 0,
|
|
14
|
+
onSelect: (e) => {
|
|
15
|
+
o.handleChange(e ? Array.from(e) : []), o.handleBlur();
|
|
16
|
+
},
|
|
17
|
+
onDrop: (e) => {
|
|
18
|
+
let t = e.items.filter((e) => e.kind === "file");
|
|
19
|
+
t.length !== 0 && Promise.all(t.map((e) => e.getFile())).then((e) => {
|
|
20
|
+
o.handleChange(e), o.handleBlur();
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { i as FileUploadDropzoneInput };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { LabelProps } from '../../../../core/components/label/Label.js';
|
|
3
|
+
import { FileUploadDropzoneInputProps } from './TanstackFileUploadDropzone.js';
|
|
4
|
+
export interface FileUploadDropzoneFieldProps extends FileUploadDropzoneInputProps, Pick<LabelProps, 'isRequired' | 'requiredVariant'> {
|
|
5
|
+
/** Visible name for the file field. */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Supplemental guidance displayed above the dropzone. */
|
|
8
|
+
helperText?: ReactNode;
|
|
9
|
+
/** Additional field content displayed after validation feedback. */
|
|
10
|
+
contextualLink?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Provides a complete labeled file-drop field for a TanStack Form `File[]`
|
|
14
|
+
* value.
|
|
15
|
+
* FileUploadDropzoneField composes the dropzone input with a Unity field
|
|
16
|
+
* label, optional guidance, and validation feedback. Keep a DropzoneLabel and
|
|
17
|
+
* DropzoneDescription in `children` so people can identify the drop target.
|
|
18
|
+
* @param props - Field content and file-acquisition configuration.
|
|
19
|
+
* @param props.label - The visible name for the file field.
|
|
20
|
+
* @param props.helperText - Supplemental guidance shown above the dropzone.
|
|
21
|
+
* @param props.contextualLink - Additional field content shown after feedback.
|
|
22
|
+
* @param props.isRequired - Marks the field label as required.
|
|
23
|
+
* @param props.requiredVariant - Controls how the required label indicator appears.
|
|
24
|
+
* @see {@link FileUploadDropzoneFieldProps} for all supported props.
|
|
25
|
+
* @example
|
|
26
|
+
* ```tsx
|
|
27
|
+
* import {
|
|
28
|
+
* DropzoneDescription,
|
|
29
|
+
* DropzoneLabel,
|
|
30
|
+
* } from '@payfit/unity-components'
|
|
31
|
+
* import { useTanstackUnityForm } from '@payfit/unity-components/forms'
|
|
32
|
+
*
|
|
33
|
+
* export function SupportingDocumentsForm() {
|
|
34
|
+
* const form = useTanstackUnityForm({
|
|
35
|
+
* defaultValues: {
|
|
36
|
+
* documents: [] as File[],
|
|
37
|
+
* },
|
|
38
|
+
* })
|
|
39
|
+
*
|
|
40
|
+
* return (
|
|
41
|
+
* <form.AppForm>
|
|
42
|
+
* <form.Form>
|
|
43
|
+
* <form.AppField name="documents">
|
|
44
|
+
* {field => (
|
|
45
|
+
* <field.FileUploadDropzoneField
|
|
46
|
+
* acceptedFileTypes={['application/pdf']}
|
|
47
|
+
* helperText="Upload the documents needed for review."
|
|
48
|
+
* label="Supporting documents"
|
|
49
|
+
* >
|
|
50
|
+
* <DropzoneLabel>Drop documents here</DropzoneLabel>
|
|
51
|
+
* <DropzoneDescription>
|
|
52
|
+
* Or choose PDF files from your device.
|
|
53
|
+
* </DropzoneDescription>
|
|
54
|
+
* </field.FileUploadDropzoneField>
|
|
55
|
+
* )}
|
|
56
|
+
* </form.AppField>
|
|
57
|
+
* </form.Form>
|
|
58
|
+
* </form.AppForm>
|
|
59
|
+
* )
|
|
60
|
+
* }
|
|
61
|
+
* ```
|
|
62
|
+
* @remarks
|
|
63
|
+
* - Render FileUploadDropzoneField inside `form.AppField`.
|
|
64
|
+
* - It links `label`, `helperText`, and validation feedback to the target.
|
|
65
|
+
* - Its children provide the target's accessible name and drop guidance.
|
|
66
|
+
*/
|
|
67
|
+
declare function FileUploadDropzoneField({ label, helperText, contextualLink, isRequired, requiredVariant, ...inputProps }: FileUploadDropzoneFieldProps): import('react/jsx-runtime').JSX.Element;
|
|
68
|
+
export { FileUploadDropzoneField };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { TanstackFormFeedbackText as e } from "../form-field/parts/TanstackFormFeedbackText.js";
|
|
2
|
+
import { TanstackFormField as t } from "../form-field/TanstackFormField.js";
|
|
3
|
+
import { TanstackFormHelperText as n } from "../form-field/parts/TanstackFormHelperText.js";
|
|
4
|
+
import { TanstackFormLabel as r } from "../form-field/parts/TanstackFormLabel.js";
|
|
5
|
+
import { FileUploadDropzoneInput as i } from "./TanstackFileUploadDropzone.js";
|
|
6
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
|
+
//#region src/modules/tanstack-form/components/tanstack-file-upload-dropzone/TanstackFileUploadDropzoneField.tsx
|
|
8
|
+
function s({ label: s, helperText: c, contextualLink: l, isRequired: u, requiredVariant: d, ...f }) {
|
|
9
|
+
return /* @__PURE__ */ o(t, { children: [
|
|
10
|
+
/* @__PURE__ */ a(r, {
|
|
11
|
+
isRequired: u,
|
|
12
|
+
requiredVariant: d,
|
|
13
|
+
children: s
|
|
14
|
+
}),
|
|
15
|
+
c && /* @__PURE__ */ a(n, { children: c }),
|
|
16
|
+
/* @__PURE__ */ a(i, { ...f }),
|
|
17
|
+
/* @__PURE__ */ a(e, {}),
|
|
18
|
+
l
|
|
19
|
+
] });
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { s as FileUploadDropzoneField };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { FileUploadTriggerProps } from '../../../../core/components/file-upload-trigger/FileUploadTrigger.js';
|
|
2
|
+
export interface FileUploadTriggerInputProps extends Omit<FileUploadTriggerProps, 'id' | 'name' | 'onSelect'> {
|
|
3
|
+
/** Disables the visible picker action. */
|
|
4
|
+
isDisabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Keeps file selections in the same TanStack Form state as the rest of a
|
|
8
|
+
* workflow.
|
|
9
|
+
*
|
|
10
|
+
* FileUploadTriggerInput uses the current `AppField` for its native input
|
|
11
|
+
* name, visible label relationship, guidance, and feedback. It replaces the
|
|
12
|
+
* field's `File[]` value after each selection and marks the field touched.
|
|
13
|
+
* @param props - Native picker options and the pressable picker action.
|
|
14
|
+
* @param props.children - The Button or Actionable that opens the file picker.
|
|
15
|
+
* @param props.isDisabled - Disables the picker action and native input.
|
|
16
|
+
* @see {@link FileUploadTriggerInputProps} for all supported props.
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* import { Button } from '@payfit/unity-components'
|
|
20
|
+
* import { useTanstackUnityForm } from '@payfit/unity-components/forms'
|
|
21
|
+
*
|
|
22
|
+
* export function SupportingDocumentsForm() {
|
|
23
|
+
* const form = useTanstackUnityForm({
|
|
24
|
+
* defaultValues: { documents: [] as File[] },
|
|
25
|
+
* })
|
|
26
|
+
*
|
|
27
|
+
* return (
|
|
28
|
+
* <form.AppForm>
|
|
29
|
+
* <form.Form>
|
|
30
|
+
* <form.AppField name="documents">
|
|
31
|
+
* {field => (
|
|
32
|
+
* <field.FileUploadTriggerInput allowsMultiple>
|
|
33
|
+
* <Button variant="primary">Choose documents</Button>
|
|
34
|
+
* </field.FileUploadTriggerInput>
|
|
35
|
+
* )}
|
|
36
|
+
* </form.AppField>
|
|
37
|
+
* </form.Form>
|
|
38
|
+
* </form.AppForm>
|
|
39
|
+
* )
|
|
40
|
+
* }
|
|
41
|
+
* ```
|
|
42
|
+
* @remarks
|
|
43
|
+
* - Render FileUploadTriggerInput inside `form.AppField`.
|
|
44
|
+
* - Do not pass `id` or `name`; the component derives both from the current field.
|
|
45
|
+
* - Use `field.FileUploadTriggerField` when the picker needs its own label, helper text, and validation feedback.
|
|
46
|
+
*/
|
|
47
|
+
declare const FileUploadTriggerInput: import('react').ForwardRefExoticComponent<FileUploadTriggerInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
48
|
+
export { FileUploadTriggerInput };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FileUploadTrigger as e } from "../../../../core/components/file-upload-trigger/FileUploadTrigger.js";
|
|
2
|
+
import { useFieldContext as t } from "../../hooks/tanstack-form-context.js";
|
|
3
|
+
import { useFieldA11yContext as n } from "../form-field/TanstackFormField.context.js";
|
|
4
|
+
import { cloneElement as r, forwardRef as i } from "react";
|
|
5
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
6
|
+
//#region src/modules/tanstack-form/components/tanstack-file-upload-trigger/TanstackFileUploadTrigger.tsx
|
|
7
|
+
var o = i(({ children: i, isDisabled: o, ...s }, c) => {
|
|
8
|
+
let l = t(), u = n(), d = [u.helperTextId, u.feedbackTextId].filter(Boolean).join(" "), f = i;
|
|
9
|
+
return /* @__PURE__ */ a(e, {
|
|
10
|
+
...s,
|
|
11
|
+
ref: c,
|
|
12
|
+
id: u.inputId,
|
|
13
|
+
name: l.name,
|
|
14
|
+
onSelect: (e) => {
|
|
15
|
+
l.handleChange(e ? Array.from(e) : []), l.handleBlur();
|
|
16
|
+
},
|
|
17
|
+
children: r(f, {
|
|
18
|
+
"aria-labelledby": u.labelId || f.props["aria-labelledby"],
|
|
19
|
+
"aria-describedby": [f.props["aria-describedby"], d].filter(Boolean).join(" ") || void 0,
|
|
20
|
+
isDisabled: o || f.props.isDisabled
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
o.displayName = "FileUploadTriggerInput";
|
|
25
|
+
//#endregion
|
|
26
|
+
export { o as FileUploadTriggerInput };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { LabelProps } from '../../../../core/components/label/Label.js';
|
|
3
|
+
import { FileUploadTriggerInputProps } from './TanstackFileUploadTrigger.js';
|
|
4
|
+
export interface FileUploadTriggerFieldProps extends FileUploadTriggerInputProps, Pick<LabelProps, 'isRequired' | 'requiredVariant'> {
|
|
5
|
+
/** Visible name for the file field. */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Supplemental guidance displayed below the picker action. */
|
|
8
|
+
helperText?: ReactNode;
|
|
9
|
+
/** Additional field content displayed after validation feedback. */
|
|
10
|
+
contextualLink?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
declare const FileUploadTriggerField: import('react').ForwardRefExoticComponent<FileUploadTriggerFieldProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
13
|
+
export { FileUploadTriggerField };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { TanstackFormFeedbackText as e } from "../form-field/parts/TanstackFormFeedbackText.js";
|
|
2
|
+
import { TanstackFormField as t } from "../form-field/TanstackFormField.js";
|
|
3
|
+
import { TanstackFormHelperText as n } from "../form-field/parts/TanstackFormHelperText.js";
|
|
4
|
+
import { TanstackFormLabel as r } from "../form-field/parts/TanstackFormLabel.js";
|
|
5
|
+
import { FileUploadTriggerInput as i } from "./TanstackFileUploadTrigger.js";
|
|
6
|
+
import { forwardRef as a } from "react";
|
|
7
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
|
+
//#region src/modules/tanstack-form/components/tanstack-file-upload-trigger/TanstackFileUploadTriggerField.tsx
|
|
9
|
+
function c({ label: a, helperText: c, contextualLink: l, isRequired: u, requiredVariant: d, ...f }, p) {
|
|
10
|
+
return /* @__PURE__ */ s(t, { children: [
|
|
11
|
+
/* @__PURE__ */ o(r, {
|
|
12
|
+
isRequired: u,
|
|
13
|
+
requiredVariant: d,
|
|
14
|
+
children: a
|
|
15
|
+
}),
|
|
16
|
+
c && /* @__PURE__ */ o(n, { children: c }),
|
|
17
|
+
/* @__PURE__ */ o(i, {
|
|
18
|
+
...f,
|
|
19
|
+
ref: p
|
|
20
|
+
}),
|
|
21
|
+
/* @__PURE__ */ o(e, {}),
|
|
22
|
+
l
|
|
23
|
+
] });
|
|
24
|
+
}
|
|
25
|
+
var l = a(c);
|
|
26
|
+
l.displayName = "FileUploadTriggerField";
|
|
27
|
+
//#endregion
|
|
28
|
+
export { l as FileUploadTriggerField };
|
|
@@ -25,10 +25,14 @@ export declare const useTanstackUnityForm: <TFormData, TOnMount extends import('
|
|
|
25
25
|
};
|
|
26
26
|
readonly TextAreaInput: import('react').ForwardRefExoticComponent<import('../components/text-area/TanstackTextArea.js').TanstackTextAreaProps & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
27
27
|
readonly TextInput: import('react').ForwardRefExoticComponent<import('../components/input/TanstackInput.js').TanstackInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
28
|
+
readonly FileUploadTriggerInput: import('react').ForwardRefExoticComponent<import('../components/tanstack-file-upload-trigger/TanstackFileUploadTrigger.js').FileUploadTriggerInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
29
|
+
readonly FileUploadDropzoneInput: typeof import('../components/tanstack-file-upload-dropzone/TanstackFileUploadDropzone.js').FileUploadDropzoneInput;
|
|
28
30
|
readonly ToggleSwitchGroupInput: import('react').ForwardRefExoticComponent<import('../components/toggle-switch-group/TanstackToggleSwitchGroup.js').TanstackToggleSwitchGroupProps & import('react').RefAttributes<HTMLFieldSetElement>>;
|
|
29
31
|
readonly ToggleSwitchInput: import('react').ForwardRefExoticComponent<Omit<import('../components/toggle-switch/TanstackToggleSwitch.js').TanstackToggleSwitchProps, "ref"> & import('react').RefAttributes<HTMLLabelElement>>;
|
|
30
32
|
readonly CheckboxField: import('react').ForwardRefExoticComponent<import('../components/checkbox-field/TanstackCheckboxField.js').FieldProps & import('../components/checkbox/TanstackCheckbox.js').TanstackCheckboxProps & import('react').RefAttributes<HTMLLabelElement>>;
|
|
31
33
|
readonly CheckboxGroupField: import('react').ForwardRefExoticComponent<import('../components/checkbox-group-field/TanstackCheckGroupField.js').FieldProps & import('../components/checkbox-group/TanstackCheckboxGroup.js').TanstackCheckboxGroupProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
34
|
+
readonly FileUploadTriggerField: import('react').ForwardRefExoticComponent<import('../components/tanstack-file-upload-trigger/TanstackFileUploadTriggerField.js').FileUploadTriggerFieldProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
35
|
+
readonly FileUploadDropzoneField: typeof import('../components/tanstack-file-upload-dropzone/TanstackFileUploadDropzoneField.js').FileUploadDropzoneField;
|
|
32
36
|
readonly DatePickerField: import('react').ForwardRefExoticComponent<import('../components/date-picker/TanstackDatePicker.js').TanstackDatePickerProps & Pick<import('../../../index.js').LabelProps, "isRequired" | "requiredVariant"> & {
|
|
33
37
|
label: string;
|
|
34
38
|
helperText?: import('react').ReactNode;
|
|
@@ -103,10 +107,14 @@ export declare const withForm: <TFormData, TOnMount extends import('@tanstack/fo
|
|
|
103
107
|
};
|
|
104
108
|
readonly TextAreaInput: import('react').ForwardRefExoticComponent<import('../components/text-area/TanstackTextArea.js').TanstackTextAreaProps & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
105
109
|
readonly TextInput: import('react').ForwardRefExoticComponent<import('../components/input/TanstackInput.js').TanstackInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
110
|
+
readonly FileUploadTriggerInput: import('react').ForwardRefExoticComponent<import('../components/tanstack-file-upload-trigger/TanstackFileUploadTrigger.js').FileUploadTriggerInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
111
|
+
readonly FileUploadDropzoneInput: typeof import('../components/tanstack-file-upload-dropzone/TanstackFileUploadDropzone.js').FileUploadDropzoneInput;
|
|
106
112
|
readonly ToggleSwitchGroupInput: import('react').ForwardRefExoticComponent<import('../components/toggle-switch-group/TanstackToggleSwitchGroup.js').TanstackToggleSwitchGroupProps & import('react').RefAttributes<HTMLFieldSetElement>>;
|
|
107
113
|
readonly ToggleSwitchInput: import('react').ForwardRefExoticComponent<Omit<import('../components/toggle-switch/TanstackToggleSwitch.js').TanstackToggleSwitchProps, "ref"> & import('react').RefAttributes<HTMLLabelElement>>;
|
|
108
114
|
readonly CheckboxField: import('react').ForwardRefExoticComponent<import('../components/checkbox-field/TanstackCheckboxField.js').FieldProps & import('../components/checkbox/TanstackCheckbox.js').TanstackCheckboxProps & import('react').RefAttributes<HTMLLabelElement>>;
|
|
109
115
|
readonly CheckboxGroupField: import('react').ForwardRefExoticComponent<import('../components/checkbox-group-field/TanstackCheckGroupField.js').FieldProps & import('../components/checkbox-group/TanstackCheckboxGroup.js').TanstackCheckboxGroupProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
116
|
+
readonly FileUploadTriggerField: import('react').ForwardRefExoticComponent<import('../components/tanstack-file-upload-trigger/TanstackFileUploadTriggerField.js').FileUploadTriggerFieldProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
117
|
+
readonly FileUploadDropzoneField: typeof import('../components/tanstack-file-upload-dropzone/TanstackFileUploadDropzoneField.js').FileUploadDropzoneField;
|
|
110
118
|
readonly DatePickerField: import('react').ForwardRefExoticComponent<import('../components/date-picker/TanstackDatePicker.js').TanstackDatePickerProps & Pick<import('../../../index.js').LabelProps, "isRequired" | "requiredVariant"> & {
|
|
111
119
|
label: string;
|
|
112
120
|
helperText?: import('react').ReactNode;
|
|
@@ -181,10 +189,14 @@ export declare const withForm: <TFormData, TOnMount extends import('@tanstack/fo
|
|
|
181
189
|
};
|
|
182
190
|
readonly TextAreaInput: import('react').ForwardRefExoticComponent<import('../components/text-area/TanstackTextArea.js').TanstackTextAreaProps & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
183
191
|
readonly TextInput: import('react').ForwardRefExoticComponent<import('../components/input/TanstackInput.js').TanstackInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
192
|
+
readonly FileUploadTriggerInput: import('react').ForwardRefExoticComponent<import('../components/tanstack-file-upload-trigger/TanstackFileUploadTrigger.js').FileUploadTriggerInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
193
|
+
readonly FileUploadDropzoneInput: typeof import('../components/tanstack-file-upload-dropzone/TanstackFileUploadDropzone.js').FileUploadDropzoneInput;
|
|
184
194
|
readonly ToggleSwitchGroupInput: import('react').ForwardRefExoticComponent<import('../components/toggle-switch-group/TanstackToggleSwitchGroup.js').TanstackToggleSwitchGroupProps & import('react').RefAttributes<HTMLFieldSetElement>>;
|
|
185
195
|
readonly ToggleSwitchInput: import('react').ForwardRefExoticComponent<Omit<import('../components/toggle-switch/TanstackToggleSwitch.js').TanstackToggleSwitchProps, "ref"> & import('react').RefAttributes<HTMLLabelElement>>;
|
|
186
196
|
readonly CheckboxField: import('react').ForwardRefExoticComponent<import('../components/checkbox-field/TanstackCheckboxField.js').FieldProps & import('../components/checkbox/TanstackCheckbox.js').TanstackCheckboxProps & import('react').RefAttributes<HTMLLabelElement>>;
|
|
187
197
|
readonly CheckboxGroupField: import('react').ForwardRefExoticComponent<import('../components/checkbox-group-field/TanstackCheckGroupField.js').FieldProps & import('../components/checkbox-group/TanstackCheckboxGroup.js').TanstackCheckboxGroupProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
198
|
+
readonly FileUploadTriggerField: import('react').ForwardRefExoticComponent<import('../components/tanstack-file-upload-trigger/TanstackFileUploadTriggerField.js').FileUploadTriggerFieldProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
199
|
+
readonly FileUploadDropzoneField: typeof import('../components/tanstack-file-upload-dropzone/TanstackFileUploadDropzoneField.js').FileUploadDropzoneField;
|
|
188
200
|
readonly DatePickerField: import('react').ForwardRefExoticComponent<import('../components/date-picker/TanstackDatePicker.js').TanstackDatePickerProps & Pick<import('../../../index.js').LabelProps, "isRequired" | "requiredVariant"> & {
|
|
189
201
|
label: string;
|
|
190
202
|
helperText?: import('react').ReactNode;
|
|
@@ -260,10 +272,14 @@ export declare const withFieldGroup: <TFieldGroupData, TSubmitMeta, TRenderProps
|
|
|
260
272
|
};
|
|
261
273
|
readonly TextAreaInput: import('react').ForwardRefExoticComponent<import('../components/text-area/TanstackTextArea.js').TanstackTextAreaProps & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
262
274
|
readonly TextInput: import('react').ForwardRefExoticComponent<import('../components/input/TanstackInput.js').TanstackInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
275
|
+
readonly FileUploadTriggerInput: import('react').ForwardRefExoticComponent<import('../components/tanstack-file-upload-trigger/TanstackFileUploadTrigger.js').FileUploadTriggerInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
276
|
+
readonly FileUploadDropzoneInput: typeof import('../components/tanstack-file-upload-dropzone/TanstackFileUploadDropzone.js').FileUploadDropzoneInput;
|
|
263
277
|
readonly ToggleSwitchGroupInput: import('react').ForwardRefExoticComponent<import('../components/toggle-switch-group/TanstackToggleSwitchGroup.js').TanstackToggleSwitchGroupProps & import('react').RefAttributes<HTMLFieldSetElement>>;
|
|
264
278
|
readonly ToggleSwitchInput: import('react').ForwardRefExoticComponent<Omit<import('../components/toggle-switch/TanstackToggleSwitch.js').TanstackToggleSwitchProps, "ref"> & import('react').RefAttributes<HTMLLabelElement>>;
|
|
265
279
|
readonly CheckboxField: import('react').ForwardRefExoticComponent<import('../components/checkbox-field/TanstackCheckboxField.js').FieldProps & import('../components/checkbox/TanstackCheckbox.js').TanstackCheckboxProps & import('react').RefAttributes<HTMLLabelElement>>;
|
|
266
280
|
readonly CheckboxGroupField: import('react').ForwardRefExoticComponent<import('../components/checkbox-group-field/TanstackCheckGroupField.js').FieldProps & import('../components/checkbox-group/TanstackCheckboxGroup.js').TanstackCheckboxGroupProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
281
|
+
readonly FileUploadTriggerField: import('react').ForwardRefExoticComponent<import('../components/tanstack-file-upload-trigger/TanstackFileUploadTriggerField.js').FileUploadTriggerFieldProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
282
|
+
readonly FileUploadDropzoneField: typeof import('../components/tanstack-file-upload-dropzone/TanstackFileUploadDropzoneField.js').FileUploadDropzoneField;
|
|
267
283
|
readonly DatePickerField: import('react').ForwardRefExoticComponent<import('../components/date-picker/TanstackDatePicker.js').TanstackDatePickerProps & Pick<import('../../../index.js').LabelProps, "isRequired" | "requiredVariant"> & {
|
|
268
284
|
label: string;
|
|
269
285
|
helperText?: import('react').ReactNode;
|
|
@@ -338,10 +354,14 @@ export declare const withFieldGroup: <TFieldGroupData, TSubmitMeta, TRenderProps
|
|
|
338
354
|
};
|
|
339
355
|
readonly TextAreaInput: import('react').ForwardRefExoticComponent<import('../components/text-area/TanstackTextArea.js').TanstackTextAreaProps & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
340
356
|
readonly TextInput: import('react').ForwardRefExoticComponent<import('../components/input/TanstackInput.js').TanstackInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
357
|
+
readonly FileUploadTriggerInput: import('react').ForwardRefExoticComponent<import('../components/tanstack-file-upload-trigger/TanstackFileUploadTrigger.js').FileUploadTriggerInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
358
|
+
readonly FileUploadDropzoneInput: typeof import('../components/tanstack-file-upload-dropzone/TanstackFileUploadDropzone.js').FileUploadDropzoneInput;
|
|
341
359
|
readonly ToggleSwitchGroupInput: import('react').ForwardRefExoticComponent<import('../components/toggle-switch-group/TanstackToggleSwitchGroup.js').TanstackToggleSwitchGroupProps & import('react').RefAttributes<HTMLFieldSetElement>>;
|
|
342
360
|
readonly ToggleSwitchInput: import('react').ForwardRefExoticComponent<Omit<import('../components/toggle-switch/TanstackToggleSwitch.js').TanstackToggleSwitchProps, "ref"> & import('react').RefAttributes<HTMLLabelElement>>;
|
|
343
361
|
readonly CheckboxField: import('react').ForwardRefExoticComponent<import('../components/checkbox-field/TanstackCheckboxField.js').FieldProps & import('../components/checkbox/TanstackCheckbox.js').TanstackCheckboxProps & import('react').RefAttributes<HTMLLabelElement>>;
|
|
344
362
|
readonly CheckboxGroupField: import('react').ForwardRefExoticComponent<import('../components/checkbox-group-field/TanstackCheckGroupField.js').FieldProps & import('../components/checkbox-group/TanstackCheckboxGroup.js').TanstackCheckboxGroupProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
363
|
+
readonly FileUploadTriggerField: import('react').ForwardRefExoticComponent<import('../components/tanstack-file-upload-trigger/TanstackFileUploadTriggerField.js').FileUploadTriggerFieldProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
364
|
+
readonly FileUploadDropzoneField: typeof import('../components/tanstack-file-upload-dropzone/TanstackFileUploadDropzoneField.js').FileUploadDropzoneField;
|
|
345
365
|
readonly DatePickerField: import('react').ForwardRefExoticComponent<import('../components/date-picker/TanstackDatePicker.js').TanstackDatePickerProps & Pick<import('../../../index.js').LabelProps, "isRequired" | "requiredVariant"> & {
|
|
346
366
|
label: string;
|
|
347
367
|
helperText?: import('react').ReactNode;
|
|
@@ -415,10 +435,14 @@ export declare const withFieldGroup: <TFieldGroupData, TSubmitMeta, TRenderProps
|
|
|
415
435
|
};
|
|
416
436
|
readonly TextAreaInput: import('react').ForwardRefExoticComponent<import('../components/text-area/TanstackTextArea.js').TanstackTextAreaProps & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
417
437
|
readonly TextInput: import('react').ForwardRefExoticComponent<import('../components/input/TanstackInput.js').TanstackInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
438
|
+
readonly FileUploadTriggerInput: import('react').ForwardRefExoticComponent<import('../components/tanstack-file-upload-trigger/TanstackFileUploadTrigger.js').FileUploadTriggerInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
439
|
+
readonly FileUploadDropzoneInput: typeof import('../components/tanstack-file-upload-dropzone/TanstackFileUploadDropzone.js').FileUploadDropzoneInput;
|
|
418
440
|
readonly ToggleSwitchGroupInput: import('react').ForwardRefExoticComponent<import('../components/toggle-switch-group/TanstackToggleSwitchGroup.js').TanstackToggleSwitchGroupProps & import('react').RefAttributes<HTMLFieldSetElement>>;
|
|
419
441
|
readonly ToggleSwitchInput: import('react').ForwardRefExoticComponent<Omit<import('../components/toggle-switch/TanstackToggleSwitch.js').TanstackToggleSwitchProps, "ref"> & import('react').RefAttributes<HTMLLabelElement>>;
|
|
420
442
|
readonly CheckboxField: import('react').ForwardRefExoticComponent<import('../components/checkbox-field/TanstackCheckboxField.js').FieldProps & import('../components/checkbox/TanstackCheckbox.js').TanstackCheckboxProps & import('react').RefAttributes<HTMLLabelElement>>;
|
|
421
443
|
readonly CheckboxGroupField: import('react').ForwardRefExoticComponent<import('../components/checkbox-group-field/TanstackCheckGroupField.js').FieldProps & import('../components/checkbox-group/TanstackCheckboxGroup.js').TanstackCheckboxGroupProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
444
|
+
readonly FileUploadTriggerField: import('react').ForwardRefExoticComponent<import('../components/tanstack-file-upload-trigger/TanstackFileUploadTriggerField.js').FileUploadTriggerFieldProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
445
|
+
readonly FileUploadDropzoneField: typeof import('../components/tanstack-file-upload-dropzone/TanstackFileUploadDropzoneField.js').FileUploadDropzoneField;
|
|
422
446
|
readonly DatePickerField: import('react').ForwardRefExoticComponent<import('../components/date-picker/TanstackDatePicker.js').TanstackDatePickerProps & Pick<import('../../../index.js').LabelProps, "isRequired" | "requiredVariant"> & {
|
|
423
447
|
label: string;
|
|
424
448
|
helperText?: import('react').ReactNode;
|